ed-widget 1.48.4 → 1.49.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}.ed-pointer-events-none{pointer-events:none!important}.ed-fixed{position:fixed!important}.ed-absolute{position:absolute!important}.ed-relative{position:relative!important}.ed-sticky{position:sticky!important}.ed-inset-0{top:0!important;right:0!important;bottom:0!important;left:0!important}.ed-inset-2{top:.5rem!important;right:.5rem!important;bottom:.5rem!important;left:.5rem!important}.-ed-right-0\\.5{right:-.125rem!important}.-ed-top-3{top:-.75rem!important}.ed-bottom-0{bottom:0!important}.ed-bottom-12{bottom:3rem!important}.ed-bottom-28{bottom:7rem!important}.ed-bottom-32{bottom:8rem!important}.ed-bottom-5{bottom:1.25rem!important}.ed-bottom-\\[-4px\\]{bottom:-4px!important}.ed-left-0{left:0!important}.ed-left-1\\/2{left:50%!important}.ed-left-\\[-4px\\]{left:-4px!important}.ed-right-0{right:0!important}.ed-right-12{right:3rem!important}.ed-right-16{right:4rem!important}.ed-right-5{right:1.25rem!important}.ed-right-\\[-4px\\]{right:-4px!important}.ed-top-0{top:0!important}.ed-top-1\\/2{top:50%!important}.ed-top-5{top:1.25rem!important}.ed-top-9{top:2.25rem!important}.ed-top-\\[-4px\\]{top:-4px!important}.ed-z-10{z-index:10!important}.ed-z-\\[1000\\]{z-index:1000!important}.ed-z-\\[1100\\]{z-index:1100!important}.ed-z-\\[9999999\\]{z-index:9999999!important}.ed-z-\\[9999\\]{z-index:9999!important}.ed--mx-5{margin-left:-1.25rem!important;margin-right:-1.25rem!important}.ed-mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.ed-mx-3{margin-left:.75rem!important;margin-right:.75rem!important}.ed-my-10{margin-top:2.5rem!important;margin-bottom:2.5rem!important}.ed-my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.ed-my-4{margin-top:1rem!important;margin-bottom:1rem!important}.ed-mb-1{margin-bottom:.25rem!important}.ed-mb-2{margin-bottom:.5rem!important}.ed-mb-4{margin-bottom:1rem!important}.ed-mb-5{margin-bottom:1.25rem!important}.ed-mb-6{margin-bottom:1.5rem!important}.ed-ml-1{margin-left:.25rem!important}.ed-ml-2{margin-left:.5rem!important}.ed-ml-3{margin-left:.75rem!important}.ed-ml-auto{margin-left:auto!important}.ed-mr-1{margin-right:.25rem!important}.ed-mt-1\\.5{margin-top:.375rem!important}.ed-mt-2{margin-top:.5rem!important}.ed-mt-2\\.5{margin-top:.625rem!important}.ed-mt-3{margin-top:.75rem!important}.ed-mt-4{margin-top:1rem!important}.ed-mt-5{margin-top:1.25rem!important}.ed-line-clamp-1{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:1!important}.ed-line-clamp-2{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}.ed-block{display:block!important}.ed-inline-block{display:inline-block!important}.ed-inline{display:inline!important}.ed-flex{display:flex!important}.ed-inline-flex{display:inline-flex!important}.ed-grid{display:grid!important}.ed-hidden{display:none!important}.ed-size-1{width:.25rem!important;height:.25rem!important}.ed-size-1\\.5{width:.375rem!important;height:.375rem!important}.ed-size-10{width:2.5rem!important;height:2.5rem!important}.ed-size-12{width:3rem!important;height:3rem!important}.ed-size-4{width:1rem!important;height:1rem!important}.ed-size-5{width:1.25rem!important;height:1.25rem!important}.ed-size-7{width:1.75rem!important;height:1.75rem!important}.ed-size-9{width:2.25rem!important;height:2.25rem!important}.ed-size-full{width:100%!important;height:100%!important}.ed-h-0{height:0px!important}.ed-h-10{height:2.5rem!important}.ed-h-2{height:.5rem!important}.ed-h-2\\/3{height:66.666667%!important}.ed-h-20{height:5rem!important}.ed-h-4{height:1rem!important}.ed-h-5{height:1.25rem!important}.ed-h-7{height:1.75rem!important}.ed-h-8{height:2rem!important}.ed-h-\\[41px\\]{height:41px!important}.ed-h-\\[500px\\]{height:500px!important}.ed-h-\\[50px\\]{height:50px!important}.ed-h-\\[calc\\(100vh-200px\\)\\]{height:calc(100vh - 200px)!important}.ed-h-\\[calc\\(100vh-25rem\\)\\]{height:calc(100vh - 25rem)!important}.ed-h-dvh{height:100dvh!important}.ed-h-full{height:100%!important}.ed-h-max{height:-moz-max-content!important;height:max-content!important}.ed-max-h-0{max-height:0px!important}.ed-max-h-96{max-height:24rem!important}.ed-max-h-\\[90vh\\]{max-height:90vh!important}.ed-max-h-full{max-height:100%!important}.ed-min-h-\\[24px\\]{min-height:24px!important}.ed-min-h-min{min-height:-moz-min-content!important;min-height:min-content!important}.ed-w-0{width:0px!important}.ed-w-10{width:2.5rem!important}.ed-w-11\\/12{width:91.666667%!important}.ed-w-2{width:.5rem!important}.ed-w-4{width:1rem!important}.ed-w-5{width:1.25rem!important}.ed-w-7{width:1.75rem!important}.ed-w-8{width:2rem!important}.ed-w-\\[50px\\]{width:50px!important}.ed-w-full{width:100%!important}.ed-w-max{width:-moz-max-content!important;width:max-content!important}.ed-w-min{width:-moz-min-content!important;width:min-content!important}.ed-w-px{width:1px!important}.ed-w-screen{width:100vw!important}.ed-min-w-0{min-width:0px!important}.ed-min-w-\\[16rem\\]{min-width:16rem!important}.ed-min-w-\\[3rem\\]{min-width:3rem!important}.ed-max-w-\\[100px\\]{max-width:100px!important}.ed-max-w-\\[140px\\]{max-width:140px!important}.ed-max-w-\\[150px\\]{max-width:150px!important}.ed-max-w-\\[85\\%\\]{max-width:85%!important}.ed-max-w-\\[87\\%\\]{max-width:87%!important}.ed-max-w-\\[90vw\\]{max-width:90vw!important}.ed-max-w-full{max-width:100%!important}.ed-flex-1{flex:1 1 0%!important}.ed-flex-shrink-0,.ed-shrink-0{flex-shrink:0!important}.ed-origin-center{transform-origin:center!important}.-ed-translate-x-1\\/2,.ed--translate-x-1\\/2{--tw-translate-x: -50% !important;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))!important}.ed--translate-x-2{--tw-translate-x: -.5rem !important;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))!important}.ed--translate-y-1\\/2{--tw-translate-y: -50% !important;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))!important}.ed-rotate-0{--tw-rotate: 0deg !important;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))!important}.ed-rotate-\\[360deg\\]{--tw-rotate: 360deg !important;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))!important}.ed-scale-0{--tw-scale-x: 0 !important;--tw-scale-y: 0 !important;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))!important}.ed-scale-100{--tw-scale-x: 1 !important;--tw-scale-y: 1 !important;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))!important}.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))!important}@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!important}@keyframes ed-spin{to{transform:rotate(360deg)}}.ed-animate-spin{animation:ed-spin 1s linear infinite!important}.ed-cursor-not-allowed{cursor:not-allowed!important}.ed-cursor-pointer{cursor:pointer!important}.ed-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.ed-resize-none{resize:none!important}.ed-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ed-flex-col{flex-direction:column!important}.ed-flex-wrap{flex-wrap:wrap!important}.ed-flex-nowrap{flex-wrap:nowrap!important}.ed-items-start{align-items:flex-start!important}.ed-items-center{align-items:center!important}.ed-justify-start{justify-content:flex-start!important}.ed-justify-end{justify-content:flex-end!important}.ed-justify-center{justify-content:center!important}.ed-justify-between{justify-content:space-between!important}.ed-gap-0\\.5{gap:.125rem!important}.ed-gap-1{gap:.25rem!important}.ed-gap-2{gap:.5rem!important}.ed-gap-2\\.5{gap:.625rem!important}.ed-gap-3{gap:.75rem!important}.ed-gap-4{gap:1rem!important}.ed-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.ed-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.5rem * var(--tw-space-y-reverse))!important}.ed-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.75rem * var(--tw-space-y-reverse))!important}.ed-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1rem * var(--tw-space-y-reverse))!important}.ed-space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))!important}.ed-overflow-hidden{overflow:hidden!important}.ed-overflow-x-auto{overflow-x:auto!important}.ed-overflow-y-auto{overflow-y:auto!important}.ed-truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.ed-whitespace-nowrap{white-space:nowrap!important}.ed-whitespace-pre-line{white-space:pre-line!important}.ed-break-words{overflow-wrap:break-word!important}.\\!ed-rounded,.ed-rounded{border-radius:.25rem!important}.ed-rounded-3xl{border-radius:1.5rem!important}.ed-rounded-\\[10px\\]{border-radius:10px!important}.ed-rounded-\\[20px\\]{border-radius:20px!important}.ed-rounded-\\[8px\\]{border-radius:8px!important}.ed-rounded-full{border-radius:9999px!important}.ed-rounded-lg{border-radius:.5rem!important}.ed-rounded-md{border-radius:.375rem!important}.ed-rounded-l-lg{border-top-left-radius:.5rem!important;border-bottom-left-radius:.5rem!important}.ed-rounded-r-lg{border-top-right-radius:.5rem!important;border-bottom-right-radius:.5rem!important}.ed-border{border-width:1px!important}.ed-border-0{border-width:0px!important}.ed-border-2{border-width:2px!important}.ed-border-4{border-width:4px!important}.ed-border-y{border-top-width:1px!important;border-bottom-width:1px!important}.ed-border-b{border-bottom-width:1px!important}.ed-border-l{border-left-width:1px!important}.ed-border-solid{border-style:solid!important}.ed-border-dashed{border-style:dashed!important}.ed-border-\\[\\#96D4AB\\]{--tw-border-opacity: 1 !important;border-color:rgb(150 212 171 / var(--tw-border-opacity, 1))!important}.ed-border-\\[\\#A4D1F1\\]{--tw-border-opacity: 1 !important;border-color:rgb(164 209 241 / var(--tw-border-opacity, 1))!important}.ed-border-border-light{--tw-border-opacity: 1 !important;border-color:rgb(216 224 237 / var(--tw-border-opacity, 1))!important}.ed-border-brand{border-color:var(--ed-brand-color)!important}.ed-border-disabled{--tw-border-opacity: 1 !important;border-color:rgb(248 249 251 / var(--tw-border-opacity, 1))!important}.ed-border-gray{--tw-border-opacity: 1 !important;border-color:rgb(216 224 237 / var(--tw-border-opacity, 1))!important}.ed-border-red{--tw-border-opacity: 1 !important;border-color:rgb(254 71 91 / var(--tw-border-opacity, 1))!important}.ed-border-x-transparent{border-left-color:transparent!important;border-right-color:transparent!important}.ed-border-y-transparent{border-top-color:transparent!important;border-bottom-color:transparent!important}.ed-border-b-transparent{border-bottom-color:transparent!important}.ed-border-l-transparent{border-left-color:transparent!important}.ed-border-r-transparent{border-right-color:transparent!important}.ed-border-t-transparent{border-top-color:transparent!important}.ed-bg-\\[\\#DBF8E2\\]{--tw-bg-opacity: 1 !important;background-color:rgb(219 248 226 / var(--tw-bg-opacity, 1))!important}.ed-bg-\\[\\#DDF2FF\\]{--tw-bg-opacity: 1 !important;background-color:rgb(221 242 255 / var(--tw-bg-opacity, 1))!important}.ed-bg-black\\/15{background-color:#00000026!important}.ed-bg-black\\/50{background-color:#00000080!important}.ed-bg-black\\/70{background-color:#000000b3!important}.ed-bg-black\\/80{background-color:#000c!important}.ed-bg-blue-light{--tw-bg-opacity: 1 !important;background-color:rgb(227 242 253 / var(--tw-bg-opacity, 1))!important}.ed-bg-border{--tw-bg-opacity: 1 !important;background-color:rgb(183 183 183 / var(--tw-bg-opacity, 1))!important}.ed-bg-brand{background-color:var(--ed-brand-color)!important}.ed-bg-brand-light{--tw-bg-opacity: 1 !important;background-color:rgb(230 246 252 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray{--tw-bg-opacity: 1 !important;background-color:rgb(243 244 248 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-900{--tw-bg-opacity: 1 !important;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-deep{--tw-bg-opacity: 1 !important;background-color:rgb(143 153 173 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-light{--tw-bg-opacity: 1 !important;background-color:rgb(238 240 243 / var(--tw-bg-opacity, 1))!important}.ed-bg-green{--tw-bg-opacity: 1 !important;background-color:rgb(12 170 27 / var(--tw-bg-opacity, 1))!important}.ed-bg-red{--tw-bg-opacity: 1 !important;background-color:rgb(254 71 91 / var(--tw-bg-opacity, 1))!important}.ed-bg-transparent{background-color:transparent!important}.ed-bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.ed-bg-white-light{--tw-bg-opacity: 1 !important;background-color:rgb(250 251 252 / var(--tw-bg-opacity, 1))!important}.ed-bg-white\\/30{background-color:#ffffff4d!important}.ed-bg-yellow{--tw-bg-opacity: 1 !important;background-color:rgb(255 171 0 / var(--tw-bg-opacity, 1))!important}.ed-bg-none{background-image:none!important}.ed-fill-border-regular{fill:#797979!important}.ed-fill-brand{fill:var(--ed-brand-color)!important}.ed-fill-white{fill:#fff!important}.ed-stroke-border-regular{stroke:#797979!important}.ed-stroke-brand{stroke:var(--ed-brand-color)!important}.ed-object-contain{-o-object-fit:contain!important;object-fit:contain!important}.ed-object-cover{-o-object-fit:cover!important;object-fit:cover!important}.ed-p-0{padding:0!important}.ed-p-0\\.5{padding:.125rem!important}.ed-p-1{padding:.25rem!important}.ed-p-1\\.5{padding:.375rem!important}.ed-p-2{padding:.5rem!important}.ed-p-2\\.5{padding:.625rem!important}.ed-p-3{padding:.75rem!important}.ed-p-4{padding:1rem!important}.ed-p-5{padding:1.25rem!important}.ed-px-2{padding-left:.5rem!important;padding-right:.5rem!important}.ed-px-3{padding-left:.75rem!important;padding-right:.75rem!important}.ed-px-4{padding-left:1rem!important;padding-right:1rem!important}.ed-px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}.ed-px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.ed-px-7{padding-left:1.75rem!important;padding-right:1.75rem!important}.ed-px-\\[25px\\]{padding-left:25px!important;padding-right:25px!important}.ed-py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.ed-py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.ed-py-2\\.5{padding-top:.625rem!important;padding-bottom:.625rem!important}.ed-py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.ed-py-4{padding-top:1rem!important;padding-bottom:1rem!important}.ed-py-5{padding-top:1.25rem!important;padding-bottom:1.25rem!important}.ed-py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.ed-py-8{padding-top:2rem!important;padding-bottom:2rem!important}.ed-py-\\[9px\\]{padding-top:9px!important;padding-bottom:9px!important}.ed-pb-1{padding-bottom:.25rem!important}.ed-pb-2{padding-bottom:.5rem!important}.ed-pb-5{padding-bottom:1.25rem!important}.ed-pt-1{padding-top:.25rem!important}.ed-pt-2\\.5{padding-top:.625rem!important}.ed-pt-3{padding-top:.75rem!important}.ed-pt-5{padding-top:1.25rem!important}.ed-text-left{text-align:left!important}.ed-text-center{text-align:center!important}.ed-text-12{font-size:12px!important}.ed-text-14{font-size:14px!important}.ed-text-16{font-size:16px!important}.ed-text-18{font-size:18px!important}.ed-text-24{font-size:24px!important}.ed-text-\\[13px\\]{font-size:13px!important}.ed-text-sm{font-size:.875rem!important;line-height:1.25rem!important}.ed-font-bold{font-weight:700!important}.ed-font-medium{font-weight:500!important}.ed-font-normal{font-weight:400!important}.ed-font-semibold{font-weight:600!important}.ed-lowercase{text-transform:lowercase!important}.ed-leading-none{line-height:1!important}.ed-text-\\[\\#0E9342\\]{--tw-text-opacity: 1 !important;color:rgb(14 147 66 / var(--tw-text-opacity, 1))!important}.ed-text-\\[\\#1173C8\\]{--tw-text-opacity: 1 !important;color:rgb(17 115 200 / var(--tw-text-opacity, 1))!important}.ed-text-blue-600{--tw-text-opacity: 1 !important;color:rgb(37 99 235 / var(--tw-text-opacity, 1))!important}.ed-text-border{--tw-text-opacity: 1 !important;color:rgb(183 183 183 / var(--tw-text-opacity, 1))!important}.ed-text-border-dark{--tw-text-opacity: 1 !important;color:rgb(59 59 59 / var(--tw-text-opacity, 1))!important}.ed-text-border-regular{--tw-text-opacity: 1 !important;color:rgb(121 121 121 / var(--tw-text-opacity, 1))!important}.ed-text-brand{color:var(--ed-brand-color)!important}.ed-text-brand-link{--tw-text-opacity: 1 !important;color:rgb(0 78 146 / var(--tw-text-opacity, 1))!important}.ed-text-dark{--tw-text-opacity: 1 !important;color:rgb(33 33 78 / var(--tw-text-opacity, 1))!important}.ed-text-gray-500{--tw-text-opacity: 1 !important;color:rgb(107 114 128 / var(--tw-text-opacity, 1))!important}.ed-text-gray-900{--tw-text-opacity: 1 !important;color:rgb(17 24 39 / var(--tw-text-opacity, 1))!important}.ed-text-red{--tw-text-opacity: 1 !important;color:rgb(254 71 91 / var(--tw-text-opacity, 1))!important}.ed-text-regular{--tw-text-opacity: 1 !important;color:rgb(92 93 118 / var(--tw-text-opacity, 1))!important}.ed-text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.ed-underline{text-decoration-line:underline!important}.ed-opacity-0{opacity:0!important}.ed-opacity-100{opacity:1!important}.ed-opacity-25{opacity:.25!important}.ed-opacity-50{opacity:.5!important}.ed-opacity-75{opacity:.75!important}.ed-shadow-\\[0_-8px_10px_rgba\\(0\\,0\\,0\\,0\\.02\\)\\]{--tw-shadow: 0 -8px 10px rgba(0,0,0,.02) !important;--tw-shadow-colored: 0 -8px 10px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ed-shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ed-outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.ed-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-opacity{transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-transform{transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-delay-150{transition-delay:.15s!important}.ed-delay-75{transition-delay:75ms!important}.ed-duration-200{transition-duration:.2s!important}.ed-duration-300{transition-duration:.3s!important}.ed-duration-500{transition-duration:.5s!important}.ed-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}:root{--ed-brand-color: #00a1e0;--ed-brand-link-color: #004e92;--ed-border-light: #d8e0ed;--ed-border: #b7b7b7;--ed-font-montserrat: "Montserrat";--ed-main-font: "Poppins"}.ed-scope{font-family:var(--ed-main-font)}.ed-scope .btn_hover_color{position:relative}.ed-scope .btn_hover_color:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;transition:.3s ease}.ed-scope .btn_hover_color:hover:before{background:#0003}.ed-no-scrollbar::-webkit-scrollbar{display:none}.ed-no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.ed-scope .ant-tooltip{z-index:9999999!important}.ed-scope .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}.ed-scope .ant-tooltip-arrow{display:none!important}.ed-article-group:hover .ed-article-title{text-decoration:underline}.ed-article-group:hover .ed-external-icon{opacity:1;transition:opacity .3s ease-in-out}.ed-category-card:hover{box-shadow:0 0 15px #0000000f}.ed-category-card:hover .ed-category-title{color:var(--ed-brand-link-color)}.ed-category-card:hover .ed-category-desc{color:#3b3b3b}.ed-category-card:hover .ed-category-count{color:#797979}.ed-category-card:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:all .3s ease}.ed-article-button:hover{background-color:#fafbfc}.ed-article-button:hover .ed-article-title{color:var(--ed-brand-link-color)}.ed-article-button:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:all .3s ease}.ed-article-row-button:hover{background-color:#fafbfc}.ed-article-row-button:hover .ed-article-title{color:var(--ed-brand-link-color)}.ed-article-row-button:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:opacity .3s ease,transform .3s ease}.custom-children{display:none;transition:all;transition-duration:.5s}.custom-wrapper:hover .custom-children{display:block}.hover\\:ed-size-14:hover{width:3.5rem!important;height:3.5rem!important}.hover\\:ed-bg-dark\\/15:hover{background-color:#21214e26!important}.hover\\:ed-bg-white-light:hover{--tw-bg-opacity: 1 !important;background-color:rgb(250 251 252 / var(--tw-bg-opacity, 1))!important}.hover\\:ed-text-border-dark:hover{--tw-text-opacity: 1 !important;color:rgb(59 59 59 / var(--tw-text-opacity, 1))!important}.hover\\:ed-opacity-90:hover{opacity:.9!important}.focus\\:ed-outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}.disabled\\:ed-bg-brand:disabled{background-color:var(--ed-brand-color)!important}.disabled\\:ed-opacity-50:disabled{opacity:.5!important}@media(min-width:768px){.md\\:ed-bottom-24{bottom:6rem!important}.md\\:ed-right-6{right:1.5rem!important}.md\\:ed-h-\\[80vh\\]{height:80vh!important}.md\\:ed-max-h-\\[704px\\]{max-height:704px!important}.md\\:ed-w-\\[400px\\]{width:400px!important}.md\\:ed-max-w-\\[85\\%\\]{max-width:85%!important}.md\\:ed-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.md\\:ed-rounded-\\[10px\\]{border-radius:10px!important}.md\\:ed-rounded-b-\\[10px\\]{border-bottom-right-radius:10px!important;border-bottom-left-radius:10px!important}.md\\:ed-rounded-t-\\[10px\\]{border-top-left-radius:10px!important;border-top-right-radius:10px!important}}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- (function(xn,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react"),require("react/jsx-runtime"),require("react-dom/client"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom/client","react-dom"],N):(xn=typeof globalThis<"u"?globalThis:xn||self,N(xn.EasyDeskChatWidget={},xn.React,xn.ReactJsxRuntime,xn.ReactDOMClient,xn.ReactDOM))})(this,(function(xn,N,S,ly,Qd){"use strict";var yK=Object.defineProperty;var bK=(xn,N,S)=>N in xn?yK(xn,N,{enumerable:!0,configurable:!0,writable:!0,value:S}):xn[N]=S;var ae=(xn,N,S)=>bK(xn,typeof N!="symbol"?N+"":N,S);var d8;function E_(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const L=E_(N),cy=!1;function ai(t){try{return t()}catch{}}const qd=ai(()=>globalThis)||ai(()=>window)||ai(()=>self)||ai(()=>global)||ai(function(){return ai.constructor("return this")()}),Jd="4.1.4",uy=new Map;function fy(t){const e=uy.get(t)||1;return uy.set(t,e+1),`${t}:${e}:${Math.random().toString(36).slice(2)}`}function C_(t,e=0){const n=fy("stringifyForDisplay");return JSON.stringify(t,(r,i)=>i===void 0?n:i,e).split(JSON.stringify(n)).join("<undefined>")}const dy="Invariant Violation";class Xd extends Error{constructor(e=dy){super(e),this.name=dy,Object.setPrototypeOf(this,Xd.prototype)}}const hy=["debug","log","warn","error","silent"];let x_=hy.indexOf("silent");function Je(t,...e){if(!t)throw Lr(...e)}function jc(t){return function(e,...n){if(hy.indexOf(t)>=x_){const r=console[t]||console.log;if(typeof e=="number"){const i=e;e=my(i),e||(e=gy(i,n),n=[])}r(e,...n)}}}Je.debug=jc("debug"),Je.log=jc("log"),Je.warn=jc("warn"),Je.error=jc("error");function Lr(t,...e){return new Xd(my(t,e)||gy(t,e))}const py=Symbol.for("ApolloErrorMessageHandler_"+Jd);function $d(t){if(typeof t=="string")return t;try{return C_(t,2).slice(0,1e3)}catch{return"<non-serializable>"}}function my(t,e=[]){if(t)return qd[py]&&qd[py](t,e.map($d))}function gy(t,e=[]){if(t)return typeof t=="string"?e.reduce((n,r)=>n.replace(/%[sdfo]/,$d(r)),t):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:Jd,message:t,args:e.map($d)}))}`}const vy=Symbol.for("__APOLLO_CONTEXT__");function eh(){Je("createContext"in L,37);let t=L.createContext[vy];return t||(Object.defineProperty(L.createContext,vy,{value:t=L.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t}const __=({client:t,children:e})=>{const n=eh(),r=L.useContext(n),i=L.useMemo(()=>({...r,client:t||r.client}),[r,t]);return Je(i.client,38),L.createElement(n.Provider,{value:i},e)};function Js(t){const e=L.useContext(eh()),n=t||e.client;return Je(!!n,28),n}const{toString:yy,hasOwnProperty:A_}=Object.prototype,by=Function.prototype.toString,th=new Map;function dt(t,e){try{return nh(t,e)}finally{th.clear()}}function nh(t,e){if(t===e)return!0;const n=yy.call(t),r=yy.call(e);if(n!==r)return!1;switch(n){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(Sy(t,e))return!0;const i=wy(t),a=wy(e),o=i.length;if(o!==a.length)return!1;for(let s=0;s<o;++s)if(!A_.call(e,i[s]))return!1;for(let s=0;s<o;++s){const c=i[s];if(!nh(t[c],e[c]))return!1}return!0}case"[object Error]":return t.name===e.name&&t.message===e.message;case"[object Number]":if(t!==t)return e!==e;case"[object Boolean]":case"[object Date]":return+t==+e;case"[object RegExp]":case"[object String]":return t==`${e}`;case"[object Map]":case"[object Set]":{if(t.size!==e.size)return!1;if(Sy(t,e))return!0;const i=t.entries(),a=n==="[object Map]";for(;;){const o=i.next();if(o.done)break;const[s,c]=o.value;if(!e.has(s)||a&&!nh(c,e.get(s)))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]":t=new Uint8Array(t),e=new Uint8Array(e);case"[object DataView]":{let i=t.byteLength;if(i===e.byteLength)for(;i--&&t[i]===e[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const i=by.call(t);return i!==by.call(e)?!1:!O_(i,T_)}}return!1}function wy(t){return Object.keys(t).filter(k_,t)}function k_(t){return this[t]!==void 0}const T_="{ [native code] }";function O_(t,e){const n=t.length-e.length;return n>=0&&t.indexOf(e,n)===n}function Sy(t,e){let n=th.get(t);if(n){if(n.has(e))return!0}else th.set(t,n=new Set);return n.add(e),!1}function R_(t,e){if(!!!t)throw new Error(e)}const Ey={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},N_=new Set(Object.keys(Ey));function Cy(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&N_.has(e)}var Ba;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(Ba||(Ba={}));var gt;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",t.TYPE_COORDINATE="TypeCoordinate",t.MEMBER_COORDINATE="MemberCoordinate",t.ARGUMENT_COORDINATE="ArgumentCoordinate",t.DIRECTIVE_COORDINATE="DirectiveCoordinate",t.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(gt||(gt={}));function xy(t){return t===9||t===32}function P_(t,e){const n=t.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,a=r.length>1&&r.slice(1).every(p=>p.length===0||xy(p.charCodeAt(0))),o=n.endsWith('\\"""'),s=t.endsWith('"')&&!o,c=t.endsWith("\\"),u=s||c,d=!i||t.length>70||u||a||o;let h="";const m=i&&xy(t.charCodeAt(0));return(d&&!m||a)&&(h+=`
2
+ (function(xn,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react"),require("react/jsx-runtime"),require("react-dom/client"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom/client","react-dom"],N):(xn=typeof globalThis<"u"?globalThis:xn||self,N(xn.EasyDeskChatWidget={},xn.React,xn.ReactJsxRuntime,xn.ReactDOMClient,xn.ReactDOM))})(this,(function(xn,N,S,ly,Qd){"use strict";var yK=Object.defineProperty;var bK=(xn,N,S)=>N in xn?yK(xn,N,{enumerable:!0,configurable:!0,writable:!0,value:S}):xn[N]=S;var ae=(xn,N,S)=>bK(xn,typeof N!="symbol"?N+"":N,S);var d8;function E_(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const L=E_(N),cy=!1;function ai(t){try{return t()}catch{}}const qd=ai(()=>globalThis)||ai(()=>window)||ai(()=>self)||ai(()=>global)||ai(function(){return ai.constructor("return this")()}),Jd="4.1.6",uy=new Map;function fy(t){const e=uy.get(t)||1;return uy.set(t,e+1),`${t}:${e}:${Math.random().toString(36).slice(2)}`}function C_(t,e=0){const n=fy("stringifyForDisplay");return JSON.stringify(t,(r,i)=>i===void 0?n:i,e).split(JSON.stringify(n)).join("<undefined>")}const dy="Invariant Violation";class Xd extends Error{constructor(e=dy){super(e),this.name=dy,Object.setPrototypeOf(this,Xd.prototype)}}const hy=["debug","log","warn","error","silent"];let x_=hy.indexOf("silent");function Je(t,...e){if(!t)throw Lr(...e)}function jc(t){return function(e,...n){if(hy.indexOf(t)>=x_){const r=console[t]||console.log;if(typeof e=="number"){const i=e;e=my(i),e||(e=gy(i,n),n=[])}r(e,...n)}}}Je.debug=jc("debug"),Je.log=jc("log"),Je.warn=jc("warn"),Je.error=jc("error");function Lr(t,...e){return new Xd(my(t,e)||gy(t,e))}const py=Symbol.for("ApolloErrorMessageHandler_"+Jd);function $d(t){if(typeof t=="string")return t;try{return C_(t,2).slice(0,1e3)}catch{return"<non-serializable>"}}function my(t,e=[]){if(t)return qd[py]&&qd[py](t,e.map($d))}function gy(t,e=[]){if(t)return typeof t=="string"?e.reduce((n,r)=>n.replace(/%[sdfo]/,$d(r)),t):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:Jd,message:t,args:e.map($d)}))}`}const vy=Symbol.for("__APOLLO_CONTEXT__");function eh(){Je("createContext"in L,37);let t=L.createContext[vy];return t||(Object.defineProperty(L.createContext,vy,{value:t=L.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t}const __=({client:t,children:e})=>{const n=eh(),r=L.useContext(n),i=L.useMemo(()=>({...r,client:t||r.client}),[r,t]);return Je(i.client,38),L.createElement(n.Provider,{value:i},e)};function Js(t){const e=L.useContext(eh()),n=t||e.client;return Je(!!n,28),n}const{toString:yy,hasOwnProperty:A_}=Object.prototype,by=Function.prototype.toString,th=new Map;function dt(t,e){try{return nh(t,e)}finally{th.clear()}}function nh(t,e){if(t===e)return!0;const n=yy.call(t),r=yy.call(e);if(n!==r)return!1;switch(n){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(Sy(t,e))return!0;const i=wy(t),a=wy(e),o=i.length;if(o!==a.length)return!1;for(let s=0;s<o;++s)if(!A_.call(e,i[s]))return!1;for(let s=0;s<o;++s){const c=i[s];if(!nh(t[c],e[c]))return!1}return!0}case"[object Error]":return t.name===e.name&&t.message===e.message;case"[object Number]":if(t!==t)return e!==e;case"[object Boolean]":case"[object Date]":return+t==+e;case"[object RegExp]":case"[object String]":return t==`${e}`;case"[object Map]":case"[object Set]":{if(t.size!==e.size)return!1;if(Sy(t,e))return!0;const i=t.entries(),a=n==="[object Map]";for(;;){const o=i.next();if(o.done)break;const[s,c]=o.value;if(!e.has(s)||a&&!nh(c,e.get(s)))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]":t=new Uint8Array(t),e=new Uint8Array(e);case"[object DataView]":{let i=t.byteLength;if(i===e.byteLength)for(;i--&&t[i]===e[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const i=by.call(t);return i!==by.call(e)?!1:!O_(i,T_)}}return!1}function wy(t){return Object.keys(t).filter(k_,t)}function k_(t){return this[t]!==void 0}const T_="{ [native code] }";function O_(t,e){const n=t.length-e.length;return n>=0&&t.indexOf(e,n)===n}function Sy(t,e){let n=th.get(t);if(n){if(n.has(e))return!0}else th.set(t,n=new Set);return n.add(e),!1}function R_(t,e){if(!!!t)throw new Error(e)}const Ey={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},N_=new Set(Object.keys(Ey));function Cy(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&N_.has(e)}var Ba;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(Ba||(Ba={}));var gt;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",t.TYPE_COORDINATE="TypeCoordinate",t.MEMBER_COORDINATE="MemberCoordinate",t.ARGUMENT_COORDINATE="ArgumentCoordinate",t.DIRECTIVE_COORDINATE="DirectiveCoordinate",t.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(gt||(gt={}));function xy(t){return t===9||t===32}function P_(t,e){const n=t.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,a=r.length>1&&r.slice(1).every(p=>p.length===0||xy(p.charCodeAt(0))),o=n.endsWith('\\"""'),s=t.endsWith('"')&&!o,c=t.endsWith("\\"),u=s||c,d=!i||t.length>70||u||a||o;let h="";const m=i&&xy(t.charCodeAt(0));return(d&&!m||a)&&(h+=`
3
3
  `),h+=n,(d||u)&&(h+=`
4
4
  `),'"""'+h+'"""'}const I_=10,_y=2;function M_(t){return Dc(t,[])}function Dc(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return L_(t,e);default:return String(t)}}function L_(t,e){if(t===null)return"null";if(e.includes(t))return"[Circular]";const n=[...e,t];if(F_(t)){const r=t.toJSON();if(r!==t)return typeof r=="string"?r:Dc(r,n)}else if(Array.isArray(t))return D_(t,n);return j_(t,n)}function F_(t){return typeof t.toJSON=="function"}function j_(t,e){const n=Object.entries(t);return n.length===0?"{}":e.length>_y?"["+V_(t)+"]":"{ "+n.map(([i,a])=>i+": "+Dc(a,e)).join(", ")+" }"}function D_(t,e){if(t.length===0)return"[]";if(e.length>_y)return"[Array]";const n=Math.min(I_,t.length),r=t.length-n,i=[];for(let a=0;a<n;++a)i.push(Dc(t[a],e));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function V_(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const n=t.constructor.name;if(typeof n=="string"&&n!=="")return n}return e}function U_(t){return`"${t.replace(B_,z_)}"`}const B_=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function z_(t){return H_[t.charCodeAt(0)]}const H_=["\\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"],rh=Object.freeze({});function Ei(t,e,n=Ey){const r=new Map;for(const x of Object.values(gt))r.set(x,W_(e,x));let i,a=Array.isArray(t),o=[t],s=-1,c=[],u=t,d,h;const m=[],p=[];do{s++;const x=s===o.length,_=x&&c.length!==0;if(x){if(d=p.length===0?void 0:m[m.length-1],u=h,h=p.pop(),_)if(a){u=u.slice();let C=0;for(const[w,A]of c){const k=w-C;A===null?(u.splice(k,1),C++):u[k]=A}}else{u={...u};for(const[C,w]of c)u[C]=w}s=i.index,o=i.keys,c=i.edits,a=i.inArray,i=i.prev}else if(h){if(d=a?s:o[s],u=h[d],u==null)continue;m.push(d)}let T;if(!Array.isArray(u)){var y,b;Cy(u)||R_(!1,`Invalid AST Node: ${M_(u)}.`);const C=x?(y=r.get(u.kind))===null||y===void 0?void 0:y.leave:(b=r.get(u.kind))===null||b===void 0?void 0:b.enter;if(T=C==null?void 0:C.call(e,u,d,h,m,p),T===rh)break;if(T===!1){if(!x){m.pop();continue}}else if(T!==void 0&&(c.push([d,T]),!x))if(Cy(T))u=T;else{m.pop();continue}}if(T===void 0&&_&&c.push([d,u]),x)m.pop();else{var v;i={inArray:a,index:s,keys:o,edits:c,prev:i},a=Array.isArray(u),o=a?u:(v=n[u.kind])!==null&&v!==void 0?v:[],s=-1,c=[],h&&p.push(h),h=u}}while(i!==void 0);return c.length!==0?c[c.length-1][1]:t}function W_(t,e){const n=t[e];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:t.enter,leave:t.leave}}function G_(t){return Ei(t,K_)}const Y_=80,K_={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>Te(t.definitions,`
5
5
 
@@ -34,25 +34,25 @@
34
34
  `)),`
35
35
  }`)}function Ge(t,e,n=""){return e!=null&&e!==""?t+e+n:""}function Vc(t){return Ge(" ",t.replace(/\n/g,`
36
36
  `))}function ih(t){var e;return(e=t==null?void 0:t.some(n=>n.includes(`
37
- `)))!==null&&e!==void 0?e:!1}var ah=function(t,e){return ah=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])},ah(t,e)};function Fr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ah(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function Z_(t,e,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 s(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?a(d.value):i(d.value).then(s,c)}u((r=r.apply(t,e||[])).next())})}function Ay(t,e){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=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1],a=u;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(u);break}a[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Co(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function xo(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function _o(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))}function Ao(t){return this instanceof Ao?(this.v=t,this):new Ao(t)}function Q_(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,a=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(p){return function(y){return Promise.resolve(y).then(p,h)}}function s(p,y){r[p]&&(i[p]=function(b){return new Promise(function(v,x){a.push([p,b,v,x])>1||c(p,b)})},y&&(i[p]=y(i[p])))}function c(p,y){try{u(r[p](y))}catch(b){m(a[0][3],b)}}function u(p){p.value instanceof Ao?Promise.resolve(p.value.v).then(d,h):m(a[0][2],p)}function d(p){c("next",p)}function h(p){c("throw",p)}function m(p,y){p(y),a.shift(),a.length&&c(a[0][0],a[0][1])}}function q_(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof Co=="function"?Co(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=t[a]&&function(o){return new Promise(function(s,c){o=t[a](o),i(s,c,o.done,o.value)})}}function i(a,o,s,c){Promise.resolve(c).then(function(u){a({value:u,done:s})},o)}}typeof SuppressedError=="function"&&SuppressedError;function tn(t){return typeof t=="function"}function oh(t){var e=function(r){Error.call(r),r.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var sh=oh(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription:
37
+ `)))!==null&&e!==void 0?e:!1}var ah=function(t,e){return ah=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])},ah(t,e)};function Fr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ah(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function Z_(t,e,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 s(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?a(d.value):i(d.value).then(s,c)}u((r=r.apply(t,e||[])).next())})}function Ay(t,e){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=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1],a=u;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(u);break}a[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function xo(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function _o(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Ao(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))}function ko(t){return this instanceof ko?(this.v=t,this):new ko(t)}function Q_(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,a=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(p){return function(y){return Promise.resolve(y).then(p,h)}}function s(p,y){r[p]&&(i[p]=function(b){return new Promise(function(v,x){a.push([p,b,v,x])>1||c(p,b)})},y&&(i[p]=y(i[p])))}function c(p,y){try{u(r[p](y))}catch(b){m(a[0][3],b)}}function u(p){p.value instanceof ko?Promise.resolve(p.value.v).then(d,h):m(a[0][2],p)}function d(p){c("next",p)}function h(p){c("throw",p)}function m(p,y){p(y),a.shift(),a.length&&c(a[0][0],a[0][1])}}function q_(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof xo=="function"?xo(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=t[a]&&function(o){return new Promise(function(s,c){o=t[a](o),i(s,c,o.done,o.value)})}}function i(a,o,s,c){Promise.resolve(c).then(function(u){a({value:u,done:s})},o)}}typeof SuppressedError=="function"&&SuppressedError;function tn(t){return typeof t=="function"}function oh(t){var e=function(r){Error.call(r),r.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var sh=oh(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription:
38
38
  `+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
39
- `):"",this.name="UnsubscriptionError",this.errors=n}});function Uc(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Xs=(function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,r,i,a;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Co(o),c=s.next();!c.done;c=s.next()){var u=c.value;u.remove(this)}}catch(b){e={error:b}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}else o.remove(this);var d=this.initialTeardown;if(tn(d))try{d()}catch(b){a=b instanceof sh?b.errors:[b]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var m=Co(h),p=m.next();!p.done;p=m.next()){var y=p.value;try{Oy(y)}catch(b){a=a??[],b instanceof sh?a=_o(_o([],xo(a)),xo(b.errors)):a.push(b)}}}catch(b){r={error:b}}finally{try{p&&!p.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}}if(a)throw new sh(a)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Oy(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&Uc(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&Uc(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=(function(){var e=new t;return e.closed=!0,e})(),t})(),ky=Xs.EMPTY;function Ty(t){return t instanceof Xs||t&&"closed"in t&&tn(t.remove)&&tn(t.add)&&tn(t.unsubscribe)}function Oy(t){tn(t)?t():t.unsubscribe()}var J_={Promise:void 0},X_={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,_o([t,e],xo(n)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function Ry(t){X_.setTimeout(function(){throw t})}function Ny(){}function Bc(t){t()}var lh=(function(t){Fr(e,t);function e(n){var r=t.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Ty(n)&&n.add(r)):r.destination=t9,r}return e.create=function(n,r,i){return new $s(n,r,i)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e})(Xs),$_=(function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(r){zc(r)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(r){zc(r)}else zc(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){zc(n)}},t})(),$s=(function(t){Fr(e,t);function e(n,r,i){var a=t.call(this)||this,o;return tn(n)||!n?o={next:n??void 0,error:r??void 0,complete:i??void 0}:o=n,a.destination=new $_(o),a}return e})(lh);function zc(t){Ry(t)}function e9(t){throw t}var t9={closed:!0,next:Ny,error:e9,complete:Ny},ch=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Hc(t){return t}function n9(t){return t.length===0?Hc:t.length===1?t[0]:function(n){return t.reduce(function(r,i){return i(r)},n)}}var Ut=(function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,r){var i=this,a=i9(e)?e:new $s(e,n,r);return Bc(function(){var o=i,s=o.operator,c=o.source;a.add(s?s.call(a,c):c?i._subscribe(a):i._trySubscribe(a))}),a},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var r=this;return n=Py(n),new n(function(i,a){var o=new $s({next:function(s){try{e(s)}catch(c){a(c),o.unsubscribe()}},error:a,complete:i});r.subscribe(o)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[ch]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return n9(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=Py(e),new e(function(r,i){var a;n.subscribe(function(o){return a=o},function(o){return i(o)},function(){return r(a)})})},t.create=function(e){return new t(e)},t})();function Py(t){var e;return(e=t??J_.Promise)!==null&&e!==void 0?e:Promise}function r9(t){return t&&tn(t.next)&&tn(t.error)&&tn(t.complete)}function i9(t){return t&&t instanceof lh||r9(t)&&Ty(t)}function a9(t){return tn(t==null?void 0:t.lift)}function si(t){return function(e){if(a9(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ui(t,e,n,r,i){return new o9(t,e,n,r,i)}var o9=(function(t){Fr(e,t);function e(n,r,i,a,o,s){var c=t.call(this,n)||this;return c.onFinalize=o,c.shouldUnsubscribe=s,c._next=r?function(u){try{r(u)}catch(d){n.error(d)}}:t.prototype._next,c._error=a?function(u){try{a(u)}catch(d){n.error(d)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=i?function(){try{i()}catch(u){n.error(u)}finally{this.unsubscribe()}}:t.prototype._complete,c}return e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;t.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},e})(lh),s9=oh(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ko=(function(t){Fr(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var r=new Iy(this,this);return r.operator=n,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new s9},e.prototype.next=function(n){var r=this;Bc(function(){var i,a;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=Co(r.currentObservers),s=o.next();!s.done;s=o.next()){var c=s.value;c.next(n)}}catch(u){i={error:u}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}}})},e.prototype.error=function(n){var r=this;Bc(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},e.prototype.complete=function(){var n=this;Bc(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var r=this,i=this,a=i.hasError,o=i.isStopped,s=i.observers;return a||o?ky:(this.currentObservers=null,s.push(n),new Xs(function(){r.currentObservers=null,Uc(s,n)}))},e.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,a=r.thrownError,o=r.isStopped;i?n.error(a):o&&n.complete()},e.prototype.asObservable=function(){var n=new Ut;return n.source=this,n},e.create=function(n,r){return new Iy(n,r)},e})(Ut),Iy=(function(t){Fr(e,t);function e(n,r){var i=t.call(this)||this;return i.destination=n,i.source=r,i}return e.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},e.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},e.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},e.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:ky},e})(ko),l9=(function(t){Fr(e,t);function e(n){var r=t.call(this)||this;return r._value=n,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(n){var r=t.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},e.prototype.getValue=function(){var n=this,r=n.hasError,i=n.thrownError,a=n._value;if(r)throw i;return this._throwIfClosed(),a},e.prototype.next=function(n){t.prototype.next.call(this,this._value=n)},e})(ko),uh={now:function(){return(uh.delegate||Date).now()},delegate:void 0},My=(function(t){Fr(e,t);function e(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=uh);var a=t.call(this)||this;return a._bufferSize=n,a._windowTime=r,a._timestampProvider=i,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=r===1/0,a._bufferSize=Math.max(1,n),a._windowTime=Math.max(1,r),a}return e.prototype.next=function(n){var r=this,i=r.isStopped,a=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,c=r._windowTime;i||(a.push(n),!o&&a.push(s.now()+c)),this._trimBuffer(),t.prototype.next.call(this,n)},e.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,a=i._infiniteTimeWindow,o=i._buffer,s=o.slice(),c=0;c<s.length&&!n.closed;c+=a?1:2)n.next(s[c]);return this._checkFinalizedStatuses(n),r},e.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,a=n._buffer,o=n._infiniteTimeWindow,s=(o?1:2)*r;if(r<1/0&&s<a.length&&a.splice(0,a.length-s),!o){for(var c=i.now(),u=0,d=1;d<a.length&&a[d]<=c;d+=2)u=d;u&&a.splice(0,u+1)}},e})(ko),c9=(function(t){Fr(e,t);function e(n,r){return t.call(this)||this}return e.prototype.schedule=function(n,r){return this},e})(Xs),Ly={setInterval:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,_o([t,e],xo(n)))},clearInterval:function(t){return clearInterval(t)},delegate:void 0},Fy=(function(t){Fr(e,t);function e(n,r){var i=t.call(this,n,r)||this;return i.scheduler=n,i.work=r,i.pending=!1,i}return e.prototype.schedule=function(n,r){var i;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var a=this.id,o=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(o,a,r)),this.pending=!0,this.delay=r,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(o,this.id,r),this},e.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),Ly.setInterval(n.flush.bind(n,this),i)},e.prototype.recycleAsyncId=function(n,r,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return r;r!=null&&Ly.clearInterval(r)},e.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(n,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(n,r){var i=!1,a;try{this.work(n)}catch(o){i=!0,a=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),a},e.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,i=n.scheduler,a=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Uc(a,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e})(c9),u9=1,fh,dh={};function jy(t){return t in dh?(delete dh[t],!0):!1}var Dy={setImmediate:function(t){var e=u9++;return dh[e]=!0,fh||(fh=Promise.resolve()),fh.then(function(){return jy(e)&&t()}),e},clearImmediate:function(t){jy(t)}},f9=Dy.setImmediate,d9=Dy.clearImmediate,Vy={setImmediate:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return f9.apply(void 0,_o([],xo(t)))},clearImmediate:function(t){return d9(t)},delegate:void 0},h9=(function(t){Fr(e,t);function e(n,r){var i=t.call(this,n,r)||this;return i.scheduler=n,i.work=r,i}return e.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),i!==null&&i>0?t.prototype.requestAsyncId.call(this,n,r,i):(n.actions.push(this),n._scheduled||(n._scheduled=Vy.setImmediate(n.flush.bind(n,void 0))))},e.prototype.recycleAsyncId=function(n,r,i){var a;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return t.prototype.recycleAsyncId.call(this,n,r,i);var o=n.actions;r!=null&&((a=o[o.length-1])===null||a===void 0?void 0:a.id)!==r&&(Vy.clearImmediate(r),n._scheduled===r&&(n._scheduled=void 0))},e})(Fy),Uy=(function(){function t(e,n){n===void 0&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(e,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,e).schedule(r,n)},t.now=uh.now,t})(),By=(function(t){Fr(e,t);function e(n,r){r===void 0&&(r=Uy.now);var i=t.call(this,n,r)||this;return i.actions=[],i._active=!1,i}return e.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,i){for(;n=r.shift();)n.unsubscribe();throw i}},e})(Uy),p9=(function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.flush=function(n){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var i=this.actions,a;n=n||i.shift();do if(a=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===r&&i.shift());if(this._active=!1,a){for(;(n=i[0])&&n.id===r&&i.shift();)n.unsubscribe();throw a}},e})(By),m9=new p9(h9),g9=new By(Fy),v9=g9,el=new Ut(function(t){return t.complete()});function y9(t){return t&&tn(t.schedule)}function b9(t){return t[t.length-1]}function zy(t){return y9(b9(t))?t.pop():void 0}var Hy=(function(t){return t&&typeof t.length=="number"&&typeof t!="function"});function Wy(t){return tn(t==null?void 0:t.then)}function Gy(t){return tn(t[ch])}function Yy(t){return Symbol.asyncIterator&&tn(t==null?void 0:t[Symbol.asyncIterator])}function Ky(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function w9(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Zy=w9();function Qy(t){return tn(t==null?void 0:t[Zy])}function qy(t){return Q_(this,arguments,function(){var n,r,i,a;return Ay(this,function(o){switch(o.label){case 0:n=t.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,Ao(n.read())];case 3:return r=o.sent(),i=r.value,a=r.done,a?[4,Ao(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,Ao(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function Jy(t){return tn(t==null?void 0:t.getReader)}function ua(t){if(t instanceof Ut)return t;if(t!=null){if(Gy(t))return S9(t);if(Hy(t))return E9(t);if(Wy(t))return C9(t);if(Yy(t))return Xy(t);if(Qy(t))return x9(t);if(Jy(t))return _9(t)}throw Ky(t)}function S9(t){return new Ut(function(e){var n=t[ch]();if(tn(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function E9(t){return new Ut(function(e){for(var n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function C9(t){return new Ut(function(e){t.then(function(n){e.closed||(e.next(n),e.complete())},function(n){return e.error(n)}).then(null,Ry)})}function x9(t){return new Ut(function(e){var n,r;try{for(var i=Co(t),a=i.next();!a.done;a=i.next()){var o=a.value;if(e.next(o),e.closed)return}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.complete()})}function Xy(t){return new Ut(function(e){A9(t,e).catch(function(n){return e.error(n)})})}function _9(t){return Xy(qy(t))}function A9(t,e){var n,r,i,a;return Z_(this,void 0,void 0,function(){var o,s;return Ay(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=q_(t),c.label=1;case 1:return[4,n.next()];case 2:if(r=c.sent(),!!r.done)return[3,4];if(o=r.value,e.next(o),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),i={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(a=n.return)?[4,a.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function za(t,e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(a),!i)return a}function hh(t,e){return e===void 0&&(e=0),si(function(n,r){n.subscribe(Ui(r,function(i){return za(r,t,function(){return r.next(i)},e)},function(){return za(r,t,function(){return r.complete()},e)},function(i){return za(r,t,function(){return r.error(i)},e)}))})}function $y(t,e){return e===void 0&&(e=0),si(function(n,r){r.add(t.schedule(function(){return n.subscribe(r)},e))})}function k9(t,e){return ua(t).pipe($y(e),hh(e))}function T9(t,e){return ua(t).pipe($y(e),hh(e))}function O9(t,e){return new Ut(function(n){var r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function R9(t,e){return new Ut(function(n){var r;return za(n,e,function(){r=t[Zy](),za(n,e,function(){var i,a,o;try{i=r.next(),a=i.value,o=i.done}catch(s){n.error(s);return}o?n.complete():n.next(a)},0,!0)}),function(){return tn(r==null?void 0:r.return)&&r.return()}})}function eb(t,e){if(!t)throw new Error("Iterable cannot be null");return new Ut(function(n){za(n,e,function(){var r=t[Symbol.asyncIterator]();za(n,e,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}function N9(t,e){return eb(qy(t),e)}function P9(t,e){if(t!=null){if(Gy(t))return k9(t,e);if(Hy(t))return O9(t,e);if(Wy(t))return T9(t,e);if(Yy(t))return eb(t,e);if(Qy(t))return R9(t,e);if(Jy(t))return N9(t,e)}throw Ky(t)}function Ha(t,e){return e?P9(t,e):ua(t)}function Wa(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=zy(t);return Ha(t,n)}function tb(t,e){var n=tn(t)?t:function(){return t},r=function(i){return i.error(n())};return new Ut(r)}var nb;(function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"})(nb||(nb={}));var ph=(function(){function t(e,n,r){this.kind=e,this.value=n,this.error=r,this.hasValue=e==="N"}return t.prototype.observe=function(e){return I9(this,e)},t.prototype.do=function(e,n,r){var i=this,a=i.kind,o=i.value,s=i.error;return a==="N"?e==null?void 0:e(o):a==="E"?n==null?void 0:n(s):r==null?void 0:r()},t.prototype.accept=function(e,n,r){var i;return tn((i=e)===null||i===void 0?void 0:i.next)?this.observe(e):this.do(e,n,r)},t.prototype.toObservable=function(){var e=this,n=e.kind,r=e.value,i=e.error,a=n==="N"?Wa(r):n==="E"?tb(function(){return i}):n==="C"?el:0;if(!a)throw new TypeError("Unexpected notification kind "+n);return a},t.createNext=function(e){return new t("N",e)},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t})();function I9(t,e){var n,r,i,a=t,o=a.kind,s=a.value,c=a.error;if(typeof o!="string")throw new TypeError('Invalid notification, missing "kind"');o==="N"?(n=e.next)===null||n===void 0||n.call(e,s):o==="E"?(r=e.error)===null||r===void 0||r.call(e,c):(i=e.complete)===null||i===void 0||i.call(e)}var M9=oh(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function L9(t,e){var n=typeof e=="object";return new Promise(function(r,i){var a=!1,o;t.subscribe({next:function(s){o=s,a=!0},error:i,complete:function(){a?r(o):n?r(e.defaultValue):i(new M9)}})})}function F9(t){return t instanceof Date&&!isNaN(t)}function fa(t,e){return si(function(n,r){var i=0;n.subscribe(Ui(r,function(a){r.next(t.call(e,a,i++))}))})}function j9(t,e,n,r,i,a,o,s){var c=[],u=0,d=0,h=!1,m=function(){h&&!c.length&&!u&&e.complete()},p=function(b){return u<r?y(b):c.push(b)},y=function(b){u++;var v=!1;ua(n(b,d++)).subscribe(Ui(e,function(x){e.next(x)},function(){v=!0},void 0,function(){if(v)try{u--;for(var x=function(){var _=c.shift();o||y(_)};c.length&&u<r;)x();m()}catch(_){e.error(_)}}))};return t.subscribe(Ui(e,p,function(){h=!0,m()})),function(){}}function To(t,e,n){return n===void 0&&(n=1/0),tn(e)?To(function(r,i){return fa(function(a,o){return e(r,a,i,o)})(ua(t(r,i)))},n):(typeof e=="number"&&(n=e),si(function(r,i){return j9(r,i,t,n)}))}function D9(t){return To(Hc,t)}function V9(){return D9(1)}function mh(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return V9()(Ha(t,zy(t)))}function U9(t,e,n){return n===void 0&&(n=v9),new Ut(function(r){var i=F9(t)?+t-n.now():t;i<0&&(i=0);var a=0;return n.schedule(function(){r.closed||(r.next(a++),r.complete())},i)})}function rb(t,e){return si(function(n,r){var i=0;n.subscribe(Ui(r,function(a){return t.call(e,a,i++)&&r.next(a)}))})}function Wc(t){return si(function(e,n){var r=null,i=!1,a;r=e.subscribe(Ui(n,void 0,void 0,function(o){a=ua(t(o,Wc(t)(e))),r?(r.unsubscribe(),r=null,a.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,a.subscribe(n))})}function B9(t,e){return e===void 0&&(e=Hc),t=t??z9,si(function(n,r){var i,a=!0;n.subscribe(Ui(r,function(o){var s=e(o);(a||!t(i,s))&&(a=!1,i=s,r.next(o))}))})}function z9(t,e){return t===e}function H9(t){return si(function(e,n){try{e.subscribe(n)}finally{n.add(t)}})}function W9(){return si(function(t,e){t.subscribe(Ui(e,function(n){e.next(ph.createNext(n))},function(){e.next(ph.createComplete()),e.complete()},function(n){e.next(ph.createError(n)),e.complete()}))})}function tl(t){t===void 0&&(t={});var e=t.connector,n=e===void 0?function(){return new ko}:e,r=t.resetOnError,i=r===void 0?!0:r,a=t.resetOnComplete,o=a===void 0?!0:a,s=t.resetOnRefCountZero,c=s===void 0?!0:s;return function(u){var d,h,m,p=0,y=!1,b=!1,v=function(){h==null||h.unsubscribe(),h=void 0},x=function(){v(),d=m=void 0,y=b=!1},_=function(){var T=d;x(),T==null||T.unsubscribe()};return si(function(T,C){p++,!b&&!y&&v();var w=m=m??n();C.add(function(){p--,p===0&&!b&&!y&&(h=gh(_,c))}),w.subscribe(C),!d&&p>0&&(d=new $s({next:function(A){return w.next(A)},error:function(A){b=!0,v(),h=gh(x,i,A),w.error(A)},complete:function(){y=!0,v(),h=gh(x,o),w.complete()}}),ua(T).subscribe(d))})(u)}}function gh(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(e===!0){t();return}if(e!==!1){var i=new $s({next:function(){i.unsubscribe(),t()}});return ua(e.apply(void 0,_o([],xo(n)))).subscribe(i)}}function vh(t,e,n){var r,i,a,o,s=!1;return t&&typeof t=="object"?(r=t.bufferSize,o=r===void 0?1/0:r,i=t.windowTime,e=i===void 0?1/0:i,a=t.refCount,s=a===void 0?!1:a,n=t.scheduler):o=t??1/0,tl({connector:function(){return new My(o,e,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}function nl(t,e,n){var r=tn(t)||e||n?{next:t,error:e,complete:n}:t;return r?si(function(i,a){var o;(o=r.subscribe)===null||o===void 0||o.call(r);var s=!0;i.subscribe(Ui(a,function(c){var u;(u=r.next)===null||u===void 0||u.call(r,c),a.next(c)},function(){var c;s=!1,(c=r.complete)===null||c===void 0||c.call(r),a.complete()},function(c){var u;s=!1,(u=r.error)===null||u===void 0||u.call(r,c),a.error(c)},function(){var c,u;s&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):Hc}function Oo(t,e,n,r){if(n.kind===gt.INT||n.kind===gt.FLOAT)t[e.value]=Number(n.value);else if(n.kind===gt.BOOLEAN||n.kind===gt.STRING)t[e.value]=n.value;else if(n.kind===gt.OBJECT){const i={};n.fields.map(a=>Oo(i,a.name,a.value,r)),t[e.value]=i}else if(n.kind===gt.VARIABLE){const i=(r||{})[n.name.value];t[e.value]=i}else if(n.kind===gt.LIST)t[e.value]=n.values.map(i=>{const a={};return Oo(a,e,i,r),a[e.value]});else if(n.kind===gt.ENUM)t[e.value]=n.value;else if(n.kind===gt.NULL)t[e.value]=null;else throw Lr(19,e.value,n.kind)}function yh(t,e){if(t.arguments&&t.arguments.length){const n={};return t.arguments.forEach(({name:r,value:i})=>Oo(n,r,i,e)),n}return null}const ib=typeof ai(()=>window.document.createElement)=="function",G9=Symbol.for("apollo.cacheSize"),Bi={...qd[G9]};function Ro(t,e){var n;return((n=t.definitions.find(r=>r.kind==="OperationDefinition"&&!!r.name))==null?void 0:n.name.value)??e}const Y9=()=>Object.create(null),{forEach:K9,slice:ab}=Array.prototype,{hasOwnProperty:Z9}=Object.prototype;class Ci{constructor(e=!0,n=Y9){this.weakness=e,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(e){let n=this;return K9.call(e,r=>n=n.getChildTrie(r)),Z9.call(n,"data")?n.data:n.data=this.makeData(ab.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let n=this;for(let r=0,i=e.length;n&&r<i;++r){const a=n.mapFor(e[r],!1);n=a&&a.get(e[r])}return n&&n.data}remove(){return this.removeArray(arguments)}removeArray(e){let n;if(e.length){const r=e[0],i=this.mapFor(r,!1),a=i&&i.get(r);a&&(n=a.removeArray(ab.call(e,1)),!a.data&&!a.weak&&!(a.strong&&a.strong.size)&&i.delete(r))}else n=this.data,delete this.data;return n}getChildTrie(e){const n=this.mapFor(e,!0);let r=n.get(e);return r||n.set(e,r=new Ci(this.weakness,this.makeData)),r}mapFor(e,n){return this.weakness&&Q9(e)?this.weak||(n?this.weak=new WeakMap:void 0):this.strong||(n?this.strong=new Map:void 0)}}function Q9(t){switch(typeof t){case"object":if(t===null)break;case"function":return!0}return!1}function q9(){}class bh{constructor(e=1/0,n=q9){this.max=e,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const n=this.getNode(e);return n&&n.value}get size(){return this.map.size}getNode(e){const n=this.map.get(e);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(e,n){let r=this.getNode(e);return r?r.value=n:(r={key:e,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const n=this.map.get(e);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(e),this.dispose(n.value,e),!0):!1}}function wh(){}const J9=wh,X9=typeof WeakRef<"u"?WeakRef:function(t){return{deref:()=>t}},$9=typeof WeakMap<"u"?WeakMap:Map,e3=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:wh,unregister:wh}},t3=10024;class Gc{constructor(e=1/0,n=J9){this.max=e,this.dispose=n,this.map=new $9,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<t3;i++){const a=r.next().value;if(!a)break;this.unfinalizedNodes.delete(a);const o=a.key;delete a.key,a.keyRef=new X9(o),this.registry.register(o,a,a)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new e3(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const n=this.getNode(e);return n&&n.value}getNode(e){const n=this.map.get(e);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(e,n){let r=this.getNode(e);return r?r.value=n:(r={key:e,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(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const n=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,n),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),n&&this.map.delete(n)}delete(e){const n=this.map.get(e);return n?(this.deleteNode(n),!0):!1}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}const Sh=new WeakSet;function ob(t){t.size<=(t.max||-1)||Sh.has(t)||(Sh.add(t),setTimeout(()=>{t.clean(),Sh.delete(t)},100))}const Eh=function(t,e){const n=new Gc(t,e);return n.set=function(r,i){const a=Gc.prototype.set.call(this,r,i);return ob(this),a},n},n3=function(t,e){const n=new bh(t,e);return n.set=function(r,i){const a=bh.prototype.set.call(this,r,i);return ob(this),a},n};function sb(t,{max:e,makeCacheKey:n=r=>r}){const r=new Ci(!0),i=new Eh(e);return(...a)=>{const o=r.lookupArray(n(a)),s=i.get(o);if(s){if(s.error)throw s.error;return s.result}const c=i.set(o,{});try{return c.result=t(...a)}catch(u){throw c.error=u,u}}}const da=sb((t,e)=>{Je(t&&t.kind==="Document",1);const n=t.definitions.filter(r=>r.kind==="OperationDefinition");e&&Je(n.length==1&&n[0].operation===e,4,e,e,n[0].operation),Ei(t,{Field(r,i,a,o){var s;if(r.alias&&(r.alias.value==="__typename"||r.alias.value.startsWith("__ac_"))&&r.alias.value!==r.name.value){let c=t,u=[];for(const d of o)c=c[d],c.kind===gt.FIELD&&u.push(((s=c.alias)==null?void 0:s.value)||c.name.value);throw u.splice(-1,1,r.name.value),Lr(5,r.alias.value,u.join("."),n[0].operation,Ro(t,"(anonymous)"))}}})},{max:Bi.checkDocument||2e3});function r3(t){return t.length===0?el:new Ut(e=>{const{length:n}=t,r=new Array(n),i=new Map;t.forEach((c,u)=>{i.has(c)||i.set(c,new Set),i.get(c).add(u)});let a=i.size,o=i.size,s;i.forEach((c,u)=>{let d=!1;const h=u.subscribe({next:m=>{c.forEach(p=>r[p]=m),d||(d=!0,o--),o||(s||(s=new Set(t.filter(p=>p.dirty))),s.delete(u),s.size||(e.next(r.slice()),s=void 0))},complete:()=>{a--,a||e.complete()},error:e.error.bind(e)});e.add(h)})})}function Cr(...t){const e={};return t.forEach(n=>{n&&Reflect.ownKeys(n).forEach(r=>{const i=n[r];i!==void 0&&(e[r]=i)})}),e}function rl(t=[]){const e={};return t.forEach(n=>{e[n.name.value]=n}),e}function Dn(t){return t!==null&&typeof t=="object"}const{hasOwnProperty:i3}=Object.prototype,a3=function(t,e,n){return this.merge(t[n],e[n])},lb=t=>isNaN(+t)?{}:[];class No{constructor(e={}){ae(this,"options");ae(this,"reconciler");ae(this,"isObject",Dn);ae(this,"pastCopies",new Set);this.options=e,this.reconciler=e.reconciler||a3}merge(e,n,r={}){const i=r.atPath;if(i!=null&&i.length){const[a,...o]=i;e===void 0&&(e=lb(a));let s=e[a];s===void 0&&o.length&&(s=lb(o[0]));const c=this.merge(s,n,{...r,atPath:o});return s!==c&&(e=this.shallowCopyForMerge(e),e[a]=c),e}return Array.isArray(e)&&Array.isArray(n)&&this.options.arrayMerge==="truncate"&&e.length>n.length&&(e=e.slice(0,n.length),this.pastCopies.add(e)),Dn(n)&&Dn(e)?(Object.keys(n).forEach(a=>{if(i3.call(e,a)){const o=e[a];if(n[a]!==o){const s=this.reconciler(e,n,a);s!==o&&(e=this.shallowCopyForMerge(e),e[a]=s)}}else e=this.shallowCopyForMerge(e),e[a]=n[a]}),e):n}shallowCopyForMerge(e){return Dn(e)&&(this.pastCopies.has(e)||(Array.isArray(e)?e=e.slice(0):e={__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e))),e}}function Ch(t){const e={},n=t&&t.variableDefinitions;return n&&n.length&&n.forEach(r=>{r.defaultValue&&Oo(e,r.variable.name,r.defaultValue)}),e}function Yc(t,e){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":{const n=t.name.value;if(typeof e=="function")return e(n);const r=e&&e[n];return Je(r,9,n),r||null}default:return null}}function o3(t,e){let n=e;const r=[];return t.definitions.forEach(a=>{if(a.kind==="OperationDefinition")throw Lr(10,a.operation,a.name?` named '${a.name.value}'`:"");a.kind==="FragmentDefinition"&&r.push(a)}),typeof n>"u"&&(Je(r.length===1,11,r.length),n=r[0].name.value),{...t,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}},...t.definitions]}}function s3(t){Je(t.kind==="Document",6),Je(t.definitions.length<=1,7);const e=t.definitions[0];return Je(e.kind==="FragmentDefinition",8),e}function il(t){return t.definitions.filter(e=>e.kind==="FragmentDefinition")}function xh(t){da(t);let e;for(let n of t.definitions){if(n.kind==="OperationDefinition")return n;n.kind==="FragmentDefinition"&&!e&&(e=n)}if(e)return e;throw Lr(12)}function zi(t){return da(t),t.definitions.filter(e=>e.kind==="OperationDefinition")[0]}function l3(t){const e=zi(t);return Je(e&&e.operation==="query",13),e}const Hi=Object.assign(function(e){return JSON.stringify(e,c3)},{reset(){al=new n3(Bi.canonicalStringify||1e3)}});let al;Hi.reset();function c3(t,e){if(e&&typeof e=="object"){const n=Object.getPrototypeOf(e);if(n===Object.prototype||n===null){const r=Object.keys(e);if(r.every(u3))return e;const i=JSON.stringify(r);let a=al.get(i);if(!a){r.sort();const s=JSON.stringify(r);a=al.get(s)||r,al.set(i,a),al.set(s,a)}const o=Object.create(n);return a.forEach(s=>{o[s]=e[s]}),o}}return e}function u3(t,e,n){return e===0||n[e-1]<=t}const f3=["connection","include","skip","client","rest","export","nonreactive","stream"];let ol=Hi;const cb=Object.assign(function(t,e,n){if(e&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){const i=n.connection.filter?n.connection.filter:[];i.sort();const a={};i.forEach(s=>{a[s]=e[s]});const o=ol(a);if(o!=="{}")return`${n.connection.key}(${o})`}return n.connection.key}let r=t;if(e){const i=ol(e);i!=="{}"&&(r+=`(${i})`)}return n&&Object.keys(n).forEach(i=>{f3.indexOf(i)===-1&&(n[i]&&Object.keys(n[i]).length?r+=`@${i}(${ol(n[i])})`:r+=`@${i}`)}),r},{setStringify(t){const e=ol;return ol=t,e}});function Po(t){var e;return!!((e=t.errors)!=null&&e.length)}function Io(t,e,n){const r=new Set(t),i=r.size;return Ei(e,{Directive(a){if(r.delete(a.name.value)&&(!n||!r.size))return rh}}),n?!r.size:r.size<i}function d3(t){let e=!1;return Ei(t,{Directive:{enter(n){if(n.name.value==="client"&&n.arguments&&(e=n.arguments.some(r=>r.name.value==="always"&&r.value.kind==="BooleanValue"&&r.value.value===!0),e))return rh}}}),e}const gn=Array.isArray;function h3(t){return Dn(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function sl(t){return t.kind==="Field"}function _h(t){return Array.isArray(t)&&t.length>0}function Mo(t){return{__ref:String(t)}}function wK(t){return t}function p3(t){let e=t[0]||{};const n=t.length;if(n>1){const r=new No;for(let i=1;i<n;++i)e=r.merge(e,t[i])}return e}function Lo(t,e){return Cr(t,e,e.variables&&{variables:Cr({...t&&t.variables,...e.variables})})}function Ah(t){return t.catch(()=>{}),t}function m3(t,e){da(e);const n=ub(""),r=ub(""),i=v=>{for(let x=0,_;x<v.length&&(_=v[x]);++x)if(!gn(_)){if(_.kind===gt.OPERATION_DEFINITION)return n(_.name&&_.name.value);if(_.kind===gt.FRAGMENT_DEFINITION)return r(_.name.value)}return Je.error(14),null};let a=0;for(let v=e.definitions.length-1;v>=0;--v)e.definitions[v].kind===gt.OPERATION_DEFINITION&&++a;const o=g3(t),s=v=>_h(v)&&v.map(o).some(x=>x&&x.remove),c=new Map;let u=!1;const d={enter(v){if(s(v.directives))return u=!0,null}},h=Ei(e,{Field:d,InlineFragment:d,VariableDefinition:{enter(){return!1}},Variable:{enter(v,x,_,T,C){const w=i(C);w&&w.variables.add(v.name.value)}},FragmentSpread:{enter(v,x,_,T,C){if(s(v.directives))return u=!0,null;const w=i(C);w&&w.fragmentSpreads.add(v.name.value)}},FragmentDefinition:{enter(v,x,_,T){c.set(JSON.stringify(T),v)},leave(v,x,_,T){const C=c.get(JSON.stringify(T));if(v===C)return v;if(a>0&&v.selectionSet.selections.every(w=>w.kind===gt.FIELD&&w.name.value==="__typename"))return r(v.name.value).removed=!0,u=!0,null}},Directive:{leave(v){if(o(v))return u=!0,null}}});if(!u)return e;const m=v=>(v.transitiveVars||(v.transitiveVars=new Set(v.variables),v.removed||v.fragmentSpreads.forEach(x=>{m(r(x)).transitiveVars.forEach(_=>{v.transitiveVars.add(_)})})),v),p=new Set;h.definitions.forEach(v=>{v.kind===gt.OPERATION_DEFINITION?m(n(v.name&&v.name.value)).fragmentSpreads.forEach(x=>{p.add(x)}):v.kind===gt.FRAGMENT_DEFINITION&&a===0&&!r(v.name.value).removed&&p.add(v.name.value)}),p.forEach(v=>{m(r(v)).fragmentSpreads.forEach(x=>{p.add(x)})});const y=v=>!!(!p.has(v)||r(v).removed),b={enter(v){if(y(v.name.value))return null}};return v3(Ei(h,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave(v){if(v.variableDefinitions){const x=m(n(v.name&&v.name.value)).transitiveVars;if(x.size<v.variableDefinitions.length)return{...v,variableDefinitions:v.variableDefinitions.filter(_=>x.has(_.variable.name.value))}}}}}))}function ub(t){const e=new Map;return function(r=t){let i=e.get(r);return i||e.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function g3(t){const e=new Map,n=new Map;return t.forEach(r=>{r&&(r.name?e.set(r.name,r):r.test&&n.set(r.test,r))}),r=>{let i=e.get(r.name.value);return!i&&n.size&&n.forEach((a,o)=>{o(r)&&(i=a)}),i}}function fb(t,e){return!t||t.selectionSet.selections.every(n=>n.kind===gt.FRAGMENT_SPREAD&&fb(e[n.name.value],e))}function v3(t){return fb(zi(t)||s3(t),rl(il(t)))?null:t}function y3(t){return Ei(t,{FragmentSpread(e){var n;if(!((n=e.directives)!=null&&n.some(({name:r})=>r.value==="unmask")))return null}})}function Fo(t){return t.alias?t.alias.value:t.name.value}function Kc({directives:t},e){return!t||!t.length?!0:w3(t).every(({directive:n,ifArgument:r})=>{let i=!1;return r.value.kind==="Variable"?(i=e&&e[r.value.name.value],Je(i!==void 0,15,n.name.value)):i=r.value.value,n.name.value==="skip"?!i:i})}function b3({name:{value:t}}){return t==="skip"||t==="include"}function w3(t){const e=[];return t&&t.length&&t.forEach(n=>{if(!b3(n))return;const r=n.arguments,i=n.name.value;Je(r&&r.length===1,16,i);const a=r[0];Je(a.name&&a.name.value==="if",17,i);const o=a.value;Je(o&&(o.kind==="Variable"||o.kind==="BooleanValue"),18,i),e.push({directive:n,ifArgument:a})}),e}function S3(t,e){let n=null;t.directives&&(n={},t.directives.forEach(i=>{n[i.name.value]={},i.arguments&&i.arguments.forEach(({name:a,value:o})=>Oo(n[i.name.value],a,o,e))}));let r=null;return t.arguments&&t.arguments.length&&(r={},t.arguments.forEach(({name:i,value:a})=>Oo(r,i,a,e))),cb(t.name.value,r,n)}function ll(t){const e={data:t.data};return t.error&&(e.error=t.error),e}function kh(t,e=()=>{}){return n=>new Ut(r=>{let i=e();return n.subscribe({next(a){let o;try{o=t(a,i)}catch(s){r.error(s)}o!==void 0&&r.next(o)},error(a){r.error(a)},complete(){r.complete()}})})}function db(t,{data:e,...n},{data:r,...i},a){return dt(n,i)&&Zc(xh(t).selectionSet,e,r,{fragmentMap:rl(il(t)),variables:a})}function Zc(t,e,n,r){if(e===n)return!0;const i=new Set;return t.selections.every(a=>{if(i.has(a)||(i.add(a),!Kc(a,r.variables))||hb(a))return!0;if(sl(a)){const o=Fo(a),s=e&&e[o],c=n&&n[o],u=a.selectionSet;if(!u)return dt(s,c);const d=Array.isArray(s),h=Array.isArray(c);if(d!==h)return!1;if(d&&h){const m=s.length;if(c.length!==m)return!1;for(let p=0;p<m;++p)if(!Zc(u,s[p],c[p],r))return!1;return!0}return Zc(u,s,c,r)}else{const o=Yc(a,r.fragmentMap);if(o)return hb(o)?!0:Zc(o.selectionSet,e,n,r)}})}function hb(t){return!!t.directives&&t.directives.some(E3)}function E3(t){return t.name.value==="nonreactive"}function C3(t,e){let n,r;function i(a){return a!==n&&(n=a,r=e(n)),r}return Object.assign(t.pipe(fa(i),vh({bufferSize:1,refCount:!0})),{getCurrentResult:()=>i(t.getCurrentResult())})}const x3=sb(function(e,n,r){return C3(e,r)},{max:1,makeCacheKey:t=>t.slice(0,2)}),pb=Symbol.for("apollo.result.extensions"),ha=Symbol.for("apollo.result.streamInfo"),Th=Symbol.for("apollo.observableQuery.variablesUnknown");let In=null;const mb={};let _3=1;const A3=()=>class{constructor(){this.id=["slot",_3++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=In;e;e=e.parent)if(this.id in e.slots){const n=e.slots[this.id];if(n===mb)break;return e!==In&&(In.slots[this.id]=n),!0}return In&&(In.slots[this.id]=mb),!1}getValue(){if(this.hasValue())return In.slots[this.id]}withValue(e,n,r,i){const a={__proto__:null,[this.id]:e},o=In;In={parent:o,slots:a};try{return n.apply(i,r)}finally{In=o}}static bind(e){const n=In;return function(){const r=In;try{return In=n,e.apply(this,arguments)}finally{In=r}}}static noContext(e,n,r){if(In){const i=In;try{return In=null,e.apply(r,n)}finally{In=i}}else return e.apply(r,n)}};function gb(t){try{return t()}catch{}}const Oh="@wry/context:Slot",vb=gb(()=>globalThis)||gb(()=>global)||Object.create(null),Qc=vb[Oh]||Array[Oh]||(function(t){try{Object.defineProperty(vb,Oh,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}})(A3()),{bind:EK,noContext:CK}=Qc,qc=new Qc,{hasOwnProperty:k3}=Object.prototype,Rh=Array.from||function(t){const e=[];return t.forEach(n=>e.push(n)),e};function Nh(t){const{unsubscribe:e}=t;typeof e=="function"&&(t.unsubscribe=void 0,e())}const cl=[],T3=100;function jo(t,e){if(!t)throw new Error(e||"assertion failure")}function yb(t,e){const n=t.length;return n>0&&n===e.length&&t[n-1]===e[n-1]}function bb(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function wb(t){return t.slice(0)}class Jc{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Jc.count}peek(){if(this.value.length===1&&!pa(this))return Sb(this),this.value[0]}recompute(e){return jo(!this.recomputing,"already recomputing"),Sb(this),pa(this)?O3(this,e):bb(this.value)}setDirty(){this.dirty||(this.dirty=!0,Eb(this),Nh(this))}dispose(){this.setDirty(),kb(this),Ph(this,(e,n)=>{e.setDirty(),Tb(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=cl.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(Rh(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),cl.push(this.deps),this.deps=null)}}Jc.count=0;function Sb(t){const e=qc.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),pa(t)?xb(e,t):_b(e,t),e}function O3(t,e){return kb(t),qc.withValue(t,R3,[t,e]),P3(t,e)&&N3(t),bb(t.value)}function R3(t,e){t.recomputing=!0;const{normalizeResult:n}=t;let r;n&&t.value.length===1&&(r=wb(t.value)),t.value.length=0;try{if(t.value[0]=t.fn.apply(null,e),n&&r&&!yb(r,t.value))try{t.value[0]=n(t.value[0],r[0])}catch{}}catch(i){t.value[1]=i}t.recomputing=!1}function pa(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function N3(t){t.dirty=!1,!pa(t)&&Cb(t)}function Eb(t){Ph(t,xb)}function Cb(t){Ph(t,_b)}function Ph(t,e){const n=t.parents.size;if(n){const r=Rh(t.parents);for(let i=0;i<n;++i)e(r[i],t)}}function xb(t,e){jo(t.childValues.has(e)),jo(pa(e));const n=!pa(t);if(!t.dirtyChildren)t.dirtyChildren=cl.pop()||new Set;else if(t.dirtyChildren.has(e))return;t.dirtyChildren.add(e),n&&Eb(t)}function _b(t,e){jo(t.childValues.has(e)),jo(!pa(e));const n=t.childValues.get(e);n.length===0?t.childValues.set(e,wb(e.value)):yb(n,e.value)||t.setDirty(),Ab(t,e),!pa(t)&&Cb(t)}function Ab(t,e){const n=t.dirtyChildren;n&&(n.delete(e),n.size===0&&(cl.length<T3&&cl.push(n),t.dirtyChildren=null))}function kb(t){t.childValues.size>0&&t.childValues.forEach((e,n)=>{Tb(t,n)}),t.forgetDeps(),jo(t.dirtyChildren===null)}function Tb(t,e){e.parents.delete(t),t.childValues.delete(e),Ab(t,e)}function P3(t,e){if(typeof t.subscribe=="function")try{Nh(t),t.unsubscribe=t.subscribe.apply(null,e)}catch{return t.setDirty(),!1}return!0}const I3={setDirty:!0,dispose:!0,forget:!0};function Ob(t){const e=new Map;function n(r){const i=qc.getValue();if(i){let a=e.get(r);a||e.set(r,a=new Set),i.dependOn(a)}}return n.dirty=function(i,a){const o=e.get(i);if(o){const s=a&&k3.call(I3,a)?a:"setDirty";Rh(o).forEach(c=>c[s]()),e.delete(i),Nh(o)}},n}let Rb;function Nb(...t){return(Rb||(Rb=new Ci(typeof WeakMap=="function"))).lookupArray(t)}const Ih=new Set;function ul(t,{max:e=Math.pow(2,16),keyArgs:n,makeCacheKey:r=Nb,normalizeResult:i,subscribe:a,cache:o=bh}=Object.create(null)){const s=typeof o=="function"?new o(e,m=>m.dispose()):o,c=function(){const m=r.apply(null,n?n.apply(null,arguments):arguments);if(m===void 0)return t.apply(null,arguments);let p=s.get(m);p||(s.set(m,p=new Jc(t)),p.normalizeResult=i,p.subscribe=a,p.forget=()=>s.delete(m));const y=p.recompute(Array.prototype.slice.call(arguments));return s.set(m,p),Ih.add(s),qc.hasValue()||(Ih.forEach(b=>b.clean()),Ih.clear()),y};Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:e,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:a,cache:s});function u(m){const p=m&&s.get(m);p&&p.setDirty()}c.dirtyKey=u,c.dirty=function(){u(r.apply(null,arguments))};function d(m){const p=m&&s.get(m);if(p)return p.peek()}c.peekKey=d,c.peek=function(){return d(r.apply(null,arguments))};function h(m){return m?s.delete(m):!1}return c.forgetKey=h,c.forget=function(){return h(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}function M3(...t){return Nb.bind(null,...t)}class L3{constructor(){ae(this,"startRequest")}isIncrementalResult(e){return!1}prepareRequest(e){return Je(!Io(["defer","stream"],e.query),67),e}extractErrors(){}}function F3(t,{client:e}){const n={query:t.query,variables:t.variables||{},extensions:t.extensions||{},operationName:Ro(t.query),operationType:zi(t.query).operation};let r={...t.context};const i=o=>{typeof o=="function"?r={...r,...o(a())}:r={...r,...o}},a=()=>Object.freeze({...r});return Object.defineProperty(n,"setContext",{enumerable:!1,value:i}),Object.defineProperty(n,"getContext",{enumerable:!1,value:a}),Object.defineProperty(n,"client",{enumerable:!1,value:e}),n}function j3(t,e){const n={...t},r=new Set(Object.keys(t));return Ei(e,{Variable(i,a,o){o&&o.kind!=="VariableDefinition"&&r.delete(i.name.value)}}),r.forEach(i=>{delete n[i]}),n}class _n{constructor(e){ae(this,"left");ae(this,"right");e&&(this.request=e)}static empty(){return new _n(()=>el)}static from(e){if(e.length===0)return _n.empty();const[n,...r]=e;return n.concat(...r)}static split(e,n,r=new _n((i,a)=>a(i))){const i=new _n((a,o)=>e(a)?n.request(a,o):r.request(a,o));return Object.assign(i,{left:n,right:r})}static execute(e,n,r){return e.request(F3(n,r),()=>el)}static concat(...e){return _n.from(e)}split(e,n,r){return this.concat(_n.split(e,n,r))}concat(...e){return e.length===0?this:e.reduce(this.combine.bind(this),this)}combine(e,n){const r=new _n((i,a)=>e.request(i,o=>n.request(o,a)));return Object.assign(r,{left:e,right:n})}request(e,n){throw Lr(65)}}const Mh=_n.execute;function D3(t){return t}class Wi{constructor(e,n={}){ae(this,"transform");ae(this,"cached");ae(this,"resultCache",new WeakSet);ae(this,"left");ae(this,"right");this.transform=e,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=n.cache!==!1,this.resetCache()}getCacheKey(e){return[e]}static identity(){return new Wi(D3,{cache:!1})}static split(e,n,r=Wi.identity()){return Object.assign(new Wi(i=>(e(i)?n:r).transformDocument(i),{cache:!1}),{left:n,right:r})}resetCache(){if(this.cached){const e=new Ci;this.performWork=ul(Wi.prototype.performWork.bind(this),{makeCacheKey:n=>{const r=this.getCacheKey(n);if(r)return Je(Array.isArray(r),20),e.lookupArray(r)},max:Bi["documentTransform.cache"],cache:Gc})}}performWork(e){return da(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;const n=this.performWork(e);return this.resultCache.add(n),n}concat(e){return Object.assign(new Wi(n=>e.transformDocument(this.transformDocument(n)),{cache:!1}),{left:this,right:e})}}let Lh;const Ga=Object.assign(t=>{let e=Lh.get(t);return e||(e=G_(t),Lh.set(t,e)),e},{reset(){Lh=new Eh(Bi.print||2e3)}});Ga.reset();function zt(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}const Pb={kind:gt.FIELD,name:{kind:gt.NAME,value:"__typename"}},Ib=Object.assign(function(t){return Ei(t,{SelectionSet:{enter(e,n,r){if(r&&r.kind===gt.OPERATION_DEFINITION)return;const{selections:i}=e;if(!i||i.some(s=>s.kind===gt.FIELD&&(s.name.value==="__typename"||s.name.value.lastIndexOf("__",0)===0)))return;const o=r;if(!(o.kind===gt.FIELD&&o.directives&&o.directives.some(s=>s.name.value==="export")))return{...e,selections:[...i,Pb]}}}})},{added(t){return t===Pb}});function Mb(t,e){var n;return((n=zi(t))==null?void 0:n.operation)===e}function V3(t){return Mb(t,"mutation")}function U3(t){return Mb(t,"subscription")}function Lb(t){return t===7||t===8}function Xc(t){return!Lb(t)}class B3{constructor(){ae(this,"assumeImmutableResults",!1);ae(this,"fragmentWatches",new Ci(!0));ae(this,"onAfterBroadcast",e=>e());ae(this,"getFragmentDoc",ul(o3,{max:Bi["cache.fragmentQueryDocuments"]||1e3,cache:Gc,makeCacheKey:M3(this)}))}lookupFragment(e){return null}batch(e){const n=typeof e.optimistic=="string"?e.optimistic:e.optimistic===!1?null:void 0;let r;return this.performTransaction(()=>r=e.update(this),n),r}recordOptimisticTransaction(e,n){this.performTransaction(e,n)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,n=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:n})}watchFragment(e){const{fragment:n,fragmentName:r,from:i}=e,a=this.getFragmentDoc(n,r),s=(Array.isArray(i)?i:[i]).map(p=>p==null?p:this.toCacheId(p));if(!Array.isArray(i)){const p=this.watchSingleFragment(s[0],a,e);return i===null?p:x3(p,Symbol.for("apollo.transform.individualResult"),y=>({...y,data:y.data??{}}))}let c;function u(p){const y=p.reduce((b,v,x)=>(b.data.push(v.data),b.complete&&(b.complete=v.complete),b.dataState=b.complete?"complete":"partial",v.missing&&(b.missing||(b.missing={}),b.missing[x]=v.missing),b),{data:[],dataState:"complete",complete:!0});return dt(c,y)||(c=y),c}if(s.length===0)return H3;let d=!1;const h=s.map(p=>this.watchSingleFragment(p,a,e)),m=r3(h).pipe(fa(u),nl({subscribe:()=>d=!0,unsubscribe:()=>d=!1}),vh({bufferSize:1,refCount:!0}));return Object.assign(m,{getCurrentResult:()=>{if(d&&c)return c;const p=h.map(y=>y.getCurrentResult());return u(p)}})}watchSingleFragment(e,n,r){if(e===null)return z3;const{optimistic:i=!0,variables:a}=r,o=[n,Hi({id:e,optimistic:i,variables:a})],s=this.fragmentWatches.lookupArray(o);if(!s.observable){let d=function(m){const p=m.result;return(!u||!db(n,{data:u.data},{data:p},r.variables))&&(u={data:p,dataState:m.complete?"complete":"partial",complete:m.complete},m.missing&&(u.missing=m.missing.missing)),u},c=!1,u;const h=new Ut(m=>{c=!0;const p=this.watch({variables:a,returnPartialData:!0,id:e,query:n,optimistic:i,immediate:!0,callback:y=>{h.dirty=!0,this.onAfterBroadcast(()=>{m.next(d(y)),h.dirty=!1})}});return()=>{c=!1,p(),this.fragmentWatches.removeArray(o)}}).pipe(B9(),tl({connector:()=>new My(1),resetOnRefCountZero:()=>U9(0)}));s.observable=Object.assign(h,{dirty:!1,getCurrentResult:()=>c&&u?u:d(this.diff({id:e,query:n,returnPartialData:!0,optimistic:i,variables:a}))})}return s.observable}readFragment(e,n=!!e.optimistic){const r=e.from!==void 0?this.toCacheId(e.from):e.id;return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:r,optimistic:n})}writeQuery({id:e,data:n,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:n}))}writeFragment({data:e,fragment:n,fragmentName:r,...i}){const a=i.from!==void 0?this.toCacheId(i.from):i.id;return this.write(Object.assign(i,{query:this.getFragmentDoc(n,r),dataId:a,result:e}))}updateQuery(e,n){return this.batch({update(r){const i=r.readQuery(e),a=n(i);return a==null?i:(r.writeQuery({...e,data:a}),a)}})}updateFragment(e,n){return this.batch({update(r){const i=r.readFragment(e),a=n(i);return a==null?i:(r.writeFragment({...e,data:a}),a)}})}toCacheId(e){return typeof e=="string"?e:this.identify(e)}}const Fb=Object.freeze({data:null,dataState:"complete",complete:!0}),z3=Object.assign(new Ut(t=>{t.next(Fb)}),{dirty:!1,getCurrentResult:()=>Fb}),jb=Object.freeze({data:[],dataState:"complete",complete:!0}),H3=Object.assign(new Ut(t=>{t.next(jb)}),{getCurrentResult:()=>jb});class Fh extends Error{constructor(n,r,i,a){super(n);ae(this,"message");ae(this,"path");ae(this,"query");ae(this,"variables");ae(this,"missing");if(this.message=n,this.path=r,this.query=i,this.variables=a,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let o=this.path.length-1;o>=0;--o)this.missing={[this.path[o]]:this.missing}}else this.missing=this.path;this.__proto__=Fh.prototype}}const{hasOwnProperty:An}=Object.prototype;function Db({__typename:t,id:e,_id:n},r){if(typeof t=="string"&&(r&&(r.keyObject=e!=null?{id:e}:n!=null?{_id:n}:void 0),e==null&&n!=null&&(e=n),e!=null))return`${t}:${typeof e=="number"||typeof e=="string"?e:JSON.stringify(e)}`}const W3={dataIdFromObject:Db,resultCaching:!0};function G3(t){return Cr(W3,t)}const Vb=/^[_a-z][_0-9a-z]*/i;function Do(t){const e=t.match(Vb);return e?e[0]:t}function jh(t,e,n){return Dn(e)?gn(e)?e.every(r=>jh(t,r,n)):t.selections.every(r=>{if(sl(r)&&Kc(r,n)){const i=Fo(r);return An.call(e,i)&&(!r.selectionSet||jh(r.selectionSet,e[i],n))}return!0}):!1}function Vo(t){return Dn(t)&&!zt(t)&&!gn(t)}function Y3(){return new No}function Ub(t,e){const n=rl(il(t));return{fragmentMap:n,lookupFragment(r){let i=n[r];return!i&&e&&(i=e.lookup(r)),i||null}}}const $c={},Dh=()=>$c,Bb={};class eu{constructor(e,n){ae(this,"policies");ae(this,"group");ae(this,"data",{});ae(this,"rootIds",{});ae(this,"refs",{});ae(this,"getFieldValue",(e,n)=>zt(e)?this.get(e.__ref,n):e&&e[n]);ae(this,"canRead",e=>zt(e)?this.has(e.__ref):typeof e=="object");ae(this,"toReference",(e,n)=>{if(typeof e=="string")return Mo(e);if(zt(e))return e;const[r]=this.policies.identify(e);if(r){const i=Mo(r);return n&&this.merge(r,e),i}});this.policies=e,this.group=n}toObject(){return{...this.data}}has(e){return this.lookup(e,!0)!==void 0}get(e,n){if(this.group.depend(e,n),An.call(this.data,e)){const r=this.data[e];if(r&&An.call(r,n))return r[n]}if(n==="__typename"&&An.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof xi)return this.parent.get(e,n)}lookup(e,n){if(n&&this.group.depend(e,"__exists"),An.call(this.data,e))return this.data[e];if(this instanceof xi)return this.parent.lookup(e,n);if(this.policies.rootTypenamesById[e])return{}}merge(e,n){let r;zt(e)&&(e=e.__ref),zt(n)&&(n=n.__ref);const i=typeof e=="string"?this.lookup(r=e):e,a=typeof n=="string"?this.lookup(r=n):n;if(!a)return;Je(typeof r=="string",99);const o=new No({reconciler:Q3}).merge(i,a);if(this.data[r]=o,o!==i&&(delete this.refs[r],this.group.caching)){const s={};i||(s.__exists=1),Object.keys(a).forEach(c=>{if(!i||i[c]!==o[c]){s[c]=1;const u=Do(c);u!==c&&!this.policies.hasKeyArgs(o.__typename,u)&&(s[u]=1),o[c]===void 0&&!(this instanceof xi)&&delete o[c]}}),s.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===o.__typename&&delete s.__typename,Object.keys(s).forEach(c=>this.group.dirty(r,c))}}modify(e,n,r){const i=this.lookup(e);if(i){const a={};let o=!1,s=!0;const c={DELETE:$c,INVALIDATE:Bb,isReference:zt,toReference:this.toReference,canRead:this.canRead,readField:(u,d)=>this.policies.readField(typeof u=="string"?{fieldName:u,from:d||Mo(e)}:u,{store:this})};if(Object.keys(i).forEach(u=>{const d=Do(u);let h=i[u];if(h===void 0)return;const m=typeof n=="function"?n:n[u]||(r?void 0:n[d]);if(m){let p=m===Dh?$c:m(h,{...c,fieldName:d,storeFieldName:u,storage:this.getStorage(e,u)});p===Bb?this.group.dirty(e,u):(p===$c&&(p=void 0),p!==h&&(a[u]=p,o=!0,h=p))}h!==void 0&&(s=!1)}),o)return this.merge(e,a),s&&(this instanceof xi?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,n,r){const i=this.lookup(e);if(i){const a=this.getFieldValue(i,"__typename"),o=n&&r?this.policies.getStoreFieldName({typename:a,fieldName:n,args:r}):n;return this.modify(e,o?{[o]:Dh}:Dh,!!r)}return!1}evict(e,n){let r=!1;return e.id&&(An.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof xi&&this!==n&&(r=this.parent.evict(e,n)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){const e=this.toObject(),n=[];return this.getRootIdSet().forEach(r=>{An.call(this.policies.rootTypenamesById,r)||n.push(r)}),n.length&&(e.__META={extraRootIds:n.sort()}),e}replace(e){if(Object.keys(this.data).forEach(n=>{e&&An.call(e,n)||this.delete(n)}),e){const{__META:n,...r}=e;Object.keys(r).forEach(i=>{this.merge(i,r[i])}),n&&n.extraRootIds.forEach(this.retain,this)}}retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){const n=--this.rootIds[e];return n||delete this.rootIds[e],n}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof xi?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){const e=this.getRootIdSet(),n=this.toObject();e.forEach(i=>{An.call(n,i)&&(Object.keys(this.findChildRefIds(i)).forEach(e.add,e),delete n[i])});const r=Object.keys(n);if(r.length){let i=this;for(;i instanceof xi;)i=i.parent;r.forEach(a=>i.delete(a))}return r}findChildRefIds(e){if(!An.call(this.refs,e)){const n=this.refs[e]={},r=this.data[e];if(!r)return n;const i=new Set([r]);i.forEach(a=>{zt(a)&&(n[a.__ref]=!0),Dn(a)&&Object.keys(a).forEach(o=>{const s=a[o];Dn(s)&&i.add(s)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}get supportsResultCaching(){return this.group.caching}}class zb{constructor(e,n=null){ae(this,"caching");ae(this,"parent");ae(this,"d",null);ae(this,"keyMaker");this.caching=e,this.parent=n,this.resetCaching()}resetCaching(){this.d=this.caching?Ob():null,this.keyMaker=new Ci}depend(e,n){if(this.d){this.d(Vh(e,n));const r=Do(n);r!==n&&this.d(Vh(e,r)),this.parent&&this.parent.depend(e,n)}}dirty(e,n){this.d&&this.d.dirty(Vh(e,n),n==="__exists"?"forget":"setDirty")}}function Vh(t,e){return e+"#"+t}function Hb(t,e){fl(t)&&t.group.depend(e,"__exists")}class K3 extends eu{constructor({policies:n,resultCaching:r=!0,seed:i}){super(n,new zb(r));ae(this,"stump",new Z3(this));ae(this,"storageTrie",new Ci);i&&this.replace(i)}addLayer(n,r){return this.stump.addLayer(n,r)}removeLayer(){return this}getStorage(){return this.storageTrie.lookupArray(arguments)}}eu.Root=K3;class xi extends eu{constructor(n,r,i,a){super(r.policies,a);ae(this,"id");ae(this,"parent");ae(this,"replay");ae(this,"group");this.id=n,this.parent=r,this.replay=i,this.group=a,i(this)}addLayer(n,r){return new xi(n,this,r,this.group)}removeLayer(n){const r=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(i=>{const a=this.data[i],o=r.lookup(i);o?a?a!==o&&Object.keys(a).forEach(s=>{dt(a[s],o[s])||this.group.dirty(i,s)}):(this.group.dirty(i,"__exists"),Object.keys(o).forEach(s=>{this.group.dirty(i,s)})):this.delete(i)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(n){const r=this.parent.findChildRefIds(n);return An.call(this.data,n)?{...r,...super.findChildRefIds(n)}:r}getStorage(...n){let r=this.parent;for(;r.parent;)r=r.parent;return r.getStorage(...n)}}class Z3 extends xi{constructor(e){super("EntityStore.Stump",e,()=>{},new zb(e.group.caching,e.group))}removeLayer(){return this}merge(e,n){return this.parent.merge(e,n)}}function Q3(t,e,n){const r=t[n],i=e[n];return dt(r,i)?r:i}function fl(t){return!!(t&&t.supportsResultCaching)}const Wb=new Qc;function q3(t){var r,i;const e=(r=t.directives)==null?void 0:r.find(({name:a})=>a.value==="unmask");if(!e)return"mask";const n=(i=e.arguments)==null?void 0:i.find(({name:a})=>a.value==="mode");return n&&"value"in n.value&&n.value.value==="migrate"?"migrate":"unmask"}function Gb(t,e,n){return Wb.withValue(!0,()=>dl(t,e,n,!1))}function J3(t,e){if(e.has(t))return e.get(t);const n=Array.isArray(t)?[]:{};return e.set(t,n),n}function dl(t,e,n,r,i){const{knownChanged:a}=n,o=J3(t,n.mutableTargets);if(Array.isArray(t)){for(const[s,c]of Array.from(t.entries())){if(c===null){o[s]=null;continue}const u=dl(c,e,n,r);a.has(u)&&a.add(o),o[s]=u}return a.has(o)?o:t}for(const s of e.selections){let c;if(r&&a.add(o),s.kind===gt.FIELD){const u=Fo(s),d=s.selectionSet;if(c=o[u]||t[u],c===void 0)continue;if(d&&c!==null){const h=dl(t[u],d,n,r);a.has(h)&&(c=h)}o[u]=c}if(s.kind===gt.INLINE_FRAGMENT&&(!s.typeCondition||n.cache.fragmentMatches(s,t.__typename))&&(c=dl(t,s.selectionSet,n,r)),s.kind===gt.FRAGMENT_SPREAD){const u=s.name.value,d=n.fragmentMap[u]||(n.fragmentMap[u]=n.cache.lookupFragment(u));Je(d,39,u);const h=q3(s);h!=="mask"&&(c=dl(t,d.selectionSet,n,h==="migrate"))}a.has(c)&&a.add(o)}return"__typename"in t&&!("__typename"in o)&&(o.__typename=t.__typename),Object.keys(o).length!==Object.keys(t).length&&a.add(o),a.has(o)?o:t}function X3(t,e,n,r){const i=e.definitions.filter(o=>o.kind===gt.FRAGMENT_DEFINITION);typeof r>"u"&&(Je(i.length===1,41,i.length),r=i[0].name.value);const a=i.find(o=>o.name.value===r);return Je(!!a,42,r),t==null||dt(t,{})?t:Gb(t,a.selectionSet,{operationName:a.name.value,fragmentMap:rl(il(e)),cache:n,mutableTargets:new WeakMap,knownChanged:new WeakSet})}function $3(t,e,n){var i;const r=zi(e);return Je(r,43),t==null?t:Gb(t,r.selectionSet,{operationType:r.operation,operationName:(i=r.name)==null?void 0:i.value,fragmentMap:rl(il(e)),cache:n,mutableTargets:new WeakMap,knownChanged:new WeakSet})}const Yb={};function Uh(t){const e=JSON.stringify(t);return Yb[e]||(Yb[e]={})}function Kb(t){const e=Uh(t);return e.keyFieldsFn||(e.keyFieldsFn=(n,r)=>{const i=(o,s)=>r.readField(s,o),a=r.keyObject=Bh(t,o=>{let s=Uo(r.storeObject,o,i);return s===void 0&&n!==r.storeObject&&An.call(n,o[0])&&(s=Uo(n,o,qb)),Je(s!==void 0,102,o.join("."),n),s});return`${r.typename}:${JSON.stringify(a)}`})}function Zb(t){const e=Uh(t);return e.keyArgsFn||(e.keyArgsFn=(n,{field:r,variables:i,fieldName:a})=>{const o=Bh(t,c=>{const u=c[0],d=u.charAt(0);if(d==="@"){if(r&&_h(r.directives)){const h=u.slice(1),m=r.directives.find(y=>y.name.value===h),p=m&&yh(m,i);return p&&Uo(p,c.slice(1))}return}if(d==="$"){const h=u.slice(1);if(i&&An.call(i,h)){const m=c.slice(0);return m[0]=h,Uo(i,m)}return}if(n)return Uo(n,c)}),s=JSON.stringify(o);return(n||s!=="{}")&&(a+=":"+s),a})}function Bh(t,e){const n=new No;return Qb(t).reduce((r,i)=>{let a=e(i);if(a!==void 0){for(let o=i.length-1;o>=0;--o)a={[i[o]]:a};r=n.merge(r,a)}return r},{})}function Qb(t){const e=Uh(t);if(!e.paths){const n=e.paths=[],r=[];t.forEach((i,a)=>{gn(i)?(Qb(i).forEach(o=>n.push(r.concat(o))),r.length=0):(r.push(i),gn(t[a+1])||(n.push(r.slice(0)),r.length=0))})}return e.paths}function qb(t,e){return t[e]}function Uo(t,e,n){return n=n||qb,Jb(e.reduce(function r(i,a){return gn(i)?i.map(o=>r(o,a)):i&&n(i,a)},t))}function Jb(t){return Dn(t)?gn(t)?t.map(Jb):Bh(Object.keys(t).sort(),e=>Uo(t,e)):t}const Xb=new Qc,$b=new WeakMap;function hl(t){let e=$b.get(t);return e||$b.set(t,e={vars:new Set,dep:Ob()}),e}function e2(t){hl(t).vars.forEach(e=>e.forgetCache(t))}function e7(t){hl(t).vars.forEach(e=>e.attachCache(t))}function t7(t){const e=new Set,n=new Set,r=function(a){if(arguments.length>0){if(t!==a){t=a,e.forEach(s=>{hl(s).dep.dirty(r),n7(s)});const o=Array.from(n);n.clear(),o.forEach(s=>s(t))}}else{const o=Xb.getValue();o&&(i(o),hl(o).dep(r))}return t};r.onNextChange=a=>(n.add(a),()=>{n.delete(a)});const i=r.attachCache=a=>(e.add(a),hl(a).vars.add(r),r);return r.forgetCache=a=>e.delete(a),r}function n7(t){t.broadcastWatches&&t.broadcastWatches()}function zh(t){return t.args!==void 0?t.args:t.field?yh(t.field,t.variables):null}const r7=()=>{},t2=(t,e)=>e.fieldName,n2=(t,e,{mergeObjects:n})=>n(t,e),r2=(t,e)=>e,i7=(t,e,{streamFieldInfo:n,existingData:r})=>{if(!t&&!r)return e;const i=[],a=t??r,o=n!=null&&n.isLastChunk?e.length:Math.max(a.length,e.length);for(let s=0;s<o;s++)i[s]=e[s]===void 0?a[s]:e[s];return i};class a7{constructor(e){ae(this,"config");ae(this,"typePolicies",{});ae(this,"toBeAdded",{});ae(this,"supertypeMap",new Map);ae(this,"fuzzySubtypes",new Map);ae(this,"cache");ae(this,"rootIdsByTypename",{});ae(this,"rootTypenamesById",{});ae(this,"usingPossibleTypes",!1);this.config=e,this.config={dataIdFromObject:Db,...e},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}identify(e,n){var d;const r=this,i=n&&(n.typename||((d=n.storeObject)==null?void 0:d.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];const a=n&&n.storeObject||e,o={...n,typename:i,storeObject:a,readField:n&&n.readField||((...h)=>{const m=Hh(h,a);return r.readField(m,{store:r.cache.data,variables:m.variables})})};let s;const c=i&&this.getTypePolicy(i);let u=c&&c.keyFn||this.config.dataIdFromObject;return Wb.withValue(!0,()=>{for(;u;){const h=u({...e,...a},o);if(gn(h))u=Kb(h);else{s=h;break}}}),s=s?String(s):void 0,o.keyObject?[s,o.keyObject]:[s]}addTypePolicies(e){Object.keys(e).forEach(n=>{const{queryType:r,mutationType:i,subscriptionType:a,...o}=e[n];r&&this.setRootTypename("Query",n),i&&this.setRootTypename("Mutation",n),a&&this.setRootTypename("Subscription",n),An.call(this.toBeAdded,n)?this.toBeAdded[n].push(o):this.toBeAdded[n]=[o]})}updateTypePolicy(e,n,r){const i=this.getTypePolicy(e),{keyFields:a,fields:o}=n;function s(c,u){c.merge=typeof u=="function"?u:u===!0?n2:u===!1?r2:c.merge}s(i,n.merge),i.keyFn=a===!1?r7:gn(a)?Kb(a):typeof a=="function"?a:i.keyFn,o&&Object.keys(o).forEach(c=>{let u=r[c];(!u||(u==null?void 0:u.typename)!==e)&&(u=r[c]={typename:e});const d=o[c];if(typeof d=="function")u.read=d;else{const{keyArgs:h,read:m,merge:p}=d;u.keyFn=h===!1?t2:gn(h)?Zb(h):typeof h=="function"?h:u.keyFn,typeof m=="function"&&(u.read=m),s(u,p)}u.read&&u.merge&&(u.keyFn=u.keyFn||t2)})}setRootTypename(e,n=e){const r="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(Je(!i||i===e,103,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(n=>{this.getSupertypeSet(n,!0),e[n].forEach(r=>{this.getSupertypeSet(r,!0).add(n);const i=r.match(Vb);(!i||i[0]!==r)&&this.fuzzySubtypes.set(r,new RegExp(r))})})}getTypePolicy(e){if(!An.call(this.typePolicies,e)){const r=this.typePolicies[e]={};r.fields={};let i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((a,o)=>{if(a.test(e)){const s=this.supertypeMap.get(o);s&&s.forEach(c=>i.add(c))}})),i&&i.size&&i.forEach(a=>{const{fields:o,...s}=this.getTypePolicy(a);Object.assign(r,s),Object.assign(r.fields,o)})}const n=this.toBeAdded[e];return n&&n.length&&n.splice(0).forEach(r=>{this.updateTypePolicy(e,r,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,n){if(e)return this.getTypePolicy(e).fields[n]}getSupertypeSet(e,n){let r=this.supertypeMap.get(e);return!r&&n&&this.supertypeMap.set(e,r=new Set),r}fragmentMatches(e,n,r,i){if(!e.typeCondition)return!0;if(!n)return!1;const a=e.typeCondition.name.value;if(n===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a)){const o=this.getSupertypeSet(n,!0),s=[o],c=d=>{const h=this.getSupertypeSet(d,!1);h&&h.size&&s.indexOf(h)<0&&s.push(h)};let u=!!(r&&this.fuzzySubtypes.size);for(let d=0;d<s.length;++d){const h=s[d];if(h.has(a))return o.has(a)||o.add(a),!0;h.forEach(c),u&&d===s.length-1&&jh(e.selectionSet,r,i)&&(u=!1,this.fuzzySubtypes.forEach((m,p)=>{const y=n.match(m);y&&y[0]===n&&c(p)}))}}return!1}hasKeyArgs(e,n){const r=this.getFieldPolicy(e,n);return!!(r&&r.keyFn)}getStoreFieldName(e){const{typename:n,fieldName:r}=e,i=this.getFieldPolicy(n,r);let a,o=i&&i.keyFn;if(o&&n){const s={typename:n,fieldName:r,field:e.field||null,variables:e.variables},c=zh(e);for(;o;){const u=o(c,s);if(gn(u))o=Zb(u);else{a=u||r;break}}}return a===void 0&&(a=e.field?S3(e.field,e.variables):cb(r,zh(e))),a===!1?r:r===Do(a)?a:r+":"+a}readField(e,n){const r=e.from;if(!r||!(e.field||e.fieldName))return;if(e.typename===void 0){const d=n.store.getFieldValue(r,"__typename");d&&(e.typename=d)}const a=this.getStoreFieldName(e),o=Do(a),s=n.store.getFieldValue(r,a),c=this.getFieldPolicy(e.typename,o),u=c&&c.read;if(u){const d=i2(this,r,e,n,n.store.getStorage(zt(r)?r.__ref:r,a));return Xb.withValue(this.cache,u,[s,d])}return s}getReadFunction(e,n){const r=this.getFieldPolicy(e,n);return r&&r.read}getMergeFunction(e,n,r){let i=this.getFieldPolicy(e,n),a=i&&i.merge;return!a&&r&&(i=this.getTypePolicy(r),a=i&&i.merge),a}runMergeFunction(e,n,{field:r,typename:i,merge:a,path:o},s,c){var m,p,y;const u=e;if(a===n2)return a2(s.store)(e,n);if(a===r2)return n;s.overwrite&&(e=void 0);const d=(y=(p=(m=s.extensions)==null?void 0:m[ha])==null?void 0:p.deref())==null?void 0:y.peekArray(o);if(d){const{current:b,previous:v}=d;if(v&&dt(v.incoming,n)&&dt(v.streamFieldInfo,b))return v.result}const h=a(e,n,o7(this,void 0,{typename:i,fieldName:r.name.value,field:r,variables:s.variables,path:o},s,c||{},u));return d&&(d.previous={incoming:n,streamFieldInfo:d.current,result:h}),h}}function i2(t,e,n,r,i){const a=t.getStoreFieldName(n),o=Do(a),s=n.variables||r.variables,{toReference:c,canRead:u}=r.store;return{args:zh(n),field:n.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:zt,toReference:c,storage:i,cache:t.cache,canRead:u,readField(...d){return t.readField(Hh(d,e,s),r)},mergeObjects:a2(r.store)}}function o7(t,e,n,r,i,a){var c;const o={...i2(t,e,n,r,i),extensions:r.extensions,existingData:a},s=r.extensions;if(s&&ha in s){const{[ha]:u,...d}=s,h=(c=u==null?void 0:u.deref())==null?void 0:c.peekArray(n.path);h&&(o.streamFieldInfo=h.current),o.extensions=Object.keys(d).length===0?void 0:d}return o}function Hh(t,e,n){const{0:r,1:i,length:a}=t;let o;return typeof r=="string"?o={fieldName:r,from:a>1?i:e}:(o={...r},An.call(o,"from")||(o.from=e)),o.variables===void 0&&(o.variables=n),o}function a2(t){return function(n,r){if(gn(n)||gn(r))throw Lr(106);if(Dn(n)&&Dn(r)){const i=t.getFieldValue(n,"__typename"),a=t.getFieldValue(r,"__typename");if(i&&a&&i!==a)return r;if(zt(n)&&Vo(r))return t.merge(n.__ref,r),n;if(Vo(n)&&zt(r))return t.merge(n,r.__ref),r;if(Vo(n)&&Vo(r))return{...n,...r}}return r}}function o2(t){return[t.selectionSet,t.objectOrReference,t.context]}class s7{constructor(e){ae(this,"executeSelectionSet");ae(this,"executeSubSelectedArray");ae(this,"config");ae(this,"knownResults",new WeakMap);this.config=e,this.executeSelectionSet=ul(n=>{const r=o2(n),i=this.executeSelectionSet.peek(...r);return i||(Hb(n.context.store,n.enclosingRef.__ref),this.execSelectionSetImpl(n))},{max:Bi["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:o2,makeCacheKey(n,r,i){if(fl(i.store))return i.store.makeCacheKey(n,zt(r)?r.__ref:r,i.varString)}}),this.executeSubSelectedArray=ul(n=>(Hb(n.context.store,n.enclosingRef.__ref),this.execSubSelectedArrayImpl(n)),{max:Bi["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:n,array:r,context:i}){if(fl(i.store))return i.store.makeCacheKey(n,r,i.varString)}})}diffQueryAgainstStore({store:e,query:n,rootId:r="ROOT_QUERY",variables:i,returnPartialData:a=!0}){const o=this.config.cache.policies;i={...Ch(l3(n)),...i};const s=Mo(r),c=this.executeSelectionSet({selectionSet:xh(n).selectionSet,objectOrReference:s,enclosingRef:s,context:{store:e,query:n,policies:o,variables:i,varString:Hi(i),...Ub(n,this.config.fragments)}});let u;c.missing&&(u=new Fh(l7(c.missing),c.missing,n,i));const d=!u,{result:h}=c;return{result:d?h:a?Object.keys(h).length===0?null:h:null,complete:d,missing:u}}isFresh(e,n,r,i){if(fl(i.store)&&this.knownResults.get(e)===r){const a=this.executeSelectionSet.peek(r,n,i);if(a&&e===a.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:n,enclosingRef:r,context:i}){if(zt(n)&&!i.policies.rootTypenamesById[n.__ref]&&!i.store.has(n.__ref))return{result:{},missing:`Dangling reference to missing ${n.__ref} object`};const{variables:a,policies:o,store:s}=i,c=s.getFieldValue(n,"__typename"),u=[];let d;const h=new No;typeof c=="string"&&!o.rootIdsByTypename[c]&&u.push({__typename:c});function m(x,_){return x.missing&&(d=h.merge(d,{[_]:x.missing})),x.result}const p=new Set(e.selections);p.forEach(x=>{if(Kc(x,a))if(sl(x)){let _=o.readField({fieldName:x.name.value,field:x,variables:i.variables,from:n},i);const T=Fo(x);_===void 0?Ib.added(x)||(d=h.merge(d,{[T]:`Can't find field '${x.name.value}' on ${zt(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)}`})):gn(_)?_.length>0&&(_=m(this.executeSubSelectedArray({field:x,array:_,enclosingRef:r,context:i}),T)):x.selectionSet&&_!=null&&(_=m(this.executeSelectionSet({selectionSet:x.selectionSet,objectOrReference:_,enclosingRef:zt(_)?_:r,context:i}),T)),_!==void 0&&u.push({[T]:_})}else{const _=Yc(x,i.lookupFragment);if(!_&&x.kind===gt.FRAGMENT_SPREAD)throw Lr(107,x.name.value);_&&o.fragmentMatches(_,c)&&_.selectionSet.selections.forEach(p.add,p)}});const b={result:p3(u),missing:d},v=b;return v.result&&this.knownResults.set(v.result,e),v}execSubSelectedArrayImpl({field:e,array:n,enclosingRef:r,context:i}){let a,o=new No;function s(c,u){return c.missing&&(a=o.merge(a,{[u]:c.missing})),c.result}return e.selectionSet&&(n=n.filter(c=>c===void 0||i.store.canRead(c))),n=n.map((c,u)=>c===null?null:gn(c)?s(this.executeSubSelectedArray({field:e,array:c,enclosingRef:r,context:i}),u):e.selectionSet?s(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:c,enclosingRef:zt(c)?c:r,context:i}),u):c),{result:n,missing:a}}}function l7(t){try{JSON.stringify(t,(e,n)=>{if(typeof n=="string")throw n;return n})}catch(e){return e}}function Wh(t,e,n){const r=`${e}${n}`;let i=t.flavors.get(r);return i||t.flavors.set(r,i=t.clientOnly===e&&t.deferred===n?t:{...t,clientOnly:e,deferred:n}),i}class c7{constructor(e,n,r){ae(this,"cache");ae(this,"reader");ae(this,"fragments");this.cache=e,this.reader=n,this.fragments=r}writeToStore(e,{query:n,result:r,dataId:i,variables:a,overwrite:o,extensions:s}){const c=zi(n),u=Y3();a={...Ch(c),...a};const d={store:e,written:{},merge(m,p){return u.merge(m,p)},variables:a,varString:Hi(a),...Ub(n,this.fragments),overwrite:!!o,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:s},h=this.processSelectionSet({result:r||{},dataId:i,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:d,path:[]});if(!zt(h))throw Lr(109,r);return d.incomingById.forEach(({storeObject:m,mergeTree:p,fieldNodeSet:y},b)=>{const v=Mo(b);if(p&&p.map.size){const x=this.applyMerges(p,v,m,d);if(zt(x))return;m=x}e.merge(b,m)}),e.retain(h.__ref),h}processSelectionSet({dataId:e,result:n,selectionSet:r,context:i,mergeTree:a,path:o}){const{policies:s}=this.cache;let c={};const u=e&&s.rootTypenamesById[e]||Yh(n,r,i.fragmentMap)||e&&i.store.get(e,"__typename");typeof u=="string"&&(c.__typename=u);const d=(...m)=>{const p=Hh(m,c,i.variables);if(zt(p.from)){const y=i.incomingById.get(p.from.__ref);if(y){const b=s.readField({...p,from:y.storeObject},i);if(b!==void 0)return b}}return s.readField(p,i)},h=new Set;this.flattenFields(r,n,i,u).forEach((m,p)=>{var x;const y=Fo(p),b=n[y],v=[...o,p.name.value];if(h.add(p),b!==void 0){const _=s.getStoreFieldName({typename:u,fieldName:p.name.value,field:p,variables:m.variables}),T=l2(a,_);let C=this.processFieldValue(b,p,p.selectionSet?Wh(m,!1,!1):m,T,v),w;p.selectionSet&&(zt(C)||Vo(C))&&(w=d("__typename",C));const A=s.getMergeFunction(u,p.name.value,w);A?T.info={field:p,typename:u,merge:A,path:v}:Io(["stream"],p)&&Array.isArray(C)&&((x=m.extensions)!=null&&x[ha])?T.info={field:p,typename:u,merge:i7,path:v}:c2(a,_),c=m.merge(c,{[_]:C})}});try{const[m,p]=s.identify(n,{typename:u,selectionSet:r,fragmentMap:i.fragmentMap,storeObject:c,readField:d});e=e||m,p&&(c=i.merge(c,p))}catch(m){if(!e)throw m}if(typeof e=="string"){const m=Mo(e),p=i.written[e]||(i.written[e]=[]);if(p.indexOf(r)>=0||(p.push(r),this.reader&&this.reader.isFresh(n,m,r,i)))return m;const y=i.incomingById.get(e);return y?(y.storeObject=i.merge(y.storeObject,c),y.mergeTree=Gh(y.mergeTree,a),h.forEach(b=>y.fieldNodeSet.add(b))):i.incomingById.set(e,{storeObject:c,mergeTree:tu(a)?void 0:a,fieldNodeSet:h}),m}return c}processFieldValue(e,n,r,i,a){return!n.selectionSet||e===null?e:gn(e)?e.map((o,s)=>{const c=this.processFieldValue(o,n,r,l2(i,s),[...a,s]);return c2(i,s),c}):this.processSelectionSet({result:e,selectionSet:n.selectionSet,context:r,mergeTree:i,path:a})}flattenFields(e,n,r,i=Yh(n,e,r.fragmentMap)){const a=new Map,{policies:o}=this.cache,s=new Ci(!1);return(function c(u,d){const h=s.lookup(u,d.clientOnly,d.deferred);h.visited||(h.visited=!0,u.selections.forEach(m=>{if(!Kc(m,r.variables))return;let{clientOnly:p,deferred:y}=d;if(!(p&&y)&&_h(m.directives)&&m.directives.forEach(b=>{const v=b.name.value;if(v==="client"&&(p=!0),v==="defer"){const x=yh(b,r.variables);(!x||x.if!==!1)&&(y=!0)}}),sl(m)){const b=a.get(m);b&&(p=p&&b.clientOnly,y=y&&b.deferred),a.set(m,Wh(r,p,y))}else{const b=Yc(m,r.lookupFragment);if(!b&&m.kind===gt.FRAGMENT_SPREAD)throw Lr(111,m.name.value);b&&o.fragmentMatches(b,i,n,r.variables)&&c(b.selectionSet,Wh(r,p,y))}}))})(e,r),a}applyMerges(e,n,r,i,a){if(e.map.size&&!zt(r)){const o=!gn(r)&&(zt(n)||Vo(n))?n:void 0,s=r;o&&!a&&(a=[zt(o)?o.__ref:o]);let c;const u=(d,h)=>gn(d)?typeof h=="number"?d[h]:void 0:i.store.getFieldValue(d,String(h));e.map.forEach((d,h)=>{const m=u(o,h),p=u(s,h);if(p===void 0)return;a&&a.push(h);const y=this.applyMerges(d,m,p,i,a);y!==p&&(c=c||new Map,c.set(h,y)),a&&Je(a.pop()===h)}),c&&(r=gn(s)?s.slice(0):{...s},c.forEach((d,h)=>{r[h]=d}))}return e.info?this.cache.policies.runMergeFunction(n,r,e.info,i,a&&i.store.getStorage(...a)):r}}const s2=[];function l2({map:t},e){return t.has(e)||t.set(e,s2.pop()||{map:new Map}),t.get(e)}function Gh(t,e){if(t===e||!e||tu(e))return t;if(!t||tu(t))return e;const n=t.info&&e.info?{...t.info,...e.info}:t.info||e.info,r=t.map.size&&e.map.size,i=r?new Map:t.map.size?t.map:e.map,a={info:n,map:i};if(r){const o=new Set(e.map.keys());t.map.forEach((s,c)=>{a.map.set(c,Gh(s,e.map.get(c))),o.delete(c)}),o.forEach(s=>{a.map.set(s,Gh(e.map.get(s),t.map.get(s)))})}return a}function tu(t){return!t||!(t.info||t.map.size)}function c2({map:t},e){const n=t.get(e);n&&tu(n)&&(s2.push(n),t.delete(e))}function Yh(t,e,n){let r;for(const i of e.selections)if(sl(i)){if(i.name.value==="__typename")return t[Fo(i)]}else r?r.push(i):r=[i];if(typeof t.__typename=="string")return t.__typename;if(r)for(const i of r){const a=Yh(t,Yc(i,n).selectionSet,n);if(typeof a=="string")return a}}class u7 extends B3{constructor(n={}){super();ae(this,"data");ae(this,"optimisticData");ae(this,"config");ae(this,"watches",new Set);ae(this,"storeReader");ae(this,"storeWriter");ae(this,"addTypenameTransform",new Wi(Ib));ae(this,"maybeBroadcastWatch");ae(this,"assumeImmutableResults",!0);ae(this,"policies");ae(this,"makeVar",t7);ae(this,"txCount",0);this.config=G3(n),this.policies=new a7({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){const n=this.data=new eu.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()}resetResultCache(){const{fragments:n}=this.config;this.addTypenameTransform.resetCache(),n==null||n.resetCaches(),this.storeWriter=new c7(this,this.storeReader=new s7({cache:this,fragments:n}),n),this.maybeBroadcastWatch=ul((r,i)=>this.broadcastWatch(r,i),{max:Bi["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:r=>{const i=r.optimistic?this.optimisticData:this.data;if(fl(i)){const{optimistic:a,id:o,variables:s}=r;return i.makeCacheKey(r.query,r.callback,Hi({optimistic:a,id:o,variables:s}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(r=>r.resetCaching())}restore(n){return this.init(),n&&this.data.replace(n),this}extract(n=!1){return(n?this.optimisticData:this.data).extract()}read(n){const{returnPartialData:r=!1}=n;return this.storeReader.diffQueryAgainstStore({...n,store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r}).result}write(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}modify(n){if(An.call(n,"id")&&!n.id)return!1;const r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields,!1)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}diff(n){return this.storeReader.diffQueryAgainstStore({...n,store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config})}watch(n){return this.watches.size||e7(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),()=>{this.watches.delete(n)&&!this.watches.size&&e2(this),this.maybeBroadcastWatch.forget(n)}}gc(n){Hi.reset(),Ga.reset();const r=this.optimisticData.gc();return n&&!this.txCount&&n.resetResultCache&&this.resetResultCache(),r}retain(n,r){return(r?this.optimisticData:this.data).retain(n)}release(n,r){return(r?this.optimisticData:this.data).release(n)}identify(n){if(zt(n))return n.__ref;try{return this.policies.identify(n)[0]}catch{}}evict(n){if(!n.id){if(An.call(n,"id"))return!1;n={...n,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}reset(n){return this.init(),Hi.reset(),n&&n.discardWatches?(this.watches.forEach(r=>this.maybeBroadcastWatch.forget(r)),this.watches.clear(),e2(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(n){const r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())}batch(n){const{update:r,optimistic:i=!0,removeOptimistic:a,onWatchUpdated:o}=n;let s;const c=d=>{const{data:h,optimisticData:m}=this;++this.txCount,d&&(this.data=this.optimisticData=d);try{return s=r(this)}finally{--this.txCount,this.data=h,this.optimisticData=m}},u=new Set;return o&&!this.txCount&&this.broadcastWatches({...n,onWatchUpdated(d){return u.add(d),!1}}),typeof i=="string"?this.optimisticData=this.optimisticData.addLayer(i,c):i===!1?c(this.data):c(),typeof a=="string"&&(this.optimisticData=this.optimisticData.removeLayer(a)),o&&u.size?(this.broadcastWatches({...n,onWatchUpdated(d,h){const m=o.call(this,d,h);return m!==!1&&u.delete(d),m}}),u.size&&u.forEach(d=>this.maybeBroadcastWatch.dirty(d))):this.broadcastWatches(n),s}performTransaction(n,r){return this.batch({update:n,optimistic:r||r!==null})}transformDocument(n){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(n))}fragmentMatches(n,r){return this.policies.fragmentMatches(n,r)}lookupFragment(n){var r;return((r=this.config.fragments)==null?void 0:r.lookup(n))||null}resolvesClientField(n,r){return!!this.policies.getReadFunction(n,r)}broadcastWatches(n){if(!this.txCount){const r=this.onAfterBroadcast,i=new Set;this.onAfterBroadcast=a=>{i.add(a)};try{this.watches.forEach(a=>this.maybeBroadcastWatch(a,n)),i.forEach(a=>a())}finally{this.onAfterBroadcast=r}}}addFragmentsToDocument(n){const{fragments:r}=this.config;return r?r.transform(n):n}broadcastWatch(n,r){const{lastDiff:i}=n,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)}}function pl(t,e){return typeof t=="object"&&t!==null&&t[Symbol.for("apollo.error")]===e}function ml(t){Object.defineProperty(t,Symbol.for("apollo.error"),{value:t.name,enumerable:!1,writable:!1,configurable:!1})}function u2(t){return t.map(e=>e.message||"Error message not found.").join(`
39
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function Uc(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Xs=(function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,r,i,a;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=xo(o),c=s.next();!c.done;c=s.next()){var u=c.value;u.remove(this)}}catch(b){e={error:b}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}else o.remove(this);var d=this.initialTeardown;if(tn(d))try{d()}catch(b){a=b instanceof sh?b.errors:[b]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var m=xo(h),p=m.next();!p.done;p=m.next()){var y=p.value;try{Oy(y)}catch(b){a=a??[],b instanceof sh?a=Ao(Ao([],_o(a)),_o(b.errors)):a.push(b)}}}catch(b){r={error:b}}finally{try{p&&!p.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}}if(a)throw new sh(a)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Oy(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&Uc(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&Uc(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=(function(){var e=new t;return e.closed=!0,e})(),t})(),ky=Xs.EMPTY;function Ty(t){return t instanceof Xs||t&&"closed"in t&&tn(t.remove)&&tn(t.add)&&tn(t.unsubscribe)}function Oy(t){tn(t)?t():t.unsubscribe()}var J_={Promise:void 0},X_={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Ao([t,e],_o(n)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function Ry(t){X_.setTimeout(function(){throw t})}function Ny(){}function Bc(t){t()}var lh=(function(t){Fr(e,t);function e(n){var r=t.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Ty(n)&&n.add(r)):r.destination=t9,r}return e.create=function(n,r,i){return new $s(n,r,i)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e})(Xs),$_=(function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(r){zc(r)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(r){zc(r)}else zc(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){zc(n)}},t})(),$s=(function(t){Fr(e,t);function e(n,r,i){var a=t.call(this)||this,o;return tn(n)||!n?o={next:n??void 0,error:r??void 0,complete:i??void 0}:o=n,a.destination=new $_(o),a}return e})(lh);function zc(t){Ry(t)}function e9(t){throw t}var t9={closed:!0,next:Ny,error:e9,complete:Ny},ch=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Hc(t){return t}function n9(t){return t.length===0?Hc:t.length===1?t[0]:function(n){return t.reduce(function(r,i){return i(r)},n)}}var Ut=(function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,r){var i=this,a=i9(e)?e:new $s(e,n,r);return Bc(function(){var o=i,s=o.operator,c=o.source;a.add(s?s.call(a,c):c?i._subscribe(a):i._trySubscribe(a))}),a},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var r=this;return n=Py(n),new n(function(i,a){var o=new $s({next:function(s){try{e(s)}catch(c){a(c),o.unsubscribe()}},error:a,complete:i});r.subscribe(o)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[ch]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return n9(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=Py(e),new e(function(r,i){var a;n.subscribe(function(o){return a=o},function(o){return i(o)},function(){return r(a)})})},t.create=function(e){return new t(e)},t})();function Py(t){var e;return(e=t??J_.Promise)!==null&&e!==void 0?e:Promise}function r9(t){return t&&tn(t.next)&&tn(t.error)&&tn(t.complete)}function i9(t){return t&&t instanceof lh||r9(t)&&Ty(t)}function a9(t){return tn(t==null?void 0:t.lift)}function si(t){return function(e){if(a9(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ui(t,e,n,r,i){return new o9(t,e,n,r,i)}var o9=(function(t){Fr(e,t);function e(n,r,i,a,o,s){var c=t.call(this,n)||this;return c.onFinalize=o,c.shouldUnsubscribe=s,c._next=r?function(u){try{r(u)}catch(d){n.error(d)}}:t.prototype._next,c._error=a?function(u){try{a(u)}catch(d){n.error(d)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=i?function(){try{i()}catch(u){n.error(u)}finally{this.unsubscribe()}}:t.prototype._complete,c}return e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;t.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},e})(lh),s9=oh(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),To=(function(t){Fr(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var r=new Iy(this,this);return r.operator=n,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new s9},e.prototype.next=function(n){var r=this;Bc(function(){var i,a;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=xo(r.currentObservers),s=o.next();!s.done;s=o.next()){var c=s.value;c.next(n)}}catch(u){i={error:u}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}}})},e.prototype.error=function(n){var r=this;Bc(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},e.prototype.complete=function(){var n=this;Bc(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var r=this,i=this,a=i.hasError,o=i.isStopped,s=i.observers;return a||o?ky:(this.currentObservers=null,s.push(n),new Xs(function(){r.currentObservers=null,Uc(s,n)}))},e.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,a=r.thrownError,o=r.isStopped;i?n.error(a):o&&n.complete()},e.prototype.asObservable=function(){var n=new Ut;return n.source=this,n},e.create=function(n,r){return new Iy(n,r)},e})(Ut),Iy=(function(t){Fr(e,t);function e(n,r){var i=t.call(this)||this;return i.destination=n,i.source=r,i}return e.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},e.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},e.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},e.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:ky},e})(To),l9=(function(t){Fr(e,t);function e(n){var r=t.call(this)||this;return r._value=n,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(n){var r=t.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},e.prototype.getValue=function(){var n=this,r=n.hasError,i=n.thrownError,a=n._value;if(r)throw i;return this._throwIfClosed(),a},e.prototype.next=function(n){t.prototype.next.call(this,this._value=n)},e})(To),uh={now:function(){return(uh.delegate||Date).now()},delegate:void 0},My=(function(t){Fr(e,t);function e(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=uh);var a=t.call(this)||this;return a._bufferSize=n,a._windowTime=r,a._timestampProvider=i,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=r===1/0,a._bufferSize=Math.max(1,n),a._windowTime=Math.max(1,r),a}return e.prototype.next=function(n){var r=this,i=r.isStopped,a=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,c=r._windowTime;i||(a.push(n),!o&&a.push(s.now()+c)),this._trimBuffer(),t.prototype.next.call(this,n)},e.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,a=i._infiniteTimeWindow,o=i._buffer,s=o.slice(),c=0;c<s.length&&!n.closed;c+=a?1:2)n.next(s[c]);return this._checkFinalizedStatuses(n),r},e.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,a=n._buffer,o=n._infiniteTimeWindow,s=(o?1:2)*r;if(r<1/0&&s<a.length&&a.splice(0,a.length-s),!o){for(var c=i.now(),u=0,d=1;d<a.length&&a[d]<=c;d+=2)u=d;u&&a.splice(0,u+1)}},e})(To),c9=(function(t){Fr(e,t);function e(n,r){return t.call(this)||this}return e.prototype.schedule=function(n,r){return this},e})(Xs),Ly={setInterval:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,Ao([t,e],_o(n)))},clearInterval:function(t){return clearInterval(t)},delegate:void 0},Fy=(function(t){Fr(e,t);function e(n,r){var i=t.call(this,n,r)||this;return i.scheduler=n,i.work=r,i.pending=!1,i}return e.prototype.schedule=function(n,r){var i;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var a=this.id,o=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(o,a,r)),this.pending=!0,this.delay=r,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(o,this.id,r),this},e.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),Ly.setInterval(n.flush.bind(n,this),i)},e.prototype.recycleAsyncId=function(n,r,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return r;r!=null&&Ly.clearInterval(r)},e.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(n,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(n,r){var i=!1,a;try{this.work(n)}catch(o){i=!0,a=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),a},e.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,i=n.scheduler,a=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Uc(a,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e})(c9),u9=1,fh,dh={};function jy(t){return t in dh?(delete dh[t],!0):!1}var Dy={setImmediate:function(t){var e=u9++;return dh[e]=!0,fh||(fh=Promise.resolve()),fh.then(function(){return jy(e)&&t()}),e},clearImmediate:function(t){jy(t)}},f9=Dy.setImmediate,d9=Dy.clearImmediate,Vy={setImmediate:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return f9.apply(void 0,Ao([],_o(t)))},clearImmediate:function(t){return d9(t)},delegate:void 0},h9=(function(t){Fr(e,t);function e(n,r){var i=t.call(this,n,r)||this;return i.scheduler=n,i.work=r,i}return e.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),i!==null&&i>0?t.prototype.requestAsyncId.call(this,n,r,i):(n.actions.push(this),n._scheduled||(n._scheduled=Vy.setImmediate(n.flush.bind(n,void 0))))},e.prototype.recycleAsyncId=function(n,r,i){var a;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return t.prototype.recycleAsyncId.call(this,n,r,i);var o=n.actions;r!=null&&((a=o[o.length-1])===null||a===void 0?void 0:a.id)!==r&&(Vy.clearImmediate(r),n._scheduled===r&&(n._scheduled=void 0))},e})(Fy),Uy=(function(){function t(e,n){n===void 0&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(e,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,e).schedule(r,n)},t.now=uh.now,t})(),By=(function(t){Fr(e,t);function e(n,r){r===void 0&&(r=Uy.now);var i=t.call(this,n,r)||this;return i.actions=[],i._active=!1,i}return e.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,i){for(;n=r.shift();)n.unsubscribe();throw i}},e})(Uy),p9=(function(t){Fr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.flush=function(n){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var i=this.actions,a;n=n||i.shift();do if(a=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===r&&i.shift());if(this._active=!1,a){for(;(n=i[0])&&n.id===r&&i.shift();)n.unsubscribe();throw a}},e})(By),m9=new p9(h9),g9=new By(Fy),v9=g9,el=new Ut(function(t){return t.complete()});function y9(t){return t&&tn(t.schedule)}function b9(t){return t[t.length-1]}function zy(t){return y9(b9(t))?t.pop():void 0}var Hy=(function(t){return t&&typeof t.length=="number"&&typeof t!="function"});function Wy(t){return tn(t==null?void 0:t.then)}function Gy(t){return tn(t[ch])}function Yy(t){return Symbol.asyncIterator&&tn(t==null?void 0:t[Symbol.asyncIterator])}function Ky(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function w9(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Zy=w9();function Qy(t){return tn(t==null?void 0:t[Zy])}function qy(t){return Q_(this,arguments,function(){var n,r,i,a;return Ay(this,function(o){switch(o.label){case 0:n=t.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,ko(n.read())];case 3:return r=o.sent(),i=r.value,a=r.done,a?[4,ko(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,ko(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function Jy(t){return tn(t==null?void 0:t.getReader)}function ua(t){if(t instanceof Ut)return t;if(t!=null){if(Gy(t))return S9(t);if(Hy(t))return E9(t);if(Wy(t))return C9(t);if(Yy(t))return Xy(t);if(Qy(t))return x9(t);if(Jy(t))return _9(t)}throw Ky(t)}function S9(t){return new Ut(function(e){var n=t[ch]();if(tn(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function E9(t){return new Ut(function(e){for(var n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function C9(t){return new Ut(function(e){t.then(function(n){e.closed||(e.next(n),e.complete())},function(n){return e.error(n)}).then(null,Ry)})}function x9(t){return new Ut(function(e){var n,r;try{for(var i=xo(t),a=i.next();!a.done;a=i.next()){var o=a.value;if(e.next(o),e.closed)return}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.complete()})}function Xy(t){return new Ut(function(e){A9(t,e).catch(function(n){return e.error(n)})})}function _9(t){return Xy(qy(t))}function A9(t,e){var n,r,i,a;return Z_(this,void 0,void 0,function(){var o,s;return Ay(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=q_(t),c.label=1;case 1:return[4,n.next()];case 2:if(r=c.sent(),!!r.done)return[3,4];if(o=r.value,e.next(o),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),i={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(a=n.return)?[4,a.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function za(t,e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(a),!i)return a}function hh(t,e){return e===void 0&&(e=0),si(function(n,r){n.subscribe(Ui(r,function(i){return za(r,t,function(){return r.next(i)},e)},function(){return za(r,t,function(){return r.complete()},e)},function(i){return za(r,t,function(){return r.error(i)},e)}))})}function $y(t,e){return e===void 0&&(e=0),si(function(n,r){r.add(t.schedule(function(){return n.subscribe(r)},e))})}function k9(t,e){return ua(t).pipe($y(e),hh(e))}function T9(t,e){return ua(t).pipe($y(e),hh(e))}function O9(t,e){return new Ut(function(n){var r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function R9(t,e){return new Ut(function(n){var r;return za(n,e,function(){r=t[Zy](),za(n,e,function(){var i,a,o;try{i=r.next(),a=i.value,o=i.done}catch(s){n.error(s);return}o?n.complete():n.next(a)},0,!0)}),function(){return tn(r==null?void 0:r.return)&&r.return()}})}function eb(t,e){if(!t)throw new Error("Iterable cannot be null");return new Ut(function(n){za(n,e,function(){var r=t[Symbol.asyncIterator]();za(n,e,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}function N9(t,e){return eb(qy(t),e)}function P9(t,e){if(t!=null){if(Gy(t))return k9(t,e);if(Hy(t))return O9(t,e);if(Wy(t))return T9(t,e);if(Yy(t))return eb(t,e);if(Qy(t))return R9(t,e);if(Jy(t))return N9(t,e)}throw Ky(t)}function Ha(t,e){return e?P9(t,e):ua(t)}function Wa(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=zy(t);return Ha(t,n)}function tb(t,e){var n=tn(t)?t:function(){return t},r=function(i){return i.error(n())};return new Ut(r)}var nb;(function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"})(nb||(nb={}));var ph=(function(){function t(e,n,r){this.kind=e,this.value=n,this.error=r,this.hasValue=e==="N"}return t.prototype.observe=function(e){return I9(this,e)},t.prototype.do=function(e,n,r){var i=this,a=i.kind,o=i.value,s=i.error;return a==="N"?e==null?void 0:e(o):a==="E"?n==null?void 0:n(s):r==null?void 0:r()},t.prototype.accept=function(e,n,r){var i;return tn((i=e)===null||i===void 0?void 0:i.next)?this.observe(e):this.do(e,n,r)},t.prototype.toObservable=function(){var e=this,n=e.kind,r=e.value,i=e.error,a=n==="N"?Wa(r):n==="E"?tb(function(){return i}):n==="C"?el:0;if(!a)throw new TypeError("Unexpected notification kind "+n);return a},t.createNext=function(e){return new t("N",e)},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t})();function I9(t,e){var n,r,i,a=t,o=a.kind,s=a.value,c=a.error;if(typeof o!="string")throw new TypeError('Invalid notification, missing "kind"');o==="N"?(n=e.next)===null||n===void 0||n.call(e,s):o==="E"?(r=e.error)===null||r===void 0||r.call(e,c):(i=e.complete)===null||i===void 0||i.call(e)}var M9=oh(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function L9(t,e){var n=typeof e=="object";return new Promise(function(r,i){var a=!1,o;t.subscribe({next:function(s){o=s,a=!0},error:i,complete:function(){a?r(o):n?r(e.defaultValue):i(new M9)}})})}function F9(t){return t instanceof Date&&!isNaN(t)}function fa(t,e){return si(function(n,r){var i=0;n.subscribe(Ui(r,function(a){r.next(t.call(e,a,i++))}))})}function j9(t,e,n,r,i,a,o,s){var c=[],u=0,d=0,h=!1,m=function(){h&&!c.length&&!u&&e.complete()},p=function(b){return u<r?y(b):c.push(b)},y=function(b){u++;var v=!1;ua(n(b,d++)).subscribe(Ui(e,function(x){e.next(x)},function(){v=!0},void 0,function(){if(v)try{u--;for(var x=function(){var _=c.shift();o||y(_)};c.length&&u<r;)x();m()}catch(_){e.error(_)}}))};return t.subscribe(Ui(e,p,function(){h=!0,m()})),function(){}}function Oo(t,e,n){return n===void 0&&(n=1/0),tn(e)?Oo(function(r,i){return fa(function(a,o){return e(r,a,i,o)})(ua(t(r,i)))},n):(typeof e=="number"&&(n=e),si(function(r,i){return j9(r,i,t,n)}))}function D9(t){return Oo(Hc,t)}function V9(){return D9(1)}function mh(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return V9()(Ha(t,zy(t)))}function U9(t,e,n){return n===void 0&&(n=v9),new Ut(function(r){var i=F9(t)?+t-n.now():t;i<0&&(i=0);var a=0;return n.schedule(function(){r.closed||(r.next(a++),r.complete())},i)})}function rb(t,e){return si(function(n,r){var i=0;n.subscribe(Ui(r,function(a){return t.call(e,a,i++)&&r.next(a)}))})}function Wc(t){return si(function(e,n){var r=null,i=!1,a;r=e.subscribe(Ui(n,void 0,void 0,function(o){a=ua(t(o,Wc(t)(e))),r?(r.unsubscribe(),r=null,a.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,a.subscribe(n))})}function B9(t,e){return e===void 0&&(e=Hc),t=t??z9,si(function(n,r){var i,a=!0;n.subscribe(Ui(r,function(o){var s=e(o);(a||!t(i,s))&&(a=!1,i=s,r.next(o))}))})}function z9(t,e){return t===e}function H9(t){return si(function(e,n){try{e.subscribe(n)}finally{n.add(t)}})}function W9(){return si(function(t,e){t.subscribe(Ui(e,function(n){e.next(ph.createNext(n))},function(){e.next(ph.createComplete()),e.complete()},function(n){e.next(ph.createError(n)),e.complete()}))})}function tl(t){t===void 0&&(t={});var e=t.connector,n=e===void 0?function(){return new To}:e,r=t.resetOnError,i=r===void 0?!0:r,a=t.resetOnComplete,o=a===void 0?!0:a,s=t.resetOnRefCountZero,c=s===void 0?!0:s;return function(u){var d,h,m,p=0,y=!1,b=!1,v=function(){h==null||h.unsubscribe(),h=void 0},x=function(){v(),d=m=void 0,y=b=!1},_=function(){var T=d;x(),T==null||T.unsubscribe()};return si(function(T,C){p++,!b&&!y&&v();var w=m=m??n();C.add(function(){p--,p===0&&!b&&!y&&(h=gh(_,c))}),w.subscribe(C),!d&&p>0&&(d=new $s({next:function(A){return w.next(A)},error:function(A){b=!0,v(),h=gh(x,i,A),w.error(A)},complete:function(){y=!0,v(),h=gh(x,o),w.complete()}}),ua(T).subscribe(d))})(u)}}function gh(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(e===!0){t();return}if(e!==!1){var i=new $s({next:function(){i.unsubscribe(),t()}});return ua(e.apply(void 0,Ao([],_o(n)))).subscribe(i)}}function vh(t,e,n){var r,i,a,o,s=!1;return t&&typeof t=="object"?(r=t.bufferSize,o=r===void 0?1/0:r,i=t.windowTime,e=i===void 0?1/0:i,a=t.refCount,s=a===void 0?!1:a,n=t.scheduler):o=t??1/0,tl({connector:function(){return new My(o,e,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}function nl(t,e,n){var r=tn(t)||e||n?{next:t,error:e,complete:n}:t;return r?si(function(i,a){var o;(o=r.subscribe)===null||o===void 0||o.call(r);var s=!0;i.subscribe(Ui(a,function(c){var u;(u=r.next)===null||u===void 0||u.call(r,c),a.next(c)},function(){var c;s=!1,(c=r.complete)===null||c===void 0||c.call(r),a.complete()},function(c){var u;s=!1,(u=r.error)===null||u===void 0||u.call(r,c),a.error(c)},function(){var c,u;s&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):Hc}function Ro(t,e,n,r){if(n.kind===gt.INT||n.kind===gt.FLOAT)t[e.value]=Number(n.value);else if(n.kind===gt.BOOLEAN||n.kind===gt.STRING)t[e.value]=n.value;else if(n.kind===gt.OBJECT){const i={};n.fields.map(a=>Ro(i,a.name,a.value,r)),t[e.value]=i}else if(n.kind===gt.VARIABLE){const i=(r||{})[n.name.value];t[e.value]=i}else if(n.kind===gt.LIST)t[e.value]=n.values.map(i=>{const a={};return Ro(a,e,i,r),a[e.value]});else if(n.kind===gt.ENUM)t[e.value]=n.value;else if(n.kind===gt.NULL)t[e.value]=null;else throw Lr(19,e.value,n.kind)}function yh(t,e){if(t.arguments&&t.arguments.length){const n={};return t.arguments.forEach(({name:r,value:i})=>Ro(n,r,i,e)),n}return null}const ib=typeof ai(()=>window.document.createElement)=="function",G9=Symbol.for("apollo.cacheSize"),Bi={...qd[G9]};function No(t,e){var n;return((n=t.definitions.find(r=>r.kind==="OperationDefinition"&&!!r.name))==null?void 0:n.name.value)??e}const Y9=()=>Object.create(null),{forEach:K9,slice:ab}=Array.prototype,{hasOwnProperty:Z9}=Object.prototype;class Ci{constructor(e=!0,n=Y9){this.weakness=e,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(e){let n=this;return K9.call(e,r=>n=n.getChildTrie(r)),Z9.call(n,"data")?n.data:n.data=this.makeData(ab.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let n=this;for(let r=0,i=e.length;n&&r<i;++r){const a=n.mapFor(e[r],!1);n=a&&a.get(e[r])}return n&&n.data}remove(){return this.removeArray(arguments)}removeArray(e){let n;if(e.length){const r=e[0],i=this.mapFor(r,!1),a=i&&i.get(r);a&&(n=a.removeArray(ab.call(e,1)),!a.data&&!a.weak&&!(a.strong&&a.strong.size)&&i.delete(r))}else n=this.data,delete this.data;return n}getChildTrie(e){const n=this.mapFor(e,!0);let r=n.get(e);return r||n.set(e,r=new Ci(this.weakness,this.makeData)),r}mapFor(e,n){return this.weakness&&Q9(e)?this.weak||(n?this.weak=new WeakMap:void 0):this.strong||(n?this.strong=new Map:void 0)}}function Q9(t){switch(typeof t){case"object":if(t===null)break;case"function":return!0}return!1}function q9(){}class bh{constructor(e=1/0,n=q9){this.max=e,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const n=this.getNode(e);return n&&n.value}get size(){return this.map.size}getNode(e){const n=this.map.get(e);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(e,n){let r=this.getNode(e);return r?r.value=n:(r={key:e,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const n=this.map.get(e);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(e),this.dispose(n.value,e),!0):!1}}function wh(){}const J9=wh,X9=typeof WeakRef<"u"?WeakRef:function(t){return{deref:()=>t}},$9=typeof WeakMap<"u"?WeakMap:Map,e3=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:wh,unregister:wh}},t3=10024;class Gc{constructor(e=1/0,n=J9){this.max=e,this.dispose=n,this.map=new $9,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<t3;i++){const a=r.next().value;if(!a)break;this.unfinalizedNodes.delete(a);const o=a.key;delete a.key,a.keyRef=new X9(o),this.registry.register(o,a,a)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new e3(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const n=this.getNode(e);return n&&n.value}getNode(e){const n=this.map.get(e);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(e,n){let r=this.getNode(e);return r?r.value=n:(r={key:e,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(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const n=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,n),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),n&&this.map.delete(n)}delete(e){const n=this.map.get(e);return n?(this.deleteNode(n),!0):!1}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}const Sh=new WeakSet;function ob(t){t.size<=(t.max||-1)||Sh.has(t)||(Sh.add(t),setTimeout(()=>{t.clean(),Sh.delete(t)},100))}const Eh=function(t,e){const n=new Gc(t,e);return n.set=function(r,i){const a=Gc.prototype.set.call(this,r,i);return ob(this),a},n},n3=function(t,e){const n=new bh(t,e);return n.set=function(r,i){const a=bh.prototype.set.call(this,r,i);return ob(this),a},n};function sb(t,{max:e,makeCacheKey:n=r=>r}){const r=new Ci(!0),i=new Eh(e);return(...a)=>{const o=r.lookupArray(n(a)),s=i.get(o);if(s){if(s.error)throw s.error;return s.result}const c=i.set(o,{});try{return c.result=t(...a)}catch(u){throw c.error=u,u}}}const da=sb((t,e)=>{Je(t&&t.kind==="Document",1);const n=t.definitions.filter(r=>r.kind==="OperationDefinition");e&&Je(n.length==1&&n[0].operation===e,4,e,e,n[0].operation),Ei(t,{Field(r,i,a,o){var s;if(r.alias&&(r.alias.value==="__typename"||r.alias.value.startsWith("__ac_"))&&r.alias.value!==r.name.value){let c=t,u=[];for(const d of o)c=c[d],c.kind===gt.FIELD&&u.push(((s=c.alias)==null?void 0:s.value)||c.name.value);throw u.splice(-1,1,r.name.value),Lr(5,r.alias.value,u.join("."),n[0].operation,No(t,"(anonymous)"))}}})},{max:Bi.checkDocument||2e3});function r3(t){return t.length===0?el:new Ut(e=>{const{length:n}=t,r=new Array(n),i=new Map;t.forEach((c,u)=>{i.has(c)||i.set(c,new Set),i.get(c).add(u)});let a=i.size,o=i.size,s;i.forEach((c,u)=>{let d=!1;const h=u.subscribe({next:m=>{c.forEach(p=>r[p]=m),d||(d=!0,o--),o||(s||(s=new Set(t.filter(p=>p.dirty))),s.delete(u),s.size||(e.next(r.slice()),s=void 0))},complete:()=>{a--,a||e.complete()},error:e.error.bind(e)});e.add(h)})})}function Cr(...t){const e={};return t.forEach(n=>{n&&Reflect.ownKeys(n).forEach(r=>{const i=n[r];i!==void 0&&(e[r]=i)})}),e}function rl(t=[]){const e={};return t.forEach(n=>{e[n.name.value]=n}),e}function Dn(t){return t!==null&&typeof t=="object"}const{hasOwnProperty:i3}=Object.prototype,a3=function(t,e,n){return this.merge(t[n],e[n])},lb=t=>isNaN(+t)?{}:[];class Po{constructor(e={}){ae(this,"options");ae(this,"reconciler");ae(this,"isObject",Dn);ae(this,"pastCopies",new Set);this.options=e,this.reconciler=e.reconciler||a3}merge(e,n,r={}){const i=r.atPath;if(i!=null&&i.length){const[a,...o]=i;e===void 0&&(e=lb(a));let s=e[a];s===void 0&&o.length&&(s=lb(o[0]));const c=this.merge(s,n,{...r,atPath:o});return s!==c&&(e=this.shallowCopyForMerge(e),e[a]=c),e}return Array.isArray(e)&&Array.isArray(n)&&this.options.arrayMerge==="truncate"&&e.length>n.length&&(e=e.slice(0,n.length),this.pastCopies.add(e)),Dn(n)&&Dn(e)?(Object.keys(n).forEach(a=>{if(i3.call(e,a)){const o=e[a];if(n[a]!==o){const s=this.reconciler(e,n,a);s!==o&&(e=this.shallowCopyForMerge(e),e[a]=s)}}else e=this.shallowCopyForMerge(e),e[a]=n[a]}),e):n}shallowCopyForMerge(e){return Dn(e)&&(this.pastCopies.has(e)||(Array.isArray(e)?e=e.slice(0):e={__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e))),e}}function Ch(t){const e={},n=t&&t.variableDefinitions;return n&&n.length&&n.forEach(r=>{r.defaultValue&&Ro(e,r.variable.name,r.defaultValue)}),e}function Yc(t,e){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":{const n=t.name.value;if(typeof e=="function")return e(n);const r=e&&e[n];return Je(r,9,n),r||null}default:return null}}function o3(t,e){let n=e;const r=[];return t.definitions.forEach(a=>{if(a.kind==="OperationDefinition")throw Lr(10,a.operation,a.name?` named '${a.name.value}'`:"");a.kind==="FragmentDefinition"&&r.push(a)}),typeof n>"u"&&(Je(r.length===1,11,r.length),n=r[0].name.value),{...t,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}},...t.definitions]}}function s3(t){Je(t.kind==="Document",6),Je(t.definitions.length<=1,7);const e=t.definitions[0];return Je(e.kind==="FragmentDefinition",8),e}function il(t){return t.definitions.filter(e=>e.kind==="FragmentDefinition")}function xh(t){da(t);let e;for(let n of t.definitions){if(n.kind==="OperationDefinition")return n;n.kind==="FragmentDefinition"&&!e&&(e=n)}if(e)return e;throw Lr(12)}function zi(t){return da(t),t.definitions.filter(e=>e.kind==="OperationDefinition")[0]}function l3(t){const e=zi(t);return Je(e&&e.operation==="query",13),e}const Hi=Object.assign(function(e){return JSON.stringify(e,c3)},{reset(){al=new n3(Bi.canonicalStringify||1e3)}});let al;Hi.reset();function c3(t,e){if(e&&typeof e=="object"){const n=Object.getPrototypeOf(e);if(n===Object.prototype||n===null){const r=Object.keys(e);if(r.every(u3))return e;const i=JSON.stringify(r);let a=al.get(i);if(!a){r.sort();const s=JSON.stringify(r);a=al.get(s)||r,al.set(i,a),al.set(s,a)}const o=Object.create(n);return a.forEach(s=>{o[s]=e[s]}),o}}return e}function u3(t,e,n){return e===0||n[e-1]<=t}const f3=["connection","include","skip","client","rest","export","nonreactive","stream"];let ol=Hi;const cb=Object.assign(function(t,e,n){if(e&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){const i=n.connection.filter?n.connection.filter:[];i.sort();const a={};i.forEach(s=>{a[s]=e[s]});const o=ol(a);if(o!=="{}")return`${n.connection.key}(${o})`}return n.connection.key}let r=t;if(e){const i=ol(e);i!=="{}"&&(r+=`(${i})`)}return n&&Object.keys(n).forEach(i=>{f3.indexOf(i)===-1&&(n[i]&&Object.keys(n[i]).length?r+=`@${i}(${ol(n[i])})`:r+=`@${i}`)}),r},{setStringify(t){const e=ol;return ol=t,e}});function Io(t){var e;return!!((e=t.errors)!=null&&e.length)}function Mo(t,e,n){const r=new Set(t),i=r.size;return Ei(e,{Directive(a){if(r.delete(a.name.value)&&(!n||!r.size))return rh}}),n?!r.size:r.size<i}function d3(t){let e=!1;return Ei(t,{Directive:{enter(n){if(n.name.value==="client"&&n.arguments&&(e=n.arguments.some(r=>r.name.value==="always"&&r.value.kind==="BooleanValue"&&r.value.value===!0),e))return rh}}}),e}const gn=Array.isArray;function h3(t){return Dn(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function sl(t){return t.kind==="Field"}function _h(t){return Array.isArray(t)&&t.length>0}function Lo(t){return{__ref:String(t)}}function wK(t){return t}function p3(t){let e=t[0]||{};const n=t.length;if(n>1){const r=new Po;for(let i=1;i<n;++i)e=r.merge(e,t[i])}return e}function Ga(t,e){return Cr(t,e,e.variables&&{variables:Cr({...t&&t.variables,...e.variables})})}function Ah(t){return t.catch(()=>{}),t}function m3(t,e){da(e);const n=ub(""),r=ub(""),i=v=>{for(let x=0,_;x<v.length&&(_=v[x]);++x)if(!gn(_)){if(_.kind===gt.OPERATION_DEFINITION)return n(_.name&&_.name.value);if(_.kind===gt.FRAGMENT_DEFINITION)return r(_.name.value)}return Je.error(14),null};let a=0;for(let v=e.definitions.length-1;v>=0;--v)e.definitions[v].kind===gt.OPERATION_DEFINITION&&++a;const o=g3(t),s=v=>_h(v)&&v.map(o).some(x=>x&&x.remove),c=new Map;let u=!1;const d={enter(v){if(s(v.directives))return u=!0,null}},h=Ei(e,{Field:d,InlineFragment:d,VariableDefinition:{enter(){return!1}},Variable:{enter(v,x,_,T,C){const w=i(C);w&&w.variables.add(v.name.value)}},FragmentSpread:{enter(v,x,_,T,C){if(s(v.directives))return u=!0,null;const w=i(C);w&&w.fragmentSpreads.add(v.name.value)}},FragmentDefinition:{enter(v,x,_,T){c.set(JSON.stringify(T),v)},leave(v,x,_,T){const C=c.get(JSON.stringify(T));if(v===C)return v;if(a>0&&v.selectionSet.selections.every(w=>w.kind===gt.FIELD&&w.name.value==="__typename"))return r(v.name.value).removed=!0,u=!0,null}},Directive:{leave(v){if(o(v))return u=!0,null}}});if(!u)return e;const m=v=>(v.transitiveVars||(v.transitiveVars=new Set(v.variables),v.removed||v.fragmentSpreads.forEach(x=>{m(r(x)).transitiveVars.forEach(_=>{v.transitiveVars.add(_)})})),v),p=new Set;h.definitions.forEach(v=>{v.kind===gt.OPERATION_DEFINITION?m(n(v.name&&v.name.value)).fragmentSpreads.forEach(x=>{p.add(x)}):v.kind===gt.FRAGMENT_DEFINITION&&a===0&&!r(v.name.value).removed&&p.add(v.name.value)}),p.forEach(v=>{m(r(v)).fragmentSpreads.forEach(x=>{p.add(x)})});const y=v=>!!(!p.has(v)||r(v).removed),b={enter(v){if(y(v.name.value))return null}};return v3(Ei(h,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave(v){if(v.variableDefinitions){const x=m(n(v.name&&v.name.value)).transitiveVars;if(x.size<v.variableDefinitions.length)return{...v,variableDefinitions:v.variableDefinitions.filter(_=>x.has(_.variable.name.value))}}}}}))}function ub(t){const e=new Map;return function(r=t){let i=e.get(r);return i||e.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function g3(t){const e=new Map,n=new Map;return t.forEach(r=>{r&&(r.name?e.set(r.name,r):r.test&&n.set(r.test,r))}),r=>{let i=e.get(r.name.value);return!i&&n.size&&n.forEach((a,o)=>{o(r)&&(i=a)}),i}}function fb(t,e){return!t||t.selectionSet.selections.every(n=>n.kind===gt.FRAGMENT_SPREAD&&fb(e[n.name.value],e))}function v3(t){return fb(zi(t)||s3(t),rl(il(t)))?null:t}function y3(t){return Ei(t,{FragmentSpread(e){var n;if(!((n=e.directives)!=null&&n.some(({name:r})=>r.value==="unmask")))return null}})}function Fo(t){return t.alias?t.alias.value:t.name.value}function Kc({directives:t},e){return!t||!t.length?!0:w3(t).every(({directive:n,ifArgument:r})=>{let i=!1;return r.value.kind==="Variable"?(i=e&&e[r.value.name.value],Je(i!==void 0,15,n.name.value)):i=r.value.value,n.name.value==="skip"?!i:i})}function b3({name:{value:t}}){return t==="skip"||t==="include"}function w3(t){const e=[];return t&&t.length&&t.forEach(n=>{if(!b3(n))return;const r=n.arguments,i=n.name.value;Je(r&&r.length===1,16,i);const a=r[0];Je(a.name&&a.name.value==="if",17,i);const o=a.value;Je(o&&(o.kind==="Variable"||o.kind==="BooleanValue"),18,i),e.push({directive:n,ifArgument:a})}),e}function S3(t,e){let n=null;t.directives&&(n={},t.directives.forEach(i=>{n[i.name.value]={},i.arguments&&i.arguments.forEach(({name:a,value:o})=>Ro(n[i.name.value],a,o,e))}));let r=null;return t.arguments&&t.arguments.length&&(r={},t.arguments.forEach(({name:i,value:a})=>Ro(r,i,a,e))),cb(t.name.value,r,n)}function ll(t){const e={data:t.data};return t.error&&(e.error=t.error),e}function kh(t,e=()=>{}){return n=>new Ut(r=>{let i=e();return n.subscribe({next(a){let o;try{o=t(a,i)}catch(s){r.error(s)}o!==void 0&&r.next(o)},error(a){r.error(a)},complete(){r.complete()}})})}function db(t,{data:e,...n},{data:r,...i},a){return dt(n,i)&&Zc(xh(t).selectionSet,e,r,{fragmentMap:rl(il(t)),variables:a})}function Zc(t,e,n,r){if(e===n)return!0;const i=new Set;return t.selections.every(a=>{if(i.has(a)||(i.add(a),!Kc(a,r.variables))||hb(a))return!0;if(sl(a)){const o=Fo(a),s=e&&e[o],c=n&&n[o],u=a.selectionSet;if(!u)return dt(s,c);const d=Array.isArray(s),h=Array.isArray(c);if(d!==h)return!1;if(d&&h){const m=s.length;if(c.length!==m)return!1;for(let p=0;p<m;++p)if(!Zc(u,s[p],c[p],r))return!1;return!0}return Zc(u,s,c,r)}else{const o=Yc(a,r.fragmentMap);if(o)return hb(o)?!0:Zc(o.selectionSet,e,n,r)}})}function hb(t){return!!t.directives&&t.directives.some(E3)}function E3(t){return t.name.value==="nonreactive"}function C3(t,e){let n,r;function i(a){return a!==n&&(n=a,r=e(n)),r}return Object.assign(t.pipe(fa(i),vh({bufferSize:1,refCount:!0})),{getCurrentResult:()=>i(t.getCurrentResult())})}const x3=sb(function(e,n,r){return C3(e,r)},{max:1,makeCacheKey:t=>t.slice(0,2)}),pb=Symbol.for("apollo.result.extensions"),ha=Symbol.for("apollo.result.streamInfo"),Th=Symbol.for("apollo.observableQuery.variablesUnknown");let In=null;const mb={};let _3=1;const A3=()=>class{constructor(){this.id=["slot",_3++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=In;e;e=e.parent)if(this.id in e.slots){const n=e.slots[this.id];if(n===mb)break;return e!==In&&(In.slots[this.id]=n),!0}return In&&(In.slots[this.id]=mb),!1}getValue(){if(this.hasValue())return In.slots[this.id]}withValue(e,n,r,i){const a={__proto__:null,[this.id]:e},o=In;In={parent:o,slots:a};try{return n.apply(i,r)}finally{In=o}}static bind(e){const n=In;return function(){const r=In;try{return In=n,e.apply(this,arguments)}finally{In=r}}}static noContext(e,n,r){if(In){const i=In;try{return In=null,e.apply(r,n)}finally{In=i}}else return e.apply(r,n)}};function gb(t){try{return t()}catch{}}const Oh="@wry/context:Slot",vb=gb(()=>globalThis)||gb(()=>global)||Object.create(null),Qc=vb[Oh]||Array[Oh]||(function(t){try{Object.defineProperty(vb,Oh,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}})(A3()),{bind:EK,noContext:CK}=Qc,qc=new Qc,{hasOwnProperty:k3}=Object.prototype,Rh=Array.from||function(t){const e=[];return t.forEach(n=>e.push(n)),e};function Nh(t){const{unsubscribe:e}=t;typeof e=="function"&&(t.unsubscribe=void 0,e())}const cl=[],T3=100;function jo(t,e){if(!t)throw new Error(e||"assertion failure")}function yb(t,e){const n=t.length;return n>0&&n===e.length&&t[n-1]===e[n-1]}function bb(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function wb(t){return t.slice(0)}class Jc{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Jc.count}peek(){if(this.value.length===1&&!pa(this))return Sb(this),this.value[0]}recompute(e){return jo(!this.recomputing,"already recomputing"),Sb(this),pa(this)?O3(this,e):bb(this.value)}setDirty(){this.dirty||(this.dirty=!0,Eb(this),Nh(this))}dispose(){this.setDirty(),kb(this),Ph(this,(e,n)=>{e.setDirty(),Tb(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=cl.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(Rh(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),cl.push(this.deps),this.deps=null)}}Jc.count=0;function Sb(t){const e=qc.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),pa(t)?xb(e,t):_b(e,t),e}function O3(t,e){return kb(t),qc.withValue(t,R3,[t,e]),P3(t,e)&&N3(t),bb(t.value)}function R3(t,e){t.recomputing=!0;const{normalizeResult:n}=t;let r;n&&t.value.length===1&&(r=wb(t.value)),t.value.length=0;try{if(t.value[0]=t.fn.apply(null,e),n&&r&&!yb(r,t.value))try{t.value[0]=n(t.value[0],r[0])}catch{}}catch(i){t.value[1]=i}t.recomputing=!1}function pa(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function N3(t){t.dirty=!1,!pa(t)&&Cb(t)}function Eb(t){Ph(t,xb)}function Cb(t){Ph(t,_b)}function Ph(t,e){const n=t.parents.size;if(n){const r=Rh(t.parents);for(let i=0;i<n;++i)e(r[i],t)}}function xb(t,e){jo(t.childValues.has(e)),jo(pa(e));const n=!pa(t);if(!t.dirtyChildren)t.dirtyChildren=cl.pop()||new Set;else if(t.dirtyChildren.has(e))return;t.dirtyChildren.add(e),n&&Eb(t)}function _b(t,e){jo(t.childValues.has(e)),jo(!pa(e));const n=t.childValues.get(e);n.length===0?t.childValues.set(e,wb(e.value)):yb(n,e.value)||t.setDirty(),Ab(t,e),!pa(t)&&Cb(t)}function Ab(t,e){const n=t.dirtyChildren;n&&(n.delete(e),n.size===0&&(cl.length<T3&&cl.push(n),t.dirtyChildren=null))}function kb(t){t.childValues.size>0&&t.childValues.forEach((e,n)=>{Tb(t,n)}),t.forgetDeps(),jo(t.dirtyChildren===null)}function Tb(t,e){e.parents.delete(t),t.childValues.delete(e),Ab(t,e)}function P3(t,e){if(typeof t.subscribe=="function")try{Nh(t),t.unsubscribe=t.subscribe.apply(null,e)}catch{return t.setDirty(),!1}return!0}const I3={setDirty:!0,dispose:!0,forget:!0};function Ob(t){const e=new Map;function n(r){const i=qc.getValue();if(i){let a=e.get(r);a||e.set(r,a=new Set),i.dependOn(a)}}return n.dirty=function(i,a){const o=e.get(i);if(o){const s=a&&k3.call(I3,a)?a:"setDirty";Rh(o).forEach(c=>c[s]()),e.delete(i),Nh(o)}},n}let Rb;function Nb(...t){return(Rb||(Rb=new Ci(typeof WeakMap=="function"))).lookupArray(t)}const Ih=new Set;function ul(t,{max:e=Math.pow(2,16),keyArgs:n,makeCacheKey:r=Nb,normalizeResult:i,subscribe:a,cache:o=bh}=Object.create(null)){const s=typeof o=="function"?new o(e,m=>m.dispose()):o,c=function(){const m=r.apply(null,n?n.apply(null,arguments):arguments);if(m===void 0)return t.apply(null,arguments);let p=s.get(m);p||(s.set(m,p=new Jc(t)),p.normalizeResult=i,p.subscribe=a,p.forget=()=>s.delete(m));const y=p.recompute(Array.prototype.slice.call(arguments));return s.set(m,p),Ih.add(s),qc.hasValue()||(Ih.forEach(b=>b.clean()),Ih.clear()),y};Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:e,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:a,cache:s});function u(m){const p=m&&s.get(m);p&&p.setDirty()}c.dirtyKey=u,c.dirty=function(){u(r.apply(null,arguments))};function d(m){const p=m&&s.get(m);if(p)return p.peek()}c.peekKey=d,c.peek=function(){return d(r.apply(null,arguments))};function h(m){return m?s.delete(m):!1}return c.forgetKey=h,c.forget=function(){return h(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}function M3(...t){return Nb.bind(null,...t)}class L3{constructor(){ae(this,"startRequest")}isIncrementalResult(e){return!1}prepareRequest(e){return Je(!Mo(["defer","stream"],e.query),67),e}extractErrors(){}}function F3(t,{client:e}){const n={query:t.query,variables:t.variables||{},extensions:t.extensions||{},operationName:No(t.query),operationType:zi(t.query).operation};let r={...t.context};const i=o=>{typeof o=="function"?r={...r,...o(a())}:r={...r,...o}},a=()=>Object.freeze({...r});return Object.defineProperty(n,"setContext",{enumerable:!1,value:i}),Object.defineProperty(n,"getContext",{enumerable:!1,value:a}),Object.defineProperty(n,"client",{enumerable:!1,value:e}),n}function j3(t,e){const n={...t},r=new Set(Object.keys(t));return Ei(e,{Variable(i,a,o){o&&o.kind!=="VariableDefinition"&&r.delete(i.name.value)}}),r.forEach(i=>{delete n[i]}),n}class _n{constructor(e){ae(this,"left");ae(this,"right");e&&(this.request=e)}static empty(){return new _n(()=>el)}static from(e){if(e.length===0)return _n.empty();const[n,...r]=e;return n.concat(...r)}static split(e,n,r=new _n((i,a)=>a(i))){const i=new _n((a,o)=>e(a)?n.request(a,o):r.request(a,o));return Object.assign(i,{left:n,right:r})}static execute(e,n,r){return e.request(F3(n,r),()=>el)}static concat(...e){return _n.from(e)}split(e,n,r){return this.concat(_n.split(e,n,r))}concat(...e){return e.length===0?this:e.reduce(this.combine.bind(this),this)}combine(e,n){const r=new _n((i,a)=>e.request(i,o=>n.request(o,a)));return Object.assign(r,{left:e,right:n})}request(e,n){throw Lr(65)}}const Mh=_n.execute;function D3(t){return t}class Wi{constructor(e,n={}){ae(this,"transform");ae(this,"cached");ae(this,"resultCache",new WeakSet);ae(this,"left");ae(this,"right");this.transform=e,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=n.cache!==!1,this.resetCache()}getCacheKey(e){return[e]}static identity(){return new Wi(D3,{cache:!1})}static split(e,n,r=Wi.identity()){return Object.assign(new Wi(i=>(e(i)?n:r).transformDocument(i),{cache:!1}),{left:n,right:r})}resetCache(){if(this.cached){const e=new Ci;this.performWork=ul(Wi.prototype.performWork.bind(this),{makeCacheKey:n=>{const r=this.getCacheKey(n);if(r)return Je(Array.isArray(r),20),e.lookupArray(r)},max:Bi["documentTransform.cache"],cache:Gc})}}performWork(e){return da(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;const n=this.performWork(e);return this.resultCache.add(n),n}concat(e){return Object.assign(new Wi(n=>e.transformDocument(this.transformDocument(n)),{cache:!1}),{left:this,right:e})}}let Lh;const Ya=Object.assign(t=>{let e=Lh.get(t);return e||(e=G_(t),Lh.set(t,e)),e},{reset(){Lh=new Eh(Bi.print||2e3)}});Ya.reset();function zt(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}const Pb={kind:gt.FIELD,name:{kind:gt.NAME,value:"__typename"}},Ib=Object.assign(function(t){return Ei(t,{SelectionSet:{enter(e,n,r){if(r&&r.kind===gt.OPERATION_DEFINITION)return;const{selections:i}=e;if(!i||i.some(s=>s.kind===gt.FIELD&&(s.name.value==="__typename"||s.name.value.lastIndexOf("__",0)===0)))return;const o=r;if(!(o.kind===gt.FIELD&&o.directives&&o.directives.some(s=>s.name.value==="export")))return{...e,selections:[...i,Pb]}}}})},{added(t){return t===Pb}});function Mb(t,e){var n;return((n=zi(t))==null?void 0:n.operation)===e}function V3(t){return Mb(t,"mutation")}function U3(t){return Mb(t,"subscription")}function Lb(t){return t===7||t===8}function Xc(t){return!Lb(t)}class B3{constructor(){ae(this,"assumeImmutableResults",!1);ae(this,"fragmentWatches",new Ci(!0));ae(this,"onAfterBroadcast",e=>e());ae(this,"getFragmentDoc",ul(o3,{max:Bi["cache.fragmentQueryDocuments"]||1e3,cache:Gc,makeCacheKey:M3(this)}))}lookupFragment(e){return null}batch(e){const n=typeof e.optimistic=="string"?e.optimistic:e.optimistic===!1?null:void 0;let r;return this.performTransaction(()=>r=e.update(this),n),r}recordOptimisticTransaction(e,n){this.performTransaction(e,n)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,n=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:n})}watchFragment(e){const{fragment:n,fragmentName:r,from:i}=e,a=this.getFragmentDoc(n,r),s=(Array.isArray(i)?i:[i]).map(p=>p==null?p:this.toCacheId(p));if(!Array.isArray(i)){const p=this.watchSingleFragment(s[0],a,e);return i===null?p:x3(p,Symbol.for("apollo.transform.individualResult"),y=>({...y,data:y.data??{}}))}let c;function u(p){const y=p.reduce((b,v,x)=>(b.data.push(v.data),b.complete&&(b.complete=v.complete),b.dataState=b.complete?"complete":"partial",v.missing&&(b.missing||(b.missing={}),b.missing[x]=v.missing),b),{data:[],dataState:"complete",complete:!0});return dt(c,y)||(c=y),c}if(s.length===0)return H3;let d=!1;const h=s.map(p=>this.watchSingleFragment(p,a,e)),m=r3(h).pipe(fa(u),nl({subscribe:()=>d=!0,unsubscribe:()=>d=!1}),vh({bufferSize:1,refCount:!0}));return Object.assign(m,{getCurrentResult:()=>{if(d&&c)return c;const p=h.map(y=>y.getCurrentResult());return u(p)}})}watchSingleFragment(e,n,r){if(e===null)return z3;const{optimistic:i=!0,variables:a}=r,o=[n,Hi({id:e,optimistic:i,variables:a})],s=this.fragmentWatches.lookupArray(o);if(!s.observable){let d=function(m){const p=m.result;return(!u||!db(n,{data:u.data},{data:p},r.variables))&&(u={data:p,dataState:m.complete?"complete":"partial",complete:m.complete},m.missing&&(u.missing=m.missing.missing)),u},c=!1,u;const h=new Ut(m=>{c=!0;const p=this.watch({variables:a,returnPartialData:!0,id:e,query:n,optimistic:i,immediate:!0,callback:y=>{h.dirty=!0,this.onAfterBroadcast(()=>{m.next(d(y)),h.dirty=!1})}});return()=>{c=!1,p(),this.fragmentWatches.removeArray(o)}}).pipe(B9(),tl({connector:()=>new My(1),resetOnRefCountZero:()=>U9(0)}));s.observable=Object.assign(h,{dirty:!1,getCurrentResult:()=>c&&u?u:d(this.diff({id:e,query:n,returnPartialData:!0,optimistic:i,variables:a}))})}return s.observable}readFragment(e,n=!!e.optimistic){const r=e.from!==void 0?this.toCacheId(e.from):e.id;return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:r,optimistic:n})}writeQuery({id:e,data:n,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:n}))}writeFragment({data:e,fragment:n,fragmentName:r,...i}){const a=i.from!==void 0?this.toCacheId(i.from):i.id;return this.write(Object.assign(i,{query:this.getFragmentDoc(n,r),dataId:a,result:e}))}updateQuery(e,n){return this.batch({update(r){const i=r.readQuery(e),a=n(i);return a==null?i:(r.writeQuery({...e,data:a}),a)}})}updateFragment(e,n){return this.batch({update(r){const i=r.readFragment(e),a=n(i);return a==null?i:(r.writeFragment({...e,data:a}),a)}})}toCacheId(e){return typeof e=="string"?e:this.identify(e)}}const Fb=Object.freeze({data:null,dataState:"complete",complete:!0}),z3=Object.assign(new Ut(t=>{t.next(Fb)}),{dirty:!1,getCurrentResult:()=>Fb}),jb=Object.freeze({data:[],dataState:"complete",complete:!0}),H3=Object.assign(new Ut(t=>{t.next(jb)}),{getCurrentResult:()=>jb});class Fh extends Error{constructor(n,r,i,a){super(n);ae(this,"message");ae(this,"path");ae(this,"query");ae(this,"variables");ae(this,"missing");if(this.message=n,this.path=r,this.query=i,this.variables=a,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let o=this.path.length-1;o>=0;--o)this.missing={[this.path[o]]:this.missing}}else this.missing=this.path;this.__proto__=Fh.prototype}}const{hasOwnProperty:An}=Object.prototype;function Db({__typename:t,id:e,_id:n},r){if(typeof t=="string"&&(r&&(r.keyObject=e!=null?{id:e}:n!=null?{_id:n}:void 0),e==null&&n!=null&&(e=n),e!=null))return`${t}:${typeof e=="number"||typeof e=="string"?e:JSON.stringify(e)}`}const W3={dataIdFromObject:Db,resultCaching:!0};function G3(t){return Cr(W3,t)}const Vb=/^[_a-z][_0-9a-z]*/i;function Do(t){const e=t.match(Vb);return e?e[0]:t}function jh(t,e,n){return Dn(e)?gn(e)?e.every(r=>jh(t,r,n)):t.selections.every(r=>{if(sl(r)&&Kc(r,n)){const i=Fo(r);return An.call(e,i)&&(!r.selectionSet||jh(r.selectionSet,e[i],n))}return!0}):!1}function Vo(t){return Dn(t)&&!zt(t)&&!gn(t)}function Y3(){return new Po}function Ub(t,e){const n=rl(il(t));return{fragmentMap:n,lookupFragment(r){let i=n[r];return!i&&e&&(i=e.lookup(r)),i||null}}}const $c={},Dh=()=>$c,Bb={};class eu{constructor(e,n){ae(this,"policies");ae(this,"group");ae(this,"data",{});ae(this,"rootIds",{});ae(this,"refs",{});ae(this,"getFieldValue",(e,n)=>zt(e)?this.get(e.__ref,n):e&&e[n]);ae(this,"canRead",e=>zt(e)?this.has(e.__ref):typeof e=="object");ae(this,"toReference",(e,n)=>{if(typeof e=="string")return Lo(e);if(zt(e))return e;const[r]=this.policies.identify(e);if(r){const i=Lo(r);return n&&this.merge(r,e),i}});this.policies=e,this.group=n}toObject(){return{...this.data}}has(e){return this.lookup(e,!0)!==void 0}get(e,n){if(this.group.depend(e,n),An.call(this.data,e)){const r=this.data[e];if(r&&An.call(r,n))return r[n]}if(n==="__typename"&&An.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof xi)return this.parent.get(e,n)}lookup(e,n){if(n&&this.group.depend(e,"__exists"),An.call(this.data,e))return this.data[e];if(this instanceof xi)return this.parent.lookup(e,n);if(this.policies.rootTypenamesById[e])return{}}merge(e,n){let r;zt(e)&&(e=e.__ref),zt(n)&&(n=n.__ref);const i=typeof e=="string"?this.lookup(r=e):e,a=typeof n=="string"?this.lookup(r=n):n;if(!a)return;Je(typeof r=="string",99);const o=new Po({reconciler:Q3}).merge(i,a);if(this.data[r]=o,o!==i&&(delete this.refs[r],this.group.caching)){const s={};i||(s.__exists=1),Object.keys(a).forEach(c=>{if(!i||i[c]!==o[c]){s[c]=1;const u=Do(c);u!==c&&!this.policies.hasKeyArgs(o.__typename,u)&&(s[u]=1),o[c]===void 0&&!(this instanceof xi)&&delete o[c]}}),s.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===o.__typename&&delete s.__typename,Object.keys(s).forEach(c=>this.group.dirty(r,c))}}modify(e,n,r){const i=this.lookup(e);if(i){const a={};let o=!1,s=!0;const c={DELETE:$c,INVALIDATE:Bb,isReference:zt,toReference:this.toReference,canRead:this.canRead,readField:(u,d)=>this.policies.readField(typeof u=="string"?{fieldName:u,from:d||Lo(e)}:u,{store:this})};if(Object.keys(i).forEach(u=>{const d=Do(u);let h=i[u];if(h===void 0)return;const m=typeof n=="function"?n:n[u]||(r?void 0:n[d]);if(m){let p=m===Dh?$c:m(h,{...c,fieldName:d,storeFieldName:u,storage:this.getStorage(e,u)});p===Bb?this.group.dirty(e,u):(p===$c&&(p=void 0),p!==h&&(a[u]=p,o=!0,h=p))}h!==void 0&&(s=!1)}),o)return this.merge(e,a),s&&(this instanceof xi?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,n,r){const i=this.lookup(e);if(i){const a=this.getFieldValue(i,"__typename"),o=n&&r?this.policies.getStoreFieldName({typename:a,fieldName:n,args:r}):n;return this.modify(e,o?{[o]:Dh}:Dh,!!r)}return!1}evict(e,n){let r=!1;return e.id&&(An.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof xi&&this!==n&&(r=this.parent.evict(e,n)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){const e=this.toObject(),n=[];return this.getRootIdSet().forEach(r=>{An.call(this.policies.rootTypenamesById,r)||n.push(r)}),n.length&&(e.__META={extraRootIds:n.sort()}),e}replace(e){if(Object.keys(this.data).forEach(n=>{e&&An.call(e,n)||this.delete(n)}),e){const{__META:n,...r}=e;Object.keys(r).forEach(i=>{this.merge(i,r[i])}),n&&n.extraRootIds.forEach(this.retain,this)}}retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){const n=--this.rootIds[e];return n||delete this.rootIds[e],n}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof xi?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){const e=this.getRootIdSet(),n=this.toObject();e.forEach(i=>{An.call(n,i)&&(Object.keys(this.findChildRefIds(i)).forEach(e.add,e),delete n[i])});const r=Object.keys(n);if(r.length){let i=this;for(;i instanceof xi;)i=i.parent;r.forEach(a=>i.delete(a))}return r}findChildRefIds(e){if(!An.call(this.refs,e)){const n=this.refs[e]={},r=this.data[e];if(!r)return n;const i=new Set([r]);i.forEach(a=>{zt(a)&&(n[a.__ref]=!0),Dn(a)&&Object.keys(a).forEach(o=>{const s=a[o];Dn(s)&&i.add(s)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}get supportsResultCaching(){return this.group.caching}}class zb{constructor(e,n=null){ae(this,"caching");ae(this,"parent");ae(this,"d",null);ae(this,"keyMaker");this.caching=e,this.parent=n,this.resetCaching()}resetCaching(){this.d=this.caching?Ob():null,this.keyMaker=new Ci}depend(e,n){if(this.d){this.d(Vh(e,n));const r=Do(n);r!==n&&this.d(Vh(e,r)),this.parent&&this.parent.depend(e,n)}}dirty(e,n){this.d&&this.d.dirty(Vh(e,n),n==="__exists"?"forget":"setDirty")}}function Vh(t,e){return e+"#"+t}function Hb(t,e){fl(t)&&t.group.depend(e,"__exists")}class K3 extends eu{constructor({policies:n,resultCaching:r=!0,seed:i}){super(n,new zb(r));ae(this,"stump",new Z3(this));ae(this,"storageTrie",new Ci);i&&this.replace(i)}addLayer(n,r){return this.stump.addLayer(n,r)}removeLayer(){return this}getStorage(){return this.storageTrie.lookupArray(arguments)}}eu.Root=K3;class xi extends eu{constructor(n,r,i,a){super(r.policies,a);ae(this,"id");ae(this,"parent");ae(this,"replay");ae(this,"group");this.id=n,this.parent=r,this.replay=i,this.group=a,i(this)}addLayer(n,r){return new xi(n,this,r,this.group)}removeLayer(n){const r=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(i=>{const a=this.data[i],o=r.lookup(i);o?a?a!==o&&Object.keys(a).forEach(s=>{dt(a[s],o[s])||this.group.dirty(i,s)}):(this.group.dirty(i,"__exists"),Object.keys(o).forEach(s=>{this.group.dirty(i,s)})):this.delete(i)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(n){const r=this.parent.findChildRefIds(n);return An.call(this.data,n)?{...r,...super.findChildRefIds(n)}:r}getStorage(...n){let r=this.parent;for(;r.parent;)r=r.parent;return r.getStorage(...n)}}class Z3 extends xi{constructor(e){super("EntityStore.Stump",e,()=>{},new zb(e.group.caching,e.group))}removeLayer(){return this}merge(e,n){return this.parent.merge(e,n)}}function Q3(t,e,n){const r=t[n],i=e[n];return dt(r,i)?r:i}function fl(t){return!!(t&&t.supportsResultCaching)}const Wb=new Qc;function q3(t){var r,i;const e=(r=t.directives)==null?void 0:r.find(({name:a})=>a.value==="unmask");if(!e)return"mask";const n=(i=e.arguments)==null?void 0:i.find(({name:a})=>a.value==="mode");return n&&"value"in n.value&&n.value.value==="migrate"?"migrate":"unmask"}function Gb(t,e,n){return Wb.withValue(!0,()=>dl(t,e,n,!1))}function J3(t,e){if(e.has(t))return e.get(t);const n=Array.isArray(t)?[]:{};return e.set(t,n),n}function dl(t,e,n,r,i){const{knownChanged:a}=n,o=J3(t,n.mutableTargets);if(Array.isArray(t)){for(const[s,c]of Array.from(t.entries())){if(c===null){o[s]=null;continue}const u=dl(c,e,n,r);a.has(u)&&a.add(o),o[s]=u}return a.has(o)?o:t}for(const s of e.selections){let c;if(r&&a.add(o),s.kind===gt.FIELD){const u=Fo(s),d=s.selectionSet;if(c=o[u]||t[u],c===void 0)continue;if(d&&c!==null){const h=dl(t[u],d,n,r);a.has(h)&&(c=h)}o[u]=c}if(s.kind===gt.INLINE_FRAGMENT&&(!s.typeCondition||n.cache.fragmentMatches(s,t.__typename))&&(c=dl(t,s.selectionSet,n,r)),s.kind===gt.FRAGMENT_SPREAD){const u=s.name.value,d=n.fragmentMap[u]||(n.fragmentMap[u]=n.cache.lookupFragment(u));Je(d,39,u);const h=q3(s);h!=="mask"&&(c=dl(t,d.selectionSet,n,h==="migrate"))}a.has(c)&&a.add(o)}return"__typename"in t&&!("__typename"in o)&&(o.__typename=t.__typename),Object.keys(o).length!==Object.keys(t).length&&a.add(o),a.has(o)?o:t}function X3(t,e,n,r){const i=e.definitions.filter(o=>o.kind===gt.FRAGMENT_DEFINITION);typeof r>"u"&&(Je(i.length===1,41,i.length),r=i[0].name.value);const a=i.find(o=>o.name.value===r);return Je(!!a,42,r),t==null||dt(t,{})?t:Gb(t,a.selectionSet,{operationName:a.name.value,fragmentMap:rl(il(e)),cache:n,mutableTargets:new WeakMap,knownChanged:new WeakSet})}function $3(t,e,n){var i;const r=zi(e);return Je(r,43),t==null?t:Gb(t,r.selectionSet,{operationType:r.operation,operationName:(i=r.name)==null?void 0:i.value,fragmentMap:rl(il(e)),cache:n,mutableTargets:new WeakMap,knownChanged:new WeakSet})}const Yb={};function Uh(t){const e=JSON.stringify(t);return Yb[e]||(Yb[e]={})}function Kb(t){const e=Uh(t);return e.keyFieldsFn||(e.keyFieldsFn=(n,r)=>{const i=(o,s)=>r.readField(s,o),a=r.keyObject=Bh(t,o=>{let s=Uo(r.storeObject,o,i);return s===void 0&&n!==r.storeObject&&An.call(n,o[0])&&(s=Uo(n,o,qb)),Je(s!==void 0,102,o.join("."),n),s});return`${r.typename}:${JSON.stringify(a)}`})}function Zb(t){const e=Uh(t);return e.keyArgsFn||(e.keyArgsFn=(n,{field:r,variables:i,fieldName:a})=>{const o=Bh(t,c=>{const u=c[0],d=u.charAt(0);if(d==="@"){if(r&&_h(r.directives)){const h=u.slice(1),m=r.directives.find(y=>y.name.value===h),p=m&&yh(m,i);return p&&Uo(p,c.slice(1))}return}if(d==="$"){const h=u.slice(1);if(i&&An.call(i,h)){const m=c.slice(0);return m[0]=h,Uo(i,m)}return}if(n)return Uo(n,c)}),s=JSON.stringify(o);return(n||s!=="{}")&&(a+=":"+s),a})}function Bh(t,e){const n=new Po;return Qb(t).reduce((r,i)=>{let a=e(i);if(a!==void 0){for(let o=i.length-1;o>=0;--o)a={[i[o]]:a};r=n.merge(r,a)}return r},{})}function Qb(t){const e=Uh(t);if(!e.paths){const n=e.paths=[],r=[];t.forEach((i,a)=>{gn(i)?(Qb(i).forEach(o=>n.push(r.concat(o))),r.length=0):(r.push(i),gn(t[a+1])||(n.push(r.slice(0)),r.length=0))})}return e.paths}function qb(t,e){return t[e]}function Uo(t,e,n){return n=n||qb,Jb(e.reduce(function r(i,a){return gn(i)?i.map(o=>r(o,a)):i&&n(i,a)},t))}function Jb(t){return Dn(t)?gn(t)?t.map(Jb):Bh(Object.keys(t).sort(),e=>Uo(t,e)):t}const Xb=new Qc,$b=new WeakMap;function hl(t){let e=$b.get(t);return e||$b.set(t,e={vars:new Set,dep:Ob()}),e}function e2(t){hl(t).vars.forEach(e=>e.forgetCache(t))}function e7(t){hl(t).vars.forEach(e=>e.attachCache(t))}function t7(t){const e=new Set,n=new Set,r=function(a){if(arguments.length>0){if(t!==a){t=a,e.forEach(s=>{hl(s).dep.dirty(r),n7(s)});const o=Array.from(n);n.clear(),o.forEach(s=>s(t))}}else{const o=Xb.getValue();o&&(i(o),hl(o).dep(r))}return t};r.onNextChange=a=>(n.add(a),()=>{n.delete(a)});const i=r.attachCache=a=>(e.add(a),hl(a).vars.add(r),r);return r.forgetCache=a=>e.delete(a),r}function n7(t){t.broadcastWatches&&t.broadcastWatches()}function zh(t){return t.args!==void 0?t.args:t.field?yh(t.field,t.variables):null}const r7=()=>{},t2=(t,e)=>e.fieldName,n2=(t,e,{mergeObjects:n})=>n(t,e),r2=(t,e)=>e,i7=(t,e,{streamFieldInfo:n,existingData:r})=>{if(!t&&!r)return e;const i=[],a=t??r,o=n!=null&&n.isLastChunk?e.length:Math.max(a.length,e.length);for(let s=0;s<o;s++)i[s]=e[s]===void 0?a[s]:e[s];return i};class a7{constructor(e){ae(this,"config");ae(this,"typePolicies",{});ae(this,"toBeAdded",{});ae(this,"supertypeMap",new Map);ae(this,"fuzzySubtypes",new Map);ae(this,"cache");ae(this,"rootIdsByTypename",{});ae(this,"rootTypenamesById",{});ae(this,"usingPossibleTypes",!1);this.config=e,this.config={dataIdFromObject:Db,...e},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}identify(e,n){var d;const r=this,i=n&&(n.typename||((d=n.storeObject)==null?void 0:d.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];const a=n&&n.storeObject||e,o={...n,typename:i,storeObject:a,readField:n&&n.readField||((...h)=>{const m=Hh(h,a);return r.readField(m,{store:r.cache.data,variables:m.variables})})};let s;const c=i&&this.getTypePolicy(i);let u=c&&c.keyFn||this.config.dataIdFromObject;return Wb.withValue(!0,()=>{for(;u;){const h=u({...e,...a},o);if(gn(h))u=Kb(h);else{s=h;break}}}),s=s?String(s):void 0,o.keyObject?[s,o.keyObject]:[s]}addTypePolicies(e){Object.keys(e).forEach(n=>{const{queryType:r,mutationType:i,subscriptionType:a,...o}=e[n];r&&this.setRootTypename("Query",n),i&&this.setRootTypename("Mutation",n),a&&this.setRootTypename("Subscription",n),An.call(this.toBeAdded,n)?this.toBeAdded[n].push(o):this.toBeAdded[n]=[o]})}updateTypePolicy(e,n,r){const i=this.getTypePolicy(e),{keyFields:a,fields:o}=n;function s(c,u){c.merge=typeof u=="function"?u:u===!0?n2:u===!1?r2:c.merge}s(i,n.merge),i.keyFn=a===!1?r7:gn(a)?Kb(a):typeof a=="function"?a:i.keyFn,o&&Object.keys(o).forEach(c=>{let u=r[c];(!u||(u==null?void 0:u.typename)!==e)&&(u=r[c]={typename:e});const d=o[c];if(typeof d=="function")u.read=d;else{const{keyArgs:h,read:m,merge:p}=d;u.keyFn=h===!1?t2:gn(h)?Zb(h):typeof h=="function"?h:u.keyFn,typeof m=="function"&&(u.read=m),s(u,p)}u.read&&u.merge&&(u.keyFn=u.keyFn||t2)})}setRootTypename(e,n=e){const r="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(Je(!i||i===e,103,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(n=>{this.getSupertypeSet(n,!0),e[n].forEach(r=>{this.getSupertypeSet(r,!0).add(n);const i=r.match(Vb);(!i||i[0]!==r)&&this.fuzzySubtypes.set(r,new RegExp(r))})})}getTypePolicy(e){if(!An.call(this.typePolicies,e)){const r=this.typePolicies[e]={};r.fields={};let i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((a,o)=>{if(a.test(e)){const s=this.supertypeMap.get(o);s&&s.forEach(c=>i.add(c))}})),i&&i.size&&i.forEach(a=>{const{fields:o,...s}=this.getTypePolicy(a);Object.assign(r,s),Object.assign(r.fields,o)})}const n=this.toBeAdded[e];return n&&n.length&&n.splice(0).forEach(r=>{this.updateTypePolicy(e,r,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,n){if(e)return this.getTypePolicy(e).fields[n]}getSupertypeSet(e,n){let r=this.supertypeMap.get(e);return!r&&n&&this.supertypeMap.set(e,r=new Set),r}fragmentMatches(e,n,r,i){if(!e.typeCondition)return!0;if(!n)return!1;const a=e.typeCondition.name.value;if(n===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a)){const o=this.getSupertypeSet(n,!0),s=[o],c=d=>{const h=this.getSupertypeSet(d,!1);h&&h.size&&s.indexOf(h)<0&&s.push(h)};let u=!!(r&&this.fuzzySubtypes.size);for(let d=0;d<s.length;++d){const h=s[d];if(h.has(a))return o.has(a)||o.add(a),!0;h.forEach(c),u&&d===s.length-1&&jh(e.selectionSet,r,i)&&(u=!1,this.fuzzySubtypes.forEach((m,p)=>{const y=n.match(m);y&&y[0]===n&&c(p)}))}}return!1}hasKeyArgs(e,n){const r=this.getFieldPolicy(e,n);return!!(r&&r.keyFn)}getStoreFieldName(e){const{typename:n,fieldName:r}=e,i=this.getFieldPolicy(n,r);let a,o=i&&i.keyFn;if(o&&n){const s={typename:n,fieldName:r,field:e.field||null,variables:e.variables},c=zh(e);for(;o;){const u=o(c,s);if(gn(u))o=Zb(u);else{a=u||r;break}}}return a===void 0&&(a=e.field?S3(e.field,e.variables):cb(r,zh(e))),a===!1?r:r===Do(a)?a:r+":"+a}readField(e,n){const r=e.from;if(!r||!(e.field||e.fieldName))return;if(e.typename===void 0){const d=n.store.getFieldValue(r,"__typename");d&&(e.typename=d)}const a=this.getStoreFieldName(e),o=Do(a),s=n.store.getFieldValue(r,a),c=this.getFieldPolicy(e.typename,o),u=c&&c.read;if(u){const d=i2(this,r,e,n,n.store.getStorage(zt(r)?r.__ref:r,a));return Xb.withValue(this.cache,u,[s,d])}return s}getReadFunction(e,n){const r=this.getFieldPolicy(e,n);return r&&r.read}getMergeFunction(e,n,r){let i=this.getFieldPolicy(e,n),a=i&&i.merge;return!a&&r&&(i=this.getTypePolicy(r),a=i&&i.merge),a}runMergeFunction(e,n,{field:r,typename:i,merge:a,path:o},s,c){var m,p,y;const u=e;if(a===n2)return a2(s.store)(e,n);if(a===r2)return n;s.overwrite&&(e=void 0);const d=(y=(p=(m=s.extensions)==null?void 0:m[ha])==null?void 0:p.deref())==null?void 0:y.peekArray(o);if(d){const{current:b,previous:v}=d;if(v&&dt(v.incoming,n)&&dt(v.streamFieldInfo,b))return v.result}const h=a(e,n,o7(this,void 0,{typename:i,fieldName:r.name.value,field:r,variables:s.variables,path:o},s,c||{},u));return d&&(d.previous={incoming:n,streamFieldInfo:d.current,result:h}),h}}function i2(t,e,n,r,i){const a=t.getStoreFieldName(n),o=Do(a),s=n.variables||r.variables,{toReference:c,canRead:u}=r.store;return{args:zh(n),field:n.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:zt,toReference:c,storage:i,cache:t.cache,canRead:u,readField(...d){return t.readField(Hh(d,e,s),r)},mergeObjects:a2(r.store)}}function o7(t,e,n,r,i,a){var c;const o={...i2(t,e,n,r,i),extensions:r.extensions,existingData:a},s=r.extensions;if(s&&ha in s){const{[ha]:u,...d}=s,h=(c=u==null?void 0:u.deref())==null?void 0:c.peekArray(n.path);h&&(o.streamFieldInfo=h.current),o.extensions=Object.keys(d).length===0?void 0:d}return o}function Hh(t,e,n){const{0:r,1:i,length:a}=t;let o;return typeof r=="string"?o={fieldName:r,from:a>1?i:e}:(o={...r},An.call(o,"from")||(o.from=e)),o.variables===void 0&&(o.variables=n),o}function a2(t){return function(n,r){if(gn(n)||gn(r))throw Lr(106);if(Dn(n)&&Dn(r)){const i=t.getFieldValue(n,"__typename"),a=t.getFieldValue(r,"__typename");if(i&&a&&i!==a)return r;if(zt(n)&&Vo(r))return t.merge(n.__ref,r),n;if(Vo(n)&&zt(r))return t.merge(n,r.__ref),r;if(Vo(n)&&Vo(r))return{...n,...r}}return r}}function o2(t){return[t.selectionSet,t.objectOrReference,t.context]}class s7{constructor(e){ae(this,"executeSelectionSet");ae(this,"executeSubSelectedArray");ae(this,"config");ae(this,"knownResults",new WeakMap);this.config=e,this.executeSelectionSet=ul(n=>{const r=o2(n),i=this.executeSelectionSet.peek(...r);return i||(Hb(n.context.store,n.enclosingRef.__ref),this.execSelectionSetImpl(n))},{max:Bi["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:o2,makeCacheKey(n,r,i){if(fl(i.store))return i.store.makeCacheKey(n,zt(r)?r.__ref:r,i.varString)}}),this.executeSubSelectedArray=ul(n=>(Hb(n.context.store,n.enclosingRef.__ref),this.execSubSelectedArrayImpl(n)),{max:Bi["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:n,array:r,context:i}){if(fl(i.store))return i.store.makeCacheKey(n,r,i.varString)}})}diffQueryAgainstStore({store:e,query:n,rootId:r="ROOT_QUERY",variables:i,returnPartialData:a=!0}){const o=this.config.cache.policies;i={...Ch(l3(n)),...i};const s=Lo(r),c=this.executeSelectionSet({selectionSet:xh(n).selectionSet,objectOrReference:s,enclosingRef:s,context:{store:e,query:n,policies:o,variables:i,varString:Hi(i),...Ub(n,this.config.fragments)}});let u;c.missing&&(u=new Fh(l7(c.missing),c.missing,n,i));const d=!u,{result:h}=c;return{result:d?h:a?Object.keys(h).length===0?null:h:null,complete:d,missing:u}}isFresh(e,n,r,i){if(fl(i.store)&&this.knownResults.get(e)===r){const a=this.executeSelectionSet.peek(r,n,i);if(a&&e===a.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:n,enclosingRef:r,context:i}){if(zt(n)&&!i.policies.rootTypenamesById[n.__ref]&&!i.store.has(n.__ref))return{result:{},missing:`Dangling reference to missing ${n.__ref} object`};const{variables:a,policies:o,store:s}=i,c=s.getFieldValue(n,"__typename"),u=[];let d;const h=new Po;typeof c=="string"&&!o.rootIdsByTypename[c]&&u.push({__typename:c});function m(x,_){return x.missing&&(d=h.merge(d,{[_]:x.missing})),x.result}const p=new Set(e.selections);p.forEach(x=>{if(Kc(x,a))if(sl(x)){let _=o.readField({fieldName:x.name.value,field:x,variables:i.variables,from:n},i);const T=Fo(x);_===void 0?Ib.added(x)||(d=h.merge(d,{[T]:`Can't find field '${x.name.value}' on ${zt(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)}`})):gn(_)?_.length>0&&(_=m(this.executeSubSelectedArray({field:x,array:_,enclosingRef:r,context:i}),T)):x.selectionSet&&_!=null&&(_=m(this.executeSelectionSet({selectionSet:x.selectionSet,objectOrReference:_,enclosingRef:zt(_)?_:r,context:i}),T)),_!==void 0&&u.push({[T]:_})}else{const _=Yc(x,i.lookupFragment);if(!_&&x.kind===gt.FRAGMENT_SPREAD)throw Lr(107,x.name.value);_&&o.fragmentMatches(_,c)&&_.selectionSet.selections.forEach(p.add,p)}});const b={result:p3(u),missing:d},v=b;return v.result&&this.knownResults.set(v.result,e),v}execSubSelectedArrayImpl({field:e,array:n,enclosingRef:r,context:i}){let a,o=new Po;function s(c,u){return c.missing&&(a=o.merge(a,{[u]:c.missing})),c.result}return e.selectionSet&&(n=n.filter(c=>c===void 0||i.store.canRead(c))),n=n.map((c,u)=>c===null?null:gn(c)?s(this.executeSubSelectedArray({field:e,array:c,enclosingRef:r,context:i}),u):e.selectionSet?s(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:c,enclosingRef:zt(c)?c:r,context:i}),u):c),{result:n,missing:a}}}function l7(t){try{JSON.stringify(t,(e,n)=>{if(typeof n=="string")throw n;return n})}catch(e){return e}}function Wh(t,e,n){const r=`${e}${n}`;let i=t.flavors.get(r);return i||t.flavors.set(r,i=t.clientOnly===e&&t.deferred===n?t:{...t,clientOnly:e,deferred:n}),i}class c7{constructor(e,n,r){ae(this,"cache");ae(this,"reader");ae(this,"fragments");this.cache=e,this.reader=n,this.fragments=r}writeToStore(e,{query:n,result:r,dataId:i,variables:a,overwrite:o,extensions:s}){const c=zi(n),u=Y3();a={...Ch(c),...a};const d={store:e,written:{},merge(m,p){return u.merge(m,p)},variables:a,varString:Hi(a),...Ub(n,this.fragments),overwrite:!!o,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:s},h=this.processSelectionSet({result:r||{},dataId:i,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:d,path:[]});if(!zt(h))throw Lr(109,r);return d.incomingById.forEach(({storeObject:m,mergeTree:p,fieldNodeSet:y},b)=>{const v=Lo(b);if(p&&p.map.size){const x=this.applyMerges(p,v,m,d);if(zt(x))return;m=x}e.merge(b,m)}),e.retain(h.__ref),h}processSelectionSet({dataId:e,result:n,selectionSet:r,context:i,mergeTree:a,path:o}){const{policies:s}=this.cache;let c={};const u=e&&s.rootTypenamesById[e]||Yh(n,r,i.fragmentMap)||e&&i.store.get(e,"__typename");typeof u=="string"&&(c.__typename=u);const d=(...m)=>{const p=Hh(m,c,i.variables);if(zt(p.from)){const y=i.incomingById.get(p.from.__ref);if(y){const b=s.readField({...p,from:y.storeObject},i);if(b!==void 0)return b}}return s.readField(p,i)},h=new Set;this.flattenFields(r,n,i,u).forEach((m,p)=>{var x;const y=Fo(p),b=n[y],v=[...o,p.name.value];if(h.add(p),b!==void 0){const _=s.getStoreFieldName({typename:u,fieldName:p.name.value,field:p,variables:m.variables}),T=l2(a,_);let C=this.processFieldValue(b,p,p.selectionSet?Wh(m,!1,!1):m,T,v),w;p.selectionSet&&(zt(C)||Vo(C))&&(w=d("__typename",C));const A=s.getMergeFunction(u,p.name.value,w);A?T.info={field:p,typename:u,merge:A,path:v}:Mo(["stream"],p)&&Array.isArray(C)&&((x=m.extensions)!=null&&x[ha])?T.info={field:p,typename:u,merge:i7,path:v}:c2(a,_),c=m.merge(c,{[_]:C})}});try{const[m,p]=s.identify(n,{typename:u,selectionSet:r,fragmentMap:i.fragmentMap,storeObject:c,readField:d});e=e||m,p&&(c=i.merge(c,p))}catch(m){if(!e)throw m}if(typeof e=="string"){const m=Lo(e),p=i.written[e]||(i.written[e]=[]);if(p.indexOf(r)>=0||(p.push(r),this.reader&&this.reader.isFresh(n,m,r,i)))return m;const y=i.incomingById.get(e);return y?(y.storeObject=i.merge(y.storeObject,c),y.mergeTree=Gh(y.mergeTree,a),h.forEach(b=>y.fieldNodeSet.add(b))):i.incomingById.set(e,{storeObject:c,mergeTree:tu(a)?void 0:a,fieldNodeSet:h}),m}return c}processFieldValue(e,n,r,i,a){return!n.selectionSet||e===null?e:gn(e)?e.map((o,s)=>{const c=this.processFieldValue(o,n,r,l2(i,s),[...a,s]);return c2(i,s),c}):this.processSelectionSet({result:e,selectionSet:n.selectionSet,context:r,mergeTree:i,path:a})}flattenFields(e,n,r,i=Yh(n,e,r.fragmentMap)){const a=new Map,{policies:o}=this.cache,s=new Ci(!1);return(function c(u,d){const h=s.lookup(u,d.clientOnly,d.deferred);h.visited||(h.visited=!0,u.selections.forEach(m=>{if(!Kc(m,r.variables))return;let{clientOnly:p,deferred:y}=d;if(!(p&&y)&&_h(m.directives)&&m.directives.forEach(b=>{const v=b.name.value;if(v==="client"&&(p=!0),v==="defer"){const x=yh(b,r.variables);(!x||x.if!==!1)&&(y=!0)}}),sl(m)){const b=a.get(m);b&&(p=p&&b.clientOnly,y=y&&b.deferred),a.set(m,Wh(r,p,y))}else{const b=Yc(m,r.lookupFragment);if(!b&&m.kind===gt.FRAGMENT_SPREAD)throw Lr(111,m.name.value);b&&o.fragmentMatches(b,i,n,r.variables)&&c(b.selectionSet,Wh(r,p,y))}}))})(e,r),a}applyMerges(e,n,r,i,a){if(e.map.size&&!zt(r)){const o=!gn(r)&&(zt(n)||Vo(n))?n:void 0,s=r;o&&!a&&(a=[zt(o)?o.__ref:o]);let c;const u=(d,h)=>gn(d)?typeof h=="number"?d[h]:void 0:i.store.getFieldValue(d,String(h));e.map.forEach((d,h)=>{const m=u(o,h),p=u(s,h);if(p===void 0)return;a&&a.push(h);const y=this.applyMerges(d,m,p,i,a);y!==p&&(c=c||new Map,c.set(h,y)),a&&Je(a.pop()===h)}),c&&(r=gn(s)?s.slice(0):{...s},c.forEach((d,h)=>{r[h]=d}))}return e.info?this.cache.policies.runMergeFunction(n,r,e.info,i,a&&i.store.getStorage(...a)):r}}const s2=[];function l2({map:t},e){return t.has(e)||t.set(e,s2.pop()||{map:new Map}),t.get(e)}function Gh(t,e){if(t===e||!e||tu(e))return t;if(!t||tu(t))return e;const n=t.info&&e.info?{...t.info,...e.info}:t.info||e.info,r=t.map.size&&e.map.size,i=r?new Map:t.map.size?t.map:e.map,a={info:n,map:i};if(r){const o=new Set(e.map.keys());t.map.forEach((s,c)=>{a.map.set(c,Gh(s,e.map.get(c))),o.delete(c)}),o.forEach(s=>{a.map.set(s,Gh(e.map.get(s),t.map.get(s)))})}return a}function tu(t){return!t||!(t.info||t.map.size)}function c2({map:t},e){const n=t.get(e);n&&tu(n)&&(s2.push(n),t.delete(e))}function Yh(t,e,n){let r;for(const i of e.selections)if(sl(i)){if(i.name.value==="__typename")return t[Fo(i)]}else r?r.push(i):r=[i];if(typeof t.__typename=="string")return t.__typename;if(r)for(const i of r){const a=Yh(t,Yc(i,n).selectionSet,n);if(typeof a=="string")return a}}class u7 extends B3{constructor(n={}){super();ae(this,"data");ae(this,"optimisticData");ae(this,"config");ae(this,"watches",new Set);ae(this,"storeReader");ae(this,"storeWriter");ae(this,"addTypenameTransform",new Wi(Ib));ae(this,"maybeBroadcastWatch");ae(this,"assumeImmutableResults",!0);ae(this,"policies");ae(this,"makeVar",t7);ae(this,"txCount",0);this.config=G3(n),this.policies=new a7({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){const n=this.data=new eu.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()}resetResultCache(){const{fragments:n}=this.config;this.addTypenameTransform.resetCache(),n==null||n.resetCaches(),this.storeWriter=new c7(this,this.storeReader=new s7({cache:this,fragments:n}),n),this.maybeBroadcastWatch=ul((r,i)=>this.broadcastWatch(r,i),{max:Bi["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:r=>{const i=r.optimistic?this.optimisticData:this.data;if(fl(i)){const{optimistic:a,id:o,variables:s}=r;return i.makeCacheKey(r.query,r.callback,Hi({optimistic:a,id:o,variables:s}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(r=>r.resetCaching())}restore(n){return this.init(),n&&this.data.replace(n),this}extract(n=!1){return(n?this.optimisticData:this.data).extract()}read(n){const{returnPartialData:r=!1}=n;return this.storeReader.diffQueryAgainstStore({...n,store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r}).result}write(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}modify(n){if(An.call(n,"id")&&!n.id)return!1;const r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields,!1)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}diff(n){return this.storeReader.diffQueryAgainstStore({...n,store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config})}watch(n){return this.watches.size||e7(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),()=>{this.watches.delete(n)&&!this.watches.size&&e2(this),this.maybeBroadcastWatch.forget(n)}}gc(n){Hi.reset(),Ya.reset();const r=this.optimisticData.gc();return n&&!this.txCount&&n.resetResultCache&&this.resetResultCache(),r}retain(n,r){return(r?this.optimisticData:this.data).retain(n)}release(n,r){return(r?this.optimisticData:this.data).release(n)}identify(n){if(zt(n))return n.__ref;try{return this.policies.identify(n)[0]}catch{}}evict(n){if(!n.id){if(An.call(n,"id"))return!1;n={...n,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}reset(n){return this.init(),Hi.reset(),n&&n.discardWatches?(this.watches.forEach(r=>this.maybeBroadcastWatch.forget(r)),this.watches.clear(),e2(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(n){const r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())}batch(n){const{update:r,optimistic:i=!0,removeOptimistic:a,onWatchUpdated:o}=n;let s;const c=d=>{const{data:h,optimisticData:m}=this;++this.txCount,d&&(this.data=this.optimisticData=d);try{return s=r(this)}finally{--this.txCount,this.data=h,this.optimisticData=m}},u=new Set;return o&&!this.txCount&&this.broadcastWatches({...n,onWatchUpdated(d){return u.add(d),!1}}),typeof i=="string"?this.optimisticData=this.optimisticData.addLayer(i,c):i===!1?c(this.data):c(),typeof a=="string"&&(this.optimisticData=this.optimisticData.removeLayer(a)),o&&u.size?(this.broadcastWatches({...n,onWatchUpdated(d,h){const m=o.call(this,d,h);return m!==!1&&u.delete(d),m}}),u.size&&u.forEach(d=>this.maybeBroadcastWatch.dirty(d))):this.broadcastWatches(n),s}performTransaction(n,r){return this.batch({update:n,optimistic:r||r!==null})}transformDocument(n){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(n))}fragmentMatches(n,r){return this.policies.fragmentMatches(n,r)}lookupFragment(n){var r;return((r=this.config.fragments)==null?void 0:r.lookup(n))||null}resolvesClientField(n,r){return!!this.policies.getReadFunction(n,r)}broadcastWatches(n){if(!this.txCount){const r=this.onAfterBroadcast,i=new Set;this.onAfterBroadcast=a=>{i.add(a)};try{this.watches.forEach(a=>this.maybeBroadcastWatch(a,n)),i.forEach(a=>a())}finally{this.onAfterBroadcast=r}}}addFragmentsToDocument(n){const{fragments:r}=this.config;return r?r.transform(n):n}broadcastWatch(n,r){const{lastDiff:i}=n,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)}}function pl(t,e){return typeof t=="object"&&t!==null&&t[Symbol.for("apollo.error")]===e}function ml(t){Object.defineProperty(t,Symbol.for("apollo.error"),{value:t.name,enumerable:!1,writable:!1,configurable:!1})}function u2(t){return t.map(e=>e.message||"Error message not found.").join(`
40
40
  `)}const vc=class vc extends Error{constructor(n){super(vc.formatMessage(n,{defaultFormatMessage:u2}));ae(this,"errors");this.name="CombinedProtocolErrors",this.errors=n,ml(this),Object.setPrototypeOf(this,vc.prototype)}static is(n){return pl(n,"CombinedProtocolErrors")}};ae(vc,"formatMessage",u2);let nu=vc;function f7(t){return t!==null&&typeof t=="object"&&typeof t.message=="string"&&typeof t.name=="string"&&(typeof t.stack=="string"||typeof t.stack>"u")}class Kh extends Error{static is(e){return pl(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",ml(this),Object.setPrototypeOf(this,Kh.prototype)}}function f2(t){return t.filter(e=>e).map(e=>e.message||"Error message not found.").join(`
41
- `)}const yc=class yc extends Error{constructor(n,r=n.errors||[]){super(yc.formatMessage(r,{result:n,defaultFormatMessage:f2}));ae(this,"errors");ae(this,"data");ae(this,"extensions");this.errors=r,this.data=n.data,this.extensions=n.extensions,this.name="CombinedGraphQLErrors",ml(this),Object.setPrototypeOf(this,yc.prototype)}static is(n){return pl(n,"CombinedGraphQLErrors")}};ae(yc,"formatMessage",f2);let Gi=yc;const d7=new WeakSet;function h7(t){d7.add(t)}class ru extends Error{constructor(n,r){super(n);ae(this,"response");ae(this,"statusCode");ae(this,"bodyText");this.name="ServerError",this.response=r.response,this.statusCode=r.response.status,this.bodyText=r.bodyText,ml(this),Object.setPrototypeOf(this,ru.prototype)}static is(n){return pl(n,"ServerError")}}class iu extends Error{constructor(n,r){super(n instanceof Error?n.message:"Could not parse server response",{cause:n});ae(this,"response");ae(this,"statusCode");ae(this,"bodyText");this.name="ServerParseError",this.response=r.response,this.statusCode=r.response.status,this.bodyText=r.bodyText,ml(this),Object.setPrototypeOf(this,iu.prototype)}static is(n){return pl(n,"ServerParseError")}}const gl=Symbol();function d2(t){return"extensions"in t?nu.is(t.extensions[gl]):!1}function Zh(t){return f7(t)?t:typeof t=="string"?new Error(t,{cause:t}):new Kh(t)}var ze;(function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error",t[t.streaming=9]="streaming"})(ze||(ze={}));const{assign:h2}=Object,Bo={loading:!0,networkStatus:ze.loading,data:void 0,dataState:"empty",partial:!0},Qh={loading:!1,networkStatus:ze.ready,data:void 0,dataState:"empty",partial:!0};d8=Symbol.observable;class qh{constructor({queryManager:e,options:n,transformedQuery:r=e.transform(n.query)}){ae(this,"options");ae(this,"queryName");ae(this,"variablesUnknown",!1);ae(this,"_lastWrite");ae(this,"unsubscribeFromCache");ae(this,"input");ae(this,"subject");ae(this,"isTornDown");ae(this,"queryManager");ae(this,"subscriptions",new Set);ae(this,"waitForNetworkResult");ae(this,"lastQuery");ae(this,"linkSubscription");ae(this,"pollingInfo");ae(this,"subscribe");ae(this,"pipe");ae(this,d8);ae(this,"@@observable");ae(this,"stableLastResult");ae(this,"didWarnCacheOnlyPolling",!1);ae(this,"dirty",!1);ae(this,"notifyTimeout");ae(this,"activeOperations",new Set);ae(this,"operator",kh(e=>{const{query:n,variables:r,meta:i}=e;if(e.source==="setResult")return{query:n,variables:r,result:e.value,meta:i};if(e.kind==="C"||!vl(e,this))return;let a;const o=this.subject.getValue();if(e.source==="cache"){if(a=e.value,a.networkStatus===ze.ready&&a.partial&&(!this.options.returnPartialData||o.result.networkStatus===ze.error)&&this.options.fetchPolicy!=="cache-only")return}else if(e.source==="network")this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),a=e.kind==="E"?{...vl(o,e)?o.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:ze.error,loading:!1}:e.value,e.kind==="E"&&a.dataState==="streaming"&&(a.dataState="complete"),a.error&&(i.shouldEmit=1);else if(e.source==="newNetworkStatus"){const s=vl(o,e)?o.result:this.getInitialResult(i.fetchPolicy),{resetError:c}=e.value,u=c?void 0:s.error,d=u?ze.error:ze.ready;a={...s,error:u,networkStatus:d}}return Je(a),a.error||delete a.error,a.networkStatus=this.calculateNetworkStatus(a.networkStatus),a.loading=Xc(a.networkStatus),a=this.maskResult(a),{query:n,variables:r,result:a,meta:i}}));this.queryManager=e,this.waitForNetworkResult=n.fetchPolicy==="network-only",this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);const{watchQuery:{fetchPolicy:i="cache-first"}={}}=e.defaultOptions,{fetchPolicy:a=i,initialFetchPolicy:o=a==="standby"?i:a}=n;n[Th]&&(Je(a==="standby",80),this.variablesUnknown=!0),this.lastQuery=r,this.options={...n,initialFetchPolicy:o,fetchPolicy:a,variables:this.getVariablesWithDefaults(n.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);const s=zi(this.query);this.queryName=s&&s.name&&s.name.value}get query(){return this.lastQuery}get variables(){return this.options.variables}get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}initializeObservablesQueue(){this.subject=new l9({query:this.query,variables:this.variables,result:Bo,meta:{}});const e=this.subject.pipe(nl({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),kh(({query:n,variables:r,result:i,meta:a},o)=>{const{shouldEmit:s}=a;if(i===Bo&&(o.previous=void 0,o.previousVariables=void 0),this.options.fetchPolicy==="standby"||s===2)return;if(s===1)return d();const{previous:c,previousVariables:u}=o;if(c){const h=this.queryManager.getDocumentInfo(n),m=this.queryManager.dataMasking,p=m?h.nonReactiveQuery:n;if((m||h.hasNonreactiveDirective?db(p,c,i,r):dt(c,i))&&dt(u,r))return}if(s===3&&(!this.options.notifyOnNetworkStatusChange||dt(c,i)))return;return d();function d(){return o.previous=i,o.previousVariables=r,i}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new ko,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}getCacheDiff({optimistic:e=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let n=e||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&(n==="network-only"||n==="cache-and-network")&&(n="cache-first");const r=()=>{const i=this.getCacheDiff(),a=this.options.returnPartialData||i.complete?i.result??void 0:void 0;return this.maskResult({data:a,dataState:i.complete?"complete":a===void 0?"empty":"partial",loading:!i.complete,networkStatus:i.complete?ze.ready:ze.loading,partial:!i.complete})};switch(n){case"cache-only":return{...r(),loading:!1,networkStatus:ze.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:ze.loading};case"standby":return Qh;default:return Bo}}resubscribeCache(){var c;const{variables:e,fetchPolicy:n}=this.options,r=this.query,i=n==="standby"||n==="no-cache"||this.waitForNetworkResult,a=!vl({query:r,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((i||a)&&((c=this.unsubscribeFromCache)==null||c.call(this)),i||!a)return;const o={query:r,variables:e,optimistic:!0,watcher:this,callback:u=>{const d=this.queryManager.getDocumentInfo(r);if((d.hasClientExports||d.hasForcedResolvers)&&(o.lastDiff=void 0),o.lastOwnDiff===u)return;const{result:h}=this.subject.getValue();!u.complete&&(h.error||h===Bo||h===Qh)||dt(h.data,u.result)||this.scheduleNotify()}},s=this.cache.watch(o);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,s()},{query:r,variables:e})}getCurrentResult(){const{result:e}=this.subject.getValue();let n=e.networkStatus===ze.error||this.hasObservers()||this.options.fetchPolicy==="no-cache"?e:this.getInitialResult();return n===Bo&&(n=this.getInitialResult()),dt(this.stableLastResult,n)||(this.stableLastResult=n),this.stableLastResult}refetch(e){const{fetchPolicy:n}=this.options,r={pollInterval:0};return n==="no-cache"?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",e&&!dt(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:ze.refetch})}fetchMore({query:e,variables:n,context:r,errorPolicy:i,updateQuery:a}){Je(this.options.fetchPolicy!=="cache-only",82,Ro(this.query,"(anonymous)"));const o={...Cr(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:i}),variables:e?n:{...this.variables,...n},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};o.query=this.transformDocument(o.query),this.lastQuery=e?this.transformDocument(this.options.query):o.query;let s=!1;const c=this.options.fetchPolicy!=="no-cache";c||Je(a,83);const{finalize:u,pushNotification:d}=this.pushOperation(ze.fetchMore);d({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});const{promise:h,operator:m}=p2(),{observable:p}=this.queryManager.fetchObservableWithInfo(o,{networkStatus:ze.fetchMore,exposeExtensions:!0}),y=p.pipe(m,rb(b=>b.kind==="N"&&b.source==="network")).subscribe({next:b=>{s=!1;const v=b.value,x=v[pb];if(Lb(b.value.networkStatus)&&u(),c){const _=this.getCacheDiff();this.cache.batch({update:T=>{a?T.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:x},C=>a(C,{fetchMoreResult:v.data,variables:o.variables})):T.writeQuery({query:o.query,variables:o.variables,data:v.data,extensions:x})},onWatchUpdated:(T,C)=>{if(T.watcher===this&&!dt(C.result,_.result)){s=!0;const w=this.getCurrentResult();Xc(v.networkStatus)&&d({kind:"N",source:"network",value:{...w,networkStatus:v.networkStatus===ze.error?ze.ready:v.networkStatus,loading:!1,data:C.result,dataState:v.dataState==="streaming"?"streaming":"complete"}})}}})}else{const _=this.getCurrentResult(),T=a(_.data,{fetchMoreResult:v.data,variables:o.variables});d({kind:"N",value:{..._,networkStatus:ze.ready,loading:!1,data:T,dataState:_.dataState==="streaming"?"streaming":"complete"},source:"network"})}}});return Ah(h.then(b=>ll(this.maskResult(b))).finally(()=>{if(y.unsubscribe(),u(),c&&!s){const b=this.getCurrentResult();b.dataState==="streaming"?d({kind:"N",source:"network",value:{...b,dataState:"complete",networkStatus:ze.ready}}):d({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(e){const n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:r=>{const{updateQuery:i,onError:a}=e,{error:o}=r;if(o){a?a(o):Je.error(84,o);return}i&&this.updateQuery((s,c)=>i(s,{subscriptionData:r,...c}))}});return this.subscriptions.add(n),()=>{this.subscriptions.delete(n)&&n.unsubscribe()}}applyOptions(e){const n=Cr(this.options,e||{});h2(this.options,n),this.updatePolling()}async setVariables(e){return e=this.getVariablesWithDefaults(e),dt(this.variables,e)?ll(this.getCurrentResult()):(this.options.variables=e,this.hasObservers()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:ze.setVariables}):ll(this.getCurrentResult()))}updateQuery(e){const{queryManager:n}=this,{result:r,complete:i}=this.getCacheDiff({optimistic:!1}),a=e(r,{variables:this.variables,complete:!!i,previousData:r});a&&(this.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),n.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,n){if(n.nextFetchPolicy){const{fetchPolicy:r="cache-first",initialFetchPolicy:i=r}=n;r==="standby"||(typeof n.nextFetchPolicy=="function"?n.fetchPolicy=n.nextFetchPolicy.call(n,r,{reason:e,options:n,observable:this,initialFetchPolicy:i}):e==="variables-changed"?n.fetchPolicy=i:n.fetchPolicy=n.nextFetchPolicy)}return n.fetchPolicy}fetch(e,n,r,i){const a=this.options.fetchPolicy;e.context??(e.context={});let o=!1;const s=()=>{o=!0},c=v=>new Ut(x=>{try{return v.subscribe({next(_){o=!0,x.next(_)},error:_=>x.error(_),complete:()=>x.complete()})}finally{o||(p.override=n,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:h,variables:m,meta:{shouldEmit:3,fetchPolicy:a}}))}});let{observable:u,fromLink:d}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:n,query:r,onCacheHit:s,fetchQueryOperator:c,observableQuery:this});const{query:h,variables:m}=this,p={abort:()=>{b.unsubscribe()},query:h,variables:m};this.activeOperations.add(p);let y=n==ze.refetch||n==ze.setVariables;u=u.pipe(i,tl());const b=u.pipe(nl({next:v=>{v.source==="newNetworkStatus"||v.kind==="N"&&v.value.loading?p.override=n:delete p.override},finalize:()=>this.activeOperations.delete(p)})).subscribe({next:v=>{const x={};y&&v.kind==="N"&&"loading"in v.value&&!v.value.loading&&(y=!1,x.shouldEmit=1),this.input.next({...v,query:h,variables:m,meta:x})}});return{fromLink:d,subscription:b,observable:u}}updatePolling(){if(this.queryManager.ssrMode)return;const{pollingInfo:e,options:{fetchPolicy:n,pollInterval:r}}=this;if(!r||!this.hasObservers()||n==="cache-only"){this.cancelPolling();return}if((e==null?void 0:e.interval)===r)return;const i=e||(this.pollingInfo={});i.interval=r;const a=()=>{var s,c;this.pollingInfo&&(!Xc(this.networkStatus)&&!((c=(s=this.options).skipPollAttempt)!=null&&c.call(s))?this._reobserve({fetchPolicy:this.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},{newNetworkStatus:ze.poll}).then(o,o):o())},o=()=>{const s=this.pollingInfo;s&&(clearTimeout(s.timeout),s.timeout=setTimeout(a,s.interval))};o()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,n){this.isTornDown=!1;let{newNetworkStatus:r}=n||{};this.queryManager.obsQueries.add(this);const i=r===ze.refetch||r===ze.poll,a=this.variables,o=this.options.fetchPolicy,s=Cr(this.options,e||{});this.variablesUnknown&&(this.variablesUnknown=s.fetchPolicy==="standby");const c=i?s:h2(this.options,s),u=this.transformDocument(c.query);this.lastQuery=u,e&&"variables"in e&&(c.variables=this.getVariablesWithDefaults(e.variables)),i||(this.updatePolling(),e&&e.variables&&!dt(e.variables,a)&&c.fetchPolicy!=="standby"&&(c.fetchPolicy===o||typeof c.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",c),r===void 0&&(r=ze.setVariables)));const d=this.networkStatus;r||(r=ze.loading,d!==ze.loading&&(e!=null&&e.variables)&&!dt(e.variables,a)&&(r=ze.setVariables),c.fetchPolicy==="standby"&&(r=ze.ready)),c.fetchPolicy==="standby"&&this.cancelPolling(),this.resubscribeCache();const{promise:h,operator:m}=p2(c.fetchPolicy==="standby"?{data:void 0}:void 0),{subscription:p,observable:y,fromLink:b}=this.fetch(c,r,u,m);!i&&(b||!this.linkSubscription)&&(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=p);const v=Object.assign(Ah(h.then(x=>ll(this.maskResult(x))).finally(()=>{!this.hasObservers()&&this.activeOperations.size===0&&this.tearDownQuery()})),{retain:()=>{const x=y.subscribe({}),_=()=>x.unsubscribe();return h.then(_,_),v}});return v}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){var e;this.isTornDown||(this.resetNotifications(),(e=this.unsubscribeFromCache)==null||e.call(this),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){const n=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return n===e.data?e:{...e,data:n}}resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){const r=this.queryManager.getDocumentInfo(this.query);if(r.hasClientExports||r.hasForcedResolvers)return}const{dirty:n}=this;if(this.resetNotifications(),n&&(this.options.fetchPolicy==="cache-only"||this.options.fetchPolicy==="cache-and-network"||!this.activeOperations.size)){const r=this.getCacheDiff();dt(r.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:r.result,dataState:r.complete?"complete":r.result?"partial":"empty",networkStatus:ze.ready,loading:!1,error:void 0,partial:!r.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}pushOperation(e){let n=!1;const{query:r,variables:i}=this,a=()=>{this.activeOperations.delete(o)},o={override:e,abort:()=>{n=!0,a()},query:r,variables:i};return this.activeOperations.add(o),{finalize:a,pushNotification:(s,c)=>{n||this.input.next({...s,query:r,variables:i,meta:{...c}})}}}calculateNetworkStatus(e){if(e===ze.streaming)return e;const n=Array.from(this.activeOperations.values()).reverse().find(r=>vl(r,this)&&r.override!==void 0);return(n==null?void 0:n.override)??e}abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){const e=this.options.fetchPolicy==="cache-only";this.setResult(e?Qh:Bo,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,n){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...n}})}reobserveCacheFirst(){const{fetchPolicy:e,nextFetchPolicy:n}=this.options;e==="cache-and-network"||e==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,i){return this.nextFetchPolicy=n,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(r,i):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function vl(t,e){return!!(t&&e&&t.query===e.query&&dt(t.variables,e.variables))}function p2(t){let e=t,n,r;const i=new Promise((o,s)=>{n=o,r=s}),a=nl({next(o){if(o.kind==="E")return r(o.error);o.kind==="N"&&o.source!=="newNetworkStatus"&&!o.value.loading&&(e=o.value)},finalize:()=>{if(e)n(e);else{const o="The operation was aborted.",s="AbortError";r(typeof DOMException<"u"?new DOMException(o,s):Object.assign(new Error(o),{name:s}))}}});return{promise:i,operator:a}}const m2={},zo=new WeakMap;function Jh(t,e){const n=t[e];typeof n=="function"&&(t[e]=function(){return zo.set(t,(zo.get(t)+1)%1e15),n.apply(this,arguments)})}const g2=new WeakMap;class Xh{constructor(e,n){ae(this,"lastRequestId",1);ae(this,"cache");ae(this,"queryManager");ae(this,"id");ae(this,"observableQuery");ae(this,"incremental");ae(this,"_lastWrite");const r=this.cache=e.cache,i=(g2.get(e)||0)+1;g2.set(e,i),this.id=i+"",this.observableQuery=n,this.queryManager=e,zo.has(r)||(zo.set(r,0),Jh(r,"evict"),Jh(r,"modify"),Jh(r,"reset"))}get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,n){var i,a;const{lastWrite:r}=this;return!(r&&r.dmCount===zo.get(this.cache)&&dt(n,r.variables)&&dt(e.data,r.result.data)&&((i=e.extensions)==null?void 0:i[ha])===((a=r.result.extensions)==null?void 0:a[ha]))}get hasNext(){return this.incremental?this.incremental.hasNext:!1}maybeHandleIncrementalResult(e,n,r){const{incrementalHandler:i}=this.queryManager;return i.isIncrementalResult(n)?(this.incremental||(this.incremental=i.startRequest({query:r})),this.incremental.handle(e,n)):n}markQueryResult(e,{document:n,variables:r,errorPolicy:i,cacheWriteBehavior:a}){var d;const o={query:n,variables:r,returnPartialData:!0,optimistic:!0};(d=this.observableQuery)==null||d.resetNotifications();const s=a===0,c=s?void 0:this.cache.diff(o);let u=this.maybeHandleIncrementalResult(c==null?void 0:c.result,e,n);return s||($h(u,i)?this.cache.batch({onWatchUpdated:(h,m)=>{h.watcher===this.observableQuery&&(h.lastOwnDiff=m)},update:h=>{if(this.shouldWrite(u,r))h.writeQuery({query:n,data:u.data,variables:r,overwrite:a===1,extensions:u.extensions}),this.lastWrite={result:u,variables:r,dmCount:zo.get(this.cache)};else if(c&&c.complete){u={...u,data:c.result};return}const m=h.diff(o);m.complete&&(u={...u,data:m.result})}}):this.lastWrite=void 0),u}markMutationResult(e,n,r=this.cache){const i=[],a=n.cacheWriteBehavior===0;let o=this.maybeHandleIncrementalResult(a?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(n.document).asQuery,variables:n.variables,optimistic:!1,returnPartialData:!0}).result,e,n.document);if(n.errorPolicy==="ignore"&&(o={...o,errors:[]}),Po(o)&&n.errorPolicy==="none")return Promise.resolve(o);const s=()=>({...o,dataState:this.hasNext?"streaming":"complete"});if(!a&&$h(o,n.errorPolicy)){i.push({result:o.data,dataId:"ROOT_MUTATION",query:n.document,variables:n.variables,extensions:o.extensions});const{updateQueries:u}=n;u&&this.queryManager.getObservableQueries("all").forEach(d=>{const h=d&&d.queryName;if(!h||!Object.hasOwnProperty.call(u,h))return;const m=u[h],{query:p,variables:y}=d,{result:b,complete:v}=d.getCacheDiff({optimistic:!1});if(v&&b){const x=m(b,{mutationResult:s(),queryName:p&&Ro(p)||void 0,queryVariables:y});x&&i.push({result:x,dataId:"ROOT_QUERY",query:p,variables:y})}})}let c=n.refetchQueries;if(typeof c=="function"&&(c=c(s())),i.length>0||(c||"").length>0||n.update||n.onQueryUpdated||n.removeOptimistic){const u=[];if(this.queryManager.refetchQueries({updateCache:d=>{a||i.forEach(m=>d.write(m));const{update:h}=n;if(h){if(!a){const m=d.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(n.document).asQuery,variables:n.variables,optimistic:!1,returnPartialData:!0});m.complete&&(o={...o,data:m.result})}this.hasNext||h(d,o,{context:n.context,variables:n.variables})}!a&&!n.keepRootFields&&!this.hasNext&&d.modify({id:"ROOT_MUTATION",fields(m,{fieldName:p,DELETE:y}){return p==="__typename"?m:y}})},include:c,optimistic:!1,removeOptimistic:n.removeOptimistic,onQueryUpdated:n.onQueryUpdated||null}).forEach(d=>u.push(d)),n.awaitRefetchQueries||n.onQueryUpdated)return Promise.all(u).then(()=>o)}return Promise.resolve(o)}markMutationOptimistic(e,n){const r=typeof e=="function"?e(n.variables,{IGNORE:m2}):e;return r===m2?!1:(this.cache.recordOptimisticTransaction(i=>{try{this.markMutationResult({data:r},n,i)}catch(a){Je.error(a)}},this.id),!0)}markSubscriptionResult(e,{document:n,variables:r,errorPolicy:i,cacheWriteBehavior:a}){a!==0&&($h(e,i)&&this.cache.write({query:n,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r,extensions:e.extensions}),this.queryManager.broadcastQueries())}}function $h(t,e="none"){const n=e==="ignore"||e==="all";let r=!Po(t);return!r&&n&&t.data&&(r=!0),r}class p7{constructor(e){ae(this,"defaultOptions");ae(this,"client");ae(this,"clientOptions");ae(this,"assumeImmutableResults");ae(this,"documentTransform");ae(this,"ssrMode");ae(this,"defaultContext");ae(this,"dataMasking");ae(this,"incrementalHandler");ae(this,"localState");ae(this,"queryDeduplication");ae(this,"prioritizeCacheValues",!1);ae(this,"onBroadcast");ae(this,"mutationStore");ae(this,"obsQueries",new Set);ae(this,"fetchCancelFns",new Map);ae(this,"transformCache",new Eh(Bi["queryManager.getDocumentInfo"]||2e3));ae(this,"requestIdCounter",1);ae(this,"inFlightLinkObservables",new Ci(!1));ae(this,"noCacheWarningsByCause",new WeakSet);const n=new Wi(i=>this.cache.transformDocument(i),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;const r=e.documentTransform;this.documentTransform=r?n.concat(r).concat(n):n,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches(Lr(87))}cancelPendingFetches(e){this.fetchCancelFns.forEach(n=>n(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:n,optimisticResponse:r,updateQueries:i,refetchQueries:a=[],awaitRefetchQueries:o=!1,update:s,onQueryUpdated:c,fetchPolicy:u,errorPolicy:d,keepRootFields:h,context:m}){const p=new Xh(this);e=this.cache.transformForLink(this.transform(e));const{hasClientExports:y}=this.getDocumentInfo(e);n=this.getVariables(e,n),y&&(n=await this.localState.getExportedVariables({client:this.client,document:e,variables:n,context:m}));const b=this.mutationStore&&(this.mutationStore[p.id]={mutation:e,variables:n,loading:!0,error:null}),v=r&&p.markMutationOptimistic(r,{document:e,variables:n,cacheWriteBehavior:u==="no-cache"?0:2,errorPolicy:d,context:m,updateQueries:i,update:s,keepRootFields:h});return this.broadcastQueries(),new Promise((x,_)=>{const T={};return this.getObservableFromLink(e,{...m,optimisticResponse:v?r:void 0},n,u,{},!1).observable.pipe(v2(),To(C=>{const w={...C};return Ha(p.markMutationResult(w,{document:e,variables:n,cacheWriteBehavior:u==="no-cache"?0:2,errorPolicy:d,context:m,update:s,updateQueries:i,awaitRefetchQueries:o,refetchQueries:a,removeOptimistic:v?p.id:void 0,onQueryUpdated:c,keepRootFields:h}))})).pipe(fa(C=>{if(Po(C)&&d==="none")throw new Gi(ep(C));return b&&(b.loading=!1,b.error=null),C})).subscribe({next:C=>{if(this.broadcastQueries(),!p.hasNext){const w={data:this.maskOperation({document:e,data:C.data,fetchPolicy:u,cause:T})};Po(C)&&(w.error=new Gi(C)),Object.keys(C.extensions||{}).length&&(w.extensions=C.extensions),x(w)}},error:C=>{if(b&&(b.loading=!1,b.error=C),v&&this.cache.removeOptimistic(p.id),this.broadcastQueries(),d==="ignore")return x({data:void 0});if(d==="all")return x({data:void 0,error:C});_(C)}})})}fetchQuery(e,n){return da(e.query,Ba.QUERY),(async()=>L9(this.fetchObservableWithInfo(e,{networkStatus:n}).observable.pipe(kh(r=>{switch(r.kind){case"E":throw r.error;case"N":if(r.source!=="newNetworkStatus")return ll(r.value)}})),{defaultValue:{data:void 0}}))()}transform(e){return this.documentTransform.transformDocument(e)}getDocumentInfo(e){const{transformCache:n}=this;if(!n.has(e)){const i=zi(e),a={hasClientExports:Io(["client","export"],e,!0),hasForcedResolvers:d3(e),hasNonreactiveDirective:Io(["nonreactive"],e),hasIncrementalDirective:Io(["defer"],e),nonReactiveQuery:m7(e),clientQuery:Io(["client"],e)?e:null,serverQuery:m3([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:i==null?void 0:i.operation,defaultVars:Ch(i),asQuery:{...e,definitions:e.definitions.map(o=>o.kind==="OperationDefinition"&&o.operation!=="query"?{...o,operation:"query"}:o)}};n.set(e,a)}const r=n.get(e);if(r.violation)throw r.violation;return r}getVariables(e,n){const r=this.getDocumentInfo(e).defaultVars,i=Object.entries(n??{}).map(([a,o])=>[a,o===void 0?r[a]:o]);return{...r,...Object.fromEntries(i)}}watchQuery(e){da(e.query,Ba.QUERY);const n=this.transform(e.query);return e={...e,variables:this.getVariables(n,e.variables)},typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!0),new qh({queryManager:this,options:e,transformedQuery:n})}query(e){const n=this.transform(e.query);return this.fetchQuery({...e,query:n}).then(r=>({...r,data:this.maskOperation({document:n,data:r==null?void 0:r.data,fetchPolicy:e.fetchPolicy})}))}generateRequestId(){return this.requestIdCounter++}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches(Lr(89)),this.obsQueries.forEach(n=>{n.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){const n=new Set,r=new Map,i=new Map,a=new Set;return Array.isArray(e)&&e.forEach(o=>{if(typeof o=="string")r.set(o,o),i.set(o,!1);else if(h3(o)){const s=Ga(this.transform(o));r.set(s,Ro(o)),i.set(s,!1)}else Dn(o)&&o.query&&a.add(o)}),this.obsQueries.forEach(o=>{const s=Ga(this.transform(o.options.query));if(e==="all"){n.add(o);return}const{queryName:c,options:{fetchPolicy:u}}=o;e==="active"&&u==="standby"||(e==="active"||c&&i.has(c)||s&&i.has(s))&&(n.add(o),c&&i.set(c,!0),s&&i.set(s,!0))}),a.size&&a.forEach(o=>{const s=new qh({queryManager:this,options:{...o,fetchPolicy:"network-only"}});n.add(s)}),n}refetchObservableQueries(e=!1){const n=[];return this.getObservableQueries(e?"all":"active").forEach(r=>{const{fetchPolicy:i}=r.options;(e||i!=="standby")&&i!=="cache-only"&&n.push(r.refetch())}),this.broadcastQueries(),Promise.all(n)}startGraphQLSubscription(e){let{query:n,variables:r}=e;const{fetchPolicy:i="cache-first",errorPolicy:a="none",context:o={},extensions:s={}}=e;da(n,Ba.SUBSCRIPTION),n=this.transform(n),r=this.getVariables(n,r);let c;const u=(this.getDocumentInfo(n).hasClientExports?Ha(this.localState.getExportedVariables({client:this.client,document:n,variables:r,context:o})):Wa(r)).pipe(To(d=>{const{observable:h,restart:m}=this.getObservableFromLink(n,o,d,i,s),p=new Xh(this);return c=m,h.pipe(fa(y=>{p.markSubscriptionResult(y,{document:n,variables:d,errorPolicy:a,cacheWriteBehavior:i==="no-cache"?0:2});const b={data:y.data??void 0};return Po(y)?b.error=new Gi(y):d2(y)&&(b.error=y.extensions[gl],delete y.extensions[gl]),y.extensions&&Object.keys(y.extensions).length&&(b.extensions=y.extensions),b.error&&a==="none"&&(b.data=void 0),a==="ignore"&&delete b.error,b}),Wc(y=>Wa(a==="ignore"?{data:void 0}:{data:void 0,error:y})),rb(y=>!!(y.data||y.error)))}));return Object.assign(u,{restart:()=>c==null?void 0:c()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}getObservableFromLink(e,n,r,i,a,o=(n==null?void 0:n.queryDeduplication)??this.queryDeduplication){let s={};const{serverQuery:c,clientQuery:u,operationType:d,hasIncrementalDirective:h}=this.getDocumentInfo(e),m=Ro(e),p={client:this.client};if(c){const{inFlightLinkObservables:y,link:b}=this;try{let x=function(_){return new Ut(T=>{function C(){return _.subscribe({next:T.next.bind(T),complete:T.complete.bind(T),error:T.error.bind(T)})}let w=C();return s.restart||(s.restart=()=>{w.unsubscribe(),w=C()}),()=>{w.unsubscribe(),s.restart=void 0}})};const v=this.incrementalHandler.prepareRequest({query:c,variables:r,context:{...this.defaultContext,...n,queryDeduplication:o},extensions:a});if(n=v.context,o){const _=Ga(c),T=Hi(r);s=y.lookup(_,T),s.observable||(s.observable=Mh(b,v,p).pipe(x,H9(()=>{y.peek(_,T)===s&&y.remove(_,T)}),d===Ba.SUBSCRIPTION?tl():vh({refCount:!0})))}else s.observable=Mh(b,v,p).pipe(x)}catch(v){s.observable=tb(()=>v)}}else s.observable=Wa({data:{}});if(u){const{operation:y}=zi(e);Je(!h,94,y[0].toUpperCase()+y.slice(1),m??"(anonymous)"),s.observable=s.observable.pipe(To(b=>Ha(this.localState.execute({client:this.client,document:u,remoteResult:b,context:n,variables:r,fetchPolicy:i}))))}return{restart:()=>{var y;return(y=s.restart)==null?void 0:y.call(s)},observable:s.observable.pipe(Wc(y=>{throw y=Zh(y),h7(y),y}))}}getResultsFromLink(e,{queryInfo:n,cacheWriteBehavior:r,observableQuery:i,exposeExtensions:a}){const o=n.lastRequestId=this.generateRequestId(),{errorPolicy:s}=e,c=this.cache.transformForLink(e.query);return this.getObservableFromLink(c,e.context,e.variables,e.fetchPolicy).observable.pipe(fa(u=>{const d=n.markQueryResult(u,{...e,document:c,cacheWriteBehavior:r}),h=Po(d);if(h&&s==="none")throw n.resetLastWrite(),i==null||i.resetNotifications(),new Gi(ep(d));const m={data:d.data,...n.hasNext?{loading:!0,networkStatus:ze.streaming,dataState:"streaming",partial:!0}:{dataState:d.data?"complete":"empty",loading:!1,networkStatus:ze.ready,partial:!d.data}};return a&&"extensions"in d&&(m[pb]=d.extensions),h&&(s==="none"&&(m.data=void 0,m.dataState="empty"),s!=="ignore"&&(m.error=new Gi(ep(d)),m.dataState!=="streaming"&&(m.networkStatus=ze.error))),m}),Wc(u=>{if(o>=n.lastRequestId&&s==="none")throw n.resetLastWrite(),i==null||i.resetNotifications(),u;const d={data:void 0,dataState:"empty",loading:!1,networkStatus:ze.ready,partial:!0};return s!=="ignore"&&(d.error=u,d.networkStatus=ze.error),Wa(d)}))}fetchObservableWithInfo(e,{networkStatus:n=ze.loading,query:r=e.query,fetchQueryOperator:i=c=>c,onCacheHit:a=()=>{},observableQuery:o,exposeExtensions:s}){const c=this.getVariables(r,e.variables),u=this.defaultOptions.watchQuery;let{fetchPolicy:d=u&&u.fetchPolicy||"cache-first",errorPolicy:h=u&&u.errorPolicy||"none",returnPartialData:m=!1,notifyOnNetworkStatusChange:p=!0,context:y={}}=e;this.prioritizeCacheValues&&(d==="network-only"||d==="cache-and-network")&&(d="cache-first");const b=Object.assign({},e,{query:r,variables:c,fetchPolicy:d,errorPolicy:h,returnPartialData:m,notifyOnNetworkStatusChange:p,context:y}),v=new Xh(this,o),x=A=>{b.variables=A;const k=d==="no-cache"?0:n===ze.refetch&&b.refetchWritePolicy!=="merge"?1:2,R=this.fetchQueryByPolicy(b,{queryInfo:v,cacheWriteBehavior:k,onCacheHit:a,observableQuery:o,exposeExtensions:s});return R.observable=R.observable.pipe(i),b.fetchPolicy!=="standby"&&(o==null||o.applyNextFetchPolicy("after-fetch",e)),R},_=()=>{this.fetchCancelFns.delete(v.id)};this.fetchCancelFns.set(v.id,A=>{T.next({kind:"E",error:A,source:"network"})});const T=new ko;let C,w;if(this.getDocumentInfo(b.query).hasClientExports)C=Ha(this.localState.getExportedVariables({client:this.client,document:b.query,variables:b.variables,context:b.context})).pipe(To(A=>x(A).observable)),w=!0;else{const A=x(b.variables);w=A.fromLink,C=A.observable}return{observable:new Ut(A=>{A.add(_),C.subscribe(A),T.subscribe(A)}).pipe(tl()),fromLink:w}}refetchQueries({updateCache:e,include:n,optimistic:r=!1,removeOptimistic:i=r?fy("refetchQueries"):void 0,onQueryUpdated:a}){const o=new Map;n&&this.getObservableQueries(n).forEach(c=>{if(c.options.fetchPolicy==="cache-only"||c.variablesUnknown)return;const u=c.getCurrentResult();o.set(c,{oq:c,lastDiff:{result:u==null?void 0:u.data,complete:!(u!=null&&u.partial)}})});const s=new Map;if(e){const c=new Set;this.cache.batch({update:e,optimistic:r&&i||!1,removeOptimistic:i,onWatchUpdated(u,d,h){const m=u.watcher;if(m instanceof qh&&!c.has(m)){if(c.add(m),a){o.delete(m);let p=a(m,d,h);return p===!0&&(p=m.refetch().retain()),p!==!1&&s.set(m,p),p}a!==null&&m.options.fetchPolicy!=="cache-only"&&o.set(m,{oq:m,lastDiff:h,diff:d})}}})}return o.size&&o.forEach(({oq:c,lastDiff:u,diff:d})=>{let h;a&&(d||(d=c.getCacheDiff()),h=a(c,d,u)),(!a||h===!0)&&(h=c.refetch().retain()),h!==!1&&s.set(c,h)}),i&&this.cache.removeOptimistic(i),s}maskOperation(e){const{document:n,data:r}=e;return this.dataMasking?$3(r,n,this.cache):r}maskFragment(e){const{data:n,fragment:r,fragmentName:i}=e;return this.dataMasking?X3(n,r,this.cache,i):n}fetchQueryByPolicy({query:e,variables:n,fetchPolicy:r,errorPolicy:i,returnPartialData:a,context:o},{cacheWriteBehavior:s,onCacheHit:c,queryInfo:u,observableQuery:d,exposeExtensions:h}){const m=()=>this.cache.diff({query:e,variables:n,returnPartialData:!0,optimistic:!0}),p=(b,v)=>{const x=b.result,_=C=>(!b.complete&&!a&&(C=void 0),{data:C,dataState:b.complete?"complete":C?"partial":"empty",loading:Xc(v),networkStatus:v,partial:!b.complete}),T=C=>Wa({kind:"N",value:_(C),source:"cache"});return(b.complete||a)&&this.getDocumentInfo(e).hasForcedResolvers?(c(),Ha(this.localState.execute({client:this.client,document:e,remoteResult:x?{data:x}:void 0,context:o,variables:n,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:r}).then(C=>({kind:"N",value:_(C.data||void 0),source:"cache"})))):i==="none"&&v===ze.refetch&&b.missing?T(void 0):T(x||void 0)},y=()=>this.getResultsFromLink({query:e,variables:n,context:o,fetchPolicy:r,errorPolicy:i},{cacheWriteBehavior:s,queryInfo:u,observableQuery:d,exposeExtensions:h}).pipe(v2(),W9(),fa(b=>({...b,source:"network"})));switch(r){default:case"cache-first":{const b=m();return b.complete?{fromLink:!1,observable:p(b,ze.ready)}:a?{fromLink:!0,observable:mh(p(b,ze.loading),y())}:{fromLink:!0,observable:y()}}case"cache-and-network":{const b=m();return b.complete||a?{fromLink:!0,observable:mh(p(b,ze.loading),y())}:{fromLink:!0,observable:y()}}case"cache-only":return{fromLink:!1,observable:mh(p(m(),ze.ready))};case"network-only":return{fromLink:!0,observable:y()};case"no-cache":return{fromLink:!0,observable:y()};case"standby":return{fromLink:!1,observable:el}}}}function v2(){let t=!1;return nl({next(){t=!0},complete(){Je(t,98)}})}function m7(t){return Ei(t,{FragmentSpread:e=>{var n;if(!((n=e.directives)!=null&&n.some(r=>r.name.value==="unmask")))return{...e,directives:[...e.directives||[],{kind:gt.DIRECTIVE,name:{kind:gt.NAME,value:"nonreactive"}}]}}})}function ep(t){var i;if(((i=t.extensions)==null?void 0:i[ha])==null)return t;const{extensions:{[ha]:e,...n},...r}=t;return Object.keys(n).length>0&&(r.extensions=n),r}class g7{constructor(e){ae(this,"link");ae(this,"cache");ae(this,"disableNetworkFetches");ae(this,"version");ae(this,"queryDeduplication");ae(this,"defaultOptions");ae(this,"devtoolsConfig");ae(this,"queryManager");ae(this,"devToolsHookCb");ae(this,"resetStoreCallbacks",[]);ae(this,"clearStoreCallbacks",[]);ae(this,"reFetchObservableQueries");ae(this,"maskedFragmentTransform",new Wi(y3));const{cache:n,documentTransform:r,ssrMode:i=!1,ssrForceFetchDelay:a=0,queryDeduplication:o=!0,defaultOptions:s,defaultContext:c,assumeImmutableResults:u=n.assumeImmutableResults,localState:d,devtools:h,dataMasking:m,link:p,incrementalHandler:y=new L3,experiments:b=[]}=e;this.link=p,this.cache=n,this.queryDeduplication=o,this.defaultOptions=s||{},this.devtoolsConfig={...h,enabled:(h==null?void 0:h.enabled)??cy},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=this.refetchObservableQueries.bind(this),this.version=Jd,this.queryManager=new p7({client:this,defaultOptions:this.defaultOptions,defaultContext:c,documentTransform:r,queryDeduplication:o,ssrMode:i,dataMasking:!!m,clientOptions:e,incrementalHandler:y,assumeImmutableResults:u,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:d}),this.prioritizeCacheValues=i||a>0,a&&setTimeout(()=>{this.prioritizeCacheValues=!1},a),this.devtoolsConfig.enabled&&this.connectToDevTools(),b.forEach(v=>v.call(this,e))}set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}connectToDevTools(){if(typeof window>"u")return;const e=window,n=Symbol.for("apollo.devtools");(e[n]=e[n]||[]).push(this),e.__APOLLO_CLIENT__=this}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop()}watchQuery(e){return this.defaultOptions.watchQuery&&(e=Lo(this.defaultOptions.watchQuery,e)),this.queryManager.watchQuery(e)}query(e){return this.defaultOptions.query&&(e=Lo(this.defaultOptions.query,e)),this.queryManager.query(e)}mutate(e){const n=Lo(Cr({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return da(n.mutation,Ba.MUTATION),this.queryManager.mutate(n)}subscribe(e){const n={},r=this.queryManager.startGraphQLSubscription(e),i=r.pipe(fa(a=>({...a,data:this.queryManager.maskOperation({document:e.query,data:a.data,fetchPolicy:e.fetchPolicy,cause:n})})));return Object.assign(i,{restart:r.restart})}readQuery(e,n=!1){return this.cache.readQuery({...e,query:this.transform(e.query)},n)}watchFragment(e){const n=this.queryManager.dataMasking;return this.cache.watchFragment({...e,fragment:this.transform(e.fragment,n)})}readFragment(e,n=!1){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},n)}writeQuery(e){const n=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),n}writeFragment(e){const n=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),n}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return Mh(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(n=>n!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(n=>n!==e)}}refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){const n=this.queryManager.refetchQueries(e),r=[],i=[];n.forEach((o,s)=>{r.push(s),i.push(o)});const a=Promise.all(i);return a.queries=r,a.results=i,a.catch(o=>{}),a}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}transform(e,n=!1){const r=this.queryManager.transform(e);return n?this.maskedFragmentTransform.transformDocument(r):r}}const{hasOwnProperty:y2}=Object.prototype;function v7(t){return Dn(t)&&"payload"in t}async function*y7(t){var m;const e=new TextDecoder("utf-8"),n=(m=t.headers)==null?void 0:m.get("content-type"),r=n==null?void 0:n.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),i=`\r
41
+ `)}const yc=class yc extends Error{constructor(n,r=n.errors||[]){super(yc.formatMessage(r,{result:n,defaultFormatMessage:f2}));ae(this,"errors");ae(this,"data");ae(this,"extensions");this.errors=r,this.data=n.data,this.extensions=n.extensions,this.name="CombinedGraphQLErrors",ml(this),Object.setPrototypeOf(this,yc.prototype)}static is(n){return pl(n,"CombinedGraphQLErrors")}};ae(yc,"formatMessage",f2);let Gi=yc;const d7=new WeakSet;function h7(t){d7.add(t)}class ru extends Error{constructor(n,r){super(n);ae(this,"response");ae(this,"statusCode");ae(this,"bodyText");this.name="ServerError",this.response=r.response,this.statusCode=r.response.status,this.bodyText=r.bodyText,ml(this),Object.setPrototypeOf(this,ru.prototype)}static is(n){return pl(n,"ServerError")}}class iu extends Error{constructor(n,r){super(n instanceof Error?n.message:"Could not parse server response",{cause:n});ae(this,"response");ae(this,"statusCode");ae(this,"bodyText");this.name="ServerParseError",this.response=r.response,this.statusCode=r.response.status,this.bodyText=r.bodyText,ml(this),Object.setPrototypeOf(this,iu.prototype)}static is(n){return pl(n,"ServerParseError")}}const gl=Symbol();function d2(t){return"extensions"in t?nu.is(t.extensions[gl]):!1}function Zh(t){return f7(t)?t:typeof t=="string"?new Error(t,{cause:t}):new Kh(t)}var ze;(function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error",t[t.streaming=9]="streaming"})(ze||(ze={}));const{assign:h2}=Object,Bo={loading:!0,networkStatus:ze.loading,data:void 0,dataState:"empty",partial:!0},Qh={loading:!1,networkStatus:ze.ready,data:void 0,dataState:"empty",partial:!0};d8=Symbol.observable;class qh{constructor({queryManager:e,options:n,transformedQuery:r=e.transform(n.query)}){ae(this,"options");ae(this,"queryName");ae(this,"variablesUnknown",!1);ae(this,"_lastWrite");ae(this,"unsubscribeFromCache");ae(this,"input");ae(this,"subject");ae(this,"isTornDown");ae(this,"queryManager");ae(this,"subscriptions",new Set);ae(this,"waitForNetworkResult");ae(this,"lastQuery");ae(this,"linkSubscription");ae(this,"pollingInfo");ae(this,"subscribe");ae(this,"pipe");ae(this,d8);ae(this,"@@observable");ae(this,"stableLastResult");ae(this,"didWarnCacheOnlyPolling",!1);ae(this,"dirty",!1);ae(this,"notifyTimeout");ae(this,"activeOperations",new Set);ae(this,"operator",kh(e=>{const{query:n,variables:r,meta:i}=e;if(e.source==="setResult")return{query:n,variables:r,result:e.value,meta:i};if(e.kind==="C"||!vl(e,this))return;let a;const o=this.subject.getValue();if(e.source==="cache"){if(a=e.value,a.networkStatus===ze.ready&&a.partial&&(!this.options.returnPartialData||o.result.networkStatus===ze.error)&&this.options.fetchPolicy!=="cache-only")return}else if(e.source==="network")this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),a=e.kind==="E"?{...vl(o,e)?o.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:ze.error,loading:!1}:e.value,e.kind==="E"&&a.dataState==="streaming"&&(a.dataState="complete"),a.error&&(i.shouldEmit=1);else if(e.source==="newNetworkStatus"){const s=vl(o,e)?o.result:this.getInitialResult(i.fetchPolicy),{resetError:c}=e.value,u=c?void 0:s.error,d=u?ze.error:ze.ready;a={...s,error:u,networkStatus:d}}return Je(a),a.error||delete a.error,a.networkStatus=this.calculateNetworkStatus(a.networkStatus),a.loading=Xc(a.networkStatus),a=this.maskResult(a),{query:n,variables:r,result:a,meta:i}}));this.queryManager=e,this.waitForNetworkResult=n.fetchPolicy==="network-only",this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);const{watchQuery:{fetchPolicy:i="cache-first"}={}}=e.defaultOptions,{fetchPolicy:a=i,initialFetchPolicy:o=a==="standby"?i:a}=n;n[Th]&&(Je(a==="standby",80),this.variablesUnknown=!0),this.lastQuery=r,this.options={...n,initialFetchPolicy:o,fetchPolicy:a,variables:this.getVariablesWithDefaults(n.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);const s=zi(this.query);this.queryName=s&&s.name&&s.name.value}get query(){return this.lastQuery}get variables(){return this.options.variables}get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}initializeObservablesQueue(){this.subject=new l9({query:this.query,variables:this.variables,result:Bo,meta:{}});const e=this.subject.pipe(nl({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),kh(({query:n,variables:r,result:i,meta:a},o)=>{const{shouldEmit:s}=a;if(i===Bo&&(o.previous=void 0,o.previousVariables=void 0),this.options.fetchPolicy==="standby"||s===2)return;if(s===1)return d();const{previous:c,previousVariables:u}=o;if(c){const h=this.queryManager.getDocumentInfo(n),m=this.queryManager.dataMasking,p=m?h.nonReactiveQuery:n;if((m||h.hasNonreactiveDirective?db(p,c,i,r):dt(c,i))&&dt(u,r))return}if(s===3&&(!this.options.notifyOnNetworkStatusChange||dt(c,i)))return;return d();function d(){return o.previous=i,o.previousVariables=r,i}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new To,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}getCacheDiff({optimistic:e=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let n=e||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&(n==="network-only"||n==="cache-and-network")&&(n="cache-first");const r=()=>{const i=this.getCacheDiff(),a=this.options.returnPartialData||i.complete?i.result??void 0:void 0;return this.maskResult({data:a,dataState:i.complete?"complete":a===void 0?"empty":"partial",loading:!i.complete,networkStatus:i.complete?ze.ready:ze.loading,partial:!i.complete})};switch(n){case"cache-only":return{...r(),loading:!1,networkStatus:ze.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:ze.loading};case"standby":return Qh;default:return Bo}}resubscribeCache(){var c;const{variables:e,fetchPolicy:n}=this.options,r=this.query,i=n==="standby"||n==="no-cache"||this.waitForNetworkResult,a=!vl({query:r,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((i||a)&&((c=this.unsubscribeFromCache)==null||c.call(this)),i||!a)return;const o={query:r,variables:e,optimistic:!0,watcher:this,callback:u=>{const d=this.queryManager.getDocumentInfo(r);if((d.hasClientExports||d.hasForcedResolvers)&&(o.lastDiff=void 0),o.lastOwnDiff===u)return;const{result:h}=this.subject.getValue();!u.complete&&(h.error||h===Bo||h===Qh)||dt(h.data,u.result)||this.scheduleNotify()}},s=this.cache.watch(o);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,s()},{query:r,variables:e})}getCurrentResult(){const{result:e}=this.subject.getValue();let n=e.networkStatus===ze.error||this.hasObservers()||this.options.fetchPolicy==="no-cache"?e:this.getInitialResult();return n===Bo&&(n=this.getInitialResult()),dt(this.stableLastResult,n)||(this.stableLastResult=n),this.stableLastResult}refetch(e){const{fetchPolicy:n}=this.options,r={pollInterval:0};return n==="no-cache"?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",e&&!dt(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:ze.refetch})}fetchMore({query:e,variables:n,context:r,errorPolicy:i,updateQuery:a}){Je(this.options.fetchPolicy!=="cache-only",82,No(this.query,"(anonymous)"));const o={...Cr(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:i}),variables:e?n:{...this.variables,...n},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};o.query=this.transformDocument(o.query),this.lastQuery=e?this.transformDocument(this.options.query):o.query;let s=!1;const c=this.options.fetchPolicy!=="no-cache";c||Je(a,83);const{finalize:u,pushNotification:d}=this.pushOperation(ze.fetchMore);d({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});const{promise:h,operator:m}=p2(),{observable:p}=this.queryManager.fetchObservableWithInfo(o,{networkStatus:ze.fetchMore,exposeExtensions:!0}),y=p.pipe(m,rb(b=>b.kind==="N"&&b.source==="network")).subscribe({next:b=>{s=!1;const v=b.value,x=v[pb];if(Lb(b.value.networkStatus)&&u(),c){const _=this.getCacheDiff();this.cache.batch({update:T=>{a?T.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:x},C=>a(C,{fetchMoreResult:v.data,variables:o.variables})):T.writeQuery({query:o.query,variables:o.variables,data:v.data,extensions:x})},onWatchUpdated:(T,C)=>{if(T.watcher===this&&!dt(C.result,_.result)){s=!0;const w=this.getCurrentResult();Xc(v.networkStatus)&&d({kind:"N",source:"network",value:{...w,networkStatus:v.networkStatus===ze.error?ze.ready:v.networkStatus,loading:!1,data:C.result,dataState:v.dataState==="streaming"?"streaming":"complete"}})}}})}else{const _=this.getCurrentResult(),T=a(_.data,{fetchMoreResult:v.data,variables:o.variables});d({kind:"N",value:{..._,networkStatus:ze.ready,loading:!1,data:T,dataState:_.dataState==="streaming"?"streaming":"complete"},source:"network"})}}});return Ah(h.then(b=>ll(this.maskResult(b))).finally(()=>{if(y.unsubscribe(),u(),c&&!s){const b=this.getCurrentResult();b.dataState==="streaming"?d({kind:"N",source:"network",value:{...b,dataState:"complete",networkStatus:ze.ready}}):d({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(e){const n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:r=>{const{updateQuery:i,onError:a}=e,{error:o}=r;if(o){a?a(o):Je.error(84,o);return}i&&this.updateQuery((s,c)=>i(s,{subscriptionData:r,...c}))}});return this.subscriptions.add(n),()=>{this.subscriptions.delete(n)&&n.unsubscribe()}}applyOptions(e){const n=Cr(this.options,e||{});h2(this.options,n),this.updatePolling()}async setVariables(e){return e=this.getVariablesWithDefaults(e),dt(this.variables,e)?ll(this.getCurrentResult()):(this.options.variables=e,this.hasObservers()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:ze.setVariables}):ll(this.getCurrentResult()))}updateQuery(e){const{queryManager:n}=this,{result:r,complete:i}=this.getCacheDiff({optimistic:!1}),a=e(r,{variables:this.variables,complete:!!i,previousData:r});a&&(this.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),n.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,n){if(n.nextFetchPolicy){const{fetchPolicy:r="cache-first",initialFetchPolicy:i=r}=n;r==="standby"||(typeof n.nextFetchPolicy=="function"?n.fetchPolicy=n.nextFetchPolicy.call(n,r,{reason:e,options:n,observable:this,initialFetchPolicy:i}):e==="variables-changed"?n.fetchPolicy=i:n.fetchPolicy=n.nextFetchPolicy)}return n.fetchPolicy}fetch(e,n,r,i){const a=this.options.fetchPolicy;e.context??(e.context={});let o=!1;const s=()=>{o=!0},c=v=>new Ut(x=>{try{return v.subscribe({next(_){o=!0,x.next(_)},error:_=>x.error(_),complete:()=>x.complete()})}finally{o||(p.override=n,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:h,variables:m,meta:{shouldEmit:3,fetchPolicy:a}}))}});let{observable:u,fromLink:d}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:n,query:r,onCacheHit:s,fetchQueryOperator:c,observableQuery:this});const{query:h,variables:m}=this,p={abort:()=>{b.unsubscribe()},query:h,variables:m};this.activeOperations.add(p);let y=n==ze.refetch||n==ze.setVariables;u=u.pipe(i,tl());const b=u.pipe(nl({next:v=>{v.source==="newNetworkStatus"||v.kind==="N"&&v.value.loading?p.override=n:delete p.override},finalize:()=>this.activeOperations.delete(p)})).subscribe({next:v=>{const x={};y&&v.kind==="N"&&"loading"in v.value&&!v.value.loading&&(y=!1,x.shouldEmit=1),this.input.next({...v,query:h,variables:m,meta:x})}});return{fromLink:d,subscription:b,observable:u}}updatePolling(){if(this.queryManager.ssrMode)return;const{pollingInfo:e,options:{fetchPolicy:n,pollInterval:r}}=this,i=()=>{const{options:c}=this;return!c.pollInterval||!this.hasObservers()||c.fetchPolicy==="cache-only"||c.fetchPolicy==="standby"};if(i()){this.cancelPolling();return}if((e==null?void 0:e.interval)===r)return;const a=e||(this.pollingInfo={});a.interval=r;const o=()=>{var c,u;if(i())return this.cancelPolling();this.pollingInfo&&(!Xc(this.networkStatus)&&!((u=(c=this.options).skipPollAttempt)!=null&&u.call(c))?this._reobserve({fetchPolicy:this.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},{newNetworkStatus:ze.poll}).then(s,s):s())},s=()=>{const c=this.pollingInfo;c&&(clearTimeout(c.timeout),c.timeout=setTimeout(o,c.interval))};s()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,n){this.isTornDown=!1;let{newNetworkStatus:r}=n||{};this.queryManager.obsQueries.add(this);const i=r===ze.refetch||r===ze.poll,a=this.variables,o=this.options.fetchPolicy,s=Cr(this.options,e||{});this.variablesUnknown&&(this.variablesUnknown=s.fetchPolicy==="standby");const c=i?s:h2(this.options,s),u=this.transformDocument(c.query);this.lastQuery=u,e&&"variables"in e&&(c.variables=this.getVariablesWithDefaults(e.variables)),i||(this.updatePolling(),e&&e.variables&&!dt(e.variables,a)&&c.fetchPolicy!=="standby"&&(c.fetchPolicy===o||typeof c.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",c),r===void 0&&(r=ze.setVariables)));const d=this.networkStatus;r||(r=ze.loading,d!==ze.loading&&(e!=null&&e.variables)&&!dt(e.variables,a)&&(r=ze.setVariables),c.fetchPolicy==="standby"&&(r=ze.ready)),c.fetchPolicy==="standby"&&this.cancelPolling(),this.resubscribeCache();const{promise:h,operator:m}=p2(c.fetchPolicy==="standby"?{data:void 0}:void 0),{subscription:p,observable:y,fromLink:b}=this.fetch(c,r,u,m);!i&&(b||!this.linkSubscription)&&(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=p);const v=Object.assign(Ah(h.then(x=>ll(this.maskResult(x))).finally(()=>{!this.hasObservers()&&this.activeOperations.size===0&&this.tearDownQuery()})),{retain:()=>{const x=y.subscribe({}),_=()=>x.unsubscribe();return h.then(_,_),v}});return v}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){var e;this.isTornDown||(this.resetNotifications(),(e=this.unsubscribeFromCache)==null||e.call(this),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){const n=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return n===e.data?e:{...e,data:n}}resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){const r=this.queryManager.getDocumentInfo(this.query);if(r.hasClientExports||r.hasForcedResolvers)return}const{dirty:n}=this;if(this.resetNotifications(),n&&(this.options.fetchPolicy==="cache-only"||this.options.fetchPolicy==="cache-and-network"||!this.activeOperations.size)){const r=this.getCacheDiff();dt(r.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:r.result,dataState:r.complete?"complete":r.result?"partial":"empty",networkStatus:ze.ready,loading:!1,error:void 0,partial:!r.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}pushOperation(e){let n=!1;const{query:r,variables:i}=this,a=()=>{this.activeOperations.delete(o)},o={override:e,abort:()=>{n=!0,a()},query:r,variables:i};return this.activeOperations.add(o),{finalize:a,pushNotification:(s,c)=>{n||this.input.next({...s,query:r,variables:i,meta:{...c}})}}}calculateNetworkStatus(e){if(e===ze.streaming)return e;const n=Array.from(this.activeOperations.values()).reverse().find(r=>vl(r,this)&&r.override!==void 0);return(n==null?void 0:n.override)??e}abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){const e=this.options.fetchPolicy==="cache-only";this.setResult(e?Qh:Bo,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,n){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...n}})}reobserveCacheFirst(){const{fetchPolicy:e,nextFetchPolicy:n}=this.options;e==="cache-and-network"||e==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,i){return this.nextFetchPolicy=n,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(r,i):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function vl(t,e){return!!(t&&e&&t.query===e.query&&dt(t.variables,e.variables))}function p2(t){let e=t,n,r;const i=new Promise((o,s)=>{n=o,r=s}),a=nl({next(o){if(o.kind==="E")return r(o.error);o.kind==="N"&&o.source!=="newNetworkStatus"&&!o.value.loading&&(e=o.value)},finalize:()=>{if(e)n(e);else{const o="The operation was aborted.",s="AbortError";r(typeof DOMException<"u"?new DOMException(o,s):Object.assign(new Error(o),{name:s}))}}});return{promise:i,operator:a}}const m2={},zo=new WeakMap;function Jh(t,e){const n=t[e];typeof n=="function"&&(t[e]=function(){return zo.set(t,(zo.get(t)+1)%1e15),n.apply(this,arguments)})}const g2=new WeakMap;class Xh{constructor(e,n){ae(this,"lastRequestId",1);ae(this,"cache");ae(this,"queryManager");ae(this,"id");ae(this,"observableQuery");ae(this,"incremental");ae(this,"_lastWrite");const r=this.cache=e.cache,i=(g2.get(e)||0)+1;g2.set(e,i),this.id=i+"",this.observableQuery=n,this.queryManager=e,zo.has(r)||(zo.set(r,0),Jh(r,"evict"),Jh(r,"modify"),Jh(r,"reset"))}get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,n){var i,a;const{lastWrite:r}=this;return!(r&&r.dmCount===zo.get(this.cache)&&dt(n,r.variables)&&dt(e.data,r.result.data)&&((i=e.extensions)==null?void 0:i[ha])===((a=r.result.extensions)==null?void 0:a[ha]))}get hasNext(){return this.incremental?this.incremental.hasNext:!1}maybeHandleIncrementalResult(e,n,r){const{incrementalHandler:i}=this.queryManager;return i.isIncrementalResult(n)?(this.incremental||(this.incremental=i.startRequest({query:r})),this.incremental.handle(e,n)):n}markQueryResult(e,{document:n,variables:r,errorPolicy:i,cacheWriteBehavior:a}){var d;const o={query:n,variables:r,returnPartialData:!0,optimistic:!0};(d=this.observableQuery)==null||d.resetNotifications();const s=a===0,c=s?void 0:this.cache.diff(o);let u=this.maybeHandleIncrementalResult(c==null?void 0:c.result,e,n);return s||($h(u,i)?this.cache.batch({onWatchUpdated:(h,m)=>{h.watcher===this.observableQuery&&(h.lastOwnDiff=m)},update:h=>{if(this.shouldWrite(u,r))h.writeQuery({query:n,data:u.data,variables:r,overwrite:a===1,extensions:u.extensions}),this.lastWrite={result:u,variables:r,dmCount:zo.get(this.cache)};else if(c&&c.complete){u={...u,data:c.result};return}const m=h.diff(o);m.complete&&(u={...u,data:m.result})}}):this.lastWrite=void 0),u}markMutationResult(e,n,r=this.cache){const i=[],a=n.cacheWriteBehavior===0;let o=this.maybeHandleIncrementalResult(a?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(n.document).asQuery,variables:n.variables,optimistic:!1,returnPartialData:!0}).result,e,n.document);if(n.errorPolicy==="ignore"&&(o={...o,errors:[]}),Io(o)&&n.errorPolicy==="none")return Promise.resolve(o);const s=()=>({...o,dataState:this.hasNext?"streaming":"complete"});if(!a&&$h(o,n.errorPolicy)){i.push({result:o.data,dataId:"ROOT_MUTATION",query:n.document,variables:n.variables,extensions:o.extensions});const{updateQueries:u}=n;u&&this.queryManager.getObservableQueries("all").forEach(d=>{const h=d&&d.queryName;if(!h||!Object.hasOwnProperty.call(u,h))return;const m=u[h],{query:p,variables:y}=d,{result:b,complete:v}=d.getCacheDiff({optimistic:!1});if(v&&b){const x=m(b,{mutationResult:s(),queryName:p&&No(p)||void 0,queryVariables:y});x&&i.push({result:x,dataId:"ROOT_QUERY",query:p,variables:y})}})}let c=n.refetchQueries;if(typeof c=="function"&&(c=c(s())),i.length>0||(c||"").length>0||n.update||n.onQueryUpdated||n.removeOptimistic){const u=[];if(this.queryManager.refetchQueries({updateCache:d=>{a||i.forEach(m=>d.write(m));const{update:h}=n;if(h){if(!a){const m=d.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(n.document).asQuery,variables:n.variables,optimistic:!1,returnPartialData:!0});m.complete&&(o={...o,data:m.result})}this.hasNext||h(d,o,{context:n.context,variables:n.variables})}!a&&!n.keepRootFields&&!this.hasNext&&d.modify({id:"ROOT_MUTATION",fields(m,{fieldName:p,DELETE:y}){return p==="__typename"?m:y}})},include:c,optimistic:!1,removeOptimistic:n.removeOptimistic,onQueryUpdated:n.onQueryUpdated||null}).forEach(d=>u.push(d)),n.awaitRefetchQueries||n.onQueryUpdated)return Promise.all(u).then(()=>o)}return Promise.resolve(o)}markMutationOptimistic(e,n){const r=typeof e=="function"?e(n.variables,{IGNORE:m2}):e;return r===m2?!1:(this.cache.recordOptimisticTransaction(i=>{try{this.markMutationResult({data:r},n,i)}catch(a){Je.error(a)}},this.id),!0)}markSubscriptionResult(e,{document:n,variables:r,errorPolicy:i,cacheWriteBehavior:a}){a!==0&&($h(e,i)&&this.cache.write({query:n,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r,extensions:e.extensions}),this.queryManager.broadcastQueries())}}function $h(t,e="none"){const n=e==="ignore"||e==="all";let r=!Io(t);return!r&&n&&t.data&&(r=!0),r}class p7{constructor(e){ae(this,"defaultOptions");ae(this,"client");ae(this,"clientOptions");ae(this,"assumeImmutableResults");ae(this,"documentTransform");ae(this,"ssrMode");ae(this,"defaultContext");ae(this,"dataMasking");ae(this,"incrementalHandler");ae(this,"localState");ae(this,"queryDeduplication");ae(this,"prioritizeCacheValues",!1);ae(this,"onBroadcast");ae(this,"mutationStore");ae(this,"obsQueries",new Set);ae(this,"fetchCancelFns",new Map);ae(this,"transformCache",new Eh(Bi["queryManager.getDocumentInfo"]||2e3));ae(this,"requestIdCounter",1);ae(this,"inFlightLinkObservables",new Ci(!1));ae(this,"noCacheWarningsByCause",new WeakSet);const n=new Wi(i=>this.cache.transformDocument(i),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;const r=e.documentTransform;this.documentTransform=r?n.concat(r).concat(n):n,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches(Lr(87))}cancelPendingFetches(e){this.fetchCancelFns.forEach(n=>n(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:n,optimisticResponse:r,updateQueries:i,refetchQueries:a=[],awaitRefetchQueries:o=!1,update:s,onQueryUpdated:c,fetchPolicy:u,errorPolicy:d,keepRootFields:h,context:m}){const p=new Xh(this);e=this.cache.transformForLink(this.transform(e));const{hasClientExports:y}=this.getDocumentInfo(e);n=this.getVariables(e,n),y&&(n=await this.localState.getExportedVariables({client:this.client,document:e,variables:n,context:m}));const b=this.mutationStore&&(this.mutationStore[p.id]={mutation:e,variables:n,loading:!0,error:null}),v=r&&p.markMutationOptimistic(r,{document:e,variables:n,cacheWriteBehavior:u==="no-cache"?0:2,errorPolicy:d,context:m,updateQueries:i,update:s,keepRootFields:h});return this.broadcastQueries(),new Promise((x,_)=>{const T={};return this.getObservableFromLink(e,{...m,optimisticResponse:v?r:void 0},n,u,{},!1).observable.pipe(v2(),Oo(C=>{const w={...C};return Ha(p.markMutationResult(w,{document:e,variables:n,cacheWriteBehavior:u==="no-cache"?0:2,errorPolicy:d,context:m,update:s,updateQueries:i,awaitRefetchQueries:o,refetchQueries:a,removeOptimistic:v?p.id:void 0,onQueryUpdated:c,keepRootFields:h}))})).pipe(fa(C=>{if(Io(C)&&d==="none")throw new Gi(ep(C));return b&&(b.loading=!1,b.error=null),C})).subscribe({next:C=>{if(this.broadcastQueries(),!p.hasNext){const w={data:this.maskOperation({document:e,data:C.data,fetchPolicy:u,cause:T})};Io(C)&&(w.error=new Gi(C)),Object.keys(C.extensions||{}).length&&(w.extensions=C.extensions),x(w)}},error:C=>{if(b&&(b.loading=!1,b.error=C),v&&this.cache.removeOptimistic(p.id),this.broadcastQueries(),d==="ignore")return x({data:void 0});if(d==="all")return x({data:void 0,error:C});_(C)}})})}fetchQuery(e,n){return da(e.query,Ba.QUERY),(async()=>L9(this.fetchObservableWithInfo(e,{networkStatus:n}).observable.pipe(kh(r=>{switch(r.kind){case"E":throw r.error;case"N":if(r.source!=="newNetworkStatus")return ll(r.value)}})),{defaultValue:{data:void 0}}))()}transform(e){return this.documentTransform.transformDocument(e)}getDocumentInfo(e){const{transformCache:n}=this;if(!n.has(e)){const i=zi(e),a={hasClientExports:Mo(["client","export"],e,!0),hasForcedResolvers:d3(e),hasNonreactiveDirective:Mo(["nonreactive"],e),hasIncrementalDirective:Mo(["defer"],e),nonReactiveQuery:m7(e),clientQuery:Mo(["client"],e)?e:null,serverQuery:m3([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:i==null?void 0:i.operation,defaultVars:Ch(i),asQuery:{...e,definitions:e.definitions.map(o=>o.kind==="OperationDefinition"&&o.operation!=="query"?{...o,operation:"query"}:o)}};n.set(e,a)}const r=n.get(e);if(r.violation)throw r.violation;return r}getVariables(e,n){const r=this.getDocumentInfo(e).defaultVars,i=Object.entries(n??{}).map(([a,o])=>[a,o===void 0?r[a]:o]);return{...r,...Object.fromEntries(i)}}watchQuery(e){da(e.query,Ba.QUERY);const n=this.transform(e.query);return e={...e,variables:this.getVariables(n,e.variables)},typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!0),new qh({queryManager:this,options:e,transformedQuery:n})}query(e){const n=this.transform(e.query);return this.fetchQuery({...e,query:n}).then(r=>({...r,data:this.maskOperation({document:n,data:r==null?void 0:r.data,fetchPolicy:e.fetchPolicy})}))}generateRequestId(){return this.requestIdCounter++}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches(Lr(89)),this.obsQueries.forEach(n=>{n.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){const n=new Set,r=new Map,i=new Map,a=new Set;return Array.isArray(e)&&e.forEach(o=>{if(typeof o=="string")r.set(o,o),i.set(o,!1);else if(h3(o)){const s=Ya(this.transform(o));r.set(s,No(o)),i.set(s,!1)}else Dn(o)&&o.query&&a.add(o)}),this.obsQueries.forEach(o=>{const s=Ya(this.transform(o.options.query));if(e==="all"){n.add(o);return}const{queryName:c,options:{fetchPolicy:u}}=o;e==="active"&&u==="standby"||(e==="active"||c&&i.has(c)||s&&i.has(s))&&(n.add(o),c&&i.set(c,!0),s&&i.set(s,!0))}),a.size&&a.forEach(o=>{const s=new qh({queryManager:this,options:{...Ga(this.defaultOptions.watchQuery,o),fetchPolicy:"network-only"}});n.add(s)}),n}refetchObservableQueries(e=!1){const n=[];return this.getObservableQueries(e?"all":"active").forEach(r=>{const{fetchPolicy:i}=r.options;(e||i!=="standby")&&i!=="cache-only"&&n.push(r.refetch())}),this.broadcastQueries(),Promise.all(n)}startGraphQLSubscription(e){let{query:n,variables:r}=e;const{fetchPolicy:i="cache-first",errorPolicy:a="none",context:o={},extensions:s={}}=e;da(n,Ba.SUBSCRIPTION),n=this.transform(n),r=this.getVariables(n,r);let c;const u=(this.getDocumentInfo(n).hasClientExports?Ha(this.localState.getExportedVariables({client:this.client,document:n,variables:r,context:o})):Wa(r)).pipe(Oo(d=>{const{observable:h,restart:m}=this.getObservableFromLink(n,o,d,i,s),p=new Xh(this);return c=m,h.pipe(fa(y=>{p.markSubscriptionResult(y,{document:n,variables:d,errorPolicy:a,cacheWriteBehavior:i==="no-cache"?0:2});const b={data:y.data??void 0};return Io(y)?b.error=new Gi(y):d2(y)&&(b.error=y.extensions[gl],delete y.extensions[gl]),y.extensions&&Object.keys(y.extensions).length&&(b.extensions=y.extensions),b.error&&a==="none"&&(b.data=void 0),a==="ignore"&&delete b.error,b}),Wc(y=>Wa(a==="ignore"?{data:void 0}:{data:void 0,error:y})),rb(y=>!!(y.data||y.error)))}));return Object.assign(u,{restart:()=>c==null?void 0:c()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}getObservableFromLink(e,n,r,i,a,o=(n==null?void 0:n.queryDeduplication)??this.queryDeduplication){let s={};const{serverQuery:c,clientQuery:u,operationType:d,hasIncrementalDirective:h}=this.getDocumentInfo(e),m=No(e),p={client:this.client};if(c){const{inFlightLinkObservables:y,link:b}=this;try{let x=function(_){return new Ut(T=>{function C(){return _.subscribe({next:T.next.bind(T),complete:T.complete.bind(T),error:T.error.bind(T)})}let w=C();return s.restart||(s.restart=()=>{w.unsubscribe(),w=C()}),()=>{w.unsubscribe(),s.restart=void 0}})};const v=this.incrementalHandler.prepareRequest({query:c,variables:r,context:{...this.defaultContext,...n,queryDeduplication:o},extensions:a});if(n=v.context,o){const _=Ya(c),T=Hi(r);s=y.lookup(_,T),s.observable||(s.observable=Mh(b,v,p).pipe(x,H9(()=>{y.peek(_,T)===s&&y.remove(_,T)}),d===Ba.SUBSCRIPTION?tl():vh({refCount:!0})))}else s.observable=Mh(b,v,p).pipe(x)}catch(v){s.observable=tb(()=>v)}}else s.observable=Wa({data:{}});if(u){const{operation:y}=zi(e);Je(!h,94,y[0].toUpperCase()+y.slice(1),m??"(anonymous)"),s.observable=s.observable.pipe(Oo(b=>Ha(this.localState.execute({client:this.client,document:u,remoteResult:b,context:n,variables:r,fetchPolicy:i}))))}return{restart:()=>{var y;return(y=s.restart)==null?void 0:y.call(s)},observable:s.observable.pipe(Wc(y=>{throw y=Zh(y),h7(y),y}))}}getResultsFromLink(e,{queryInfo:n,cacheWriteBehavior:r,observableQuery:i,exposeExtensions:a}){const o=n.lastRequestId=this.generateRequestId(),{errorPolicy:s}=e,c=this.cache.transformForLink(e.query);return this.getObservableFromLink(c,e.context,e.variables,e.fetchPolicy).observable.pipe(fa(u=>{const d=n.markQueryResult(u,{...e,document:c,cacheWriteBehavior:r}),h=Io(d);if(h&&s==="none")throw n.resetLastWrite(),i==null||i.resetNotifications(),new Gi(ep(d));const m={data:d.data,...n.hasNext?{loading:!0,networkStatus:ze.streaming,dataState:"streaming",partial:!0}:{dataState:d.data?"complete":"empty",loading:!1,networkStatus:ze.ready,partial:!d.data}};return a&&"extensions"in d&&(m[pb]=d.extensions),h&&(s==="none"&&(m.data=void 0,m.dataState="empty"),s!=="ignore"&&(m.error=new Gi(ep(d)),m.dataState!=="streaming"&&(m.networkStatus=ze.error))),m}),Wc(u=>{if(o>=n.lastRequestId&&s==="none")throw n.resetLastWrite(),i==null||i.resetNotifications(),u;const d={data:void 0,dataState:"empty",loading:!1,networkStatus:ze.ready,partial:!0};return s!=="ignore"&&(d.error=u,d.networkStatus=ze.error),Wa(d)}))}fetchObservableWithInfo(e,{networkStatus:n=ze.loading,query:r=e.query,fetchQueryOperator:i=c=>c,onCacheHit:a=()=>{},observableQuery:o,exposeExtensions:s}){const c=this.getVariables(r,e.variables);let{fetchPolicy:u="cache-first",errorPolicy:d="none",returnPartialData:h=!1,notifyOnNetworkStatusChange:m=!0,context:p={}}=e;this.prioritizeCacheValues&&(u==="network-only"||u==="cache-and-network")&&(u="cache-first");const y=Object.assign({},e,{query:r,variables:c,fetchPolicy:u,errorPolicy:d,returnPartialData:h,notifyOnNetworkStatusChange:m,context:p}),b=new Xh(this,o),v=w=>{y.variables=w;const A=u==="no-cache"?0:n===ze.refetch&&y.refetchWritePolicy!=="merge"?1:2,k=this.fetchQueryByPolicy(y,{queryInfo:b,cacheWriteBehavior:A,onCacheHit:a,observableQuery:o,exposeExtensions:s});return k.observable=k.observable.pipe(i),y.fetchPolicy!=="standby"&&(o==null||o.applyNextFetchPolicy("after-fetch",e)),k},x=()=>{this.fetchCancelFns.delete(b.id)};this.fetchCancelFns.set(b.id,w=>{_.next({kind:"E",error:w,source:"network"})});const _=new To;let T,C;if(this.getDocumentInfo(y.query).hasClientExports)T=Ha(this.localState.getExportedVariables({client:this.client,document:y.query,variables:y.variables,context:y.context})).pipe(Oo(w=>v(w).observable)),C=!0;else{const w=v(y.variables);C=w.fromLink,T=w.observable}return{observable:new Ut(w=>{w.add(x),T.subscribe(w),_.subscribe(w)}).pipe(tl()),fromLink:C}}refetchQueries({updateCache:e,include:n,optimistic:r=!1,removeOptimistic:i=r?fy("refetchQueries"):void 0,onQueryUpdated:a}){const o=new Map;n&&this.getObservableQueries(n).forEach(c=>{if(c.options.fetchPolicy==="cache-only"||c.variablesUnknown)return;const u=c.getCurrentResult();o.set(c,{oq:c,lastDiff:{result:u==null?void 0:u.data,complete:!(u!=null&&u.partial)}})});const s=new Map;if(e){const c=new Set;this.cache.batch({update:e,optimistic:r&&i||!1,removeOptimistic:i,onWatchUpdated(u,d,h){const m=u.watcher;if(m instanceof qh&&!c.has(m)){if(c.add(m),a){o.delete(m);let p=a(m,d,h);return p===!0&&(p=m.refetch().retain()),p!==!1&&s.set(m,p),p}a!==null&&m.options.fetchPolicy!=="cache-only"&&o.set(m,{oq:m,lastDiff:h,diff:d})}}})}return o.size&&o.forEach(({oq:c,lastDiff:u,diff:d})=>{let h;a&&(d||(d=c.getCacheDiff()),h=a(c,d,u)),(!a||h===!0)&&(h=c.refetch().retain()),h!==!1&&s.set(c,h)}),i&&this.cache.removeOptimistic(i),s}maskOperation(e){const{document:n,data:r}=e;return this.dataMasking?$3(r,n,this.cache):r}maskFragment(e){const{data:n,fragment:r,fragmentName:i}=e;return this.dataMasking?X3(n,r,this.cache,i):n}fetchQueryByPolicy({query:e,variables:n,fetchPolicy:r,errorPolicy:i,returnPartialData:a,context:o},{cacheWriteBehavior:s,onCacheHit:c,queryInfo:u,observableQuery:d,exposeExtensions:h}){const m=()=>this.cache.diff({query:e,variables:n,returnPartialData:!0,optimistic:!0}),p=(b,v)=>{const x=b.result,_=C=>(!b.complete&&!a&&(C=void 0),{data:C,dataState:b.complete?"complete":C?"partial":"empty",loading:Xc(v),networkStatus:v,partial:!b.complete}),T=C=>Wa({kind:"N",value:_(C),source:"cache"});return(b.complete||a)&&this.getDocumentInfo(e).hasForcedResolvers?(c(),Ha(this.localState.execute({client:this.client,document:e,remoteResult:x?{data:x}:void 0,context:o,variables:n,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:r}).then(C=>({kind:"N",value:_(C.data||void 0),source:"cache"})))):i==="none"&&v===ze.refetch&&b.missing?T(void 0):T(x||void 0)},y=()=>this.getResultsFromLink({query:e,variables:n,context:o,fetchPolicy:r,errorPolicy:i},{cacheWriteBehavior:s,queryInfo:u,observableQuery:d,exposeExtensions:h}).pipe(v2(),W9(),fa(b=>({...b,source:"network"})));switch(r){default:case"cache-first":{const b=m();return b.complete?{fromLink:!1,observable:p(b,ze.ready)}:a?{fromLink:!0,observable:mh(p(b,ze.loading),y())}:{fromLink:!0,observable:y()}}case"cache-and-network":{const b=m();return b.complete||a?{fromLink:!0,observable:mh(p(b,ze.loading),y())}:{fromLink:!0,observable:y()}}case"cache-only":return{fromLink:!1,observable:mh(p(m(),ze.ready))};case"network-only":return{fromLink:!0,observable:y()};case"no-cache":return{fromLink:!0,observable:y()};case"standby":return{fromLink:!1,observable:el}}}}function v2(){let t=!1;return nl({next(){t=!0},complete(){Je(t,98)}})}function m7(t){return Ei(t,{FragmentSpread:e=>{var n;if(!((n=e.directives)!=null&&n.some(r=>r.name.value==="unmask")))return{...e,directives:[...e.directives||[],{kind:gt.DIRECTIVE,name:{kind:gt.NAME,value:"nonreactive"}}]}}})}function ep(t){var i;if(((i=t.extensions)==null?void 0:i[ha])==null)return t;const{extensions:{[ha]:e,...n},...r}=t;return Object.keys(n).length>0&&(r.extensions=n),r}class g7{constructor(e){ae(this,"link");ae(this,"cache");ae(this,"disableNetworkFetches");ae(this,"version");ae(this,"queryDeduplication");ae(this,"defaultOptions");ae(this,"devtoolsConfig");ae(this,"queryManager");ae(this,"devToolsHookCb");ae(this,"resetStoreCallbacks",[]);ae(this,"clearStoreCallbacks",[]);ae(this,"reFetchObservableQueries");ae(this,"maskedFragmentTransform",new Wi(y3));const{cache:n,documentTransform:r,ssrMode:i=!1,ssrForceFetchDelay:a=0,queryDeduplication:o=!0,defaultOptions:s,defaultContext:c,assumeImmutableResults:u=n.assumeImmutableResults,localState:d,devtools:h,dataMasking:m,link:p,incrementalHandler:y=new L3,experiments:b=[]}=e;this.link=p,this.cache=n,this.queryDeduplication=o,this.defaultOptions=s||{},this.devtoolsConfig={...h,enabled:(h==null?void 0:h.enabled)??cy},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=this.refetchObservableQueries.bind(this),this.version=Jd,this.queryManager=new p7({client:this,defaultOptions:this.defaultOptions,defaultContext:c,documentTransform:r,queryDeduplication:o,ssrMode:i,dataMasking:!!m,clientOptions:e,incrementalHandler:y,assumeImmutableResults:u,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:d}),this.prioritizeCacheValues=i||a>0,a&&setTimeout(()=>{this.prioritizeCacheValues=!1},a),this.devtoolsConfig.enabled&&this.connectToDevTools(),b.forEach(v=>v.call(this,e))}set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}connectToDevTools(){if(typeof window>"u")return;const e=window,n=Symbol.for("apollo.devtools");(e[n]=e[n]||[]).push(this),e.__APOLLO_CLIENT__=this}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop()}watchQuery(e){return this.defaultOptions.watchQuery&&(e=Ga(this.defaultOptions.watchQuery,e)),this.queryManager.watchQuery(e)}query(e){return this.defaultOptions.query&&(e=Ga(this.defaultOptions.query,e)),this.queryManager.query(e)}mutate(e){const n=Ga(Cr({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return da(n.mutation,Ba.MUTATION),this.queryManager.mutate(n)}subscribe(e){const n={},r=this.queryManager.startGraphQLSubscription(e),i=r.pipe(fa(a=>({...a,data:this.queryManager.maskOperation({document:e.query,data:a.data,fetchPolicy:e.fetchPolicy,cause:n})})));return Object.assign(i,{restart:r.restart})}readQuery(e,n=!1){return this.cache.readQuery({...e,query:this.transform(e.query)},n)}watchFragment(e){const n=this.queryManager.dataMasking;return this.cache.watchFragment({...e,fragment:this.transform(e.fragment,n)})}readFragment(e,n=!1){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},n)}writeQuery(e){const n=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),n}writeFragment(e){const n=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),n}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return Mh(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(n=>n!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(n=>n!==e)}}refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){const n=this.queryManager.refetchQueries(e),r=[],i=[];n.forEach((o,s)=>{r.push(s),i.push(o)});const a=Promise.all(i);return a.queries=r,a.results=i,a.catch(o=>{}),a}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}transform(e,n=!1){const r=this.queryManager.transform(e);return n?this.maskedFragmentTransform.transformDocument(r):r}}const{hasOwnProperty:y2}=Object.prototype;function v7(t){return Dn(t)&&"payload"in t}async function*y7(t){var m;const e=new TextDecoder("utf-8"),n=(m=t.headers)==null?void 0:m.get("content-type"),r=n==null?void 0:n.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),i=`\r
42
42
  --`+(r?r[1]??r[2]??r[3]??"-":"-");let a="";Je(t.body&&typeof t.body.getReader=="function",62);const s=t.body.getReader();let c=!1,u=!1,d;const h=()=>u&&a[0]=="-"&&a[1]=="-";try{for(;!c;){({value:d,done:c}=await s.read());const p=typeof d=="string"?d:e.decode(d),y=a.length-i.length+1;a+=p;let b=a.indexOf(i,y);for(;b>-1&&!h();){u=!0;let v;[v,a]=[a.slice(0,b),a.slice(b+i.length)];const x=v.indexOf(`\r
43
43
  \r
44
44
  `),T=w7(v.slice(0,x))["content-type"];if(T&&T.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");const C=v.slice(x);C&&(yield C),b=a.indexOf(i)}if(h())return}throw new Error("premature end of multipart body")}finally{s.cancel()}}async function b7(t,e){for await(const n of y7(t)){const r=b2(t,n);if(Object.keys(r).length!=0)if(v7(r)){if(Object.keys(r).length===1&&r.payload===null)return;let i={...r.payload};"errors"in r&&(i.extensions={...i.extensions,[gl]:new nu(r.errors??[])}),e(i)}else e(r)}}function w7(t){const e={};return t.split(`
45
- `).forEach(n=>{const r=n.indexOf(":");if(r>-1){const i=n.slice(0,r).trim().toLowerCase(),a=n.slice(r+1).trim();e[i]=a}}),e}function b2(t,e){if(t.status>=300)throw new ru(`Response not successful: Received status code ${t.status}`,{response:t,bodyText:e});try{return JSON.parse(e)}catch(n){throw new iu(n,{response:t,bodyText:e})}}function S7(t,e){try{return JSON.parse(e)}catch(n){throw new iu(n,{response:t,bodyText:e})}}function E7(t,e){const n=t.headers.get("content-type");return n!=null&&n.includes("application/graphql-response+json")?S7(t,e):b2(t,e)}function C7(t){return e=>e.text().then(n=>{const r=E7(e,n);if(!Array.isArray(r)&&!y2.call(r,"data")&&!y2.call(r,"errors"))throw new ru(`Server response was malformed for query '${Array.isArray(t)?t.map(i=>i.operationName):t.operationName}'.`,{response:e,bodyText:n});return r})}const x7={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},_7=(t,e)=>e(t);function A7(t,e,...n){let r={},i={};n.forEach(d=>{var h;r={...r,...d.options,headers:{...r.headers,...d.headers}},d.credentials&&(r.credentials=d.credentials),r.headers.accept=(((h=d.http)==null?void 0:h.accept)||[]).concat(r.headers.accept).join(","),i={...i,...d.http}}),r.headers=k7(r.headers,i.preserveHeaderCase);const{operationName:a,extensions:o,variables:s,query:c}=t,u={operationName:a,variables:s};return i.includeExtensions&&Object.keys(o||{}).length&&(u.extensions=o),i.includeQuery&&(u.query=e(c,Ga)),{options:r,body:u}}function k7(t,e){if(!e){const i={};return Object.keys(Object(t)).forEach(a=>{i[a.toLowerCase()]=t[a]}),i}const n={};Object.keys(Object(t)).forEach(i=>{n[i.toLowerCase()]={originalName:i,value:t[i]}});const r={};return Object.keys(n).forEach(i=>{r[n[i].originalName]=n[i].value}),r}const T7=(t,e)=>{const r=t.getContext().uri;return r||(typeof e=="function"?e(t):e||"/graphql")};function O7(t,e){const n=[],r=(u,d)=>{n.push(`${u}=${encodeURIComponent(d)}`)};if("query"in e&&r("query",e.query),e.operationName&&r("operationName",e.operationName),e.variables){let u;try{u=JSON.stringify(e.variables)}catch(d){return{parseError:d}}r("variables",u)}if(e.extensions){let u;try{u=JSON.stringify(e.extensions)}catch(d){return{parseError:d}}r("extensions",u)}let i="",a=t;const o=t.indexOf("#");o!==-1&&(i=t.substr(o),a=t.substr(0,o));const s=a.indexOf("?")===-1?"?":"&";return{newURI:a+s+n.join("&")+i}}const R7=ai(()=>fetch);function N7(){}class P7 extends _n{constructor(e={}){let{uri:n="/graphql",fetch:r,print:i=_7,includeExtensions:a,preserveHeaderCase:o,useGETForQueries:s,includeUnusedVariables:c=!1,...u}=e;const d={http:Cr({includeExtensions:a,preserveHeaderCase:o}),options:u.fetchOptions,credentials:u.credentials,headers:u.headers};super(h=>{let m=T7(h,n);const p=h.getContext(),y={...p.http};U3(h.query)&&(y.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...y.accept||[]]);const b={http:y,options:p.fetchOptions,credentials:p.credentials,headers:p.headers},{options:v,body:x}=A7(h,i,x7,d,b);x.variables&&!c&&(x.variables=j3(x.variables,h.query));let _=new AbortController,T=()=>{_=void 0};if(v.signal){const C=v.signal,w=()=>{_==null||_.abort(C.reason)};C.addEventListener("abort",w,{once:!0}),T=()=>{_==null||_.signal.removeEventListener("abort",T),_=void 0,C.removeEventListener("abort",w),T=N7},_.signal.addEventListener("abort",T,{once:!0})}return v.signal=_.signal,s&&!V3(h.query)&&(v.method="GET"),new Ut(C=>{if(v.method==="GET"){const{newURI:k,parseError:R}=O7(m,x);if(R)throw R;m=k}else v.body=JSON.stringify(x);const w=r||ai(()=>fetch)||R7,A=C.next.bind(C);return w(m,v).then(k=>{var I;h.setContext({response:k});const R=(I=k.headers)==null?void 0:I.get("content-type");return R!==null&&/^multipart\/mixed/i.test(R)?b7(k,A):C7(h)(k).then(A)}).then(()=>{T(),C.complete()}).catch(k=>{T(),C.error(k)}),()=>{_&&_.abort()}})})}}class I7 extends _n{constructor(e={}){super((n,r)=>{const i=n.client,a=i.queryManager.clientOptions,o=n.getContext();{const{name:s,version:c,transport:u="headers"}=Cr({},a.clientAwareness,e.clientAwareness,o.clientAwareness);u==="headers"&&n.setContext(({headers:d})=>({headers:Cr({"apollographql-client-name":s,"apollographql-client-version":c},d)}))}{const{transport:s="extensions"}=Cr({},a.enhancedClientAwareness,e.enhancedClientAwareness);s==="extensions"&&(n.extensions=Cr({clientLibrary:{name:"@apollo/client",version:i.version}},n.extensions)),s==="headers"&&n.setContext(({headers:c})=>({headers:Cr({"apollographql-library-name":"@apollo/client","apollographql-library-version":i.version},c)}))}return r(n)})}}class M7 extends _n{constructor(e={}){const{left:n,right:r,request:i}=_n.from([new I7(e),new P7(e)]);super(i),Object.assign(this,{left:n,right:r})}}function tp(t,e){const n=L.useRef(void 0);return(!n.current||!dt(n.current.deps,e))&&(n.current={value:t(),deps:e}),n.current.value}let np;function L7(){}function F7(){return np||(np=L.createContext(null)),L.useCallback(()=>{const t=console.error;try{return console.error=L7,L.useContext(np),!0}catch{return!1}finally{console.error=t}},[])}const j7=Symbol.for("apollo.skipToken"),D7=Symbol.for("apollo.hook.wrappers");function V7(t,e,n){var a;const r=[n.queryManager,t.startsWith("use")?L.useContext(eh()):void 0];let i=e;for(const o of r){const s=(a=o==null?void 0:o[D7])==null?void 0:a[t];s&&(i=s(i))}return i}const au=ib?L.useLayoutEffect:L.useEffect,U7=L["useSyncExternalStore"],B7=ai(()=>navigator.product)=="ReactNative",z7=ai(()=>navigator.userAgent.indexOf("jsdom")>=0)||!1,H7=(ib||B7)&&!z7,rp=U7||((t,e,n)=>{const r=e(),[{inst:i},a]=L.useState({inst:{value:r,getSnapshot:e}});return H7?L.useLayoutEffect(()=>{Object.assign(i,{value:r,getSnapshot:e}),ip(i)&&a({inst:i})},[t,r,e]):Object.assign(i,{value:r,getSnapshot:e}),L.useEffect(()=>(ip(i)&&a({inst:i}),t(function(){ip(i)&&a({inst:i})})),[t]),r});function ip({value:t,getSnapshot:e}){try{return t!==e()}catch{return!0}}const W7=["refetch","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function Ya(t,e){const n=Js(e==null?void 0:e.client),r=L.useRef(void 0),i=L.useRef(void 0),a=tp(()=>e,[e]),o=F7();function s(){return n.watchQuery({...e,query:t,initialFetchPolicy:e==null?void 0:e.fetchPolicy,fetchPolicy:"standby",[Th]:!0})}const[c,u]=L.useState(n),[d,h]=L.useState(s);c!==n&&(u(n),h(s()));const m=L.useCallback((T,C)=>{var A;const w=(A=i.current)==null?void 0:A.data;w&&!dt(w,T.data)&&(r.current=w),i.current=T,C()},[]),p=rp(L.useCallback(T=>{const C=d.subscribe(w=>{dt(i.current,w)||m(w,T)});return()=>{C.unsubscribe()}},[d,m]),()=>i.current||w2,()=>w2),y=L.useMemo(()=>{const T={};for(const C of W7)T[C]=function(...w){return Je(i.current,29,C),d[C](...w)};return T},[d]);L.useEffect(()=>{const T={query:t,errorPolicy:a==null?void 0:a.errorPolicy,refetchWritePolicy:a==null?void 0:a.refetchWritePolicy,returnPartialData:a==null?void 0:a.returnPartialData,notifyOnNetworkStatusChange:a==null?void 0:a.notifyOnNetworkStatusChange,nextFetchPolicy:e==null?void 0:e.nextFetchPolicy,skipPollAttempt:e==null?void 0:e.skipPollAttempt};d.options.fetchPolicy!=="standby"&&(a!=null&&a.fetchPolicy)&&(T.fetchPolicy=a.fetchPolicy),d.applyOptions(T)},[t,d,a,e==null?void 0:e.nextFetchPolicy,e==null?void 0:e.skipPollAttempt]);const b=L.useCallback((...T)=>{Je(!o(),30);const[C]=T;let w=d.options.fetchPolicy;return w==="standby"&&(w=d.options.initialFetchPolicy),d.reobserve({fetchPolicy:w,variables:C==null?void 0:C.variables,context:(C==null?void 0:C.context)??{}})},[d,o]),v=L.useRef(b);au(()=>{v.current=b});const x=L.useCallback((...T)=>v.current(...T),[]),_=L.useMemo(()=>{const{partial:T,...C}=p;return{...y,...C,client:n,previousData:r.current,variables:d.variables,observable:d,called:!!i.current}},[n,p,y,d]);return[x,_]}const w2={data:void 0,dataState:"empty",loading:!1,networkStatus:ze.ready,partial:!0};function ma(t,e){const n=Js(e==null?void 0:e.client),[r,i]=L.useState(()=>S2(n)),a=L.useRef({result:r,mutationId:0,isMounted:!0,client:n,mutation:t,options:e});au(()=>{Object.assign(a.current,{client:n,options:e,mutation:t})});const o=L.useCallback((c={})=>{const{options:u,mutation:d}=a.current,h={...u,mutation:d},m=c.client||a.current.client,p=typeof c.context=="function"?c.context(u==null?void 0:u.context):c.context;!a.current.result.loading&&a.current.isMounted&&i(a.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:m});const y=++a.current.mutationId,b=Lo(h,{...c,context:p});return Ah(m.mutate(b).then(v=>{var w,A;const{data:x,error:_}=v,T=c.onError||((w=a.current.options)==null?void 0:w.onError);if(_&&T&&T(_,b),y===a.current.mutationId){const k={called:!0,loading:!1,data:x,error:_,client:m};a.current.isMounted&&!dt(a.current.result,k)&&i(a.current.result=k)}const C=c.onCompleted||((A=a.current.options)==null?void 0:A.onCompleted);return _||C==null||C(v.data,b),v},v=>{var _;if(y===a.current.mutationId&&a.current.isMounted){const T={loading:!1,error:v,data:void 0,called:!0,client:m};dt(a.current.result,T)||i(a.current.result=T)}const x=c.onError||((_=a.current.options)==null?void 0:_.onError);throw x&&x(v,b),v}))},[]),s=L.useCallback(()=>{if(a.current.isMounted){const c=S2(a.current.client);Object.assign(a.current,{mutationId:0,result:c}),i(c)}},[]);return L.useEffect(()=>{const c=a.current;return c.isMounted=!0,()=>{c.isMounted=!1}},[]),[o,{reset:s,...r}]}function S2(t){return{data:void 0,error:void 0,called:!1,loading:!1,client:t}}const yl=Symbol();function ou(t,...[e]){"use no memo";return V7("useQuery",G7,Js(typeof e=="object"?e.client:void 0))(t,e)}function G7(t,e={}){const n=Js(typeof e=="object"?e.client:void 0),{ssr:r}=typeof e=="object"?e:{},i=Y7(t,e,n.defaultOptions.watchQuery);function a(p){const y=n.watchQuery(i);return{client:n,query:t,observable:y,resultData:{current:y.getCurrentResult(),previousData:p==null?void 0:p.resultData.current.data,variables:y.variables}}}let[o,s]=L.useState(a);(n!==o.client||t!==o.query)&&s(o=a(o));const{observable:c,resultData:u}=o;K7(i,c),Q7(u,c,i);const d=Z7(c,u,r),h=L.useMemo(()=>({refetch:c.refetch.bind(c),fetchMore:c.fetchMore.bind(c),updateQuery:c.updateQuery.bind(c),startPolling:c.startPolling.bind(c),stopPolling:c.stopPolling.bind(c),subscribeToMore:c.subscribeToMore.bind(c)}),[c]),m=u.previousData;return L.useMemo(()=>{const{partial:p,...y}=d;return{...y,client:n,observable:c,variables:c.variables,previousData:m,...h}},[d,n,c,m,h])}const E2=Symbol();function Y7(t,e,n){return tp(()=>{if(e===j7){const i={...Lo(n,{query:t,fetchPolicy:"standby"}),[Th]:!0};return i[E2]=!0,i}const r=Lo(n,{...e,query:t});return e.skip&&(r.initialFetchPolicy=e.initialFetchPolicy||e.fetchPolicy,r.fetchPolicy="standby"),r},[t,e,n])}function K7(t,e){"use no memo";t.fetchPolicy||(t.fetchPolicy=e.options.initialFetchPolicy)}function Z7(t,e,n){"use no memo";return rp(L.useCallback(r=>{const i=t.pipe(hh(m9)).subscribe(a=>{const o=e.current;dt(o,a)&&dt(e.variables,t.variables)||(e.variables=t.variables,o.data&&!dt(o.data,a.data)&&(e.previousData=o.data),e.current=a,r())});return()=>{setTimeout(()=>i.unsubscribe())}},[t,e]),()=>e.current,()=>n===!1?ou.ssrDisabledResult:e.current)}function Q7(t,e,n){"use no memo";if(e[yl]&&!dt(e[yl],n)){e[yl][E2]&&!n.initialFetchPolicy&&(n.initialFetchPolicy=n.fetchPolicy),q7(e[yl],n)?e.reobserve(n):e.applyOptions(n);const r=e.getCurrentResult();dt(r.data,t.current.data)||(t.previousData=t.current.data||t.previousData),t.current=r,t.variables=e.variables}e[yl]=n}function q7(t,e){return t.query!==e.query||!dt(t.variables,e.variables)||t.fetchPolicy!==e.fetchPolicy&&(e.fetchPolicy==="standby"||t.fetchPolicy==="standby")}ou.ssrDisabledResult={loading:!0,data:void 0,dataState:"empty",error:void 0,networkStatus:ze.loading,partial:!0};function C2(t,...[e={}]){const n=Js(e.client),{skip:r,fetchPolicy:i,errorPolicy:a,shouldResubscribe:o,context:s,extensions:c,ignoreResults:u}=e,d=tp(()=>e.variables,[e.variables]),h=()=>J7(n,t,d,i,a,s,c);let[m,p]=L.useState(e.skip?null:h);const y=L.useRef(h);au(()=>{y.current=h}),r?m&&p(m=null):(!m||(n!==m.__.client||t!==m.__.query||i!==m.__.fetchPolicy||a!==m.__.errorPolicy||!dt(d,m.__.variables))&&(typeof o=="function"?!!o(e):o)!==!1)&&p(m=h());const b=L.useRef(e);L.useEffect(()=>{b.current=e});const v=!r&&!u,x=L.useMemo(()=>({loading:v,error:void 0,data:void 0}),[v]),_=L.useRef(u);au(()=>{_.current=u});const T=rp(L.useCallback(w=>{if(!m)return()=>{};let A=!1;const k=m.__.client,R=m.subscribe({next(I){var D,z;if(A)return;const U={loading:!1,data:I.data,error:I.error};m.__.setResult(U),_.current||w(),U.error?(z=(D=b.current).onError)==null||z.call(D,U.error):b.current.onData&&b.current.onData({client:k,data:U})},complete(){m.__.completed=!0,!A&&b.current.onComplete&&b.current.onComplete()}});return()=>{A=!0,setTimeout(()=>R.unsubscribe())}},[m]),()=>m&&!r&&!u?m.__.result:x,()=>x),C=L.useCallback(()=>{Je(!b.current.skip,33),m!=null&&m.__.completed?p(y.current()):m==null||m.restart()},[m,p,b,y]);return L.useMemo(()=>({...T,restart:C}),[T,C])}function J7(t,e,n,r,i,a,o){const s={query:e,variables:n,fetchPolicy:r,errorPolicy:i,context:a,extensions:o},c={...s,client:t,completed:!1,result:{loading:!0,data:void 0,error:void 0},setResult(u){c.result=u}};return Object.assign(t.subscribe(s),{__:c})}function x2(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=x2(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Ka(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=x2(t))&&(r&&(r+=" "),r+=e);return r}function X7(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}X7(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
46
- `);var bl=t=>typeof t=="number"&&!isNaN(t),Za=t=>typeof t=="string",Yi=t=>typeof t=="function",$7=t=>Za(t)||bl(t),ap=t=>Za(t)||Yi(t)?t:null,eA=(t,e)=>t===!1||bl(t)&&t>0?t:e,op=t=>N.isValidElement(t)||Za(t)||Yi(t)||bl(t);function tA(t,e,n=300){let{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function nA({enter:t,exit:e,appendPosition:n=!1,collapse:r=!0,collapseDuration:i=300}){return function({children:a,position:o,preventExitTransition:s,done:c,nodeRef:u,isIn:d,playToast:h}){let m=n?`${t}--${o}`:t,p=n?`${e}--${o}`:e,y=N.useRef(0);return N.useLayoutEffect(()=>{let b=u.current,v=m.split(" "),x=_=>{_.target===u.current&&(h(),b.removeEventListener("animationend",x),b.removeEventListener("animationcancel",x),y.current===0&&_.type!=="animationcancel"&&b.classList.remove(...v))};b.classList.add(...v),b.addEventListener("animationend",x),b.addEventListener("animationcancel",x)},[]),N.useEffect(()=>{let b=u.current,v=()=>{b.removeEventListener("animationend",v),r?tA(b,c,i):c()};d||(s?v():(y.current=1,b.className+=` ${p}`,b.addEventListener("animationend",v)))},[d]),N.createElement(N.Fragment,null,a)}}function _2(t,e){return{content:A2(t.content,t.props),containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,reason:t.removalReason,status:e}}function A2(t,e,n=!1){return N.isValidElement(t)&&!Za(t.type)?N.cloneElement(t,{closeToast:e.closeToast,toastProps:e,data:e.data,isPaused:n}):Yi(t)?t({closeToast:e.closeToast,toastProps:e,data:e.data,isPaused:n}):t}function rA({closeToast:t,theme:e,ariaLabel:n="close"}){return N.createElement("button",{className:`Toastify__close-button Toastify__close-button--${e}`,type:"button",onClick:r=>{r.stopPropagation(),t(!0)},"aria-label":n},N.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},N.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"})))}function iA({delay:t,isRunning:e,closeToast:n,type:r="default",hide:i,className:a,controlledProgress:o,progress:s,rtl:c,isIn:u,theme:d}){let h=i||o&&s===0,m={animationDuration:`${t}ms`,animationPlayState:e?"running":"paused"};o&&(m.transform=`scaleX(${s})`);let p=Ka("Toastify__progress-bar",o?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":c}),y=Yi(a)?a({rtl:c,type:r,defaultClassName:p}):Ka(p,a),b={[o&&s>=1?"onTransitionEnd":"onAnimationEnd"]:o&&s<1?null:()=>{u&&n()}};return N.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":h},N.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${r}`}),N.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:y,style:m,...b}))}var aA=1,k2=()=>`${aA++}`;function oA(t,e,n){let r=1,i=0,a=[],o=[],s=e,c=new Map,u=new Set,d=_=>(u.add(_),()=>u.delete(_)),h=()=>{o=Array.from(c.values()),u.forEach(_=>_())},m=({containerId:_,toastId:T,updateId:C})=>{let w=_?_!==t:t!==1,A=c.has(T)&&C==null;return w||A},p=(_,T)=>{c.forEach(C=>{var w;(T==null||T===C.props.toastId)&&((w=C.toggle)==null||w.call(C,_))})},y=_=>{var T,C;(C=(T=_.props)==null?void 0:T.onClose)==null||C.call(T,_.removalReason),_.isActive=!1},b=_=>{if(_==null)c.forEach(y);else{let T=c.get(_);T&&y(T)}h()},v=()=>{i-=a.length,a=[]},x=_=>{var T,C;let{toastId:w,updateId:A}=_.props,k=A==null;_.staleId&&c.delete(_.staleId),_.isActive=!0,c.set(w,_),h(),n(_2(_,k?"added":"updated")),k&&((C=(T=_.props).onOpen)==null||C.call(T))};return{id:t,props:s,observe:d,toggle:p,removeToast:b,toasts:c,clearQueue:v,buildToast:(_,T)=>{if(m(T))return;let{toastId:C,updateId:w,data:A,staleId:k,delay:R}=T,I=w==null;I&&i++;let U={...s,style:s.toastStyle,key:r++,...Object.fromEntries(Object.entries(T).filter(([z,Y])=>Y!=null)),toastId:C,updateId:w,data:A,isIn:!1,className:ap(T.className||s.toastClassName),progressClassName:ap(T.progressClassName||s.progressClassName),autoClose:T.isLoading?!1:eA(T.autoClose,s.autoClose),closeToast(z){c.get(C).removalReason=z,b(C)},deleteToast(){let z=c.get(C);if(z!=null){if(n(_2(z,"removed")),c.delete(C),i--,i<0&&(i=0),a.length>0){x(a.shift());return}h()}}};U.closeButton=s.closeButton,T.closeButton===!1||op(T.closeButton)?U.closeButton=T.closeButton:T.closeButton===!0&&(U.closeButton=op(s.closeButton)?s.closeButton:!0);let D={content:_,props:U,staleId:k};s.limit&&s.limit>0&&i>s.limit&&I?a.push(D):bl(R)?setTimeout(()=>{x(D)},R):x(D)},setProps(_){s=_},setToggle:(_,T)=>{let C=c.get(_);C&&(C.toggle=T)},isToastActive:_=>{var T;return(T=c.get(_))==null?void 0:T.isActive},getSnapshot:()=>o}}var Kn=new Map,wl=[],sp=new Set,sA=t=>sp.forEach(e=>e(t)),T2=()=>Kn.size>0;function lA(){wl.forEach(t=>R2(t.content,t.options)),wl=[]}var cA=(t,{containerId:e})=>{var n;return(n=Kn.get(e||1))==null?void 0:n.toasts.get(t)};function O2(t,e){var n;if(e)return!!((n=Kn.get(e))!=null&&n.isToastActive(t));let r=!1;return Kn.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function uA(t){if(!T2()){wl=wl.filter(e=>t!=null&&e.options.toastId!==t);return}if(t==null||$7(t))Kn.forEach(e=>{e.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){let e=Kn.get(t.containerId);e?e.removeToast(t.id):Kn.forEach(n=>{n.removeToast(t.id)})}}var fA=(t={})=>{Kn.forEach(e=>{e.props.limit&&(!t.containerId||e.id===t.containerId)&&e.clearQueue()})};function R2(t,e){op(t)&&(T2()||wl.push({content:t,options:e}),Kn.forEach(n=>{n.buildToast(t,e)}))}function dA(t){var e;(e=Kn.get(t.containerId||1))==null||e.setToggle(t.id,t.fn)}function N2(t,e){Kn.forEach(n=>{(e==null||!(e!=null&&e.containerId)||(e==null?void 0:e.containerId)===n.id)&&n.toggle(t,e==null?void 0:e.id)})}function hA(t){let e=t.containerId||1;return{subscribe(n){let r=oA(e,t,sA);Kn.set(e,r);let i=r.observe(n);return lA(),()=>{i(),Kn.delete(e)}},setProps(n){var r;(r=Kn.get(e))==null||r.setProps(n)},getSnapshot(){var n;return(n=Kn.get(e))==null?void 0:n.getSnapshot()}}}function pA(t){return sp.add(t),()=>{sp.delete(t)}}function mA(t){return t&&(Za(t.toastId)||bl(t.toastId))?t.toastId:k2()}function Sl(t,e){return R2(t,e),e.toastId}function su(t,e){return{...e,type:e&&e.type||t,toastId:mA(e)}}function lu(t){return(e,n)=>Sl(e,su(t,n))}function Rt(t,e){return Sl(t,su("default",e))}Rt.loading=(t,e)=>Sl(t,su("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e}));function gA(t,{pending:e,error:n,success:r},i){let a;e&&(a=Za(e)?Rt.loading(e,i):Rt.loading(e.render,{...i,...e}));let o={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(u,d,h)=>{if(d==null){Rt.dismiss(a);return}let m={type:u,...o,...i,data:h},p=Za(d)?{render:d}:d;return a?Rt.update(a,{...m,...p}):Rt(p.render,{...m,...p}),h},c=Yi(t)?t():t;return c.then(u=>s("success",r,u)).catch(u=>s("error",n,u)),c}Rt.promise=gA,Rt.success=lu("success"),Rt.info=lu("info"),Rt.error=lu("error"),Rt.warning=lu("warning"),Rt.warn=Rt.warning,Rt.dark=(t,e)=>Sl(t,su("default",{theme:"dark",...e}));function vA(t){uA(t)}Rt.dismiss=vA,Rt.clearWaitingQueue=fA,Rt.isActive=O2,Rt.update=(t,e={})=>{let n=cA(t,e);if(n){let{props:r,content:i}=n,a={delay:100,...r,...e,toastId:e.toastId||t,updateId:k2()};a.toastId!==t&&(a.staleId=t);let o=a.render||i;delete a.render,Sl(o,a)}},Rt.done=t=>{Rt.update(t,{progress:1})},Rt.onChange=pA,Rt.play=t=>N2(!0,t),Rt.pause=t=>N2(!1,t);function yA(t){var e;let{subscribe:n,getSnapshot:r,setProps:i}=N.useRef(hA(t)).current;i(t);let a=(e=N.useSyncExternalStore(n,r,r))==null?void 0:e.slice();function o(s){if(!a)return[];let c=new Map;return t.newestOnTop&&a.reverse(),a.forEach(u=>{let{position:d}=u.props;c.has(d)||c.set(d,[]),c.get(d).push(u)}),Array.from(c,u=>s(u[0],u[1]))}return{getToastToRender:o,isToastActive:O2,count:a==null?void 0:a.length}}function bA(t){let[e,n]=N.useState(!1),[r,i]=N.useState(!1),a=N.useRef(null),o=N.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:c,closeToast:u,onClick:d,closeOnClick:h}=t;dA({id:t.toastId,containerId:t.containerId,fn:n}),N.useEffect(()=>{if(t.pauseOnFocusLoss)return m(),()=>{p()}},[t.pauseOnFocusLoss]);function m(){document.hasFocus()||x(),window.addEventListener("focus",v),window.addEventListener("blur",x)}function p(){window.removeEventListener("focus",v),window.removeEventListener("blur",x)}function y(k){if(t.draggable===!0||t.draggable===k.pointerType){_();let R=a.current;o.canCloseOnClick=!0,o.canDrag=!0,R.style.transition="none",t.draggableDirection==="x"?(o.start=k.clientX,o.removalDistance=R.offsetWidth*(t.draggablePercent/100)):(o.start=k.clientY,o.removalDistance=R.offsetHeight*(t.draggablePercent===80?t.draggablePercent*1.5:t.draggablePercent)/100)}}function b(k){let{top:R,bottom:I,left:U,right:D}=a.current.getBoundingClientRect();k.nativeEvent.type!=="touchend"&&t.pauseOnHover&&k.clientX>=U&&k.clientX<=D&&k.clientY>=R&&k.clientY<=I?x():v()}function v(){n(!0)}function x(){n(!1)}function _(){o.didMove=!1,document.addEventListener("pointermove",C),document.addEventListener("pointerup",w)}function T(){document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",w)}function C(k){let R=a.current;if(o.canDrag&&R){o.didMove=!0,e&&x(),t.draggableDirection==="x"?o.delta=k.clientX-o.start:o.delta=k.clientY-o.start,o.start!==k.clientX&&(o.canCloseOnClick=!1);let I=t.draggableDirection==="x"?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`;R.style.transform=`translate3d(${I},0)`,R.style.opacity=`${1-Math.abs(o.delta/o.removalDistance)}`}}function w(){T();let k=a.current;if(o.canDrag&&o.didMove&&k){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance){i(!0),t.closeToast(!0),t.collapseAll();return}k.style.transition="transform 0.2s, opacity 0.2s",k.style.removeProperty("transform"),k.style.removeProperty("opacity")}}let A={onPointerDown:y,onPointerUp:b};return s&&c&&(A.onMouseEnter=x,t.stacked||(A.onMouseLeave=v)),h&&(A.onClick=k=>{d&&d(k),o.canCloseOnClick&&u(!0)}),{playToast:v,pauseToast:x,isRunning:e,preventExitTransition:r,toastRef:a,eventHandlers:A}}var wA=typeof window<"u"?N.useLayoutEffect:N.useEffect,cu=({theme:t,type:e,isLoading:n,...r})=>N.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${e})`,...r});function SA(t){return N.createElement(cu,{...t},N.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"}))}function EA(t){return N.createElement(cu,{...t},N.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"}))}function CA(t){return N.createElement(cu,{...t},N.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"}))}function xA(t){return N.createElement(cu,{...t},N.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"}))}function _A(){return N.createElement("div",{className:"Toastify__spinner"})}var lp={info:EA,warning:SA,success:CA,error:xA,spinner:_A},AA=t=>t in lp;function kA({theme:t,type:e,isLoading:n,icon:r}){let i=null,a={theme:t,type:e};return r===!1||(Yi(r)?i=r({...a,isLoading:n}):N.isValidElement(r)?i=N.cloneElement(r,a):n?i=lp.spinner():AA(e)&&(i=lp[e](a))),i}var TA=t=>{let{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:a}=bA(t),{closeButton:o,children:s,autoClose:c,onClick:u,type:d,hideProgressBar:h,closeToast:m,transition:p,position:y,className:b,style:v,progressClassName:x,updateId:_,role:T,progress:C,rtl:w,toastId:A,deleteToast:k,isIn:R,isLoading:I,closeOnClick:U,theme:D,ariaLabel:z}=t,Y=Ka("Toastify__toast",`Toastify__toast-theme--${D}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":w},{"Toastify__toast--close-on-click":U}),j=Yi(b)?b({rtl:w,position:y,type:d,defaultClassName:Y}):Ka(Y,b),F=kA(t),V=!!C||!c,G={closeToast:m,type:d,theme:D},B=null;return o===!1||(Yi(o)?B=o(G):N.isValidElement(o)?B=N.cloneElement(o,G):B=rA(G)),N.createElement(p,{isIn:R,done:k,position:y,preventExitTransition:n,nodeRef:r,playToast:a},N.createElement("div",{id:A,tabIndex:0,onClick:u,"data-in":R,className:j,...i,style:v,ref:r,...R&&{role:T,"aria-label":z}},F!=null&&N.createElement("div",{className:Ka("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!I})},F),A2(s,t,!e),B,!t.customProgressBar&&N.createElement(iA,{..._&&!V?{key:`p-${_}`}:{},rtl:w,theme:D,delay:c,isRunning:e,isIn:R,closeToast:m,hide:h,type:d,className:x,controlledProgress:V,progress:C||0})))},OA=(t,e=!1)=>({enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}),RA=nA(OA("bounce",!0)),NA={position:"top-right",transition:RA,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:t=>t.altKey&&t.code==="KeyT"};function PA(t){let e={...NA,...t},n=t.stacked,[r,i]=N.useState(!0),a=N.useRef(null),{getToastToRender:o,isToastActive:s,count:c}=yA(e),{className:u,style:d,rtl:h,containerId:m,hotKeys:p}=e;function y(v){let x=Ka("Toastify__toast-container",`Toastify__toast-container--${v}`,{"Toastify__toast-container--rtl":h});return Yi(u)?u({position:v,rtl:h,defaultClassName:x}):Ka(x,ap(u))}function b(){n&&(i(!0),Rt.play())}return wA(()=>{var v;if(n){let x=a.current.querySelectorAll('[data-in="true"]'),_=12,T=(v=e.position)==null?void 0:v.includes("top"),C=0,w=0;Array.from(x).reverse().forEach((A,k)=>{let R=A;R.classList.add("Toastify__toast--stacked"),k>0&&(R.dataset.collapsed=`${r}`),R.dataset.pos||(R.dataset.pos=T?"top":"bot");let I=C*(r?.2:1)+(r?0:_*k);R.style.setProperty("--y",`${T?I:I*-1}px`),R.style.setProperty("--g",`${_}`),R.style.setProperty("--s",`${1-(r?w:0)}`),C+=R.offsetHeight,w+=.025})}},[r,c,n]),N.useEffect(()=>{function v(x){var _;let T=a.current;p(x)&&((_=T.querySelector('[tabIndex="0"]'))==null||_.focus(),i(!1),Rt.pause()),x.key==="Escape"&&(document.activeElement===T||T!=null&&T.contains(document.activeElement))&&(i(!0),Rt.play())}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[p]),N.createElement("section",{ref:a,className:"Toastify",id:m,onMouseEnter:()=>{n&&(i(!1),Rt.pause())},onMouseLeave:b,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":e["aria-label"]},o((v,x)=>{let _=x.length?{...d}:{...d,pointerEvents:"none"};return N.createElement("div",{tabIndex:-1,className:y(v),"data-stacked":n,style:_,key:`c-${v}`},x.map(({content:T,props:C})=>N.createElement(TA,{...C,stacked:n,collapseAll:b,isIn:s(C.toastId,C.containerId),key:`t-${C.key}`},T)))}))}class IA extends _n{constructor(e){super((n,r)=>{const{...i}=n;return Object.defineProperty(i,"client",{enumerable:!1,value:n.client}),new Ut(a=>{let o=!1;return Promise.resolve(i).then(s=>e(n.getContext(),s)).then(n.setContext).then(()=>{o||r(n).subscribe(a)}).catch(a.error.bind(a)),()=>{o=!0}})})}}/*! js-cookie v3.0.5 | MIT */function uu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var MA={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function cp(t,e){function n(i,a,o){if(!(typeof document>"u")){o=uu({},e,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 s="";for(var c in o)o[c]&&(s+="; "+c,o[c]!==!0&&(s+="="+o[c].split(";")[0]));return document.cookie=i+"="+t.write(a,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},s=0;s<a.length;s++){var c=a[s].split("="),u=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(o[d]=t.read(u,d),i===d)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,a){n(i,"",uu({},a,{expires:-1}))},withAttributes:function(i){return cp(this.converter,uu({},this.attributes,i))},withConverter:function(i){return cp(uu({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var jr=cp(MA,{path:"/"}),fu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var El={exports:{}};/**
45
+ `).forEach(n=>{const r=n.indexOf(":");if(r>-1){const i=n.slice(0,r).trim().toLowerCase(),a=n.slice(r+1).trim();e[i]=a}}),e}function b2(t,e){if(t.status>=300)throw new ru(`Response not successful: Received status code ${t.status}`,{response:t,bodyText:e});try{return JSON.parse(e)}catch(n){throw new iu(n,{response:t,bodyText:e})}}function S7(t,e){try{return JSON.parse(e)}catch(n){throw new iu(n,{response:t,bodyText:e})}}function E7(t,e){const n=t.headers.get("content-type");return n!=null&&n.includes("application/graphql-response+json")?S7(t,e):b2(t,e)}function C7(t){return e=>e.text().then(n=>{const r=E7(e,n);if(!Array.isArray(r)&&!y2.call(r,"data")&&!y2.call(r,"errors"))throw new ru(`Server response was malformed for query '${Array.isArray(t)?t.map(i=>i.operationName):t.operationName}'.`,{response:e,bodyText:n});return r})}const x7={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},_7=(t,e)=>e(t);function A7(t,e,...n){let r={},i={};n.forEach(d=>{var h;r={...r,...d.options,headers:{...r.headers,...d.headers}},d.credentials&&(r.credentials=d.credentials),r.headers.accept=(((h=d.http)==null?void 0:h.accept)||[]).concat(r.headers.accept).join(","),i={...i,...d.http}}),r.headers=k7(r.headers,i.preserveHeaderCase);const{operationName:a,extensions:o,variables:s,query:c}=t,u={operationName:a,variables:s};return i.includeExtensions&&Object.keys(o||{}).length&&(u.extensions=o),i.includeQuery&&(u.query=e(c,Ya)),{options:r,body:u}}function k7(t,e){if(!e){const i={};return Object.keys(Object(t)).forEach(a=>{i[a.toLowerCase()]=t[a]}),i}const n={};Object.keys(Object(t)).forEach(i=>{n[i.toLowerCase()]={originalName:i,value:t[i]}});const r={};return Object.keys(n).forEach(i=>{r[n[i].originalName]=n[i].value}),r}const T7=(t,e)=>{const r=t.getContext().uri;return r||(typeof e=="function"?e(t):e||"/graphql")};function O7(t,e){const n=[],r=(u,d)=>{n.push(`${u}=${encodeURIComponent(d)}`)};if("query"in e&&r("query",e.query),e.operationName&&r("operationName",e.operationName),e.variables){let u;try{u=JSON.stringify(e.variables)}catch(d){return{parseError:d}}r("variables",u)}if(e.extensions){let u;try{u=JSON.stringify(e.extensions)}catch(d){return{parseError:d}}r("extensions",u)}let i="",a=t;const o=t.indexOf("#");o!==-1&&(i=t.substr(o),a=t.substr(0,o));const s=a.indexOf("?")===-1?"?":"&";return{newURI:a+s+n.join("&")+i}}const R7=ai(()=>fetch);function N7(){}class P7 extends _n{constructor(e={}){let{uri:n="/graphql",fetch:r,print:i=_7,includeExtensions:a,preserveHeaderCase:o,useGETForQueries:s,includeUnusedVariables:c=!1,...u}=e;const d={http:Cr({includeExtensions:a,preserveHeaderCase:o}),options:u.fetchOptions,credentials:u.credentials,headers:u.headers};super(h=>{let m=T7(h,n);const p=h.getContext(),y={...p.http};U3(h.query)&&(y.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...y.accept||[]]);const b={http:y,options:p.fetchOptions,credentials:p.credentials,headers:p.headers},{options:v,body:x}=A7(h,i,x7,d,b);x.variables&&!c&&(x.variables=j3(x.variables,h.query));let _=new AbortController,T=()=>{_=void 0};if(v.signal){const C=v.signal,w=()=>{_==null||_.abort(C.reason)};C.addEventListener("abort",w,{once:!0}),T=()=>{_==null||_.signal.removeEventListener("abort",T),_=void 0,C.removeEventListener("abort",w),T=N7},_.signal.addEventListener("abort",T,{once:!0})}return v.signal=_.signal,s&&!V3(h.query)&&(v.method="GET"),new Ut(C=>{if(v.method==="GET"){const{newURI:k,parseError:R}=O7(m,x);if(R)throw R;m=k}else v.body=JSON.stringify(x);const w=r||ai(()=>fetch)||R7,A=C.next.bind(C);return w(m,v).then(k=>{var I;h.setContext({response:k});const R=(I=k.headers)==null?void 0:I.get("content-type");return R!==null&&/^multipart\/mixed/i.test(R)?b7(k,A):C7(h)(k).then(A)}).then(()=>{T(),C.complete()}).catch(k=>{T(),C.error(k)}),()=>{_&&_.abort()}})})}}class I7 extends _n{constructor(e={}){super((n,r)=>{const i=n.client,a=i.queryManager.clientOptions,o=n.getContext();{const{name:s,version:c,transport:u="headers"}=Cr({},a.clientAwareness,e.clientAwareness,o.clientAwareness);u==="headers"&&n.setContext(({headers:d})=>({headers:Cr({"apollographql-client-name":s,"apollographql-client-version":c},d)}))}{const{transport:s="extensions"}=Cr({},a.enhancedClientAwareness,e.enhancedClientAwareness);s==="extensions"&&(n.extensions=Cr({clientLibrary:{name:"@apollo/client",version:i.version}},n.extensions)),s==="headers"&&n.setContext(({headers:c})=>({headers:Cr({"apollographql-library-name":"@apollo/client","apollographql-library-version":i.version},c)}))}return r(n)})}}class M7 extends _n{constructor(e={}){const{left:n,right:r,request:i}=_n.from([new I7(e),new P7(e)]);super(i),Object.assign(this,{left:n,right:r})}}function tp(t,e){const n=L.useRef(void 0);return(!n.current||!dt(n.current.deps,e))&&(n.current={value:t(),deps:e}),n.current.value}let np;function L7(){}function F7(){return np||(np=L.createContext(null)),L.useCallback(()=>{const t=console.error;try{return console.error=L7,L.useContext(np),!0}catch{return!1}finally{console.error=t}},[])}const j7=Symbol.for("apollo.skipToken"),D7=Symbol.for("apollo.hook.wrappers");function V7(t,e,n){var a;const r=[n.queryManager,t.startsWith("use")?L.useContext(eh()):void 0];let i=e;for(const o of r){const s=(a=o==null?void 0:o[D7])==null?void 0:a[t];s&&(i=s(i))}return i}const au=ib?L.useLayoutEffect:L.useEffect,U7=L["useSyncExternalStore"],B7=ai(()=>navigator.product)=="ReactNative",z7=ai(()=>navigator.userAgent.indexOf("jsdom")>=0)||!1,H7=(ib||B7)&&!z7,rp=U7||((t,e,n)=>{const r=e(),[{inst:i},a]=L.useState({inst:{value:r,getSnapshot:e}});return H7?L.useLayoutEffect(()=>{Object.assign(i,{value:r,getSnapshot:e}),ip(i)&&a({inst:i})},[t,r,e]):Object.assign(i,{value:r,getSnapshot:e}),L.useEffect(()=>(ip(i)&&a({inst:i}),t(function(){ip(i)&&a({inst:i})})),[t]),r});function ip({value:t,getSnapshot:e}){try{return t!==e()}catch{return!0}}const W7=["refetch","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function Ka(t,e){const n=Js(e==null?void 0:e.client),r=L.useRef(void 0),i=L.useRef(void 0),a=tp(()=>e,[e]),o=F7();function s(){return n.watchQuery({...e,query:t,initialFetchPolicy:e==null?void 0:e.fetchPolicy,fetchPolicy:"standby",[Th]:!0})}const[c,u]=L.useState(n),[d,h]=L.useState(s);c!==n&&(u(n),h(s()));const m=L.useCallback((T,C)=>{var A;const w=(A=i.current)==null?void 0:A.data;w&&!dt(w,T.data)&&(r.current=w),i.current=T,C()},[]),p=rp(L.useCallback(T=>{const C=d.subscribe(w=>{dt(i.current,w)||m(w,T)});return()=>{C.unsubscribe()}},[d,m]),()=>i.current||w2,()=>w2),y=L.useMemo(()=>{const T={};for(const C of W7)T[C]=function(...w){return Je(i.current,29,C),d[C](...w)};return T},[d]);L.useEffect(()=>{const T={query:t,errorPolicy:a==null?void 0:a.errorPolicy,refetchWritePolicy:a==null?void 0:a.refetchWritePolicy,returnPartialData:a==null?void 0:a.returnPartialData,notifyOnNetworkStatusChange:a==null?void 0:a.notifyOnNetworkStatusChange,nextFetchPolicy:e==null?void 0:e.nextFetchPolicy,skipPollAttempt:e==null?void 0:e.skipPollAttempt};d.options.fetchPolicy!=="standby"&&(a!=null&&a.fetchPolicy)&&(T.fetchPolicy=a.fetchPolicy),d.applyOptions(T)},[t,d,a,e==null?void 0:e.nextFetchPolicy,e==null?void 0:e.skipPollAttempt]);const b=L.useCallback((...T)=>{Je(!o(),30);const[C]=T;let w=d.options.fetchPolicy;return w==="standby"&&(w=d.options.initialFetchPolicy),d.reobserve({fetchPolicy:w,variables:C==null?void 0:C.variables,context:(C==null?void 0:C.context)??{}})},[d,o]),v=L.useRef(b);au(()=>{v.current=b});const x=L.useCallback((...T)=>v.current(...T),[]),_=L.useMemo(()=>{const{partial:T,...C}=p;return{...y,...C,client:n,previousData:r.current,variables:d.variables,observable:d,called:!!i.current}},[n,p,y,d]);return[x,_]}const w2={data:void 0,dataState:"empty",loading:!1,networkStatus:ze.ready,partial:!0};function ma(t,e){const n=Js(e==null?void 0:e.client),[r,i]=L.useState(()=>S2(n)),a=L.useRef({result:r,mutationId:0,isMounted:!0,client:n,mutation:t,options:e});au(()=>{Object.assign(a.current,{client:n,options:e,mutation:t})});const o=L.useCallback((c={})=>{const{options:u,mutation:d}=a.current,h={...u,mutation:d},m=c.client||a.current.client,p=typeof c.context=="function"?c.context(u==null?void 0:u.context):c.context;!a.current.result.loading&&a.current.isMounted&&i(a.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:m});const y=++a.current.mutationId,b=Ga(h,{...c,context:p});return Ah(m.mutate(b).then(v=>{var w,A;const{data:x,error:_}=v,T=c.onError||((w=a.current.options)==null?void 0:w.onError);if(_&&T&&T(_,b),y===a.current.mutationId){const k={called:!0,loading:!1,data:x,error:_,client:m};a.current.isMounted&&!dt(a.current.result,k)&&i(a.current.result=k)}const C=c.onCompleted||((A=a.current.options)==null?void 0:A.onCompleted);return _||C==null||C(v.data,b),v},v=>{var _;if(y===a.current.mutationId&&a.current.isMounted){const T={loading:!1,error:v,data:void 0,called:!0,client:m};dt(a.current.result,T)||i(a.current.result=T)}const x=c.onError||((_=a.current.options)==null?void 0:_.onError);throw x&&x(v,b),v}))},[]),s=L.useCallback(()=>{if(a.current.isMounted){const c=S2(a.current.client);Object.assign(a.current,{mutationId:0,result:c}),i(c)}},[]);return L.useEffect(()=>{const c=a.current;return c.isMounted=!0,()=>{c.isMounted=!1}},[]),[o,{reset:s,...r}]}function S2(t){return{data:void 0,error:void 0,called:!1,loading:!1,client:t}}const yl=Symbol();function ou(t,...[e]){"use no memo";return V7("useQuery",G7,Js(typeof e=="object"?e.client:void 0))(t,e)}function G7(t,e={}){const n=Js(typeof e=="object"?e.client:void 0),{ssr:r}=typeof e=="object"?e:{},i=Y7(t,e,n.defaultOptions.watchQuery);function a(p){const y=n.watchQuery(i);return{client:n,query:t,observable:y,resultData:{current:y.getCurrentResult(),previousData:p==null?void 0:p.resultData.current.data,variables:y.variables}}}let[o,s]=L.useState(a);(n!==o.client||t!==o.query)&&s(o=a(o));const{observable:c,resultData:u}=o;K7(i,c),Q7(u,c,i);const d=Z7(c,u,r),h=L.useMemo(()=>({refetch:c.refetch.bind(c),fetchMore:c.fetchMore.bind(c),updateQuery:c.updateQuery.bind(c),startPolling:c.startPolling.bind(c),stopPolling:c.stopPolling.bind(c),subscribeToMore:c.subscribeToMore.bind(c)}),[c]),m=u.previousData;return L.useMemo(()=>{const{partial:p,...y}=d;return{...y,client:n,observable:c,variables:c.variables,previousData:m,...h}},[d,n,c,m,h])}const E2=Symbol();function Y7(t,e,n){return tp(()=>{if(e===j7){const i={...Ga(n,{query:t,fetchPolicy:"standby"}),[Th]:!0};return i[E2]=!0,i}const r=Ga(n,{...e,query:t});return e.skip&&(r.initialFetchPolicy=e.initialFetchPolicy||e.fetchPolicy,r.fetchPolicy="standby"),r},[t,e,n])}function K7(t,e){"use no memo";t.fetchPolicy||(t.fetchPolicy=e.options.initialFetchPolicy)}function Z7(t,e,n){"use no memo";const r=t.options.fetchPolicy;return rp(L.useCallback(i=>{const a=t.pipe(hh(m9)).subscribe(o=>{const s=e.current;dt(s,o)&&dt(e.variables,t.variables)||(e.variables=t.variables,s.data&&!dt(s.data,o.data)&&(e.previousData=s.data),e.current=o,i())});return()=>{setTimeout(()=>a.unsubscribe())}},[t,e]),()=>e.current,()=>r!=="standby"&&n===!1||r==="no-cache"?ou.ssrDisabledResult:e.current)}function Q7(t,e,n){"use no memo";if(e[yl]&&!dt(e[yl],n)){e[yl][E2]&&!n.initialFetchPolicy&&(n.initialFetchPolicy=n.fetchPolicy),q7(e[yl],n)?e.reobserve(n):e.applyOptions(n);const r=e.getCurrentResult();dt(r.data,t.current.data)||(t.previousData=t.current.data||t.previousData),t.current=r,t.variables=e.variables}e[yl]=n}function q7(t,e){return t.query!==e.query||!dt(t.variables,e.variables)||t.fetchPolicy!==e.fetchPolicy&&(e.fetchPolicy==="standby"||t.fetchPolicy==="standby")}ou.ssrDisabledResult={loading:!0,data:void 0,dataState:"empty",error:void 0,networkStatus:ze.loading,partial:!0};function C2(t,...[e={}]){const n=Js(e.client),{skip:r,fetchPolicy:i,errorPolicy:a,shouldResubscribe:o,context:s,extensions:c,ignoreResults:u}=e,d=tp(()=>e.variables,[e.variables]),h=()=>J7(n,t,d,i,a,s,c);let[m,p]=L.useState(e.skip?null:h);const y=L.useRef(h);au(()=>{y.current=h}),r?m&&p(m=null):(!m||(n!==m.__.client||t!==m.__.query||i!==m.__.fetchPolicy||a!==m.__.errorPolicy||!dt(d,m.__.variables))&&(typeof o=="function"?!!o(e):o)!==!1)&&p(m=h());const b=L.useRef(e);L.useEffect(()=>{b.current=e});const v=!r&&!u,x=L.useMemo(()=>({loading:v,error:void 0,data:void 0}),[v]),_=L.useRef(u);au(()=>{_.current=u});const T=rp(L.useCallback(w=>{if(!m)return()=>{};let A=!1;const k=m.__.client,R=m.subscribe({next(I){var D,z;if(A)return;const U={loading:!1,data:I.data,error:I.error};m.__.setResult(U),_.current||w(),U.error?(z=(D=b.current).onError)==null||z.call(D,U.error):b.current.onData&&b.current.onData({client:k,data:U})},complete(){m.__.completed=!0,!A&&b.current.onComplete&&b.current.onComplete()}});return()=>{A=!0,setTimeout(()=>R.unsubscribe())}},[m]),()=>m&&!r&&!u?m.__.result:x,()=>x),C=L.useCallback(()=>{Je(!b.current.skip,33),m!=null&&m.__.completed?p(y.current()):m==null||m.restart()},[m,p,b,y]);return L.useMemo(()=>({...T,restart:C}),[T,C])}function J7(t,e,n,r,i,a,o){const s={query:e,variables:n,fetchPolicy:r,errorPolicy:i,context:a,extensions:o},c={...s,client:t,completed:!1,result:{loading:!0,data:void 0,error:void 0},setResult(u){c.result=u}};return Object.assign(t.subscribe(s),{__:c})}function x2(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=x2(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Za(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=x2(t))&&(r&&(r+=" "),r+=e);return r}function X7(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}X7(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
46
+ `);var bl=t=>typeof t=="number"&&!isNaN(t),Qa=t=>typeof t=="string",Yi=t=>typeof t=="function",$7=t=>Qa(t)||bl(t),ap=t=>Qa(t)||Yi(t)?t:null,eA=(t,e)=>t===!1||bl(t)&&t>0?t:e,op=t=>N.isValidElement(t)||Qa(t)||Yi(t)||bl(t);function tA(t,e,n=300){let{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function nA({enter:t,exit:e,appendPosition:n=!1,collapse:r=!0,collapseDuration:i=300}){return function({children:a,position:o,preventExitTransition:s,done:c,nodeRef:u,isIn:d,playToast:h}){let m=n?`${t}--${o}`:t,p=n?`${e}--${o}`:e,y=N.useRef(0);return N.useLayoutEffect(()=>{let b=u.current,v=m.split(" "),x=_=>{_.target===u.current&&(h(),b.removeEventListener("animationend",x),b.removeEventListener("animationcancel",x),y.current===0&&_.type!=="animationcancel"&&b.classList.remove(...v))};b.classList.add(...v),b.addEventListener("animationend",x),b.addEventListener("animationcancel",x)},[]),N.useEffect(()=>{let b=u.current,v=()=>{b.removeEventListener("animationend",v),r?tA(b,c,i):c()};d||(s?v():(y.current=1,b.className+=` ${p}`,b.addEventListener("animationend",v)))},[d]),N.createElement(N.Fragment,null,a)}}function _2(t,e){return{content:A2(t.content,t.props),containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,reason:t.removalReason,status:e}}function A2(t,e,n=!1){return N.isValidElement(t)&&!Qa(t.type)?N.cloneElement(t,{closeToast:e.closeToast,toastProps:e,data:e.data,isPaused:n}):Yi(t)?t({closeToast:e.closeToast,toastProps:e,data:e.data,isPaused:n}):t}function rA({closeToast:t,theme:e,ariaLabel:n="close"}){return N.createElement("button",{className:`Toastify__close-button Toastify__close-button--${e}`,type:"button",onClick:r=>{r.stopPropagation(),t(!0)},"aria-label":n},N.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},N.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"})))}function iA({delay:t,isRunning:e,closeToast:n,type:r="default",hide:i,className:a,controlledProgress:o,progress:s,rtl:c,isIn:u,theme:d}){let h=i||o&&s===0,m={animationDuration:`${t}ms`,animationPlayState:e?"running":"paused"};o&&(m.transform=`scaleX(${s})`);let p=Za("Toastify__progress-bar",o?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":c}),y=Yi(a)?a({rtl:c,type:r,defaultClassName:p}):Za(p,a),b={[o&&s>=1?"onTransitionEnd":"onAnimationEnd"]:o&&s<1?null:()=>{u&&n()}};return N.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":h},N.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${r}`}),N.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:y,style:m,...b}))}var aA=1,k2=()=>`${aA++}`;function oA(t,e,n){let r=1,i=0,a=[],o=[],s=e,c=new Map,u=new Set,d=_=>(u.add(_),()=>u.delete(_)),h=()=>{o=Array.from(c.values()),u.forEach(_=>_())},m=({containerId:_,toastId:T,updateId:C})=>{let w=_?_!==t:t!==1,A=c.has(T)&&C==null;return w||A},p=(_,T)=>{c.forEach(C=>{var w;(T==null||T===C.props.toastId)&&((w=C.toggle)==null||w.call(C,_))})},y=_=>{var T,C;(C=(T=_.props)==null?void 0:T.onClose)==null||C.call(T,_.removalReason),_.isActive=!1},b=_=>{if(_==null)c.forEach(y);else{let T=c.get(_);T&&y(T)}h()},v=()=>{i-=a.length,a=[]},x=_=>{var T,C;let{toastId:w,updateId:A}=_.props,k=A==null;_.staleId&&c.delete(_.staleId),_.isActive=!0,c.set(w,_),h(),n(_2(_,k?"added":"updated")),k&&((C=(T=_.props).onOpen)==null||C.call(T))};return{id:t,props:s,observe:d,toggle:p,removeToast:b,toasts:c,clearQueue:v,buildToast:(_,T)=>{if(m(T))return;let{toastId:C,updateId:w,data:A,staleId:k,delay:R}=T,I=w==null;I&&i++;let U={...s,style:s.toastStyle,key:r++,...Object.fromEntries(Object.entries(T).filter(([z,Y])=>Y!=null)),toastId:C,updateId:w,data:A,isIn:!1,className:ap(T.className||s.toastClassName),progressClassName:ap(T.progressClassName||s.progressClassName),autoClose:T.isLoading?!1:eA(T.autoClose,s.autoClose),closeToast(z){c.get(C).removalReason=z,b(C)},deleteToast(){let z=c.get(C);if(z!=null){if(n(_2(z,"removed")),c.delete(C),i--,i<0&&(i=0),a.length>0){x(a.shift());return}h()}}};U.closeButton=s.closeButton,T.closeButton===!1||op(T.closeButton)?U.closeButton=T.closeButton:T.closeButton===!0&&(U.closeButton=op(s.closeButton)?s.closeButton:!0);let D={content:_,props:U,staleId:k};s.limit&&s.limit>0&&i>s.limit&&I?a.push(D):bl(R)?setTimeout(()=>{x(D)},R):x(D)},setProps(_){s=_},setToggle:(_,T)=>{let C=c.get(_);C&&(C.toggle=T)},isToastActive:_=>{var T;return(T=c.get(_))==null?void 0:T.isActive},getSnapshot:()=>o}}var Kn=new Map,wl=[],sp=new Set,sA=t=>sp.forEach(e=>e(t)),T2=()=>Kn.size>0;function lA(){wl.forEach(t=>R2(t.content,t.options)),wl=[]}var cA=(t,{containerId:e})=>{var n;return(n=Kn.get(e||1))==null?void 0:n.toasts.get(t)};function O2(t,e){var n;if(e)return!!((n=Kn.get(e))!=null&&n.isToastActive(t));let r=!1;return Kn.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function uA(t){if(!T2()){wl=wl.filter(e=>t!=null&&e.options.toastId!==t);return}if(t==null||$7(t))Kn.forEach(e=>{e.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){let e=Kn.get(t.containerId);e?e.removeToast(t.id):Kn.forEach(n=>{n.removeToast(t.id)})}}var fA=(t={})=>{Kn.forEach(e=>{e.props.limit&&(!t.containerId||e.id===t.containerId)&&e.clearQueue()})};function R2(t,e){op(t)&&(T2()||wl.push({content:t,options:e}),Kn.forEach(n=>{n.buildToast(t,e)}))}function dA(t){var e;(e=Kn.get(t.containerId||1))==null||e.setToggle(t.id,t.fn)}function N2(t,e){Kn.forEach(n=>{(e==null||!(e!=null&&e.containerId)||(e==null?void 0:e.containerId)===n.id)&&n.toggle(t,e==null?void 0:e.id)})}function hA(t){let e=t.containerId||1;return{subscribe(n){let r=oA(e,t,sA);Kn.set(e,r);let i=r.observe(n);return lA(),()=>{i(),Kn.delete(e)}},setProps(n){var r;(r=Kn.get(e))==null||r.setProps(n)},getSnapshot(){var n;return(n=Kn.get(e))==null?void 0:n.getSnapshot()}}}function pA(t){return sp.add(t),()=>{sp.delete(t)}}function mA(t){return t&&(Qa(t.toastId)||bl(t.toastId))?t.toastId:k2()}function Sl(t,e){return R2(t,e),e.toastId}function su(t,e){return{...e,type:e&&e.type||t,toastId:mA(e)}}function lu(t){return(e,n)=>Sl(e,su(t,n))}function Rt(t,e){return Sl(t,su("default",e))}Rt.loading=(t,e)=>Sl(t,su("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e}));function gA(t,{pending:e,error:n,success:r},i){let a;e&&(a=Qa(e)?Rt.loading(e,i):Rt.loading(e.render,{...i,...e}));let o={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(u,d,h)=>{if(d==null){Rt.dismiss(a);return}let m={type:u,...o,...i,data:h},p=Qa(d)?{render:d}:d;return a?Rt.update(a,{...m,...p}):Rt(p.render,{...m,...p}),h},c=Yi(t)?t():t;return c.then(u=>s("success",r,u)).catch(u=>s("error",n,u)),c}Rt.promise=gA,Rt.success=lu("success"),Rt.info=lu("info"),Rt.error=lu("error"),Rt.warning=lu("warning"),Rt.warn=Rt.warning,Rt.dark=(t,e)=>Sl(t,su("default",{theme:"dark",...e}));function vA(t){uA(t)}Rt.dismiss=vA,Rt.clearWaitingQueue=fA,Rt.isActive=O2,Rt.update=(t,e={})=>{let n=cA(t,e);if(n){let{props:r,content:i}=n,a={delay:100,...r,...e,toastId:e.toastId||t,updateId:k2()};a.toastId!==t&&(a.staleId=t);let o=a.render||i;delete a.render,Sl(o,a)}},Rt.done=t=>{Rt.update(t,{progress:1})},Rt.onChange=pA,Rt.play=t=>N2(!0,t),Rt.pause=t=>N2(!1,t);function yA(t){var e;let{subscribe:n,getSnapshot:r,setProps:i}=N.useRef(hA(t)).current;i(t);let a=(e=N.useSyncExternalStore(n,r,r))==null?void 0:e.slice();function o(s){if(!a)return[];let c=new Map;return t.newestOnTop&&a.reverse(),a.forEach(u=>{let{position:d}=u.props;c.has(d)||c.set(d,[]),c.get(d).push(u)}),Array.from(c,u=>s(u[0],u[1]))}return{getToastToRender:o,isToastActive:O2,count:a==null?void 0:a.length}}function bA(t){let[e,n]=N.useState(!1),[r,i]=N.useState(!1),a=N.useRef(null),o=N.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:c,closeToast:u,onClick:d,closeOnClick:h}=t;dA({id:t.toastId,containerId:t.containerId,fn:n}),N.useEffect(()=>{if(t.pauseOnFocusLoss)return m(),()=>{p()}},[t.pauseOnFocusLoss]);function m(){document.hasFocus()||x(),window.addEventListener("focus",v),window.addEventListener("blur",x)}function p(){window.removeEventListener("focus",v),window.removeEventListener("blur",x)}function y(k){if(t.draggable===!0||t.draggable===k.pointerType){_();let R=a.current;o.canCloseOnClick=!0,o.canDrag=!0,R.style.transition="none",t.draggableDirection==="x"?(o.start=k.clientX,o.removalDistance=R.offsetWidth*(t.draggablePercent/100)):(o.start=k.clientY,o.removalDistance=R.offsetHeight*(t.draggablePercent===80?t.draggablePercent*1.5:t.draggablePercent)/100)}}function b(k){let{top:R,bottom:I,left:U,right:D}=a.current.getBoundingClientRect();k.nativeEvent.type!=="touchend"&&t.pauseOnHover&&k.clientX>=U&&k.clientX<=D&&k.clientY>=R&&k.clientY<=I?x():v()}function v(){n(!0)}function x(){n(!1)}function _(){o.didMove=!1,document.addEventListener("pointermove",C),document.addEventListener("pointerup",w)}function T(){document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",w)}function C(k){let R=a.current;if(o.canDrag&&R){o.didMove=!0,e&&x(),t.draggableDirection==="x"?o.delta=k.clientX-o.start:o.delta=k.clientY-o.start,o.start!==k.clientX&&(o.canCloseOnClick=!1);let I=t.draggableDirection==="x"?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`;R.style.transform=`translate3d(${I},0)`,R.style.opacity=`${1-Math.abs(o.delta/o.removalDistance)}`}}function w(){T();let k=a.current;if(o.canDrag&&o.didMove&&k){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance){i(!0),t.closeToast(!0),t.collapseAll();return}k.style.transition="transform 0.2s, opacity 0.2s",k.style.removeProperty("transform"),k.style.removeProperty("opacity")}}let A={onPointerDown:y,onPointerUp:b};return s&&c&&(A.onMouseEnter=x,t.stacked||(A.onMouseLeave=v)),h&&(A.onClick=k=>{d&&d(k),o.canCloseOnClick&&u(!0)}),{playToast:v,pauseToast:x,isRunning:e,preventExitTransition:r,toastRef:a,eventHandlers:A}}var wA=typeof window<"u"?N.useLayoutEffect:N.useEffect,cu=({theme:t,type:e,isLoading:n,...r})=>N.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${e})`,...r});function SA(t){return N.createElement(cu,{...t},N.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"}))}function EA(t){return N.createElement(cu,{...t},N.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"}))}function CA(t){return N.createElement(cu,{...t},N.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"}))}function xA(t){return N.createElement(cu,{...t},N.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"}))}function _A(){return N.createElement("div",{className:"Toastify__spinner"})}var lp={info:EA,warning:SA,success:CA,error:xA,spinner:_A},AA=t=>t in lp;function kA({theme:t,type:e,isLoading:n,icon:r}){let i=null,a={theme:t,type:e};return r===!1||(Yi(r)?i=r({...a,isLoading:n}):N.isValidElement(r)?i=N.cloneElement(r,a):n?i=lp.spinner():AA(e)&&(i=lp[e](a))),i}var TA=t=>{let{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:a}=bA(t),{closeButton:o,children:s,autoClose:c,onClick:u,type:d,hideProgressBar:h,closeToast:m,transition:p,position:y,className:b,style:v,progressClassName:x,updateId:_,role:T,progress:C,rtl:w,toastId:A,deleteToast:k,isIn:R,isLoading:I,closeOnClick:U,theme:D,ariaLabel:z}=t,Y=Za("Toastify__toast",`Toastify__toast-theme--${D}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":w},{"Toastify__toast--close-on-click":U}),j=Yi(b)?b({rtl:w,position:y,type:d,defaultClassName:Y}):Za(Y,b),F=kA(t),V=!!C||!c,G={closeToast:m,type:d,theme:D},B=null;return o===!1||(Yi(o)?B=o(G):N.isValidElement(o)?B=N.cloneElement(o,G):B=rA(G)),N.createElement(p,{isIn:R,done:k,position:y,preventExitTransition:n,nodeRef:r,playToast:a},N.createElement("div",{id:A,tabIndex:0,onClick:u,"data-in":R,className:j,...i,style:v,ref:r,...R&&{role:T,"aria-label":z}},F!=null&&N.createElement("div",{className:Za("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!I})},F),A2(s,t,!e),B,!t.customProgressBar&&N.createElement(iA,{..._&&!V?{key:`p-${_}`}:{},rtl:w,theme:D,delay:c,isRunning:e,isIn:R,closeToast:m,hide:h,type:d,className:x,controlledProgress:V,progress:C||0})))},OA=(t,e=!1)=>({enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}),RA=nA(OA("bounce",!0)),NA={position:"top-right",transition:RA,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:t=>t.altKey&&t.code==="KeyT"};function PA(t){let e={...NA,...t},n=t.stacked,[r,i]=N.useState(!0),a=N.useRef(null),{getToastToRender:o,isToastActive:s,count:c}=yA(e),{className:u,style:d,rtl:h,containerId:m,hotKeys:p}=e;function y(v){let x=Za("Toastify__toast-container",`Toastify__toast-container--${v}`,{"Toastify__toast-container--rtl":h});return Yi(u)?u({position:v,rtl:h,defaultClassName:x}):Za(x,ap(u))}function b(){n&&(i(!0),Rt.play())}return wA(()=>{var v;if(n){let x=a.current.querySelectorAll('[data-in="true"]'),_=12,T=(v=e.position)==null?void 0:v.includes("top"),C=0,w=0;Array.from(x).reverse().forEach((A,k)=>{let R=A;R.classList.add("Toastify__toast--stacked"),k>0&&(R.dataset.collapsed=`${r}`),R.dataset.pos||(R.dataset.pos=T?"top":"bot");let I=C*(r?.2:1)+(r?0:_*k);R.style.setProperty("--y",`${T?I:I*-1}px`),R.style.setProperty("--g",`${_}`),R.style.setProperty("--s",`${1-(r?w:0)}`),C+=R.offsetHeight,w+=.025})}},[r,c,n]),N.useEffect(()=>{function v(x){var _;let T=a.current;p(x)&&((_=T.querySelector('[tabIndex="0"]'))==null||_.focus(),i(!1),Rt.pause()),x.key==="Escape"&&(document.activeElement===T||T!=null&&T.contains(document.activeElement))&&(i(!0),Rt.play())}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[p]),N.createElement("section",{ref:a,className:"Toastify",id:m,onMouseEnter:()=>{n&&(i(!1),Rt.pause())},onMouseLeave:b,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":e["aria-label"]},o((v,x)=>{let _=x.length?{...d}:{...d,pointerEvents:"none"};return N.createElement("div",{tabIndex:-1,className:y(v),"data-stacked":n,style:_,key:`c-${v}`},x.map(({content:T,props:C})=>N.createElement(TA,{...C,stacked:n,collapseAll:b,isIn:s(C.toastId,C.containerId),key:`t-${C.key}`},T)))}))}class IA extends _n{constructor(e){super((n,r)=>{const{...i}=n;return Object.defineProperty(i,"client",{enumerable:!1,value:n.client}),new Ut(a=>{let o=!1;return Promise.resolve(i).then(s=>e(n.getContext(),s)).then(n.setContext).then(()=>{o||r(n).subscribe(a)}).catch(a.error.bind(a)),()=>{o=!0}})})}}/*! js-cookie v3.0.5 | MIT */function uu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var MA={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function cp(t,e){function n(i,a,o){if(!(typeof document>"u")){o=uu({},e,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 s="";for(var c in o)o[c]&&(s+="; "+c,o[c]!==!0&&(s+="="+o[c].split(";")[0]));return document.cookie=i+"="+t.write(a,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},s=0;s<a.length;s++){var c=a[s].split("="),u=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(o[d]=t.read(u,d),i===d)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,a){n(i,"",uu({},a,{expires:-1}))},withAttributes:function(i){return cp(this.converter,uu({},this.attributes,i))},withConverter:function(i){return cp(uu({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var jr=cp(MA,{path:"/"}),fu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var El={exports:{}};/**
47
47
  * @license
48
48
  * Lodash <https://lodash.com/>
49
49
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
50
50
  * Released under MIT license <https://lodash.com/license>
51
51
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
52
52
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
53
- */var LA=El.exports,P2;function FA(){return P2||(P2=1,(function(t,e){(function(){var n,r="4.17.23",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",h=1,m=2,p=4,y=1,b=2,v=1,x=2,_=4,T=8,C=16,w=32,A=64,k=128,R=256,I=512,U=30,D="...",z=800,Y=16,j=1,F=2,V=3,G=1/0,B=9007199254740991,q=17976931348623157e292,W=NaN,K=4294967295,te=K-1,ne=K>>>1,ce=[["ary",k],["bind",v],["bindKey",x],["curry",T],["curryRight",C],["flip",I],["partial",w],["partialRight",A],["rearg",R]],ie="[object Arguments]",J="[object Array]",ue="[object AsyncFunction]",le="[object Boolean]",ve="[object Date]",he="[object DOMException]",be="[object Error]",ee="[object Function]",Ie="[object GeneratorFunction]",ye="[object Map]",Fe="[object Number]",at="[object Null]",Pe="[object Object]",tt="[object Promise]",Ae="[object Proxy]",nt="[object RegExp]",Le="[object Set]",Ze="[object String]",_t="[object Symbol]",Ee="[object Undefined]",$e="[object WeakMap]",At="[object WeakSet]",Ht="[object ArrayBuffer]",Yt="[object DataView]",bn="[object Float32Array]",dr="[object Float64Array]",vt="[object Int8Array]",yt="[object Int16Array]",nn="[object Int32Array]",Xt="[object Uint8Array]",jt="[object Uint8ClampedArray]",wn="[object Uint16Array]",$t="[object Uint32Array]",Hn=/\b__p \+= '';/g,Ji=/\b(__p \+=) '' \+/g,Yr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,hr=/&(?:amp|lt|gt|quot|#39);/g,Pi=/[&<>"']/g,pr=RegExp(hr.source),$n=RegExp(Pi.source),sn=/<%-([\s\S]+?)%>/g,Qe=/<%([\s\S]+?)%>/g,Sn=/<%=([\s\S]+?)%>/g,hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mt=/^\w*$/,ut=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wt=/[\\^$.*+?()[\]{}|]/g,er=RegExp(Wt.source),pn=/^\s+/,ht=/\s/,Nn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mr=/\{\n\/\* \[wrapped with (.+)\] \*/,bt=/,? & /,Dt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mn=/[()=,{}\[\]\/\s]/,Pt=/\\(\\)?/g,tr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Kr=/\w*$/,Wn=/^[-+]0x[0-9a-f]+$/i,Ln=/^0b[01]+$/i,gr=/^\[object .+?Constructor\]$/,ke=/^0o[0-7]+$/i,Z=/^(?:0|[1-9]\d*)$/,pe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,wt=/['\n\r\u2028\u2029\\]/g,Gt="\\ud800-\\udfff",kt="\\u0300-\\u036f",ln="\\ufe20-\\ufe2f",nr="\\u20d0-\\u20ff",vr=kt+ln+nr,mi="\\u2700-\\u27bf",Ft="a-z\\xdf-\\xf6\\xf8-\\xff",Zr="\\xac\\xb1\\xd7\\xf7",Ii="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xi="\\u2000-\\u206f",so=" \\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",$i="A-Z\\xc0-\\xd6\\xd8-\\xde",yr="\\ufe0e\\ufe0f",gi=Zr+Ii+Xi+so,Qr="['’]",Mi="["+Gt+"]",ka="["+gi+"]",Ta="["+vr+"]",lo="\\d+",Ts="["+mi+"]",co="["+Ft+"]",Os="[^"+Gt+gi+lo+mi+Ft+$i+"]",uo="\\ud83c[\\udffb-\\udfff]",Rs="(?:"+Ta+"|"+uo+")",Ns="[^"+Gt+"]",fo="(?:\\ud83c[\\udde6-\\uddff]){2}",Oa="[\\ud800-\\udbff][\\udc00-\\udfff]",Li="["+$i+"]",Ps="\\u200d",Is="(?:"+co+"|"+Os+")",qr="(?:"+Li+"|"+Os+")",Ra="(?:"+Qr+"(?:d|ll|m|re|s|t|ve))?",Ms="(?:"+Qr+"(?:D|LL|M|RE|S|T|VE))?",rr=Rs+"?",ea="["+yr+"]?",ho="(?:"+Ps+"(?:"+[Ns,fo,Oa].join("|")+")"+ea+rr+")*",vi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Na=ea+rr+ho,Ls="(?:"+[Ts,fo,Oa].join("|")+")"+Na,bc="(?:"+[Ns+Ta+"?",Ta,fo,Oa,Mi].join("|")+")",wc=RegExp(Qr,"g"),Sc=RegExp(Ta,"g"),Oe=RegExp(uo+"(?="+uo+")|"+bc+Na,"g"),Ve=RegExp([Li+"?"+co+"+"+Ra+"(?="+[ka,Li,"$"].join("|")+")",qr+"+"+Ms+"(?="+[ka,Li+Is,"$"].join("|")+")",Li+"?"+Is+"+"+Ra,Li+"+"+Ms,Fi,vi,lo,Ls].join("|"),"g"),Bt=RegExp("["+Ps+Gt+vr+yr+"]"),cn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kt=["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"],Fs=-1,It={};It[bn]=It[dr]=It[vt]=It[yt]=It[nn]=It[Xt]=It[jt]=It[wn]=It[$t]=!0,It[ie]=It[J]=It[Ht]=It[le]=It[Yt]=It[ve]=It[be]=It[ee]=It[ye]=It[Fe]=It[Pe]=It[nt]=It[Le]=It[Ze]=It[$e]=!1;var Mt={};Mt[ie]=Mt[J]=Mt[Ht]=Mt[Yt]=Mt[le]=Mt[ve]=Mt[bn]=Mt[dr]=Mt[vt]=Mt[yt]=Mt[nn]=Mt[ye]=Mt[Fe]=Mt[Pe]=Mt[nt]=Mt[Le]=Mt[Ze]=Mt[_t]=Mt[Xt]=Mt[jt]=Mt[wn]=Mt[$t]=!0,Mt[be]=Mt[ee]=Mt[$e]=!1;var js={À:"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"},LU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},FU={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},jU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},DU=parseFloat,VU=parseInt,h8=typeof fu=="object"&&fu&&fu.Object===Object&&fu,UU=typeof self=="object"&&self&&self.Object===Object&&self,Fn=h8||UU||Function("return this")(),r0=e&&!e.nodeType&&e,po=r0&&!0&&t&&!t.nodeType&&t,p8=po&&po.exports===r0,i0=p8&&h8.process,Jr=(function(){try{var X=po&&po.require&&po.require("util").types;return X||i0&&i0.binding&&i0.binding("util")}catch{}})(),m8=Jr&&Jr.isArrayBuffer,g8=Jr&&Jr.isDate,v8=Jr&&Jr.isMap,y8=Jr&&Jr.isRegExp,b8=Jr&&Jr.isSet,w8=Jr&&Jr.isTypedArray;function Or(X,de,se){switch(se.length){case 0:return X.call(de);case 1:return X.call(de,se[0]);case 2:return X.call(de,se[0],se[1]);case 3:return X.call(de,se[0],se[1],se[2])}return X.apply(de,se)}function BU(X,de,se,Re){for(var Ye=-1,St=X==null?0:X.length;++Ye<St;){var En=X[Ye];de(Re,En,se(En),X)}return Re}function Xr(X,de){for(var se=-1,Re=X==null?0:X.length;++se<Re&&de(X[se],se,X)!==!1;);return X}function zU(X,de){for(var se=X==null?0:X.length;se--&&de(X[se],se,X)!==!1;);return X}function S8(X,de){for(var se=-1,Re=X==null?0:X.length;++se<Re;)if(!de(X[se],se,X))return!1;return!0}function Pa(X,de){for(var se=-1,Re=X==null?0:X.length,Ye=0,St=[];++se<Re;){var En=X[se];de(En,se,X)&&(St[Ye++]=En)}return St}function ud(X,de){var se=X==null?0:X.length;return!!se&&Ds(X,de,0)>-1}function a0(X,de,se){for(var Re=-1,Ye=X==null?0:X.length;++Re<Ye;)if(se(de,X[Re]))return!0;return!1}function Zt(X,de){for(var se=-1,Re=X==null?0:X.length,Ye=Array(Re);++se<Re;)Ye[se]=de(X[se],se,X);return Ye}function Ia(X,de){for(var se=-1,Re=de.length,Ye=X.length;++se<Re;)X[Ye+se]=de[se];return X}function o0(X,de,se,Re){var Ye=-1,St=X==null?0:X.length;for(Re&&St&&(se=X[++Ye]);++Ye<St;)se=de(se,X[Ye],Ye,X);return se}function HU(X,de,se,Re){var Ye=X==null?0:X.length;for(Re&&Ye&&(se=X[--Ye]);Ye--;)se=de(se,X[Ye],Ye,X);return se}function s0(X,de){for(var se=-1,Re=X==null?0:X.length;++se<Re;)if(de(X[se],se,X))return!0;return!1}var WU=l0("length");function GU(X){return X.split("")}function YU(X){return X.match(Dt)||[]}function E8(X,de,se){var Re;return se(X,function(Ye,St,En){if(de(Ye,St,En))return Re=St,!1}),Re}function fd(X,de,se,Re){for(var Ye=X.length,St=se+(Re?1:-1);Re?St--:++St<Ye;)if(de(X[St],St,X))return St;return-1}function Ds(X,de,se){return de===de?iB(X,de,se):fd(X,C8,se)}function KU(X,de,se,Re){for(var Ye=se-1,St=X.length;++Ye<St;)if(Re(X[Ye],de))return Ye;return-1}function C8(X){return X!==X}function x8(X,de){var se=X==null?0:X.length;return se?u0(X,de)/se:W}function l0(X){return function(de){return de==null?n:de[X]}}function c0(X){return function(de){return X==null?n:X[de]}}function _8(X,de,se,Re,Ye){return Ye(X,function(St,En,Vt){se=Re?(Re=!1,St):de(se,St,En,Vt)}),se}function ZU(X,de){var se=X.length;for(X.sort(de);se--;)X[se]=X[se].value;return X}function u0(X,de){for(var se,Re=-1,Ye=X.length;++Re<Ye;){var St=de(X[Re]);St!==n&&(se=se===n?St:se+St)}return se}function f0(X,de){for(var se=-1,Re=Array(X);++se<X;)Re[se]=de(se);return Re}function QU(X,de){return Zt(de,function(se){return[se,X[se]]})}function A8(X){return X&&X.slice(0,R8(X)+1).replace(pn,"")}function Rr(X){return function(de){return X(de)}}function d0(X,de){return Zt(de,function(se){return X[se]})}function Ec(X,de){return X.has(de)}function k8(X,de){for(var se=-1,Re=X.length;++se<Re&&Ds(de,X[se],0)>-1;);return se}function T8(X,de){for(var se=X.length;se--&&Ds(de,X[se],0)>-1;);return se}function qU(X,de){for(var se=X.length,Re=0;se--;)X[se]===de&&++Re;return Re}var JU=c0(js),XU=c0(LU);function $U(X){return"\\"+jU[X]}function eB(X,de){return X==null?n:X[de]}function Vs(X){return Bt.test(X)}function tB(X){return cn.test(X)}function nB(X){for(var de,se=[];!(de=X.next()).done;)se.push(de.value);return se}function h0(X){var de=-1,se=Array(X.size);return X.forEach(function(Re,Ye){se[++de]=[Ye,Re]}),se}function O8(X,de){return function(se){return X(de(se))}}function Ma(X,de){for(var se=-1,Re=X.length,Ye=0,St=[];++se<Re;){var En=X[se];(En===de||En===d)&&(X[se]=d,St[Ye++]=se)}return St}function dd(X){var de=-1,se=Array(X.size);return X.forEach(function(Re){se[++de]=Re}),se}function rB(X){var de=-1,se=Array(X.size);return X.forEach(function(Re){se[++de]=[Re,Re]}),se}function iB(X,de,se){for(var Re=se-1,Ye=X.length;++Re<Ye;)if(X[Re]===de)return Re;return-1}function aB(X,de,se){for(var Re=se+1;Re--;)if(X[Re]===de)return Re;return Re}function Us(X){return Vs(X)?sB(X):WU(X)}function yi(X){return Vs(X)?lB(X):GU(X)}function R8(X){for(var de=X.length;de--&&ht.test(X.charAt(de)););return de}var oB=c0(FU);function sB(X){for(var de=Oe.lastIndex=0;Oe.test(X);)++de;return de}function lB(X){return X.match(Oe)||[]}function cB(X){return X.match(Ve)||[]}var uB=(function X(de){de=de==null?Fn:Bs.defaults(Fn.Object(),de,Bs.pick(Fn,Kt));var se=de.Array,Re=de.Date,Ye=de.Error,St=de.Function,En=de.Math,Vt=de.Object,p0=de.RegExp,fB=de.String,$r=de.TypeError,hd=se.prototype,dB=St.prototype,zs=Vt.prototype,pd=de["__core-js_shared__"],md=dB.toString,Tt=zs.hasOwnProperty,hB=0,N8=(function(){var l=/[^.]+$/.exec(pd&&pd.keys&&pd.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),gd=zs.toString,pB=md.call(Vt),mB=Fn._,gB=p0("^"+md.call(Tt).replace(Wt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vd=p8?de.Buffer:n,La=de.Symbol,yd=de.Uint8Array,P8=vd?vd.allocUnsafe:n,bd=O8(Vt.getPrototypeOf,Vt),I8=Vt.create,M8=zs.propertyIsEnumerable,wd=hd.splice,L8=La?La.isConcatSpreadable:n,Cc=La?La.iterator:n,mo=La?La.toStringTag:n,Sd=(function(){try{var l=wo(Vt,"defineProperty");return l({},"",{}),l}catch{}})(),vB=de.clearTimeout!==Fn.clearTimeout&&de.clearTimeout,yB=Re&&Re.now!==Fn.Date.now&&Re.now,bB=de.setTimeout!==Fn.setTimeout&&de.setTimeout,Ed=En.ceil,Cd=En.floor,m0=Vt.getOwnPropertySymbols,wB=vd?vd.isBuffer:n,F8=de.isFinite,SB=hd.join,EB=O8(Vt.keys,Vt),Cn=En.max,Gn=En.min,CB=Re.now,xB=de.parseInt,j8=En.random,_B=hd.reverse,g0=wo(de,"DataView"),xc=wo(de,"Map"),v0=wo(de,"Promise"),Hs=wo(de,"Set"),_c=wo(de,"WeakMap"),Ac=wo(Vt,"create"),xd=_c&&new _c,Ws={},AB=So(g0),kB=So(xc),TB=So(v0),OB=So(Hs),RB=So(_c),_d=La?La.prototype:n,kc=_d?_d.valueOf:n,D8=_d?_d.toString:n;function P(l){if(rn(l)&&!qe(l)&&!(l instanceof ft)){if(l instanceof ei)return l;if(Tt.call(l,"__wrapped__"))return V4(l)}return new ei(l)}var Gs=(function(){function l(){}return function(f){if(!en(f))return{};if(I8)return I8(f);l.prototype=f;var g=new l;return l.prototype=n,g}})();function Ad(){}function ei(l,f){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}P.templateSettings={escape:sn,evaluate:Qe,interpolate:Sn,variable:"",imports:{_:P}},P.prototype=Ad.prototype,P.prototype.constructor=P,ei.prototype=Gs(Ad.prototype),ei.prototype.constructor=ei;function ft(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function NB(){var l=new ft(this.__wrapped__);return l.__actions__=br(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=br(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=br(this.__views__),l}function PB(){if(this.__filtered__){var l=new ft(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function IB(){var l=this.__wrapped__.value(),f=this.__dir__,g=qe(l),E=f<0,O=g?l.length:0,M=Gz(0,O,this.__views__),H=M.start,Q=M.end,$=Q-H,me=E?Q:H-1,ge=this.__iteratees__,we=ge.length,Ce=0,Me=Gn($,this.__takeCount__);if(!g||!E&&O==$&&Me==$)return l4(l,this.__actions__);var Ue=[];e:for(;$--&&Ce<Me;){me+=f;for(var rt=-1,Be=l[me];++rt<we;){var lt=ge[rt],pt=lt.iteratee,Ir=lt.type,or=pt(Be);if(Ir==F)Be=or;else if(!or){if(Ir==j)continue e;break e}}Ue[Ce++]=Be}return Ue}ft.prototype=Gs(Ad.prototype),ft.prototype.constructor=ft;function go(l){var f=-1,g=l==null?0:l.length;for(this.clear();++f<g;){var E=l[f];this.set(E[0],E[1])}}function MB(){this.__data__=Ac?Ac(null):{},this.size=0}function LB(l){var f=this.has(l)&&delete this.__data__[l];return this.size-=f?1:0,f}function FB(l){var f=this.__data__;if(Ac){var g=f[l];return g===c?n:g}return Tt.call(f,l)?f[l]:n}function jB(l){var f=this.__data__;return Ac?f[l]!==n:Tt.call(f,l)}function DB(l,f){var g=this.__data__;return this.size+=this.has(l)?0:1,g[l]=Ac&&f===n?c:f,this}go.prototype.clear=MB,go.prototype.delete=LB,go.prototype.get=FB,go.prototype.has=jB,go.prototype.set=DB;function ta(l){var f=-1,g=l==null?0:l.length;for(this.clear();++f<g;){var E=l[f];this.set(E[0],E[1])}}function VB(){this.__data__=[],this.size=0}function UB(l){var f=this.__data__,g=kd(f,l);if(g<0)return!1;var E=f.length-1;return g==E?f.pop():wd.call(f,g,1),--this.size,!0}function BB(l){var f=this.__data__,g=kd(f,l);return g<0?n:f[g][1]}function zB(l){return kd(this.__data__,l)>-1}function HB(l,f){var g=this.__data__,E=kd(g,l);return E<0?(++this.size,g.push([l,f])):g[E][1]=f,this}ta.prototype.clear=VB,ta.prototype.delete=UB,ta.prototype.get=BB,ta.prototype.has=zB,ta.prototype.set=HB;function na(l){var f=-1,g=l==null?0:l.length;for(this.clear();++f<g;){var E=l[f];this.set(E[0],E[1])}}function WB(){this.size=0,this.__data__={hash:new go,map:new(xc||ta),string:new go}}function GB(l){var f=Vd(this,l).delete(l);return this.size-=f?1:0,f}function YB(l){return Vd(this,l).get(l)}function KB(l){return Vd(this,l).has(l)}function ZB(l,f){var g=Vd(this,l),E=g.size;return g.set(l,f),this.size+=g.size==E?0:1,this}na.prototype.clear=WB,na.prototype.delete=GB,na.prototype.get=YB,na.prototype.has=KB,na.prototype.set=ZB;function vo(l){var f=-1,g=l==null?0:l.length;for(this.__data__=new na;++f<g;)this.add(l[f])}function QB(l){return this.__data__.set(l,c),this}function qB(l){return this.__data__.has(l)}vo.prototype.add=vo.prototype.push=QB,vo.prototype.has=qB;function bi(l){var f=this.__data__=new ta(l);this.size=f.size}function JB(){this.__data__=new ta,this.size=0}function XB(l){var f=this.__data__,g=f.delete(l);return this.size=f.size,g}function $B(l){return this.__data__.get(l)}function ez(l){return this.__data__.has(l)}function tz(l,f){var g=this.__data__;if(g instanceof ta){var E=g.__data__;if(!xc||E.length<i-1)return E.push([l,f]),this.size=++g.size,this;g=this.__data__=new na(E)}return g.set(l,f),this.size=g.size,this}bi.prototype.clear=JB,bi.prototype.delete=XB,bi.prototype.get=$B,bi.prototype.has=ez,bi.prototype.set=tz;function V8(l,f){var g=qe(l),E=!g&&Eo(l),O=!g&&!E&&Ua(l),M=!g&&!E&&!O&&Qs(l),H=g||E||O||M,Q=H?f0(l.length,fB):[],$=Q.length;for(var me in l)(f||Tt.call(l,me))&&!(H&&(me=="length"||O&&(me=="offset"||me=="parent")||M&&(me=="buffer"||me=="byteLength"||me=="byteOffset")||oa(me,$)))&&Q.push(me);return Q}function U8(l){var f=l.length;return f?l[T0(0,f-1)]:n}function nz(l,f){return Ud(br(l),yo(f,0,l.length))}function rz(l){return Ud(br(l))}function y0(l,f,g){(g!==n&&!wi(l[f],g)||g===n&&!(f in l))&&ra(l,f,g)}function Tc(l,f,g){var E=l[f];(!(Tt.call(l,f)&&wi(E,g))||g===n&&!(f in l))&&ra(l,f,g)}function kd(l,f){for(var g=l.length;g--;)if(wi(l[g][0],f))return g;return-1}function iz(l,f,g,E){return Fa(l,function(O,M,H){f(E,O,g(O),H)}),E}function B8(l,f){return l&&Di(f,Pn(f),l)}function az(l,f){return l&&Di(f,Sr(f),l)}function ra(l,f,g){f=="__proto__"&&Sd?Sd(l,f,{configurable:!0,enumerable:!0,value:g,writable:!0}):l[f]=g}function b0(l,f){for(var g=-1,E=f.length,O=se(E),M=l==null;++g<E;)O[g]=M?n:$0(l,f[g]);return O}function yo(l,f,g){return l===l&&(g!==n&&(l=l<=g?l:g),f!==n&&(l=l>=f?l:f)),l}function ti(l,f,g,E,O,M){var H,Q=f&h,$=f&m,me=f&p;if(g&&(H=O?g(l,E,O,M):g(l)),H!==n)return H;if(!en(l))return l;var ge=qe(l);if(ge){if(H=Kz(l),!Q)return br(l,H)}else{var we=Yn(l),Ce=we==ee||we==Ie;if(Ua(l))return f4(l,Q);if(we==Pe||we==ie||Ce&&!O){if(H=$||Ce?{}:R4(l),!Q)return $?Fz(l,az(H,l)):Lz(l,B8(H,l))}else{if(!Mt[we])return O?l:{};H=Zz(l,we,Q)}}M||(M=new bi);var Me=M.get(l);if(Me)return Me;M.set(l,H),a_(l)?l.forEach(function(Be){H.add(ti(Be,f,g,Be,l,M))}):r_(l)&&l.forEach(function(Be,lt){H.set(lt,ti(Be,f,g,lt,l,M))});var Ue=me?$?V0:D0:$?Sr:Pn,rt=ge?n:Ue(l);return Xr(rt||l,function(Be,lt){rt&&(lt=Be,Be=l[lt]),Tc(H,lt,ti(Be,f,g,lt,l,M))}),H}function oz(l){var f=Pn(l);return function(g){return z8(g,l,f)}}function z8(l,f,g){var E=g.length;if(l==null)return!E;for(l=Vt(l);E--;){var O=g[E],M=f[O],H=l[O];if(H===n&&!(O in l)||!M(H))return!1}return!0}function H8(l,f,g){if(typeof l!="function")throw new $r(o);return Lc(function(){l.apply(n,g)},f)}function Oc(l,f,g,E){var O=-1,M=ud,H=!0,Q=l.length,$=[],me=f.length;if(!Q)return $;g&&(f=Zt(f,Rr(g))),E?(M=a0,H=!1):f.length>=i&&(M=Ec,H=!1,f=new vo(f));e:for(;++O<Q;){var ge=l[O],we=g==null?ge:g(ge);if(ge=E||ge!==0?ge:0,H&&we===we){for(var Ce=me;Ce--;)if(f[Ce]===we)continue e;$.push(ge)}else M(f,we,E)||$.push(ge)}return $}var Fa=g4(ji),W8=g4(S0,!0);function sz(l,f){var g=!0;return Fa(l,function(E,O,M){return g=!!f(E,O,M),g}),g}function Td(l,f,g){for(var E=-1,O=l.length;++E<O;){var M=l[E],H=f(M);if(H!=null&&(Q===n?H===H&&!Pr(H):g(H,Q)))var Q=H,$=M}return $}function lz(l,f,g,E){var O=l.length;for(g=et(g),g<0&&(g=-g>O?0:O+g),E=E===n||E>O?O:et(E),E<0&&(E+=O),E=g>E?0:s_(E);g<E;)l[g++]=f;return l}function G8(l,f){var g=[];return Fa(l,function(E,O,M){f(E,O,M)&&g.push(E)}),g}function jn(l,f,g,E,O){var M=-1,H=l.length;for(g||(g=qz),O||(O=[]);++M<H;){var Q=l[M];f>0&&g(Q)?f>1?jn(Q,f-1,g,E,O):Ia(O,Q):E||(O[O.length]=Q)}return O}var w0=v4(),Y8=v4(!0);function ji(l,f){return l&&w0(l,f,Pn)}function S0(l,f){return l&&Y8(l,f,Pn)}function Od(l,f){return Pa(f,function(g){return sa(l[g])})}function bo(l,f){f=Da(f,l);for(var g=0,E=f.length;l!=null&&g<E;)l=l[Vi(f[g++])];return g&&g==E?l:n}function K8(l,f,g){var E=f(l);return qe(l)?E:Ia(E,g(l))}function ir(l){return l==null?l===n?Ee:at:mo&&mo in Vt(l)?Wz(l):rH(l)}function E0(l,f){return l>f}function cz(l,f){return l!=null&&Tt.call(l,f)}function uz(l,f){return l!=null&&f in Vt(l)}function fz(l,f,g){return l>=Gn(f,g)&&l<Cn(f,g)}function C0(l,f,g){for(var E=g?a0:ud,O=l[0].length,M=l.length,H=M,Q=se(M),$=1/0,me=[];H--;){var ge=l[H];H&&f&&(ge=Zt(ge,Rr(f))),$=Gn(ge.length,$),Q[H]=!g&&(f||O>=120&&ge.length>=120)?new vo(H&&ge):n}ge=l[0];var we=-1,Ce=Q[0];e:for(;++we<O&&me.length<$;){var Me=ge[we],Ue=f?f(Me):Me;if(Me=g||Me!==0?Me:0,!(Ce?Ec(Ce,Ue):E(me,Ue,g))){for(H=M;--H;){var rt=Q[H];if(!(rt?Ec(rt,Ue):E(l[H],Ue,g)))continue e}Ce&&Ce.push(Ue),me.push(Me)}}return me}function dz(l,f,g,E){return ji(l,function(O,M,H){f(E,g(O),M,H)}),E}function Rc(l,f,g){f=Da(f,l),l=M4(l,f);var E=l==null?l:l[Vi(ri(f))];return E==null?n:Or(E,l,g)}function Z8(l){return rn(l)&&ir(l)==ie}function hz(l){return rn(l)&&ir(l)==Ht}function pz(l){return rn(l)&&ir(l)==ve}function Nc(l,f,g,E,O){return l===f?!0:l==null||f==null||!rn(l)&&!rn(f)?l!==l&&f!==f:mz(l,f,g,E,Nc,O)}function mz(l,f,g,E,O,M){var H=qe(l),Q=qe(f),$=H?J:Yn(l),me=Q?J:Yn(f);$=$==ie?Pe:$,me=me==ie?Pe:me;var ge=$==Pe,we=me==Pe,Ce=$==me;if(Ce&&Ua(l)){if(!Ua(f))return!1;H=!0,ge=!1}if(Ce&&!ge)return M||(M=new bi),H||Qs(l)?k4(l,f,g,E,O,M):zz(l,f,$,g,E,O,M);if(!(g&y)){var Me=ge&&Tt.call(l,"__wrapped__"),Ue=we&&Tt.call(f,"__wrapped__");if(Me||Ue){var rt=Me?l.value():l,Be=Ue?f.value():f;return M||(M=new bi),O(rt,Be,g,E,M)}}return Ce?(M||(M=new bi),Hz(l,f,g,E,O,M)):!1}function gz(l){return rn(l)&&Yn(l)==ye}function x0(l,f,g,E){var O=g.length,M=O,H=!E;if(l==null)return!M;for(l=Vt(l);O--;){var Q=g[O];if(H&&Q[2]?Q[1]!==l[Q[0]]:!(Q[0]in l))return!1}for(;++O<M;){Q=g[O];var $=Q[0],me=l[$],ge=Q[1];if(H&&Q[2]){if(me===n&&!($ in l))return!1}else{var we=new bi;if(E)var Ce=E(me,ge,$,l,f,we);if(!(Ce===n?Nc(ge,me,y|b,E,we):Ce))return!1}}return!0}function Q8(l){if(!en(l)||Xz(l))return!1;var f=sa(l)?gB:gr;return f.test(So(l))}function vz(l){return rn(l)&&ir(l)==nt}function yz(l){return rn(l)&&Yn(l)==Le}function bz(l){return rn(l)&&Yd(l.length)&&!!It[ir(l)]}function q8(l){return typeof l=="function"?l:l==null?Er:typeof l=="object"?qe(l)?$8(l[0],l[1]):X8(l):y_(l)}function _0(l){if(!Mc(l))return EB(l);var f=[];for(var g in Vt(l))Tt.call(l,g)&&g!="constructor"&&f.push(g);return f}function wz(l){if(!en(l))return nH(l);var f=Mc(l),g=[];for(var E in l)E=="constructor"&&(f||!Tt.call(l,E))||g.push(E);return g}function A0(l,f){return l<f}function J8(l,f){var g=-1,E=wr(l)?se(l.length):[];return Fa(l,function(O,M,H){E[++g]=f(O,M,H)}),E}function X8(l){var f=B0(l);return f.length==1&&f[0][2]?P4(f[0][0],f[0][1]):function(g){return g===l||x0(g,l,f)}}function $8(l,f){return H0(l)&&N4(f)?P4(Vi(l),f):function(g){var E=$0(g,l);return E===n&&E===f?ey(g,l):Nc(f,E,y|b)}}function Rd(l,f,g,E,O){l!==f&&w0(f,function(M,H){if(O||(O=new bi),en(M))Sz(l,f,H,g,Rd,E,O);else{var Q=E?E(G0(l,H),M,H+"",l,f,O):n;Q===n&&(Q=M),y0(l,H,Q)}},Sr)}function Sz(l,f,g,E,O,M,H){var Q=G0(l,g),$=G0(f,g),me=H.get($);if(me){y0(l,g,me);return}var ge=M?M(Q,$,g+"",l,f,H):n,we=ge===n;if(we){var Ce=qe($),Me=!Ce&&Ua($),Ue=!Ce&&!Me&&Qs($);ge=$,Ce||Me||Ue?qe(Q)?ge=Q:un(Q)?ge=br(Q):Me?(we=!1,ge=f4($,!0)):Ue?(we=!1,ge=d4($,!0)):ge=[]:Fc($)||Eo($)?(ge=Q,Eo(Q)?ge=l_(Q):(!en(Q)||sa(Q))&&(ge=R4($))):we=!1}we&&(H.set($,ge),O(ge,$,E,M,H),H.delete($)),y0(l,g,ge)}function e4(l,f){var g=l.length;if(g)return f+=f<0?g:0,oa(f,g)?l[f]:n}function t4(l,f,g){f.length?f=Zt(f,function(M){return qe(M)?function(H){return bo(H,M.length===1?M[0]:M)}:M}):f=[Er];var E=-1;f=Zt(f,Rr(De()));var O=J8(l,function(M,H,Q){var $=Zt(f,function(me){return me(M)});return{criteria:$,index:++E,value:M}});return ZU(O,function(M,H){return Mz(M,H,g)})}function Ez(l,f){return n4(l,f,function(g,E){return ey(l,E)})}function n4(l,f,g){for(var E=-1,O=f.length,M={};++E<O;){var H=f[E],Q=bo(l,H);g(Q,H)&&Pc(M,Da(H,l),Q)}return M}function Cz(l){return function(f){return bo(f,l)}}function k0(l,f,g,E){var O=E?KU:Ds,M=-1,H=f.length,Q=l;for(l===f&&(f=br(f)),g&&(Q=Zt(l,Rr(g)));++M<H;)for(var $=0,me=f[M],ge=g?g(me):me;($=O(Q,ge,$,E))>-1;)Q!==l&&wd.call(Q,$,1),wd.call(l,$,1);return l}function r4(l,f){for(var g=l?f.length:0,E=g-1;g--;){var O=f[g];if(g==E||O!==M){var M=O;oa(O)?wd.call(l,O,1):N0(l,O)}}return l}function T0(l,f){return l+Cd(j8()*(f-l+1))}function xz(l,f,g,E){for(var O=-1,M=Cn(Ed((f-l)/(g||1)),0),H=se(M);M--;)H[E?M:++O]=l,l+=g;return H}function O0(l,f){var g="";if(!l||f<1||f>B)return g;do f%2&&(g+=l),f=Cd(f/2),f&&(l+=l);while(f);return g}function ot(l,f){return Y0(I4(l,f,Er),l+"")}function _z(l){return U8(qs(l))}function Az(l,f){var g=qs(l);return Ud(g,yo(f,0,g.length))}function Pc(l,f,g,E){if(!en(l))return l;f=Da(f,l);for(var O=-1,M=f.length,H=M-1,Q=l;Q!=null&&++O<M;){var $=Vi(f[O]),me=g;if($==="__proto__"||$==="constructor"||$==="prototype")return l;if(O!=H){var ge=Q[$];me=E?E(ge,$,Q):n,me===n&&(me=en(ge)?ge:oa(f[O+1])?[]:{})}Tc(Q,$,me),Q=Q[$]}return l}var i4=xd?function(l,f){return xd.set(l,f),l}:Er,kz=Sd?function(l,f){return Sd(l,"toString",{configurable:!0,enumerable:!1,value:ny(f),writable:!0})}:Er;function Tz(l){return Ud(qs(l))}function ni(l,f,g){var E=-1,O=l.length;f<0&&(f=-f>O?0:O+f),g=g>O?O:g,g<0&&(g+=O),O=f>g?0:g-f>>>0,f>>>=0;for(var M=se(O);++E<O;)M[E]=l[E+f];return M}function Oz(l,f){var g;return Fa(l,function(E,O,M){return g=f(E,O,M),!g}),!!g}function Nd(l,f,g){var E=0,O=l==null?E:l.length;if(typeof f=="number"&&f===f&&O<=ne){for(;E<O;){var M=E+O>>>1,H=l[M];H!==null&&!Pr(H)&&(g?H<=f:H<f)?E=M+1:O=M}return O}return R0(l,f,Er,g)}function R0(l,f,g,E){var O=0,M=l==null?0:l.length;if(M===0)return 0;f=g(f);for(var H=f!==f,Q=f===null,$=Pr(f),me=f===n;O<M;){var ge=Cd((O+M)/2),we=g(l[ge]),Ce=we!==n,Me=we===null,Ue=we===we,rt=Pr(we);if(H)var Be=E||Ue;else me?Be=Ue&&(E||Ce):Q?Be=Ue&&Ce&&(E||!Me):$?Be=Ue&&Ce&&!Me&&(E||!rt):Me||rt?Be=!1:Be=E?we<=f:we<f;Be?O=ge+1:M=ge}return Gn(M,te)}function a4(l,f){for(var g=-1,E=l.length,O=0,M=[];++g<E;){var H=l[g],Q=f?f(H):H;if(!g||!wi(Q,$)){var $=Q;M[O++]=H===0?0:H}}return M}function o4(l){return typeof l=="number"?l:Pr(l)?W:+l}function Nr(l){if(typeof l=="string")return l;if(qe(l))return Zt(l,Nr)+"";if(Pr(l))return D8?D8.call(l):"";var f=l+"";return f=="0"&&1/l==-G?"-0":f}function ja(l,f,g){var E=-1,O=ud,M=l.length,H=!0,Q=[],$=Q;if(g)H=!1,O=a0;else if(M>=i){var me=f?null:Uz(l);if(me)return dd(me);H=!1,O=Ec,$=new vo}else $=f?[]:Q;e:for(;++E<M;){var ge=l[E],we=f?f(ge):ge;if(ge=g||ge!==0?ge:0,H&&we===we){for(var Ce=$.length;Ce--;)if($[Ce]===we)continue e;f&&$.push(we),Q.push(ge)}else O($,we,g)||($!==Q&&$.push(we),Q.push(ge))}return Q}function N0(l,f){f=Da(f,l);var g=-1,E=f.length;if(!E)return!0;for(var O=l==null||typeof l!="object"&&typeof l!="function";++g<E;){var M=f[g];if(typeof M=="string"){if(M==="__proto__"&&!Tt.call(l,"__proto__"))return!1;if(M==="constructor"&&g+1<E&&typeof f[g+1]=="string"&&f[g+1]==="prototype"){if(O&&g===0)continue;return!1}}}var H=M4(l,f);return H==null||delete H[Vi(ri(f))]}function s4(l,f,g,E){return Pc(l,f,g(bo(l,f)),E)}function Pd(l,f,g,E){for(var O=l.length,M=E?O:-1;(E?M--:++M<O)&&f(l[M],M,l););return g?ni(l,E?0:M,E?M+1:O):ni(l,E?M+1:0,E?O:M)}function l4(l,f){var g=l;return g instanceof ft&&(g=g.value()),o0(f,function(E,O){return O.func.apply(O.thisArg,Ia([E],O.args))},g)}function P0(l,f,g){var E=l.length;if(E<2)return E?ja(l[0]):[];for(var O=-1,M=se(E);++O<E;)for(var H=l[O],Q=-1;++Q<E;)Q!=O&&(M[O]=Oc(M[O]||H,l[Q],f,g));return ja(jn(M,1),f,g)}function c4(l,f,g){for(var E=-1,O=l.length,M=f.length,H={};++E<O;){var Q=E<M?f[E]:n;g(H,l[E],Q)}return H}function I0(l){return un(l)?l:[]}function M0(l){return typeof l=="function"?l:Er}function Da(l,f){return qe(l)?l:H0(l,f)?[l]:D4(Ot(l))}var Rz=ot;function Va(l,f,g){var E=l.length;return g=g===n?E:g,!f&&g>=E?l:ni(l,f,g)}var u4=vB||function(l){return Fn.clearTimeout(l)};function f4(l,f){if(f)return l.slice();var g=l.length,E=P8?P8(g):new l.constructor(g);return l.copy(E),E}function L0(l){var f=new l.constructor(l.byteLength);return new yd(f).set(new yd(l)),f}function Nz(l,f){var g=f?L0(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.byteLength)}function Pz(l){var f=new l.constructor(l.source,Kr.exec(l));return f.lastIndex=l.lastIndex,f}function Iz(l){return kc?Vt(kc.call(l)):{}}function d4(l,f){var g=f?L0(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.length)}function h4(l,f){if(l!==f){var g=l!==n,E=l===null,O=l===l,M=Pr(l),H=f!==n,Q=f===null,$=f===f,me=Pr(f);if(!Q&&!me&&!M&&l>f||M&&H&&$&&!Q&&!me||E&&H&&$||!g&&$||!O)return 1;if(!E&&!M&&!me&&l<f||me&&g&&O&&!E&&!M||Q&&g&&O||!H&&O||!$)return-1}return 0}function Mz(l,f,g){for(var E=-1,O=l.criteria,M=f.criteria,H=O.length,Q=g.length;++E<H;){var $=h4(O[E],M[E]);if($){if(E>=Q)return $;var me=g[E];return $*(me=="desc"?-1:1)}}return l.index-f.index}function p4(l,f,g,E){for(var O=-1,M=l.length,H=g.length,Q=-1,$=f.length,me=Cn(M-H,0),ge=se($+me),we=!E;++Q<$;)ge[Q]=f[Q];for(;++O<H;)(we||O<M)&&(ge[g[O]]=l[O]);for(;me--;)ge[Q++]=l[O++];return ge}function m4(l,f,g,E){for(var O=-1,M=l.length,H=-1,Q=g.length,$=-1,me=f.length,ge=Cn(M-Q,0),we=se(ge+me),Ce=!E;++O<ge;)we[O]=l[O];for(var Me=O;++$<me;)we[Me+$]=f[$];for(;++H<Q;)(Ce||O<M)&&(we[Me+g[H]]=l[O++]);return we}function br(l,f){var g=-1,E=l.length;for(f||(f=se(E));++g<E;)f[g]=l[g];return f}function Di(l,f,g,E){var O=!g;g||(g={});for(var M=-1,H=f.length;++M<H;){var Q=f[M],$=E?E(g[Q],l[Q],Q,g,l):n;$===n&&($=l[Q]),O?ra(g,Q,$):Tc(g,Q,$)}return g}function Lz(l,f){return Di(l,z0(l),f)}function Fz(l,f){return Di(l,T4(l),f)}function Id(l,f){return function(g,E){var O=qe(g)?BU:iz,M=f?f():{};return O(g,l,De(E,2),M)}}function Ys(l){return ot(function(f,g){var E=-1,O=g.length,M=O>1?g[O-1]:n,H=O>2?g[2]:n;for(M=l.length>3&&typeof M=="function"?(O--,M):n,H&&ar(g[0],g[1],H)&&(M=O<3?n:M,O=1),f=Vt(f);++E<O;){var Q=g[E];Q&&l(f,Q,E,M)}return f})}function g4(l,f){return function(g,E){if(g==null)return g;if(!wr(g))return l(g,E);for(var O=g.length,M=f?O:-1,H=Vt(g);(f?M--:++M<O)&&E(H[M],M,H)!==!1;);return g}}function v4(l){return function(f,g,E){for(var O=-1,M=Vt(f),H=E(f),Q=H.length;Q--;){var $=H[l?Q:++O];if(g(M[$],$,M)===!1)break}return f}}function jz(l,f,g){var E=f&v,O=Ic(l);function M(){var H=this&&this!==Fn&&this instanceof M?O:l;return H.apply(E?g:this,arguments)}return M}function y4(l){return function(f){f=Ot(f);var g=Vs(f)?yi(f):n,E=g?g[0]:f.charAt(0),O=g?Va(g,1).join(""):f.slice(1);return E[l]()+O}}function Ks(l){return function(f){return o0(g_(m_(f).replace(wc,"")),l,"")}}function Ic(l){return function(){var f=arguments;switch(f.length){case 0:return new l;case 1:return new l(f[0]);case 2:return new l(f[0],f[1]);case 3:return new l(f[0],f[1],f[2]);case 4:return new l(f[0],f[1],f[2],f[3]);case 5:return new l(f[0],f[1],f[2],f[3],f[4]);case 6:return new l(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new l(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var g=Gs(l.prototype),E=l.apply(g,f);return en(E)?E:g}}function Dz(l,f,g){var E=Ic(l);function O(){for(var M=arguments.length,H=se(M),Q=M,$=Zs(O);Q--;)H[Q]=arguments[Q];var me=M<3&&H[0]!==$&&H[M-1]!==$?[]:Ma(H,$);if(M-=me.length,M<g)return C4(l,f,Md,O.placeholder,n,H,me,n,n,g-M);var ge=this&&this!==Fn&&this instanceof O?E:l;return Or(ge,this,H)}return O}function b4(l){return function(f,g,E){var O=Vt(f);if(!wr(f)){var M=De(g,3);f=Pn(f),g=function(Q){return M(O[Q],Q,O)}}var H=l(f,g,E);return H>-1?O[M?f[H]:H]:n}}function w4(l){return aa(function(f){var g=f.length,E=g,O=ei.prototype.thru;for(l&&f.reverse();E--;){var M=f[E];if(typeof M!="function")throw new $r(o);if(O&&!H&&Dd(M)=="wrapper")var H=new ei([],!0)}for(E=H?E:g;++E<g;){M=f[E];var Q=Dd(M),$=Q=="wrapper"?U0(M):n;$&&W0($[0])&&$[1]==(k|T|w|R)&&!$[4].length&&$[9]==1?H=H[Dd($[0])].apply(H,$[3]):H=M.length==1&&W0(M)?H[Q]():H.thru(M)}return function(){var me=arguments,ge=me[0];if(H&&me.length==1&&qe(ge))return H.plant(ge).value();for(var we=0,Ce=g?f[we].apply(this,me):ge;++we<g;)Ce=f[we].call(this,Ce);return Ce}})}function Md(l,f,g,E,O,M,H,Q,$,me){var ge=f&k,we=f&v,Ce=f&x,Me=f&(T|C),Ue=f&I,rt=Ce?n:Ic(l);function Be(){for(var lt=arguments.length,pt=se(lt),Ir=lt;Ir--;)pt[Ir]=arguments[Ir];if(Me)var or=Zs(Be),Mr=qU(pt,or);if(E&&(pt=p4(pt,E,O,Me)),M&&(pt=m4(pt,M,H,Me)),lt-=Mr,Me&&lt<me){var fn=Ma(pt,or);return C4(l,f,Md,Be.placeholder,g,pt,fn,Q,$,me-lt)}var Si=we?g:this,ca=Ce?Si[l]:l;return lt=pt.length,Q?pt=iH(pt,Q):Ue&&lt>1&&pt.reverse(),ge&&$<lt&&(pt.length=$),this&&this!==Fn&&this instanceof Be&&(ca=rt||Ic(ca)),ca.apply(Si,pt)}return Be}function S4(l,f){return function(g,E){return dz(g,l,f(E),{})}}function Ld(l,f){return function(g,E){var O;if(g===n&&E===n)return f;if(g!==n&&(O=g),E!==n){if(O===n)return E;typeof g=="string"||typeof E=="string"?(g=Nr(g),E=Nr(E)):(g=o4(g),E=o4(E)),O=l(g,E)}return O}}function F0(l){return aa(function(f){return f=Zt(f,Rr(De())),ot(function(g){var E=this;return l(f,function(O){return Or(O,E,g)})})})}function Fd(l,f){f=f===n?" ":Nr(f);var g=f.length;if(g<2)return g?O0(f,l):f;var E=O0(f,Ed(l/Us(f)));return Vs(f)?Va(yi(E),0,l).join(""):E.slice(0,l)}function Vz(l,f,g,E){var O=f&v,M=Ic(l);function H(){for(var Q=-1,$=arguments.length,me=-1,ge=E.length,we=se(ge+$),Ce=this&&this!==Fn&&this instanceof H?M:l;++me<ge;)we[me]=E[me];for(;$--;)we[me++]=arguments[++Q];return Or(Ce,O?g:this,we)}return H}function E4(l){return function(f,g,E){return E&&typeof E!="number"&&ar(f,g,E)&&(g=E=n),f=la(f),g===n?(g=f,f=0):g=la(g),E=E===n?f<g?1:-1:la(E),xz(f,g,E,l)}}function jd(l){return function(f,g){return typeof f=="string"&&typeof g=="string"||(f=ii(f),g=ii(g)),l(f,g)}}function C4(l,f,g,E,O,M,H,Q,$,me){var ge=f&T,we=ge?H:n,Ce=ge?n:H,Me=ge?M:n,Ue=ge?n:M;f|=ge?w:A,f&=~(ge?A:w),f&_||(f&=-4);var rt=[l,f,O,Me,we,Ue,Ce,Q,$,me],Be=g.apply(n,rt);return W0(l)&&L4(Be,rt),Be.placeholder=E,F4(Be,l,f)}function j0(l){var f=En[l];return function(g,E){if(g=ii(g),E=E==null?0:Gn(et(E),292),E&&F8(g)){var O=(Ot(g)+"e").split("e"),M=f(O[0]+"e"+(+O[1]+E));return O=(Ot(M)+"e").split("e"),+(O[0]+"e"+(+O[1]-E))}return f(g)}}var Uz=Hs&&1/dd(new Hs([,-0]))[1]==G?function(l){return new Hs(l)}:ay;function x4(l){return function(f){var g=Yn(f);return g==ye?h0(f):g==Le?rB(f):QU(f,l(f))}}function ia(l,f,g,E,O,M,H,Q){var $=f&x;if(!$&&typeof l!="function")throw new $r(o);var me=E?E.length:0;if(me||(f&=-97,E=O=n),H=H===n?H:Cn(et(H),0),Q=Q===n?Q:et(Q),me-=O?O.length:0,f&A){var ge=E,we=O;E=O=n}var Ce=$?n:U0(l),Me=[l,f,g,E,O,ge,we,M,H,Q];if(Ce&&tH(Me,Ce),l=Me[0],f=Me[1],g=Me[2],E=Me[3],O=Me[4],Q=Me[9]=Me[9]===n?$?0:l.length:Cn(Me[9]-me,0),!Q&&f&(T|C)&&(f&=-25),!f||f==v)var Ue=jz(l,f,g);else f==T||f==C?Ue=Dz(l,f,Q):(f==w||f==(v|w))&&!O.length?Ue=Vz(l,f,g,E):Ue=Md.apply(n,Me);var rt=Ce?i4:L4;return F4(rt(Ue,Me),l,f)}function _4(l,f,g,E){return l===n||wi(l,zs[g])&&!Tt.call(E,g)?f:l}function A4(l,f,g,E,O,M){return en(l)&&en(f)&&(M.set(f,l),Rd(l,f,n,A4,M),M.delete(f)),l}function Bz(l){return Fc(l)?n:l}function k4(l,f,g,E,O,M){var H=g&y,Q=l.length,$=f.length;if(Q!=$&&!(H&&$>Q))return!1;var me=M.get(l),ge=M.get(f);if(me&&ge)return me==f&&ge==l;var we=-1,Ce=!0,Me=g&b?new vo:n;for(M.set(l,f),M.set(f,l);++we<Q;){var Ue=l[we],rt=f[we];if(E)var Be=H?E(rt,Ue,we,f,l,M):E(Ue,rt,we,l,f,M);if(Be!==n){if(Be)continue;Ce=!1;break}if(Me){if(!s0(f,function(lt,pt){if(!Ec(Me,pt)&&(Ue===lt||O(Ue,lt,g,E,M)))return Me.push(pt)})){Ce=!1;break}}else if(!(Ue===rt||O(Ue,rt,g,E,M))){Ce=!1;break}}return M.delete(l),M.delete(f),Ce}function zz(l,f,g,E,O,M,H){switch(g){case Yt:if(l.byteLength!=f.byteLength||l.byteOffset!=f.byteOffset)return!1;l=l.buffer,f=f.buffer;case Ht:return!(l.byteLength!=f.byteLength||!M(new yd(l),new yd(f)));case le:case ve:case Fe:return wi(+l,+f);case be:return l.name==f.name&&l.message==f.message;case nt:case Ze:return l==f+"";case ye:var Q=h0;case Le:var $=E&y;if(Q||(Q=dd),l.size!=f.size&&!$)return!1;var me=H.get(l);if(me)return me==f;E|=b,H.set(l,f);var ge=k4(Q(l),Q(f),E,O,M,H);return H.delete(l),ge;case _t:if(kc)return kc.call(l)==kc.call(f)}return!1}function Hz(l,f,g,E,O,M){var H=g&y,Q=D0(l),$=Q.length,me=D0(f),ge=me.length;if($!=ge&&!H)return!1;for(var we=$;we--;){var Ce=Q[we];if(!(H?Ce in f:Tt.call(f,Ce)))return!1}var Me=M.get(l),Ue=M.get(f);if(Me&&Ue)return Me==f&&Ue==l;var rt=!0;M.set(l,f),M.set(f,l);for(var Be=H;++we<$;){Ce=Q[we];var lt=l[Ce],pt=f[Ce];if(E)var Ir=H?E(pt,lt,Ce,f,l,M):E(lt,pt,Ce,l,f,M);if(!(Ir===n?lt===pt||O(lt,pt,g,E,M):Ir)){rt=!1;break}Be||(Be=Ce=="constructor")}if(rt&&!Be){var or=l.constructor,Mr=f.constructor;or!=Mr&&"constructor"in l&&"constructor"in f&&!(typeof or=="function"&&or instanceof or&&typeof Mr=="function"&&Mr instanceof Mr)&&(rt=!1)}return M.delete(l),M.delete(f),rt}function aa(l){return Y0(I4(l,n,z4),l+"")}function D0(l){return K8(l,Pn,z0)}function V0(l){return K8(l,Sr,T4)}var U0=xd?function(l){return xd.get(l)}:ay;function Dd(l){for(var f=l.name+"",g=Ws[f],E=Tt.call(Ws,f)?g.length:0;E--;){var O=g[E],M=O.func;if(M==null||M==l)return O.name}return f}function Zs(l){var f=Tt.call(P,"placeholder")?P:l;return f.placeholder}function De(){var l=P.iteratee||ry;return l=l===ry?q8:l,arguments.length?l(arguments[0],arguments[1]):l}function Vd(l,f){var g=l.__data__;return Jz(f)?g[typeof f=="string"?"string":"hash"]:g.map}function B0(l){for(var f=Pn(l),g=f.length;g--;){var E=f[g],O=l[E];f[g]=[E,O,N4(O)]}return f}function wo(l,f){var g=eB(l,f);return Q8(g)?g:n}function Wz(l){var f=Tt.call(l,mo),g=l[mo];try{l[mo]=n;var E=!0}catch{}var O=gd.call(l);return E&&(f?l[mo]=g:delete l[mo]),O}var z0=m0?function(l){return l==null?[]:(l=Vt(l),Pa(m0(l),function(f){return M8.call(l,f)}))}:oy,T4=m0?function(l){for(var f=[];l;)Ia(f,z0(l)),l=bd(l);return f}:oy,Yn=ir;(g0&&Yn(new g0(new ArrayBuffer(1)))!=Yt||xc&&Yn(new xc)!=ye||v0&&Yn(v0.resolve())!=tt||Hs&&Yn(new Hs)!=Le||_c&&Yn(new _c)!=$e)&&(Yn=function(l){var f=ir(l),g=f==Pe?l.constructor:n,E=g?So(g):"";if(E)switch(E){case AB:return Yt;case kB:return ye;case TB:return tt;case OB:return Le;case RB:return $e}return f});function Gz(l,f,g){for(var E=-1,O=g.length;++E<O;){var M=g[E],H=M.size;switch(M.type){case"drop":l+=H;break;case"dropRight":f-=H;break;case"take":f=Gn(f,l+H);break;case"takeRight":l=Cn(l,f-H);break}}return{start:l,end:f}}function Yz(l){var f=l.match(mr);return f?f[1].split(bt):[]}function O4(l,f,g){f=Da(f,l);for(var E=-1,O=f.length,M=!1;++E<O;){var H=Vi(f[E]);if(!(M=l!=null&&g(l,H)))break;l=l[H]}return M||++E!=O?M:(O=l==null?0:l.length,!!O&&Yd(O)&&oa(H,O)&&(qe(l)||Eo(l)))}function Kz(l){var f=l.length,g=new l.constructor(f);return f&&typeof l[0]=="string"&&Tt.call(l,"index")&&(g.index=l.index,g.input=l.input),g}function R4(l){return typeof l.constructor=="function"&&!Mc(l)?Gs(bd(l)):{}}function Zz(l,f,g){var E=l.constructor;switch(f){case Ht:return L0(l);case le:case ve:return new E(+l);case Yt:return Nz(l,g);case bn:case dr:case vt:case yt:case nn:case Xt:case jt:case wn:case $t:return d4(l,g);case ye:return new E;case Fe:case Ze:return new E(l);case nt:return Pz(l);case Le:return new E;case _t:return Iz(l)}}function Qz(l,f){var g=f.length;if(!g)return l;var E=g-1;return f[E]=(g>1?"& ":"")+f[E],f=f.join(g>2?", ":" "),l.replace(Nn,`{
53
+ */var LA=El.exports,P2;function FA(){return P2||(P2=1,(function(t,e){(function(){var n,r="4.17.23",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",h=1,m=2,p=4,y=1,b=2,v=1,x=2,_=4,T=8,C=16,w=32,A=64,k=128,R=256,I=512,U=30,D="...",z=800,Y=16,j=1,F=2,V=3,G=1/0,B=9007199254740991,q=17976931348623157e292,W=NaN,K=4294967295,te=K-1,ne=K>>>1,ce=[["ary",k],["bind",v],["bindKey",x],["curry",T],["curryRight",C],["flip",I],["partial",w],["partialRight",A],["rearg",R]],ie="[object Arguments]",J="[object Array]",ue="[object AsyncFunction]",le="[object Boolean]",ve="[object Date]",he="[object DOMException]",be="[object Error]",ee="[object Function]",Ie="[object GeneratorFunction]",ye="[object Map]",Fe="[object Number]",at="[object Null]",Pe="[object Object]",tt="[object Promise]",Ae="[object Proxy]",nt="[object RegExp]",Le="[object Set]",Ze="[object String]",_t="[object Symbol]",Ee="[object Undefined]",$e="[object WeakMap]",At="[object WeakSet]",Ht="[object ArrayBuffer]",Yt="[object DataView]",bn="[object Float32Array]",dr="[object Float64Array]",vt="[object Int8Array]",yt="[object Int16Array]",nn="[object Int32Array]",Xt="[object Uint8Array]",jt="[object Uint8ClampedArray]",wn="[object Uint16Array]",$t="[object Uint32Array]",Hn=/\b__p \+= '';/g,Ji=/\b(__p \+=) '' \+/g,Yr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,hr=/&(?:amp|lt|gt|quot|#39);/g,Pi=/[&<>"']/g,pr=RegExp(hr.source),$n=RegExp(Pi.source),sn=/<%-([\s\S]+?)%>/g,Qe=/<%([\s\S]+?)%>/g,Sn=/<%=([\s\S]+?)%>/g,hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mt=/^\w*$/,ut=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wt=/[\\^$.*+?()[\]{}|]/g,er=RegExp(Wt.source),pn=/^\s+/,ht=/\s/,Nn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mr=/\{\n\/\* \[wrapped with (.+)\] \*/,bt=/,? & /,Dt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mn=/[()=,{}\[\]\/\s]/,Pt=/\\(\\)?/g,tr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Kr=/\w*$/,Wn=/^[-+]0x[0-9a-f]+$/i,Ln=/^0b[01]+$/i,gr=/^\[object .+?Constructor\]$/,ke=/^0o[0-7]+$/i,Z=/^(?:0|[1-9]\d*)$/,pe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,wt=/['\n\r\u2028\u2029\\]/g,Gt="\\ud800-\\udfff",kt="\\u0300-\\u036f",ln="\\ufe20-\\ufe2f",nr="\\u20d0-\\u20ff",vr=kt+ln+nr,mi="\\u2700-\\u27bf",Ft="a-z\\xdf-\\xf6\\xf8-\\xff",Zr="\\xac\\xb1\\xd7\\xf7",Ii="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xi="\\u2000-\\u206f",lo=" \\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",$i="A-Z\\xc0-\\xd6\\xd8-\\xde",yr="\\ufe0e\\ufe0f",gi=Zr+Ii+Xi+lo,Qr="['’]",Mi="["+Gt+"]",ka="["+gi+"]",Ta="["+vr+"]",co="\\d+",Ts="["+mi+"]",uo="["+Ft+"]",Os="[^"+Gt+gi+co+mi+Ft+$i+"]",fo="\\ud83c[\\udffb-\\udfff]",Rs="(?:"+Ta+"|"+fo+")",Ns="[^"+Gt+"]",ho="(?:\\ud83c[\\udde6-\\uddff]){2}",Oa="[\\ud800-\\udbff][\\udc00-\\udfff]",Li="["+$i+"]",Ps="\\u200d",Is="(?:"+uo+"|"+Os+")",qr="(?:"+Li+"|"+Os+")",Ra="(?:"+Qr+"(?:d|ll|m|re|s|t|ve))?",Ms="(?:"+Qr+"(?:D|LL|M|RE|S|T|VE))?",rr=Rs+"?",ea="["+yr+"]?",po="(?:"+Ps+"(?:"+[Ns,ho,Oa].join("|")+")"+ea+rr+")*",vi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Na=ea+rr+po,Ls="(?:"+[Ts,ho,Oa].join("|")+")"+Na,bc="(?:"+[Ns+Ta+"?",Ta,ho,Oa,Mi].join("|")+")",wc=RegExp(Qr,"g"),Sc=RegExp(Ta,"g"),Oe=RegExp(fo+"(?="+fo+")|"+bc+Na,"g"),Ve=RegExp([Li+"?"+uo+"+"+Ra+"(?="+[ka,Li,"$"].join("|")+")",qr+"+"+Ms+"(?="+[ka,Li+Is,"$"].join("|")+")",Li+"?"+Is+"+"+Ra,Li+"+"+Ms,Fi,vi,co,Ls].join("|"),"g"),Bt=RegExp("["+Ps+Gt+vr+yr+"]"),cn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kt=["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"],Fs=-1,It={};It[bn]=It[dr]=It[vt]=It[yt]=It[nn]=It[Xt]=It[jt]=It[wn]=It[$t]=!0,It[ie]=It[J]=It[Ht]=It[le]=It[Yt]=It[ve]=It[be]=It[ee]=It[ye]=It[Fe]=It[Pe]=It[nt]=It[Le]=It[Ze]=It[$e]=!1;var Mt={};Mt[ie]=Mt[J]=Mt[Ht]=Mt[Yt]=Mt[le]=Mt[ve]=Mt[bn]=Mt[dr]=Mt[vt]=Mt[yt]=Mt[nn]=Mt[ye]=Mt[Fe]=Mt[Pe]=Mt[nt]=Mt[Le]=Mt[Ze]=Mt[_t]=Mt[Xt]=Mt[jt]=Mt[wn]=Mt[$t]=!0,Mt[be]=Mt[ee]=Mt[$e]=!1;var js={À:"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"},LU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},FU={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},jU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},DU=parseFloat,VU=parseInt,h8=typeof fu=="object"&&fu&&fu.Object===Object&&fu,UU=typeof self=="object"&&self&&self.Object===Object&&self,Fn=h8||UU||Function("return this")(),r0=e&&!e.nodeType&&e,mo=r0&&!0&&t&&!t.nodeType&&t,p8=mo&&mo.exports===r0,i0=p8&&h8.process,Jr=(function(){try{var X=mo&&mo.require&&mo.require("util").types;return X||i0&&i0.binding&&i0.binding("util")}catch{}})(),m8=Jr&&Jr.isArrayBuffer,g8=Jr&&Jr.isDate,v8=Jr&&Jr.isMap,y8=Jr&&Jr.isRegExp,b8=Jr&&Jr.isSet,w8=Jr&&Jr.isTypedArray;function Or(X,de,se){switch(se.length){case 0:return X.call(de);case 1:return X.call(de,se[0]);case 2:return X.call(de,se[0],se[1]);case 3:return X.call(de,se[0],se[1],se[2])}return X.apply(de,se)}function BU(X,de,se,Re){for(var Ye=-1,St=X==null?0:X.length;++Ye<St;){var En=X[Ye];de(Re,En,se(En),X)}return Re}function Xr(X,de){for(var se=-1,Re=X==null?0:X.length;++se<Re&&de(X[se],se,X)!==!1;);return X}function zU(X,de){for(var se=X==null?0:X.length;se--&&de(X[se],se,X)!==!1;);return X}function S8(X,de){for(var se=-1,Re=X==null?0:X.length;++se<Re;)if(!de(X[se],se,X))return!1;return!0}function Pa(X,de){for(var se=-1,Re=X==null?0:X.length,Ye=0,St=[];++se<Re;){var En=X[se];de(En,se,X)&&(St[Ye++]=En)}return St}function ud(X,de){var se=X==null?0:X.length;return!!se&&Ds(X,de,0)>-1}function a0(X,de,se){for(var Re=-1,Ye=X==null?0:X.length;++Re<Ye;)if(se(de,X[Re]))return!0;return!1}function Zt(X,de){for(var se=-1,Re=X==null?0:X.length,Ye=Array(Re);++se<Re;)Ye[se]=de(X[se],se,X);return Ye}function Ia(X,de){for(var se=-1,Re=de.length,Ye=X.length;++se<Re;)X[Ye+se]=de[se];return X}function o0(X,de,se,Re){var Ye=-1,St=X==null?0:X.length;for(Re&&St&&(se=X[++Ye]);++Ye<St;)se=de(se,X[Ye],Ye,X);return se}function HU(X,de,se,Re){var Ye=X==null?0:X.length;for(Re&&Ye&&(se=X[--Ye]);Ye--;)se=de(se,X[Ye],Ye,X);return se}function s0(X,de){for(var se=-1,Re=X==null?0:X.length;++se<Re;)if(de(X[se],se,X))return!0;return!1}var WU=l0("length");function GU(X){return X.split("")}function YU(X){return X.match(Dt)||[]}function E8(X,de,se){var Re;return se(X,function(Ye,St,En){if(de(Ye,St,En))return Re=St,!1}),Re}function fd(X,de,se,Re){for(var Ye=X.length,St=se+(Re?1:-1);Re?St--:++St<Ye;)if(de(X[St],St,X))return St;return-1}function Ds(X,de,se){return de===de?iB(X,de,se):fd(X,C8,se)}function KU(X,de,se,Re){for(var Ye=se-1,St=X.length;++Ye<St;)if(Re(X[Ye],de))return Ye;return-1}function C8(X){return X!==X}function x8(X,de){var se=X==null?0:X.length;return se?u0(X,de)/se:W}function l0(X){return function(de){return de==null?n:de[X]}}function c0(X){return function(de){return X==null?n:X[de]}}function _8(X,de,se,Re,Ye){return Ye(X,function(St,En,Vt){se=Re?(Re=!1,St):de(se,St,En,Vt)}),se}function ZU(X,de){var se=X.length;for(X.sort(de);se--;)X[se]=X[se].value;return X}function u0(X,de){for(var se,Re=-1,Ye=X.length;++Re<Ye;){var St=de(X[Re]);St!==n&&(se=se===n?St:se+St)}return se}function f0(X,de){for(var se=-1,Re=Array(X);++se<X;)Re[se]=de(se);return Re}function QU(X,de){return Zt(de,function(se){return[se,X[se]]})}function A8(X){return X&&X.slice(0,R8(X)+1).replace(pn,"")}function Rr(X){return function(de){return X(de)}}function d0(X,de){return Zt(de,function(se){return X[se]})}function Ec(X,de){return X.has(de)}function k8(X,de){for(var se=-1,Re=X.length;++se<Re&&Ds(de,X[se],0)>-1;);return se}function T8(X,de){for(var se=X.length;se--&&Ds(de,X[se],0)>-1;);return se}function qU(X,de){for(var se=X.length,Re=0;se--;)X[se]===de&&++Re;return Re}var JU=c0(js),XU=c0(LU);function $U(X){return"\\"+jU[X]}function eB(X,de){return X==null?n:X[de]}function Vs(X){return Bt.test(X)}function tB(X){return cn.test(X)}function nB(X){for(var de,se=[];!(de=X.next()).done;)se.push(de.value);return se}function h0(X){var de=-1,se=Array(X.size);return X.forEach(function(Re,Ye){se[++de]=[Ye,Re]}),se}function O8(X,de){return function(se){return X(de(se))}}function Ma(X,de){for(var se=-1,Re=X.length,Ye=0,St=[];++se<Re;){var En=X[se];(En===de||En===d)&&(X[se]=d,St[Ye++]=se)}return St}function dd(X){var de=-1,se=Array(X.size);return X.forEach(function(Re){se[++de]=Re}),se}function rB(X){var de=-1,se=Array(X.size);return X.forEach(function(Re){se[++de]=[Re,Re]}),se}function iB(X,de,se){for(var Re=se-1,Ye=X.length;++Re<Ye;)if(X[Re]===de)return Re;return-1}function aB(X,de,se){for(var Re=se+1;Re--;)if(X[Re]===de)return Re;return Re}function Us(X){return Vs(X)?sB(X):WU(X)}function yi(X){return Vs(X)?lB(X):GU(X)}function R8(X){for(var de=X.length;de--&&ht.test(X.charAt(de)););return de}var oB=c0(FU);function sB(X){for(var de=Oe.lastIndex=0;Oe.test(X);)++de;return de}function lB(X){return X.match(Oe)||[]}function cB(X){return X.match(Ve)||[]}var uB=(function X(de){de=de==null?Fn:Bs.defaults(Fn.Object(),de,Bs.pick(Fn,Kt));var se=de.Array,Re=de.Date,Ye=de.Error,St=de.Function,En=de.Math,Vt=de.Object,p0=de.RegExp,fB=de.String,$r=de.TypeError,hd=se.prototype,dB=St.prototype,zs=Vt.prototype,pd=de["__core-js_shared__"],md=dB.toString,Tt=zs.hasOwnProperty,hB=0,N8=(function(){var l=/[^.]+$/.exec(pd&&pd.keys&&pd.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),gd=zs.toString,pB=md.call(Vt),mB=Fn._,gB=p0("^"+md.call(Tt).replace(Wt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vd=p8?de.Buffer:n,La=de.Symbol,yd=de.Uint8Array,P8=vd?vd.allocUnsafe:n,bd=O8(Vt.getPrototypeOf,Vt),I8=Vt.create,M8=zs.propertyIsEnumerable,wd=hd.splice,L8=La?La.isConcatSpreadable:n,Cc=La?La.iterator:n,go=La?La.toStringTag:n,Sd=(function(){try{var l=So(Vt,"defineProperty");return l({},"",{}),l}catch{}})(),vB=de.clearTimeout!==Fn.clearTimeout&&de.clearTimeout,yB=Re&&Re.now!==Fn.Date.now&&Re.now,bB=de.setTimeout!==Fn.setTimeout&&de.setTimeout,Ed=En.ceil,Cd=En.floor,m0=Vt.getOwnPropertySymbols,wB=vd?vd.isBuffer:n,F8=de.isFinite,SB=hd.join,EB=O8(Vt.keys,Vt),Cn=En.max,Gn=En.min,CB=Re.now,xB=de.parseInt,j8=En.random,_B=hd.reverse,g0=So(de,"DataView"),xc=So(de,"Map"),v0=So(de,"Promise"),Hs=So(de,"Set"),_c=So(de,"WeakMap"),Ac=So(Vt,"create"),xd=_c&&new _c,Ws={},AB=Eo(g0),kB=Eo(xc),TB=Eo(v0),OB=Eo(Hs),RB=Eo(_c),_d=La?La.prototype:n,kc=_d?_d.valueOf:n,D8=_d?_d.toString:n;function P(l){if(rn(l)&&!qe(l)&&!(l instanceof ft)){if(l instanceof ei)return l;if(Tt.call(l,"__wrapped__"))return V4(l)}return new ei(l)}var Gs=(function(){function l(){}return function(f){if(!en(f))return{};if(I8)return I8(f);l.prototype=f;var g=new l;return l.prototype=n,g}})();function Ad(){}function ei(l,f){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}P.templateSettings={escape:sn,evaluate:Qe,interpolate:Sn,variable:"",imports:{_:P}},P.prototype=Ad.prototype,P.prototype.constructor=P,ei.prototype=Gs(Ad.prototype),ei.prototype.constructor=ei;function ft(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function NB(){var l=new ft(this.__wrapped__);return l.__actions__=br(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=br(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=br(this.__views__),l}function PB(){if(this.__filtered__){var l=new ft(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function IB(){var l=this.__wrapped__.value(),f=this.__dir__,g=qe(l),E=f<0,O=g?l.length:0,M=Gz(0,O,this.__views__),H=M.start,Q=M.end,$=Q-H,me=E?Q:H-1,ge=this.__iteratees__,we=ge.length,Ce=0,Me=Gn($,this.__takeCount__);if(!g||!E&&O==$&&Me==$)return l4(l,this.__actions__);var Ue=[];e:for(;$--&&Ce<Me;){me+=f;for(var rt=-1,Be=l[me];++rt<we;){var lt=ge[rt],pt=lt.iteratee,Ir=lt.type,or=pt(Be);if(Ir==F)Be=or;else if(!or){if(Ir==j)continue e;break e}}Ue[Ce++]=Be}return Ue}ft.prototype=Gs(Ad.prototype),ft.prototype.constructor=ft;function vo(l){var f=-1,g=l==null?0:l.length;for(this.clear();++f<g;){var E=l[f];this.set(E[0],E[1])}}function MB(){this.__data__=Ac?Ac(null):{},this.size=0}function LB(l){var f=this.has(l)&&delete this.__data__[l];return this.size-=f?1:0,f}function FB(l){var f=this.__data__;if(Ac){var g=f[l];return g===c?n:g}return Tt.call(f,l)?f[l]:n}function jB(l){var f=this.__data__;return Ac?f[l]!==n:Tt.call(f,l)}function DB(l,f){var g=this.__data__;return this.size+=this.has(l)?0:1,g[l]=Ac&&f===n?c:f,this}vo.prototype.clear=MB,vo.prototype.delete=LB,vo.prototype.get=FB,vo.prototype.has=jB,vo.prototype.set=DB;function ta(l){var f=-1,g=l==null?0:l.length;for(this.clear();++f<g;){var E=l[f];this.set(E[0],E[1])}}function VB(){this.__data__=[],this.size=0}function UB(l){var f=this.__data__,g=kd(f,l);if(g<0)return!1;var E=f.length-1;return g==E?f.pop():wd.call(f,g,1),--this.size,!0}function BB(l){var f=this.__data__,g=kd(f,l);return g<0?n:f[g][1]}function zB(l){return kd(this.__data__,l)>-1}function HB(l,f){var g=this.__data__,E=kd(g,l);return E<0?(++this.size,g.push([l,f])):g[E][1]=f,this}ta.prototype.clear=VB,ta.prototype.delete=UB,ta.prototype.get=BB,ta.prototype.has=zB,ta.prototype.set=HB;function na(l){var f=-1,g=l==null?0:l.length;for(this.clear();++f<g;){var E=l[f];this.set(E[0],E[1])}}function WB(){this.size=0,this.__data__={hash:new vo,map:new(xc||ta),string:new vo}}function GB(l){var f=Vd(this,l).delete(l);return this.size-=f?1:0,f}function YB(l){return Vd(this,l).get(l)}function KB(l){return Vd(this,l).has(l)}function ZB(l,f){var g=Vd(this,l),E=g.size;return g.set(l,f),this.size+=g.size==E?0:1,this}na.prototype.clear=WB,na.prototype.delete=GB,na.prototype.get=YB,na.prototype.has=KB,na.prototype.set=ZB;function yo(l){var f=-1,g=l==null?0:l.length;for(this.__data__=new na;++f<g;)this.add(l[f])}function QB(l){return this.__data__.set(l,c),this}function qB(l){return this.__data__.has(l)}yo.prototype.add=yo.prototype.push=QB,yo.prototype.has=qB;function bi(l){var f=this.__data__=new ta(l);this.size=f.size}function JB(){this.__data__=new ta,this.size=0}function XB(l){var f=this.__data__,g=f.delete(l);return this.size=f.size,g}function $B(l){return this.__data__.get(l)}function ez(l){return this.__data__.has(l)}function tz(l,f){var g=this.__data__;if(g instanceof ta){var E=g.__data__;if(!xc||E.length<i-1)return E.push([l,f]),this.size=++g.size,this;g=this.__data__=new na(E)}return g.set(l,f),this.size=g.size,this}bi.prototype.clear=JB,bi.prototype.delete=XB,bi.prototype.get=$B,bi.prototype.has=ez,bi.prototype.set=tz;function V8(l,f){var g=qe(l),E=!g&&Co(l),O=!g&&!E&&Ua(l),M=!g&&!E&&!O&&Qs(l),H=g||E||O||M,Q=H?f0(l.length,fB):[],$=Q.length;for(var me in l)(f||Tt.call(l,me))&&!(H&&(me=="length"||O&&(me=="offset"||me=="parent")||M&&(me=="buffer"||me=="byteLength"||me=="byteOffset")||oa(me,$)))&&Q.push(me);return Q}function U8(l){var f=l.length;return f?l[T0(0,f-1)]:n}function nz(l,f){return Ud(br(l),bo(f,0,l.length))}function rz(l){return Ud(br(l))}function y0(l,f,g){(g!==n&&!wi(l[f],g)||g===n&&!(f in l))&&ra(l,f,g)}function Tc(l,f,g){var E=l[f];(!(Tt.call(l,f)&&wi(E,g))||g===n&&!(f in l))&&ra(l,f,g)}function kd(l,f){for(var g=l.length;g--;)if(wi(l[g][0],f))return g;return-1}function iz(l,f,g,E){return Fa(l,function(O,M,H){f(E,O,g(O),H)}),E}function B8(l,f){return l&&Di(f,Pn(f),l)}function az(l,f){return l&&Di(f,Sr(f),l)}function ra(l,f,g){f=="__proto__"&&Sd?Sd(l,f,{configurable:!0,enumerable:!0,value:g,writable:!0}):l[f]=g}function b0(l,f){for(var g=-1,E=f.length,O=se(E),M=l==null;++g<E;)O[g]=M?n:$0(l,f[g]);return O}function bo(l,f,g){return l===l&&(g!==n&&(l=l<=g?l:g),f!==n&&(l=l>=f?l:f)),l}function ti(l,f,g,E,O,M){var H,Q=f&h,$=f&m,me=f&p;if(g&&(H=O?g(l,E,O,M):g(l)),H!==n)return H;if(!en(l))return l;var ge=qe(l);if(ge){if(H=Kz(l),!Q)return br(l,H)}else{var we=Yn(l),Ce=we==ee||we==Ie;if(Ua(l))return f4(l,Q);if(we==Pe||we==ie||Ce&&!O){if(H=$||Ce?{}:R4(l),!Q)return $?Fz(l,az(H,l)):Lz(l,B8(H,l))}else{if(!Mt[we])return O?l:{};H=Zz(l,we,Q)}}M||(M=new bi);var Me=M.get(l);if(Me)return Me;M.set(l,H),a_(l)?l.forEach(function(Be){H.add(ti(Be,f,g,Be,l,M))}):r_(l)&&l.forEach(function(Be,lt){H.set(lt,ti(Be,f,g,lt,l,M))});var Ue=me?$?V0:D0:$?Sr:Pn,rt=ge?n:Ue(l);return Xr(rt||l,function(Be,lt){rt&&(lt=Be,Be=l[lt]),Tc(H,lt,ti(Be,f,g,lt,l,M))}),H}function oz(l){var f=Pn(l);return function(g){return z8(g,l,f)}}function z8(l,f,g){var E=g.length;if(l==null)return!E;for(l=Vt(l);E--;){var O=g[E],M=f[O],H=l[O];if(H===n&&!(O in l)||!M(H))return!1}return!0}function H8(l,f,g){if(typeof l!="function")throw new $r(o);return Lc(function(){l.apply(n,g)},f)}function Oc(l,f,g,E){var O=-1,M=ud,H=!0,Q=l.length,$=[],me=f.length;if(!Q)return $;g&&(f=Zt(f,Rr(g))),E?(M=a0,H=!1):f.length>=i&&(M=Ec,H=!1,f=new yo(f));e:for(;++O<Q;){var ge=l[O],we=g==null?ge:g(ge);if(ge=E||ge!==0?ge:0,H&&we===we){for(var Ce=me;Ce--;)if(f[Ce]===we)continue e;$.push(ge)}else M(f,we,E)||$.push(ge)}return $}var Fa=g4(ji),W8=g4(S0,!0);function sz(l,f){var g=!0;return Fa(l,function(E,O,M){return g=!!f(E,O,M),g}),g}function Td(l,f,g){for(var E=-1,O=l.length;++E<O;){var M=l[E],H=f(M);if(H!=null&&(Q===n?H===H&&!Pr(H):g(H,Q)))var Q=H,$=M}return $}function lz(l,f,g,E){var O=l.length;for(g=et(g),g<0&&(g=-g>O?0:O+g),E=E===n||E>O?O:et(E),E<0&&(E+=O),E=g>E?0:s_(E);g<E;)l[g++]=f;return l}function G8(l,f){var g=[];return Fa(l,function(E,O,M){f(E,O,M)&&g.push(E)}),g}function jn(l,f,g,E,O){var M=-1,H=l.length;for(g||(g=qz),O||(O=[]);++M<H;){var Q=l[M];f>0&&g(Q)?f>1?jn(Q,f-1,g,E,O):Ia(O,Q):E||(O[O.length]=Q)}return O}var w0=v4(),Y8=v4(!0);function ji(l,f){return l&&w0(l,f,Pn)}function S0(l,f){return l&&Y8(l,f,Pn)}function Od(l,f){return Pa(f,function(g){return sa(l[g])})}function wo(l,f){f=Da(f,l);for(var g=0,E=f.length;l!=null&&g<E;)l=l[Vi(f[g++])];return g&&g==E?l:n}function K8(l,f,g){var E=f(l);return qe(l)?E:Ia(E,g(l))}function ir(l){return l==null?l===n?Ee:at:go&&go in Vt(l)?Wz(l):rH(l)}function E0(l,f){return l>f}function cz(l,f){return l!=null&&Tt.call(l,f)}function uz(l,f){return l!=null&&f in Vt(l)}function fz(l,f,g){return l>=Gn(f,g)&&l<Cn(f,g)}function C0(l,f,g){for(var E=g?a0:ud,O=l[0].length,M=l.length,H=M,Q=se(M),$=1/0,me=[];H--;){var ge=l[H];H&&f&&(ge=Zt(ge,Rr(f))),$=Gn(ge.length,$),Q[H]=!g&&(f||O>=120&&ge.length>=120)?new yo(H&&ge):n}ge=l[0];var we=-1,Ce=Q[0];e:for(;++we<O&&me.length<$;){var Me=ge[we],Ue=f?f(Me):Me;if(Me=g||Me!==0?Me:0,!(Ce?Ec(Ce,Ue):E(me,Ue,g))){for(H=M;--H;){var rt=Q[H];if(!(rt?Ec(rt,Ue):E(l[H],Ue,g)))continue e}Ce&&Ce.push(Ue),me.push(Me)}}return me}function dz(l,f,g,E){return ji(l,function(O,M,H){f(E,g(O),M,H)}),E}function Rc(l,f,g){f=Da(f,l),l=M4(l,f);var E=l==null?l:l[Vi(ri(f))];return E==null?n:Or(E,l,g)}function Z8(l){return rn(l)&&ir(l)==ie}function hz(l){return rn(l)&&ir(l)==Ht}function pz(l){return rn(l)&&ir(l)==ve}function Nc(l,f,g,E,O){return l===f?!0:l==null||f==null||!rn(l)&&!rn(f)?l!==l&&f!==f:mz(l,f,g,E,Nc,O)}function mz(l,f,g,E,O,M){var H=qe(l),Q=qe(f),$=H?J:Yn(l),me=Q?J:Yn(f);$=$==ie?Pe:$,me=me==ie?Pe:me;var ge=$==Pe,we=me==Pe,Ce=$==me;if(Ce&&Ua(l)){if(!Ua(f))return!1;H=!0,ge=!1}if(Ce&&!ge)return M||(M=new bi),H||Qs(l)?k4(l,f,g,E,O,M):zz(l,f,$,g,E,O,M);if(!(g&y)){var Me=ge&&Tt.call(l,"__wrapped__"),Ue=we&&Tt.call(f,"__wrapped__");if(Me||Ue){var rt=Me?l.value():l,Be=Ue?f.value():f;return M||(M=new bi),O(rt,Be,g,E,M)}}return Ce?(M||(M=new bi),Hz(l,f,g,E,O,M)):!1}function gz(l){return rn(l)&&Yn(l)==ye}function x0(l,f,g,E){var O=g.length,M=O,H=!E;if(l==null)return!M;for(l=Vt(l);O--;){var Q=g[O];if(H&&Q[2]?Q[1]!==l[Q[0]]:!(Q[0]in l))return!1}for(;++O<M;){Q=g[O];var $=Q[0],me=l[$],ge=Q[1];if(H&&Q[2]){if(me===n&&!($ in l))return!1}else{var we=new bi;if(E)var Ce=E(me,ge,$,l,f,we);if(!(Ce===n?Nc(ge,me,y|b,E,we):Ce))return!1}}return!0}function Q8(l){if(!en(l)||Xz(l))return!1;var f=sa(l)?gB:gr;return f.test(Eo(l))}function vz(l){return rn(l)&&ir(l)==nt}function yz(l){return rn(l)&&Yn(l)==Le}function bz(l){return rn(l)&&Yd(l.length)&&!!It[ir(l)]}function q8(l){return typeof l=="function"?l:l==null?Er:typeof l=="object"?qe(l)?$8(l[0],l[1]):X8(l):y_(l)}function _0(l){if(!Mc(l))return EB(l);var f=[];for(var g in Vt(l))Tt.call(l,g)&&g!="constructor"&&f.push(g);return f}function wz(l){if(!en(l))return nH(l);var f=Mc(l),g=[];for(var E in l)E=="constructor"&&(f||!Tt.call(l,E))||g.push(E);return g}function A0(l,f){return l<f}function J8(l,f){var g=-1,E=wr(l)?se(l.length):[];return Fa(l,function(O,M,H){E[++g]=f(O,M,H)}),E}function X8(l){var f=B0(l);return f.length==1&&f[0][2]?P4(f[0][0],f[0][1]):function(g){return g===l||x0(g,l,f)}}function $8(l,f){return H0(l)&&N4(f)?P4(Vi(l),f):function(g){var E=$0(g,l);return E===n&&E===f?ey(g,l):Nc(f,E,y|b)}}function Rd(l,f,g,E,O){l!==f&&w0(f,function(M,H){if(O||(O=new bi),en(M))Sz(l,f,H,g,Rd,E,O);else{var Q=E?E(G0(l,H),M,H+"",l,f,O):n;Q===n&&(Q=M),y0(l,H,Q)}},Sr)}function Sz(l,f,g,E,O,M,H){var Q=G0(l,g),$=G0(f,g),me=H.get($);if(me){y0(l,g,me);return}var ge=M?M(Q,$,g+"",l,f,H):n,we=ge===n;if(we){var Ce=qe($),Me=!Ce&&Ua($),Ue=!Ce&&!Me&&Qs($);ge=$,Ce||Me||Ue?qe(Q)?ge=Q:un(Q)?ge=br(Q):Me?(we=!1,ge=f4($,!0)):Ue?(we=!1,ge=d4($,!0)):ge=[]:Fc($)||Co($)?(ge=Q,Co(Q)?ge=l_(Q):(!en(Q)||sa(Q))&&(ge=R4($))):we=!1}we&&(H.set($,ge),O(ge,$,E,M,H),H.delete($)),y0(l,g,ge)}function e4(l,f){var g=l.length;if(g)return f+=f<0?g:0,oa(f,g)?l[f]:n}function t4(l,f,g){f.length?f=Zt(f,function(M){return qe(M)?function(H){return wo(H,M.length===1?M[0]:M)}:M}):f=[Er];var E=-1;f=Zt(f,Rr(De()));var O=J8(l,function(M,H,Q){var $=Zt(f,function(me){return me(M)});return{criteria:$,index:++E,value:M}});return ZU(O,function(M,H){return Mz(M,H,g)})}function Ez(l,f){return n4(l,f,function(g,E){return ey(l,E)})}function n4(l,f,g){for(var E=-1,O=f.length,M={};++E<O;){var H=f[E],Q=wo(l,H);g(Q,H)&&Pc(M,Da(H,l),Q)}return M}function Cz(l){return function(f){return wo(f,l)}}function k0(l,f,g,E){var O=E?KU:Ds,M=-1,H=f.length,Q=l;for(l===f&&(f=br(f)),g&&(Q=Zt(l,Rr(g)));++M<H;)for(var $=0,me=f[M],ge=g?g(me):me;($=O(Q,ge,$,E))>-1;)Q!==l&&wd.call(Q,$,1),wd.call(l,$,1);return l}function r4(l,f){for(var g=l?f.length:0,E=g-1;g--;){var O=f[g];if(g==E||O!==M){var M=O;oa(O)?wd.call(l,O,1):N0(l,O)}}return l}function T0(l,f){return l+Cd(j8()*(f-l+1))}function xz(l,f,g,E){for(var O=-1,M=Cn(Ed((f-l)/(g||1)),0),H=se(M);M--;)H[E?M:++O]=l,l+=g;return H}function O0(l,f){var g="";if(!l||f<1||f>B)return g;do f%2&&(g+=l),f=Cd(f/2),f&&(l+=l);while(f);return g}function ot(l,f){return Y0(I4(l,f,Er),l+"")}function _z(l){return U8(qs(l))}function Az(l,f){var g=qs(l);return Ud(g,bo(f,0,g.length))}function Pc(l,f,g,E){if(!en(l))return l;f=Da(f,l);for(var O=-1,M=f.length,H=M-1,Q=l;Q!=null&&++O<M;){var $=Vi(f[O]),me=g;if($==="__proto__"||$==="constructor"||$==="prototype")return l;if(O!=H){var ge=Q[$];me=E?E(ge,$,Q):n,me===n&&(me=en(ge)?ge:oa(f[O+1])?[]:{})}Tc(Q,$,me),Q=Q[$]}return l}var i4=xd?function(l,f){return xd.set(l,f),l}:Er,kz=Sd?function(l,f){return Sd(l,"toString",{configurable:!0,enumerable:!1,value:ny(f),writable:!0})}:Er;function Tz(l){return Ud(qs(l))}function ni(l,f,g){var E=-1,O=l.length;f<0&&(f=-f>O?0:O+f),g=g>O?O:g,g<0&&(g+=O),O=f>g?0:g-f>>>0,f>>>=0;for(var M=se(O);++E<O;)M[E]=l[E+f];return M}function Oz(l,f){var g;return Fa(l,function(E,O,M){return g=f(E,O,M),!g}),!!g}function Nd(l,f,g){var E=0,O=l==null?E:l.length;if(typeof f=="number"&&f===f&&O<=ne){for(;E<O;){var M=E+O>>>1,H=l[M];H!==null&&!Pr(H)&&(g?H<=f:H<f)?E=M+1:O=M}return O}return R0(l,f,Er,g)}function R0(l,f,g,E){var O=0,M=l==null?0:l.length;if(M===0)return 0;f=g(f);for(var H=f!==f,Q=f===null,$=Pr(f),me=f===n;O<M;){var ge=Cd((O+M)/2),we=g(l[ge]),Ce=we!==n,Me=we===null,Ue=we===we,rt=Pr(we);if(H)var Be=E||Ue;else me?Be=Ue&&(E||Ce):Q?Be=Ue&&Ce&&(E||!Me):$?Be=Ue&&Ce&&!Me&&(E||!rt):Me||rt?Be=!1:Be=E?we<=f:we<f;Be?O=ge+1:M=ge}return Gn(M,te)}function a4(l,f){for(var g=-1,E=l.length,O=0,M=[];++g<E;){var H=l[g],Q=f?f(H):H;if(!g||!wi(Q,$)){var $=Q;M[O++]=H===0?0:H}}return M}function o4(l){return typeof l=="number"?l:Pr(l)?W:+l}function Nr(l){if(typeof l=="string")return l;if(qe(l))return Zt(l,Nr)+"";if(Pr(l))return D8?D8.call(l):"";var f=l+"";return f=="0"&&1/l==-G?"-0":f}function ja(l,f,g){var E=-1,O=ud,M=l.length,H=!0,Q=[],$=Q;if(g)H=!1,O=a0;else if(M>=i){var me=f?null:Uz(l);if(me)return dd(me);H=!1,O=Ec,$=new yo}else $=f?[]:Q;e:for(;++E<M;){var ge=l[E],we=f?f(ge):ge;if(ge=g||ge!==0?ge:0,H&&we===we){for(var Ce=$.length;Ce--;)if($[Ce]===we)continue e;f&&$.push(we),Q.push(ge)}else O($,we,g)||($!==Q&&$.push(we),Q.push(ge))}return Q}function N0(l,f){f=Da(f,l);var g=-1,E=f.length;if(!E)return!0;for(var O=l==null||typeof l!="object"&&typeof l!="function";++g<E;){var M=f[g];if(typeof M=="string"){if(M==="__proto__"&&!Tt.call(l,"__proto__"))return!1;if(M==="constructor"&&g+1<E&&typeof f[g+1]=="string"&&f[g+1]==="prototype"){if(O&&g===0)continue;return!1}}}var H=M4(l,f);return H==null||delete H[Vi(ri(f))]}function s4(l,f,g,E){return Pc(l,f,g(wo(l,f)),E)}function Pd(l,f,g,E){for(var O=l.length,M=E?O:-1;(E?M--:++M<O)&&f(l[M],M,l););return g?ni(l,E?0:M,E?M+1:O):ni(l,E?M+1:0,E?O:M)}function l4(l,f){var g=l;return g instanceof ft&&(g=g.value()),o0(f,function(E,O){return O.func.apply(O.thisArg,Ia([E],O.args))},g)}function P0(l,f,g){var E=l.length;if(E<2)return E?ja(l[0]):[];for(var O=-1,M=se(E);++O<E;)for(var H=l[O],Q=-1;++Q<E;)Q!=O&&(M[O]=Oc(M[O]||H,l[Q],f,g));return ja(jn(M,1),f,g)}function c4(l,f,g){for(var E=-1,O=l.length,M=f.length,H={};++E<O;){var Q=E<M?f[E]:n;g(H,l[E],Q)}return H}function I0(l){return un(l)?l:[]}function M0(l){return typeof l=="function"?l:Er}function Da(l,f){return qe(l)?l:H0(l,f)?[l]:D4(Ot(l))}var Rz=ot;function Va(l,f,g){var E=l.length;return g=g===n?E:g,!f&&g>=E?l:ni(l,f,g)}var u4=vB||function(l){return Fn.clearTimeout(l)};function f4(l,f){if(f)return l.slice();var g=l.length,E=P8?P8(g):new l.constructor(g);return l.copy(E),E}function L0(l){var f=new l.constructor(l.byteLength);return new yd(f).set(new yd(l)),f}function Nz(l,f){var g=f?L0(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.byteLength)}function Pz(l){var f=new l.constructor(l.source,Kr.exec(l));return f.lastIndex=l.lastIndex,f}function Iz(l){return kc?Vt(kc.call(l)):{}}function d4(l,f){var g=f?L0(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.length)}function h4(l,f){if(l!==f){var g=l!==n,E=l===null,O=l===l,M=Pr(l),H=f!==n,Q=f===null,$=f===f,me=Pr(f);if(!Q&&!me&&!M&&l>f||M&&H&&$&&!Q&&!me||E&&H&&$||!g&&$||!O)return 1;if(!E&&!M&&!me&&l<f||me&&g&&O&&!E&&!M||Q&&g&&O||!H&&O||!$)return-1}return 0}function Mz(l,f,g){for(var E=-1,O=l.criteria,M=f.criteria,H=O.length,Q=g.length;++E<H;){var $=h4(O[E],M[E]);if($){if(E>=Q)return $;var me=g[E];return $*(me=="desc"?-1:1)}}return l.index-f.index}function p4(l,f,g,E){for(var O=-1,M=l.length,H=g.length,Q=-1,$=f.length,me=Cn(M-H,0),ge=se($+me),we=!E;++Q<$;)ge[Q]=f[Q];for(;++O<H;)(we||O<M)&&(ge[g[O]]=l[O]);for(;me--;)ge[Q++]=l[O++];return ge}function m4(l,f,g,E){for(var O=-1,M=l.length,H=-1,Q=g.length,$=-1,me=f.length,ge=Cn(M-Q,0),we=se(ge+me),Ce=!E;++O<ge;)we[O]=l[O];for(var Me=O;++$<me;)we[Me+$]=f[$];for(;++H<Q;)(Ce||O<M)&&(we[Me+g[H]]=l[O++]);return we}function br(l,f){var g=-1,E=l.length;for(f||(f=se(E));++g<E;)f[g]=l[g];return f}function Di(l,f,g,E){var O=!g;g||(g={});for(var M=-1,H=f.length;++M<H;){var Q=f[M],$=E?E(g[Q],l[Q],Q,g,l):n;$===n&&($=l[Q]),O?ra(g,Q,$):Tc(g,Q,$)}return g}function Lz(l,f){return Di(l,z0(l),f)}function Fz(l,f){return Di(l,T4(l),f)}function Id(l,f){return function(g,E){var O=qe(g)?BU:iz,M=f?f():{};return O(g,l,De(E,2),M)}}function Ys(l){return ot(function(f,g){var E=-1,O=g.length,M=O>1?g[O-1]:n,H=O>2?g[2]:n;for(M=l.length>3&&typeof M=="function"?(O--,M):n,H&&ar(g[0],g[1],H)&&(M=O<3?n:M,O=1),f=Vt(f);++E<O;){var Q=g[E];Q&&l(f,Q,E,M)}return f})}function g4(l,f){return function(g,E){if(g==null)return g;if(!wr(g))return l(g,E);for(var O=g.length,M=f?O:-1,H=Vt(g);(f?M--:++M<O)&&E(H[M],M,H)!==!1;);return g}}function v4(l){return function(f,g,E){for(var O=-1,M=Vt(f),H=E(f),Q=H.length;Q--;){var $=H[l?Q:++O];if(g(M[$],$,M)===!1)break}return f}}function jz(l,f,g){var E=f&v,O=Ic(l);function M(){var H=this&&this!==Fn&&this instanceof M?O:l;return H.apply(E?g:this,arguments)}return M}function y4(l){return function(f){f=Ot(f);var g=Vs(f)?yi(f):n,E=g?g[0]:f.charAt(0),O=g?Va(g,1).join(""):f.slice(1);return E[l]()+O}}function Ks(l){return function(f){return o0(g_(m_(f).replace(wc,"")),l,"")}}function Ic(l){return function(){var f=arguments;switch(f.length){case 0:return new l;case 1:return new l(f[0]);case 2:return new l(f[0],f[1]);case 3:return new l(f[0],f[1],f[2]);case 4:return new l(f[0],f[1],f[2],f[3]);case 5:return new l(f[0],f[1],f[2],f[3],f[4]);case 6:return new l(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new l(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var g=Gs(l.prototype),E=l.apply(g,f);return en(E)?E:g}}function Dz(l,f,g){var E=Ic(l);function O(){for(var M=arguments.length,H=se(M),Q=M,$=Zs(O);Q--;)H[Q]=arguments[Q];var me=M<3&&H[0]!==$&&H[M-1]!==$?[]:Ma(H,$);if(M-=me.length,M<g)return C4(l,f,Md,O.placeholder,n,H,me,n,n,g-M);var ge=this&&this!==Fn&&this instanceof O?E:l;return Or(ge,this,H)}return O}function b4(l){return function(f,g,E){var O=Vt(f);if(!wr(f)){var M=De(g,3);f=Pn(f),g=function(Q){return M(O[Q],Q,O)}}var H=l(f,g,E);return H>-1?O[M?f[H]:H]:n}}function w4(l){return aa(function(f){var g=f.length,E=g,O=ei.prototype.thru;for(l&&f.reverse();E--;){var M=f[E];if(typeof M!="function")throw new $r(o);if(O&&!H&&Dd(M)=="wrapper")var H=new ei([],!0)}for(E=H?E:g;++E<g;){M=f[E];var Q=Dd(M),$=Q=="wrapper"?U0(M):n;$&&W0($[0])&&$[1]==(k|T|w|R)&&!$[4].length&&$[9]==1?H=H[Dd($[0])].apply(H,$[3]):H=M.length==1&&W0(M)?H[Q]():H.thru(M)}return function(){var me=arguments,ge=me[0];if(H&&me.length==1&&qe(ge))return H.plant(ge).value();for(var we=0,Ce=g?f[we].apply(this,me):ge;++we<g;)Ce=f[we].call(this,Ce);return Ce}})}function Md(l,f,g,E,O,M,H,Q,$,me){var ge=f&k,we=f&v,Ce=f&x,Me=f&(T|C),Ue=f&I,rt=Ce?n:Ic(l);function Be(){for(var lt=arguments.length,pt=se(lt),Ir=lt;Ir--;)pt[Ir]=arguments[Ir];if(Me)var or=Zs(Be),Mr=qU(pt,or);if(E&&(pt=p4(pt,E,O,Me)),M&&(pt=m4(pt,M,H,Me)),lt-=Mr,Me&&lt<me){var fn=Ma(pt,or);return C4(l,f,Md,Be.placeholder,g,pt,fn,Q,$,me-lt)}var Si=we?g:this,ca=Ce?Si[l]:l;return lt=pt.length,Q?pt=iH(pt,Q):Ue&&lt>1&&pt.reverse(),ge&&$<lt&&(pt.length=$),this&&this!==Fn&&this instanceof Be&&(ca=rt||Ic(ca)),ca.apply(Si,pt)}return Be}function S4(l,f){return function(g,E){return dz(g,l,f(E),{})}}function Ld(l,f){return function(g,E){var O;if(g===n&&E===n)return f;if(g!==n&&(O=g),E!==n){if(O===n)return E;typeof g=="string"||typeof E=="string"?(g=Nr(g),E=Nr(E)):(g=o4(g),E=o4(E)),O=l(g,E)}return O}}function F0(l){return aa(function(f){return f=Zt(f,Rr(De())),ot(function(g){var E=this;return l(f,function(O){return Or(O,E,g)})})})}function Fd(l,f){f=f===n?" ":Nr(f);var g=f.length;if(g<2)return g?O0(f,l):f;var E=O0(f,Ed(l/Us(f)));return Vs(f)?Va(yi(E),0,l).join(""):E.slice(0,l)}function Vz(l,f,g,E){var O=f&v,M=Ic(l);function H(){for(var Q=-1,$=arguments.length,me=-1,ge=E.length,we=se(ge+$),Ce=this&&this!==Fn&&this instanceof H?M:l;++me<ge;)we[me]=E[me];for(;$--;)we[me++]=arguments[++Q];return Or(Ce,O?g:this,we)}return H}function E4(l){return function(f,g,E){return E&&typeof E!="number"&&ar(f,g,E)&&(g=E=n),f=la(f),g===n?(g=f,f=0):g=la(g),E=E===n?f<g?1:-1:la(E),xz(f,g,E,l)}}function jd(l){return function(f,g){return typeof f=="string"&&typeof g=="string"||(f=ii(f),g=ii(g)),l(f,g)}}function C4(l,f,g,E,O,M,H,Q,$,me){var ge=f&T,we=ge?H:n,Ce=ge?n:H,Me=ge?M:n,Ue=ge?n:M;f|=ge?w:A,f&=~(ge?A:w),f&_||(f&=-4);var rt=[l,f,O,Me,we,Ue,Ce,Q,$,me],Be=g.apply(n,rt);return W0(l)&&L4(Be,rt),Be.placeholder=E,F4(Be,l,f)}function j0(l){var f=En[l];return function(g,E){if(g=ii(g),E=E==null?0:Gn(et(E),292),E&&F8(g)){var O=(Ot(g)+"e").split("e"),M=f(O[0]+"e"+(+O[1]+E));return O=(Ot(M)+"e").split("e"),+(O[0]+"e"+(+O[1]-E))}return f(g)}}var Uz=Hs&&1/dd(new Hs([,-0]))[1]==G?function(l){return new Hs(l)}:ay;function x4(l){return function(f){var g=Yn(f);return g==ye?h0(f):g==Le?rB(f):QU(f,l(f))}}function ia(l,f,g,E,O,M,H,Q){var $=f&x;if(!$&&typeof l!="function")throw new $r(o);var me=E?E.length:0;if(me||(f&=-97,E=O=n),H=H===n?H:Cn(et(H),0),Q=Q===n?Q:et(Q),me-=O?O.length:0,f&A){var ge=E,we=O;E=O=n}var Ce=$?n:U0(l),Me=[l,f,g,E,O,ge,we,M,H,Q];if(Ce&&tH(Me,Ce),l=Me[0],f=Me[1],g=Me[2],E=Me[3],O=Me[4],Q=Me[9]=Me[9]===n?$?0:l.length:Cn(Me[9]-me,0),!Q&&f&(T|C)&&(f&=-25),!f||f==v)var Ue=jz(l,f,g);else f==T||f==C?Ue=Dz(l,f,Q):(f==w||f==(v|w))&&!O.length?Ue=Vz(l,f,g,E):Ue=Md.apply(n,Me);var rt=Ce?i4:L4;return F4(rt(Ue,Me),l,f)}function _4(l,f,g,E){return l===n||wi(l,zs[g])&&!Tt.call(E,g)?f:l}function A4(l,f,g,E,O,M){return en(l)&&en(f)&&(M.set(f,l),Rd(l,f,n,A4,M),M.delete(f)),l}function Bz(l){return Fc(l)?n:l}function k4(l,f,g,E,O,M){var H=g&y,Q=l.length,$=f.length;if(Q!=$&&!(H&&$>Q))return!1;var me=M.get(l),ge=M.get(f);if(me&&ge)return me==f&&ge==l;var we=-1,Ce=!0,Me=g&b?new yo:n;for(M.set(l,f),M.set(f,l);++we<Q;){var Ue=l[we],rt=f[we];if(E)var Be=H?E(rt,Ue,we,f,l,M):E(Ue,rt,we,l,f,M);if(Be!==n){if(Be)continue;Ce=!1;break}if(Me){if(!s0(f,function(lt,pt){if(!Ec(Me,pt)&&(Ue===lt||O(Ue,lt,g,E,M)))return Me.push(pt)})){Ce=!1;break}}else if(!(Ue===rt||O(Ue,rt,g,E,M))){Ce=!1;break}}return M.delete(l),M.delete(f),Ce}function zz(l,f,g,E,O,M,H){switch(g){case Yt:if(l.byteLength!=f.byteLength||l.byteOffset!=f.byteOffset)return!1;l=l.buffer,f=f.buffer;case Ht:return!(l.byteLength!=f.byteLength||!M(new yd(l),new yd(f)));case le:case ve:case Fe:return wi(+l,+f);case be:return l.name==f.name&&l.message==f.message;case nt:case Ze:return l==f+"";case ye:var Q=h0;case Le:var $=E&y;if(Q||(Q=dd),l.size!=f.size&&!$)return!1;var me=H.get(l);if(me)return me==f;E|=b,H.set(l,f);var ge=k4(Q(l),Q(f),E,O,M,H);return H.delete(l),ge;case _t:if(kc)return kc.call(l)==kc.call(f)}return!1}function Hz(l,f,g,E,O,M){var H=g&y,Q=D0(l),$=Q.length,me=D0(f),ge=me.length;if($!=ge&&!H)return!1;for(var we=$;we--;){var Ce=Q[we];if(!(H?Ce in f:Tt.call(f,Ce)))return!1}var Me=M.get(l),Ue=M.get(f);if(Me&&Ue)return Me==f&&Ue==l;var rt=!0;M.set(l,f),M.set(f,l);for(var Be=H;++we<$;){Ce=Q[we];var lt=l[Ce],pt=f[Ce];if(E)var Ir=H?E(pt,lt,Ce,f,l,M):E(lt,pt,Ce,l,f,M);if(!(Ir===n?lt===pt||O(lt,pt,g,E,M):Ir)){rt=!1;break}Be||(Be=Ce=="constructor")}if(rt&&!Be){var or=l.constructor,Mr=f.constructor;or!=Mr&&"constructor"in l&&"constructor"in f&&!(typeof or=="function"&&or instanceof or&&typeof Mr=="function"&&Mr instanceof Mr)&&(rt=!1)}return M.delete(l),M.delete(f),rt}function aa(l){return Y0(I4(l,n,z4),l+"")}function D0(l){return K8(l,Pn,z0)}function V0(l){return K8(l,Sr,T4)}var U0=xd?function(l){return xd.get(l)}:ay;function Dd(l){for(var f=l.name+"",g=Ws[f],E=Tt.call(Ws,f)?g.length:0;E--;){var O=g[E],M=O.func;if(M==null||M==l)return O.name}return f}function Zs(l){var f=Tt.call(P,"placeholder")?P:l;return f.placeholder}function De(){var l=P.iteratee||ry;return l=l===ry?q8:l,arguments.length?l(arguments[0],arguments[1]):l}function Vd(l,f){var g=l.__data__;return Jz(f)?g[typeof f=="string"?"string":"hash"]:g.map}function B0(l){for(var f=Pn(l),g=f.length;g--;){var E=f[g],O=l[E];f[g]=[E,O,N4(O)]}return f}function So(l,f){var g=eB(l,f);return Q8(g)?g:n}function Wz(l){var f=Tt.call(l,go),g=l[go];try{l[go]=n;var E=!0}catch{}var O=gd.call(l);return E&&(f?l[go]=g:delete l[go]),O}var z0=m0?function(l){return l==null?[]:(l=Vt(l),Pa(m0(l),function(f){return M8.call(l,f)}))}:oy,T4=m0?function(l){for(var f=[];l;)Ia(f,z0(l)),l=bd(l);return f}:oy,Yn=ir;(g0&&Yn(new g0(new ArrayBuffer(1)))!=Yt||xc&&Yn(new xc)!=ye||v0&&Yn(v0.resolve())!=tt||Hs&&Yn(new Hs)!=Le||_c&&Yn(new _c)!=$e)&&(Yn=function(l){var f=ir(l),g=f==Pe?l.constructor:n,E=g?Eo(g):"";if(E)switch(E){case AB:return Yt;case kB:return ye;case TB:return tt;case OB:return Le;case RB:return $e}return f});function Gz(l,f,g){for(var E=-1,O=g.length;++E<O;){var M=g[E],H=M.size;switch(M.type){case"drop":l+=H;break;case"dropRight":f-=H;break;case"take":f=Gn(f,l+H);break;case"takeRight":l=Cn(l,f-H);break}}return{start:l,end:f}}function Yz(l){var f=l.match(mr);return f?f[1].split(bt):[]}function O4(l,f,g){f=Da(f,l);for(var E=-1,O=f.length,M=!1;++E<O;){var H=Vi(f[E]);if(!(M=l!=null&&g(l,H)))break;l=l[H]}return M||++E!=O?M:(O=l==null?0:l.length,!!O&&Yd(O)&&oa(H,O)&&(qe(l)||Co(l)))}function Kz(l){var f=l.length,g=new l.constructor(f);return f&&typeof l[0]=="string"&&Tt.call(l,"index")&&(g.index=l.index,g.input=l.input),g}function R4(l){return typeof l.constructor=="function"&&!Mc(l)?Gs(bd(l)):{}}function Zz(l,f,g){var E=l.constructor;switch(f){case Ht:return L0(l);case le:case ve:return new E(+l);case Yt:return Nz(l,g);case bn:case dr:case vt:case yt:case nn:case Xt:case jt:case wn:case $t:return d4(l,g);case ye:return new E;case Fe:case Ze:return new E(l);case nt:return Pz(l);case Le:return new E;case _t:return Iz(l)}}function Qz(l,f){var g=f.length;if(!g)return l;var E=g-1;return f[E]=(g>1?"& ":"")+f[E],f=f.join(g>2?", ":" "),l.replace(Nn,`{
54
54
  /* [wrapped with `+f+`] */
55
- `)}function qz(l){return qe(l)||Eo(l)||!!(L8&&l&&l[L8])}function oa(l,f){var g=typeof l;return f=f??B,!!f&&(g=="number"||g!="symbol"&&Z.test(l))&&l>-1&&l%1==0&&l<f}function ar(l,f,g){if(!en(g))return!1;var E=typeof f;return(E=="number"?wr(g)&&oa(f,g.length):E=="string"&&f in g)?wi(g[f],l):!1}function H0(l,f){if(qe(l))return!1;var g=typeof l;return g=="number"||g=="symbol"||g=="boolean"||l==null||Pr(l)?!0:mt.test(l)||!hn.test(l)||f!=null&&l in Vt(f)}function Jz(l){var f=typeof l;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?l!=="__proto__":l===null}function W0(l){var f=Dd(l),g=P[f];if(typeof g!="function"||!(f in ft.prototype))return!1;if(l===g)return!0;var E=U0(g);return!!E&&l===E[0]}function Xz(l){return!!N8&&N8 in l}var $z=pd?sa:sy;function Mc(l){var f=l&&l.constructor,g=typeof f=="function"&&f.prototype||zs;return l===g}function N4(l){return l===l&&!en(l)}function P4(l,f){return function(g){return g==null?!1:g[l]===f&&(f!==n||l in Vt(g))}}function eH(l){var f=Wd(l,function(E){return g.size===u&&g.clear(),E}),g=f.cache;return f}function tH(l,f){var g=l[1],E=f[1],O=g|E,M=O<(v|x|k),H=E==k&&g==T||E==k&&g==R&&l[7].length<=f[8]||E==(k|R)&&f[7].length<=f[8]&&g==T;if(!(M||H))return l;E&v&&(l[2]=f[2],O|=g&v?0:_);var Q=f[3];if(Q){var $=l[3];l[3]=$?p4($,Q,f[4]):Q,l[4]=$?Ma(l[3],d):f[4]}return Q=f[5],Q&&($=l[5],l[5]=$?m4($,Q,f[6]):Q,l[6]=$?Ma(l[5],d):f[6]),Q=f[7],Q&&(l[7]=Q),E&k&&(l[8]=l[8]==null?f[8]:Gn(l[8],f[8])),l[9]==null&&(l[9]=f[9]),l[0]=f[0],l[1]=O,l}function nH(l){var f=[];if(l!=null)for(var g in Vt(l))f.push(g);return f}function rH(l){return gd.call(l)}function I4(l,f,g){return f=Cn(f===n?l.length-1:f,0),function(){for(var E=arguments,O=-1,M=Cn(E.length-f,0),H=se(M);++O<M;)H[O]=E[f+O];O=-1;for(var Q=se(f+1);++O<f;)Q[O]=E[O];return Q[f]=g(H),Or(l,this,Q)}}function M4(l,f){return f.length<2?l:bo(l,ni(f,0,-1))}function iH(l,f){for(var g=l.length,E=Gn(f.length,g),O=br(l);E--;){var M=f[E];l[E]=oa(M,g)?O[M]:n}return l}function G0(l,f){if(!(f==="constructor"&&typeof l[f]=="function")&&f!="__proto__")return l[f]}var L4=j4(i4),Lc=bB||function(l,f){return Fn.setTimeout(l,f)},Y0=j4(kz);function F4(l,f,g){var E=f+"";return Y0(l,Qz(E,aH(Yz(E),g)))}function j4(l){var f=0,g=0;return function(){var E=CB(),O=Y-(E-g);if(g=E,O>0){if(++f>=z)return arguments[0]}else f=0;return l.apply(n,arguments)}}function Ud(l,f){var g=-1,E=l.length,O=E-1;for(f=f===n?E:f;++g<f;){var M=T0(g,O),H=l[M];l[M]=l[g],l[g]=H}return l.length=f,l}var D4=eH(function(l){var f=[];return l.charCodeAt(0)===46&&f.push(""),l.replace(ut,function(g,E,O,M){f.push(O?M.replace(Pt,"$1"):E||g)}),f});function Vi(l){if(typeof l=="string"||Pr(l))return l;var f=l+"";return f=="0"&&1/l==-G?"-0":f}function So(l){if(l!=null){try{return md.call(l)}catch{}try{return l+""}catch{}}return""}function aH(l,f){return Xr(ce,function(g){var E="_."+g[0];f&g[1]&&!ud(l,E)&&l.push(E)}),l.sort()}function V4(l){if(l instanceof ft)return l.clone();var f=new ei(l.__wrapped__,l.__chain__);return f.__actions__=br(l.__actions__),f.__index__=l.__index__,f.__values__=l.__values__,f}function oH(l,f,g){(g?ar(l,f,g):f===n)?f=1:f=Cn(et(f),0);var E=l==null?0:l.length;if(!E||f<1)return[];for(var O=0,M=0,H=se(Ed(E/f));O<E;)H[M++]=ni(l,O,O+=f);return H}function sH(l){for(var f=-1,g=l==null?0:l.length,E=0,O=[];++f<g;){var M=l[f];M&&(O[E++]=M)}return O}function lH(){var l=arguments.length;if(!l)return[];for(var f=se(l-1),g=arguments[0],E=l;E--;)f[E-1]=arguments[E];return Ia(qe(g)?br(g):[g],jn(f,1))}var cH=ot(function(l,f){return un(l)?Oc(l,jn(f,1,un,!0)):[]}),uH=ot(function(l,f){var g=ri(f);return un(g)&&(g=n),un(l)?Oc(l,jn(f,1,un,!0),De(g,2)):[]}),fH=ot(function(l,f){var g=ri(f);return un(g)&&(g=n),un(l)?Oc(l,jn(f,1,un,!0),n,g):[]});function dH(l,f,g){var E=l==null?0:l.length;return E?(f=g||f===n?1:et(f),ni(l,f<0?0:f,E)):[]}function hH(l,f,g){var E=l==null?0:l.length;return E?(f=g||f===n?1:et(f),f=E-f,ni(l,0,f<0?0:f)):[]}function pH(l,f){return l&&l.length?Pd(l,De(f,3),!0,!0):[]}function mH(l,f){return l&&l.length?Pd(l,De(f,3),!0):[]}function gH(l,f,g,E){var O=l==null?0:l.length;return O?(g&&typeof g!="number"&&ar(l,f,g)&&(g=0,E=O),lz(l,f,g,E)):[]}function U4(l,f,g){var E=l==null?0:l.length;if(!E)return-1;var O=g==null?0:et(g);return O<0&&(O=Cn(E+O,0)),fd(l,De(f,3),O)}function B4(l,f,g){var E=l==null?0:l.length;if(!E)return-1;var O=E-1;return g!==n&&(O=et(g),O=g<0?Cn(E+O,0):Gn(O,E-1)),fd(l,De(f,3),O,!0)}function z4(l){var f=l==null?0:l.length;return f?jn(l,1):[]}function vH(l){var f=l==null?0:l.length;return f?jn(l,G):[]}function yH(l,f){var g=l==null?0:l.length;return g?(f=f===n?1:et(f),jn(l,f)):[]}function bH(l){for(var f=-1,g=l==null?0:l.length,E={};++f<g;){var O=l[f];E[O[0]]=O[1]}return E}function H4(l){return l&&l.length?l[0]:n}function wH(l,f,g){var E=l==null?0:l.length;if(!E)return-1;var O=g==null?0:et(g);return O<0&&(O=Cn(E+O,0)),Ds(l,f,O)}function SH(l){var f=l==null?0:l.length;return f?ni(l,0,-1):[]}var EH=ot(function(l){var f=Zt(l,I0);return f.length&&f[0]===l[0]?C0(f):[]}),CH=ot(function(l){var f=ri(l),g=Zt(l,I0);return f===ri(g)?f=n:g.pop(),g.length&&g[0]===l[0]?C0(g,De(f,2)):[]}),xH=ot(function(l){var f=ri(l),g=Zt(l,I0);return f=typeof f=="function"?f:n,f&&g.pop(),g.length&&g[0]===l[0]?C0(g,n,f):[]});function _H(l,f){return l==null?"":SB.call(l,f)}function ri(l){var f=l==null?0:l.length;return f?l[f-1]:n}function AH(l,f,g){var E=l==null?0:l.length;if(!E)return-1;var O=E;return g!==n&&(O=et(g),O=O<0?Cn(E+O,0):Gn(O,E-1)),f===f?aB(l,f,O):fd(l,C8,O,!0)}function kH(l,f){return l&&l.length?e4(l,et(f)):n}var TH=ot(W4);function W4(l,f){return l&&l.length&&f&&f.length?k0(l,f):l}function OH(l,f,g){return l&&l.length&&f&&f.length?k0(l,f,De(g,2)):l}function RH(l,f,g){return l&&l.length&&f&&f.length?k0(l,f,n,g):l}var NH=aa(function(l,f){var g=l==null?0:l.length,E=b0(l,f);return r4(l,Zt(f,function(O){return oa(O,g)?+O:O}).sort(h4)),E});function PH(l,f){var g=[];if(!(l&&l.length))return g;var E=-1,O=[],M=l.length;for(f=De(f,3);++E<M;){var H=l[E];f(H,E,l)&&(g.push(H),O.push(E))}return r4(l,O),g}function K0(l){return l==null?l:_B.call(l)}function IH(l,f,g){var E=l==null?0:l.length;return E?(g&&typeof g!="number"&&ar(l,f,g)?(f=0,g=E):(f=f==null?0:et(f),g=g===n?E:et(g)),ni(l,f,g)):[]}function MH(l,f){return Nd(l,f)}function LH(l,f,g){return R0(l,f,De(g,2))}function FH(l,f){var g=l==null?0:l.length;if(g){var E=Nd(l,f);if(E<g&&wi(l[E],f))return E}return-1}function jH(l,f){return Nd(l,f,!0)}function DH(l,f,g){return R0(l,f,De(g,2),!0)}function VH(l,f){var g=l==null?0:l.length;if(g){var E=Nd(l,f,!0)-1;if(wi(l[E],f))return E}return-1}function UH(l){return l&&l.length?a4(l):[]}function BH(l,f){return l&&l.length?a4(l,De(f,2)):[]}function zH(l){var f=l==null?0:l.length;return f?ni(l,1,f):[]}function HH(l,f,g){return l&&l.length?(f=g||f===n?1:et(f),ni(l,0,f<0?0:f)):[]}function WH(l,f,g){var E=l==null?0:l.length;return E?(f=g||f===n?1:et(f),f=E-f,ni(l,f<0?0:f,E)):[]}function GH(l,f){return l&&l.length?Pd(l,De(f,3),!1,!0):[]}function YH(l,f){return l&&l.length?Pd(l,De(f,3)):[]}var KH=ot(function(l){return ja(jn(l,1,un,!0))}),ZH=ot(function(l){var f=ri(l);return un(f)&&(f=n),ja(jn(l,1,un,!0),De(f,2))}),QH=ot(function(l){var f=ri(l);return f=typeof f=="function"?f:n,ja(jn(l,1,un,!0),n,f)});function qH(l){return l&&l.length?ja(l):[]}function JH(l,f){return l&&l.length?ja(l,De(f,2)):[]}function XH(l,f){return f=typeof f=="function"?f:n,l&&l.length?ja(l,n,f):[]}function Z0(l){if(!(l&&l.length))return[];var f=0;return l=Pa(l,function(g){if(un(g))return f=Cn(g.length,f),!0}),f0(f,function(g){return Zt(l,l0(g))})}function G4(l,f){if(!(l&&l.length))return[];var g=Z0(l);return f==null?g:Zt(g,function(E){return Or(f,n,E)})}var $H=ot(function(l,f){return un(l)?Oc(l,f):[]}),eW=ot(function(l){return P0(Pa(l,un))}),tW=ot(function(l){var f=ri(l);return un(f)&&(f=n),P0(Pa(l,un),De(f,2))}),nW=ot(function(l){var f=ri(l);return f=typeof f=="function"?f:n,P0(Pa(l,un),n,f)}),rW=ot(Z0);function iW(l,f){return c4(l||[],f||[],Tc)}function aW(l,f){return c4(l||[],f||[],Pc)}var oW=ot(function(l){var f=l.length,g=f>1?l[f-1]:n;return g=typeof g=="function"?(l.pop(),g):n,G4(l,g)});function Y4(l){var f=P(l);return f.__chain__=!0,f}function sW(l,f){return f(l),l}function Bd(l,f){return f(l)}var lW=aa(function(l){var f=l.length,g=f?l[0]:0,E=this.__wrapped__,O=function(M){return b0(M,l)};return f>1||this.__actions__.length||!(E instanceof ft)||!oa(g)?this.thru(O):(E=E.slice(g,+g+(f?1:0)),E.__actions__.push({func:Bd,args:[O],thisArg:n}),new ei(E,this.__chain__).thru(function(M){return f&&!M.length&&M.push(n),M}))});function cW(){return Y4(this)}function uW(){return new ei(this.value(),this.__chain__)}function fW(){this.__values__===n&&(this.__values__=o_(this.value()));var l=this.__index__>=this.__values__.length,f=l?n:this.__values__[this.__index__++];return{done:l,value:f}}function dW(){return this}function hW(l){for(var f,g=this;g instanceof Ad;){var E=V4(g);E.__index__=0,E.__values__=n,f?O.__wrapped__=E:f=E;var O=E;g=g.__wrapped__}return O.__wrapped__=l,f}function pW(){var l=this.__wrapped__;if(l instanceof ft){var f=l;return this.__actions__.length&&(f=new ft(this)),f=f.reverse(),f.__actions__.push({func:Bd,args:[K0],thisArg:n}),new ei(f,this.__chain__)}return this.thru(K0)}function mW(){return l4(this.__wrapped__,this.__actions__)}var gW=Id(function(l,f,g){Tt.call(l,g)?++l[g]:ra(l,g,1)});function vW(l,f,g){var E=qe(l)?S8:sz;return g&&ar(l,f,g)&&(f=n),E(l,De(f,3))}function yW(l,f){var g=qe(l)?Pa:G8;return g(l,De(f,3))}var bW=b4(U4),wW=b4(B4);function SW(l,f){return jn(zd(l,f),1)}function EW(l,f){return jn(zd(l,f),G)}function CW(l,f,g){return g=g===n?1:et(g),jn(zd(l,f),g)}function K4(l,f){var g=qe(l)?Xr:Fa;return g(l,De(f,3))}function Z4(l,f){var g=qe(l)?zU:W8;return g(l,De(f,3))}var xW=Id(function(l,f,g){Tt.call(l,g)?l[g].push(f):ra(l,g,[f])});function _W(l,f,g,E){l=wr(l)?l:qs(l),g=g&&!E?et(g):0;var O=l.length;return g<0&&(g=Cn(O+g,0)),Kd(l)?g<=O&&l.indexOf(f,g)>-1:!!O&&Ds(l,f,g)>-1}var AW=ot(function(l,f,g){var E=-1,O=typeof f=="function",M=wr(l)?se(l.length):[];return Fa(l,function(H){M[++E]=O?Or(f,H,g):Rc(H,f,g)}),M}),kW=Id(function(l,f,g){ra(l,g,f)});function zd(l,f){var g=qe(l)?Zt:J8;return g(l,De(f,3))}function TW(l,f,g,E){return l==null?[]:(qe(f)||(f=f==null?[]:[f]),g=E?n:g,qe(g)||(g=g==null?[]:[g]),t4(l,f,g))}var OW=Id(function(l,f,g){l[g?0:1].push(f)},function(){return[[],[]]});function RW(l,f,g){var E=qe(l)?o0:_8,O=arguments.length<3;return E(l,De(f,4),g,O,Fa)}function NW(l,f,g){var E=qe(l)?HU:_8,O=arguments.length<3;return E(l,De(f,4),g,O,W8)}function PW(l,f){var g=qe(l)?Pa:G8;return g(l,Gd(De(f,3)))}function IW(l){var f=qe(l)?U8:_z;return f(l)}function MW(l,f,g){(g?ar(l,f,g):f===n)?f=1:f=et(f);var E=qe(l)?nz:Az;return E(l,f)}function LW(l){var f=qe(l)?rz:Tz;return f(l)}function FW(l){if(l==null)return 0;if(wr(l))return Kd(l)?Us(l):l.length;var f=Yn(l);return f==ye||f==Le?l.size:_0(l).length}function jW(l,f,g){var E=qe(l)?s0:Oz;return g&&ar(l,f,g)&&(f=n),E(l,De(f,3))}var DW=ot(function(l,f){if(l==null)return[];var g=f.length;return g>1&&ar(l,f[0],f[1])?f=[]:g>2&&ar(f[0],f[1],f[2])&&(f=[f[0]]),t4(l,jn(f,1),[])}),Hd=yB||function(){return Fn.Date.now()};function VW(l,f){if(typeof f!="function")throw new $r(o);return l=et(l),function(){if(--l<1)return f.apply(this,arguments)}}function Q4(l,f,g){return f=g?n:f,f=l&&f==null?l.length:f,ia(l,k,n,n,n,n,f)}function q4(l,f){var g;if(typeof f!="function")throw new $r(o);return l=et(l),function(){return--l>0&&(g=f.apply(this,arguments)),l<=1&&(f=n),g}}var Q0=ot(function(l,f,g){var E=v;if(g.length){var O=Ma(g,Zs(Q0));E|=w}return ia(l,E,f,g,O)}),J4=ot(function(l,f,g){var E=v|x;if(g.length){var O=Ma(g,Zs(J4));E|=w}return ia(f,E,l,g,O)});function X4(l,f,g){f=g?n:f;var E=ia(l,T,n,n,n,n,n,f);return E.placeholder=X4.placeholder,E}function $4(l,f,g){f=g?n:f;var E=ia(l,C,n,n,n,n,n,f);return E.placeholder=$4.placeholder,E}function e_(l,f,g){var E,O,M,H,Q,$,me=0,ge=!1,we=!1,Ce=!0;if(typeof l!="function")throw new $r(o);f=ii(f)||0,en(g)&&(ge=!!g.leading,we="maxWait"in g,M=we?Cn(ii(g.maxWait)||0,f):M,Ce="trailing"in g?!!g.trailing:Ce);function Me(fn){var Si=E,ca=O;return E=O=n,me=fn,H=l.apply(ca,Si),H}function Ue(fn){return me=fn,Q=Lc(lt,f),ge?Me(fn):H}function rt(fn){var Si=fn-$,ca=fn-me,b_=f-Si;return we?Gn(b_,M-ca):b_}function Be(fn){var Si=fn-$,ca=fn-me;return $===n||Si>=f||Si<0||we&&ca>=M}function lt(){var fn=Hd();if(Be(fn))return pt(fn);Q=Lc(lt,rt(fn))}function pt(fn){return Q=n,Ce&&E?Me(fn):(E=O=n,H)}function Ir(){Q!==n&&u4(Q),me=0,E=$=O=Q=n}function or(){return Q===n?H:pt(Hd())}function Mr(){var fn=Hd(),Si=Be(fn);if(E=arguments,O=this,$=fn,Si){if(Q===n)return Ue($);if(we)return u4(Q),Q=Lc(lt,f),Me($)}return Q===n&&(Q=Lc(lt,f)),H}return Mr.cancel=Ir,Mr.flush=or,Mr}var UW=ot(function(l,f){return H8(l,1,f)}),BW=ot(function(l,f,g){return H8(l,ii(f)||0,g)});function zW(l){return ia(l,I)}function Wd(l,f){if(typeof l!="function"||f!=null&&typeof f!="function")throw new $r(o);var g=function(){var E=arguments,O=f?f.apply(this,E):E[0],M=g.cache;if(M.has(O))return M.get(O);var H=l.apply(this,E);return g.cache=M.set(O,H)||M,H};return g.cache=new(Wd.Cache||na),g}Wd.Cache=na;function Gd(l){if(typeof l!="function")throw new $r(o);return function(){var f=arguments;switch(f.length){case 0:return!l.call(this);case 1:return!l.call(this,f[0]);case 2:return!l.call(this,f[0],f[1]);case 3:return!l.call(this,f[0],f[1],f[2])}return!l.apply(this,f)}}function HW(l){return q4(2,l)}var WW=Rz(function(l,f){f=f.length==1&&qe(f[0])?Zt(f[0],Rr(De())):Zt(jn(f,1),Rr(De()));var g=f.length;return ot(function(E){for(var O=-1,M=Gn(E.length,g);++O<M;)E[O]=f[O].call(this,E[O]);return Or(l,this,E)})}),q0=ot(function(l,f){var g=Ma(f,Zs(q0));return ia(l,w,n,f,g)}),t_=ot(function(l,f){var g=Ma(f,Zs(t_));return ia(l,A,n,f,g)}),GW=aa(function(l,f){return ia(l,R,n,n,n,f)});function YW(l,f){if(typeof l!="function")throw new $r(o);return f=f===n?f:et(f),ot(l,f)}function KW(l,f){if(typeof l!="function")throw new $r(o);return f=f==null?0:Cn(et(f),0),ot(function(g){var E=g[f],O=Va(g,0,f);return E&&Ia(O,E),Or(l,this,O)})}function ZW(l,f,g){var E=!0,O=!0;if(typeof l!="function")throw new $r(o);return en(g)&&(E="leading"in g?!!g.leading:E,O="trailing"in g?!!g.trailing:O),e_(l,f,{leading:E,maxWait:f,trailing:O})}function QW(l){return Q4(l,1)}function qW(l,f){return q0(M0(f),l)}function JW(){if(!arguments.length)return[];var l=arguments[0];return qe(l)?l:[l]}function XW(l){return ti(l,p)}function $W(l,f){return f=typeof f=="function"?f:n,ti(l,p,f)}function eG(l){return ti(l,h|p)}function tG(l,f){return f=typeof f=="function"?f:n,ti(l,h|p,f)}function nG(l,f){return f==null||z8(l,f,Pn(f))}function wi(l,f){return l===f||l!==l&&f!==f}var rG=jd(E0),iG=jd(function(l,f){return l>=f}),Eo=Z8((function(){return arguments})())?Z8:function(l){return rn(l)&&Tt.call(l,"callee")&&!M8.call(l,"callee")},qe=se.isArray,aG=m8?Rr(m8):hz;function wr(l){return l!=null&&Yd(l.length)&&!sa(l)}function un(l){return rn(l)&&wr(l)}function oG(l){return l===!0||l===!1||rn(l)&&ir(l)==le}var Ua=wB||sy,sG=g8?Rr(g8):pz;function lG(l){return rn(l)&&l.nodeType===1&&!Fc(l)}function cG(l){if(l==null)return!0;if(wr(l)&&(qe(l)||typeof l=="string"||typeof l.splice=="function"||Ua(l)||Qs(l)||Eo(l)))return!l.length;var f=Yn(l);if(f==ye||f==Le)return!l.size;if(Mc(l))return!_0(l).length;for(var g in l)if(Tt.call(l,g))return!1;return!0}function uG(l,f){return Nc(l,f)}function fG(l,f,g){g=typeof g=="function"?g:n;var E=g?g(l,f):n;return E===n?Nc(l,f,n,g):!!E}function J0(l){if(!rn(l))return!1;var f=ir(l);return f==be||f==he||typeof l.message=="string"&&typeof l.name=="string"&&!Fc(l)}function dG(l){return typeof l=="number"&&F8(l)}function sa(l){if(!en(l))return!1;var f=ir(l);return f==ee||f==Ie||f==ue||f==Ae}function n_(l){return typeof l=="number"&&l==et(l)}function Yd(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=B}function en(l){var f=typeof l;return l!=null&&(f=="object"||f=="function")}function rn(l){return l!=null&&typeof l=="object"}var r_=v8?Rr(v8):gz;function hG(l,f){return l===f||x0(l,f,B0(f))}function pG(l,f,g){return g=typeof g=="function"?g:n,x0(l,f,B0(f),g)}function mG(l){return i_(l)&&l!=+l}function gG(l){if($z(l))throw new Ye(a);return Q8(l)}function vG(l){return l===null}function yG(l){return l==null}function i_(l){return typeof l=="number"||rn(l)&&ir(l)==Fe}function Fc(l){if(!rn(l)||ir(l)!=Pe)return!1;var f=bd(l);if(f===null)return!0;var g=Tt.call(f,"constructor")&&f.constructor;return typeof g=="function"&&g instanceof g&&md.call(g)==pB}var X0=y8?Rr(y8):vz;function bG(l){return n_(l)&&l>=-B&&l<=B}var a_=b8?Rr(b8):yz;function Kd(l){return typeof l=="string"||!qe(l)&&rn(l)&&ir(l)==Ze}function Pr(l){return typeof l=="symbol"||rn(l)&&ir(l)==_t}var Qs=w8?Rr(w8):bz;function wG(l){return l===n}function SG(l){return rn(l)&&Yn(l)==$e}function EG(l){return rn(l)&&ir(l)==At}var CG=jd(A0),xG=jd(function(l,f){return l<=f});function o_(l){if(!l)return[];if(wr(l))return Kd(l)?yi(l):br(l);if(Cc&&l[Cc])return nB(l[Cc]());var f=Yn(l),g=f==ye?h0:f==Le?dd:qs;return g(l)}function la(l){if(!l)return l===0?l:0;if(l=ii(l),l===G||l===-G){var f=l<0?-1:1;return f*q}return l===l?l:0}function et(l){var f=la(l),g=f%1;return f===f?g?f-g:f:0}function s_(l){return l?yo(et(l),0,K):0}function ii(l){if(typeof l=="number")return l;if(Pr(l))return W;if(en(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=en(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=A8(l);var g=Ln.test(l);return g||ke.test(l)?VU(l.slice(2),g?2:8):Wn.test(l)?W:+l}function l_(l){return Di(l,Sr(l))}function _G(l){return l?yo(et(l),-B,B):l===0?l:0}function Ot(l){return l==null?"":Nr(l)}var AG=Ys(function(l,f){if(Mc(f)||wr(f)){Di(f,Pn(f),l);return}for(var g in f)Tt.call(f,g)&&Tc(l,g,f[g])}),c_=Ys(function(l,f){Di(f,Sr(f),l)}),Zd=Ys(function(l,f,g,E){Di(f,Sr(f),l,E)}),kG=Ys(function(l,f,g,E){Di(f,Pn(f),l,E)}),TG=aa(b0);function OG(l,f){var g=Gs(l);return f==null?g:B8(g,f)}var RG=ot(function(l,f){l=Vt(l);var g=-1,E=f.length,O=E>2?f[2]:n;for(O&&ar(f[0],f[1],O)&&(E=1);++g<E;)for(var M=f[g],H=Sr(M),Q=-1,$=H.length;++Q<$;){var me=H[Q],ge=l[me];(ge===n||wi(ge,zs[me])&&!Tt.call(l,me))&&(l[me]=M[me])}return l}),NG=ot(function(l){return l.push(n,A4),Or(u_,n,l)});function PG(l,f){return E8(l,De(f,3),ji)}function IG(l,f){return E8(l,De(f,3),S0)}function MG(l,f){return l==null?l:w0(l,De(f,3),Sr)}function LG(l,f){return l==null?l:Y8(l,De(f,3),Sr)}function FG(l,f){return l&&ji(l,De(f,3))}function jG(l,f){return l&&S0(l,De(f,3))}function DG(l){return l==null?[]:Od(l,Pn(l))}function VG(l){return l==null?[]:Od(l,Sr(l))}function $0(l,f,g){var E=l==null?n:bo(l,f);return E===n?g:E}function UG(l,f){return l!=null&&O4(l,f,cz)}function ey(l,f){return l!=null&&O4(l,f,uz)}var BG=S4(function(l,f,g){f!=null&&typeof f.toString!="function"&&(f=gd.call(f)),l[f]=g},ny(Er)),zG=S4(function(l,f,g){f!=null&&typeof f.toString!="function"&&(f=gd.call(f)),Tt.call(l,f)?l[f].push(g):l[f]=[g]},De),HG=ot(Rc);function Pn(l){return wr(l)?V8(l):_0(l)}function Sr(l){return wr(l)?V8(l,!0):wz(l)}function WG(l,f){var g={};return f=De(f,3),ji(l,function(E,O,M){ra(g,f(E,O,M),E)}),g}function GG(l,f){var g={};return f=De(f,3),ji(l,function(E,O,M){ra(g,O,f(E,O,M))}),g}var YG=Ys(function(l,f,g){Rd(l,f,g)}),u_=Ys(function(l,f,g,E){Rd(l,f,g,E)}),KG=aa(function(l,f){var g={};if(l==null)return g;var E=!1;f=Zt(f,function(M){return M=Da(M,l),E||(E=M.length>1),M}),Di(l,V0(l),g),E&&(g=ti(g,h|m|p,Bz));for(var O=f.length;O--;)N0(g,f[O]);return g});function ZG(l,f){return f_(l,Gd(De(f)))}var QG=aa(function(l,f){return l==null?{}:Ez(l,f)});function f_(l,f){if(l==null)return{};var g=Zt(V0(l),function(E){return[E]});return f=De(f),n4(l,g,function(E,O){return f(E,O[0])})}function qG(l,f,g){f=Da(f,l);var E=-1,O=f.length;for(O||(O=1,l=n);++E<O;){var M=l==null?n:l[Vi(f[E])];M===n&&(E=O,M=g),l=sa(M)?M.call(l):M}return l}function JG(l,f,g){return l==null?l:Pc(l,f,g)}function XG(l,f,g,E){return E=typeof E=="function"?E:n,l==null?l:Pc(l,f,g,E)}var d_=x4(Pn),h_=x4(Sr);function $G(l,f,g){var E=qe(l),O=E||Ua(l)||Qs(l);if(f=De(f,4),g==null){var M=l&&l.constructor;O?g=E?new M:[]:en(l)?g=sa(M)?Gs(bd(l)):{}:g={}}return(O?Xr:ji)(l,function(H,Q,$){return f(g,H,Q,$)}),g}function eY(l,f){return l==null?!0:N0(l,f)}function tY(l,f,g){return l==null?l:s4(l,f,M0(g))}function nY(l,f,g,E){return E=typeof E=="function"?E:n,l==null?l:s4(l,f,M0(g),E)}function qs(l){return l==null?[]:d0(l,Pn(l))}function rY(l){return l==null?[]:d0(l,Sr(l))}function iY(l,f,g){return g===n&&(g=f,f=n),g!==n&&(g=ii(g),g=g===g?g:0),f!==n&&(f=ii(f),f=f===f?f:0),yo(ii(l),f,g)}function aY(l,f,g){return f=la(f),g===n?(g=f,f=0):g=la(g),l=ii(l),fz(l,f,g)}function oY(l,f,g){if(g&&typeof g!="boolean"&&ar(l,f,g)&&(f=g=n),g===n&&(typeof f=="boolean"?(g=f,f=n):typeof l=="boolean"&&(g=l,l=n)),l===n&&f===n?(l=0,f=1):(l=la(l),f===n?(f=l,l=0):f=la(f)),l>f){var E=l;l=f,f=E}if(g||l%1||f%1){var O=j8();return Gn(l+O*(f-l+DU("1e-"+((O+"").length-1))),f)}return T0(l,f)}var sY=Ks(function(l,f,g){return f=f.toLowerCase(),l+(g?p_(f):f)});function p_(l){return ty(Ot(l).toLowerCase())}function m_(l){return l=Ot(l),l&&l.replace(pe,JU).replace(Sc,"")}function lY(l,f,g){l=Ot(l),f=Nr(f);var E=l.length;g=g===n?E:yo(et(g),0,E);var O=g;return g-=f.length,g>=0&&l.slice(g,O)==f}function cY(l){return l=Ot(l),l&&$n.test(l)?l.replace(Pi,XU):l}function uY(l){return l=Ot(l),l&&er.test(l)?l.replace(Wt,"\\$&"):l}var fY=Ks(function(l,f,g){return l+(g?"-":"")+f.toLowerCase()}),dY=Ks(function(l,f,g){return l+(g?" ":"")+f.toLowerCase()}),hY=y4("toLowerCase");function pY(l,f,g){l=Ot(l),f=et(f);var E=f?Us(l):0;if(!f||E>=f)return l;var O=(f-E)/2;return Fd(Cd(O),g)+l+Fd(Ed(O),g)}function mY(l,f,g){l=Ot(l),f=et(f);var E=f?Us(l):0;return f&&E<f?l+Fd(f-E,g):l}function gY(l,f,g){l=Ot(l),f=et(f);var E=f?Us(l):0;return f&&E<f?Fd(f-E,g)+l:l}function vY(l,f,g){return g||f==null?f=0:f&&(f=+f),xB(Ot(l).replace(pn,""),f||0)}function yY(l,f,g){return(g?ar(l,f,g):f===n)?f=1:f=et(f),O0(Ot(l),f)}function bY(){var l=arguments,f=Ot(l[0]);return l.length<3?f:f.replace(l[1],l[2])}var wY=Ks(function(l,f,g){return l+(g?"_":"")+f.toLowerCase()});function SY(l,f,g){return g&&typeof g!="number"&&ar(l,f,g)&&(f=g=n),g=g===n?K:g>>>0,g?(l=Ot(l),l&&(typeof f=="string"||f!=null&&!X0(f))&&(f=Nr(f),!f&&Vs(l))?Va(yi(l),0,g):l.split(f,g)):[]}var EY=Ks(function(l,f,g){return l+(g?" ":"")+ty(f)});function CY(l,f,g){return l=Ot(l),g=g==null?0:yo(et(g),0,l.length),f=Nr(f),l.slice(g,g+f.length)==f}function xY(l,f,g){var E=P.templateSettings;g&&ar(l,f,g)&&(f=n),l=Ot(l),f=Zd({},f,E,_4);var O=Zd({},f.imports,E.imports,_4),M=Pn(O),H=d0(O,M),Q,$,me=0,ge=f.interpolate||_e,we="__p += '",Ce=p0((f.escape||_e).source+"|"+ge.source+"|"+(ge===Sn?tr:_e).source+"|"+(f.evaluate||_e).source+"|$","g"),Me="//# sourceURL="+(Tt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fs+"]")+`
55
+ `)}function qz(l){return qe(l)||Co(l)||!!(L8&&l&&l[L8])}function oa(l,f){var g=typeof l;return f=f??B,!!f&&(g=="number"||g!="symbol"&&Z.test(l))&&l>-1&&l%1==0&&l<f}function ar(l,f,g){if(!en(g))return!1;var E=typeof f;return(E=="number"?wr(g)&&oa(f,g.length):E=="string"&&f in g)?wi(g[f],l):!1}function H0(l,f){if(qe(l))return!1;var g=typeof l;return g=="number"||g=="symbol"||g=="boolean"||l==null||Pr(l)?!0:mt.test(l)||!hn.test(l)||f!=null&&l in Vt(f)}function Jz(l){var f=typeof l;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?l!=="__proto__":l===null}function W0(l){var f=Dd(l),g=P[f];if(typeof g!="function"||!(f in ft.prototype))return!1;if(l===g)return!0;var E=U0(g);return!!E&&l===E[0]}function Xz(l){return!!N8&&N8 in l}var $z=pd?sa:sy;function Mc(l){var f=l&&l.constructor,g=typeof f=="function"&&f.prototype||zs;return l===g}function N4(l){return l===l&&!en(l)}function P4(l,f){return function(g){return g==null?!1:g[l]===f&&(f!==n||l in Vt(g))}}function eH(l){var f=Wd(l,function(E){return g.size===u&&g.clear(),E}),g=f.cache;return f}function tH(l,f){var g=l[1],E=f[1],O=g|E,M=O<(v|x|k),H=E==k&&g==T||E==k&&g==R&&l[7].length<=f[8]||E==(k|R)&&f[7].length<=f[8]&&g==T;if(!(M||H))return l;E&v&&(l[2]=f[2],O|=g&v?0:_);var Q=f[3];if(Q){var $=l[3];l[3]=$?p4($,Q,f[4]):Q,l[4]=$?Ma(l[3],d):f[4]}return Q=f[5],Q&&($=l[5],l[5]=$?m4($,Q,f[6]):Q,l[6]=$?Ma(l[5],d):f[6]),Q=f[7],Q&&(l[7]=Q),E&k&&(l[8]=l[8]==null?f[8]:Gn(l[8],f[8])),l[9]==null&&(l[9]=f[9]),l[0]=f[0],l[1]=O,l}function nH(l){var f=[];if(l!=null)for(var g in Vt(l))f.push(g);return f}function rH(l){return gd.call(l)}function I4(l,f,g){return f=Cn(f===n?l.length-1:f,0),function(){for(var E=arguments,O=-1,M=Cn(E.length-f,0),H=se(M);++O<M;)H[O]=E[f+O];O=-1;for(var Q=se(f+1);++O<f;)Q[O]=E[O];return Q[f]=g(H),Or(l,this,Q)}}function M4(l,f){return f.length<2?l:wo(l,ni(f,0,-1))}function iH(l,f){for(var g=l.length,E=Gn(f.length,g),O=br(l);E--;){var M=f[E];l[E]=oa(M,g)?O[M]:n}return l}function G0(l,f){if(!(f==="constructor"&&typeof l[f]=="function")&&f!="__proto__")return l[f]}var L4=j4(i4),Lc=bB||function(l,f){return Fn.setTimeout(l,f)},Y0=j4(kz);function F4(l,f,g){var E=f+"";return Y0(l,Qz(E,aH(Yz(E),g)))}function j4(l){var f=0,g=0;return function(){var E=CB(),O=Y-(E-g);if(g=E,O>0){if(++f>=z)return arguments[0]}else f=0;return l.apply(n,arguments)}}function Ud(l,f){var g=-1,E=l.length,O=E-1;for(f=f===n?E:f;++g<f;){var M=T0(g,O),H=l[M];l[M]=l[g],l[g]=H}return l.length=f,l}var D4=eH(function(l){var f=[];return l.charCodeAt(0)===46&&f.push(""),l.replace(ut,function(g,E,O,M){f.push(O?M.replace(Pt,"$1"):E||g)}),f});function Vi(l){if(typeof l=="string"||Pr(l))return l;var f=l+"";return f=="0"&&1/l==-G?"-0":f}function Eo(l){if(l!=null){try{return md.call(l)}catch{}try{return l+""}catch{}}return""}function aH(l,f){return Xr(ce,function(g){var E="_."+g[0];f&g[1]&&!ud(l,E)&&l.push(E)}),l.sort()}function V4(l){if(l instanceof ft)return l.clone();var f=new ei(l.__wrapped__,l.__chain__);return f.__actions__=br(l.__actions__),f.__index__=l.__index__,f.__values__=l.__values__,f}function oH(l,f,g){(g?ar(l,f,g):f===n)?f=1:f=Cn(et(f),0);var E=l==null?0:l.length;if(!E||f<1)return[];for(var O=0,M=0,H=se(Ed(E/f));O<E;)H[M++]=ni(l,O,O+=f);return H}function sH(l){for(var f=-1,g=l==null?0:l.length,E=0,O=[];++f<g;){var M=l[f];M&&(O[E++]=M)}return O}function lH(){var l=arguments.length;if(!l)return[];for(var f=se(l-1),g=arguments[0],E=l;E--;)f[E-1]=arguments[E];return Ia(qe(g)?br(g):[g],jn(f,1))}var cH=ot(function(l,f){return un(l)?Oc(l,jn(f,1,un,!0)):[]}),uH=ot(function(l,f){var g=ri(f);return un(g)&&(g=n),un(l)?Oc(l,jn(f,1,un,!0),De(g,2)):[]}),fH=ot(function(l,f){var g=ri(f);return un(g)&&(g=n),un(l)?Oc(l,jn(f,1,un,!0),n,g):[]});function dH(l,f,g){var E=l==null?0:l.length;return E?(f=g||f===n?1:et(f),ni(l,f<0?0:f,E)):[]}function hH(l,f,g){var E=l==null?0:l.length;return E?(f=g||f===n?1:et(f),f=E-f,ni(l,0,f<0?0:f)):[]}function pH(l,f){return l&&l.length?Pd(l,De(f,3),!0,!0):[]}function mH(l,f){return l&&l.length?Pd(l,De(f,3),!0):[]}function gH(l,f,g,E){var O=l==null?0:l.length;return O?(g&&typeof g!="number"&&ar(l,f,g)&&(g=0,E=O),lz(l,f,g,E)):[]}function U4(l,f,g){var E=l==null?0:l.length;if(!E)return-1;var O=g==null?0:et(g);return O<0&&(O=Cn(E+O,0)),fd(l,De(f,3),O)}function B4(l,f,g){var E=l==null?0:l.length;if(!E)return-1;var O=E-1;return g!==n&&(O=et(g),O=g<0?Cn(E+O,0):Gn(O,E-1)),fd(l,De(f,3),O,!0)}function z4(l){var f=l==null?0:l.length;return f?jn(l,1):[]}function vH(l){var f=l==null?0:l.length;return f?jn(l,G):[]}function yH(l,f){var g=l==null?0:l.length;return g?(f=f===n?1:et(f),jn(l,f)):[]}function bH(l){for(var f=-1,g=l==null?0:l.length,E={};++f<g;){var O=l[f];E[O[0]]=O[1]}return E}function H4(l){return l&&l.length?l[0]:n}function wH(l,f,g){var E=l==null?0:l.length;if(!E)return-1;var O=g==null?0:et(g);return O<0&&(O=Cn(E+O,0)),Ds(l,f,O)}function SH(l){var f=l==null?0:l.length;return f?ni(l,0,-1):[]}var EH=ot(function(l){var f=Zt(l,I0);return f.length&&f[0]===l[0]?C0(f):[]}),CH=ot(function(l){var f=ri(l),g=Zt(l,I0);return f===ri(g)?f=n:g.pop(),g.length&&g[0]===l[0]?C0(g,De(f,2)):[]}),xH=ot(function(l){var f=ri(l),g=Zt(l,I0);return f=typeof f=="function"?f:n,f&&g.pop(),g.length&&g[0]===l[0]?C0(g,n,f):[]});function _H(l,f){return l==null?"":SB.call(l,f)}function ri(l){var f=l==null?0:l.length;return f?l[f-1]:n}function AH(l,f,g){var E=l==null?0:l.length;if(!E)return-1;var O=E;return g!==n&&(O=et(g),O=O<0?Cn(E+O,0):Gn(O,E-1)),f===f?aB(l,f,O):fd(l,C8,O,!0)}function kH(l,f){return l&&l.length?e4(l,et(f)):n}var TH=ot(W4);function W4(l,f){return l&&l.length&&f&&f.length?k0(l,f):l}function OH(l,f,g){return l&&l.length&&f&&f.length?k0(l,f,De(g,2)):l}function RH(l,f,g){return l&&l.length&&f&&f.length?k0(l,f,n,g):l}var NH=aa(function(l,f){var g=l==null?0:l.length,E=b0(l,f);return r4(l,Zt(f,function(O){return oa(O,g)?+O:O}).sort(h4)),E});function PH(l,f){var g=[];if(!(l&&l.length))return g;var E=-1,O=[],M=l.length;for(f=De(f,3);++E<M;){var H=l[E];f(H,E,l)&&(g.push(H),O.push(E))}return r4(l,O),g}function K0(l){return l==null?l:_B.call(l)}function IH(l,f,g){var E=l==null?0:l.length;return E?(g&&typeof g!="number"&&ar(l,f,g)?(f=0,g=E):(f=f==null?0:et(f),g=g===n?E:et(g)),ni(l,f,g)):[]}function MH(l,f){return Nd(l,f)}function LH(l,f,g){return R0(l,f,De(g,2))}function FH(l,f){var g=l==null?0:l.length;if(g){var E=Nd(l,f);if(E<g&&wi(l[E],f))return E}return-1}function jH(l,f){return Nd(l,f,!0)}function DH(l,f,g){return R0(l,f,De(g,2),!0)}function VH(l,f){var g=l==null?0:l.length;if(g){var E=Nd(l,f,!0)-1;if(wi(l[E],f))return E}return-1}function UH(l){return l&&l.length?a4(l):[]}function BH(l,f){return l&&l.length?a4(l,De(f,2)):[]}function zH(l){var f=l==null?0:l.length;return f?ni(l,1,f):[]}function HH(l,f,g){return l&&l.length?(f=g||f===n?1:et(f),ni(l,0,f<0?0:f)):[]}function WH(l,f,g){var E=l==null?0:l.length;return E?(f=g||f===n?1:et(f),f=E-f,ni(l,f<0?0:f,E)):[]}function GH(l,f){return l&&l.length?Pd(l,De(f,3),!1,!0):[]}function YH(l,f){return l&&l.length?Pd(l,De(f,3)):[]}var KH=ot(function(l){return ja(jn(l,1,un,!0))}),ZH=ot(function(l){var f=ri(l);return un(f)&&(f=n),ja(jn(l,1,un,!0),De(f,2))}),QH=ot(function(l){var f=ri(l);return f=typeof f=="function"?f:n,ja(jn(l,1,un,!0),n,f)});function qH(l){return l&&l.length?ja(l):[]}function JH(l,f){return l&&l.length?ja(l,De(f,2)):[]}function XH(l,f){return f=typeof f=="function"?f:n,l&&l.length?ja(l,n,f):[]}function Z0(l){if(!(l&&l.length))return[];var f=0;return l=Pa(l,function(g){if(un(g))return f=Cn(g.length,f),!0}),f0(f,function(g){return Zt(l,l0(g))})}function G4(l,f){if(!(l&&l.length))return[];var g=Z0(l);return f==null?g:Zt(g,function(E){return Or(f,n,E)})}var $H=ot(function(l,f){return un(l)?Oc(l,f):[]}),eW=ot(function(l){return P0(Pa(l,un))}),tW=ot(function(l){var f=ri(l);return un(f)&&(f=n),P0(Pa(l,un),De(f,2))}),nW=ot(function(l){var f=ri(l);return f=typeof f=="function"?f:n,P0(Pa(l,un),n,f)}),rW=ot(Z0);function iW(l,f){return c4(l||[],f||[],Tc)}function aW(l,f){return c4(l||[],f||[],Pc)}var oW=ot(function(l){var f=l.length,g=f>1?l[f-1]:n;return g=typeof g=="function"?(l.pop(),g):n,G4(l,g)});function Y4(l){var f=P(l);return f.__chain__=!0,f}function sW(l,f){return f(l),l}function Bd(l,f){return f(l)}var lW=aa(function(l){var f=l.length,g=f?l[0]:0,E=this.__wrapped__,O=function(M){return b0(M,l)};return f>1||this.__actions__.length||!(E instanceof ft)||!oa(g)?this.thru(O):(E=E.slice(g,+g+(f?1:0)),E.__actions__.push({func:Bd,args:[O],thisArg:n}),new ei(E,this.__chain__).thru(function(M){return f&&!M.length&&M.push(n),M}))});function cW(){return Y4(this)}function uW(){return new ei(this.value(),this.__chain__)}function fW(){this.__values__===n&&(this.__values__=o_(this.value()));var l=this.__index__>=this.__values__.length,f=l?n:this.__values__[this.__index__++];return{done:l,value:f}}function dW(){return this}function hW(l){for(var f,g=this;g instanceof Ad;){var E=V4(g);E.__index__=0,E.__values__=n,f?O.__wrapped__=E:f=E;var O=E;g=g.__wrapped__}return O.__wrapped__=l,f}function pW(){var l=this.__wrapped__;if(l instanceof ft){var f=l;return this.__actions__.length&&(f=new ft(this)),f=f.reverse(),f.__actions__.push({func:Bd,args:[K0],thisArg:n}),new ei(f,this.__chain__)}return this.thru(K0)}function mW(){return l4(this.__wrapped__,this.__actions__)}var gW=Id(function(l,f,g){Tt.call(l,g)?++l[g]:ra(l,g,1)});function vW(l,f,g){var E=qe(l)?S8:sz;return g&&ar(l,f,g)&&(f=n),E(l,De(f,3))}function yW(l,f){var g=qe(l)?Pa:G8;return g(l,De(f,3))}var bW=b4(U4),wW=b4(B4);function SW(l,f){return jn(zd(l,f),1)}function EW(l,f){return jn(zd(l,f),G)}function CW(l,f,g){return g=g===n?1:et(g),jn(zd(l,f),g)}function K4(l,f){var g=qe(l)?Xr:Fa;return g(l,De(f,3))}function Z4(l,f){var g=qe(l)?zU:W8;return g(l,De(f,3))}var xW=Id(function(l,f,g){Tt.call(l,g)?l[g].push(f):ra(l,g,[f])});function _W(l,f,g,E){l=wr(l)?l:qs(l),g=g&&!E?et(g):0;var O=l.length;return g<0&&(g=Cn(O+g,0)),Kd(l)?g<=O&&l.indexOf(f,g)>-1:!!O&&Ds(l,f,g)>-1}var AW=ot(function(l,f,g){var E=-1,O=typeof f=="function",M=wr(l)?se(l.length):[];return Fa(l,function(H){M[++E]=O?Or(f,H,g):Rc(H,f,g)}),M}),kW=Id(function(l,f,g){ra(l,g,f)});function zd(l,f){var g=qe(l)?Zt:J8;return g(l,De(f,3))}function TW(l,f,g,E){return l==null?[]:(qe(f)||(f=f==null?[]:[f]),g=E?n:g,qe(g)||(g=g==null?[]:[g]),t4(l,f,g))}var OW=Id(function(l,f,g){l[g?0:1].push(f)},function(){return[[],[]]});function RW(l,f,g){var E=qe(l)?o0:_8,O=arguments.length<3;return E(l,De(f,4),g,O,Fa)}function NW(l,f,g){var E=qe(l)?HU:_8,O=arguments.length<3;return E(l,De(f,4),g,O,W8)}function PW(l,f){var g=qe(l)?Pa:G8;return g(l,Gd(De(f,3)))}function IW(l){var f=qe(l)?U8:_z;return f(l)}function MW(l,f,g){(g?ar(l,f,g):f===n)?f=1:f=et(f);var E=qe(l)?nz:Az;return E(l,f)}function LW(l){var f=qe(l)?rz:Tz;return f(l)}function FW(l){if(l==null)return 0;if(wr(l))return Kd(l)?Us(l):l.length;var f=Yn(l);return f==ye||f==Le?l.size:_0(l).length}function jW(l,f,g){var E=qe(l)?s0:Oz;return g&&ar(l,f,g)&&(f=n),E(l,De(f,3))}var DW=ot(function(l,f){if(l==null)return[];var g=f.length;return g>1&&ar(l,f[0],f[1])?f=[]:g>2&&ar(f[0],f[1],f[2])&&(f=[f[0]]),t4(l,jn(f,1),[])}),Hd=yB||function(){return Fn.Date.now()};function VW(l,f){if(typeof f!="function")throw new $r(o);return l=et(l),function(){if(--l<1)return f.apply(this,arguments)}}function Q4(l,f,g){return f=g?n:f,f=l&&f==null?l.length:f,ia(l,k,n,n,n,n,f)}function q4(l,f){var g;if(typeof f!="function")throw new $r(o);return l=et(l),function(){return--l>0&&(g=f.apply(this,arguments)),l<=1&&(f=n),g}}var Q0=ot(function(l,f,g){var E=v;if(g.length){var O=Ma(g,Zs(Q0));E|=w}return ia(l,E,f,g,O)}),J4=ot(function(l,f,g){var E=v|x;if(g.length){var O=Ma(g,Zs(J4));E|=w}return ia(f,E,l,g,O)});function X4(l,f,g){f=g?n:f;var E=ia(l,T,n,n,n,n,n,f);return E.placeholder=X4.placeholder,E}function $4(l,f,g){f=g?n:f;var E=ia(l,C,n,n,n,n,n,f);return E.placeholder=$4.placeholder,E}function e_(l,f,g){var E,O,M,H,Q,$,me=0,ge=!1,we=!1,Ce=!0;if(typeof l!="function")throw new $r(o);f=ii(f)||0,en(g)&&(ge=!!g.leading,we="maxWait"in g,M=we?Cn(ii(g.maxWait)||0,f):M,Ce="trailing"in g?!!g.trailing:Ce);function Me(fn){var Si=E,ca=O;return E=O=n,me=fn,H=l.apply(ca,Si),H}function Ue(fn){return me=fn,Q=Lc(lt,f),ge?Me(fn):H}function rt(fn){var Si=fn-$,ca=fn-me,b_=f-Si;return we?Gn(b_,M-ca):b_}function Be(fn){var Si=fn-$,ca=fn-me;return $===n||Si>=f||Si<0||we&&ca>=M}function lt(){var fn=Hd();if(Be(fn))return pt(fn);Q=Lc(lt,rt(fn))}function pt(fn){return Q=n,Ce&&E?Me(fn):(E=O=n,H)}function Ir(){Q!==n&&u4(Q),me=0,E=$=O=Q=n}function or(){return Q===n?H:pt(Hd())}function Mr(){var fn=Hd(),Si=Be(fn);if(E=arguments,O=this,$=fn,Si){if(Q===n)return Ue($);if(we)return u4(Q),Q=Lc(lt,f),Me($)}return Q===n&&(Q=Lc(lt,f)),H}return Mr.cancel=Ir,Mr.flush=or,Mr}var UW=ot(function(l,f){return H8(l,1,f)}),BW=ot(function(l,f,g){return H8(l,ii(f)||0,g)});function zW(l){return ia(l,I)}function Wd(l,f){if(typeof l!="function"||f!=null&&typeof f!="function")throw new $r(o);var g=function(){var E=arguments,O=f?f.apply(this,E):E[0],M=g.cache;if(M.has(O))return M.get(O);var H=l.apply(this,E);return g.cache=M.set(O,H)||M,H};return g.cache=new(Wd.Cache||na),g}Wd.Cache=na;function Gd(l){if(typeof l!="function")throw new $r(o);return function(){var f=arguments;switch(f.length){case 0:return!l.call(this);case 1:return!l.call(this,f[0]);case 2:return!l.call(this,f[0],f[1]);case 3:return!l.call(this,f[0],f[1],f[2])}return!l.apply(this,f)}}function HW(l){return q4(2,l)}var WW=Rz(function(l,f){f=f.length==1&&qe(f[0])?Zt(f[0],Rr(De())):Zt(jn(f,1),Rr(De()));var g=f.length;return ot(function(E){for(var O=-1,M=Gn(E.length,g);++O<M;)E[O]=f[O].call(this,E[O]);return Or(l,this,E)})}),q0=ot(function(l,f){var g=Ma(f,Zs(q0));return ia(l,w,n,f,g)}),t_=ot(function(l,f){var g=Ma(f,Zs(t_));return ia(l,A,n,f,g)}),GW=aa(function(l,f){return ia(l,R,n,n,n,f)});function YW(l,f){if(typeof l!="function")throw new $r(o);return f=f===n?f:et(f),ot(l,f)}function KW(l,f){if(typeof l!="function")throw new $r(o);return f=f==null?0:Cn(et(f),0),ot(function(g){var E=g[f],O=Va(g,0,f);return E&&Ia(O,E),Or(l,this,O)})}function ZW(l,f,g){var E=!0,O=!0;if(typeof l!="function")throw new $r(o);return en(g)&&(E="leading"in g?!!g.leading:E,O="trailing"in g?!!g.trailing:O),e_(l,f,{leading:E,maxWait:f,trailing:O})}function QW(l){return Q4(l,1)}function qW(l,f){return q0(M0(f),l)}function JW(){if(!arguments.length)return[];var l=arguments[0];return qe(l)?l:[l]}function XW(l){return ti(l,p)}function $W(l,f){return f=typeof f=="function"?f:n,ti(l,p,f)}function eG(l){return ti(l,h|p)}function tG(l,f){return f=typeof f=="function"?f:n,ti(l,h|p,f)}function nG(l,f){return f==null||z8(l,f,Pn(f))}function wi(l,f){return l===f||l!==l&&f!==f}var rG=jd(E0),iG=jd(function(l,f){return l>=f}),Co=Z8((function(){return arguments})())?Z8:function(l){return rn(l)&&Tt.call(l,"callee")&&!M8.call(l,"callee")},qe=se.isArray,aG=m8?Rr(m8):hz;function wr(l){return l!=null&&Yd(l.length)&&!sa(l)}function un(l){return rn(l)&&wr(l)}function oG(l){return l===!0||l===!1||rn(l)&&ir(l)==le}var Ua=wB||sy,sG=g8?Rr(g8):pz;function lG(l){return rn(l)&&l.nodeType===1&&!Fc(l)}function cG(l){if(l==null)return!0;if(wr(l)&&(qe(l)||typeof l=="string"||typeof l.splice=="function"||Ua(l)||Qs(l)||Co(l)))return!l.length;var f=Yn(l);if(f==ye||f==Le)return!l.size;if(Mc(l))return!_0(l).length;for(var g in l)if(Tt.call(l,g))return!1;return!0}function uG(l,f){return Nc(l,f)}function fG(l,f,g){g=typeof g=="function"?g:n;var E=g?g(l,f):n;return E===n?Nc(l,f,n,g):!!E}function J0(l){if(!rn(l))return!1;var f=ir(l);return f==be||f==he||typeof l.message=="string"&&typeof l.name=="string"&&!Fc(l)}function dG(l){return typeof l=="number"&&F8(l)}function sa(l){if(!en(l))return!1;var f=ir(l);return f==ee||f==Ie||f==ue||f==Ae}function n_(l){return typeof l=="number"&&l==et(l)}function Yd(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=B}function en(l){var f=typeof l;return l!=null&&(f=="object"||f=="function")}function rn(l){return l!=null&&typeof l=="object"}var r_=v8?Rr(v8):gz;function hG(l,f){return l===f||x0(l,f,B0(f))}function pG(l,f,g){return g=typeof g=="function"?g:n,x0(l,f,B0(f),g)}function mG(l){return i_(l)&&l!=+l}function gG(l){if($z(l))throw new Ye(a);return Q8(l)}function vG(l){return l===null}function yG(l){return l==null}function i_(l){return typeof l=="number"||rn(l)&&ir(l)==Fe}function Fc(l){if(!rn(l)||ir(l)!=Pe)return!1;var f=bd(l);if(f===null)return!0;var g=Tt.call(f,"constructor")&&f.constructor;return typeof g=="function"&&g instanceof g&&md.call(g)==pB}var X0=y8?Rr(y8):vz;function bG(l){return n_(l)&&l>=-B&&l<=B}var a_=b8?Rr(b8):yz;function Kd(l){return typeof l=="string"||!qe(l)&&rn(l)&&ir(l)==Ze}function Pr(l){return typeof l=="symbol"||rn(l)&&ir(l)==_t}var Qs=w8?Rr(w8):bz;function wG(l){return l===n}function SG(l){return rn(l)&&Yn(l)==$e}function EG(l){return rn(l)&&ir(l)==At}var CG=jd(A0),xG=jd(function(l,f){return l<=f});function o_(l){if(!l)return[];if(wr(l))return Kd(l)?yi(l):br(l);if(Cc&&l[Cc])return nB(l[Cc]());var f=Yn(l),g=f==ye?h0:f==Le?dd:qs;return g(l)}function la(l){if(!l)return l===0?l:0;if(l=ii(l),l===G||l===-G){var f=l<0?-1:1;return f*q}return l===l?l:0}function et(l){var f=la(l),g=f%1;return f===f?g?f-g:f:0}function s_(l){return l?bo(et(l),0,K):0}function ii(l){if(typeof l=="number")return l;if(Pr(l))return W;if(en(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=en(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=A8(l);var g=Ln.test(l);return g||ke.test(l)?VU(l.slice(2),g?2:8):Wn.test(l)?W:+l}function l_(l){return Di(l,Sr(l))}function _G(l){return l?bo(et(l),-B,B):l===0?l:0}function Ot(l){return l==null?"":Nr(l)}var AG=Ys(function(l,f){if(Mc(f)||wr(f)){Di(f,Pn(f),l);return}for(var g in f)Tt.call(f,g)&&Tc(l,g,f[g])}),c_=Ys(function(l,f){Di(f,Sr(f),l)}),Zd=Ys(function(l,f,g,E){Di(f,Sr(f),l,E)}),kG=Ys(function(l,f,g,E){Di(f,Pn(f),l,E)}),TG=aa(b0);function OG(l,f){var g=Gs(l);return f==null?g:B8(g,f)}var RG=ot(function(l,f){l=Vt(l);var g=-1,E=f.length,O=E>2?f[2]:n;for(O&&ar(f[0],f[1],O)&&(E=1);++g<E;)for(var M=f[g],H=Sr(M),Q=-1,$=H.length;++Q<$;){var me=H[Q],ge=l[me];(ge===n||wi(ge,zs[me])&&!Tt.call(l,me))&&(l[me]=M[me])}return l}),NG=ot(function(l){return l.push(n,A4),Or(u_,n,l)});function PG(l,f){return E8(l,De(f,3),ji)}function IG(l,f){return E8(l,De(f,3),S0)}function MG(l,f){return l==null?l:w0(l,De(f,3),Sr)}function LG(l,f){return l==null?l:Y8(l,De(f,3),Sr)}function FG(l,f){return l&&ji(l,De(f,3))}function jG(l,f){return l&&S0(l,De(f,3))}function DG(l){return l==null?[]:Od(l,Pn(l))}function VG(l){return l==null?[]:Od(l,Sr(l))}function $0(l,f,g){var E=l==null?n:wo(l,f);return E===n?g:E}function UG(l,f){return l!=null&&O4(l,f,cz)}function ey(l,f){return l!=null&&O4(l,f,uz)}var BG=S4(function(l,f,g){f!=null&&typeof f.toString!="function"&&(f=gd.call(f)),l[f]=g},ny(Er)),zG=S4(function(l,f,g){f!=null&&typeof f.toString!="function"&&(f=gd.call(f)),Tt.call(l,f)?l[f].push(g):l[f]=[g]},De),HG=ot(Rc);function Pn(l){return wr(l)?V8(l):_0(l)}function Sr(l){return wr(l)?V8(l,!0):wz(l)}function WG(l,f){var g={};return f=De(f,3),ji(l,function(E,O,M){ra(g,f(E,O,M),E)}),g}function GG(l,f){var g={};return f=De(f,3),ji(l,function(E,O,M){ra(g,O,f(E,O,M))}),g}var YG=Ys(function(l,f,g){Rd(l,f,g)}),u_=Ys(function(l,f,g,E){Rd(l,f,g,E)}),KG=aa(function(l,f){var g={};if(l==null)return g;var E=!1;f=Zt(f,function(M){return M=Da(M,l),E||(E=M.length>1),M}),Di(l,V0(l),g),E&&(g=ti(g,h|m|p,Bz));for(var O=f.length;O--;)N0(g,f[O]);return g});function ZG(l,f){return f_(l,Gd(De(f)))}var QG=aa(function(l,f){return l==null?{}:Ez(l,f)});function f_(l,f){if(l==null)return{};var g=Zt(V0(l),function(E){return[E]});return f=De(f),n4(l,g,function(E,O){return f(E,O[0])})}function qG(l,f,g){f=Da(f,l);var E=-1,O=f.length;for(O||(O=1,l=n);++E<O;){var M=l==null?n:l[Vi(f[E])];M===n&&(E=O,M=g),l=sa(M)?M.call(l):M}return l}function JG(l,f,g){return l==null?l:Pc(l,f,g)}function XG(l,f,g,E){return E=typeof E=="function"?E:n,l==null?l:Pc(l,f,g,E)}var d_=x4(Pn),h_=x4(Sr);function $G(l,f,g){var E=qe(l),O=E||Ua(l)||Qs(l);if(f=De(f,4),g==null){var M=l&&l.constructor;O?g=E?new M:[]:en(l)?g=sa(M)?Gs(bd(l)):{}:g={}}return(O?Xr:ji)(l,function(H,Q,$){return f(g,H,Q,$)}),g}function eY(l,f){return l==null?!0:N0(l,f)}function tY(l,f,g){return l==null?l:s4(l,f,M0(g))}function nY(l,f,g,E){return E=typeof E=="function"?E:n,l==null?l:s4(l,f,M0(g),E)}function qs(l){return l==null?[]:d0(l,Pn(l))}function rY(l){return l==null?[]:d0(l,Sr(l))}function iY(l,f,g){return g===n&&(g=f,f=n),g!==n&&(g=ii(g),g=g===g?g:0),f!==n&&(f=ii(f),f=f===f?f:0),bo(ii(l),f,g)}function aY(l,f,g){return f=la(f),g===n?(g=f,f=0):g=la(g),l=ii(l),fz(l,f,g)}function oY(l,f,g){if(g&&typeof g!="boolean"&&ar(l,f,g)&&(f=g=n),g===n&&(typeof f=="boolean"?(g=f,f=n):typeof l=="boolean"&&(g=l,l=n)),l===n&&f===n?(l=0,f=1):(l=la(l),f===n?(f=l,l=0):f=la(f)),l>f){var E=l;l=f,f=E}if(g||l%1||f%1){var O=j8();return Gn(l+O*(f-l+DU("1e-"+((O+"").length-1))),f)}return T0(l,f)}var sY=Ks(function(l,f,g){return f=f.toLowerCase(),l+(g?p_(f):f)});function p_(l){return ty(Ot(l).toLowerCase())}function m_(l){return l=Ot(l),l&&l.replace(pe,JU).replace(Sc,"")}function lY(l,f,g){l=Ot(l),f=Nr(f);var E=l.length;g=g===n?E:bo(et(g),0,E);var O=g;return g-=f.length,g>=0&&l.slice(g,O)==f}function cY(l){return l=Ot(l),l&&$n.test(l)?l.replace(Pi,XU):l}function uY(l){return l=Ot(l),l&&er.test(l)?l.replace(Wt,"\\$&"):l}var fY=Ks(function(l,f,g){return l+(g?"-":"")+f.toLowerCase()}),dY=Ks(function(l,f,g){return l+(g?" ":"")+f.toLowerCase()}),hY=y4("toLowerCase");function pY(l,f,g){l=Ot(l),f=et(f);var E=f?Us(l):0;if(!f||E>=f)return l;var O=(f-E)/2;return Fd(Cd(O),g)+l+Fd(Ed(O),g)}function mY(l,f,g){l=Ot(l),f=et(f);var E=f?Us(l):0;return f&&E<f?l+Fd(f-E,g):l}function gY(l,f,g){l=Ot(l),f=et(f);var E=f?Us(l):0;return f&&E<f?Fd(f-E,g)+l:l}function vY(l,f,g){return g||f==null?f=0:f&&(f=+f),xB(Ot(l).replace(pn,""),f||0)}function yY(l,f,g){return(g?ar(l,f,g):f===n)?f=1:f=et(f),O0(Ot(l),f)}function bY(){var l=arguments,f=Ot(l[0]);return l.length<3?f:f.replace(l[1],l[2])}var wY=Ks(function(l,f,g){return l+(g?"_":"")+f.toLowerCase()});function SY(l,f,g){return g&&typeof g!="number"&&ar(l,f,g)&&(f=g=n),g=g===n?K:g>>>0,g?(l=Ot(l),l&&(typeof f=="string"||f!=null&&!X0(f))&&(f=Nr(f),!f&&Vs(l))?Va(yi(l),0,g):l.split(f,g)):[]}var EY=Ks(function(l,f,g){return l+(g?" ":"")+ty(f)});function CY(l,f,g){return l=Ot(l),g=g==null?0:bo(et(g),0,l.length),f=Nr(f),l.slice(g,g+f.length)==f}function xY(l,f,g){var E=P.templateSettings;g&&ar(l,f,g)&&(f=n),l=Ot(l),f=Zd({},f,E,_4);var O=Zd({},f.imports,E.imports,_4),M=Pn(O),H=d0(O,M),Q,$,me=0,ge=f.interpolate||_e,we="__p += '",Ce=p0((f.escape||_e).source+"|"+ge.source+"|"+(ge===Sn?tr:_e).source+"|"+(f.evaluate||_e).source+"|$","g"),Me="//# sourceURL="+(Tt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fs+"]")+`
56
56
  `;l.replace(Ce,function(Be,lt,pt,Ir,or,Mr){return pt||(pt=Ir),we+=l.slice(me,Mr).replace(wt,$U),lt&&(Q=!0,we+=`' +
57
57
  __e(`+lt+`) +
58
58
  '`),or&&($=!0,we+=`';
@@ -69,21 +69,21 @@ __p += '`),pt&&(we+=`' +
69
69
  function print() { __p += __j.call(arguments, '') }
70
70
  `:`;
71
71
  `)+we+`return __p
72
- }`;var rt=v_(function(){return St(M,Me+"return "+we).apply(n,H)});if(rt.source=we,J0(rt))throw rt;return rt}function _Y(l){return Ot(l).toLowerCase()}function AY(l){return Ot(l).toUpperCase()}function kY(l,f,g){if(l=Ot(l),l&&(g||f===n))return A8(l);if(!l||!(f=Nr(f)))return l;var E=yi(l),O=yi(f),M=k8(E,O),H=T8(E,O)+1;return Va(E,M,H).join("")}function TY(l,f,g){if(l=Ot(l),l&&(g||f===n))return l.slice(0,R8(l)+1);if(!l||!(f=Nr(f)))return l;var E=yi(l),O=T8(E,yi(f))+1;return Va(E,0,O).join("")}function OY(l,f,g){if(l=Ot(l),l&&(g||f===n))return l.replace(pn,"");if(!l||!(f=Nr(f)))return l;var E=yi(l),O=k8(E,yi(f));return Va(E,O).join("")}function RY(l,f){var g=U,E=D;if(en(f)){var O="separator"in f?f.separator:O;g="length"in f?et(f.length):g,E="omission"in f?Nr(f.omission):E}l=Ot(l);var M=l.length;if(Vs(l)){var H=yi(l);M=H.length}if(g>=M)return l;var Q=g-Us(E);if(Q<1)return E;var $=H?Va(H,0,Q).join(""):l.slice(0,Q);if(O===n)return $+E;if(H&&(Q+=$.length-Q),X0(O)){if(l.slice(Q).search(O)){var me,ge=$;for(O.global||(O=p0(O.source,Ot(Kr.exec(O))+"g")),O.lastIndex=0;me=O.exec(ge);)var we=me.index;$=$.slice(0,we===n?Q:we)}}else if(l.indexOf(Nr(O),Q)!=Q){var Ce=$.lastIndexOf(O);Ce>-1&&($=$.slice(0,Ce))}return $+E}function NY(l){return l=Ot(l),l&&pr.test(l)?l.replace(hr,oB):l}var PY=Ks(function(l,f,g){return l+(g?" ":"")+f.toUpperCase()}),ty=y4("toUpperCase");function g_(l,f,g){return l=Ot(l),f=g?n:f,f===n?tB(l)?cB(l):YU(l):l.match(f)||[]}var v_=ot(function(l,f){try{return Or(l,n,f)}catch(g){return J0(g)?g:new Ye(g)}}),IY=aa(function(l,f){return Xr(f,function(g){g=Vi(g),ra(l,g,Q0(l[g],l))}),l});function MY(l){var f=l==null?0:l.length,g=De();return l=f?Zt(l,function(E){if(typeof E[1]!="function")throw new $r(o);return[g(E[0]),E[1]]}):[],ot(function(E){for(var O=-1;++O<f;){var M=l[O];if(Or(M[0],this,E))return Or(M[1],this,E)}})}function LY(l){return oz(ti(l,h))}function ny(l){return function(){return l}}function FY(l,f){return l==null||l!==l?f:l}var jY=w4(),DY=w4(!0);function Er(l){return l}function ry(l){return q8(typeof l=="function"?l:ti(l,h))}function VY(l){return X8(ti(l,h))}function UY(l,f){return $8(l,ti(f,h))}var BY=ot(function(l,f){return function(g){return Rc(g,l,f)}}),zY=ot(function(l,f){return function(g){return Rc(l,g,f)}});function iy(l,f,g){var E=Pn(f),O=Od(f,E);g==null&&!(en(f)&&(O.length||!E.length))&&(g=f,f=l,l=this,O=Od(f,Pn(f)));var M=!(en(g)&&"chain"in g)||!!g.chain,H=sa(l);return Xr(O,function(Q){var $=f[Q];l[Q]=$,H&&(l.prototype[Q]=function(){var me=this.__chain__;if(M||me){var ge=l(this.__wrapped__),we=ge.__actions__=br(this.__actions__);return we.push({func:$,args:arguments,thisArg:l}),ge.__chain__=me,ge}return $.apply(l,Ia([this.value()],arguments))})}),l}function HY(){return Fn._===this&&(Fn._=mB),this}function ay(){}function WY(l){return l=et(l),ot(function(f){return e4(f,l)})}var GY=F0(Zt),YY=F0(S8),KY=F0(s0);function y_(l){return H0(l)?l0(Vi(l)):Cz(l)}function ZY(l){return function(f){return l==null?n:bo(l,f)}}var QY=E4(),qY=E4(!0);function oy(){return[]}function sy(){return!1}function JY(){return{}}function XY(){return""}function $Y(){return!0}function eK(l,f){if(l=et(l),l<1||l>B)return[];var g=K,E=Gn(l,K);f=De(f),l-=K;for(var O=f0(E,f);++g<l;)f(g);return O}function tK(l){return qe(l)?Zt(l,Vi):Pr(l)?[l]:br(D4(Ot(l)))}function nK(l){var f=++hB;return Ot(l)+f}var rK=Ld(function(l,f){return l+f},0),iK=j0("ceil"),aK=Ld(function(l,f){return l/f},1),oK=j0("floor");function sK(l){return l&&l.length?Td(l,Er,E0):n}function lK(l,f){return l&&l.length?Td(l,De(f,2),E0):n}function cK(l){return x8(l,Er)}function uK(l,f){return x8(l,De(f,2))}function fK(l){return l&&l.length?Td(l,Er,A0):n}function dK(l,f){return l&&l.length?Td(l,De(f,2),A0):n}var hK=Ld(function(l,f){return l*f},1),pK=j0("round"),mK=Ld(function(l,f){return l-f},0);function gK(l){return l&&l.length?u0(l,Er):0}function vK(l,f){return l&&l.length?u0(l,De(f,2)):0}return P.after=VW,P.ary=Q4,P.assign=AG,P.assignIn=c_,P.assignInWith=Zd,P.assignWith=kG,P.at=TG,P.before=q4,P.bind=Q0,P.bindAll=IY,P.bindKey=J4,P.castArray=JW,P.chain=Y4,P.chunk=oH,P.compact=sH,P.concat=lH,P.cond=MY,P.conforms=LY,P.constant=ny,P.countBy=gW,P.create=OG,P.curry=X4,P.curryRight=$4,P.debounce=e_,P.defaults=RG,P.defaultsDeep=NG,P.defer=UW,P.delay=BW,P.difference=cH,P.differenceBy=uH,P.differenceWith=fH,P.drop=dH,P.dropRight=hH,P.dropRightWhile=pH,P.dropWhile=mH,P.fill=gH,P.filter=yW,P.flatMap=SW,P.flatMapDeep=EW,P.flatMapDepth=CW,P.flatten=z4,P.flattenDeep=vH,P.flattenDepth=yH,P.flip=zW,P.flow=jY,P.flowRight=DY,P.fromPairs=bH,P.functions=DG,P.functionsIn=VG,P.groupBy=xW,P.initial=SH,P.intersection=EH,P.intersectionBy=CH,P.intersectionWith=xH,P.invert=BG,P.invertBy=zG,P.invokeMap=AW,P.iteratee=ry,P.keyBy=kW,P.keys=Pn,P.keysIn=Sr,P.map=zd,P.mapKeys=WG,P.mapValues=GG,P.matches=VY,P.matchesProperty=UY,P.memoize=Wd,P.merge=YG,P.mergeWith=u_,P.method=BY,P.methodOf=zY,P.mixin=iy,P.negate=Gd,P.nthArg=WY,P.omit=KG,P.omitBy=ZG,P.once=HW,P.orderBy=TW,P.over=GY,P.overArgs=WW,P.overEvery=YY,P.overSome=KY,P.partial=q0,P.partialRight=t_,P.partition=OW,P.pick=QG,P.pickBy=f_,P.property=y_,P.propertyOf=ZY,P.pull=TH,P.pullAll=W4,P.pullAllBy=OH,P.pullAllWith=RH,P.pullAt=NH,P.range=QY,P.rangeRight=qY,P.rearg=GW,P.reject=PW,P.remove=PH,P.rest=YW,P.reverse=K0,P.sampleSize=MW,P.set=JG,P.setWith=XG,P.shuffle=LW,P.slice=IH,P.sortBy=DW,P.sortedUniq=UH,P.sortedUniqBy=BH,P.split=SY,P.spread=KW,P.tail=zH,P.take=HH,P.takeRight=WH,P.takeRightWhile=GH,P.takeWhile=YH,P.tap=sW,P.throttle=ZW,P.thru=Bd,P.toArray=o_,P.toPairs=d_,P.toPairsIn=h_,P.toPath=tK,P.toPlainObject=l_,P.transform=$G,P.unary=QW,P.union=KH,P.unionBy=ZH,P.unionWith=QH,P.uniq=qH,P.uniqBy=JH,P.uniqWith=XH,P.unset=eY,P.unzip=Z0,P.unzipWith=G4,P.update=tY,P.updateWith=nY,P.values=qs,P.valuesIn=rY,P.without=$H,P.words=g_,P.wrap=qW,P.xor=eW,P.xorBy=tW,P.xorWith=nW,P.zip=rW,P.zipObject=iW,P.zipObjectDeep=aW,P.zipWith=oW,P.entries=d_,P.entriesIn=h_,P.extend=c_,P.extendWith=Zd,iy(P,P),P.add=rK,P.attempt=v_,P.camelCase=sY,P.capitalize=p_,P.ceil=iK,P.clamp=iY,P.clone=XW,P.cloneDeep=eG,P.cloneDeepWith=tG,P.cloneWith=$W,P.conformsTo=nG,P.deburr=m_,P.defaultTo=FY,P.divide=aK,P.endsWith=lY,P.eq=wi,P.escape=cY,P.escapeRegExp=uY,P.every=vW,P.find=bW,P.findIndex=U4,P.findKey=PG,P.findLast=wW,P.findLastIndex=B4,P.findLastKey=IG,P.floor=oK,P.forEach=K4,P.forEachRight=Z4,P.forIn=MG,P.forInRight=LG,P.forOwn=FG,P.forOwnRight=jG,P.get=$0,P.gt=rG,P.gte=iG,P.has=UG,P.hasIn=ey,P.head=H4,P.identity=Er,P.includes=_W,P.indexOf=wH,P.inRange=aY,P.invoke=HG,P.isArguments=Eo,P.isArray=qe,P.isArrayBuffer=aG,P.isArrayLike=wr,P.isArrayLikeObject=un,P.isBoolean=oG,P.isBuffer=Ua,P.isDate=sG,P.isElement=lG,P.isEmpty=cG,P.isEqual=uG,P.isEqualWith=fG,P.isError=J0,P.isFinite=dG,P.isFunction=sa,P.isInteger=n_,P.isLength=Yd,P.isMap=r_,P.isMatch=hG,P.isMatchWith=pG,P.isNaN=mG,P.isNative=gG,P.isNil=yG,P.isNull=vG,P.isNumber=i_,P.isObject=en,P.isObjectLike=rn,P.isPlainObject=Fc,P.isRegExp=X0,P.isSafeInteger=bG,P.isSet=a_,P.isString=Kd,P.isSymbol=Pr,P.isTypedArray=Qs,P.isUndefined=wG,P.isWeakMap=SG,P.isWeakSet=EG,P.join=_H,P.kebabCase=fY,P.last=ri,P.lastIndexOf=AH,P.lowerCase=dY,P.lowerFirst=hY,P.lt=CG,P.lte=xG,P.max=sK,P.maxBy=lK,P.mean=cK,P.meanBy=uK,P.min=fK,P.minBy=dK,P.stubArray=oy,P.stubFalse=sy,P.stubObject=JY,P.stubString=XY,P.stubTrue=$Y,P.multiply=hK,P.nth=kH,P.noConflict=HY,P.noop=ay,P.now=Hd,P.pad=pY,P.padEnd=mY,P.padStart=gY,P.parseInt=vY,P.random=oY,P.reduce=RW,P.reduceRight=NW,P.repeat=yY,P.replace=bY,P.result=qG,P.round=pK,P.runInContext=X,P.sample=IW,P.size=FW,P.snakeCase=wY,P.some=jW,P.sortedIndex=MH,P.sortedIndexBy=LH,P.sortedIndexOf=FH,P.sortedLastIndex=jH,P.sortedLastIndexBy=DH,P.sortedLastIndexOf=VH,P.startCase=EY,P.startsWith=CY,P.subtract=mK,P.sum=gK,P.sumBy=vK,P.template=xY,P.times=eK,P.toFinite=la,P.toInteger=et,P.toLength=s_,P.toLower=_Y,P.toNumber=ii,P.toSafeInteger=_G,P.toString=Ot,P.toUpper=AY,P.trim=kY,P.trimEnd=TY,P.trimStart=OY,P.truncate=RY,P.unescape=NY,P.uniqueId=nK,P.upperCase=PY,P.upperFirst=ty,P.each=K4,P.eachRight=Z4,P.first=H4,iy(P,(function(){var l={};return ji(P,function(f,g){Tt.call(P.prototype,g)||(l[g]=f)}),l})(),{chain:!1}),P.VERSION=r,Xr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){P[l].placeholder=P}),Xr(["drop","take"],function(l,f){ft.prototype[l]=function(g){g=g===n?1:Cn(et(g),0);var E=this.__filtered__&&!f?new ft(this):this.clone();return E.__filtered__?E.__takeCount__=Gn(g,E.__takeCount__):E.__views__.push({size:Gn(g,K),type:l+(E.__dir__<0?"Right":"")}),E},ft.prototype[l+"Right"]=function(g){return this.reverse()[l](g).reverse()}}),Xr(["filter","map","takeWhile"],function(l,f){var g=f+1,E=g==j||g==V;ft.prototype[l]=function(O){var M=this.clone();return M.__iteratees__.push({iteratee:De(O,3),type:g}),M.__filtered__=M.__filtered__||E,M}}),Xr(["head","last"],function(l,f){var g="take"+(f?"Right":"");ft.prototype[l]=function(){return this[g](1).value()[0]}}),Xr(["initial","tail"],function(l,f){var g="drop"+(f?"":"Right");ft.prototype[l]=function(){return this.__filtered__?new ft(this):this[g](1)}}),ft.prototype.compact=function(){return this.filter(Er)},ft.prototype.find=function(l){return this.filter(l).head()},ft.prototype.findLast=function(l){return this.reverse().find(l)},ft.prototype.invokeMap=ot(function(l,f){return typeof l=="function"?new ft(this):this.map(function(g){return Rc(g,l,f)})}),ft.prototype.reject=function(l){return this.filter(Gd(De(l)))},ft.prototype.slice=function(l,f){l=et(l);var g=this;return g.__filtered__&&(l>0||f<0)?new ft(g):(l<0?g=g.takeRight(-l):l&&(g=g.drop(l)),f!==n&&(f=et(f),g=f<0?g.dropRight(-f):g.take(f-l)),g)},ft.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},ft.prototype.toArray=function(){return this.take(K)},ji(ft.prototype,function(l,f){var g=/^(?:filter|find|map|reject)|While$/.test(f),E=/^(?:head|last)$/.test(f),O=P[E?"take"+(f=="last"?"Right":""):f],M=E||/^find/.test(f);O&&(P.prototype[f]=function(){var H=this.__wrapped__,Q=E?[1]:arguments,$=H instanceof ft,me=Q[0],ge=$||qe(H),we=function(lt){var pt=O.apply(P,Ia([lt],Q));return E&&Ce?pt[0]:pt};ge&&g&&typeof me=="function"&&me.length!=1&&($=ge=!1);var Ce=this.__chain__,Me=!!this.__actions__.length,Ue=M&&!Ce,rt=$&&!Me;if(!M&&ge){H=rt?H:new ft(this);var Be=l.apply(H,Q);return Be.__actions__.push({func:Bd,args:[we],thisArg:n}),new ei(Be,Ce)}return Ue&&rt?l.apply(this,Q):(Be=this.thru(we),Ue?E?Be.value()[0]:Be.value():Be)})}),Xr(["pop","push","shift","sort","splice","unshift"],function(l){var f=hd[l],g=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",E=/^(?:pop|shift)$/.test(l);P.prototype[l]=function(){var O=arguments;if(E&&!this.__chain__){var M=this.value();return f.apply(qe(M)?M:[],O)}return this[g](function(H){return f.apply(qe(H)?H:[],O)})}}),ji(ft.prototype,function(l,f){var g=P[f];if(g){var E=g.name+"";Tt.call(Ws,E)||(Ws[E]=[]),Ws[E].push({name:f,func:g})}}),Ws[Md(n,x).name]=[{name:"wrapper",func:n}],ft.prototype.clone=NB,ft.prototype.reverse=PB,ft.prototype.value=IB,P.prototype.at=lW,P.prototype.chain=cW,P.prototype.commit=uW,P.prototype.next=fW,P.prototype.plant=hW,P.prototype.reverse=pW,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=mW,P.prototype.first=P.prototype.head,Cc&&(P.prototype[Cc]=dW),P}),Bs=uB();po?((po.exports=Bs)._=Bs,r0._=Bs):Fn._=Bs}).call(LA)})(El,El.exports)),El.exports}var Ne=FA();const I2="3.7.8",jA=I2,Ho=typeof Buffer=="function",M2=typeof TextDecoder=="function"?new TextDecoder:void 0,L2=typeof TextEncoder=="function"?new TextEncoder:void 0,Cl=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),du=(t=>{let e={};return t.forEach((n,r)=>e[n]=r),e})(Cl),DA=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Mn=String.fromCharCode.bind(String),F2=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),j2=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),D2=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),V2=t=>{let e,n,r,i,a="";const o=t.length%3;for(let s=0;s<t.length;){if((n=t.charCodeAt(s++))>255||(r=t.charCodeAt(s++))>255||(i=t.charCodeAt(s++))>255)throw new TypeError("invalid character found");e=n<<16|r<<8|i,a+=Cl[e>>18&63]+Cl[e>>12&63]+Cl[e>>6&63]+Cl[e&63]}return o?a.slice(0,o-3)+"===".substring(o):a},up=typeof btoa=="function"?t=>btoa(t):Ho?t=>Buffer.from(t,"binary").toString("base64"):V2,fp=Ho?t=>Buffer.from(t).toString("base64"):t=>{let n=[];for(let r=0,i=t.length;r<i;r+=4096)n.push(Mn.apply(null,t.subarray(r,r+4096)));return up(n.join(""))},hu=(t,e=!1)=>e?j2(fp(t)):fp(t),VA=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?Mn(192|e>>>6)+Mn(128|e&63):Mn(224|e>>>12&15)+Mn(128|e>>>6&63)+Mn(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return Mn(240|e>>>18&7)+Mn(128|e>>>12&63)+Mn(128|e>>>6&63)+Mn(128|e&63)}},UA=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,U2=t=>t.replace(UA,VA),B2=Ho?t=>Buffer.from(t,"utf8").toString("base64"):L2?t=>fp(L2.encode(t)):t=>up(U2(t)),Wo=(t,e=!1)=>e?j2(B2(t)):B2(t),z2=t=>Wo(t,!0),BA=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,zA=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),n=e-65536;return Mn((n>>>10)+55296)+Mn((n&1023)+56320);case 3:return Mn((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return Mn((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},H2=t=>t.replace(BA,zA),W2=t=>{if(t=t.replace(/\s+/g,""),!DA.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,n,r,i=[];for(let a=0;a<t.length;)e=du[t.charAt(a++)]<<18|du[t.charAt(a++)]<<12|(n=du[t.charAt(a++)])<<6|(r=du[t.charAt(a++)]),n===64?i.push(Mn(e>>16&255)):r===64?i.push(Mn(e>>16&255,e>>8&255)):i.push(Mn(e>>16&255,e>>8&255,e&255));return i.join("")},dp=typeof atob=="function"?t=>atob(D2(t)):Ho?t=>Buffer.from(t,"base64").toString("binary"):W2,G2=Ho?t=>F2(Buffer.from(t,"base64")):t=>F2(dp(t).split("").map(e=>e.charCodeAt(0))),Y2=t=>G2(K2(t)),HA=Ho?t=>Buffer.from(t,"base64").toString("utf8"):M2?t=>M2.decode(G2(t)):t=>H2(dp(t)),K2=t=>D2(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),hp=t=>HA(K2(t)),WA=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},Z2=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),Q2=function(){const t=(e,n)=>Object.defineProperty(String.prototype,e,Z2(n));t("fromBase64",function(){return hp(this)}),t("toBase64",function(e){return Wo(this,e)}),t("toBase64URI",function(){return Wo(this,!0)}),t("toBase64URL",function(){return Wo(this,!0)}),t("toUint8Array",function(){return Y2(this)})},q2=function(){const t=(e,n)=>Object.defineProperty(Uint8Array.prototype,e,Z2(n));t("toBase64",function(e){return hu(this,e)}),t("toBase64URI",function(){return hu(this,!0)}),t("toBase64URL",function(){return hu(this,!0)})},GA={version:I2,VERSION:jA,atob:dp,atobPolyfill:W2,btoa:up,btoaPolyfill:V2,fromBase64:hp,toBase64:Wo,encode:Wo,encodeURI:z2,encodeURL:z2,utob:U2,btou:H2,decode:hp,isValid:WA,fromUint8Array:hu,toUint8Array:Y2,extendString:Q2,extendUint8Array:q2,extendBuiltins:()=>{Q2(),q2()}};var pp={exports:{}},mp={exports:{}},J2;function YA(){return J2||(J2=1,(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={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 e.rotl(n,8)&16711935|e.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=e.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(t.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((t.indexOf(n.charAt(i-1))&Math.pow(2,-2*a+8)-1)<<a*2|t.indexOf(n.charAt(i))>>>6-a*2);return r}};mp.exports=e})()),mp.exports}var gp,X2;function $2(){if(X2)return gp;X2=1;var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var n=[],r=0;r<e.length;r++)n.push(e.charCodeAt(r)&255);return n},bytesToString:function(e){for(var n=[],r=0;r<e.length;r++)n.push(String.fromCharCode(e[r]));return n.join("")}}};return gp=t,gp}/*!
72
+ }`;var rt=v_(function(){return St(M,Me+"return "+we).apply(n,H)});if(rt.source=we,J0(rt))throw rt;return rt}function _Y(l){return Ot(l).toLowerCase()}function AY(l){return Ot(l).toUpperCase()}function kY(l,f,g){if(l=Ot(l),l&&(g||f===n))return A8(l);if(!l||!(f=Nr(f)))return l;var E=yi(l),O=yi(f),M=k8(E,O),H=T8(E,O)+1;return Va(E,M,H).join("")}function TY(l,f,g){if(l=Ot(l),l&&(g||f===n))return l.slice(0,R8(l)+1);if(!l||!(f=Nr(f)))return l;var E=yi(l),O=T8(E,yi(f))+1;return Va(E,0,O).join("")}function OY(l,f,g){if(l=Ot(l),l&&(g||f===n))return l.replace(pn,"");if(!l||!(f=Nr(f)))return l;var E=yi(l),O=k8(E,yi(f));return Va(E,O).join("")}function RY(l,f){var g=U,E=D;if(en(f)){var O="separator"in f?f.separator:O;g="length"in f?et(f.length):g,E="omission"in f?Nr(f.omission):E}l=Ot(l);var M=l.length;if(Vs(l)){var H=yi(l);M=H.length}if(g>=M)return l;var Q=g-Us(E);if(Q<1)return E;var $=H?Va(H,0,Q).join(""):l.slice(0,Q);if(O===n)return $+E;if(H&&(Q+=$.length-Q),X0(O)){if(l.slice(Q).search(O)){var me,ge=$;for(O.global||(O=p0(O.source,Ot(Kr.exec(O))+"g")),O.lastIndex=0;me=O.exec(ge);)var we=me.index;$=$.slice(0,we===n?Q:we)}}else if(l.indexOf(Nr(O),Q)!=Q){var Ce=$.lastIndexOf(O);Ce>-1&&($=$.slice(0,Ce))}return $+E}function NY(l){return l=Ot(l),l&&pr.test(l)?l.replace(hr,oB):l}var PY=Ks(function(l,f,g){return l+(g?" ":"")+f.toUpperCase()}),ty=y4("toUpperCase");function g_(l,f,g){return l=Ot(l),f=g?n:f,f===n?tB(l)?cB(l):YU(l):l.match(f)||[]}var v_=ot(function(l,f){try{return Or(l,n,f)}catch(g){return J0(g)?g:new Ye(g)}}),IY=aa(function(l,f){return Xr(f,function(g){g=Vi(g),ra(l,g,Q0(l[g],l))}),l});function MY(l){var f=l==null?0:l.length,g=De();return l=f?Zt(l,function(E){if(typeof E[1]!="function")throw new $r(o);return[g(E[0]),E[1]]}):[],ot(function(E){for(var O=-1;++O<f;){var M=l[O];if(Or(M[0],this,E))return Or(M[1],this,E)}})}function LY(l){return oz(ti(l,h))}function ny(l){return function(){return l}}function FY(l,f){return l==null||l!==l?f:l}var jY=w4(),DY=w4(!0);function Er(l){return l}function ry(l){return q8(typeof l=="function"?l:ti(l,h))}function VY(l){return X8(ti(l,h))}function UY(l,f){return $8(l,ti(f,h))}var BY=ot(function(l,f){return function(g){return Rc(g,l,f)}}),zY=ot(function(l,f){return function(g){return Rc(l,g,f)}});function iy(l,f,g){var E=Pn(f),O=Od(f,E);g==null&&!(en(f)&&(O.length||!E.length))&&(g=f,f=l,l=this,O=Od(f,Pn(f)));var M=!(en(g)&&"chain"in g)||!!g.chain,H=sa(l);return Xr(O,function(Q){var $=f[Q];l[Q]=$,H&&(l.prototype[Q]=function(){var me=this.__chain__;if(M||me){var ge=l(this.__wrapped__),we=ge.__actions__=br(this.__actions__);return we.push({func:$,args:arguments,thisArg:l}),ge.__chain__=me,ge}return $.apply(l,Ia([this.value()],arguments))})}),l}function HY(){return Fn._===this&&(Fn._=mB),this}function ay(){}function WY(l){return l=et(l),ot(function(f){return e4(f,l)})}var GY=F0(Zt),YY=F0(S8),KY=F0(s0);function y_(l){return H0(l)?l0(Vi(l)):Cz(l)}function ZY(l){return function(f){return l==null?n:wo(l,f)}}var QY=E4(),qY=E4(!0);function oy(){return[]}function sy(){return!1}function JY(){return{}}function XY(){return""}function $Y(){return!0}function eK(l,f){if(l=et(l),l<1||l>B)return[];var g=K,E=Gn(l,K);f=De(f),l-=K;for(var O=f0(E,f);++g<l;)f(g);return O}function tK(l){return qe(l)?Zt(l,Vi):Pr(l)?[l]:br(D4(Ot(l)))}function nK(l){var f=++hB;return Ot(l)+f}var rK=Ld(function(l,f){return l+f},0),iK=j0("ceil"),aK=Ld(function(l,f){return l/f},1),oK=j0("floor");function sK(l){return l&&l.length?Td(l,Er,E0):n}function lK(l,f){return l&&l.length?Td(l,De(f,2),E0):n}function cK(l){return x8(l,Er)}function uK(l,f){return x8(l,De(f,2))}function fK(l){return l&&l.length?Td(l,Er,A0):n}function dK(l,f){return l&&l.length?Td(l,De(f,2),A0):n}var hK=Ld(function(l,f){return l*f},1),pK=j0("round"),mK=Ld(function(l,f){return l-f},0);function gK(l){return l&&l.length?u0(l,Er):0}function vK(l,f){return l&&l.length?u0(l,De(f,2)):0}return P.after=VW,P.ary=Q4,P.assign=AG,P.assignIn=c_,P.assignInWith=Zd,P.assignWith=kG,P.at=TG,P.before=q4,P.bind=Q0,P.bindAll=IY,P.bindKey=J4,P.castArray=JW,P.chain=Y4,P.chunk=oH,P.compact=sH,P.concat=lH,P.cond=MY,P.conforms=LY,P.constant=ny,P.countBy=gW,P.create=OG,P.curry=X4,P.curryRight=$4,P.debounce=e_,P.defaults=RG,P.defaultsDeep=NG,P.defer=UW,P.delay=BW,P.difference=cH,P.differenceBy=uH,P.differenceWith=fH,P.drop=dH,P.dropRight=hH,P.dropRightWhile=pH,P.dropWhile=mH,P.fill=gH,P.filter=yW,P.flatMap=SW,P.flatMapDeep=EW,P.flatMapDepth=CW,P.flatten=z4,P.flattenDeep=vH,P.flattenDepth=yH,P.flip=zW,P.flow=jY,P.flowRight=DY,P.fromPairs=bH,P.functions=DG,P.functionsIn=VG,P.groupBy=xW,P.initial=SH,P.intersection=EH,P.intersectionBy=CH,P.intersectionWith=xH,P.invert=BG,P.invertBy=zG,P.invokeMap=AW,P.iteratee=ry,P.keyBy=kW,P.keys=Pn,P.keysIn=Sr,P.map=zd,P.mapKeys=WG,P.mapValues=GG,P.matches=VY,P.matchesProperty=UY,P.memoize=Wd,P.merge=YG,P.mergeWith=u_,P.method=BY,P.methodOf=zY,P.mixin=iy,P.negate=Gd,P.nthArg=WY,P.omit=KG,P.omitBy=ZG,P.once=HW,P.orderBy=TW,P.over=GY,P.overArgs=WW,P.overEvery=YY,P.overSome=KY,P.partial=q0,P.partialRight=t_,P.partition=OW,P.pick=QG,P.pickBy=f_,P.property=y_,P.propertyOf=ZY,P.pull=TH,P.pullAll=W4,P.pullAllBy=OH,P.pullAllWith=RH,P.pullAt=NH,P.range=QY,P.rangeRight=qY,P.rearg=GW,P.reject=PW,P.remove=PH,P.rest=YW,P.reverse=K0,P.sampleSize=MW,P.set=JG,P.setWith=XG,P.shuffle=LW,P.slice=IH,P.sortBy=DW,P.sortedUniq=UH,P.sortedUniqBy=BH,P.split=SY,P.spread=KW,P.tail=zH,P.take=HH,P.takeRight=WH,P.takeRightWhile=GH,P.takeWhile=YH,P.tap=sW,P.throttle=ZW,P.thru=Bd,P.toArray=o_,P.toPairs=d_,P.toPairsIn=h_,P.toPath=tK,P.toPlainObject=l_,P.transform=$G,P.unary=QW,P.union=KH,P.unionBy=ZH,P.unionWith=QH,P.uniq=qH,P.uniqBy=JH,P.uniqWith=XH,P.unset=eY,P.unzip=Z0,P.unzipWith=G4,P.update=tY,P.updateWith=nY,P.values=qs,P.valuesIn=rY,P.without=$H,P.words=g_,P.wrap=qW,P.xor=eW,P.xorBy=tW,P.xorWith=nW,P.zip=rW,P.zipObject=iW,P.zipObjectDeep=aW,P.zipWith=oW,P.entries=d_,P.entriesIn=h_,P.extend=c_,P.extendWith=Zd,iy(P,P),P.add=rK,P.attempt=v_,P.camelCase=sY,P.capitalize=p_,P.ceil=iK,P.clamp=iY,P.clone=XW,P.cloneDeep=eG,P.cloneDeepWith=tG,P.cloneWith=$W,P.conformsTo=nG,P.deburr=m_,P.defaultTo=FY,P.divide=aK,P.endsWith=lY,P.eq=wi,P.escape=cY,P.escapeRegExp=uY,P.every=vW,P.find=bW,P.findIndex=U4,P.findKey=PG,P.findLast=wW,P.findLastIndex=B4,P.findLastKey=IG,P.floor=oK,P.forEach=K4,P.forEachRight=Z4,P.forIn=MG,P.forInRight=LG,P.forOwn=FG,P.forOwnRight=jG,P.get=$0,P.gt=rG,P.gte=iG,P.has=UG,P.hasIn=ey,P.head=H4,P.identity=Er,P.includes=_W,P.indexOf=wH,P.inRange=aY,P.invoke=HG,P.isArguments=Co,P.isArray=qe,P.isArrayBuffer=aG,P.isArrayLike=wr,P.isArrayLikeObject=un,P.isBoolean=oG,P.isBuffer=Ua,P.isDate=sG,P.isElement=lG,P.isEmpty=cG,P.isEqual=uG,P.isEqualWith=fG,P.isError=J0,P.isFinite=dG,P.isFunction=sa,P.isInteger=n_,P.isLength=Yd,P.isMap=r_,P.isMatch=hG,P.isMatchWith=pG,P.isNaN=mG,P.isNative=gG,P.isNil=yG,P.isNull=vG,P.isNumber=i_,P.isObject=en,P.isObjectLike=rn,P.isPlainObject=Fc,P.isRegExp=X0,P.isSafeInteger=bG,P.isSet=a_,P.isString=Kd,P.isSymbol=Pr,P.isTypedArray=Qs,P.isUndefined=wG,P.isWeakMap=SG,P.isWeakSet=EG,P.join=_H,P.kebabCase=fY,P.last=ri,P.lastIndexOf=AH,P.lowerCase=dY,P.lowerFirst=hY,P.lt=CG,P.lte=xG,P.max=sK,P.maxBy=lK,P.mean=cK,P.meanBy=uK,P.min=fK,P.minBy=dK,P.stubArray=oy,P.stubFalse=sy,P.stubObject=JY,P.stubString=XY,P.stubTrue=$Y,P.multiply=hK,P.nth=kH,P.noConflict=HY,P.noop=ay,P.now=Hd,P.pad=pY,P.padEnd=mY,P.padStart=gY,P.parseInt=vY,P.random=oY,P.reduce=RW,P.reduceRight=NW,P.repeat=yY,P.replace=bY,P.result=qG,P.round=pK,P.runInContext=X,P.sample=IW,P.size=FW,P.snakeCase=wY,P.some=jW,P.sortedIndex=MH,P.sortedIndexBy=LH,P.sortedIndexOf=FH,P.sortedLastIndex=jH,P.sortedLastIndexBy=DH,P.sortedLastIndexOf=VH,P.startCase=EY,P.startsWith=CY,P.subtract=mK,P.sum=gK,P.sumBy=vK,P.template=xY,P.times=eK,P.toFinite=la,P.toInteger=et,P.toLength=s_,P.toLower=_Y,P.toNumber=ii,P.toSafeInteger=_G,P.toString=Ot,P.toUpper=AY,P.trim=kY,P.trimEnd=TY,P.trimStart=OY,P.truncate=RY,P.unescape=NY,P.uniqueId=nK,P.upperCase=PY,P.upperFirst=ty,P.each=K4,P.eachRight=Z4,P.first=H4,iy(P,(function(){var l={};return ji(P,function(f,g){Tt.call(P.prototype,g)||(l[g]=f)}),l})(),{chain:!1}),P.VERSION=r,Xr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){P[l].placeholder=P}),Xr(["drop","take"],function(l,f){ft.prototype[l]=function(g){g=g===n?1:Cn(et(g),0);var E=this.__filtered__&&!f?new ft(this):this.clone();return E.__filtered__?E.__takeCount__=Gn(g,E.__takeCount__):E.__views__.push({size:Gn(g,K),type:l+(E.__dir__<0?"Right":"")}),E},ft.prototype[l+"Right"]=function(g){return this.reverse()[l](g).reverse()}}),Xr(["filter","map","takeWhile"],function(l,f){var g=f+1,E=g==j||g==V;ft.prototype[l]=function(O){var M=this.clone();return M.__iteratees__.push({iteratee:De(O,3),type:g}),M.__filtered__=M.__filtered__||E,M}}),Xr(["head","last"],function(l,f){var g="take"+(f?"Right":"");ft.prototype[l]=function(){return this[g](1).value()[0]}}),Xr(["initial","tail"],function(l,f){var g="drop"+(f?"":"Right");ft.prototype[l]=function(){return this.__filtered__?new ft(this):this[g](1)}}),ft.prototype.compact=function(){return this.filter(Er)},ft.prototype.find=function(l){return this.filter(l).head()},ft.prototype.findLast=function(l){return this.reverse().find(l)},ft.prototype.invokeMap=ot(function(l,f){return typeof l=="function"?new ft(this):this.map(function(g){return Rc(g,l,f)})}),ft.prototype.reject=function(l){return this.filter(Gd(De(l)))},ft.prototype.slice=function(l,f){l=et(l);var g=this;return g.__filtered__&&(l>0||f<0)?new ft(g):(l<0?g=g.takeRight(-l):l&&(g=g.drop(l)),f!==n&&(f=et(f),g=f<0?g.dropRight(-f):g.take(f-l)),g)},ft.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},ft.prototype.toArray=function(){return this.take(K)},ji(ft.prototype,function(l,f){var g=/^(?:filter|find|map|reject)|While$/.test(f),E=/^(?:head|last)$/.test(f),O=P[E?"take"+(f=="last"?"Right":""):f],M=E||/^find/.test(f);O&&(P.prototype[f]=function(){var H=this.__wrapped__,Q=E?[1]:arguments,$=H instanceof ft,me=Q[0],ge=$||qe(H),we=function(lt){var pt=O.apply(P,Ia([lt],Q));return E&&Ce?pt[0]:pt};ge&&g&&typeof me=="function"&&me.length!=1&&($=ge=!1);var Ce=this.__chain__,Me=!!this.__actions__.length,Ue=M&&!Ce,rt=$&&!Me;if(!M&&ge){H=rt?H:new ft(this);var Be=l.apply(H,Q);return Be.__actions__.push({func:Bd,args:[we],thisArg:n}),new ei(Be,Ce)}return Ue&&rt?l.apply(this,Q):(Be=this.thru(we),Ue?E?Be.value()[0]:Be.value():Be)})}),Xr(["pop","push","shift","sort","splice","unshift"],function(l){var f=hd[l],g=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",E=/^(?:pop|shift)$/.test(l);P.prototype[l]=function(){var O=arguments;if(E&&!this.__chain__){var M=this.value();return f.apply(qe(M)?M:[],O)}return this[g](function(H){return f.apply(qe(H)?H:[],O)})}}),ji(ft.prototype,function(l,f){var g=P[f];if(g){var E=g.name+"";Tt.call(Ws,E)||(Ws[E]=[]),Ws[E].push({name:f,func:g})}}),Ws[Md(n,x).name]=[{name:"wrapper",func:n}],ft.prototype.clone=NB,ft.prototype.reverse=PB,ft.prototype.value=IB,P.prototype.at=lW,P.prototype.chain=cW,P.prototype.commit=uW,P.prototype.next=fW,P.prototype.plant=hW,P.prototype.reverse=pW,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=mW,P.prototype.first=P.prototype.head,Cc&&(P.prototype[Cc]=dW),P}),Bs=uB();mo?((mo.exports=Bs)._=Bs,r0._=Bs):Fn._=Bs}).call(LA)})(El,El.exports)),El.exports}var Ne=FA();const I2="3.7.8",jA=I2,Ho=typeof Buffer=="function",M2=typeof TextDecoder=="function"?new TextDecoder:void 0,L2=typeof TextEncoder=="function"?new TextEncoder:void 0,Cl=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),du=(t=>{let e={};return t.forEach((n,r)=>e[n]=r),e})(Cl),DA=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Mn=String.fromCharCode.bind(String),F2=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),j2=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),D2=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),V2=t=>{let e,n,r,i,a="";const o=t.length%3;for(let s=0;s<t.length;){if((n=t.charCodeAt(s++))>255||(r=t.charCodeAt(s++))>255||(i=t.charCodeAt(s++))>255)throw new TypeError("invalid character found");e=n<<16|r<<8|i,a+=Cl[e>>18&63]+Cl[e>>12&63]+Cl[e>>6&63]+Cl[e&63]}return o?a.slice(0,o-3)+"===".substring(o):a},up=typeof btoa=="function"?t=>btoa(t):Ho?t=>Buffer.from(t,"binary").toString("base64"):V2,fp=Ho?t=>Buffer.from(t).toString("base64"):t=>{let n=[];for(let r=0,i=t.length;r<i;r+=4096)n.push(Mn.apply(null,t.subarray(r,r+4096)));return up(n.join(""))},hu=(t,e=!1)=>e?j2(fp(t)):fp(t),VA=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?Mn(192|e>>>6)+Mn(128|e&63):Mn(224|e>>>12&15)+Mn(128|e>>>6&63)+Mn(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return Mn(240|e>>>18&7)+Mn(128|e>>>12&63)+Mn(128|e>>>6&63)+Mn(128|e&63)}},UA=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,U2=t=>t.replace(UA,VA),B2=Ho?t=>Buffer.from(t,"utf8").toString("base64"):L2?t=>fp(L2.encode(t)):t=>up(U2(t)),Wo=(t,e=!1)=>e?j2(B2(t)):B2(t),z2=t=>Wo(t,!0),BA=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,zA=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),n=e-65536;return Mn((n>>>10)+55296)+Mn((n&1023)+56320);case 3:return Mn((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return Mn((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},H2=t=>t.replace(BA,zA),W2=t=>{if(t=t.replace(/\s+/g,""),!DA.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,n,r,i=[];for(let a=0;a<t.length;)e=du[t.charAt(a++)]<<18|du[t.charAt(a++)]<<12|(n=du[t.charAt(a++)])<<6|(r=du[t.charAt(a++)]),n===64?i.push(Mn(e>>16&255)):r===64?i.push(Mn(e>>16&255,e>>8&255)):i.push(Mn(e>>16&255,e>>8&255,e&255));return i.join("")},dp=typeof atob=="function"?t=>atob(D2(t)):Ho?t=>Buffer.from(t,"base64").toString("binary"):W2,G2=Ho?t=>F2(Buffer.from(t,"base64")):t=>F2(dp(t).split("").map(e=>e.charCodeAt(0))),Y2=t=>G2(K2(t)),HA=Ho?t=>Buffer.from(t,"base64").toString("utf8"):M2?t=>M2.decode(G2(t)):t=>H2(dp(t)),K2=t=>D2(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),hp=t=>HA(K2(t)),WA=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},Z2=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),Q2=function(){const t=(e,n)=>Object.defineProperty(String.prototype,e,Z2(n));t("fromBase64",function(){return hp(this)}),t("toBase64",function(e){return Wo(this,e)}),t("toBase64URI",function(){return Wo(this,!0)}),t("toBase64URL",function(){return Wo(this,!0)}),t("toUint8Array",function(){return Y2(this)})},q2=function(){const t=(e,n)=>Object.defineProperty(Uint8Array.prototype,e,Z2(n));t("toBase64",function(e){return hu(this,e)}),t("toBase64URI",function(){return hu(this,!0)}),t("toBase64URL",function(){return hu(this,!0)})},GA={version:I2,VERSION:jA,atob:dp,atobPolyfill:W2,btoa:up,btoaPolyfill:V2,fromBase64:hp,toBase64:Wo,encode:Wo,encodeURI:z2,encodeURL:z2,utob:U2,btou:H2,decode:hp,isValid:WA,fromUint8Array:hu,toUint8Array:Y2,extendString:Q2,extendUint8Array:q2,extendBuiltins:()=>{Q2(),q2()}};var pp={exports:{}},mp={exports:{}},J2;function YA(){return J2||(J2=1,(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={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 e.rotl(n,8)&16711935|e.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=e.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(t.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((t.indexOf(n.charAt(i-1))&Math.pow(2,-2*a+8)-1)<<a*2|t.indexOf(n.charAt(i))>>>6-a*2);return r}};mp.exports=e})()),mp.exports}var gp,X2;function $2(){if(X2)return gp;X2=1;var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var n=[],r=0;r<e.length;r++)n.push(e.charCodeAt(r)&255);return n},bytesToString:function(e){for(var n=[],r=0;r<e.length;r++)n.push(String.fromCharCode(e[r]));return n.join("")}}};return gp=t,gp}/*!
73
73
  * Determine if an object is a Buffer
74
74
  *
75
75
  * @author Feross Aboukhadijeh <https://feross.org>
76
76
  * @license MIT
77
- */var vp,e6;function KA(){if(e6)return vp;e6=1,vp=function(n){return n!=null&&(t(n)||e(n)||!!n._isBuffer)};function t(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function e(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&t(n.slice(0,0))}return vp}var t6;function ZA(){return t6||(t6=1,(function(){var t=YA(),e=$2().utf8,n=KA(),r=$2().bin,i=function(a,o){a.constructor==String?o&&o.encoding==="binary"?a=r.stringToBytes(a):a=e.stringToBytes(a):n(a)?a=Array.prototype.slice.call(a,0):!Array.isArray(a)&&a.constructor!==Uint8Array&&(a=a.toString());for(var s=t.bytesToWords(a),c=a.length*8,u=1732584193,d=-271733879,h=-1732584194,m=271733878,p=0;p<s.length;p++)s[p]=(s[p]<<8|s[p]>>>24)&16711935|(s[p]<<24|s[p]>>>8)&4278255360;s[c>>>5]|=128<<c%32,s[(c+64>>>9<<4)+14]=c;for(var y=i._ff,b=i._gg,v=i._hh,x=i._ii,p=0;p<s.length;p+=16){var _=u,T=d,C=h,w=m;u=y(u,d,h,m,s[p+0],7,-680876936),m=y(m,u,d,h,s[p+1],12,-389564586),h=y(h,m,u,d,s[p+2],17,606105819),d=y(d,h,m,u,s[p+3],22,-1044525330),u=y(u,d,h,m,s[p+4],7,-176418897),m=y(m,u,d,h,s[p+5],12,1200080426),h=y(h,m,u,d,s[p+6],17,-1473231341),d=y(d,h,m,u,s[p+7],22,-45705983),u=y(u,d,h,m,s[p+8],7,1770035416),m=y(m,u,d,h,s[p+9],12,-1958414417),h=y(h,m,u,d,s[p+10],17,-42063),d=y(d,h,m,u,s[p+11],22,-1990404162),u=y(u,d,h,m,s[p+12],7,1804603682),m=y(m,u,d,h,s[p+13],12,-40341101),h=y(h,m,u,d,s[p+14],17,-1502002290),d=y(d,h,m,u,s[p+15],22,1236535329),u=b(u,d,h,m,s[p+1],5,-165796510),m=b(m,u,d,h,s[p+6],9,-1069501632),h=b(h,m,u,d,s[p+11],14,643717713),d=b(d,h,m,u,s[p+0],20,-373897302),u=b(u,d,h,m,s[p+5],5,-701558691),m=b(m,u,d,h,s[p+10],9,38016083),h=b(h,m,u,d,s[p+15],14,-660478335),d=b(d,h,m,u,s[p+4],20,-405537848),u=b(u,d,h,m,s[p+9],5,568446438),m=b(m,u,d,h,s[p+14],9,-1019803690),h=b(h,m,u,d,s[p+3],14,-187363961),d=b(d,h,m,u,s[p+8],20,1163531501),u=b(u,d,h,m,s[p+13],5,-1444681467),m=b(m,u,d,h,s[p+2],9,-51403784),h=b(h,m,u,d,s[p+7],14,1735328473),d=b(d,h,m,u,s[p+12],20,-1926607734),u=v(u,d,h,m,s[p+5],4,-378558),m=v(m,u,d,h,s[p+8],11,-2022574463),h=v(h,m,u,d,s[p+11],16,1839030562),d=v(d,h,m,u,s[p+14],23,-35309556),u=v(u,d,h,m,s[p+1],4,-1530992060),m=v(m,u,d,h,s[p+4],11,1272893353),h=v(h,m,u,d,s[p+7],16,-155497632),d=v(d,h,m,u,s[p+10],23,-1094730640),u=v(u,d,h,m,s[p+13],4,681279174),m=v(m,u,d,h,s[p+0],11,-358537222),h=v(h,m,u,d,s[p+3],16,-722521979),d=v(d,h,m,u,s[p+6],23,76029189),u=v(u,d,h,m,s[p+9],4,-640364487),m=v(m,u,d,h,s[p+12],11,-421815835),h=v(h,m,u,d,s[p+15],16,530742520),d=v(d,h,m,u,s[p+2],23,-995338651),u=x(u,d,h,m,s[p+0],6,-198630844),m=x(m,u,d,h,s[p+7],10,1126891415),h=x(h,m,u,d,s[p+14],15,-1416354905),d=x(d,h,m,u,s[p+5],21,-57434055),u=x(u,d,h,m,s[p+12],6,1700485571),m=x(m,u,d,h,s[p+3],10,-1894986606),h=x(h,m,u,d,s[p+10],15,-1051523),d=x(d,h,m,u,s[p+1],21,-2054922799),u=x(u,d,h,m,s[p+8],6,1873313359),m=x(m,u,d,h,s[p+15],10,-30611744),h=x(h,m,u,d,s[p+6],15,-1560198380),d=x(d,h,m,u,s[p+13],21,1309151649),u=x(u,d,h,m,s[p+4],6,-145523070),m=x(m,u,d,h,s[p+11],10,-1120210379),h=x(h,m,u,d,s[p+2],15,718787259),d=x(d,h,m,u,s[p+9],21,-343485551),u=u+_>>>0,d=d+T>>>0,h=h+C>>>0,m=m+w>>>0}return t.endian([u,d,h,m])};i._ff=function(a,o,s,c,u,d,h){var m=a+(o&s|~o&c)+(u>>>0)+h;return(m<<d|m>>>32-d)+o},i._gg=function(a,o,s,c,u,d,h){var m=a+(o&c|s&~c)+(u>>>0)+h;return(m<<d|m>>>32-d)+o},i._hh=function(a,o,s,c,u,d,h){var m=a+(o^s^c)+(u>>>0)+h;return(m<<d|m>>>32-d)+o},i._ii=function(a,o,s,c,u,d,h){var m=a+(s^(o|~c))+(u>>>0)+h;return(m<<d|m>>>32-d)+o},i._blocksize=16,i._digestsize=16,pp.exports=function(a,o){if(a==null)throw new Error("Illegal argument "+a);var s=t.wordsToBytes(i(a,o));return o&&o.asBytes?s:o&&o.asString?r.bytesToString(s):t.bytesToHex(s)}})()),pp.exports}var QA=ZA();const qA=Qa(QA),n6=/\+/g;function r6(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function JA(t){return r6(t.replace(n6," "))}function XA(t){return r6(t.replace(n6," "))}function $A(t=""){const e=Object.create(null);t[0]==="?"&&(t=t.slice(1));for(const n of t.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const i=JA(r[1]);if(i==="__proto__"||i==="constructor")continue;const a=XA(r[2]||"");e[i]===void 0?e[i]=a:Array.isArray(e[i])?e[i].push(a):e[i]=[e[i],a]}return e}const ek=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,tk=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,nk=/^([/\\]\s*){2,}[^/\\]/;function i6(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?ek.test(t):tk.test(t)||(e.acceptRelative?nk.test(t):!1)}function a6(t){return $A(yp(t).search)}const rk=Symbol.for("ufo:protocolRelative");function yp(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,h,m=""]=n;return{protocol:h.toLowerCase(),pathname:m,href:h+m,auth:"",host:"",search:"",hash:""}}if(!i6(t,{acceptRelative:!0}))return e?yp(e+t):o6(t);const[,r="",i,a=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",s=""]=a.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(s=s.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:u,hash:d}=o6(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:o,pathname:c,search:u,hash:d,[rk]:!r}}function o6(t=""){const[e="",n="",r=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:r}}function ik(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,o,s=[],c=!0,u=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function s6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Vn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?s6(Object(n),!0).forEach(function(r){sk(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s6(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function bp(t){"@babel/helpers - typeof";return bp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bp(t)}function ak(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l6(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f6(r.key),r)}}function ok(t,e,n){return e&&l6(t.prototype,e),n&&l6(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function sk(t,e,n){return e=f6(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c6(t,e){return ck(t)||ik(t,e)||u6(t,e)||dk()}function wp(t){return lk(t)||uk(t)||u6(t)||fk()}function lk(t){if(Array.isArray(t))return Sp(t)}function ck(t){if(Array.isArray(t))return t}function uk(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function u6(t,e){if(t){if(typeof t=="string")return Sp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sp(t,e)}}function Sp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
77
+ */var vp,e6;function KA(){if(e6)return vp;e6=1,vp=function(n){return n!=null&&(t(n)||e(n)||!!n._isBuffer)};function t(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function e(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&t(n.slice(0,0))}return vp}var t6;function ZA(){return t6||(t6=1,(function(){var t=YA(),e=$2().utf8,n=KA(),r=$2().bin,i=function(a,o){a.constructor==String?o&&o.encoding==="binary"?a=r.stringToBytes(a):a=e.stringToBytes(a):n(a)?a=Array.prototype.slice.call(a,0):!Array.isArray(a)&&a.constructor!==Uint8Array&&(a=a.toString());for(var s=t.bytesToWords(a),c=a.length*8,u=1732584193,d=-271733879,h=-1732584194,m=271733878,p=0;p<s.length;p++)s[p]=(s[p]<<8|s[p]>>>24)&16711935|(s[p]<<24|s[p]>>>8)&4278255360;s[c>>>5]|=128<<c%32,s[(c+64>>>9<<4)+14]=c;for(var y=i._ff,b=i._gg,v=i._hh,x=i._ii,p=0;p<s.length;p+=16){var _=u,T=d,C=h,w=m;u=y(u,d,h,m,s[p+0],7,-680876936),m=y(m,u,d,h,s[p+1],12,-389564586),h=y(h,m,u,d,s[p+2],17,606105819),d=y(d,h,m,u,s[p+3],22,-1044525330),u=y(u,d,h,m,s[p+4],7,-176418897),m=y(m,u,d,h,s[p+5],12,1200080426),h=y(h,m,u,d,s[p+6],17,-1473231341),d=y(d,h,m,u,s[p+7],22,-45705983),u=y(u,d,h,m,s[p+8],7,1770035416),m=y(m,u,d,h,s[p+9],12,-1958414417),h=y(h,m,u,d,s[p+10],17,-42063),d=y(d,h,m,u,s[p+11],22,-1990404162),u=y(u,d,h,m,s[p+12],7,1804603682),m=y(m,u,d,h,s[p+13],12,-40341101),h=y(h,m,u,d,s[p+14],17,-1502002290),d=y(d,h,m,u,s[p+15],22,1236535329),u=b(u,d,h,m,s[p+1],5,-165796510),m=b(m,u,d,h,s[p+6],9,-1069501632),h=b(h,m,u,d,s[p+11],14,643717713),d=b(d,h,m,u,s[p+0],20,-373897302),u=b(u,d,h,m,s[p+5],5,-701558691),m=b(m,u,d,h,s[p+10],9,38016083),h=b(h,m,u,d,s[p+15],14,-660478335),d=b(d,h,m,u,s[p+4],20,-405537848),u=b(u,d,h,m,s[p+9],5,568446438),m=b(m,u,d,h,s[p+14],9,-1019803690),h=b(h,m,u,d,s[p+3],14,-187363961),d=b(d,h,m,u,s[p+8],20,1163531501),u=b(u,d,h,m,s[p+13],5,-1444681467),m=b(m,u,d,h,s[p+2],9,-51403784),h=b(h,m,u,d,s[p+7],14,1735328473),d=b(d,h,m,u,s[p+12],20,-1926607734),u=v(u,d,h,m,s[p+5],4,-378558),m=v(m,u,d,h,s[p+8],11,-2022574463),h=v(h,m,u,d,s[p+11],16,1839030562),d=v(d,h,m,u,s[p+14],23,-35309556),u=v(u,d,h,m,s[p+1],4,-1530992060),m=v(m,u,d,h,s[p+4],11,1272893353),h=v(h,m,u,d,s[p+7],16,-155497632),d=v(d,h,m,u,s[p+10],23,-1094730640),u=v(u,d,h,m,s[p+13],4,681279174),m=v(m,u,d,h,s[p+0],11,-358537222),h=v(h,m,u,d,s[p+3],16,-722521979),d=v(d,h,m,u,s[p+6],23,76029189),u=v(u,d,h,m,s[p+9],4,-640364487),m=v(m,u,d,h,s[p+12],11,-421815835),h=v(h,m,u,d,s[p+15],16,530742520),d=v(d,h,m,u,s[p+2],23,-995338651),u=x(u,d,h,m,s[p+0],6,-198630844),m=x(m,u,d,h,s[p+7],10,1126891415),h=x(h,m,u,d,s[p+14],15,-1416354905),d=x(d,h,m,u,s[p+5],21,-57434055),u=x(u,d,h,m,s[p+12],6,1700485571),m=x(m,u,d,h,s[p+3],10,-1894986606),h=x(h,m,u,d,s[p+10],15,-1051523),d=x(d,h,m,u,s[p+1],21,-2054922799),u=x(u,d,h,m,s[p+8],6,1873313359),m=x(m,u,d,h,s[p+15],10,-30611744),h=x(h,m,u,d,s[p+6],15,-1560198380),d=x(d,h,m,u,s[p+13],21,1309151649),u=x(u,d,h,m,s[p+4],6,-145523070),m=x(m,u,d,h,s[p+11],10,-1120210379),h=x(h,m,u,d,s[p+2],15,718787259),d=x(d,h,m,u,s[p+9],21,-343485551),u=u+_>>>0,d=d+T>>>0,h=h+C>>>0,m=m+w>>>0}return t.endian([u,d,h,m])};i._ff=function(a,o,s,c,u,d,h){var m=a+(o&s|~o&c)+(u>>>0)+h;return(m<<d|m>>>32-d)+o},i._gg=function(a,o,s,c,u,d,h){var m=a+(o&c|s&~c)+(u>>>0)+h;return(m<<d|m>>>32-d)+o},i._hh=function(a,o,s,c,u,d,h){var m=a+(o^s^c)+(u>>>0)+h;return(m<<d|m>>>32-d)+o},i._ii=function(a,o,s,c,u,d,h){var m=a+(s^(o|~c))+(u>>>0)+h;return(m<<d|m>>>32-d)+o},i._blocksize=16,i._digestsize=16,pp.exports=function(a,o){if(a==null)throw new Error("Illegal argument "+a);var s=t.wordsToBytes(i(a,o));return o&&o.asBytes?s:o&&o.asString?r.bytesToString(s):t.bytesToHex(s)}})()),pp.exports}var QA=ZA();const qA=qa(QA),n6=/\+/g;function r6(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function JA(t){return r6(t.replace(n6," "))}function XA(t){return r6(t.replace(n6," "))}function $A(t=""){const e=Object.create(null);t[0]==="?"&&(t=t.slice(1));for(const n of t.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const i=JA(r[1]);if(i==="__proto__"||i==="constructor")continue;const a=XA(r[2]||"");e[i]===void 0?e[i]=a:Array.isArray(e[i])?e[i].push(a):e[i]=[e[i],a]}return e}const ek=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,tk=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,nk=/^([/\\]\s*){2,}[^/\\]/;function i6(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?ek.test(t):tk.test(t)||(e.acceptRelative?nk.test(t):!1)}function a6(t){return $A(yp(t).search)}const rk=Symbol.for("ufo:protocolRelative");function yp(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,h,m=""]=n;return{protocol:h.toLowerCase(),pathname:m,href:h+m,auth:"",host:"",search:"",hash:""}}if(!i6(t,{acceptRelative:!0}))return e?yp(e+t):o6(t);const[,r="",i,a=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",s=""]=a.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(s=s.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:u,hash:d}=o6(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:o,pathname:c,search:u,hash:d,[rk]:!r}}function o6(t=""){const[e="",n="",r=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:r}}function ik(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,o,s=[],c=!0,u=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function s6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Vn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?s6(Object(n),!0).forEach(function(r){sk(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s6(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function bp(t){"@babel/helpers - typeof";return bp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bp(t)}function ak(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l6(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f6(r.key),r)}}function ok(t,e,n){return e&&l6(t.prototype,e),n&&l6(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function sk(t,e,n){return e=f6(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c6(t,e){return ck(t)||ik(t,e)||u6(t,e)||dk()}function wp(t){return lk(t)||uk(t)||u6(t)||fk()}function lk(t){if(Array.isArray(t))return Sp(t)}function ck(t){if(Array.isArray(t))return t}function uk(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function u6(t,e){if(t){if(typeof t=="string")return Sp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sp(t,e)}}function Sp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
78
78
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
79
79
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hk(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function f6(t){var e=hk(t,"string");return typeof e=="symbol"?e:String(e)}var pk="3.8.0",mk=/^(?:[a-z\d\-_]{1,62}\.){0,125}(?:[a-z\d](?:\-(?=\-*[a-z\d])|[a-z]|\d){0,62}\.)[a-z\d]{1,63}$/i,d6=100,h6=8192,gk=.08,vk={1:75,2:50,3:35,4:23,5:20},yk=[1,2,3,4,5],bk={domain:null,useHTTPS:!0,includeLibraryParam:!0,urlPrefix:"https://",secureURLToken:null};function Ep(t){var e=t.url,n=e===void 0?"":e,r=t.useHttps,i=r===void 0?!1:r,a=i?"https://":"http://";return i6(n,!0)?yp(n):Ep({url:a+n})}function wk(t){var e;t.widthTolerance!==void 0?(m6(t.widthTolerance),e=t.widthTolerance):e=gk;var n=t.minWidth===void 0?d6:t.minWidth,r=t.maxWidth===void 0?h6:t.maxWidth;return(n!=d6||r!=h6)&&p6(n,r),[e,n,r]}function p6(t,e){if(!(Number.isInteger(t)&&Number.isInteger(e))||t<=0||e<=0||t>e)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(t," and max: ").concat(e,"."))}function m6(t){if(typeof t!="number"||t<.01)throw new Error("The srcset widthTolerance must be a number greater than or equal to 0.01")}function Sk(t){if(!Array.isArray(t)||!t.length)throw new Error("The widths argument can only be passed a valid non-empty array of integers");var e=t.every(function(n){return Number.isInteger(n)&&n>0});if(!e)throw new Error("A custom widths argument can only contain positive integer values")}function Ek(t){if(typeof t!="boolean")throw new Error("The disableVariableQuality argument can only be passed a Boolean value")}function Ck(t){if(!Array.isArray(t)||!t.length)throw new Error("The devicePixelRatios argument can only be passed a valid non-empty array of integers");var e=t.every(function(n){return typeof n=="number"&&n>=1&&n<=5});if(!e)throw new Error("The devicePixelRatios argument can only contain positive integer values between 1 and 5")}function xk(t){if(bp(t)!=="object")throw new Error("The variableQualities argument can only be an object")}var _k=(function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ak(this,t),this.settings=Vn(Vn({},bk),e),this.targetWidthsCache={},typeof this.settings.domain!="string")throw new Error("ImgixClient must be passed a valid string domain");if(mk.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-"+t.version()),this.settings.urlPrefix=this.settings.useHTTPS?"https://":"http://"}return ok(t,[{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(wp(this.settings.libraryParam?["ixlib=".concat(this.settings.libraryParam)]:[]),wp(Object.entries(n).reduce(function(s,c){var u=c6(c,2),d=u[0],h=u[1];if(h==null)return s;var m=i?a(d,h):encodeURIComponent(d),p=d.substr(-2)==="64"?i?a(h,d):GA.encodeURI(h):i?a(h,d):encodeURIComponent(h);return s.push("".concat(m,"=").concat(p)),s},[])));return"".concat(o.length>0?"?":"").concat(o.join("&"))}},{key:"_signParams",value:function(n,r){var i=this.settings.secureURLToken+n+r,a=qA(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=wk(a),s=c6(o,3),c=s[0],u=s[1],d=s[2],h;a.widths?(Sk(a.widths),h=wp(a.widths)):h=t.targetWidths(u,d,c,this.targetWidthsCache);var m=h.map(function(p){return"".concat(r.buildURL(n,Vn(Vn({},i),{},{w:p}),a)," ").concat(p,"w")});return m.join(`,
80
80
  `)}},{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&&Ck(a.devicePixelRatios);var o=a.devicePixelRatios||yk,s=a.disableVariableQuality||!1;s||Ek(s),a.variableQualities&&xk(a.variableQualities);var c=Vn(Vn({},vk),a.variableQualities),u=function(m,p,y){return"".concat(r.buildURL(m,Vn(Vn({},p),{},{dpr:y,q:p.q||c[y]||c[Math.floor(y)]}),a)," ").concat(y,"x")},d=s?o.map(function(h){return"".concat(r.buildURL(n,Vn(Vn({},i),{},{dpr:h}),a)," ").concat(h,"x")}):o.map(function(h){return u(n,i,h)});return d.join(`,
81
- `)}}],[{key:"version",value:function(){return pk}},{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=Ep({url:n,useHTTPS:i.useHTTPS}),o=a.host,s=a.pathname,c=a.search,u=Vn(Vn({},a6(c)),r);if(!o.length||!s.length)throw new Error("_buildURL: URL must match {host}/{pathname}?{query}");var d=new t(Vn({domain:o},i));return d.buildURL(s,u)}},{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=Ep({url:n,useHTTPS:a.useHTTPS}),s=o.host,c=o.pathname,u=o.search,d=Vn(Vn({},a6(u)),r);if(!s.length||!c.length)throw new Error("_buildOneStepURL: URL must match {host}/{pathname}?{query}");var h=new t(Vn({domain:s},a));return h.buildSrcSet(c,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),s=Math.floor(r);p6(n,r),m6(i);var c=i+"/"+o+"/"+s;if(c in a)return a[c];if(o===s)return[o];for(var u=[],d=o;d<s;)u.push(Math.round(d)),d*=1+i*2;return u[u.length-1]<s&&u.push(s),a[c]=u,u}}]),t})();const g6=async({fit:t,height:e,path:n,quality:r,rotate:i,width:a,needActualSize:o=!1})=>{try{return new _k({domain:`${pu("cdnDomain")}-public.imgix.net`}).buildURL(n,{f:t,h:o?1:e,q:r,r:i,w:o?1:a})}catch(s){return console.log("+++ Error happened when building file URL, error:",s,"+++"),null}};let Cp={};function pu(t){return Cp[t]}function v6(t){Cp={...Cp,...t}}const mu=()=>pu("apiBaseUrl"),Ak=()=>{var t,e;return(e=(t=mu())==null?void 0:t.replace)==null?void 0:e.call(t,"api","link")},xp=()=>jr.get("easydesk_chat_widget_public_access_token")||"",_p=(t,e,n={})=>jr.set(t,e,n),Ap=t=>/^[\w%\+\-]+(\.[\w%\+\-]+)*@[\w%\+\-]+(\.[\w%\+\-]+)+$/.test(t),gu=(t,e,n="")=>{let r="";return t&&(r=t),e&&(r=`${r} ${e}`),!r&&n&&(r=n),r},qa=(t,e,n)=>t&&e?xl(t)+xl(e):t?t.length>1?xl(t)+t.charAt(1).toUpperCase():xl(t):n?xl(n):"",kk="IMAGE_KEY",Tk=async t=>{const e=new DOMParser().parseFromString(t,"text/html"),n=e.querySelectorAll(`.${kk}`);for(const r of n){const i=await g6({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 e.body.innerHTML},xl=t=>(t==null?void 0:t.charAt(0).toUpperCase())||"",Ok=async t=>new Promise((n,r)=>{const i=new Image;i.src=t,i.onload=()=>n({width:i.naturalWidth,height:i.naturalHeight}),i.onerror=a=>r(a)}),kp={isOpen:!1,image:null,url:null,error:null,loading:!1,height:0,width:0},Rk=t=>t.trim().length>0,Tp=(t,e)=>typeof t!="string"||typeof e!="number"?(console.error("Invalid arguments for truncateText: text must be a string and maxLength must be a number."),t):t.length<=e?t:Ne.truncate(t,{length:e}),Op=["info","success","warning","error","default"],vn=(t,e,n,r,i={autoClose:1e4})=>{Op!=null&&Op.includes(t)?Rt[t](e,{position:n,toastId:r,...i}):Rt(e||"Default Toast",{position:n,toastId:r,...i})};function y6(t,e){return function(){return t.apply(e,arguments)}}const{toString:Nk}=Object.prototype,{getPrototypeOf:Rp}=Object,{iterator:vu,toStringTag:b6}=Symbol,yu=(t=>e=>{const n=Nk.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),li=t=>(t=t.toLowerCase(),e=>yu(e)===t),bu=t=>e=>typeof e===t,{isArray:Go}=Array,Yo=bu("undefined");function _l(t){return t!==null&&!Yo(t)&&t.constructor!==null&&!Yo(t.constructor)&&sr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const w6=li("ArrayBuffer");function Pk(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&w6(t.buffer),e}const Ik=bu("string"),sr=bu("function"),S6=bu("number"),Al=t=>t!==null&&typeof t=="object",Mk=t=>t===!0||t===!1,wu=t=>{if(yu(t)!=="object")return!1;const e=Rp(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(b6 in t)&&!(vu in t)},Lk=t=>{if(!Al(t)||_l(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Fk=li("Date"),jk=li("File"),Dk=li("Blob"),Vk=li("FileList"),Uk=t=>Al(t)&&sr(t.pipe),Bk=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||sr(t.append)&&((e=yu(t))==="formdata"||e==="object"&&sr(t.toString)&&t.toString()==="[object FormData]"))},zk=li("URLSearchParams"),[Hk,Wk,Gk,Yk]=["ReadableStream","Request","Response","Headers"].map(li),Kk=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kl(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),Go(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{if(_l(t))return;const a=n?Object.getOwnPropertyNames(t):Object.keys(t),o=a.length;let s;for(r=0;r<o;r++)s=a[r],e.call(null,t[s],s,t)}}function E6(t,e){if(_l(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const Ja=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,C6=t=>!Yo(t)&&t!==Ja;function Np(){const{caseless:t,skipUndefined:e}=C6(this)&&this||{},n={},r=(i,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const o=t&&E6(n,a)||a;wu(n[o])&&wu(i)?n[o]=Np(n[o],i):wu(i)?n[o]=Np({},i):Go(i)?n[o]=i.slice():(!e||!Yo(i))&&(n[o]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&kl(arguments[i],r);return n}const Zk=(t,e,n,{allOwnKeys:r}={})=>(kl(e,(i,a)=>{n&&sr(i)?Object.defineProperty(t,a,{value:y6(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,a,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),Qk=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),qk=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Jk=(t,e,n,r)=>{let i,a,o;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)o=i[a],(!r||r(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=n!==!1&&Rp(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Xk=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},$k=t=>{if(!t)return null;if(Go(t))return t;let e=t.length;if(!S6(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},eT=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Rp(Uint8Array)),tT=(t,e)=>{const r=(t&&t[vu]).call(t);let i;for(;(i=r.next())&&!i.done;){const a=i.value;e.call(t,a[0],a[1])}},nT=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},rT=li("HTMLFormElement"),iT=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),x6=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),aT=li("RegExp"),_6=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};kl(n,(i,a)=>{let o;(o=e(i,a,t))!==!1&&(r[a]=o||i)}),Object.defineProperties(t,r)},oT=t=>{_6(t,(e,n)=>{if(sr(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(sr(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},sT=(t,e)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return Go(t)?r(t):r(String(t).split(e)),n},lT=()=>{},cT=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function uT(t){return!!(t&&sr(t.append)&&t[b6]==="FormData"&&t[vu])}const fT=t=>{const e=new Array(10),n=(r,i)=>{if(Al(r)){if(e.indexOf(r)>=0)return;if(_l(r))return r;if(!("toJSON"in r)){e[i]=r;const a=Go(r)?[]:{};return kl(r,(o,s)=>{const c=n(o,i+1);!Yo(c)&&(a[s]=c)}),e[i]=void 0,a}}return r};return n(t,0)},dT=li("AsyncFunction"),hT=t=>t&&(Al(t)||sr(t))&&sr(t.then)&&sr(t.catch),A6=((t,e)=>t?setImmediate:e?((n,r)=>(Ja.addEventListener("message",({source:i,data:a})=>{i===Ja&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ja.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",sr(Ja.postMessage)),pT=typeof queueMicrotask<"u"?queueMicrotask.bind(Ja):typeof process<"u"&&process.nextTick||A6,oe={isArray:Go,isArrayBuffer:w6,isBuffer:_l,isFormData:Bk,isArrayBufferView:Pk,isString:Ik,isNumber:S6,isBoolean:Mk,isObject:Al,isPlainObject:wu,isEmptyObject:Lk,isReadableStream:Hk,isRequest:Wk,isResponse:Gk,isHeaders:Yk,isUndefined:Yo,isDate:Fk,isFile:jk,isBlob:Dk,isRegExp:aT,isFunction:sr,isStream:Uk,isURLSearchParams:zk,isTypedArray:eT,isFileList:Vk,forEach:kl,merge:Np,extend:Zk,trim:Kk,stripBOM:Qk,inherits:qk,toFlatObject:Jk,kindOf:yu,kindOfTest:li,endsWith:Xk,toArray:$k,forEachEntry:tT,matchAll:nT,isHTMLForm:rT,hasOwnProperty:x6,hasOwnProp:x6,reduceDescriptors:_6,freezeMethods:oT,toObjectSet:sT,toCamelCase:iT,noop:lT,toFiniteNumber:cT,findKey:E6,global:Ja,isContextDefined:C6,isSpecCompliantForm:uT,toJSONObject:fT,isAsyncFn:dT,isThenable:hT,setImmediate:A6,asap:pT,isIterable:t=>t!=null&&sr(t[vu])};let He=class w_ extends Error{static from(e,n,r,i,a,o){const s=new w_(e.message,n||e.code,r,i,a);return s.cause=e,s.name=e.name,o&&Object.assign(s,o),s}constructor(e,n,r,i,a){super(e),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){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:oe.toJSONObject(this.config),code:this.code,status:this.status}}};He.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",He.ERR_BAD_OPTION="ERR_BAD_OPTION",He.ECONNABORTED="ECONNABORTED",He.ETIMEDOUT="ETIMEDOUT",He.ERR_NETWORK="ERR_NETWORK",He.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",He.ERR_DEPRECATED="ERR_DEPRECATED",He.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",He.ERR_BAD_REQUEST="ERR_BAD_REQUEST",He.ERR_CANCELED="ERR_CANCELED",He.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",He.ERR_INVALID_URL="ERR_INVALID_URL";const mT=null;function Pp(t){return oe.isPlainObject(t)||oe.isArray(t)}function k6(t){return oe.endsWith(t,"[]")?t.slice(0,-2):t}function T6(t,e,n){return t?t.concat(e).map(function(i,a){return i=k6(i),!n&&a?"["+i+"]":i}).join(n?".":""):e}function gT(t){return oe.isArray(t)&&!t.some(Pp)}const vT=oe.toFlatObject(oe,{},null,function(e){return/^is[A-Z]/.test(e)});function Su(t,e,n){if(!oe.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=oe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,v){return!oe.isUndefined(v[b])});const r=n.metaTokens,i=n.visitor||d,a=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&oe.isSpecCompliantForm(e);if(!oe.isFunction(i))throw new TypeError("visitor must be a function");function u(y){if(y===null)return"";if(oe.isDate(y))return y.toISOString();if(oe.isBoolean(y))return y.toString();if(!c&&oe.isBlob(y))throw new He("Blob is not supported. Use a Buffer instead.");return oe.isArrayBuffer(y)||oe.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,b,v){let x=y;if(y&&!v&&typeof y=="object"){if(oe.endsWith(b,"{}"))b=r?b:b.slice(0,-2),y=JSON.stringify(y);else if(oe.isArray(y)&&gT(y)||(oe.isFileList(y)||oe.endsWith(b,"[]"))&&(x=oe.toArray(y)))return b=k6(b),x.forEach(function(T,C){!(oe.isUndefined(T)||T===null)&&e.append(o===!0?T6([b],C,a):o===null?b:b+"[]",u(T))}),!1}return Pp(y)?!0:(e.append(T6(v,b,a),u(y)),!1)}const h=[],m=Object.assign(vT,{defaultVisitor:d,convertValue:u,isVisitable:Pp});function p(y,b){if(!oe.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+b.join("."));h.push(y),oe.forEach(y,function(x,_){(!(oe.isUndefined(x)||x===null)&&i.call(e,x,oe.isString(_)?_.trim():_,b,m))===!0&&p(x,b?b.concat(_):[_])}),h.pop()}}if(!oe.isObject(t))throw new TypeError("data must be an object");return p(t),e}function O6(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Ip(t,e){this._pairs=[],t&&Su(t,this,e)}const R6=Ip.prototype;R6.append=function(e,n){this._pairs.push([e,n])},R6.toString=function(e){const n=e?function(r){return e.call(this,r,O6)}:O6;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function yT(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function N6(t,e,n){if(!e)return t;const r=n&&n.encode||yT,i=oe.isFunction(n)?{serialize:n}:n,a=i&&i.serialize;let o;if(a?o=a(e,i):o=oe.isURLSearchParams(e)?e.toString():new Ip(e,i).toString(r),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class P6{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){oe.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Mp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},bT={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ip,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Lp=typeof window<"u"&&typeof document<"u",Fp=typeof navigator=="object"&&navigator||void 0,wT=Lp&&(!Fp||["ReactNative","NativeScript","NS"].indexOf(Fp.product)<0),ST=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ET=Lp&&window.location.href||"http://localhost",Un={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Lp,hasStandardBrowserEnv:wT,hasStandardBrowserWebWorkerEnv:ST,navigator:Fp,origin:ET},Symbol.toStringTag,{value:"Module"})),...bT};function CT(t,e){return Su(t,new Un.classes.URLSearchParams,{visitor:function(n,r,i,a){return Un.isNode&&oe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...e})}function xT(t){return oe.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function _T(t){const e={},n=Object.keys(t);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],e[a]=t[a];return e}function I6(t){function e(n,r,i,a){let o=n[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),c=a>=n.length;return o=!o&&oe.isArray(i)?i.length:o,c?(oe.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!oe.isObject(i[o]))&&(i[o]=[]),e(n,r,i[o],a)&&oe.isArray(i[o])&&(i[o]=_T(i[o])),!s)}if(oe.isFormData(t)&&oe.isFunction(t.entries)){const n={};return oe.forEachEntry(t,(r,i)=>{e(xT(r),i,n,0)}),n}return null}function AT(t,e,n){if(oe.isString(t))try{return(e||JSON.parse)(t),oe.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Tl={transitional:Mp,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=oe.isObject(e);if(a&&oe.isHTMLForm(e)&&(e=new FormData(e)),oe.isFormData(e))return i?JSON.stringify(I6(e)):e;if(oe.isArrayBuffer(e)||oe.isBuffer(e)||oe.isStream(e)||oe.isFile(e)||oe.isBlob(e)||oe.isReadableStream(e))return e;if(oe.isArrayBufferView(e))return e.buffer;if(oe.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return CT(e,this.formSerializer).toString();if((s=oe.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Su(s?{"files[]":e}:e,c&&new c,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),AT(e)):e}],transformResponse:[function(e){const n=this.transitional||Tl.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(oe.isResponse(e)||oe.isReadableStream(e))return e;if(e&&oe.isString(e)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?He.from(s,He.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Un.classes.FormData,Blob:Un.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};oe.forEach(["delete","get","head","post","put","patch"],t=>{Tl.headers[t]={}});const kT=oe.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"]),TT=t=>{const e={};let n,r,i;return t&&t.split(`
81
+ `)}}],[{key:"version",value:function(){return pk}},{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=Ep({url:n,useHTTPS:i.useHTTPS}),o=a.host,s=a.pathname,c=a.search,u=Vn(Vn({},a6(c)),r);if(!o.length||!s.length)throw new Error("_buildURL: URL must match {host}/{pathname}?{query}");var d=new t(Vn({domain:o},i));return d.buildURL(s,u)}},{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=Ep({url:n,useHTTPS:a.useHTTPS}),s=o.host,c=o.pathname,u=o.search,d=Vn(Vn({},a6(u)),r);if(!s.length||!c.length)throw new Error("_buildOneStepURL: URL must match {host}/{pathname}?{query}");var h=new t(Vn({domain:s},a));return h.buildSrcSet(c,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),s=Math.floor(r);p6(n,r),m6(i);var c=i+"/"+o+"/"+s;if(c in a)return a[c];if(o===s)return[o];for(var u=[],d=o;d<s;)u.push(Math.round(d)),d*=1+i*2;return u[u.length-1]<s&&u.push(s),a[c]=u,u}}]),t})();const g6=async({fit:t,height:e,path:n,quality:r,rotate:i,width:a,needActualSize:o=!1})=>{try{return new _k({domain:`${pu("cdnDomain")}-public.imgix.net`}).buildURL(n,{f:t,h:o?1:e,q:r,r:i,w:o?1:a})}catch(s){return console.log("+++ Error happened when building file URL, error:",s,"+++"),null}};let Cp={};function pu(t){return Cp[t]}function v6(t){Cp={...Cp,...t}}const mu=()=>pu("apiBaseUrl"),Ak=()=>{var t,e;return(e=(t=mu())==null?void 0:t.replace)==null?void 0:e.call(t,"api","link")},xp=()=>jr.get("easydesk_chat_widget_public_access_token")||"",_p=(t,e,n={})=>jr.set(t,e,n),Ap=t=>/^[\w%\+\-]+(\.[\w%\+\-]+)*@[\w%\+\-]+(\.[\w%\+\-]+)+$/.test(t),gu=(t,e,n="")=>{let r="";return t&&(r=t),e&&(r=`${r} ${e}`),!r&&n&&(r=n),r},Ja=(t,e,n)=>t&&e?xl(t)+xl(e):t?t.length>1?xl(t)+t.charAt(1).toUpperCase():xl(t):n?xl(n):"",kk="IMAGE_KEY",Tk=async t=>{const e=new DOMParser().parseFromString(t,"text/html"),n=e.querySelectorAll(`.${kk}`);for(const r of n){const i=await g6({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 e.body.innerHTML},xl=t=>(t==null?void 0:t.charAt(0).toUpperCase())||"",Ok=async t=>new Promise((n,r)=>{const i=new Image;i.src=t,i.onload=()=>n({width:i.naturalWidth,height:i.naturalHeight}),i.onerror=a=>r(a)}),kp={isOpen:!1,image:null,url:null,error:null,loading:!1,height:0,width:0},Rk=t=>t.trim().length>0,Tp=(t,e)=>typeof t!="string"||typeof e!="number"?(console.error("Invalid arguments for truncateText: text must be a string and maxLength must be a number."),t):t.length<=e?t:Ne.truncate(t,{length:e}),Op=["info","success","warning","error","default"],vn=(t,e,n,r,i={autoClose:1e4})=>{Op!=null&&Op.includes(t)?Rt[t](e,{position:n,toastId:r,...i}):Rt(e||"Default Toast",{position:n,toastId:r,...i})};function y6(t,e){return function(){return t.apply(e,arguments)}}const{toString:Nk}=Object.prototype,{getPrototypeOf:Rp}=Object,{iterator:vu,toStringTag:b6}=Symbol,yu=(t=>e=>{const n=Nk.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),li=t=>(t=t.toLowerCase(),e=>yu(e)===t),bu=t=>e=>typeof e===t,{isArray:Go}=Array,Yo=bu("undefined");function _l(t){return t!==null&&!Yo(t)&&t.constructor!==null&&!Yo(t.constructor)&&sr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const w6=li("ArrayBuffer");function Pk(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&w6(t.buffer),e}const Ik=bu("string"),sr=bu("function"),S6=bu("number"),Al=t=>t!==null&&typeof t=="object",Mk=t=>t===!0||t===!1,wu=t=>{if(yu(t)!=="object")return!1;const e=Rp(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(b6 in t)&&!(vu in t)},Lk=t=>{if(!Al(t)||_l(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Fk=li("Date"),jk=li("File"),Dk=li("Blob"),Vk=li("FileList"),Uk=t=>Al(t)&&sr(t.pipe),Bk=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||sr(t.append)&&((e=yu(t))==="formdata"||e==="object"&&sr(t.toString)&&t.toString()==="[object FormData]"))},zk=li("URLSearchParams"),[Hk,Wk,Gk,Yk]=["ReadableStream","Request","Response","Headers"].map(li),Kk=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kl(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),Go(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{if(_l(t))return;const a=n?Object.getOwnPropertyNames(t):Object.keys(t),o=a.length;let s;for(r=0;r<o;r++)s=a[r],e.call(null,t[s],s,t)}}function E6(t,e){if(_l(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const Xa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,C6=t=>!Yo(t)&&t!==Xa;function Np(){const{caseless:t,skipUndefined:e}=C6(this)&&this||{},n={},r=(i,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const o=t&&E6(n,a)||a;wu(n[o])&&wu(i)?n[o]=Np(n[o],i):wu(i)?n[o]=Np({},i):Go(i)?n[o]=i.slice():(!e||!Yo(i))&&(n[o]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&kl(arguments[i],r);return n}const Zk=(t,e,n,{allOwnKeys:r}={})=>(kl(e,(i,a)=>{n&&sr(i)?Object.defineProperty(t,a,{value:y6(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,a,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),Qk=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),qk=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Jk=(t,e,n,r)=>{let i,a,o;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)o=i[a],(!r||r(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=n!==!1&&Rp(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Xk=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},$k=t=>{if(!t)return null;if(Go(t))return t;let e=t.length;if(!S6(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},eT=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Rp(Uint8Array)),tT=(t,e)=>{const r=(t&&t[vu]).call(t);let i;for(;(i=r.next())&&!i.done;){const a=i.value;e.call(t,a[0],a[1])}},nT=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},rT=li("HTMLFormElement"),iT=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),x6=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),aT=li("RegExp"),_6=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};kl(n,(i,a)=>{let o;(o=e(i,a,t))!==!1&&(r[a]=o||i)}),Object.defineProperties(t,r)},oT=t=>{_6(t,(e,n)=>{if(sr(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(sr(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},sT=(t,e)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return Go(t)?r(t):r(String(t).split(e)),n},lT=()=>{},cT=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function uT(t){return!!(t&&sr(t.append)&&t[b6]==="FormData"&&t[vu])}const fT=t=>{const e=new Array(10),n=(r,i)=>{if(Al(r)){if(e.indexOf(r)>=0)return;if(_l(r))return r;if(!("toJSON"in r)){e[i]=r;const a=Go(r)?[]:{};return kl(r,(o,s)=>{const c=n(o,i+1);!Yo(c)&&(a[s]=c)}),e[i]=void 0,a}}return r};return n(t,0)},dT=li("AsyncFunction"),hT=t=>t&&(Al(t)||sr(t))&&sr(t.then)&&sr(t.catch),A6=((t,e)=>t?setImmediate:e?((n,r)=>(Xa.addEventListener("message",({source:i,data:a})=>{i===Xa&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Xa.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",sr(Xa.postMessage)),pT=typeof queueMicrotask<"u"?queueMicrotask.bind(Xa):typeof process<"u"&&process.nextTick||A6,oe={isArray:Go,isArrayBuffer:w6,isBuffer:_l,isFormData:Bk,isArrayBufferView:Pk,isString:Ik,isNumber:S6,isBoolean:Mk,isObject:Al,isPlainObject:wu,isEmptyObject:Lk,isReadableStream:Hk,isRequest:Wk,isResponse:Gk,isHeaders:Yk,isUndefined:Yo,isDate:Fk,isFile:jk,isBlob:Dk,isRegExp:aT,isFunction:sr,isStream:Uk,isURLSearchParams:zk,isTypedArray:eT,isFileList:Vk,forEach:kl,merge:Np,extend:Zk,trim:Kk,stripBOM:Qk,inherits:qk,toFlatObject:Jk,kindOf:yu,kindOfTest:li,endsWith:Xk,toArray:$k,forEachEntry:tT,matchAll:nT,isHTMLForm:rT,hasOwnProperty:x6,hasOwnProp:x6,reduceDescriptors:_6,freezeMethods:oT,toObjectSet:sT,toCamelCase:iT,noop:lT,toFiniteNumber:cT,findKey:E6,global:Xa,isContextDefined:C6,isSpecCompliantForm:uT,toJSONObject:fT,isAsyncFn:dT,isThenable:hT,setImmediate:A6,asap:pT,isIterable:t=>t!=null&&sr(t[vu])};let He=class w_ extends Error{static from(e,n,r,i,a,o){const s=new w_(e.message,n||e.code,r,i,a);return s.cause=e,s.name=e.name,o&&Object.assign(s,o),s}constructor(e,n,r,i,a){super(e),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){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:oe.toJSONObject(this.config),code:this.code,status:this.status}}};He.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",He.ERR_BAD_OPTION="ERR_BAD_OPTION",He.ECONNABORTED="ECONNABORTED",He.ETIMEDOUT="ETIMEDOUT",He.ERR_NETWORK="ERR_NETWORK",He.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",He.ERR_DEPRECATED="ERR_DEPRECATED",He.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",He.ERR_BAD_REQUEST="ERR_BAD_REQUEST",He.ERR_CANCELED="ERR_CANCELED",He.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",He.ERR_INVALID_URL="ERR_INVALID_URL";const mT=null;function Pp(t){return oe.isPlainObject(t)||oe.isArray(t)}function k6(t){return oe.endsWith(t,"[]")?t.slice(0,-2):t}function T6(t,e,n){return t?t.concat(e).map(function(i,a){return i=k6(i),!n&&a?"["+i+"]":i}).join(n?".":""):e}function gT(t){return oe.isArray(t)&&!t.some(Pp)}const vT=oe.toFlatObject(oe,{},null,function(e){return/^is[A-Z]/.test(e)});function Su(t,e,n){if(!oe.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=oe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,v){return!oe.isUndefined(v[b])});const r=n.metaTokens,i=n.visitor||d,a=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&oe.isSpecCompliantForm(e);if(!oe.isFunction(i))throw new TypeError("visitor must be a function");function u(y){if(y===null)return"";if(oe.isDate(y))return y.toISOString();if(oe.isBoolean(y))return y.toString();if(!c&&oe.isBlob(y))throw new He("Blob is not supported. Use a Buffer instead.");return oe.isArrayBuffer(y)||oe.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,b,v){let x=y;if(y&&!v&&typeof y=="object"){if(oe.endsWith(b,"{}"))b=r?b:b.slice(0,-2),y=JSON.stringify(y);else if(oe.isArray(y)&&gT(y)||(oe.isFileList(y)||oe.endsWith(b,"[]"))&&(x=oe.toArray(y)))return b=k6(b),x.forEach(function(T,C){!(oe.isUndefined(T)||T===null)&&e.append(o===!0?T6([b],C,a):o===null?b:b+"[]",u(T))}),!1}return Pp(y)?!0:(e.append(T6(v,b,a),u(y)),!1)}const h=[],m=Object.assign(vT,{defaultVisitor:d,convertValue:u,isVisitable:Pp});function p(y,b){if(!oe.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+b.join("."));h.push(y),oe.forEach(y,function(x,_){(!(oe.isUndefined(x)||x===null)&&i.call(e,x,oe.isString(_)?_.trim():_,b,m))===!0&&p(x,b?b.concat(_):[_])}),h.pop()}}if(!oe.isObject(t))throw new TypeError("data must be an object");return p(t),e}function O6(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Ip(t,e){this._pairs=[],t&&Su(t,this,e)}const R6=Ip.prototype;R6.append=function(e,n){this._pairs.push([e,n])},R6.toString=function(e){const n=e?function(r){return e.call(this,r,O6)}:O6;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function yT(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function N6(t,e,n){if(!e)return t;const r=n&&n.encode||yT,i=oe.isFunction(n)?{serialize:n}:n,a=i&&i.serialize;let o;if(a?o=a(e,i):o=oe.isURLSearchParams(e)?e.toString():new Ip(e,i).toString(r),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class P6{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){oe.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Mp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},bT={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ip,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Lp=typeof window<"u"&&typeof document<"u",Fp=typeof navigator=="object"&&navigator||void 0,wT=Lp&&(!Fp||["ReactNative","NativeScript","NS"].indexOf(Fp.product)<0),ST=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ET=Lp&&window.location.href||"http://localhost",Un={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Lp,hasStandardBrowserEnv:wT,hasStandardBrowserWebWorkerEnv:ST,navigator:Fp,origin:ET},Symbol.toStringTag,{value:"Module"})),...bT};function CT(t,e){return Su(t,new Un.classes.URLSearchParams,{visitor:function(n,r,i,a){return Un.isNode&&oe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...e})}function xT(t){return oe.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function _T(t){const e={},n=Object.keys(t);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],e[a]=t[a];return e}function I6(t){function e(n,r,i,a){let o=n[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),c=a>=n.length;return o=!o&&oe.isArray(i)?i.length:o,c?(oe.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!oe.isObject(i[o]))&&(i[o]=[]),e(n,r,i[o],a)&&oe.isArray(i[o])&&(i[o]=_T(i[o])),!s)}if(oe.isFormData(t)&&oe.isFunction(t.entries)){const n={};return oe.forEachEntry(t,(r,i)=>{e(xT(r),i,n,0)}),n}return null}function AT(t,e,n){if(oe.isString(t))try{return(e||JSON.parse)(t),oe.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Tl={transitional:Mp,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=oe.isObject(e);if(a&&oe.isHTMLForm(e)&&(e=new FormData(e)),oe.isFormData(e))return i?JSON.stringify(I6(e)):e;if(oe.isArrayBuffer(e)||oe.isBuffer(e)||oe.isStream(e)||oe.isFile(e)||oe.isBlob(e)||oe.isReadableStream(e))return e;if(oe.isArrayBufferView(e))return e.buffer;if(oe.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return CT(e,this.formSerializer).toString();if((s=oe.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Su(s?{"files[]":e}:e,c&&new c,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),AT(e)):e}],transformResponse:[function(e){const n=this.transitional||Tl.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(oe.isResponse(e)||oe.isReadableStream(e))return e;if(e&&oe.isString(e)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?He.from(s,He.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Un.classes.FormData,Blob:Un.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};oe.forEach(["delete","get","head","post","put","patch"],t=>{Tl.headers[t]={}});const kT=oe.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"]),TT=t=>{const e={};let n,r,i;return t&&t.split(`
82
82
  `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||e[n]&&kT[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},M6=Symbol("internals");function Ol(t){return t&&String(t).trim().toLowerCase()}function Eu(t){return t===!1||t==null?t:oe.isArray(t)?t.map(Eu):String(t)}function OT(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const RT=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function jp(t,e,n,r,i){if(oe.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!oe.isString(e)){if(oe.isString(r))return e.indexOf(r)!==-1;if(oe.isRegExp(r))return r.test(e)}}function NT(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function PT(t,e){const n=oe.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,a,o){return this[r].call(this,e,i,a,o)},configurable:!0})})}let lr=class{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function a(s,c,u){const d=Ol(c);if(!d)throw new Error("header name must be a non-empty string");const h=oe.findKey(i,d);(!h||i[h]===void 0||u===!0||u===void 0&&i[h]!==!1)&&(i[h||c]=Eu(s))}const o=(s,c)=>oe.forEach(s,(u,d)=>a(u,d,c));if(oe.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(oe.isString(e)&&(e=e.trim())&&!RT(e))o(TT(e),n);else if(oe.isObject(e)&&oe.isIterable(e)){let s={},c,u;for(const d of e){if(!oe.isArray(d))throw TypeError("Object iterator must return a key-value pair");s[u=d[0]]=(c=s[u])?oe.isArray(c)?[...c,d[1]]:[c,d[1]]:d[1]}o(s,n)}else e!=null&&a(n,e,r);return this}get(e,n){if(e=Ol(e),e){const r=oe.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return OT(i);if(oe.isFunction(n))return n.call(this,i,r);if(oe.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Ol(e),e){const r=oe.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||jp(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function a(o){if(o=Ol(o),o){const s=oe.findKey(r,o);s&&(!n||jp(r,r[s],s,n))&&(delete r[s],i=!0)}}return oe.isArray(e)?e.forEach(a):a(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!e||jp(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){const n=this,r={};return oe.forEach(this,(i,a)=>{const o=oe.findKey(r,a);if(o){n[o]=Eu(i),delete n[a];return}const s=e?NT(a):String(a).trim();s!==a&&delete n[a],n[s]=Eu(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return oe.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&oe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
83
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[M6]=this[M6]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Ol(o);r[s]||(PT(i,o),r[s]=!0)}return oe.isArray(e)?e.forEach(a):a(e),this}};lr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),oe.reduceDescriptors(lr.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),oe.freezeMethods(lr);function Dp(t,e){const n=this||Tl,r=e||n,i=lr.from(r.headers);let a=r.data;return oe.forEach(t,function(s){a=s.call(n,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function L6(t){return!!(t&&t.__CANCEL__)}let Rl=class extends He{constructor(e,n,r){super(e??"canceled",He.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function F6(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new He("Request failed with status code "+n.status,[He.ERR_BAD_REQUEST,He.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function IT(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function MT(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,a=0,o;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),d=r[a];o||(o=u),n[i]=c,r[i]=u;let h=a,m=0;for(;h!==i;)m+=n[h++],h=h%t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),u-o<e)return;const p=d&&u-d;return p?Math.round(m*1e3/p):void 0}}function LT(t,e){let n=0,r=1e3/e,i,a;const o=(u,d=Date.now())=>{n=d,i=null,a&&(clearTimeout(a),a=null),t(...u)};return[(...u)=>{const d=Date.now(),h=d-n;h>=r?o(u,d):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},r-h)))},()=>i&&o(i)]}const Cu=(t,e,n=3)=>{let r=0;const i=MT(50,250);return LT(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,c=o-r,u=i(c),d=o<=s;r=o;const h={loaded:o,total:s,progress:s?o/s:void 0,bytes:c,rate:u||void 0,estimated:u&&s&&d?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(h)},n)},j6=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},D6=t=>(...e)=>oe.asap(()=>t(...e)),FT=Un.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Un.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Un.origin),Un.navigator&&/(msie|trident)/i.test(Un.navigator.userAgent)):()=>!0,jT=Un.hasStandardBrowserEnv?{write(t,e,n,r,i,a,o){if(typeof document>"u")return;const s=[`${t}=${encodeURIComponent(e)}`];oe.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),oe.isString(r)&&s.push(`path=${r}`),oe.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),oe.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function DT(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function VT(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function V6(t,e,n){let r=!DT(e);return t&&(r||n==!1)?VT(t,e):e}const U6=t=>t instanceof lr?{...t}:t;function Xa(t,e){e=e||{};const n={};function r(u,d,h,m){return oe.isPlainObject(u)&&oe.isPlainObject(d)?oe.merge.call({caseless:m},u,d):oe.isPlainObject(d)?oe.merge({},d):oe.isArray(d)?d.slice():d}function i(u,d,h,m){if(oe.isUndefined(d)){if(!oe.isUndefined(u))return r(void 0,u,h,m)}else return r(u,d,h,m)}function a(u,d){if(!oe.isUndefined(d))return r(void 0,d)}function o(u,d){if(oe.isUndefined(d)){if(!oe.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function s(u,d,h){if(h in e)return r(u,d);if(h in t)return r(void 0,u)}const c={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:s,headers:(u,d,h)=>i(U6(u),U6(d),h,!0)};return oe.forEach(Object.keys({...t,...e}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const h=oe.hasOwnProp(c,d)?c[d]:i,m=h(t[d],e[d],d);oe.isUndefined(m)&&h!==s||(n[d]=m)}),n}const B6=t=>{const e=Xa({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=e;if(e.headers=o=lr.from(o),e.url=N6(V6(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),oe.isFormData(n)){if(Un.hasStandardBrowserEnv||Un.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(oe.isFunction(n.getHeaders)){const c=n.getHeaders(),u=["content-type","content-length"];Object.entries(c).forEach(([d,h])=>{u.includes(d.toLowerCase())&&o.set(d,h)})}}if(Un.hasStandardBrowserEnv&&(r&&oe.isFunction(r)&&(r=r(e)),r||r!==!1&&FT(e.url))){const c=i&&a&&jT.read(a);c&&o.set(i,c)}return e},UT=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const i=B6(t);let a=i.data;const o=lr.from(i.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:u}=i,d,h,m,p,y;function b(){p&&p(),y&&y(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function x(){if(!v)return;const T=lr.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:T,config:t,request:v};F6(function(k){n(k),b()},function(k){r(k),b()},w),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(r(new He("Request aborted",He.ECONNABORTED,t,v)),v=null)},v.onerror=function(C){const w=C&&C.message?C.message:"Network Error",A=new He(w,He.ERR_NETWORK,t,v);A.event=C||null,r(A),v=null},v.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||Mp;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new He(C,w.clarifyTimeoutError?He.ETIMEDOUT:He.ECONNABORTED,t,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&oe.forEach(o.toJSON(),function(C,w){v.setRequestHeader(w,C)}),oe.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),u&&([m,y]=Cu(u,!0),v.addEventListener("progress",m)),c&&v.upload&&([h,p]=Cu(c),v.upload.addEventListener("progress",h),v.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(d=T=>{v&&(r(!T||T.type?new Rl(null,t,v):T),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const _=IT(i.url);if(_&&Un.protocols.indexOf(_)===-1){r(new He("Unsupported protocol "+_+":",He.ERR_BAD_REQUEST,t));return}v.send(a||null)})},BT=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,i;const a=function(u){if(!i){i=!0,s();const d=u instanceof Error?u:this.reason;r.abort(d instanceof He?d:new Rl(d instanceof Error?d.message:d))}};let o=e&&setTimeout(()=>{o=null,a(new He(`timeout of ${e}ms exceeded`,He.ETIMEDOUT))},e);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),t=null)};t.forEach(u=>u.addEventListener("abort",a));const{signal:c}=r;return c.unsubscribe=()=>oe.asap(s),c}},zT=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},HT=async function*(t,e){for await(const n of WT(t))yield*zT(n,e)},WT=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},z6=(t,e,n,r)=>{const i=HT(t,e);let a=0,o,s=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){s(),c.close();return}let h=d.byteLength;if(n){let m=a+=h;n(m)}c.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(c){return s(c),i.return()}},{highWaterMark:2})},H6=64*1024,{isFunction:xu}=oe,GT=(({Request:t,Response:e})=>({Request:t,Response:e}))(oe.global),{ReadableStream:W6,TextEncoder:G6}=oe.global,Y6=(t,...e)=>{try{return!!t(...e)}catch{return!1}},YT=t=>{t=oe.merge.call({skipUndefined:!0},GT,t);const{fetch:e,Request:n,Response:r}=t,i=e?xu(e):typeof fetch=="function",a=xu(n),o=xu(r);if(!i)return!1;const s=i&&xu(W6),c=i&&(typeof G6=="function"?(y=>b=>y.encode(b))(new G6):async y=>new Uint8Array(await new n(y).arrayBuffer())),u=a&&s&&Y6(()=>{let y=!1;const b=new n(Un.origin,{body:new W6,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!b}),d=o&&s&&Y6(()=>oe.isReadableStream(new r("").body)),h={stream:d&&(y=>y.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!h[y]&&(h[y]=(b,v)=>{let x=b&&b[y];if(x)return x.call(b);throw new He(`Response type '${y}' is not supported`,He.ERR_NOT_SUPPORT,v)})});const m=async y=>{if(y==null)return 0;if(oe.isBlob(y))return y.size;if(oe.isSpecCompliantForm(y))return(await new n(Un.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(oe.isArrayBufferView(y)||oe.isArrayBuffer(y))return y.byteLength;if(oe.isURLSearchParams(y)&&(y=y+""),oe.isString(y))return(await c(y)).byteLength},p=async(y,b)=>{const v=oe.toFiniteNumber(y.getContentLength());return v??m(b)};return async y=>{let{url:b,method:v,data:x,signal:_,cancelToken:T,timeout:C,onDownloadProgress:w,onUploadProgress:A,responseType:k,headers:R,withCredentials:I="same-origin",fetchOptions:U}=B6(y),D=e||fetch;k=k?(k+"").toLowerCase():"text";let z=BT([_,T&&T.toAbortSignal()],C),Y=null;const j=z&&z.unsubscribe&&(()=>{z.unsubscribe()});let F;try{if(A&&u&&v!=="get"&&v!=="head"&&(F=await p(R,x))!==0){let K=new n(b,{method:"POST",body:x,duplex:"half"}),te;if(oe.isFormData(x)&&(te=K.headers.get("content-type"))&&R.setContentType(te),K.body){const[ne,ce]=j6(F,Cu(D6(A)));x=z6(K.body,H6,ne,ce)}}oe.isString(I)||(I=I?"include":"omit");const V=a&&"credentials"in n.prototype,G={...U,signal:z,method:v.toUpperCase(),headers:R.normalize().toJSON(),body:x,duplex:"half",credentials:V?I:void 0};Y=a&&new n(b,G);let B=await(a?D(Y,U):D(b,G));const q=d&&(k==="stream"||k==="response");if(d&&(w||q&&j)){const K={};["status","statusText","headers"].forEach(ie=>{K[ie]=B[ie]});const te=oe.toFiniteNumber(B.headers.get("content-length")),[ne,ce]=w&&j6(te,Cu(D6(w),!0))||[];B=new r(z6(B.body,H6,ne,()=>{ce&&ce(),j&&j()}),K)}k=k||"text";let W=await h[oe.findKey(h,k)||"text"](B,y);return!q&&j&&j(),await new Promise((K,te)=>{F6(K,te,{data:W,headers:lr.from(B.headers),status:B.status,statusText:B.statusText,config:y,request:Y})})}catch(V){throw j&&j(),V&&V.name==="TypeError"&&/Load failed|fetch/i.test(V.message)?Object.assign(new He("Network Error",He.ERR_NETWORK,y,Y,V&&V.response),{cause:V.cause||V}):He.from(V,V&&V.code,y,Y,V&&V.response)}}},KT=new Map,K6=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:i}=e,a=[r,i,n];let o=a.length,s=o,c,u,d=KT;for(;s--;)c=a[s],u=d.get(c),u===void 0&&d.set(c,u=s?new Map:YT(e)),d=u;return u};K6();const Vp={http:mT,xhr:UT,fetch:{get:K6}};oe.forEach(Vp,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Z6=t=>`- ${t}`,ZT=t=>oe.isFunction(t)||t===null||t===!1;function QT(t,e){t=oe.isArray(t)?t:[t];const{length:n}=t;let r,i;const a={};for(let o=0;o<n;o++){r=t[o];let s;if(i=r,!ZT(r)&&(i=Vp[(s=String(r)).toLowerCase()],i===void 0))throw new He(`Unknown adapter '${s}'`);if(i&&(oe.isFunction(i)||(i=i.get(e))))break;a[s||"#"+o]=i}if(!i){const o=Object.entries(a).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=n?o.length>1?`since :
83
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[M6]=this[M6]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Ol(o);r[s]||(PT(i,o),r[s]=!0)}return oe.isArray(e)?e.forEach(a):a(e),this}};lr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),oe.reduceDescriptors(lr.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),oe.freezeMethods(lr);function Dp(t,e){const n=this||Tl,r=e||n,i=lr.from(r.headers);let a=r.data;return oe.forEach(t,function(s){a=s.call(n,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function L6(t){return!!(t&&t.__CANCEL__)}let Rl=class extends He{constructor(e,n,r){super(e??"canceled",He.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function F6(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new He("Request failed with status code "+n.status,[He.ERR_BAD_REQUEST,He.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function IT(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function MT(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,a=0,o;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),d=r[a];o||(o=u),n[i]=c,r[i]=u;let h=a,m=0;for(;h!==i;)m+=n[h++],h=h%t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),u-o<e)return;const p=d&&u-d;return p?Math.round(m*1e3/p):void 0}}function LT(t,e){let n=0,r=1e3/e,i,a;const o=(u,d=Date.now())=>{n=d,i=null,a&&(clearTimeout(a),a=null),t(...u)};return[(...u)=>{const d=Date.now(),h=d-n;h>=r?o(u,d):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},r-h)))},()=>i&&o(i)]}const Cu=(t,e,n=3)=>{let r=0;const i=MT(50,250);return LT(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,c=o-r,u=i(c),d=o<=s;r=o;const h={loaded:o,total:s,progress:s?o/s:void 0,bytes:c,rate:u||void 0,estimated:u&&s&&d?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(h)},n)},j6=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},D6=t=>(...e)=>oe.asap(()=>t(...e)),FT=Un.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Un.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Un.origin),Un.navigator&&/(msie|trident)/i.test(Un.navigator.userAgent)):()=>!0,jT=Un.hasStandardBrowserEnv?{write(t,e,n,r,i,a,o){if(typeof document>"u")return;const s=[`${t}=${encodeURIComponent(e)}`];oe.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),oe.isString(r)&&s.push(`path=${r}`),oe.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),oe.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function DT(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function VT(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function V6(t,e,n){let r=!DT(e);return t&&(r||n==!1)?VT(t,e):e}const U6=t=>t instanceof lr?{...t}:t;function $a(t,e){e=e||{};const n={};function r(u,d,h,m){return oe.isPlainObject(u)&&oe.isPlainObject(d)?oe.merge.call({caseless:m},u,d):oe.isPlainObject(d)?oe.merge({},d):oe.isArray(d)?d.slice():d}function i(u,d,h,m){if(oe.isUndefined(d)){if(!oe.isUndefined(u))return r(void 0,u,h,m)}else return r(u,d,h,m)}function a(u,d){if(!oe.isUndefined(d))return r(void 0,d)}function o(u,d){if(oe.isUndefined(d)){if(!oe.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function s(u,d,h){if(h in e)return r(u,d);if(h in t)return r(void 0,u)}const c={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:s,headers:(u,d,h)=>i(U6(u),U6(d),h,!0)};return oe.forEach(Object.keys({...t,...e}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const h=oe.hasOwnProp(c,d)?c[d]:i,m=h(t[d],e[d],d);oe.isUndefined(m)&&h!==s||(n[d]=m)}),n}const B6=t=>{const e=$a({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=e;if(e.headers=o=lr.from(o),e.url=N6(V6(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),oe.isFormData(n)){if(Un.hasStandardBrowserEnv||Un.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(oe.isFunction(n.getHeaders)){const c=n.getHeaders(),u=["content-type","content-length"];Object.entries(c).forEach(([d,h])=>{u.includes(d.toLowerCase())&&o.set(d,h)})}}if(Un.hasStandardBrowserEnv&&(r&&oe.isFunction(r)&&(r=r(e)),r||r!==!1&&FT(e.url))){const c=i&&a&&jT.read(a);c&&o.set(i,c)}return e},UT=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const i=B6(t);let a=i.data;const o=lr.from(i.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:u}=i,d,h,m,p,y;function b(){p&&p(),y&&y(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function x(){if(!v)return;const T=lr.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:T,config:t,request:v};F6(function(k){n(k),b()},function(k){r(k),b()},w),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(r(new He("Request aborted",He.ECONNABORTED,t,v)),v=null)},v.onerror=function(C){const w=C&&C.message?C.message:"Network Error",A=new He(w,He.ERR_NETWORK,t,v);A.event=C||null,r(A),v=null},v.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||Mp;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new He(C,w.clarifyTimeoutError?He.ETIMEDOUT:He.ECONNABORTED,t,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&oe.forEach(o.toJSON(),function(C,w){v.setRequestHeader(w,C)}),oe.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),u&&([m,y]=Cu(u,!0),v.addEventListener("progress",m)),c&&v.upload&&([h,p]=Cu(c),v.upload.addEventListener("progress",h),v.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(d=T=>{v&&(r(!T||T.type?new Rl(null,t,v):T),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const _=IT(i.url);if(_&&Un.protocols.indexOf(_)===-1){r(new He("Unsupported protocol "+_+":",He.ERR_BAD_REQUEST,t));return}v.send(a||null)})},BT=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,i;const a=function(u){if(!i){i=!0,s();const d=u instanceof Error?u:this.reason;r.abort(d instanceof He?d:new Rl(d instanceof Error?d.message:d))}};let o=e&&setTimeout(()=>{o=null,a(new He(`timeout of ${e}ms exceeded`,He.ETIMEDOUT))},e);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),t=null)};t.forEach(u=>u.addEventListener("abort",a));const{signal:c}=r;return c.unsubscribe=()=>oe.asap(s),c}},zT=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},HT=async function*(t,e){for await(const n of WT(t))yield*zT(n,e)},WT=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},z6=(t,e,n,r)=>{const i=HT(t,e);let a=0,o,s=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){s(),c.close();return}let h=d.byteLength;if(n){let m=a+=h;n(m)}c.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(c){return s(c),i.return()}},{highWaterMark:2})},H6=64*1024,{isFunction:xu}=oe,GT=(({Request:t,Response:e})=>({Request:t,Response:e}))(oe.global),{ReadableStream:W6,TextEncoder:G6}=oe.global,Y6=(t,...e)=>{try{return!!t(...e)}catch{return!1}},YT=t=>{t=oe.merge.call({skipUndefined:!0},GT,t);const{fetch:e,Request:n,Response:r}=t,i=e?xu(e):typeof fetch=="function",a=xu(n),o=xu(r);if(!i)return!1;const s=i&&xu(W6),c=i&&(typeof G6=="function"?(y=>b=>y.encode(b))(new G6):async y=>new Uint8Array(await new n(y).arrayBuffer())),u=a&&s&&Y6(()=>{let y=!1;const b=new n(Un.origin,{body:new W6,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!b}),d=o&&s&&Y6(()=>oe.isReadableStream(new r("").body)),h={stream:d&&(y=>y.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!h[y]&&(h[y]=(b,v)=>{let x=b&&b[y];if(x)return x.call(b);throw new He(`Response type '${y}' is not supported`,He.ERR_NOT_SUPPORT,v)})});const m=async y=>{if(y==null)return 0;if(oe.isBlob(y))return y.size;if(oe.isSpecCompliantForm(y))return(await new n(Un.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(oe.isArrayBufferView(y)||oe.isArrayBuffer(y))return y.byteLength;if(oe.isURLSearchParams(y)&&(y=y+""),oe.isString(y))return(await c(y)).byteLength},p=async(y,b)=>{const v=oe.toFiniteNumber(y.getContentLength());return v??m(b)};return async y=>{let{url:b,method:v,data:x,signal:_,cancelToken:T,timeout:C,onDownloadProgress:w,onUploadProgress:A,responseType:k,headers:R,withCredentials:I="same-origin",fetchOptions:U}=B6(y),D=e||fetch;k=k?(k+"").toLowerCase():"text";let z=BT([_,T&&T.toAbortSignal()],C),Y=null;const j=z&&z.unsubscribe&&(()=>{z.unsubscribe()});let F;try{if(A&&u&&v!=="get"&&v!=="head"&&(F=await p(R,x))!==0){let K=new n(b,{method:"POST",body:x,duplex:"half"}),te;if(oe.isFormData(x)&&(te=K.headers.get("content-type"))&&R.setContentType(te),K.body){const[ne,ce]=j6(F,Cu(D6(A)));x=z6(K.body,H6,ne,ce)}}oe.isString(I)||(I=I?"include":"omit");const V=a&&"credentials"in n.prototype,G={...U,signal:z,method:v.toUpperCase(),headers:R.normalize().toJSON(),body:x,duplex:"half",credentials:V?I:void 0};Y=a&&new n(b,G);let B=await(a?D(Y,U):D(b,G));const q=d&&(k==="stream"||k==="response");if(d&&(w||q&&j)){const K={};["status","statusText","headers"].forEach(ie=>{K[ie]=B[ie]});const te=oe.toFiniteNumber(B.headers.get("content-length")),[ne,ce]=w&&j6(te,Cu(D6(w),!0))||[];B=new r(z6(B.body,H6,ne,()=>{ce&&ce(),j&&j()}),K)}k=k||"text";let W=await h[oe.findKey(h,k)||"text"](B,y);return!q&&j&&j(),await new Promise((K,te)=>{F6(K,te,{data:W,headers:lr.from(B.headers),status:B.status,statusText:B.statusText,config:y,request:Y})})}catch(V){throw j&&j(),V&&V.name==="TypeError"&&/Load failed|fetch/i.test(V.message)?Object.assign(new He("Network Error",He.ERR_NETWORK,y,Y,V&&V.response),{cause:V.cause||V}):He.from(V,V&&V.code,y,Y,V&&V.response)}}},KT=new Map,K6=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:i}=e,a=[r,i,n];let o=a.length,s=o,c,u,d=KT;for(;s--;)c=a[s],u=d.get(c),u===void 0&&d.set(c,u=s?new Map:YT(e)),d=u;return u};K6();const Vp={http:mT,xhr:UT,fetch:{get:K6}};oe.forEach(Vp,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Z6=t=>`- ${t}`,ZT=t=>oe.isFunction(t)||t===null||t===!1;function QT(t,e){t=oe.isArray(t)?t:[t];const{length:n}=t;let r,i;const a={};for(let o=0;o<n;o++){r=t[o];let s;if(i=r,!ZT(r)&&(i=Vp[(s=String(r)).toLowerCase()],i===void 0))throw new He(`Unknown adapter '${s}'`);if(i&&(oe.isFunction(i)||(i=i.get(e))))break;a[s||"#"+o]=i}if(!i){const o=Object.entries(a).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=n?o.length>1?`since :
84
84
  `+o.map(Z6).join(`
85
- `):" "+Z6(o[0]):"as no adapter specified";throw new He("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const Q6={getAdapter:QT,adapters:Vp};function Up(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Rl(null,t)}function q6(t){return Up(t),t.headers=lr.from(t.headers),t.data=Dp.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Q6.getAdapter(t.adapter||Tl.adapter,t)(t).then(function(r){return Up(t),r.data=Dp.call(t,t.transformResponse,r),r.headers=lr.from(r.headers),r},function(r){return L6(r)||(Up(t),r&&r.response&&(r.response.data=Dp.call(t,t.transformResponse,r.response),r.response.headers=lr.from(r.response.headers))),Promise.reject(r)})}const J6="1.13.5",_u={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{_u[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const X6={};_u.transitional=function(e,n,r){function i(a,o){return"[Axios v"+J6+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(e===!1)throw new He(i(o," has been removed"+(n?" in "+n:"")),He.ERR_DEPRECATED);return n&&!X6[o]&&(X6[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(a,o,s):!0}},_u.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function qT(t,e,n){if(typeof t!="object")throw new He("options must be an object",He.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const a=r[i],o=e[a];if(o){const s=t[a],c=s===void 0||o(s,a,t);if(c!==!0)throw new He("option "+a+" must be "+c,He.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new He("Unknown option "+a,He.ERR_BAD_OPTION)}}const Au={assertOptions:qT,validators:_u},Dr=Au.validators;let $a=class{constructor(e){this.defaults=e||{},this.interceptors={request:new P6,response:new P6}}async request(e,n){try{return await this._request(e,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+=`
86
- `+a):r.stack=a}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Xa(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&Au.assertOptions(r,{silentJSONParsing:Dr.transitional(Dr.boolean),forcedJSONParsing:Dr.transitional(Dr.boolean),clarifyTimeoutError:Dr.transitional(Dr.boolean),legacyInterceptorReqResOrdering:Dr.transitional(Dr.boolean)},!1),i!=null&&(oe.isFunction(i)?n.paramsSerializer={serialize:i}:Au.assertOptions(i,{encode:Dr.function,serialize:Dr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Au.assertOptions(n,{baseUrl:Dr.spelling("baseURL"),withXsrfToken:Dr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&oe.merge(a.common,a[n.method]);a&&oe.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),n.headers=lr.concat(o,a);const s=[];let c=!0;this.interceptors.request.forEach(function(b){if(typeof b.runWhen=="function"&&b.runWhen(n)===!1)return;c=c&&b.synchronous;const v=n.transitional||Mp;v&&v.legacyInterceptorReqResOrdering?s.unshift(b.fulfilled,b.rejected):s.push(b.fulfilled,b.rejected)});const u=[];this.interceptors.response.forEach(function(b){u.push(b.fulfilled,b.rejected)});let d,h=0,m;if(!c){const y=[q6.bind(this),void 0];for(y.unshift(...s),y.push(...u),m=y.length,d=Promise.resolve(n);h<m;)d=d.then(y[h++],y[h++]);return d}m=s.length;let p=n;for(;h<m;){const y=s[h++],b=s[h++];try{p=y(p)}catch(v){b.call(this,v);break}}try{d=q6.call(this,p)}catch(y){return Promise.reject(y)}for(h=0,m=u.length;h<m;)d=d.then(u[h++],u[h++]);return d}getUri(e){e=Xa(this.defaults,e);const n=V6(e.baseURL,e.url,e.allowAbsoluteUrls);return N6(n,e.params,e.paramsSerializer)}};oe.forEach(["delete","get","head","options"],function(e){$a.prototype[e]=function(n,r){return this.request(Xa(r||{},{method:e,url:n,data:(r||{}).data}))}}),oe.forEach(["post","put","patch"],function(e){function n(r){return function(a,o,s){return this.request(Xa(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}$a.prototype[e]=n(),$a.prototype[e+"Form"]=n(!0)});let JT=class S_{constructor(e){if(typeof e!="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(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},e(function(a,o,s){r.reason||(r.reason=new Rl(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new S_(function(i){e=i}),cancel:e}}};function XT(t){return function(n){return t.apply(null,n)}}function $T(t){return oe.isObject(t)&&t.isAxiosError===!0}const Bp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Bp).forEach(([t,e])=>{Bp[e]=t});function $6(t){const e=new $a(t),n=y6($a.prototype.request,e);return oe.extend(n,$a.prototype,e,{allOwnKeys:!0}),oe.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return $6(Xa(t,i))},n}const Qt=$6(Tl);Qt.Axios=$a,Qt.CanceledError=Rl,Qt.CancelToken=JT,Qt.isCancel=L6,Qt.VERSION=J6,Qt.toFormData=Su,Qt.AxiosError=He,Qt.Cancel=Qt.CanceledError,Qt.all=function(e){return Promise.all(e)},Qt.spread=XT,Qt.isAxiosError=$T,Qt.mergeConfig=Xa,Qt.AxiosHeaders=lr,Qt.formToJSON=t=>I6(oe.isHTMLForm(t)?new FormData(t):t),Qt.getAdapter=Q6.getAdapter,Qt.HttpStatusCode=Bp,Qt.default=Qt;const{Axios:FK,AxiosError:jK,CanceledError:DK,isCancel:VK,CancelToken:UK,VERSION:BK,all:zK,Cancel:HK,isAxiosError:WK,spread:GK,toFormData:YK,AxiosHeaders:KK,HttpStatusCode:ZK,formToJSON:QK,getAdapter:qK,mergeConfig:JK}=Qt,eO=()=>Qt.create({baseURL:mu(),headers:{Authorization:xp()}});function tO(){if(console&&console.warn){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];eo(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}const e5={};function zp(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];eo(e[0])&&e5[e[0]]||(eo(e[0])&&(e5[e[0]]=new Date),tO(...e))}const t5=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},n5=(t,e,n)=>{t.loadNamespaces(e,t5(t,n))},r5=(t,e,n,r)=>{eo(n)&&(n=[n]),n.forEach(i=>{t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,t5(t,r))},nO=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=e.languages[0],i=e.options?e.options.fallbackLng:!1,a=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(s,c)=>{const u=e.services.backendConnector.state[`${s}|${c}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!o(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||o(r,t)&&(!i||o(a,t)))},rO=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(zp("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:n.lng,precheck:(i,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,t))return!1}}):nO(t,e,n)},eo=t=>typeof t=="string",iO=t=>typeof t=="object"&&t!==null,aO=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,oO={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},sO=t=>oO[t];let Hp={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t=>t.replace(aO,sO)};const lO=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hp={...Hp,...t}},cO=()=>Hp;let i5;const uO=t=>{i5=t},fO=()=>i5,dO={type:"3rdParty",init(t){lO(t.options.react),uO(t)}},hO=N.createContext();class pO{constructor(){ae(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}const mO=(t,e)=>{const n=N.useRef();return N.useEffect(()=>{n.current=t},[t,e]),n.current},a5=(t,e,n,r)=>t.getFixedT(e,n,r),gO=(t,e,n,r)=>N.useCallback(a5(t,e,n,r),[t,e,n,r]),vO=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=e,{i18n:r,defaultNS:i}=N.useContext(hO)||{},a=n||r||fO();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new pO),!a){zp("You will need to pass in an i18next instance by using initReactI18next");const C=(A,k)=>eo(k)?k:iO(k)&&eo(k.defaultValue)?k.defaultValue:Array.isArray(A)?A[A.length-1]:A,w=[C,{},!1];return w.t=C,w.i18n={},w.ready=!1,w}a.options.react&&a.options.react.wait!==void 0&&zp("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...cO(),...a.options.react,...e},{useSuspense:s,keyPrefix:c}=o;let u=t||i||a.options&&a.options.defaultNS;u=eo(u)?[u]:u||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(u);const d=(a.isInitialized||a.initializedStoreOnce)&&u.every(C=>rO(C,a,o)),h=gO(a,e.lng||null,o.nsMode==="fallback"?u:u[0],c),m=()=>h,p=()=>a5(a,e.lng||null,o.nsMode==="fallback"?u:u[0],c),[y,b]=N.useState(m);let v=u.join();e.lng&&(v=`${e.lng}${v}`);const x=mO(v),_=N.useRef(!0);N.useEffect(()=>{const{bindI18n:C,bindI18nStore:w}=o;_.current=!0,!d&&!s&&(e.lng?r5(a,e.lng,u,()=>{_.current&&b(p)}):n5(a,u,()=>{_.current&&b(p)})),d&&x&&x!==v&&_.current&&b(p);const A=()=>{_.current&&b(p)};return C&&a&&a.on(C,A),w&&a&&a.store.on(w,A),()=>{_.current=!1,C&&a&&C.split(" ").forEach(k=>a.off(k,A)),w&&a&&w.split(" ").forEach(k=>a.store.off(k,A))}},[a,v]),N.useEffect(()=>{_.current&&d&&b(m)},[a,c,d]);const T=[y,a,d];if(T.t=y,T.i18n=a,T.ready=d,d||!d&&!s)return T;throw new Promise(C=>{e.lng?r5(a,e.lng,u,()=>C()):n5(a,u,()=>C())})},yO=new IA(t=>({headers:{...t.headers,Authorization:xp()}}));class bO extends _n{constructor(e){super((n,r)=>new Ut(i=>{let a,o,s;try{a=r(n).subscribe({next:c=>{const u=n.client.queryManager.incrementalHandler,d=u.isIncrementalResult(c)?u.extractErrors(c):c.errors;d?s=e({error:new Gi(c,d),result:c,operation:n,forward:r}):d2(c)&&(s=e({error:c.extensions[gl],result:c,operation:n,forward:r})),o=s==null?void 0:s.subscribe(i),o||i.next(c)},error:c=>{s=e({operation:n,error:Zh(c),forward:r}),o=s==null?void 0:s.subscribe(i),o||i.error(c)},complete:()=>{s||i.complete()}})}catch(c){e({error:Zh(c),operation:n,forward:r}),i.error(c)}return()=>{a&&a.unsubscribe(),o&&o.unsubscribe()}}))}}const wO=new bO(({graphQLErrors:t,networkError:e,forward:n,operation:r})=>(e&&vn("error","Something went wrong! Please try again.","top-right"),t!=null&&t.length&&t.forEach(({message:i})=>{vn("error",i||"An error occurred","top-right")}),n(r))),SO=t=>new M7({uri:`${t}/graphql`});function EO(t){return Dn(t)&&"code"in t&&"reason"in t}function CO(t){var e;return Dn(t)&&((e=t.target)==null?void 0:e.readyState)===WebSocket.CLOSED}class xO extends _n{constructor(n){super();ae(this,"client");this.client=n}request(n){return new Ut(r=>{const{query:i,variables:a,operationName:o,extensions:s}=n;return this.client.subscribe({variables:a,operationName:o,extensions:s,query:Ga(i)},{next:r.next.bind(r),complete:r.complete.bind(r),error:c=>{if(c instanceof Error)return r.error(c);const u=EO(c);return u||CO(c)?r.error(new Error(`Socket closed${u?` with event ${c.code}`:""}${u?` ${c.reason}`:""}`)):r.error(new Gi({errors:Array.isArray(c)?c:[c]}))}})})}}function cr(t){return t===null?"null":Array.isArray(t)?"array":typeof t}function to(t){return cr(t)==="object"}function _O(t){return Array.isArray(t)&&t.length>0&&t.every(e=>"message"in e)}function o5(t,e){return t.length<124?t:e}const AO="graphql-transport-ws";var xr;(function(t){t[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(xr||(xr={}));var an;(function(t){t.ConnectionInit="connection_init",t.ConnectionAck="connection_ack",t.Ping="ping",t.Pong="pong",t.Subscribe="subscribe",t.Next="next",t.Error="error",t.Complete="complete"})(an||(an={}));function s5(t){if(!to(t))throw new Error(`Message is expected to be an object, but got ${cr(t)}`);if(!t.type)throw new Error("Message is missing the 'type' property");if(typeof t.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${cr(t.type)}`);switch(t.type){case an.ConnectionInit:case an.ConnectionAck:case an.Ping:case an.Pong:{if(t.payload!=null&&!to(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${t.payload}"`);break}case an.Subscribe:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${cr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!to(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${cr(t.payload)}`);if(typeof t.payload.query!="string")throw new Error(`"${t.type}" message payload expects the 'query' property to be a string, but got ${cr(t.payload.query)}`);if(t.payload.variables!=null&&!to(t.payload.variables))throw new Error(`"${t.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${cr(t.payload.variables)}`);if(t.payload.operationName!=null&&cr(t.payload.operationName)!=="string")throw new Error(`"${t.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${cr(t.payload.operationName)}`);if(t.payload.extensions!=null&&!to(t.payload.extensions))throw new Error(`"${t.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${cr(t.payload.extensions)}`);break}case an.Next:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${cr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!to(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${cr(t.payload)}`);break}case an.Error:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${cr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!_O(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(t.payload)}`);break}case an.Complete:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${cr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${t.type}"`)}return t}function kO(t,e){return s5(typeof t=="string"?JSON.parse(t,e):t)}function Nl(t,e){return s5(t),JSON.stringify(t,e)}var Ko=function(t){return this instanceof Ko?(this.v=t,this):new Ko(t)},TO=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,a=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(p){return function(y){return Promise.resolve(y).then(p,h)}}function s(p,y){r[p]&&(i[p]=function(b){return new Promise(function(v,x){a.push([p,b,v,x])>1||c(p,b)})},y&&(i[p]=y(i[p])))}function c(p,y){try{u(r[p](y))}catch(b){m(a[0][3],b)}}function u(p){p.value instanceof Ko?Promise.resolve(p.value.v).then(d,h):m(a[0][2],p)}function d(p){c("next",p)}function h(p){c("throw",p)}function m(p,y){p(y),a.shift(),a.length&&c(a[0][0],a[0][1])}};function OO(t){const{url:e,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:a=0,keepAlive:o=0,disablePong:s,connectionAckWaitTimeout:c=0,retryAttempts:u=5,retryWait:d=async function(V){let G=1e3;for(let B=0;B<V;B++)G*=2;await new Promise(B=>setTimeout(B,G+Math.floor(Math.random()*2700+300)))},shouldRetry:h=Wp,isFatalConnectionProblem:m,on:p,webSocketImpl:y,generateID:b=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,V=>{const G=Math.random()*16|0;return(V=="x"?G:G&3|8).toString(16)})},jsonMessageReplacer:v,jsonMessageReviver:x}=t;let _;if(y){if(!NO(y))throw new Error("Invalid WebSocket implementation provided");_=y}else typeof WebSocket<"u"?_=WebSocket:typeof global<"u"?_=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(_=window.WebSocket||window.MozWebSocket);if(!_)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const T=_,C=(()=>{const F=(()=>{const G={};return{on(B,q){return G[B]=q,()=>{delete G[B]}},emit(B){var q;"id"in B&&((q=G[B.id])===null||q===void 0||q.call(G,B))}}})(),V={connecting:p!=null&&p.connecting?[p.connecting]:[],opened:p!=null&&p.opened?[p.opened]:[],connected:p!=null&&p.connected?[p.connected]:[],ping:p!=null&&p.ping?[p.ping]:[],pong:p!=null&&p.pong?[p.pong]:[],message:p!=null&&p.message?[F.emit,p.message]:[F.emit],closed:p!=null&&p.closed?[p.closed]:[],error:p!=null&&p.error?[p.error]:[]};return{onMessage:F.on,on(G,B){const q=V[G];return q.push(B),()=>{q.splice(q.indexOf(B),1)}},emit(G,...B){for(const q of[...V[G]])q(...B)}}})();function w(F){const V=[C.on("error",G=>{V.forEach(B=>B()),F(G)}),C.on("closed",G=>{V.forEach(B=>B()),F(G)})]}let A,k=0,R,I=!1,U=0,D=!1;async function z(){clearTimeout(R);const[F,V]=await(A??(A=new Promise((q,W)=>(async()=>{if(I){if(await d(U),!k)return A=void 0,W({code:1e3,reason:"All Subscriptions Gone"});U++}C.emit("connecting",I);const K=new T(typeof e=="function"?await e():e,AO);let te,ne;function ce(){isFinite(o)&&o>0&&(clearTimeout(ne),ne=setTimeout(()=>{K.readyState===T.OPEN&&(K.send(Nl({type:an.Ping})),C.emit("ping",!1,void 0))},o))}w(J=>{A=void 0,clearTimeout(te),clearTimeout(ne),W(J),J instanceof l5&&(K.close(4499,"Terminated"),K.onerror=null,K.onclose=null)}),K.onerror=J=>C.emit("error",J),K.onclose=J=>C.emit("closed",J),K.onopen=async()=>{try{C.emit("opened",K);const J=typeof n=="function"?await n():n;if(K.readyState!==T.OPEN)return;K.send(Nl(J?{type:an.ConnectionInit,payload:J}:{type:an.ConnectionInit},v)),isFinite(c)&&c>0&&(te=setTimeout(()=>{K.close(xr.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},c)),ce()}catch(J){C.emit("error",J),K.close(xr.InternalClientError,o5(J instanceof Error?J.message:new Error(J).message,"Internal client error"))}};let ie=!1;K.onmessage=({data:J})=>{try{const ue=kO(J,x);if(C.emit("message",ue),ue.type==="ping"||ue.type==="pong"){C.emit(ue.type,!0,ue.payload),ue.type==="pong"?ce():s||(K.send(Nl(ue.payload?{type:an.Pong,payload:ue.payload}:{type:an.Pong})),C.emit("pong",!1,ue.payload));return}if(ie)return;if(ue.type!==an.ConnectionAck)throw new Error(`First message cannot be of type ${ue.type}`);clearTimeout(te),ie=!0,C.emit("connected",K,ue.payload,I),I=!1,U=0,q([K,new Promise((le,ve)=>w(ve))])}catch(ue){K.onmessage=null,C.emit("error",ue),K.close(xr.BadResponse,o5(ue instanceof Error?ue.message:new Error(ue).message,"Bad response"))}}})())));F.readyState===T.CLOSING&&await V;let G=()=>{};const B=new Promise(q=>G=q);return[F,G,Promise.race([B.then(()=>{if(!k){const q=()=>F.close(1e3,"Normal Closure");isFinite(a)&&a>0?R=setTimeout(()=>{F.readyState===T.OPEN&&q()},a):q()}}),V])]}function Y(F){if(Wp(F)&&(RO(F.code)||[xr.InternalServerError,xr.InternalClientError,xr.BadRequest,xr.BadResponse,xr.Unauthorized,xr.SubprotocolNotAcceptable,xr.SubscriberAlreadyExists,xr.TooManyInitialisationRequests].includes(F.code)))throw F;if(D)return!1;if(Wp(F)&&F.code===1e3)return k>0;if(!u||U>=u||!h(F)||m!=null&&m(F))throw F;return I=!0}r||(async()=>{for(k++;;)try{const[,,F]=await z();await F}catch(F){try{if(!Y(F))return}catch(V){return i==null?void 0:i(V)}}})();function j(F,V){const G=b(F);let B=!1,q=!1,W=()=>{k--,B=!0};return(async()=>{for(k++;;)try{const[K,te,ne]=await z();if(B)return te();const ce=C.onMessage(G,ie=>{switch(ie.type){case an.Next:{V.next(ie.payload);return}case an.Error:{q=!0,B=!0,V.error(ie.payload),W();return}case an.Complete:{B=!0,W();return}}});K.send(Nl({id:G,type:an.Subscribe,payload:F},v)),W=()=>{!B&&K.readyState===T.OPEN&&K.send(Nl({id:G,type:an.Complete},v)),k--,B=!0,te()},await ne.finally(ce);return}catch(K){if(!Y(K))return}})().then(()=>{q||V.complete()}).catch(K=>{V.error(K)}),()=>{B||W()}}return{on:C.on,subscribe:j,iterate(F){const V=[],G={done:!1,error:null,resolve:()=>{}},B=j(F,{next(W){V.push(W),G.resolve()},error(W){G.done=!0,G.error=W,G.resolve()},complete(){G.done=!0,G.resolve()}}),q=(function(){return TO(this,arguments,function*(){for(;;){for(V.length||(yield Ko(new Promise(te=>G.resolve=te)));V.length;)yield yield Ko(V.shift());if(G.error)throw G.error;if(G.done)return yield Ko(void 0)}})})();return q.throw=async W=>(G.done||(G.done=!0,G.error=W,G.resolve()),{done:!0,value:void 0}),q.return=async()=>(B(),{done:!0,value:void 0}),q},async dispose(){if(D=!0,A){const[F]=await A;F.close(1e3,"Normal Closure")}},terminate(){A&&C.emit("closed",new l5)}}}class l5 extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function Wp(t){return to(t)&&"code"in t&&"reason"in t}function RO(t){return[1e3,1001,1006,1005,1012,1013,1014].includes(t)?!1:t>=1e3&&t<=1999}function NO(t){return typeof t=="function"&&"constructor"in t&&"CLOSED"in t&&"CLOSING"in t&&"CONNECTING"in t&&"OPEN"in t}const PO=t=>new xO(OO({connectionParams:{Authorization:xp()},url:`${t==null?void 0:t.replace("http","ws")}/graphql`,keepAlive:6e4})),Gp=t=>new g7({link:_n.from([yO,wO,_n.split(({query:e})=>{const n=xh(e);return n.kind==="OperationDefinition"&&n.operation==="subscription"},PO(t),SO(t))]),cache:new u7});Gp();const c5=t=>{const[e,n]=N.useState(typeof window<"u"&&window.matchMedia(t).matches);return N.useLayoutEffect(()=>{const r=window.matchMedia(t),i=a=>{n(a.matches)};return r.addEventListener("change",i),()=>r.removeEventListener("change",i)},[t]),e},IO=(t,e)=>{const n=N.useRef(null);return N.useEffect(()=>()=>{n.current&&clearTimeout(n.current)},[]),(...i)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{t(...i)},e)}},MO=async()=>{var e;const t=await eO().get("/organization-brand/widget");return((e=t==null?void 0:t.data)==null?void 0:e.data)||{}},LO=t=>{const e=t||"#00a1e0";document.documentElement.style.setProperty("--ed-brand-color",e)},FO=t=>{const e=t||"Poppins";document.documentElement.style.setProperty("--ed-main-font",e)},Ki=()=>S.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:[S.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"}),S.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"})]});var Yp={exports:{}},Kp={exports:{}},Et={},u5;function jO(){if(u5)return Et;u5=1;/** @license React v16.13.1
85
+ `):" "+Z6(o[0]):"as no adapter specified";throw new He("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const Q6={getAdapter:QT,adapters:Vp};function Up(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Rl(null,t)}function q6(t){return Up(t),t.headers=lr.from(t.headers),t.data=Dp.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Q6.getAdapter(t.adapter||Tl.adapter,t)(t).then(function(r){return Up(t),r.data=Dp.call(t,t.transformResponse,r),r.headers=lr.from(r.headers),r},function(r){return L6(r)||(Up(t),r&&r.response&&(r.response.data=Dp.call(t,t.transformResponse,r.response),r.response.headers=lr.from(r.response.headers))),Promise.reject(r)})}const J6="1.13.5",_u={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{_u[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const X6={};_u.transitional=function(e,n,r){function i(a,o){return"[Axios v"+J6+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(e===!1)throw new He(i(o," has been removed"+(n?" in "+n:"")),He.ERR_DEPRECATED);return n&&!X6[o]&&(X6[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(a,o,s):!0}},_u.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function qT(t,e,n){if(typeof t!="object")throw new He("options must be an object",He.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const a=r[i],o=e[a];if(o){const s=t[a],c=s===void 0||o(s,a,t);if(c!==!0)throw new He("option "+a+" must be "+c,He.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new He("Unknown option "+a,He.ERR_BAD_OPTION)}}const Au={assertOptions:qT,validators:_u},Dr=Au.validators;let eo=class{constructor(e){this.defaults=e||{},this.interceptors={request:new P6,response:new P6}}async request(e,n){try{return await this._request(e,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+=`
86
+ `+a):r.stack=a}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=$a(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&Au.assertOptions(r,{silentJSONParsing:Dr.transitional(Dr.boolean),forcedJSONParsing:Dr.transitional(Dr.boolean),clarifyTimeoutError:Dr.transitional(Dr.boolean),legacyInterceptorReqResOrdering:Dr.transitional(Dr.boolean)},!1),i!=null&&(oe.isFunction(i)?n.paramsSerializer={serialize:i}:Au.assertOptions(i,{encode:Dr.function,serialize:Dr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Au.assertOptions(n,{baseUrl:Dr.spelling("baseURL"),withXsrfToken:Dr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&oe.merge(a.common,a[n.method]);a&&oe.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),n.headers=lr.concat(o,a);const s=[];let c=!0;this.interceptors.request.forEach(function(b){if(typeof b.runWhen=="function"&&b.runWhen(n)===!1)return;c=c&&b.synchronous;const v=n.transitional||Mp;v&&v.legacyInterceptorReqResOrdering?s.unshift(b.fulfilled,b.rejected):s.push(b.fulfilled,b.rejected)});const u=[];this.interceptors.response.forEach(function(b){u.push(b.fulfilled,b.rejected)});let d,h=0,m;if(!c){const y=[q6.bind(this),void 0];for(y.unshift(...s),y.push(...u),m=y.length,d=Promise.resolve(n);h<m;)d=d.then(y[h++],y[h++]);return d}m=s.length;let p=n;for(;h<m;){const y=s[h++],b=s[h++];try{p=y(p)}catch(v){b.call(this,v);break}}try{d=q6.call(this,p)}catch(y){return Promise.reject(y)}for(h=0,m=u.length;h<m;)d=d.then(u[h++],u[h++]);return d}getUri(e){e=$a(this.defaults,e);const n=V6(e.baseURL,e.url,e.allowAbsoluteUrls);return N6(n,e.params,e.paramsSerializer)}};oe.forEach(["delete","get","head","options"],function(e){eo.prototype[e]=function(n,r){return this.request($a(r||{},{method:e,url:n,data:(r||{}).data}))}}),oe.forEach(["post","put","patch"],function(e){function n(r){return function(a,o,s){return this.request($a(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}eo.prototype[e]=n(),eo.prototype[e+"Form"]=n(!0)});let JT=class S_{constructor(e){if(typeof e!="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(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},e(function(a,o,s){r.reason||(r.reason=new Rl(a,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new S_(function(i){e=i}),cancel:e}}};function XT(t){return function(n){return t.apply(null,n)}}function $T(t){return oe.isObject(t)&&t.isAxiosError===!0}const Bp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Bp).forEach(([t,e])=>{Bp[e]=t});function $6(t){const e=new eo(t),n=y6(eo.prototype.request,e);return oe.extend(n,eo.prototype,e,{allOwnKeys:!0}),oe.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return $6($a(t,i))},n}const Qt=$6(Tl);Qt.Axios=eo,Qt.CanceledError=Rl,Qt.CancelToken=JT,Qt.isCancel=L6,Qt.VERSION=J6,Qt.toFormData=Su,Qt.AxiosError=He,Qt.Cancel=Qt.CanceledError,Qt.all=function(e){return Promise.all(e)},Qt.spread=XT,Qt.isAxiosError=$T,Qt.mergeConfig=$a,Qt.AxiosHeaders=lr,Qt.formToJSON=t=>I6(oe.isHTMLForm(t)?new FormData(t):t),Qt.getAdapter=Q6.getAdapter,Qt.HttpStatusCode=Bp,Qt.default=Qt;const{Axios:FK,AxiosError:jK,CanceledError:DK,isCancel:VK,CancelToken:UK,VERSION:BK,all:zK,Cancel:HK,isAxiosError:WK,spread:GK,toFormData:YK,AxiosHeaders:KK,HttpStatusCode:ZK,formToJSON:QK,getAdapter:qK,mergeConfig:JK}=Qt,eO=()=>Qt.create({baseURL:mu(),headers:{Authorization:xp()}});function tO(){if(console&&console.warn){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];to(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}const e5={};function zp(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];to(e[0])&&e5[e[0]]||(to(e[0])&&(e5[e[0]]=new Date),tO(...e))}const t5=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},n5=(t,e,n)=>{t.loadNamespaces(e,t5(t,n))},r5=(t,e,n,r)=>{to(n)&&(n=[n]),n.forEach(i=>{t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,t5(t,r))},nO=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=e.languages[0],i=e.options?e.options.fallbackLng:!1,a=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(s,c)=>{const u=e.services.backendConnector.state[`${s}|${c}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!o(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||o(r,t)&&(!i||o(a,t)))},rO=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(zp("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:n.lng,precheck:(i,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,t))return!1}}):nO(t,e,n)},to=t=>typeof t=="string",iO=t=>typeof t=="object"&&t!==null,aO=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,oO={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},sO=t=>oO[t];let Hp={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t=>t.replace(aO,sO)};const lO=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hp={...Hp,...t}},cO=()=>Hp;let i5;const uO=t=>{i5=t},fO=()=>i5,dO={type:"3rdParty",init(t){lO(t.options.react),uO(t)}},hO=N.createContext();class pO{constructor(){ae(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}const mO=(t,e)=>{const n=N.useRef();return N.useEffect(()=>{n.current=t},[t,e]),n.current},a5=(t,e,n,r)=>t.getFixedT(e,n,r),gO=(t,e,n,r)=>N.useCallback(a5(t,e,n,r),[t,e,n,r]),vO=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=e,{i18n:r,defaultNS:i}=N.useContext(hO)||{},a=n||r||fO();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new pO),!a){zp("You will need to pass in an i18next instance by using initReactI18next");const C=(A,k)=>to(k)?k:iO(k)&&to(k.defaultValue)?k.defaultValue:Array.isArray(A)?A[A.length-1]:A,w=[C,{},!1];return w.t=C,w.i18n={},w.ready=!1,w}a.options.react&&a.options.react.wait!==void 0&&zp("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...cO(),...a.options.react,...e},{useSuspense:s,keyPrefix:c}=o;let u=t||i||a.options&&a.options.defaultNS;u=to(u)?[u]:u||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(u);const d=(a.isInitialized||a.initializedStoreOnce)&&u.every(C=>rO(C,a,o)),h=gO(a,e.lng||null,o.nsMode==="fallback"?u:u[0],c),m=()=>h,p=()=>a5(a,e.lng||null,o.nsMode==="fallback"?u:u[0],c),[y,b]=N.useState(m);let v=u.join();e.lng&&(v=`${e.lng}${v}`);const x=mO(v),_=N.useRef(!0);N.useEffect(()=>{const{bindI18n:C,bindI18nStore:w}=o;_.current=!0,!d&&!s&&(e.lng?r5(a,e.lng,u,()=>{_.current&&b(p)}):n5(a,u,()=>{_.current&&b(p)})),d&&x&&x!==v&&_.current&&b(p);const A=()=>{_.current&&b(p)};return C&&a&&a.on(C,A),w&&a&&a.store.on(w,A),()=>{_.current=!1,C&&a&&C.split(" ").forEach(k=>a.off(k,A)),w&&a&&w.split(" ").forEach(k=>a.store.off(k,A))}},[a,v]),N.useEffect(()=>{_.current&&d&&b(m)},[a,c,d]);const T=[y,a,d];if(T.t=y,T.i18n=a,T.ready=d,d||!d&&!s)return T;throw new Promise(C=>{e.lng?r5(a,e.lng,u,()=>C()):n5(a,u,()=>C())})},yO=new IA(t=>({headers:{...t.headers,Authorization:xp()}}));class bO extends _n{constructor(e){super((n,r)=>new Ut(i=>{let a,o,s;try{a=r(n).subscribe({next:c=>{const u=n.client.queryManager.incrementalHandler,d=u.isIncrementalResult(c)?u.extractErrors(c):c.errors;d?s=e({error:new Gi(c,d),result:c,operation:n,forward:r}):d2(c)&&(s=e({error:c.extensions[gl],result:c,operation:n,forward:r})),o=s==null?void 0:s.subscribe(i),o||i.next(c)},error:c=>{s=e({operation:n,error:Zh(c),forward:r}),o=s==null?void 0:s.subscribe(i),o||i.error(c)},complete:()=>{s||i.complete()}})}catch(c){e({error:Zh(c),operation:n,forward:r}),i.error(c)}return()=>{a&&a.unsubscribe(),o&&o.unsubscribe()}}))}}const wO=new bO(({graphQLErrors:t,networkError:e,forward:n,operation:r})=>(e&&vn("error","Something went wrong! Please try again.","top-right"),t!=null&&t.length&&t.forEach(({message:i})=>{vn("error",i||"An error occurred","top-right")}),n(r))),SO=t=>new M7({uri:`${t}/graphql`});function EO(t){return Dn(t)&&"code"in t&&"reason"in t}function CO(t){var e;return Dn(t)&&((e=t.target)==null?void 0:e.readyState)===WebSocket.CLOSED}class xO extends _n{constructor(n){super();ae(this,"client");this.client=n}request(n){return new Ut(r=>{const{query:i,variables:a,operationName:o,extensions:s}=n;return this.client.subscribe({variables:a,operationName:o,extensions:s,query:Ya(i)},{next:r.next.bind(r),complete:r.complete.bind(r),error:c=>{if(c instanceof Error)return r.error(c);const u=EO(c);return u||CO(c)?r.error(new Error(`Socket closed${u?` with event ${c.code}`:""}${u?` ${c.reason}`:""}`)):r.error(new Gi({errors:Array.isArray(c)?c:[c]}))}})})}}function cr(t){return t===null?"null":Array.isArray(t)?"array":typeof t}function no(t){return cr(t)==="object"}function _O(t){return Array.isArray(t)&&t.length>0&&t.every(e=>"message"in e)}function o5(t,e){return t.length<124?t:e}const AO="graphql-transport-ws";var xr;(function(t){t[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(xr||(xr={}));var an;(function(t){t.ConnectionInit="connection_init",t.ConnectionAck="connection_ack",t.Ping="ping",t.Pong="pong",t.Subscribe="subscribe",t.Next="next",t.Error="error",t.Complete="complete"})(an||(an={}));function s5(t){if(!no(t))throw new Error(`Message is expected to be an object, but got ${cr(t)}`);if(!t.type)throw new Error("Message is missing the 'type' property");if(typeof t.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${cr(t.type)}`);switch(t.type){case an.ConnectionInit:case an.ConnectionAck:case an.Ping:case an.Pong:{if(t.payload!=null&&!no(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${t.payload}"`);break}case an.Subscribe:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${cr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!no(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${cr(t.payload)}`);if(typeof t.payload.query!="string")throw new Error(`"${t.type}" message payload expects the 'query' property to be a string, but got ${cr(t.payload.query)}`);if(t.payload.variables!=null&&!no(t.payload.variables))throw new Error(`"${t.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${cr(t.payload.variables)}`);if(t.payload.operationName!=null&&cr(t.payload.operationName)!=="string")throw new Error(`"${t.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${cr(t.payload.operationName)}`);if(t.payload.extensions!=null&&!no(t.payload.extensions))throw new Error(`"${t.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${cr(t.payload.extensions)}`);break}case an.Next:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${cr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!no(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${cr(t.payload)}`);break}case an.Error:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${cr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!_O(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(t.payload)}`);break}case an.Complete:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${cr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${t.type}"`)}return t}function kO(t,e){return s5(typeof t=="string"?JSON.parse(t,e):t)}function Nl(t,e){return s5(t),JSON.stringify(t,e)}var Ko=function(t){return this instanceof Ko?(this.v=t,this):new Ko(t)},TO=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,a=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(p){return function(y){return Promise.resolve(y).then(p,h)}}function s(p,y){r[p]&&(i[p]=function(b){return new Promise(function(v,x){a.push([p,b,v,x])>1||c(p,b)})},y&&(i[p]=y(i[p])))}function c(p,y){try{u(r[p](y))}catch(b){m(a[0][3],b)}}function u(p){p.value instanceof Ko?Promise.resolve(p.value.v).then(d,h):m(a[0][2],p)}function d(p){c("next",p)}function h(p){c("throw",p)}function m(p,y){p(y),a.shift(),a.length&&c(a[0][0],a[0][1])}};function OO(t){const{url:e,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:a=0,keepAlive:o=0,disablePong:s,connectionAckWaitTimeout:c=0,retryAttempts:u=5,retryWait:d=async function(V){let G=1e3;for(let B=0;B<V;B++)G*=2;await new Promise(B=>setTimeout(B,G+Math.floor(Math.random()*2700+300)))},shouldRetry:h=Wp,isFatalConnectionProblem:m,on:p,webSocketImpl:y,generateID:b=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,V=>{const G=Math.random()*16|0;return(V=="x"?G:G&3|8).toString(16)})},jsonMessageReplacer:v,jsonMessageReviver:x}=t;let _;if(y){if(!NO(y))throw new Error("Invalid WebSocket implementation provided");_=y}else typeof WebSocket<"u"?_=WebSocket:typeof global<"u"?_=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(_=window.WebSocket||window.MozWebSocket);if(!_)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const T=_,C=(()=>{const F=(()=>{const G={};return{on(B,q){return G[B]=q,()=>{delete G[B]}},emit(B){var q;"id"in B&&((q=G[B.id])===null||q===void 0||q.call(G,B))}}})(),V={connecting:p!=null&&p.connecting?[p.connecting]:[],opened:p!=null&&p.opened?[p.opened]:[],connected:p!=null&&p.connected?[p.connected]:[],ping:p!=null&&p.ping?[p.ping]:[],pong:p!=null&&p.pong?[p.pong]:[],message:p!=null&&p.message?[F.emit,p.message]:[F.emit],closed:p!=null&&p.closed?[p.closed]:[],error:p!=null&&p.error?[p.error]:[]};return{onMessage:F.on,on(G,B){const q=V[G];return q.push(B),()=>{q.splice(q.indexOf(B),1)}},emit(G,...B){for(const q of[...V[G]])q(...B)}}})();function w(F){const V=[C.on("error",G=>{V.forEach(B=>B()),F(G)}),C.on("closed",G=>{V.forEach(B=>B()),F(G)})]}let A,k=0,R,I=!1,U=0,D=!1;async function z(){clearTimeout(R);const[F,V]=await(A??(A=new Promise((q,W)=>(async()=>{if(I){if(await d(U),!k)return A=void 0,W({code:1e3,reason:"All Subscriptions Gone"});U++}C.emit("connecting",I);const K=new T(typeof e=="function"?await e():e,AO);let te,ne;function ce(){isFinite(o)&&o>0&&(clearTimeout(ne),ne=setTimeout(()=>{K.readyState===T.OPEN&&(K.send(Nl({type:an.Ping})),C.emit("ping",!1,void 0))},o))}w(J=>{A=void 0,clearTimeout(te),clearTimeout(ne),W(J),J instanceof l5&&(K.close(4499,"Terminated"),K.onerror=null,K.onclose=null)}),K.onerror=J=>C.emit("error",J),K.onclose=J=>C.emit("closed",J),K.onopen=async()=>{try{C.emit("opened",K);const J=typeof n=="function"?await n():n;if(K.readyState!==T.OPEN)return;K.send(Nl(J?{type:an.ConnectionInit,payload:J}:{type:an.ConnectionInit},v)),isFinite(c)&&c>0&&(te=setTimeout(()=>{K.close(xr.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},c)),ce()}catch(J){C.emit("error",J),K.close(xr.InternalClientError,o5(J instanceof Error?J.message:new Error(J).message,"Internal client error"))}};let ie=!1;K.onmessage=({data:J})=>{try{const ue=kO(J,x);if(C.emit("message",ue),ue.type==="ping"||ue.type==="pong"){C.emit(ue.type,!0,ue.payload),ue.type==="pong"?ce():s||(K.send(Nl(ue.payload?{type:an.Pong,payload:ue.payload}:{type:an.Pong})),C.emit("pong",!1,ue.payload));return}if(ie)return;if(ue.type!==an.ConnectionAck)throw new Error(`First message cannot be of type ${ue.type}`);clearTimeout(te),ie=!0,C.emit("connected",K,ue.payload,I),I=!1,U=0,q([K,new Promise((le,ve)=>w(ve))])}catch(ue){K.onmessage=null,C.emit("error",ue),K.close(xr.BadResponse,o5(ue instanceof Error?ue.message:new Error(ue).message,"Bad response"))}}})())));F.readyState===T.CLOSING&&await V;let G=()=>{};const B=new Promise(q=>G=q);return[F,G,Promise.race([B.then(()=>{if(!k){const q=()=>F.close(1e3,"Normal Closure");isFinite(a)&&a>0?R=setTimeout(()=>{F.readyState===T.OPEN&&q()},a):q()}}),V])]}function Y(F){if(Wp(F)&&(RO(F.code)||[xr.InternalServerError,xr.InternalClientError,xr.BadRequest,xr.BadResponse,xr.Unauthorized,xr.SubprotocolNotAcceptable,xr.SubscriberAlreadyExists,xr.TooManyInitialisationRequests].includes(F.code)))throw F;if(D)return!1;if(Wp(F)&&F.code===1e3)return k>0;if(!u||U>=u||!h(F)||m!=null&&m(F))throw F;return I=!0}r||(async()=>{for(k++;;)try{const[,,F]=await z();await F}catch(F){try{if(!Y(F))return}catch(V){return i==null?void 0:i(V)}}})();function j(F,V){const G=b(F);let B=!1,q=!1,W=()=>{k--,B=!0};return(async()=>{for(k++;;)try{const[K,te,ne]=await z();if(B)return te();const ce=C.onMessage(G,ie=>{switch(ie.type){case an.Next:{V.next(ie.payload);return}case an.Error:{q=!0,B=!0,V.error(ie.payload),W();return}case an.Complete:{B=!0,W();return}}});K.send(Nl({id:G,type:an.Subscribe,payload:F},v)),W=()=>{!B&&K.readyState===T.OPEN&&K.send(Nl({id:G,type:an.Complete},v)),k--,B=!0,te()},await ne.finally(ce);return}catch(K){if(!Y(K))return}})().then(()=>{q||V.complete()}).catch(K=>{V.error(K)}),()=>{B||W()}}return{on:C.on,subscribe:j,iterate(F){const V=[],G={done:!1,error:null,resolve:()=>{}},B=j(F,{next(W){V.push(W),G.resolve()},error(W){G.done=!0,G.error=W,G.resolve()},complete(){G.done=!0,G.resolve()}}),q=(function(){return TO(this,arguments,function*(){for(;;){for(V.length||(yield Ko(new Promise(te=>G.resolve=te)));V.length;)yield yield Ko(V.shift());if(G.error)throw G.error;if(G.done)return yield Ko(void 0)}})})();return q.throw=async W=>(G.done||(G.done=!0,G.error=W,G.resolve()),{done:!0,value:void 0}),q.return=async()=>(B(),{done:!0,value:void 0}),q},async dispose(){if(D=!0,A){const[F]=await A;F.close(1e3,"Normal Closure")}},terminate(){A&&C.emit("closed",new l5)}}}class l5 extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function Wp(t){return no(t)&&"code"in t&&"reason"in t}function RO(t){return[1e3,1001,1006,1005,1012,1013,1014].includes(t)?!1:t>=1e3&&t<=1999}function NO(t){return typeof t=="function"&&"constructor"in t&&"CLOSED"in t&&"CLOSING"in t&&"CONNECTING"in t&&"OPEN"in t}const PO=t=>new xO(OO({connectionParams:{Authorization:xp()},url:`${t==null?void 0:t.replace("http","ws")}/graphql`,keepAlive:6e4})),Gp=t=>new g7({link:_n.from([yO,wO,_n.split(({query:e})=>{const n=xh(e);return n.kind==="OperationDefinition"&&n.operation==="subscription"},PO(t),SO(t))]),cache:new u7});Gp();const c5=t=>{const[e,n]=N.useState(typeof window<"u"&&window.matchMedia(t).matches);return N.useLayoutEffect(()=>{const r=window.matchMedia(t),i=a=>{n(a.matches)};return r.addEventListener("change",i),()=>r.removeEventListener("change",i)},[t]),e},IO=(t,e)=>{const n=N.useRef(null);return N.useEffect(()=>()=>{n.current&&clearTimeout(n.current)},[]),(...i)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{t(...i)},e)}},MO=async()=>{var e;const t=await eO().get("/organization-brand/widget");return((e=t==null?void 0:t.data)==null?void 0:e.data)||{}},LO=t=>{const e=t||"#00a1e0";document.documentElement.style.setProperty("--ed-brand-color",e)},FO=t=>{const e=t||"Poppins";document.documentElement.style.setProperty("--ed-main-font",e)},Ki=()=>S.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:[S.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"}),S.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"})]});var Yp={exports:{}},Kp={exports:{}},Et={},u5;function jO(){if(u5)return Et;u5=1;/** @license React v16.13.1
87
87
  * react-is.development.js
88
88
  *
89
89
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -95,9 +95,9 @@ object-assign
95
95
  (c) Sindre Sorhus
96
96
  @license MIT
97
97
  */var Zp,h5;function DO(){if(h5)return Zp;h5=1;var t=Object.getOwnPropertySymbols,e=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={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(d){return o[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Zp=i()?Object.assign:function(a,o){for(var s,c=r(a),u,d=1;d<arguments.length;d++){s=Object(arguments[d]);for(var h in s)e.call(s,h)&&(c[h]=s[h]);if(t){u=t(s);for(var m=0;m<u.length;m++)n.call(s,u[m])&&(c[u[m]]=s[u[m]])}}return c},Zp}var Qp,p5;function m5(){if(p5)return Qp;p5=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Qp=t,Qp}var qp,g5;function v5(){return g5||(g5=1,qp=Function.call.bind(Object.prototype.hasOwnProperty)),qp}var Jp,y5;function VO(){if(y5)return Jp;y5=1;var t=function(){};{var e=m5(),n={},r=v5();t=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,c,u){for(var d in a)if(r(a,d)){var h;try{if(typeof a[d]!="function"){var m=Error((c||"React class")+": "+s+" 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 m.name="Invariant Violation",m}h=a[d](o,d,c,s,null,e)}catch(y){h=y}if(h&&!(h instanceof Error)&&t((c||"React class")+": type specification of "+s+" `"+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 p=u?u():"";t("Failed "+s+" type: "+h.message+(p??""))}}}return i.resetWarningCache=function(){n={}},Jp=i,Jp}var Xp,b5;function UO(){if(b5)return Xp;b5=1;var t=d5(),e=DO(),n=m5(),r=v5(),i=VO(),a=function(){};a=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}};function o(){return null}return Xp=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h(W){var K=W&&(u&&W[u]||W[d]);if(typeof K=="function")return K}var m="<<anonymous>>",p={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:_(),arrayOf:T,element:C(),elementType:w(),instanceOf:A,node:U(),objectOf:R,oneOf:k,oneOfType:I,shape:z,exact:Y};function y(W,K){return W===K?W!==0||1/W===1/K:W!==W&&K!==K}function b(W,K){this.message=W,this.data=K&&typeof K=="object"?K:{},this.stack=""}b.prototype=Error.prototype;function v(W){var K={},te=0;function ne(ie,J,ue,le,ve,he,be){if(le=le||m,he=he||ue,be!==n){if(c){var ee=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 ee.name="Invariant Violation",ee}else if(typeof console<"u"){var Ie=le+":"+ue;!K[Ie]&&te<3&&(a("You are manually calling a React.PropTypes validation function for the `"+he+"` prop on `"+le+"`. 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[Ie]=!0,te++)}}return J[ue]==null?ie?J[ue]===null?new b("The "+ve+" `"+he+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new b("The "+ve+" `"+he+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:W(J,ue,le,ve,he)}var ce=ne.bind(null,!1);return ce.isRequired=ne.bind(null,!0),ce}function x(W){function K(te,ne,ce,ie,J,ue){var le=te[ne],ve=V(le);if(ve!==W){var he=G(le);return new b("Invalid "+ie+" `"+J+"` of type "+("`"+he+"` supplied to `"+ce+"`, expected ")+("`"+W+"`."),{expectedType:W})}return null}return v(K)}function _(){return v(o)}function T(W){function K(te,ne,ce,ie,J){if(typeof W!="function")return new b("Property `"+J+"` of component `"+ce+"` has invalid PropType notation inside arrayOf.");var ue=te[ne];if(!Array.isArray(ue)){var le=V(ue);return new b("Invalid "+ie+" `"+J+"` of type "+("`"+le+"` supplied to `"+ce+"`, expected an array."))}for(var ve=0;ve<ue.length;ve++){var he=W(ue,ve,ce,ie,J+"["+ve+"]",n);if(he instanceof Error)return he}return null}return v(K)}function C(){function W(K,te,ne,ce,ie){var J=K[te];if(!s(J)){var ue=V(J);return new b("Invalid "+ce+" `"+ie+"` of type "+("`"+ue+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return v(W)}function w(){function W(K,te,ne,ce,ie){var J=K[te];if(!t.isValidElementType(J)){var ue=V(J);return new b("Invalid "+ce+" `"+ie+"` of type "+("`"+ue+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return v(W)}function A(W){function K(te,ne,ce,ie,J){if(!(te[ne]instanceof W)){var ue=W.name||m,le=q(te[ne]);return new b("Invalid "+ie+" `"+J+"` of type "+("`"+le+"` supplied to `"+ce+"`, expected ")+("instance of `"+ue+"`."))}return null}return v(K)}function k(W){if(!Array.isArray(W))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(te,ne,ce,ie,J){for(var ue=te[ne],le=0;le<W.length;le++)if(y(ue,W[le]))return null;var ve=JSON.stringify(W,function(be,ee){var Ie=G(ee);return Ie==="symbol"?String(ee):ee});return new b("Invalid "+ie+" `"+J+"` of value `"+String(ue)+"` "+("supplied to `"+ce+"`, expected one of "+ve+"."))}return v(K)}function R(W){function K(te,ne,ce,ie,J){if(typeof W!="function")return new b("Property `"+J+"` of component `"+ce+"` has invalid PropType notation inside objectOf.");var ue=te[ne],le=V(ue);if(le!=="object")return new b("Invalid "+ie+" `"+J+"` of type "+("`"+le+"` supplied to `"+ce+"`, expected an object."));for(var ve in ue)if(r(ue,ve)){var he=W(ue,ve,ce,ie,J+"."+ve,n);if(he instanceof Error)return he}return null}return v(K)}function I(W){if(!Array.isArray(W))return a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var K=0;K<W.length;K++){var te=W[K];if(typeof te!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(te)+" at index "+K+"."),o}function ne(ce,ie,J,ue,le){for(var ve=[],he=0;he<W.length;he++){var be=W[he],ee=be(ce,ie,J,ue,le,n);if(ee==null)return null;ee.data&&r(ee.data,"expectedType")&&ve.push(ee.data.expectedType)}var Ie=ve.length>0?", expected one of type ["+ve.join(", ")+"]":"";return new b("Invalid "+ue+" `"+le+"` supplied to "+("`"+J+"`"+Ie+"."))}return v(ne)}function U(){function W(K,te,ne,ce,ie){return j(K[te])?null:new b("Invalid "+ce+" `"+ie+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return v(W)}function D(W,K,te,ne,ce){return new b((W||"React class")+": "+K+" type `"+te+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ce+"`.")}function z(W){function K(te,ne,ce,ie,J){var ue=te[ne],le=V(ue);if(le!=="object")return new b("Invalid "+ie+" `"+J+"` of type `"+le+"` "+("supplied to `"+ce+"`, expected `object`."));for(var ve in W){var he=W[ve];if(typeof he!="function")return D(ce,ie,J,ve,G(he));var be=he(ue,ve,ce,ie,J+"."+ve,n);if(be)return be}return null}return v(K)}function Y(W){function K(te,ne,ce,ie,J){var ue=te[ne],le=V(ue);if(le!=="object")return new b("Invalid "+ie+" `"+J+"` of type `"+le+"` "+("supplied to `"+ce+"`, expected `object`."));var ve=e({},te[ne],W);for(var he in ve){var be=W[he];if(r(W,he)&&typeof be!="function")return D(ce,ie,J,he,G(be));if(!be)return new b("Invalid "+ie+" `"+J+"` key `"+he+"` supplied to `"+ce+"`.\nBad object: "+JSON.stringify(te[ne],null," ")+`
98
- Valid keys: `+JSON.stringify(Object.keys(W),null," "));var ee=be(ue,he,ce,ie,J+"."+he,n);if(ee)return ee}return null}return v(K)}function j(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(j);if(W===null||s(W))return!0;var K=h(W);if(K){var te=K.call(W),ne;if(K!==W.entries){for(;!(ne=te.next()).done;)if(!j(ne.value))return!1}else for(;!(ne=te.next()).done;){var ce=ne.value;if(ce&&!j(ce[1]))return!1}}else return!1;return!0;default:return!1}}function F(W,K){return W==="symbol"?!0:K?K["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&K instanceof Symbol:!1}function V(W){var K=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":F(K,W)?"symbol":K}function G(W){if(typeof W>"u"||W===null)return""+W;var K=V(W);if(K==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return K}function B(W){var K=G(W);switch(K){case"array":case"object":return"an "+K;case"boolean":case"date":case"regexp":return"a "+K;default:return K}}function q(W){return!W.constructor||!W.constructor.name?m:W.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Xp}var w5;function BO(){if(w5)return Yp.exports;w5=1;{var t=d5(),e=!0;Yp.exports=UO()(t.isElement,e)}return Yp.exports}var zO=BO();const Se=Qa(zO);function $p(){return $p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},$p.apply(this,arguments)}function HO(t,e){if(t==null)return{};var n=WO(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function WO(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var em=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=HO(t,["color","size"]);return N.createElement("svg",$p({ref:e,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),N.createElement("polyline",{points:"20 6 9 17 4 12"}))});em.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},em.displayName="Check";function tm(){return tm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},tm.apply(this,arguments)}function GO(t,e){if(t==null)return{};var n=YO(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function YO(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Zo=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=GO(t,["color","size"]);return N.createElement("svg",tm({ref:e,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),N.createElement("polyline",{points:"6 9 12 15 18 9"}))});Zo.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Zo.displayName="ChevronDown";function nm(){return nm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nm.apply(this,arguments)}function KO(t,e){if(t==null)return{};var n=ZO(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ZO(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var ku=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=KO(t,["color","size"]);return N.createElement("svg",nm({ref:e,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),N.createElement("polyline",{points:"15 18 9 12 15 6"}))});ku.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},ku.displayName="ChevronLeft";function rm(){return rm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},rm.apply(this,arguments)}function QO(t,e){if(t==null)return{};var n=qO(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function qO(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Zi=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=QO(t,["color","size"]);return N.createElement("svg",rm({ref:e,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),N.createElement("polyline",{points:"9 18 15 12 9 6"}))});Zi.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Zi.displayName="ChevronRight";function im(){return im=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},im.apply(this,arguments)}function JO(t,e){if(t==null)return{};var n=XO(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function XO(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Tu=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=JO(t,["color","size"]);return N.createElement("svg",im({ref:e,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),N.createElement("polyline",{points:"18 15 12 9 6 15"}))});Tu.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Tu.displayName="ChevronUp";function am(){return am=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},am.apply(this,arguments)}function $O(t,e){if(t==null)return{};var n=eR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function eR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var om=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=$O(t,["color","size"]);return N.createElement("svg",am({ref:e,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),N.createElement("polyline",{points:"8 17 12 21 16 17"}),N.createElement("line",{x1:"12",y1:"12",x2:"12",y2:"21"}),N.createElement("path",{d:"M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"}))});om.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},om.displayName="DownloadCloud";function sm(){return sm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},sm.apply(this,arguments)}function tR(t,e){if(t==null)return{};var n=nR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function nR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var lm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=tR(t,["color","size"]);return N.createElement("svg",sm({ref:e,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),N.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),N.createElement("polyline",{points:"7 10 12 15 17 10"}),N.createElement("line",{x1:"12",y1:"15",x2:"12",y2:"3"}))});lm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},lm.displayName="Download";function cm(){return cm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},cm.apply(this,arguments)}function rR(t,e){if(t==null)return{};var n=iR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function iR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var um=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=rR(t,["color","size"]);return N.createElement("svg",cm({ref:e,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),N.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),N.createElement("polyline",{points:"15 3 21 3 21 9"}),N.createElement("line",{x1:"10",y1:"14",x2:"21",y2:"3"}))});um.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},um.displayName="ExternalLink";function fm(){return fm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},fm.apply(this,arguments)}function aR(t,e){if(t==null)return{};var n=oR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function oR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var dm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=aR(t,["color","size"]);return N.createElement("svg",fm({ref:e,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),N.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),N.createElement("polyline",{points:"14 2 14 8 20 8"}),N.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),N.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),N.createElement("polyline",{points:"10 9 9 9 8 9"}))});dm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},dm.displayName="FileText";function hm(){return hm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},hm.apply(this,arguments)}function sR(t,e){if(t==null)return{};var n=lR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function lR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var pm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=sR(t,["color","size"]);return N.createElement("svg",hm({ref:e,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),N.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"}))});pm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},pm.displayName="Paperclip";function mm(){return mm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},mm.apply(this,arguments)}function cR(t,e){if(t==null)return{};var n=uR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function uR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var gm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=cR(t,["color","size"]);return N.createElement("svg",mm({ref:e,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),N.createElement("polyline",{points:"1 4 1 10 7 10"}),N.createElement("path",{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"}))});gm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},gm.displayName="RotateCcw";function vm(){return vm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},vm.apply(this,arguments)}function fR(t,e){if(t==null)return{};var n=dR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function dR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var ym=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=fR(t,["color","size"]);return N.createElement("svg",vm({ref:e,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),N.createElement("circle",{cx:"11",cy:"11",r:"8"}),N.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});ym.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},ym.displayName="Search";function bm(){return bm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},bm.apply(this,arguments)}function hR(t,e){if(t==null)return{};var n=pR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function pR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var wm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=hR(t,["color","size"]);return N.createElement("svg",bm({ref:e,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),N.createElement("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),N.createElement("polygon",{points:"22 2 15 22 11 13 2 9 22 2"}))});wm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},wm.displayName="Send";function Sm(){return Sm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Sm.apply(this,arguments)}function mR(t,e){if(t==null)return{};var n=gR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function gR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Em=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=mR(t,["color","size"]);return N.createElement("svg",Sm({ref:e,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),N.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"}))});Em.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Em.displayName="ThumbsDown";function Cm(){return Cm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Cm.apply(this,arguments)}function vR(t,e){if(t==null)return{};var n=yR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function yR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var xm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=vR(t,["color","size"]);return N.createElement("svg",Cm({ref:e,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),N.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"}))});xm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},xm.displayName="ThumbsUp";function _m(){return _m=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_m.apply(this,arguments)}function bR(t,e){if(t==null)return{};var n=wR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function wR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Am=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=bR(t,["color","size"]);return N.createElement("svg",_m({ref:e,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),N.createElement("polyline",{points:"3 6 5 6 21 6"}),N.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"}))});Am.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Am.displayName="Trash";function km(){return km=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},km.apply(this,arguments)}function SR(t,e){if(t==null)return{};var n=ER(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ER(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Tm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=SR(t,["color","size"]);return N.createElement("svg",km({ref:e,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),N.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),N.createElement("polyline",{points:"17 8 12 3 7 8"}),N.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"}))});Tm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Tm.displayName="Upload";function Om(){return Om=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Om.apply(this,arguments)}function CR(t,e){if(t==null)return{};var n=xR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function xR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Rm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=CR(t,["color","size"]);return N.createElement("svg",Om({ref:e,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),N.createElement("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),N.createElement("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"}))});Rm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Rm.displayName="Volume1";function Nm(){return Nm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Nm.apply(this,arguments)}function _R(t,e){if(t==null)return{};var n=AR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function AR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Pm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=_R(t,["color","size"]);return N.createElement("svg",Nm({ref:e,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),N.createElement("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),N.createElement("line",{x1:"23",y1:"9",x2:"17",y2:"15"}),N.createElement("line",{x1:"17",y1:"9",x2:"23",y2:"15"}))});Pm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Pm.displayName="VolumeX";function Im(){return Im=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Im.apply(this,arguments)}function kR(t,e){if(t==null)return{};var n=TR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function TR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var _i=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=kR(t,["color","size"]);return N.createElement("svg",Im({ref:e,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),N.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),N.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});_i.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},_i.displayName="X";function Mm(){return Mm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Mm.apply(this,arguments)}function OR(t,e){if(t==null)return{};var n=RR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function RR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Lm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=OR(t,["color","size"]);return N.createElement("svg",Mm({ref:e,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),N.createElement("circle",{cx:"11",cy:"11",r:"8"}),N.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),N.createElement("line",{x1:"11",y1:"8",x2:"11",y2:"14"}),N.createElement("line",{x1:"8",y1:"11",x2:"14",y2:"11"}))});Lm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Lm.displayName="ZoomIn";function Fm(){return Fm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Fm.apply(this,arguments)}function NR(t,e){if(t==null)return{};var n=PR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function PR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var jm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=NR(t,["color","size"]);return N.createElement("svg",Fm({ref:e,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),N.createElement("circle",{cx:"11",cy:"11",r:"8"}),N.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),N.createElement("line",{x1:"8",y1:"11",x2:"14",y2:"11"}))});jm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},jm.displayName="ZoomOut";var Pl={},Qo={},Ou={},ga={},no={},Dm={},S5;function E5(){return S5||(S5=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(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"})(e=t.ElementType||(t.ElementType={}));function n(r){return r.type===e.Tag||r.type===e.Script||r.type===e.Style}t.isTag=n,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(Dm)),Dm}var Xe={},C5;function x5(){if(C5)return Xe;C5=1;var t=Xe&&Xe.__extends||(function(){var w=function(A,k){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,I){R.__proto__=I}||function(R,I){for(var U in I)Object.prototype.hasOwnProperty.call(I,U)&&(R[U]=I[U])},w(A,k)};return function(A,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");w(A,k);function R(){this.constructor=A}A.prototype=k===null?Object.create(k):(R.prototype=k.prototype,new R)}})(),e=Xe&&Xe.__assign||function(){return e=Object.assign||function(w){for(var A,k=1,R=arguments.length;k<R;k++){A=arguments[k];for(var I in A)Object.prototype.hasOwnProperty.call(A,I)&&(w[I]=A[I])}return w},e.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=E5(),r=(function(){function w(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(w.prototype,"parentNode",{get:function(){return this.parent},set:function(A){this.parent=A},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"previousSibling",{get:function(){return this.prev},set:function(A){this.prev=A},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"nextSibling",{get:function(){return this.next},set:function(A){this.next=A},enumerable:!1,configurable:!0}),w.prototype.cloneNode=function(A){return A===void 0&&(A=!1),T(this,A)},w})();Xe.Node=r;var i=(function(w){t(A,w);function A(k){var R=w.call(this)||this;return R.data=k,R}return Object.defineProperty(A.prototype,"nodeValue",{get:function(){return this.data},set:function(k){this.data=k},enumerable:!1,configurable:!0}),A})(r);Xe.DataNode=i;var a=(function(w){t(A,w);function A(){var k=w!==null&&w.apply(this,arguments)||this;return k.type=n.ElementType.Text,k}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),A})(i);Xe.Text=a;var o=(function(w){t(A,w);function A(){var k=w!==null&&w.apply(this,arguments)||this;return k.type=n.ElementType.Comment,k}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),A})(i);Xe.Comment=o;var s=(function(w){t(A,w);function A(k,R){var I=w.call(this,R)||this;return I.name=k,I.type=n.ElementType.Directive,I}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),A})(i);Xe.ProcessingInstruction=s;var c=(function(w){t(A,w);function A(k){var R=w.call(this)||this;return R.children=k,R}return Object.defineProperty(A.prototype,"firstChild",{get:function(){var k;return(k=this.children[0])!==null&&k!==void 0?k:null},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"childNodes",{get:function(){return this.children},set:function(k){this.children=k},enumerable:!1,configurable:!0}),A})(r);Xe.NodeWithChildren=c;var u=(function(w){t(A,w);function A(){var k=w!==null&&w.apply(this,arguments)||this;return k.type=n.ElementType.CDATA,k}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),A})(c);Xe.CDATA=u;var d=(function(w){t(A,w);function A(){var k=w!==null&&w.apply(this,arguments)||this;return k.type=n.ElementType.Root,k}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),A})(c);Xe.Document=d;var h=(function(w){t(A,w);function A(k,R,I,U){I===void 0&&(I=[]),U===void 0&&(U=k==="script"?n.ElementType.Script:k==="style"?n.ElementType.Style:n.ElementType.Tag);var D=w.call(this,I)||this;return D.name=k,D.attribs=R,D.type=U,D}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"tagName",{get:function(){return this.name},set:function(k){this.name=k},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"attributes",{get:function(){var k=this;return Object.keys(this.attribs).map(function(R){var I,U;return{name:R,value:k.attribs[R],namespace:(I=k["x-attribsNamespace"])===null||I===void 0?void 0:I[R],prefix:(U=k["x-attribsPrefix"])===null||U===void 0?void 0:U[R]}})},enumerable:!1,configurable:!0}),A})(c);Xe.Element=h;function m(w){return(0,n.isTag)(w)}Xe.isTag=m;function p(w){return w.type===n.ElementType.CDATA}Xe.isCDATA=p;function y(w){return w.type===n.ElementType.Text}Xe.isText=y;function b(w){return w.type===n.ElementType.Comment}Xe.isComment=b;function v(w){return w.type===n.ElementType.Directive}Xe.isDirective=v;function x(w){return w.type===n.ElementType.Root}Xe.isDocument=x;function _(w){return Object.prototype.hasOwnProperty.call(w,"children")}Xe.hasChildren=_;function T(w,A){A===void 0&&(A=!1);var k;if(y(w))k=new a(w.data);else if(b(w))k=new o(w.data);else if(m(w)){var R=A?C(w.children):[],I=new h(w.name,e({},w.attribs),R);R.forEach(function(Y){return Y.parent=I}),w.namespace!=null&&(I.namespace=w.namespace),w["x-attribsNamespace"]&&(I["x-attribsNamespace"]=e({},w["x-attribsNamespace"])),w["x-attribsPrefix"]&&(I["x-attribsPrefix"]=e({},w["x-attribsPrefix"])),k=I}else if(p(w)){var R=A?C(w.children):[],U=new u(R);R.forEach(function(j){return j.parent=U}),k=U}else if(x(w)){var R=A?C(w.children):[],D=new d(R);R.forEach(function(j){return j.parent=D}),w["x-mode"]&&(D["x-mode"]=w["x-mode"]),k=D}else if(v(w)){var z=new s(w.name,w.data);w["x-name"]!=null&&(z["x-name"]=w["x-name"],z["x-publicId"]=w["x-publicId"],z["x-systemId"]=w["x-systemId"]),k=z}else throw new Error("Not implemented yet: ".concat(w.type));return k.startIndex=w.startIndex,k.endIndex=w.endIndex,w.sourceCodeLocation!=null&&(k.sourceCodeLocation=w.sourceCodeLocation),k}Xe.cloneNode=T;function C(w){for(var A=w.map(function(R){return T(R,!0)}),k=1;k<A.length;k++)A[k].prev=A[k-1],A[k-1].next=A[k];return A}return Xe}var _5;function A5(){return _5||(_5=1,(function(t){var e=no&&no.__createBinding||(Object.create?(function(s,c,u,d){d===void 0&&(d=u);var h=Object.getOwnPropertyDescriptor(c,u);(!h||("get"in h?!c.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return c[u]}}),Object.defineProperty(s,d,h)}):(function(s,c,u,d){d===void 0&&(d=u),s[d]=c[u]})),n=no&&no.__exportStar||function(s,c){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(c,u)&&e(c,s,u)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var r=E5(),i=x5();n(x5(),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=(function(){function s(c,u,d){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(d=u,u=a),typeof c=="object"&&(u=c,c=void 0),this.callback=c??null,this.options=u??a,this.elementCB=d??null}return s.prototype.onparserinit=function(c){this.parser=c},s.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},s.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},s.prototype.onerror=function(c){this.handleCallback(c)},s.prototype.onclosetag=function(){this.lastNode=null;var c=this.tagStack.pop();this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(c)},s.prototype.onopentag=function(c,u){var d=this.options.xmlMode?r.ElementType.Tag:void 0,h=new i.Element(c,u,void 0,d);this.addNode(h),this.tagStack.push(h)},s.prototype.ontext=function(c){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=c,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var d=new i.Text(c);this.addNode(d),this.lastNode=d}},s.prototype.oncomment=function(c){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=c;return}var u=new i.Comment(c);this.addNode(u),this.lastNode=u},s.prototype.oncommentend=function(){this.lastNode=null},s.prototype.oncdatastart=function(){var c=new i.Text(""),u=new i.CDATA([c]);this.addNode(u),c.parent=u,this.lastNode=c},s.prototype.oncdataend=function(){this.lastNode=null},s.prototype.onprocessinginstruction=function(c,u){var d=new i.ProcessingInstruction(c,u);this.addNode(d)},s.prototype.handleCallback=function(c){if(typeof this.callback=="function")this.callback(c,this.dom);else if(c)throw c},s.prototype.addNode=function(c){var u=this.tagStack[this.tagStack.length-1],d=u.children[u.children.length-1];this.options.withStartIndices&&(c.startIndex=this.parser.startIndex),this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),u.children.push(c),d&&(c.prev=d,d.next=c),c.parent=u,this.lastNode=null},s})();t.DomHandler=o,t.default=o})(no)),no}var Vm={},k5;function IR(){return k5||(k5=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.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"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,n){return e[n.toLowerCase()]=n,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")})(Vm)),Vm}var T5;function O5(){if(T5)return ga;T5=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.formatAttributes=r,ga.hasOpenTag=a,ga.escapeSpecialCharacters=o,ga.revertEscapedCharacters=s,ga.formatDOM=c;var t=A5(),e=IR();function n(u){return e.CASE_SENSITIVE_TAG_NAMES_MAP[u]}function r(u){for(var d={},h=0,m=u.length;h<m;h++){var p=u[h];d[p.name]=p.value}return d}function i(u){u=u.toLowerCase();var d=n(u);return d||u}function a(u,d){var h="<"+d,m=u.toLowerCase().indexOf(h);if(m===-1)return!1;var p=u[m+h.length];return p===">"||p===" "||p===" "||p===`
98
+ Valid keys: `+JSON.stringify(Object.keys(W),null," "));var ee=be(ue,he,ce,ie,J+"."+he,n);if(ee)return ee}return null}return v(K)}function j(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(j);if(W===null||s(W))return!0;var K=h(W);if(K){var te=K.call(W),ne;if(K!==W.entries){for(;!(ne=te.next()).done;)if(!j(ne.value))return!1}else for(;!(ne=te.next()).done;){var ce=ne.value;if(ce&&!j(ce[1]))return!1}}else return!1;return!0;default:return!1}}function F(W,K){return W==="symbol"?!0:K?K["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&K instanceof Symbol:!1}function V(W){var K=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":F(K,W)?"symbol":K}function G(W){if(typeof W>"u"||W===null)return""+W;var K=V(W);if(K==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return K}function B(W){var K=G(W);switch(K){case"array":case"object":return"an "+K;case"boolean":case"date":case"regexp":return"a "+K;default:return K}}function q(W){return!W.constructor||!W.constructor.name?m:W.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Xp}var w5;function BO(){if(w5)return Yp.exports;w5=1;{var t=d5(),e=!0;Yp.exports=UO()(t.isElement,e)}return Yp.exports}var zO=BO();const Se=qa(zO);function $p(){return $p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},$p.apply(this,arguments)}function HO(t,e){if(t==null)return{};var n=WO(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function WO(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var em=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=HO(t,["color","size"]);return N.createElement("svg",$p({ref:e,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),N.createElement("polyline",{points:"20 6 9 17 4 12"}))});em.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},em.displayName="Check";function tm(){return tm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},tm.apply(this,arguments)}function GO(t,e){if(t==null)return{};var n=YO(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function YO(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Zo=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=GO(t,["color","size"]);return N.createElement("svg",tm({ref:e,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),N.createElement("polyline",{points:"6 9 12 15 18 9"}))});Zo.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Zo.displayName="ChevronDown";function nm(){return nm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nm.apply(this,arguments)}function KO(t,e){if(t==null)return{};var n=ZO(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ZO(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var ku=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=KO(t,["color","size"]);return N.createElement("svg",nm({ref:e,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),N.createElement("polyline",{points:"15 18 9 12 15 6"}))});ku.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},ku.displayName="ChevronLeft";function rm(){return rm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},rm.apply(this,arguments)}function QO(t,e){if(t==null)return{};var n=qO(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function qO(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Zi=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=QO(t,["color","size"]);return N.createElement("svg",rm({ref:e,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),N.createElement("polyline",{points:"9 18 15 12 9 6"}))});Zi.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Zi.displayName="ChevronRight";function im(){return im=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},im.apply(this,arguments)}function JO(t,e){if(t==null)return{};var n=XO(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function XO(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Tu=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=JO(t,["color","size"]);return N.createElement("svg",im({ref:e,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),N.createElement("polyline",{points:"18 15 12 9 6 15"}))});Tu.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Tu.displayName="ChevronUp";function am(){return am=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},am.apply(this,arguments)}function $O(t,e){if(t==null)return{};var n=eR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function eR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var om=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=$O(t,["color","size"]);return N.createElement("svg",am({ref:e,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),N.createElement("polyline",{points:"8 17 12 21 16 17"}),N.createElement("line",{x1:"12",y1:"12",x2:"12",y2:"21"}),N.createElement("path",{d:"M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"}))});om.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},om.displayName="DownloadCloud";function sm(){return sm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},sm.apply(this,arguments)}function tR(t,e){if(t==null)return{};var n=nR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function nR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var lm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=tR(t,["color","size"]);return N.createElement("svg",sm({ref:e,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),N.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),N.createElement("polyline",{points:"7 10 12 15 17 10"}),N.createElement("line",{x1:"12",y1:"15",x2:"12",y2:"3"}))});lm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},lm.displayName="Download";function cm(){return cm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},cm.apply(this,arguments)}function rR(t,e){if(t==null)return{};var n=iR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function iR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var um=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=rR(t,["color","size"]);return N.createElement("svg",cm({ref:e,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),N.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),N.createElement("polyline",{points:"15 3 21 3 21 9"}),N.createElement("line",{x1:"10",y1:"14",x2:"21",y2:"3"}))});um.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},um.displayName="ExternalLink";function fm(){return fm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},fm.apply(this,arguments)}function aR(t,e){if(t==null)return{};var n=oR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function oR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var dm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=aR(t,["color","size"]);return N.createElement("svg",fm({ref:e,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),N.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),N.createElement("polyline",{points:"14 2 14 8 20 8"}),N.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),N.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),N.createElement("polyline",{points:"10 9 9 9 8 9"}))});dm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},dm.displayName="FileText";function hm(){return hm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},hm.apply(this,arguments)}function sR(t,e){if(t==null)return{};var n=lR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function lR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var pm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=sR(t,["color","size"]);return N.createElement("svg",hm({ref:e,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),N.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"}))});pm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},pm.displayName="Paperclip";function mm(){return mm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},mm.apply(this,arguments)}function cR(t,e){if(t==null)return{};var n=uR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function uR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var gm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=cR(t,["color","size"]);return N.createElement("svg",mm({ref:e,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),N.createElement("polyline",{points:"1 4 1 10 7 10"}),N.createElement("path",{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"}))});gm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},gm.displayName="RotateCcw";function vm(){return vm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},vm.apply(this,arguments)}function fR(t,e){if(t==null)return{};var n=dR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function dR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var ym=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=fR(t,["color","size"]);return N.createElement("svg",vm({ref:e,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),N.createElement("circle",{cx:"11",cy:"11",r:"8"}),N.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});ym.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},ym.displayName="Search";function bm(){return bm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},bm.apply(this,arguments)}function hR(t,e){if(t==null)return{};var n=pR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function pR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var wm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=hR(t,["color","size"]);return N.createElement("svg",bm({ref:e,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),N.createElement("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),N.createElement("polygon",{points:"22 2 15 22 11 13 2 9 22 2"}))});wm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},wm.displayName="Send";function Sm(){return Sm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Sm.apply(this,arguments)}function mR(t,e){if(t==null)return{};var n=gR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function gR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Em=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=mR(t,["color","size"]);return N.createElement("svg",Sm({ref:e,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),N.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"}))});Em.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Em.displayName="ThumbsDown";function Cm(){return Cm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Cm.apply(this,arguments)}function vR(t,e){if(t==null)return{};var n=yR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function yR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var xm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=vR(t,["color","size"]);return N.createElement("svg",Cm({ref:e,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),N.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"}))});xm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},xm.displayName="ThumbsUp";function _m(){return _m=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_m.apply(this,arguments)}function bR(t,e){if(t==null)return{};var n=wR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function wR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Am=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=bR(t,["color","size"]);return N.createElement("svg",_m({ref:e,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),N.createElement("polyline",{points:"3 6 5 6 21 6"}),N.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"}))});Am.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Am.displayName="Trash";function km(){return km=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},km.apply(this,arguments)}function SR(t,e){if(t==null)return{};var n=ER(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ER(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Tm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=SR(t,["color","size"]);return N.createElement("svg",km({ref:e,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),N.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),N.createElement("polyline",{points:"17 8 12 3 7 8"}),N.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"}))});Tm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Tm.displayName="Upload";function Om(){return Om=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Om.apply(this,arguments)}function CR(t,e){if(t==null)return{};var n=xR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function xR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Rm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=CR(t,["color","size"]);return N.createElement("svg",Om({ref:e,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),N.createElement("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),N.createElement("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"}))});Rm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Rm.displayName="Volume1";function Nm(){return Nm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Nm.apply(this,arguments)}function _R(t,e){if(t==null)return{};var n=AR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function AR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Pm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=_R(t,["color","size"]);return N.createElement("svg",Nm({ref:e,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),N.createElement("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),N.createElement("line",{x1:"23",y1:"9",x2:"17",y2:"15"}),N.createElement("line",{x1:"17",y1:"9",x2:"23",y2:"15"}))});Pm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Pm.displayName="VolumeX";function Im(){return Im=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Im.apply(this,arguments)}function kR(t,e){if(t==null)return{};var n=TR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function TR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var _i=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=kR(t,["color","size"]);return N.createElement("svg",Im({ref:e,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),N.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),N.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});_i.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},_i.displayName="X";function Mm(){return Mm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Mm.apply(this,arguments)}function OR(t,e){if(t==null)return{};var n=RR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function RR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Lm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=OR(t,["color","size"]);return N.createElement("svg",Mm({ref:e,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),N.createElement("circle",{cx:"11",cy:"11",r:"8"}),N.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),N.createElement("line",{x1:"11",y1:"8",x2:"11",y2:"14"}),N.createElement("line",{x1:"8",y1:"11",x2:"14",y2:"11"}))});Lm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Lm.displayName="ZoomIn";function Fm(){return Fm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Fm.apply(this,arguments)}function NR(t,e){if(t==null)return{};var n=PR(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function PR(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var jm=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,a=i===void 0?24:i,o=NR(t,["color","size"]);return N.createElement("svg",Fm({ref:e,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),N.createElement("circle",{cx:"11",cy:"11",r:"8"}),N.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),N.createElement("line",{x1:"8",y1:"11",x2:"14",y2:"11"}))});jm.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},jm.displayName="ZoomOut";var Pl={},Qo={},Ou={},ga={},ro={},Dm={},S5;function E5(){return S5||(S5=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(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"})(e=t.ElementType||(t.ElementType={}));function n(r){return r.type===e.Tag||r.type===e.Script||r.type===e.Style}t.isTag=n,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(Dm)),Dm}var Xe={},C5;function x5(){if(C5)return Xe;C5=1;var t=Xe&&Xe.__extends||(function(){var w=function(A,k){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,I){R.__proto__=I}||function(R,I){for(var U in I)Object.prototype.hasOwnProperty.call(I,U)&&(R[U]=I[U])},w(A,k)};return function(A,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");w(A,k);function R(){this.constructor=A}A.prototype=k===null?Object.create(k):(R.prototype=k.prototype,new R)}})(),e=Xe&&Xe.__assign||function(){return e=Object.assign||function(w){for(var A,k=1,R=arguments.length;k<R;k++){A=arguments[k];for(var I in A)Object.prototype.hasOwnProperty.call(A,I)&&(w[I]=A[I])}return w},e.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=E5(),r=(function(){function w(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(w.prototype,"parentNode",{get:function(){return this.parent},set:function(A){this.parent=A},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"previousSibling",{get:function(){return this.prev},set:function(A){this.prev=A},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"nextSibling",{get:function(){return this.next},set:function(A){this.next=A},enumerable:!1,configurable:!0}),w.prototype.cloneNode=function(A){return A===void 0&&(A=!1),T(this,A)},w})();Xe.Node=r;var i=(function(w){t(A,w);function A(k){var R=w.call(this)||this;return R.data=k,R}return Object.defineProperty(A.prototype,"nodeValue",{get:function(){return this.data},set:function(k){this.data=k},enumerable:!1,configurable:!0}),A})(r);Xe.DataNode=i;var a=(function(w){t(A,w);function A(){var k=w!==null&&w.apply(this,arguments)||this;return k.type=n.ElementType.Text,k}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),A})(i);Xe.Text=a;var o=(function(w){t(A,w);function A(){var k=w!==null&&w.apply(this,arguments)||this;return k.type=n.ElementType.Comment,k}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),A})(i);Xe.Comment=o;var s=(function(w){t(A,w);function A(k,R){var I=w.call(this,R)||this;return I.name=k,I.type=n.ElementType.Directive,I}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),A})(i);Xe.ProcessingInstruction=s;var c=(function(w){t(A,w);function A(k){var R=w.call(this)||this;return R.children=k,R}return Object.defineProperty(A.prototype,"firstChild",{get:function(){var k;return(k=this.children[0])!==null&&k!==void 0?k:null},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"childNodes",{get:function(){return this.children},set:function(k){this.children=k},enumerable:!1,configurable:!0}),A})(r);Xe.NodeWithChildren=c;var u=(function(w){t(A,w);function A(){var k=w!==null&&w.apply(this,arguments)||this;return k.type=n.ElementType.CDATA,k}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),A})(c);Xe.CDATA=u;var d=(function(w){t(A,w);function A(){var k=w!==null&&w.apply(this,arguments)||this;return k.type=n.ElementType.Root,k}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),A})(c);Xe.Document=d;var h=(function(w){t(A,w);function A(k,R,I,U){I===void 0&&(I=[]),U===void 0&&(U=k==="script"?n.ElementType.Script:k==="style"?n.ElementType.Style:n.ElementType.Tag);var D=w.call(this,I)||this;return D.name=k,D.attribs=R,D.type=U,D}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"tagName",{get:function(){return this.name},set:function(k){this.name=k},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"attributes",{get:function(){var k=this;return Object.keys(this.attribs).map(function(R){var I,U;return{name:R,value:k.attribs[R],namespace:(I=k["x-attribsNamespace"])===null||I===void 0?void 0:I[R],prefix:(U=k["x-attribsPrefix"])===null||U===void 0?void 0:U[R]}})},enumerable:!1,configurable:!0}),A})(c);Xe.Element=h;function m(w){return(0,n.isTag)(w)}Xe.isTag=m;function p(w){return w.type===n.ElementType.CDATA}Xe.isCDATA=p;function y(w){return w.type===n.ElementType.Text}Xe.isText=y;function b(w){return w.type===n.ElementType.Comment}Xe.isComment=b;function v(w){return w.type===n.ElementType.Directive}Xe.isDirective=v;function x(w){return w.type===n.ElementType.Root}Xe.isDocument=x;function _(w){return Object.prototype.hasOwnProperty.call(w,"children")}Xe.hasChildren=_;function T(w,A){A===void 0&&(A=!1);var k;if(y(w))k=new a(w.data);else if(b(w))k=new o(w.data);else if(m(w)){var R=A?C(w.children):[],I=new h(w.name,e({},w.attribs),R);R.forEach(function(Y){return Y.parent=I}),w.namespace!=null&&(I.namespace=w.namespace),w["x-attribsNamespace"]&&(I["x-attribsNamespace"]=e({},w["x-attribsNamespace"])),w["x-attribsPrefix"]&&(I["x-attribsPrefix"]=e({},w["x-attribsPrefix"])),k=I}else if(p(w)){var R=A?C(w.children):[],U=new u(R);R.forEach(function(j){return j.parent=U}),k=U}else if(x(w)){var R=A?C(w.children):[],D=new d(R);R.forEach(function(j){return j.parent=D}),w["x-mode"]&&(D["x-mode"]=w["x-mode"]),k=D}else if(v(w)){var z=new s(w.name,w.data);w["x-name"]!=null&&(z["x-name"]=w["x-name"],z["x-publicId"]=w["x-publicId"],z["x-systemId"]=w["x-systemId"]),k=z}else throw new Error("Not implemented yet: ".concat(w.type));return k.startIndex=w.startIndex,k.endIndex=w.endIndex,w.sourceCodeLocation!=null&&(k.sourceCodeLocation=w.sourceCodeLocation),k}Xe.cloneNode=T;function C(w){for(var A=w.map(function(R){return T(R,!0)}),k=1;k<A.length;k++)A[k].prev=A[k-1],A[k-1].next=A[k];return A}return Xe}var _5;function A5(){return _5||(_5=1,(function(t){var e=ro&&ro.__createBinding||(Object.create?(function(s,c,u,d){d===void 0&&(d=u);var h=Object.getOwnPropertyDescriptor(c,u);(!h||("get"in h?!c.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return c[u]}}),Object.defineProperty(s,d,h)}):(function(s,c,u,d){d===void 0&&(d=u),s[d]=c[u]})),n=ro&&ro.__exportStar||function(s,c){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(c,u)&&e(c,s,u)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var r=E5(),i=x5();n(x5(),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=(function(){function s(c,u,d){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(d=u,u=a),typeof c=="object"&&(u=c,c=void 0),this.callback=c??null,this.options=u??a,this.elementCB=d??null}return s.prototype.onparserinit=function(c){this.parser=c},s.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},s.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},s.prototype.onerror=function(c){this.handleCallback(c)},s.prototype.onclosetag=function(){this.lastNode=null;var c=this.tagStack.pop();this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(c)},s.prototype.onopentag=function(c,u){var d=this.options.xmlMode?r.ElementType.Tag:void 0,h=new i.Element(c,u,void 0,d);this.addNode(h),this.tagStack.push(h)},s.prototype.ontext=function(c){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=c,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var d=new i.Text(c);this.addNode(d),this.lastNode=d}},s.prototype.oncomment=function(c){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=c;return}var u=new i.Comment(c);this.addNode(u),this.lastNode=u},s.prototype.oncommentend=function(){this.lastNode=null},s.prototype.oncdatastart=function(){var c=new i.Text(""),u=new i.CDATA([c]);this.addNode(u),c.parent=u,this.lastNode=c},s.prototype.oncdataend=function(){this.lastNode=null},s.prototype.onprocessinginstruction=function(c,u){var d=new i.ProcessingInstruction(c,u);this.addNode(d)},s.prototype.handleCallback=function(c){if(typeof this.callback=="function")this.callback(c,this.dom);else if(c)throw c},s.prototype.addNode=function(c){var u=this.tagStack[this.tagStack.length-1],d=u.children[u.children.length-1];this.options.withStartIndices&&(c.startIndex=this.parser.startIndex),this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),u.children.push(c),d&&(c.prev=d,d.next=c),c.parent=u,this.lastNode=null},s})();t.DomHandler=o,t.default=o})(ro)),ro}var Vm={},k5;function IR(){return k5||(k5=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.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"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,n){return e[n.toLowerCase()]=n,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")})(Vm)),Vm}var T5;function O5(){if(T5)return ga;T5=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.formatAttributes=r,ga.hasOpenTag=a,ga.escapeSpecialCharacters=o,ga.revertEscapedCharacters=s,ga.formatDOM=c;var t=A5(),e=IR();function n(u){return e.CASE_SENSITIVE_TAG_NAMES_MAP[u]}function r(u){for(var d={},h=0,m=u.length;h<m;h++){var p=u[h];d[p.name]=p.value}return d}function i(u){u=u.toLowerCase();var d=n(u);return d||u}function a(u,d){var h="<"+d,m=u.toLowerCase().indexOf(h);if(m===-1)return!1;var p=u[m+h.length];return p===">"||p===" "||p===" "||p===`
99
99
  `||p==="\r"||p==="/"}function o(u){return u.replace(e.CARRIAGE_RETURN_REGEX,e.CARRIAGE_RETURN_PLACEHOLDER)}function s(u){return u.replace(e.CARRIAGE_RETURN_PLACEHOLDER_REGEX,e.CARRIAGE_RETURN)}function c(u,d,h){var m,p,y,b;d===void 0&&(d=null);for(var v=[],x,_=0,T=u.length;_<T;_++){var C=u[_];switch(C.nodeType){case 1:{var w=i(C.nodeName);x=new t.Element(w,r(C.attributes)),x.children=c(w==="template"?C.content.childNodes:C.childNodes,x);break}case 3:x=new t.Text(s((m=C.nodeValue)!==null&&m!==void 0?m:""));break;case 8:x=new t.Comment((p=C.nodeValue)!==null&&p!==void 0?p:"");break;default:continue}var A=(y=v[_-1])!==null&&y!==void 0?y:null;A&&(A.next=x),x.parent=d,x.prev=A,x.next=null,v.push(x)}return h&&(x=new t.ProcessingInstruction(h.substring(0,h.indexOf(" ")).toLowerCase(),h),x.next=(b=v[0])!==null&&b!==void 0?b:null,x.parent=d,v.unshift(x),v[1]&&(v[1].prev=v[0])),v}return ga}var R5;function MR(){if(R5)return Ou;R5=1,Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.default=y;var t=O5(),e="html",n="head",r="body",i=/<([a-zA-Z]+[0-9]?)/,a=function(b,v){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},o=function(b,v){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},s=typeof window=="object"&&window.DOMParser;if(typeof s=="function"){var c=new s,u="text/html";o=function(b,v){return v&&(b="<".concat(v,">").concat(b,"</").concat(v,">")),c.parseFromString(b,u)},a=o}if(typeof document=="object"&&document.implementation){var d=document.implementation.createHTMLDocument();a=function(b,v){if(v){var x=d.documentElement.querySelector(v);return x&&(x.innerHTML=b),d}return d.documentElement.innerHTML=b,d}}var h=typeof document=="object"&&document.createElement("template"),m;h&&h.content&&(m=function(b){return h.innerHTML=b,h.content.childNodes});var p=function(){return document.createDocumentFragment().childNodes};function y(b){var v,x,_,T,C,w;b=(0,t.escapeSpecialCharacters)(b);var A=i.exec(b),k=(v=A==null?void 0:A[1])===null||v===void 0?void 0:v.toLowerCase();switch(k){case e:{var R=o(b);if(!(0,t.hasOpenTag)(b,n)){var I=R.querySelector(n);(x=I==null?void 0:I.parentNode)===null||x===void 0||x.removeChild(I)}if(!(0,t.hasOpenTag)(b,r)){var I=R.querySelector(r);(_=I==null?void 0:I.parentNode)===null||_===void 0||_.removeChild(I)}return R.querySelectorAll(e)}case n:case r:{var U=a(b).querySelectorAll(k);return(0,t.hasOpenTag)(b,r)&&(0,t.hasOpenTag)(b,n)?(C=(T=U[0].parentNode)===null||T===void 0?void 0:T.childNodes)!==null&&C!==void 0?C:p():U}default:{if(m)return m(b);var I=a(b,r).querySelector(r);return(w=I==null?void 0:I.childNodes)!==null&&w!==void 0?w:p()}}}return Ou}var N5;function LR(){if(N5)return Qo;N5=1;var t=Qo&&Qo.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.default=i;var e=t(MR()),n=O5(),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=r.exec(a),s=o?o[1]:void 0;return(0,n.formatDOM)((0,e.default)(a),null,s)}return Qo}var Ru={},Vr={},Il={},P5;function FR(){if(P5)return Il;P5=1;var t=0;Il.SAME=t;var e=1;return Il.CAMELCASE=e,Il.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},Il}var I5;function jR(){if(I5)return Vr;I5=1;const t=0,e=1,n=2,r=3,i=4,a=5,o=6;function s(w){return u.hasOwnProperty(w)?u[w]:null}function c(w,A,k,R,I,U,D){this.acceptsBooleans=A===n||A===r||A===i,this.attributeName=R,this.attributeNamespace=I,this.mustUseProperty=k,this.propertyName=w,this.type=A,this.sanitizeURL=U,this.removeEmptyString=D}const u={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(w=>{u[w]=new c(w,t,!1,w,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([w,A])=>{u[w]=new c(w,e,!1,A,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(w=>{u[w]=new c(w,n,!1,w.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(w=>{u[w]=new c(w,n,!1,w,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(w=>{u[w]=new c(w,r,!1,w.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(w=>{u[w]=new c(w,r,!0,w,null,!1,!1)}),["capture","download"].forEach(w=>{u[w]=new c(w,i,!1,w,null,!1,!1)}),["cols","rows","size","span"].forEach(w=>{u[w]=new c(w,o,!1,w,null,!1,!1)}),["rowSpan","start"].forEach(w=>{u[w]=new c(w,a,!1,w.toLowerCase(),null,!1,!1)});const h=/[\-\:]([a-z])/g,m=w=>w[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(w=>{const A=w.replace(h,m);u[A]=new c(A,e,!1,w,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(w=>{const A=w.replace(h,m);u[A]=new c(A,e,!1,w,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(w=>{const A=w.replace(h,m);u[A]=new c(A,e,!1,w,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(w=>{u[w]=new c(w,e,!1,w.toLowerCase(),null,!1,!1)});const p="xlinkHref";u[p]=new c("xlinkHref",e,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(w=>{u[w]=new c(w,e,!1,w.toLowerCase(),null,!0,!0)});const{CAMELCASE:y,SAME:b,possibleStandardNames:v}=FR(),_=":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",T=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+_+"]*$")),C=Object.keys(v).reduce((w,A)=>{const k=v[A];return k===b?w[A]=A:k===y?w[A.toLowerCase()]=A:w[A]=k,w},{});return Vr.BOOLEAN=r,Vr.BOOLEANISH_STRING=n,Vr.NUMERIC=a,Vr.OVERLOADED_BOOLEAN=i,Vr.POSITIVE_NUMERIC=o,Vr.RESERVED=t,Vr.STRING=e,Vr.getPropertyInfo=s,Vr.isCustomAttribute=T,Vr.possibleStandardNames=C,Vr}var Ml={},qo={},Um,M5;function DR(){if(M5)return Um;M5=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,c=`
100
- `,u="/",d="*",h="",m="comment",p="declaration";function y(v,x){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];x=x||{};var _=1,T=1;function C(j){var F=j.match(e);F&&(_+=F.length);var V=j.lastIndexOf(c);T=~V?j.length-V:T+j.length}function w(){var j={line:_,column:T};return function(F){return F.position=new A(j),I(),F}}function A(j){this.start=j,this.end={line:_,column:T},this.source=x.source}A.prototype.content=v;function k(j){var F=new Error(x.source+":"+_+":"+T+": "+j);if(F.reason=j,F.filename=x.source,F.line=_,F.column=T,F.source=v,!x.silent)throw F}function R(j){var F=j.exec(v);if(F){var V=F[0];return C(V),v=v.slice(V.length),F}}function I(){R(n)}function U(j){var F;for(j=j||[];F=D();)F!==!1&&j.push(F);return j}function D(){var j=w();if(!(u!=v.charAt(0)||d!=v.charAt(1))){for(var F=2;h!=v.charAt(F)&&(d!=v.charAt(F)||u!=v.charAt(F+1));)++F;if(F+=2,h===v.charAt(F-1))return k("End of comment missing");var V=v.slice(2,F-2);return T+=2,C(V),v=v.slice(F),T+=2,j({type:m,comment:V})}}function z(){var j=w(),F=R(r);if(F){if(D(),!R(i))return k("property missing ':'");var V=R(a),G=j({type:p,property:b(F[0].replace(t,h)),value:V?b(V[0].replace(t,h)):h});return R(o),G}}function Y(){var j=[];U(j);for(var F;F=z();)F!==!1&&(j.push(F),U(j));return j}return I(),Y()}function b(v){return v?v.replace(s,h):h}return Um=y,Um}var L5;function VR(){if(L5)return qo;L5=1;var t=qo&&qo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(qo,"__esModule",{value:!0}),qo.default=n;const e=t(DR());function n(r,i){let a=null;if(!r||typeof r!="string")return a;const o=(0,e.default)(r),s=typeof i=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:d}=c;s?i(u,d,c):d&&(a=a||{},a[u]=d)}),a}return qo}var Ll={},F5;function UR(){if(F5)return Ll;F5=1,Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(u){return!u||n.test(u)||t.test(u)},o=function(u,d){return d.toUpperCase()},s=function(u,d){return"".concat(d,"-")},c=function(u,d){return d===void 0&&(d={}),a(u)?u:(u=u.toLowerCase(),d.reactCompat?u=u.replace(i,s):u=u.replace(r,s),u.replace(e,o))};return Ll.camelCase=c,Ll}var Fl,j5;function BR(){if(j5)return Fl;j5=1;var t=Fl&&Fl.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},e=t(VR()),n=UR();function r(i,a){var o={};return!i||typeof i!="string"||(0,e.default)(i,function(s,c){s&&c&&(o[(0,n.camelCase)(s,a)]=c)}),o}return r.default=r,Fl=r,Fl}var D5;function V5(){return D5||(D5=1,(function(t){var e=Ml&&Ml.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=a,t.setStyleProp=s;var n=N,r=e(BR()),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 s(d,h){if(typeof d=="string"){if(!d.trim()){h.style={};return}try{h.style=(0,r.default)(d,o)}catch{h.style={}}}}t.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var c=function(d){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(d.name)};t.canTextBeChildOfNode=c;var u=function(d){return d};t.returnFirstArg=u})(Ml)),Ml}var U5;function B5(){if(U5)return Ru;U5=1,Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.default=a;var t=jR(),e=V5(),n=["checked","value"],r=["input","select","textarea"],i={reset:!0,submit:!0};function a(s,c){s===void 0&&(s={});var u={},d=!!(s.type&&i[s.type]);for(var h in s){var m=s[h];if((0,t.isCustomAttribute)(h)){u[h]=m;continue}var p=h.toLowerCase(),y=o(p);if(y){var b=(0,t.getPropertyInfo)(y);switch(n.includes(y)&&r.includes(c)&&!d&&(y=o("default"+p)),u[y]=m,b==null?void 0:b.type){case t.BOOLEAN:u[y]=!0;break;case t.OVERLOADED_BOOLEAN:m===""&&(u[y]=!0);break}continue}e.PRESERVE_CUSTOM_ATTRIBUTES&&(u[h]=m)}return(0,e.setStyleProp)(s.style,u),u}function o(s){return t.possibleStandardNames[s]}return Ru}var Jo={},z5;function zR(){if(z5)return Jo;z5=1;var t=Jo&&Jo.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.default=a;var e=N,n=t(B5()),r=V5(),i={cloneElement:e.cloneElement,createElement:e.createElement,isValidElement:e.isValidElement};function a(s,c){var u,d,h,m,p;c===void 0&&(c={});for(var y=[],b=typeof c.replace=="function",v=(u=c.transform)!==null&&u!==void 0?u:r.returnFirstArg,x=(d=c.library)!==null&&d!==void 0?d:i,_=x.cloneElement,T=x.createElement,C=x.isValidElement,w=s.length,A=0;A<w;A++){var k=s[A];if(b){var R=(h=c.replace)===null||h===void 0?void 0:h.call(c,k,A);if(C(R)){w>1&&(R=_(R,{key:(m=R.key)!==null&&m!==void 0?m:A})),y.push(v(R,k,A));continue}}if(k.type==="text"){var I=!k.data.trim().length;if(I&&k.parent&&!(0,r.canTextBeChildOfNode)(k.parent)||c.trim&&I)continue;y.push(v(k.data,k,A));continue}var U=k,D={};o(U)?((0,r.setStyleProp)(U.attribs.style,U.attribs),D=U.attribs):U.attribs&&(D=(0,n.default)(U.attribs,U.name));var z=void 0;switch(k.type){case"script":case"style":k.children[0]&&(D.dangerouslySetInnerHTML={__html:k.children[0].data});break;case"tag":k.name==="textarea"&&k.children[0]?D.defaultValue=k.children[0].data:!((p=k.children)===null||p===void 0)&&p.length&&(z=a(k.children,c));break;default:continue}w>1&&(D.key=A),y.push(v(T(k.name,D,z),k,A))}return y.length===1?y[0]:y}function o(s){return r.PRESERVE_CUSTOM_ATTRIBUTES&&s.type==="tag"&&(0,r.isCustomComponent)(s.name,s.attribs)}return Jo}var H5;function HR(){return H5||(H5=1,(function(t){var e=Pl&&Pl.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=s;var n=e(LR());t.htmlToDOM=n.default;var r=e(B5());t.attributesToProps=r.default;var i=e(zR());t.domToReact=i.default;var a=A5();Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var o={lowerCaseAttributeNames:!1};function s(c,u){var d;if(typeof c!="string")throw new TypeError("First argument must be a string");return c?(0,i.default)((0,n.default)(c,(d=u==null?void 0:u.htmlparser2)!==null&&d!==void 0?d:o),u):[]}})(Pl)),Pl}var WR=HR();const W5=Qa(WR),jl=W5.default||W5,GR=({articlesData:t,setArticleId:e,setSearchedText:n,setArticlesData:r})=>S.jsxs("div",{children:[S.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:[Ne.size(t)," articles"]}),S.jsx("div",{className:"ed-mt-4 ed-space-y-4",children:t==null?void 0:t.map(i=>S.jsxs("button",{type:"button",className:"ed-article-row-button 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-text-left",onClick:()=>{e(i==null?void 0:i.id),n(""),r([])},children:[S.jsx("p",{className:"ed-article-title ed-text-border-dark ed-text-14 ed-font-medium ed-flex-1 ed-duration-500 ed-ease-in-out ed-transition-all",children:jl((i==null?void 0:i.title)||"")}),S.jsx("div",{className:"ed-chevron-wrapper ed-size-4 ed--translate-x-2 ed-opacity-0 ed-duration-300 ed-transition-all",children:S.jsx(Zi,{className:"ed-text-border ed-size-4"})})]},i==null?void 0:i.id))})]});for(var ro=256,G5=[],Y5=256,Nu;ro--;)G5[ro]=(ro+256).toString(16).substring(1);function Bm(t){var e=0,n=11;if(!Nu||ro+n>Y5*2)for(Nu="",ro=0;e<Y5;e++)Nu+=G5[Math.random()*256|0];return Nu.substring(ro,ro+++n)}const YR=(t,e,n)=>{const r=t[e];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: "+e+(e.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},We=t=>typeof t=="string",Dl=()=>{let t,e;const n=new Promise((r,i)=>{t=r,e=i});return n.resolve=t,n.reject=e,n},K5=t=>t==null?"":""+t,KR=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},ZR=/###/g,Z5=t=>t&&t.indexOf("###")>-1?t.replace(ZR,"."):t,Q5=t=>!t||We(t),Vl=(t,e,n)=>{const r=We(e)?e.split("."):e;let i=0;for(;i<r.length-1;){if(Q5(t))return{};const a=Z5(r[i]);!t[a]&&n&&(t[a]=new n),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={},++i}return Q5(t)?{}:{obj:t,k:Z5(r[i])}},q5=(t,e,n)=>{const{obj:r,k:i}=Vl(t,e,Object);if(r!==void 0||e.length===1){r[i]=n;return}let a=e[e.length-1],o=e.slice(0,e.length-1),s=Vl(t,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Vl(t,o,Object),s&&s.obj&&typeof s.obj[`${s.k}.${a}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},QR=(t,e,n,r)=>{const{obj:i,k:a}=Vl(t,e,Object);i[a]=i[a]||[],i[a].push(n)},Pu=(t,e)=>{const{obj:n,k:r}=Vl(t,e);if(n)return n[r]},qR=(t,e,n)=>{const r=Pu(t,n);return r!==void 0?r:Pu(e,n)},J5=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?We(t[r])||t[r]instanceof String||We(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):J5(t[r],e[r],n):t[r]=e[r]);return t},Xo=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var JR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const XR=t=>We(t)?t.replace(/[&<>"'\/]/g,e=>JR[e]):t;class $R{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const eN=[" ",",","?","!",";"],tN=new $R(20),nN=(t,e,n)=>{e=e||"",n=n||"";const r=eN.filter(o=>e.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=tN.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!i.test(t);if(!a){const o=t.indexOf(n);o>0&&!i.test(t.substring(0,o))&&(a=!0)}return a},zm=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const r=e.split(n);let i=t;for(let a=0;a<r.length;){if(!i||typeof i!="object")return;let o,s="";for(let c=a;c<r.length;++c)if(c!==a&&(s+=n),s+=r[c],o=i[s],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&c<r.length-1)continue;a+=c-a+1;break}i=o}return i},Iu=t=>t&&t.replace("_","-"),rN={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class Mu{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||rN,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,i){return i&&!this.debug?null:(We(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new Mu(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Mu(this.logger,e)}}var Ai=new Mu;class Lu{constructor(){this.observers={}}on(e,n){return e.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(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){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[e]&&Array.from(this.observers[e].entries()).forEach(o=>{let[s,c]=o;for(let u=0;u<c;u++)s(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[s,c]=o;for(let u=0;u<c;u++)s.apply(s,[e,...r])})}}class X5 extends Lu{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,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 s;e.indexOf(".")>-1?s=e.split("."):(s=[e,n],r&&(Array.isArray(r)?s.push(...r):We(r)&&a?s.push(...r.split(a)):s.push(r)));const c=Pu(this.data,s);return!c&&!n&&!r&&e.indexOf(".")>-1&&(e=s[0],n=s[1],r=s.slice(2).join(".")),c||!o||!We(r)?c:zm(this.data&&this.data[e]&&this.data[e][n],r,a)}addResource(e,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 s=[e,n];r&&(s=s.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(s=e.split("."),i=n,n=s[1]),this.addNamespaces(n),q5(this.data,s,i),a.silent||this.emit("added",e,n,r,i)}addResources(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in r)(We(r[a])||Array.isArray(r[a]))&&this.addResource(e,n,a,r[a],{silent:!0});i.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[e,n];e.indexOf(".")>-1&&(s=e.split("."),i=r,r=n,n=s[1]),this.addNamespaces(n);let c=Pu(this.data,s)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?J5(c,r,a):c={...c,...r},q5(this.data,s,c),o.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var $5={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,i){return t.forEach(a=>{this.processors[a]&&(e=this.processors[a].process(e,n,r,i))}),e}};const ew={};class Fu extends Lu{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),KR(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ai.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const r=this.resolve(e,n);return r&&r.res!==void 0}extractFromKey(e,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&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!nN(e,r,i);if(o&&!s){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:We(a)?[a]:a};const u=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),e=u.join(i)}return{key:e,namespaces:We(a)?[a]:a}}translate(e,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(e[e.length-1],n),c=s[s.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const C=n.nsSeparator||this.options.nsSeparator;return i?{res:`${c}${C}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${C}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:o}const h=this.resolve(e,n);let m=h&&h.res;const p=h&&h.usedKey||o,y=h&&h.exactUsedKey||o,b=Object.prototype.toString.apply(m),v=["[object Number]","[object Function]","[object RegExp]"],x=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,T=!We(m)&&typeof m!="boolean"&&typeof m!="number";if(_&&m&&T&&v.indexOf(b)<0&&!(We(x)&&Array.isArray(m))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const C=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,m,{...n,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(h.res=C,h.usedParams=this.getUsedParamsDetails(n),h):C}if(a){const C=Array.isArray(m),w=C?[]:{},A=C?y:p;for(const k in m)if(Object.prototype.hasOwnProperty.call(m,k)){const R=`${A}${a}${k}`;w[k]=this.translate(R,{...n,joinArrays:!1,ns:s}),w[k]===R&&(w[k]=m[k])}m=w}}else if(_&&We(x)&&Array.isArray(m))m=m.join(x),m&&(m=this.extendTranslation(m,e,n,r));else{let C=!1,w=!1;const A=n.count!==void 0&&!We(n.count),k=Fu.hasDefaultValue(n),R=A?this.pluralResolver.getSuffix(u,n.count,n):"",I=n.ordinal&&A?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",U=A&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),D=U&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${I}`]||n.defaultValue;!this.isValidLookup(m)&&k&&(C=!0,m=D),this.isValidLookup(m)||(w=!0,m=o);const Y=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&w?void 0:m,j=k&&D!==m&&this.options.updateMissing;if(w||C||j){if(this.logger.log(j?"updateKey":"missingKey",u,c,o,j?D:m),a){const B=this.resolve(o,{...n,keySeparator:!1});B&&B.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 F=[];const V=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&V&&V[0])for(let B=0;B<V.length;B++)F.push(V[B]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(n.lng||this.language):F.push(n.lng||this.language);const G=(B,q,W)=>{const K=k&&W!==m?W:Y;this.options.missingKeyHandler?this.options.missingKeyHandler(B,c,q,K,j,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(B,c,q,K,j,n),this.emit("missingKey",B,c,q,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?F.forEach(B=>{const q=this.pluralResolver.getSuffixes(B,n);U&&n[`defaultValue${this.options.pluralSeparator}zero`]&&q.indexOf(`${this.options.pluralSeparator}zero`)<0&&q.push(`${this.options.pluralSeparator}zero`),q.forEach(W=>{G([B],o+W,n[`defaultValue${W}`]||D)})}):G(F,o,D))}m=this.extendTranslation(m,e,n,h,r),w&&m===o&&this.options.appendNamespaceToMissingKey&&(m=`${c}:${o}`),(w||C)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${o}`:o,C?m:void 0):m=this.options.parseMissingKeyHandler(m))}return i?(h.res=m,h.usedParams=this.getUsedParamsDetails(n),h):m}extendTranslation(e,n,r,i,a){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...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 u=We(e)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const m=e.match(this.interpolator.nestingRegexp);d=m&&m.length}let h=r.replace&&!We(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),e=this.interpolator.interpolate(e,h,r.lng||this.language||i.usedLng,r),u){const m=e.match(this.interpolator.nestingRegexp),p=m&&m.length;d<p&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var m=arguments.length,p=new Array(m),y=0;y<m;y++)p[y]=arguments[y];return a&&a[0]===p[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):o.translate(...p,n)},r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,c=We(s)?[s]:s;return e!=null&&c&&c.length&&r.applyPostProcessor!==!1&&(e=$5.handle(c,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,a,o,s;return We(e)&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(c,n),d=u.key;i=d;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const m=n.count!==void 0&&!We(n.count),p=m&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),y=n.context!==void 0&&(We(n.context)||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(v=>{this.isValidLookup(r)||(s=v,!ew[`${b[0]}-${v}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(ew[`${b[0]}-${v}`]=!0,this.logger.warn(`key "${i}" for languages "${b.join(", ")}" won't get resolved as namespace "${s}" 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!!!")),b.forEach(x=>{if(this.isValidLookup(r))return;o=x;const _=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(_,d,x,v,n);else{let C;m&&(C=this.pluralResolver.getSuffix(x,n.count,n));const w=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(_.push(d+C),n.ordinal&&C.indexOf(A)===0&&_.push(d+C.replace(A,this.options.pluralSeparator)),p&&_.push(d+w)),y){const k=`${d}${this.options.contextSeparator}${n.context}`;_.push(k),m&&(_.push(k+C),n.ordinal&&C.indexOf(A)===0&&_.push(k+C.replace(A,this.options.pluralSeparator)),p&&_.push(k+w))}}let T;for(;T=_.pop();)this.isValidLookup(r)||(a=T,r=this.getResource(x,v,T,n))}))})}),{res:r,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:s}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,r,i):this.resourceStore.getResource(e,n,r,i)}getUsedParamsDetails(){let e=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=e.replace&&!We(e.replace);let i=r?e.replace:e;if(r&&typeof e.count<"u"&&(i.count=e.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(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}const Hm=t=>t.charAt(0).toUpperCase()+t.slice(1);class tw{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ai.create("languageUtils")}getScriptPartFromCode(e){if(e=Iu(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Iu(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(We(e)&&e.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(e)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.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]=Hm(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]=Hm(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Hm(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&e.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(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),We(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],a=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return We(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):We(e)&&a(this.formatLanguageCode(e)),r.forEach(o=>{i.indexOf(o)<0&&a(this.formatLanguageCode(o))}),i}}let iN=[{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}],aN={1:t=>+(t>1),2:t=>+(t!=1),3:t=>0,4:t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,5:t=>t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5,6:t=>t==1?0:t>=2&&t<=4?1:2,7:t=>t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,8:t=>t==1?0:t==2?1:t!=8&&t!=11?2:3,9:t=>+(t>=2),10:t=>t==1?0:t==2?1:t<7?2:t<11?3:4,11:t=>t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3,12:t=>+(t%10!=1||t%100==11),13:t=>+(t!==0),14:t=>t==1?0:t==2?1:t==3?2:3,15:t=>t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2,16:t=>t%10==1&&t%100!=11?0:t!==0?1:2,17:t=>t==1||t%10==1&&t%100!=11?0:1,18:t=>t==0?0:t==1?1:2,19:t=>t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3,20:t=>t==1?0:t==0||t%100>0&&t%100<20?1:2,21:t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0,22:t=>t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3};const oN=["v1","v2","v3"],sN=["v4"],nw={zero:0,one:1,two:2,few:3,many:4,other:5},lN=()=>{const t={};return iN.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:aN[e.fc]}})}),t};class cN{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Ai.create("pluralResolver"),(!this.options.compatibilityJSON||sN.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=lN(),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=Iu(e==="dev"?"en":e),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(!e.match(/-|_/))return;const c=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(c,n)}return this.pluralRulesCache[a]=o,o}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(i=>`${n}${i}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,a)=>nw[i]-nw[a]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(e,i,n)):[]}getSuffix(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(e,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: ${e}`),"")}getSuffixRetroCompatible(e,n){const r=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let i=e.numbers[r];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.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&&e.numbers.length===2&&e.numbers[0]===1?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!oN.includes(this.options.compatibilityJSON)}}const rw=function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=qR(t,e,n);return!a&&i&&We(n)&&(a=zm(t,n,r),a===void 0&&(a=zm(e,n,r))),a},Wm=t=>t.replace(/\$/g,"$$$$");class uN{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ai.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:a,prefixEscaped:o,suffix:s,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:h,nestingPrefix:m,nestingPrefixEscaped:p,nestingSuffix:y,nestingSuffixEscaped:b,nestingOptionsSeparator:v,maxReplaces:x,alwaysFormat:_}=e.interpolation;this.escape=n!==void 0?n:XR,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?Xo(a):o||"{{",this.suffix=s?Xo(s):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=m?Xo(m):p||Xo("$t("),this.nestingSuffix=y?Xo(y):b||Xo(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=x||1e3,this.alwaysFormat=_!==void 0?_:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,r,i){let a,o,s;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=p=>{if(p.indexOf(this.formatSeparator)<0){const x=rw(n,c,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,r,{...i,...n,interpolationkey:p}):x}const y=p.split(this.formatSeparator),b=y.shift().trim(),v=y.join(this.formatSeparator).trim();return this.format(rw(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure),v,r,{...i,...n,interpolationkey:b})};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:p=>Wm(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?Wm(this.escape(p)):Wm(p)}].forEach(p=>{for(s=0;a=p.regex.exec(e);){const y=a[1].trim();if(o=u(y),o===void 0)if(typeof d=="function"){const v=d(e,a,i);o=We(v)?v:""}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 ${e}`),o="";else!We(o)&&!this.useRawValueToEscape&&(o=K5(o));const b=p.safeValue(o);if(e=e.replace(a[0],b),h?(p.regex.lastIndex+=o.length,p.regex.lastIndex-=a[0].length):p.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,o;const s=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const h=c.split(new RegExp(`${d}[ ]*{`));let m=`{${h[1]}`;c=h[0],m=this.interpolate(m,o);const p=m.match(/'/g),y=m.match(/"/g);(p&&p.length%2===0&&!y||y.length%2!==0)&&(m=m.replace(/'/g,'"'));try{o=JSON.parse(m),u&&(o={...u,...o})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,b),`${c}${d}${m}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,c};for(;i=this.nestingRegexp.exec(e);){let c=[];o={...r},o=o.replace&&!We(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!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(),c=d,u=!0}if(a=n(s.call(this,i[1].trim(),o),o),a&&i[0]===e&&!We(a))return a;We(a)||(a=K5(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),a=""),u&&(a=c.reduce((d,h)=>this.format(d,h,r.lng,{...r,interpolationkey:i[1].trim()}),a.trim())),e=e.replace(i[0],a),this.regexp.lastIndex=0}return e}}const fN=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);e==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(o){const[s,...c]=o.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=s.trim();n[d]||(n[d]=u),u==="false"&&(n[d]=!1),u==="true"&&(n[d]=!0),isNaN(u)||(n[d]=parseInt(u,10))}})}return{formatName:e,formatOptions:n}},$o=t=>{const e={};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 s=e[o];return s||(s=t(Iu(r),i),e[o]=s),s(n)}};class dN{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ai.create("formatter"),this.options=e,this.formats={number:$o((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return a=>i.format(a)}),currency:$o((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return a=>i.format(a)}),datetime:$o((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return a=>i.format(a)}),relativetime:$o((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return a=>i.format(a,r.range||"day")}),list:$o((n,r)=>{const i=new Intl.ListFormat(n,{...r});return a=>i.format(a)})},this.init(e)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=$o(n)}format(e,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(s=>s.indexOf(")")>-1)){const s=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,s)].join(this.formatSeparator)}return a.reduce((s,c)=>{const{formatName:u,formatOptions:d}=fN(c);if(this.formats[u]){let h=s;try{const m=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},p=m.locale||m.lng||i.locale||i.lng||r;h=this.formats[u](s,p,{...d,...i,...m})}catch(m){this.logger.warn(m)}return h}else this.logger.warn(`there was no format function for ${u}`);return s},e)}}const hN=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class pN extends Lu{constructor(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Ai.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(e,n,r,i){const a={},o={},s={},c={};return e.forEach(u=>{let d=!0;n.forEach(h=>{const m=`${u}|${h}`;!r.reload&&this.store.hasResourceBundle(u,h)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?o[m]===void 0&&(o[m]=!0):(this.state[m]=1,d=!1,o[m]===void 0&&(o[m]=!0),a[m]===void 0&&(a[m]=!0),c[h]===void 0&&(c[h]=!0)))}),d||(s[u]=!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(s),toLoadNamespaces:Object.keys(c)}}loaded(e,n,r){const i=e.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[e]=n?-1:2,n&&r&&(this.state[e]=0);const s={};this.queue.forEach(c=>{QR(c.loaded,[a],o),hN(c,e),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{s[u]||(s[u]={});const d=c.loaded[u];d.length&&d.forEach(h=>{s[u][h]===void 0&&(s[u][h]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(c=>!c.done)}read(e,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(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:i,wait:a,callback:o});return}this.readingCalls++;const s=(u,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(u&&d&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,i+1,a*2,o)},a);return}o(u,d)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const u=c(e,n);u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}return}return c(e,n,s)}prepareLoading(e,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();We(e)&&(e=this.languageUtils.toResolveHierarchy(e)),We(n)&&(n=[n]);const a=this.queueLoad(e,n,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),i=r[0],a=r[1];this.read(i,a,"read",void 0,void 0,(o,s)=>{o&&this.logger.warn(`${n}loading namespace ${a} for language ${i} failed`,o),!o&&s&&this.logger.log(`${n}loaded namespace ${a} for language ${i}`,s),this.loaded(e,o,s)})}saveMissing(e,n,r,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=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 c={...o,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(e,n,r,i,c):d=u(e,n,r,i),d&&typeof d.then=="function"?d.then(h=>s(null,h)).catch(s):s(null,d)}catch(d){s(d)}else u(e,n,r,i,s,c)}!e||!e[0]||this.store.addResource(e[0],n,r,i)}}}const iw=()=>({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:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),We(t[1])&&(e.defaultValue=t[1]),We(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),aw=t=>(We(t.ns)&&(t.ns=[t.ns]),We(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),We(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),ju=()=>{},mN=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class Ul extends Lu{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=aw(e),this.services={},this.logger=Ai,this.modules={external:[]},mN(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=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&&(We(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=iw();this.options={...i,...this.options,...aw(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?Ai.init(a(this.modules.logger),this.options):Ai.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=dN);const h=new tw(this.options);this.store=new X5(this.options.resources,this.options);const m=this.services;m.logger=Ai,m.resourceStore=this.store,m.languageUtils=h,m.pluralResolver=new cN(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)&&(m.formatter=a(d),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new uN(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new pN(a(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(p){for(var y=arguments.length,b=new Array(y>1?y-1:0),v=1;v<y;v++)b[v-1]=arguments[v];e.emit(p,...b)}),this.modules.languageDetector&&(m.languageDetector=a(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=a(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new Fu(this.services,this.options),this.translator.on("*",function(p){for(var y=arguments.length,b=new Array(y>1?y-1:0),v=1;v<y;v++)b[v-1]=arguments[v];e.emit(p,...b)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=ju),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 e.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return e.store[d](...arguments),e}});const c=Dl(),u=()=>{const d=(h,m)=>{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),c.resolve(m),r(h,m)};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?u():setTimeout(u,0),c}loadResources(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ju;const i=We(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],o=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>o(c)),this.options.preload&&this.options.preload.forEach(s=>o(s)),this.services.backendConnector.load(a,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(e,n,r){const i=Dl();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=ju),this.services.backendConnector.reload(e,n,a=>{i.resolve(),r(a)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&$5.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-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(e,n){var r=this;this.isLanguageChangingTo=e;const i=Dl();this.emit("languageChanging",e);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},o=(c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},s=c=>{!e&&!c&&this.services.languageDetector&&(c=[]);const u=We(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{o(d,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e),i}getFixedT(e,n,r){var i=this;const a=function(o,s){let c;if(typeof s!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),h=2;h<u;h++)d[h-2]=arguments[h];c=i.options.overloadTranslationOptionHandler([o,s].concat(d))}else c={...s};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||a.keyPrefix);const m=i.options.keySeparator||".";let p;return c.keyPrefix&&Array.isArray(o)?p=o.map(y=>`${c.keyPrefix}${m}${y}`):p=c.keyPrefix?`${c.keyPrefix}${m}${o}`:o,i.t(p,c)};return We(e)?a.lng=e:a.lngs=e,a.ns=n,a.keyPrefix=r,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){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=(s,c)=>{const u=this.services.backendConnector.state[`${s}|${c}`];return u===-1||u===0||u===2};if(n.precheck){const s=n.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))}loadNamespaces(e,n){const r=Dl();return this.options.ns?(We(e)&&(e=[e]),e.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(e,n){const r=Dl();We(e)&&(e=[e]);const i=this.options.preload||[],a=e.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(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)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 tw(iw());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Ul(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ju;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},a=new Ul(i);return(e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(s=>{a[s]=this[s]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new X5(this.store.data,i),a.services.resourceStore=a.store),a.translator=new Fu(a.services,i),a.translator.on("*",function(s){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];a.emit(s,...u)}),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 Bn=Ul.createInstance();Bn.createInstance=Ul.createInstance,Bn.createInstance,Bn.dir,Bn.init,Bn.loadResources,Bn.reloadResources,Bn.use,Bn.changeLanguage,Bn.getFixedT,Bn.t,Bn.exists,Bn.setDefaultNamespace,Bn.hasLoadedNamespace,Bn.loadNamespaces,Bn.loadLanguages;var Du={};/*!
100
+ `,u="/",d="*",h="",m="comment",p="declaration";function y(v,x){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];x=x||{};var _=1,T=1;function C(j){var F=j.match(e);F&&(_+=F.length);var V=j.lastIndexOf(c);T=~V?j.length-V:T+j.length}function w(){var j={line:_,column:T};return function(F){return F.position=new A(j),I(),F}}function A(j){this.start=j,this.end={line:_,column:T},this.source=x.source}A.prototype.content=v;function k(j){var F=new Error(x.source+":"+_+":"+T+": "+j);if(F.reason=j,F.filename=x.source,F.line=_,F.column=T,F.source=v,!x.silent)throw F}function R(j){var F=j.exec(v);if(F){var V=F[0];return C(V),v=v.slice(V.length),F}}function I(){R(n)}function U(j){var F;for(j=j||[];F=D();)F!==!1&&j.push(F);return j}function D(){var j=w();if(!(u!=v.charAt(0)||d!=v.charAt(1))){for(var F=2;h!=v.charAt(F)&&(d!=v.charAt(F)||u!=v.charAt(F+1));)++F;if(F+=2,h===v.charAt(F-1))return k("End of comment missing");var V=v.slice(2,F-2);return T+=2,C(V),v=v.slice(F),T+=2,j({type:m,comment:V})}}function z(){var j=w(),F=R(r);if(F){if(D(),!R(i))return k("property missing ':'");var V=R(a),G=j({type:p,property:b(F[0].replace(t,h)),value:V?b(V[0].replace(t,h)):h});return R(o),G}}function Y(){var j=[];U(j);for(var F;F=z();)F!==!1&&(j.push(F),U(j));return j}return I(),Y()}function b(v){return v?v.replace(s,h):h}return Um=y,Um}var L5;function VR(){if(L5)return qo;L5=1;var t=qo&&qo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(qo,"__esModule",{value:!0}),qo.default=n;const e=t(DR());function n(r,i){let a=null;if(!r||typeof r!="string")return a;const o=(0,e.default)(r),s=typeof i=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:d}=c;s?i(u,d,c):d&&(a=a||{},a[u]=d)}),a}return qo}var Ll={},F5;function UR(){if(F5)return Ll;F5=1,Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(u){return!u||n.test(u)||t.test(u)},o=function(u,d){return d.toUpperCase()},s=function(u,d){return"".concat(d,"-")},c=function(u,d){return d===void 0&&(d={}),a(u)?u:(u=u.toLowerCase(),d.reactCompat?u=u.replace(i,s):u=u.replace(r,s),u.replace(e,o))};return Ll.camelCase=c,Ll}var Fl,j5;function BR(){if(j5)return Fl;j5=1;var t=Fl&&Fl.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},e=t(VR()),n=UR();function r(i,a){var o={};return!i||typeof i!="string"||(0,e.default)(i,function(s,c){s&&c&&(o[(0,n.camelCase)(s,a)]=c)}),o}return r.default=r,Fl=r,Fl}var D5;function V5(){return D5||(D5=1,(function(t){var e=Ml&&Ml.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=a,t.setStyleProp=s;var n=N,r=e(BR()),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 s(d,h){if(typeof d=="string"){if(!d.trim()){h.style={};return}try{h.style=(0,r.default)(d,o)}catch{h.style={}}}}t.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var c=function(d){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(d.name)};t.canTextBeChildOfNode=c;var u=function(d){return d};t.returnFirstArg=u})(Ml)),Ml}var U5;function B5(){if(U5)return Ru;U5=1,Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.default=a;var t=jR(),e=V5(),n=["checked","value"],r=["input","select","textarea"],i={reset:!0,submit:!0};function a(s,c){s===void 0&&(s={});var u={},d=!!(s.type&&i[s.type]);for(var h in s){var m=s[h];if((0,t.isCustomAttribute)(h)){u[h]=m;continue}var p=h.toLowerCase(),y=o(p);if(y){var b=(0,t.getPropertyInfo)(y);switch(n.includes(y)&&r.includes(c)&&!d&&(y=o("default"+p)),u[y]=m,b==null?void 0:b.type){case t.BOOLEAN:u[y]=!0;break;case t.OVERLOADED_BOOLEAN:m===""&&(u[y]=!0);break}continue}e.PRESERVE_CUSTOM_ATTRIBUTES&&(u[h]=m)}return(0,e.setStyleProp)(s.style,u),u}function o(s){return t.possibleStandardNames[s]}return Ru}var Jo={},z5;function zR(){if(z5)return Jo;z5=1;var t=Jo&&Jo.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.default=a;var e=N,n=t(B5()),r=V5(),i={cloneElement:e.cloneElement,createElement:e.createElement,isValidElement:e.isValidElement};function a(s,c){var u,d,h,m,p;c===void 0&&(c={});for(var y=[],b=typeof c.replace=="function",v=(u=c.transform)!==null&&u!==void 0?u:r.returnFirstArg,x=(d=c.library)!==null&&d!==void 0?d:i,_=x.cloneElement,T=x.createElement,C=x.isValidElement,w=s.length,A=0;A<w;A++){var k=s[A];if(b){var R=(h=c.replace)===null||h===void 0?void 0:h.call(c,k,A);if(C(R)){w>1&&(R=_(R,{key:(m=R.key)!==null&&m!==void 0?m:A})),y.push(v(R,k,A));continue}}if(k.type==="text"){var I=!k.data.trim().length;if(I&&k.parent&&!(0,r.canTextBeChildOfNode)(k.parent)||c.trim&&I)continue;y.push(v(k.data,k,A));continue}var U=k,D={};o(U)?((0,r.setStyleProp)(U.attribs.style,U.attribs),D=U.attribs):U.attribs&&(D=(0,n.default)(U.attribs,U.name));var z=void 0;switch(k.type){case"script":case"style":k.children[0]&&(D.dangerouslySetInnerHTML={__html:k.children[0].data});break;case"tag":k.name==="textarea"&&k.children[0]?D.defaultValue=k.children[0].data:!((p=k.children)===null||p===void 0)&&p.length&&(z=a(k.children,c));break;default:continue}w>1&&(D.key=A),y.push(v(T(k.name,D,z),k,A))}return y.length===1?y[0]:y}function o(s){return r.PRESERVE_CUSTOM_ATTRIBUTES&&s.type==="tag"&&(0,r.isCustomComponent)(s.name,s.attribs)}return Jo}var H5;function HR(){return H5||(H5=1,(function(t){var e=Pl&&Pl.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=s;var n=e(LR());t.htmlToDOM=n.default;var r=e(B5());t.attributesToProps=r.default;var i=e(zR());t.domToReact=i.default;var a=A5();Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var o={lowerCaseAttributeNames:!1};function s(c,u){var d;if(typeof c!="string")throw new TypeError("First argument must be a string");return c?(0,i.default)((0,n.default)(c,(d=u==null?void 0:u.htmlparser2)!==null&&d!==void 0?d:o),u):[]}})(Pl)),Pl}var WR=HR();const W5=qa(WR),jl=W5.default||W5,GR=({articlesData:t,setArticleId:e,setSearchedText:n,setArticlesData:r})=>S.jsxs("div",{children:[S.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:[Ne.size(t)," articles"]}),S.jsx("div",{className:"ed-mt-4 ed-space-y-4",children:t==null?void 0:t.map(i=>S.jsxs("button",{type:"button",className:"ed-article-row-button 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-text-left",onClick:()=>{e(i==null?void 0:i.id),n(""),r([])},children:[S.jsx("p",{className:"ed-article-title ed-text-border-dark ed-text-14 ed-font-medium ed-flex-1 ed-duration-500 ed-ease-in-out ed-transition-all",children:jl((i==null?void 0:i.title)||"")}),S.jsx("div",{className:"ed-chevron-wrapper ed-size-4 ed--translate-x-2 ed-opacity-0 ed-duration-300 ed-transition-all",children:S.jsx(Zi,{className:"ed-text-border ed-size-4"})})]},i==null?void 0:i.id))})]});for(var io=256,G5=[],Y5=256,Nu;io--;)G5[io]=(io+256).toString(16).substring(1);function Bm(t){var e=0,n=11;if(!Nu||io+n>Y5*2)for(Nu="",io=0;e<Y5;e++)Nu+=G5[Math.random()*256|0];return Nu.substring(io,io+++n)}const YR=(t,e,n)=>{const r=t[e];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: "+e+(e.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},We=t=>typeof t=="string",Dl=()=>{let t,e;const n=new Promise((r,i)=>{t=r,e=i});return n.resolve=t,n.reject=e,n},K5=t=>t==null?"":""+t,KR=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},ZR=/###/g,Z5=t=>t&&t.indexOf("###")>-1?t.replace(ZR,"."):t,Q5=t=>!t||We(t),Vl=(t,e,n)=>{const r=We(e)?e.split("."):e;let i=0;for(;i<r.length-1;){if(Q5(t))return{};const a=Z5(r[i]);!t[a]&&n&&(t[a]=new n),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={},++i}return Q5(t)?{}:{obj:t,k:Z5(r[i])}},q5=(t,e,n)=>{const{obj:r,k:i}=Vl(t,e,Object);if(r!==void 0||e.length===1){r[i]=n;return}let a=e[e.length-1],o=e.slice(0,e.length-1),s=Vl(t,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Vl(t,o,Object),s&&s.obj&&typeof s.obj[`${s.k}.${a}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},QR=(t,e,n,r)=>{const{obj:i,k:a}=Vl(t,e,Object);i[a]=i[a]||[],i[a].push(n)},Pu=(t,e)=>{const{obj:n,k:r}=Vl(t,e);if(n)return n[r]},qR=(t,e,n)=>{const r=Pu(t,n);return r!==void 0?r:Pu(e,n)},J5=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?We(t[r])||t[r]instanceof String||We(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):J5(t[r],e[r],n):t[r]=e[r]);return t},Xo=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var JR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const XR=t=>We(t)?t.replace(/[&<>"'\/]/g,e=>JR[e]):t;class $R{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const eN=[" ",",","?","!",";"],tN=new $R(20),nN=(t,e,n)=>{e=e||"",n=n||"";const r=eN.filter(o=>e.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=tN.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!i.test(t);if(!a){const o=t.indexOf(n);o>0&&!i.test(t.substring(0,o))&&(a=!0)}return a},zm=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const r=e.split(n);let i=t;for(let a=0;a<r.length;){if(!i||typeof i!="object")return;let o,s="";for(let c=a;c<r.length;++c)if(c!==a&&(s+=n),s+=r[c],o=i[s],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&c<r.length-1)continue;a+=c-a+1;break}i=o}return i},Iu=t=>t&&t.replace("_","-"),rN={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class Mu{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||rN,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,i){return i&&!this.debug?null:(We(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new Mu(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Mu(this.logger,e)}}var Ai=new Mu;class Lu{constructor(){this.observers={}}on(e,n){return e.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(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){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[e]&&Array.from(this.observers[e].entries()).forEach(o=>{let[s,c]=o;for(let u=0;u<c;u++)s(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[s,c]=o;for(let u=0;u<c;u++)s.apply(s,[e,...r])})}}class X5 extends Lu{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,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 s;e.indexOf(".")>-1?s=e.split("."):(s=[e,n],r&&(Array.isArray(r)?s.push(...r):We(r)&&a?s.push(...r.split(a)):s.push(r)));const c=Pu(this.data,s);return!c&&!n&&!r&&e.indexOf(".")>-1&&(e=s[0],n=s[1],r=s.slice(2).join(".")),c||!o||!We(r)?c:zm(this.data&&this.data[e]&&this.data[e][n],r,a)}addResource(e,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 s=[e,n];r&&(s=s.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(s=e.split("."),i=n,n=s[1]),this.addNamespaces(n),q5(this.data,s,i),a.silent||this.emit("added",e,n,r,i)}addResources(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in r)(We(r[a])||Array.isArray(r[a]))&&this.addResource(e,n,a,r[a],{silent:!0});i.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[e,n];e.indexOf(".")>-1&&(s=e.split("."),i=r,r=n,n=s[1]),this.addNamespaces(n);let c=Pu(this.data,s)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?J5(c,r,a):c={...c,...r},q5(this.data,s,c),o.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var $5={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,i){return t.forEach(a=>{this.processors[a]&&(e=this.processors[a].process(e,n,r,i))}),e}};const ew={};class Fu extends Lu{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),KR(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ai.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const r=this.resolve(e,n);return r&&r.res!==void 0}extractFromKey(e,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&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!nN(e,r,i);if(o&&!s){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:We(a)?[a]:a};const u=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),e=u.join(i)}return{key:e,namespaces:We(a)?[a]:a}}translate(e,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(e[e.length-1],n),c=s[s.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const C=n.nsSeparator||this.options.nsSeparator;return i?{res:`${c}${C}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${C}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:o}const h=this.resolve(e,n);let m=h&&h.res;const p=h&&h.usedKey||o,y=h&&h.exactUsedKey||o,b=Object.prototype.toString.apply(m),v=["[object Number]","[object Function]","[object RegExp]"],x=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,T=!We(m)&&typeof m!="boolean"&&typeof m!="number";if(_&&m&&T&&v.indexOf(b)<0&&!(We(x)&&Array.isArray(m))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const C=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,m,{...n,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(h.res=C,h.usedParams=this.getUsedParamsDetails(n),h):C}if(a){const C=Array.isArray(m),w=C?[]:{},A=C?y:p;for(const k in m)if(Object.prototype.hasOwnProperty.call(m,k)){const R=`${A}${a}${k}`;w[k]=this.translate(R,{...n,joinArrays:!1,ns:s}),w[k]===R&&(w[k]=m[k])}m=w}}else if(_&&We(x)&&Array.isArray(m))m=m.join(x),m&&(m=this.extendTranslation(m,e,n,r));else{let C=!1,w=!1;const A=n.count!==void 0&&!We(n.count),k=Fu.hasDefaultValue(n),R=A?this.pluralResolver.getSuffix(u,n.count,n):"",I=n.ordinal&&A?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",U=A&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),D=U&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${I}`]||n.defaultValue;!this.isValidLookup(m)&&k&&(C=!0,m=D),this.isValidLookup(m)||(w=!0,m=o);const Y=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&w?void 0:m,j=k&&D!==m&&this.options.updateMissing;if(w||C||j){if(this.logger.log(j?"updateKey":"missingKey",u,c,o,j?D:m),a){const B=this.resolve(o,{...n,keySeparator:!1});B&&B.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 F=[];const V=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&V&&V[0])for(let B=0;B<V.length;B++)F.push(V[B]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(n.lng||this.language):F.push(n.lng||this.language);const G=(B,q,W)=>{const K=k&&W!==m?W:Y;this.options.missingKeyHandler?this.options.missingKeyHandler(B,c,q,K,j,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(B,c,q,K,j,n),this.emit("missingKey",B,c,q,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?F.forEach(B=>{const q=this.pluralResolver.getSuffixes(B,n);U&&n[`defaultValue${this.options.pluralSeparator}zero`]&&q.indexOf(`${this.options.pluralSeparator}zero`)<0&&q.push(`${this.options.pluralSeparator}zero`),q.forEach(W=>{G([B],o+W,n[`defaultValue${W}`]||D)})}):G(F,o,D))}m=this.extendTranslation(m,e,n,h,r),w&&m===o&&this.options.appendNamespaceToMissingKey&&(m=`${c}:${o}`),(w||C)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${o}`:o,C?m:void 0):m=this.options.parseMissingKeyHandler(m))}return i?(h.res=m,h.usedParams=this.getUsedParamsDetails(n),h):m}extendTranslation(e,n,r,i,a){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...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 u=We(e)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const m=e.match(this.interpolator.nestingRegexp);d=m&&m.length}let h=r.replace&&!We(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),e=this.interpolator.interpolate(e,h,r.lng||this.language||i.usedLng,r),u){const m=e.match(this.interpolator.nestingRegexp),p=m&&m.length;d<p&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var m=arguments.length,p=new Array(m),y=0;y<m;y++)p[y]=arguments[y];return a&&a[0]===p[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):o.translate(...p,n)},r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,c=We(s)?[s]:s;return e!=null&&c&&c.length&&r.applyPostProcessor!==!1&&(e=$5.handle(c,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,a,o,s;return We(e)&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(c,n),d=u.key;i=d;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const m=n.count!==void 0&&!We(n.count),p=m&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),y=n.context!==void 0&&(We(n.context)||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(v=>{this.isValidLookup(r)||(s=v,!ew[`${b[0]}-${v}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(ew[`${b[0]}-${v}`]=!0,this.logger.warn(`key "${i}" for languages "${b.join(", ")}" won't get resolved as namespace "${s}" 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!!!")),b.forEach(x=>{if(this.isValidLookup(r))return;o=x;const _=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(_,d,x,v,n);else{let C;m&&(C=this.pluralResolver.getSuffix(x,n.count,n));const w=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(_.push(d+C),n.ordinal&&C.indexOf(A)===0&&_.push(d+C.replace(A,this.options.pluralSeparator)),p&&_.push(d+w)),y){const k=`${d}${this.options.contextSeparator}${n.context}`;_.push(k),m&&(_.push(k+C),n.ordinal&&C.indexOf(A)===0&&_.push(k+C.replace(A,this.options.pluralSeparator)),p&&_.push(k+w))}}let T;for(;T=_.pop();)this.isValidLookup(r)||(a=T,r=this.getResource(x,v,T,n))}))})}),{res:r,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:s}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,r,i):this.resourceStore.getResource(e,n,r,i)}getUsedParamsDetails(){let e=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=e.replace&&!We(e.replace);let i=r?e.replace:e;if(r&&typeof e.count<"u"&&(i.count=e.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(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}const Hm=t=>t.charAt(0).toUpperCase()+t.slice(1);class tw{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ai.create("languageUtils")}getScriptPartFromCode(e){if(e=Iu(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Iu(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(We(e)&&e.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(e)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.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]=Hm(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]=Hm(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Hm(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&e.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(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),We(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],a=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return We(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):We(e)&&a(this.formatLanguageCode(e)),r.forEach(o=>{i.indexOf(o)<0&&a(this.formatLanguageCode(o))}),i}}let iN=[{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}],aN={1:t=>+(t>1),2:t=>+(t!=1),3:t=>0,4:t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,5:t=>t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5,6:t=>t==1?0:t>=2&&t<=4?1:2,7:t=>t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,8:t=>t==1?0:t==2?1:t!=8&&t!=11?2:3,9:t=>+(t>=2),10:t=>t==1?0:t==2?1:t<7?2:t<11?3:4,11:t=>t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3,12:t=>+(t%10!=1||t%100==11),13:t=>+(t!==0),14:t=>t==1?0:t==2?1:t==3?2:3,15:t=>t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2,16:t=>t%10==1&&t%100!=11?0:t!==0?1:2,17:t=>t==1||t%10==1&&t%100!=11?0:1,18:t=>t==0?0:t==1?1:2,19:t=>t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3,20:t=>t==1?0:t==0||t%100>0&&t%100<20?1:2,21:t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0,22:t=>t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3};const oN=["v1","v2","v3"],sN=["v4"],nw={zero:0,one:1,two:2,few:3,many:4,other:5},lN=()=>{const t={};return iN.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:aN[e.fc]}})}),t};class cN{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Ai.create("pluralResolver"),(!this.options.compatibilityJSON||sN.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=lN(),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=Iu(e==="dev"?"en":e),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(!e.match(/-|_/))return;const c=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(c,n)}return this.pluralRulesCache[a]=o,o}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(i=>`${n}${i}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,a)=>nw[i]-nw[a]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(e,i,n)):[]}getSuffix(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(e,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: ${e}`),"")}getSuffixRetroCompatible(e,n){const r=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let i=e.numbers[r];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.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&&e.numbers.length===2&&e.numbers[0]===1?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!oN.includes(this.options.compatibilityJSON)}}const rw=function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=qR(t,e,n);return!a&&i&&We(n)&&(a=zm(t,n,r),a===void 0&&(a=zm(e,n,r))),a},Wm=t=>t.replace(/\$/g,"$$$$");class uN{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ai.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:a,prefixEscaped:o,suffix:s,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:h,nestingPrefix:m,nestingPrefixEscaped:p,nestingSuffix:y,nestingSuffixEscaped:b,nestingOptionsSeparator:v,maxReplaces:x,alwaysFormat:_}=e.interpolation;this.escape=n!==void 0?n:XR,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?Xo(a):o||"{{",this.suffix=s?Xo(s):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=m?Xo(m):p||Xo("$t("),this.nestingSuffix=y?Xo(y):b||Xo(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=x||1e3,this.alwaysFormat=_!==void 0?_:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,r,i){let a,o,s;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=p=>{if(p.indexOf(this.formatSeparator)<0){const x=rw(n,c,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,r,{...i,...n,interpolationkey:p}):x}const y=p.split(this.formatSeparator),b=y.shift().trim(),v=y.join(this.formatSeparator).trim();return this.format(rw(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure),v,r,{...i,...n,interpolationkey:b})};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:p=>Wm(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?Wm(this.escape(p)):Wm(p)}].forEach(p=>{for(s=0;a=p.regex.exec(e);){const y=a[1].trim();if(o=u(y),o===void 0)if(typeof d=="function"){const v=d(e,a,i);o=We(v)?v:""}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 ${e}`),o="";else!We(o)&&!this.useRawValueToEscape&&(o=K5(o));const b=p.safeValue(o);if(e=e.replace(a[0],b),h?(p.regex.lastIndex+=o.length,p.regex.lastIndex-=a[0].length):p.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,o;const s=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const h=c.split(new RegExp(`${d}[ ]*{`));let m=`{${h[1]}`;c=h[0],m=this.interpolate(m,o);const p=m.match(/'/g),y=m.match(/"/g);(p&&p.length%2===0&&!y||y.length%2!==0)&&(m=m.replace(/'/g,'"'));try{o=JSON.parse(m),u&&(o={...u,...o})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,b),`${c}${d}${m}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,c};for(;i=this.nestingRegexp.exec(e);){let c=[];o={...r},o=o.replace&&!We(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!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(),c=d,u=!0}if(a=n(s.call(this,i[1].trim(),o),o),a&&i[0]===e&&!We(a))return a;We(a)||(a=K5(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),a=""),u&&(a=c.reduce((d,h)=>this.format(d,h,r.lng,{...r,interpolationkey:i[1].trim()}),a.trim())),e=e.replace(i[0],a),this.regexp.lastIndex=0}return e}}const fN=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);e==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(o){const[s,...c]=o.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=s.trim();n[d]||(n[d]=u),u==="false"&&(n[d]=!1),u==="true"&&(n[d]=!0),isNaN(u)||(n[d]=parseInt(u,10))}})}return{formatName:e,formatOptions:n}},$o=t=>{const e={};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 s=e[o];return s||(s=t(Iu(r),i),e[o]=s),s(n)}};class dN{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ai.create("formatter"),this.options=e,this.formats={number:$o((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return a=>i.format(a)}),currency:$o((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return a=>i.format(a)}),datetime:$o((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return a=>i.format(a)}),relativetime:$o((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return a=>i.format(a,r.range||"day")}),list:$o((n,r)=>{const i=new Intl.ListFormat(n,{...r});return a=>i.format(a)})},this.init(e)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=$o(n)}format(e,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(s=>s.indexOf(")")>-1)){const s=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,s)].join(this.formatSeparator)}return a.reduce((s,c)=>{const{formatName:u,formatOptions:d}=fN(c);if(this.formats[u]){let h=s;try{const m=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},p=m.locale||m.lng||i.locale||i.lng||r;h=this.formats[u](s,p,{...d,...i,...m})}catch(m){this.logger.warn(m)}return h}else this.logger.warn(`there was no format function for ${u}`);return s},e)}}const hN=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class pN extends Lu{constructor(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Ai.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(e,n,r,i){const a={},o={},s={},c={};return e.forEach(u=>{let d=!0;n.forEach(h=>{const m=`${u}|${h}`;!r.reload&&this.store.hasResourceBundle(u,h)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?o[m]===void 0&&(o[m]=!0):(this.state[m]=1,d=!1,o[m]===void 0&&(o[m]=!0),a[m]===void 0&&(a[m]=!0),c[h]===void 0&&(c[h]=!0)))}),d||(s[u]=!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(s),toLoadNamespaces:Object.keys(c)}}loaded(e,n,r){const i=e.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[e]=n?-1:2,n&&r&&(this.state[e]=0);const s={};this.queue.forEach(c=>{QR(c.loaded,[a],o),hN(c,e),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{s[u]||(s[u]={});const d=c.loaded[u];d.length&&d.forEach(h=>{s[u][h]===void 0&&(s[u][h]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(c=>!c.done)}read(e,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(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:i,wait:a,callback:o});return}this.readingCalls++;const s=(u,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(u&&d&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,i+1,a*2,o)},a);return}o(u,d)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const u=c(e,n);u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}return}return c(e,n,s)}prepareLoading(e,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();We(e)&&(e=this.languageUtils.toResolveHierarchy(e)),We(n)&&(n=[n]);const a=this.queueLoad(e,n,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),i=r[0],a=r[1];this.read(i,a,"read",void 0,void 0,(o,s)=>{o&&this.logger.warn(`${n}loading namespace ${a} for language ${i} failed`,o),!o&&s&&this.logger.log(`${n}loaded namespace ${a} for language ${i}`,s),this.loaded(e,o,s)})}saveMissing(e,n,r,i,a){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=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 c={...o,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(e,n,r,i,c):d=u(e,n,r,i),d&&typeof d.then=="function"?d.then(h=>s(null,h)).catch(s):s(null,d)}catch(d){s(d)}else u(e,n,r,i,s,c)}!e||!e[0]||this.store.addResource(e[0],n,r,i)}}}const iw=()=>({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:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),We(t[1])&&(e.defaultValue=t[1]),We(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),aw=t=>(We(t.ns)&&(t.ns=[t.ns]),We(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),We(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),ju=()=>{},mN=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class Ul extends Lu{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=aw(e),this.services={},this.logger=Ai,this.modules={external:[]},mN(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=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&&(We(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=iw();this.options={...i,...this.options,...aw(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?Ai.init(a(this.modules.logger),this.options):Ai.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=dN);const h=new tw(this.options);this.store=new X5(this.options.resources,this.options);const m=this.services;m.logger=Ai,m.resourceStore=this.store,m.languageUtils=h,m.pluralResolver=new cN(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)&&(m.formatter=a(d),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new uN(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new pN(a(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(p){for(var y=arguments.length,b=new Array(y>1?y-1:0),v=1;v<y;v++)b[v-1]=arguments[v];e.emit(p,...b)}),this.modules.languageDetector&&(m.languageDetector=a(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=a(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new Fu(this.services,this.options),this.translator.on("*",function(p){for(var y=arguments.length,b=new Array(y>1?y-1:0),v=1;v<y;v++)b[v-1]=arguments[v];e.emit(p,...b)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=ju),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 e.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return e.store[d](...arguments),e}});const c=Dl(),u=()=>{const d=(h,m)=>{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),c.resolve(m),r(h,m)};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?u():setTimeout(u,0),c}loadResources(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ju;const i=We(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],o=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>o(c)),this.options.preload&&this.options.preload.forEach(s=>o(s)),this.services.backendConnector.load(a,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(e,n,r){const i=Dl();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=ju),this.services.backendConnector.reload(e,n,a=>{i.resolve(),r(a)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&$5.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-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(e,n){var r=this;this.isLanguageChangingTo=e;const i=Dl();this.emit("languageChanging",e);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},o=(c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},s=c=>{!e&&!c&&this.services.languageDetector&&(c=[]);const u=We(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{o(d,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e),i}getFixedT(e,n,r){var i=this;const a=function(o,s){let c;if(typeof s!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),h=2;h<u;h++)d[h-2]=arguments[h];c=i.options.overloadTranslationOptionHandler([o,s].concat(d))}else c={...s};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||a.keyPrefix);const m=i.options.keySeparator||".";let p;return c.keyPrefix&&Array.isArray(o)?p=o.map(y=>`${c.keyPrefix}${m}${y}`):p=c.keyPrefix?`${c.keyPrefix}${m}${o}`:o,i.t(p,c)};return We(e)?a.lng=e:a.lngs=e,a.ns=n,a.keyPrefix=r,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){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=(s,c)=>{const u=this.services.backendConnector.state[`${s}|${c}`];return u===-1||u===0||u===2};if(n.precheck){const s=n.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))}loadNamespaces(e,n){const r=Dl();return this.options.ns?(We(e)&&(e=[e]),e.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(e,n){const r=Dl();We(e)&&(e=[e]);const i=this.options.preload||[],a=e.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(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)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 tw(iw());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Ul(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ju;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},a=new Ul(i);return(e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(s=>{a[s]=this[s]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new X5(this.store.data,i),a.services.resourceStore=a.store),a.translator=new Fu(a.services,i),a.translator.on("*",function(s){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];a.emit(s,...u)}),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 Bn=Ul.createInstance();Bn.createInstance=Ul.createInstance,Bn.createInstance,Bn.dir,Bn.init,Bn.loadResources,Bn.reloadResources,Bn.use,Bn.changeLanguage,Bn.getFixedT,Bn.t,Bn.exists,Bn.setDefaultNamespace,Bn.hasLoadedNamespace,Bn.loadNamespaces,Bn.loadLanguages;var Du={};/*!
101
101
  * cookie
102
102
  * Copyright(c) 2012-2014 Roman Shtylman
103
103
  * Copyright(c) 2015 Douglas Christopher Wilson
@@ -155,11 +155,12 @@ Valid keys: `+JSON.stringify(Object.keys(W),null," "));var ee=be(ue,he,ce,ie,J+
155
155
  }
156
156
  }
157
157
  }
158
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Wu(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Wu(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Wu(r,e)}),t.definitions&&t.definitions.forEach(function(r){Wu(r,e)})}var a1={};(function(){Hu.definitions.forEach(function(e){if(e.name){var n=new Set;Wu(e,n),a1[e.name.value]=n}})})();function Tw(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function sP(t,e){var n={kind:t.kind,definitions:[Tw(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=a1[e]||new Set,i=new Set,a=new Set;for(r.forEach(function(s){a.add(s)});a.size>0;){var o=a;a=new Set,o.forEach(function(s){if(!i.has(s)){i.add(s);var c=a1[s]||new Set;c.forEach(function(u){a.add(u)})}})}return i.forEach(function(s){var c=Tw(t,s);c&&n.definitions.push(c)}),n}sP(Hu,"GET_CATEGORIES");const lP=({setSelectedCategory:t})=>{const[e,n]=N.useState([]),[r,i]=N.useState({limit:50,offset:0,order:[["serial","asc"]]}),[a,o]=N.useState({}),[s,c]=N.useState({initialLoading:!0,fetchMoreLoading:!0}),{data:u,error:d}=ou(Hu,{errorPolicy:"all",fetchPolicy:"no-cache",variables:{queryData:{type:"ARTICLE"},optionData:r}}),h=()=>{c({initialLoading:!1,fetchMoreLoading:!0});const p=r.offset+r.limit;i(y=>({...y,offset:p}))},m=!!(a!=null&&a.filtered_rows&&Ne.size(e)<(a==null?void 0:a.filtered_rows));return N.useEffect(()=>{if(u!=null&&u.getCategories){const p=u.getCategories.data;(r==null?void 0:r.offset)===0?n(p):n([...e,...p]),o(u.getCategories.meta_data),c({initialLoading:!1,fetchMoreLoading:!1})}d&&console.error(d)},[u,d]),s.initialLoading?S.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:S.jsx(Ki,{})}):S.jsx(i1,{dataLength:Ne.size(e),next:h,hasMore:m,scrollableTarget:"root-scrollbar",loader:"",children:S.jsxs("div",{children:[e==null?void 0:e.map(p=>S.jsxs("div",{role:"button",tabIndex:0,onClick:()=>t(p==null?void 0:p.id),className:"ed-category-card ed-py-3 ed-px-5 ed-mt-3 ed-rounded-lg ed-border ed-border-border-light ed-hover:shadow-lg ed-duration-300 ed-transition-all ed-cursor-pointer",children:[S.jsx("h6",{className:"ed-text-16 ed-font-semibold ed-text-border-dark ed-category-title",children:p==null?void 0:p.name}),S.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-category-desc ed-my-2 ed-duration-300 ed-transition-all",children:p==null?void 0:p.description}),S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-justify-between",children:[S.jsxs("span",{className:"ed-text-14 ed-text-border ed-category-count ed-duration-300 ed-transition-all",children:[p==null?void 0:p.total_articles," article",(p==null?void 0:p.total_articles)>1&&"s"]}),S.jsx("div",{className:"ed-chevron-wrapper ed-size-4 ed--translate-x-2 ed-opacity-0 ed-duration-300 ed-transition-all",children:S.jsx(Zi,{className:"ed-text-border ed-size-4"})})]})]},p==null?void 0:p.id)),(s==null?void 0:s.fetchMoreLoading)&&S.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:S.jsx(Ki,{})})]})})};var Gu={exports:{}},cP=Gu.exports,Ow;function uP(){return Ow||(Ow=1,(function(t,e){(function(n,r){t.exports=r()})(cP,(function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",c="hour",u="day",d="week",h="month",m="quarter",p="year",y="date",b="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|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,_={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(j){var F=["th","st","nd","rd"],V=j%100;return"["+j+(F[(V-20)%10]||F[V]||F[0])+"]"}},T=function(j,F,V){var G=String(j);return!G||G.length>=F?j:""+Array(F+1-G.length).join(V)+j},C={s:T,z:function(j){var F=-j.utcOffset(),V=Math.abs(F),G=Math.floor(V/60),B=V%60;return(F<=0?"+":"-")+T(G,2,"0")+":"+T(B,2,"0")},m:function j(F,V){if(F.date()<V.date())return-j(V,F);var G=12*(V.year()-F.year())+(V.month()-F.month()),B=F.clone().add(G,h),q=V-B<0,W=F.clone().add(G+(q?-1:1),h);return+(-(G+(V-B)/(q?B-W:W-B))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:h,y:p,w:d,d:u,D:y,h:c,m:s,s:o,ms:a,Q:m}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},w="en",A={};A[w]=_;var k="$isDayjsObject",R=function(j){return j instanceof z||!(!j||!j[k])},I=function j(F,V,G){var B;if(!F)return w;if(typeof F=="string"){var q=F.toLowerCase();A[q]&&(B=q),V&&(A[q]=V,B=q);var W=F.split("-");if(!B&&W.length>1)return j(W[0])}else{var K=F.name;A[K]=F,B=K}return!G&&B&&(w=B),B||!G&&w},U=function(j,F){if(R(j))return j.clone();var V=typeof F=="object"?F:{};return V.date=j,V.args=arguments,new z(V)},D=C;D.l=I,D.i=R,D.w=function(j,F){return U(j,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var z=(function(){function j(V){this.$L=I(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[k]=!0}var F=j.prototype;return F.parse=function(V){this.$d=(function(G){var B=G.date,q=G.utc;if(B===null)return new Date(NaN);if(D.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var W=B.match(v);if(W){var K=W[2]-1||0,te=(W[7]||"0").substring(0,3);return q?new Date(Date.UTC(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,te)):new Date(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,te)}}return new Date(B)})(V),this.init()},F.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},F.$utils=function(){return D},F.isValid=function(){return this.$d.toString()!==b},F.isSame=function(V,G){var B=U(V);return this.startOf(G)<=B&&B<=this.endOf(G)},F.isAfter=function(V,G){return U(V)<this.startOf(G)},F.isBefore=function(V,G){return this.endOf(G)<U(V)},F.$g=function(V,G,B){return D.u(V)?this[G]:this.set(B,V)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(V,G){var B=this,q=!!D.u(G)||G,W=D.p(V),K=function(ve,he){var be=D.w(B.$u?Date.UTC(B.$y,he,ve):new Date(B.$y,he,ve),B);return q?be:be.endOf(u)},te=function(ve,he){return D.w(B.toDate()[ve].apply(B.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(he)),B)},ne=this.$W,ce=this.$M,ie=this.$D,J="set"+(this.$u?"UTC":"");switch(W){case p:return q?K(1,0):K(31,11);case h:return q?K(1,ce):K(0,ce+1);case d:var ue=this.$locale().weekStart||0,le=(ne<ue?ne+7:ne)-ue;return K(q?ie-le:ie+(6-le),ce);case u:case y:return te(J+"Hours",0);case c:return te(J+"Minutes",1);case s:return te(J+"Seconds",2);case o:return te(J+"Milliseconds",3);default:return this.clone()}},F.endOf=function(V){return this.startOf(V,!1)},F.$set=function(V,G){var B,q=D.p(V),W="set"+(this.$u?"UTC":""),K=(B={},B[u]=W+"Date",B[y]=W+"Date",B[h]=W+"Month",B[p]=W+"FullYear",B[c]=W+"Hours",B[s]=W+"Minutes",B[o]=W+"Seconds",B[a]=W+"Milliseconds",B)[q],te=q===u?this.$D+(G-this.$W):G;if(q===h||q===p){var ne=this.clone().set(y,1);ne.$d[K](te),ne.init(),this.$d=ne.set(y,Math.min(this.$D,ne.daysInMonth())).$d}else K&&this.$d[K](te);return this.init(),this},F.set=function(V,G){return this.clone().$set(V,G)},F.get=function(V){return this[D.p(V)]()},F.add=function(V,G){var B,q=this;V=Number(V);var W=D.p(G),K=function(ce){var ie=U(q);return D.w(ie.date(ie.date()+Math.round(ce*V)),q)};if(W===h)return this.set(h,this.$M+V);if(W===p)return this.set(p,this.$y+V);if(W===u)return K(1);if(W===d)return K(7);var te=(B={},B[s]=r,B[c]=i,B[o]=n,B)[W]||1,ne=this.$d.getTime()+V*te;return D.w(ne,this)},F.subtract=function(V,G){return this.add(-1*V,G)},F.format=function(V){var G=this,B=this.$locale();if(!this.isValid())return B.invalidDate||b;var q=V||"YYYY-MM-DDTHH:mm:ssZ",W=D.z(this),K=this.$H,te=this.$m,ne=this.$M,ce=B.weekdays,ie=B.months,J=B.meridiem,ue=function(he,be,ee,Ie){return he&&(he[be]||he(G,q))||ee[be].slice(0,Ie)},le=function(he){return D.s(K%12||12,he,"0")},ve=J||function(he,be,ee){var Ie=he<12?"AM":"PM";return ee?Ie.toLowerCase():Ie};return q.replace(x,(function(he,be){return be||(function(ee){switch(ee){case"YY":return String(G.$y).slice(-2);case"YYYY":return D.s(G.$y,4,"0");case"M":return ne+1;case"MM":return D.s(ne+1,2,"0");case"MMM":return ue(B.monthsShort,ne,ie,3);case"MMMM":return ue(ie,ne);case"D":return G.$D;case"DD":return D.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return ue(B.weekdaysMin,G.$W,ce,2);case"ddd":return ue(B.weekdaysShort,G.$W,ce,3);case"dddd":return ce[G.$W];case"H":return String(K);case"HH":return D.s(K,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return ve(K,te,!0);case"A":return ve(K,te,!1);case"m":return String(te);case"mm":return D.s(te,2,"0");case"s":return String(G.$s);case"ss":return D.s(G.$s,2,"0");case"SSS":return D.s(G.$ms,3,"0");case"Z":return W}return null})(he)||W.replace(":","")}))},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(V,G,B){var q,W=this,K=D.p(G),te=U(V),ne=(te.utcOffset()-this.utcOffset())*r,ce=this-te,ie=function(){return D.m(W,te)};switch(K){case p:q=ie()/12;break;case h:q=ie();break;case m:q=ie()/3;break;case d:q=(ce-ne)/6048e5;break;case u:q=(ce-ne)/864e5;break;case c:q=ce/i;break;case s:q=ce/r;break;case o:q=ce/n;break;default:q=ce}return B?q:D.a(q)},F.daysInMonth=function(){return this.endOf(h).$D},F.$locale=function(){return A[this.$L]},F.locale=function(V,G){if(!V)return this.$L;var B=this.clone(),q=I(V,G,!0);return q&&(B.$L=q),B},F.clone=function(){return D.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},j})(),Y=z.prototype;return U.prototype=Y,[["$ms",a],["$s",o],["$m",s],["$H",c],["$W",u],["$M",h],["$y",p],["$D",y]].forEach((function(j){Y[j[1]]=function(F){return this.$g(F,j[0],j[1])}})),U.extend=function(j,F){return j.$i||(j(F,z,U),j.$i=!0),U},U.locale=I,U.isDayjs=R,U.unix=function(j){return U(1e3*j)},U.en=A[w],U.Ls=A,U.p={},U}))})(Gu)),Gu.exports}var fP=uP();const os=Qa(fP);var Yu={exports:{}},o1={},Rw;function Nw(){if(Rw)return o1;Rw=1;function t(e){return e&&e.__esModule?e:{default:e}}return o1._=t,o1}var Ku={exports:{}},s1={},Pw;function Iw(){return Pw||(Pw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,s){for(var c in s)Object.defineProperty(o,c,{enumerable:!0,get:s[c]})}e(t,{assign:function(){return a},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}});function n(o){const s={};return o.forEach((c,u)=>{typeof s[u]>"u"?s[u]=c:Array.isArray(s[u])?s[u].push(c):s[u]=[s[u],c]}),s}function r(o){return typeof o=="string"||typeof o=="number"&&!isNaN(o)||typeof o=="boolean"?String(o):""}function i(o){const s=new URLSearchParams;return Object.entries(o).forEach(c=>{let[u,d]=c;Array.isArray(d)?d.forEach(h=>s.append(u,r(h))):s.set(u,r(d))}),s}function a(o){for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];return c.forEach(d=>{Array.from(d.keys()).forEach(h=>o.delete(h)),d.forEach((h,m)=>o.append(m,h))}),o}})(s1)),s1}var l1={},c1={},Mw;function dP(){if(Mw)return c1;Mw=1;function t(n){if(typeof WeakMap!="function")return null;var r=new WeakMap,i=new WeakMap;return(t=function(a){return a?i:r})(n)}function e(n,r){if(!r&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var i=t(r);if(i&&i.has(n))return i.get(n);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in n)if(s!=="default"&&Object.prototype.hasOwnProperty.call(n,s)){var c=o?Object.getOwnPropertyDescriptor(n,s):null;c&&(c.get||c.set)?Object.defineProperty(a,s,c):a[s]=n[s]}return a.default=n,i&&i.set(n,a),a}return c1._=e,c1}var Lw;function Fw(){return Lw||(Lw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(c,u){for(var d in u)Object.defineProperty(c,d,{enumerable:!0,get:u[d]})}e(t,{formatUrl:function(){return a},formatWithValidation:function(){return s},urlObjectKeys:function(){return o}});const r=dP()._(Iw()),i=/https?|ftp|gopher|file/;function a(c){let{auth:u,hostname:d}=c,h=c.protocol||"",m=c.pathname||"",p=c.hash||"",y=c.query||"",b=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",c.host?b=u+c.host:d&&(b=u+(~d.indexOf(":")?"["+d+"]":d),c.port&&(b+=":"+c.port)),y&&typeof y=="object"&&(y=String(r.urlQueryToSearchParams(y)));let v=c.search||y&&"?"+y||"";return h&&!h.endsWith(":")&&(h+=":"),c.slashes||(!h||i.test(h))&&b!==!1?(b="//"+(b||""),m&&m[0]!=="/"&&(m="/"+m)):b||(b=""),p&&p[0]!=="#"&&(p="#"+p),v&&v[0]!=="?"&&(v="?"+v),m=m.replace(/[?#]/g,encodeURIComponent),v=v.replace("#","%23"),""+h+b+m+v+p}const o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(c){return a(c)}})(l1)),l1}var u1={},jw;function hP(){return jw||(jw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return e}});function e(n,r){const i={};return Object.keys(n).forEach(a=>{r.includes(a)||(i[a]=n[a])}),i}})(u1)),u1}var f1={},Dw;function Zu(){return Dw||(Dw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(C,w){for(var A in w)Object.defineProperty(C,A,{enumerable:!0,get:w[A]})}e(t,{DecodeError:function(){return y},MiddlewareNotFoundError:function(){return _},MissingStaticPage:function(){return x},NormalizeError:function(){return b},PageNotFoundError:function(){return v},SP:function(){return m},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return c},getLocationOrigin:function(){return o},getURL:function(){return s},isAbsoluteUrl:function(){return a},isResSent:function(){return u},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return T}});const n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(C){let w=!1,A;return function(){for(var k=arguments.length,R=new Array(k),I=0;I<k;I++)R[I]=arguments[I];return w||(w=!0,A=C(...R)),A}}const i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=C=>i.test(C);function o(){const{protocol:C,hostname:w,port:A}=window.location;return C+"//"+w+(A?":"+A:"")}function s(){const{href:C}=window.location,w=o();return C.substring(w.length)}function c(C){return typeof C=="string"?C:C.displayName||C.name||"Unknown"}function u(C){return C.finished||C.headersSent}function d(C){const w=C.split("?");return w[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(w[1]?"?"+w.slice(1).join("?"):"")}async function h(C,w){{var A;if((A=C.prototype)!=null&&A.getInitialProps){const I='"'+c(C)+'.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(I)}}const k=w.res||w.ctx&&w.ctx.res;if(!C.getInitialProps)return w.ctx&&w.Component?{pageProps:await h(w.Component,w.ctx)}:{};const R=await C.getInitialProps(w);if(k&&u(k))return R;if(!R){const I='"'+c(C)+'.getInitialProps()" should resolve to an object. But found "'+R+'" instead.';throw new Error(I)}return Object.keys(R).length===0&&!w.ctx&&console.warn(""+c(C)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),R}const m=typeof performance<"u",p=m&&["mark","measure","getEntriesByName"].every(C=>typeof performance[C]=="function");class y extends Error{}class b extends Error{}class v extends Error{constructor(w){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+w}}class x extends Error{constructor(w,A){super(),this.message="Failed to load static file for page: "+w+" "+A}}class _ extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function T(C){return JSON.stringify({message:C.message,stack:C.stack})}})(f1)),f1}var Qu={exports:{}},d1={},Vw;function Uw(){return Vw||(Vw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(n){return n.replace(/\/$/,"")||"/"}})(d1)),d1}var h1={},Bw;function p1(){return Bw||(Bw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return e}});function e(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:""}}})(h1)),h1}var zw;function qu(){return zw||(zw=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});const r=Uw(),i=p1(),a=o=>{if(!o.startsWith("/")||n.__NEXT_MANUAL_TRAILING_SLASH)return o;const{pathname:s,query:c,hash:u}=(0,i.parsePath)(o);return n.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(s)?""+(0,r.removeTrailingSlash)(s)+c+u:s.endsWith("/")?""+s+c+u:s+"/"+c+u:""+(0,r.removeTrailingSlash)(s)+c+u};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Qu,Qu.exports)),Qu.exports}var m1={},Ju={exports:{}},g1={},Hw;function Ww(){return Hw||(Hw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const e=p1();function n(r,i){if(typeof r!="string")return!1;const{pathname:a}=(0,e.parsePath)(r);return a===i||a.startsWith(i+"/")}})(g1)),g1}var Gw;function pP(){return Gw||(Gw=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"hasBasePath",{enumerable:!0,get:function(){return a}});const r=Ww(),i=n.__NEXT_ROUTER_BASEPATH||"";function a(o){return(0,r.pathHasPrefix)(o,i)}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Ju,Ju.exports)),Ju.exports}var Yw;function Kw(){return Yw||(Yw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return r}});const e=Zu(),n=pP();function r(i){if(!(0,e.isAbsoluteUrl)(i))return!0;try{const a=(0,e.getLocationOrigin)(),o=new URL(i,a);return o.origin===a&&(0,n.hasBasePath)(o.pathname)}catch{return!1}}})(m1)),m1}var v1={},y1={},Zw;function mP(){return Zw||(Zw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(a,o){for(var s in o)Object.defineProperty(a,s,{enumerable:!0,get:o[s]})}e(t,{getSortedRouteObjects:function(){return i},getSortedRoutes:function(){return r}});class n{insert(o){this._insert(o.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(o){o===void 0&&(o="/");const s=[...this.children.keys()].sort();this.slugName!==null&&s.splice(s.indexOf("[]"),1),this.restSlugName!==null&&s.splice(s.indexOf("[...]"),1),this.optionalRestSlugName!==null&&s.splice(s.indexOf("[[...]]"),1);const c=s.map(u=>this.children.get(u)._smoosh(""+o+u+"/")).reduce((u,d)=>[...u,...d],[]);if(this.slugName!==null&&c.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const u=o==="/"?"/":o.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+']]").');c.unshift(u)}return this.restSlugName!==null&&c.push(...this.children.get("[...]")._smoosh(o+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&c.push(...this.children.get("[[...]]")._smoosh(o+"[[..."+this.optionalRestSlugName+"]]/")),c}_insert(o,s,c){if(o.length===0){this.placeholder=!1;return}if(c)throw new Error("Catch-all must be the last part of the URL.");let u=o[0];if(u.startsWith("[")&&u.endsWith("]")){let m=function(p,y){if(p!==null&&p!==y)throw new Error("You cannot use different slug names for the same dynamic path ('"+p+"' !== '"+y+"').");s.forEach(b=>{if(b===y)throw new Error('You cannot have the same slug name "'+y+'" repeat within a single dynamic path');if(b.replace(/\W/g,"")===u.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+b+'" and "'+y+'" differ only by non-word symbols within a single dynamic path')}),s.push(y)},d=u.slice(1,-1),h=!1;if(d.startsWith("[")&&d.endsWith("]")&&(d=d.slice(1,-1),h=!0),d.startsWith("…"))throw new Error("Detected a three-dot character ('…') at ('"+d+"'). Did you mean ('...')?");if(d.startsWith("...")&&(d=d.substring(3),c=!0),d.startsWith("[")||d.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+d+"').");if(d.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+d+"').");if(c)if(h){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 "'+o[0]+'" ).');m(this.optionalRestSlugName,d),this.optionalRestSlugName=d,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 "'+o[0]+'").');m(this.restSlugName,d),this.restSlugName=d,u="[...]"}else{if(h)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');m(this.slugName,d),this.slugName=d,u="[]"}}this.children.has(u)||this.children.set(u,new n),this.children.get(u)._insert(o.slice(1),s,c)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(a){const o=new n;return a.forEach(s=>o.insert(s)),o.smoosh()}function i(a,o){const s={},c=[];for(let d=0;d<a.length;d++){const h=o(a[d]);s[h]=d,c[d]=h}return r(c).map(d=>a[s[d]])}})(y1)),y1}var b1={},w1={},S1={},E1={},Qw;function gP(){return Qw||(Qw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return e}});function e(n){return n.startsWith("/")?n:"/"+n}})(E1)),E1}var C1={},qw;function vP(){return qw||(qw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}e(t,{DEFAULT_SEGMENT_KEY:function(){return o},PAGE_SEGMENT_KEY:function(){return a},addSearchParamsIfPageSegment:function(){return i},isGroupSegment:function(){return n},isParallelRouteSegment:function(){return r}});function n(s){return s[0]==="("&&s.endsWith(")")}function r(s){return s.startsWith("@")&&s!=="@children"}function i(s,c){if(s.includes(a)){const d=JSON.stringify(c);return d!=="{}"?a+"?"+d:a}return s}const a="__PAGE__",o="__DEFAULT__"})(C1)),C1}var Jw;function yP(){return Jw||(Jw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,s){for(var c in s)Object.defineProperty(o,c,{enumerable:!0,get:s[c]})}e(t,{normalizeAppPath:function(){return i},normalizeRscURL:function(){return a}});const n=gP(),r=vP();function i(o){return(0,n.ensureLeadingSlash)(o.split("/").reduce((s,c,u,d)=>!c||(0,r.isGroupSegment)(c)||c[0]==="@"||(c==="page"||c==="route")&&u===d.length-1?s:s+"/"+c,""))}function a(o){return o.replace(/\.rsc($|\?)/,"$1")}})(S1)),S1}var Xw;function $w(){return Xw||(Xw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,s){for(var c in s)Object.defineProperty(o,c,{enumerable:!0,get:s[c]})}e(t,{INTERCEPTION_ROUTE_MARKERS:function(){return r},extractInterceptionRouteInformation:function(){return a},isInterceptionRouteAppPath:function(){return i}});const n=yP(),r=["(..)(..)","(.)","(..)","(...)"];function i(o){return o.split("/").find(s=>r.find(c=>s.startsWith(c)))!==void 0}function a(o){let s,c,u;for(const d of o.split("/"))if(c=r.find(h=>d.startsWith(h)),c){[s,u]=o.split(c,2);break}if(!s||!c||!u)throw new Error(`Invalid interception route: ${o}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(s=(0,n.normalizeAppPath)(s),c){case"(.)":s==="/"?u=`/${u}`:u=s+"/"+u;break;case"(..)":if(s==="/")throw new Error(`Invalid interception route: ${o}. Cannot use (..) marker at the root level, use (.) instead.`);u=s.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const d=s.split("/");if(d.length<=2)throw new Error(`Invalid interception route: ${o}. Cannot use (..)(..) marker at the root level or one level up.`);u=d.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:s,interceptedRoute:u}}})(w1)),w1}var eS;function bP(){return eS||(eS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const e=$w(),n=/\/\[[^/]+?\](?=\/|$)/;function r(i){return(0,e.isInterceptionRouteAppPath)(i)&&(i=(0,e.extractInterceptionRouteInformation)(i).interceptedRoute),n.test(i)}})(b1)),b1}var tS;function wP(){return tS||(tS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(i,a){for(var o in a)Object.defineProperty(i,o,{enumerable:!0,get:a[o]})}e(t,{getSortedRouteObjects:function(){return n.getSortedRouteObjects},getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return r.isDynamicRoute}});const n=mP(),r=bP()})(v1)),v1}var x1={},_1={},nS;function SP(){return nS||(nS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return n}});const e=Zu();function n(r){let{re:i,groups:a}=r;return o=>{const s=i.exec(o);if(!s)return!1;const c=d=>{try{return decodeURIComponent(d)}catch{throw new e.DecodeError("failed to decode param")}},u={};return Object.keys(a).forEach(d=>{const h=a[d],m=s[h.pos];m!==void 0&&(u[d]=~m.indexOf("/")?m.split("/").map(p=>c(p)):h.repeat?[c(m)]:c(m))}),u}}})(_1)),_1}var A1={},k1={},rS;function EP(){return rS||(rS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(nt,Le){for(var Ze in Le)Object.defineProperty(nt,Ze,{enumerable:!0,get:Le[Ze]})}e(t,{ACTION_SUFFIX:function(){return h},APP_DIR_ALIAS:function(){return V},CACHE_ONE_YEAR:function(){return R},DOT_NEXT_ALIAS:function(){return j},ESLINT_DEFAULT_DIRS:function(){return Fe},GSP_NO_RETURNED_VALUE:function(){return ve},GSSP_COMPONENT_MEMBER_ERROR:function(){return ee},GSSP_NO_RETURNED_VALUE:function(){return he},INFINITE_CACHE:function(){return I},INSTRUMENTATION_HOOK_FILENAME:function(){return z},MATCHED_PATH_HEADER:function(){return i},MIDDLEWARE_FILENAME:function(){return U},MIDDLEWARE_LOCATION_REGEXP:function(){return D},NEXT_BODY_SUFFIX:function(){return y},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return k},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return x},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return _},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return v},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return A},NEXT_CACHE_TAGS_HEADER:function(){return b},NEXT_CACHE_TAG_MAX_ITEMS:function(){return C},NEXT_CACHE_TAG_MAX_LENGTH:function(){return w},NEXT_DATA_SUFFIX:function(){return m},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return r},NEXT_META_SUFFIX:function(){return p},NEXT_QUERY_PARAM_PREFIX:function(){return n},NEXT_RESUME_HEADER:function(){return T},NON_STANDARD_NODE_ENV:function(){return Ie},PAGES_DIR_ALIAS:function(){return Y},PRERENDER_REVALIDATE_HEADER:function(){return a},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return o},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return ne},ROOT_DIR_ALIAS:function(){return F},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return te},RSC_ACTION_ENCRYPTION_ALIAS:function(){return K},RSC_ACTION_PROXY_ALIAS:function(){return q},RSC_ACTION_VALIDATE_ALIAS:function(){return B},RSC_CACHE_WRAPPER_ALIAS:function(){return W},RSC_MOD_REF_PROXY_ALIAS:function(){return G},RSC_PREFETCH_SUFFIX:function(){return s},RSC_SEGMENTS_DIR_SUFFIX:function(){return c},RSC_SEGMENT_SUFFIX:function(){return u},RSC_SUFFIX:function(){return d},SERVER_PROPS_EXPORT_ERROR:function(){return le},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return ie},SERVER_PROPS_SSG_CONFLICT:function(){return J},SERVER_RUNTIME:function(){return at},SSG_FALLBACK_EXPORT_ERROR:function(){return ye},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return ce},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return ue},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return be},WEBPACK_LAYERS:function(){return tt},WEBPACK_RESOURCE_QUERIES:function(){return Ae}});const n="nxtP",r="nxtI",i="x-matched-path",a="x-prerender-revalidate",o="x-prerender-revalidate-if-generated",s=".prefetch.rsc",c=".segments",u=".segment.rsc",d=".rsc",h=".action",m=".json",p=".meta",y=".body",b="x-next-cache-tags",v="x-next-cache-soft-tags",x="x-next-revalidated-tags",_="x-next-revalidate-tag-token",T="next-resume",C=128,w=256,A=1024,k="_N_T_",R=31536e3,I=4294967294,U="middleware",D=`(?:src/)?${U}`,z="instrumentation",Y="private-next-pages",j="private-dot-next",F="private-next-root-dir",V="private-next-app-dir",G="private-next-rsc-mod-ref-proxy",B="private-next-rsc-action-validate",q="private-next-rsc-server-reference",W="private-next-rsc-cache-wrapper",K="private-next-rsc-action-encryption",te="private-next-rsc-action-client-wrapper",ne="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",ce="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",ie="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",J="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",ue="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",le="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",ve="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",he="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",be="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",ee="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",Ie='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',ye="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",Fe=["app","pages","components","lib","src"],at={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},Pe={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser"},tt={...Pe,GROUP:{builtinReact:[Pe.reactServerComponents,Pe.actionBrowser],serverOnly:[Pe.reactServerComponents,Pe.actionBrowser,Pe.instrument,Pe.middleware],neutralTarget:[Pe.api],clientOnly:[Pe.serverSideRendering,Pe.appPagesBrowser],bundled:[Pe.reactServerComponents,Pe.actionBrowser,Pe.serverSideRendering,Pe.appPagesBrowser,Pe.shared,Pe.instrument],appPages:[Pe.reactServerComponents,Pe.serverSideRendering,Pe.appPagesBrowser,Pe.actionBrowser]}},Ae={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}})(k1)),k1}var T1={},iS;function CP(){return iS||(iS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});const e=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function r(i){return e.test(i)?i.replace(n,"\\$&"):i}})(T1)),T1}var aS;function xP(){return aS||(aS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(v,x){for(var _ in x)Object.defineProperty(v,_,{enumerable:!0,get:x[_]})}e(t,{getNamedMiddlewareRegex:function(){return b},getNamedRouteRegex:function(){return y},getRouteRegex:function(){return d},parseParameter:function(){return s}});const n=EP(),r=$w(),i=CP(),a=Uw(),o=/\[((?:\[.*\])|.+)\]/;function s(v){const x=v.match(o);return c(x?x[1]:v)}function c(v){const x=v.startsWith("[")&&v.endsWith("]");x&&(v=v.slice(1,-1));const _=v.startsWith("...");return _&&(v=v.slice(3)),{key:v,repeat:_,optional:x}}function u(v){const x=(0,a.removeTrailingSlash)(v).slice(1).split("/"),_={};let T=1;return{parameterizedRoute:x.map(C=>{const w=r.INTERCEPTION_ROUTE_MARKERS.find(k=>C.startsWith(k)),A=C.match(o);if(w&&A){const{key:k,optional:R,repeat:I}=c(A[1]);return _[k]={pos:T++,repeat:I,optional:R},"/"+(0,i.escapeStringRegexp)(w)+"([^/]+?)"}else if(A){const{key:k,repeat:R,optional:I}=c(A[1]);return _[k]={pos:T++,repeat:R,optional:I},R?I?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,i.escapeStringRegexp)(C)}).join(""),groups:_}}function d(v){const{parameterizedRoute:x,groups:_}=u(v);return{re:new RegExp("^"+x+"(?:/)?$"),groups:_}}function h(){let v=0;return()=>{let x="",_=++v;for(;_>0;)x+=String.fromCharCode(97+(_-1)%26),_=Math.floor((_-1)/26);return x}}function m(v){let{interceptionMarker:x,getSafeRouteKey:_,segment:T,routeKeys:C,keyPrefix:w}=v;const{key:A,optional:k,repeat:R}=c(T);let I=A.replace(/\W/g,"");w&&(I=""+w+I);let U=!1;(I.length===0||I.length>30)&&(U=!0),isNaN(parseInt(I.slice(0,1)))||(U=!0),U&&(I=_()),w?C[I]=""+w+A:C[I]=A;const D=x?(0,i.escapeStringRegexp)(x):"";return R?k?"(?:/"+D+"(?<"+I+">.+?))?":"/"+D+"(?<"+I+">.+?)":"/"+D+"(?<"+I+">[^/]+?)"}function p(v,x){const _=(0,a.removeTrailingSlash)(v).slice(1).split("/"),T=h(),C={};return{namedParameterizedRoute:_.map(w=>{const A=r.INTERCEPTION_ROUTE_MARKERS.some(R=>w.startsWith(R)),k=w.match(/\[((?:\[.*\])|.+)\]/);if(A&&k){const[R]=w.split(k[0]);return m({getSafeRouteKey:T,interceptionMarker:R,segment:k[1],routeKeys:C,keyPrefix:x?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0})}else return k?m({getSafeRouteKey:T,segment:k[1],routeKeys:C,keyPrefix:x?n.NEXT_QUERY_PARAM_PREFIX:void 0}):"/"+(0,i.escapeStringRegexp)(w)}).join(""),routeKeys:C}}function y(v,x){const _=p(v,x);return{...d(v),namedRegex:"^"+_.namedParameterizedRoute+"(?:/)?$",routeKeys:_.routeKeys}}function b(v,x){const{parameterizedRoute:_}=u(v),{catchAll:T=!0}=x;if(_==="/")return{namedRegex:"^/"+(T?".*":"")+"$"};const{namedParameterizedRoute:C}=p(v,!1);let w=T?"(?:(/.*)?)":"";return{namedRegex:"^"+C+w+"$"}}})(A1)),A1}var oS;function _P(){return oS||(oS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return r}});const e=SP(),n=xP();function r(i,a,o){let s="";const c=(0,n.getRouteRegex)(i),u=c.groups,d=(a!==i?(0,e.getRouteMatcher)(c)(a):"")||o;s=i;const h=Object.keys(u);return h.every(m=>{let p=d[m]||"";const{repeat:y,optional:b}=u[m];let v="["+(y?"...":"")+m+"]";return b&&(v=(p?"":"/")+"["+v+"]"),y&&!Array.isArray(p)&&(p=[p]),(b||m in d)&&(s=s.replace(v,y?p.map(x=>encodeURIComponent(x)).join("/"):encodeURIComponent(p))||"/")})||(s=""),{params:h,result:s}}})(x1)),x1}var sS;function AP(){return sS||(sS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveHref",{enumerable:!0,get:function(){return d}});const n=Iw(),r=Fw(),i=hP(),a=Zu(),o=qu(),s=Kw(),c=wP(),u=_P();function d(h,m,p){let y,b=typeof m=="string"?m:(0,r.formatWithValidation)(m);const v=b.match(/^[a-zA-Z]{1,}:\/\//),x=v?b.slice(v[0].length):b;if((x.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+b+"' passed to next/router in page: '"+h.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const T=(0,a.normalizeRepeatedSlashes)(x);b=(v?v[0]:"")+T}if(!(0,s.isLocalURL)(b))return p?[b]:b;try{y=new URL(b.startsWith("#")?h.asPath:h.pathname,"http://n")}catch{y=new URL("/","http://n")}try{const T=new URL(b,y);T.pathname=(0,o.normalizePathTrailingSlash)(T.pathname);let C="";if((0,c.isDynamicRoute)(T.pathname)&&T.searchParams&&p){const A=(0,n.searchParamsToUrlQuery)(T.searchParams),{result:k,params:R}=(0,u.interpolateAs)(T.pathname,T.pathname,A);k&&(C=(0,r.formatWithValidation)({pathname:k,hash:T.hash,query:(0,i.omit)(A,R)}))}const w=T.origin===y.origin?T.href.slice(T.origin.length):T.href;return p?[w,C||w]:w}catch{return p?[b]:b}}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Ku,Ku.exports)),Ku.exports}var Xu={exports:{}},O1={},R1={},lS;function cS(){return lS||(lS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return n}});const e=p1();function n(r,i){if(!r.startsWith("/")||!i)return r;const{pathname:a,query:o,hash:s}=(0,e.parsePath)(r);return""+i+a+o+s}})(R1)),R1}var uS;function kP(){return uS||(uS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}});const e=cS(),n=Ww();function r(i,a,o,s){if(!a||a===o)return i;const c=i.toLowerCase();return!s&&((0,n.pathHasPrefix)(c,"/api")||(0,n.pathHasPrefix)(c,"/"+a.toLowerCase()))?i:(0,e.addPathPrefix)(i,"/"+a)}})(O1)),O1}var fS;function TP(){return fS||(fS=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return i}});const r=qu(),i=function(a){for(var o=arguments.length,s=new Array(o>1?o-1:0),c=1;c<o;c++)s[c-1]=arguments[c];return n.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(kP().addLocale(a,...s)):a};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Xu,Xu.exports)),Xu.exports}var N1={},dS;function OP(){return dS||(dS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});const r=Nw()._(N).default.createContext(null);r.displayName="RouterContext"})(N1)),N1}var $u={exports:{}},ef={exports:{}},hS;function RP(){return hS||(hS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});function n(a,o){for(var s in o)Object.defineProperty(a,s,{enumerable:!0,get:o[s]})}n(e,{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 e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(ef,ef.exports)),ef.exports}var pS;function NP(){return pS||(pS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return u}});const n=N,r=RP(),i=typeof IntersectionObserver=="function",a=new Map,o=[];function s(d){const h={root:d.root||null,margin:d.rootMargin||""},m=o.find(v=>v.root===h.root&&v.margin===h.margin);let p;if(m&&(p=a.get(m),p))return p;const y=new Map,b=new IntersectionObserver(v=>{v.forEach(x=>{const _=y.get(x.target),T=x.isIntersecting||x.intersectionRatio>0;_&&T&&_(T)})},d);return p={id:h,observer:b,elements:y},o.push(h),a.set(h,p),p}function c(d,h,m){const{id:p,observer:y,elements:b}=s(m);return b.set(d,h),y.observe(d),function(){if(b.delete(d),y.unobserve(d),b.size===0){y.disconnect(),a.delete(p);const x=o.findIndex(_=>_.root===p.root&&_.margin===p.margin);x>-1&&o.splice(x,1)}}}function u(d){let{rootRef:h,rootMargin:m,disabled:p}=d;const y=p||!i,[b,v]=(0,n.useState)(!1),x=(0,n.useRef)(null),_=(0,n.useCallback)(C=>{x.current=C},[]);(0,n.useEffect)(()=>{if(i){if(y||b)return;const C=x.current;if(C&&C.tagName)return c(C,A=>A&&v(A),{root:h==null?void 0:h.current,rootMargin:m})}else if(!b){const C=(0,r.requestIdleCallback)(()=>v(!0));return()=>(0,r.cancelIdleCallback)(C)}},[y,m,h,b,x.current]);const T=(0,n.useCallback)(()=>{v(!1)},[]);return[_,b,T]}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})($u,$u.exports)),$u.exports}var tf={exports:{}},nf={exports:{}},P1={},mS;function PP(){return mS||(mS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return e}});function e(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}}})(P1)),P1}var gS;function IP(){return gS||(gS=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(i,a)=>n.__NEXT_I18N_SUPPORT?PP().normalizeLocalePath(i,a):{pathname:i,detectedLocale:void 0};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(nf,nf.exports)),nf.exports}var rf={exports:{}},I1={},vS;function MP(){return vS||(vS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}});function e(n,r,i){if(n){i&&(i=i.toLowerCase());for(const s of n){var a,o;const c=(a=s.domain)==null?void 0:a.split(":",1)[0].toLowerCase();if(r===c||i===s.defaultLocale.toLowerCase()||(o=s.locales)!=null&&o.some(u=>u.toLowerCase()===i))return s}}}})(I1)),I1}var yS;function LP(){return yS||(yS=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"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 MP().detectDomainLocale(...a)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(rf,rf.exports)),rf.exports}var bS;function FP(){return bS||(bS=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return a}});const r=qu(),i=n.__NEXT_ROUTER_BASEPATH||"";function a(o,s,c,u){if(n.__NEXT_I18N_SUPPORT){const d=IP().normalizeLocalePath,h=LP().detectDomainLocale,m=s||d(o,c).detectedLocale,p=h(u,void 0,m);if(p){const y="http"+(p.http?"":"s")+"://",b=m===p.defaultLocale?"":"/"+m;return""+y+p.domain+(0,r.normalizePathTrailingSlash)(""+i+b+o)}return!1}else return!1}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(tf,tf.exports)),tf.exports}var af={exports:{}},wS;function jP(){return wS||(wS=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addBasePath",{enumerable:!0,get:function(){return o}});const r=cS(),i=qu(),a=n.__NEXT_ROUTER_BASEPATH||"";function o(s,c){return(0,i.normalizePathTrailingSlash)(n.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?s:(0,r.addPathPrefix)(s,a))}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(af,af.exports)),af.exports}var of={exports:{}},SS;function DP(){return SS||(SS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useMergedRef",{enumerable:!0,get:function(){return r}});const n=N;function r(a,o){const s=(0,n.useRef)(()=>{}),c=(0,n.useRef)(()=>{});return(0,n.useMemo)(()=>!a||!o?a||o:u=>{u===null?(s.current(),c.current()):(s.current=i(a,u),c.current=i(o,u))},[a,o])}function i(a,o){if(typeof a=="function"){const s=a(o);return typeof s=="function"?s:()=>a(null)}else return a.current=o,()=>{a.current=null}}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(of,of.exports)),of.exports}var ES;function VP(){return ES||(ES=1,(function(t,e){"use client";var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return A}});const r=Nw(),i=S,a=r._(N),o=AP(),s=Kw(),c=Fw(),u=Zu(),d=TP(),h=OP(),m=NP(),p=FP(),y=jP(),b=DP(),v=new Set;function x(k,R,I,U){if(!(typeof window>"u")&&(0,s.isLocalURL)(R)){if(!U.bypassPrefetchedCheck){const D=typeof U.locale<"u"?U.locale:"locale"in k?k.locale:void 0,z=R+"%"+I+"%"+D;if(v.has(z))return;v.add(z)}k.prefetch(R,I,U).catch(D=>{throw D})}}function _(k){const I=k.currentTarget.getAttribute("target");return I&&I!=="_self"||k.metaKey||k.ctrlKey||k.shiftKey||k.altKey||k.nativeEvent&&k.nativeEvent.which===2}function T(k,R,I,U,D,z,Y,j){const{nodeName:F}=k.currentTarget;if(F.toUpperCase()==="A"&&(_(k)||!(0,s.isLocalURL)(I)))return;k.preventDefault(),(()=>{const B=Y??!0;"beforePopState"in R?R[D?"replace":"push"](I,U,{shallow:z,locale:j,scroll:B}):R[D?"replace":"push"](U||I,{scroll:B})})()}function C(k){return typeof k=="string"?k:(0,c.formatUrl)(k)}const A=a.default.forwardRef(function(R,I){let U;const{href:D,as:z,children:Y,prefetch:j=null,passHref:F,replace:V,shallow:G,scroll:B,locale:q,onClick:W,onMouseEnter:K,onTouchStart:te,legacyBehavior:ne=!1,...ce}=R;U=Y,ne&&(typeof U=="string"||typeof U=="number")&&(U=(0,i.jsx)("a",{children:U}));const ie=a.default.useContext(h.RouterContext),J=j!==!1;{let Ae=function(Ee){return new Error("Failed prop type: The prop `"+Ee.key+"` expects a "+Ee.expected+" in `<Link>`, but got `"+Ee.actual+"` instead."+(typeof window<"u"?`
159
- Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(Ee=>{if(Ee==="href"&&(R[Ee]==null||typeof R[Ee]!="string"&&typeof R[Ee]!="object"))throw Ae({key:Ee,expected:"`string` or `object`",actual:R[Ee]===null?"null":typeof R[Ee]})}),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(Ee=>{const $e=typeof R[Ee];if(Ee==="as"){if(R[Ee]&&$e!=="string"&&$e!=="object")throw Ae({key:Ee,expected:"`string` or `object`",actual:$e})}else if(Ee==="locale"){if(R[Ee]&&$e!=="string")throw Ae({key:Ee,expected:"`string`",actual:$e})}else if(Ee==="onClick"||Ee==="onMouseEnter"||Ee==="onTouchStart"){if(R[Ee]&&$e!=="function")throw Ae({key:Ee,expected:"`function`",actual:$e})}else if((Ee==="replace"||Ee==="scroll"||Ee==="shallow"||Ee==="passHref"||Ee==="prefetch"||Ee==="legacyBehavior")&&R[Ee]!=null&&$e!=="boolean")throw Ae({key:Ee,expected:"`boolean`",actual:$e})})}const{href:ue,as:le}=a.default.useMemo(()=>{if(!ie){const Le=C(D);return{href:Le,as:z?C(z):Le}}const[Ae,nt]=(0,o.resolveHref)(ie,D,!0);return{href:Ae,as:z?(0,o.resolveHref)(ie,z):nt||Ae}},[ie,D,z]),ve=a.default.useRef(ue),he=a.default.useRef(le);let be;ne&&(be=a.default.Children.only(U));const ee=ne?be&&typeof be=="object"&&be.ref:I,[Ie,ye,Fe]=(0,m.useIntersection)({rootMargin:"200px"}),at=a.default.useCallback(Ae=>{(he.current!==le||ve.current!==ue)&&(Fe(),he.current=le,ve.current=ue),Ie(Ae)},[le,ue,Fe,Ie]),Pe=(0,b.useMergedRef)(at,ee);a.default.useEffect(()=>{},[le,ue,ye,q,J,ie==null?void 0:ie.locale,ie]);const tt={ref:Pe,onClick(Ae){if(!Ae)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!ne&&typeof W=="function"&&W(Ae),ne&&be.props&&typeof be.props.onClick=="function"&&be.props.onClick(Ae),ie&&(Ae.defaultPrevented||T(Ae,ie,ue,le,V,G,B,q))},onMouseEnter(Ae){!ne&&typeof K=="function"&&K(Ae),ne&&be.props&&typeof be.props.onMouseEnter=="function"&&be.props.onMouseEnter(Ae),ie&&x(ie,ue,le,{locale:q,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:n.__NEXT_LINK_NO_TOUCH_START?void 0:function(nt){!ne&&typeof te=="function"&&te(nt),ne&&be.props&&typeof be.props.onTouchStart=="function"&&be.props.onTouchStart(nt),ie&&x(ie,ue,le,{locale:q,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(le))tt.href=le;else if(!ne||F||be.type==="a"&&!("href"in be.props)){const Ae=typeof q<"u"?q:ie==null?void 0:ie.locale,nt=(ie==null?void 0:ie.isLocaleDomain)&&(0,p.getDomainLocale)(le,Ae,ie==null?void 0:ie.locales,ie==null?void 0:ie.domainLocales);tt.href=nt||(0,y.addBasePath)((0,d.addLocale)(le,Ae,ie==null?void 0:ie.defaultLocale))}return ne?a.default.cloneElement(be,tt):(0,i.jsx)("a",{...ce,...tt,children:U})});(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Yu,Yu.exports)),Yu.exports}var M1,CS;function UP(){return CS||(CS=1,M1=VP()),M1}var BP=UP();const xS=Qa(BP),_S=({from:t="knowledge-base",isAuthenticated:e,onSubmit:n,reqId:r,setFeedbackForTheArticle:i=()=>{},userData:a})=>{var w,A,k;const[o,s]=N.useState([]),[c,u]=N.useState(!1),[d,h]=N.useState({}),m=t==="message",p=m?{contact_person_name:a==null?void 0:a.contact_person_name,contact_person_email:a==null?void 0:a.contact_person_email,title:d==null?void 0:d.title,message:d==null?void 0:d.message}:d,[y,{loading:b}]=ma(Cw),v=async()=>{var R,I;try{if(u(!0),Ne.size(o)&&Ne.size(o)>5){vn("error","You can upload maximum 5 files","top-right");return}const U=[],D=[],{message:z,...Y}=p;Ne.forEach(o,F=>{const V=`${Bm()}.${Ne.last(Ne.split(F.name,"."))}`;U.push({name:V,title:F.name,size:F.size,type:"conversation_activity_attachment"}),D.push({file:F,name:V})});const{data:j}=await y({variables:{inputData:{...Y,...r,type:"ticket",conversation_activities:[{message:z,is_customer_reply:!0,conversation_activity_files:U}]}}});if((R=j==null?void 0:j.createAConversationForPortal)!=null&&R.id){let F=[];if(Ne.size(D)){const V=D.map(async B=>{var q;try{const W=await $m({name:B.name,type:"conversation_activity_attachment",sub_type:(q=j==null?void 0:j.createAConversationForPortal)==null?void 0:q.id});if(W!=null&&W.error)return vn("error",`Failed to process ${B.name}`,"top-right"),null;const{key:K,url:te,file:ne,success:ce}=await e1({key:W.key,url:W.url},B.file);return ce?{key:K,url:te,file:ne}:null}catch(W){return console.error(`Error processing file ${B.name}:`,W),vn("error",`Failed to upload ${B.name}`,"top-right"),null}});F=(await Promise.all(V)).filter(Boolean)}i(V=>({...V,isNotHelpful:!0,notHelpfulModal:!1})),n&&n({conversation_id:(I=j==null?void 0:j.createAConversationForPortal)==null?void 0:I.id,title:p.title,message:p.message,conversation_activity_files:F})}}catch(U){vn("error","Something went wrong","top-right"),console.error("error",U)}finally{u(!1)}},x=(R,I)=>{h(U=>({...U,[R]:I}))},_=Ap(d.contact_person_email),T=!e&&(!((w=d.contact_person_name)!=null&&w.trim())||!_||!d.contact_person_email)||!((A=d.title)!=null&&A.trim())||!((k=d.message)!=null&&k.trim()),C=()=>b||c?!0:T;return S.jsxs("div",{className:`ed-px-5 ed-pb-5 ${m&&"ed-bg-white-light ed-rounded-md ed-py-2 ed-max-w-full md:ed-max-w-[85%] ed-ml-auto"}`,children:[!m&&S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"ed-flex ed-items-start ed-justify-between ed-pt-5 ed-sticky ed-top-0 ed-bg-white",children:[S.jsx("h5",{className:"ed-text-18 ed-font-semibold ed-text-border-dark ed-mb-5",children:"Get in touch"}),S.jsx(_i,{size:24,className:"ed-text-border-dark ed-cursor-pointer",onClick:()=>i(R=>({...R,notHelpfulModal:!1}))})]}),S.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."})]}),S.jsxs("div",{className:"ed-space-y-4 ed-mb-6",children:[!e&&S.jsxs(S.Fragment,{children:[S.jsx(is,{isRequired:!0,label:"Name",placeholder:"Enter your name",value:d.contact_person_name,onChange:R=>x("contact_person_name",R.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_name"}),S.jsx(is,{isRequired:!0,type:"email",label:"Email",placeholder:"Enter your email",value:d.contact_person_email,onChange:R=>x("contact_person_email",R.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.jsx("span",{className:"ed-text-red ed-font-12",children:"Please enter a valid email address!"})]}),S.jsx(is,{isRequired:!0,label:"Subject",placeholder:"Tell us what this feedback is about",value:d.title,onChange:R=>x("title",R.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"title"}),S.jsx(bw,{label:`${e?"Summary":"Description"}`,isRequired:!0,placeholder:"Add more details for us to resolve the issue",value:d.message,onChange:R=>x("message",R.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"message"}),S.jsx(Sw,{subtitle:"Supported file types: jpg, png, pdf (max 5MB)",selectedFiles:o,setSelectedFiles:s})]}),S.jsx("div",{className:"ed-flex ed-justify-end",children:S.jsx(rs,{title:"Submit",loaderText:"Submitting",fullWidthBtn:!0,disabled:C(),loader:b||c,callBack:v})})]})};var L1={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:"serial"},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:369}};L1.loc.source={body:`query GET_AN_ARTICLE($queryData: EntityIdOrSlugInputType!) {
158
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Wu(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Wu(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Wu(r,e)}),t.definitions&&t.definitions.forEach(function(r){Wu(r,e)})}var a1={};(function(){Hu.definitions.forEach(function(e){if(e.name){var n=new Set;Wu(e,n),a1[e.name.value]=n}})})();function Tw(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function sP(t,e){var n={kind:t.kind,definitions:[Tw(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=a1[e]||new Set,i=new Set,a=new Set;for(r.forEach(function(s){a.add(s)});a.size>0;){var o=a;a=new Set,o.forEach(function(s){if(!i.has(s)){i.add(s);var c=a1[s]||new Set;c.forEach(function(u){a.add(u)})}})}return i.forEach(function(s){var c=Tw(t,s);c&&n.definitions.push(c)}),n}sP(Hu,"GET_CATEGORIES");const lP=({setSelectedCategory:t})=>{const[e,n]=N.useState([]),[r,i]=N.useState({limit:50,offset:0,order:[["serial","asc"]]}),[a,o]=N.useState({}),[s,c]=N.useState({initialLoading:!0,fetchMoreLoading:!0}),{data:u,error:d}=ou(Hu,{errorPolicy:"all",fetchPolicy:"no-cache",variables:{queryData:{type:"ARTICLE"},optionData:r}}),h=()=>{c({initialLoading:!1,fetchMoreLoading:!0});const p=r.offset+r.limit;i(y=>({...y,offset:p}))},m=!!(a!=null&&a.filtered_rows&&Ne.size(e)<(a==null?void 0:a.filtered_rows));return N.useEffect(()=>{if(u!=null&&u.getCategories){const p=u.getCategories.data;(r==null?void 0:r.offset)===0?n(p):n([...e,...p]),o(u.getCategories.meta_data),c({initialLoading:!1,fetchMoreLoading:!1})}d&&console.error(d)},[u,d]),s.initialLoading?S.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:S.jsx(Ki,{})}):S.jsx(i1,{dataLength:Ne.size(e),next:h,hasMore:m,scrollableTarget:"root-scrollbar",loader:"",children:S.jsxs("div",{className:"ed-px-3",children:[e==null?void 0:e.map(p=>S.jsxs("div",{role:"button",tabIndex:0,onClick:()=>t(p==null?void 0:p.id),className:"ed-category-card ed-py-3 ed-px-5 ed-mt-3 ed-rounded-lg ed-border ed-border-border-light ed-hover:shadow-lg ed-duration-300 ed-transition-all ed-cursor-pointer",children:[S.jsx("h6",{className:"ed-text-16 ed-font-semibold ed-text-border-dark ed-category-title",children:p==null?void 0:p.name}),S.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-category-desc ed-my-2 ed-duration-300 ed-transition-all",children:p==null?void 0:p.description}),S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-justify-between",children:[S.jsxs("span",{className:"ed-text-14 ed-text-border ed-category-count ed-duration-300 ed-transition-all",children:[p==null?void 0:p.total_articles," article",(p==null?void 0:p.total_articles)>1&&"s"]}),S.jsx("div",{className:"ed-chevron-wrapper ed-size-4 ed--translate-x-2 ed-opacity-0 ed-duration-300 ed-transition-all",children:S.jsx(Zi,{className:"ed-text-border ed-size-4"})})]})]},p==null?void 0:p.id)),(s==null?void 0:s.fetchMoreLoading)&&S.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:S.jsx(Ki,{})})]})})};var Gu={exports:{}},cP=Gu.exports,Ow;function uP(){return Ow||(Ow=1,(function(t,e){(function(n,r){t.exports=r()})(cP,(function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",c="hour",u="day",d="week",h="month",m="quarter",p="year",y="date",b="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|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,_={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(j){var F=["th","st","nd","rd"],V=j%100;return"["+j+(F[(V-20)%10]||F[V]||F[0])+"]"}},T=function(j,F,V){var G=String(j);return!G||G.length>=F?j:""+Array(F+1-G.length).join(V)+j},C={s:T,z:function(j){var F=-j.utcOffset(),V=Math.abs(F),G=Math.floor(V/60),B=V%60;return(F<=0?"+":"-")+T(G,2,"0")+":"+T(B,2,"0")},m:function j(F,V){if(F.date()<V.date())return-j(V,F);var G=12*(V.year()-F.year())+(V.month()-F.month()),B=F.clone().add(G,h),q=V-B<0,W=F.clone().add(G+(q?-1:1),h);return+(-(G+(V-B)/(q?B-W:W-B))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:h,y:p,w:d,d:u,D:y,h:c,m:s,s:o,ms:a,Q:m}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},w="en",A={};A[w]=_;var k="$isDayjsObject",R=function(j){return j instanceof z||!(!j||!j[k])},I=function j(F,V,G){var B;if(!F)return w;if(typeof F=="string"){var q=F.toLowerCase();A[q]&&(B=q),V&&(A[q]=V,B=q);var W=F.split("-");if(!B&&W.length>1)return j(W[0])}else{var K=F.name;A[K]=F,B=K}return!G&&B&&(w=B),B||!G&&w},U=function(j,F){if(R(j))return j.clone();var V=typeof F=="object"?F:{};return V.date=j,V.args=arguments,new z(V)},D=C;D.l=I,D.i=R,D.w=function(j,F){return U(j,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var z=(function(){function j(V){this.$L=I(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[k]=!0}var F=j.prototype;return F.parse=function(V){this.$d=(function(G){var B=G.date,q=G.utc;if(B===null)return new Date(NaN);if(D.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var W=B.match(v);if(W){var K=W[2]-1||0,te=(W[7]||"0").substring(0,3);return q?new Date(Date.UTC(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,te)):new Date(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,te)}}return new Date(B)})(V),this.init()},F.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},F.$utils=function(){return D},F.isValid=function(){return this.$d.toString()!==b},F.isSame=function(V,G){var B=U(V);return this.startOf(G)<=B&&B<=this.endOf(G)},F.isAfter=function(V,G){return U(V)<this.startOf(G)},F.isBefore=function(V,G){return this.endOf(G)<U(V)},F.$g=function(V,G,B){return D.u(V)?this[G]:this.set(B,V)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(V,G){var B=this,q=!!D.u(G)||G,W=D.p(V),K=function(ve,he){var be=D.w(B.$u?Date.UTC(B.$y,he,ve):new Date(B.$y,he,ve),B);return q?be:be.endOf(u)},te=function(ve,he){return D.w(B.toDate()[ve].apply(B.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(he)),B)},ne=this.$W,ce=this.$M,ie=this.$D,J="set"+(this.$u?"UTC":"");switch(W){case p:return q?K(1,0):K(31,11);case h:return q?K(1,ce):K(0,ce+1);case d:var ue=this.$locale().weekStart||0,le=(ne<ue?ne+7:ne)-ue;return K(q?ie-le:ie+(6-le),ce);case u:case y:return te(J+"Hours",0);case c:return te(J+"Minutes",1);case s:return te(J+"Seconds",2);case o:return te(J+"Milliseconds",3);default:return this.clone()}},F.endOf=function(V){return this.startOf(V,!1)},F.$set=function(V,G){var B,q=D.p(V),W="set"+(this.$u?"UTC":""),K=(B={},B[u]=W+"Date",B[y]=W+"Date",B[h]=W+"Month",B[p]=W+"FullYear",B[c]=W+"Hours",B[s]=W+"Minutes",B[o]=W+"Seconds",B[a]=W+"Milliseconds",B)[q],te=q===u?this.$D+(G-this.$W):G;if(q===h||q===p){var ne=this.clone().set(y,1);ne.$d[K](te),ne.init(),this.$d=ne.set(y,Math.min(this.$D,ne.daysInMonth())).$d}else K&&this.$d[K](te);return this.init(),this},F.set=function(V,G){return this.clone().$set(V,G)},F.get=function(V){return this[D.p(V)]()},F.add=function(V,G){var B,q=this;V=Number(V);var W=D.p(G),K=function(ce){var ie=U(q);return D.w(ie.date(ie.date()+Math.round(ce*V)),q)};if(W===h)return this.set(h,this.$M+V);if(W===p)return this.set(p,this.$y+V);if(W===u)return K(1);if(W===d)return K(7);var te=(B={},B[s]=r,B[c]=i,B[o]=n,B)[W]||1,ne=this.$d.getTime()+V*te;return D.w(ne,this)},F.subtract=function(V,G){return this.add(-1*V,G)},F.format=function(V){var G=this,B=this.$locale();if(!this.isValid())return B.invalidDate||b;var q=V||"YYYY-MM-DDTHH:mm:ssZ",W=D.z(this),K=this.$H,te=this.$m,ne=this.$M,ce=B.weekdays,ie=B.months,J=B.meridiem,ue=function(he,be,ee,Ie){return he&&(he[be]||he(G,q))||ee[be].slice(0,Ie)},le=function(he){return D.s(K%12||12,he,"0")},ve=J||function(he,be,ee){var Ie=he<12?"AM":"PM";return ee?Ie.toLowerCase():Ie};return q.replace(x,(function(he,be){return be||(function(ee){switch(ee){case"YY":return String(G.$y).slice(-2);case"YYYY":return D.s(G.$y,4,"0");case"M":return ne+1;case"MM":return D.s(ne+1,2,"0");case"MMM":return ue(B.monthsShort,ne,ie,3);case"MMMM":return ue(ie,ne);case"D":return G.$D;case"DD":return D.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return ue(B.weekdaysMin,G.$W,ce,2);case"ddd":return ue(B.weekdaysShort,G.$W,ce,3);case"dddd":return ce[G.$W];case"H":return String(K);case"HH":return D.s(K,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return ve(K,te,!0);case"A":return ve(K,te,!1);case"m":return String(te);case"mm":return D.s(te,2,"0");case"s":return String(G.$s);case"ss":return D.s(G.$s,2,"0");case"SSS":return D.s(G.$ms,3,"0");case"Z":return W}return null})(he)||W.replace(":","")}))},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(V,G,B){var q,W=this,K=D.p(G),te=U(V),ne=(te.utcOffset()-this.utcOffset())*r,ce=this-te,ie=function(){return D.m(W,te)};switch(K){case p:q=ie()/12;break;case h:q=ie();break;case m:q=ie()/3;break;case d:q=(ce-ne)/6048e5;break;case u:q=(ce-ne)/864e5;break;case c:q=ce/i;break;case s:q=ce/r;break;case o:q=ce/n;break;default:q=ce}return B?q:D.a(q)},F.daysInMonth=function(){return this.endOf(h).$D},F.$locale=function(){return A[this.$L]},F.locale=function(V,G){if(!V)return this.$L;var B=this.clone(),q=I(V,G,!0);return q&&(B.$L=q),B},F.clone=function(){return D.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},j})(),Y=z.prototype;return U.prototype=Y,[["$ms",a],["$s",o],["$m",s],["$H",c],["$W",u],["$M",h],["$y",p],["$D",y]].forEach((function(j){Y[j[1]]=function(F){return this.$g(F,j[0],j[1])}})),U.extend=function(j,F){return j.$i||(j(F,z,U),j.$i=!0),U},U.locale=I,U.isDayjs=R,U.unix=function(j){return U(1e3*j)},U.en=A[w],U.Ls=A,U.p={},U}))})(Gu)),Gu.exports}var fP=uP();const os=qa(fP);var Yu={exports:{}},o1={},Rw;function Nw(){if(Rw)return o1;Rw=1;function t(e){return e&&e.__esModule?e:{default:e}}return o1._=t,o1}var Ku={exports:{}},s1={},Pw;function Iw(){return Pw||(Pw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,s){for(var c in s)Object.defineProperty(o,c,{enumerable:!0,get:s[c]})}e(t,{assign:function(){return a},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}});function n(o){const s={};return o.forEach((c,u)=>{typeof s[u]>"u"?s[u]=c:Array.isArray(s[u])?s[u].push(c):s[u]=[s[u],c]}),s}function r(o){return typeof o=="string"||typeof o=="number"&&!isNaN(o)||typeof o=="boolean"?String(o):""}function i(o){const s=new URLSearchParams;return Object.entries(o).forEach(c=>{let[u,d]=c;Array.isArray(d)?d.forEach(h=>s.append(u,r(h))):s.set(u,r(d))}),s}function a(o){for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];return c.forEach(d=>{Array.from(d.keys()).forEach(h=>o.delete(h)),d.forEach((h,m)=>o.append(m,h))}),o}})(s1)),s1}var l1={},c1={},Mw;function dP(){if(Mw)return c1;Mw=1;function t(n){if(typeof WeakMap!="function")return null;var r=new WeakMap,i=new WeakMap;return(t=function(a){return a?i:r})(n)}function e(n,r){if(!r&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var i=t(r);if(i&&i.has(n))return i.get(n);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in n)if(s!=="default"&&Object.prototype.hasOwnProperty.call(n,s)){var c=o?Object.getOwnPropertyDescriptor(n,s):null;c&&(c.get||c.set)?Object.defineProperty(a,s,c):a[s]=n[s]}return a.default=n,i&&i.set(n,a),a}return c1._=e,c1}var Lw;function Fw(){return Lw||(Lw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(c,u){for(var d in u)Object.defineProperty(c,d,{enumerable:!0,get:u[d]})}e(t,{formatUrl:function(){return a},formatWithValidation:function(){return s},urlObjectKeys:function(){return o}});const r=dP()._(Iw()),i=/https?|ftp|gopher|file/;function a(c){let{auth:u,hostname:d}=c,h=c.protocol||"",m=c.pathname||"",p=c.hash||"",y=c.query||"",b=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",c.host?b=u+c.host:d&&(b=u+(~d.indexOf(":")?"["+d+"]":d),c.port&&(b+=":"+c.port)),y&&typeof y=="object"&&(y=String(r.urlQueryToSearchParams(y)));let v=c.search||y&&"?"+y||"";return h&&!h.endsWith(":")&&(h+=":"),c.slashes||(!h||i.test(h))&&b!==!1?(b="//"+(b||""),m&&m[0]!=="/"&&(m="/"+m)):b||(b=""),p&&p[0]!=="#"&&(p="#"+p),v&&v[0]!=="?"&&(v="?"+v),m=m.replace(/[?#]/g,encodeURIComponent),v=v.replace("#","%23"),""+h+b+m+v+p}const o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(c){return a(c)}})(l1)),l1}var u1={},jw;function hP(){return jw||(jw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return e}});function e(n,r){const i={};return Object.keys(n).forEach(a=>{r.includes(a)||(i[a]=n[a])}),i}})(u1)),u1}var f1={},Dw;function Zu(){return Dw||(Dw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(C,w){for(var A in w)Object.defineProperty(C,A,{enumerable:!0,get:w[A]})}e(t,{DecodeError:function(){return y},MiddlewareNotFoundError:function(){return _},MissingStaticPage:function(){return x},NormalizeError:function(){return b},PageNotFoundError:function(){return v},SP:function(){return m},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return c},getLocationOrigin:function(){return o},getURL:function(){return s},isAbsoluteUrl:function(){return a},isResSent:function(){return u},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return T}});const n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(C){let w=!1,A;return function(){for(var k=arguments.length,R=new Array(k),I=0;I<k;I++)R[I]=arguments[I];return w||(w=!0,A=C(...R)),A}}const i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=C=>i.test(C);function o(){const{protocol:C,hostname:w,port:A}=window.location;return C+"//"+w+(A?":"+A:"")}function s(){const{href:C}=window.location,w=o();return C.substring(w.length)}function c(C){return typeof C=="string"?C:C.displayName||C.name||"Unknown"}function u(C){return C.finished||C.headersSent}function d(C){const w=C.split("?");return w[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(w[1]?"?"+w.slice(1).join("?"):"")}async function h(C,w){{var A;if((A=C.prototype)!=null&&A.getInitialProps){const I='"'+c(C)+'.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(I)}}const k=w.res||w.ctx&&w.ctx.res;if(!C.getInitialProps)return w.ctx&&w.Component?{pageProps:await h(w.Component,w.ctx)}:{};const R=await C.getInitialProps(w);if(k&&u(k))return R;if(!R){const I='"'+c(C)+'.getInitialProps()" should resolve to an object. But found "'+R+'" instead.';throw new Error(I)}return Object.keys(R).length===0&&!w.ctx&&console.warn(""+c(C)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),R}const m=typeof performance<"u",p=m&&["mark","measure","getEntriesByName"].every(C=>typeof performance[C]=="function");class y extends Error{}class b extends Error{}class v extends Error{constructor(w){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+w}}class x extends Error{constructor(w,A){super(),this.message="Failed to load static file for page: "+w+" "+A}}class _ extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function T(C){return JSON.stringify({message:C.message,stack:C.stack})}})(f1)),f1}var Qu={exports:{}},d1={},Vw;function Uw(){return Vw||(Vw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(n){return n.replace(/\/$/,"")||"/"}})(d1)),d1}var h1={},Bw;function p1(){return Bw||(Bw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return e}});function e(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:""}}})(h1)),h1}var zw;function qu(){return zw||(zw=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});const r=Uw(),i=p1(),a=o=>{if(!o.startsWith("/")||n.__NEXT_MANUAL_TRAILING_SLASH)return o;const{pathname:s,query:c,hash:u}=(0,i.parsePath)(o);return n.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(s)?""+(0,r.removeTrailingSlash)(s)+c+u:s.endsWith("/")?""+s+c+u:s+"/"+c+u:""+(0,r.removeTrailingSlash)(s)+c+u};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Qu,Qu.exports)),Qu.exports}var m1={},Ju={exports:{}},g1={},Hw;function Ww(){return Hw||(Hw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const e=p1();function n(r,i){if(typeof r!="string")return!1;const{pathname:a}=(0,e.parsePath)(r);return a===i||a.startsWith(i+"/")}})(g1)),g1}var Gw;function pP(){return Gw||(Gw=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"hasBasePath",{enumerable:!0,get:function(){return a}});const r=Ww(),i=n.__NEXT_ROUTER_BASEPATH||"";function a(o){return(0,r.pathHasPrefix)(o,i)}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Ju,Ju.exports)),Ju.exports}var Yw;function Kw(){return Yw||(Yw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return r}});const e=Zu(),n=pP();function r(i){if(!(0,e.isAbsoluteUrl)(i))return!0;try{const a=(0,e.getLocationOrigin)(),o=new URL(i,a);return o.origin===a&&(0,n.hasBasePath)(o.pathname)}catch{return!1}}})(m1)),m1}var v1={},y1={},Zw;function mP(){return Zw||(Zw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(a,o){for(var s in o)Object.defineProperty(a,s,{enumerable:!0,get:o[s]})}e(t,{getSortedRouteObjects:function(){return i},getSortedRoutes:function(){return r}});class n{insert(o){this._insert(o.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(o){o===void 0&&(o="/");const s=[...this.children.keys()].sort();this.slugName!==null&&s.splice(s.indexOf("[]"),1),this.restSlugName!==null&&s.splice(s.indexOf("[...]"),1),this.optionalRestSlugName!==null&&s.splice(s.indexOf("[[...]]"),1);const c=s.map(u=>this.children.get(u)._smoosh(""+o+u+"/")).reduce((u,d)=>[...u,...d],[]);if(this.slugName!==null&&c.push(...this.children.get("[]")._smoosh(o+"["+this.slugName+"]/")),!this.placeholder){const u=o==="/"?"/":o.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+']]").');c.unshift(u)}return this.restSlugName!==null&&c.push(...this.children.get("[...]")._smoosh(o+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&c.push(...this.children.get("[[...]]")._smoosh(o+"[[..."+this.optionalRestSlugName+"]]/")),c}_insert(o,s,c){if(o.length===0){this.placeholder=!1;return}if(c)throw new Error("Catch-all must be the last part of the URL.");let u=o[0];if(u.startsWith("[")&&u.endsWith("]")){let m=function(p,y){if(p!==null&&p!==y)throw new Error("You cannot use different slug names for the same dynamic path ('"+p+"' !== '"+y+"').");s.forEach(b=>{if(b===y)throw new Error('You cannot have the same slug name "'+y+'" repeat within a single dynamic path');if(b.replace(/\W/g,"")===u.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+b+'" and "'+y+'" differ only by non-word symbols within a single dynamic path')}),s.push(y)},d=u.slice(1,-1),h=!1;if(d.startsWith("[")&&d.endsWith("]")&&(d=d.slice(1,-1),h=!0),d.startsWith("…"))throw new Error("Detected a three-dot character ('…') at ('"+d+"'). Did you mean ('...')?");if(d.startsWith("...")&&(d=d.substring(3),c=!0),d.startsWith("[")||d.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+d+"').");if(d.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+d+"').");if(c)if(h){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 "'+o[0]+'" ).');m(this.optionalRestSlugName,d),this.optionalRestSlugName=d,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 "'+o[0]+'").');m(this.restSlugName,d),this.restSlugName=d,u="[...]"}else{if(h)throw new Error('Optional route parameters are not yet supported ("'+o[0]+'").');m(this.slugName,d),this.slugName=d,u="[]"}}this.children.has(u)||this.children.set(u,new n),this.children.get(u)._insert(o.slice(1),s,c)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(a){const o=new n;return a.forEach(s=>o.insert(s)),o.smoosh()}function i(a,o){const s={},c=[];for(let d=0;d<a.length;d++){const h=o(a[d]);s[h]=d,c[d]=h}return r(c).map(d=>a[s[d]])}})(y1)),y1}var b1={},w1={},S1={},E1={},Qw;function gP(){return Qw||(Qw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return e}});function e(n){return n.startsWith("/")?n:"/"+n}})(E1)),E1}var C1={},qw;function vP(){return qw||(qw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}e(t,{DEFAULT_SEGMENT_KEY:function(){return o},PAGE_SEGMENT_KEY:function(){return a},addSearchParamsIfPageSegment:function(){return i},isGroupSegment:function(){return n},isParallelRouteSegment:function(){return r}});function n(s){return s[0]==="("&&s.endsWith(")")}function r(s){return s.startsWith("@")&&s!=="@children"}function i(s,c){if(s.includes(a)){const d=JSON.stringify(c);return d!=="{}"?a+"?"+d:a}return s}const a="__PAGE__",o="__DEFAULT__"})(C1)),C1}var Jw;function yP(){return Jw||(Jw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,s){for(var c in s)Object.defineProperty(o,c,{enumerable:!0,get:s[c]})}e(t,{normalizeAppPath:function(){return i},normalizeRscURL:function(){return a}});const n=gP(),r=vP();function i(o){return(0,n.ensureLeadingSlash)(o.split("/").reduce((s,c,u,d)=>!c||(0,r.isGroupSegment)(c)||c[0]==="@"||(c==="page"||c==="route")&&u===d.length-1?s:s+"/"+c,""))}function a(o){return o.replace(/\.rsc($|\?)/,"$1")}})(S1)),S1}var Xw;function $w(){return Xw||(Xw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,s){for(var c in s)Object.defineProperty(o,c,{enumerable:!0,get:s[c]})}e(t,{INTERCEPTION_ROUTE_MARKERS:function(){return r},extractInterceptionRouteInformation:function(){return a},isInterceptionRouteAppPath:function(){return i}});const n=yP(),r=["(..)(..)","(.)","(..)","(...)"];function i(o){return o.split("/").find(s=>r.find(c=>s.startsWith(c)))!==void 0}function a(o){let s,c,u;for(const d of o.split("/"))if(c=r.find(h=>d.startsWith(h)),c){[s,u]=o.split(c,2);break}if(!s||!c||!u)throw new Error(`Invalid interception route: ${o}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(s=(0,n.normalizeAppPath)(s),c){case"(.)":s==="/"?u=`/${u}`:u=s+"/"+u;break;case"(..)":if(s==="/")throw new Error(`Invalid interception route: ${o}. Cannot use (..) marker at the root level, use (.) instead.`);u=s.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const d=s.split("/");if(d.length<=2)throw new Error(`Invalid interception route: ${o}. Cannot use (..)(..) marker at the root level or one level up.`);u=d.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:s,interceptedRoute:u}}})(w1)),w1}var eS;function bP(){return eS||(eS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const e=$w(),n=/\/\[[^/]+?\](?=\/|$)/;function r(i){return(0,e.isInterceptionRouteAppPath)(i)&&(i=(0,e.extractInterceptionRouteInformation)(i).interceptedRoute),n.test(i)}})(b1)),b1}var tS;function wP(){return tS||(tS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(i,a){for(var o in a)Object.defineProperty(i,o,{enumerable:!0,get:a[o]})}e(t,{getSortedRouteObjects:function(){return n.getSortedRouteObjects},getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return r.isDynamicRoute}});const n=mP(),r=bP()})(v1)),v1}var x1={},_1={},nS;function SP(){return nS||(nS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return n}});const e=Zu();function n(r){let{re:i,groups:a}=r;return o=>{const s=i.exec(o);if(!s)return!1;const c=d=>{try{return decodeURIComponent(d)}catch{throw new e.DecodeError("failed to decode param")}},u={};return Object.keys(a).forEach(d=>{const h=a[d],m=s[h.pos];m!==void 0&&(u[d]=~m.indexOf("/")?m.split("/").map(p=>c(p)):h.repeat?[c(m)]:c(m))}),u}}})(_1)),_1}var A1={},k1={},rS;function EP(){return rS||(rS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(nt,Le){for(var Ze in Le)Object.defineProperty(nt,Ze,{enumerable:!0,get:Le[Ze]})}e(t,{ACTION_SUFFIX:function(){return h},APP_DIR_ALIAS:function(){return V},CACHE_ONE_YEAR:function(){return R},DOT_NEXT_ALIAS:function(){return j},ESLINT_DEFAULT_DIRS:function(){return Fe},GSP_NO_RETURNED_VALUE:function(){return ve},GSSP_COMPONENT_MEMBER_ERROR:function(){return ee},GSSP_NO_RETURNED_VALUE:function(){return he},INFINITE_CACHE:function(){return I},INSTRUMENTATION_HOOK_FILENAME:function(){return z},MATCHED_PATH_HEADER:function(){return i},MIDDLEWARE_FILENAME:function(){return U},MIDDLEWARE_LOCATION_REGEXP:function(){return D},NEXT_BODY_SUFFIX:function(){return y},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return k},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return x},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return _},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return v},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return A},NEXT_CACHE_TAGS_HEADER:function(){return b},NEXT_CACHE_TAG_MAX_ITEMS:function(){return C},NEXT_CACHE_TAG_MAX_LENGTH:function(){return w},NEXT_DATA_SUFFIX:function(){return m},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return r},NEXT_META_SUFFIX:function(){return p},NEXT_QUERY_PARAM_PREFIX:function(){return n},NEXT_RESUME_HEADER:function(){return T},NON_STANDARD_NODE_ENV:function(){return Ie},PAGES_DIR_ALIAS:function(){return Y},PRERENDER_REVALIDATE_HEADER:function(){return a},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return o},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return ne},ROOT_DIR_ALIAS:function(){return F},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return te},RSC_ACTION_ENCRYPTION_ALIAS:function(){return K},RSC_ACTION_PROXY_ALIAS:function(){return q},RSC_ACTION_VALIDATE_ALIAS:function(){return B},RSC_CACHE_WRAPPER_ALIAS:function(){return W},RSC_MOD_REF_PROXY_ALIAS:function(){return G},RSC_PREFETCH_SUFFIX:function(){return s},RSC_SEGMENTS_DIR_SUFFIX:function(){return c},RSC_SEGMENT_SUFFIX:function(){return u},RSC_SUFFIX:function(){return d},SERVER_PROPS_EXPORT_ERROR:function(){return le},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return ie},SERVER_PROPS_SSG_CONFLICT:function(){return J},SERVER_RUNTIME:function(){return at},SSG_FALLBACK_EXPORT_ERROR:function(){return ye},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return ce},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return ue},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return be},WEBPACK_LAYERS:function(){return tt},WEBPACK_RESOURCE_QUERIES:function(){return Ae}});const n="nxtP",r="nxtI",i="x-matched-path",a="x-prerender-revalidate",o="x-prerender-revalidate-if-generated",s=".prefetch.rsc",c=".segments",u=".segment.rsc",d=".rsc",h=".action",m=".json",p=".meta",y=".body",b="x-next-cache-tags",v="x-next-cache-soft-tags",x="x-next-revalidated-tags",_="x-next-revalidate-tag-token",T="next-resume",C=128,w=256,A=1024,k="_N_T_",R=31536e3,I=4294967294,U="middleware",D=`(?:src/)?${U}`,z="instrumentation",Y="private-next-pages",j="private-dot-next",F="private-next-root-dir",V="private-next-app-dir",G="private-next-rsc-mod-ref-proxy",B="private-next-rsc-action-validate",q="private-next-rsc-server-reference",W="private-next-rsc-cache-wrapper",K="private-next-rsc-action-encryption",te="private-next-rsc-action-client-wrapper",ne="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",ce="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",ie="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",J="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",ue="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",le="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",ve="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",he="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",be="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",ee="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",Ie='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',ye="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",Fe=["app","pages","components","lib","src"],at={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},Pe={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser"},tt={...Pe,GROUP:{builtinReact:[Pe.reactServerComponents,Pe.actionBrowser],serverOnly:[Pe.reactServerComponents,Pe.actionBrowser,Pe.instrument,Pe.middleware],neutralTarget:[Pe.api],clientOnly:[Pe.serverSideRendering,Pe.appPagesBrowser],bundled:[Pe.reactServerComponents,Pe.actionBrowser,Pe.serverSideRendering,Pe.appPagesBrowser,Pe.shared,Pe.instrument],appPages:[Pe.reactServerComponents,Pe.serverSideRendering,Pe.appPagesBrowser,Pe.actionBrowser]}},Ae={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}})(k1)),k1}var T1={},iS;function CP(){return iS||(iS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});const e=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function r(i){return e.test(i)?i.replace(n,"\\$&"):i}})(T1)),T1}var aS;function xP(){return aS||(aS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(v,x){for(var _ in x)Object.defineProperty(v,_,{enumerable:!0,get:x[_]})}e(t,{getNamedMiddlewareRegex:function(){return b},getNamedRouteRegex:function(){return y},getRouteRegex:function(){return d},parseParameter:function(){return s}});const n=EP(),r=$w(),i=CP(),a=Uw(),o=/\[((?:\[.*\])|.+)\]/;function s(v){const x=v.match(o);return c(x?x[1]:v)}function c(v){const x=v.startsWith("[")&&v.endsWith("]");x&&(v=v.slice(1,-1));const _=v.startsWith("...");return _&&(v=v.slice(3)),{key:v,repeat:_,optional:x}}function u(v){const x=(0,a.removeTrailingSlash)(v).slice(1).split("/"),_={};let T=1;return{parameterizedRoute:x.map(C=>{const w=r.INTERCEPTION_ROUTE_MARKERS.find(k=>C.startsWith(k)),A=C.match(o);if(w&&A){const{key:k,optional:R,repeat:I}=c(A[1]);return _[k]={pos:T++,repeat:I,optional:R},"/"+(0,i.escapeStringRegexp)(w)+"([^/]+?)"}else if(A){const{key:k,repeat:R,optional:I}=c(A[1]);return _[k]={pos:T++,repeat:R,optional:I},R?I?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,i.escapeStringRegexp)(C)}).join(""),groups:_}}function d(v){const{parameterizedRoute:x,groups:_}=u(v);return{re:new RegExp("^"+x+"(?:/)?$"),groups:_}}function h(){let v=0;return()=>{let x="",_=++v;for(;_>0;)x+=String.fromCharCode(97+(_-1)%26),_=Math.floor((_-1)/26);return x}}function m(v){let{interceptionMarker:x,getSafeRouteKey:_,segment:T,routeKeys:C,keyPrefix:w}=v;const{key:A,optional:k,repeat:R}=c(T);let I=A.replace(/\W/g,"");w&&(I=""+w+I);let U=!1;(I.length===0||I.length>30)&&(U=!0),isNaN(parseInt(I.slice(0,1)))||(U=!0),U&&(I=_()),w?C[I]=""+w+A:C[I]=A;const D=x?(0,i.escapeStringRegexp)(x):"";return R?k?"(?:/"+D+"(?<"+I+">.+?))?":"/"+D+"(?<"+I+">.+?)":"/"+D+"(?<"+I+">[^/]+?)"}function p(v,x){const _=(0,a.removeTrailingSlash)(v).slice(1).split("/"),T=h(),C={};return{namedParameterizedRoute:_.map(w=>{const A=r.INTERCEPTION_ROUTE_MARKERS.some(R=>w.startsWith(R)),k=w.match(/\[((?:\[.*\])|.+)\]/);if(A&&k){const[R]=w.split(k[0]);return m({getSafeRouteKey:T,interceptionMarker:R,segment:k[1],routeKeys:C,keyPrefix:x?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0})}else return k?m({getSafeRouteKey:T,segment:k[1],routeKeys:C,keyPrefix:x?n.NEXT_QUERY_PARAM_PREFIX:void 0}):"/"+(0,i.escapeStringRegexp)(w)}).join(""),routeKeys:C}}function y(v,x){const _=p(v,x);return{...d(v),namedRegex:"^"+_.namedParameterizedRoute+"(?:/)?$",routeKeys:_.routeKeys}}function b(v,x){const{parameterizedRoute:_}=u(v),{catchAll:T=!0}=x;if(_==="/")return{namedRegex:"^/"+(T?".*":"")+"$"};const{namedParameterizedRoute:C}=p(v,!1);let w=T?"(?:(/.*)?)":"";return{namedRegex:"^"+C+w+"$"}}})(A1)),A1}var oS;function _P(){return oS||(oS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return r}});const e=SP(),n=xP();function r(i,a,o){let s="";const c=(0,n.getRouteRegex)(i),u=c.groups,d=(a!==i?(0,e.getRouteMatcher)(c)(a):"")||o;s=i;const h=Object.keys(u);return h.every(m=>{let p=d[m]||"";const{repeat:y,optional:b}=u[m];let v="["+(y?"...":"")+m+"]";return b&&(v=(p?"":"/")+"["+v+"]"),y&&!Array.isArray(p)&&(p=[p]),(b||m in d)&&(s=s.replace(v,y?p.map(x=>encodeURIComponent(x)).join("/"):encodeURIComponent(p))||"/")})||(s=""),{params:h,result:s}}})(x1)),x1}var sS;function AP(){return sS||(sS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveHref",{enumerable:!0,get:function(){return d}});const n=Iw(),r=Fw(),i=hP(),a=Zu(),o=qu(),s=Kw(),c=wP(),u=_P();function d(h,m,p){let y,b=typeof m=="string"?m:(0,r.formatWithValidation)(m);const v=b.match(/^[a-zA-Z]{1,}:\/\//),x=v?b.slice(v[0].length):b;if((x.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+b+"' passed to next/router in page: '"+h.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const T=(0,a.normalizeRepeatedSlashes)(x);b=(v?v[0]:"")+T}if(!(0,s.isLocalURL)(b))return p?[b]:b;try{y=new URL(b.startsWith("#")?h.asPath:h.pathname,"http://n")}catch{y=new URL("/","http://n")}try{const T=new URL(b,y);T.pathname=(0,o.normalizePathTrailingSlash)(T.pathname);let C="";if((0,c.isDynamicRoute)(T.pathname)&&T.searchParams&&p){const A=(0,n.searchParamsToUrlQuery)(T.searchParams),{result:k,params:R}=(0,u.interpolateAs)(T.pathname,T.pathname,A);k&&(C=(0,r.formatWithValidation)({pathname:k,hash:T.hash,query:(0,i.omit)(A,R)}))}const w=T.origin===y.origin?T.href.slice(T.origin.length):T.href;return p?[w,C||w]:w}catch{return p?[b]:b}}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Ku,Ku.exports)),Ku.exports}var Xu={exports:{}},O1={},R1={},lS;function cS(){return lS||(lS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return n}});const e=p1();function n(r,i){if(!r.startsWith("/")||!i)return r;const{pathname:a,query:o,hash:s}=(0,e.parsePath)(r);return""+i+a+o+s}})(R1)),R1}var uS;function kP(){return uS||(uS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}});const e=cS(),n=Ww();function r(i,a,o,s){if(!a||a===o)return i;const c=i.toLowerCase();return!s&&((0,n.pathHasPrefix)(c,"/api")||(0,n.pathHasPrefix)(c,"/"+a.toLowerCase()))?i:(0,e.addPathPrefix)(i,"/"+a)}})(O1)),O1}var fS;function TP(){return fS||(fS=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return i}});const r=qu(),i=function(a){for(var o=arguments.length,s=new Array(o>1?o-1:0),c=1;c<o;c++)s[c-1]=arguments[c];return n.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(kP().addLocale(a,...s)):a};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Xu,Xu.exports)),Xu.exports}var N1={},dS;function OP(){return dS||(dS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});const r=Nw()._(N).default.createContext(null);r.displayName="RouterContext"})(N1)),N1}var $u={exports:{}},ef={exports:{}},hS;function RP(){return hS||(hS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});function n(a,o){for(var s in o)Object.defineProperty(a,s,{enumerable:!0,get:o[s]})}n(e,{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 e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(ef,ef.exports)),ef.exports}var pS;function NP(){return pS||(pS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return u}});const n=N,r=RP(),i=typeof IntersectionObserver=="function",a=new Map,o=[];function s(d){const h={root:d.root||null,margin:d.rootMargin||""},m=o.find(v=>v.root===h.root&&v.margin===h.margin);let p;if(m&&(p=a.get(m),p))return p;const y=new Map,b=new IntersectionObserver(v=>{v.forEach(x=>{const _=y.get(x.target),T=x.isIntersecting||x.intersectionRatio>0;_&&T&&_(T)})},d);return p={id:h,observer:b,elements:y},o.push(h),a.set(h,p),p}function c(d,h,m){const{id:p,observer:y,elements:b}=s(m);return b.set(d,h),y.observe(d),function(){if(b.delete(d),y.unobserve(d),b.size===0){y.disconnect(),a.delete(p);const x=o.findIndex(_=>_.root===p.root&&_.margin===p.margin);x>-1&&o.splice(x,1)}}}function u(d){let{rootRef:h,rootMargin:m,disabled:p}=d;const y=p||!i,[b,v]=(0,n.useState)(!1),x=(0,n.useRef)(null),_=(0,n.useCallback)(C=>{x.current=C},[]);(0,n.useEffect)(()=>{if(i){if(y||b)return;const C=x.current;if(C&&C.tagName)return c(C,A=>A&&v(A),{root:h==null?void 0:h.current,rootMargin:m})}else if(!b){const C=(0,r.requestIdleCallback)(()=>v(!0));return()=>(0,r.cancelIdleCallback)(C)}},[y,m,h,b,x.current]);const T=(0,n.useCallback)(()=>{v(!1)},[]);return[_,b,T]}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})($u,$u.exports)),$u.exports}var tf={exports:{}},nf={exports:{}},P1={},mS;function PP(){return mS||(mS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return e}});function e(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}}})(P1)),P1}var gS;function IP(){return gS||(gS=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(i,a)=>n.__NEXT_I18N_SUPPORT?PP().normalizeLocalePath(i,a):{pathname:i,detectedLocale:void 0};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(nf,nf.exports)),nf.exports}var rf={exports:{}},I1={},vS;function MP(){return vS||(vS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}});function e(n,r,i){if(n){i&&(i=i.toLowerCase());for(const s of n){var a,o;const c=(a=s.domain)==null?void 0:a.split(":",1)[0].toLowerCase();if(r===c||i===s.defaultLocale.toLowerCase()||(o=s.locales)!=null&&o.some(u=>u.toLowerCase()===i))return s}}}})(I1)),I1}var yS;function LP(){return yS||(yS=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"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 MP().detectDomainLocale(...a)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(rf,rf.exports)),rf.exports}var bS;function FP(){return bS||(bS=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return a}});const r=qu(),i=n.__NEXT_ROUTER_BASEPATH||"";function a(o,s,c,u){if(n.__NEXT_I18N_SUPPORT){const d=IP().normalizeLocalePath,h=LP().detectDomainLocale,m=s||d(o,c).detectedLocale,p=h(u,void 0,m);if(p){const y="http"+(p.http?"":"s")+"://",b=m===p.defaultLocale?"":"/"+m;return""+y+p.domain+(0,r.normalizePathTrailingSlash)(""+i+b+o)}return!1}else return!1}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(tf,tf.exports)),tf.exports}var af={exports:{}},wS;function jP(){return wS||(wS=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addBasePath",{enumerable:!0,get:function(){return o}});const r=cS(),i=qu(),a=n.__NEXT_ROUTER_BASEPATH||"";function o(s,c){return(0,i.normalizePathTrailingSlash)(n.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?s:(0,r.addPathPrefix)(s,a))}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(af,af.exports)),af.exports}var of={exports:{}},SS;function DP(){return SS||(SS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useMergedRef",{enumerable:!0,get:function(){return r}});const n=N;function r(a,o){const s=(0,n.useRef)(()=>{}),c=(0,n.useRef)(()=>{});return(0,n.useMemo)(()=>!a||!o?a||o:u=>{u===null?(s.current(),c.current()):(s.current=i(a,u),c.current=i(o,u))},[a,o])}function i(a,o){if(typeof a=="function"){const s=a(o);return typeof s=="function"?s:()=>a(null)}else return a.current=o,()=>{a.current=null}}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(of,of.exports)),of.exports}var ES;function VP(){return ES||(ES=1,(function(t,e){"use client";var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return A}});const r=Nw(),i=S,a=r._(N),o=AP(),s=Kw(),c=Fw(),u=Zu(),d=TP(),h=OP(),m=NP(),p=FP(),y=jP(),b=DP(),v=new Set;function x(k,R,I,U){if(!(typeof window>"u")&&(0,s.isLocalURL)(R)){if(!U.bypassPrefetchedCheck){const D=typeof U.locale<"u"?U.locale:"locale"in k?k.locale:void 0,z=R+"%"+I+"%"+D;if(v.has(z))return;v.add(z)}k.prefetch(R,I,U).catch(D=>{throw D})}}function _(k){const I=k.currentTarget.getAttribute("target");return I&&I!=="_self"||k.metaKey||k.ctrlKey||k.shiftKey||k.altKey||k.nativeEvent&&k.nativeEvent.which===2}function T(k,R,I,U,D,z,Y,j){const{nodeName:F}=k.currentTarget;if(F.toUpperCase()==="A"&&(_(k)||!(0,s.isLocalURL)(I)))return;k.preventDefault(),(()=>{const B=Y??!0;"beforePopState"in R?R[D?"replace":"push"](I,U,{shallow:z,locale:j,scroll:B}):R[D?"replace":"push"](U||I,{scroll:B})})()}function C(k){return typeof k=="string"?k:(0,c.formatUrl)(k)}const A=a.default.forwardRef(function(R,I){let U;const{href:D,as:z,children:Y,prefetch:j=null,passHref:F,replace:V,shallow:G,scroll:B,locale:q,onClick:W,onMouseEnter:K,onTouchStart:te,legacyBehavior:ne=!1,...ce}=R;U=Y,ne&&(typeof U=="string"||typeof U=="number")&&(U=(0,i.jsx)("a",{children:U}));const ie=a.default.useContext(h.RouterContext),J=j!==!1;{let Ae=function(Ee){return new Error("Failed prop type: The prop `"+Ee.key+"` expects a "+Ee.expected+" in `<Link>`, but got `"+Ee.actual+"` instead."+(typeof window<"u"?`
159
+ Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(Ee=>{if(Ee==="href"&&(R[Ee]==null||typeof R[Ee]!="string"&&typeof R[Ee]!="object"))throw Ae({key:Ee,expected:"`string` or `object`",actual:R[Ee]===null?"null":typeof R[Ee]})}),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(Ee=>{const $e=typeof R[Ee];if(Ee==="as"){if(R[Ee]&&$e!=="string"&&$e!=="object")throw Ae({key:Ee,expected:"`string` or `object`",actual:$e})}else if(Ee==="locale"){if(R[Ee]&&$e!=="string")throw Ae({key:Ee,expected:"`string`",actual:$e})}else if(Ee==="onClick"||Ee==="onMouseEnter"||Ee==="onTouchStart"){if(R[Ee]&&$e!=="function")throw Ae({key:Ee,expected:"`function`",actual:$e})}else if((Ee==="replace"||Ee==="scroll"||Ee==="shallow"||Ee==="passHref"||Ee==="prefetch"||Ee==="legacyBehavior")&&R[Ee]!=null&&$e!=="boolean")throw Ae({key:Ee,expected:"`boolean`",actual:$e})})}const{href:ue,as:le}=a.default.useMemo(()=>{if(!ie){const Le=C(D);return{href:Le,as:z?C(z):Le}}const[Ae,nt]=(0,o.resolveHref)(ie,D,!0);return{href:Ae,as:z?(0,o.resolveHref)(ie,z):nt||Ae}},[ie,D,z]),ve=a.default.useRef(ue),he=a.default.useRef(le);let be;ne&&(be=a.default.Children.only(U));const ee=ne?be&&typeof be=="object"&&be.ref:I,[Ie,ye,Fe]=(0,m.useIntersection)({rootMargin:"200px"}),at=a.default.useCallback(Ae=>{(he.current!==le||ve.current!==ue)&&(Fe(),he.current=le,ve.current=ue),Ie(Ae)},[le,ue,Fe,Ie]),Pe=(0,b.useMergedRef)(at,ee);a.default.useEffect(()=>{},[le,ue,ye,q,J,ie==null?void 0:ie.locale,ie]);const tt={ref:Pe,onClick(Ae){if(!Ae)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!ne&&typeof W=="function"&&W(Ae),ne&&be.props&&typeof be.props.onClick=="function"&&be.props.onClick(Ae),ie&&(Ae.defaultPrevented||T(Ae,ie,ue,le,V,G,B,q))},onMouseEnter(Ae){!ne&&typeof K=="function"&&K(Ae),ne&&be.props&&typeof be.props.onMouseEnter=="function"&&be.props.onMouseEnter(Ae),ie&&x(ie,ue,le,{locale:q,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:n.__NEXT_LINK_NO_TOUCH_START?void 0:function(nt){!ne&&typeof te=="function"&&te(nt),ne&&be.props&&typeof be.props.onTouchStart=="function"&&be.props.onTouchStart(nt),ie&&x(ie,ue,le,{locale:q,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(le))tt.href=le;else if(!ne||F||be.type==="a"&&!("href"in be.props)){const Ae=typeof q<"u"?q:ie==null?void 0:ie.locale,nt=(ie==null?void 0:ie.isLocaleDomain)&&(0,p.getDomainLocale)(le,Ae,ie==null?void 0:ie.locales,ie==null?void 0:ie.domainLocales);tt.href=nt||(0,y.addBasePath)((0,d.addLocale)(le,Ae,ie==null?void 0:ie.defaultLocale))}return ne?a.default.cloneElement(be,tt):(0,i.jsx)("a",{...ce,...tt,children:U})});(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Yu,Yu.exports)),Yu.exports}var M1,CS;function UP(){return CS||(CS=1,M1=VP()),M1}var BP=UP();const xS=qa(BP),_S=({from:t="knowledge-base",isAuthenticated:e,onSubmit:n,reqId:r,setFeedbackForTheArticle:i=()=>{},userData:a})=>{var w,A,k;const[o,s]=N.useState([]),[c,u]=N.useState(!1),[d,h]=N.useState({}),m=t==="message",p=m?{contact_person_name:a==null?void 0:a.contact_person_name,contact_person_email:a==null?void 0:a.contact_person_email,title:d==null?void 0:d.title,message:d==null?void 0:d.message}:d,[y,{loading:b}]=ma(Cw),v=async()=>{var R,I;try{if(u(!0),Ne.size(o)&&Ne.size(o)>5){vn("error","You can upload maximum 5 files","top-right");return}const U=[],D=[],{message:z,...Y}=p;Ne.forEach(o,F=>{const V=`${Bm()}.${Ne.last(Ne.split(F.name,"."))}`;U.push({name:V,title:F.name,size:F.size,type:"conversation_activity_attachment"}),D.push({file:F,name:V})});const{data:j}=await y({variables:{inputData:{...Y,...r,type:"ticket",conversation_activities:[{message:z,is_customer_reply:!0,conversation_activity_files:U}]}}});if((R=j==null?void 0:j.createAConversationForPortal)!=null&&R.id){let F=[];if(Ne.size(D)){const V=D.map(async B=>{var q;try{const W=await $m({name:B.name,type:"conversation_activity_attachment",sub_type:(q=j==null?void 0:j.createAConversationForPortal)==null?void 0:q.id});if(W!=null&&W.error)return vn("error",`Failed to process ${B.name}`,"top-right"),null;const{key:K,url:te,file:ne,success:ce}=await e1({key:W.key,url:W.url},B.file);return ce?{key:K,url:te,file:ne}:null}catch(W){return console.error(`Error processing file ${B.name}:`,W),vn("error",`Failed to upload ${B.name}`,"top-right"),null}});F=(await Promise.all(V)).filter(Boolean)}i(V=>({...V,isNotHelpful:!0,notHelpfulModal:!1})),n&&n({conversation_id:(I=j==null?void 0:j.createAConversationForPortal)==null?void 0:I.id,title:p.title,message:p.message,conversation_activity_files:F})}}catch(U){vn("error","Something went wrong","top-right"),console.error("error",U)}finally{u(!1)}},x=(R,I)=>{h(U=>({...U,[R]:I}))},_=Ap(d.contact_person_email),T=!e&&(!((w=d.contact_person_name)!=null&&w.trim())||!_||!d.contact_person_email)||!((A=d.title)!=null&&A.trim())||!((k=d.message)!=null&&k.trim()),C=()=>b||c?!0:T;return S.jsxs("div",{className:`ed-px-5 ed-pb-5 ${m&&"ed-bg-white-light ed-rounded-md ed-py-2 ed-max-w-full md:ed-max-w-[85%] ed-ml-auto"}`,children:[!m&&S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"ed-flex ed-items-start ed-justify-between ed-pt-5 ed-sticky ed-top-0 ed-bg-white",children:[S.jsx("h5",{className:"ed-text-18 ed-font-semibold ed-text-border-dark ed-mb-5",children:"Get in touch"}),S.jsx(_i,{size:24,className:"ed-text-border-dark ed-cursor-pointer",onClick:()=>i(R=>({...R,notHelpfulModal:!1}))})]}),S.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."})]}),S.jsxs("div",{className:"ed-space-y-4 ed-mb-6",children:[!e&&S.jsxs(S.Fragment,{children:[S.jsx(is,{isRequired:!0,label:"Name",placeholder:"Enter your name",value:d.contact_person_name,onChange:R=>x("contact_person_name",R.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_name"}),S.jsx(is,{isRequired:!0,type:"email",label:"Email",placeholder:"Enter your email",value:d.contact_person_email,onChange:R=>x("contact_person_email",R.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.jsx("span",{className:"ed-text-red ed-font-12",children:"Please enter a valid email address!"})]}),S.jsx(is,{isRequired:!0,label:"Subject",placeholder:"Tell us what this feedback is about",value:d.title,onChange:R=>x("title",R.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"title"}),S.jsx(bw,{label:`${e?"Summary":"Description"}`,isRequired:!0,placeholder:"Add more details for us to resolve the issue",value:d.message,onChange:R=>x("message",R.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"message"}),S.jsx(Sw,{subtitle:"Supported file types: jpg, png, pdf (max 5MB)",selectedFiles:o,setSelectedFiles:s})]}),S.jsx("div",{className:"ed-flex ed-justify-end",children:S.jsx(rs,{title:"Submit",loaderText:"Submitting",fullWidthBtn:!0,disabled:C(),loader:b||c,callBack:v})})]})};var L1={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:"serial"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},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:378}};L1.loc.source={body:`query GET_AN_ARTICLE($queryData: EntityIdOrSlugInputType!) {
160
160
  getAnArticle(queryData: $queryData) {
161
161
  id
162
162
  serial
163
+ slug
163
164
  author {
164
165
  id
165
166
  first_name
@@ -188,7 +189,7 @@ Open your browser's console to view the Component stack trace.`:""))};Object.key
188
189
  id
189
190
  }
190
191
  }
191
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function lf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){lf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){lf(r,e)}),t.definitions&&t.definitions.forEach(function(r){lf(r,e)})}var D1={};(function(){j1.definitions.forEach(function(e){if(e.name){var n=new Set;lf(e,n),D1[e.name.value]=n}})})();function kS(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function WP(t,e){var n={kind:t.kind,definitions:[kS(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=D1[e]||new Set,i=new Set,a=new Set;for(r.forEach(function(s){a.add(s)});a.size>0;){var o=a;a=new Set,o.forEach(function(s){if(!i.has(s)){i.add(s);var c=D1[s]||new Set;c.forEach(function(u){a.add(u)})}})}return i.forEach(function(s){var c=kS(t,s);c&&n.definitions.push(c)}),n}const GP=WP(j1,"CREATE_AN_ARTICLE_ANALYTIC"),YP=({articleId:t,setArticleId:e,isAuthenticated:n,orgBrandSetting:r})=>{var C,w,A,k,R,I,U,D,z,Y;const{custom_domain:i,sub_domain:a}=(r==null?void 0:r.brand)||{},o=pu("cdnDomain").split("-")[1],s=i||`${a}.portal.${o&&o!=="prod"?`${o}.easydesk`:"easydesk"}.app`,{t:c}=ns(),[u,d]=N.useState({}),[h,m]=N.useState(!0),[p,y]=N.useState({isHelpful:!1,isNotHelpful:!1,notHelpfulModal:!1}),[b]=Ya(HP,{errorPolicy:"all",fetchPolicy:"no-cache"}),v=async()=>{var j;try{const{data:F}=await b({variables:{queryData:{entity_id:t}}});if(F!=null&&F.getAnArticle){const V=await Tk(((j=F.getAnArticle)==null?void 0:j.content)||"");d({...F.getAnArticle,content:V}),m(!1)}}catch(F){console.error(F),m(!1)}},[x,{loading:_}]=ma(GP),T=async j=>{try{await x({variables:{inputData:{article_id:t,action_type:j}}}),j==="like"&&y({isHelpful:!0})}catch(F){console.error(F)}};return N.useEffect(()=>{v(),T("view")},[t]),h?S.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:S.jsx(Ki,{})}):S.jsxs("div",{className:"ed-bg-white ed-absolute ed-inset-2 ed-rounded-[10px] ed-overflow-y-auto ed-no-scrollbar",children:[!p.notHelpfulModal&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"ed-flex ed-items-center ed-justify-end",children:S.jsx("button",{type:"button",onClick:()=>e(null),className:"ed-p-5 ed-sticky ed-top-0 ed-bg-white ed-z-10",children:S.jsx(_i,{className:"ed-text-border-regular ed-size-5"})})}),S.jsxs("div",{className:"ed-px-5",children:[S.jsx("div",{className:"ed-article-group ed-mb-4 ed-cursor-pointer ed-duration-300 ed-ease-in-out ed-transition-all",children:S.jsxs(xS,{href:`https://${s}/solutions/articles/${u==null?void 0:u.serial}`,target:"_blank",rel:"noreferrer",className:"ed-flex ed-items-center ed-gap-2",children:[S.jsx("h3",{className:"ed-text-18 ed-font-semibold ed-text-border-dark ed-line-clamp-2 ed-article-title",children:jl((u==null?void 0:u.title)||"")}),S.jsx(um,{className:"ed-opacity-0 ed-size-5 ed-text-brand-link ed-external-icon ed-flex-shrink-0"})]})}),S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-mb-4",children:[S.jsx(ki,{alt:`${(w=(C=u==null?void 0:u.author)==null?void 0:C.avatar_file)==null?void 0:w.first_name}'s profile`,defaultUserNameTextSize:"text-10",className:"ed-size-9 ed-object-cover ed-rounded-full",defaultImageClasses:"w-9 h-9",path:(k=(A=u==null?void 0:u.author)==null?void 0:A.avatar_file)==null?void 0:k.key,defaultImageName:qa((R=u==null?void 0:u.author)==null?void 0:R.first_name,(I=u==null?void 0:u.author)==null?void 0:I.last_name,(U=u==null?void 0:u.author)==null?void 0:U.email)}),S.jsxs("div",{children:[S.jsxs("h6",{className:"ed-text-14 ed-font-semibold ed-text-brand-link",children:[" ",gu((D=u==null?void 0:u.author)==null?void 0:D.first_name,(z=u==null?void 0:u.author)==null?void 0:z.last_name,(Y=u==null?void 0:u.author)==null?void 0:Y.email)]}),S.jsx("p",{className:"ed-text-12 ed-font-medium ed-text-border-regular",children:os(u==null?void 0:u.published_at).format("DD MMMM, YYYY")})]})]}),S.jsx("div",{className:"tiptap ProseMirror",children:u!=null&&u.content?jl(u.content):null}),S.jsxs("div",{className:"ed-px-5 ed-py-6 ed-mt-4 ed-rounded-[10px] ed-bg-gray ed-mb-5",children:[!p.isHelpful&&!(p!=null&&p.isNotHelpful)&&S.jsxs("div",{children:[S.jsx("h6",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-mb-4 ed-text-center",children:"Was this information helpful?"}),S.jsxs("div",{className:"ed-grid md:ed-grid-cols-2 ed-gap-2",children:[S.jsx(rs,{title:"Helpful",Icon:xm,btnType:"btn_bordered",fullWidthBtn:!0,loader:_,callBack:()=>T("like")}),S.jsx(rs,{title:"Not helpful",Icon:Em,btnType:"btn_bordered",fullWidthBtn:!0,customPadding:"ed-px-5 ed-h-[41px]",callBack:()=>y({...p,notHelpfulModal:!0})})]})]}),(p.isHelpful||(p==null?void 0:p.isNotHelpful))&&S.jsxs("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:[S.jsx(eP,{width:"105",height:"80"}),S.jsx("p",{className:"ed-mt-2.5 ed-text-14 ed-font-medium ed-text-border-regular ed-text-center",children:c("widget.label.thank_you_for_your_feedback")})]})]})]})]}),p.notHelpfulModal&&S.jsx(_S,{setFeedbackForTheArticle:y,reqId:{article_id:t},isAuthenticated:n})]})};var V1={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_SECTIONS_WITH_ARTICLES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SectionQueryInput"}}},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:"getSectionsWithArticles"},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:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parent_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:"description"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"total_articles"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"section_articles"},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:388}};V1.loc.source={body:`query GET_SECTIONS_WITH_ARTICLES($queryData: SectionQueryInput!, $optionData: OptionDataType) {
192
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function lf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){lf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){lf(r,e)}),t.definitions&&t.definitions.forEach(function(r){lf(r,e)})}var D1={};(function(){j1.definitions.forEach(function(e){if(e.name){var n=new Set;lf(e,n),D1[e.name.value]=n}})})();function kS(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function WP(t,e){var n={kind:t.kind,definitions:[kS(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=D1[e]||new Set,i=new Set,a=new Set;for(r.forEach(function(s){a.add(s)});a.size>0;){var o=a;a=new Set,o.forEach(function(s){if(!i.has(s)){i.add(s);var c=D1[s]||new Set;c.forEach(function(u){a.add(u)})}})}return i.forEach(function(s){var c=kS(t,s);c&&n.definitions.push(c)}),n}const GP=WP(j1,"CREATE_AN_ARTICLE_ANALYTIC"),YP=({articleId:t,setArticleId:e,isAuthenticated:n,orgBrandSetting:r})=>{var C,w,A,k,R,I,U,D,z,Y;const{custom_domain:i,sub_domain:a}=(r==null?void 0:r.brand)||{},o=pu("cdnDomain").split("-")[1],s=i||`${a}.portal.${o&&o!=="prod"?`${o}.easydesk`:"easydesk"}.app`,{t:c}=ns(),[u,d]=N.useState({}),[h,m]=N.useState(!0),[p,y]=N.useState({isHelpful:!1,isNotHelpful:!1,notHelpfulModal:!1}),[b]=Ka(HP,{errorPolicy:"all",fetchPolicy:"no-cache"}),v=async()=>{var j;try{const{data:F}=await b({variables:{queryData:{entity_id:t}}});if(F!=null&&F.getAnArticle){const V=await Tk(((j=F.getAnArticle)==null?void 0:j.content)||"");d({...F.getAnArticle,content:V}),m(!1)}}catch(F){console.error(F),m(!1)}},[x,{loading:_}]=ma(GP),T=async j=>{try{await x({variables:{inputData:{article_id:t,action_type:j}}}),j==="like"&&y({isHelpful:!0})}catch(F){console.error(F)}};return N.useEffect(()=>{v(),T("view")},[t]),h?S.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:S.jsx(Ki,{})}):S.jsxs("div",{className:"ed-bg-white ed-absolute ed-inset-2 ed-rounded-[10px] ed-overflow-y-auto ed-no-scrollbar",children:[!p.notHelpfulModal&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"ed-flex ed-items-center ed-justify-end",children:S.jsx("button",{type:"button",onClick:()=>e(null),className:"ed-p-5 ed-sticky ed-top-0 ed-bg-white ed-z-10",children:S.jsx(_i,{className:"ed-text-border-regular ed-size-5"})})}),S.jsxs("div",{className:"ed-px-5",children:[S.jsx("div",{className:"ed-article-group ed-mb-4 ed-cursor-pointer ed-duration-300 ed-ease-in-out ed-transition-all",children:S.jsxs(xS,{href:`https://${s}/solutions/articles/${u==null?void 0:u.slug}`,target:"_blank",rel:"noreferrer",className:"ed-flex ed-items-center ed-gap-2",children:[S.jsx("h3",{className:"ed-text-18 ed-font-semibold ed-text-border-dark ed-line-clamp-2 ed-article-title",children:jl((u==null?void 0:u.title)||"")}),S.jsx("span",{className:"ed-shrink-0",children:S.jsx(um,{className:"ed-size-5 ed-text-brand-link ed-external-icon"})})]})}),S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-mb-4",children:[S.jsx(ki,{alt:`${(w=(C=u==null?void 0:u.author)==null?void 0:C.avatar_file)==null?void 0:w.first_name}'s profile`,defaultUserNameTextSize:"text-10",className:"ed-size-9 ed-object-cover ed-rounded-full",defaultImageClasses:"w-9 h-9",path:(k=(A=u==null?void 0:u.author)==null?void 0:A.avatar_file)==null?void 0:k.key,defaultImageName:Ja((R=u==null?void 0:u.author)==null?void 0:R.first_name,(I=u==null?void 0:u.author)==null?void 0:I.last_name,(U=u==null?void 0:u.author)==null?void 0:U.email)}),S.jsxs("div",{children:[S.jsxs("h6",{className:"ed-text-14 ed-font-semibold ed-text-brand-link",children:[" ",gu((D=u==null?void 0:u.author)==null?void 0:D.first_name,(z=u==null?void 0:u.author)==null?void 0:z.last_name,(Y=u==null?void 0:u.author)==null?void 0:Y.email)]}),S.jsx("p",{className:"ed-text-12 ed-font-medium ed-text-border-regular",children:os(u==null?void 0:u.published_at).format("DD MMMM, YYYY")})]})]}),S.jsx("div",{className:"tiptap ProseMirror",children:u!=null&&u.content?jl(u.content):null}),S.jsxs("div",{className:"ed-px-5 ed-py-6 ed-mt-4 ed-rounded-[10px] ed-bg-gray ed-mb-5",children:[!p.isHelpful&&!(p!=null&&p.isNotHelpful)&&S.jsxs("div",{children:[S.jsx("h6",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-mb-4 ed-text-center",children:"Was this information helpful?"}),S.jsxs("div",{className:"ed-grid md:ed-grid-cols-2 ed-gap-2",children:[S.jsx(rs,{title:"Helpful",Icon:xm,btnType:"btn_bordered",fullWidthBtn:!0,loader:_,callBack:()=>T("like")}),S.jsx(rs,{title:"Not helpful",Icon:Em,btnType:"btn_bordered",fullWidthBtn:!0,customPadding:"ed-px-5 ed-h-[41px]",callBack:()=>y({...p,notHelpfulModal:!0})})]})]}),(p.isHelpful||(p==null?void 0:p.isNotHelpful))&&S.jsxs("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:[S.jsx(eP,{width:"105",height:"80"}),S.jsx("p",{className:"ed-mt-2.5 ed-text-14 ed-font-medium ed-text-border-regular ed-text-center",children:c("widget.label.thank_you_for_your_feedback")})]})]})]})]}),p.notHelpfulModal&&S.jsx(_S,{setFeedbackForTheArticle:y,reqId:{article_id:t},isAuthenticated:n})]})};var V1={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_SECTIONS_WITH_ARTICLES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SectionQueryInput"}}},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:"getSectionsWithArticles"},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:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parent_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:"description"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"total_articles"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"section_articles"},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:388}};V1.loc.source={body:`query GET_SECTIONS_WITH_ARTICLES($queryData: SectionQueryInput!, $optionData: OptionDataType) {
192
193
  getSectionsWithArticles(queryData: $queryData, optionData: $optionData) {
193
194
  data {
194
195
  id
@@ -207,11 +208,11 @@ Open your browser's console to view the Component stack trace.`:""))};Object.key
207
208
  }
208
209
  }
209
210
  }
210
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function cf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){cf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){cf(r,e)}),t.definitions&&t.definitions.forEach(function(r){cf(r,e)})}var U1={};(function(){V1.definitions.forEach(function(e){if(e.name){var n=new Set;cf(e,n),U1[e.name.value]=n}})})();function TS(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function KP(t,e){var n={kind:t.kind,definitions:[TS(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=U1[e]||new Set,i=new Set,a=new Set;for(r.forEach(function(s){a.add(s)});a.size>0;){var o=a;a=new Set,o.forEach(function(s){if(!i.has(s)){i.add(s);var c=U1[s]||new Set;c.forEach(function(u){a.add(u)})}})}return i.forEach(function(s){var c=TS(t,s);c&&n.definitions.push(c)}),n}const ZP=KP(V1,"GET_SECTIONS_WITH_ARTICLES"),QP=({setArticleId:t,selectedCategory:e})=>{const[n,r]=N.useState(null),[i,a]=N.useState([]),o=d=>{r(n===d?null:d)},[s,{loading:c}]=Ya(ZP,{errorPolicy:"all",fetchPolicy:"no-cache"}),u=async()=>{const{data:d,error:h}=await s({variables:{queryData:{category_id:e},optionData:{order:[["serial","asc"]]}}});d!=null&&d.getSectionsWithArticles&&a(d.getSectionsWithArticles.data),h&&console.error(h)};return N.useEffect(()=>{e&&u()},[e]),c?S.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:S.jsx(Ki,{})}):S.jsx("div",{children:i.map(d=>{var h;return S.jsx("div",{className:`ed-border-b ed-border-disabled ${n===d.id?"pb-2":""}`,children:S.jsxs("div",{className:"ed-py-3 ed-px-4",children:[S.jsxs("div",{role:"button",tabIndex:0,onClick:()=>o(d.id),className:`ed-flex ed-items-center ed-justify-between ed-gap-2 ed-p-2 ed-cursor-pointer ed-transition-all hover:ed-bg-white-light ed-duration-300 ed-ease-in-out ${n===d.id?"ed-bg-white-light":""}`,children:[S.jsx("h6",{className:"ed-text-14 ed-font-semibold ed-text-border-dark",children:d.name}),S.jsx("div",{className:"ed-transform ed-transition-transform ed-duration-300 ed-ease-in-out",children:n===d.id?S.jsx(Tu,{className:"ed-text-border-regular ed-size-5"}):S.jsx(Zo,{className:"ed-text-border-regular ed-size-5"})})]}),S.jsx("div",{className:`ed-overflow-hidden ed-transition-all ed-ease-in-out ${n===d.id?"ed-max-h-96 ed-opacity-100 ed-mt-3":"ed-max-h-0 ed-opacity-0"}`,children:(h=d==null?void 0:d.section_articles)==null?void 0:h.map(m=>S.jsxs("button",{type:"button",onClick:()=>t(m==null?void 0:m.id),className:"ed-article-button 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-text-left",children:[S.jsx("p",{className:"ed-text-border-dark ed-text-14 ed-font-medium ed-article-title ed-flex-1 ed-ease-in-out ed-transition-all",children:jl((m==null?void 0:m.title)||"")}),S.jsx("div",{className:"ed-chevron-wrapper ed-size-4 ed--translate-x-2 ed-opacity-0 ed-transition-all",children:S.jsx(Zi,{className:"ed-text-border ed-size-4"})})]},m.id))})]})},d.id)})})},qP=({loading:t,selectedCategory:e,setArticleId:n,articleId:r,isAuthenticated:i,setSelectedCategory:a,orgBrandSetting:o})=>S.jsx("div",{children:t?S.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:S.jsx(Ki,{})}):e&&r||!e&&r?S.jsx(YP,{articleId:r,setArticleId:n,isAuthenticated:i,orgBrandSetting:o}):e&&!r?S.jsx(QP,{setArticleId:n,selectedCategory:e}):S.jsx(lP,{setSelectedCategory:a})}),JP=({setIsCreateNewTicketClicked:t})=>{const{t:e}=ns();return S.jsxs("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center ed-min-h-min ed-h-full",children:[S.jsx($N,{}),S.jsxs("p",{className:"ed-text-14 ed-text-border-regular ed-text-center",children:[e("widget.label.no_article_found"),S.jsx("button",{type:"button",onClick:()=>t(!0),className:"ed-text-14 ed-font-semibold ed-text-brand-link ed-ml-1",children:e("widget.label.click_here")})]})]})};var B1={exports:{}};/*!
211
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function cf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){cf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){cf(r,e)}),t.definitions&&t.definitions.forEach(function(r){cf(r,e)})}var U1={};(function(){V1.definitions.forEach(function(e){if(e.name){var n=new Set;cf(e,n),U1[e.name.value]=n}})})();function TS(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function KP(t,e){var n={kind:t.kind,definitions:[TS(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=U1[e]||new Set,i=new Set,a=new Set;for(r.forEach(function(s){a.add(s)});a.size>0;){var o=a;a=new Set,o.forEach(function(s){if(!i.has(s)){i.add(s);var c=U1[s]||new Set;c.forEach(function(u){a.add(u)})}})}return i.forEach(function(s){var c=TS(t,s);c&&n.definitions.push(c)}),n}const ZP=KP(V1,"GET_SECTIONS_WITH_ARTICLES"),QP=({setArticleId:t,selectedCategory:e})=>{const[n,r]=N.useState(null),[i,a]=N.useState([]),o=d=>{r(n===d?null:d)},[s,{loading:c}]=Ka(ZP,{errorPolicy:"all",fetchPolicy:"no-cache"}),u=async()=>{const{data:d,error:h}=await s({variables:{queryData:{category_id:e},optionData:{order:[["serial","asc"]]}}});d!=null&&d.getSectionsWithArticles&&a(d.getSectionsWithArticles.data),h&&console.error(h)};return N.useEffect(()=>{e&&u()},[e]),c?S.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:S.jsx(Ki,{})}):S.jsx("div",{children:i.map(d=>{var h;return S.jsx("div",{className:`ed-border-b ed-border-disabled ${n===d.id?"pb-2":""}`,children:S.jsxs("div",{className:"ed-py-3 ed-px-4",children:[S.jsxs("div",{role:"button",tabIndex:0,onClick:()=>o(d.id),className:`ed-flex ed-items-center ed-justify-between ed-gap-2 ed-p-2 ed-cursor-pointer ed-transition-all hover:ed-bg-white-light ed-duration-300 ed-ease-in-out ${n===d.id?"ed-bg-white-light":""}`,children:[S.jsx("h6",{className:"ed-text-14 ed-font-semibold ed-text-border-dark",children:d.name}),S.jsx("div",{className:"ed-transform ed-transition-transform ed-duration-300 ed-ease-in-out",children:n===d.id?S.jsx(Tu,{className:"ed-text-border-regular ed-size-5"}):S.jsx(Zo,{className:"ed-text-border-regular ed-size-5"})})]}),S.jsx("div",{className:`ed-overflow-hidden ed-transition-all ed-ease-in-out ${n===d.id?"ed-max-h-96 ed-opacity-100 ed-mt-3":"ed-max-h-0 ed-opacity-0"}`,children:(h=d==null?void 0:d.section_articles)==null?void 0:h.map(m=>S.jsxs("button",{type:"button",onClick:()=>t(m==null?void 0:m.id),className:"ed-article-button 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-text-left",children:[S.jsx("p",{className:"ed-text-border-dark ed-text-14 ed-font-medium ed-article-title ed-flex-1 ed-ease-in-out ed-transition-all",children:jl((m==null?void 0:m.title)||"")}),S.jsx("div",{className:"ed-chevron-wrapper ed-size-4 ed--translate-x-2 ed-opacity-0 ed-transition-all",children:S.jsx(Zi,{className:"ed-text-border ed-size-4"})})]},m.id))})]})},d.id)})})},qP=({loading:t,selectedCategory:e,setArticleId:n,articleId:r,isAuthenticated:i,setSelectedCategory:a,orgBrandSetting:o})=>S.jsx("div",{children:t?S.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:S.jsx(Ki,{})}):e&&r||!e&&r?S.jsx(YP,{articleId:r,setArticleId:n,isAuthenticated:i,orgBrandSetting:o}):e&&!r?S.jsx(QP,{setArticleId:n,selectedCategory:e}):S.jsx(lP,{setSelectedCategory:a})}),JP=({setIsCreateNewTicketClicked:t})=>{const{t:e}=ns();return S.jsxs("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center ed-min-h-min ed-h-full",children:[S.jsx($N,{}),S.jsxs("p",{className:"ed-text-14 ed-text-border-regular ed-text-center",children:[e("widget.label.no_article_found"),S.jsx("button",{type:"button",onClick:()=>t(!0),className:"ed-text-14 ed-font-semibold ed-text-brand-link ed-ml-1",children:e("widget.label.click_here")})]})]})};var B1={exports:{}};/*!
211
212
  Copyright (c) 2018 Jed Watson.
212
213
  Licensed under the MIT License (MIT), see
213
214
  http://jedwatson.github.io/classnames
214
- */var OS;function XP(){return OS||(OS=1,(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,r(s)))}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 s in a)e.call(a,s)&&a[s]&&(o=i(o,s));return o}function i(a,o){return o?a?a+" "+o:a+o:a}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(B1)),B1.exports}var $P=XP();const Nt=Qa($P);function _r(){return _r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_r.apply(null,arguments)}function Ke(t){"@babel/helpers - typeof";return Ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ke(t)}var eI=Symbol.for("react.element"),tI=Symbol.for("react.transitional.element"),nI=Symbol.for("react.fragment");function RS(t){return t&&Ke(t)==="object"&&(t.$$typeof===eI||t.$$typeof===tI)&&t.type===nI}function uf(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return N.Children.forEach(t,function(r){r==null&&!e.keepEmpty||(Array.isArray(r)?n=n.concat(uf(r)):RS(r)&&r.props?n=n.concat(uf(r.props.children,e)):n.push(r))}),n}var z1={},H1=[],rI=function(e){H1.push(e)};function ss(t,e){if(!t&&console!==void 0){var n=H1.reduce(function(r,i){return i(r??"","warning")},e);n&&console.error("Warning: ".concat(n))}}function iI(t,e){if(!t&&console!==void 0){var n=H1.reduce(function(r,i){return i(r??"","note")},e);n&&console.warn("Note: ".concat(n))}}function aI(){z1={}}function NS(t,e,n){!e&&!z1[n]&&(t(!1,n),z1[n]=!0)}function qt(t,e){NS(ss,t,e)}function oI(t,e){NS(iI,t,e)}qt.preMessage=rI,qt.resetWarned=aI,qt.noteOnce=oI;function sI(t,e){if(Ke(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ke(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function PS(t){var e=sI(t,"string");return Ke(e)=="symbol"?e:e+""}function re(t,e,n){return(e=PS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function IS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function fe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?IS(Object(n),!0).forEach(function(r){re(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):IS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function zl(t){return t instanceof HTMLElement||t instanceof SVGElement}function lI(t){return t&&Ke(t)==="object"&&zl(t.nativeElement)?t.nativeElement:zl(t)?t:null}function ff(t){var e=lI(t);if(e)return e;if(t instanceof N.Component){var n;return(n=Qd.findDOMNode)===null||n===void 0?void 0:n.call(Qd,t)}return null}var W1={exports:{}},xt={},MS;function cI(){if(MS)return xt;MS=1;/**
215
+ */var OS;function XP(){return OS||(OS=1,(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,r(s)))}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 s in a)e.call(a,s)&&a[s]&&(o=i(o,s));return o}function i(a,o){return o?a?a+" "+o:a+o:a}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(B1)),B1.exports}var $P=XP();const Nt=qa($P);function _r(){return _r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_r.apply(null,arguments)}function Ke(t){"@babel/helpers - typeof";return Ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ke(t)}var eI=Symbol.for("react.element"),tI=Symbol.for("react.transitional.element"),nI=Symbol.for("react.fragment");function RS(t){return t&&Ke(t)==="object"&&(t.$$typeof===eI||t.$$typeof===tI)&&t.type===nI}function uf(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return N.Children.forEach(t,function(r){r==null&&!e.keepEmpty||(Array.isArray(r)?n=n.concat(uf(r)):RS(r)&&r.props?n=n.concat(uf(r.props.children,e)):n.push(r))}),n}var z1={},H1=[],rI=function(e){H1.push(e)};function ss(t,e){if(!t&&console!==void 0){var n=H1.reduce(function(r,i){return i(r??"","warning")},e);n&&console.error("Warning: ".concat(n))}}function iI(t,e){if(!t&&console!==void 0){var n=H1.reduce(function(r,i){return i(r??"","note")},e);n&&console.warn("Note: ".concat(n))}}function aI(){z1={}}function NS(t,e,n){!e&&!z1[n]&&(t(!1,n),z1[n]=!0)}function qt(t,e){NS(ss,t,e)}function oI(t,e){NS(iI,t,e)}qt.preMessage=rI,qt.resetWarned=aI,qt.noteOnce=oI;function sI(t,e){if(Ke(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ke(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function PS(t){var e=sI(t,"string");return Ke(e)=="symbol"?e:e+""}function re(t,e,n){return(e=PS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function IS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function fe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?IS(Object(n),!0).forEach(function(r){re(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):IS(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function zl(t){return t instanceof HTMLElement||t instanceof SVGElement}function lI(t){return t&&Ke(t)==="object"&&zl(t.nativeElement)?t.nativeElement:zl(t)?t:null}function ff(t){var e=lI(t);if(e)return e;if(t instanceof N.Component){var n;return(n=Qd.findDOMNode)===null||n===void 0?void 0:n.call(Qd,t)}return null}var W1={exports:{}},xt={},MS;function cI(){if(MS)return xt;MS=1;/**
215
216
  * @license React
216
217
  * react-is.development.js
217
218
  *
@@ -221,7 +222,7 @@ Open your browser's console to view the Component stack trace.`:""))};Object.key
221
222
  * LICENSE file in the root directory of this source tree.
222
223
  */return(function(){var t=Symbol.for("react.element"),e=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"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y=!1,b=!1,v=!1,x=!1,_=!1,T;T=Symbol.for("react.module.reference");function C(ye){return!!(typeof ye=="string"||typeof ye=="function"||ye===n||ye===i||_||ye===r||ye===u||ye===d||x||ye===p||y||b||v||typeof ye=="object"&&ye!==null&&(ye.$$typeof===m||ye.$$typeof===h||ye.$$typeof===a||ye.$$typeof===o||ye.$$typeof===c||ye.$$typeof===T||ye.getModuleId!==void 0))}function w(ye){if(typeof ye=="object"&&ye!==null){var Fe=ye.$$typeof;switch(Fe){case t:var at=ye.type;switch(at){case n:case i:case r:case u:case d:return at;default:var Pe=at&&at.$$typeof;switch(Pe){case s:case o:case c:case m:case h:case a:return Pe;default:return Fe}}case e:return Fe}}}var A=o,k=a,R=t,I=c,U=n,D=m,z=h,Y=e,j=i,F=r,V=u,G=d,B=!1,q=!1;function W(ye){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(ye){return q||(q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(ye){return w(ye)===o}function ne(ye){return w(ye)===a}function ce(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===t}function ie(ye){return w(ye)===c}function J(ye){return w(ye)===n}function ue(ye){return w(ye)===m}function le(ye){return w(ye)===h}function ve(ye){return w(ye)===e}function he(ye){return w(ye)===i}function be(ye){return w(ye)===r}function ee(ye){return w(ye)===u}function Ie(ye){return w(ye)===d}xt.ContextConsumer=A,xt.ContextProvider=k,xt.Element=R,xt.ForwardRef=I,xt.Fragment=U,xt.Lazy=D,xt.Memo=z,xt.Portal=Y,xt.Profiler=j,xt.StrictMode=F,xt.Suspense=V,xt.SuspenseList=G,xt.isAsyncMode=W,xt.isConcurrentMode=K,xt.isContextConsumer=te,xt.isContextProvider=ne,xt.isElement=ce,xt.isForwardRef=ie,xt.isFragment=J,xt.isLazy=ue,xt.isMemo=le,xt.isPortal=ve,xt.isProfiler=he,xt.isStrictMode=be,xt.isSuspense=ee,xt.isSuspenseList=Ie,xt.isValidElementType=C,xt.typeOf=w})(),xt}var LS;function uI(){return LS||(LS=1,W1.exports=cI()),W1.exports}var G1=uI();function Y1(t,e,n){var r=L.useRef({});return(!("value"in r.current)||n(r.current.condition,e))&&(r.current.value=t(),r.current.condition=e),r.current.value}var fI=Number(N.version.split(".")[0]),K1=function(e,n){typeof e=="function"?e(n):Ke(e)==="object"&&e&&"current"in e&&(e.current=n)},FS=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n.filter(Boolean);return i.length<=1?i[0]:function(a){n.forEach(function(o){K1(o,a)})}},Z1=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Y1(function(){return FS.apply(void 0,n)},n,function(i,a){return i.length!==a.length||i.every(function(o,s){return o!==a[s]})})},df=function(e){var n,r;if(!e)return!1;if(jS(e)&&fI>=19)return!0;var i=G1.isMemo(e)?e.type.type:e.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==G1.ForwardRef||typeof e=="function"&&!((r=e.prototype)!==null&&r!==void 0&&r.render)&&e.$$typeof!==G1.ForwardRef)};function jS(t){return N.isValidElement(t)&&!RS(t)}var Q1=function(e){if(e&&jS(e)){var n=e;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},q1=L.createContext(null);function dI(t){var e=t.children,n=t.onBatchResize,r=L.useRef(0),i=L.useRef([]),a=L.useContext(q1),o=L.useCallback(function(s,c,u){r.current+=1;var d=r.current;i.current.push({size:s,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(i.current),i.current=[])}),a==null||a(s,c,u)},[n,a]);return L.createElement(q1.Provider,{value:o},e)}var DS=(function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}return(function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var r=t(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},e.prototype.set=function(n,r){var i=t(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},e.prototype.delete=function(n){var r=this.__entries__,i=t(r,n);~i&&r.splice(i,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.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])}},e})()})(),J1=typeof window<"u"&&typeof document<"u"&&window.document===document,hf=(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")()})(),hI=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(hf):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}})(),pI=2;function mI(t,e){var n=!1,r=!1,i=0;function a(){n&&(n=!1,t()),r&&s()}function o(){hI(a)}function s(){var c=Date.now();if(n){if(c-i<pI)return;r=!0}else n=!0,r=!1,setTimeout(o,e);i=c}return s}var gI=20,vI=["top","right","bottom","left","width","height","size","weight"],yI=typeof MutationObserver<"u",bI=(function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=mI(this.refresh.bind(this),gI)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!J1||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),yI?(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)},t.prototype.disconnect_=function(){!J1||!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)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,i=vI.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t})(),VS=(function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t}),ls=(function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||hf}),US=mf(0,0,0,0);function pf(t){return parseFloat(t)||0}function BS(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,i){var a=t["border-"+i+"-width"];return r+pf(a)},0)}function wI(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var a=i[r],o=t["padding-"+a];n[a]=pf(o)}return n}function SI(t){var e=t.getBBox();return mf(0,0,e.width,e.height)}function EI(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return US;var r=ls(t).getComputedStyle(t),i=wI(r),a=i.left+i.right,o=i.top+i.bottom,s=pf(r.width),c=pf(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==e&&(s-=BS(r,"left","right")+a),Math.round(c+o)!==n&&(c-=BS(r,"top","bottom")+o)),!xI(t)){var u=Math.round(s+a)-e,d=Math.round(c+o)-n;Math.abs(u)!==1&&(s-=u),Math.abs(d)!==1&&(c-=d)}return mf(i.left,i.top,s,c)}var CI=(function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof ls(t).SVGGraphicsElement}:function(t){return t instanceof ls(t).SVGElement&&typeof t.getBBox=="function"}})();function xI(t){return t===ls(t).document.documentElement}function _I(t){return J1?CI(t)?SI(t):EI(t):US}function AI(t){var e=t.x,n=t.y,r=t.width,i=t.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(a.prototype);return VS(o,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),o}function mf(t,e,n,r){return{x:t,y:e,width:n,height:r}}var kI=(function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=mf(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=_I(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t})(),TI=(function(){function t(e,n){var r=AI(n);VS(this,{target:e,contentRect:r})}return t})(),OI=(function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new DS,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ls(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new kI(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ls(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new TI(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t})(),zS=typeof WeakMap<"u"?new WeakMap:new DS,HS=(function(){function t(e){if(!(this instanceof t))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=bI.getInstance(),r=new OI(e,n,this);zS.set(this,r)}return t})();["observe","unobserve","disconnect"].forEach(function(t){HS.prototype[t]=function(){var e;return(e=zS.get(this))[t].apply(e,arguments)}});var RI=(function(){return typeof hf.ResizeObserver<"u"?hf.ResizeObserver:HS})(),va=new Map;function NI(t){t.forEach(function(e){var n,r=e.target;(n=va.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var WS=new RI(NI);function PI(t,e){va.has(t)||(va.set(t,new Set),WS.observe(t)),va.get(t).add(e)}function II(t,e){va.has(t)&&(va.get(t).delete(e),va.get(t).size||(WS.unobserve(t),va.delete(t)))}function kn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function GS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,PS(r.key),r)}}function Tn(t,e,n){return e&&GS(t.prototype,e),n&&GS(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Hl(t,e){return Hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Hl(t,e)}function ya(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hl(t,e)}function Wl(t){return Wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wl(t)}function X1(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(X1=function(){return!!t})()}function it(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function MI(t,e){if(e&&(Ke(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return it(t)}function ba(t){var e=X1();return function(){var n,r=Wl(t);if(e){var i=Wl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return MI(this,n)}}var LI=(function(t){ya(n,t);var e=ba(n);function n(){return kn(this,n),e.apply(this,arguments)}return Tn(n,[{key:"render",value:function(){return this.props.children}}]),n})(L.Component);function FI(t,e){var n=t.children,r=t.disabled,i=L.useRef(null),a=L.useRef(null),o=L.useContext(q1),s=typeof n=="function",c=s?n(i):n,u=L.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&L.isValidElement(c)&&df(c),h=d?Q1(c):null,m=Z1(h,i),p=function(){var x;return ff(i.current)||(i.current&&Ke(i.current)==="object"?ff((x=i.current)===null||x===void 0?void 0:x.nativeElement):null)||ff(a.current)};L.useImperativeHandle(e,function(){return p()});var y=L.useRef(t);y.current=t;var b=L.useCallback(function(v){var x=y.current,_=x.onResize,T=x.data,C=v.getBoundingClientRect(),w=C.width,A=C.height,k=v.offsetWidth,R=v.offsetHeight,I=Math.floor(w),U=Math.floor(A);if(u.current.width!==I||u.current.height!==U||u.current.offsetWidth!==k||u.current.offsetHeight!==R){var D={width:I,height:U,offsetWidth:k,offsetHeight:R};u.current=D;var z=k===Math.round(w)?w:k,Y=R===Math.round(A)?A:R,j=fe(fe({},D),{},{offsetWidth:z,offsetHeight:Y});o==null||o(j,v,T),_&&Promise.resolve().then(function(){_(j,v)})}},[]);return L.useEffect(function(){var v=p();return v&&!r&&PI(v,b),function(){return II(v,b)}},[i.current,r]),L.createElement(LI,{ref:a},d?L.cloneElement(c,{ref:m}):c)}var YS=L.forwardRef(FI);YS.displayName="SingleObserver";var jI="rc-observer-key";function DI(t,e){var n=t.children,r=typeof n=="function"?[n]:uf(n);return r.length>1?ss(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&ss(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),r.map(function(i,a){var o=(i==null?void 0:i.key)||"".concat(jI,"-").concat(a);return L.createElement(YS,_r({},t,{key:o,ref:a===0?e:void 0}),i)})}var gf=L.forwardRef(DI);gf.displayName="ResizeObserver",gf.Collection=dI;function $1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function VI(t){if(Array.isArray(t))return $1(t)}function KS(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function eg(t,e){if(t){if(typeof t=="string")return $1(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$1(t,e):void 0}}function UI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
223
224
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function je(t){return VI(t)||KS(t)||eg(t)||UI()}var ZS=function(e){return+setTimeout(e,16)},QS=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(ZS=function(e){return window.requestAnimationFrame(e)},QS=function(e){return window.cancelAnimationFrame(e)});var qS=0,vf=new Map;function JS(t){vf.delete(t)}var yf=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;qS+=1;var r=qS;function i(a){if(a===0)JS(r),e();else{var o=ZS(function(){i(a-1)});vf.set(r,o)}}return i(n),r};yf.cancel=function(t){var e=vf.get(t);return JS(t),QS(e)},yf.ids=function(){return vf};function XS(t){if(Array.isArray(t))return t}function BI(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,o,s=[],c=!0,u=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function $S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
224
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xe(t,e){return XS(t)||BI(t,e)||eg(t,e)||$S()}function Gl(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}function ur(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function zI(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1}var eE="data-rc-order",tE="data-rc-priority",HI="rc-util-key",tg=new Map;function nE(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):HI}function bf(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}function WI(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function ng(t){return Array.from((tg.get(t)||t).children).filter(function(e){return e.tagName==="STYLE"})}function rE(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ur())return null;var n=e.csp,r=e.prepend,i=e.priority,a=i===void 0?0:i,o=WI(r),s=o==="prependQueue",c=document.createElement("style");c.setAttribute(eE,o),s&&a&&c.setAttribute(tE,"".concat(a)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=t;var u=bf(e),d=u.firstChild;if(r){if(s){var h=(e.styles||ng(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(eE)))return!1;var p=Number(m.getAttribute(tE)||0);return a>=p});if(h.length)return u.insertBefore(c,h[h.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function iE(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=bf(e);return(e.styles||ng(n)).find(function(r){return r.getAttribute(nE(e))===t})}function Yl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=iE(t,e);if(n){var r=bf(e);r.removeChild(n)}}function GI(t,e){var n=tg.get(t);if(!n||!zI(document,n)){var r=rE("",e),i=r.parentNode;tg.set(t,i),t.removeChild(r)}}function wa(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=bf(n),i=ng(r),a=fe(fe({},n),{},{styles:i});GI(r,a);var o=iE(e,a);if(o){var s,c;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var u;o.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return o.innerHTML!==t&&(o.innerHTML=t),o}var d=rE(t,a);return d.setAttribute(nE(a),e),d}function YI(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Ti(t,e){if(t==null)return{};var n,r,i=YI(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function rg(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(a);if(qt(!c,"Warning: There may be circular references"),c)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var u=s+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],u))return!1;return!0}if(a&&o&&Ke(a)==="object"&&Ke(o)==="object"){var h=Object.keys(a);return h.length!==Object.keys(o).length?!1:h.every(function(m){return i(a[m],o[m],u)})}return!1}return i(t,e)}var KI="%";function ig(t){return t.join(KI)}var ZI=(function(){function t(e){kn(this,t),re(this,"instanceId",void 0),re(this,"cache",new Map),re(this,"extracted",new Set),this.instanceId=e}return Tn(t,[{key:"get",value:function(n){return this.opGet(ig(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(ig(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)}}]),t})(),cs="data-token-hash",ci="data-css-hash",QI="data-cache-path",Sa="__cssinjs_instance__";function qI(){var t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(ci,"]"))||[],n=document.head.firstChild;Array.from(e).forEach(function(i){i[Sa]=i[Sa]||t,i[Sa]===t&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(ci,"]"))).forEach(function(i){var a=i.getAttribute(ci);if(r[a]){if(i[Sa]===t){var o;(o=i.parentNode)===null||o===void 0||o.removeChild(i)}}else r[a]=!0})}return new ZI(t)}var Kl=L.createContext({hashPriority:"low",cache:qI(),defaultCache:!0});function JI(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}var ag=(function(){function t(){kn(this,t),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 Tn(t,[{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(s){if(!o)o=void 0;else{var c;o=(c=o)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(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>t.MAX_CACHE_SIZE+t.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(u,d){var h=xe(u,2),m=h[1];return i.internalGet(d)[1]<m?[d,i.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),o=xe(a,1),s=o[0];this.delete(s)}this.keys.push(n)}var c=this.cache;n.forEach(function(u,d){if(d===n.length-1)c.set(u,{value:[r,i.cacheCallTimes++]});else{var h=c.get(u);h?h.map||(h.map=new Map):c.set(u,{map:new Map}),c=c.get(u).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!JI(r,n)}),this.deleteByPath(this.cache,n)}}]),t})();re(ag,"MAX_CACHE_SIZE",20),re(ag,"MAX_CACHE_OFFSET",5);var aE=0,oE=(function(){function t(e){kn(this,t),re(this,"derivatives",void 0),re(this,"id",void 0),this.derivatives=Array.isArray(e)?e:[e],this.id=aE,e.length===0&&ss(e.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),aE+=1}return Tn(t,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),t})(),og=new ag;function sg(t){var e=Array.isArray(t)?t:[t];return og.has(e)||og.set(e,new oE(e)),og.get(e)}var XI=new WeakMap,lg={};function $I(t,e){for(var n=XI,r=0;r<e.length;r+=1){var i=e[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(lg)||n.set(lg,t()),n.get(lg)}var sE=new WeakMap;function Zl(t){var e=sE.get(t)||"";return e||(Object.keys(t).forEach(function(n){var r=t[n];e+=n,r instanceof oE?e+=r.id:r&&Ke(r)==="object"?e+=Zl(r):e+=r}),e=Gl(e),sE.set(t,e)),e}function lE(t,e){return Gl("".concat(e,"_").concat(Zl(t)))}var cg=ur();function Zn(t){return typeof t=="number"?"".concat(t,"px"):t}function wf(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return t;var a=fe(fe({},r),{},re(re({},cs,e),ci,n)),o=Object.keys(a).map(function(s){var c=a[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(o,">").concat(t,"</style>")}var Sf=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(e).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()},eM=function(e,n,r){return Object.keys(e).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map(function(i){var a=xe(i,2),o=a[0],s=a[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},cE=function(e,n,r){var i={},a={};return Object.entries(e).forEach(function(o){var s,c,u=xe(o,2),d=u[0],h=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])a[d]=h;else if((typeof h=="string"||typeof h=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var m,p=Sf(d,r==null?void 0:r.prefix);i[p]=typeof h=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(h,"px"):String(h),a[d]="var(".concat(p,")")}}),[a,eM(i,n,{scope:r==null?void 0:r.scope})]},uE=ur()?L.useLayoutEffect:L.useEffect,Qn=function(e,n){var r=L.useRef(!0);uE(function(){return e(r.current)},n),uE(function(){return r.current=!1,function(){r.current=!0}},[])},fE=function(e,n){Qn(function(r){if(!r)return e()},n)},tM=fe({},L),dE=tM.useInsertionEffect,nM=function(e,n,r){L.useMemo(e,r),Qn(function(){return n(!0)},r)},rM=dE?function(t,e,n){return dE(function(){return t(),e()},n)}:nM,iM=fe({},L),aM=iM.useInsertionEffect,oM=function(e){var n=[],r=!1;function i(a){if(r){ss(!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 L.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},e),i},sM=function(){return function(e){e()}},lM=typeof aM<"u"?oM:sM,ug=!1;function cM(){return ug}const uM=cM;if(typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Ef=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(Ef&&typeof Ef.webpackHotUpdate=="function"){var fM=Ef.webpackHotUpdate;Ef.webpackHotUpdate=function(){return ug=!0,setTimeout(function(){ug=!1},0),fM.apply(void 0,arguments)}}}function fg(t,e,n,r,i){var a=L.useContext(Kl),o=a.cache,s=[t].concat(je(e)),c=ig(s),u=lM([c]),d=uM(),h=function(b){o.opUpdate(c,function(v){var x=v||[void 0,void 0],_=xe(x,2),T=_[0],C=T===void 0?0:T,w=_[1],A=w;w&&d&&(r==null||r(A,d),A=null);var k=A||n(),R=[C,k];return b?b(R):R})};L.useMemo(function(){h()},[c]);var m=o.opGet(c);m||(h(),m=o.opGet(c));var p=m[1];return rM(function(){i==null||i(p)},function(y){return h(function(b){var v=xe(b,2),x=v[0],_=v[1];return y&&x===0&&(i==null||i(p)),[x+1,_]}),function(){o.opUpdate(c,function(b){var v=b||[],x=xe(v,2),_=x[0],T=_===void 0?0:_,C=x[1],w=T-1;return w===0?(u(function(){(y||!o.opGet(c))&&(r==null||r(C,!1))}),null):[T-1,C]})}},[c]),p}var dM={},hM="css-dev-only-do-not-override",io=new Map;function pM(t){io.set(t,(io.get(t)||0)+1)}function mM(t,e){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(cs,'="').concat(t,'"]'));n.forEach(function(r){if(r[Sa]===e){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var gM=0;function vM(t,e){io.set(t,(io.get(t)||0)-1);var n=new Set;io.forEach(function(r,i){r<=0&&n.add(i)}),io.size-n.size>gM&&n.forEach(function(r){mM(r,e),io.delete(r)})}var yM=function(e,n,r,i){var a=r.getDerivativeToken(e),o=fe(fe({},a),n);return i&&(o=i(o)),o},hE="token";function bM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=N.useContext(Kl),i=r.cache.instanceId,a=r.container,o=n.salt,s=o===void 0?"":o,c=n.override,u=c===void 0?dM:c,d=n.formatToken,h=n.getComputedToken,m=n.cssVar,p=$I(function(){return Object.assign.apply(Object,[{}].concat(je(e)))},e),y=Zl(p),b=Zl(u),v=m?Zl(m):"",x=fg(hE,[s,t.id,y,b,v],function(){var _,T=h?h(p,u,t):yM(p,u,t,d),C=fe({},T),w="";if(m){var A=cE(T,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),k=xe(A,2);T=k[0],w=k[1]}var R=lE(T,s);T._tokenKey=R,C._tokenKey=lE(C,s);var I=(_=m==null?void 0:m.key)!==null&&_!==void 0?_:R;T._themeKey=I,pM(I);var U="".concat(hM,"-").concat(Gl(R));return T._hashId=U,[T,U,C,w,(m==null?void 0:m.key)||""]},function(_){vM(_[0]._themeKey,i)},function(_){var T=xe(_,4),C=T[0],w=T[3];if(m&&w){var A=wa(w,Gl("css-variables-".concat(C._themeKey)),{mark:ci,prepend:"queue",attachTo:a,priority:-999});A[Sa]=i,A.setAttribute(cs,C._themeKey)}});return x}var wM=function(e,n,r){var i=xe(e,5),a=i[2],o=i[3],s=i[4],c=r||{},u=c.plain;if(!o)return null;var d=a._tokenKey,h=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)},p=wf(o,s,d,m,u);return[h,d,p]},SM={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},pE="comm",mE="rule",gE="decl",EM="@import",CM="@namespace",xM="@keyframes",_M="@layer",vE=Math.abs,dg=String.fromCharCode;function yE(t){return t.trim()}function Cf(t,e,n){return t.replace(e,n)}function AM(t,e,n){return t.indexOf(e,n)}function us(t,e){return t.charCodeAt(e)|0}function fs(t,e,n){return t.slice(e,n)}function Oi(t){return t.length}function kM(t){return t.length}function xf(t,e){return e.push(t),t}var _f=1,ds=1,bE=0,Ur=0,dn=0,hs="";function hg(t,e,n,r,i,a,o,s){return{value:t,root:e,parent:n,type:r,props:i,children:a,line:_f,column:ds,length:o,return:"",siblings:s}}function TM(){return dn}function OM(){return dn=Ur>0?us(hs,--Ur):0,ds--,dn===10&&(ds=1,_f--),dn}function ui(){return dn=Ur<bE?us(hs,Ur++):0,ds++,dn===10&&(ds=1,_f++),dn}function Ea(){return us(hs,Ur)}function Af(){return Ur}function kf(t,e){return fs(hs,t,e)}function Ql(t){switch(t){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 RM(t){return _f=ds=1,bE=Oi(hs=t),Ur=0,[]}function NM(t){return hs="",t}function pg(t){return yE(kf(Ur-1,mg(t===91?t+2:t===40?t+1:t)))}function PM(t){for(;(dn=Ea())&&dn<33;)ui();return Ql(t)>2||Ql(dn)>3?"":" "}function IM(t,e){for(;--e&&ui()&&!(dn<48||dn>102||dn>57&&dn<65||dn>70&&dn<97););return kf(t,Af()+(e<6&&Ea()==32&&ui()==32))}function mg(t){for(;ui();)switch(dn){case t:return Ur;case 34:case 39:t!==34&&t!==39&&mg(dn);break;case 40:t===41&&mg(t);break;case 92:ui();break}return Ur}function MM(t,e){for(;ui()&&t+dn!==57;)if(t+dn===84&&Ea()===47)break;return"/*"+kf(e,Ur-1)+"*"+dg(t===47?t:ui())}function LM(t){for(;!Ql(Ea());)ui();return kf(t,Ur)}function FM(t){return NM(Tf("",null,null,null,[""],t=RM(t),0,[0],t))}function Tf(t,e,n,r,i,a,o,s,c){for(var u=0,d=0,h=o,m=0,p=0,y=0,b=1,v=1,x=1,_=0,T="",C=i,w=a,A=r,k=T;v;)switch(y=_,_=ui()){case 40:if(y!=108&&us(k,h-1)==58){AM(k+=Cf(pg(_),"&","&\f"),"&\f",vE(u?s[u-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:k+=pg(_);break;case 9:case 10:case 13:case 32:k+=PM(y);break;case 92:k+=IM(Af()-1,7);continue;case 47:switch(Ea()){case 42:case 47:xf(jM(MM(ui(),Af()),e,n,c),c),(Ql(y||1)==5||Ql(Ea()||1)==5)&&Oi(k)&&fs(k,-1,void 0)!==" "&&(k+=" ");break;default:k+="/"}break;case 123*b:s[u++]=Oi(k)*x;case 125*b:case 59:case 0:switch(_){case 0:case 125:v=0;case 59+d:x==-1&&(k=Cf(k,/\f/g,"")),p>0&&(Oi(k)-h||b===0&&y===47)&&xf(p>32?SE(k+";",r,n,h-1,c):SE(Cf(k," ","")+";",r,n,h-2,c),c);break;case 59:k+=";";default:if(xf(A=wE(k,e,n,u,d,i,s,T,C=[],w=[],h,a),a),_===123)if(d===0)Tf(k,e,A,A,C,a,h,s,w);else{switch(m){case 99:if(us(k,3)===110)break;case 108:if(us(k,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Tf(t,A,A,r&&xf(wE(t,A,A,0,0,i,s,T,i,C=[],h,w),w),i,w,h,s,r?C:w):Tf(k,A,A,A,[""],w,0,s,w)}}u=d=p=0,b=x=1,T=k="",h=o;break;case 58:h=1+Oi(k),p=y;default:if(b<1){if(_==123)--b;else if(_==125&&b++==0&&OM()==125)continue}switch(k+=dg(_),_*b){case 38:x=d>0?1:(k+="\f",-1);break;case 44:s[u++]=(Oi(k)-1)*x,x=1;break;case 64:Ea()===45&&(k+=pg(ui())),m=Ea(),d=h=Oi(T=k+=LM(Af())),_++;break;case 45:y===45&&Oi(k)==2&&(b=0)}}return a}function wE(t,e,n,r,i,a,o,s,c,u,d,h){for(var m=i-1,p=i===0?a:[""],y=kM(p),b=0,v=0,x=0;b<r;++b)for(var _=0,T=fs(t,m+1,m=vE(v=o[b])),C=t;_<y;++_)(C=yE(v>0?p[_]+" "+T:Cf(T,/&\f/g,p[_])))&&(c[x++]=C);return hg(t,e,n,i===0?mE:s,c,u,d,h)}function jM(t,e,n,r){return hg(t,e,n,pE,dg(TM()),fs(t,2,-2),0,r)}function SE(t,e,n,r,i){return hg(t,e,n,gE,fs(t,0,r),fs(t,r+1,-1),r,i)}function gg(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function DM(t,e,n,r){switch(t.type){case _M:if(t.children.length)break;case EM:case CM:case gE:return t.return=t.return||t.value;case pE:return"";case xM:return t.return=t.value+"{"+gg(t.children,r)+"}";case mE:if(!Oi(t.value=t.props.join(",")))return""}return Oi(n=gg(t.children,r))?t.return=t.value+"{"+n+"}":""}function EE(t,e){var n=e.path,r=e.parentSelectors;qt(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(t).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var VM=function(e,n,r){if(e==="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)!=="'"))&&EE("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},UM=function(e,n,r){e==="animation"&&r.hashId&&n!=="none"&&EE("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},CE="data-ant-cssinjs-cache-path",xE="_FILE_STYLE__",ao,_E=!0;function BM(){if(!ao&&(ao={},ur())){var t=document.createElement("div");t.className=CE,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var e=getComputedStyle(t).content||"";e=e.replace(/^"/,"").replace(/"$/,""),e.split(";").forEach(function(i){var a=i.split(":"),o=xe(a,2),s=o[0],c=o[1];ao[s]=c});var n=document.querySelector("style[".concat(CE,"]"));if(n){var r;_E=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(t)}}function zM(t){return BM(),!!ao[t]}function HM(t){var e=ao[t],n=null;if(e&&ur())if(_E)n=xE;else{var r=document.querySelector("style[".concat(ci,'="').concat(ao[t],'"]'));r?n=r.innerHTML:delete ao[t]}return[n,e]}var AE="_skip_check_",kE="_multi_value_";function Of(t){var e=gg(FM(t),DM);return e.replace(/\{%%%\:[^;];}/g,";")}function WM(t){return Ke(t)==="object"&&t&&(AE in t||kE in t)}function TE(t,e,n){if(!e)return t;var r=".".concat(e),i=n==="low"?":where(".concat(r,")"):r,a=t.split(",").map(function(o){var s,c=o.trim().split(/\s+/),u=c[0]||"",d=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(d).concat(i).concat(u.slice(d.length)),[u].concat(je(c.slice(1))).join(" ")});return a.join(",")}var GM=function t(e){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,s=n.hashId,c=n.layer,u=n.path,d=n.hashPriority,h=n.transformers,m=h===void 0?[]:h,p=n.linters,y=p===void 0?[]:p,b="",v={};function x(C){var w=C.getName(s);if(!v[w]){var A=t(C.style,n,{root:!1,parentSelectors:o}),k=xe(A,1),R=k[0];v[w]="@keyframes ".concat(C.getName(s)).concat(R)}}function _(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(A){Array.isArray(A)?_(A,w):A&&w.push(A)}),w}var T=_(Array.isArray(e)?e:[e]);return T.forEach(function(C){var w=typeof C=="string"&&!i?{}:C;if(typeof w=="string")b+="".concat(w,`
225
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xe(t,e){return XS(t)||BI(t,e)||eg(t,e)||$S()}function Gl(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}function ur(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function zI(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1}var eE="data-rc-order",tE="data-rc-priority",HI="rc-util-key",tg=new Map;function nE(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):HI}function bf(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}function WI(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function ng(t){return Array.from((tg.get(t)||t).children).filter(function(e){return e.tagName==="STYLE"})}function rE(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ur())return null;var n=e.csp,r=e.prepend,i=e.priority,a=i===void 0?0:i,o=WI(r),s=o==="prependQueue",c=document.createElement("style");c.setAttribute(eE,o),s&&a&&c.setAttribute(tE,"".concat(a)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=t;var u=bf(e),d=u.firstChild;if(r){if(s){var h=(e.styles||ng(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(eE)))return!1;var p=Number(m.getAttribute(tE)||0);return a>=p});if(h.length)return u.insertBefore(c,h[h.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function iE(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=bf(e);return(e.styles||ng(n)).find(function(r){return r.getAttribute(nE(e))===t})}function Yl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=iE(t,e);if(n){var r=bf(e);r.removeChild(n)}}function GI(t,e){var n=tg.get(t);if(!n||!zI(document,n)){var r=rE("",e),i=r.parentNode;tg.set(t,i),t.removeChild(r)}}function wa(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=bf(n),i=ng(r),a=fe(fe({},n),{},{styles:i});GI(r,a);var o=iE(e,a);if(o){var s,c;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var u;o.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return o.innerHTML!==t&&(o.innerHTML=t),o}var d=rE(t,a);return d.setAttribute(nE(a),e),d}function YI(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Ti(t,e){if(t==null)return{};var n,r,i=YI(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function rg(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(a);if(qt(!c,"Warning: There may be circular references"),c)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var u=s+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],u))return!1;return!0}if(a&&o&&Ke(a)==="object"&&Ke(o)==="object"){var h=Object.keys(a);return h.length!==Object.keys(o).length?!1:h.every(function(m){return i(a[m],o[m],u)})}return!1}return i(t,e)}var KI="%";function ig(t){return t.join(KI)}var ZI=(function(){function t(e){kn(this,t),re(this,"instanceId",void 0),re(this,"cache",new Map),re(this,"extracted",new Set),this.instanceId=e}return Tn(t,[{key:"get",value:function(n){return this.opGet(ig(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(ig(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)}}]),t})(),cs="data-token-hash",ci="data-css-hash",QI="data-cache-path",Sa="__cssinjs_instance__";function qI(){var t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(ci,"]"))||[],n=document.head.firstChild;Array.from(e).forEach(function(i){i[Sa]=i[Sa]||t,i[Sa]===t&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(ci,"]"))).forEach(function(i){var a=i.getAttribute(ci);if(r[a]){if(i[Sa]===t){var o;(o=i.parentNode)===null||o===void 0||o.removeChild(i)}}else r[a]=!0})}return new ZI(t)}var Kl=L.createContext({hashPriority:"low",cache:qI(),defaultCache:!0});function JI(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}var ag=(function(){function t(){kn(this,t),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 Tn(t,[{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(s){if(!o)o=void 0;else{var c;o=(c=o)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(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>t.MAX_CACHE_SIZE+t.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(u,d){var h=xe(u,2),m=h[1];return i.internalGet(d)[1]<m?[d,i.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),o=xe(a,1),s=o[0];this.delete(s)}this.keys.push(n)}var c=this.cache;n.forEach(function(u,d){if(d===n.length-1)c.set(u,{value:[r,i.cacheCallTimes++]});else{var h=c.get(u);h?h.map||(h.map=new Map):c.set(u,{map:new Map}),c=c.get(u).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!JI(r,n)}),this.deleteByPath(this.cache,n)}}]),t})();re(ag,"MAX_CACHE_SIZE",20),re(ag,"MAX_CACHE_OFFSET",5);var aE=0,oE=(function(){function t(e){kn(this,t),re(this,"derivatives",void 0),re(this,"id",void 0),this.derivatives=Array.isArray(e)?e:[e],this.id=aE,e.length===0&&ss(e.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),aE+=1}return Tn(t,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),t})(),og=new ag;function sg(t){var e=Array.isArray(t)?t:[t];return og.has(e)||og.set(e,new oE(e)),og.get(e)}var XI=new WeakMap,lg={};function $I(t,e){for(var n=XI,r=0;r<e.length;r+=1){var i=e[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(lg)||n.set(lg,t()),n.get(lg)}var sE=new WeakMap;function Zl(t){var e=sE.get(t)||"";return e||(Object.keys(t).forEach(function(n){var r=t[n];e+=n,r instanceof oE?e+=r.id:r&&Ke(r)==="object"?e+=Zl(r):e+=r}),e=Gl(e),sE.set(t,e)),e}function lE(t,e){return Gl("".concat(e,"_").concat(Zl(t)))}var cg=ur();function Zn(t){return typeof t=="number"?"".concat(t,"px"):t}function wf(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return t;var a=fe(fe({},r),{},re(re({},cs,e),ci,n)),o=Object.keys(a).map(function(s){var c=a[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(o,">").concat(t,"</style>")}var Sf=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(e).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()},eM=function(e,n,r){return Object.keys(e).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map(function(i){var a=xe(i,2),o=a[0],s=a[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},cE=function(e,n,r){var i={},a={};return Object.entries(e).forEach(function(o){var s,c,u=xe(o,2),d=u[0],h=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])a[d]=h;else if((typeof h=="string"||typeof h=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var m,p=Sf(d,r==null?void 0:r.prefix);i[p]=typeof h=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(h,"px"):String(h),a[d]="var(".concat(p,")")}}),[a,eM(i,n,{scope:r==null?void 0:r.scope})]},uE=ur()?L.useLayoutEffect:L.useEffect,Qn=function(e,n){var r=L.useRef(!0);uE(function(){return e(r.current)},n),uE(function(){return r.current=!1,function(){r.current=!0}},[])},fE=function(e,n){Qn(function(r){if(!r)return e()},n)},tM=fe({},L),dE=tM.useInsertionEffect,nM=function(e,n,r){L.useMemo(e,r),Qn(function(){return n(!0)},r)},rM=dE?function(t,e,n){return dE(function(){return t(),e()},n)}:nM,iM=fe({},L),aM=iM.useInsertionEffect,oM=function(e){var n=[],r=!1;function i(a){if(r){ss(!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 L.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},e),i},sM=function(){return function(e){e()}},lM=typeof aM<"u"?oM:sM,ug=!1;function cM(){return ug}const uM=cM;if(typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Ef=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(Ef&&typeof Ef.webpackHotUpdate=="function"){var fM=Ef.webpackHotUpdate;Ef.webpackHotUpdate=function(){return ug=!0,setTimeout(function(){ug=!1},0),fM.apply(void 0,arguments)}}}function fg(t,e,n,r,i){var a=L.useContext(Kl),o=a.cache,s=[t].concat(je(e)),c=ig(s),u=lM([c]),d=uM(),h=function(b){o.opUpdate(c,function(v){var x=v||[void 0,void 0],_=xe(x,2),T=_[0],C=T===void 0?0:T,w=_[1],A=w;w&&d&&(r==null||r(A,d),A=null);var k=A||n(),R=[C,k];return b?b(R):R})};L.useMemo(function(){h()},[c]);var m=o.opGet(c);m||(h(),m=o.opGet(c));var p=m[1];return rM(function(){i==null||i(p)},function(y){return h(function(b){var v=xe(b,2),x=v[0],_=v[1];return y&&x===0&&(i==null||i(p)),[x+1,_]}),function(){o.opUpdate(c,function(b){var v=b||[],x=xe(v,2),_=x[0],T=_===void 0?0:_,C=x[1],w=T-1;return w===0?(u(function(){(y||!o.opGet(c))&&(r==null||r(C,!1))}),null):[T-1,C]})}},[c]),p}var dM={},hM="css-dev-only-do-not-override",ao=new Map;function pM(t){ao.set(t,(ao.get(t)||0)+1)}function mM(t,e){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(cs,'="').concat(t,'"]'));n.forEach(function(r){if(r[Sa]===e){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var gM=0;function vM(t,e){ao.set(t,(ao.get(t)||0)-1);var n=new Set;ao.forEach(function(r,i){r<=0&&n.add(i)}),ao.size-n.size>gM&&n.forEach(function(r){mM(r,e),ao.delete(r)})}var yM=function(e,n,r,i){var a=r.getDerivativeToken(e),o=fe(fe({},a),n);return i&&(o=i(o)),o},hE="token";function bM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=N.useContext(Kl),i=r.cache.instanceId,a=r.container,o=n.salt,s=o===void 0?"":o,c=n.override,u=c===void 0?dM:c,d=n.formatToken,h=n.getComputedToken,m=n.cssVar,p=$I(function(){return Object.assign.apply(Object,[{}].concat(je(e)))},e),y=Zl(p),b=Zl(u),v=m?Zl(m):"",x=fg(hE,[s,t.id,y,b,v],function(){var _,T=h?h(p,u,t):yM(p,u,t,d),C=fe({},T),w="";if(m){var A=cE(T,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),k=xe(A,2);T=k[0],w=k[1]}var R=lE(T,s);T._tokenKey=R,C._tokenKey=lE(C,s);var I=(_=m==null?void 0:m.key)!==null&&_!==void 0?_:R;T._themeKey=I,pM(I);var U="".concat(hM,"-").concat(Gl(R));return T._hashId=U,[T,U,C,w,(m==null?void 0:m.key)||""]},function(_){vM(_[0]._themeKey,i)},function(_){var T=xe(_,4),C=T[0],w=T[3];if(m&&w){var A=wa(w,Gl("css-variables-".concat(C._themeKey)),{mark:ci,prepend:"queue",attachTo:a,priority:-999});A[Sa]=i,A.setAttribute(cs,C._themeKey)}});return x}var wM=function(e,n,r){var i=xe(e,5),a=i[2],o=i[3],s=i[4],c=r||{},u=c.plain;if(!o)return null;var d=a._tokenKey,h=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)},p=wf(o,s,d,m,u);return[h,d,p]},SM={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},pE="comm",mE="rule",gE="decl",EM="@import",CM="@namespace",xM="@keyframes",_M="@layer",vE=Math.abs,dg=String.fromCharCode;function yE(t){return t.trim()}function Cf(t,e,n){return t.replace(e,n)}function AM(t,e,n){return t.indexOf(e,n)}function us(t,e){return t.charCodeAt(e)|0}function fs(t,e,n){return t.slice(e,n)}function Oi(t){return t.length}function kM(t){return t.length}function xf(t,e){return e.push(t),t}var _f=1,ds=1,bE=0,Ur=0,dn=0,hs="";function hg(t,e,n,r,i,a,o,s){return{value:t,root:e,parent:n,type:r,props:i,children:a,line:_f,column:ds,length:o,return:"",siblings:s}}function TM(){return dn}function OM(){return dn=Ur>0?us(hs,--Ur):0,ds--,dn===10&&(ds=1,_f--),dn}function ui(){return dn=Ur<bE?us(hs,Ur++):0,ds++,dn===10&&(ds=1,_f++),dn}function Ea(){return us(hs,Ur)}function Af(){return Ur}function kf(t,e){return fs(hs,t,e)}function Ql(t){switch(t){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 RM(t){return _f=ds=1,bE=Oi(hs=t),Ur=0,[]}function NM(t){return hs="",t}function pg(t){return yE(kf(Ur-1,mg(t===91?t+2:t===40?t+1:t)))}function PM(t){for(;(dn=Ea())&&dn<33;)ui();return Ql(t)>2||Ql(dn)>3?"":" "}function IM(t,e){for(;--e&&ui()&&!(dn<48||dn>102||dn>57&&dn<65||dn>70&&dn<97););return kf(t,Af()+(e<6&&Ea()==32&&ui()==32))}function mg(t){for(;ui();)switch(dn){case t:return Ur;case 34:case 39:t!==34&&t!==39&&mg(dn);break;case 40:t===41&&mg(t);break;case 92:ui();break}return Ur}function MM(t,e){for(;ui()&&t+dn!==57;)if(t+dn===84&&Ea()===47)break;return"/*"+kf(e,Ur-1)+"*"+dg(t===47?t:ui())}function LM(t){for(;!Ql(Ea());)ui();return kf(t,Ur)}function FM(t){return NM(Tf("",null,null,null,[""],t=RM(t),0,[0],t))}function Tf(t,e,n,r,i,a,o,s,c){for(var u=0,d=0,h=o,m=0,p=0,y=0,b=1,v=1,x=1,_=0,T="",C=i,w=a,A=r,k=T;v;)switch(y=_,_=ui()){case 40:if(y!=108&&us(k,h-1)==58){AM(k+=Cf(pg(_),"&","&\f"),"&\f",vE(u?s[u-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:k+=pg(_);break;case 9:case 10:case 13:case 32:k+=PM(y);break;case 92:k+=IM(Af()-1,7);continue;case 47:switch(Ea()){case 42:case 47:xf(jM(MM(ui(),Af()),e,n,c),c),(Ql(y||1)==5||Ql(Ea()||1)==5)&&Oi(k)&&fs(k,-1,void 0)!==" "&&(k+=" ");break;default:k+="/"}break;case 123*b:s[u++]=Oi(k)*x;case 125*b:case 59:case 0:switch(_){case 0:case 125:v=0;case 59+d:x==-1&&(k=Cf(k,/\f/g,"")),p>0&&(Oi(k)-h||b===0&&y===47)&&xf(p>32?SE(k+";",r,n,h-1,c):SE(Cf(k," ","")+";",r,n,h-2,c),c);break;case 59:k+=";";default:if(xf(A=wE(k,e,n,u,d,i,s,T,C=[],w=[],h,a),a),_===123)if(d===0)Tf(k,e,A,A,C,a,h,s,w);else{switch(m){case 99:if(us(k,3)===110)break;case 108:if(us(k,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Tf(t,A,A,r&&xf(wE(t,A,A,0,0,i,s,T,i,C=[],h,w),w),i,w,h,s,r?C:w):Tf(k,A,A,A,[""],w,0,s,w)}}u=d=p=0,b=x=1,T=k="",h=o;break;case 58:h=1+Oi(k),p=y;default:if(b<1){if(_==123)--b;else if(_==125&&b++==0&&OM()==125)continue}switch(k+=dg(_),_*b){case 38:x=d>0?1:(k+="\f",-1);break;case 44:s[u++]=(Oi(k)-1)*x,x=1;break;case 64:Ea()===45&&(k+=pg(ui())),m=Ea(),d=h=Oi(T=k+=LM(Af())),_++;break;case 45:y===45&&Oi(k)==2&&(b=0)}}return a}function wE(t,e,n,r,i,a,o,s,c,u,d,h){for(var m=i-1,p=i===0?a:[""],y=kM(p),b=0,v=0,x=0;b<r;++b)for(var _=0,T=fs(t,m+1,m=vE(v=o[b])),C=t;_<y;++_)(C=yE(v>0?p[_]+" "+T:Cf(T,/&\f/g,p[_])))&&(c[x++]=C);return hg(t,e,n,i===0?mE:s,c,u,d,h)}function jM(t,e,n,r){return hg(t,e,n,pE,dg(TM()),fs(t,2,-2),0,r)}function SE(t,e,n,r,i){return hg(t,e,n,gE,fs(t,0,r),fs(t,r+1,-1),r,i)}function gg(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function DM(t,e,n,r){switch(t.type){case _M:if(t.children.length)break;case EM:case CM:case gE:return t.return=t.return||t.value;case pE:return"";case xM:return t.return=t.value+"{"+gg(t.children,r)+"}";case mE:if(!Oi(t.value=t.props.join(",")))return""}return Oi(n=gg(t.children,r))?t.return=t.value+"{"+n+"}":""}function EE(t,e){var n=e.path,r=e.parentSelectors;qt(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(t).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var VM=function(e,n,r){if(e==="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)!=="'"))&&EE("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},UM=function(e,n,r){e==="animation"&&r.hashId&&n!=="none"&&EE("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},CE="data-ant-cssinjs-cache-path",xE="_FILE_STYLE__",oo,_E=!0;function BM(){if(!oo&&(oo={},ur())){var t=document.createElement("div");t.className=CE,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var e=getComputedStyle(t).content||"";e=e.replace(/^"/,"").replace(/"$/,""),e.split(";").forEach(function(i){var a=i.split(":"),o=xe(a,2),s=o[0],c=o[1];oo[s]=c});var n=document.querySelector("style[".concat(CE,"]"));if(n){var r;_E=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(t)}}function zM(t){return BM(),!!oo[t]}function HM(t){var e=oo[t],n=null;if(e&&ur())if(_E)n=xE;else{var r=document.querySelector("style[".concat(ci,'="').concat(oo[t],'"]'));r?n=r.innerHTML:delete oo[t]}return[n,e]}var AE="_skip_check_",kE="_multi_value_";function Of(t){var e=gg(FM(t),DM);return e.replace(/\{%%%\:[^;];}/g,";")}function WM(t){return Ke(t)==="object"&&t&&(AE in t||kE in t)}function TE(t,e,n){if(!e)return t;var r=".".concat(e),i=n==="low"?":where(".concat(r,")"):r,a=t.split(",").map(function(o){var s,c=o.trim().split(/\s+/),u=c[0]||"",d=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(d).concat(i).concat(u.slice(d.length)),[u].concat(je(c.slice(1))).join(" ")});return a.join(",")}var GM=function t(e){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,s=n.hashId,c=n.layer,u=n.path,d=n.hashPriority,h=n.transformers,m=h===void 0?[]:h,p=n.linters,y=p===void 0?[]:p,b="",v={};function x(C){var w=C.getName(s);if(!v[w]){var A=t(C.style,n,{root:!1,parentSelectors:o}),k=xe(A,1),R=k[0];v[w]="@keyframes ".concat(C.getName(s)).concat(R)}}function _(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(A){Array.isArray(A)?_(A,w):A&&w.push(A)}),w}var T=_(Array.isArray(e)?e:[e]);return T.forEach(function(C){var w=typeof C=="string"&&!i?{}:C;if(typeof w=="string")b+="".concat(w,`
225
226
  `);else if(w._keyframe)x(w);else{var A=m.reduce(function(k,R){var I;return(R==null||(I=R.visit)===null||I===void 0?void 0:I.call(R,k))||k},w);Object.keys(A).forEach(function(k){var R=A[k];if(Ke(R)==="object"&&R&&(k!=="animationName"||!R._keyframe)&&!WM(R)){var I=!1,U=k.trim(),D=!1;(i||a)&&s?U.startsWith("@")?I=!0:U==="&"?U=TE("",s,d):U=TE(k,s,d):i&&!s&&(U==="&"||U==="")&&(U="",D=!0);var z=t(R,n,{root:D,injectHash:I,parentSelectors:[].concat(je(o),[U])}),Y=xe(z,2),j=Y[0],F=Y[1];v=fe(fe({},v),F),b+="".concat(U).concat(j)}else{let B=function(q,W){(Ke(R)!=="object"||!(R!=null&&R[AE]))&&[VM,UM].concat(je(y)).forEach(function(ne){return ne(q,W,{path:u,hashId:s,parentSelectors:o})});var K=q.replace(/[A-Z]/g,function(ne){return"-".concat(ne.toLowerCase())}),te=W;!SM[q]&&typeof te=="number"&&te!==0&&(te="".concat(te,"px")),q==="animationName"&&W!==null&&W!==void 0&&W._keyframe&&(x(W),te=W.getName(s)),b+="".concat(K,":").concat(te,";")};var V,G=(V=R==null?void 0:R.value)!==null&&V!==void 0?V:R;Ke(R)==="object"&&R!==null&&R!==void 0&&R[kE]&&Array.isArray(G)?G.forEach(function(q){B(k,q)}):B(k,G)}})}}),i?c&&(b&&(b="@layer ".concat(c.name," {").concat(b,"}")),c.dependencies&&(v["@layer ".concat(c.name)]=c.dependencies.map(function(C){return"@layer ".concat(C,", ").concat(c.name,";")}).join(`
226
227
  `))):b="{".concat(b,"}"),[b,v]};function OE(t,e){return Gl("".concat(t.join("%")).concat(e))}function YM(){return null}var RE="style";function vg(t,e){var n=t.token,r=t.path,i=t.hashId,a=t.layer,o=t.nonce,s=t.clientOnly,c=t.order,u=c===void 0?0:c,d=L.useContext(Kl),h=d.autoClear,m=d.mock,p=d.defaultCache,y=d.hashPriority,b=d.container,v=d.ssrInline,x=d.transformers,_=d.linters,T=d.cache,C=d.layer,w=n._tokenKey,A=[w];C&&A.push("layer"),A.push.apply(A,je(r));var k=cg;m!==void 0&&(k=m==="client");var R=fg(RE,A,function(){var Y=A.join("|");if(zM(Y)){var j=HM(Y),F=xe(j,2),V=F[0],G=F[1];if(V)return[V,w,G,{},s,u]}var B=e(),q=GM(B,{hashId:i,hashPriority:y,layer:C?a:void 0,path:r.join("-"),transformers:x,linters:_}),W=xe(q,2),K=W[0],te=W[1],ne=Of(K),ce=OE(A,ne);return[ne,w,ce,te,s,u]},function(Y,j){var F=xe(Y,3),V=F[2];(j||h)&&cg&&Yl(V,{mark:ci,attachTo:b})},function(Y){var j=xe(Y,4),F=j[0];j[1];var V=j[2],G=j[3];if(k&&F!==xE){var B={mark:ci,prepend:C?!1:"queue",attachTo:b,priority:u},q=typeof o=="function"?o():o;q&&(B.csp={nonce:q});var W=[],K=[];Object.keys(G).forEach(function(ne){ne.startsWith("@layer")?W.push(ne):K.push(ne)}),W.forEach(function(ne){wa(Of(G[ne]),"_layer-".concat(ne),fe(fe({},B),{},{prepend:!0}))});var te=wa(F,V,B);te[Sa]=T.instanceId,te.setAttribute(cs,w),te.setAttribute(QI,A.join("|")),K.forEach(function(ne){wa(Of(G[ne]),"_effect-".concat(ne),B)})}}),I=xe(R,3),U=I[0],D=I[1],z=I[2];return function(Y){var j;return!v||k||!p?j=L.createElement(YM,null):j=L.createElement("style",_r({},re(re({},cs,D),ci,z),{dangerouslySetInnerHTML:{__html:U}})),L.createElement(L.Fragment,null,j,Y)}}var KM=function(e,n,r){var i=xe(e,6),a=i[0],o=i[1],s=i[2],c=i[3],u=i[4],d=i[5],h=r||{},m=h.plain;if(u)return null;var p=a,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return p=wf(a,o,s,y,m),c&&Object.keys(c).forEach(function(b){if(!n[b]){n[b]=!0;var v=Of(c[b]),x=wf(v,o,"_effect-".concat(b),y,m);b.startsWith("@layer")?p=x+p:p+=x}}),[d,s,p]},NE="cssVar",ZM=function(e,n){var r=e.key,i=e.prefix,a=e.unitless,o=e.ignore,s=e.token,c=e.scope,u=c===void 0?"":c,d=N.useContext(Kl),h=d.cache.instanceId,m=d.container,p=s._tokenKey,y=[].concat(je(e.path),[r,u,p]),b=fg(NE,y,function(){var v=n(),x=cE(v,r,{prefix:i,unitless:a,ignore:o,scope:u}),_=xe(x,2),T=_[0],C=_[1],w=OE(y,C);return[T,C,w,r]},function(v){var x=xe(v,3),_=x[2];cg&&Yl(_,{mark:ci,attachTo:m})},function(v){var x=xe(v,3),_=x[1],T=x[2];if(_){var C=wa(_,T,{mark:ci,prepend:"queue",attachTo:m,priority:-999});C[Sa]=h,C.setAttribute(cs,r)}});return b},QM=function(e,n,r){var i=xe(e,4),a=i[1],o=i[2],s=i[3],c=r||{},u=c.plain;if(!a)return null;var d=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=wf(a,s,o,h,u);return[d,o,m]};re(re(re({},RE,KM),hE,wM),NE,QM);var On=(function(){function t(e,n){kn(this,t),re(this,"name",void 0),re(this,"style",void 0),re(this,"_keyframe",!0),this.name=e,this.style=n}return Tn(t,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),t})();function ps(t){return t.notSplit=!0,t}ps(["borderTop","borderBottom"]),ps(["borderTop"]),ps(["borderBottom"]),ps(["borderLeft","borderRight"]),ps(["borderLeft"]),ps(["borderRight"]);var qM=N.createContext({});function JM(t){return XS(t)||KS(t)||eg(t)||$S()}function Ri(t,e){for(var n=t,r=0;r<e.length;r+=1){if(n==null)return;n=n[e[r]]}return n}function PE(t,e,n,r){if(!e.length)return n;var i=JM(e),a=i[0],o=i.slice(1),s;return!t&&typeof a=="number"?s=[]:Array.isArray(t)?s=je(t):s=fe({},t),r&&n===void 0&&o.length===1?delete s[a][o[0]]:s[a]=PE(s[a],o,n,r),s}function fi(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return e.length&&r&&n===void 0&&!Ri(t,e.slice(0,-1))?t:PE(t,e,n,r)}function XM(t){return Ke(t)==="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function IE(t){return Array.isArray(t)?[]:{}}var $M=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ms(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=IE(e[0]);return e.forEach(function(i){function a(o,s){var c=new Set(s),u=Ri(i,o),d=Array.isArray(u);if(d||XM(u)){if(!c.has(u)){c.add(u);var h=Ri(r,o);d?r=fi(r,o,[]):(!h||Ke(h)!=="object")&&(r=fi(r,o,IE(u))),$M(u).forEach(function(m){a([].concat(je(o),[m]),c)})}}else r=fi(r,o,u)}a([])}),r}function eL(){}let Ca=null,ME=eL;ME=(t,e,n)=>{qt(t,`[antd: ${e}] ${n}`)};const Rf=ME,LE=L.createContext({}),gs=t=>{const{strict:e}=L.useContext(LE),n=(r,i,a)=>{if(!r)if(e===!1&&i==="deprecated"){const o=Ca;Ca||(Ca={}),Ca[t]=Ca[t]||[],Ca[t].includes(a||"")||Ca[t].push(a||""),o||console.warn("[antd] There exists deprecated usage in your code:",Ca)}else Rf(r,t,a)};return n.deprecated=(r,i,a,o)=>{n(r,"deprecated",`\`${i}\` is deprecated. Please use \`${a}\` instead.${o?` ${o}`:""}`)},n},tL=N.createContext(void 0);var nL={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},rL=fe(fe({},nL),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const iL={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},rL),Object.assign({},iL);const Ar="${label} is not a valid ${type}",Nf={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ar,method:Ar,array:Ar,object:Ar,number:Ar,date:Ar,boolean:Ar,integer:Ar,float:Ar,regexp:Ar,email:Ar,url:Ar,hex:Ar},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}}};Object.assign({},Nf.Modal);let Pf=[];const FE=()=>Pf.reduce((t,e)=>Object.assign(Object.assign({},t),e),Nf.Modal);function aL(t){if(t){const e=Object.assign({},t);return Pf.push(e),FE(),()=>{Pf=Pf.filter(n=>n!==e),FE()}}Object.assign({},Nf.Modal)}const jE=N.createContext(void 0),DE="internalMark",VE=t=>{const{locale:e={},children:n,_ANT_MARK__:r}=t;gs("LocaleProvider")(r===DE,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),L.useEffect(()=>aL(e==null?void 0:e.Modal),[e]);const i=L.useMemo(()=>Object.assign(Object.assign({},e),{exist:!0}),[e]);return L.createElement(jE.Provider,{value:i},n)};VE.displayName="LocaleProvider";const UE={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"},ql=Object.assign(Object.assign({},UE),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
227
228
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
@@ -279,7 +280,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
279
280
  html body {
280
281
  overflow-y: hidden;
281
282
  `.concat(o?"width: calc(100% - ".concat(a,"px);"):"",`
282
- }`),i)}else Yl(i);return function(){Yl(i)}},[e,i])}var xj=!1;function _j(t){return xj}var YC=function(e){return e===!1?!1:!ur()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e},rv=L.forwardRef(function(t,e){var n=t.open,r=t.autoLock,i=t.getContainer,a=t.debug,o=t.autoDestroy,s=o===void 0?!0:o,c=t.children,u=L.useState(n),d=xe(u,2),h=d[0],m=d[1],p=h||n;qt(ur()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),L.useEffect(function(){(s||n)&&m(n)},[n,s]);var y=L.useState(function(){return YC(i)}),b=xe(y,2),v=b[0],x=b[1];L.useEffect(function(){var z=YC(i);x(z??null)});var _=yj(p&&!v,a),T=xe(_,2),C=T[0],w=T[1],A=v??C;Cj(r&&n&&ur()&&(A===C||A===document.body));var k=null;if(c&&df(c)&&e){var R=c;k=R.ref}var I=Z1(k,e);if(!p||!ur()||v===void 0)return null;var U=A===!1||_j(),D=c;return e&&(D=L.cloneElement(c,{ref:I})),L.createElement(HC.Provider,{value:w},U?D:Qd.createPortal(D,A))});rv.displayName="Portal";function Aj(){var t=fe({},L);return t.useId}var KC=0,ZC=Aj();const QC=ZC?(function(e){var n=ZC();return e||n}):(function(e){var n=L.useState("ssr-id"),r=xe(n,2),i=r[0],a=r[1];return L.useEffect(function(){var o=KC;KC+=1,a("rc_unique_".concat(o))},[]),e||i});var oo="RC_FORM_INTERNAL_HOOKS",Lt=function(){qt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ss=L.createContext({getFieldValue:Lt,getFieldsValue:Lt,getFieldError:Lt,getFieldWarning:Lt,getFieldsError:Lt,isFieldsTouched:Lt,isFieldTouched:Lt,isFieldValidating:Lt,isFieldsValidating:Lt,resetFields:Lt,setFields:Lt,setFieldValue:Lt,setFieldsValue:Lt,validateFields:Lt,submit:Lt,getInternalHooks:function(){return Lt(),{dispatch:Lt,initEntityValue:Lt,registerField:Lt,useSubscribe:Lt,setInitialValues:Lt,destroyForm:Lt,setCallbacks:Lt,registerWatch:Lt,getFields:Lt,setValidateMessages:Lt,setPreserve:Lt,getInitialValue:Lt}}}),Hf=L.createContext(null);function iv(t){return t==null?[]:Array.isArray(t)?t:[t]}function kj(t){return t&&!!t._init}function av(){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",tel:"%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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var ov=av();function Tj(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function Oj(t,e,n){if(X1())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&Hl(i,n.prototype),i}function sv(t){var e=typeof Map=="function"?new Map:void 0;return sv=function(r){if(r===null||!Tj(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return Oj(r,arguments,Wl(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Hl(i,r)},sv(t)}var qC={NODE_ENV:'"production"'},Rj=/%[sdj%]/g,JC=function(){};typeof process<"u"&&qC&&qC.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(JC=function(e,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(e,n)});function lv(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n)}),e}function kr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=0,a=n.length;if(typeof t=="function")return t.apply(null,n);if(typeof t=="string"){var o=t.replace(Rj,function(s){if(s==="%%")return"%";if(i>=a)return s;switch(s){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 s}});return o}return t}function Nj(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"||t==="tel"}function yn(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||Nj(e)&&typeof t=="string"&&!t)}function Pj(t,e,n){var r=[],i=0,a=t.length;function o(s){r.push.apply(r,je(s||[])),i++,i===a&&n(r)}t.forEach(function(s){e(s,o)})}function XC(t,e,n){var r=0,i=t.length;function a(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<i?e(t[s],a):n([])}a([])}function Ij(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,je(t[n]||[]))}),e}var $C=(function(t){ya(n,t);var e=ba(n);function n(r,i){var a;return kn(this,n),a=e.call(this,"Async Validation Error"),re(it(a),"errors",void 0),re(it(a),"fields",void 0),a.errors=r,a.fields=i,a}return Tn(n)})(sv(Error));function Mj(t,e,n,r,i){if(e.first){var a=new Promise(function(m,p){var y=function(x){return r(x),x.length?p(new $C(x,lv(x))):m(i)},b=Ij(t);XC(b,n,y)});return a.catch(function(m){return m}),a}var o=e.firstFields===!0?Object.keys(t):e.firstFields||[],s=Object.keys(t),c=s.length,u=0,d=[],h=new Promise(function(m,p){var y=function(v){if(d.push.apply(d,v),u++,u===c)return r(d),d.length?p(new $C(d,lv(d))):m(i)};s.length||(r(d),m(i)),s.forEach(function(b){var v=t[b];o.indexOf(b)!==-1?XC(v,n,y):Pj(v,n,y)})});return h.catch(function(m){return m}),h}function Lj(t){return!!(t&&t.message!==void 0)}function Fj(t,e){for(var n=t,r=0;r<e.length;r++){if(n==null)return n;n=n[e[r]]}return n}function ex(t,e){return function(n){var r;return t.fullFields?r=Fj(e,t.fullFields):r=e[n.field||t.fullField],Lj(n)?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||t.fullField}}}function tx(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];Ke(r)==="object"&&Ke(t[n])==="object"?t[n]=fe(fe({},t[n]),r):t[n]=r}}return t}var Es="enum",jj=function(e,n,r,i,a){e[Es]=Array.isArray(e[Es])?e[Es]:[],e[Es].indexOf(n)===-1&&i.push(kr(a.messages[Es],e.fullField,e[Es].join(", ")))},Dj=function(e,n,r,i,a){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||i.push(kr(a.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var o=new RegExp(e.pattern);o.test(n)||i.push(kr(a.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},Vj=function(e,n,r,i,a){var o=typeof e.len=="number",s=typeof e.min=="number",c=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,h=null,m=typeof n=="number",p=typeof n=="string",y=Array.isArray(n);if(m?h="number":p?h="string":y&&(h="array"),!h)return!1;y&&(d=n.length),p&&(d=n.replace(u,"_").length),o?d!==e.len&&i.push(kr(a.messages[h].len,e.fullField,e.len)):s&&!c&&d<e.min?i.push(kr(a.messages[h].min,e.fullField,e.min)):c&&!s&&d>e.max?i.push(kr(a.messages[h].max,e.fullField,e.max)):s&&c&&(d<e.min||d>e.max)&&i.push(kr(a.messages[h].range,e.fullField,e.min,e.max))},nx=function(e,n,r,i,a,o){e.required&&(!r.hasOwnProperty(e.field)||yn(n,o||e.type))&&i.push(kr(a.messages.required,e.fullField))},Wf;const Uj=(function(){if(Wf)return Wf;var t="[a-fA-F\\d:]",e=function(A){return A&&A.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(t,")|(?<=").concat(t,")(?=\\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),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(o,"$")),d=function(A){return A&&A.exact?s:new RegExp("(?:".concat(e(A)).concat(n).concat(e(A),")|(?:").concat(e(A)).concat(o).concat(e(A),")"),"g")};d.v4=function(w){return w&&w.exact?c:new RegExp("".concat(e(w)).concat(n).concat(e(w)),"g")},d.v6=function(w){return w&&w.exact?u:new RegExp("".concat(e(w)).concat(o).concat(e(w)),"g")};var h="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",p=d.v4().source,y=d.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",x="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",_="(?::\\d{2,5})?",T='(?:[/?#][^\\s"]*)?',C="(?:".concat(h,"|www\\.)").concat(m,"(?:localhost|").concat(p,"|").concat(y,"|").concat(b).concat(v).concat(x,")").concat(_).concat(T);return Wf=new RegExp("(?:^".concat(C,"$)"),"i"),Wf});var cv={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,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ic={integer:function(e){return ic.number(e)&&parseInt(e,10)===e},float:function(e){return ic.number(e)&&!ic.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return Ke(e)==="object"&&!ic.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(cv.email)},tel:function(e){return typeof e=="string"&&e.length<=32&&!!e.match(cv.tel)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(Uj())},hex:function(e){return typeof e=="string"&&!!e.match(cv.hex)}},Bj=function(e,n,r,i,a){if(e.required&&n===void 0){nx(e,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],s=e.type;o.indexOf(s)>-1?ic[s](n)||i.push(kr(a.messages.types[s],e.fullField,e.type)):s&&Ke(n)!==e.type&&i.push(kr(a.messages.types[s],e.fullField,e.type))},zj=function(e,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(kr(a.messages.whitespace,e.fullField))};const ct={required:nx,whitespace:zj,type:Bj,range:Vj,enum:jj,pattern:Dj};var Hj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n)&&!e.required)return r();ct.required(e,n,i,o,a)}r(o)},Wj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n==null&&!e.required)return r();ct.required(e,n,i,o,a,"array"),n!=null&&(ct.type(e,n,i,o,a),ct.range(e,n,i,o,a))}r(o)},Gj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n)&&!e.required)return r();ct.required(e,n,i,o,a),n!==void 0&&ct.type(e,n,i,o,a)}r(o)},Yj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n,"date")&&!e.required)return r();if(ct.required(e,n,i,o,a),!yn(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),ct.type(e,c,i,o,a),c&&ct.range(e,c.getTime(),i,o,a)}}r(o)},Kj="enum",Zj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n)&&!e.required)return r();ct.required(e,n,i,o,a),n!==void 0&&ct[Kj](e,n,i,o,a)}r(o)},Qj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n)&&!e.required)return r();ct.required(e,n,i,o,a),n!==void 0&&(ct.type(e,n,i,o,a),ct.range(e,n,i,o,a))}r(o)},qj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n)&&!e.required)return r();ct.required(e,n,i,o,a),n!==void 0&&(ct.type(e,n,i,o,a),ct.range(e,n,i,o,a))}r(o)},Jj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n)&&!e.required)return r();ct.required(e,n,i,o,a),n!==void 0&&ct.type(e,n,i,o,a)}r(o)},Xj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n===""&&(n=void 0),yn(n)&&!e.required)return r();ct.required(e,n,i,o,a),n!==void 0&&(ct.type(e,n,i,o,a),ct.range(e,n,i,o,a))}r(o)},$j=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n)&&!e.required)return r();ct.required(e,n,i,o,a),n!==void 0&&ct.type(e,n,i,o,a)}r(o)},eD=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n,"string")&&!e.required)return r();ct.required(e,n,i,o,a),yn(n,"string")||ct.pattern(e,n,i,o,a)}r(o)},tD=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n)&&!e.required)return r();ct.required(e,n,i,o,a),yn(n)||ct.type(e,n,i,o,a)}r(o)},nD=function(e,n,r,i,a){var o=[],s=Array.isArray(n)?"array":Ke(n);ct.required(e,n,i,o,a,s),r(o)},rD=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n,"string")&&!e.required)return r();ct.required(e,n,i,o,a,"string"),yn(n,"string")||(ct.type(e,n,i,o,a),ct.range(e,n,i,o,a),ct.pattern(e,n,i,o,a),e.whitespace===!0&&ct.whitespace(e,n,i,o,a))}r(o)},Gf=function(e,n,r,i,a){var o=e.type,s=[],c=e.required||!e.required&&i.hasOwnProperty(e.field);if(c){if(yn(n,o)&&!e.required)return r();ct.required(e,n,i,s,a,o),yn(n,o)||ct.type(e,n,i,s,a)}r(s)};const ac={string:rD,method:Jj,number:Xj,boolean:Gj,regexp:tD,integer:qj,float:Qj,array:Wj,object:$j,enum:Zj,pattern:eD,date:Yj,url:Gf,hex:Gf,email:Gf,tel:Gf,required:nD,any:Hj};var oc=(function(){function t(e){kn(this,t),re(this,"rules",null),re(this,"_messages",ov),this.define(e)}return Tn(t,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Ke(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=tx(av(),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,s=i,c=a;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,o),Promise.resolve(o);function u(y){var b=[],v={};function x(T){if(Array.isArray(T)){var C;b=(C=b).concat.apply(C,je(T))}else b.push(T)}for(var _=0;_<y.length;_++)x(y[_]);b.length?(v=lv(b),c(b,v)):c(null,o)}if(s.messages){var d=this.messages();d===ov&&(d=av()),tx(d,s.messages),s.messages=d}else s.messages=this.messages();var h={},m=s.keys||Object.keys(this.rules);m.forEach(function(y){var b=r.rules[y],v=o[y];b.forEach(function(x){var _=x;typeof _.transform=="function"&&(o===n&&(o=fe({},o)),v=o[y]=_.transform(v),v!=null&&(_.type=_.type||(Array.isArray(v)?"array":Ke(v)))),typeof _=="function"?_={validator:_}:_=fe({},_),_.validator=r.getValidationMethod(_),_.validator&&(_.field=y,_.fullField=_.fullField||y,_.type=r.getType(_),h[y]=h[y]||[],h[y].push({rule:_,value:v,source:o,field:y}))})});var p={};return Mj(h,s,function(y,b){var v=y.rule,x=(v.type==="object"||v.type==="array")&&(Ke(v.fields)==="object"||Ke(v.defaultField)==="object");x=x&&(v.required||!v.required&&y.value),v.field=y.field;function _(k,R){return fe(fe({},R),{},{fullField:"".concat(v.fullField,".").concat(k),fullFields:v.fullFields?[].concat(je(v.fullFields),[k]):[k]})}function T(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(k)?k:[k];!s.suppressWarning&&R.length&&t.warning("async-validator:",R),R.length&&v.message!==void 0&&v.message!==null&&(R=[].concat(v.message));var I=R.map(ex(v,o));if(s.first&&I.length)return p[v.field]=1,b(I);if(!x)b(I);else{if(v.required&&!y.value)return v.message!==void 0?I=[].concat(v.message).map(ex(v,o)):s.error&&(I=[s.error(v,kr(s.messages.required,v.field))]),b(I);var U={};v.defaultField&&Object.keys(y.value).map(function(Y){U[Y]=v.defaultField}),U=fe(fe({},U),y.rule.fields);var D={};Object.keys(U).forEach(function(Y){var j=U[Y],F=Array.isArray(j)?j:[j];D[Y]=F.map(_.bind(null,Y))});var z=new t(D);z.messages(s.messages),y.rule.options&&(y.rule.options.messages=s.messages,y.rule.options.error=s.error),z.validate(y.value,y.rule.options||s,function(Y){var j=[];I&&I.length&&j.push.apply(j,je(I)),Y&&Y.length&&j.push.apply(j,je(Y)),b(j.length?j:null)})}}var C;if(v.asyncValidator)C=v.asyncValidator(v,y.value,T,y.source,s);else if(v.validator){try{C=v.validator(v,y.value,T,y.source,s)}catch(k){var w,A;(w=(A=console).error)===null||w===void 0||w.call(A,k),s.suppressValidatorError||setTimeout(function(){throw k},0),T(k.message)}C===!0?T():C===!1?T(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):C instanceof Array?T(C):C instanceof Error&&T(C.message)}C&&C.then&&C.then(function(){return T()},function(k){return T(k)})},function(y){u(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&&!ac.hasOwnProperty(n.type))throw new Error(kr("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"?ac.required:ac[this.getType(n)]||void 0}}]),t})();re(oc,"register",function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ac[e]=n}),re(oc,"warning",JC),re(oc,"messages",ov),re(oc,"validators",ac);var Tr="'${name}' is not a valid ${type}",rx={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:Tr,method:Tr,array:Tr,object:Tr,number:Tr,date:Tr,boolean:Tr,integer:Tr,float:Tr,regexp:Tr,email:Tr,url:Tr,hex:Tr},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}"}},ix=oc;function iD(t,e){return t.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return e[r]})}var ax="CODE_LOGIC_ERROR";function uv(t,e,n,r,i){return fv.apply(this,arguments)}function fv(){return fv=rc(zr().mark(function t(e,n,r,i,a){var o,s,c,u,d,h,m,p,y;return zr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return o=fe({},r),delete o.ruleIndex,ix.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(x){return console.error(x),Promise.reject(ax)}}),c=null,o&&o.type==="array"&&o.defaultField&&(c=o.defaultField,delete o.defaultField),u=new ix(re({},e,[o])),d=ms(rx,i.validateMessages),u.messages(d),h=[],v.prev=10,v.next=13,Promise.resolve(u.validate(re({},e,n),fe({},i)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(h=v.t0.errors.map(function(x,_){var T=x.message,C=T===ax?d.default:T;return L.isValidElement(C)?L.cloneElement(C,{key:"error_".concat(_)}):C}));case 18:if(!(!h.length&&c&&Array.isArray(n)&&n.length>0)){v.next=23;break}return v.next=21,Promise.all(n.map(function(x,_){return uv("".concat(e,".").concat(_),x,c,i,a)}));case 21:return m=v.sent,v.abrupt("return",m.reduce(function(x,_){return[].concat(je(x),je(_))},[]));case 23:return p=fe(fe({},r),{},{name:e,enum:(r.enum||[]).join(", ")},a),y=h.map(function(x){return typeof x=="string"?iD(x,p):x}),v.abrupt("return",y);case 26:case"end":return v.stop()}},t,null,[[10,15]])})),fv.apply(this,arguments)}function aD(t,e,n,r,i,a){var o=t.join("."),s=n.map(function(d,h){var m=d.validator,p=fe(fe({},d),{},{ruleIndex:h});return m&&(p.validator=function(y,b,v){var x=!1,_=function(){for(var w=arguments.length,A=new Array(w),k=0;k<w;k++)A[k]=arguments[k];Promise.resolve().then(function(){qt(!x,"Your validator function has already return a promise. `callback` will be ignored."),x||v.apply(void 0,A)})},T=m(y,b,_);x=T&&typeof T.then=="function"&&typeof T.catch=="function",qt(x,"`callback` is deprecated. Please return a promise instead."),x&&T.then(function(){v()}).catch(function(C){v(C||" ")})}),p}).sort(function(d,h){var m=d.warningOnly,p=d.ruleIndex,y=h.warningOnly,b=h.ruleIndex;return!!m==!!y?p-b:m?1:-1}),c;if(i===!0)c=new Promise((function(){var d=rc(zr().mark(function h(m,p){var y,b,v;return zr().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:y=0;case 1:if(!(y<s.length)){_.next=12;break}return b=s[y],_.next=5,uv(o,e,b,r,a);case 5:if(v=_.sent,!v.length){_.next=9;break}return p([{errors:v,rule:b}]),_.abrupt("return");case 9:y+=1,_.next=1;break;case 12:m([]);case 13:case"end":return _.stop()}},h)}));return function(h,m){return d.apply(this,arguments)}})());else{var u=s.map(function(d){return uv(o,e,d,r,a).then(function(h){return{errors:h,rule:d}})});c=(i?sD(u):oD(u)).then(function(d){return Promise.reject(d)})}return c.catch(function(d){return d}),c}function oD(t){return dv.apply(this,arguments)}function dv(){return dv=rc(zr().mark(function t(e){return zr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(e).then(function(i){var a,o=(a=[]).concat.apply(a,je(i));return o}));case 1:case"end":return r.stop()}},t)})),dv.apply(this,arguments)}function sD(t){return hv.apply(this,arguments)}function hv(){return hv=rc(zr().mark(function t(e){var n;return zr().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=0,i.abrupt("return",new Promise(function(a){e.forEach(function(o){o.then(function(s){s.errors.length&&a([s]),n+=1,n===e.length&&a([])})})}));case 2:case"end":return i.stop()}},t)})),hv.apply(this,arguments)}function on(t){return iv(t)}function ox(t,e){var n={};return e.forEach(function(r){var i=Ri(t,r);n=fi(n,r,i)}),n}function Cs(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return t&&t.some(function(r){return sx(e,r,n)})}function sx(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!t||!e||!n&&t.length!==e.length?!1:e.every(function(r,i){return t[i]===r})}function lD(t,e){if(t===e)return!0;if(!t&&e||t&&!e||!t||!e||Ke(t)!=="object"||Ke(e)!=="object")return!1;var n=Object.keys(t),r=Object.keys(e),i=new Set([].concat(n,r));return je(i).every(function(a){var o=t[a],s=e[a];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function cD(t){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&Ke(e.target)==="object"&&t in e.target?e.target[t]:e}function lx(t,e,n){var r=t.length;if(e<0||e>=r||n<0||n>=r)return t;var i=t[e],a=e-n;return a>0?[].concat(je(t.slice(0,n)),[i],je(t.slice(n,e)),je(t.slice(e+1,r))):a<0?[].concat(je(t.slice(0,e)),je(t.slice(e+1,n+1)),[i],je(t.slice(n+1,r))):t}var uD=["name"],Hr=[];function pv(t,e,n,r,i,a){return typeof t=="function"?t(e,n,"source"in a?{source:a.source}:{}):r!==i}var mv=(function(t){ya(n,t);var e=ba(n);function n(r){var i;if(kn(this,n),i=e.call(this,r),re(it(i),"state",{resetCount:0}),re(it(i),"cancelRegisterFunc",null),re(it(i),"mounted",!1),re(it(i),"touched",!1),re(it(i),"dirty",!1),re(it(i),"validatePromise",void 0),re(it(i),"prevValidating",void 0),re(it(i),"errors",Hr),re(it(i),"warnings",Hr),re(it(i),"cancelRegister",function(){var c=i.props,u=c.preserve,d=c.isListField,h=c.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(d,u,on(h)),i.cancelRegisterFunc=null}),re(it(i),"getNamePath",function(){var c=i.props,u=c.name,d=c.fieldContext,h=d.prefixName,m=h===void 0?[]:h;return u!==void 0?[].concat(je(m),je(u)):[]}),re(it(i),"getRules",function(){var c=i.props,u=c.rules,d=u===void 0?[]:u,h=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(h):m})}),re(it(i),"refresh",function(){i.mounted&&i.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),re(it(i),"metaCache",null),re(it(i),"triggerMetaEvent",function(c){var u=i.props.onMetaChange;if(u){var d=fe(fe({},i.getMeta()),{},{destroy:c});rg(i.metaCache,d)||u(d),i.metaCache=d}else i.metaCache=null}),re(it(i),"onStoreChange",function(c,u,d){var h=i.props,m=h.shouldUpdate,p=h.dependencies,y=p===void 0?[]:p,b=h.onReset,v=d.store,x=i.getNamePath(),_=i.getValue(c),T=i.getValue(v),C=u&&Cs(u,x);switch(d.type==="valueUpdate"&&d.source==="external"&&!rg(_,T)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Hr,i.warnings=Hr,i.triggerMetaEvent()),d.type){case"reset":if(!u||C){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Hr,i.warnings=Hr,i.triggerMetaEvent(),b==null||b(),i.refresh();return}break;case"remove":{if(m&&pv(m,c,v,_,T,d)){i.reRender();return}break}case"setField":{var w=d.data;if(C){"touched"in w&&(i.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(i.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(i.errors=w.errors||Hr),"warnings"in w&&(i.warnings=w.warnings||Hr),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in w&&Cs(u,x,!0)){i.reRender();return}if(m&&!x.length&&pv(m,c,v,_,T,d)){i.reRender();return}break}case"dependenciesUpdate":{var A=y.map(on);if(A.some(function(k){return Cs(d.relatedFields,k)})){i.reRender();return}break}default:if(C||(!y.length||x.length||m)&&pv(m,c,v,_,T,d)){i.reRender();return}break}m===!0&&i.reRender()}),re(it(i),"validateRules",function(c){var u=i.getNamePath(),d=i.getValue(),h=c||{},m=h.triggerName,p=h.validateOnly,y=p===void 0?!1:p,b=Promise.resolve().then(rc(zr().mark(function v(){var x,_,T,C,w,A,k;return zr().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(i.mounted){I.next=2;break}return I.abrupt("return",[]);case 2:if(x=i.props,_=x.validateFirst,T=_===void 0?!1:_,C=x.messageVariables,w=x.validateDebounce,A=i.getRules(),m&&(A=A.filter(function(U){return U}).filter(function(U){var D=U.validateTrigger;if(!D)return!0;var z=iv(D);return z.includes(m)})),!(w&&m)){I.next=10;break}return I.next=8,new Promise(function(U){setTimeout(U,w)});case 8:if(i.validatePromise===b){I.next=10;break}return I.abrupt("return",[]);case 10:return k=aD(u,d,A,c,T,C),k.catch(function(U){return U}).then(function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hr;if(i.validatePromise===b){var D;i.validatePromise=null;var z=[],Y=[];(D=U.forEach)===null||D===void 0||D.call(U,function(j){var F=j.rule.warningOnly,V=j.errors,G=V===void 0?Hr:V;F?Y.push.apply(Y,je(G)):z.push.apply(z,je(G))}),i.errors=z,i.warnings=Y,i.triggerMetaEvent(),i.reRender()}}),I.abrupt("return",k);case 13:case"end":return I.stop()}},v)})));return y||(i.validatePromise=b,i.dirty=!0,i.errors=Hr,i.warnings=Hr,i.triggerMetaEvent(),i.reRender()),b}),re(it(i),"isFieldValidating",function(){return!!i.validatePromise}),re(it(i),"isFieldTouched",function(){return i.touched}),re(it(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var c=i.props.fieldContext,u=c.getInternalHooks(oo),d=u.getInitialValue;return d(i.getNamePath())!==void 0}),re(it(i),"getErrors",function(){return i.errors}),re(it(i),"getWarnings",function(){return i.warnings}),re(it(i),"isListField",function(){return i.props.isListField}),re(it(i),"isList",function(){return i.props.isList}),re(it(i),"isPreserve",function(){return i.props.preserve}),re(it(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var c={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return c}),re(it(i),"getOnlyChild",function(c){if(typeof c=="function"){var u=i.getMeta();return fe(fe({},i.getOnlyChild(c(i.getControlled(),u,i.props.fieldContext))),{},{isFunction:!0})}var d=uf(c);return d.length!==1||!L.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),re(it(i),"getValue",function(c){var u=i.props.fieldContext.getFieldsValue,d=i.getNamePath();return Ri(c||u(!0),d)}),re(it(i),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=i.props,d=u.name,h=u.trigger,m=u.validateTrigger,p=u.getValueFromEvent,y=u.normalize,b=u.valuePropName,v=u.getValueProps,x=u.fieldContext,_=m!==void 0?m:x.validateTrigger,T=i.getNamePath(),C=x.getInternalHooks,w=x.getFieldsValue,A=C(oo),k=A.dispatch,R=i.getValue(),I=v||function(j){return re({},b,j)},U=c[h],D=d!==void 0?I(R):{};D&&Object.keys(D).forEach(function(j){qt(typeof D[j]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(j,")"))});var z=fe(fe({},c),D);z[h]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var j,F=arguments.length,V=new Array(F),G=0;G<F;G++)V[G]=arguments[G];p?j=p.apply(void 0,V):j=cD.apply(void 0,[b].concat(V)),y&&(j=y(j,R,w(!0))),j!==R&&k({type:"updateValue",namePath:T,value:j}),U&&U.apply(void 0,V)};var Y=iv(_||[]);return Y.forEach(function(j){var F=z[j];z[j]=function(){F&&F.apply(void 0,arguments);var V=i.props.rules;V&&V.length&&k({type:"validateField",namePath:T,triggerName:j})}}),z}),r.fieldContext){var a=r.fieldContext.getInternalHooks,o=a(oo),s=o.initEntityValue;s(it(i))}return i}return Tn(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.shouldUpdate,o=i.fieldContext;if(this.mounted=!0,o){var s=o.getInternalHooks,c=s(oo),u=c.registerField;this.cancelRegisterFunc=u(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),s=o.child,c=o.isFunction,u;return c?u=s:L.isValidElement(s)?u=L.cloneElement(s,this.getControlled(s.props)):(qt(!s,"`children` of Field is not validate ReactElement."),u=s),L.createElement(L.Fragment,{key:i},u)}}]),n})(L.Component);re(mv,"contextType",Ss),re(mv,"defaultProps",{trigger:"onChange",valuePropName:"value"});function cx(t){var e,n=t.name,r=Ti(t,uD),i=L.useContext(Ss),a=L.useContext(Hf),o=n!==void 0?on(n):void 0,s=(e=r.isListField)!==null&&e!==void 0?e:!!a,c="keep";return s||(c="_".concat((o||[]).join("_"))),r.preserve===!1&&s&&o.length<=1&&qt(!1,"`preserve` should not apply on Form.List fields."),L.createElement(mv,_r({key:c,name:o,isListField:s},r,{fieldContext:i}))}function fD(t){var e=t.name,n=t.initialValue,r=t.children,i=t.rules,a=t.validateTrigger,o=t.isListField,s=L.useContext(Ss),c=L.useContext(Hf),u=L.useRef({keys:[],id:0}),d=u.current,h=L.useMemo(function(){var b=on(s.prefixName)||[];return[].concat(je(b),je(on(e)))},[s.prefixName,e]),m=L.useMemo(function(){return fe(fe({},s),{},{prefixName:h})},[s,h]),p=L.useMemo(function(){return{getKey:function(v){var x=h.length,_=v[x];return[d.keys[_],v.slice(x+1)]}}},[h]);if(typeof r!="function")return qt(!1,"Form.List only accepts function as children."),null;var y=function(v,x,_){var T=_.source;return T==="internal"?!1:v!==x};return L.createElement(Hf.Provider,{value:p},L.createElement(Ss.Provider,{value:m},L.createElement(cx,{name:[],shouldUpdate:y,rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:o??!!c},function(b,v){var x=b.value,_=x===void 0?[]:x,T=b.onChange,C=s.getFieldValue,w=function(){var I=C(h||[]);return I||[]},A={add:function(I,U){var D=w();U>=0&&U<=D.length?(d.keys=[].concat(je(d.keys.slice(0,U)),[d.id],je(d.keys.slice(U))),T([].concat(je(D.slice(0,U)),[I],je(D.slice(U))))):((U<0||U>D.length)&&qt(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(je(d.keys),[d.id]),T([].concat(je(D),[I]))),d.id+=1},remove:function(I){var U=w(),D=new Set(Array.isArray(I)?I:[I]);D.size<=0||(d.keys=d.keys.filter(function(z,Y){return!D.has(Y)}),T(U.filter(function(z,Y){return!D.has(Y)})))},move:function(I,U){if(I!==U){var D=w();I<0||I>=D.length||U<0||U>=D.length||(d.keys=lx(d.keys,I,U),T(lx(D,I,U)))}}},k=_||[];return Array.isArray(k)||(k=[],qt(!1,"Current value of '".concat(h.join(" > "),"' is not an array type."))),r(k.map(function(R,I){var U=d.keys[I];return U===void 0&&(d.keys[I]=d.id,U=d.keys[I],d.id+=1),{name:I,key:U,isListField:!0}}),A,v)})))}function dD(t){var e=!1,n=t.length,r=[];return t.length?new Promise(function(i,a){t.forEach(function(o,s){o.catch(function(c){return e=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(e&&a(r),i(r))})})}):Promise.resolve([])}var ux="__@field_split__";function gv(t){return t.map(function(e){return"".concat(Ke(e),":").concat(e)}).join(ux)}var xs=(function(){function t(){kn(this,t),re(this,"kvs",new Map)}return Tn(t,[{key:"set",value:function(n,r){this.kvs.set(gv(n),r)}},{key:"get",value:function(n){return this.kvs.get(gv(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(gv(n))}},{key:"map",value:function(n){return je(this.kvs.entries()).map(function(r){var i=xe(r,2),a=i[0],o=i[1],s=a.split(ux);return n({key:s.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=xe(u,3),h=d[1],m=d[2];return h==="number"?Number(m):m}),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}}]),t})(),hD=["name"],pD=Tn(function t(e){var n=this;kn(this,t),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===oo?(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=ms(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var c=s.key;o=fi(o,c,Ri(r,c))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),re(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new xs;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=Ri(n.initialValues,r);return r.length?ms(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 xs;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=on(a);return i.get(o)||{INVALIDATE_NAME_PATH:on(a)}})}),re(this,"getFieldsValue",function(r,i){n.warningUnhooked();var a,o,s;if(r===!0||Array.isArray(r)?(a=r,o=i):r&&Ke(r)==="object"&&(s=r.strict,o=r.filter),a===!0&&!o)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return c.forEach(function(d){var h,m,p="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var y,b;if((y=(b=d).isList)!==null&&y!==void 0&&y.call(b))return}else if(!a&&(h=(m=d).isListField)!==null&&h!==void 0&&h.call(m))return;if(!o)u.push(p);else{var v="getMeta"in d?d.getMeta():null;o(v)&&u.push(p)}}),ox(n.store,u.map(on))}),re(this,"getFieldValue",function(r){n.warningUnhooked();var i=on(r);return Ri(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:on(r[o]),errors:[],warnings:[]}})}),re(this,"getFieldError",function(r){n.warningUnhooked();var i=on(r),a=n.getFieldsError([i])[0];return a.errors}),re(this,"getFieldWarning",function(r){n.warningUnhooked();var i=on(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],s=i[1],c,u=!1;i.length===0?c=null:i.length===1?Array.isArray(o)?(c=o.map(on),u=!1):(c=null,u=o):(c=o.map(on),u=s);var d=n.getFieldEntities(!0),h=function(v){return v.isFieldTouched()};if(!c)return u?d.every(function(b){return h(b)||b.isList()}):d.some(h);var m=new xs;c.forEach(function(b){m.set(b,[])}),d.forEach(function(b){var v=b.getNamePath();c.forEach(function(x){x.every(function(_,T){return v[T]===_})&&m.update(x,function(_){return[].concat(je(_),[b])})})});var p=function(v){return v.some(h)},y=m.map(function(b){var v=b.value;return v});return u?y.every(p):y.some(p)}),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(on);return i.some(function(o){var s=o.getNamePath();return Cs(a,s)&&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 xs,a=n.getFieldEntities(!0);a.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var h=i.get(d)||new Set;h.add({entity:c,value:u}),i.set(d,h)}});var o=function(u){u.forEach(function(d){var h=d.props.initialValue;if(h!==void 0){var m=d.getNamePath(),p=n.getInitialValue(m);if(p!==void 0)qt(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var y=i.get(m);if(y&&y.size>1)qt(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var b=n.getFieldValue(m),v=d.isListField();!v&&(!r.skipExist||b===void 0)&&n.updateStore(fi(n.store,m,je(y)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var u=i.get(c);if(u){var d;(d=s).push.apply(d,je(je(u).map(function(h){return h.entity})))}})):s=a,o(s)}),re(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(ms(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(on);a.forEach(function(o){var s=n.getInitialValue(o);n.updateStore(fi(n.store,o,s))}),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 s=o.name,c=Ti(o,hD),u=on(s);a.push(u),"value"in c&&n.updateStore(fi(n.store,u,c.value)),n.notifyObservers(i,[u],{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(),s=a.getMeta(),c=fe(fe({},s),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return i}),re(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var a=r.getNamePath(),o=Ri(n.store,a);o===void 0&&n.updateStore(fi(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,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(h){return h!==r}),!n.isMergedPreserve(s)&&(!o||c.length>1)){var u=o?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==u&&n.fieldEntities.every(function(h){return!sx(h.getNamePath(),i)})){var d=n.store;n.updateStore(fi(d,i,u,!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,s=r.triggerName;n.validateFields([o],{triggerName:s});break}}}),re(this,"notifyObservers",function(r,i,a){if(n.subscribable){var o=fe(fe({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(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(je(a))}),a}),re(this,"updateValue",function(r,i){var a=on(r),o=n.store;n.updateStore(fi(n.store,a,i)),n.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(o,a),c=n.callbacks.onValuesChange;if(c){var u=ox(n.store,[a]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(je(s)))}),re(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var a=ms(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 xs;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var h=on(d);o.update(h,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var s=function c(u){var d=o.get(u)||new Set;d.forEach(function(h){if(!i.has(h)){i.add(h);var m=h.getNamePath();h.isFieldDirty()&&m.length&&(a.push(m),c(m))}})};return s(r),a}),re(this,"triggerOnFieldsChange",function(r,i){var a=n.callbacks.onFieldsChange;if(a){var o=n.getFields();if(i){var s=new xs;i.forEach(function(u){var d=u.name,h=u.errors;s.set(d,h)}),o.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var c=o.filter(function(u){var d=u.name;return Cs(r,d)});c.length&&a(c,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 s=!!a,c=s?a.map(on):[],u=[],d=String(Date.now()),h=new Set,m=o||{},p=m.recursive,y=m.dirty;n.getFieldEntities(!0).forEach(function(_){if(s||c.push(_.getNamePath()),!(!_.props.rules||!_.props.rules.length)&&!(y&&!_.isFieldDirty())){var T=_.getNamePath();if(h.add(T.join(d)),!s||Cs(c,T,p)){var C=_.validateRules(fe({validateMessages:fe(fe({},rx),n.validateMessages)},o));u.push(C.then(function(){return{name:T,errors:[],warnings:[]}}).catch(function(w){var A,k=[],R=[];return(A=w.forEach)===null||A===void 0||A.call(w,function(I){var U=I.rule.warningOnly,D=I.errors;U?R.push.apply(R,je(D)):k.push.apply(k,je(D))}),k.length?Promise.reject({name:T,errors:k,warnings:R}):{name:T,errors:k,warnings:R}}))}}});var b=dD(u);n.lastValidatePromise=b,b.catch(function(_){return _}).then(function(_){var T=_.map(function(C){var w=C.name;return w});n.notifyObservers(n.store,T,{type:"validateFinish"}),n.triggerOnFieldsChange(T,_)});var v=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(_){var T=_.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:T,outOfDate:n.lastValidatePromise!==b})});v.catch(function(_){return _});var x=c.filter(function(_){return h.has(_.join(d))});return n.triggerOnFieldsChange(x),v}),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=e});function fx(t){var e=L.useRef(),n=L.useState({}),r=xe(n,2),i=r[1];if(!e.current)if(t)e.current=t;else{var a=function(){i({})},o=new pD(a);e.current=o.getForm()}return[e.current]}var vv=L.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),mD=function(e){var n=e.validateMessages,r=e.onFormChange,i=e.onFormFinish,a=e.children,o=L.useContext(vv),s=L.useRef({});return L.createElement(vv.Provider,{value:fe(fe({},o),{},{validateMessages:fe(fe({},o.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),o.triggerFormChange(u,d)},triggerFormFinish:function(u,d){i&&i(u,{values:d,forms:s.current}),o.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=fe(fe({},s.current),{},re({},u,d))),o.registerForm(u,d)},unregisterForm:function(u){var d=fe({},s.current);delete d[u],s.current=d,o.unregisterForm(u)}})},a)},gD=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],vD=function(e,n){var r=e.name,i=e.initialValues,a=e.fields,o=e.form,s=e.preserve,c=e.children,u=e.component,d=u===void 0?"form":u,h=e.validateMessages,m=e.validateTrigger,p=m===void 0?"onChange":m,y=e.onValuesChange,b=e.onFieldsChange,v=e.onFinish,x=e.onFinishFailed,_=e.clearOnDestroy,T=Ti(e,gD),C=L.useRef(null),w=L.useContext(vv),A=fx(o),k=xe(A,1),R=k[0],I=R.getInternalHooks(oo),U=I.useSubscribe,D=I.setInitialValues,z=I.setCallbacks,Y=I.setValidateMessages,j=I.setPreserve,F=I.destroyForm;L.useImperativeHandle(n,function(){return fe(fe({},R),{},{nativeElement:C.current})}),L.useEffect(function(){return w.registerForm(r,R),function(){w.unregisterForm(r)}},[w,R,r]),Y(fe(fe({},w.validateMessages),h)),z({onValuesChange:y,onFieldsChange:function(ce){if(w.triggerFormChange(r,ce),b){for(var ie=arguments.length,J=new Array(ie>1?ie-1:0),ue=1;ue<ie;ue++)J[ue-1]=arguments[ue];b.apply(void 0,[ce].concat(J))}},onFinish:function(ce){w.triggerFormFinish(r,ce),v&&v(ce)},onFinishFailed:x}),j(s);var V=L.useRef(null);D(i,!V.current),V.current||(V.current=!0),L.useEffect(function(){return function(){return F(_)}},[]);var G,B=typeof c=="function";if(B){var q=R.getFieldsValue(!0);G=c(q,R)}else G=c;U(!B);var W=L.useRef();L.useEffect(function(){lD(W.current||[],a||[])||R.setFields(a||[]),W.current=a},[a,R]);var K=L.useMemo(function(){return fe(fe({},R),{},{validateTrigger:p})},[R,p]),te=L.createElement(Hf.Provider,{value:null},L.createElement(Ss.Provider,{value:K},G));return d===!1?te:L.createElement(d,_r({},T,{ref:C,onSubmit:function(ce){ce.preventDefault(),ce.stopPropagation(),R.submit()},onReset:function(ce){var ie;ce.preventDefault(),R.resetFields(),(ie=T.onReset)===null||ie===void 0||ie.call(T,ce)}}),te)};function dx(t){try{return JSON.stringify(t)}catch{return Math.random()}}var yD=function(t){var e=t.join("__RC_FIELD_FORM_SPLIT__"),n=N.useRef(e);qt(n.current===e,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")};function bD(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],i=e[1],a=i===void 0?{}:i,o=kj(a)?{form:a}:a,s=o.form,c=N.useState(),u=xe(c,2),d=u[0],h=u[1],m=N.useMemo(function(){return dx(d)},[d]),p=N.useRef(m);p.current=m;var y=N.useContext(Ss),b=s||y,v=b&&b._init;qt(e.length===2?s?v:!0:v,"useWatch requires a form instance since it can not auto detect from context.");var x=on(r),_=N.useRef(x);return _.current=x,yD(x),N.useEffect(function(){if(v){var T=b.getFieldsValue,C=b.getInternalHooks,w=C(oo),A=w.registerWatch,k=function(D,z){var Y=o.preserve?z:D;return typeof r=="function"?r(Y):Ri(Y,_.current)},R=A(function(U,D){var z=k(U,D),Y=dx(z);p.current!==Y&&(p.current=Y,h(z))}),I=k(T(),T(!0));return d!==I&&h(I),R}},[v]),d}var wD=L.forwardRef(vD),sc=wD;sc.FormProvider=mD,sc.Field=cx,sc.List=fD,sc.useForm=fx,sc.useWatch=bD;const yv=L.createContext({});yv.displayName="FormItemInputContext";const SD=({children:t,status:e,override:n})=>{const r=L.useContext(yv),i=L.useMemo(()=>{const a=Object.assign({},r);return n&&delete a.isFormItemInput,e&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[e,n,r]);return L.createElement(yv.Provider,{value:i},t)},ED=t=>{const{space:e,form:n,children:r}=t;if(r==null)return null;let i=r;return n&&(i=N.createElement(SD,{override:!0,status:!0},i)),e&&(i=N.createElement(VF,null,i)),i},CD=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var t=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(t)||/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(t==null?void 0:t.substr(0,4))});function xD(t){var e=t.prefixCls,n=t.align,r=t.arrow,i=t.arrowPos,a=r||{},o=a.className,s=a.content,c=i.x,u=c===void 0?0:c,d=i.y,h=d===void 0?0:d,m=L.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var y=n.points[0],b=n.points[1],v=y[0],x=y[1],_=b[0],T=b[1];v===_||!["t","b"].includes(v)?p.top=h:v==="t"?p.top=0:p.bottom=0,x===T||!["l","r"].includes(x)?p.left=u:x==="l"?p.left=0:p.right=0}return L.createElement("div",{ref:m,className:Nt("".concat(e,"-arrow"),o),style:p},s)}function _D(t){var e=t.prefixCls,n=t.open,r=t.zIndex,i=t.mask,a=t.motion;return i?L.createElement(Bf,_r({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var s=o.className;return L.createElement("div",{style:{zIndex:r},className:Nt("".concat(e,"-mask"),s)})}):null}var hx=L.memo(function(t){var e=t.children;return e},function(t,e){return e.cache});hx.displayName="PopupContent";var px=L.forwardRef(function(t,e){var n=t.popup,r=t.className,i=t.prefixCls,a=t.style,o=t.target,s=t.onVisibleChanged,c=t.open,u=t.keepDom,d=t.fresh,h=t.onClick,m=t.mask,p=t.arrow,y=t.arrowPos,b=t.align,v=t.motion,x=t.maskMotion,_=t.forceRender,T=t.getPopupContainer,C=t.autoDestroy,w=t.portal,A=t.zIndex,k=t.onMouseEnter,R=t.onMouseLeave,I=t.onPointerEnter,U=t.onPointerDownCapture,D=t.ready,z=t.offsetX,Y=t.offsetY,j=t.offsetR,F=t.offsetB,V=t.onAlign,G=t.onPrepare,B=t.stretch,q=t.targetWidth,W=t.targetHeight,K=typeof n=="function"?n():n,te=c||u,ne=(T==null?void 0:T.length)>0,ce=L.useState(!T||!ne),ie=xe(ce,2),J=ie[0],ue=ie[1];if(Qn(function(){!J&&ne&&o&&ue(!0)},[J,ne,o]),!J)return null;var le="auto",ve={left:"-1000vw",top:"-1000vh",right:le,bottom:le};if(D||!c){var he,be=b.points,ee=b.dynamicInset||((he=b._experimental)===null||he===void 0?void 0:he.dynamicInset),Ie=ee&&be[0][1]==="r",ye=ee&&be[0][0]==="b";Ie?(ve.right=j,ve.left=le):(ve.left=z,ve.right=le),ye?(ve.bottom=F,ve.top=le):(ve.top=Y,ve.bottom=le)}var Fe={};return B&&(B.includes("height")&&W?Fe.height=W:B.includes("minHeight")&&W&&(Fe.minHeight=W),B.includes("width")&&q?Fe.width=q:B.includes("minWidth")&&q&&(Fe.minWidth=q)),c||(Fe.pointerEvents="none"),L.createElement(w,{open:_||te,getContainer:T&&function(){return T(o)},autoDestroy:C},L.createElement(_D,{prefixCls:i,open:c,zIndex:A,mask:m,motion:x}),L.createElement(gf,{onResize:V,disabled:!c},function(at){return L.createElement(Bf,_r({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:_,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:G,onEnterPrepare:G,visible:c,onVisibleChanged:function(tt){var Ae;v==null||(Ae=v.onVisibleChanged)===null||Ae===void 0||Ae.call(v,tt),s(tt)}}),function(Pe,tt){var Ae=Pe.className,nt=Pe.style,Le=Nt(i,Ae,r);return L.createElement("div",{ref:FS(at,e,tt),className:Le,style:fe(fe(fe(fe({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},ve),Fe),nt),{},{boxSizing:"border-box",zIndex:A},a),onMouseEnter:k,onMouseLeave:R,onPointerEnter:I,onClick:h,onPointerDownCapture:U},p&&L.createElement(xD,{prefixCls:i,arrow:p,arrowPos:y,align:b}),L.createElement(hx,{cache:!c&&!d},K))})}))});px.displayName="Popup";var mx=L.forwardRef(function(t,e){var n=t.children,r=t.getTriggerDOMNode,i=df(n),a=L.useCallback(function(s){K1(e,r?r(s):s)},[r]),o=Z1(a,Q1(n));return i?L.cloneElement(n,{ref:o}):n});mx.displayName="TriggerWrapper";var gx=L.createContext(null);function vx(t){return t?Array.isArray(t)?t:[t]:[]}function AD(t,e,n,r){return L.useMemo(function(){var i=vx(n??e),a=vx(r??e),o=new Set(i),s=new Set(a);return t&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[t,e,n,r])}function kD(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function TD(t,e,n,r){for(var i=n.points,a=Object.keys(t),o=0;o<a.length;o+=1){var s,c=a[o];if(kD((s=t[c])===null||s===void 0?void 0:s.points,i,r))return"".concat(e,"-placement-").concat(c)}return""}function yx(t,e,n,r){return e||(n?{motionName:"".concat(t,"-").concat(n)}:r?{motionName:r}:null)}function lc(t){return t.ownerDocument.defaultView}function bv(t){for(var e=[],n=t==null?void 0:t.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=lc(n).getComputedStyle(n),a=i.overflowX,o=i.overflowY,s=i.overflow;[a,o,s].some(function(c){return r.includes(c)})&&e.push(n),n=n.parentElement}return e}function cc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(t)?e:t}function uc(t){return cc(parseFloat(t),0)}function bx(t,e){var n=fe({},t);return(e||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=lc(r).getComputedStyle(r),a=i.overflow,o=i.overflowClipMargin,s=i.borderTopWidth,c=i.borderBottomWidth,u=i.borderLeftWidth,d=i.borderRightWidth,h=r.getBoundingClientRect(),m=r.offsetHeight,p=r.clientHeight,y=r.offsetWidth,b=r.clientWidth,v=uc(s),x=uc(c),_=uc(u),T=uc(d),C=cc(Math.round(h.width/y*1e3)/1e3),w=cc(Math.round(h.height/m*1e3)/1e3),A=(y-b-_-T)*C,k=(m-p-v-x)*w,R=v*w,I=x*w,U=_*C,D=T*C,z=0,Y=0;if(a==="clip"){var j=uc(o);z=j*C,Y=j*w}var F=h.x+U-z,V=h.y+R-Y,G=F+h.width+2*z-U-D-A,B=V+h.height+2*Y-R-I-k;n.left=Math.max(n.left,F),n.top=Math.max(n.top,V),n.right=Math.min(n.right,G),n.bottom=Math.min(n.bottom,B)}}),n}function wx(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(e),r=n.match(/^(.*)\%$/);return r?t*(parseFloat(r[1])/100):parseFloat(n)}function Sx(t,e){var n=e||[],r=xe(n,2),i=r[0],a=r[1];return[wx(t.width,i),wx(t.height,a)]}function Ex(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[t[0],t[1]]}function _s(t,e){var n=e[0],r=e[1],i,a;return n==="t"?a=t.y:n==="b"?a=t.y+t.height:a=t.y+t.height/2,r==="l"?i=t.x:r==="r"?i=t.x+t.width:i=t.x+t.width/2,{x:i,y:a}}function Aa(t,e){var n={t:"b",b:"t",l:"r",r:"l"};return t.map(function(r,i){return i===e?n[r]||"c":r}).join("")}function OD(t,e,n,r,i,a,o){var s=L.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),c=xe(s,2),u=c[0],d=c[1],h=L.useRef(0),m=L.useMemo(function(){return e?bv(e):[]},[e]),p=L.useRef({}),y=function(){p.current={}};t||y();var b=fr(function(){if(e&&n&&t){let rr=function(ho,vi){var Fi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$e,Na=te.x+ho,Ls=te.y+vi,bc=Na+ye,wc=Ls+Ie,Sc=Math.max(Na,Fi.left),Oe=Math.max(Ls,Fi.top),Ve=Math.min(bc,Fi.right),Bt=Math.min(wc,Fi.bottom);return Math.max(0,(Ve-Sc)*(Bt-Oe))},ea=function(){Wn=te.y+ut,Ln=Wn+Ie,gr=te.x+mt,ke=gr+ye};var _,T,C,w,A=e,k=A.ownerDocument,R=lc(A),I=R.getComputedStyle(A),U=I.position,D=A.style.left,z=A.style.top,Y=A.style.right,j=A.style.bottom,F=A.style.overflow,V=fe(fe({},i[r]),a),G=k.createElement("div");(_=A.parentElement)===null||_===void 0||_.appendChild(G),G.style.left="".concat(A.offsetLeft,"px"),G.style.top="".concat(A.offsetTop,"px"),G.style.position=U,G.style.height="".concat(A.offsetHeight,"px"),G.style.width="".concat(A.offsetWidth,"px"),A.style.left="0",A.style.top="0",A.style.right="auto",A.style.bottom="auto",A.style.overflow="hidden";var B;if(Array.isArray(n))B={x:n[0],y:n[1],width:0,height:0};else{var q,W,K=n.getBoundingClientRect();K.x=(q=K.x)!==null&&q!==void 0?q:K.left,K.y=(W=K.y)!==null&&W!==void 0?W:K.top,B={x:K.x,y:K.y,width:K.width,height:K.height}}var te=A.getBoundingClientRect(),ne=R.getComputedStyle(A),ce=ne.height,ie=ne.width;te.x=(T=te.x)!==null&&T!==void 0?T:te.left,te.y=(C=te.y)!==null&&C!==void 0?C:te.top;var J=k.documentElement,ue=J.clientWidth,le=J.clientHeight,ve=J.scrollWidth,he=J.scrollHeight,be=J.scrollTop,ee=J.scrollLeft,Ie=te.height,ye=te.width,Fe=B.height,at=B.width,Pe={left:0,top:0,right:ue,bottom:le},tt={left:-ee,top:-be,right:ve-ee,bottom:he-be},Ae=V.htmlRegion,nt="visible",Le="visibleFirst";Ae!=="scroll"&&Ae!==Le&&(Ae=nt);var Ze=Ae===Le,_t=bx(tt,m),Ee=bx(Pe,m),$e=Ae===nt?Ee:_t,At=Ze?Ee:$e;A.style.left="auto",A.style.top="auto",A.style.right="0",A.style.bottom="0";var Ht=A.getBoundingClientRect();A.style.left=D,A.style.top=z,A.style.right=Y,A.style.bottom=j,A.style.overflow=F,(w=A.parentElement)===null||w===void 0||w.removeChild(G);var Yt=cc(Math.round(ye/parseFloat(ie)*1e3)/1e3),bn=cc(Math.round(Ie/parseFloat(ce)*1e3)/1e3);if(Yt===0||bn===0||zl(n)&&!jF(n))return;var dr=V.offset,vt=V.targetOffset,yt=Sx(te,dr),nn=xe(yt,2),Xt=nn[0],jt=nn[1],wn=Sx(B,vt),$t=xe(wn,2),Hn=$t[0],Ji=$t[1];B.x-=Hn,B.y-=Ji;var Yr=V.points||[],hr=xe(Yr,2),Pi=hr[0],pr=hr[1],$n=Ex(pr),sn=Ex(Pi),Qe=_s(B,$n),Sn=_s(te,sn),hn=fe({},V),mt=Qe.x-Sn.x+Xt,ut=Qe.y-Sn.y+jt,Wt=rr(mt,ut),er=rr(mt,ut,Ee),pn=_s(B,["t","l"]),ht=_s(te,["t","l"]),Nn=_s(B,["b","r"]),mr=_s(te,["b","r"]),bt=V.overflow||{},Dt=bt.adjustX,mn=bt.adjustY,Pt=bt.shiftX,tr=bt.shiftY,Kr=function(vi){return typeof vi=="boolean"?vi:vi>=0},Wn,Ln,gr,ke;ea();var Z=Kr(mn),pe=sn[0]===$n[0];if(Z&&sn[0]==="t"&&(Ln>At.bottom||p.current.bt)){var _e=ut;pe?_e-=Ie-Fe:_e=pn.y-mr.y-jt;var wt=rr(mt,_e),Gt=rr(mt,_e,Ee);wt>Wt||wt===Wt&&(!Ze||Gt>=er)?(p.current.bt=!0,ut=_e,jt=-jt,hn.points=[Aa(sn,0),Aa($n,0)]):p.current.bt=!1}if(Z&&sn[0]==="b"&&(Wn<At.top||p.current.tb)){var kt=ut;pe?kt+=Ie-Fe:kt=Nn.y-ht.y-jt;var ln=rr(mt,kt),nr=rr(mt,kt,Ee);ln>Wt||ln===Wt&&(!Ze||nr>=er)?(p.current.tb=!0,ut=kt,jt=-jt,hn.points=[Aa(sn,0),Aa($n,0)]):p.current.tb=!1}var vr=Kr(Dt),mi=sn[1]===$n[1];if(vr&&sn[1]==="l"&&(ke>At.right||p.current.rl)){var Ft=mt;mi?Ft-=ye-at:Ft=pn.x-mr.x-Xt;var Zr=rr(Ft,ut),Ii=rr(Ft,ut,Ee);Zr>Wt||Zr===Wt&&(!Ze||Ii>=er)?(p.current.rl=!0,mt=Ft,Xt=-Xt,hn.points=[Aa(sn,1),Aa($n,1)]):p.current.rl=!1}if(vr&&sn[1]==="r"&&(gr<At.left||p.current.lr)){var Xi=mt;mi?Xi+=ye-at:Xi=Nn.x-ht.x-Xt;var so=rr(Xi,ut),$i=rr(Xi,ut,Ee);so>Wt||so===Wt&&(!Ze||$i>=er)?(p.current.lr=!0,mt=Xi,Xt=-Xt,hn.points=[Aa(sn,1),Aa($n,1)]):p.current.lr=!1}ea();var yr=Pt===!0?0:Pt;typeof yr=="number"&&(gr<Ee.left&&(mt-=gr-Ee.left-Xt,B.x+at<Ee.left+yr&&(mt+=B.x-Ee.left+at-yr)),ke>Ee.right&&(mt-=ke-Ee.right-Xt,B.x>Ee.right-yr&&(mt+=B.x-Ee.right+yr)));var gi=tr===!0?0:tr;typeof gi=="number"&&(Wn<Ee.top&&(ut-=Wn-Ee.top-jt,B.y+Fe<Ee.top+gi&&(ut+=B.y-Ee.top+Fe-gi)),Ln>Ee.bottom&&(ut-=Ln-Ee.bottom-jt,B.y>Ee.bottom-gi&&(ut+=B.y-Ee.bottom+gi)));var Qr=te.x+mt,Mi=Qr+ye,ka=te.y+ut,Ta=ka+Ie,lo=B.x,Ts=lo+at,co=B.y,Os=co+Fe,uo=Math.max(Qr,lo),Rs=Math.min(Mi,Ts),Ns=(uo+Rs)/2,fo=Ns-Qr,Oa=Math.max(ka,co),Li=Math.min(Ta,Os),Ps=(Oa+Li)/2,Is=Ps-ka;o==null||o(e,hn);var qr=Ht.right-te.x-(mt+te.width),Ra=Ht.bottom-te.y-(ut+te.height);Yt===1&&(mt=Math.floor(mt),qr=Math.floor(qr)),bn===1&&(ut=Math.floor(ut),Ra=Math.floor(Ra));var Ms={ready:!0,offsetX:mt/Yt,offsetY:ut/bn,offsetR:qr/Yt,offsetB:Ra/bn,arrowX:fo/Yt,arrowY:Is/bn,scaleX:Yt,scaleY:bn,align:hn};d(Ms)}}),v=function(){h.current+=1;var T=h.current;Promise.resolve().then(function(){h.current===T&&b()})},x=function(){d(function(T){return fe(fe({},T),{},{ready:!1})})};return Qn(x,[r]),Qn(function(){t||x()},[t]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,v]}function RD(t,e,n,r,i){Qn(function(){if(t&&e&&n){let h=function(){r(),i()};var a=e,o=n,s=bv(a),c=bv(o),u=lc(o),d=new Set([u].concat(je(s),je(c)));return d.forEach(function(m){m.addEventListener("scroll",h,{passive:!0})}),u.addEventListener("resize",h,{passive:!0}),r(),function(){d.forEach(function(m){m.removeEventListener("scroll",h),u.removeEventListener("resize",h)})}}},[t,e,n])}function ND(t,e,n,r,i,a,o,s){var c=L.useRef(t);c.current=t;var u=L.useRef(!1);L.useEffect(function(){if(e&&r&&(!i||a)){var h=function(){u.current=!1},m=function(C){var w;c.current&&!o(((w=C.composedPath)===null||w===void 0||(w=w.call(C))===null||w===void 0?void 0:w[0])||C.target)&&!u.current&&s(!1)},p=lc(r);p.addEventListener("pointerdown",h,!0),p.addEventListener("mousedown",m,!0),p.addEventListener("contextmenu",m,!0);var y=Xg(n);y&&(y.addEventListener("mousedown",m,!0),y.addEventListener("contextmenu",m,!0));{var b,v,x=n==null||(b=n.getRootNode)===null||b===void 0?void 0:b.call(n),_=(v=r.getRootNode)===null||v===void 0?void 0:v.call(r);ss(x===_,"trigger element and popup element should in same shadow root.")}return function(){p.removeEventListener("pointerdown",h,!0),p.removeEventListener("mousedown",m,!0),p.removeEventListener("contextmenu",m,!0),y&&(y.removeEventListener("mousedown",m,!0),y.removeEventListener("contextmenu",m,!0))}}},[e,n,r,i,a]);function d(){u.current=!0}return d}var PD=["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 ID(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rv,e=L.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=n.children,s=n.action,c=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,h=n.popupVisible,m=n.defaultPopupVisible,p=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,b=n.mouseEnterDelay,v=n.mouseLeaveDelay,x=v===void 0?.1:v,_=n.focusDelay,T=n.blurDelay,C=n.mask,w=n.maskClosable,A=w===void 0?!0:w,k=n.getPopupContainer,R=n.forceRender,I=n.autoDestroy,U=n.destroyPopupOnHide,D=n.popup,z=n.popupClassName,Y=n.popupStyle,j=n.popupPlacement,F=n.builtinPlacements,V=F===void 0?{}:F,G=n.popupAlign,B=n.zIndex,q=n.stretch,W=n.getPopupClassNameFromAlign,K=n.fresh,te=n.alignPoint,ne=n.onPopupClick,ce=n.onPopupAlign,ie=n.arrow,J=n.popupMotion,ue=n.maskMotion,le=n.popupTransitionName,ve=n.popupAnimation,he=n.maskTransitionName,be=n.maskAnimation,ee=n.className,Ie=n.getTriggerDOMNode,ye=Ti(n,PD),Fe=I||U||!1,at=L.useState(!1),Pe=xe(at,2),tt=Pe[0],Ae=Pe[1];Qn(function(){Ae(CD())},[]);var nt=L.useRef({}),Le=L.useContext(gx),Ze=L.useMemo(function(){return{registerSubPopup:function(Ve,Bt){nt.current[Ve]=Bt,Le==null||Le.registerSubPopup(Ve,Bt)}}},[Le]),_t=QC(),Ee=L.useState(null),$e=xe(Ee,2),At=$e[0],Ht=$e[1],Yt=L.useRef(null),bn=fr(function(Oe){Yt.current=Oe,zl(Oe)&&At!==Oe&&Ht(Oe),Le==null||Le.registerSubPopup(_t,Oe)}),dr=L.useState(null),vt=xe(dr,2),yt=vt[0],nn=vt[1],Xt=L.useRef(null),jt=fr(function(Oe){zl(Oe)&&yt!==Oe&&(nn(Oe),Xt.current=Oe)}),wn=L.Children.only(o),$t=(wn==null?void 0:wn.props)||{},Hn={},Ji=fr(function(Oe){var Ve,Bt,cn=yt;return(cn==null?void 0:cn.contains(Oe))||((Ve=Xg(cn))===null||Ve===void 0?void 0:Ve.host)===Oe||Oe===cn||(At==null?void 0:At.contains(Oe))||((Bt=Xg(At))===null||Bt===void 0?void 0:Bt.host)===Oe||Oe===At||Object.values(nt.current).some(function(Kt){return(Kt==null?void 0:Kt.contains(Oe))||Oe===Kt})}),Yr=yx(a,J,ve,le),hr=yx(a,ue,be,he),Pi=L.useState(m||!1),pr=xe(Pi,2),$n=pr[0],sn=pr[1],Qe=h??$n,Sn=fr(function(Oe){h===void 0&&sn(Oe)});Qn(function(){sn(h||!1)},[h]);var hn=L.useRef(Qe);hn.current=Qe;var mt=L.useRef([]);mt.current=[];var ut=fr(function(Oe){var Ve;Sn(Oe),((Ve=mt.current[mt.current.length-1])!==null&&Ve!==void 0?Ve:Qe)!==Oe&&(mt.current.push(Oe),p==null||p(Oe))}),Wt=L.useRef(),er=function(){clearTimeout(Wt.current)},pn=function(Ve){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;er(),Bt===0?ut(Ve):Wt.current=setTimeout(function(){ut(Ve)},Bt*1e3)};L.useEffect(function(){return er},[]);var ht=L.useState(!1),Nn=xe(ht,2),mr=Nn[0],bt=Nn[1];Qn(function(Oe){(!Oe||Qe)&&bt(!0)},[Qe]);var Dt=L.useState(null),mn=xe(Dt,2),Pt=mn[0],tr=mn[1],Kr=L.useState(null),Wn=xe(Kr,2),Ln=Wn[0],gr=Wn[1],ke=function(Ve){gr([Ve.clientX,Ve.clientY])},Z=OD(Qe,At,te&&Ln!==null?Ln:yt,j,V,G,ce),pe=xe(Z,11),_e=pe[0],wt=pe[1],Gt=pe[2],kt=pe[3],ln=pe[4],nr=pe[5],vr=pe[6],mi=pe[7],Ft=pe[8],Zr=pe[9],Ii=pe[10],Xi=AD(tt,c,u,d),so=xe(Xi,2),$i=so[0],yr=so[1],gi=$i.has("click"),Qr=yr.has("click")||yr.has("contextMenu"),Mi=fr(function(){mr||Ii()}),ka=function(){hn.current&&te&&Qr&&pn(!1)};RD(Qe,yt,At,Mi,ka),Qn(function(){Mi()},[Ln,j]),Qn(function(){Qe&&!(V!=null&&V[j])&&Mi()},[JSON.stringify(G)]);var Ta=L.useMemo(function(){var Oe=TD(V,a,Zr,te);return Nt(Oe,W==null?void 0:W(Zr))},[Zr,W,V,a,te]);L.useImperativeHandle(r,function(){return{nativeElement:Xt.current,popupElement:Yt.current,forceAlign:Mi}});var lo=L.useState(0),Ts=xe(lo,2),co=Ts[0],Os=Ts[1],uo=L.useState(0),Rs=xe(uo,2),Ns=Rs[0],fo=Rs[1],Oa=function(){if(q&&yt){var Ve=yt.getBoundingClientRect();Os(Ve.width),fo(Ve.height)}},Li=function(){Oa(),Mi()},Ps=function(Ve){bt(!1),Ii(),y==null||y(Ve)},Is=function(){return new Promise(function(Ve){Oa(),tr(function(){return Ve})})};Qn(function(){Pt&&(Ii(),Pt(),tr(null))},[Pt]);function qr(Oe,Ve,Bt,cn){Hn[Oe]=function(Kt){var Fs;cn==null||cn(Kt),pn(Ve,Bt);for(var It=arguments.length,Mt=new Array(It>1?It-1:0),js=1;js<It;js++)Mt[js-1]=arguments[js];(Fs=$t[Oe])===null||Fs===void 0||Fs.call.apply(Fs,[$t,Kt].concat(Mt))}}(gi||Qr)&&(Hn.onClick=function(Oe){var Ve;hn.current&&Qr?pn(!1):!hn.current&&gi&&(ke(Oe),pn(!0));for(var Bt=arguments.length,cn=new Array(Bt>1?Bt-1:0),Kt=1;Kt<Bt;Kt++)cn[Kt-1]=arguments[Kt];(Ve=$t.onClick)===null||Ve===void 0||Ve.call.apply(Ve,[$t,Oe].concat(cn))});var Ra=ND(Qe,Qr,yt,At,C,A,Ji,pn),Ms=$i.has("hover"),rr=yr.has("hover"),ea,ho;Ms&&(qr("onMouseEnter",!0,b,function(Oe){ke(Oe)}),qr("onPointerEnter",!0,b,function(Oe){ke(Oe)}),ea=function(Ve){(Qe||mr)&&At!==null&&At!==void 0&&At.contains(Ve.target)&&pn(!0,b)},te&&(Hn.onMouseMove=function(Oe){var Ve;(Ve=$t.onMouseMove)===null||Ve===void 0||Ve.call($t,Oe)})),rr&&(qr("onMouseLeave",!1,x),qr("onPointerLeave",!1,x),ho=function(){pn(!1,x)}),$i.has("focus")&&qr("onFocus",!0,_),yr.has("focus")&&qr("onBlur",!1,T),$i.has("contextMenu")&&(Hn.onContextMenu=function(Oe){var Ve;hn.current&&yr.has("contextMenu")?pn(!1):(ke(Oe),pn(!0)),Oe.preventDefault();for(var Bt=arguments.length,cn=new Array(Bt>1?Bt-1:0),Kt=1;Kt<Bt;Kt++)cn[Kt-1]=arguments[Kt];(Ve=$t.onContextMenu)===null||Ve===void 0||Ve.call.apply(Ve,[$t,Oe].concat(cn))}),ee&&(Hn.className=Nt($t.className,ee));var vi=L.useRef(!1);vi.current||(vi.current=R||Qe||mr);var Fi=fe(fe({},$t),Hn),Na={},Ls=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ls.forEach(function(Oe){ye[Oe]&&(Na[Oe]=function(){for(var Ve,Bt=arguments.length,cn=new Array(Bt),Kt=0;Kt<Bt;Kt++)cn[Kt]=arguments[Kt];(Ve=Fi[Oe])===null||Ve===void 0||Ve.call.apply(Ve,[Fi].concat(cn)),ye[Oe].apply(ye,cn)})});var bc=L.cloneElement(wn,fe(fe({},Fi),Na)),wc={x:nr,y:vr},Sc=ie?fe({},ie!==!0?ie:{}):null;return L.createElement(L.Fragment,null,L.createElement(gf,{disabled:!Qe,ref:jt,onResize:Li},L.createElement(mx,{getTriggerDOMNode:Ie},bc)),vi.current&&L.createElement(gx.Provider,{value:Ze},L.createElement(px,{portal:t,ref:bn,prefixCls:a,popup:D,className:Nt(z,Ta),style:Y,target:yt,onMouseEnter:ea,onMouseLeave:ho,onPointerEnter:ea,zIndex:B,open:Qe,keepDom:mr,fresh:K,onClick:ne,onPointerDownCapture:Ra,mask:C,motion:Yr,maskMotion:hr,onVisibleChanged:Ps,onPrepare:Is,forceRender:R,autoDestroy:Fe,getPopupContainer:k,align:Zr,arrow:Sc,arrowPos:wc,ready:_e,offsetX:wt,offsetY:Gt,offsetR:kt,offsetB:ln,onAlign:Mi,stretch:q,targetWidth:co/mi,targetHeight:Ns/Ft})))});return e.displayName="Trigger",e}const MD=ID(rv);function Cx(t){var e=t.children,n=t.prefixCls,r=t.id,i=t.overlayInnerStyle,a=t.bodyClassName,o=t.className,s=t.style;return L.createElement("div",{className:Nt("".concat(n,"-content"),o),style:s},L.createElement("div",{className:Nt("".concat(n,"-inner"),a),id:r,role:"tooltip",style:i},typeof e=="function"?e():e))}var As={shiftX:64,adjustY:1},ks={adjustX:1,shiftY:!0},Wr=[0,0],LD={left:{points:["cr","cl"],overflow:ks,offset:[-4,0],targetOffset:Wr},right:{points:["cl","cr"],overflow:ks,offset:[4,0],targetOffset:Wr},top:{points:["bc","tc"],overflow:As,offset:[0,-4],targetOffset:Wr},bottom:{points:["tc","bc"],overflow:As,offset:[0,4],targetOffset:Wr},topLeft:{points:["bl","tl"],overflow:As,offset:[0,-4],targetOffset:Wr},leftTop:{points:["tr","tl"],overflow:ks,offset:[-4,0],targetOffset:Wr},topRight:{points:["br","tr"],overflow:As,offset:[0,-4],targetOffset:Wr},rightTop:{points:["tl","tr"],overflow:ks,offset:[4,0],targetOffset:Wr},bottomRight:{points:["tr","br"],overflow:As,offset:[0,4],targetOffset:Wr},rightBottom:{points:["bl","br"],overflow:ks,offset:[4,0],targetOffset:Wr},bottomLeft:{points:["tl","bl"],overflow:As,offset:[0,4],targetOffset:Wr},leftBottom:{points:["br","bl"],overflow:ks,offset:[-4,0],targetOffset:Wr}},FD=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],jD=function(e,n){var r=e.overlayClassName,i=e.trigger,a=i===void 0?["hover"]:i,o=e.mouseEnterDelay,s=o===void 0?0:o,c=e.mouseLeaveDelay,u=c===void 0?.1:c,d=e.overlayStyle,h=e.prefixCls,m=h===void 0?"rc-tooltip":h,p=e.children,y=e.onVisibleChange,b=e.afterVisibleChange,v=e.transitionName,x=e.animation,_=e.motion,T=e.placement,C=T===void 0?"right":T,w=e.align,A=w===void 0?{}:w,k=e.destroyTooltipOnHide,R=k===void 0?!1:k,I=e.defaultVisible,U=e.getTooltipContainer,D=e.overlayInnerStyle;e.arrowContent;var z=e.overlay,Y=e.id,j=e.showArrow,F=j===void 0?!0:j,V=e.classNames,G=e.styles,B=Ti(e,FD),q=QC(Y),W=N.useRef(null);N.useImperativeHandle(n,function(){return W.current});var K=fe({},B);"visible"in e&&(K.popupVisible=e.visible);var te=function(){return L.createElement(Cx,{key:"content",prefixCls:m,id:q,bodyClassName:V==null?void 0:V.body,overlayInnerStyle:fe(fe({},D),G==null?void 0:G.body)},z)},ne=function(){var ie=L.Children.only(p),J=(ie==null?void 0:ie.props)||{},ue=fe(fe({},J),{},{"aria-describedby":z?q:null});return L.cloneElement(p,ue)};return L.createElement(MD,_r({popupClassName:Nt(r,V==null?void 0:V.root),prefixCls:m,popup:te,action:a,builtinPlacements:LD,popupPlacement:C,ref:W,popupAlign:A,getPopupContainer:U,onPopupVisibleChange:y,afterPopupVisibleChange:b,popupTransitionName:v,popupAnimation:x,popupMotion:_,defaultPopupVisible:I,autoDestroy:R,mouseLeaveDelay:u,popupStyle:fe(fe({},d),G==null?void 0:G.root),mouseEnterDelay:s,arrow:F},K),ne())};const DD=N.forwardRef(jD);function VD(t){const{sizePopupArrow:e,borderRadiusXS:n,borderRadiusOuter:r}=t,i=e/2,a=0,o=i,s=r*1/Math.sqrt(2),c=i-r*(1-1/Math.sqrt(2)),u=i-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),h=2*i-u,m=d,p=2*i-s,y=c,b=2*i-a,v=o,x=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),T=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`,C=`path('M ${a} ${o} A ${r} ${r} 0 0 0 ${s} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${h} ${m} L ${p} ${y} A ${r} ${r} 0 0 0 ${b} ${v} Z')`;return{arrowShadowWidth:x,arrowPath:C,arrowPolygon:T}}const UD=(t,e,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:c}=t;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:e,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 ${Zn(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},xx=8;function _x(t){const{contentRadius:e,limitVerticalRadius:n}=t,r=e>12?e+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?xx:r}}function Yf(t,e){return t?e:{}}function BD(t,e,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=t,{arrowDistance:s=0,arrowPlacement:c={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"},UD(t,e,i)),{"&:before":{background:e}})]},Yf(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,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% - ${Zn(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Yf(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,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% - ${Zn(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Yf(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},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}})),Yf(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},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 zD(t,e,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},a={};switch(t){case"top":case"bottom":a.shiftX=e.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=e.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 Ax={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"]}},HD={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"]}},WD=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function GD(t){const{arrowWidth:e,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a}=t,o=e/2,s={},c=_x({contentRadius:a,limitVerticalRadius:!0});return Object.keys(Ax).forEach(u=>{const d=r&&HD[u]||Ax[u],h=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(s[u]=h,WD.has(u)&&(h.autoArrow=!1),u){case"top":case"topLeft":case"topRight":h.offset[1]=-o-i;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=o+i;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-o-i;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=o+i;break}if(r)switch(u){case"topLeft":case"bottomLeft":h.offset[0]=-c.arrowOffsetHorizontal-o;break;case"topRight":case"bottomRight":h.offset[0]=c.arrowOffsetHorizontal+o;break;case"leftTop":case"rightTop":h.offset[1]=-c.arrowOffsetHorizontal*2+o;break;case"leftBottom":case"rightBottom":h.offset[1]=c.arrowOffsetHorizontal*2-o;break}h.overflow=zD(u,c,e,n),h.htmlRegion="visibleFirst"}),s}const YD=t=>{const{calc:e,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,boxShadowSecondary:u,paddingSM:d,paddingXS:h,arrowOffsetHorizontal:m,sizePopupArrow:p}=t,y=e(o).add(p).add(m).equal(),b=e(o).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},zg(t)),{position:"absolute",zIndex:s,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:b,minHeight:c,padding:`${Zn(t.calc(d).div(2).equal())} ${Zn(h)}`,color:`var(--ant-tooltip-color, ${i})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:u,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:t.min(o,xx)}},[`${n}-content`]:{position:"relative"}}),Wg(t,(v,{darkColor:x})=>({[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:x},[`${n}-arrow`]:{"--antd-arrow-background-color":x}}}))),{"&-rtl":{direction:"rtl"}})},BD(t,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:t.sizePopupArrow}}]},KD=t=>Object.assign(Object.assign({zIndexPopup:t.zIndexPopupBase+70},_x({contentRadius:t.borderRadius,limitVerticalRadius:!0})),VD(tc(t,{borderRadiusOuter:Math.min(t.borderRadiusOuter,4)}))),kx=(t,e=!0)=>Hg("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:o}=r,s=tc(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o});return[YD(s),gj(r,"zoom-big-fast")]},KD,{resetStyle:!1,injectStyle:e})(t),ZD=Lf.map(t=>`${t}-inverse`);function wv(t,e=!0){return e?[].concat(je(ZD),je(Lf)).includes(t):Lf.includes(t)}function Tx(t,e){const n=wv(e),r=Nt({[`${t}-${e}`]:e&&n}),i={},a={},o=vj(e).toRgb(),c=(.299*o.r+.587*o.g+.114*o.b)/255<.5?"#FFF":"#000";return e&&!n&&(i.background=e,i["--ant-tooltip-color"]=c,a["--antd-arrow-background-color"]=e),{className:r,overlayStyle:i,arrowStyle:a}}const QD=t=>{const{prefixCls:e,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:o}=t,{getPrefixCls:s}=L.useContext(di),c=s("tooltip",e),[u,d,h]=kx(c),m=Tx(c,a),p=m.arrowStyle,y=Object.assign(Object.assign({},o),m.overlayStyle),b=Nt(d,h,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(L.createElement("div",{className:b,style:p},L.createElement("div",{className:`${c}-arrow`}),L.createElement(Cx,Object.assign({},t,{className:d,prefixCls:c,overlayInnerStyle:y}),i)))};var qD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Sv=L.forwardRef((t,e)=>{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:o,color:s,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:m,destroyOnHidden:p,arrow:y=!0,title:b,overlay:v,builtinPlacements:x,arrowPointAtCenter:_=!1,autoAdjustOverflow:T=!0,motion:C,getPopupContainer:w,placement:A="top",mouseEnterDelay:k=.1,mouseLeaveDelay:R=.1,overlayStyle:I,rootClassName:U,overlayClassName:D,styles:z,classNames:Y}=t,j=qD(t,["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"]),F=!!y,[,V]=nc(),{getPopupContainer:G,getPrefixCls:B,direction:q,className:W,style:K,classNames:te,styles:ne}=EL("tooltip"),ce=gs("Tooltip"),ie=L.useRef(null),J=()=>{var vt;(vt=ie.current)===null||vt===void 0||vt.forceAlign()};L.useImperativeHandle(e,()=>{var vt,yt;return{forceAlign:J,forcePopupAlign:()=>{ce.deprecated(!1,"forcePopupAlign","forceAlign"),J()},nativeElement:(vt=ie.current)===null||vt===void 0?void 0:vt.nativeElement,popupElement:(yt=ie.current)===null||yt===void 0?void 0:yt.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(([vt,yt])=>{ce.deprecated(!(vt in t),vt,yt)}),ce(!m||typeof m=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),ce(!y||typeof y=="boolean"||!("arrowPointAtCenter"in y),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead.");const[ue,le]=eC(!1,{value:(n=t.open)!==null&&n!==void 0?n:t.visible,defaultValue:(r=t.defaultOpen)!==null&&r!==void 0?r:t.defaultVisible}),ve=!b&&!v&&b!==0,he=vt=>{var yt,nn;le(ve?!1:vt),ve||((yt=t.onOpenChange)===null||yt===void 0||yt.call(t,vt),(nn=t.onVisibleChange)===null||nn===void 0||nn.call(t,vt))},be=L.useMemo(()=>{var vt,yt;let nn=_;return typeof y=="object"&&(nn=(yt=(vt=y.pointAtCenter)!==null&&vt!==void 0?vt:y.arrowPointAtCenter)!==null&&yt!==void 0?yt:_),x||GD({arrowPointAtCenter:nn,autoAdjustOverflow:T,arrowWidth:F?V.sizePopupArrow:0,borderRadius:V.borderRadius,offset:V.marginXXS})},[_,y,x,V]),ee=L.useMemo(()=>b===0?b:v||b||"",[v,b]),Ie=L.createElement(ED,{space:!0},typeof ee=="function"?ee():ee),ye=B("tooltip",i),Fe=B(),at=t["data-popover-inject"];let Pe=ue;!("open"in t)&&!("visible"in t)&&ve&&(Pe=!1);const tt=L.isValidElement(u)&&!TF(u)?u:L.createElement("span",null,u),Ae=tt.props,nt=!Ae.className||typeof Ae.className=="string"?Nt(Ae.className,a||`${ye}-open`):Ae.className,[Le,Ze,_t]=kx(ye,!at),Ee=Tx(ye,s),$e=Ee.arrowStyle,At=Nt(D,{[`${ye}-rtl`]:q==="rtl"},Ee.className,U,Ze,_t,W,te.root,Y==null?void 0:Y.root),Ht=Nt(te.body,Y==null?void 0:Y.body),[Yt,bn]=IF("Tooltip",j.zIndex),dr=L.createElement(DD,Object.assign({},j,{zIndex:Yt,showArrow:F,placement:A,mouseEnterDelay:k,mouseLeaveDelay:R,prefixCls:ye,classNames:{root:At,body:Ht},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$e),ne.root),K),I),z==null?void 0:z.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},ne.body),c),z==null?void 0:z.body),Ee.overlayStyle)},getTooltipContainer:w||o||G,ref:ie,builtinPlacements:be,overlay:Ie,visible:Pe,onVisibleChange:he,afterVisibleChange:d??h,arrowContent:L.createElement("span",{className:`${ye}-arrow-content`}),motion:{motionName:FF(Fe,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:p??!!m}),Pe?$g(tt,{className:nt}):tt);return Le(L.createElement(ev.Provider,{value:bn},dr))});Sv.displayName="Tooltip",Sv._InternalPanelDoNotUseOrYouWillBeFired=QD;const JD=new On("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),XD=new On("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),$D=new On("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),eV=new On("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),tV=new On("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),nV=new On("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),rV=t=>{const{componentCls:e,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:a,textFontSizeSM:o,statusSize:s,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:h,marginXS:m,calc:p}=t,y=`${r}-scroll-number`,b=Wg(t,(v,{darkColor:x})=>({[`&${e} ${e}-color-${v}`]:{background:x,[`&:not(${e}-count)`]:{color:x},"a:hover &":{background:x}}}));return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},zg(t)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${e}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:t.indicatorZIndex,minWidth:d,height:d,color:t.badgeTextColor,fontWeight:u,fontSize:a,lineHeight:Zn(d),whiteSpace:"nowrap",textAlign:"center",background:t.badgeColor,borderRadius:p(d).div(2).equal(),boxShadow:`0 0 0 ${Zn(i)} ${t.badgeShadowColor}`,transition:`background ${t.motionDurationMid}`,a:{color:t.badgeTextColor},"a:hover":{color:t.badgeTextColor},"a:hover &":{background:t.badgeColorHover}},[`${e}-count-sm`]:{minWidth:h,height:h,fontSize:o,lineHeight:Zn(h),borderRadius:p(h).div(2).equal()},[`${e}-multiple-words`]:{padding:`0 ${Zn(t.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${e}-dot`]:{zIndex:t.indicatorZIndex,width:c,minWidth:c,height:c,background:t.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Zn(i)} ${t.badgeShadowColor}`},[`${e}-count, ${e}-dot, ${y}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:nV,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${e}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${e}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${e}-status-success`]:{backgroundColor:t.colorSuccess},[`${e}-status-processing`]:{overflow:"visible",color:t.colorInfo,backgroundColor:t.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:JD,animationDuration:t.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${e}-status-default`]:{backgroundColor:t.colorTextPlaceholder},[`${e}-status-error`]:{backgroundColor:t.colorError},[`${e}-status-warning`]:{backgroundColor:t.colorWarning},[`${e}-status-text`]:{marginInlineStart:m,color:t.colorText,fontSize:t.fontSize}}}),b),{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:XD,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`${e}-zoom-leave`]:{animationName:$D,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`&${e}-not-a-wrapper`]:{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:eV,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`${e}-zoom-leave`]:{animationName:tV,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`&:not(${e}-status)`]:{verticalAlign:"middle"},[`${y}-custom-component, ${e}-count`]:{transform:"none"},[`${y}-custom-component, ${y}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[y]:{overflow:"hidden",transition:`all ${t.motionDurationMid} ${t.motionEaseOutBack}`,[`${y}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${t.motionDurationSlow} ${t.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${y}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${y}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${e}-count, ${e}-dot, ${y}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Ox=t=>{const{fontHeight:e,lineWidth:n,marginXS:r,colorBorderBg:i}=t,a=e,o=n,s=t.colorTextLightSolid,c=t.colorError,u=t.colorErrorHover;return tc(t,{badgeFontHeight:a,badgeShadowSize:o,badgeTextColor:s,badgeColor:c,badgeColorHover:u,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Rx=t=>{const{fontSize:e,lineHeight:n,fontSizeSM:r,lineWidth:i}=t;return{indicatorZIndex:"auto",indicatorHeight:Math.round(e*n)-2*i,indicatorHeightSM:e,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},iV=Hg("Badge",t=>{const e=Ox(t);return rV(e)},Rx),aV=t=>{const{antCls:e,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:a}=t,o=`${e}-ribbon`,s=`${e}-ribbon-wrapper`,c=Wg(t,(u,{darkColor:d})=>({[`&${o}-color-${u}`]:{background:d,color:d}}));return{[s]:{position:"relative"},[o]:Object.assign(Object.assign(Object.assign(Object.assign({},zg(t)),{position:"absolute",top:r,padding:`0 ${Zn(t.paddingXS)}`,color:t.colorPrimary,lineHeight:Zn(n),whiteSpace:"nowrap",backgroundColor:t.colorPrimary,borderRadius:t.borderRadiusSM,[`${o}-text`]:{color:t.badgeTextColor},[`${o}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${Zn(a(i).div(2).equal())} solid`,transform:t.badgeRibbonCornerTransform,transformOrigin:"top",filter:t.badgeRibbonCornerFilter}}),c),{[`&${o}-placement-end`]:{insetInlineEnd:a(i).mul(-1).equal(),borderEndEndRadius:0,[`${o}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${o}-placement-start`]:{insetInlineStart:a(i).mul(-1).equal(),borderEndStartRadius:0,[`${o}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},oV=Hg(["Badge","Ribbon"],t=>{const e=Ox(t);return aV(e)},Rx),Nx=t=>{const{className:e,prefixCls:n,style:r,color:i,children:a,text:o,placement:s="end",rootClassName:c}=t,{getPrefixCls:u,direction:d}=L.useContext(di),h=u("ribbon",n),m=`${h}-wrapper`,[p,y,b]=oV(h,m),v=wv(i,!1),x=Nt(h,`${h}-placement-${s}`,{[`${h}-rtl`]:d==="rtl",[`${h}-color-${i}`]:v},e),_={},T={};return i&&!v&&(_.background=i,T.color=i),p(L.createElement("div",{className:Nt(m,c,y,b)},a,L.createElement("div",{className:Nt(x,y),style:Object.assign(Object.assign({},_),r)},L.createElement("span",{className:`${h}-text`},o),L.createElement("div",{className:`${h}-corner`,style:T}))))};Nx.displayName="Ribbon";const Px=t=>{const{prefixCls:e,value:n,current:r,offset:i=0}=t;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),L.createElement("span",{style:a,className:Nt(`${e}-only-unit`,{current:r})},n)};function sV(t,e,n){let r=t,i=0;for(;(r+10)%10!==e;)r+=n,i+=n;return i}const lV=t=>{const{prefixCls:e,count:n,value:r}=t,i=Number(r),a=Math.abs(n),[o,s]=L.useState(i),[c,u]=L.useState(a),d=()=>{s(i),u(a)};L.useEffect(()=>{const p=setTimeout(d,1e3);return()=>clearTimeout(p)},[i]);let h,m;if(o===i||Number.isNaN(i)||Number.isNaN(o))h=[L.createElement(Px,Object.assign({},t,{key:i,current:!0}))],m={transition:"none"};else{h=[];const p=i+10,y=[];for(let _=i;_<=p;_+=1)y.push(_);const b=c<a?1:-1,v=y.findIndex(_=>_%10===o);h=(b<0?y.slice(0,v+1):y.slice(v)).map((_,T)=>{const C=_%10;return L.createElement(Px,Object.assign({},t,{key:_,value:C,offset:b<0?T-v:T,current:T===v}))}),m={transform:`translateY(${-sV(o,i,b)}00%)`}}return L.createElement("span",{className:`${e}-only`,style:m,onTransitionEnd:d},h)};var cV=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const uV=L.forwardRef((t,e)=>{const{prefixCls:n,count:r,className:i,motionClassName:a,style:o,title:s,show:c,component:u="sup",children:d}=t,h=cV(t,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=L.useContext(di),p=m("scroll-number",n),y=Object.assign(Object.assign({},h),{"data-show":c,style:o,className:Nt(p,i,a),title:s});let b=r;if(r&&Number(r)%1===0){const v=String(r).split("");b=L.createElement("bdi",null,v.map((x,_)=>L.createElement(lV,{prefixCls:p,count:Number(r),value:x,key:v.length-_})))}return o!=null&&o.borderColor&&(y.style=Object.assign(Object.assign({},o),{boxShadow:`0 0 0 1px ${o.borderColor} inset`})),d?$g(d,v=>({className:Nt(`${p}-custom-component`,v==null?void 0:v.className,a)})):L.createElement(u,Object.assign({},y,{ref:e}),b)});var fV=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Ev=L.forwardRef((t,e)=>{var n,r,i,a,o;const{prefixCls:s,scrollNumberPrefixCls:c,children:u,status:d,text:h,color:m,count:p=null,overflowCount:y=99,dot:b=!1,size:v="default",title:x,offset:_,style:T,className:C,rootClassName:w,classNames:A,styles:k,showZero:R=!1}=t,I=fV(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:U,direction:D,badge:z}=L.useContext(di),Y=U("badge",s),[j,F,V]=iV(Y),G=p>y?`${y}+`:p,B=G==="0"||G===0||h==="0"||h===0,q=p===null||B&&!R,W=(d!=null||m!=null)&&q,K=d!=null||!B,te=b&&!B,ne=te?"":G,ce=N.useMemo(()=>((ne==null||ne==="")&&(h==null||h==="")||B&&!R)&&!te,[ne,B,R,te,h]),ie=N.useRef(p);ce||(ie.current=p);const J=ie.current,ue=N.useRef(ne);ce||(ue.current=ne);const le=ue.current,ve=N.useRef(te);ce||(ve.current=te);const he=N.useMemo(()=>{if(!_)return Object.assign(Object.assign({},z==null?void 0:z.style),T);const Ae={marginTop:_[1]};return D==="rtl"?Ae.left=Number.parseInt(_[0],10):Ae.right=-Number.parseInt(_[0],10),Object.assign(Object.assign(Object.assign({},Ae),z==null?void 0:z.style),T)},[D,_,T,z==null?void 0:z.style]),be=x??(typeof J=="string"||typeof J=="number"?J:void 0),ee=!ce&&(h===0?R:!!h&&h!==!0),Ie=ee?L.createElement("span",{className:`${Y}-status-text`},h):null,ye=!J||typeof J!="object"?void 0:$g(J,Ae=>({style:Object.assign(Object.assign({},he),Ae.style)})),Fe=wv(m,!1),at=Nt(A==null?void 0:A.indicator,(n=z==null?void 0:z.classNames)===null||n===void 0?void 0:n.indicator,{[`${Y}-status-dot`]:W,[`${Y}-status-${d}`]:!!d,[`${Y}-color-${m}`]:Fe}),Pe={};m&&!Fe&&(Pe.color=m,Pe.background=m);const tt=Nt(Y,{[`${Y}-status`]:W,[`${Y}-not-a-wrapper`]:!u,[`${Y}-rtl`]:D==="rtl"},C,w,z==null?void 0:z.className,(r=z==null?void 0:z.classNames)===null||r===void 0?void 0:r.root,A==null?void 0:A.root,F,V);if(!u&&W&&(h||K||!q)){const Ae=he.color;return j(L.createElement("span",Object.assign({},I,{className:tt,style:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.root),(i=z==null?void 0:z.styles)===null||i===void 0?void 0:i.root),he)}),L.createElement("span",{className:at,style:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.indicator),(a=z==null?void 0:z.styles)===null||a===void 0?void 0:a.indicator),Pe)}),ee&&L.createElement("span",{style:{color:Ae},className:`${Y}-status-text`},h)))}return j(L.createElement("span",Object.assign({ref:e},I,{className:tt,style:Object.assign(Object.assign({},(o=z==null?void 0:z.styles)===null||o===void 0?void 0:o.root),k==null?void 0:k.root)}),u,L.createElement(Bf,{visible:!ce,motionName:`${Y}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Ae})=>{var nt,Le;const Ze=U("scroll-number",c),_t=ve.current,Ee=Nt(A==null?void 0:A.indicator,(nt=z==null?void 0:z.classNames)===null||nt===void 0?void 0:nt.indicator,{[`${Y}-dot`]:_t,[`${Y}-count`]:!_t,[`${Y}-count-sm`]:v==="small",[`${Y}-multiple-words`]:!_t&&le&&le.toString().length>1,[`${Y}-status-${d}`]:!!d,[`${Y}-color-${m}`]:Fe});let $e=Object.assign(Object.assign(Object.assign({},k==null?void 0:k.indicator),(Le=z==null?void 0:z.styles)===null||Le===void 0?void 0:Le.indicator),he);return m&&!Fe&&($e=$e||{},$e.background=m),L.createElement(uV,{prefixCls:Ze,show:!ce,motionClassName:Ae,className:Ee,count:le,title:be,style:$e,key:"scrollNumber"},ye)}),Ie))});Ev.Ribbon=Nx,Ev.displayName="Badge";var Cv={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_CONVERSATIONS_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getConversationsForPortal"},arguments:[{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:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"org_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_conversation_activity"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_platform_reply"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_customer_reply"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{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:"last_name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"analytics"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"seen_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"delivered_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"created_at"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"resolved_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"organization_brand"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"org_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sub_domain"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_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:"visibility"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"setting"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"icon"},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:"visibility"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"assignee"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},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:"visibility"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"type"},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:1204}};Cv.loc.source={body:`query GET_CONVERSATIONS_FOR_PORTAL($optionData: OptionDataType!) {
283
+ }`),i)}else Yl(i);return function(){Yl(i)}},[e,i])}var xj=!1;function _j(t){return xj}var YC=function(e){return e===!1?!1:!ur()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e},rv=L.forwardRef(function(t,e){var n=t.open,r=t.autoLock,i=t.getContainer,a=t.debug,o=t.autoDestroy,s=o===void 0?!0:o,c=t.children,u=L.useState(n),d=xe(u,2),h=d[0],m=d[1],p=h||n;qt(ur()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),L.useEffect(function(){(s||n)&&m(n)},[n,s]);var y=L.useState(function(){return YC(i)}),b=xe(y,2),v=b[0],x=b[1];L.useEffect(function(){var z=YC(i);x(z??null)});var _=yj(p&&!v,a),T=xe(_,2),C=T[0],w=T[1],A=v??C;Cj(r&&n&&ur()&&(A===C||A===document.body));var k=null;if(c&&df(c)&&e){var R=c;k=R.ref}var I=Z1(k,e);if(!p||!ur()||v===void 0)return null;var U=A===!1||_j(),D=c;return e&&(D=L.cloneElement(c,{ref:I})),L.createElement(HC.Provider,{value:w},U?D:Qd.createPortal(D,A))});rv.displayName="Portal";function Aj(){var t=fe({},L);return t.useId}var KC=0,ZC=Aj();const QC=ZC?(function(e){var n=ZC();return e||n}):(function(e){var n=L.useState("ssr-id"),r=xe(n,2),i=r[0],a=r[1];return L.useEffect(function(){var o=KC;KC+=1,a("rc_unique_".concat(o))},[]),e||i});var so="RC_FORM_INTERNAL_HOOKS",Lt=function(){qt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ss=L.createContext({getFieldValue:Lt,getFieldsValue:Lt,getFieldError:Lt,getFieldWarning:Lt,getFieldsError:Lt,isFieldsTouched:Lt,isFieldTouched:Lt,isFieldValidating:Lt,isFieldsValidating:Lt,resetFields:Lt,setFields:Lt,setFieldValue:Lt,setFieldsValue:Lt,validateFields:Lt,submit:Lt,getInternalHooks:function(){return Lt(),{dispatch:Lt,initEntityValue:Lt,registerField:Lt,useSubscribe:Lt,setInitialValues:Lt,destroyForm:Lt,setCallbacks:Lt,registerWatch:Lt,getFields:Lt,setValidateMessages:Lt,setPreserve:Lt,getInitialValue:Lt}}}),Hf=L.createContext(null);function iv(t){return t==null?[]:Array.isArray(t)?t:[t]}function kj(t){return t&&!!t._init}function av(){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",tel:"%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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var ov=av();function Tj(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function Oj(t,e,n){if(X1())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&Hl(i,n.prototype),i}function sv(t){var e=typeof Map=="function"?new Map:void 0;return sv=function(r){if(r===null||!Tj(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return Oj(r,arguments,Wl(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Hl(i,r)},sv(t)}var qC={NODE_ENV:'"production"'},Rj=/%[sdj%]/g,JC=function(){};typeof process<"u"&&qC&&qC.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(JC=function(e,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(e,n)});function lv(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n)}),e}function kr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=0,a=n.length;if(typeof t=="function")return t.apply(null,n);if(typeof t=="string"){var o=t.replace(Rj,function(s){if(s==="%%")return"%";if(i>=a)return s;switch(s){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 s}});return o}return t}function Nj(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"||t==="tel"}function yn(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||Nj(e)&&typeof t=="string"&&!t)}function Pj(t,e,n){var r=[],i=0,a=t.length;function o(s){r.push.apply(r,je(s||[])),i++,i===a&&n(r)}t.forEach(function(s){e(s,o)})}function XC(t,e,n){var r=0,i=t.length;function a(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<i?e(t[s],a):n([])}a([])}function Ij(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,je(t[n]||[]))}),e}var $C=(function(t){ya(n,t);var e=ba(n);function n(r,i){var a;return kn(this,n),a=e.call(this,"Async Validation Error"),re(it(a),"errors",void 0),re(it(a),"fields",void 0),a.errors=r,a.fields=i,a}return Tn(n)})(sv(Error));function Mj(t,e,n,r,i){if(e.first){var a=new Promise(function(m,p){var y=function(x){return r(x),x.length?p(new $C(x,lv(x))):m(i)},b=Ij(t);XC(b,n,y)});return a.catch(function(m){return m}),a}var o=e.firstFields===!0?Object.keys(t):e.firstFields||[],s=Object.keys(t),c=s.length,u=0,d=[],h=new Promise(function(m,p){var y=function(v){if(d.push.apply(d,v),u++,u===c)return r(d),d.length?p(new $C(d,lv(d))):m(i)};s.length||(r(d),m(i)),s.forEach(function(b){var v=t[b];o.indexOf(b)!==-1?XC(v,n,y):Pj(v,n,y)})});return h.catch(function(m){return m}),h}function Lj(t){return!!(t&&t.message!==void 0)}function Fj(t,e){for(var n=t,r=0;r<e.length;r++){if(n==null)return n;n=n[e[r]]}return n}function ex(t,e){return function(n){var r;return t.fullFields?r=Fj(e,t.fullFields):r=e[n.field||t.fullField],Lj(n)?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||t.fullField}}}function tx(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];Ke(r)==="object"&&Ke(t[n])==="object"?t[n]=fe(fe({},t[n]),r):t[n]=r}}return t}var Es="enum",jj=function(e,n,r,i,a){e[Es]=Array.isArray(e[Es])?e[Es]:[],e[Es].indexOf(n)===-1&&i.push(kr(a.messages[Es],e.fullField,e[Es].join(", ")))},Dj=function(e,n,r,i,a){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||i.push(kr(a.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var o=new RegExp(e.pattern);o.test(n)||i.push(kr(a.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},Vj=function(e,n,r,i,a){var o=typeof e.len=="number",s=typeof e.min=="number",c=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,h=null,m=typeof n=="number",p=typeof n=="string",y=Array.isArray(n);if(m?h="number":p?h="string":y&&(h="array"),!h)return!1;y&&(d=n.length),p&&(d=n.replace(u,"_").length),o?d!==e.len&&i.push(kr(a.messages[h].len,e.fullField,e.len)):s&&!c&&d<e.min?i.push(kr(a.messages[h].min,e.fullField,e.min)):c&&!s&&d>e.max?i.push(kr(a.messages[h].max,e.fullField,e.max)):s&&c&&(d<e.min||d>e.max)&&i.push(kr(a.messages[h].range,e.fullField,e.min,e.max))},nx=function(e,n,r,i,a,o){e.required&&(!r.hasOwnProperty(e.field)||yn(n,o||e.type))&&i.push(kr(a.messages.required,e.fullField))},Wf;const Uj=(function(){if(Wf)return Wf;var t="[a-fA-F\\d:]",e=function(A){return A&&A.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(t,")|(?<=").concat(t,")(?=\\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),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(o,"$")),d=function(A){return A&&A.exact?s:new RegExp("(?:".concat(e(A)).concat(n).concat(e(A),")|(?:").concat(e(A)).concat(o).concat(e(A),")"),"g")};d.v4=function(w){return w&&w.exact?c:new RegExp("".concat(e(w)).concat(n).concat(e(w)),"g")},d.v6=function(w){return w&&w.exact?u:new RegExp("".concat(e(w)).concat(o).concat(e(w)),"g")};var h="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",p=d.v4().source,y=d.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",x="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",_="(?::\\d{2,5})?",T='(?:[/?#][^\\s"]*)?',C="(?:".concat(h,"|www\\.)").concat(m,"(?:localhost|").concat(p,"|").concat(y,"|").concat(b).concat(v).concat(x,")").concat(_).concat(T);return Wf=new RegExp("(?:^".concat(C,"$)"),"i"),Wf});var cv={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,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ic={integer:function(e){return ic.number(e)&&parseInt(e,10)===e},float:function(e){return ic.number(e)&&!ic.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return Ke(e)==="object"&&!ic.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(cv.email)},tel:function(e){return typeof e=="string"&&e.length<=32&&!!e.match(cv.tel)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(Uj())},hex:function(e){return typeof e=="string"&&!!e.match(cv.hex)}},Bj=function(e,n,r,i,a){if(e.required&&n===void 0){nx(e,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],s=e.type;o.indexOf(s)>-1?ic[s](n)||i.push(kr(a.messages.types[s],e.fullField,e.type)):s&&Ke(n)!==e.type&&i.push(kr(a.messages.types[s],e.fullField,e.type))},zj=function(e,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(kr(a.messages.whitespace,e.fullField))};const ct={required:nx,whitespace:zj,type:Bj,range:Vj,enum:jj,pattern:Dj};var Hj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n)&&!e.required)return r();ct.required(e,n,i,o,a)}r(o)},Wj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n==null&&!e.required)return r();ct.required(e,n,i,o,a,"array"),n!=null&&(ct.type(e,n,i,o,a),ct.range(e,n,i,o,a))}r(o)},Gj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n)&&!e.required)return r();ct.required(e,n,i,o,a),n!==void 0&&ct.type(e,n,i,o,a)}r(o)},Yj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n,"date")&&!e.required)return r();if(ct.required(e,n,i,o,a),!yn(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),ct.type(e,c,i,o,a),c&&ct.range(e,c.getTime(),i,o,a)}}r(o)},Kj="enum",Zj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n)&&!e.required)return r();ct.required(e,n,i,o,a),n!==void 0&&ct[Kj](e,n,i,o,a)}r(o)},Qj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n)&&!e.required)return r();ct.required(e,n,i,o,a),n!==void 0&&(ct.type(e,n,i,o,a),ct.range(e,n,i,o,a))}r(o)},qj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n)&&!e.required)return r();ct.required(e,n,i,o,a),n!==void 0&&(ct.type(e,n,i,o,a),ct.range(e,n,i,o,a))}r(o)},Jj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n)&&!e.required)return r();ct.required(e,n,i,o,a),n!==void 0&&ct.type(e,n,i,o,a)}r(o)},Xj=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n===""&&(n=void 0),yn(n)&&!e.required)return r();ct.required(e,n,i,o,a),n!==void 0&&(ct.type(e,n,i,o,a),ct.range(e,n,i,o,a))}r(o)},$j=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n)&&!e.required)return r();ct.required(e,n,i,o,a),n!==void 0&&ct.type(e,n,i,o,a)}r(o)},eD=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n,"string")&&!e.required)return r();ct.required(e,n,i,o,a),yn(n,"string")||ct.pattern(e,n,i,o,a)}r(o)},tD=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n)&&!e.required)return r();ct.required(e,n,i,o,a),yn(n)||ct.type(e,n,i,o,a)}r(o)},nD=function(e,n,r,i,a){var o=[],s=Array.isArray(n)?"array":Ke(n);ct.required(e,n,i,o,a,s),r(o)},rD=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(yn(n,"string")&&!e.required)return r();ct.required(e,n,i,o,a,"string"),yn(n,"string")||(ct.type(e,n,i,o,a),ct.range(e,n,i,o,a),ct.pattern(e,n,i,o,a),e.whitespace===!0&&ct.whitespace(e,n,i,o,a))}r(o)},Gf=function(e,n,r,i,a){var o=e.type,s=[],c=e.required||!e.required&&i.hasOwnProperty(e.field);if(c){if(yn(n,o)&&!e.required)return r();ct.required(e,n,i,s,a,o),yn(n,o)||ct.type(e,n,i,s,a)}r(s)};const ac={string:rD,method:Jj,number:Xj,boolean:Gj,regexp:tD,integer:qj,float:Qj,array:Wj,object:$j,enum:Zj,pattern:eD,date:Yj,url:Gf,hex:Gf,email:Gf,tel:Gf,required:nD,any:Hj};var oc=(function(){function t(e){kn(this,t),re(this,"rules",null),re(this,"_messages",ov),this.define(e)}return Tn(t,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Ke(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=tx(av(),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,s=i,c=a;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,o),Promise.resolve(o);function u(y){var b=[],v={};function x(T){if(Array.isArray(T)){var C;b=(C=b).concat.apply(C,je(T))}else b.push(T)}for(var _=0;_<y.length;_++)x(y[_]);b.length?(v=lv(b),c(b,v)):c(null,o)}if(s.messages){var d=this.messages();d===ov&&(d=av()),tx(d,s.messages),s.messages=d}else s.messages=this.messages();var h={},m=s.keys||Object.keys(this.rules);m.forEach(function(y){var b=r.rules[y],v=o[y];b.forEach(function(x){var _=x;typeof _.transform=="function"&&(o===n&&(o=fe({},o)),v=o[y]=_.transform(v),v!=null&&(_.type=_.type||(Array.isArray(v)?"array":Ke(v)))),typeof _=="function"?_={validator:_}:_=fe({},_),_.validator=r.getValidationMethod(_),_.validator&&(_.field=y,_.fullField=_.fullField||y,_.type=r.getType(_),h[y]=h[y]||[],h[y].push({rule:_,value:v,source:o,field:y}))})});var p={};return Mj(h,s,function(y,b){var v=y.rule,x=(v.type==="object"||v.type==="array")&&(Ke(v.fields)==="object"||Ke(v.defaultField)==="object");x=x&&(v.required||!v.required&&y.value),v.field=y.field;function _(k,R){return fe(fe({},R),{},{fullField:"".concat(v.fullField,".").concat(k),fullFields:v.fullFields?[].concat(je(v.fullFields),[k]):[k]})}function T(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(k)?k:[k];!s.suppressWarning&&R.length&&t.warning("async-validator:",R),R.length&&v.message!==void 0&&v.message!==null&&(R=[].concat(v.message));var I=R.map(ex(v,o));if(s.first&&I.length)return p[v.field]=1,b(I);if(!x)b(I);else{if(v.required&&!y.value)return v.message!==void 0?I=[].concat(v.message).map(ex(v,o)):s.error&&(I=[s.error(v,kr(s.messages.required,v.field))]),b(I);var U={};v.defaultField&&Object.keys(y.value).map(function(Y){U[Y]=v.defaultField}),U=fe(fe({},U),y.rule.fields);var D={};Object.keys(U).forEach(function(Y){var j=U[Y],F=Array.isArray(j)?j:[j];D[Y]=F.map(_.bind(null,Y))});var z=new t(D);z.messages(s.messages),y.rule.options&&(y.rule.options.messages=s.messages,y.rule.options.error=s.error),z.validate(y.value,y.rule.options||s,function(Y){var j=[];I&&I.length&&j.push.apply(j,je(I)),Y&&Y.length&&j.push.apply(j,je(Y)),b(j.length?j:null)})}}var C;if(v.asyncValidator)C=v.asyncValidator(v,y.value,T,y.source,s);else if(v.validator){try{C=v.validator(v,y.value,T,y.source,s)}catch(k){var w,A;(w=(A=console).error)===null||w===void 0||w.call(A,k),s.suppressValidatorError||setTimeout(function(){throw k},0),T(k.message)}C===!0?T():C===!1?T(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):C instanceof Array?T(C):C instanceof Error&&T(C.message)}C&&C.then&&C.then(function(){return T()},function(k){return T(k)})},function(y){u(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&&!ac.hasOwnProperty(n.type))throw new Error(kr("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"?ac.required:ac[this.getType(n)]||void 0}}]),t})();re(oc,"register",function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ac[e]=n}),re(oc,"warning",JC),re(oc,"messages",ov),re(oc,"validators",ac);var Tr="'${name}' is not a valid ${type}",rx={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:Tr,method:Tr,array:Tr,object:Tr,number:Tr,date:Tr,boolean:Tr,integer:Tr,float:Tr,regexp:Tr,email:Tr,url:Tr,hex:Tr},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}"}},ix=oc;function iD(t,e){return t.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return e[r]})}var ax="CODE_LOGIC_ERROR";function uv(t,e,n,r,i){return fv.apply(this,arguments)}function fv(){return fv=rc(zr().mark(function t(e,n,r,i,a){var o,s,c,u,d,h,m,p,y;return zr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return o=fe({},r),delete o.ruleIndex,ix.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(x){return console.error(x),Promise.reject(ax)}}),c=null,o&&o.type==="array"&&o.defaultField&&(c=o.defaultField,delete o.defaultField),u=new ix(re({},e,[o])),d=ms(rx,i.validateMessages),u.messages(d),h=[],v.prev=10,v.next=13,Promise.resolve(u.validate(re({},e,n),fe({},i)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(h=v.t0.errors.map(function(x,_){var T=x.message,C=T===ax?d.default:T;return L.isValidElement(C)?L.cloneElement(C,{key:"error_".concat(_)}):C}));case 18:if(!(!h.length&&c&&Array.isArray(n)&&n.length>0)){v.next=23;break}return v.next=21,Promise.all(n.map(function(x,_){return uv("".concat(e,".").concat(_),x,c,i,a)}));case 21:return m=v.sent,v.abrupt("return",m.reduce(function(x,_){return[].concat(je(x),je(_))},[]));case 23:return p=fe(fe({},r),{},{name:e,enum:(r.enum||[]).join(", ")},a),y=h.map(function(x){return typeof x=="string"?iD(x,p):x}),v.abrupt("return",y);case 26:case"end":return v.stop()}},t,null,[[10,15]])})),fv.apply(this,arguments)}function aD(t,e,n,r,i,a){var o=t.join("."),s=n.map(function(d,h){var m=d.validator,p=fe(fe({},d),{},{ruleIndex:h});return m&&(p.validator=function(y,b,v){var x=!1,_=function(){for(var w=arguments.length,A=new Array(w),k=0;k<w;k++)A[k]=arguments[k];Promise.resolve().then(function(){qt(!x,"Your validator function has already return a promise. `callback` will be ignored."),x||v.apply(void 0,A)})},T=m(y,b,_);x=T&&typeof T.then=="function"&&typeof T.catch=="function",qt(x,"`callback` is deprecated. Please return a promise instead."),x&&T.then(function(){v()}).catch(function(C){v(C||" ")})}),p}).sort(function(d,h){var m=d.warningOnly,p=d.ruleIndex,y=h.warningOnly,b=h.ruleIndex;return!!m==!!y?p-b:m?1:-1}),c;if(i===!0)c=new Promise((function(){var d=rc(zr().mark(function h(m,p){var y,b,v;return zr().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:y=0;case 1:if(!(y<s.length)){_.next=12;break}return b=s[y],_.next=5,uv(o,e,b,r,a);case 5:if(v=_.sent,!v.length){_.next=9;break}return p([{errors:v,rule:b}]),_.abrupt("return");case 9:y+=1,_.next=1;break;case 12:m([]);case 13:case"end":return _.stop()}},h)}));return function(h,m){return d.apply(this,arguments)}})());else{var u=s.map(function(d){return uv(o,e,d,r,a).then(function(h){return{errors:h,rule:d}})});c=(i?sD(u):oD(u)).then(function(d){return Promise.reject(d)})}return c.catch(function(d){return d}),c}function oD(t){return dv.apply(this,arguments)}function dv(){return dv=rc(zr().mark(function t(e){return zr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(e).then(function(i){var a,o=(a=[]).concat.apply(a,je(i));return o}));case 1:case"end":return r.stop()}},t)})),dv.apply(this,arguments)}function sD(t){return hv.apply(this,arguments)}function hv(){return hv=rc(zr().mark(function t(e){var n;return zr().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=0,i.abrupt("return",new Promise(function(a){e.forEach(function(o){o.then(function(s){s.errors.length&&a([s]),n+=1,n===e.length&&a([])})})}));case 2:case"end":return i.stop()}},t)})),hv.apply(this,arguments)}function on(t){return iv(t)}function ox(t,e){var n={};return e.forEach(function(r){var i=Ri(t,r);n=fi(n,r,i)}),n}function Cs(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return t&&t.some(function(r){return sx(e,r,n)})}function sx(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!t||!e||!n&&t.length!==e.length?!1:e.every(function(r,i){return t[i]===r})}function lD(t,e){if(t===e)return!0;if(!t&&e||t&&!e||!t||!e||Ke(t)!=="object"||Ke(e)!=="object")return!1;var n=Object.keys(t),r=Object.keys(e),i=new Set([].concat(n,r));return je(i).every(function(a){var o=t[a],s=e[a];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function cD(t){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&Ke(e.target)==="object"&&t in e.target?e.target[t]:e}function lx(t,e,n){var r=t.length;if(e<0||e>=r||n<0||n>=r)return t;var i=t[e],a=e-n;return a>0?[].concat(je(t.slice(0,n)),[i],je(t.slice(n,e)),je(t.slice(e+1,r))):a<0?[].concat(je(t.slice(0,e)),je(t.slice(e+1,n+1)),[i],je(t.slice(n+1,r))):t}var uD=["name"],Hr=[];function pv(t,e,n,r,i,a){return typeof t=="function"?t(e,n,"source"in a?{source:a.source}:{}):r!==i}var mv=(function(t){ya(n,t);var e=ba(n);function n(r){var i;if(kn(this,n),i=e.call(this,r),re(it(i),"state",{resetCount:0}),re(it(i),"cancelRegisterFunc",null),re(it(i),"mounted",!1),re(it(i),"touched",!1),re(it(i),"dirty",!1),re(it(i),"validatePromise",void 0),re(it(i),"prevValidating",void 0),re(it(i),"errors",Hr),re(it(i),"warnings",Hr),re(it(i),"cancelRegister",function(){var c=i.props,u=c.preserve,d=c.isListField,h=c.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(d,u,on(h)),i.cancelRegisterFunc=null}),re(it(i),"getNamePath",function(){var c=i.props,u=c.name,d=c.fieldContext,h=d.prefixName,m=h===void 0?[]:h;return u!==void 0?[].concat(je(m),je(u)):[]}),re(it(i),"getRules",function(){var c=i.props,u=c.rules,d=u===void 0?[]:u,h=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(h):m})}),re(it(i),"refresh",function(){i.mounted&&i.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),re(it(i),"metaCache",null),re(it(i),"triggerMetaEvent",function(c){var u=i.props.onMetaChange;if(u){var d=fe(fe({},i.getMeta()),{},{destroy:c});rg(i.metaCache,d)||u(d),i.metaCache=d}else i.metaCache=null}),re(it(i),"onStoreChange",function(c,u,d){var h=i.props,m=h.shouldUpdate,p=h.dependencies,y=p===void 0?[]:p,b=h.onReset,v=d.store,x=i.getNamePath(),_=i.getValue(c),T=i.getValue(v),C=u&&Cs(u,x);switch(d.type==="valueUpdate"&&d.source==="external"&&!rg(_,T)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Hr,i.warnings=Hr,i.triggerMetaEvent()),d.type){case"reset":if(!u||C){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Hr,i.warnings=Hr,i.triggerMetaEvent(),b==null||b(),i.refresh();return}break;case"remove":{if(m&&pv(m,c,v,_,T,d)){i.reRender();return}break}case"setField":{var w=d.data;if(C){"touched"in w&&(i.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(i.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(i.errors=w.errors||Hr),"warnings"in w&&(i.warnings=w.warnings||Hr),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in w&&Cs(u,x,!0)){i.reRender();return}if(m&&!x.length&&pv(m,c,v,_,T,d)){i.reRender();return}break}case"dependenciesUpdate":{var A=y.map(on);if(A.some(function(k){return Cs(d.relatedFields,k)})){i.reRender();return}break}default:if(C||(!y.length||x.length||m)&&pv(m,c,v,_,T,d)){i.reRender();return}break}m===!0&&i.reRender()}),re(it(i),"validateRules",function(c){var u=i.getNamePath(),d=i.getValue(),h=c||{},m=h.triggerName,p=h.validateOnly,y=p===void 0?!1:p,b=Promise.resolve().then(rc(zr().mark(function v(){var x,_,T,C,w,A,k;return zr().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(i.mounted){I.next=2;break}return I.abrupt("return",[]);case 2:if(x=i.props,_=x.validateFirst,T=_===void 0?!1:_,C=x.messageVariables,w=x.validateDebounce,A=i.getRules(),m&&(A=A.filter(function(U){return U}).filter(function(U){var D=U.validateTrigger;if(!D)return!0;var z=iv(D);return z.includes(m)})),!(w&&m)){I.next=10;break}return I.next=8,new Promise(function(U){setTimeout(U,w)});case 8:if(i.validatePromise===b){I.next=10;break}return I.abrupt("return",[]);case 10:return k=aD(u,d,A,c,T,C),k.catch(function(U){return U}).then(function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hr;if(i.validatePromise===b){var D;i.validatePromise=null;var z=[],Y=[];(D=U.forEach)===null||D===void 0||D.call(U,function(j){var F=j.rule.warningOnly,V=j.errors,G=V===void 0?Hr:V;F?Y.push.apply(Y,je(G)):z.push.apply(z,je(G))}),i.errors=z,i.warnings=Y,i.triggerMetaEvent(),i.reRender()}}),I.abrupt("return",k);case 13:case"end":return I.stop()}},v)})));return y||(i.validatePromise=b,i.dirty=!0,i.errors=Hr,i.warnings=Hr,i.triggerMetaEvent(),i.reRender()),b}),re(it(i),"isFieldValidating",function(){return!!i.validatePromise}),re(it(i),"isFieldTouched",function(){return i.touched}),re(it(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var c=i.props.fieldContext,u=c.getInternalHooks(so),d=u.getInitialValue;return d(i.getNamePath())!==void 0}),re(it(i),"getErrors",function(){return i.errors}),re(it(i),"getWarnings",function(){return i.warnings}),re(it(i),"isListField",function(){return i.props.isListField}),re(it(i),"isList",function(){return i.props.isList}),re(it(i),"isPreserve",function(){return i.props.preserve}),re(it(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var c={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return c}),re(it(i),"getOnlyChild",function(c){if(typeof c=="function"){var u=i.getMeta();return fe(fe({},i.getOnlyChild(c(i.getControlled(),u,i.props.fieldContext))),{},{isFunction:!0})}var d=uf(c);return d.length!==1||!L.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),re(it(i),"getValue",function(c){var u=i.props.fieldContext.getFieldsValue,d=i.getNamePath();return Ri(c||u(!0),d)}),re(it(i),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=i.props,d=u.name,h=u.trigger,m=u.validateTrigger,p=u.getValueFromEvent,y=u.normalize,b=u.valuePropName,v=u.getValueProps,x=u.fieldContext,_=m!==void 0?m:x.validateTrigger,T=i.getNamePath(),C=x.getInternalHooks,w=x.getFieldsValue,A=C(so),k=A.dispatch,R=i.getValue(),I=v||function(j){return re({},b,j)},U=c[h],D=d!==void 0?I(R):{};D&&Object.keys(D).forEach(function(j){qt(typeof D[j]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(j,")"))});var z=fe(fe({},c),D);z[h]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var j,F=arguments.length,V=new Array(F),G=0;G<F;G++)V[G]=arguments[G];p?j=p.apply(void 0,V):j=cD.apply(void 0,[b].concat(V)),y&&(j=y(j,R,w(!0))),j!==R&&k({type:"updateValue",namePath:T,value:j}),U&&U.apply(void 0,V)};var Y=iv(_||[]);return Y.forEach(function(j){var F=z[j];z[j]=function(){F&&F.apply(void 0,arguments);var V=i.props.rules;V&&V.length&&k({type:"validateField",namePath:T,triggerName:j})}}),z}),r.fieldContext){var a=r.fieldContext.getInternalHooks,o=a(so),s=o.initEntityValue;s(it(i))}return i}return Tn(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.shouldUpdate,o=i.fieldContext;if(this.mounted=!0,o){var s=o.getInternalHooks,c=s(so),u=c.registerField;this.cancelRegisterFunc=u(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),s=o.child,c=o.isFunction,u;return c?u=s:L.isValidElement(s)?u=L.cloneElement(s,this.getControlled(s.props)):(qt(!s,"`children` of Field is not validate ReactElement."),u=s),L.createElement(L.Fragment,{key:i},u)}}]),n})(L.Component);re(mv,"contextType",Ss),re(mv,"defaultProps",{trigger:"onChange",valuePropName:"value"});function cx(t){var e,n=t.name,r=Ti(t,uD),i=L.useContext(Ss),a=L.useContext(Hf),o=n!==void 0?on(n):void 0,s=(e=r.isListField)!==null&&e!==void 0?e:!!a,c="keep";return s||(c="_".concat((o||[]).join("_"))),r.preserve===!1&&s&&o.length<=1&&qt(!1,"`preserve` should not apply on Form.List fields."),L.createElement(mv,_r({key:c,name:o,isListField:s},r,{fieldContext:i}))}function fD(t){var e=t.name,n=t.initialValue,r=t.children,i=t.rules,a=t.validateTrigger,o=t.isListField,s=L.useContext(Ss),c=L.useContext(Hf),u=L.useRef({keys:[],id:0}),d=u.current,h=L.useMemo(function(){var b=on(s.prefixName)||[];return[].concat(je(b),je(on(e)))},[s.prefixName,e]),m=L.useMemo(function(){return fe(fe({},s),{},{prefixName:h})},[s,h]),p=L.useMemo(function(){return{getKey:function(v){var x=h.length,_=v[x];return[d.keys[_],v.slice(x+1)]}}},[h]);if(typeof r!="function")return qt(!1,"Form.List only accepts function as children."),null;var y=function(v,x,_){var T=_.source;return T==="internal"?!1:v!==x};return L.createElement(Hf.Provider,{value:p},L.createElement(Ss.Provider,{value:m},L.createElement(cx,{name:[],shouldUpdate:y,rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:o??!!c},function(b,v){var x=b.value,_=x===void 0?[]:x,T=b.onChange,C=s.getFieldValue,w=function(){var I=C(h||[]);return I||[]},A={add:function(I,U){var D=w();U>=0&&U<=D.length?(d.keys=[].concat(je(d.keys.slice(0,U)),[d.id],je(d.keys.slice(U))),T([].concat(je(D.slice(0,U)),[I],je(D.slice(U))))):((U<0||U>D.length)&&qt(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(je(d.keys),[d.id]),T([].concat(je(D),[I]))),d.id+=1},remove:function(I){var U=w(),D=new Set(Array.isArray(I)?I:[I]);D.size<=0||(d.keys=d.keys.filter(function(z,Y){return!D.has(Y)}),T(U.filter(function(z,Y){return!D.has(Y)})))},move:function(I,U){if(I!==U){var D=w();I<0||I>=D.length||U<0||U>=D.length||(d.keys=lx(d.keys,I,U),T(lx(D,I,U)))}}},k=_||[];return Array.isArray(k)||(k=[],qt(!1,"Current value of '".concat(h.join(" > "),"' is not an array type."))),r(k.map(function(R,I){var U=d.keys[I];return U===void 0&&(d.keys[I]=d.id,U=d.keys[I],d.id+=1),{name:I,key:U,isListField:!0}}),A,v)})))}function dD(t){var e=!1,n=t.length,r=[];return t.length?new Promise(function(i,a){t.forEach(function(o,s){o.catch(function(c){return e=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(e&&a(r),i(r))})})}):Promise.resolve([])}var ux="__@field_split__";function gv(t){return t.map(function(e){return"".concat(Ke(e),":").concat(e)}).join(ux)}var xs=(function(){function t(){kn(this,t),re(this,"kvs",new Map)}return Tn(t,[{key:"set",value:function(n,r){this.kvs.set(gv(n),r)}},{key:"get",value:function(n){return this.kvs.get(gv(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(gv(n))}},{key:"map",value:function(n){return je(this.kvs.entries()).map(function(r){var i=xe(r,2),a=i[0],o=i[1],s=a.split(ux);return n({key:s.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=xe(u,3),h=d[1],m=d[2];return h==="number"?Number(m):m}),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}}]),t})(),hD=["name"],pD=Tn(function t(e){var n=this;kn(this,t),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===so?(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=ms(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var c=s.key;o=fi(o,c,Ri(r,c))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),re(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new xs;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=Ri(n.initialValues,r);return r.length?ms(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 xs;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=on(a);return i.get(o)||{INVALIDATE_NAME_PATH:on(a)}})}),re(this,"getFieldsValue",function(r,i){n.warningUnhooked();var a,o,s;if(r===!0||Array.isArray(r)?(a=r,o=i):r&&Ke(r)==="object"&&(s=r.strict,o=r.filter),a===!0&&!o)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return c.forEach(function(d){var h,m,p="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var y,b;if((y=(b=d).isList)!==null&&y!==void 0&&y.call(b))return}else if(!a&&(h=(m=d).isListField)!==null&&h!==void 0&&h.call(m))return;if(!o)u.push(p);else{var v="getMeta"in d?d.getMeta():null;o(v)&&u.push(p)}}),ox(n.store,u.map(on))}),re(this,"getFieldValue",function(r){n.warningUnhooked();var i=on(r);return Ri(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:on(r[o]),errors:[],warnings:[]}})}),re(this,"getFieldError",function(r){n.warningUnhooked();var i=on(r),a=n.getFieldsError([i])[0];return a.errors}),re(this,"getFieldWarning",function(r){n.warningUnhooked();var i=on(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],s=i[1],c,u=!1;i.length===0?c=null:i.length===1?Array.isArray(o)?(c=o.map(on),u=!1):(c=null,u=o):(c=o.map(on),u=s);var d=n.getFieldEntities(!0),h=function(v){return v.isFieldTouched()};if(!c)return u?d.every(function(b){return h(b)||b.isList()}):d.some(h);var m=new xs;c.forEach(function(b){m.set(b,[])}),d.forEach(function(b){var v=b.getNamePath();c.forEach(function(x){x.every(function(_,T){return v[T]===_})&&m.update(x,function(_){return[].concat(je(_),[b])})})});var p=function(v){return v.some(h)},y=m.map(function(b){var v=b.value;return v});return u?y.every(p):y.some(p)}),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(on);return i.some(function(o){var s=o.getNamePath();return Cs(a,s)&&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 xs,a=n.getFieldEntities(!0);a.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var h=i.get(d)||new Set;h.add({entity:c,value:u}),i.set(d,h)}});var o=function(u){u.forEach(function(d){var h=d.props.initialValue;if(h!==void 0){var m=d.getNamePath(),p=n.getInitialValue(m);if(p!==void 0)qt(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var y=i.get(m);if(y&&y.size>1)qt(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var b=n.getFieldValue(m),v=d.isListField();!v&&(!r.skipExist||b===void 0)&&n.updateStore(fi(n.store,m,je(y)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var u=i.get(c);if(u){var d;(d=s).push.apply(d,je(je(u).map(function(h){return h.entity})))}})):s=a,o(s)}),re(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(ms(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(on);a.forEach(function(o){var s=n.getInitialValue(o);n.updateStore(fi(n.store,o,s))}),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 s=o.name,c=Ti(o,hD),u=on(s);a.push(u),"value"in c&&n.updateStore(fi(n.store,u,c.value)),n.notifyObservers(i,[u],{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(),s=a.getMeta(),c=fe(fe({},s),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return i}),re(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var a=r.getNamePath(),o=Ri(n.store,a);o===void 0&&n.updateStore(fi(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,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(h){return h!==r}),!n.isMergedPreserve(s)&&(!o||c.length>1)){var u=o?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==u&&n.fieldEntities.every(function(h){return!sx(h.getNamePath(),i)})){var d=n.store;n.updateStore(fi(d,i,u,!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,s=r.triggerName;n.validateFields([o],{triggerName:s});break}}}),re(this,"notifyObservers",function(r,i,a){if(n.subscribable){var o=fe(fe({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(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(je(a))}),a}),re(this,"updateValue",function(r,i){var a=on(r),o=n.store;n.updateStore(fi(n.store,a,i)),n.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(o,a),c=n.callbacks.onValuesChange;if(c){var u=ox(n.store,[a]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(je(s)))}),re(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var a=ms(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 xs;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var h=on(d);o.update(h,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var s=function c(u){var d=o.get(u)||new Set;d.forEach(function(h){if(!i.has(h)){i.add(h);var m=h.getNamePath();h.isFieldDirty()&&m.length&&(a.push(m),c(m))}})};return s(r),a}),re(this,"triggerOnFieldsChange",function(r,i){var a=n.callbacks.onFieldsChange;if(a){var o=n.getFields();if(i){var s=new xs;i.forEach(function(u){var d=u.name,h=u.errors;s.set(d,h)}),o.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var c=o.filter(function(u){var d=u.name;return Cs(r,d)});c.length&&a(c,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 s=!!a,c=s?a.map(on):[],u=[],d=String(Date.now()),h=new Set,m=o||{},p=m.recursive,y=m.dirty;n.getFieldEntities(!0).forEach(function(_){if(s||c.push(_.getNamePath()),!(!_.props.rules||!_.props.rules.length)&&!(y&&!_.isFieldDirty())){var T=_.getNamePath();if(h.add(T.join(d)),!s||Cs(c,T,p)){var C=_.validateRules(fe({validateMessages:fe(fe({},rx),n.validateMessages)},o));u.push(C.then(function(){return{name:T,errors:[],warnings:[]}}).catch(function(w){var A,k=[],R=[];return(A=w.forEach)===null||A===void 0||A.call(w,function(I){var U=I.rule.warningOnly,D=I.errors;U?R.push.apply(R,je(D)):k.push.apply(k,je(D))}),k.length?Promise.reject({name:T,errors:k,warnings:R}):{name:T,errors:k,warnings:R}}))}}});var b=dD(u);n.lastValidatePromise=b,b.catch(function(_){return _}).then(function(_){var T=_.map(function(C){var w=C.name;return w});n.notifyObservers(n.store,T,{type:"validateFinish"}),n.triggerOnFieldsChange(T,_)});var v=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(_){var T=_.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:T,outOfDate:n.lastValidatePromise!==b})});v.catch(function(_){return _});var x=c.filter(function(_){return h.has(_.join(d))});return n.triggerOnFieldsChange(x),v}),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=e});function fx(t){var e=L.useRef(),n=L.useState({}),r=xe(n,2),i=r[1];if(!e.current)if(t)e.current=t;else{var a=function(){i({})},o=new pD(a);e.current=o.getForm()}return[e.current]}var vv=L.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),mD=function(e){var n=e.validateMessages,r=e.onFormChange,i=e.onFormFinish,a=e.children,o=L.useContext(vv),s=L.useRef({});return L.createElement(vv.Provider,{value:fe(fe({},o),{},{validateMessages:fe(fe({},o.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),o.triggerFormChange(u,d)},triggerFormFinish:function(u,d){i&&i(u,{values:d,forms:s.current}),o.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=fe(fe({},s.current),{},re({},u,d))),o.registerForm(u,d)},unregisterForm:function(u){var d=fe({},s.current);delete d[u],s.current=d,o.unregisterForm(u)}})},a)},gD=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],vD=function(e,n){var r=e.name,i=e.initialValues,a=e.fields,o=e.form,s=e.preserve,c=e.children,u=e.component,d=u===void 0?"form":u,h=e.validateMessages,m=e.validateTrigger,p=m===void 0?"onChange":m,y=e.onValuesChange,b=e.onFieldsChange,v=e.onFinish,x=e.onFinishFailed,_=e.clearOnDestroy,T=Ti(e,gD),C=L.useRef(null),w=L.useContext(vv),A=fx(o),k=xe(A,1),R=k[0],I=R.getInternalHooks(so),U=I.useSubscribe,D=I.setInitialValues,z=I.setCallbacks,Y=I.setValidateMessages,j=I.setPreserve,F=I.destroyForm;L.useImperativeHandle(n,function(){return fe(fe({},R),{},{nativeElement:C.current})}),L.useEffect(function(){return w.registerForm(r,R),function(){w.unregisterForm(r)}},[w,R,r]),Y(fe(fe({},w.validateMessages),h)),z({onValuesChange:y,onFieldsChange:function(ce){if(w.triggerFormChange(r,ce),b){for(var ie=arguments.length,J=new Array(ie>1?ie-1:0),ue=1;ue<ie;ue++)J[ue-1]=arguments[ue];b.apply(void 0,[ce].concat(J))}},onFinish:function(ce){w.triggerFormFinish(r,ce),v&&v(ce)},onFinishFailed:x}),j(s);var V=L.useRef(null);D(i,!V.current),V.current||(V.current=!0),L.useEffect(function(){return function(){return F(_)}},[]);var G,B=typeof c=="function";if(B){var q=R.getFieldsValue(!0);G=c(q,R)}else G=c;U(!B);var W=L.useRef();L.useEffect(function(){lD(W.current||[],a||[])||R.setFields(a||[]),W.current=a},[a,R]);var K=L.useMemo(function(){return fe(fe({},R),{},{validateTrigger:p})},[R,p]),te=L.createElement(Hf.Provider,{value:null},L.createElement(Ss.Provider,{value:K},G));return d===!1?te:L.createElement(d,_r({},T,{ref:C,onSubmit:function(ce){ce.preventDefault(),ce.stopPropagation(),R.submit()},onReset:function(ce){var ie;ce.preventDefault(),R.resetFields(),(ie=T.onReset)===null||ie===void 0||ie.call(T,ce)}}),te)};function dx(t){try{return JSON.stringify(t)}catch{return Math.random()}}var yD=function(t){var e=t.join("__RC_FIELD_FORM_SPLIT__"),n=N.useRef(e);qt(n.current===e,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")};function bD(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],i=e[1],a=i===void 0?{}:i,o=kj(a)?{form:a}:a,s=o.form,c=N.useState(),u=xe(c,2),d=u[0],h=u[1],m=N.useMemo(function(){return dx(d)},[d]),p=N.useRef(m);p.current=m;var y=N.useContext(Ss),b=s||y,v=b&&b._init;qt(e.length===2?s?v:!0:v,"useWatch requires a form instance since it can not auto detect from context.");var x=on(r),_=N.useRef(x);return _.current=x,yD(x),N.useEffect(function(){if(v){var T=b.getFieldsValue,C=b.getInternalHooks,w=C(so),A=w.registerWatch,k=function(D,z){var Y=o.preserve?z:D;return typeof r=="function"?r(Y):Ri(Y,_.current)},R=A(function(U,D){var z=k(U,D),Y=dx(z);p.current!==Y&&(p.current=Y,h(z))}),I=k(T(),T(!0));return d!==I&&h(I),R}},[v]),d}var wD=L.forwardRef(vD),sc=wD;sc.FormProvider=mD,sc.Field=cx,sc.List=fD,sc.useForm=fx,sc.useWatch=bD;const yv=L.createContext({});yv.displayName="FormItemInputContext";const SD=({children:t,status:e,override:n})=>{const r=L.useContext(yv),i=L.useMemo(()=>{const a=Object.assign({},r);return n&&delete a.isFormItemInput,e&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[e,n,r]);return L.createElement(yv.Provider,{value:i},t)},ED=t=>{const{space:e,form:n,children:r}=t;if(r==null)return null;let i=r;return n&&(i=N.createElement(SD,{override:!0,status:!0},i)),e&&(i=N.createElement(VF,null,i)),i},CD=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var t=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(t)||/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(t==null?void 0:t.substr(0,4))});function xD(t){var e=t.prefixCls,n=t.align,r=t.arrow,i=t.arrowPos,a=r||{},o=a.className,s=a.content,c=i.x,u=c===void 0?0:c,d=i.y,h=d===void 0?0:d,m=L.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var y=n.points[0],b=n.points[1],v=y[0],x=y[1],_=b[0],T=b[1];v===_||!["t","b"].includes(v)?p.top=h:v==="t"?p.top=0:p.bottom=0,x===T||!["l","r"].includes(x)?p.left=u:x==="l"?p.left=0:p.right=0}return L.createElement("div",{ref:m,className:Nt("".concat(e,"-arrow"),o),style:p},s)}function _D(t){var e=t.prefixCls,n=t.open,r=t.zIndex,i=t.mask,a=t.motion;return i?L.createElement(Bf,_r({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var s=o.className;return L.createElement("div",{style:{zIndex:r},className:Nt("".concat(e,"-mask"),s)})}):null}var hx=L.memo(function(t){var e=t.children;return e},function(t,e){return e.cache});hx.displayName="PopupContent";var px=L.forwardRef(function(t,e){var n=t.popup,r=t.className,i=t.prefixCls,a=t.style,o=t.target,s=t.onVisibleChanged,c=t.open,u=t.keepDom,d=t.fresh,h=t.onClick,m=t.mask,p=t.arrow,y=t.arrowPos,b=t.align,v=t.motion,x=t.maskMotion,_=t.forceRender,T=t.getPopupContainer,C=t.autoDestroy,w=t.portal,A=t.zIndex,k=t.onMouseEnter,R=t.onMouseLeave,I=t.onPointerEnter,U=t.onPointerDownCapture,D=t.ready,z=t.offsetX,Y=t.offsetY,j=t.offsetR,F=t.offsetB,V=t.onAlign,G=t.onPrepare,B=t.stretch,q=t.targetWidth,W=t.targetHeight,K=typeof n=="function"?n():n,te=c||u,ne=(T==null?void 0:T.length)>0,ce=L.useState(!T||!ne),ie=xe(ce,2),J=ie[0],ue=ie[1];if(Qn(function(){!J&&ne&&o&&ue(!0)},[J,ne,o]),!J)return null;var le="auto",ve={left:"-1000vw",top:"-1000vh",right:le,bottom:le};if(D||!c){var he,be=b.points,ee=b.dynamicInset||((he=b._experimental)===null||he===void 0?void 0:he.dynamicInset),Ie=ee&&be[0][1]==="r",ye=ee&&be[0][0]==="b";Ie?(ve.right=j,ve.left=le):(ve.left=z,ve.right=le),ye?(ve.bottom=F,ve.top=le):(ve.top=Y,ve.bottom=le)}var Fe={};return B&&(B.includes("height")&&W?Fe.height=W:B.includes("minHeight")&&W&&(Fe.minHeight=W),B.includes("width")&&q?Fe.width=q:B.includes("minWidth")&&q&&(Fe.minWidth=q)),c||(Fe.pointerEvents="none"),L.createElement(w,{open:_||te,getContainer:T&&function(){return T(o)},autoDestroy:C},L.createElement(_D,{prefixCls:i,open:c,zIndex:A,mask:m,motion:x}),L.createElement(gf,{onResize:V,disabled:!c},function(at){return L.createElement(Bf,_r({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:_,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:G,onEnterPrepare:G,visible:c,onVisibleChanged:function(tt){var Ae;v==null||(Ae=v.onVisibleChanged)===null||Ae===void 0||Ae.call(v,tt),s(tt)}}),function(Pe,tt){var Ae=Pe.className,nt=Pe.style,Le=Nt(i,Ae,r);return L.createElement("div",{ref:FS(at,e,tt),className:Le,style:fe(fe(fe(fe({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},ve),Fe),nt),{},{boxSizing:"border-box",zIndex:A},a),onMouseEnter:k,onMouseLeave:R,onPointerEnter:I,onClick:h,onPointerDownCapture:U},p&&L.createElement(xD,{prefixCls:i,arrow:p,arrowPos:y,align:b}),L.createElement(hx,{cache:!c&&!d},K))})}))});px.displayName="Popup";var mx=L.forwardRef(function(t,e){var n=t.children,r=t.getTriggerDOMNode,i=df(n),a=L.useCallback(function(s){K1(e,r?r(s):s)},[r]),o=Z1(a,Q1(n));return i?L.cloneElement(n,{ref:o}):n});mx.displayName="TriggerWrapper";var gx=L.createContext(null);function vx(t){return t?Array.isArray(t)?t:[t]:[]}function AD(t,e,n,r){return L.useMemo(function(){var i=vx(n??e),a=vx(r??e),o=new Set(i),s=new Set(a);return t&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[t,e,n,r])}function kD(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function TD(t,e,n,r){for(var i=n.points,a=Object.keys(t),o=0;o<a.length;o+=1){var s,c=a[o];if(kD((s=t[c])===null||s===void 0?void 0:s.points,i,r))return"".concat(e,"-placement-").concat(c)}return""}function yx(t,e,n,r){return e||(n?{motionName:"".concat(t,"-").concat(n)}:r?{motionName:r}:null)}function lc(t){return t.ownerDocument.defaultView}function bv(t){for(var e=[],n=t==null?void 0:t.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=lc(n).getComputedStyle(n),a=i.overflowX,o=i.overflowY,s=i.overflow;[a,o,s].some(function(c){return r.includes(c)})&&e.push(n),n=n.parentElement}return e}function cc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(t)?e:t}function uc(t){return cc(parseFloat(t),0)}function bx(t,e){var n=fe({},t);return(e||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=lc(r).getComputedStyle(r),a=i.overflow,o=i.overflowClipMargin,s=i.borderTopWidth,c=i.borderBottomWidth,u=i.borderLeftWidth,d=i.borderRightWidth,h=r.getBoundingClientRect(),m=r.offsetHeight,p=r.clientHeight,y=r.offsetWidth,b=r.clientWidth,v=uc(s),x=uc(c),_=uc(u),T=uc(d),C=cc(Math.round(h.width/y*1e3)/1e3),w=cc(Math.round(h.height/m*1e3)/1e3),A=(y-b-_-T)*C,k=(m-p-v-x)*w,R=v*w,I=x*w,U=_*C,D=T*C,z=0,Y=0;if(a==="clip"){var j=uc(o);z=j*C,Y=j*w}var F=h.x+U-z,V=h.y+R-Y,G=F+h.width+2*z-U-D-A,B=V+h.height+2*Y-R-I-k;n.left=Math.max(n.left,F),n.top=Math.max(n.top,V),n.right=Math.min(n.right,G),n.bottom=Math.min(n.bottom,B)}}),n}function wx(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(e),r=n.match(/^(.*)\%$/);return r?t*(parseFloat(r[1])/100):parseFloat(n)}function Sx(t,e){var n=e||[],r=xe(n,2),i=r[0],a=r[1];return[wx(t.width,i),wx(t.height,a)]}function Ex(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[t[0],t[1]]}function _s(t,e){var n=e[0],r=e[1],i,a;return n==="t"?a=t.y:n==="b"?a=t.y+t.height:a=t.y+t.height/2,r==="l"?i=t.x:r==="r"?i=t.x+t.width:i=t.x+t.width/2,{x:i,y:a}}function Aa(t,e){var n={t:"b",b:"t",l:"r",r:"l"};return t.map(function(r,i){return i===e?n[r]||"c":r}).join("")}function OD(t,e,n,r,i,a,o){var s=L.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),c=xe(s,2),u=c[0],d=c[1],h=L.useRef(0),m=L.useMemo(function(){return e?bv(e):[]},[e]),p=L.useRef({}),y=function(){p.current={}};t||y();var b=fr(function(){if(e&&n&&t){let rr=function(po,vi){var Fi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$e,Na=te.x+po,Ls=te.y+vi,bc=Na+ye,wc=Ls+Ie,Sc=Math.max(Na,Fi.left),Oe=Math.max(Ls,Fi.top),Ve=Math.min(bc,Fi.right),Bt=Math.min(wc,Fi.bottom);return Math.max(0,(Ve-Sc)*(Bt-Oe))},ea=function(){Wn=te.y+ut,Ln=Wn+Ie,gr=te.x+mt,ke=gr+ye};var _,T,C,w,A=e,k=A.ownerDocument,R=lc(A),I=R.getComputedStyle(A),U=I.position,D=A.style.left,z=A.style.top,Y=A.style.right,j=A.style.bottom,F=A.style.overflow,V=fe(fe({},i[r]),a),G=k.createElement("div");(_=A.parentElement)===null||_===void 0||_.appendChild(G),G.style.left="".concat(A.offsetLeft,"px"),G.style.top="".concat(A.offsetTop,"px"),G.style.position=U,G.style.height="".concat(A.offsetHeight,"px"),G.style.width="".concat(A.offsetWidth,"px"),A.style.left="0",A.style.top="0",A.style.right="auto",A.style.bottom="auto",A.style.overflow="hidden";var B;if(Array.isArray(n))B={x:n[0],y:n[1],width:0,height:0};else{var q,W,K=n.getBoundingClientRect();K.x=(q=K.x)!==null&&q!==void 0?q:K.left,K.y=(W=K.y)!==null&&W!==void 0?W:K.top,B={x:K.x,y:K.y,width:K.width,height:K.height}}var te=A.getBoundingClientRect(),ne=R.getComputedStyle(A),ce=ne.height,ie=ne.width;te.x=(T=te.x)!==null&&T!==void 0?T:te.left,te.y=(C=te.y)!==null&&C!==void 0?C:te.top;var J=k.documentElement,ue=J.clientWidth,le=J.clientHeight,ve=J.scrollWidth,he=J.scrollHeight,be=J.scrollTop,ee=J.scrollLeft,Ie=te.height,ye=te.width,Fe=B.height,at=B.width,Pe={left:0,top:0,right:ue,bottom:le},tt={left:-ee,top:-be,right:ve-ee,bottom:he-be},Ae=V.htmlRegion,nt="visible",Le="visibleFirst";Ae!=="scroll"&&Ae!==Le&&(Ae=nt);var Ze=Ae===Le,_t=bx(tt,m),Ee=bx(Pe,m),$e=Ae===nt?Ee:_t,At=Ze?Ee:$e;A.style.left="auto",A.style.top="auto",A.style.right="0",A.style.bottom="0";var Ht=A.getBoundingClientRect();A.style.left=D,A.style.top=z,A.style.right=Y,A.style.bottom=j,A.style.overflow=F,(w=A.parentElement)===null||w===void 0||w.removeChild(G);var Yt=cc(Math.round(ye/parseFloat(ie)*1e3)/1e3),bn=cc(Math.round(Ie/parseFloat(ce)*1e3)/1e3);if(Yt===0||bn===0||zl(n)&&!jF(n))return;var dr=V.offset,vt=V.targetOffset,yt=Sx(te,dr),nn=xe(yt,2),Xt=nn[0],jt=nn[1],wn=Sx(B,vt),$t=xe(wn,2),Hn=$t[0],Ji=$t[1];B.x-=Hn,B.y-=Ji;var Yr=V.points||[],hr=xe(Yr,2),Pi=hr[0],pr=hr[1],$n=Ex(pr),sn=Ex(Pi),Qe=_s(B,$n),Sn=_s(te,sn),hn=fe({},V),mt=Qe.x-Sn.x+Xt,ut=Qe.y-Sn.y+jt,Wt=rr(mt,ut),er=rr(mt,ut,Ee),pn=_s(B,["t","l"]),ht=_s(te,["t","l"]),Nn=_s(B,["b","r"]),mr=_s(te,["b","r"]),bt=V.overflow||{},Dt=bt.adjustX,mn=bt.adjustY,Pt=bt.shiftX,tr=bt.shiftY,Kr=function(vi){return typeof vi=="boolean"?vi:vi>=0},Wn,Ln,gr,ke;ea();var Z=Kr(mn),pe=sn[0]===$n[0];if(Z&&sn[0]==="t"&&(Ln>At.bottom||p.current.bt)){var _e=ut;pe?_e-=Ie-Fe:_e=pn.y-mr.y-jt;var wt=rr(mt,_e),Gt=rr(mt,_e,Ee);wt>Wt||wt===Wt&&(!Ze||Gt>=er)?(p.current.bt=!0,ut=_e,jt=-jt,hn.points=[Aa(sn,0),Aa($n,0)]):p.current.bt=!1}if(Z&&sn[0]==="b"&&(Wn<At.top||p.current.tb)){var kt=ut;pe?kt+=Ie-Fe:kt=Nn.y-ht.y-jt;var ln=rr(mt,kt),nr=rr(mt,kt,Ee);ln>Wt||ln===Wt&&(!Ze||nr>=er)?(p.current.tb=!0,ut=kt,jt=-jt,hn.points=[Aa(sn,0),Aa($n,0)]):p.current.tb=!1}var vr=Kr(Dt),mi=sn[1]===$n[1];if(vr&&sn[1]==="l"&&(ke>At.right||p.current.rl)){var Ft=mt;mi?Ft-=ye-at:Ft=pn.x-mr.x-Xt;var Zr=rr(Ft,ut),Ii=rr(Ft,ut,Ee);Zr>Wt||Zr===Wt&&(!Ze||Ii>=er)?(p.current.rl=!0,mt=Ft,Xt=-Xt,hn.points=[Aa(sn,1),Aa($n,1)]):p.current.rl=!1}if(vr&&sn[1]==="r"&&(gr<At.left||p.current.lr)){var Xi=mt;mi?Xi+=ye-at:Xi=Nn.x-ht.x-Xt;var lo=rr(Xi,ut),$i=rr(Xi,ut,Ee);lo>Wt||lo===Wt&&(!Ze||$i>=er)?(p.current.lr=!0,mt=Xi,Xt=-Xt,hn.points=[Aa(sn,1),Aa($n,1)]):p.current.lr=!1}ea();var yr=Pt===!0?0:Pt;typeof yr=="number"&&(gr<Ee.left&&(mt-=gr-Ee.left-Xt,B.x+at<Ee.left+yr&&(mt+=B.x-Ee.left+at-yr)),ke>Ee.right&&(mt-=ke-Ee.right-Xt,B.x>Ee.right-yr&&(mt+=B.x-Ee.right+yr)));var gi=tr===!0?0:tr;typeof gi=="number"&&(Wn<Ee.top&&(ut-=Wn-Ee.top-jt,B.y+Fe<Ee.top+gi&&(ut+=B.y-Ee.top+Fe-gi)),Ln>Ee.bottom&&(ut-=Ln-Ee.bottom-jt,B.y>Ee.bottom-gi&&(ut+=B.y-Ee.bottom+gi)));var Qr=te.x+mt,Mi=Qr+ye,ka=te.y+ut,Ta=ka+Ie,co=B.x,Ts=co+at,uo=B.y,Os=uo+Fe,fo=Math.max(Qr,co),Rs=Math.min(Mi,Ts),Ns=(fo+Rs)/2,ho=Ns-Qr,Oa=Math.max(ka,uo),Li=Math.min(Ta,Os),Ps=(Oa+Li)/2,Is=Ps-ka;o==null||o(e,hn);var qr=Ht.right-te.x-(mt+te.width),Ra=Ht.bottom-te.y-(ut+te.height);Yt===1&&(mt=Math.floor(mt),qr=Math.floor(qr)),bn===1&&(ut=Math.floor(ut),Ra=Math.floor(Ra));var Ms={ready:!0,offsetX:mt/Yt,offsetY:ut/bn,offsetR:qr/Yt,offsetB:Ra/bn,arrowX:ho/Yt,arrowY:Is/bn,scaleX:Yt,scaleY:bn,align:hn};d(Ms)}}),v=function(){h.current+=1;var T=h.current;Promise.resolve().then(function(){h.current===T&&b()})},x=function(){d(function(T){return fe(fe({},T),{},{ready:!1})})};return Qn(x,[r]),Qn(function(){t||x()},[t]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,v]}function RD(t,e,n,r,i){Qn(function(){if(t&&e&&n){let h=function(){r(),i()};var a=e,o=n,s=bv(a),c=bv(o),u=lc(o),d=new Set([u].concat(je(s),je(c)));return d.forEach(function(m){m.addEventListener("scroll",h,{passive:!0})}),u.addEventListener("resize",h,{passive:!0}),r(),function(){d.forEach(function(m){m.removeEventListener("scroll",h),u.removeEventListener("resize",h)})}}},[t,e,n])}function ND(t,e,n,r,i,a,o,s){var c=L.useRef(t);c.current=t;var u=L.useRef(!1);L.useEffect(function(){if(e&&r&&(!i||a)){var h=function(){u.current=!1},m=function(C){var w;c.current&&!o(((w=C.composedPath)===null||w===void 0||(w=w.call(C))===null||w===void 0?void 0:w[0])||C.target)&&!u.current&&s(!1)},p=lc(r);p.addEventListener("pointerdown",h,!0),p.addEventListener("mousedown",m,!0),p.addEventListener("contextmenu",m,!0);var y=Xg(n);y&&(y.addEventListener("mousedown",m,!0),y.addEventListener("contextmenu",m,!0));{var b,v,x=n==null||(b=n.getRootNode)===null||b===void 0?void 0:b.call(n),_=(v=r.getRootNode)===null||v===void 0?void 0:v.call(r);ss(x===_,"trigger element and popup element should in same shadow root.")}return function(){p.removeEventListener("pointerdown",h,!0),p.removeEventListener("mousedown",m,!0),p.removeEventListener("contextmenu",m,!0),y&&(y.removeEventListener("mousedown",m,!0),y.removeEventListener("contextmenu",m,!0))}}},[e,n,r,i,a]);function d(){u.current=!0}return d}var PD=["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 ID(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rv,e=L.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=n.children,s=n.action,c=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,h=n.popupVisible,m=n.defaultPopupVisible,p=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,b=n.mouseEnterDelay,v=n.mouseLeaveDelay,x=v===void 0?.1:v,_=n.focusDelay,T=n.blurDelay,C=n.mask,w=n.maskClosable,A=w===void 0?!0:w,k=n.getPopupContainer,R=n.forceRender,I=n.autoDestroy,U=n.destroyPopupOnHide,D=n.popup,z=n.popupClassName,Y=n.popupStyle,j=n.popupPlacement,F=n.builtinPlacements,V=F===void 0?{}:F,G=n.popupAlign,B=n.zIndex,q=n.stretch,W=n.getPopupClassNameFromAlign,K=n.fresh,te=n.alignPoint,ne=n.onPopupClick,ce=n.onPopupAlign,ie=n.arrow,J=n.popupMotion,ue=n.maskMotion,le=n.popupTransitionName,ve=n.popupAnimation,he=n.maskTransitionName,be=n.maskAnimation,ee=n.className,Ie=n.getTriggerDOMNode,ye=Ti(n,PD),Fe=I||U||!1,at=L.useState(!1),Pe=xe(at,2),tt=Pe[0],Ae=Pe[1];Qn(function(){Ae(CD())},[]);var nt=L.useRef({}),Le=L.useContext(gx),Ze=L.useMemo(function(){return{registerSubPopup:function(Ve,Bt){nt.current[Ve]=Bt,Le==null||Le.registerSubPopup(Ve,Bt)}}},[Le]),_t=QC(),Ee=L.useState(null),$e=xe(Ee,2),At=$e[0],Ht=$e[1],Yt=L.useRef(null),bn=fr(function(Oe){Yt.current=Oe,zl(Oe)&&At!==Oe&&Ht(Oe),Le==null||Le.registerSubPopup(_t,Oe)}),dr=L.useState(null),vt=xe(dr,2),yt=vt[0],nn=vt[1],Xt=L.useRef(null),jt=fr(function(Oe){zl(Oe)&&yt!==Oe&&(nn(Oe),Xt.current=Oe)}),wn=L.Children.only(o),$t=(wn==null?void 0:wn.props)||{},Hn={},Ji=fr(function(Oe){var Ve,Bt,cn=yt;return(cn==null?void 0:cn.contains(Oe))||((Ve=Xg(cn))===null||Ve===void 0?void 0:Ve.host)===Oe||Oe===cn||(At==null?void 0:At.contains(Oe))||((Bt=Xg(At))===null||Bt===void 0?void 0:Bt.host)===Oe||Oe===At||Object.values(nt.current).some(function(Kt){return(Kt==null?void 0:Kt.contains(Oe))||Oe===Kt})}),Yr=yx(a,J,ve,le),hr=yx(a,ue,be,he),Pi=L.useState(m||!1),pr=xe(Pi,2),$n=pr[0],sn=pr[1],Qe=h??$n,Sn=fr(function(Oe){h===void 0&&sn(Oe)});Qn(function(){sn(h||!1)},[h]);var hn=L.useRef(Qe);hn.current=Qe;var mt=L.useRef([]);mt.current=[];var ut=fr(function(Oe){var Ve;Sn(Oe),((Ve=mt.current[mt.current.length-1])!==null&&Ve!==void 0?Ve:Qe)!==Oe&&(mt.current.push(Oe),p==null||p(Oe))}),Wt=L.useRef(),er=function(){clearTimeout(Wt.current)},pn=function(Ve){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;er(),Bt===0?ut(Ve):Wt.current=setTimeout(function(){ut(Ve)},Bt*1e3)};L.useEffect(function(){return er},[]);var ht=L.useState(!1),Nn=xe(ht,2),mr=Nn[0],bt=Nn[1];Qn(function(Oe){(!Oe||Qe)&&bt(!0)},[Qe]);var Dt=L.useState(null),mn=xe(Dt,2),Pt=mn[0],tr=mn[1],Kr=L.useState(null),Wn=xe(Kr,2),Ln=Wn[0],gr=Wn[1],ke=function(Ve){gr([Ve.clientX,Ve.clientY])},Z=OD(Qe,At,te&&Ln!==null?Ln:yt,j,V,G,ce),pe=xe(Z,11),_e=pe[0],wt=pe[1],Gt=pe[2],kt=pe[3],ln=pe[4],nr=pe[5],vr=pe[6],mi=pe[7],Ft=pe[8],Zr=pe[9],Ii=pe[10],Xi=AD(tt,c,u,d),lo=xe(Xi,2),$i=lo[0],yr=lo[1],gi=$i.has("click"),Qr=yr.has("click")||yr.has("contextMenu"),Mi=fr(function(){mr||Ii()}),ka=function(){hn.current&&te&&Qr&&pn(!1)};RD(Qe,yt,At,Mi,ka),Qn(function(){Mi()},[Ln,j]),Qn(function(){Qe&&!(V!=null&&V[j])&&Mi()},[JSON.stringify(G)]);var Ta=L.useMemo(function(){var Oe=TD(V,a,Zr,te);return Nt(Oe,W==null?void 0:W(Zr))},[Zr,W,V,a,te]);L.useImperativeHandle(r,function(){return{nativeElement:Xt.current,popupElement:Yt.current,forceAlign:Mi}});var co=L.useState(0),Ts=xe(co,2),uo=Ts[0],Os=Ts[1],fo=L.useState(0),Rs=xe(fo,2),Ns=Rs[0],ho=Rs[1],Oa=function(){if(q&&yt){var Ve=yt.getBoundingClientRect();Os(Ve.width),ho(Ve.height)}},Li=function(){Oa(),Mi()},Ps=function(Ve){bt(!1),Ii(),y==null||y(Ve)},Is=function(){return new Promise(function(Ve){Oa(),tr(function(){return Ve})})};Qn(function(){Pt&&(Ii(),Pt(),tr(null))},[Pt]);function qr(Oe,Ve,Bt,cn){Hn[Oe]=function(Kt){var Fs;cn==null||cn(Kt),pn(Ve,Bt);for(var It=arguments.length,Mt=new Array(It>1?It-1:0),js=1;js<It;js++)Mt[js-1]=arguments[js];(Fs=$t[Oe])===null||Fs===void 0||Fs.call.apply(Fs,[$t,Kt].concat(Mt))}}(gi||Qr)&&(Hn.onClick=function(Oe){var Ve;hn.current&&Qr?pn(!1):!hn.current&&gi&&(ke(Oe),pn(!0));for(var Bt=arguments.length,cn=new Array(Bt>1?Bt-1:0),Kt=1;Kt<Bt;Kt++)cn[Kt-1]=arguments[Kt];(Ve=$t.onClick)===null||Ve===void 0||Ve.call.apply(Ve,[$t,Oe].concat(cn))});var Ra=ND(Qe,Qr,yt,At,C,A,Ji,pn),Ms=$i.has("hover"),rr=yr.has("hover"),ea,po;Ms&&(qr("onMouseEnter",!0,b,function(Oe){ke(Oe)}),qr("onPointerEnter",!0,b,function(Oe){ke(Oe)}),ea=function(Ve){(Qe||mr)&&At!==null&&At!==void 0&&At.contains(Ve.target)&&pn(!0,b)},te&&(Hn.onMouseMove=function(Oe){var Ve;(Ve=$t.onMouseMove)===null||Ve===void 0||Ve.call($t,Oe)})),rr&&(qr("onMouseLeave",!1,x),qr("onPointerLeave",!1,x),po=function(){pn(!1,x)}),$i.has("focus")&&qr("onFocus",!0,_),yr.has("focus")&&qr("onBlur",!1,T),$i.has("contextMenu")&&(Hn.onContextMenu=function(Oe){var Ve;hn.current&&yr.has("contextMenu")?pn(!1):(ke(Oe),pn(!0)),Oe.preventDefault();for(var Bt=arguments.length,cn=new Array(Bt>1?Bt-1:0),Kt=1;Kt<Bt;Kt++)cn[Kt-1]=arguments[Kt];(Ve=$t.onContextMenu)===null||Ve===void 0||Ve.call.apply(Ve,[$t,Oe].concat(cn))}),ee&&(Hn.className=Nt($t.className,ee));var vi=L.useRef(!1);vi.current||(vi.current=R||Qe||mr);var Fi=fe(fe({},$t),Hn),Na={},Ls=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ls.forEach(function(Oe){ye[Oe]&&(Na[Oe]=function(){for(var Ve,Bt=arguments.length,cn=new Array(Bt),Kt=0;Kt<Bt;Kt++)cn[Kt]=arguments[Kt];(Ve=Fi[Oe])===null||Ve===void 0||Ve.call.apply(Ve,[Fi].concat(cn)),ye[Oe].apply(ye,cn)})});var bc=L.cloneElement(wn,fe(fe({},Fi),Na)),wc={x:nr,y:vr},Sc=ie?fe({},ie!==!0?ie:{}):null;return L.createElement(L.Fragment,null,L.createElement(gf,{disabled:!Qe,ref:jt,onResize:Li},L.createElement(mx,{getTriggerDOMNode:Ie},bc)),vi.current&&L.createElement(gx.Provider,{value:Ze},L.createElement(px,{portal:t,ref:bn,prefixCls:a,popup:D,className:Nt(z,Ta),style:Y,target:yt,onMouseEnter:ea,onMouseLeave:po,onPointerEnter:ea,zIndex:B,open:Qe,keepDom:mr,fresh:K,onClick:ne,onPointerDownCapture:Ra,mask:C,motion:Yr,maskMotion:hr,onVisibleChanged:Ps,onPrepare:Is,forceRender:R,autoDestroy:Fe,getPopupContainer:k,align:Zr,arrow:Sc,arrowPos:wc,ready:_e,offsetX:wt,offsetY:Gt,offsetR:kt,offsetB:ln,onAlign:Mi,stretch:q,targetWidth:uo/mi,targetHeight:Ns/Ft})))});return e.displayName="Trigger",e}const MD=ID(rv);function Cx(t){var e=t.children,n=t.prefixCls,r=t.id,i=t.overlayInnerStyle,a=t.bodyClassName,o=t.className,s=t.style;return L.createElement("div",{className:Nt("".concat(n,"-content"),o),style:s},L.createElement("div",{className:Nt("".concat(n,"-inner"),a),id:r,role:"tooltip",style:i},typeof e=="function"?e():e))}var As={shiftX:64,adjustY:1},ks={adjustX:1,shiftY:!0},Wr=[0,0],LD={left:{points:["cr","cl"],overflow:ks,offset:[-4,0],targetOffset:Wr},right:{points:["cl","cr"],overflow:ks,offset:[4,0],targetOffset:Wr},top:{points:["bc","tc"],overflow:As,offset:[0,-4],targetOffset:Wr},bottom:{points:["tc","bc"],overflow:As,offset:[0,4],targetOffset:Wr},topLeft:{points:["bl","tl"],overflow:As,offset:[0,-4],targetOffset:Wr},leftTop:{points:["tr","tl"],overflow:ks,offset:[-4,0],targetOffset:Wr},topRight:{points:["br","tr"],overflow:As,offset:[0,-4],targetOffset:Wr},rightTop:{points:["tl","tr"],overflow:ks,offset:[4,0],targetOffset:Wr},bottomRight:{points:["tr","br"],overflow:As,offset:[0,4],targetOffset:Wr},rightBottom:{points:["bl","br"],overflow:ks,offset:[4,0],targetOffset:Wr},bottomLeft:{points:["tl","bl"],overflow:As,offset:[0,4],targetOffset:Wr},leftBottom:{points:["br","bl"],overflow:ks,offset:[-4,0],targetOffset:Wr}},FD=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],jD=function(e,n){var r=e.overlayClassName,i=e.trigger,a=i===void 0?["hover"]:i,o=e.mouseEnterDelay,s=o===void 0?0:o,c=e.mouseLeaveDelay,u=c===void 0?.1:c,d=e.overlayStyle,h=e.prefixCls,m=h===void 0?"rc-tooltip":h,p=e.children,y=e.onVisibleChange,b=e.afterVisibleChange,v=e.transitionName,x=e.animation,_=e.motion,T=e.placement,C=T===void 0?"right":T,w=e.align,A=w===void 0?{}:w,k=e.destroyTooltipOnHide,R=k===void 0?!1:k,I=e.defaultVisible,U=e.getTooltipContainer,D=e.overlayInnerStyle;e.arrowContent;var z=e.overlay,Y=e.id,j=e.showArrow,F=j===void 0?!0:j,V=e.classNames,G=e.styles,B=Ti(e,FD),q=QC(Y),W=N.useRef(null);N.useImperativeHandle(n,function(){return W.current});var K=fe({},B);"visible"in e&&(K.popupVisible=e.visible);var te=function(){return L.createElement(Cx,{key:"content",prefixCls:m,id:q,bodyClassName:V==null?void 0:V.body,overlayInnerStyle:fe(fe({},D),G==null?void 0:G.body)},z)},ne=function(){var ie=L.Children.only(p),J=(ie==null?void 0:ie.props)||{},ue=fe(fe({},J),{},{"aria-describedby":z?q:null});return L.cloneElement(p,ue)};return L.createElement(MD,_r({popupClassName:Nt(r,V==null?void 0:V.root),prefixCls:m,popup:te,action:a,builtinPlacements:LD,popupPlacement:C,ref:W,popupAlign:A,getPopupContainer:U,onPopupVisibleChange:y,afterPopupVisibleChange:b,popupTransitionName:v,popupAnimation:x,popupMotion:_,defaultPopupVisible:I,autoDestroy:R,mouseLeaveDelay:u,popupStyle:fe(fe({},d),G==null?void 0:G.root),mouseEnterDelay:s,arrow:F},K),ne())};const DD=N.forwardRef(jD);function VD(t){const{sizePopupArrow:e,borderRadiusXS:n,borderRadiusOuter:r}=t,i=e/2,a=0,o=i,s=r*1/Math.sqrt(2),c=i-r*(1-1/Math.sqrt(2)),u=i-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),h=2*i-u,m=d,p=2*i-s,y=c,b=2*i-a,v=o,x=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),T=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`,C=`path('M ${a} ${o} A ${r} ${r} 0 0 0 ${s} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${h} ${m} L ${p} ${y} A ${r} ${r} 0 0 0 ${b} ${v} Z')`;return{arrowShadowWidth:x,arrowPath:C,arrowPolygon:T}}const UD=(t,e,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:c}=t;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:e,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 ${Zn(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},xx=8;function _x(t){const{contentRadius:e,limitVerticalRadius:n}=t,r=e>12?e+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?xx:r}}function Yf(t,e){return t?e:{}}function BD(t,e,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=t,{arrowDistance:s=0,arrowPlacement:c={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"},UD(t,e,i)),{"&:before":{background:e}})]},Yf(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,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% - ${Zn(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Yf(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,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% - ${Zn(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Yf(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},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}})),Yf(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},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 zD(t,e,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},a={};switch(t){case"top":case"bottom":a.shiftX=e.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=e.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 Ax={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"]}},HD={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"]}},WD=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function GD(t){const{arrowWidth:e,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a}=t,o=e/2,s={},c=_x({contentRadius:a,limitVerticalRadius:!0});return Object.keys(Ax).forEach(u=>{const d=r&&HD[u]||Ax[u],h=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(s[u]=h,WD.has(u)&&(h.autoArrow=!1),u){case"top":case"topLeft":case"topRight":h.offset[1]=-o-i;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=o+i;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-o-i;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=o+i;break}if(r)switch(u){case"topLeft":case"bottomLeft":h.offset[0]=-c.arrowOffsetHorizontal-o;break;case"topRight":case"bottomRight":h.offset[0]=c.arrowOffsetHorizontal+o;break;case"leftTop":case"rightTop":h.offset[1]=-c.arrowOffsetHorizontal*2+o;break;case"leftBottom":case"rightBottom":h.offset[1]=c.arrowOffsetHorizontal*2-o;break}h.overflow=zD(u,c,e,n),h.htmlRegion="visibleFirst"}),s}const YD=t=>{const{calc:e,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,boxShadowSecondary:u,paddingSM:d,paddingXS:h,arrowOffsetHorizontal:m,sizePopupArrow:p}=t,y=e(o).add(p).add(m).equal(),b=e(o).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},zg(t)),{position:"absolute",zIndex:s,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:b,minHeight:c,padding:`${Zn(t.calc(d).div(2).equal())} ${Zn(h)}`,color:`var(--ant-tooltip-color, ${i})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:u,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:t.min(o,xx)}},[`${n}-content`]:{position:"relative"}}),Wg(t,(v,{darkColor:x})=>({[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:x},[`${n}-arrow`]:{"--antd-arrow-background-color":x}}}))),{"&-rtl":{direction:"rtl"}})},BD(t,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:t.sizePopupArrow}}]},KD=t=>Object.assign(Object.assign({zIndexPopup:t.zIndexPopupBase+70},_x({contentRadius:t.borderRadius,limitVerticalRadius:!0})),VD(tc(t,{borderRadiusOuter:Math.min(t.borderRadiusOuter,4)}))),kx=(t,e=!0)=>Hg("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:o}=r,s=tc(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o});return[YD(s),gj(r,"zoom-big-fast")]},KD,{resetStyle:!1,injectStyle:e})(t),ZD=Lf.map(t=>`${t}-inverse`);function wv(t,e=!0){return e?[].concat(je(ZD),je(Lf)).includes(t):Lf.includes(t)}function Tx(t,e){const n=wv(e),r=Nt({[`${t}-${e}`]:e&&n}),i={},a={},o=vj(e).toRgb(),c=(.299*o.r+.587*o.g+.114*o.b)/255<.5?"#FFF":"#000";return e&&!n&&(i.background=e,i["--ant-tooltip-color"]=c,a["--antd-arrow-background-color"]=e),{className:r,overlayStyle:i,arrowStyle:a}}const QD=t=>{const{prefixCls:e,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:o}=t,{getPrefixCls:s}=L.useContext(di),c=s("tooltip",e),[u,d,h]=kx(c),m=Tx(c,a),p=m.arrowStyle,y=Object.assign(Object.assign({},o),m.overlayStyle),b=Nt(d,h,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(L.createElement("div",{className:b,style:p},L.createElement("div",{className:`${c}-arrow`}),L.createElement(Cx,Object.assign({},t,{className:d,prefixCls:c,overlayInnerStyle:y}),i)))};var qD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Sv=L.forwardRef((t,e)=>{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:o,color:s,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:m,destroyOnHidden:p,arrow:y=!0,title:b,overlay:v,builtinPlacements:x,arrowPointAtCenter:_=!1,autoAdjustOverflow:T=!0,motion:C,getPopupContainer:w,placement:A="top",mouseEnterDelay:k=.1,mouseLeaveDelay:R=.1,overlayStyle:I,rootClassName:U,overlayClassName:D,styles:z,classNames:Y}=t,j=qD(t,["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"]),F=!!y,[,V]=nc(),{getPopupContainer:G,getPrefixCls:B,direction:q,className:W,style:K,classNames:te,styles:ne}=EL("tooltip"),ce=gs("Tooltip"),ie=L.useRef(null),J=()=>{var vt;(vt=ie.current)===null||vt===void 0||vt.forceAlign()};L.useImperativeHandle(e,()=>{var vt,yt;return{forceAlign:J,forcePopupAlign:()=>{ce.deprecated(!1,"forcePopupAlign","forceAlign"),J()},nativeElement:(vt=ie.current)===null||vt===void 0?void 0:vt.nativeElement,popupElement:(yt=ie.current)===null||yt===void 0?void 0:yt.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(([vt,yt])=>{ce.deprecated(!(vt in t),vt,yt)}),ce(!m||typeof m=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),ce(!y||typeof y=="boolean"||!("arrowPointAtCenter"in y),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead.");const[ue,le]=eC(!1,{value:(n=t.open)!==null&&n!==void 0?n:t.visible,defaultValue:(r=t.defaultOpen)!==null&&r!==void 0?r:t.defaultVisible}),ve=!b&&!v&&b!==0,he=vt=>{var yt,nn;le(ve?!1:vt),ve||((yt=t.onOpenChange)===null||yt===void 0||yt.call(t,vt),(nn=t.onVisibleChange)===null||nn===void 0||nn.call(t,vt))},be=L.useMemo(()=>{var vt,yt;let nn=_;return typeof y=="object"&&(nn=(yt=(vt=y.pointAtCenter)!==null&&vt!==void 0?vt:y.arrowPointAtCenter)!==null&&yt!==void 0?yt:_),x||GD({arrowPointAtCenter:nn,autoAdjustOverflow:T,arrowWidth:F?V.sizePopupArrow:0,borderRadius:V.borderRadius,offset:V.marginXXS})},[_,y,x,V]),ee=L.useMemo(()=>b===0?b:v||b||"",[v,b]),Ie=L.createElement(ED,{space:!0},typeof ee=="function"?ee():ee),ye=B("tooltip",i),Fe=B(),at=t["data-popover-inject"];let Pe=ue;!("open"in t)&&!("visible"in t)&&ve&&(Pe=!1);const tt=L.isValidElement(u)&&!TF(u)?u:L.createElement("span",null,u),Ae=tt.props,nt=!Ae.className||typeof Ae.className=="string"?Nt(Ae.className,a||`${ye}-open`):Ae.className,[Le,Ze,_t]=kx(ye,!at),Ee=Tx(ye,s),$e=Ee.arrowStyle,At=Nt(D,{[`${ye}-rtl`]:q==="rtl"},Ee.className,U,Ze,_t,W,te.root,Y==null?void 0:Y.root),Ht=Nt(te.body,Y==null?void 0:Y.body),[Yt,bn]=IF("Tooltip",j.zIndex),dr=L.createElement(DD,Object.assign({},j,{zIndex:Yt,showArrow:F,placement:A,mouseEnterDelay:k,mouseLeaveDelay:R,prefixCls:ye,classNames:{root:At,body:Ht},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$e),ne.root),K),I),z==null?void 0:z.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},ne.body),c),z==null?void 0:z.body),Ee.overlayStyle)},getTooltipContainer:w||o||G,ref:ie,builtinPlacements:be,overlay:Ie,visible:Pe,onVisibleChange:he,afterVisibleChange:d??h,arrowContent:L.createElement("span",{className:`${ye}-arrow-content`}),motion:{motionName:FF(Fe,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:p??!!m}),Pe?$g(tt,{className:nt}):tt);return Le(L.createElement(ev.Provider,{value:bn},dr))});Sv.displayName="Tooltip",Sv._InternalPanelDoNotUseOrYouWillBeFired=QD;const JD=new On("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),XD=new On("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),$D=new On("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),eV=new On("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),tV=new On("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),nV=new On("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),rV=t=>{const{componentCls:e,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:a,textFontSizeSM:o,statusSize:s,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:h,marginXS:m,calc:p}=t,y=`${r}-scroll-number`,b=Wg(t,(v,{darkColor:x})=>({[`&${e} ${e}-color-${v}`]:{background:x,[`&:not(${e}-count)`]:{color:x},"a:hover &":{background:x}}}));return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},zg(t)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${e}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:t.indicatorZIndex,minWidth:d,height:d,color:t.badgeTextColor,fontWeight:u,fontSize:a,lineHeight:Zn(d),whiteSpace:"nowrap",textAlign:"center",background:t.badgeColor,borderRadius:p(d).div(2).equal(),boxShadow:`0 0 0 ${Zn(i)} ${t.badgeShadowColor}`,transition:`background ${t.motionDurationMid}`,a:{color:t.badgeTextColor},"a:hover":{color:t.badgeTextColor},"a:hover &":{background:t.badgeColorHover}},[`${e}-count-sm`]:{minWidth:h,height:h,fontSize:o,lineHeight:Zn(h),borderRadius:p(h).div(2).equal()},[`${e}-multiple-words`]:{padding:`0 ${Zn(t.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${e}-dot`]:{zIndex:t.indicatorZIndex,width:c,minWidth:c,height:c,background:t.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Zn(i)} ${t.badgeShadowColor}`},[`${e}-count, ${e}-dot, ${y}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:nV,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${e}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${e}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${e}-status-success`]:{backgroundColor:t.colorSuccess},[`${e}-status-processing`]:{overflow:"visible",color:t.colorInfo,backgroundColor:t.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:JD,animationDuration:t.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${e}-status-default`]:{backgroundColor:t.colorTextPlaceholder},[`${e}-status-error`]:{backgroundColor:t.colorError},[`${e}-status-warning`]:{backgroundColor:t.colorWarning},[`${e}-status-text`]:{marginInlineStart:m,color:t.colorText,fontSize:t.fontSize}}}),b),{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:XD,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`${e}-zoom-leave`]:{animationName:$D,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`&${e}-not-a-wrapper`]:{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:eV,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`${e}-zoom-leave`]:{animationName:tV,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`&:not(${e}-status)`]:{verticalAlign:"middle"},[`${y}-custom-component, ${e}-count`]:{transform:"none"},[`${y}-custom-component, ${y}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[y]:{overflow:"hidden",transition:`all ${t.motionDurationMid} ${t.motionEaseOutBack}`,[`${y}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${t.motionDurationSlow} ${t.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${y}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${y}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${e}-count, ${e}-dot, ${y}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Ox=t=>{const{fontHeight:e,lineWidth:n,marginXS:r,colorBorderBg:i}=t,a=e,o=n,s=t.colorTextLightSolid,c=t.colorError,u=t.colorErrorHover;return tc(t,{badgeFontHeight:a,badgeShadowSize:o,badgeTextColor:s,badgeColor:c,badgeColorHover:u,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Rx=t=>{const{fontSize:e,lineHeight:n,fontSizeSM:r,lineWidth:i}=t;return{indicatorZIndex:"auto",indicatorHeight:Math.round(e*n)-2*i,indicatorHeightSM:e,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},iV=Hg("Badge",t=>{const e=Ox(t);return rV(e)},Rx),aV=t=>{const{antCls:e,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:a}=t,o=`${e}-ribbon`,s=`${e}-ribbon-wrapper`,c=Wg(t,(u,{darkColor:d})=>({[`&${o}-color-${u}`]:{background:d,color:d}}));return{[s]:{position:"relative"},[o]:Object.assign(Object.assign(Object.assign(Object.assign({},zg(t)),{position:"absolute",top:r,padding:`0 ${Zn(t.paddingXS)}`,color:t.colorPrimary,lineHeight:Zn(n),whiteSpace:"nowrap",backgroundColor:t.colorPrimary,borderRadius:t.borderRadiusSM,[`${o}-text`]:{color:t.badgeTextColor},[`${o}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${Zn(a(i).div(2).equal())} solid`,transform:t.badgeRibbonCornerTransform,transformOrigin:"top",filter:t.badgeRibbonCornerFilter}}),c),{[`&${o}-placement-end`]:{insetInlineEnd:a(i).mul(-1).equal(),borderEndEndRadius:0,[`${o}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${o}-placement-start`]:{insetInlineStart:a(i).mul(-1).equal(),borderEndStartRadius:0,[`${o}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},oV=Hg(["Badge","Ribbon"],t=>{const e=Ox(t);return aV(e)},Rx),Nx=t=>{const{className:e,prefixCls:n,style:r,color:i,children:a,text:o,placement:s="end",rootClassName:c}=t,{getPrefixCls:u,direction:d}=L.useContext(di),h=u("ribbon",n),m=`${h}-wrapper`,[p,y,b]=oV(h,m),v=wv(i,!1),x=Nt(h,`${h}-placement-${s}`,{[`${h}-rtl`]:d==="rtl",[`${h}-color-${i}`]:v},e),_={},T={};return i&&!v&&(_.background=i,T.color=i),p(L.createElement("div",{className:Nt(m,c,y,b)},a,L.createElement("div",{className:Nt(x,y),style:Object.assign(Object.assign({},_),r)},L.createElement("span",{className:`${h}-text`},o),L.createElement("div",{className:`${h}-corner`,style:T}))))};Nx.displayName="Ribbon";const Px=t=>{const{prefixCls:e,value:n,current:r,offset:i=0}=t;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),L.createElement("span",{style:a,className:Nt(`${e}-only-unit`,{current:r})},n)};function sV(t,e,n){let r=t,i=0;for(;(r+10)%10!==e;)r+=n,i+=n;return i}const lV=t=>{const{prefixCls:e,count:n,value:r}=t,i=Number(r),a=Math.abs(n),[o,s]=L.useState(i),[c,u]=L.useState(a),d=()=>{s(i),u(a)};L.useEffect(()=>{const p=setTimeout(d,1e3);return()=>clearTimeout(p)},[i]);let h,m;if(o===i||Number.isNaN(i)||Number.isNaN(o))h=[L.createElement(Px,Object.assign({},t,{key:i,current:!0}))],m={transition:"none"};else{h=[];const p=i+10,y=[];for(let _=i;_<=p;_+=1)y.push(_);const b=c<a?1:-1,v=y.findIndex(_=>_%10===o);h=(b<0?y.slice(0,v+1):y.slice(v)).map((_,T)=>{const C=_%10;return L.createElement(Px,Object.assign({},t,{key:_,value:C,offset:b<0?T-v:T,current:T===v}))}),m={transform:`translateY(${-sV(o,i,b)}00%)`}}return L.createElement("span",{className:`${e}-only`,style:m,onTransitionEnd:d},h)};var cV=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const uV=L.forwardRef((t,e)=>{const{prefixCls:n,count:r,className:i,motionClassName:a,style:o,title:s,show:c,component:u="sup",children:d}=t,h=cV(t,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=L.useContext(di),p=m("scroll-number",n),y=Object.assign(Object.assign({},h),{"data-show":c,style:o,className:Nt(p,i,a),title:s});let b=r;if(r&&Number(r)%1===0){const v=String(r).split("");b=L.createElement("bdi",null,v.map((x,_)=>L.createElement(lV,{prefixCls:p,count:Number(r),value:x,key:v.length-_})))}return o!=null&&o.borderColor&&(y.style=Object.assign(Object.assign({},o),{boxShadow:`0 0 0 1px ${o.borderColor} inset`})),d?$g(d,v=>({className:Nt(`${p}-custom-component`,v==null?void 0:v.className,a)})):L.createElement(u,Object.assign({},y,{ref:e}),b)});var fV=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Ev=L.forwardRef((t,e)=>{var n,r,i,a,o;const{prefixCls:s,scrollNumberPrefixCls:c,children:u,status:d,text:h,color:m,count:p=null,overflowCount:y=99,dot:b=!1,size:v="default",title:x,offset:_,style:T,className:C,rootClassName:w,classNames:A,styles:k,showZero:R=!1}=t,I=fV(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:U,direction:D,badge:z}=L.useContext(di),Y=U("badge",s),[j,F,V]=iV(Y),G=p>y?`${y}+`:p,B=G==="0"||G===0||h==="0"||h===0,q=p===null||B&&!R,W=(d!=null||m!=null)&&q,K=d!=null||!B,te=b&&!B,ne=te?"":G,ce=N.useMemo(()=>((ne==null||ne==="")&&(h==null||h==="")||B&&!R)&&!te,[ne,B,R,te,h]),ie=N.useRef(p);ce||(ie.current=p);const J=ie.current,ue=N.useRef(ne);ce||(ue.current=ne);const le=ue.current,ve=N.useRef(te);ce||(ve.current=te);const he=N.useMemo(()=>{if(!_)return Object.assign(Object.assign({},z==null?void 0:z.style),T);const Ae={marginTop:_[1]};return D==="rtl"?Ae.left=Number.parseInt(_[0],10):Ae.right=-Number.parseInt(_[0],10),Object.assign(Object.assign(Object.assign({},Ae),z==null?void 0:z.style),T)},[D,_,T,z==null?void 0:z.style]),be=x??(typeof J=="string"||typeof J=="number"?J:void 0),ee=!ce&&(h===0?R:!!h&&h!==!0),Ie=ee?L.createElement("span",{className:`${Y}-status-text`},h):null,ye=!J||typeof J!="object"?void 0:$g(J,Ae=>({style:Object.assign(Object.assign({},he),Ae.style)})),Fe=wv(m,!1),at=Nt(A==null?void 0:A.indicator,(n=z==null?void 0:z.classNames)===null||n===void 0?void 0:n.indicator,{[`${Y}-status-dot`]:W,[`${Y}-status-${d}`]:!!d,[`${Y}-color-${m}`]:Fe}),Pe={};m&&!Fe&&(Pe.color=m,Pe.background=m);const tt=Nt(Y,{[`${Y}-status`]:W,[`${Y}-not-a-wrapper`]:!u,[`${Y}-rtl`]:D==="rtl"},C,w,z==null?void 0:z.className,(r=z==null?void 0:z.classNames)===null||r===void 0?void 0:r.root,A==null?void 0:A.root,F,V);if(!u&&W&&(h||K||!q)){const Ae=he.color;return j(L.createElement("span",Object.assign({},I,{className:tt,style:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.root),(i=z==null?void 0:z.styles)===null||i===void 0?void 0:i.root),he)}),L.createElement("span",{className:at,style:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.indicator),(a=z==null?void 0:z.styles)===null||a===void 0?void 0:a.indicator),Pe)}),ee&&L.createElement("span",{style:{color:Ae},className:`${Y}-status-text`},h)))}return j(L.createElement("span",Object.assign({ref:e},I,{className:tt,style:Object.assign(Object.assign({},(o=z==null?void 0:z.styles)===null||o===void 0?void 0:o.root),k==null?void 0:k.root)}),u,L.createElement(Bf,{visible:!ce,motionName:`${Y}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Ae})=>{var nt,Le;const Ze=U("scroll-number",c),_t=ve.current,Ee=Nt(A==null?void 0:A.indicator,(nt=z==null?void 0:z.classNames)===null||nt===void 0?void 0:nt.indicator,{[`${Y}-dot`]:_t,[`${Y}-count`]:!_t,[`${Y}-count-sm`]:v==="small",[`${Y}-multiple-words`]:!_t&&le&&le.toString().length>1,[`${Y}-status-${d}`]:!!d,[`${Y}-color-${m}`]:Fe});let $e=Object.assign(Object.assign(Object.assign({},k==null?void 0:k.indicator),(Le=z==null?void 0:z.styles)===null||Le===void 0?void 0:Le.indicator),he);return m&&!Fe&&($e=$e||{},$e.background=m),L.createElement(uV,{prefixCls:Ze,show:!ce,motionClassName:Ae,className:Ee,count:le,title:be,style:$e,key:"scrollNumber"},ye)}),Ie))});Ev.Ribbon=Nx,Ev.displayName="Badge";var Cv={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_CONVERSATIONS_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getConversationsForPortal"},arguments:[{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:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"org_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_conversation_activity"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_platform_reply"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_customer_reply"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{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:"last_name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"analytics"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"seen_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"delivered_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"created_at"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"resolved_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"organization_brand"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"org_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sub_domain"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_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:"visibility"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"setting"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"icon"},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:"visibility"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"assignee"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},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:"visibility"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"type"},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:1204}};Cv.loc.source={body:`query GET_CONVERSATIONS_FOR_PORTAL($optionData: OptionDataType!) {
283
284
  getConversationsForPortal(optionData: $optionData) {
284
285
  data {
285
286
  id
@@ -435,7 +436,7 @@ html body {
435
436
  status
436
437
  }
437
438
  }
438
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Qf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Qf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Qf(r,e)}),t.definitions&&t.definitions.forEach(function(r){Qf(r,e)})}var Tv={};(function(){kv.definitions.forEach(function(e){if(e.name){var n=new Set;Qf(e,n),Tv[e.name.value]=n}})})();function Lx(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function gV(t,e){var n={kind:t.kind,definitions:[Lx(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=Tv[e]||new Set,i=new Set,a=new Set;for(r.forEach(function(s){a.add(s)});a.size>0;){var o=a;a=new Set,o.forEach(function(s){if(!i.has(s)){i.add(s);var c=Tv[s]||new Set;c.forEach(function(u){a.add(u)})}})}return i.forEach(function(s){var c=Lx(t,s);c&&n.definitions.push(c)}),n}const Fx=gV(kv,"UPDATE_CONVERSATION_ACTIVITY_ANALYTICS"),vV="data:audio/mpeg;base64,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MvFiOUnxslAlHelMQU1FMy4xMDBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV",jx=()=>{new Audio(vV).play().catch(e=>console.log("Audio play failed:",e))},Dx=N.createContext(null),yV=({userData:t,children:e})=>{const n=jr.get("widget_isMute")==="true",[r,i]=N.useState([]),[a,o]=N.useState(null),[s,c]=N.useState({}),[u,d]=N.useState({initialLoading:!0,fetchMoreLoading:!0}),[h,m]=N.useState({filtered_rows:0,total_rows:1}),[p,y]=N.useState(!1),[b,v]=N.useState({limit:50,offset:0,order:[["created_at","desc"]]}),{offset:x}=b,[_]=Ya(hV,{skip:!(t!=null&&t.isAuthenticated),errorPolicy:"all",fetchPolicy:"no-cache"}),T=async()=>{if(!(t!=null&&t.isAuthenticated))return;const{data:R,error:I}=await _({variables:{optionData:b}});if(R!=null&&R.getConversationsForPortal){const U=R.getConversationsForPortal;x>0?(i(D=>[...D,...(U==null?void 0:U.data)||[]]),m((U==null?void 0:U.meta_data)||{})):(i((U==null?void 0:U.data)||[]),m((U==null?void 0:U.meta_data)||{})),d({initialLoading:!1,fetchMoreLoading:!1})}I&&(d({initialLoading:!1,fetchMoreLoading:!1}),console.error(I))},[C]=ma(Fx),w=async R=>{try{C({variables:{inputData:R}})}catch(I){console.log(I)}};C2(mV,{skip:!(t!=null&&t.isAuthenticated),errorPolicy:"all",fetchPolicy:"no-cache",onData:({data:R})=>{var F,V;const I=(F=R==null?void 0:R.data)==null?void 0:F.conversationRealtimeListUpdated;if(!I)return;const{status:U,conversation:D}=I,{id:z,last_conversation_activity:Y}=D||{},j=Y==null?void 0:Y.analytics;z&&(U==="conversation_created"&&i(G=>[D,...G]),U==="conversation_updated"&&z!==a&&(i(G=>{var te;const B=G.find(ne=>ne.id===z),q=G.filter(ne=>ne.id!==z),W=((te=B==null?void 0:B.last_conversation_activity)==null?void 0:te.id)===(Y==null?void 0:Y.id);return!!z&&!n&&!(Y!=null&&Y.is_customer_reply)&&!W&&z!==a&&jx(),[D,...q]}),Y!=null&&Y.id&&((V=j[0])==null?void 0:V.status)==="sent"&&w({delivered_activity_ids:[Y==null?void 0:Y.id]})),(I==null?void 0:I.status)==="conversation_deleted"&&i(G=>G.filter(B=>B.id!==D.id)))},onError:console.error}),N.useEffect(()=>{t!=null&&t.isAuthenticated&&!a?(y(!0),T()):d({initialLoading:!1,fetchMoreLoading:!1})},[t==null?void 0:t.isAuthenticated,a]),N.useEffect(()=>{x>0&&T()},[b]);const A=N.useMemo(()=>Ne.reduce(r,(R,I)=>{var z;const{analytics:U,is_customer_reply:D}=(I==null?void 0:I.last_conversation_activity)||{};return!D&&Ne.size(U)>0&&((z=U==null?void 0:U[0])==null?void 0:z.status)!=="seen"?R+1:R},0),[r]),k=N.useMemo(()=>({conversationsData:r,setConversationsData:i,loadingStates:u,getConversationsForPortal:T,isChatHistory:p,setIsChatHistory:y,optionData:b,setOptionData:v,metaData:h,setLoadingStates:d,setOrgBrandSetting:c,orgBrandSetting:s,setCurrentConversationID:o,currentConversationID:a,messageListUnreadCount:A,handleUpdateConversationActivityAnalytics:w}),[r,u,_,p,b,h,d,c,s,o,a,A]);return S.jsx(Dx.Provider,{value:k,children:e})},qi=()=>N.useContext(Dx);var Ov={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:"user"},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:"analytics"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"emails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"is_channel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},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:"title"},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:898}};Ov.loc.source={body:`query GET_CONVERSATION_ACTIVITIES_FOR_PORTAL(
439
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Qf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Qf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Qf(r,e)}),t.definitions&&t.definitions.forEach(function(r){Qf(r,e)})}var Tv={};(function(){kv.definitions.forEach(function(e){if(e.name){var n=new Set;Qf(e,n),Tv[e.name.value]=n}})})();function Lx(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function gV(t,e){var n={kind:t.kind,definitions:[Lx(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=Tv[e]||new Set,i=new Set,a=new Set;for(r.forEach(function(s){a.add(s)});a.size>0;){var o=a;a=new Set,o.forEach(function(s){if(!i.has(s)){i.add(s);var c=Tv[s]||new Set;c.forEach(function(u){a.add(u)})}})}return i.forEach(function(s){var c=Lx(t,s);c&&n.definitions.push(c)}),n}const Fx=gV(kv,"UPDATE_CONVERSATION_ACTIVITY_ANALYTICS"),vV="data:audio/mpeg;base64,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MvFiOUnxslAlHelMQU1FMy4xMDBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV",jx=()=>{new Audio(vV).play().catch(e=>console.log("Audio play failed:",e))},Dx=N.createContext(null),yV=({userData:t,children:e})=>{const n=jr.get("widget_isMute")==="true",[r,i]=N.useState([]),[a,o]=N.useState(null),[s,c]=N.useState({}),[u,d]=N.useState({initialLoading:!0,fetchMoreLoading:!0}),[h,m]=N.useState({filtered_rows:0,total_rows:1}),[p,y]=N.useState(!1),[b,v]=N.useState({limit:50,offset:0,order:[["created_at","desc"]]}),{offset:x}=b,[_]=Ka(hV,{skip:!(t!=null&&t.isAuthenticated),errorPolicy:"all",fetchPolicy:"no-cache"}),T=async()=>{if(!(t!=null&&t.isAuthenticated))return;const{data:R,error:I}=await _({variables:{optionData:b}});if(R!=null&&R.getConversationsForPortal){const U=R.getConversationsForPortal;x>0?(i(D=>[...D,...(U==null?void 0:U.data)||[]]),m((U==null?void 0:U.meta_data)||{})):(i((U==null?void 0:U.data)||[]),m((U==null?void 0:U.meta_data)||{})),d({initialLoading:!1,fetchMoreLoading:!1})}I&&(d({initialLoading:!1,fetchMoreLoading:!1}),console.error(I))},[C]=ma(Fx),w=async R=>{try{C({variables:{inputData:R}})}catch(I){console.log(I)}};C2(mV,{skip:!(t!=null&&t.isAuthenticated),errorPolicy:"all",fetchPolicy:"no-cache",onData:({data:R})=>{var F,V;const I=(F=R==null?void 0:R.data)==null?void 0:F.conversationRealtimeListUpdated;if(!I)return;const{status:U,conversation:D}=I,{id:z,last_conversation_activity:Y}=D||{},j=Y==null?void 0:Y.analytics;z&&(U==="conversation_created"&&i(G=>[D,...G]),U==="conversation_updated"&&z!==a&&(i(G=>{var te;const B=G.find(ne=>ne.id===z),q=G.filter(ne=>ne.id!==z),W=((te=B==null?void 0:B.last_conversation_activity)==null?void 0:te.id)===(Y==null?void 0:Y.id);return!!z&&!n&&!(Y!=null&&Y.is_customer_reply)&&!W&&z!==a&&jx(),[D,...q]}),Y!=null&&Y.id&&((V=j[0])==null?void 0:V.status)==="sent"&&w({delivered_activity_ids:[Y==null?void 0:Y.id]})),(I==null?void 0:I.status)==="conversation_deleted"&&i(G=>G.filter(B=>B.id!==D.id)))},onError:console.error}),N.useEffect(()=>{t!=null&&t.isAuthenticated&&!a?(y(!0),T()):d({initialLoading:!1,fetchMoreLoading:!1})},[t==null?void 0:t.isAuthenticated,a]),N.useEffect(()=>{x>0&&T()},[b]);const A=N.useMemo(()=>Ne.reduce(r,(R,I)=>{var z;const{analytics:U,is_customer_reply:D}=(I==null?void 0:I.last_conversation_activity)||{};return!D&&Ne.size(U)>0&&((z=U==null?void 0:U[0])==null?void 0:z.status)!=="seen"?R+1:R},0),[r]),k=N.useMemo(()=>({conversationsData:r,setConversationsData:i,loadingStates:u,getConversationsForPortal:T,isChatHistory:p,setIsChatHistory:y,optionData:b,setOptionData:v,metaData:h,setLoadingStates:d,setOrgBrandSetting:c,orgBrandSetting:s,setCurrentConversationID:o,currentConversationID:a,messageListUnreadCount:A,handleUpdateConversationActivityAnalytics:w}),[r,u,_,p,b,h,d,c,s,o,a,A]);return S.jsx(Dx.Provider,{value:k,children:e})},qi=()=>N.useContext(Dx);var Ov={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:"user"},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:"analytics"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"emails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"is_channel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},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:"title"},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:898}};Ov.loc.source={body:`query GET_CONVERSATION_ACTIVITIES_FOR_PORTAL(
439
440
  $queryData: ConversationActivitiesForPortalQueryInputType!
440
441
  $optionData: OptionDataType
441
442
  ) {
@@ -563,12 +564,12 @@ html body {
563
564
  }
564
565
  }
565
566
  }
566
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Xf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Xf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Xf(r,e)}),t.definitions&&t.definitions.forEach(function(r){Xf(r,e)})}var Mv={};(function(){Iv.definitions.forEach(function(e){if(e.name){var n=new Set;Xf(e,n),Mv[e.name.value]=n}})})();function Bx(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function CV(t,e){var n={kind:t.kind,definitions:[Bx(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=Mv[e]||new Set,i=new Set,a=new Set;for(r.forEach(function(s){a.add(s)});a.size>0;){var o=a;a=new Set,o.forEach(function(s){if(!i.has(s)){i.add(s);var c=Mv[s]||new Set;c.forEach(function(u){a.add(u)})}})}return i.forEach(function(s){var c=Bx(t,s);c&&n.definitions.push(c)}),n}const xV=CV(Iv,"CONVERSATION_ACTIVITY_REALTIME_STATUS_UPDATED"),zx=N.createContext(null),_V=({children:t})=>{const{currentConversationID:e,setCurrentConversationID:n}=qi(),r=jr.get("easydesk_chat_widget_conversation_id"),i=e||r,a=jr.get("widget_isMute")==="true",o=N.useRef(!0),s=N.useRef(null),c={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:[]}},[u,d]=N.useState(!1),[h,m]=N.useState({}),[p,y]=N.useState(c.conversationState),[b,v]=N.useState(c.inputFieldState),[x,{loading:_}]=Ya(wV,{errorPolicy:"all",fetchPolicy:"no-cache"}),T=async D=>{const{data:z,error:Y}=await x(D);if(z!=null&&z.getConversationActivitiesForPortal){const j=z.getConversationActivitiesForPortal,F=(j==null?void 0:j.data.reverse())||[];y(V=>{var G;return((G=V==null?void 0:V.optionData)==null?void 0:G.offset)===0?{...V,messages:F,metaData:j==null?void 0:j.meta_data}:{...V,messages:[...V.messages,...F],metaData:j==null?void 0:j.meta_data}})}Y&&console.error(Y)},[C,{loading:w}]=Ya(EV,{errorPolicy:"all",fetchPolicy:"no-cache"}),A=async D=>{var z,Y;try{const{data:j}=await C(D);if(j!=null&&j.getAConversationForPortal){const F=j.getAConversationForPortal;m(F),v({contact_person_name:(z=F==null?void 0:F.contact)==null?void 0:z.person_name,contact_person_email:(Y=F==null?void 0:F.contact)==null?void 0:Y.person_email}),T({variables:{queryData:{conversation_id:i},optionData:{order:[["created_at","desc"]]}}})}}catch(j){jr.remove("easydesk_chat_widget_conversation_id"),n(null),console.error(j)}},[k]=ma(Fx),R=async D=>{try{const{data:z}=await k({variables:{inputData:D}});Ne.size(z==null?void 0:z.updateConversationActivityAnalytics)&&(D!=null&&D.seen_activity_ids)&&y(Y=>{var j;return{...Y,messages:(j=Y==null?void 0:Y.messages)==null?void 0:j.map(F=>{var V,G;return(V=D==null?void 0:D.seen_activity_ids)!=null&&V.includes(F==null?void 0:F.id)?{...F,analytics:(G=F==null?void 0:F.analytics)==null?void 0:G.map(B=>({...B,status:"seen"}))}:F})}})}catch(z){console.log(z)}};C2(xV,{errorPolicy:"all",fetchPolicy:"no-cache",skip:!i,variables:{queryData:{conversation_id:i}},onData:({data:D})=>{var F,V,G;const z=(F=D==null?void 0:D.data)==null?void 0:F.conversationActivityRealtimeStatusUpdated;z!=null&&z.is_conversation_deleted&&(jr.remove("easydesk_chat_widget_conversation_id"),n(null),y(c.conversationState),d(!1));const Y=z==null?void 0:z.conversation_activity,j=((V=Y==null?void 0:Y.log)==null?void 0:V.new_value)||"";["spam","resolved","closed","clean"].includes(j)&&m({status:j,is_spam:j==="spam"}),Y!=null&&Y.id&&(y(B=>({...B,messages:[...((B==null?void 0:B.messages)||[]).filter(q=>(q==null?void 0:q.id)!==(Y==null?void 0:Y.id)),Y]})),o.current&&(o.current=!1),!a&&!Y.is_customer_reply&&!o.current&&s.current!==Y.id&&(jx(),s.current=Y.id)),Y!=null&&Y.id&&((G=Y==null?void 0:Y.analytics)!=null&&G.some(B=>(B==null?void 0:B.status)==="sent"))&&R({delivered_activity_ids:[Y==null?void 0:Y.id]})},onError:console.error}),N.useEffect(()=>{i&&A({variables:{queryData:{entity_id_or_serial:i}}})},[i]);const I=N.useMemo(()=>Ne.filter(p==null?void 0:p.messages,D=>{var z,Y;return!(D!=null&&D.is_customer_reply)&&Array.isArray(D==null?void 0:D.analytics)&&((z=D==null?void 0:D.analytics)==null?void 0:z.length)>0&&((Y=D.analytics[0])==null?void 0:Y.status)!=="seen"}),[p==null?void 0:p.messages]),U=N.useMemo(()=>({conversationData:h,setConversationData:m,isPopupOpen:u,setConversationState:y,conversationState:p,inputFieldState:b,setInputFieldState:v,getAConversationForPortal:A,isGettingAConversation:w,isGettingConversationActivities:_,getConversationActivitiesForPortal:x,initialStatesData:c,handleUpdateConversationActivityAnalytics:R,unreadMessages:I}),[h,u,p,b,w,_,c,I]);return S.jsx(zx.Provider,{value:U,children:t})},fc=()=>N.useContext(zx),AV=({isPopupOpen:t,handlePopupTrigger:e,orgBrandSetting:n,isAuthenticated:r})=>{const i=c5("(max-width: 768px)"),{brand:a,widget_icon_key:o}=n,{unreadMessages:s}=fc(),{messageListUnreadCount:c}=qi(),u=r?c:Ne.size(s);let d=0;return u>0&&(d=r?u:1),S.jsxs("button",{type:"button",onClick:e,style:{transformOrigin:"center",translate:"50% 50%"},className:`${i&&t?"ed-hidden":""} hover:ed-size-14 ed-fixed ed-bottom-12 ed-right-12 ed-z-[9999999] 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`,"aria-label":"Open/Close Chat Widget",children:[S.jsx("div",{className:"ed-absolute -ed-top-3 -ed-right-0.5",children:S.jsx(Ev,{count:d})}),S.jsxs("div",{className:"ed-relative ed-w-8 ed-h-8 ed-flex ed-items-center ed-justify-center",children:[S.jsx("div",{className:`ed-absolute ed-transition-all ed-duration-300 ${t?"ed-opacity-100 ed-scale-100 ed-rotate-[360deg]":"ed-opacity-0 ed-scale-0 ed-rotate-0"}`,children:S.jsx(Zo,{className:"ed-size-7 ed-text-white"})}),S.jsx("div",{className:`ed-absolute ed-transition-all ed-duration-300 ${t?"ed-opacity-0 ed-scale-0 ed-rotate-[360deg]":"ed-opacity-100 ed-scale-100 ed-rotate-0"}`,children:o?S.jsx(ki,{alt:`${a==null?void 0:a.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:o,defaultImageName:qa(a==null?void 0:a.name)}):S.jsx(XN,{height:28,width:28})})]})]})},kV=({activeTab:t,handleTabChange:e,hasLiveChat:n,orgBrandSetting:r={}})=>{const{t:i}=ns(),{remove_app_branding:a,is_knowledge_base_enabled:o}=r,s=[{id:1,key:"messages",label:"Messages",icon:tP},{id:2,key:"knowledge_base",label:"Knowledge base",icon:nP}],c=N.useMemo(()=>o&&n,[o,n]);return S.jsxs("div",{className:`${c&&"ed-shadow-[0_-8px_10px_rgba(0,0,0,0.02)] ed-pt-2.5"} 'ed-h-max'`,children:[o&&n&&S.jsx("div",{className:"ed-grid ed-grid-cols-2",children:s.map(u=>{const d=t===u.key;return S.jsxs("button",{type:"button",onClick:()=>e(u.key),className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:[S.jsx(u.icon,{isActive:d}),S.jsx("h3",{className:`ed-text-14 ed-font-semibold ${d?"ed-text-brand":"ed-text-border-regular"} ed-inline-block`,children:u.label})]},u.id)})}),!a&&S.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:[i("widget.label.powerd_by")," ",S.jsx(xS,{href:"https://easydesk.app/",target:"_blank",className:"ed-text-14 ed-font-semibold ed-text-border-regular",children:i("widget.label.easydesk")})]})]})},$f=({children:t,content:e,position:n="top",delay:r=200,arrow:i=!0,maxWidth:a=250,className:o="",disabled:s=!1,theme:c="light"})=>{const[u,d]=N.useState(!1),[h,m]=N.useState({top:0,left:0}),p=N.useRef(null),y=N.useRef(null),b=N.useRef(null),v=()=>{if(!p.current||!y.current||!u)return;const w=p.current.getBoundingClientRect(),A=y.current.getBoundingClientRect();let k=0,R=0;switch(n){case"top":k=w.top-A.height-8,R=w.left+(w.width-A.width)/2;break;case"bottom":k=w.bottom+8,R=w.left+(w.width-A.width)/2;break;case"left":k=w.top+(w.height-A.height)/2,R=w.left-A.width-8;break;case"right":k=w.top+(w.height-A.height)/2,R=w.right+8;break}const I=10;k=Math.max(I,Math.min(k,window.innerHeight-A.height-I)),R=Math.max(I,Math.min(R,window.innerWidth-A.width-I)),m({top:k,left:R})},x=()=>{s||(b.current=setTimeout(()=>{d(!0)},r))},_=()=>{b.current&&clearTimeout(b.current),d(!1)};N.useEffect(()=>{u&&v()},[u]),N.useEffect(()=>{if(u){const w=()=>v();return window.addEventListener("scroll",w,!0),window.addEventListener("resize",w),()=>{window.removeEventListener("scroll",w,!0),window.removeEventListener("resize",w)}}return()=>{}},[u]);const T={dark:"ed-bg-gray-900 ed-text-white",light:"ed-bg-white ed-text-gray-900 ed-border ed-border-gray-200",custom:""},C={top:"ed-bottom-[-4px] ed-left-1/2 ed--translate-x-1/2 ed-border-t-gray-900 ed-border-x-transparent ed-border-b-transparent",bottom:"ed-top-[-4px] ed-left-1/2 ed--translate-x-1/2 ed-border-b-gray-900 ed-border-x-transparent ed-border-t-transparent",left:"ed-right-[-4px] ed-top-1/2 ed--translate-y-1/2 ed-border-l-gray-900 ed-border-y-transparent ed-border-r-transparent",right:"ed-left-[-4px] ed-top-1/2 ed--translate-y-1/2 ed-border-r-gray-900 ed-border-y-transparent ed-border-l-transparent"};return c==="light"&&(C.top=C.top.replace("gray-900","white"),C.bottom=C.bottom.replace("gray-900","white"),C.left=C.left.replace("gray-900","white"),C.right=C.right.replace("gray-900","white")),S.jsxs(S.Fragment,{children:[S.jsx("div",{ref:p,onMouseEnter:x,onMouseLeave:_,className:"ed-inline-block",children:t}),u&&e&&S.jsxs("div",{ref:y,className:`
567
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Xf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Xf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Xf(r,e)}),t.definitions&&t.definitions.forEach(function(r){Xf(r,e)})}var Mv={};(function(){Iv.definitions.forEach(function(e){if(e.name){var n=new Set;Xf(e,n),Mv[e.name.value]=n}})})();function Bx(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function CV(t,e){var n={kind:t.kind,definitions:[Bx(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=Mv[e]||new Set,i=new Set,a=new Set;for(r.forEach(function(s){a.add(s)});a.size>0;){var o=a;a=new Set,o.forEach(function(s){if(!i.has(s)){i.add(s);var c=Mv[s]||new Set;c.forEach(function(u){a.add(u)})}})}return i.forEach(function(s){var c=Bx(t,s);c&&n.definitions.push(c)}),n}const xV=CV(Iv,"CONVERSATION_ACTIVITY_REALTIME_STATUS_UPDATED"),zx=N.createContext(null),_V=({children:t})=>{const{currentConversationID:e,setCurrentConversationID:n}=qi(),r=jr.get("easydesk_chat_widget_conversation_id"),i=e||r,a=jr.get("widget_isMute")==="true",o=N.useRef(!0),s=N.useRef(null),c={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:[]}},[u,d]=N.useState(!1),[h,m]=N.useState({}),[p,y]=N.useState(c.conversationState),[b,v]=N.useState(c.inputFieldState),[x,{loading:_}]=Ka(wV,{errorPolicy:"all",fetchPolicy:"no-cache"}),T=async D=>{const{data:z,error:Y}=await x(D);if(z!=null&&z.getConversationActivitiesForPortal){const j=z.getConversationActivitiesForPortal,F=(j==null?void 0:j.data.reverse())||[];y(V=>{var G;return((G=V==null?void 0:V.optionData)==null?void 0:G.offset)===0?{...V,messages:F,metaData:j==null?void 0:j.meta_data}:{...V,messages:[...V.messages,...F],metaData:j==null?void 0:j.meta_data}})}Y&&console.error(Y)},[C,{loading:w}]=Ka(EV,{errorPolicy:"all",fetchPolicy:"no-cache"}),A=async D=>{var z,Y;try{const{data:j}=await C(D);if(j!=null&&j.getAConversationForPortal){const F=j.getAConversationForPortal;m(F),v({contact_person_name:(z=F==null?void 0:F.contact)==null?void 0:z.person_name,contact_person_email:(Y=F==null?void 0:F.contact)==null?void 0:Y.person_email}),T({variables:{queryData:{conversation_id:i},optionData:{order:[["created_at","desc"]]}}})}}catch(j){jr.remove("easydesk_chat_widget_conversation_id"),n(null),console.error(j)}},[k]=ma(Fx),R=async D=>{try{const{data:z}=await k({variables:{inputData:D}});Ne.size(z==null?void 0:z.updateConversationActivityAnalytics)&&(D!=null&&D.seen_activity_ids)&&y(Y=>{var j;return{...Y,messages:(j=Y==null?void 0:Y.messages)==null?void 0:j.map(F=>{var V,G;return(V=D==null?void 0:D.seen_activity_ids)!=null&&V.includes(F==null?void 0:F.id)?{...F,analytics:(G=F==null?void 0:F.analytics)==null?void 0:G.map(B=>({...B,status:"seen"}))}:F})}})}catch(z){console.log(z)}};C2(xV,{errorPolicy:"all",fetchPolicy:"no-cache",skip:!i,variables:{queryData:{conversation_id:i}},onData:({data:D})=>{var F,V,G;const z=(F=D==null?void 0:D.data)==null?void 0:F.conversationActivityRealtimeStatusUpdated;z!=null&&z.is_conversation_deleted&&(jr.remove("easydesk_chat_widget_conversation_id"),n(null),y(c.conversationState),d(!1));const Y=z==null?void 0:z.conversation_activity,j=((V=Y==null?void 0:Y.log)==null?void 0:V.new_value)||"";["spam","resolved","closed","clean"].includes(j)&&m({status:j,is_spam:j==="spam"}),Y!=null&&Y.id&&(y(B=>({...B,messages:[...((B==null?void 0:B.messages)||[]).filter(q=>(q==null?void 0:q.id)!==(Y==null?void 0:Y.id)),Y]})),o.current&&(o.current=!1),!a&&!Y.is_customer_reply&&!o.current&&s.current!==Y.id&&(jx(),s.current=Y.id)),Y!=null&&Y.id&&((G=Y==null?void 0:Y.analytics)!=null&&G.some(B=>(B==null?void 0:B.status)==="sent"))&&R({delivered_activity_ids:[Y==null?void 0:Y.id]})},onError:console.error}),N.useEffect(()=>{i&&A({variables:{queryData:{entity_id_or_serial:i}}})},[i]);const I=N.useMemo(()=>Ne.filter(p==null?void 0:p.messages,D=>{var z,Y;return!(D!=null&&D.is_customer_reply)&&Array.isArray(D==null?void 0:D.analytics)&&((z=D==null?void 0:D.analytics)==null?void 0:z.length)>0&&((Y=D.analytics[0])==null?void 0:Y.status)!=="seen"}),[p==null?void 0:p.messages]),U=N.useMemo(()=>({conversationData:h,setConversationData:m,isPopupOpen:u,setConversationState:y,conversationState:p,inputFieldState:b,setInputFieldState:v,getAConversationForPortal:A,isGettingAConversation:w,isGettingConversationActivities:_,getConversationActivitiesForPortal:x,initialStatesData:c,handleUpdateConversationActivityAnalytics:R,unreadMessages:I}),[h,u,p,b,w,_,c,I]);return S.jsx(zx.Provider,{value:U,children:t})},fc=()=>N.useContext(zx),AV=({isPopupOpen:t,handlePopupTrigger:e,orgBrandSetting:n,isAuthenticated:r})=>{const i=c5("(max-width: 768px)"),{brand:a,widget_icon_key:o}=n,{unreadMessages:s}=fc(),{messageListUnreadCount:c}=qi(),u=r?c:Ne.size(s);let d=0;return u>0&&(d=r?u:1),S.jsxs("button",{type:"button",onClick:e,style:{transformOrigin:"center",translate:"50% 50%"},className:`${i&&t?"ed-hidden":""} hover:ed-size-14 ed-fixed ed-bottom-12 ed-right-12 ed-z-[9999999] 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`,"aria-label":"Open/Close Chat Widget",children:[S.jsx("div",{className:"ed-absolute -ed-top-3 -ed-right-0.5",children:S.jsx(Ev,{count:d})}),S.jsxs("div",{className:"ed-relative ed-w-8 ed-h-8 ed-flex ed-items-center ed-justify-center",children:[S.jsx("div",{className:`ed-absolute ed-transition-all ed-duration-300 ${t?"ed-opacity-100 ed-scale-100 ed-rotate-[360deg]":"ed-opacity-0 ed-scale-0 ed-rotate-0"}`,children:S.jsx(Zo,{className:"ed-size-7 ed-text-white"})}),S.jsx("div",{className:`ed-absolute ed-transition-all ed-duration-300 ${t?"ed-opacity-0 ed-scale-0 ed-rotate-[360deg]":"ed-opacity-100 ed-scale-100 ed-rotate-0"}`,children:o?S.jsx(ki,{alt:`${a==null?void 0:a.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:o,defaultImageName:Ja(a==null?void 0:a.name)}):S.jsx(XN,{height:28,width:28})})]})]})},kV=({activeTab:t,handleTabChange:e,hasLiveChat:n,orgBrandSetting:r={}})=>{const{t:i}=ns(),{remove_app_branding:a,is_knowledge_base_enabled:o}=r,s=[{id:1,key:"messages",label:"Messages",icon:tP},{id:2,key:"knowledge_base",label:"Knowledge base",icon:nP}],c=N.useMemo(()=>o&&n,[o,n]);return S.jsxs("div",{className:`${c&&"ed-shadow-[0_-8px_10px_rgba(0,0,0,0.02)] ed-pt-2.5"} 'ed-h-max'`,children:[o&&n&&S.jsx("div",{className:"ed-grid ed-grid-cols-2",children:s.map(u=>{const d=t===u.key;return S.jsxs("button",{type:"button",onClick:()=>e(u.key),className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:[S.jsx(u.icon,{isActive:d}),S.jsx("h3",{className:`ed-text-14 ed-font-semibold ${d?"ed-text-brand":"ed-text-border-regular"} ed-inline-block`,children:u.label})]},u.id)})}),!a&&S.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:[i("widget.label.powerd_by")," ",S.jsx(xS,{href:"https://easydesk.app/",target:"_blank",className:"ed-text-14 ed-font-semibold ed-text-border-regular",children:i("widget.label.easydesk")})]})]})},$f=({children:t,content:e,position:n="top",delay:r=200,arrow:i=!0,maxWidth:a=250,className:o="",disabled:s=!1,theme:c="light"})=>{const[u,d]=N.useState(!1),[h,m]=N.useState({top:0,left:0}),p=N.useRef(null),y=N.useRef(null),b=N.useRef(null),v=()=>{if(!p.current||!y.current||!u)return;const w=p.current.getBoundingClientRect(),A=y.current.getBoundingClientRect();let k=0,R=0;switch(n){case"top":k=w.top-A.height-8,R=w.left+(w.width-A.width)/2;break;case"bottom":k=w.bottom+8,R=w.left+(w.width-A.width)/2;break;case"left":k=w.top+(w.height-A.height)/2,R=w.left-A.width-8;break;case"right":k=w.top+(w.height-A.height)/2,R=w.right+8;break}const I=10;k=Math.max(I,Math.min(k,window.innerHeight-A.height-I)),R=Math.max(I,Math.min(R,window.innerWidth-A.width-I)),m({top:k,left:R})},x=()=>{s||(b.current=setTimeout(()=>{d(!0)},r))},_=()=>{b.current&&clearTimeout(b.current),d(!1)};N.useEffect(()=>{u&&v()},[u]),N.useEffect(()=>{if(u){const w=()=>v();return window.addEventListener("scroll",w,!0),window.addEventListener("resize",w),()=>{window.removeEventListener("scroll",w,!0),window.removeEventListener("resize",w)}}return()=>{}},[u]);const T={dark:"ed-bg-gray-900 ed-text-white",light:"ed-bg-white ed-text-gray-900 ed-border ed-border-gray-200",custom:""},C={top:"ed-bottom-[-4px] ed-left-1/2 ed--translate-x-1/2 ed-border-t-gray-900 ed-border-x-transparent ed-border-b-transparent",bottom:"ed-top-[-4px] ed-left-1/2 ed--translate-x-1/2 ed-border-b-gray-900 ed-border-x-transparent ed-border-t-transparent",left:"ed-right-[-4px] ed-top-1/2 ed--translate-y-1/2 ed-border-l-gray-900 ed-border-y-transparent ed-border-r-transparent",right:"ed-left-[-4px] ed-top-1/2 ed--translate-y-1/2 ed-border-r-gray-900 ed-border-y-transparent ed-border-l-transparent"};return c==="light"&&(C.top=C.top.replace("gray-900","white"),C.bottom=C.bottom.replace("gray-900","white"),C.left=C.left.replace("gray-900","white"),C.right=C.right.replace("gray-900","white")),S.jsxs(S.Fragment,{children:[S.jsx("div",{ref:p,onMouseEnter:x,onMouseLeave:_,className:"ed-inline-block",children:t}),u&&e&&S.jsxs("div",{ref:y,className:`
567
568
  ed-fixed ed-px-3 ed-py-2 ed-rounded ed-text-sm ed-shadow-lg
568
569
  ed-pointer-events-none ed-z-[9999] ed-transition-opacity
569
570
  ${T[c]}
570
571
  ${o}
571
- `,style:{top:`${h.top}px`,left:`${h.left}px`,maxWidth:`${a}px`},role:"tooltip",children:[e,i&&S.jsx("div",{className:`ed-absolute ed-w-0 ed-h-0 ed-border-4 ${C[n]}`})]})]})},TV=({searchedText:t,selectedCategory:e,setSearchedText:n,setArticleId:r,setSelectedCategory:i,setIsPopupOpen:a,handleSearch:o,setArticlesData:s,brandInfo:c,activeTab:u,userData:d})=>{const{t:h}=ns(),m=c5("(max-width: 768px)"),{isChatHistory:p,setIsChatHistory:y,setCurrentConversationID:b}=qi(),{conversationData:v}=fc(),[x,_]=N.useState(()=>jr.get("widget_isMute")==="true");N.useEffect(()=>{jr.set("widget_isMute",x,{expires:365})},[x]);const T=()=>{n(""),r(null),i(null)},C=()=>{_(w=>!w)};return S.jsx("div",{className:"ed-bg-brand ed-py-8 ed-px-5 md:ed-rounded-t-[10px] ed-h-max",children:u==="messages"?S.jsxs("div",{className:"ed-flex ed-items-center ed-justify-between",children:[p?S.jsx("p",{className:"ed-text-center ed-w-full ed-text-16 ed-font-semibold ed-text-white",children:"Message"}):S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-w-full",children:[(d==null?void 0:d.isAuthenticated)&&!p&&S.jsx("button",{type:"button",onClick:()=>{b(null),y(!0)},children:S.jsx(ku,{size:20,className:"ed-text-white"})}),S.jsxs("div",{className:"ed-flex ed-items-center ed-justify-between ed-gap-2 ed-w-full",children:[S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[S.jsx(ki,{className:"ed-size-10 ed-rounded-full ed-object-cover ed-shrink-0",defaultImageClasses:"ed-h-10 ed-w-10 ed-shrink-0",path:c==null?void 0:c.logo_icon_key,defaultImageName:qa(c==null?void 0:c.name)}),S.jsx("h6",{className:"ed-text-14 ed-font-semibold ed-text-white",children:c==null?void 0:c.name}),S.jsxs($f,{content:S.jsx("p",{className:"ed-text-12 ed-text-center ed-font-medium ed-text-regular",children:(v==null?void 0:v.type)==="chat"?"Chat":"Ticket"}),children:[(v==null?void 0:v.type)==="chat"&&S.jsx(_w,{stroke:"white"}),(v==null?void 0:v.type)==="ticket"&&S.jsx(xw,{stroke:"white"})]})]}),S.jsx("button",{className:"ed-flex ed-items-center",type:"button",onClick:C,children:S.jsx($f,{content:S.jsx("p",{className:"ed-text-12 ed-text-center ed-font-medium ed-text-regular",children:x?"Unmute":"Mute"}),children:x?S.jsx(Pm,{className:"ed-text-white"}):S.jsx(Rm,{className:"ed-text-white"})})})]})]}),m&&S.jsx("button",{className:"ed-ml-3",type:"button",onClick:()=>a(!1),children:S.jsx(_i,{size:20,className:"ed-text-white"})})]}):S.jsxs("div",{children:[S.jsxs("div",{className:"ed-flex ed-items-start ed-justify-between",children:[Ne.size(t)||e?S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-mb-4",children:[S.jsx("button",{type:"button",onClick:T,className:"ed-p-2 ed-inline-block ed-rounded-lg hover:ed-bg-dark/15 ed-cursor-pointer ed-duration-500 ed-transition-all",children:S.jsx(ku,{className:"ed-text-white ed-size-5"})}),S.jsx("p",{className:"ed-text-16 ed-font-medium ed-text-white",children:h("widget.label.knowledge_base")})]}):S.jsxs("div",{children:[S.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-white",children:h("widget.label.lets_explore")}),S.jsx("h4",{className:"ed-text-24 ed-font-bold ed-text-white ed-mt-2 ed-mb-4",children:h("widget.label.knowledge_base")})]}),m&&S.jsx("button",{type:"button",onClick:()=>a(!1),children:S.jsx(_i,{size:20,className:"ed-text-white"})})]}),S.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:[S.jsx("input",{value:t,onChange:w=>o(w.target.value),placeholder:h("widget.placeholder.search_for_articles"),type:"text",className:"ed-bg-transparent ed-outline-none ed-w-full ed-text-[13px] ed-placeholder:text-[13px] ed-placeholder:font-medium ed-placeholder:text-border",style:{border:"none",outline:"none",fontSize:"14px",fontFamily:"inherit",color:"inherit",lineHeight:"1.5",padding:0,margin:0}}),S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-3",children:[t&&S.jsx("button",{type:"button",onClick:()=>{n(""),s([])},children:S.jsx(_i,{size:20,className:"ed-text-border"})}),S.jsx(ym,{size:18,className:"ed-text-border"})]})]})]})})},OV=({log:t})=>{const{sub_context:e,new_assignee:n}=t||{},{user:r}=n||{},i=gu(r==null?void 0:r.first_name,r==null?void 0:r.last_name,r==null?void 0:r.email);return e==="ADDED_AGENT"||e==="CHANGED_AGENT"?S.jsxs("div",{className:"ed-text-center ed-my-2",children:[S.jsx("span",{className:"ed-text-14 ed-font-semibold",children:i})," joined the chat"]}):null},RV=({channels:t,onSubmit:e})=>{const[n,r]=N.useState(!1);return t==null?void 0:t.map(i=>S.jsx("div",{className:"ed-max-w-[87%] ed-ml-auto ed-mb-2 ed-px-5",children:S.jsx("button",{type:"button",disabled:n,className:`ed-border ed-border-brand ed-text-12 ed-text-brand ed-p-1 ed-rounded ${n?"ed-opacity-50 ed-cursor-not-allowed":""}`,onClick:()=>{r(!0),e({is_customer_reply:!0,message:`<span style="font-size:12px; padding:4px; color:#172554; font-weight:600;" className="selected-channel">
572
+ `,style:{top:`${h.top}px`,left:`${h.left}px`,maxWidth:`${a}px`},role:"tooltip",children:[e,i&&S.jsx("div",{className:`ed-absolute ed-w-0 ed-h-0 ed-border-4 ${C[n]}`})]})]})},TV=({searchedText:t,selectedCategory:e,setSearchedText:n,setArticleId:r,setSelectedCategory:i,setIsPopupOpen:a,handleSearch:o,setArticlesData:s,brandInfo:c,activeTab:u,userData:d})=>{const{t:h}=ns(),m=c5("(max-width: 768px)"),{isChatHistory:p,setIsChatHistory:y,setCurrentConversationID:b}=qi(),{conversationData:v}=fc(),[x,_]=N.useState(()=>jr.get("widget_isMute")==="true");N.useEffect(()=>{jr.set("widget_isMute",x,{expires:365})},[x]);const T=()=>{n(""),r(null),i(null)},C=()=>{_(w=>!w)};return S.jsx("div",{className:"ed-bg-brand ed-py-8 ed-px-5 md:ed-rounded-t-[10px] ed-h-max",children:u==="messages"?S.jsxs("div",{className:"ed-flex ed-items-center ed-justify-between",children:[p?S.jsx("p",{className:"ed-text-center ed-w-full ed-text-16 ed-font-semibold ed-text-white",children:"Message"}):S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-w-full",children:[(d==null?void 0:d.isAuthenticated)&&!p&&S.jsx("button",{type:"button",onClick:()=>{b(null),y(!0)},children:S.jsx(ku,{size:20,className:"ed-text-white"})}),S.jsxs("div",{className:"ed-flex ed-items-center ed-justify-between ed-gap-2 ed-w-full",children:[S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[S.jsx(ki,{className:"ed-size-10 ed-rounded-full ed-object-cover ed-shrink-0",defaultImageClasses:"ed-h-10 ed-w-10 ed-shrink-0",path:c==null?void 0:c.logo_icon_key,defaultImageName:Ja(c==null?void 0:c.name)}),S.jsx("h6",{className:"ed-text-14 ed-font-semibold ed-text-white",children:c==null?void 0:c.name}),S.jsxs($f,{content:S.jsx("p",{className:"ed-text-12 ed-text-center ed-font-medium ed-text-regular",children:(v==null?void 0:v.type)==="chat"?"Chat":"Ticket"}),children:[(v==null?void 0:v.type)==="chat"&&S.jsx(_w,{stroke:"white"}),(v==null?void 0:v.type)==="ticket"&&S.jsx(xw,{stroke:"white"})]})]}),S.jsx("button",{className:"ed-flex ed-items-center",type:"button",onClick:C,children:S.jsx($f,{content:S.jsx("p",{className:"ed-text-12 ed-text-center ed-font-medium ed-text-regular",children:x?"Unmute":"Mute"}),children:x?S.jsx(Pm,{className:"ed-text-white"}):S.jsx(Rm,{className:"ed-text-white"})})})]})]}),m&&S.jsx("button",{className:"ed-ml-3",type:"button",onClick:()=>a(!1),children:S.jsx(_i,{size:20,className:"ed-text-white"})})]}):S.jsxs("div",{children:[S.jsxs("div",{className:"ed-flex ed-items-start ed-justify-between",children:[Ne.size(t)||e?S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-mb-4",children:[S.jsx("button",{type:"button",onClick:T,className:"ed-p-2 ed-inline-block ed-rounded-lg hover:ed-bg-dark/15 ed-cursor-pointer ed-duration-500 ed-transition-all",children:S.jsx(ku,{className:"ed-text-white ed-size-5"})}),S.jsx("p",{className:"ed-text-16 ed-font-medium ed-text-white",children:h("widget.label.knowledge_base")})]}):S.jsxs("div",{children:[S.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-white",children:h("widget.label.lets_explore")}),S.jsx("h4",{className:"ed-text-24 ed-font-bold ed-text-white ed-mt-2 ed-mb-4",children:h("widget.label.knowledge_base")})]}),m&&S.jsx("button",{type:"button",onClick:()=>a(!1),children:S.jsx(_i,{size:20,className:"ed-text-white"})})]}),S.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:[S.jsx("input",{value:t,onChange:w=>o(w.target.value),placeholder:h("widget.placeholder.search_for_articles"),type:"text",className:"ed-bg-transparent ed-outline-none ed-w-full ed-text-[13px] ed-placeholder:text-[13px] ed-placeholder:font-medium ed-placeholder:text-border",style:{border:"none",outline:"none",fontSize:"14px",fontFamily:"inherit",color:"inherit",lineHeight:"1.5",padding:0,margin:0}}),S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-3",children:[t&&S.jsx("button",{type:"button",onClick:()=>{n(""),s([])},children:S.jsx(_i,{size:20,className:"ed-text-border"})}),S.jsx(ym,{size:18,className:"ed-text-border"})]})]})]})})},OV=({log:t})=>{const{sub_context:e,new_assignee:n}=t||{},{user:r}=n||{},i=gu(r==null?void 0:r.first_name,r==null?void 0:r.last_name,r==null?void 0:r.email);return e==="ADDED_AGENT"||e==="CHANGED_AGENT"?S.jsxs("div",{className:"ed-text-center ed-my-2",children:[S.jsx("span",{className:"ed-text-14 ed-font-semibold",children:i})," joined the chat"]}):null},RV=({channels:t,onSubmit:e})=>{const[n,r]=N.useState(!1);return t==null?void 0:t.map(i=>S.jsx("div",{className:"ed-max-w-[87%] ed-ml-auto ed-mb-2 ed-px-5",children:S.jsx("button",{type:"button",disabled:n,className:`ed-border ed-border-brand ed-text-12 ed-text-brand ed-p-1 ed-rounded ${n?"ed-opacity-50 ed-cursor-not-allowed":""}`,onClick:()=>{r(!0),e({is_customer_reply:!0,message:`<span style="font-size:12px; padding:4px; color:#172554; font-weight:600;" className="selected-channel">
572
573
  ${i==null?void 0:i.name}
573
574
  </span>`,channel_id:i==null?void 0:i.id})},children:i==null?void 0:i.name})},i==null?void 0:i.id))};var Lv={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CREATE_A_CONVERSATION_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationCreateForPortalInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createAConversationForPortal"},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:164}};Lv.loc.source={body:`mutation CREATE_A_CONVERSATION_FOR_PORTAL($inputData: ConversationCreateForPortalInputType!) {
574
575
  createAConversationForPortal(inputData: $inputData) {
@@ -591,8 +592,8 @@ html body {
591
592
  title="${p==null?void 0:p.contact_person_email}"
592
593
  >${p==null?void 0:p.contact_person_email}</p>
593
594
  </div>
594
- </div>`,is_customer_reply:!0},{message:c?a:i,is_customer_reply:!1}]}}}),k=A==null?void 0:A.createAConversationForPortal;k!=null&&k.id&&(n(k==null?void 0:k.id),_p("easydesk_chat_widget_conversation_id",k==null?void 0:k.id,{expires:30}),t==null||t({contact_person_name:p==null?void 0:p.contact_person_name,contact_person_email:p==null?void 0:p.contact_person_email}),u())}catch(A){const{message:k,response:R}=A;vn("error",((w=R==null?void 0:R.data)==null?void 0:w.message)||k,"top-left")}},_=C=>{const{name:w,value:A}=C.target;y(k=>({...k,[w]:A}))},T=N.useMemo(()=>!(p!=null&&p.contact_person_name)||!(p!=null&&p.contact_person_email)||!Ap(p==null?void 0:p.contact_person_email),[p]);return N.useEffect(()=>{const C=setTimeout(()=>{m(!1)},1e3);return()=>clearTimeout(C)},[]),S.jsxs("div",{className:"ed-space-y-5 ed-px-5 ed-pt-1",children:[S.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%]",children:[S.jsx(ki,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:s==null?void 0:s.logo_icon_key,defaultImageName:qa(s==null?void 0:s.name)}),S.jsxs("div",{children:[S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[S.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:s==null?void 0:s.name}),S.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:os().format("HH:mm")})]}),h?S.jsx("div",{className:"ed-py-4",children:S.jsx(Ki,{})}):S.jsx("div",{className:"ed-p-2.5 ed-bg-white-light ed-text-[13px] ed-rounded-lg ed-mt-2",children:S.jsx("p",{className:"ed-text-border-dark",children:o})})]})]}),!h&&S.jsx("div",{className:"ed-max-w-[85%] ed-ml-auto",children:S.jsxs("form",{onSubmit:x,className:"ed-p-5 ed-rounded-[20px] ed-bg-white-light ed-space-y-5",children:[S.jsxs("div",{className:"ed-space-y-2",children:[S.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Name ",S.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),S.jsx("input",{type:"text",name:"contact_person_name",required:!0,placeholder:"Enter your name",value:p==null?void 0:p.contact_person_name,onChange:_,disabled:d,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 ed-text-14 ed-font-normal"})]}),S.jsxs("div",{className:"ed-space-y-2",children:[S.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Email ",S.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),S.jsx("input",{type:"email",name:"contact_person_email",required:!0,placeholder:"Enter your email",value:p==null?void 0:p.contact_person_email,onChange:_,disabled:d,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 ed-text-14 ed-font-normal"})]}),S.jsx("div",{className:"ed-flex ed-justify-end",children:S.jsx(rs,{title:"Submit",loaderText:"Submitting",fullWidthBtn:!0,disabled:T||v,loader:h||v,callBack:x})})]})})]})};/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:Wx,setPrototypeOf:Gx,isFrozen:MV,getPrototypeOf:LV,getOwnPropertyDescriptor:FV}=Object;let{freeze:qn,seal:Gr,create:jv}=Object,{apply:Dv,construct:Vv}=typeof Reflect<"u"&&Reflect;qn||(qn=function(e){return e}),Gr||(Gr=function(e){return e}),Dv||(Dv=function(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return e.apply(n,i)}),Vv||(Vv=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new e(...r)});const td=Xn(Array.prototype.forEach),jV=Xn(Array.prototype.lastIndexOf),Yx=Xn(Array.prototype.pop),dc=Xn(Array.prototype.push),DV=Xn(Array.prototype.splice),nd=Xn(String.prototype.toLowerCase),Uv=Xn(String.prototype.toString),Bv=Xn(String.prototype.match),hc=Xn(String.prototype.replace),VV=Xn(String.prototype.indexOf),UV=Xn(String.prototype.trim),pi=Xn(Object.prototype.hasOwnProperty),Jn=Xn(RegExp.prototype.test),pc=BV(TypeError);function Xn(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Dv(t,e,r)}}function BV(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Vv(t,n)}}function st(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:nd;Gx&&Gx(t,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const a=n(i);a!==i&&(MV(e)||(e[r]=a),i=a)}t[i]=!0}return t}function zV(t){for(let e=0;e<t.length;e++)pi(t,e)||(t[e]=null);return t}function Ni(t){const e=jv(null);for(const[n,r]of Wx(t))pi(t,n)&&(Array.isArray(r)?e[n]=zV(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=Ni(r):e[n]=r);return e}function mc(t,e){for(;t!==null;){const r=FV(t,e);if(r){if(r.get)return Xn(r.get);if(typeof r.value=="function")return Xn(r.value)}t=LV(t)}function n(){return null}return n}const Kx=qn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),zv=qn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Hv=qn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),HV=qn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Wv=qn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),WV=qn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Zx=qn(["#text"]),Qx=qn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Gv=qn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),qx=qn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),rd=qn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),GV=Gr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),YV=Gr(/<%[\w\W]*|[\w\W]*%>/gm),KV=Gr(/\$\{[\w\W]*/gm),ZV=Gr(/^data-[\-\w.\u00B7-\uFFFF]+$/),QV=Gr(/^aria-[\-\w]+$/),Jx=Gr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qV=Gr(/^(?:\w+script|data):/i),JV=Gr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Xx=Gr(/^html$/i),XV=Gr(/^[a-z][.\w]*(-[.\w]+)+$/i);var $x=Object.freeze({__proto__:null,ARIA_ATTR:QV,ATTR_WHITESPACE:JV,CUSTOM_ELEMENT:XV,DATA_ATTR:ZV,DOCTYPE_NAME:Xx,ERB_EXPR:YV,IS_ALLOWED_URI:Jx,IS_SCRIPT_OR_DATA:qV,MUSTACHE_EXPR:GV,TMPLIT_EXPR:KV});const gc={element:1,text:3,progressingInstruction:7,comment:8,document:9},$V=function(){return typeof window>"u"?null:window},eU=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},e8=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function t8(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$V();const e=ke=>t8(ke);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==gc.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:m,trustedTypes:p}=t,y=c.prototype,b=mc(y,"cloneNode"),v=mc(y,"remove"),x=mc(y,"nextSibling"),_=mc(y,"childNodes"),T=mc(y,"parentNode");if(typeof o=="function"){const ke=n.createElement("template");ke.content&&ke.content.ownerDocument&&(n=ke.content.ownerDocument)}let C,w="";const{implementation:A,createNodeIterator:k,createDocumentFragment:R,getElementsByTagName:I}=n,{importNode:U}=r;let D=e8();e.isSupported=typeof Wx=="function"&&typeof T=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:z,ERB_EXPR:Y,TMPLIT_EXPR:j,DATA_ATTR:F,ARIA_ATTR:V,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:B,CUSTOM_ELEMENT:q}=$x;let{IS_ALLOWED_URI:W}=$x,K=null;const te=st({},[...Kx,...zv,...Hv,...Wv,...Zx]);let ne=null;const ce=st({},[...Qx,...Gv,...qx,...rd]);let ie=Object.seal(jv(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),J=null,ue=null;const le=Object.seal(jv(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ve=!0,he=!0,be=!1,ee=!0,Ie=!1,ye=!0,Fe=!1,at=!1,Pe=!1,tt=!1,Ae=!1,nt=!1,Le=!0,Ze=!1;const _t="user-content-";let Ee=!0,$e=!1,At={},Ht=null;const Yt=st({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let bn=null;const dr=st({},["audio","video","img","source","image","track"]);let vt=null;const yt=st({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nn="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",jt="http://www.w3.org/1999/xhtml";let wn=jt,$t=!1,Hn=null;const Ji=st({},[nn,Xt,jt],Uv);let Yr=st({},["mi","mo","mn","ms","mtext"]),hr=st({},["annotation-xml"]);const Pi=st({},["title","style","font","a","script"]);let pr=null;const $n=["application/xhtml+xml","text/html"],sn="text/html";let Qe=null,Sn=null;const hn=n.createElement("form"),mt=function(Z){return Z instanceof RegExp||Z instanceof Function},ut=function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Sn&&Sn===Z)){if((!Z||typeof Z!="object")&&(Z={}),Z=Ni(Z),pr=$n.indexOf(Z.PARSER_MEDIA_TYPE)===-1?sn:Z.PARSER_MEDIA_TYPE,Qe=pr==="application/xhtml+xml"?Uv:nd,K=pi(Z,"ALLOWED_TAGS")?st({},Z.ALLOWED_TAGS,Qe):te,ne=pi(Z,"ALLOWED_ATTR")?st({},Z.ALLOWED_ATTR,Qe):ce,Hn=pi(Z,"ALLOWED_NAMESPACES")?st({},Z.ALLOWED_NAMESPACES,Uv):Ji,vt=pi(Z,"ADD_URI_SAFE_ATTR")?st(Ni(yt),Z.ADD_URI_SAFE_ATTR,Qe):yt,bn=pi(Z,"ADD_DATA_URI_TAGS")?st(Ni(dr),Z.ADD_DATA_URI_TAGS,Qe):dr,Ht=pi(Z,"FORBID_CONTENTS")?st({},Z.FORBID_CONTENTS,Qe):Yt,J=pi(Z,"FORBID_TAGS")?st({},Z.FORBID_TAGS,Qe):Ni({}),ue=pi(Z,"FORBID_ATTR")?st({},Z.FORBID_ATTR,Qe):Ni({}),At=pi(Z,"USE_PROFILES")?Z.USE_PROFILES:!1,ve=Z.ALLOW_ARIA_ATTR!==!1,he=Z.ALLOW_DATA_ATTR!==!1,be=Z.ALLOW_UNKNOWN_PROTOCOLS||!1,ee=Z.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ie=Z.SAFE_FOR_TEMPLATES||!1,ye=Z.SAFE_FOR_XML!==!1,Fe=Z.WHOLE_DOCUMENT||!1,tt=Z.RETURN_DOM||!1,Ae=Z.RETURN_DOM_FRAGMENT||!1,nt=Z.RETURN_TRUSTED_TYPE||!1,Pe=Z.FORCE_BODY||!1,Le=Z.SANITIZE_DOM!==!1,Ze=Z.SANITIZE_NAMED_PROPS||!1,Ee=Z.KEEP_CONTENT!==!1,$e=Z.IN_PLACE||!1,W=Z.ALLOWED_URI_REGEXP||Jx,wn=Z.NAMESPACE||jt,Yr=Z.MATHML_TEXT_INTEGRATION_POINTS||Yr,hr=Z.HTML_INTEGRATION_POINTS||hr,ie=Z.CUSTOM_ELEMENT_HANDLING||{},Z.CUSTOM_ELEMENT_HANDLING&&mt(Z.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ie.tagNameCheck=Z.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Z.CUSTOM_ELEMENT_HANDLING&&mt(Z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ie.attributeNameCheck=Z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Z.CUSTOM_ELEMENT_HANDLING&&typeof Z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ie.allowCustomizedBuiltInElements=Z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(he=!1),Ae&&(tt=!0),At&&(K=st({},Zx),ne=[],At.html===!0&&(st(K,Kx),st(ne,Qx)),At.svg===!0&&(st(K,zv),st(ne,Gv),st(ne,rd)),At.svgFilters===!0&&(st(K,Hv),st(ne,Gv),st(ne,rd)),At.mathMl===!0&&(st(K,Wv),st(ne,qx),st(ne,rd))),Z.ADD_TAGS&&(typeof Z.ADD_TAGS=="function"?le.tagCheck=Z.ADD_TAGS:(K===te&&(K=Ni(K)),st(K,Z.ADD_TAGS,Qe))),Z.ADD_ATTR&&(typeof Z.ADD_ATTR=="function"?le.attributeCheck=Z.ADD_ATTR:(ne===ce&&(ne=Ni(ne)),st(ne,Z.ADD_ATTR,Qe))),Z.ADD_URI_SAFE_ATTR&&st(vt,Z.ADD_URI_SAFE_ATTR,Qe),Z.FORBID_CONTENTS&&(Ht===Yt&&(Ht=Ni(Ht)),st(Ht,Z.FORBID_CONTENTS,Qe)),Z.ADD_FORBID_CONTENTS&&(Ht===Yt&&(Ht=Ni(Ht)),st(Ht,Z.ADD_FORBID_CONTENTS,Qe)),Ee&&(K["#text"]=!0),Fe&&st(K,["html","head","body"]),K.table&&(st(K,["tbody"]),delete J.tbody),Z.TRUSTED_TYPES_POLICY){if(typeof Z.TRUSTED_TYPES_POLICY.createHTML!="function")throw pc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Z.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw pc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=Z.TRUSTED_TYPES_POLICY,w=C.createHTML("")}else C===void 0&&(C=eU(p,i)),C!==null&&typeof w=="string"&&(w=C.createHTML(""));qn&&qn(Z),Sn=Z}},Wt=st({},[...zv,...Hv,...HV]),er=st({},[...Wv,...WV]),pn=function(Z){let pe=T(Z);(!pe||!pe.tagName)&&(pe={namespaceURI:wn,tagName:"template"});const _e=nd(Z.tagName),wt=nd(pe.tagName);return Hn[Z.namespaceURI]?Z.namespaceURI===Xt?pe.namespaceURI===jt?_e==="svg":pe.namespaceURI===nn?_e==="svg"&&(wt==="annotation-xml"||Yr[wt]):!!Wt[_e]:Z.namespaceURI===nn?pe.namespaceURI===jt?_e==="math":pe.namespaceURI===Xt?_e==="math"&&hr[wt]:!!er[_e]:Z.namespaceURI===jt?pe.namespaceURI===Xt&&!hr[wt]||pe.namespaceURI===nn&&!Yr[wt]?!1:!er[_e]&&(Pi[_e]||!Wt[_e]):!!(pr==="application/xhtml+xml"&&Hn[Z.namespaceURI]):!1},ht=function(Z){dc(e.removed,{element:Z});try{T(Z).removeChild(Z)}catch{v(Z)}},Nn=function(Z,pe){try{dc(e.removed,{attribute:pe.getAttributeNode(Z),from:pe})}catch{dc(e.removed,{attribute:null,from:pe})}if(pe.removeAttribute(Z),Z==="is")if(tt||Ae)try{ht(pe)}catch{}else try{pe.setAttribute(Z,"")}catch{}},mr=function(Z){let pe=null,_e=null;if(Pe)Z="<remove></remove>"+Z;else{const kt=Bv(Z,/^[\r\n\t ]+/);_e=kt&&kt[0]}pr==="application/xhtml+xml"&&wn===jt&&(Z='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Z+"</body></html>");const wt=C?C.createHTML(Z):Z;if(wn===jt)try{pe=new m().parseFromString(wt,pr)}catch{}if(!pe||!pe.documentElement){pe=A.createDocument(wn,"template",null);try{pe.documentElement.innerHTML=$t?w:wt}catch{}}const Gt=pe.body||pe.documentElement;return Z&&_e&&Gt.insertBefore(n.createTextNode(_e),Gt.childNodes[0]||null),wn===jt?I.call(pe,Fe?"html":"body")[0]:Fe?pe.documentElement:Gt},bt=function(Z){return k.call(Z.ownerDocument||Z,Z,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Dt=function(Z){return Z instanceof h&&(typeof Z.nodeName!="string"||typeof Z.textContent!="string"||typeof Z.removeChild!="function"||!(Z.attributes instanceof d)||typeof Z.removeAttribute!="function"||typeof Z.setAttribute!="function"||typeof Z.namespaceURI!="string"||typeof Z.insertBefore!="function"||typeof Z.hasChildNodes!="function")},mn=function(Z){return typeof s=="function"&&Z instanceof s};function Pt(ke,Z,pe){td(ke,_e=>{_e.call(e,Z,pe,Sn)})}const tr=function(Z){let pe=null;if(Pt(D.beforeSanitizeElements,Z,null),Dt(Z))return ht(Z),!0;const _e=Qe(Z.nodeName);if(Pt(D.uponSanitizeElement,Z,{tagName:_e,allowedTags:K}),ye&&Z.hasChildNodes()&&!mn(Z.firstElementChild)&&Jn(/<[/\w!]/g,Z.innerHTML)&&Jn(/<[/\w!]/g,Z.textContent)||Z.nodeType===gc.progressingInstruction||ye&&Z.nodeType===gc.comment&&Jn(/<[/\w]/g,Z.data))return ht(Z),!0;if(!(le.tagCheck instanceof Function&&le.tagCheck(_e))&&(!K[_e]||J[_e])){if(!J[_e]&&Wn(_e)&&(ie.tagNameCheck instanceof RegExp&&Jn(ie.tagNameCheck,_e)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(_e)))return!1;if(Ee&&!Ht[_e]){const wt=T(Z)||Z.parentNode,Gt=_(Z)||Z.childNodes;if(Gt&&wt){const kt=Gt.length;for(let ln=kt-1;ln>=0;--ln){const nr=b(Gt[ln],!0);nr.__removalCount=(Z.__removalCount||0)+1,wt.insertBefore(nr,x(Z))}}}return ht(Z),!0}return Z instanceof c&&!pn(Z)||(_e==="noscript"||_e==="noembed"||_e==="noframes")&&Jn(/<\/no(script|embed|frames)/i,Z.innerHTML)?(ht(Z),!0):(Ie&&Z.nodeType===gc.text&&(pe=Z.textContent,td([z,Y,j],wt=>{pe=hc(pe,wt," ")}),Z.textContent!==pe&&(dc(e.removed,{element:Z.cloneNode()}),Z.textContent=pe)),Pt(D.afterSanitizeElements,Z,null),!1)},Kr=function(Z,pe,_e){if(Le&&(pe==="id"||pe==="name")&&(_e in n||_e in hn))return!1;if(!(he&&!ue[pe]&&Jn(F,pe))){if(!(ve&&Jn(V,pe))){if(!(le.attributeCheck instanceof Function&&le.attributeCheck(pe,Z))){if(!ne[pe]||ue[pe]){if(!(Wn(Z)&&(ie.tagNameCheck instanceof RegExp&&Jn(ie.tagNameCheck,Z)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(Z))&&(ie.attributeNameCheck instanceof RegExp&&Jn(ie.attributeNameCheck,pe)||ie.attributeNameCheck instanceof Function&&ie.attributeNameCheck(pe,Z))||pe==="is"&&ie.allowCustomizedBuiltInElements&&(ie.tagNameCheck instanceof RegExp&&Jn(ie.tagNameCheck,_e)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(_e))))return!1}else if(!vt[pe]){if(!Jn(W,hc(_e,B,""))){if(!((pe==="src"||pe==="xlink:href"||pe==="href")&&Z!=="script"&&VV(_e,"data:")===0&&bn[Z])){if(!(be&&!Jn(G,hc(_e,B,"")))){if(_e)return!1}}}}}}}return!0},Wn=function(Z){return Z!=="annotation-xml"&&Bv(Z,q)},Ln=function(Z){Pt(D.beforeSanitizeAttributes,Z,null);const{attributes:pe}=Z;if(!pe||Dt(Z))return;const _e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let wt=pe.length;for(;wt--;){const Gt=pe[wt],{name:kt,namespaceURI:ln,value:nr}=Gt,vr=Qe(kt),mi=nr;let Ft=kt==="value"?mi:UV(mi);if(_e.attrName=vr,_e.attrValue=Ft,_e.keepAttr=!0,_e.forceKeepAttr=void 0,Pt(D.uponSanitizeAttribute,Z,_e),Ft=_e.attrValue,Ze&&(vr==="id"||vr==="name")&&(Nn(kt,Z),Ft=_t+Ft),ye&&Jn(/((--!?|])>)|<\/(style|title|textarea)/i,Ft)){Nn(kt,Z);continue}if(vr==="attributename"&&Bv(Ft,"href")){Nn(kt,Z);continue}if(_e.forceKeepAttr)continue;if(!_e.keepAttr){Nn(kt,Z);continue}if(!ee&&Jn(/\/>/i,Ft)){Nn(kt,Z);continue}Ie&&td([z,Y,j],Ii=>{Ft=hc(Ft,Ii," ")});const Zr=Qe(Z.nodeName);if(!Kr(Zr,vr,Ft)){Nn(kt,Z);continue}if(C&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!ln)switch(p.getAttributeType(Zr,vr)){case"TrustedHTML":{Ft=C.createHTML(Ft);break}case"TrustedScriptURL":{Ft=C.createScriptURL(Ft);break}}if(Ft!==mi)try{ln?Z.setAttributeNS(ln,kt,Ft):Z.setAttribute(kt,Ft),Dt(Z)?ht(Z):Yx(e.removed)}catch{Nn(kt,Z)}}Pt(D.afterSanitizeAttributes,Z,null)},gr=function ke(Z){let pe=null;const _e=bt(Z);for(Pt(D.beforeSanitizeShadowDOM,Z,null);pe=_e.nextNode();)Pt(D.uponSanitizeShadowNode,pe,null),tr(pe),Ln(pe),pe.content instanceof a&&ke(pe.content);Pt(D.afterSanitizeShadowDOM,Z,null)};return e.sanitize=function(ke){let Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=null,_e=null,wt=null,Gt=null;if($t=!ke,$t&&(ke="<!-->"),typeof ke!="string"&&!mn(ke))if(typeof ke.toString=="function"){if(ke=ke.toString(),typeof ke!="string")throw pc("dirty is not a string, aborting")}else throw pc("toString is not a function");if(!e.isSupported)return ke;if(at||ut(Z),e.removed=[],typeof ke=="string"&&($e=!1),$e){if(ke.nodeName){const nr=Qe(ke.nodeName);if(!K[nr]||J[nr])throw pc("root node is forbidden and cannot be sanitized in-place")}}else if(ke instanceof s)pe=mr("<!---->"),_e=pe.ownerDocument.importNode(ke,!0),_e.nodeType===gc.element&&_e.nodeName==="BODY"||_e.nodeName==="HTML"?pe=_e:pe.appendChild(_e);else{if(!tt&&!Ie&&!Fe&&ke.indexOf("<")===-1)return C&&nt?C.createHTML(ke):ke;if(pe=mr(ke),!pe)return tt?null:nt?w:""}pe&&Pe&&ht(pe.firstChild);const kt=bt($e?ke:pe);for(;wt=kt.nextNode();)tr(wt),Ln(wt),wt.content instanceof a&&gr(wt.content);if($e)return ke;if(tt){if(Ae)for(Gt=R.call(pe.ownerDocument);pe.firstChild;)Gt.appendChild(pe.firstChild);else Gt=pe;return(ne.shadowroot||ne.shadowrootmode)&&(Gt=U.call(r,Gt,!0)),Gt}let ln=Fe?pe.outerHTML:pe.innerHTML;return Fe&&K["!doctype"]&&pe.ownerDocument&&pe.ownerDocument.doctype&&pe.ownerDocument.doctype.name&&Jn(Xx,pe.ownerDocument.doctype.name)&&(ln="<!DOCTYPE "+pe.ownerDocument.doctype.name+`>
595
- `+ln),Ie&&td([z,Y,j],nr=>{ln=hc(ln,nr," ")}),C&&nt?C.createHTML(ln):ln},e.setConfig=function(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ut(ke),at=!0},e.clearConfig=function(){Sn=null,at=!1},e.isValidAttribute=function(ke,Z,pe){Sn||ut({});const _e=Qe(ke),wt=Qe(Z);return Kr(_e,wt,pe)},e.addHook=function(ke,Z){typeof Z=="function"&&dc(D[ke],Z)},e.removeHook=function(ke,Z){if(Z!==void 0){const pe=jV(D[ke],Z);return pe===-1?void 0:DV(D[ke],pe,1)[0]}return Yx(D[ke])},e.removeHooks=function(ke){D[ke]=[]},e.removeAllHooks=function(){D=e8()},e}var n8=t8();const tU=({previewImageInfo:t,setPreviewImageInfo:e,isPrivate:n=!1})=>{const[r,i]=N.useState(1),a=N.useRef(null),o=()=>{e(kp),i(1)};N.useEffect(()=>{const b=v=>{v.key==="Escape"&&o()};return window.addEventListener("keydown",b),()=>{window.removeEventListener("keydown",b)}},[]);const{fileName:s,isOpen:c,loading:u,error:d,url:h,height:m,width:p}=t||{},y=N.useMemo(()=>h==null?void 0:h.split("?")[0].split("/").pop(),[h]);return S.jsx("div",{children:c&&S.jsxs("div",{className:"ed-overflow-hidden",children:[S.jsx("div",{className:"ed-h-full ed-w-full ed-z-[1000] ed-fixed ed-bg-black/80 ed-inset-0"}),S.jsxs("div",{className:"ed-size-full ed-flex items-center ed-w-full ed-h-full ed-justify-center ed-overflow-hidden ed-fixed ed-top-9 ed-left-0 ed-z-[1100]",children:[u?S.jsx(Bu,{}):!d&&h&&S.jsx("div",{ref:a,style:{transform:`scale(${r})`,transformOrigin:"center center",transition:"transform 0.2s ease-out"},children:S.jsx(ki,{alt:"Feedback attachment",className:"ed-max-w-[90vw] ed-max-h-[90vh] ed-object-contain ed-select-none",height:m,src:h,width:p,isPrivate:n})}),d&&S.jsx("p",{className:"ed-text-14 ed-font-semibold ed-text-red",children:d})]}),S.jsxs("div",{className:"ed-fixed ed-z-[1100] ed-top-5 ed-right-16 ed-flex ed-items-center ed-gap-3",children:[S.jsx("a",{href:`${h}&dl=${s||y}`,className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors ed-bg-black/50 ed-rounded-lg ed-p-2",title:"Download",children:S.jsx(om,{className:"ed-size-4",strokeWidth:"2"})}),S.jsx("button",{type:"button",className:"ed-fixed ed-z-[1100] ed-top-5 ed-right-5 ed-text-white ed-hover:text-gray-300 ed-transition-colors ed-bg-black/50 ed-rounded-lg ed-p-2",onClick:o,title:"Close (Esc)",children:S.jsx(_i,{className:"ed-size-4",strokeWidth:"2"})})]}),!u&&!d&&S.jsx("div",{className:"ed-fixed ed-z-[1100] ed-bottom-5 ed-left-1/2 ed-transform -ed-translate-x-1/2",children:S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-bg-black/70 ed-rounded-lg ed-p-3",children:[S.jsx("button",{type:"button",className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors",onClick:()=>i(b=>Math.max(b/1.5,.5)),disabled:r<=.5,title:"Zoom Out",children:S.jsx(jm,{className:"ed-size-5",strokeWidth:"2"})}),S.jsxs("span",{className:"ed-text-white ed-text-sm ed-min-w-[3rem] ed-text-center ed-font-medium",children:[Math.round(r*100),"%"]}),S.jsx("button",{type:"button",className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors",onClick:()=>i(b=>Math.min(b*1.5,5)),disabled:r>=5,title:"Zoom In",children:S.jsx(Lm,{className:"ed-size-5",strokeWidth:"2"})}),S.jsx("div",{className:"ed-w-px ed-h-5 ed-bg-white/30 ed-mx-1"}),S.jsx("button",{type:"button",className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors",onClick:()=>i(1),title:"Reset",children:S.jsx(gm,{className:"ed-size-5",strokeWidth:"2"})})]})})]})})},nU=({filesData:t=[]})=>{var m;const[e,n]=N.useState(!1),[r,i]=N.useState(kp),a=t==null?void 0:t.filter(p=>/\.(jpg|jpeg|png|gif|webp)$/i.test(p.name)),o=t==null?void 0:t.filter(p=>!/\.(jpg|jpeg|png|gif|webp)$/i.test(p.name)),s=()=>n(!0),c=e?a:a==null?void 0:a.slice(0,2),u=Ne.size(a)-2,d=p=>{try{const y=`${Ak()}?id=${p}&download=true`;y&&window.open(y,"_blank")}catch(y){console.error(y)}},h=async p=>{i(y=>({...y,loading:!0}));try{const y=await g6({fit:"scale",isPrivate:!1,needActualSize:!0,path:p==null?void 0:p.key,quality:100});if(y){const b=await Ok(y);i(v=>({...v,isOpen:!0,url:y,fileName:p==null?void 0:p.title,image:y,loading:!1,height:b==null?void 0:b.height,width:b==null?void 0:b.width}))}}catch{i({...kp,error:"Failed to load image"})}};return S.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-3",children:[Ne.size(a)>0&&S.jsxs("div",{className:"ed-grid ed-grid-cols-2 ed-gap-2.5",children:[c.map(p=>S.jsx("div",{onClick:()=>h(p),role:"button",tabIndex:0,children:S.jsx(ki,{path:p.key,className:"ed-w-full ed-rounded",defaultImageClasses:"ed-w-full ed-h-20 !ed-rounded"})},p==null?void 0:p.id)),!e&&u>0&&S.jsxs("div",{role:"button",tabIndex:0,className:"ed-relative cursor-pointer",onClick:s,children:[S.jsx(ki,{path:(m=a[2])==null?void 0:m.key,className:"ed-w-full ed-rounded",defaultImageClasses:"ed-w-full ed-h-20 !ed-rounded"}),S.jsx("div",{className:"ed-w-full ed-h-full ed-bg-black/15 ed-absolute ed-top-0 ed-left-0 ed-rounded",children:S.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:S.jsxs("span",{className:"ed-text-12 ed-text-border-dark ed-font-semibold",children:["+",u]})})})]})]}),Ne.size(o)>0&&S.jsx("div",{className:"ed-flex ed-flex-col ed-gap-2.5",children:o.map(p=>S.jsxs("div",{className:"ed-p-2.5 ed-bg-white-light ed-rounded-lg ed-flex ed-items-center ed-gap-2 ed-justify-between",children:[S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[S.jsx("div",{className:"ed-flex-shrink-0",children:S.jsx(rP,{})}),S.jsx("p",{title:p.title,className:"ed-text-12 ed-font-semibold ed-text-border-dark",children:Tp(p.title,20)})]}),S.jsx("button",{className:"ed-flex-shrink-0",type:"button",onClick:()=>d(p==null?void 0:p.id),children:S.jsx(lm,{className:"ed-text-brand-link ed-size-5"})})]},p==null?void 0:p.id))}),(r==null?void 0:r.isOpen)&&S.jsx(tU,{previewImageInfo:r,setPreviewImageInfo:i})]})},Yv=({context:t,emails:e})=>S.jsxs("div",{className:"ed-flex ed-items-start ed-gap-2 ",children:[S.jsxs("p",{className:"ed-text-dark",children:[t,":"]}),S.jsx("div",{className:"ed-flex ed-flex-wrap ed-gap-1",children:e.slice(0,3).map((n,r)=>S.jsxs("p",{className:"ed-text-regular ed-flex ed-items-center ed-gap-2",children:[Tp(n,30),r===2&&Ne.size(e)-3>0?S.jsx(Sv,{classNames:{body:"ed-text-regular"},zIndex:99999999,placement:"top",title:e.join(", "),children:S.jsxs("span",{className:"ed-text-brand ed-cursor-pointer",children:["+",Ne.size(e)-3," more"]})}):""]},n))})]});var id={exports:{}},rU=id.exports,r8;function iU(){return r8||(r8=1,(function(t,e){(function(n,r){t.exports=r()})(rU,(function(){return function(n,r,i){n=n||{};var a=r.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(u,d,h,m){return a.fromToBase(u,d,h,m)}i.en.relativeTime=o,a.fromToBase=function(u,d,h,m,p){for(var y,b,v,x=h.$locale().relativeTime||o,_=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],T=_.length,C=0;C<T;C+=1){var w=_[C];w.d&&(y=m?i(u).diff(h,w.d,!0):h.diff(u,w.d,!0));var A=(n.rounding||Math.round)(Math.abs(y));if(v=y>0,A<=w.r||!w.r){A<=1&&C>0&&(w=_[C-1]);var k=x[w.l];p&&(A=p(""+A)),b=typeof k=="string"?k.replace("%d",A):k(A,d,w.l,v);break}}if(d)return b;var R=v?x.future:x.past;return typeof R=="function"?R(b):R.replace("%s",b)},a.to=function(u,d){return s(u,d,this,!0)},a.from=function(u,d){return s(u,d,this)};var c=function(u){return u.$u?i.utc():i()};a.toNow=function(u){return this.to(c(this),u)},a.fromNow=function(u){return this.from(c(this),u)}}}))})(id)),id.exports}var aU=iU();const oU=Qa(aU);os.extend(oU);const sU=async(t,e)=>{const{policy:n,file:r}=t||{};return(await e1(n,r)).success?{name:t==null?void 0:t.name,title:r==null?void 0:r.name,size:r==null?void 0:r.size,sub_type:e,type:"conversation_activity_attachment"}:{}},lU=async(t,e)=>{var r;const n=[];try{const i=[];for(let a=0;a<t.length;a+=1)(r=t[a])!=null&&r.id||i.push(sU(t[a],e));n.push(...await Promise.all(i))}catch(i){console.error("Error occurred during file upload:",i),vn("error","File upload fails","top-left")}return n};function cU(t){if(!t)return"";const e=os(t),n=os();return e.isValid()?n.diff(e,"minute")<1?"Just now":e.fromNow():""}const uU={open:{label:"Open",className:"ed-bg-[#DDF2FF] ed-text-[#1173C8] ed-border ed-border-[#A4D1F1] ed-rounded-full"},resolved:{label:"Resolved",className:"ed-bg-[#DBF8E2] ed-text-[#0E9342] ed-border ed-border-[#96D4AB] ed-rounded-full"}},fU=t=>{if(!t)return"";if(typeof window>"u")return t;const e=n8.sanitize(t,{FORBID_TAGS:["script"],FORBID_ATTR:["style","class"]}),n=document.createElement("div");return n.innerHTML=e,n.textContent||n.innerText||""},dU=(t=[],e=!1)=>{const n=[],r=[],i=[];return Ne.forEach(t,a=>{(a==null?void 0:a.type)==="to_email"&&(e?!(a!=null&&a.is_channel)&&!n.includes(a==null?void 0:a.email)&&n.push(a==null?void 0:a.email):n.push(a==null?void 0:a.email)),(a==null?void 0:a.type)==="cc_email"&&(e?Ne.some(r,{person_email:a==null?void 0:a.email})||r.push({person_email:a==null?void 0:a.email}):r.push(a==null?void 0:a.email)),(a==null?void 0:a.type)==="bcc_email"&&i.push(a==null?void 0:a.email)}),{toEmails:n,ccEmails:r,bccEmails:i}},hU="hh:mm A",i8=({activityMessage:t={},brand:e={},isReplying:n=!1})=>{const{id:r,analytics:i,emails:a=[],user:o,files:s,message:c,is_customer_reply:u,created_at:d}=t||{},[h,m]=N.useState(!1),p=()=>{m(!h)},{toEmails:y,ccEmails:b,bccEmails:v}=dU(a),x=N.useMemo(()=>o!=null&&o.id?gu(o==null?void 0:o.first_name,o==null?void 0:o.last_name,o==null?void 0:o.email):(e==null?void 0:e.name)||"",[o==null?void 0:o.id]),_=N.useMemo(()=>o!=null&&o.id?{...(o==null?void 0:o.avatar_file)||{},default_image_name:qa(o==null?void 0:o.first_name,o==null?void 0:o.last_name,o==null?void 0:o.email)}:{key:e==null?void 0:e.logo_icon_key,default_image_name:qa(e==null?void 0:e.name)},[o==null?void 0:o.id]),T=N.useMemo(()=>n||!c?"":n8.sanitize(c),[c,n]),C=!n&&jl(T),w=N.isValidElement(C)?"div":"p",A=()=>{var R,I,U,D,z,Y;return C?S.jsxs("div",{className:`ed-p-2.5 ${u?"ed-bg-blue-light":"ed-bg-white-light"} ${(I=(R=C==null?void 0:C.props)==null?void 0:R.className)!=null&&I.includes("form-response")?"ed-p-0 ed-bg-white":""} ed-rounded-lg ed-mt-2 ed-text-[13px]`,children:[S.jsxs(w,{className:`ed-text-border-dark ${(D=(U=C==null?void 0:C.props)==null?void 0:U.className)!=null&&D.includes("form-response")||(Y=(z=C==null?void 0:C.props)==null?void 0:z.className)!=null&&Y.includes("selected-channel")?"":"ed-whitespace-pre-line ed-break-words"}`,children:[Ne.size(a)>0&&S.jsxs("div",{className:"ed-border-b ed-pb-2",children:[S.jsxs("button",{type:"button",onClick:p,className:"ed-flex ed-gap-1 ed-text-regular ed-items-center",children:[S.jsx("span",{children:h?S.jsx(Tu,{className:"ed-size-4"}):S.jsx(Zo,{className:"ed-size-4"})})," ",S.jsxs("span",{children:[h?"Hide":"View"," recipient"]})]}),h&&S.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-2 ed-mt-2",children:[Ne.size(y)>0&&S.jsx(Yv,{context:"To",emails:y}),Ne.size(b)>0&&S.jsx(Yv,{context:"CC",emails:b}),Ne.size(v)>0&&S.jsx(Yv,{context:"BCC",emails:v})]})]}),S.jsx("div",{className:"ed-mt-2 ed-text-dark",children:C})]}),S.jsx(nU,{filesData:s})]}):null},k=i==null?void 0:i.some(R=>(R==null?void 0:R.status)!=="seen");return u?S.jsx("div",{className:"ed-max-w-[85%] ed-w-max ed-ml-auto",children:S.jsx(A,{})}):S.jsxs("div",{...k&&{"data-message-id":r},className:"ed-message ed-flex ed-gap-4 ed-my-4 ed-max-w-[85%] ed-w-max",children:[S.jsx("div",{className:"ed-size-7 ed-flex-shrink-0",children:S.jsx(ki,{className:"ed-size-7 ed-object-cover ed-rounded-full",alt:x,defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:_==null?void 0:_.key,defaultImageName:_==null?void 0:_.default_image_name})}),S.jsxs("div",{children:[S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[S.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:x}),S.jsx("span",{className:"ed-text-border ed-text-[13px] ed-font-medium",children:os(d).format(hU)})]}),n?S.jsx("div",{className:"ed-py-4",children:S.jsx(Bu,{})}):S.jsx(A,{})]})]})};var Kv={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CREATE_OR_UPDATE_A_CONVERSATION_ACTIVITY_REALTIME_STATUS"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationActivityRealtimeStatusCreateInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createOrUpdateAConversationActivityRealtimeStatus"},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:226}};Kv.loc.source={body:`mutation CREATE_OR_UPDATE_A_CONVERSATION_ACTIVITY_REALTIME_STATUS(
595
+ </div>`,is_customer_reply:!0},{message:c?a:i,is_customer_reply:!1}]}}}),k=A==null?void 0:A.createAConversationForPortal;k!=null&&k.id&&(n(k==null?void 0:k.id),_p("easydesk_chat_widget_conversation_id",k==null?void 0:k.id,{expires:30}),t==null||t({contact_person_name:p==null?void 0:p.contact_person_name,contact_person_email:p==null?void 0:p.contact_person_email}),u())}catch(A){const{message:k,response:R}=A;vn("error",((w=R==null?void 0:R.data)==null?void 0:w.message)||k,"top-left")}},_=C=>{const{name:w,value:A}=C.target;y(k=>({...k,[w]:A}))},T=N.useMemo(()=>!(p!=null&&p.contact_person_name)||!(p!=null&&p.contact_person_email)||!Ap(p==null?void 0:p.contact_person_email),[p]);return N.useEffect(()=>{const C=setTimeout(()=>{m(!1)},1e3);return()=>clearTimeout(C)},[]),S.jsxs("div",{className:"ed-space-y-5 ed-px-5 ed-pt-1",children:[S.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%]",children:[S.jsx(ki,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:s==null?void 0:s.logo_icon_key,defaultImageName:Ja(s==null?void 0:s.name)}),S.jsxs("div",{children:[S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[S.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:s==null?void 0:s.name}),S.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:os().format("HH:mm")})]}),h?S.jsx("div",{className:"ed-py-4",children:S.jsx(Ki,{})}):S.jsx("div",{className:"ed-p-2.5 ed-bg-white-light ed-text-[13px] ed-rounded-lg ed-mt-2",children:S.jsx("p",{className:"ed-text-border-dark",children:o})})]})]}),!h&&S.jsx("div",{className:"ed-max-w-[85%] ed-ml-auto",children:S.jsxs("form",{onSubmit:x,className:"ed-p-5 ed-rounded-[20px] ed-bg-white-light ed-space-y-5",children:[S.jsxs("div",{className:"ed-space-y-2",children:[S.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Name ",S.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),S.jsx("input",{type:"text",name:"contact_person_name",required:!0,placeholder:"Enter your name",value:p==null?void 0:p.contact_person_name,onChange:_,disabled:d,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 ed-text-14 ed-font-normal"})]}),S.jsxs("div",{className:"ed-space-y-2",children:[S.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Email ",S.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),S.jsx("input",{type:"email",name:"contact_person_email",required:!0,placeholder:"Enter your email",value:p==null?void 0:p.contact_person_email,onChange:_,disabled:d,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 ed-text-14 ed-font-normal"})]}),S.jsx("div",{className:"ed-flex ed-justify-end",children:S.jsx(rs,{title:"Submit",loaderText:"Submitting",fullWidthBtn:!0,disabled:T||v,loader:h||v,callBack:x})})]})})]})};/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:Wx,setPrototypeOf:Gx,isFrozen:MV,getPrototypeOf:LV,getOwnPropertyDescriptor:FV}=Object;let{freeze:qn,seal:Gr,create:jv}=Object,{apply:Dv,construct:Vv}=typeof Reflect<"u"&&Reflect;qn||(qn=function(e){return e}),Gr||(Gr=function(e){return e}),Dv||(Dv=function(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return e.apply(n,i)}),Vv||(Vv=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new e(...r)});const td=Xn(Array.prototype.forEach),jV=Xn(Array.prototype.lastIndexOf),Yx=Xn(Array.prototype.pop),dc=Xn(Array.prototype.push),DV=Xn(Array.prototype.splice),nd=Xn(String.prototype.toLowerCase),Uv=Xn(String.prototype.toString),Bv=Xn(String.prototype.match),hc=Xn(String.prototype.replace),VV=Xn(String.prototype.indexOf),UV=Xn(String.prototype.trim),pi=Xn(Object.prototype.hasOwnProperty),Jn=Xn(RegExp.prototype.test),pc=BV(TypeError);function Xn(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Dv(t,e,r)}}function BV(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Vv(t,n)}}function st(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:nd;Gx&&Gx(t,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const a=n(i);a!==i&&(MV(e)||(e[r]=a),i=a)}t[i]=!0}return t}function zV(t){for(let e=0;e<t.length;e++)pi(t,e)||(t[e]=null);return t}function Ni(t){const e=jv(null);for(const[n,r]of Wx(t))pi(t,n)&&(Array.isArray(r)?e[n]=zV(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=Ni(r):e[n]=r);return e}function mc(t,e){for(;t!==null;){const r=FV(t,e);if(r){if(r.get)return Xn(r.get);if(typeof r.value=="function")return Xn(r.value)}t=LV(t)}function n(){return null}return n}const Kx=qn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),zv=qn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Hv=qn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),HV=qn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Wv=qn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),WV=qn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Zx=qn(["#text"]),Qx=qn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Gv=qn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),qx=qn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),rd=qn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),GV=Gr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),YV=Gr(/<%[\w\W]*|[\w\W]*%>/gm),KV=Gr(/\$\{[\w\W]*/gm),ZV=Gr(/^data-[\-\w.\u00B7-\uFFFF]+$/),QV=Gr(/^aria-[\-\w]+$/),Jx=Gr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qV=Gr(/^(?:\w+script|data):/i),JV=Gr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Xx=Gr(/^html$/i),XV=Gr(/^[a-z][.\w]*(-[.\w]+)+$/i);var $x=Object.freeze({__proto__:null,ARIA_ATTR:QV,ATTR_WHITESPACE:JV,CUSTOM_ELEMENT:XV,DATA_ATTR:ZV,DOCTYPE_NAME:Xx,ERB_EXPR:YV,IS_ALLOWED_URI:Jx,IS_SCRIPT_OR_DATA:qV,MUSTACHE_EXPR:GV,TMPLIT_EXPR:KV});const gc={element:1,text:3,progressingInstruction:7,comment:8,document:9},$V=function(){return typeof window>"u"?null:window},eU=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},e8=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function t8(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$V();const e=ke=>t8(ke);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==gc.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:m,trustedTypes:p}=t,y=c.prototype,b=mc(y,"cloneNode"),v=mc(y,"remove"),x=mc(y,"nextSibling"),_=mc(y,"childNodes"),T=mc(y,"parentNode");if(typeof o=="function"){const ke=n.createElement("template");ke.content&&ke.content.ownerDocument&&(n=ke.content.ownerDocument)}let C,w="";const{implementation:A,createNodeIterator:k,createDocumentFragment:R,getElementsByTagName:I}=n,{importNode:U}=r;let D=e8();e.isSupported=typeof Wx=="function"&&typeof T=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:z,ERB_EXPR:Y,TMPLIT_EXPR:j,DATA_ATTR:F,ARIA_ATTR:V,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:B,CUSTOM_ELEMENT:q}=$x;let{IS_ALLOWED_URI:W}=$x,K=null;const te=st({},[...Kx,...zv,...Hv,...Wv,...Zx]);let ne=null;const ce=st({},[...Qx,...Gv,...qx,...rd]);let ie=Object.seal(jv(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),J=null,ue=null;const le=Object.seal(jv(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ve=!0,he=!0,be=!1,ee=!0,Ie=!1,ye=!0,Fe=!1,at=!1,Pe=!1,tt=!1,Ae=!1,nt=!1,Le=!0,Ze=!1;const _t="user-content-";let Ee=!0,$e=!1,At={},Ht=null;const Yt=st({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let bn=null;const dr=st({},["audio","video","img","source","image","track"]);let vt=null;const yt=st({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nn="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",jt="http://www.w3.org/1999/xhtml";let wn=jt,$t=!1,Hn=null;const Ji=st({},[nn,Xt,jt],Uv);let Yr=st({},["mi","mo","mn","ms","mtext"]),hr=st({},["annotation-xml"]);const Pi=st({},["title","style","font","a","script"]);let pr=null;const $n=["application/xhtml+xml","text/html"],sn="text/html";let Qe=null,Sn=null;const hn=n.createElement("form"),mt=function(Z){return Z instanceof RegExp||Z instanceof Function},ut=function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Sn&&Sn===Z)){if((!Z||typeof Z!="object")&&(Z={}),Z=Ni(Z),pr=$n.indexOf(Z.PARSER_MEDIA_TYPE)===-1?sn:Z.PARSER_MEDIA_TYPE,Qe=pr==="application/xhtml+xml"?Uv:nd,K=pi(Z,"ALLOWED_TAGS")?st({},Z.ALLOWED_TAGS,Qe):te,ne=pi(Z,"ALLOWED_ATTR")?st({},Z.ALLOWED_ATTR,Qe):ce,Hn=pi(Z,"ALLOWED_NAMESPACES")?st({},Z.ALLOWED_NAMESPACES,Uv):Ji,vt=pi(Z,"ADD_URI_SAFE_ATTR")?st(Ni(yt),Z.ADD_URI_SAFE_ATTR,Qe):yt,bn=pi(Z,"ADD_DATA_URI_TAGS")?st(Ni(dr),Z.ADD_DATA_URI_TAGS,Qe):dr,Ht=pi(Z,"FORBID_CONTENTS")?st({},Z.FORBID_CONTENTS,Qe):Yt,J=pi(Z,"FORBID_TAGS")?st({},Z.FORBID_TAGS,Qe):Ni({}),ue=pi(Z,"FORBID_ATTR")?st({},Z.FORBID_ATTR,Qe):Ni({}),At=pi(Z,"USE_PROFILES")?Z.USE_PROFILES:!1,ve=Z.ALLOW_ARIA_ATTR!==!1,he=Z.ALLOW_DATA_ATTR!==!1,be=Z.ALLOW_UNKNOWN_PROTOCOLS||!1,ee=Z.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ie=Z.SAFE_FOR_TEMPLATES||!1,ye=Z.SAFE_FOR_XML!==!1,Fe=Z.WHOLE_DOCUMENT||!1,tt=Z.RETURN_DOM||!1,Ae=Z.RETURN_DOM_FRAGMENT||!1,nt=Z.RETURN_TRUSTED_TYPE||!1,Pe=Z.FORCE_BODY||!1,Le=Z.SANITIZE_DOM!==!1,Ze=Z.SANITIZE_NAMED_PROPS||!1,Ee=Z.KEEP_CONTENT!==!1,$e=Z.IN_PLACE||!1,W=Z.ALLOWED_URI_REGEXP||Jx,wn=Z.NAMESPACE||jt,Yr=Z.MATHML_TEXT_INTEGRATION_POINTS||Yr,hr=Z.HTML_INTEGRATION_POINTS||hr,ie=Z.CUSTOM_ELEMENT_HANDLING||{},Z.CUSTOM_ELEMENT_HANDLING&&mt(Z.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ie.tagNameCheck=Z.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Z.CUSTOM_ELEMENT_HANDLING&&mt(Z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ie.attributeNameCheck=Z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Z.CUSTOM_ELEMENT_HANDLING&&typeof Z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ie.allowCustomizedBuiltInElements=Z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(he=!1),Ae&&(tt=!0),At&&(K=st({},Zx),ne=[],At.html===!0&&(st(K,Kx),st(ne,Qx)),At.svg===!0&&(st(K,zv),st(ne,Gv),st(ne,rd)),At.svgFilters===!0&&(st(K,Hv),st(ne,Gv),st(ne,rd)),At.mathMl===!0&&(st(K,Wv),st(ne,qx),st(ne,rd))),Z.ADD_TAGS&&(typeof Z.ADD_TAGS=="function"?le.tagCheck=Z.ADD_TAGS:(K===te&&(K=Ni(K)),st(K,Z.ADD_TAGS,Qe))),Z.ADD_ATTR&&(typeof Z.ADD_ATTR=="function"?le.attributeCheck=Z.ADD_ATTR:(ne===ce&&(ne=Ni(ne)),st(ne,Z.ADD_ATTR,Qe))),Z.ADD_URI_SAFE_ATTR&&st(vt,Z.ADD_URI_SAFE_ATTR,Qe),Z.FORBID_CONTENTS&&(Ht===Yt&&(Ht=Ni(Ht)),st(Ht,Z.FORBID_CONTENTS,Qe)),Z.ADD_FORBID_CONTENTS&&(Ht===Yt&&(Ht=Ni(Ht)),st(Ht,Z.ADD_FORBID_CONTENTS,Qe)),Ee&&(K["#text"]=!0),Fe&&st(K,["html","head","body"]),K.table&&(st(K,["tbody"]),delete J.tbody),Z.TRUSTED_TYPES_POLICY){if(typeof Z.TRUSTED_TYPES_POLICY.createHTML!="function")throw pc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Z.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw pc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=Z.TRUSTED_TYPES_POLICY,w=C.createHTML("")}else C===void 0&&(C=eU(p,i)),C!==null&&typeof w=="string"&&(w=C.createHTML(""));qn&&qn(Z),Sn=Z}},Wt=st({},[...zv,...Hv,...HV]),er=st({},[...Wv,...WV]),pn=function(Z){let pe=T(Z);(!pe||!pe.tagName)&&(pe={namespaceURI:wn,tagName:"template"});const _e=nd(Z.tagName),wt=nd(pe.tagName);return Hn[Z.namespaceURI]?Z.namespaceURI===Xt?pe.namespaceURI===jt?_e==="svg":pe.namespaceURI===nn?_e==="svg"&&(wt==="annotation-xml"||Yr[wt]):!!Wt[_e]:Z.namespaceURI===nn?pe.namespaceURI===jt?_e==="math":pe.namespaceURI===Xt?_e==="math"&&hr[wt]:!!er[_e]:Z.namespaceURI===jt?pe.namespaceURI===Xt&&!hr[wt]||pe.namespaceURI===nn&&!Yr[wt]?!1:!er[_e]&&(Pi[_e]||!Wt[_e]):!!(pr==="application/xhtml+xml"&&Hn[Z.namespaceURI]):!1},ht=function(Z){dc(e.removed,{element:Z});try{T(Z).removeChild(Z)}catch{v(Z)}},Nn=function(Z,pe){try{dc(e.removed,{attribute:pe.getAttributeNode(Z),from:pe})}catch{dc(e.removed,{attribute:null,from:pe})}if(pe.removeAttribute(Z),Z==="is")if(tt||Ae)try{ht(pe)}catch{}else try{pe.setAttribute(Z,"")}catch{}},mr=function(Z){let pe=null,_e=null;if(Pe)Z="<remove></remove>"+Z;else{const kt=Bv(Z,/^[\r\n\t ]+/);_e=kt&&kt[0]}pr==="application/xhtml+xml"&&wn===jt&&(Z='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Z+"</body></html>");const wt=C?C.createHTML(Z):Z;if(wn===jt)try{pe=new m().parseFromString(wt,pr)}catch{}if(!pe||!pe.documentElement){pe=A.createDocument(wn,"template",null);try{pe.documentElement.innerHTML=$t?w:wt}catch{}}const Gt=pe.body||pe.documentElement;return Z&&_e&&Gt.insertBefore(n.createTextNode(_e),Gt.childNodes[0]||null),wn===jt?I.call(pe,Fe?"html":"body")[0]:Fe?pe.documentElement:Gt},bt=function(Z){return k.call(Z.ownerDocument||Z,Z,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Dt=function(Z){return Z instanceof h&&(typeof Z.nodeName!="string"||typeof Z.textContent!="string"||typeof Z.removeChild!="function"||!(Z.attributes instanceof d)||typeof Z.removeAttribute!="function"||typeof Z.setAttribute!="function"||typeof Z.namespaceURI!="string"||typeof Z.insertBefore!="function"||typeof Z.hasChildNodes!="function")},mn=function(Z){return typeof s=="function"&&Z instanceof s};function Pt(ke,Z,pe){td(ke,_e=>{_e.call(e,Z,pe,Sn)})}const tr=function(Z){let pe=null;if(Pt(D.beforeSanitizeElements,Z,null),Dt(Z))return ht(Z),!0;const _e=Qe(Z.nodeName);if(Pt(D.uponSanitizeElement,Z,{tagName:_e,allowedTags:K}),ye&&Z.hasChildNodes()&&!mn(Z.firstElementChild)&&Jn(/<[/\w!]/g,Z.innerHTML)&&Jn(/<[/\w!]/g,Z.textContent)||Z.nodeType===gc.progressingInstruction||ye&&Z.nodeType===gc.comment&&Jn(/<[/\w]/g,Z.data))return ht(Z),!0;if(!(le.tagCheck instanceof Function&&le.tagCheck(_e))&&(!K[_e]||J[_e])){if(!J[_e]&&Wn(_e)&&(ie.tagNameCheck instanceof RegExp&&Jn(ie.tagNameCheck,_e)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(_e)))return!1;if(Ee&&!Ht[_e]){const wt=T(Z)||Z.parentNode,Gt=_(Z)||Z.childNodes;if(Gt&&wt){const kt=Gt.length;for(let ln=kt-1;ln>=0;--ln){const nr=b(Gt[ln],!0);nr.__removalCount=(Z.__removalCount||0)+1,wt.insertBefore(nr,x(Z))}}}return ht(Z),!0}return Z instanceof c&&!pn(Z)||(_e==="noscript"||_e==="noembed"||_e==="noframes")&&Jn(/<\/no(script|embed|frames)/i,Z.innerHTML)?(ht(Z),!0):(Ie&&Z.nodeType===gc.text&&(pe=Z.textContent,td([z,Y,j],wt=>{pe=hc(pe,wt," ")}),Z.textContent!==pe&&(dc(e.removed,{element:Z.cloneNode()}),Z.textContent=pe)),Pt(D.afterSanitizeElements,Z,null),!1)},Kr=function(Z,pe,_e){if(Le&&(pe==="id"||pe==="name")&&(_e in n||_e in hn))return!1;if(!(he&&!ue[pe]&&Jn(F,pe))){if(!(ve&&Jn(V,pe))){if(!(le.attributeCheck instanceof Function&&le.attributeCheck(pe,Z))){if(!ne[pe]||ue[pe]){if(!(Wn(Z)&&(ie.tagNameCheck instanceof RegExp&&Jn(ie.tagNameCheck,Z)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(Z))&&(ie.attributeNameCheck instanceof RegExp&&Jn(ie.attributeNameCheck,pe)||ie.attributeNameCheck instanceof Function&&ie.attributeNameCheck(pe,Z))||pe==="is"&&ie.allowCustomizedBuiltInElements&&(ie.tagNameCheck instanceof RegExp&&Jn(ie.tagNameCheck,_e)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(_e))))return!1}else if(!vt[pe]){if(!Jn(W,hc(_e,B,""))){if(!((pe==="src"||pe==="xlink:href"||pe==="href")&&Z!=="script"&&VV(_e,"data:")===0&&bn[Z])){if(!(be&&!Jn(G,hc(_e,B,"")))){if(_e)return!1}}}}}}}return!0},Wn=function(Z){return Z!=="annotation-xml"&&Bv(Z,q)},Ln=function(Z){Pt(D.beforeSanitizeAttributes,Z,null);const{attributes:pe}=Z;if(!pe||Dt(Z))return;const _e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let wt=pe.length;for(;wt--;){const Gt=pe[wt],{name:kt,namespaceURI:ln,value:nr}=Gt,vr=Qe(kt),mi=nr;let Ft=kt==="value"?mi:UV(mi);if(_e.attrName=vr,_e.attrValue=Ft,_e.keepAttr=!0,_e.forceKeepAttr=void 0,Pt(D.uponSanitizeAttribute,Z,_e),Ft=_e.attrValue,Ze&&(vr==="id"||vr==="name")&&(Nn(kt,Z),Ft=_t+Ft),ye&&Jn(/((--!?|])>)|<\/(style|title|textarea)/i,Ft)){Nn(kt,Z);continue}if(vr==="attributename"&&Bv(Ft,"href")){Nn(kt,Z);continue}if(_e.forceKeepAttr)continue;if(!_e.keepAttr){Nn(kt,Z);continue}if(!ee&&Jn(/\/>/i,Ft)){Nn(kt,Z);continue}Ie&&td([z,Y,j],Ii=>{Ft=hc(Ft,Ii," ")});const Zr=Qe(Z.nodeName);if(!Kr(Zr,vr,Ft)){Nn(kt,Z);continue}if(C&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!ln)switch(p.getAttributeType(Zr,vr)){case"TrustedHTML":{Ft=C.createHTML(Ft);break}case"TrustedScriptURL":{Ft=C.createScriptURL(Ft);break}}if(Ft!==mi)try{ln?Z.setAttributeNS(ln,kt,Ft):Z.setAttribute(kt,Ft),Dt(Z)?ht(Z):Yx(e.removed)}catch{Nn(kt,Z)}}Pt(D.afterSanitizeAttributes,Z,null)},gr=function ke(Z){let pe=null;const _e=bt(Z);for(Pt(D.beforeSanitizeShadowDOM,Z,null);pe=_e.nextNode();)Pt(D.uponSanitizeShadowNode,pe,null),tr(pe),Ln(pe),pe.content instanceof a&&ke(pe.content);Pt(D.afterSanitizeShadowDOM,Z,null)};return e.sanitize=function(ke){let Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=null,_e=null,wt=null,Gt=null;if($t=!ke,$t&&(ke="<!-->"),typeof ke!="string"&&!mn(ke))if(typeof ke.toString=="function"){if(ke=ke.toString(),typeof ke!="string")throw pc("dirty is not a string, aborting")}else throw pc("toString is not a function");if(!e.isSupported)return ke;if(at||ut(Z),e.removed=[],typeof ke=="string"&&($e=!1),$e){if(ke.nodeName){const nr=Qe(ke.nodeName);if(!K[nr]||J[nr])throw pc("root node is forbidden and cannot be sanitized in-place")}}else if(ke instanceof s)pe=mr("<!---->"),_e=pe.ownerDocument.importNode(ke,!0),_e.nodeType===gc.element&&_e.nodeName==="BODY"||_e.nodeName==="HTML"?pe=_e:pe.appendChild(_e);else{if(!tt&&!Ie&&!Fe&&ke.indexOf("<")===-1)return C&&nt?C.createHTML(ke):ke;if(pe=mr(ke),!pe)return tt?null:nt?w:""}pe&&Pe&&ht(pe.firstChild);const kt=bt($e?ke:pe);for(;wt=kt.nextNode();)tr(wt),Ln(wt),wt.content instanceof a&&gr(wt.content);if($e)return ke;if(tt){if(Ae)for(Gt=R.call(pe.ownerDocument);pe.firstChild;)Gt.appendChild(pe.firstChild);else Gt=pe;return(ne.shadowroot||ne.shadowrootmode)&&(Gt=U.call(r,Gt,!0)),Gt}let ln=Fe?pe.outerHTML:pe.innerHTML;return Fe&&K["!doctype"]&&pe.ownerDocument&&pe.ownerDocument.doctype&&pe.ownerDocument.doctype.name&&Jn(Xx,pe.ownerDocument.doctype.name)&&(ln="<!DOCTYPE "+pe.ownerDocument.doctype.name+`>
596
+ `+ln),Ie&&td([z,Y,j],nr=>{ln=hc(ln,nr," ")}),C&&nt?C.createHTML(ln):ln},e.setConfig=function(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ut(ke),at=!0},e.clearConfig=function(){Sn=null,at=!1},e.isValidAttribute=function(ke,Z,pe){Sn||ut({});const _e=Qe(ke),wt=Qe(Z);return Kr(_e,wt,pe)},e.addHook=function(ke,Z){typeof Z=="function"&&dc(D[ke],Z)},e.removeHook=function(ke,Z){if(Z!==void 0){const pe=jV(D[ke],Z);return pe===-1?void 0:DV(D[ke],pe,1)[0]}return Yx(D[ke])},e.removeHooks=function(ke){D[ke]=[]},e.removeAllHooks=function(){D=e8()},e}var n8=t8();const tU=({previewImageInfo:t,setPreviewImageInfo:e,isPrivate:n=!1})=>{const[r,i]=N.useState(1),a=N.useRef(null),o=()=>{e(kp),i(1)};N.useEffect(()=>{const b=v=>{v.key==="Escape"&&o()};return window.addEventListener("keydown",b),()=>{window.removeEventListener("keydown",b)}},[]);const{fileName:s,isOpen:c,loading:u,error:d,url:h,height:m,width:p}=t||{},y=N.useMemo(()=>h==null?void 0:h.split("?")[0].split("/").pop(),[h]);return S.jsx("div",{children:c&&S.jsxs("div",{className:"ed-overflow-hidden",children:[S.jsx("div",{className:"ed-h-full ed-w-full ed-z-[1000] ed-fixed ed-bg-black/80 ed-inset-0"}),S.jsxs("div",{className:"ed-size-full ed-flex items-center ed-w-full ed-h-full ed-justify-center ed-overflow-hidden ed-fixed ed-top-9 ed-left-0 ed-z-[1100]",children:[u?S.jsx(Bu,{}):!d&&h&&S.jsx("div",{ref:a,style:{transform:`scale(${r})`,transformOrigin:"center center",transition:"transform 0.2s ease-out"},children:S.jsx(ki,{alt:"Feedback attachment",className:"ed-max-w-[90vw] ed-max-h-[90vh] ed-object-contain ed-select-none",height:m,src:h,width:p,isPrivate:n})}),d&&S.jsx("p",{className:"ed-text-14 ed-font-semibold ed-text-red",children:d})]}),S.jsxs("div",{className:"ed-fixed ed-z-[1100] ed-top-5 ed-right-16 ed-flex ed-items-center ed-gap-3",children:[S.jsx("a",{href:`${h}&dl=${s||y}`,className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors ed-bg-black/50 ed-rounded-lg ed-p-2",title:"Download",children:S.jsx(om,{className:"ed-size-4",strokeWidth:"2"})}),S.jsx("button",{type:"button",className:"ed-fixed ed-z-[1100] ed-top-5 ed-right-5 ed-text-white ed-hover:text-gray-300 ed-transition-colors ed-bg-black/50 ed-rounded-lg ed-p-2",onClick:o,title:"Close (Esc)",children:S.jsx(_i,{className:"ed-size-4",strokeWidth:"2"})})]}),!u&&!d&&S.jsx("div",{className:"ed-fixed ed-z-[1100] ed-bottom-5 ed-left-1/2 ed-transform -ed-translate-x-1/2",children:S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-bg-black/70 ed-rounded-lg ed-p-3",children:[S.jsx("button",{type:"button",className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors",onClick:()=>i(b=>Math.max(b/1.5,.5)),disabled:r<=.5,title:"Zoom Out",children:S.jsx(jm,{className:"ed-size-5",strokeWidth:"2"})}),S.jsxs("span",{className:"ed-text-white ed-text-sm ed-min-w-[3rem] ed-text-center ed-font-medium",children:[Math.round(r*100),"%"]}),S.jsx("button",{type:"button",className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors",onClick:()=>i(b=>Math.min(b*1.5,5)),disabled:r>=5,title:"Zoom In",children:S.jsx(Lm,{className:"ed-size-5",strokeWidth:"2"})}),S.jsx("div",{className:"ed-w-px ed-h-5 ed-bg-white/30 ed-mx-1"}),S.jsx("button",{type:"button",className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors",onClick:()=>i(1),title:"Reset",children:S.jsx(gm,{className:"ed-size-5",strokeWidth:"2"})})]})})]})})},nU=({filesData:t=[]})=>{var m;const[e,n]=N.useState(!1),[r,i]=N.useState(kp),a=t==null?void 0:t.filter(p=>/\.(jpg|jpeg|png|gif|webp)$/i.test(p.name)),o=t==null?void 0:t.filter(p=>!/\.(jpg|jpeg|png|gif|webp)$/i.test(p.name)),s=()=>n(!0),c=e?a:a==null?void 0:a.slice(0,2),u=Ne.size(a)-2,d=p=>{try{const y=`${Ak()}?id=${p}&download=true`;y&&window.open(y,"_blank")}catch(y){console.error(y)}},h=async p=>{i(y=>({...y,loading:!0}));try{const y=await g6({fit:"scale",isPrivate:!1,needActualSize:!0,path:p==null?void 0:p.key,quality:100});if(y){const b=await Ok(y);i(v=>({...v,isOpen:!0,url:y,fileName:p==null?void 0:p.title,image:y,loading:!1,height:b==null?void 0:b.height,width:b==null?void 0:b.width}))}}catch{i({...kp,error:"Failed to load image"})}};return S.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-3",children:[Ne.size(a)>0&&S.jsxs("div",{className:"ed-grid ed-grid-cols-2 ed-gap-2.5",children:[c.map(p=>S.jsx("div",{onClick:()=>h(p),role:"button",tabIndex:0,children:S.jsx(ki,{path:p.key,className:"ed-w-full ed-rounded",defaultImageClasses:"ed-w-full ed-h-20 !ed-rounded"})},p==null?void 0:p.id)),!e&&u>0&&S.jsxs("div",{role:"button",tabIndex:0,className:"ed-relative cursor-pointer",onClick:s,children:[S.jsx(ki,{path:(m=a[2])==null?void 0:m.key,className:"ed-w-full ed-rounded",defaultImageClasses:"ed-w-full ed-h-20 !ed-rounded"}),S.jsx("div",{className:"ed-w-full ed-h-full ed-bg-black/15 ed-absolute ed-top-0 ed-left-0 ed-rounded",children:S.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:S.jsxs("span",{className:"ed-text-12 ed-text-border-dark ed-font-semibold",children:["+",u]})})})]})]}),Ne.size(o)>0&&S.jsx("div",{className:"ed-flex ed-flex-col ed-gap-2.5",children:o.map(p=>S.jsxs("div",{className:"ed-p-2.5 ed-bg-white-light ed-rounded-lg ed-flex ed-items-center ed-gap-2 ed-justify-between",children:[S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[S.jsx("div",{className:"ed-flex-shrink-0",children:S.jsx(rP,{})}),S.jsx("p",{title:p.title,className:"ed-text-12 ed-font-semibold ed-text-border-dark",children:Tp(p.title,20)})]}),S.jsx("button",{className:"ed-flex-shrink-0",type:"button",onClick:()=>d(p==null?void 0:p.id),children:S.jsx(lm,{className:"ed-text-brand-link ed-size-5"})})]},p==null?void 0:p.id))}),(r==null?void 0:r.isOpen)&&S.jsx(tU,{previewImageInfo:r,setPreviewImageInfo:i})]})},Yv=({context:t,emails:e})=>S.jsxs("div",{className:"ed-flex ed-items-start ed-gap-2 ",children:[S.jsxs("p",{className:"ed-text-dark",children:[t,":"]}),S.jsx("div",{className:"ed-flex ed-flex-wrap ed-gap-1",children:e.slice(0,3).map((n,r)=>S.jsxs("p",{className:"ed-text-regular ed-flex ed-items-center ed-gap-2",children:[Tp(n,30),r===2&&Ne.size(e)-3>0?S.jsx(Sv,{classNames:{body:"ed-text-regular"},zIndex:99999999,placement:"top",title:e.join(", "),children:S.jsxs("span",{className:"ed-text-brand ed-cursor-pointer",children:["+",Ne.size(e)-3," more"]})}):""]},n))})]});var id={exports:{}},rU=id.exports,r8;function iU(){return r8||(r8=1,(function(t,e){(function(n,r){t.exports=r()})(rU,(function(){return function(n,r,i){n=n||{};var a=r.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(u,d,h,m){return a.fromToBase(u,d,h,m)}i.en.relativeTime=o,a.fromToBase=function(u,d,h,m,p){for(var y,b,v,x=h.$locale().relativeTime||o,_=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],T=_.length,C=0;C<T;C+=1){var w=_[C];w.d&&(y=m?i(u).diff(h,w.d,!0):h.diff(u,w.d,!0));var A=(n.rounding||Math.round)(Math.abs(y));if(v=y>0,A<=w.r||!w.r){A<=1&&C>0&&(w=_[C-1]);var k=x[w.l];p&&(A=p(""+A)),b=typeof k=="string"?k.replace("%d",A):k(A,d,w.l,v);break}}if(d)return b;var R=v?x.future:x.past;return typeof R=="function"?R(b):R.replace("%s",b)},a.to=function(u,d){return s(u,d,this,!0)},a.from=function(u,d){return s(u,d,this)};var c=function(u){return u.$u?i.utc():i()};a.toNow=function(u){return this.to(c(this),u)},a.fromNow=function(u){return this.from(c(this),u)}}}))})(id)),id.exports}var aU=iU();const oU=qa(aU);os.extend(oU);const sU=async(t,e)=>{const{policy:n,file:r}=t||{};return(await e1(n,r)).success?{name:t==null?void 0:t.name,title:r==null?void 0:r.name,size:r==null?void 0:r.size,sub_type:e,type:"conversation_activity_attachment"}:{}},lU=async(t,e)=>{var r;const n=[];try{const i=[];for(let a=0;a<t.length;a+=1)(r=t[a])!=null&&r.id||i.push(sU(t[a],e));n.push(...await Promise.all(i))}catch(i){console.error("Error occurred during file upload:",i),vn("error","File upload fails","top-left")}return n};function cU(t){if(!t)return"";const e=os(t),n=os();return e.isValid()?n.diff(e,"minute")<1?"Just now":e.fromNow():""}const uU={open:{label:"Open",className:"ed-bg-[#DDF2FF] ed-text-[#1173C8] ed-border ed-border-[#A4D1F1] ed-rounded-full"},resolved:{label:"Resolved",className:"ed-bg-[#DBF8E2] ed-text-[#0E9342] ed-border ed-border-[#96D4AB] ed-rounded-full"}},fU=t=>{if(!t)return"";if(typeof window>"u")return t;const e=n8.sanitize(t,{FORBID_TAGS:["script"],FORBID_ATTR:["style","class"]}),n=document.createElement("div");return n.innerHTML=e,n.textContent||n.innerText||""},dU=(t=[],e=!1)=>{const n=[],r=[],i=[];return Ne.forEach(t,a=>{(a==null?void 0:a.type)==="to_email"&&(e?!(a!=null&&a.is_channel)&&!n.includes(a==null?void 0:a.email)&&n.push(a==null?void 0:a.email):n.push(a==null?void 0:a.email)),(a==null?void 0:a.type)==="cc_email"&&(e?Ne.some(r,{person_email:a==null?void 0:a.email})||r.push({person_email:a==null?void 0:a.email}):r.push(a==null?void 0:a.email)),(a==null?void 0:a.type)==="bcc_email"&&i.push(a==null?void 0:a.email)}),{toEmails:n,ccEmails:r,bccEmails:i}},hU="hh:mm A",i8=({activityMessage:t={},brand:e={},isReplying:n=!1})=>{const{id:r,analytics:i,emails:a=[],user:o,files:s,message:c,is_customer_reply:u,created_at:d}=t||{},[h,m]=N.useState(!1),p=()=>{m(!h)},{toEmails:y,ccEmails:b,bccEmails:v}=dU(a),x=N.useMemo(()=>o!=null&&o.id?gu(o==null?void 0:o.first_name,o==null?void 0:o.last_name,o==null?void 0:o.email):(e==null?void 0:e.name)||"",[o==null?void 0:o.id]),_=N.useMemo(()=>o!=null&&o.id?{...(o==null?void 0:o.avatar_file)||{},default_image_name:Ja(o==null?void 0:o.first_name,o==null?void 0:o.last_name,o==null?void 0:o.email)}:{key:e==null?void 0:e.logo_icon_key,default_image_name:Ja(e==null?void 0:e.name)},[o==null?void 0:o.id]),T=N.useMemo(()=>n||!c?"":n8.sanitize(c),[c,n]),C=!n&&jl(T),w=N.isValidElement(C)?"div":"p",A=()=>{var R,I,U,D,z,Y;return C?S.jsxs("div",{className:`ed-p-2.5 ${u?"ed-bg-blue-light":"ed-bg-white-light"} ${(I=(R=C==null?void 0:C.props)==null?void 0:R.className)!=null&&I.includes("form-response")?"ed-p-0 ed-bg-white":""} ed-rounded-lg ed-mt-2 ed-text-[13px]`,children:[S.jsxs(w,{className:`ed-text-border-dark ${(D=(U=C==null?void 0:C.props)==null?void 0:U.className)!=null&&D.includes("form-response")||(Y=(z=C==null?void 0:C.props)==null?void 0:z.className)!=null&&Y.includes("selected-channel")?"":"ed-whitespace-pre-line ed-break-words"}`,children:[Ne.size(a)>0&&S.jsxs("div",{className:"ed-border-b ed-pb-2",children:[S.jsxs("button",{type:"button",onClick:p,className:"ed-flex ed-gap-1 ed-text-regular ed-items-center",children:[S.jsx("span",{children:h?S.jsx(Tu,{className:"ed-size-4"}):S.jsx(Zo,{className:"ed-size-4"})})," ",S.jsxs("span",{children:[h?"Hide":"View"," recipient"]})]}),h&&S.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-2 ed-mt-2",children:[Ne.size(y)>0&&S.jsx(Yv,{context:"To",emails:y}),Ne.size(b)>0&&S.jsx(Yv,{context:"CC",emails:b}),Ne.size(v)>0&&S.jsx(Yv,{context:"BCC",emails:v})]})]}),S.jsx("div",{className:"ed-mt-2 ed-text-dark",children:C})]}),S.jsx(nU,{filesData:s})]}):null},k=i==null?void 0:i.some(R=>(R==null?void 0:R.status)!=="seen");return u?S.jsx("div",{className:"ed-max-w-[85%] ed-w-max ed-ml-auto",children:S.jsx(A,{})}):S.jsxs("div",{...k&&{"data-message-id":r},className:"ed-message ed-flex ed-gap-4 ed-my-4 ed-max-w-[85%] ed-w-max",children:[S.jsx("div",{className:"ed-size-7 ed-flex-shrink-0",children:S.jsx(ki,{className:"ed-size-7 ed-object-cover ed-rounded-full",alt:x,defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:_==null?void 0:_.key,defaultImageName:_==null?void 0:_.default_image_name})}),S.jsxs("div",{children:[S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[S.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:x}),S.jsx("span",{className:"ed-text-border ed-text-[13px] ed-font-medium",children:os(d).format(hU)})]}),n?S.jsx("div",{className:"ed-py-4",children:S.jsx(Bu,{})}):S.jsx(A,{})]})]})};var Kv={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CREATE_OR_UPDATE_A_CONVERSATION_ACTIVITY_REALTIME_STATUS"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationActivityRealtimeStatusCreateInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createOrUpdateAConversationActivityRealtimeStatus"},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:226}};Kv.loc.source={body:`mutation CREATE_OR_UPDATE_A_CONVERSATION_ACTIVITY_REALTIME_STATUS(
596
597
  $inputData: ConversationActivityRealtimeStatusCreateInputType!
597
598
  ) {
598
599
  createOrUpdateAConversationActivityRealtimeStatus(inputData: $inputData) {
@@ -622,7 +623,7 @@ html body {
622
623
  type
623
624
  }
624
625
  }
625
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function sd(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){sd(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){sd(r,e)}),t.definitions&&t.definitions.forEach(function(r){sd(r,e)})}var Xv={};(function(){Jv.definitions.forEach(function(e){if(e.name){var n=new Set;sd(e,n),Xv[e.name.value]=n}})})();function l8(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function wU(t,e){var n={kind:t.kind,definitions:[l8(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=Xv[e]||new Set,i=new Set,a=new Set;for(r.forEach(function(s){a.add(s)});a.size>0;){var o=a;a=new Set,o.forEach(function(s){if(!i.has(s)){i.add(s);var c=Xv[s]||new Set;c.forEach(function(u){a.add(u)})}})}return i.forEach(function(s){var c=l8(t,s);c&&n.definitions.push(c)}),n}const SU=wU(Jv,"CREATE_A_CONVERSATION_ACTIVITY_FOR_PORTAL"),EU=({orgBrandSetting:t={},userData:e={},currentConversationID:n,setCurrentConversationID:r})=>{var W,K,te,ne,ce,ie;const{conversationData:i,setConversationData:a,initialStatesData:o,conversationState:s,setConversationState:c,isGettingConversationActivities:u,isGettingAConversation:d,handleUpdateConversationActivityAnalytics:h,inputFieldState:m,setInputFieldState:p}=fc(),y=N.useRef(null),b=N.useRef(null),v=jr.get("easydesk_chat_widget_conversation_id"),{brand:x,agent_followup_message:_,agent_confirmation_message:T}=t,[C,w]=N.useState([]),[A,k]=N.useState(null),R=n||v,[I]=Ya(s8,{errorPolicy:"all",fetchPolicy:"no-cache"}),U=async()=>{var ue;const J=await I();(ue=J==null?void 0:J.data)!=null&&ue.getChannelsForPortal&&w(J.data.getChannelsForPortal.data),J!=null&&J.error&&console.error(J.error)},[D]=ma(SU),z=async(J,ue=!1)=>{var le;try{const{data:ve}=await D({variables:{inputData:{conversation_id:R,...J}}}),he=ve==null?void 0:ve.createAConversationActivityForPortal;if(he!=null&&he.id)return ue||c(be=>({...be,messages:[...be.messages,he]})),he}catch(ve){const{message:he,response:be}=ve;k(he),he!=="BRAND_WENT_OFF_HOUR"&&vn("error",((le=be==null?void 0:be.data)==null?void 0:le.message)||he,"top-left")}return{}},Y=async J=>{var ue;try{const le=Ne.size(J.conversation_activity_files)>0?`<div>
626
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function sd(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){sd(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){sd(r,e)}),t.definitions&&t.definitions.forEach(function(r){sd(r,e)})}var Xv={};(function(){Jv.definitions.forEach(function(e){if(e.name){var n=new Set;sd(e,n),Xv[e.name.value]=n}})})();function l8(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function wU(t,e){var n={kind:t.kind,definitions:[l8(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=Xv[e]||new Set,i=new Set,a=new Set;for(r.forEach(function(s){a.add(s)});a.size>0;){var o=a;a=new Set,o.forEach(function(s){if(!i.has(s)){i.add(s);var c=Xv[s]||new Set;c.forEach(function(u){a.add(u)})}})}return i.forEach(function(s){var c=l8(t,s);c&&n.definitions.push(c)}),n}const SU=wU(Jv,"CREATE_A_CONVERSATION_ACTIVITY_FOR_PORTAL"),EU=({orgBrandSetting:t={},userData:e={},currentConversationID:n,setCurrentConversationID:r})=>{var W,K,te,ne,ce,ie;const{conversationData:i,setConversationData:a,initialStatesData:o,conversationState:s,setConversationState:c,isGettingConversationActivities:u,isGettingAConversation:d,handleUpdateConversationActivityAnalytics:h,inputFieldState:m,setInputFieldState:p}=fc(),y=N.useRef(null),b=N.useRef(null),v=jr.get("easydesk_chat_widget_conversation_id"),{brand:x,agent_followup_message:_,agent_confirmation_message:T}=t,[C,w]=N.useState([]),[A,k]=N.useState(null),R=n||v,[I]=Ka(s8,{errorPolicy:"all",fetchPolicy:"no-cache"}),U=async()=>{var ue;const J=await I();(ue=J==null?void 0:J.data)!=null&&ue.getChannelsForPortal&&w(J.data.getChannelsForPortal.data),J!=null&&J.error&&console.error(J.error)},[D]=ma(SU),z=async(J,ue=!1)=>{var le;try{const{data:ve}=await D({variables:{inputData:{conversation_id:R,...J}}}),he=ve==null?void 0:ve.createAConversationActivityForPortal;if(he!=null&&he.id)return ue||c(be=>({...be,messages:[...be.messages,he]})),he}catch(ve){const{message:he,response:be}=ve;k(he),he!=="BRAND_WENT_OFF_HOUR"&&vn("error",((le=be==null?void 0:be.data)==null?void 0:le.message)||he,"top-left")}return{}},Y=async J=>{var ue;try{const le=Ne.size(J.conversation_activity_files)>0?`<div>
626
627
  <h6 class="ed-text-14 ed-font-semibold ed-text-border-dark ed-pb-2">Attachment</h6>
627
628
  ${J.conversation_activity_files.map(be=>{var Pe,tt,Ae;const ee=URL.createObjectURL(be==null?void 0:be.file),Ie=((Pe=be==null?void 0:be.file)==null?void 0:Pe.name)||"file",ye=(tt=be==null?void 0:be.file)!=null&&tt.size?(be.file.size/(1024*1024)).toFixed(2):"0.00";return` <div class="ed-flex ed-gap-2 ed-pb-1 ed-items-center">
628
629
  <div
@@ -664,7 +665,7 @@ html body {
664
665
  <p className="ed-text-border-regular ed-whitespace-pre-line">${J==null?void 0:J.message}</p>
665
666
  </div>
666
667
  ${le}
667
- </div>`,he=await z({is_customer_reply:!0,message:ve,conversation_id:J==null?void 0:J.conversation_id});he!=null&&he.id&&(p(be=>({...be,ticket_title:J==null?void 0:J.ticket_title,ticket_activity:J==null?void 0:J.ticket_activity,conversation_activity_files:J==null?void 0:J.conversation_activity_files})),await z({is_customer_reply:!1,message:T},!0))}catch(le){const{message:ve,response:he}=le;vn("error",((ue=he==null?void 0:he.data)==null?void 0:ue.message)||ve,"top-left")}},j=async J=>{var ue;try{const le=await z(J);le!=null&&le.id&&await z({is_customer_reply:!1,message:_},!0)}catch(le){const{message:ve,response:he}=le;vn("error",((ue=he==null?void 0:he.data)==null?void 0:ue.message)||ve,"top-left")}},F=()=>{c(o.conversationState),p(o.inputFieldState),k(!1),jr.remove("easydesk_chat_widget_conversation_id"),a({})},V=((W=s==null?void 0:s.metaData)==null?void 0:W.filtered_rows)&&Ne.size(s==null?void 0:s.messages)<((K=s==null?void 0:s.metaData)==null?void 0:K.filtered_rows),G=()=>{c(J=>({...J,loadingActivities:!0,optionData:{...J.optionData,offset:J.optionData.offset+J.optionData.limit}}))};N.useEffect(()=>{Ne.size(s==null?void 0:s.messages)===3?U():w([])},[Ne.size(s==null?void 0:s.messages)]),N.useEffect(()=>{const J=setTimeout(()=>{var ve;const ue=(ve=y.current)==null?void 0:ve.querySelectorAll(".single-message"),le=ue==null?void 0:ue[Ne.size(ue)-1];le==null||le.scrollIntoView({behavior:"smooth",block:"nearest"})},200);return()=>clearTimeout(J)},[Ne.size(s==null?void 0:s.messages)]),N.useEffect(()=>{R&&(b.current=null)},[R]);const B=(i==null?void 0:i.is_spam)||["closed","resolved"].includes(i==null?void 0:i.status),{is_initiated_at_off_hour:q}=i||{};return N.useEffect(()=>{let J=[];const ue=Ne.debounce(async()=>{await h({seen_activity_ids:J}),J=[]},1e3),le=new IntersectionObserver(he=>{he.forEach(be=>{if(be.isIntersecting){const ee=be.target.getAttribute("data-message-id");ee&&J.push(ee)}}),Ne.size(J)&&ue()},{threshold:1}),ve=document.querySelectorAll(".ed-message");return ve.forEach(he=>le.observe(he)),()=>{ue.cancel(),ve.forEach(he=>le.unobserve(he))}},[s==null?void 0:s.messages]),u||d?S.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:S.jsx(Ki,{})}):S.jsxs("div",{children:[S.jsx("div",{ref:y,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 ed-no-scrollbar",children:S.jsx(i1,{dataLength:Ne.size(s==null?void 0:s.messages),hasMore:V,loader:s!=null&&s.loadingActivities?"Loading...":"",scrollableTarget:"activities-scroll-target",inverse:!0,next:G,children:S.jsxs("div",{className:"ed-flex-1 ed-space-y-3",children:[Ne.size(s==null?void 0:s.messages)?S.jsxs("div",{children:[(i==null?void 0:i.type)==="ticket"&&S.jsxs("div",{className:"ed-bg-gray-light ed-p-2 ed-rounded",children:[S.jsxs("p",{className:"ed-text-regular ed-font-normal ed-text-14",children:["ID",i==null?void 0:i.serial]}),S.jsx("h5",{className:"ed-text-dark ed-font-normal ed-text-14",children:i==null?void 0:i.title})]}),(te=s==null?void 0:s.messages)==null?void 0:te.map(J=>S.jsx("div",{className:"single-message ed-px-5 ed-pt-3",children:["reply","file"].includes(J==null?void 0:J.type)?S.jsx(i8,{activityMessage:J,brand:x},J==null?void 0:J.id):S.jsx(OV,{log:J==null?void 0:J.log},J==null?void 0:J.id)},J==null?void 0:J.id))]}):S.jsx(IV,{onSubmit:J=>{p(ue=>({...ue,contact_person_name:J==null?void 0:J.contact_person_name,contact_person_email:J==null?void 0:J.contact_person_email}))},orgBrandSetting:t,setSelectedConversationId:r,userData:e}),!q&&Ne.size(C)>0&&(i==null?void 0:i.type)!=="ticket"&&S.jsx("div",{children:S.jsx(RV,{channels:C,onSubmit:j})}),(q&&!(m!=null&&m.ticket_title)&&(s==null?void 0:s.messages)&&Ne.size(s==null?void 0:s.messages)===3&&((ne=s==null?void 0:s.messages[2])==null?void 0:ne.is_customer_reply)===!1||A==="BRAND_WENT_OFF_HOUR")&&S.jsx(_S,{from:"message",isAuthenticated:!0,onSubmit:Y,reqId:null,userData:m}),((ce=s==null?void 0:s.writing_realtime_status)==null?void 0:ce.is_writing_reply)&&S.jsx("div",{className:"single-message ed-px-5",children:S.jsx(i8,{brand:x,activityMessage:{author:(ie=s==null?void 0:s.writing_realtime_status)==null?void 0:ie.author,is_customer_reply:!1,created_at:Date.now()},isReplying:!0})})]})})}),((i==null?void 0:i.type)==="ticket"||!q&&!B&&Ne.size(s==null?void 0:s.messages)>=4&&!A)&&S.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:S.jsx(yU,{conversationId:R,handleCreateMessage:z})}),(q&&(i==null?void 0:i.type)!=="ticket"&&Ne.size(s==null?void 0:s.messages)>=5||A||B)&&S.jsx("div",{className:"ed-py-2 ed-px-5 ed-bg-white ed-text-gray-500 ed-sticky ed-bottom-0 ed-left-0",children:S.jsxs("p",{className:"ed-text-center",children:["Your chat has ended. ",S.jsx("br",{}),"To start a new chat, ",S.jsx("button",{type:"button",className:"ed-underline ed-text-blue-600 ed-text-sm",onClick:F,children:"click here"})]})})]})},CU=({item:t,onSelect:e,userData:n})=>{const{id:r,type:i,status:a,last_conversation_activity:o,organization_brand:s,assignee:c}=t||{},{handleUpdateConversationActivityAnalytics:u,setConversationsData:d}=qi(),{message:h,user:m,created_at:p,analytics:y}=o||{},{status:b}=(y==null?void 0:y[0])||{},{setting:v,name:x}=s||{},{first_name:_,last_name:T,email:C,avatar_file:w}=(c==null?void 0:c.user)||{},A=N.useMemo(()=>gu(_,T,C)||x||"Unknown User",[_,T,C,x]),k=w||(v==null?void 0:v.icon),R=(n==null?void 0:n.id)===(m==null?void 0:m.id),I=j=>R?"ed-text-border-dark":j?"ed-text-border-dark ed-font-medium":"ed-text-border-dark ed-font-semibold",U=async()=>{b!=="seen"&&(await u({seen_activity_ids:[o==null?void 0:o.id]}),d(j=>{var G,B;const{existing:F,updated:V}=Ne.reduce(j,(q,W)=>(W.id===r?q.existing=W:q.updated.push(W),q),{existing:null,updated:[]});if(F){const q={...F,last_conversation_activity:{...F.last_conversation_activity,analytics:(B=(G=F.last_conversation_activity)==null?void 0:G.analytics)==null?void 0:B.map((W,K)=>K===0?{...W,status:"seen"}:W)}};return[...V,q]}return j})),e(r)},D=N.useMemo(()=>uU[a],[a]),z=R&&b==="seen",Y=N.useMemo(()=>fU(h),[h]);return S.jsxs("div",{role:"button",tabIndex:0,onClick:U,className:"ed-flex ed-items-center ed-gap-2.5 ed-border-b ed-py-5 ed-px-5 hover:ed-bg-light/40 ed-cursor-pointer custom-wrapper hover:ed-bg-white-light",children:[S.jsx("div",{className:"ed-size-12 ed-flex ed-items-center ed-justify-center",children:S.jsx(ki,{alt:A,path:k==null?void 0:k.key,defaultImageName:qa(C||x),className:"ed-size-10 ed-object-cover ed-rounded-full",defaultUserNameTextSize:"ed-text-12",defaultImageClasses:"ed-size-10 ed-object-cover ed-rounded-full"})}),S.jsxs("div",{className:"ed-w-full ed-flex ed-justify-between ed-items-center",children:[S.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-0.5",children:[S.jsx("p",{className:`ed-font-medium ed-text-12 ed-line-clamp-1 ed-text-border-dark ${I(z)}`,children:h?Y:"[Attachment]"}),S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-1",children:[S.jsx($f,{content:S.jsx("p",{className:"ed-text-12 ed-text-center ed-font-medium ed-text-regular",children:i==="chat"?"Chat":"Ticket"}),children:i==="chat"?S.jsx(_w,{}):S.jsx(xw,{})}),S.jsx("span",{className:"ed-size-1.5 ed-rounded-full ed-bg-border"}),S.jsx("p",{className:`ed-text-12 ${I(z)}`,children:Tp(A,20)}),S.jsx("span",{className:"ed-size-1.5 ed-rounded-full ed-bg-border"}),S.jsx("p",{className:"ed-text-12 ed-text-brand",children:cU(p)})]})]}),S.jsxs("div",{className:"ed-flex ed-gap-2 ed-items-center",children:[!R&&b!=="seen"&&S.jsx("div",{className:"ed-size-1 ed-rounded-full ed-bg-red"}),S.jsx("span",{className:"custom-children",children:S.jsx(Zi,{className:"ed-size-4 ed-text-regular"})})]}),["open","resolved"].includes(a)&&S.jsx("span",{className:`ed-text-12 ed-px-3 ed-py-1 ${D==null?void 0:D.className}`,children:D==null?void 0:D.label})]})]})},xU="easydesk_chat_widget_conversation_id",_U=({setCurrentConversationID:t,userData:e})=>{const n=N.useRef(null),{setIsChatHistory:r,conversationsData:i,metaData:a,loadingStates:o,setOptionData:s,optionData:c,setLoadingStates:u}=qi(),{initialStatesData:d,setConversationState:h}=fc(),m=async()=>{jr.remove(xU),t(null),h(d.conversationState),r(!1)},p=b=>{b&&(t(b),r(!1))};N.useEffect(()=>{const b=setTimeout(()=>{var _;const v=(_=n.current)==null?void 0:_.querySelectorAll(".single-message-container"),x=v==null?void 0:v[Ne.size(v)-1];x==null||x.scrollIntoView({behavior:"smooth",block:"nearest"})},200);return()=>clearTimeout(b)},[Ne.size(i)]);const y=(a==null?void 0:a.total_rows)>Ne.size(i);return S.jsxs("div",{children:[S.jsx("div",{className:"ed-h-[500px] ed-overflow-y-auto ed-no-scrollbar",id:"conversations-scroll-target",children:S.jsx(i1,{dataLength:Ne.size(i),hasMore:y,loader:o!=null&&o.fetchMoreLoading?S.jsx("div",{className:"ed-flex ed-items-center ed-justify-center",children:S.jsx(Bu,{})}):"",scrollableTarget:"conversations-scroll-target",next:()=>{u({...o,fetchMoreLoading:!0}),s({...c,offset:c.offset+c.limit})},children:i==null?void 0:i.map(b=>S.jsx(CU,{item:b,onSelect:p,userData:e},b.id))})}),S.jsx("div",{className:"ed-flex ed-items-center ed-justify-center",children:S.jsxs("button",{onClick:m,type:"button",className:"ed-bg-brand ed-flex ed-text-white ed-items-center ed-px-6 ed-py-3 ed-rounded-lg ed-gap-2.5 ed-w-min ed-flex-nowrap ed-mt-5 ed-bottom-28 ed-absolute hover:ed-opacity-90 focus:ed-outline-none",children:[S.jsx("span",{className:"ed-whitespace-nowrap",children:"Send us a message"}),S.jsx(Zi,{size:16})]})})]})},AU=()=>{const{setIsChatHistory:t}=qi();return S.jsx("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:S.jsxs("div",{className:"ed-bottom-32 ed-absolute ed-flex ed-flex-col ed-items-center",children:[S.jsx(iP,{}),S.jsxs("button",{onClick:()=>t(e=>!e),type:"button",className:"ed-bg-brand ed-flex ed-text-white ed-items-center ed-px-6 ed-py-3 ed-rounded-lg ed-gap-2.5 ed-w-min ed-flex-nowrap ed-mt-5",children:[S.jsx("span",{className:"ed-whitespace-nowrap",children:"Send us a message"})," ",S.jsx(Zi,{})]})]})})},kU=({orgBrandSetting:t,setIsPopupOpen:e,userData:n})=>{const{conversationsData:r,loadingStates:i,getConversationsForPortal:a,isChatHistory:o,setIsChatHistory:s,setCurrentConversationID:c,currentConversationID:u}=qi();N.useEffect(()=>{n!=null&&n.isAuthenticated&&a()},[n==null?void 0:n.isAuthenticated]);const d=N.useMemo(()=>o?Ne.size(r)?S.jsx(_U,{data:r,userData:n,setCurrentConversationID:c}):S.jsx(AU,{}):S.jsx(EU,{orgBrandSetting:t,setIsPopupOpen:e,userData:n,currentConversationID:u,setCurrentConversationID:c,refreshConversations:a}),[r,n,u,o,t,s,e]);return i!=null&&i.initialLoading?S.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:S.jsx(Bu,{})}):S.jsx("div",{children:d})};var $v={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}};$v.loc.source={body:`query GET_ARTICLES($queryData: ArticleQueryInputType, $optionData: OptionDataType) {
668
+ </div>`,he=await z({is_customer_reply:!0,message:ve,conversation_id:J==null?void 0:J.conversation_id});he!=null&&he.id&&(p(be=>({...be,ticket_title:J==null?void 0:J.ticket_title,ticket_activity:J==null?void 0:J.ticket_activity,conversation_activity_files:J==null?void 0:J.conversation_activity_files})),await z({is_customer_reply:!1,message:T},!0))}catch(le){const{message:ve,response:he}=le;vn("error",((ue=he==null?void 0:he.data)==null?void 0:ue.message)||ve,"top-left")}},j=async J=>{var ue;try{const le=await z(J);le!=null&&le.id&&await z({is_customer_reply:!1,message:_},!0)}catch(le){const{message:ve,response:he}=le;vn("error",((ue=he==null?void 0:he.data)==null?void 0:ue.message)||ve,"top-left")}},F=()=>{c(o.conversationState),p(o.inputFieldState),k(!1),jr.remove("easydesk_chat_widget_conversation_id"),a({})},V=((W=s==null?void 0:s.metaData)==null?void 0:W.filtered_rows)&&Ne.size(s==null?void 0:s.messages)<((K=s==null?void 0:s.metaData)==null?void 0:K.filtered_rows),G=()=>{c(J=>({...J,loadingActivities:!0,optionData:{...J.optionData,offset:J.optionData.offset+J.optionData.limit}}))};N.useEffect(()=>{Ne.size(s==null?void 0:s.messages)===3?U():w([])},[Ne.size(s==null?void 0:s.messages)]),N.useEffect(()=>{const J=setTimeout(()=>{var ve;const ue=(ve=y.current)==null?void 0:ve.querySelectorAll(".single-message"),le=ue==null?void 0:ue[Ne.size(ue)-1];le==null||le.scrollIntoView({behavior:"smooth",block:"nearest"})},200);return()=>clearTimeout(J)},[Ne.size(s==null?void 0:s.messages)]),N.useEffect(()=>{R&&(b.current=null)},[R]);const B=(i==null?void 0:i.is_spam)||["closed","resolved"].includes(i==null?void 0:i.status),{is_initiated_at_off_hour:q}=i||{};return N.useEffect(()=>{let J=[];const ue=Ne.debounce(async()=>{await h({seen_activity_ids:J}),J=[]},1e3),le=new IntersectionObserver(he=>{he.forEach(be=>{if(be.isIntersecting){const ee=be.target.getAttribute("data-message-id");ee&&J.push(ee)}}),Ne.size(J)&&ue()},{threshold:1}),ve=document.querySelectorAll(".ed-message");return ve.forEach(he=>le.observe(he)),()=>{ue.cancel(),ve.forEach(he=>le.unobserve(he))}},[s==null?void 0:s.messages]),u||d?S.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:S.jsx(Ki,{})}):S.jsxs("div",{children:[S.jsx("div",{ref:y,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 ed-no-scrollbar",children:S.jsx(i1,{dataLength:Ne.size(s==null?void 0:s.messages),hasMore:V,loader:s!=null&&s.loadingActivities?"Loading...":"",scrollableTarget:"activities-scroll-target",inverse:!0,next:G,children:S.jsxs("div",{className:"ed-flex-1 ed-space-y-3",children:[Ne.size(s==null?void 0:s.messages)?S.jsxs("div",{children:[(i==null?void 0:i.type)==="ticket"&&S.jsxs("div",{className:"ed-bg-gray-light ed-p-2 ed-rounded",children:[S.jsxs("p",{className:"ed-text-regular ed-font-normal ed-text-14",children:["ID",i==null?void 0:i.serial]}),S.jsx("h5",{className:"ed-text-dark ed-font-normal ed-text-14",children:i==null?void 0:i.title})]}),(te=s==null?void 0:s.messages)==null?void 0:te.map(J=>S.jsx("div",{className:"single-message ed-px-5 ed-pt-3",children:["reply","file"].includes(J==null?void 0:J.type)?S.jsx(i8,{activityMessage:J,brand:x},J==null?void 0:J.id):S.jsx(OV,{log:J==null?void 0:J.log},J==null?void 0:J.id)},J==null?void 0:J.id))]}):S.jsx(IV,{onSubmit:J=>{p(ue=>({...ue,contact_person_name:J==null?void 0:J.contact_person_name,contact_person_email:J==null?void 0:J.contact_person_email}))},orgBrandSetting:t,setSelectedConversationId:r,userData:e}),!q&&Ne.size(C)>0&&(i==null?void 0:i.type)!=="ticket"&&S.jsx("div",{children:S.jsx(RV,{channels:C,onSubmit:j})}),(q&&!(m!=null&&m.ticket_title)&&(s==null?void 0:s.messages)&&Ne.size(s==null?void 0:s.messages)===3&&((ne=s==null?void 0:s.messages[2])==null?void 0:ne.is_customer_reply)===!1||A==="BRAND_WENT_OFF_HOUR")&&S.jsx(_S,{from:"message",isAuthenticated:!0,onSubmit:Y,reqId:null,userData:m}),((ce=s==null?void 0:s.writing_realtime_status)==null?void 0:ce.is_writing_reply)&&S.jsx("div",{className:"single-message ed-px-5",children:S.jsx(i8,{brand:x,activityMessage:{author:(ie=s==null?void 0:s.writing_realtime_status)==null?void 0:ie.author,is_customer_reply:!1,created_at:Date.now()},isReplying:!0})})]})})}),((i==null?void 0:i.type)==="ticket"||!q&&!B&&Ne.size(s==null?void 0:s.messages)>=4&&!A)&&S.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:S.jsx(yU,{conversationId:R,handleCreateMessage:z})}),(q&&(i==null?void 0:i.type)!=="ticket"&&Ne.size(s==null?void 0:s.messages)>=5||A||B)&&S.jsx("div",{className:"ed-py-2 ed-px-5 ed-bg-white ed-text-gray-500 ed-sticky ed-bottom-0 ed-left-0",children:S.jsxs("p",{className:"ed-text-center",children:["Your chat has ended. ",S.jsx("br",{}),"To start a new chat, ",S.jsx("button",{type:"button",className:"ed-underline ed-text-blue-600 ed-text-sm",onClick:F,children:"click here"})]})})]})},CU=({item:t,onSelect:e,userData:n})=>{const{id:r,type:i,status:a,last_conversation_activity:o,organization_brand:s,assignee:c}=t||{},{handleUpdateConversationActivityAnalytics:u,setConversationsData:d}=qi(),{message:h,user:m,created_at:p,analytics:y}=o||{},{status:b}=(y==null?void 0:y[0])||{},{setting:v,name:x}=s||{},{first_name:_,last_name:T,email:C,avatar_file:w}=(c==null?void 0:c.user)||{},A=N.useMemo(()=>gu(_,T,C)||x||"Unknown User",[_,T,C,x]),k=w||(v==null?void 0:v.icon),R=(n==null?void 0:n.id)===(m==null?void 0:m.id),I=j=>R?"ed-text-border-dark":j?"ed-text-border-dark ed-font-medium":"ed-text-border-dark ed-font-semibold",U=async()=>{b!=="seen"&&(await u({seen_activity_ids:[o==null?void 0:o.id]}),d(j=>{var G,B;const{existing:F,updated:V}=Ne.reduce(j,(q,W)=>(W.id===r?q.existing=W:q.updated.push(W),q),{existing:null,updated:[]});if(F){const q={...F,last_conversation_activity:{...F.last_conversation_activity,analytics:(B=(G=F.last_conversation_activity)==null?void 0:G.analytics)==null?void 0:B.map((W,K)=>K===0?{...W,status:"seen"}:W)}};return[...V,q]}return j})),e(r)},D=N.useMemo(()=>uU[a],[a]),z=R&&b==="seen",Y=N.useMemo(()=>fU(h),[h]);return S.jsxs("div",{role:"button",tabIndex:0,onClick:U,className:"ed-flex ed-items-center ed-gap-2.5 ed-border-b ed-py-5 ed-px-5 hover:ed-bg-light/40 ed-cursor-pointer custom-wrapper hover:ed-bg-white-light",children:[S.jsx("div",{className:"ed-size-12 ed-flex ed-items-center ed-justify-center",children:S.jsx(ki,{alt:A,path:k==null?void 0:k.key,defaultImageName:Ja(C||x),className:"ed-size-10 ed-object-cover ed-rounded-full",defaultUserNameTextSize:"ed-text-12",defaultImageClasses:"ed-size-10 ed-object-cover ed-rounded-full"})}),S.jsxs("div",{className:"ed-w-full ed-flex ed-justify-between ed-items-center",children:[S.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-0.5",children:[S.jsx("p",{className:`ed-font-medium ed-text-12 ed-line-clamp-1 ed-text-border-dark ${I(z)}`,children:h?Y:"[Attachment]"}),S.jsxs("div",{className:"ed-flex ed-items-center ed-gap-1",children:[S.jsx($f,{content:S.jsx("p",{className:"ed-text-12 ed-text-center ed-font-medium ed-text-regular",children:i==="chat"?"Chat":"Ticket"}),children:i==="chat"?S.jsx(_w,{}):S.jsx(xw,{})}),S.jsx("span",{className:"ed-size-1.5 ed-rounded-full ed-bg-border"}),S.jsx("p",{className:`ed-text-12 ${I(z)}`,children:Tp(A,20)}),S.jsx("span",{className:"ed-size-1.5 ed-rounded-full ed-bg-border"}),S.jsx("p",{className:"ed-text-12 ed-text-brand",children:cU(p)})]})]}),S.jsxs("div",{className:"ed-flex ed-gap-2 ed-items-center",children:[!R&&b!=="seen"&&S.jsx("div",{className:"ed-size-1 ed-rounded-full ed-bg-red"}),S.jsx("span",{className:"custom-children",children:S.jsx(Zi,{className:"ed-size-4 ed-text-regular"})})]}),["open","resolved"].includes(a)&&S.jsx("span",{className:`ed-text-12 ed-px-3 ed-py-1 ${D==null?void 0:D.className}`,children:D==null?void 0:D.label})]})]})},xU="easydesk_chat_widget_conversation_id",_U=({setCurrentConversationID:t,userData:e})=>{const n=N.useRef(null),{setIsChatHistory:r,conversationsData:i,metaData:a,loadingStates:o,setOptionData:s,optionData:c,setLoadingStates:u}=qi(),{initialStatesData:d,setConversationState:h}=fc(),m=async()=>{jr.remove(xU),t(null),h(d.conversationState),r(!1)},p=b=>{b&&(t(b),r(!1))};N.useEffect(()=>{const b=setTimeout(()=>{var _;const v=(_=n.current)==null?void 0:_.querySelectorAll(".single-message-container"),x=v==null?void 0:v[Ne.size(v)-1];x==null||x.scrollIntoView({behavior:"smooth",block:"nearest"})},200);return()=>clearTimeout(b)},[Ne.size(i)]);const y=(a==null?void 0:a.total_rows)>Ne.size(i);return S.jsxs("div",{children:[S.jsx("div",{className:"ed-h-[500px] ed-overflow-y-auto ed-no-scrollbar",id:"conversations-scroll-target",children:S.jsx(i1,{dataLength:Ne.size(i),hasMore:y,loader:o!=null&&o.fetchMoreLoading?S.jsx("div",{className:"ed-flex ed-items-center ed-justify-center",children:S.jsx(Bu,{})}):"",scrollableTarget:"conversations-scroll-target",next:()=>{u({...o,fetchMoreLoading:!0}),s({...c,offset:c.offset+c.limit})},children:i==null?void 0:i.map(b=>S.jsx(CU,{item:b,onSelect:p,userData:e},b.id))})}),S.jsx("div",{className:"ed-flex ed-items-center ed-justify-center",children:S.jsxs("button",{onClick:m,type:"button",className:"ed-bg-brand ed-flex ed-text-white ed-items-center ed-px-6 ed-py-3 ed-rounded-lg ed-gap-2.5 ed-w-min ed-flex-nowrap ed-mt-5 ed-bottom-28 ed-absolute hover:ed-opacity-90 focus:ed-outline-none",children:[S.jsx("span",{className:"ed-whitespace-nowrap",children:"Send us a message"}),S.jsx(Zi,{size:16})]})})]})},AU=()=>{const{setIsChatHistory:t}=qi();return S.jsx("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:S.jsxs("div",{className:"ed-bottom-32 ed-absolute ed-flex ed-flex-col ed-items-center",children:[S.jsx(iP,{}),S.jsxs("button",{onClick:()=>t(e=>!e),type:"button",className:"ed-bg-brand ed-flex ed-text-white ed-items-center ed-px-6 ed-py-3 ed-rounded-lg ed-gap-2.5 ed-w-min ed-flex-nowrap ed-mt-5",children:[S.jsx("span",{className:"ed-whitespace-nowrap",children:"Send us a message"})," ",S.jsx(Zi,{})]})]})})},kU=({orgBrandSetting:t,setIsPopupOpen:e,userData:n})=>{const{conversationsData:r,loadingStates:i,getConversationsForPortal:a,isChatHistory:o,setIsChatHistory:s,setCurrentConversationID:c,currentConversationID:u}=qi();N.useEffect(()=>{n!=null&&n.isAuthenticated&&a()},[n==null?void 0:n.isAuthenticated]);const d=N.useMemo(()=>o?Ne.size(r)?S.jsx(_U,{data:r,userData:n,setCurrentConversationID:c}):S.jsx(AU,{}):S.jsx(EU,{orgBrandSetting:t,setIsPopupOpen:e,userData:n,currentConversationID:u,setCurrentConversationID:c,refreshConversations:a}),[r,n,u,o,t,s,e]);return i!=null&&i.initialLoading?S.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:S.jsx(Bu,{})}):S.jsx("div",{children:d})};var $v={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}};$v.loc.source={body:`query GET_ARTICLES($queryData: ArticleQueryInputType, $optionData: OptionDataType) {
668
669
  getArticles(queryData: $queryData, optionData: $optionData) {
669
670
  data {
670
671
  id
@@ -672,4 +673,4 @@ html body {
672
673
  }
673
674
  }
674
675
  }
675
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function ld(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){ld(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){ld(r,e)}),t.definitions&&t.definitions.forEach(function(r){ld(r,e)})}var e0={};(function(){$v.definitions.forEach(function(e){if(e.name){var n=new Set;ld(e,n),e0[e.name.value]=n}})})();function c8(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function TU(t,e){var n={kind:t.kind,definitions:[c8(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=e0[e]||new Set,i=new Set,a=new Set;for(r.forEach(function(s){a.add(s)});a.size>0;){var o=a;a=new Set,o.forEach(function(s){if(!i.has(s)){i.add(s);var c=e0[s]||new Set;c.forEach(function(u){a.add(u)})}})}return i.forEach(function(s){var c=c8(t,s);c&&n.definitions.push(c)}),n}const OU=TU($v,"GET_ARTICLES"),RU=t=>{const{userData:e,widgetIntent:n}=t||{},{orgBrandSetting:r,setOrgBrandSetting:i,setCurrentConversationID:a,messageListUnreadCount:o}=qi(),{unreadMessages:s}=fc(),c=o||Ne.size(s),[u,d]=N.useState(!1),[h,m]=N.useState(""),[p,y]=N.useState(null),[b,v]=N.useState(null),[x,_]=N.useState(!1),[T,C]=N.useState([]),[w,A]=N.useState(""),[k,R]=N.useState(!1),[I,U]=N.useState(!1),[D,z]=N.useState(!1),[Y,j]=N.useState(!1);N.useEffect(()=>{n?n==="chat"?(z(!0),A("messages"),d(!0)):n==="kb"&&(j(!0),A("knowledge_base"),d(!0)):(z(!1),j(!1),d(!1))},[n]);const[F,{loading:V}]=Ya(OU,{errorPolicy:"all",fetchPolicy:"no-cache"}),{loading:G,data:B}=ou(s8,{errorPolicy:"all",fetchPolicy:"no-cache"}),q=async le=>{var be;const{data:ve,error:he}=await F(le);ve!=null&&ve.getArticles&&C(((be=ve==null?void 0:ve.getArticles)==null?void 0:be.data)||[]),he&&console.error(he)};N.useEffect(()=>{var le;B!=null&&B.getChannelsForPortal&&U(Ne.size((le=B==null?void 0:B.getChannelsForPortal)==null?void 0:le.data)>0)},[B]);const W=IO(le=>{q({variables:{queryData:{search_keyword:le}}})},500),K=le=>{m(le),W(le)},te=async()=>{R(!0);try{const le=await MO();if(le){const{font:ve,is_knowledge_base_enabled:he,theme_color:be}=le;i(le),LO(be),FO(ve),c>0&&I?A("messages"):he&&!I||he&&I?A("knowledge_base"):!he&&I&&A("messages"),R(!1)}}catch(le){console.error(le),R(!1)}},ne=()=>{const le=document.getElementById("ed-widget");d(!u),u&&a(null),m(""),y(null),v(null),_(!1),te(),n&&le&&le.removeAttribute("ed-widget-intent"),z(!1),j(!1)};N.useEffect(()=>{te()},[]),N.useEffect(()=>{if(!r)return;const{is_knowledge_base_enabled:le}=r;I&&D?(A("messages"),d(!0)):le&&Y&&(A("knowledge_base"),d(!0))},[r,I]);const ce=()=>w==="knowledge_base"?S.jsx(qP,{loading:V,articleId:b,isAuthenticated:e==null?void 0:e.isAuthenticated,selectedCategory:p,setArticleId:v,setSelectedCategory:y,orgBrandSetting:r}):w==="messages"?S.jsx(kU,{orgBrandSetting:r,setIsPopupOpen:d,userData:e}):null,{brand:ie,is_knowledge_base_enabled:J}=r||{},ue=le=>{A(le),m(""),y(null),v(null),_(!1)};return!J&&!I?null:S.jsxs("div",{children:[S.jsx(AV,{isPopupOpen:u,handlePopupTrigger:ne,orgBrandSetting:r,isAuthenticated:e==null?void 0:e.isAuthenticated}),S.jsx("div",{className:`ed-fixed ${u?"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:u&&S.jsxs(S.Fragment,{children:[S.jsx(TV,{searchedText:h,selectedCategory:p,setSearchedText:m,setArticleId:v,setSelectedCategory:y,setIsPopupOpen:d,handleSearch:K,setArticlesData:C,brandInfo:ie,activeTab:w,userData:e}),S.jsx("div",{className:`ed-flex-1 ed-overflow-y-auto ed-no-scrollbar ${w==="knowledge_base"?"ed-pb-5":""} ed-root-scrollbar`,children:h?S.jsx("div",{className:"ed-h-full",children:Ne.size(T)?S.jsx(GR,{articlesData:T,setArticleId:v,setSearchedText:m,setArticlesData:C}):S.jsx(JP,{setIsCreateNewTicketClicked:_})}):S.jsx("div",{className:`${w==="knowledge_base"?"ed-py-1":""} ed-space-y-4`,children:ce()})}),S.jsx(kV,{activeTab:w,handleTabChange:ue,orgBrandSetting:r,hasLiveChat:I}),x&&S.jsx(JN,{setIsCreateNewTicketClicked:_,setSearchedText:m,searchedText:h,isAuthenticated:e==null?void 0:e.isAuthenticated})]})})]})},NU=async(t,e)=>{var n;try{const r=await Qt.post(`${mu()||e}/auth/widget-login`,{api_key:t});return((n=r==null?void 0:r.data)==null?void 0:n.data)||{}}catch{return{access_token:null,refresh_token:null}}},cd=t=>{const{apiKey:e,envVariables:n}=t,[r,i]=N.useState(!1),[a,o]=N.useState(!1),s=(n==null?void 0:n.apiBaseUrl)||"https://api.easydesk.app",c=async d=>{i(!0);const h=await NU(d,s);h!=null&&h.access_token&&(_p("easydesk_chat_widget_public_access_token",h==null?void 0:h.access_token,{expires:30}),i(!1))};N.useEffect(()=>{e&&c(e)},[e]),N.useEffect(()=>{n!=null&&n.apiBaseUrl&&(n!=null&&n.cdnDomain)?v6(n):v6({apiBaseUrl:"https://api.easydesk.app",cdnDomain:"easydesk-prod"}),n!=null&&n.tokenName&&_p("easydesk_chat_widget_public_access_token",n==null?void 0:n.tokenName,{expires:30}),o(!0)},[n]);const u=N.useMemo(()=>Gp(s),[s]);return r||!a?null:S.jsxs(__,{client:u,children:[S.jsx(PA,{}),S.jsx(yV,{userData:t==null?void 0:t.userData,orgBrandSetting:t==null?void 0:t.orgBrandSetting,children:S.jsx(_V,{children:S.jsx(RU,{...t})})})]})},u8=t=>{let e=document.getElementById("easydesk-chat-container");e||(e=document.createElement("div"),e.id="ed-widget",document.body.appendChild(e)),ly.createRoot(e).render(S.jsx(cd,{...t}))};let t0=null;const PU=()=>{const t=document.getElementById("ed-widget");return t?{apiKey:t.getAttribute("ed-key"),apiBaseUrl:t.getAttribute("ed-api-url"),cdnDomain:t.getAttribute("ed-cdn-domain"),widgetIntent:t.getAttribute("ed-widget-intent")}:null},n0=()=>{const t=PU();if(t!=null&&t.apiKey){let e=document.getElementById("easydesk-chat-container");e||(e=document.createElement("div"),e.id="easydesk-chat-container",document.body.appendChild(e)),t0||(t0=ly.createRoot(e)),t0.render(S.jsx(cd,{apiKey:t.apiKey,envVariables:{apiBaseUrl:t.apiBaseUrl,cdnDomain:t.cdnDomain},widgetIntent:t.widgetIntent}))}else console.error("ChatKey: API key is required for initialization")},f8=()=>{const t=document.getElementById("ed-widget");if(!t)return;new MutationObserver(n=>{n.forEach(r=>{r.type==="attributes"&&r.attributeName==="ed-widget-intent"&&n0()})}).observe(t,{attributes:!0,attributeFilter:["ed-widget-intent"]})};typeof window<"u"&&(window.ChatKey={init:u8},document.readyState==="complete"?(n0(),f8()):window.addEventListener("load",()=>{n0(),f8()}));const IU=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"})),MU=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"}));xn.Widget=cd,xn.default=cd,xn.initChatKey=u8,Object.defineProperties(xn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
676
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function ld(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){ld(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){ld(r,e)}),t.definitions&&t.definitions.forEach(function(r){ld(r,e)})}var e0={};(function(){$v.definitions.forEach(function(e){if(e.name){var n=new Set;ld(e,n),e0[e.name.value]=n}})})();function c8(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function TU(t,e){var n={kind:t.kind,definitions:[c8(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=e0[e]||new Set,i=new Set,a=new Set;for(r.forEach(function(s){a.add(s)});a.size>0;){var o=a;a=new Set,o.forEach(function(s){if(!i.has(s)){i.add(s);var c=e0[s]||new Set;c.forEach(function(u){a.add(u)})}})}return i.forEach(function(s){var c=c8(t,s);c&&n.definitions.push(c)}),n}const OU=TU($v,"GET_ARTICLES"),RU=t=>{const{userData:e,widgetIntent:n}=t||{},{orgBrandSetting:r,setOrgBrandSetting:i,setCurrentConversationID:a,messageListUnreadCount:o}=qi(),{unreadMessages:s}=fc(),c=o||Ne.size(s),[u,d]=N.useState(!1),[h,m]=N.useState(""),[p,y]=N.useState(null),[b,v]=N.useState(null),[x,_]=N.useState(!1),[T,C]=N.useState([]),[w,A]=N.useState(""),[k,R]=N.useState(!1),[I,U]=N.useState(!1),[D,z]=N.useState(!1),[Y,j]=N.useState(!1);N.useEffect(()=>{n?n==="chat"?(z(!0),A("messages"),d(!0)):n==="kb"&&(j(!0),A("knowledge_base"),d(!0)):(z(!1),j(!1),d(!1))},[n]);const[F,{loading:V}]=Ka(OU,{errorPolicy:"all",fetchPolicy:"no-cache"}),{loading:G,data:B}=ou(s8,{errorPolicy:"all",fetchPolicy:"no-cache"}),q=async le=>{var be;const{data:ve,error:he}=await F(le);ve!=null&&ve.getArticles&&C(((be=ve==null?void 0:ve.getArticles)==null?void 0:be.data)||[]),he&&console.error(he)};N.useEffect(()=>{var le;B!=null&&B.getChannelsForPortal&&U(Ne.size((le=B==null?void 0:B.getChannelsForPortal)==null?void 0:le.data)>0)},[B]);const W=IO(le=>{q({variables:{queryData:{search_keyword:le}}})},500),K=le=>{m(le),W(le)},te=async()=>{R(!0);try{const le=await MO();if(le){const{font:ve,is_knowledge_base_enabled:he,theme_color:be}=le;i(le),LO(be),FO(ve),c>0&&I?A("messages"):he&&!I||he&&I?A("knowledge_base"):!he&&I&&A("messages"),R(!1)}}catch(le){console.error(le),R(!1)}},ne=()=>{const le=document.getElementById("ed-widget");d(!u),u&&a(null),m(""),y(null),v(null),_(!1),te(),n&&le&&le.removeAttribute("ed-widget-intent"),z(!1),j(!1)};N.useEffect(()=>{te()},[]),N.useEffect(()=>{if(!r)return;const{is_knowledge_base_enabled:le}=r;I&&D?(A("messages"),d(!0)):le&&Y&&(A("knowledge_base"),d(!0))},[r,I]);const ce=()=>w==="knowledge_base"?S.jsx(qP,{loading:V,articleId:b,isAuthenticated:e==null?void 0:e.isAuthenticated,selectedCategory:p,setArticleId:v,setSelectedCategory:y,orgBrandSetting:r}):w==="messages"?S.jsx(kU,{orgBrandSetting:r,setIsPopupOpen:d,userData:e}):null,{brand:ie,is_knowledge_base_enabled:J}=r||{},ue=le=>{A(le),m(""),y(null),v(null),_(!1)};return!J&&!I?null:S.jsxs("div",{children:[S.jsx(AV,{isPopupOpen:u,handlePopupTrigger:ne,orgBrandSetting:r,isAuthenticated:e==null?void 0:e.isAuthenticated}),S.jsx("div",{className:`ed-fixed ${u?"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:u&&S.jsxs(S.Fragment,{children:[S.jsx(TV,{searchedText:h,selectedCategory:p,setSearchedText:m,setArticleId:v,setSelectedCategory:y,setIsPopupOpen:d,handleSearch:K,setArticlesData:C,brandInfo:ie,activeTab:w,userData:e}),S.jsx("div",{className:`ed-flex-1 ed-overflow-y-auto ed-no-scrollbar ${w==="knowledge_base"?"ed-pb-5":""} ed-root-scrollbar`,children:h?S.jsx("div",{className:"ed-h-full",children:Ne.size(T)?S.jsx(GR,{articlesData:T,setArticleId:v,setSearchedText:m,setArticlesData:C}):S.jsx(JP,{setIsCreateNewTicketClicked:_})}):S.jsx("div",{className:`${w==="knowledge_base"?"ed-py-1":""} ed-space-y-4`,children:ce()})}),S.jsx(kV,{activeTab:w,handleTabChange:ue,orgBrandSetting:r,hasLiveChat:I}),x&&S.jsx(JN,{setIsCreateNewTicketClicked:_,setSearchedText:m,searchedText:h,isAuthenticated:e==null?void 0:e.isAuthenticated})]})})]})},NU=async(t,e)=>{var n;try{const r=await Qt.post(`${mu()||e}/auth/widget-login`,{api_key:t});return((n=r==null?void 0:r.data)==null?void 0:n.data)||{}}catch{return{access_token:null,refresh_token:null}}},cd=t=>{const{apiKey:e,envVariables:n}=t,[r,i]=N.useState(!1),[a,o]=N.useState(!1),s=(n==null?void 0:n.apiBaseUrl)||"https://api.easydesk.app",c=async d=>{i(!0);const h=await NU(d,s);h!=null&&h.access_token&&(_p("easydesk_chat_widget_public_access_token",h==null?void 0:h.access_token,{expires:30}),i(!1))};N.useEffect(()=>{e&&c(e)},[e]),N.useEffect(()=>{n!=null&&n.apiBaseUrl&&(n!=null&&n.cdnDomain)?v6(n):v6({apiBaseUrl:"https://api.easydesk.app",cdnDomain:"easydesk-prod"}),n!=null&&n.tokenName&&_p("easydesk_chat_widget_public_access_token",n==null?void 0:n.tokenName,{expires:30}),o(!0)},[n]);const u=N.useMemo(()=>Gp(s),[s]);return r||!a?null:S.jsxs(__,{client:u,children:[S.jsx(PA,{}),S.jsx(yV,{userData:t==null?void 0:t.userData,orgBrandSetting:t==null?void 0:t.orgBrandSetting,children:S.jsx(_V,{children:S.jsx(RU,{...t})})})]})},u8=t=>{let e=document.getElementById("easydesk-chat-container");e||(e=document.createElement("div"),e.id="ed-widget",document.body.appendChild(e)),ly.createRoot(e).render(S.jsx(cd,{...t}))};let t0=null;const PU=()=>{const t=document.getElementById("ed-widget");return t?{apiKey:t.getAttribute("ed-key"),apiBaseUrl:t.getAttribute("ed-api-url"),cdnDomain:t.getAttribute("ed-cdn-domain"),widgetIntent:t.getAttribute("ed-widget-intent")}:null},n0=()=>{const t=PU();if(t!=null&&t.apiKey){let e=document.getElementById("easydesk-chat-container");e||(e=document.createElement("div"),e.id="easydesk-chat-container",document.body.appendChild(e)),t0||(t0=ly.createRoot(e)),t0.render(S.jsx(cd,{apiKey:t.apiKey,envVariables:{apiBaseUrl:t.apiBaseUrl,cdnDomain:t.cdnDomain},widgetIntent:t.widgetIntent}))}else console.error("ChatKey: API key is required for initialization")},f8=()=>{const t=document.getElementById("ed-widget");if(!t)return;new MutationObserver(n=>{n.forEach(r=>{r.type==="attributes"&&r.attributeName==="ed-widget-intent"&&n0()})}).observe(t,{attributes:!0,attributeFilter:["ed-widget-intent"]})};typeof window<"u"&&(window.ChatKey={init:u8},document.readyState==="complete"?(n0(),f8()):window.addEventListener("load",()=>{n0(),f8()}));const IU=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"})),MU=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"}));xn.Widget=cd,xn.default=cd,xn.initChatKey=u8,Object.defineProperties(xn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));