{"version":3,"sources":["../../../src/paywall/gen/template.ts","../../../src/paywall/index.ts"],"sourcesContent":["// THIS FILE IS AUTO-GENERATED - DO NOT EDIT\n/**\n * The pre-built, self-contained paywall template with inlined CSS and JS\n */\nexport const PAYWALL_TEMPLATE =\n  '<!DOCTYPE html><html lang=\"en\"><head>\\n        <meta charset=\"UTF-8\">\\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\\n    <title>Payment Required</title><style>@import\"https://fonts.googleapis.com/css2?family=Inter&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Inter:wght@700&display=swap\";@import\"https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz@0,9..40;1,9..40&display=swap\";@import\"https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,700;1,9..40,700&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Oxanium:wght@200..800&display=swap\";@import\"https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&display=swap\";.ock-font-family{font-family:var(--ock-font-family)}.ock-border-default{border-color:var(--ock-bg-default)}.ock-border-default-active{border-color:var(--ock-bg-default-active)}.ock-border-line-primary{border-color:var(--ock-line-primary)}.ock-border-line-default{border-color:var(--ock-line-default)}.ock-border-line-heavy{border-color:var(--ock-line-heavy)}.ock-border-line-inverse{border-color:var(--ock-line-inverse)}.ock-border-radius{border-radius:var(--ock-border-radius)}.ock-border-radius-inner{border-radius:var(--ock-border-radius-inner)}.ock-fill-default{fill:var(--ock-bg-default)}.ock-fill-default-reverse{fill:var(--ock-bg-default-reverse)}.ock-fill-alternate{fill:var(--ock-bg-alternate)}.ock-icon-color-primary{fill:var(--ock-icon-color-primary)}.ock-icon-color-foreground{fill:var(--ock-icon-color-foreground)}.ock-icon-color-foreground-muted{fill:var(--ock-icon-color-foreground-muted)}.ock-icon-color-inverse{fill:var(--ock-icon-color-inverse)}.ock-icon-color-error{fill:var(--ock-icon-color-error)}.ock-icon-color-success{fill:var(--ock-icon-color-success)}.ock-icon-color-warning{fill:var(--ock-icon-color-warning)}.placeholder-ock-default::-moz-placeholder{color:var(--ock-text-foreground-muted)}.placeholder-ock-default::placeholder{color:var(--ock-text-foreground-muted)}.ock-scrollbar{scrollbar-width:thin;scrollbar-color:#d1d5db #ffffff}.ock-shadow-default,.dark .ock-shadow-default{box-shadow:0 8px 12px #5b616e1f}.ock-text-inverse{color:var(--ock-text-inverse)}.ock-text-foreground{color:var(--ock-text-foreground)}.ock-text-foreground-muted{color:var(--ock-text-foreground-muted)}.ock-text-error{color:var(--ock-text-error)}.ock-text-primary{color:var(--ock-text-primary)}.ock-text-success{color:var(--ock-text-success)}.ock-text-warning{color:var(--ock-text-warning)}.ock-text-disabled{color:var(--ock-text-disabled)}.ock-bg-default{background-color:var(--ock-bg-default)}.ock-bg-default-hover{background-color:var(--ock-bg-default-hover)}.ock-bg-default-active{background-color:var(--ock-bg-default-active)}.ock-bg-alternate{background-color:var(--ock-bg-alternate)}.ock-bg-alternate-hover{background-color:var(--ock-bg-alternate-hover)}.ock-bg-alternate-active{background-color:var(--ock-bg-alternate-active)}.ock-bg-inverse{background-color:var(--ock-bg-inverse)}.ock-bg-inverse-hover{background-color:var(--ock-bg-inverse-hover)}.ock-bg-inverse-active{background-color:var(--ock-bg-inverse-active)}.ock-bg-primary{background-color:var(--ock-bg-primary)}.ock-bg-primary-hover{background-color:var(--ock-bg-primary-hover)}.ock-bg-primary-active{background-color:var(--ock-bg-primary-active)}.ock-bg-secondary{background-color:var(--ock-bg-secondary)}.ock-bg-secondary-hover{background-color:var(--ock-bg-secondary-hover)}.ock-bg-secondary-active{background-color:var(--ock-bg-secondary-active)}.ock-bg-error{background-color:var(--ock-bg-error)}.ock-bg-warning{background-color:var(--ock-bg-warning)}.ock-bg-success{background-color:var(--ock-bg-success)}.ock-bg-default-reverse{background-color:var(--ock-bg-default-reverse)}.ock-bg-primary-washed{background-color:var(--ock-bg-primary-washed)}.ock-bg-primary-disabled{background-color:var(--ock-bg-primary-disabled)}*,: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:Inter,sans-serif;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}:root,.light,.default-light{--ock-font-family: \"DM Sans\", sans-serif;--ock-border-radius: .5rem;--ock-border-radius-inner: .25rem;--ock-text-inverse: #f9fafb;--ock-text-foreground: #030712;--ock-text-foreground-muted: #4b5563;--ock-text-error: #e11d48;--ock-text-primary: #4f46e5;--ock-text-success: #65a30d;--ock-text-warning: #ea580c;--ock-text-disabled: #9ca3af;--ock-bg-default: #f9fafb;--ock-bg-default-hover: #e5e7eb;--ock-bg-default-active: #d1d5db;--ock-bg-alternate: #e5e7eb;--ock-bg-alternate-hover: #d1d5db;--ock-bg-alternate-active: #9ca3af;--ock-bg-inverse: #f3f4f6;--ock-bg-inverse-hover: #e5e7eb;--ock-bg-inverse-active: #d1d5db;--ock-bg-primary: #4f46e5;--ock-bg-primary-hover: #4338ca;--ock-bg-primary-active: #3730a3;--ock-bg-primary-washed: #e0e7ff;--ock-bg-primary-disabled: #a5b4fc;--ock-bg-secondary: #e2e8f0;--ock-bg-secondary-hover: #cbd5e1;--ock-bg-secondary-active: #94a3b8;--ock-bg-error: #e11d48;--ock-bg-warning: #ea580c;--ock-bg-success: #bef264;--ock-bg-default-reverse: #030712;--ock-icon-color-primary: #4f46e5;--ock-icon-color-foreground: #030712;--ock-icon-color-foreground-muted: #4b5563;--ock-icon-color-inverse: #f9fafb;--ock-icon-color-error: #e11d48;--ock-icon-color-success: #65a30d;--ock-icon-color-warning: #ea580c;--ock-line-primary: #4f46e5;--ock-line-default: #d1d5db;--ock-line-heavy: #6b7280;--ock-line-inverse: #374151}.dark,.default-dark{--ock-font-family: \"DM Sans\", sans-serif;--ock-border-radius: .5rem;--ock-border-radius-inner: .25rem;--ock-text-inverse: #030712;--ock-text-foreground: #f9fafb;--ock-text-foreground-muted: #9ca3af;--ock-text-error: #fb7185;--ock-text-primary: #818cf8;--ock-text-success: #a3e635;--ock-text-warning: #fb923c;--ock-text-disabled: #4b5563;--ock-bg-default: #030712;--ock-bg-default-hover: #1f2937;--ock-bg-default-active: #374151;--ock-bg-alternate: #1f2937;--ock-bg-alternate-hover: #374151;--ock-bg-alternate-active: #4b5563;--ock-bg-inverse: #111827;--ock-bg-inverse-hover: #1f2937;--ock-bg-inverse-active: #374151;--ock-bg-primary: #818cf8;--ock-bg-primary-hover: #a5b4fc;--ock-bg-primary-active: #c7d2fe;--ock-bg-primary-washed: #312e81;--ock-bg-primary-disabled: #1e1b4b;--ock-bg-secondary: #1e293b;--ock-bg-secondary-hover: #334155;--ock-bg-secondary-active: #475569;--ock-bg-error: #fb7185;--ock-bg-warning: #fb923c;--ock-bg-success: #4d7c0f;--ock-bg-default-reverse: #f9fafb;--ock-icon-color-primary: #818cf8;--ock-icon-color-foreground: #f9fafb;--ock-icon-color-foreground-muted: #9ca3af;--ock-icon-color-inverse: #030712;--ock-icon-color-error: #fb7185;--ock-icon-color-success: #a3e635;--ock-icon-color-warning: #fb923c;--ock-line-primary: #818cf8;--ock-line-default: #374151;--ock-line-heavy: #6b7280;--ock-line-inverse: #d1d5db}.base-light{--ock-font-family: \"DM Sans\", sans-serif;--ock-border-radius: .5rem;--ock-border-radius-inner: .25rem;--ock-text-inverse: #f9fafb;--ock-text-foreground: #030712;--ock-text-foreground-muted: #4b5563;--ock-text-error: #e11d48;--ock-text-primary: #0052ff;--ock-text-success: #65a30d;--ock-text-warning: #ea580c;--ock-text-disabled: #9ca3af;--ock-bg-default: #f9fafb;--ock-bg-default-hover: #e5e7eb;--ock-bg-default-active: #d1d5db;--ock-bg-alternate: #e5e7eb;--ock-bg-alternate-hover: #d1d5db;--ock-bg-alternate-active: #9ca3af;--ock-bg-inverse: #f3f4f6;--ock-bg-inverse-hover: #e5e7eb;--ock-bg-inverse-active: #d1d5db;--ock-bg-primary: #0052ff;--ock-bg-primary-hover: #014ceb;--ock-bg-primary-active: #0148dc;--ock-bg-primary-washed: #b2cbff;--ock-bg-primary-disabled: #9dbcfe;--ock-bg-secondary: #e2e8f0;--ock-bg-secondary-hover: #cbd5e1;--ock-bg-secondary-active: #94a3b8;--ock-bg-error: #e11d48;--ock-bg-warning: #ea580c;--ock-bg-success: #bef264;--ock-bg-default-reverse: #030712;--ock-icon-color-primary: #0052ff;--ock-icon-color-foreground: #030712;--ock-icon-color-foreground-muted: #4b5563;--ock-icon-color-inverse: #f9fafb;--ock-icon-color-error: #e11d48;--ock-icon-color-success: #65a30d;--ock-icon-color-warning: #ea580c;--ock-line-primary: #0052ff;--ock-line-default: #d1d5db;--ock-line-heavy: #6b7280;--ock-line-inverse: #374151}.base-dark{--ock-font-family: \"DM Sans\", sans-serif;--ock-border-radius: .5rem;--ock-border-radius-inner: .25rem;--ock-text-inverse: #f9fafb;--ock-text-foreground: #f9fafb;--ock-text-foreground-muted: #9ca3af;--ock-text-error: #fb7185;--ock-text-primary: #578bfa;--ock-text-success: #a3e635;--ock-text-warning: #fb923c;--ock-text-disabled: #4b5563;--ock-bg-default: #030712;--ock-bg-default-hover: #1f2937;--ock-bg-default-active: #374151;--ock-bg-alternate: #1f2937;--ock-bg-alternate-hover: #374151;--ock-bg-alternate-active: #4b5563;--ock-bg-inverse: #111827;--ock-bg-inverse-hover: #1f2937;--ock-bg-inverse-active: #374151;--ock-bg-primary: #578bfa;--ock-bg-primary-hover: #477ef5;--ock-bg-primary-active: #5386f5;--ock-bg-primary-washed: #051537;--ock-bg-primary-disabled: #1b3365;--ock-bg-secondary: #1e293b;--ock-bg-secondary-hover: #334155;--ock-bg-secondary-active: #475569;--ock-bg-error: #fb7185;--ock-bg-warning: #fb923c;--ock-bg-success: #4d7c0f;--ock-bg-default-reverse: #f9fafb;--ock-icon-color-primary: #578bfa;--ock-icon-color-foreground: #f9fafb;--ock-icon-color-foreground-muted: #9ca3af;--ock-icon-color-inverse: #030712;--ock-icon-color-error: #fb7185;--ock-icon-color-success: #a3e635;--ock-icon-color-warning: #fb923c;--ock-line-primary: #578bfa;--ock-line-default: #374151;--ock-line-heavy: #6b7280;--ock-line-inverse: #d1d5db}.cyberpunk{--ock-font-family: \"Oxanium\", sans-serif;--ock-border-radius: .125rem;--ock-border-radius-inner: 0rem;--ock-text-inverse: #030712;--ock-text-foreground: #f9fafb;--ock-text-foreground-muted: #9ca3af;--ock-text-error: #fb7185;--ock-text-primary: #e879f9;--ock-text-success: #a3e635;--ock-text-warning: #fb923c;--ock-text-disabled: #4b5563;--ock-bg-default: #030712;--ock-bg-default-hover: #1f2937;--ock-bg-default-active: #374151;--ock-bg-alternate: #1f2937;--ock-bg-alternate-hover: #374151;--ock-bg-alternate-active: #4b5563;--ock-bg-inverse: #111827;--ock-bg-inverse-hover: #1f2937;--ock-bg-inverse-active: #374151;--ock-bg-primary: #e879f9;--ock-bg-primary-hover: #f0abfc;--ock-bg-primary-active: #f5d0fe;--ock-bg-primary-washed: #701a75;--ock-bg-primary-disabled: #4a044e;--ock-bg-secondary: #1e293b;--ock-bg-secondary-hover: #334155;--ock-bg-secondary-active: #475569;--ock-bg-error: #fb7185;--ock-bg-warning: #fb923c;--ock-bg-success: #a3e635;--ock-bg-default-reverse: #f9fafb;--ock-icon-color-primary: #e879f9;--ock-icon-color-foreground: #f9fafb;--ock-icon-color-foreground-muted: #4b5563;--ock-icon-color-inverse: #030712;--ock-icon-color-error: #e11d48;--ock-icon-color-success: #65a30d;--ock-icon-color-warning: #ea580c;--ock-line-primary: #e879f9;--ock-line-default: #374151;--ock-line-heavy: #6b7280;--ock-line-inverse: #d1d5db}.hacker{--ock-font-family: \"Noto Sans Mono\", sans-serif;--ock-border-radius: .375rem;--ock-border-radius-inner: .125rem;--ock-text-inverse: #fafafa;--ock-text-foreground: #09090b;--ock-text-foreground-muted: #52525b;--ock-text-error: #e11d48;--ock-text-primary: #09090b;--ock-text-success: #65a30d;--ock-text-warning: #ea580c;--ock-text-disabled: #a1a1aa;--ock-bg-default: #fafafa;--ock-bg-default-hover: #e4e4e7;--ock-bg-default-active: #d4d4d8;--ock-bg-alternate: #e4e4e7;--ock-bg-alternate-hover: #d4d4d8;--ock-bg-alternate-active: #a1a1aa;--ock-bg-inverse: #f4f4f5;--ock-bg-inverse-hover: #e4e4e7;--ock-bg-inverse-active: #d4d4d8;--ock-bg-primary: #09090b;--ock-bg-primary-hover: #27272a;--ock-bg-primary-active: #3f3f46;--ock-bg-primary-washed: #f4f4f5;--ock-bg-primary-disabled: #d4d4d8;--ock-bg-secondary: #e5e5e5;--ock-bg-secondary-hover: #d4d4d4;--ock-bg-secondary-active: #a3a3a3;--ock-bg-error: #e11d48;--ock-bg-warning: #ea580c;--ock-bg-success: #65a30d;--ock-bg-default-reverse: #fafafa;--ock-icon-color-primary: #09090b;--ock-icon-color-foreground: #09090b;--ock-icon-color-foreground-muted: #52525b;--ock-icon-color-inverse: #fafafa;--ock-icon-color-error: #e11d48;--ock-icon-color-success: #65a30d;--ock-icon-color-warning: #ea580c;--ock-line-primary: #09090b;--ock-line-default: #d4d4d8;--ock-line-heavy: #71717a;--ock-line-inverse: #3f3f46}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-x-0{left:0;right:0}.-bottom-0\\\\.5{bottom:-.125rem}.-bottom-\\\\[12\\\\.875rem\\\\]{bottom:-12.875rem}.-right-0\\\\.5{right:-.125rem}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.bottom-5{bottom:1.25rem}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\\\/2,.left-2\\\\/4{left:50%}.left-3\\\\/4{left:75%}.left-4{left:1rem}.left-\\\\[-99999px\\\\]{left:-99999px}.left-\\\\[0\\\\%\\\\]{left:0%}.right-0{right:0}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1\\\\/2{top:50%}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\\\[100px\\\\]{top:100px}.top-full{top:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.m-0{margin:0}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.-my-6{margin-top:-1.5rem;margin-bottom:-1.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\\\\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1\\\\.5{margin-top:.375rem;margin-bottom:.375rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.-mr-0\\\\.5{margin-right:-.125rem}.-mr-px{margin-right:-1px}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-6{margin-left:1.5rem}.ml-px{margin-left:1px}.mr-1{margin-right:.25rem}.mr-10{margin-right:2.5rem}.mr-2{margin-right:.5rem}.mt-0\\\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-\\\\[60\\\\%\\\\]{margin-top:60%}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.aspect-square{aspect-ratio:1 / 1}.size-3{width:.75rem;height:.75rem}.h-1{height:.25rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-120{height:30rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2\\\\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.h-28{height:7rem}.h-3{height:.75rem}.h-4{height:1rem}.h-44{height:11rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\\\[1\\\\.125rem\\\\]{height:1.125rem}.h-\\\\[1\\\\.625rem\\\\]{height:1.625rem}.h-\\\\[12\\\\.875rem\\\\]{height:12.875rem}.h-\\\\[148px\\\\]{height:148px}.h-\\\\[15px\\\\]{height:15px}.h-\\\\[18px\\\\]{height:18px}.h-\\\\[34px\\\\]{height:34px}.h-\\\\[42px\\\\]{height:42px}.h-\\\\[80px\\\\]{height:80px}.h-auto{height:auto}.h-full{height:100%}.max-h-120{max-height:30rem}.max-h-44{max-height:11rem}.max-h-80{max-height:20rem}.min-h-60{min-height:15rem}.min-h-full{min-height:100%}.w-1\\\\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2\\\\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-88{width:22rem}.w-9{width:2.25rem}.w-\\\\[1\\\\.125rem\\\\]{width:1.125rem}.w-\\\\[15px\\\\]{width:15px}.w-\\\\[200px\\\\]{width:200px}.w-\\\\[21\\\\.75rem\\\\]{width:21.75rem}.w-\\\\[22rem\\\\]{width:22rem}.w-\\\\[375px\\\\]{width:375px}.w-\\\\[42px\\\\]{width:42px}.w-\\\\[475px\\\\]{width:475px}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-14{min-width:3.5rem}.min-w-24{min-width:6rem}.min-w-28{min-width:7rem}.min-w-40{min-width:10rem}.min-w-52{min-width:13rem}.min-w-80{min-width:20rem}.min-w-\\\\[153px\\\\]{min-width:153px}.min-w-\\\\[300px\\\\]{min-width:300px}.min-w-\\\\[70px\\\\]{min-width:70px}.min-w-full{min-width:100%}.max-w-24{max-width:6rem}.max-w-52{max-width:13rem}.max-w-\\\\[180px\\\\]{max-width:180px}.max-w-\\\\[500px\\\\]{max-width:500px}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.-translate-x-1\\\\/2,.-translate-x-2\\\\/4{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\\\[100\\\\%\\\\]{--tw-translate-x: 100%;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))}.translate-y-0{--tw-translate-y: 0px;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))}.translate-y-\\\\[-100\\\\%\\\\]{--tw-translate-y: -100%;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))}.translate-y-\\\\[102\\\\%\\\\]{--tw-translate-y: 102%;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))}.translate-y-full{--tw-translate-y: 100%;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))}.rotate-180{--tw-rotate: 180deg;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))}.rotate-90{--tw-rotate: 90deg;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))}.scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\\\\[2\\\\.5rem_1fr_auto\\\\]{grid-template-columns:2.5rem 1fr auto}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\\\.5{gap:.375rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-\\\\[-\\\\.8rem\\\\]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-.8rem * var(--tw-space-x-reverse));margin-left:calc(-.8rem * calc(1 - var(--tw-space-x-reverse)))}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-nowrap{text-wrap:nowrap}.\\\\!rounded-full{border-radius:9999px!important}.rounded{border-radius:.25rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\\\[0\\\\.43931rem\\\\]{border-radius:.43931rem}.rounded-\\\\[20px_20px_0_0\\\\]{border-radius:20px 20px 0 0}.rounded-\\\\[50\\\\%\\\\]{border-radius:50%}.rounded-\\\\[6\\\\.25rem\\\\]{border-radius:6.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-tl-\\\\[calc\\\\(var\\\\(--ock-border-radius\\\\)_-_1px\\\\)\\\\]{border-top-left-radius:calc(var(--ock-border-radius) - 1px)}.rounded-tr-\\\\[calc\\\\(var\\\\(--ock-border-radius\\\\)_-_1px\\\\)\\\\]{border-top-right-radius:calc(var(--ock-border-radius) - 1px)}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-\\\\[0\\\\.5px\\\\]{border-width:.5px}.border-\\\\[length\\\\:0_0_0_16px\\\\]{border-width:0 0 0 16px}.border-\\\\[length\\\\:9px_0_9px_16px\\\\]{border-width:9px 0 9px 16px}.\\\\!border-b-0{border-bottom-width:0px!important}.\\\\!border-l-0{border-left-width:0px!important}.\\\\!border-r-0{border-right-width:0px!important}.border-t{border-top-width:1px}.border-solid{border-style:solid}.border-double{border-style:double}.border-none{border-style:none}.border-\\\\[none\\\\]{border-color:none}.border-\\\\[var\\\\(--ock-bg-default-reverse\\\\)\\\\]{border-color:var(--ock-bg-default-reverse)}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.\\\\!border-t-\\\\[var\\\\(--ock-bg-primary\\\\)\\\\]{border-top-color:var(--ock-bg-primary)!important}.border-l-\\\\[var\\\\(--ock-bg-default\\\\)\\\\]{border-left-color:var(--ock-bg-default)}.border-t-gray-400{--tw-border-opacity: 1;border-top-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.\\\\!bg-\\\\[var\\\\(--ock-bg-alternate-active\\\\)\\\\]{background-color:var(--ock-bg-alternate-active)!important}.\\\\!bg-inherit{background-color:inherit!important}.bg-\\\\[\\\\#0052FF\\\\]{--tw-bg-opacity: 1;background-color:rgb(0 82 255 / var(--tw-bg-opacity, 1))}.bg-\\\\[\\\\#E0E7FF\\\\]{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-black\\\\/50{background-color:#00000080}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-20{--tw-bg-opacity: .2}.bg-opacity-50{--tw-bg-opacity: .5}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\\\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0{padding-top:0;padding-bottom:0}.py-0\\\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-1{padding-left:.25rem}.pl-12{padding-left:3rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pr-3{padding-right:.75rem}.pr-5{padding-right:1.25rem}.pt-2{padding-top:.5rem}.pt-2\\\\.5{padding-top:.625rem}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-display{font-family:DM Sans,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-\\\\[0\\\\.6875rem\\\\]{font-size:.6875rem}.text-\\\\[10px\\\\]{font-size:10px}.text-\\\\[2\\\\.5rem\\\\]{font-size:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-6{line-height:1.5rem}.leading-\\\\[13px\\\\]{line-height:13px}.leading-none{line-height:1}.\\\\!text-\\\\[var\\\\(--ock-text-foreground\\\\)\\\\]{color:var(--ock-text-foreground)!important}.\\\\!text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.text-\\\\[\\\\#4F46E5\\\\]{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-\\\\[\\\\#8A919E\\\\]{--tw-text-opacity: 1;color:rgb(138 145 158 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-gray-50{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-\\\\[0\\\\.38\\\\]{opacity:.38}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\\\[0px_8px_24px_0px_rgba\\\\(0\\\\,0\\\\,0\\\\,0\\\\.12\\\\)\\\\]{--tw-shadow: 0px 8px 24px 0px rgba(0,0,0,.12);--tw-shadow-colored: 0px 8px 24px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-\\\\[bottom\\\\]{transition-property:bottom;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.will-change-\\\\[border-width\\\\]{will-change:border-width}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.animate-out{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.fade-in{--tw-enter-opacity: 0}.fade-out{--tw-exit-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.slide-in-from-bottom-1\\\\.5{--tw-enter-translate-y: .375rem}.slide-in-from-bottom-1\\\\/2{--tw-enter-translate-y: 50%}.slide-in-from-bottom-2\\\\.5{--tw-enter-translate-y: .625rem}.slide-in-from-left-5{--tw-enter-translate-x: -1.25rem}.slide-in-from-right-5{--tw-enter-translate-x: 1.25rem}.slide-in-from-top-1\\\\.5{--tw-enter-translate-y: -.375rem}.slide-in-from-top-2\\\\.5{--tw-enter-translate-y: -.625rem}.slide-out-to-bottom-1\\\\.5{--tw-exit-translate-y: .375rem}.slide-out-to-left-5{--tw-exit-translate-x: -1.25rem}.slide-out-to-right-5{--tw-exit-translate-x: 1.25rem}.slide-out-to-top-1\\\\.5{--tw-exit-translate-y: -.375rem}.duration-150{animation-duration:.15s}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.running{animation-play-state:running}.paused{animation-play-state:paused}.fill-mode-forwards{animation-fill-mode:forwards}.scrollbar-hidden::-webkit-scrollbar{display:none}.scrollbar-hidden{scrollbar-width:none;-ms-overflow-style:none}.\\\\[appearance\\\\:textfield\\\\]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.\\\\!container{width:100%!important}.container{width:100%}@media(min-width:640px){.\\\\!container{max-width:640px!important}.container{max-width:640px}}@media(min-width:768px){.\\\\!container{max-width:768px!important}.container{max-width:768px}}@media(min-width:1024px){.\\\\!container{max-width:1024px!important}.container{max-width:1024px}}@media(min-width:1280px){.\\\\!container{max-width:1280px!important}.container{max-width:1280px}}@media(min-width:1536px){.\\\\!container{max-width:1536px!important}.container{max-width:1536px}}.animate-enterRight{transition-duration:.5s;animation-name:enter;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial;--tw-enter-opacity: 0;--tw-enter-translate-x: 2rem;animation-duration:.5s}.animate-enterUp{transition-duration:.5s;animation-name:enter;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial;--tw-enter-opacity: 0;--tw-enter-translate-y: 2rem;animation-duration:.5s}.animate-enterDown{transition-duration:.5s;animation-name:enter;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial;--tw-enter-opacity: 0;--tw-enter-translate-y: -2rem;animation-duration:.5s}.hover\\\\:border-\\\\[--ock-line-primary\\\\]:hover{border-color:var(--ock-line-primary)}.hover\\\\:bg-\\\\[\\\\#0045D8\\\\]:hover{--tw-bg-opacity: 1;background-color:rgb(0 69 216 / var(--tw-bg-opacity, 1))}.hover\\\\:bg-\\\\[var\\\\(--ock-bg-alternate-hover\\\\)\\\\]:hover{background-color:var(--ock-bg-alternate-hover)}.hover\\\\:bg-\\\\[var\\\\(--ock-bg-default-hover\\\\)\\\\]:hover{background-color:var(--ock-bg-default-hover)}.hover\\\\:bg-\\\\[var\\\\(--ock-bg-inverse\\\\)\\\\]:hover{background-color:var(--ock-bg-inverse)}.hover\\\\:bg-\\\\[var\\\\(--ock-bg-inverse-hover\\\\)\\\\]:hover{background-color:var(--ock-bg-inverse-hover)}.hover\\\\:bg-\\\\[var\\\\(--ock-bg-primary-hover\\\\)\\\\]:hover{background-color:var(--ock-bg-primary-hover)}.hover\\\\:bg-\\\\[var\\\\(--ock-bg-secondary-hover\\\\)\\\\]:hover{background-color:var(--ock-bg-secondary-hover)}.hover\\\\:text-\\\\[var\\\\(--ock-text-foreground-muted\\\\)\\\\]:hover{color:var(--ock-text-foreground-muted)}.hover\\\\:underline:hover{text-decoration-line:underline}.hover\\\\:opacity-100:hover{opacity:1}.hover\\\\:opacity-80:hover{opacity:.8}.focus\\\\:border-none:focus{border-style:none}.focus\\\\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.focus\\\\:bg-transparent:focus{background-color:transparent}.focus\\\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\\\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\\\:ring-inset:focus-visible{--tw-ring-inset: inset}.focus-visible\\\\:ring-\\\\[var\\\\(--ock-text-foreground\\\\)\\\\]:focus-visible{--tw-ring-color: var(--ock-text-foreground)}.active\\\\:cursor-grabbing:active{cursor:grabbing}.active\\\\:bg-\\\\[var\\\\(--ock-bg-alternate-active\\\\)\\\\]:active{background-color:var(--ock-bg-alternate-active)}.active\\\\:bg-\\\\[var\\\\(--ock-bg-default-active\\\\)\\\\]:active{background-color:var(--ock-bg-default-active)}.active\\\\:bg-\\\\[var\\\\(--ock-bg-inverse-active\\\\)\\\\]:active{background-color:var(--ock-bg-inverse-active)}.active\\\\:bg-\\\\[var\\\\(--ock-bg-primary-active\\\\)\\\\]:active{background-color:var(--ock-bg-primary-active)}.active\\\\:bg-\\\\[var\\\\(--ock-bg-secondary-active\\\\)\\\\]:active{background-color:var(--ock-bg-secondary-active)}.active\\\\:text-\\\\[var\\\\(--ock-text-primary\\\\)\\\\]:active{color:var(--ock-text-primary)}.disabled\\\\:cursor-not-allowed:disabled{cursor:not-allowed}.group:hover .group-hover\\\\:opacity-100{opacity:1}.dark\\\\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}@media not all and (min-width:640px){.max-sm\\\\:pt-4{padding-top:1rem}}.\\\\[\\\\&\\\\:\\\\:-webkit-inner-spin-button\\\\]\\\\:m-0::-webkit-inner-spin-button{margin:0}.\\\\[\\\\&\\\\:\\\\:-webkit-inner-spin-button\\\\]\\\\:appearance-none::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none}.\\\\[\\\\&\\\\:\\\\:-webkit-outer-spin-button\\\\]\\\\:m-0::-webkit-outer-spin-button{margin:0}.\\\\[\\\\&\\\\:\\\\:-webkit-outer-spin-button\\\\]\\\\:appearance-none::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none}.\\\\[\\\\&\\\\>\\\\*\\\\]\\\\:col-start-1>*{grid-column-start:1}.\\\\[\\\\&\\\\>\\\\*\\\\]\\\\:col-end-1>*{grid-column-end:1}.\\\\[\\\\&\\\\>\\\\*\\\\]\\\\:row-start-1>*{grid-row-start:1}.\\\\[\\\\&\\\\>\\\\*\\\\]\\\\:row-end-1>*{grid-row-end:1}.\\\\[\\\\&\\\\>div\\\\]\\\\:space-x-0>div>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.\\\\[\\\\&\\\\>div\\\\]\\\\:space-x-2>div>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.\\\\[\\\\&_path\\\\]\\\\:fill-\\\\[var\\\\(--ock-icon-color-foreground\\\\)\\\\] path{fill:var(--ock-icon-color-foreground)}.\\\\[\\\\&_path\\\\]\\\\:fill-\\\\[var\\\\(--ock-icon-color-foreground-muted\\\\)\\\\] path{fill:var(--ock-icon-color-foreground-muted)}.\\\\[\\\\&_path\\\\]\\\\:transition-colors path{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.\\\\[\\\\&_path\\\\]\\\\:ease-in-out path{transition-timing-function:cubic-bezier(.4,0,.2,1);animation-timing-function:cubic-bezier(.4,0,.2,1)}.\\\\[\\\\&_path\\\\]\\\\:hover\\\\:fill-\\\\[var\\\\(--ock-icon-color-foreground\\\\)\\\\]:hover path{fill:var(--ock-icon-color-foreground)}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}:root{--background-color: #f9fafb;--container-background-color: white;--text-color: #111827;--secondary-text-color: #4b5563;--details-background-color: #f9fafb;--details-background-color-hover: #f3f4f6;--button-primary-color: #2563eb;--button-primary-hover-color: #1d4ed8;--button-secondary-color: #eef0f3;--button-secondary-hover-color: #e9ebee;--button-positive-color: #059669;--button-positive-hover-color: #047857;--button-error-color: #ef4444;--button-error-hover-color: #dc2626}.ock-font-family{font-family:Inter,system-ui,-apple-system,sans-serif}.ock-bg-secondary,.ock-bg-default{background-color:var(--details-background-color);transition:background-color .15s}.ock-bg-secondary:hover{background-color:var(--details-background-color-hover)}.opacity-80{opacity:.8}[data-testid=ockWalletDropdown]{z-index:10}body{min-height:100vh;background-color:var(--background-color);font-family:Inter,system-ui,-apple-system,sans-serif}.container{max-width:32rem;margin:4rem auto;padding:1.5rem;background-color:var(--container-background-color);border-radius:.75rem;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.header{display:flex;flex-direction:column;gap:1rem}.title{font-size:1.5rem;font-weight:700;color:var(--text-color);margin-bottom:.5rem}.subtitle{color:var(--secondary-text-color)}.instructions{font-size:.9rem;color:var(--secondary-text-color);font-style:italic}.content{display:flex;flex-direction:column;gap:1rem}.input{width:100%;padding:.75rem 1rem;border-radius:.5rem;border:1px solid #d1d5db;background-color:#fff;transition:border-color .15s,box-shadow .15s}.input:focus{outline:none;border-color:var(--button-primary-color);box-shadow:0 0 0 3px #2563eb33}.button{width:100%;padding:.75rem 1rem;border-radius:.5rem;font-weight:600;border:none;cursor:pointer;transition:background-color .15s}.button-primary{background-color:var(--button-primary-color);color:#fff}.button-primary:hover{background-color:var(--button-primary-hover-color)}.button-secondary{background-color:var(--button-secondary-color);color:var(--text-color)}.button-secondary:hover{background-color:var(--button-secondary-hover-color)}.button-positive{background-color:var(--button-positive-color);color:#fff}.button-positive:hover{background-color:var(--button-positive-hover-color)}.button-error{background-color:var(--button-error-color);color:#fff}.button-error:hover{background-color:var(--button-error-hover-color)}.payment-details{padding:1rem;margin-bottom:1rem;background-color:var(--details-background-color);border-radius:.5rem}.payment-row{display:flex;justify-content:space-between;font-size:.875rem;margin-bottom:.5rem}.payment-row:last-child{margin-bottom:0}.payment-label{color:var(--text-color)}.payment-value{font-weight:500}.hidden{display:none}.status{text-align:center;font-size:.875rem}.cta-container{display:flex;flex-basis:50%;flex-direction:row;gap:.5rem}.balance-button{background-color:transparent;border:none;cursor:pointer;min-height:1rem;min-width:150px;display:flex;justify-content:flex-end;align-items:center}\\n</style></head>\\n    <body>\\n        <div id=\"root\"></div>\\n    \\n    \\n  <script type=\"module\">\"use strict\";(()=>{var $gt=Object.create;var g9=Object.defineProperty;var eyt=Object.getOwnPropertyDescriptor;var tyt=Object.getOwnPropertyNames;var nyt=Object.getPrototypeOf,ryt=Object.prototype.hasOwnProperty;var YTe=e=>{throw TypeError(e)};var oyt=(e,t,n)=>t in e?g9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ZTe=(e=>typeof require<\"u\"?require:typeof Proxy<\"u\"?new Proxy(e,{get:(t,n)=>(typeof require<\"u\"?require:t)[n]}):e)(function(e){if(typeof require<\"u\")return require.apply(this,arguments);throw Error(\\'Dynamic require of \"\\'+e+\\'\" is not supported\\')}),QTe=e=>t=>{var n=e[t];if(n)return n();throw new Error(\"Module not found in bundle: \"+t)};var $=(e,t)=>()=>(e&&(t=e(e=0)),t);var me=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),as=(e,t)=>{for(var n in t)g9(e,n,{get:t[n],enumerable:!0})},JTe=(e,t,n,r)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let o of tyt(t))!ryt.call(e,o)&&o!==n&&g9(e,o,{get:()=>t[o],enumerable:!(r=eyt(t,o))||r.enumerable});return e};var ge=(e,t,n)=>(n=e!=null?$gt(nyt(e)):{},JTe(t||!e||!e.__esModule?g9(n,\"default\",{value:e,enumerable:!0}):n,e)),hi=e=>JTe(g9({},\"__esModule\",{value:!0}),e);var ss=(e,t,n)=>oyt(e,typeof t!=\"symbol\"?t+\"\":t,n),bse=(e,t,n)=>t.has(e)||YTe(\"Cannot \"+n);var Ce=(e,t,n)=>(bse(e,t,\"read from private field\"),n?n.call(e):t.get(e)),pn=(e,t,n)=>t.has(e)?YTe(\"Cannot add the same private member more than once\"):t instanceof WeakSet?t.add(e):t.set(e,n),Ht=(e,t,n,r)=>(bse(e,t,\"write to private field\"),r?r.call(e,n):t.set(e,n),n),vr=(e,t,n)=>(bse(e,t,\"access private method\"),n);var y9=(e,t,n,r)=>({set _(o){Ht(e,t,o,n)},get _(){return Ce(e,t,r)}});var eCe=me(CV=>{\"use strict\";f();CV.byteLength=ayt;CV.toByteArray=cyt;CV.fromByteArray=dyt;var zv=[],_g=[],iyt=typeof Uint8Array<\"u\"?Uint8Array:Array,vse=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";for(c5=0,XTe=vse.length;c5<XTe;++c5)zv[c5]=vse[c5],_g[vse.charCodeAt(c5)]=c5;var c5,XTe;_g[45]=62;_g[95]=63;function $Te(e){var t=e.length;if(t%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var n=e.indexOf(\"=\");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function ayt(e){var t=$Te(e),n=t[0],r=t[1];return(n+r)*3/4-r}function syt(e,t,n){return(t+n)*3/4-n}function cyt(e){var t,n=$Te(e),r=n[0],o=n[1],i=new iyt(syt(e,r,o)),a=0,c=o>0?r-4:r,l;for(l=0;l<c;l+=4)t=_g[e.charCodeAt(l)]<<18|_g[e.charCodeAt(l+1)]<<12|_g[e.charCodeAt(l+2)]<<6|_g[e.charCodeAt(l+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return o===2&&(t=_g[e.charCodeAt(l)]<<2|_g[e.charCodeAt(l+1)]>>4,i[a++]=t&255),o===1&&(t=_g[e.charCodeAt(l)]<<10|_g[e.charCodeAt(l+1)]<<4|_g[e.charCodeAt(l+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function uyt(e){return zv[e>>18&63]+zv[e>>12&63]+zv[e>>6&63]+zv[e&63]}function lyt(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),o.push(uyt(r));return o.join(\"\")}function dyt(e){for(var t,n=e.length,r=n%3,o=[],i=16383,a=0,c=n-r;a<c;a+=i)o.push(lyt(e,a,a+i>c?c:a+i));return r===1?(t=e[n-1],o.push(zv[t>>2]+zv[t<<4&63]+\"==\")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(zv[t>>10]+zv[t>>4&63]+zv[t<<2&63]+\"=\")),o.join(\"\")}});var tCe=me(wse=>{f();wse.read=function(e,t,n,r,o){var i,a,c=o*8-r-1,l=(1<<c)-1,d=l>>1,m=-7,h=n?o-1:0,g=n?-1:1,y=e[t+h];for(h+=g,i=y&(1<<-m)-1,y>>=-m,m+=c;m>0;i=i*256+e[t+h],h+=g,m-=8);for(a=i&(1<<-m)-1,i>>=-m,m+=r;m>0;a=a*256+e[t+h],h+=g,m-=8);if(i===0)i=1-d;else{if(i===l)return a?NaN:(y?-1:1)*(1/0);a=a+Math.pow(2,r),i=i-d}return(y?-1:1)*a*Math.pow(2,i-r)};wse.write=function(e,t,n,r,o,i){var a,c,l,d=i*8-o-1,m=(1<<d)-1,h=m>>1,g=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=r?0:i-1,w=r?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,a=m):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+h>=1?t+=g/l:t+=g*Math.pow(2,1-h),t*l>=2&&(a++,l/=2),a+h>=m?(c=0,a=m):a+h>=1?(c=(t*l-1)*Math.pow(2,o),a=a+h):(c=t*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;e[n+y]=c&255,y+=w,c/=256,o-=8);for(a=a<<o|c,d+=o;d>0;e[n+y]=a&255,y+=w,a/=256,d-=8);e[n+y-w]|=x*128}});var P2=me(E8=>{\"use strict\";f();var xse=eCe(),w8=tCe(),nCe=typeof Symbol==\"function\"&&typeof Symbol.for==\"function\"?Symbol.for(\"nodejs.util.inspect.custom\"):null;E8.Buffer=dt;E8.SlowBuffer=yyt;E8.INSPECT_MAX_BYTES=50;var RV=2147483647;E8.kMaxLength=RV;dt.TYPED_ARRAY_SUPPORT=fyt();!dt.TYPED_ARRAY_SUPPORT&&typeof console<\"u\"&&typeof console.error==\"function\"&&console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\");function fyt(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(dt.prototype,\"parent\",{enumerable:!0,get:function(){if(dt.isBuffer(this))return this.buffer}});Object.defineProperty(dt.prototype,\"offset\",{enumerable:!0,get:function(){if(dt.isBuffer(this))return this.byteOffset}});function N2(e){if(e>RV)throw new RangeError(\\'The value \"\\'+e+\\'\" is invalid for option \"size\"\\');let t=new Uint8Array(e);return Object.setPrototypeOf(t,dt.prototype),t}function dt(e,t,n){if(typeof e==\"number\"){if(typeof t==\"string\")throw new TypeError(\\'The \"string\" argument must be of type string. Received type number\\');return _se(e)}return aCe(e,t,n)}dt.poolSize=8192;function aCe(e,t,n){if(typeof e==\"string\")return hyt(e,t);if(ArrayBuffer.isView(e))return myt(e);if(e==null)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(jv(e,ArrayBuffer)||e&&jv(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<\"u\"&&(jv(e,SharedArrayBuffer)||e&&jv(e.buffer,SharedArrayBuffer)))return Ase(e,t,n);if(typeof e==\"number\")throw new TypeError(\\'The \"value\" argument must not be of type number. Received type number\\');let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return dt.from(r,t,n);let o=gyt(e);if(o)return o;if(typeof Symbol<\"u\"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==\"function\")return dt.from(e[Symbol.toPrimitive](\"string\"),t,n);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}dt.from=function(e,t,n){return aCe(e,t,n)};Object.setPrototypeOf(dt.prototype,Uint8Array.prototype);Object.setPrototypeOf(dt,Uint8Array);function sCe(e){if(typeof e!=\"number\")throw new TypeError(\\'\"size\" argument must be of type number\\');if(e<0)throw new RangeError(\\'The value \"\\'+e+\\'\" is invalid for option \"size\"\\')}function pyt(e,t,n){return sCe(e),e<=0?N2(e):t!==void 0?typeof n==\"string\"?N2(e).fill(t,n):N2(e).fill(t):N2(e)}dt.alloc=function(e,t,n){return pyt(e,t,n)};function _se(e){return sCe(e),N2(e<0?0:Tse(e)|0)}dt.allocUnsafe=function(e){return _se(e)};dt.allocUnsafeSlow=function(e){return _se(e)};function hyt(e,t){if((typeof t!=\"string\"||t===\"\")&&(t=\"utf8\"),!dt.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);let n=cCe(e,t)|0,r=N2(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}function Ese(e){let t=e.length<0?0:Tse(e.length)|0,n=N2(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function myt(e){if(jv(e,Uint8Array)){let t=new Uint8Array(e);return Ase(t.buffer,t.byteOffset,t.byteLength)}return Ese(e)}function Ase(e,t,n){if(t<0||e.byteLength<t)throw new RangeError(\\'\"offset\" is outside of buffer bounds\\');if(e.byteLength<t+(n||0))throw new RangeError(\\'\"length\" is outside of buffer bounds\\');let r;return t===void 0&&n===void 0?r=new Uint8Array(e):n===void 0?r=new Uint8Array(e,t):r=new Uint8Array(e,t,n),Object.setPrototypeOf(r,dt.prototype),r}function gyt(e){if(dt.isBuffer(e)){let t=Tse(e.length)|0,n=N2(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=\"number\"||Rse(e.length)?N2(0):Ese(e);if(e.type===\"Buffer\"&&Array.isArray(e.data))return Ese(e.data)}function Tse(e){if(e>=RV)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+RV.toString(16)+\" bytes\");return e|0}function yyt(e){return+e!=e&&(e=0),dt.alloc(+e)}dt.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==dt.prototype};dt.compare=function(t,n){if(jv(t,Uint8Array)&&(t=dt.from(t,t.offset,t.byteLength)),jv(n,Uint8Array)&&(n=dt.from(n,n.offset,n.byteLength)),!dt.isBuffer(t)||!dt.isBuffer(n))throw new TypeError(\\'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array\\');if(t===n)return 0;let r=t.length,o=n.length;for(let i=0,a=Math.min(r,o);i<a;++i)if(t[i]!==n[i]){r=t[i],o=n[i];break}return r<o?-1:o<r?1:0};dt.isEncoding=function(t){switch(String(t).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}};dt.concat=function(t,n){if(!Array.isArray(t))throw new TypeError(\\'\"list\" argument must be an Array of Buffers\\');if(t.length===0)return dt.alloc(0);let r;if(n===void 0)for(n=0,r=0;r<t.length;++r)n+=t[r].length;let o=dt.allocUnsafe(n),i=0;for(r=0;r<t.length;++r){let a=t[r];if(jv(a,Uint8Array))i+a.length>o.length?(dt.isBuffer(a)||(a=dt.from(a)),a.copy(o,i)):Uint8Array.prototype.set.call(o,a,i);else if(dt.isBuffer(a))a.copy(o,i);else throw new TypeError(\\'\"list\" argument must be an Array of Buffers\\');i+=a.length}return o};function cCe(e,t){if(dt.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||jv(e,ArrayBuffer))return e.byteLength;if(typeof e!=\"string\")throw new TypeError(\\'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type \\'+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let o=!1;for(;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return n;case\"utf8\":case\"utf-8\":return Sse(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return n*2;case\"hex\":return n>>>1;case\"base64\":return yCe(e).length;default:if(o)return r?-1:Sse(e).length;t=(\"\"+t).toLowerCase(),o=!0}}dt.byteLength=cCe;function byt(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return Ryt(this,t,n);case\"utf8\":case\"utf-8\":return lCe(this,t,n);case\"ascii\":return Tyt(this,t,n);case\"latin1\":case\"binary\":return Cyt(this,t,n);case\"base64\":return Syt(this,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return Iyt(this,t,n);default:if(r)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),r=!0}}dt.prototype._isBuffer=!0;function u5(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}dt.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(let n=0;n<t;n+=2)u5(this,n,n+1);return this};dt.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(let n=0;n<t;n+=4)u5(this,n,n+3),u5(this,n+1,n+2);return this};dt.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(let n=0;n<t;n+=8)u5(this,n,n+7),u5(this,n+1,n+6),u5(this,n+2,n+5),u5(this,n+3,n+4);return this};dt.prototype.toString=function(){let t=this.length;return t===0?\"\":arguments.length===0?lCe(this,0,t):byt.apply(this,arguments)};dt.prototype.toLocaleString=dt.prototype.toString;dt.prototype.equals=function(t){if(!dt.isBuffer(t))throw new TypeError(\"Argument must be a Buffer\");return this===t?!0:dt.compare(this,t)===0};dt.prototype.inspect=function(){let t=\"\",n=E8.INSPECT_MAX_BYTES;return t=this.toString(\"hex\",0,n).replace(/(.{2})/g,\"$1 \").trim(),this.length>n&&(t+=\" ... \"),\"<Buffer \"+t+\">\"};nCe&&(dt.prototype[nCe]=dt.prototype.inspect);dt.prototype.compare=function(t,n,r,o,i){if(jv(t,Uint8Array)&&(t=dt.from(t,t.offset,t.byteLength)),!dt.isBuffer(t))throw new TypeError(\\'The \"target\" argument must be one of type Buffer or Uint8Array. Received type \\'+typeof t);if(n===void 0&&(n=0),r===void 0&&(r=t?t.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),n<0||r>t.length||o<0||i>this.length)throw new RangeError(\"out of range index\");if(o>=i&&n>=r)return 0;if(o>=i)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,o>>>=0,i>>>=0,this===t)return 0;let a=i-o,c=r-n,l=Math.min(a,c),d=this.slice(o,i),m=t.slice(n,r);for(let h=0;h<l;++h)if(d[h]!==m[h]){a=d[h],c=m[h];break}return a<c?-1:c<a?1:0};function uCe(e,t,n,r,o){if(e.length===0)return-1;if(typeof n==\"string\"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Rse(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0)if(o)n=0;else return-1;if(typeof t==\"string\"&&(t=dt.from(t,r)),dt.isBuffer(t))return t.length===0?-1:rCe(e,t,n,r,o);if(typeof t==\"number\")return t=t&255,typeof Uint8Array.prototype.indexOf==\"function\"?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):rCe(e,[t],n,r,o);throw new TypeError(\"val must be string, number or Buffer\")}function rCe(e,t,n,r,o){let i=1,a=e.length,c=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===\"ucs2\"||r===\"ucs-2\"||r===\"utf16le\"||r===\"utf-16le\")){if(e.length<2||t.length<2)return-1;i=2,a/=2,c/=2,n/=2}function l(m,h){return i===1?m[h]:m.readUInt16BE(h*i)}let d;if(o){let m=-1;for(d=n;d<a;d++)if(l(e,d)===l(t,m===-1?0:d-m)){if(m===-1&&(m=d),d-m+1===c)return m*i}else m!==-1&&(d-=d-m),m=-1}else for(n+c>a&&(n=a-c),d=n;d>=0;d--){let m=!0;for(let h=0;h<c;h++)if(l(e,d+h)!==l(t,h)){m=!1;break}if(m)return d}return-1}dt.prototype.includes=function(t,n,r){return this.indexOf(t,n,r)!==-1};dt.prototype.indexOf=function(t,n,r){return uCe(this,t,n,r,!0)};dt.prototype.lastIndexOf=function(t,n,r){return uCe(this,t,n,r,!1)};function vyt(e,t,n,r){n=Number(n)||0;let o=e.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;let i=t.length;r>i/2&&(r=i/2);let a;for(a=0;a<r;++a){let c=parseInt(t.substr(a*2,2),16);if(Rse(c))return a;e[n+a]=c}return a}function wyt(e,t,n,r){return IV(Sse(t,e.length-n),e,n,r)}function xyt(e,t,n,r){return IV(Pyt(t),e,n,r)}function Eyt(e,t,n,r){return IV(yCe(t),e,n,r)}function Ayt(e,t,n,r){return IV(Myt(t,e.length-n),e,n,r)}dt.prototype.write=function(t,n,r,o){if(n===void 0)o=\"utf8\",r=this.length,n=0;else if(r===void 0&&typeof n==\"string\")o=n,r=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(r)?(r=r>>>0,o===void 0&&(o=\"utf8\")):(o=r,r=void 0);else throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");let i=this.length-n;if((r===void 0||r>i)&&(r=i),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");o||(o=\"utf8\");let a=!1;for(;;)switch(o){case\"hex\":return vyt(this,t,n,r);case\"utf8\":case\"utf-8\":return wyt(this,t,n,r);case\"ascii\":case\"latin1\":case\"binary\":return xyt(this,t,n,r);case\"base64\":return Eyt(this,t,n,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return Ayt(this,t,n,r);default:if(a)throw new TypeError(\"Unknown encoding: \"+o);o=(\"\"+o).toLowerCase(),a=!0}};dt.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};function Syt(e,t,n){return t===0&&n===e.length?xse.fromByteArray(e):xse.fromByteArray(e.slice(t,n))}function lCe(e,t,n){n=Math.min(e.length,n);let r=[],o=t;for(;o<n;){let i=e[o],a=null,c=i>239?4:i>223?3:i>191?2:1;if(o+c<=n){let l,d,m,h;switch(c){case 1:i<128&&(a=i);break;case 2:l=e[o+1],(l&192)===128&&(h=(i&31)<<6|l&63,h>127&&(a=h));break;case 3:l=e[o+1],d=e[o+2],(l&192)===128&&(d&192)===128&&(h=(i&15)<<12|(l&63)<<6|d&63,h>2047&&(h<55296||h>57343)&&(a=h));break;case 4:l=e[o+1],d=e[o+2],m=e[o+3],(l&192)===128&&(d&192)===128&&(m&192)===128&&(h=(i&15)<<18|(l&63)<<12|(d&63)<<6|m&63,h>65535&&h<1114112&&(a=h))}}a===null?(a=65533,c=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),o+=c}return _yt(r)}var oCe=4096;function _yt(e){let t=e.length;if(t<=oCe)return String.fromCharCode.apply(String,e);let n=\"\",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=oCe));return n}function Tyt(e,t,n){let r=\"\";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]&127);return r}function Cyt(e,t,n){let r=\"\";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function Ryt(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o=\"\";for(let i=t;i<n;++i)o+=Dyt[e[i]];return o}function Iyt(e,t,n){let r=e.slice(t,n),o=\"\";for(let i=0;i<r.length-1;i+=2)o+=String.fromCharCode(r[i]+r[i+1]*256);return o}dt.prototype.slice=function(t,n){let r=this.length;t=~~t,n=n===void 0?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<t&&(n=t);let o=this.subarray(t,n);return Object.setPrototypeOf(o,dt.prototype),o};function Ll(e,t,n){if(e%1!==0||e<0)throw new RangeError(\"offset is not uint\");if(e+t>n)throw new RangeError(\"Trying to access beyond buffer length\")}dt.prototype.readUintLE=dt.prototype.readUIntLE=function(t,n,r){t=t>>>0,n=n>>>0,r||Ll(t,n,this.length);let o=this[t],i=1,a=0;for(;++a<n&&(i*=256);)o+=this[t+a]*i;return o};dt.prototype.readUintBE=dt.prototype.readUIntBE=function(t,n,r){t=t>>>0,n=n>>>0,r||Ll(t,n,this.length);let o=this[t+--n],i=1;for(;n>0&&(i*=256);)o+=this[t+--n]*i;return o};dt.prototype.readUint8=dt.prototype.readUInt8=function(t,n){return t=t>>>0,n||Ll(t,1,this.length),this[t]};dt.prototype.readUint16LE=dt.prototype.readUInt16LE=function(t,n){return t=t>>>0,n||Ll(t,2,this.length),this[t]|this[t+1]<<8};dt.prototype.readUint16BE=dt.prototype.readUInt16BE=function(t,n){return t=t>>>0,n||Ll(t,2,this.length),this[t]<<8|this[t+1]};dt.prototype.readUint32LE=dt.prototype.readUInt32LE=function(t,n){return t=t>>>0,n||Ll(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};dt.prototype.readUint32BE=dt.prototype.readUInt32BE=function(t,n){return t=t>>>0,n||Ll(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};dt.prototype.readBigUInt64LE=t_(function(t){t=t>>>0,x8(t,\"offset\");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&b9(t,this.length-8);let o=n+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,i=this[++t]+this[++t]*2**8+this[++t]*2**16+r*2**24;return BigInt(o)+(BigInt(i)<<BigInt(32))});dt.prototype.readBigUInt64BE=t_(function(t){t=t>>>0,x8(t,\"offset\");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&b9(t,this.length-8);let o=n*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],i=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+r;return(BigInt(o)<<BigInt(32))+BigInt(i)});dt.prototype.readIntLE=function(t,n,r){t=t>>>0,n=n>>>0,r||Ll(t,n,this.length);let o=this[t],i=1,a=0;for(;++a<n&&(i*=256);)o+=this[t+a]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*n)),o};dt.prototype.readIntBE=function(t,n,r){t=t>>>0,n=n>>>0,r||Ll(t,n,this.length);let o=n,i=1,a=this[t+--o];for(;o>0&&(i*=256);)a+=this[t+--o]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*n)),a};dt.prototype.readInt8=function(t,n){return t=t>>>0,n||Ll(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};dt.prototype.readInt16LE=function(t,n){t=t>>>0,n||Ll(t,2,this.length);let r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r};dt.prototype.readInt16BE=function(t,n){t=t>>>0,n||Ll(t,2,this.length);let r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r};dt.prototype.readInt32LE=function(t,n){return t=t>>>0,n||Ll(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};dt.prototype.readInt32BE=function(t,n){return t=t>>>0,n||Ll(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};dt.prototype.readBigInt64LE=t_(function(t){t=t>>>0,x8(t,\"offset\");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&b9(t,this.length-8);let o=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(r<<24);return(BigInt(o)<<BigInt(32))+BigInt(n+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});dt.prototype.readBigInt64BE=t_(function(t){t=t>>>0,x8(t,\"offset\");let n=this[t],r=this[t+7];(n===void 0||r===void 0)&&b9(t,this.length-8);let o=(n<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(o)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+r)});dt.prototype.readFloatLE=function(t,n){return t=t>>>0,n||Ll(t,4,this.length),w8.read(this,t,!0,23,4)};dt.prototype.readFloatBE=function(t,n){return t=t>>>0,n||Ll(t,4,this.length),w8.read(this,t,!1,23,4)};dt.prototype.readDoubleLE=function(t,n){return t=t>>>0,n||Ll(t,8,this.length),w8.read(this,t,!0,52,8)};dt.prototype.readDoubleBE=function(t,n){return t=t>>>0,n||Ll(t,8,this.length),w8.read(this,t,!1,52,8)};function Lh(e,t,n,r,o,i){if(!dt.isBuffer(e))throw new TypeError(\\'\"buffer\" argument must be a Buffer instance\\');if(t>o||t<i)throw new RangeError(\\'\"value\" argument is out of bounds\\');if(n+r>e.length)throw new RangeError(\"Index out of range\")}dt.prototype.writeUintLE=dt.prototype.writeUIntLE=function(t,n,r,o){if(t=+t,n=n>>>0,r=r>>>0,!o){let c=Math.pow(2,8*r)-1;Lh(this,t,n,r,c,0)}let i=1,a=0;for(this[n]=t&255;++a<r&&(i*=256);)this[n+a]=t/i&255;return n+r};dt.prototype.writeUintBE=dt.prototype.writeUIntBE=function(t,n,r,o){if(t=+t,n=n>>>0,r=r>>>0,!o){let c=Math.pow(2,8*r)-1;Lh(this,t,n,r,c,0)}let i=r-1,a=1;for(this[n+i]=t&255;--i>=0&&(a*=256);)this[n+i]=t/a&255;return n+r};dt.prototype.writeUint8=dt.prototype.writeUInt8=function(t,n,r){return t=+t,n=n>>>0,r||Lh(this,t,n,1,255,0),this[n]=t&255,n+1};dt.prototype.writeUint16LE=dt.prototype.writeUInt16LE=function(t,n,r){return t=+t,n=n>>>0,r||Lh(this,t,n,2,65535,0),this[n]=t&255,this[n+1]=t>>>8,n+2};dt.prototype.writeUint16BE=dt.prototype.writeUInt16BE=function(t,n,r){return t=+t,n=n>>>0,r||Lh(this,t,n,2,65535,0),this[n]=t>>>8,this[n+1]=t&255,n+2};dt.prototype.writeUint32LE=dt.prototype.writeUInt32LE=function(t,n,r){return t=+t,n=n>>>0,r||Lh(this,t,n,4,4294967295,0),this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=t&255,n+4};dt.prototype.writeUint32BE=dt.prototype.writeUInt32BE=function(t,n,r){return t=+t,n=n>>>0,r||Lh(this,t,n,4,4294967295,0),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4};function dCe(e,t,n,r,o){gCe(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i=i>>8,e[n++]=i,i=i>>8,e[n++]=i,i=i>>8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a=a>>8,e[n++]=a,a=a>>8,e[n++]=a,a=a>>8,e[n++]=a,n}function fCe(e,t,n,r,o){gCe(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i=i>>8,e[n+6]=i,i=i>>8,e[n+5]=i,i=i>>8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a=a>>8,e[n+2]=a,a=a>>8,e[n+1]=a,a=a>>8,e[n]=a,n+8}dt.prototype.writeBigUInt64LE=t_(function(t,n=0){return dCe(this,t,n,BigInt(0),BigInt(\"0xffffffffffffffff\"))});dt.prototype.writeBigUInt64BE=t_(function(t,n=0){return fCe(this,t,n,BigInt(0),BigInt(\"0xffffffffffffffff\"))});dt.prototype.writeIntLE=function(t,n,r,o){if(t=+t,n=n>>>0,!o){let l=Math.pow(2,8*r-1);Lh(this,t,n,r,l-1,-l)}let i=0,a=1,c=0;for(this[n]=t&255;++i<r&&(a*=256);)t<0&&c===0&&this[n+i-1]!==0&&(c=1),this[n+i]=(t/a>>0)-c&255;return n+r};dt.prototype.writeIntBE=function(t,n,r,o){if(t=+t,n=n>>>0,!o){let l=Math.pow(2,8*r-1);Lh(this,t,n,r,l-1,-l)}let i=r-1,a=1,c=0;for(this[n+i]=t&255;--i>=0&&(a*=256);)t<0&&c===0&&this[n+i+1]!==0&&(c=1),this[n+i]=(t/a>>0)-c&255;return n+r};dt.prototype.writeInt8=function(t,n,r){return t=+t,n=n>>>0,r||Lh(this,t,n,1,127,-128),t<0&&(t=255+t+1),this[n]=t&255,n+1};dt.prototype.writeInt16LE=function(t,n,r){return t=+t,n=n>>>0,r||Lh(this,t,n,2,32767,-32768),this[n]=t&255,this[n+1]=t>>>8,n+2};dt.prototype.writeInt16BE=function(t,n,r){return t=+t,n=n>>>0,r||Lh(this,t,n,2,32767,-32768),this[n]=t>>>8,this[n+1]=t&255,n+2};dt.prototype.writeInt32LE=function(t,n,r){return t=+t,n=n>>>0,r||Lh(this,t,n,4,2147483647,-2147483648),this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24,n+4};dt.prototype.writeInt32BE=function(t,n,r){return t=+t,n=n>>>0,r||Lh(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4};dt.prototype.writeBigInt64LE=t_(function(t,n=0){return dCe(this,t,n,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))});dt.prototype.writeBigInt64BE=t_(function(t,n=0){return fCe(this,t,n,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))});function pCe(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"Index out of range\")}function hCe(e,t,n,r,o){return t=+t,n=n>>>0,o||pCe(e,t,n,4,34028234663852886e22,-34028234663852886e22),w8.write(e,t,n,r,23,4),n+4}dt.prototype.writeFloatLE=function(t,n,r){return hCe(this,t,n,!0,r)};dt.prototype.writeFloatBE=function(t,n,r){return hCe(this,t,n,!1,r)};function mCe(e,t,n,r,o){return t=+t,n=n>>>0,o||pCe(e,t,n,8,17976931348623157e292,-17976931348623157e292),w8.write(e,t,n,r,52,8),n+8}dt.prototype.writeDoubleLE=function(t,n,r){return mCe(this,t,n,!0,r)};dt.prototype.writeDoubleBE=function(t,n,r){return mCe(this,t,n,!1,r)};dt.prototype.copy=function(t,n,r,o){if(!dt.isBuffer(t))throw new TypeError(\"argument should be a Buffer\");if(r||(r=0),!o&&o!==0&&(o=this.length),n>=t.length&&(n=t.length),n||(n=0),o>0&&o<r&&(o=r),o===r||t.length===0||this.length===0)return 0;if(n<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(o<0)throw new RangeError(\"sourceEnd out of bounds\");o>this.length&&(o=this.length),t.length-n<o-r&&(o=t.length-n+r);let i=o-r;return this===t&&typeof Uint8Array.prototype.copyWithin==\"function\"?this.copyWithin(n,r,o):Uint8Array.prototype.set.call(t,this.subarray(r,o),n),i};dt.prototype.fill=function(t,n,r,o){if(typeof t==\"string\"){if(typeof n==\"string\"?(o=n,n=0,r=this.length):typeof r==\"string\"&&(o=r,r=this.length),o!==void 0&&typeof o!=\"string\")throw new TypeError(\"encoding must be a string\");if(typeof o==\"string\"&&!dt.isEncoding(o))throw new TypeError(\"Unknown encoding: \"+o);if(t.length===1){let a=t.charCodeAt(0);(o===\"utf8\"&&a<128||o===\"latin1\")&&(t=a)}}else typeof t==\"number\"?t=t&255:typeof t==\"boolean\"&&(t=Number(t));if(n<0||this.length<n||this.length<r)throw new RangeError(\"Out of range index\");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,t||(t=0);let i;if(typeof t==\"number\")for(i=n;i<r;++i)this[i]=t;else{let a=dt.isBuffer(t)?t:dt.from(t,o),c=a.length;if(c===0)throw new TypeError(\\'The value \"\\'+t+\\'\" is invalid for argument \"value\"\\');for(i=0;i<r-n;++i)this[i+n]=a[i%c]}return this};var v8={};function Cse(e,t,n){v8[e]=class extends n{constructor(){super(),Object.defineProperty(this,\"message\",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(o){Object.defineProperty(this,\"code\",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}Cse(\"ERR_BUFFER_OUT_OF_BOUNDS\",function(e){return e?`${e} is outside of buffer bounds`:\"Attempt to access memory outside buffer bounds\"},RangeError);Cse(\"ERR_INVALID_ARG_TYPE\",function(e,t){return`The \"${e}\" argument must be of type number. Received type ${typeof t}`},TypeError);Cse(\"ERR_OUT_OF_RANGE\",function(e,t,n){let r=`The value of \"${e}\" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=iCe(String(n)):typeof n==\"bigint\"&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=iCe(o)),o+=\"n\"),r+=` It must be ${t}. Received ${o}`,r},RangeError);function iCe(e){let t=\"\",n=e.length,r=e[0]===\"-\"?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function kyt(e,t,n){x8(t,\"offset\"),(e[t]===void 0||e[t+n]===void 0)&&b9(t,e.length-(n+1))}function gCe(e,t,n,r,o,i){if(e>n||e<t){let a=typeof t==\"bigint\"?\"n\":\"\",c;throw i>3?t===0||t===BigInt(0)?c=`>= 0${a} and < 2${a} ** ${(i+1)*8}${a}`:c=`>= -(2${a} ** ${(i+1)*8-1}${a}) and < 2 ** ${(i+1)*8-1}${a}`:c=`>= ${t}${a} and <= ${n}${a}`,new v8.ERR_OUT_OF_RANGE(\"value\",c,e)}kyt(r,o,i)}function x8(e,t){if(typeof e!=\"number\")throw new v8.ERR_INVALID_ARG_TYPE(t,\"number\",e)}function b9(e,t,n){throw Math.floor(e)!==e?(x8(e,n),new v8.ERR_OUT_OF_RANGE(n||\"offset\",\"an integer\",e)):t<0?new v8.ERR_BUFFER_OUT_OF_BOUNDS:new v8.ERR_OUT_OF_RANGE(n||\"offset\",`>= ${n?1:0} and <= ${t}`,e)}var Oyt=/[^+/0-9A-Za-z-_]/g;function Nyt(e){if(e=e.split(\"=\")[0],e=e.trim().replace(Oyt,\"\"),e.length<2)return\"\";for(;e.length%4!==0;)e=e+\"=\";return e}function Sse(e,t){t=t||1/0;let n,r=e.length,o=null,i=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}else if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error(\"Invalid code point\")}return i}function Pyt(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function Myt(e,t){let n,r,o,i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}function yCe(e){return xse.toByteArray(Nyt(e))}function IV(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function jv(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Rse(e){return e!==e}var Dyt=(function(){let e=\"0123456789abcdef\",t=new Array(256);for(let n=0;n<16;++n){let r=n*16;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t})();function t_(e){return typeof BigInt>\"u\"?Byt:e}function Byt(){throw new Error(\"BigInt not supported\")}});var bCe,f=$(()=>{\"use strict\";bCe=ge(P2());globalThis.Buffer=bCe.Buffer});var vCe=me(Ts=>{\"use strict\";f();(function(){function e(){if(z=!1,ie){var O=Ts.unstable_now();Z=O;var U=!0;try{e:{M=!1,B&&(B=!1,J(ae),ae=-1),C=!0;var P=I;try{t:{for(i(O),x=n(g);x!==null&&!(x.expirationTime>O&&c());){var L=x.callback;if(typeof L==\"function\"){x.callback=null,I=x.priorityLevel;var W=L(x.expirationTime<=O);if(O=Ts.unstable_now(),typeof W==\"function\"){x.callback=W,i(O),U=!0;break t}x===n(g)&&r(g),i(O)}else r(g);x=n(g)}if(x!==null)U=!0;else{var q=n(y);q!==null&&l(a,q.startTime-O),U=!1}}break e}finally{x=null,I=P,C=!1}U=void 0}}finally{U?X():ie=!1}}}function t(O,U){var P=O.length;O.push(U);e:for(;0<P;){var L=P-1>>>1,W=O[L];if(0<o(W,U))O[L]=U,O[P]=W,P=L;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var U=O[0],P=O.pop();if(P!==U){O[0]=P;e:for(var L=0,W=O.length,q=W>>>1;L<q;){var H=2*(L+1)-1,k=O[H],V=H+1,oe=O[V];if(0>o(k,P))V<W&&0>o(oe,k)?(O[L]=oe,O[V]=P,L=V):(O[L]=k,O[H]=P,L=H);else if(V<W&&0>o(oe,P))O[L]=oe,O[V]=P,L=V;else break e}}return U}function o(O,U){var P=O.sortIndex-U.sortIndex;return P!==0?P:O.id-U.id}function i(O){for(var U=n(y);U!==null;){if(U.callback===null)r(y);else if(U.startTime<=O)r(y),U.sortIndex=U.expirationTime,t(g,U);else break;U=n(y)}}function a(O){if(B=!1,i(O),!M)if(n(g)!==null)M=!0,ie||(ie=!0,X());else{var U=n(y);U!==null&&l(a,U.startTime-O)}}function c(){return z?!0:!(Ts.unstable_now()-Z<te)}function l(O,U){ae=G(function(){O(Ts.unstable_now())},U)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Ts.unstable_now=void 0,typeof performance==\"object\"&&typeof performance.now==\"function\"){var d=performance;Ts.unstable_now=function(){return d.now()}}else{var m=Date,h=m.now();Ts.unstable_now=function(){return m.now()-h}}var g=[],y=[],w=1,x=null,I=3,C=!1,M=!1,B=!1,z=!1,G=typeof setTimeout==\"function\"?setTimeout:null,J=typeof clearTimeout==\"function\"?clearTimeout:null,ne=typeof setImmediate<\"u\"?setImmediate:null,ie=!1,ae=-1,te=5,Z=-1;if(typeof ne==\"function\")var X=function(){ne(e)};else if(typeof MessageChannel<\"u\"){var F=new MessageChannel,R=F.port2;F.port1.onmessage=e,X=function(){R.postMessage(null)}}else X=function(){G(e,0)};Ts.unstable_IdlePriority=5,Ts.unstable_ImmediatePriority=1,Ts.unstable_LowPriority=4,Ts.unstable_NormalPriority=3,Ts.unstable_Profiling=null,Ts.unstable_UserBlockingPriority=2,Ts.unstable_cancelCallback=function(O){O.callback=null},Ts.unstable_forceFrameRate=function(O){0>O||125<O?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):te=0<O?Math.floor(1e3/O):5},Ts.unstable_getCurrentPriorityLevel=function(){return I},Ts.unstable_next=function(O){switch(I){case 1:case 2:case 3:var U=3;break;default:U=I}var P=I;I=U;try{return O()}finally{I=P}},Ts.unstable_requestPaint=function(){z=!0},Ts.unstable_runWithPriority=function(O,U){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var P=I;I=O;try{return U()}finally{I=P}},Ts.unstable_scheduleCallback=function(O,U,P){var L=Ts.unstable_now();switch(typeof P==\"object\"&&P!==null?(P=P.delay,P=typeof P==\"number\"&&0<P?L+P:L):P=L,O){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=P+W,O={id:w++,callback:U,priorityLevel:O,startTime:P,expirationTime:W,sortIndex:-1},P>L?(O.sortIndex=P,t(y,O),n(g)===null&&O===n(y)&&(B?(J(ae),ae=-1):B=!0,l(a,P-L))):(O.sortIndex=W,t(g,O),M||C||(M=!0,ie||(ie=!0,X()))),O},Ts.unstable_shouldYield=c,Ts.unstable_wrapCallback=function(O){var U=I;return function(){var P=I;I=U;try{return O.apply(this,arguments)}finally{I=P}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var xCe=me((z$t,wCe)=>{\"use strict\";f();wCe.exports=vCe()});var ECe=me((cr,kV)=>{\"use strict\";f();(function(){function e(de,Le){Object.defineProperty(r.prototype,de,{get:function(){console.warn(\"%s(...) is deprecated in plain JavaScript React classes. %s\",Le[0],Le[1])}})}function t(de){return de===null||typeof de!=\"object\"?null:(de=Ie&&de[Ie]||de[\"@@iterator\"],typeof de==\"function\"?de:null)}function n(de,Le){de=(de=de.constructor)&&(de.displayName||de.name)||\"ReactClass\";var it=de+\".\"+Le;_e[it]||(console.error(\"Can\\'t call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.\",Le,de),_e[it]=!0)}function r(de,Le,it){this.props=de,this.context=Le,this.refs=qe,this.updater=it||Ve}function o(){}function i(de,Le,it){this.props=de,this.context=Le,this.refs=qe,this.updater=it||Ve}function a(){}function c(de){return\"\"+de}function l(de){try{c(de);var Le=!1}catch{Le=!0}if(Le){Le=console;var it=Le.error,bt=typeof Symbol==\"function\"&&Symbol.toStringTag&&de[Symbol.toStringTag]||de.constructor.name||\"Object\";return it.call(Le,\"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",bt),c(de)}}function d(de){if(de==null)return null;if(typeof de==\"function\")return de.$$typeof===wt?null:de.displayName||de.name||null;if(typeof de==\"string\")return de;switch(de){case W:return\"Fragment\";case H:return\"Profiler\";case q:return\"StrictMode\";case se:return\"Suspense\";case ue:return\"SuspenseList\";case we:return\"Activity\"}if(typeof de==\"object\")switch(typeof de.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),de.$$typeof){case L:return\"Portal\";case V:return de.displayName||\"Context\";case k:return(de._context.displayName||\"Context\")+\".Consumer\";case oe:var Le=de.render;return de=de.displayName,de||(de=Le.displayName||Le.name||\"\",de=de!==\"\"?\"ForwardRef(\"+de+\")\":\"ForwardRef\"),de;case he:return Le=de.displayName||null,Le!==null?Le:d(de.type)||\"Memo\";case be:Le=de._payload,de=de._init;try{return d(de(Le))}catch{}}return null}function m(de){if(de===W)return\"<>\";if(typeof de==\"object\"&&de!==null&&de.$$typeof===be)return\"<...>\";try{var Le=d(de);return Le?\"<\"+Le+\">\":\"<...>\"}catch{return\"<...>\"}}function h(){var de=ot.A;return de===null?null:de.getOwner()}function g(){return Error(\"react-stack-top-frame\")}function y(de){if(mn.call(de,\"key\")){var Le=Object.getOwnPropertyDescriptor(de,\"key\").get;if(Le&&Le.isReactWarning)return!1}return de.key!==void 0}function w(de,Le){function it(){rn||(rn=!0,console.error(\"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",Le))}it.isReactWarning=!0,Object.defineProperty(de,\"key\",{get:it,configurable:!0})}function x(){var de=d(this.type);return Kt[de]||(Kt[de]=!0,console.error(\"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\")),de=this.props.ref,de!==void 0?de:null}function I(de,Le,it,bt,jt,Yt){var Qt=it.ref;return de={$$typeof:P,type:de,key:Le,props:it,_owner:bt},(Qt!==void 0?Qt:null)!==null?Object.defineProperty(de,\"ref\",{enumerable:!1,get:x}):Object.defineProperty(de,\"ref\",{enumerable:!1,value:null}),de._store={},Object.defineProperty(de._store,\"validated\",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(de,\"_debugInfo\",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(de,\"_debugStack\",{configurable:!1,enumerable:!1,writable:!0,value:jt}),Object.defineProperty(de,\"_debugTask\",{configurable:!1,enumerable:!1,writable:!0,value:Yt}),Object.freeze&&(Object.freeze(de.props),Object.freeze(de)),de}function C(de,Le){return Le=I(de.type,Le,de.props,de._owner,de._debugStack,de._debugTask),de._store&&(Le._store.validated=de._store.validated),Le}function M(de){B(de)?de._store&&(de._store.validated=1):typeof de==\"object\"&&de!==null&&de.$$typeof===be&&(de._payload.status===\"fulfilled\"?B(de._payload.value)&&de._payload.value._store&&(de._payload.value._store.validated=1):de._store&&(de._store.validated=1))}function B(de){return typeof de==\"object\"&&de!==null&&de.$$typeof===P}function z(de){var Le={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+de.replace(/[=:]/g,function(it){return Le[it]})}function G(de,Le){return typeof de==\"object\"&&de!==null&&de.key!=null?(l(de.key),z(\"\"+de.key)):Le.toString(36)}function J(de){switch(de.status){case\"fulfilled\":return de.value;case\"rejected\":throw de.reason;default:switch(typeof de.status==\"string\"?de.then(a,a):(de.status=\"pending\",de.then(function(Le){de.status===\"pending\"&&(de.status=\"fulfilled\",de.value=Le)},function(Le){de.status===\"pending\"&&(de.status=\"rejected\",de.reason=Le)})),de.status){case\"fulfilled\":return de.value;case\"rejected\":throw de.reason}}throw de}function ne(de,Le,it,bt,jt){var Yt=typeof de;(Yt===\"undefined\"||Yt===\"boolean\")&&(de=null);var Qt=!1;if(de===null)Qt=!0;else switch(Yt){case\"bigint\":case\"string\":case\"number\":Qt=!0;break;case\"object\":switch(de.$$typeof){case P:case L:Qt=!0;break;case be:return Qt=de._init,ne(Qt(de._payload),Le,it,bt,jt)}}if(Qt){Qt=de,jt=jt(Qt);var ir=bt===\"\"?\".\"+G(Qt,0):bt;return rt(jt)?(it=\"\",ir!=null&&(it=ir.replace(fn,\"$&/\")+\"/\"),ne(jt,Le,it,\"\",function(Mn){return Mn})):jt!=null&&(B(jt)&&(jt.key!=null&&(Qt&&Qt.key===jt.key||l(jt.key)),it=C(jt,it+(jt.key==null||Qt&&Qt.key===jt.key?\"\":(\"\"+jt.key).replace(fn,\"$&/\")+\"/\")+ir),bt!==\"\"&&Qt!=null&&B(Qt)&&Qt.key==null&&Qt._store&&!Qt._store.validated&&(it._store.validated=2),jt=it),Le.push(jt)),1}if(Qt=0,ir=bt===\"\"?\".\":bt+\":\",rt(de))for(var zt=0;zt<de.length;zt++)bt=de[zt],Yt=ir+G(bt,zt),Qt+=ne(bt,Le,it,Yt,jt);else if(zt=t(de),typeof zt==\"function\")for(zt===de.entries&&(Fn||console.warn(\"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"),Fn=!0),de=zt.call(de),zt=0;!(bt=de.next()).done;)bt=bt.value,Yt=ir+G(bt,zt++),Qt+=ne(bt,Le,it,Yt,jt);else if(Yt===\"object\"){if(typeof de.then==\"function\")return ne(J(de),Le,it,bt,jt);throw Le=String(de),Error(\"Objects are not valid as a React child (found: \"+(Le===\"[object Object]\"?\"object with keys {\"+Object.keys(de).join(\", \")+\"}\":Le)+\"). If you meant to render a collection of children, use an array instead.\")}return Qt}function ie(de,Le,it){if(de==null)return de;var bt=[],jt=0;return ne(de,bt,\"\",\"\",function(Yt){return Le.call(it,Yt,jt++)}),bt}function ae(de){if(de._status===-1){var Le=de._ioInfo;Le!=null&&(Le.start=Le.end=performance.now()),Le=de._result;var it=Le();if(it.then(function(jt){if(de._status===0||de._status===-1){de._status=1,de._result=jt;var Yt=de._ioInfo;Yt!=null&&(Yt.end=performance.now()),it.status===void 0&&(it.status=\"fulfilled\",it.value=jt)}},function(jt){if(de._status===0||de._status===-1){de._status=2,de._result=jt;var Yt=de._ioInfo;Yt!=null&&(Yt.end=performance.now()),it.status===void 0&&(it.status=\"rejected\",it.reason=jt)}}),Le=de._ioInfo,Le!=null){Le.value=it;var bt=it.displayName;typeof bt==\"string\"&&(Le.name=bt)}de._status===-1&&(de._status=0,de._result=it)}if(de._status===1)return Le=de._result,Le===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s\\n\\nYour code should look like: \\n  const MyComponent = lazy(() => import(\\'./MyComponent\\'))\\n\\nDid you accidentally put curly braces around the import?`,Le),\"default\"in Le||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s\\n\\nYour code should look like: \\n  const MyComponent = lazy(() => import(\\'./MyComponent\\'))`,Le),Le.default;throw de._result}function te(){var de=ot.H;return de===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),de}function Z(){ot.asyncTransitions--}function X(de){if(Kr===null)try{var Le=(\"require\"+Math.random()).slice(0,7);Kr=(kV&&kV[Le]).call(kV,\"timers\").setImmediate}catch{Kr=function(bt){Ar===!1&&(Ar=!0,typeof MessageChannel>\"u\"&&console.error(\"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.\"));var jt=new MessageChannel;jt.port1.onmessage=bt,jt.port2.postMessage(void 0)}}return Kr(de)}function F(de){return 1<de.length&&typeof AggregateError==\"function\"?new AggregateError(de):de[0]}function R(de,Le){Le!==Ka-1&&console.error(\"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. \"),Ka=Le}function O(de,Le,it){var bt=ot.actQueue;if(bt!==null)if(bt.length!==0)try{U(bt),X(function(){return O(de,Le,it)});return}catch(jt){ot.thrownErrors.push(jt)}else ot.actQueue=null;0<ot.thrownErrors.length?(bt=F(ot.thrownErrors),ot.thrownErrors.length=0,it(bt)):Le(de)}function U(de){if(!$r){$r=!0;var Le=0;try{for(;Le<de.length;Le++){var it=de[Le];do{ot.didUsePromise=!1;var bt=it(!1);if(bt!==null){if(ot.didUsePromise){de[Le]=it,de.splice(0,Le);return}it=bt}else break}while(!0)}de.length=0}catch(jt){de.splice(0,Le+1),ot.thrownErrors.push(jt)}finally{$r=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var P=Symbol.for(\"react.transitional.element\"),L=Symbol.for(\"react.portal\"),W=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),H=Symbol.for(\"react.profiler\"),k=Symbol.for(\"react.consumer\"),V=Symbol.for(\"react.context\"),oe=Symbol.for(\"react.forward_ref\"),se=Symbol.for(\"react.suspense\"),ue=Symbol.for(\"react.suspense_list\"),he=Symbol.for(\"react.memo\"),be=Symbol.for(\"react.lazy\"),we=Symbol.for(\"react.activity\"),Ie=Symbol.iterator,_e={},Ve={isMounted:function(){return!1},enqueueForceUpdate:function(de){n(de,\"forceUpdate\")},enqueueReplaceState:function(de){n(de,\"replaceState\")},enqueueSetState:function(de){n(de,\"setState\")}},Et=Object.assign,qe={};Object.freeze(qe),r.prototype.isReactComponent={},r.prototype.setState=function(de,Le){if(typeof de!=\"object\"&&typeof de!=\"function\"&&de!=null)throw Error(\"takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,de,Le,\"setState\")},r.prototype.forceUpdate=function(de){this.updater.enqueueForceUpdate(this,de,\"forceUpdate\")};var Xe={isMounted:[\"isMounted\",\"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.\"],replaceState:[\"replaceState\",\"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).\"]};for(lr in Xe)Xe.hasOwnProperty(lr)&&e(lr,Xe[lr]);o.prototype=r.prototype,Xe=i.prototype=new o,Xe.constructor=i,Et(Xe,r.prototype),Xe.isPureReactComponent=!0;var rt=Array.isArray,wt=Symbol.for(\"react.client.reference\"),ot={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},mn=Object.prototype.hasOwnProperty,St=console.createTask?console.createTask:function(){return null};Xe={react_stack_bottom_frame:function(de){return de()}};var rn,$t,Kt={},en=Xe.react_stack_bottom_frame.bind(Xe,g)(),Ho=St(m(g)),Fn=!1,fn=/\\\\/+/g,Hs=typeof reportError==\"function\"?reportError:function(de){if(typeof window==\"object\"&&typeof window.ErrorEvent==\"function\"){var Le=new window.ErrorEvent(\"error\",{bubbles:!0,cancelable:!0,message:typeof de==\"object\"&&de!==null&&typeof de.message==\"string\"?String(de.message):String(de),error:de});if(!window.dispatchEvent(Le))return}else if(typeof process==\"object\"&&typeof process.emit==\"function\"){process.emit(\"uncaughtException\",de);return}console.error(de)},Ar=!1,Kr=null,Ka=0,Sr=!1,$r=!1,yl=typeof queueMicrotask==\"function\"?function(de){queueMicrotask(function(){return queueMicrotask(de)})}:X;Xe=Object.freeze({__proto__:null,c:function(de){return te().useMemoCache(de)}});var lr={map:ie,forEach:function(de,Le,it){ie(de,function(){Le.apply(this,arguments)},it)},count:function(de){var Le=0;return ie(de,function(){Le++}),Le},toArray:function(de){return ie(de,function(Le){return Le})||[]},only:function(de){if(!B(de))throw Error(\"React.Children.only expected to receive a single React element child.\");return de}};cr.Activity=we,cr.Children=lr,cr.Component=r,cr.Fragment=W,cr.Profiler=H,cr.PureComponent=i,cr.StrictMode=q,cr.Suspense=se,cr.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ot,cr.__COMPILER_RUNTIME=Xe,cr.act=function(de){var Le=ot.actQueue,it=Ka;Ka++;var bt=ot.actQueue=Le!==null?Le:[],jt=!1;try{var Yt=de()}catch(zt){ot.thrownErrors.push(zt)}if(0<ot.thrownErrors.length)throw R(Le,it),de=F(ot.thrownErrors),ot.thrownErrors.length=0,de;if(Yt!==null&&typeof Yt==\"object\"&&typeof Yt.then==\"function\"){var Qt=Yt;return yl(function(){jt||Sr||(Sr=!0,console.error(\"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);\"))}),{then:function(zt,Mn){jt=!0,Qt.then(function(hs){if(R(Le,it),it===0){try{U(bt),X(function(){return O(hs,zt,Mn)})}catch(Ur){ot.thrownErrors.push(Ur)}if(0<ot.thrownErrors.length){var eo=F(ot.thrownErrors);ot.thrownErrors.length=0,Mn(eo)}}else zt(hs)},function(hs){R(Le,it),0<ot.thrownErrors.length&&(hs=F(ot.thrownErrors),ot.thrownErrors.length=0),Mn(hs)})}}}var ir=Yt;if(R(Le,it),it===0&&(U(bt),bt.length!==0&&yl(function(){jt||Sr||(Sr=!0,console.error(\"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\\\\n\\\\nawait act(() => ...)\"))}),ot.actQueue=null),0<ot.thrownErrors.length)throw de=F(ot.thrownErrors),ot.thrownErrors.length=0,de;return{then:function(zt,Mn){jt=!0,it===0?(ot.actQueue=bt,X(function(){return O(ir,zt,Mn)})):zt(ir)}}},cr.cache=function(de){return function(){return de.apply(null,arguments)}},cr.cacheSignal=function(){return null},cr.captureOwnerStack=function(){var de=ot.getCurrentStack;return de===null?null:de()},cr.cloneElement=function(de,Le,it){if(de==null)throw Error(\"The argument must be a React element, but you passed \"+de+\".\");var bt=Et({},de.props),jt=de.key,Yt=de._owner;if(Le!=null){var Qt;e:{if(mn.call(Le,\"ref\")&&(Qt=Object.getOwnPropertyDescriptor(Le,\"ref\").get)&&Qt.isReactWarning){Qt=!1;break e}Qt=Le.ref!==void 0}Qt&&(Yt=h()),y(Le)&&(l(Le.key),jt=\"\"+Le.key);for(ir in Le)!mn.call(Le,ir)||ir===\"key\"||ir===\"__self\"||ir===\"__source\"||ir===\"ref\"&&Le.ref===void 0||(bt[ir]=Le[ir])}var ir=arguments.length-2;if(ir===1)bt.children=it;else if(1<ir){Qt=Array(ir);for(var zt=0;zt<ir;zt++)Qt[zt]=arguments[zt+2];bt.children=Qt}for(bt=I(de.type,jt,bt,Yt,de._debugStack,de._debugTask),jt=2;jt<arguments.length;jt++)M(arguments[jt]);return bt},cr.createContext=function(de){return de={$$typeof:V,_currentValue:de,_currentValue2:de,_threadCount:0,Provider:null,Consumer:null},de.Provider=de,de.Consumer={$$typeof:k,_context:de},de._currentRenderer=null,de._currentRenderer2=null,de},cr.createElement=function(de,Le,it){for(var bt=2;bt<arguments.length;bt++)M(arguments[bt]);bt={};var jt=null;if(Le!=null)for(zt in $t||!(\"__self\"in Le)||\"key\"in Le||($t=!0,console.warn(\"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform\")),y(Le)&&(l(Le.key),jt=\"\"+Le.key),Le)mn.call(Le,zt)&&zt!==\"key\"&&zt!==\"__self\"&&zt!==\"__source\"&&(bt[zt]=Le[zt]);var Yt=arguments.length-2;if(Yt===1)bt.children=it;else if(1<Yt){for(var Qt=Array(Yt),ir=0;ir<Yt;ir++)Qt[ir]=arguments[ir+2];Object.freeze&&Object.freeze(Qt),bt.children=Qt}if(de&&de.defaultProps)for(zt in Yt=de.defaultProps,Yt)bt[zt]===void 0&&(bt[zt]=Yt[zt]);jt&&w(bt,typeof de==\"function\"?de.displayName||de.name||\"Unknown\":de);var zt=1e4>ot.recentlyCreatedOwnerStacks++;return I(de,jt,bt,h(),zt?Error(\"react-stack-top-frame\"):en,zt?St(m(de)):Ho)},cr.createRef=function(){var de={current:null};return Object.seal(de),de},cr.forwardRef=function(de){de!=null&&de.$$typeof===he?console.error(\"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).\"):typeof de!=\"function\"?console.error(\"forwardRef requires a render function but was given %s.\",de===null?\"null\":typeof de):de.length!==0&&de.length!==2&&console.error(\"forwardRef render functions accept exactly two parameters: props and ref. %s\",de.length===1?\"Did you forget to use the ref parameter?\":\"Any additional parameter will be undefined.\"),de!=null&&de.defaultProps!=null&&console.error(\"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?\");var Le={$$typeof:oe,render:de},it;return Object.defineProperty(Le,\"displayName\",{enumerable:!1,configurable:!0,get:function(){return it},set:function(bt){it=bt,de.name||de.displayName||(Object.defineProperty(de,\"name\",{value:bt}),de.displayName=bt)}}),Le},cr.isValidElement=B,cr.lazy=function(de){de={_status:-1,_result:de};var Le={$$typeof:be,_payload:de,_init:ae},it={name:\"lazy\",start:-1,end:-1,value:null,owner:null,debugStack:Error(\"react-stack-top-frame\"),debugTask:console.createTask?console.createTask(\"lazy()\"):null};return de._ioInfo=it,Le._debugInfo=[{awaited:it}],Le},cr.memo=function(de,Le){de==null&&console.error(\"memo: The first argument must be a component. Instead received: %s\",de===null?\"null\":typeof de),Le={$$typeof:he,type:de,compare:Le===void 0?null:Le};var it;return Object.defineProperty(Le,\"displayName\",{enumerable:!1,configurable:!0,get:function(){return it},set:function(bt){it=bt,de.name||de.displayName||(Object.defineProperty(de,\"name\",{value:bt}),de.displayName=bt)}}),Le},cr.startTransition=function(de){var Le=ot.T,it={};it._updatedFibers=new Set,ot.T=it;try{var bt=de(),jt=ot.S;jt!==null&&jt(it,bt),typeof bt==\"object\"&&bt!==null&&typeof bt.then==\"function\"&&(ot.asyncTransitions++,bt.then(Z,Z),bt.then(a,Hs))}catch(Yt){Hs(Yt)}finally{Le===null&&it._updatedFibers&&(de=it._updatedFibers.size,it._updatedFibers.clear(),10<de&&console.warn(\"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.\")),Le!==null&&it.types!==null&&(Le.types!==null&&Le.types!==it.types&&console.error(\"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.\"),Le.types=it.types),ot.T=Le}},cr.unstable_useCacheRefresh=function(){return te().useCacheRefresh()},cr.use=function(de){return te().use(de)},cr.useActionState=function(de,Le,it){return te().useActionState(de,Le,it)},cr.useCallback=function(de,Le){return te().useCallback(de,Le)},cr.useContext=function(de){var Le=te();return de.$$typeof===k&&console.error(\"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?\"),Le.useContext(de)},cr.useDebugValue=function(de,Le){return te().useDebugValue(de,Le)},cr.useDeferredValue=function(de,Le){return te().useDeferredValue(de,Le)},cr.useEffect=function(de,Le){return de==null&&console.warn(\"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?\"),te().useEffect(de,Le)},cr.useEffectEvent=function(de){return te().useEffectEvent(de)},cr.useId=function(){return te().useId()},cr.useImperativeHandle=function(de,Le,it){return te().useImperativeHandle(de,Le,it)},cr.useInsertionEffect=function(de,Le){return de==null&&console.warn(\"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?\"),te().useInsertionEffect(de,Le)},cr.useLayoutEffect=function(de,Le){return de==null&&console.warn(\"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?\"),te().useLayoutEffect(de,Le)},cr.useMemo=function(de,Le){return te().useMemo(de,Le)},cr.useOptimistic=function(de,Le){return te().useOptimistic(de,Le)},cr.useReducer=function(de,Le,it){return te().useReducer(de,Le,it)},cr.useRef=function(de){return te().useRef(de)},cr.useState=function(de){return te().useState(de)},cr.useSyncExternalStore=function(de,Le,it){return te().useSyncExternalStore(de,Le,it)},cr.useTransition=function(){return te().useTransition()},cr.version=\"19.2.0\",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var at=me((V$t,ACe)=>{\"use strict\";f();ACe.exports=ECe()});var SCe=me(Bp=>{\"use strict\";f();(function(){function e(){}function t(h){return\"\"+h}function n(h,g,y){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(w);var x=!1}catch{x=!0}return x&&(console.error(\"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",typeof Symbol==\"function\"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||\"Object\"),t(w)),{$$typeof:d,key:w==null?null:\"\"+w,children:h,containerInfo:g,implementation:y}}function r(h,g){if(h===\"font\")return\"\";if(typeof g==\"string\")return g===\"use-credentials\"?g:\"\"}function o(h){return h===null?\"`null`\":h===void 0?\"`undefined`\":h===\"\"?\"an empty string\":\\'something with type \"\\'+typeof h+\\'\"\\'}function i(h){return h===null?\"`null`\":h===void 0?\"`undefined`\":h===\"\"?\"an empty string\":typeof h==\"string\"?JSON.stringify(h):typeof h==\"number\"?\"`\"+h+\"`\":\\'something with type \"\\'+typeof h+\\'\"\\'}function a(){var h=m.H;return h===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=at(),l={d:{f:e,r:function(){throw Error(\"Invalid form element. requestFormReset must be passed a form that was rendered by React.\")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},d=Symbol.for(\"react.portal\"),m=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==\"function\"&&Map.prototype!=null&&typeof Map.prototype.forEach==\"function\"&&typeof Set==\"function\"&&Set.prototype!=null&&typeof Set.prototype.clear==\"function\"&&typeof Set.prototype.forEach==\"function\"||console.error(\"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills\"),Bp.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Bp.createPortal=function(h,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(\"Target container is not a DOM element.\");return n(h,g,null,y)},Bp.flushSync=function(h){var g=m.T,y=l.p;try{if(m.T=null,l.p=2,h)return h()}finally{m.T=g,l.p=y,l.d.f()&&console.error(\"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.\")}},Bp.preconnect=function(h,g){typeof h==\"string\"&&h?g!=null&&typeof g!=\"object\"?console.error(\"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.\",i(g)):g!=null&&typeof g.crossOrigin!=\"string\"&&console.error(\"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.\",o(g.crossOrigin)):console.error(\"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",o(h)),typeof h==\"string\"&&(g?(g=g.crossOrigin,g=typeof g==\"string\"?g===\"use-credentials\"?g:\"\":void 0):g=null,l.d.C(h,g))},Bp.prefetchDNS=function(h){if(typeof h!=\"string\"||!h)console.error(\"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",o(h));else if(1<arguments.length){var g=arguments[1];typeof g==\"object\"&&g.hasOwnProperty(\"crossOrigin\")?console.error(\"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.\",i(g)):console.error(\"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.\",i(g))}typeof h==\"string\"&&l.d.D(h)},Bp.preinit=function(h,g){if(typeof h==\"string\"&&h?g==null||typeof g!=\"object\"?console.error(\"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.\",i(g)):g.as!==\"style\"&&g.as!==\"script\"&&console.error(\\'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are \"style\" and \"script\".\\',i(g.as)):console.error(\"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",o(h)),typeof h==\"string\"&&g&&typeof g.as==\"string\"){var y=g.as,w=r(y,g.crossOrigin),x=typeof g.integrity==\"string\"?g.integrity:void 0,I=typeof g.fetchPriority==\"string\"?g.fetchPriority:void 0;y===\"style\"?l.d.S(h,typeof g.precedence==\"string\"?g.precedence:void 0,{crossOrigin:w,integrity:x,fetchPriority:I}):y===\"script\"&&l.d.X(h,{crossOrigin:w,integrity:x,fetchPriority:I,nonce:typeof g.nonce==\"string\"?g.nonce:void 0})}},Bp.preinitModule=function(h,g){var y=\"\";if(typeof h==\"string\"&&h||(y+=\" The `href` argument encountered was \"+o(h)+\".\"),g!==void 0&&typeof g!=\"object\"?y+=\" The `options` argument encountered was \"+o(g)+\".\":g&&\"as\"in g&&g.as!==\"script\"&&(y+=\" The `as` option encountered was \"+i(g.as)+\".\"),y)console.error(\"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s\",y);else switch(y=g&&typeof g.as==\"string\"?g.as:\"script\",y){case\"script\":break;default:y=i(y),console.error(\\'ReactDOM.preinitModule(): Currently the only supported \"as\" type for this function is \"script\" but received \"%s\" instead. This warning was generated for `href` \"%s\". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)\\',y,h)}typeof h==\"string\"&&(typeof g==\"object\"&&g!==null?(g.as==null||g.as===\"script\")&&(y=r(g.as,g.crossOrigin),l.d.M(h,{crossOrigin:y,integrity:typeof g.integrity==\"string\"?g.integrity:void 0,nonce:typeof g.nonce==\"string\"?g.nonce:void 0})):g==null&&l.d.M(h))},Bp.preload=function(h,g){var y=\"\";if(typeof h==\"string\"&&h||(y+=\" The `href` argument encountered was \"+o(h)+\".\"),g==null||typeof g!=\"object\"?y+=\" The `options` argument encountered was \"+o(g)+\".\":typeof g.as==\"string\"&&g.as||(y+=\" The `as` option encountered was \"+o(g.as)+\".\"),y&&console.error(\\'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel=\"preload\" as=\"...\" />` tag.%s\\',y),typeof h==\"string\"&&typeof g==\"object\"&&g!==null&&typeof g.as==\"string\"){y=g.as;var w=r(y,g.crossOrigin);l.d.L(h,y,{crossOrigin:w,integrity:typeof g.integrity==\"string\"?g.integrity:void 0,nonce:typeof g.nonce==\"string\"?g.nonce:void 0,type:typeof g.type==\"string\"?g.type:void 0,fetchPriority:typeof g.fetchPriority==\"string\"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy==\"string\"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet==\"string\"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes==\"string\"?g.imageSizes:void 0,media:typeof g.media==\"string\"?g.media:void 0})}},Bp.preloadModule=function(h,g){var y=\"\";typeof h==\"string\"&&h||(y+=\" The `href` argument encountered was \"+o(h)+\".\"),g!==void 0&&typeof g!=\"object\"?y+=\" The `options` argument encountered was \"+o(g)+\".\":g&&\"as\"in g&&typeof g.as!=\"string\"&&(y+=\" The `as` option encountered was \"+o(g.as)+\".\"),y&&console.error(\\'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel=\"modulepreload\" as=\"...\" />` tag.%s\\',y),typeof h==\"string\"&&(g?(y=r(g.as,g.crossOrigin),l.d.m(h,{as:typeof g.as==\"string\"&&g.as!==\"script\"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity==\"string\"?g.integrity:void 0})):l.d.m(h))},Bp.requestFormReset=function(h){l.d.r(h)},Bp.unstable_batchedUpdates=function(h,g){return h(g)},Bp.useFormState=function(h,g,y){return a().useFormState(h,g,y)},Bp.useFormStatus=function(){return a().useHostTransitionStatus()},Bp.version=\"19.2.0\",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Ob=me((Y$t,_Ce)=>{\"use strict\";f();_Ce.exports=SCe()});var TCe=me(OV=>{\"use strict\";f();(function(){function e(s,u){for(s=s.memoizedState;s!==null&&0<u;)s=s.next,u--;return s}function t(s,u,p,b){if(p>=u.length)return b;var S=u[p],T=ll(s)?s.slice():jr({},s);return T[S]=t(s[S],u,p+1,b),T}function n(s,u,p){if(u.length!==p.length)console.warn(\"copyWithRename() expects paths of the same length\");else{for(var b=0;b<p.length-1;b++)if(u[b]!==p[b]){console.warn(\"copyWithRename() expects paths to be the same except for the deepest key\");return}return r(s,u,p,0)}}function r(s,u,p,b){var S=u[b],T=ll(s)?s.slice():jr({},s);return b+1===u.length?(T[p[b]]=T[S],ll(T)?T.splice(S,1):delete T[S]):T[S]=r(s[S],u,p,b+1),T}function o(s,u,p){var b=u[p],S=ll(s)?s.slice():jr({},s);return p+1===u.length?(ll(S)?S.splice(b,1):delete S[b],S):(S[b]=o(s[b],u,p+1),S)}function i(){return!1}function a(){return null}function c(){console.error(\"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks\")}function l(){console.error(\"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\")}function d(){}function m(){}function h(s){var u=[];return s.forEach(function(p){u.push(p)}),u.sort().join(\", \")}function g(s,u,p,b){return new s6(s,u,p,b)}function y(s,u){s.context===MS&&(Lie(s.current,2,u,s,null,null),po())}function w(s,u){if(mg!==null){var p=u.staleFamilies;u=u.updatedFamilies,$s(),KA(s.current,u,p),po()}}function x(s){mg=s}function I(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function C(s){var u=s,p=s;if(s.alternate)for(;u.return;)u=u.return;else{s=u;do u=s,(u.flags&4098)!==0&&(p=u.return),s=u.return;while(s)}return u.tag===3?p:null}function M(s){if(s.tag===13){var u=s.memoizedState;if(u===null&&(s=s.alternate,s!==null&&(u=s.memoizedState)),u!==null)return u.dehydrated}return null}function B(s){if(s.tag===31){var u=s.memoizedState;if(u===null&&(s=s.alternate,s!==null&&(u=s.memoizedState)),u!==null)return u.dehydrated}return null}function z(s){if(C(s)!==s)throw Error(\"Unable to find node on an unmounted component.\")}function G(s){var u=s.alternate;if(!u){if(u=C(s),u===null)throw Error(\"Unable to find node on an unmounted component.\");return u!==s?null:s}for(var p=s,b=u;;){var S=p.return;if(S===null)break;var T=S.alternate;if(T===null){if(b=S.return,b!==null){p=b;continue}break}if(S.child===T.child){for(T=S.child;T;){if(T===p)return z(S),s;if(T===b)return z(S),u;T=T.sibling}throw Error(\"Unable to find node on an unmounted component.\")}if(p.return!==b.return)p=S,b=T;else{for(var j=!1,Y=S.child;Y;){if(Y===p){j=!0,p=S,b=T;break}if(Y===b){j=!0,b=S,p=T;break}Y=Y.sibling}if(!j){for(Y=T.child;Y;){if(Y===p){j=!0,p=T,b=S;break}if(Y===b){j=!0,b=T,p=S;break}Y=Y.sibling}if(!j)throw Error(\"Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.\")}}if(p.alternate!==b)throw Error(\"Return fibers should always be each others\\' alternates. This error is likely caused by a bug in React. Please file an issue.\")}if(p.tag!==3)throw Error(\"Unable to find node on an unmounted component.\");return p.stateNode.current===p?s:u}function J(s){var u=s.tag;if(u===5||u===26||u===27||u===6)return s;for(s=s.child;s!==null;){if(u=J(s),u!==null)return u;s=s.sibling}return null}function ne(s){return s===null||typeof s!=\"object\"?null:(s=sSe&&s[sSe]||s[\"@@iterator\"],typeof s==\"function\"?s:null)}function ie(s){if(s==null)return null;if(typeof s==\"function\")return s.$$typeof===u0t?null:s.displayName||s.name||null;if(typeof s==\"string\")return s;switch(s){case L4:return\"Fragment\";case Vie:return\"Profiler\";case xW:return\"StrictMode\";case qie:return\"Suspense\";case Kie:return\"SuspenseList\";case Yie:return\"Activity\"}if(typeof s==\"object\")switch(typeof s.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),s.$$typeof){case B4:return\"Portal\";case kv:return s.displayName||\"Context\";case Gie:return(s._context.displayName||\"Context\")+\".Consumer\";case x7:var u=s.render;return s=s.displayName,s||(s=u.displayName||u.name||\"\",s=s!==\"\"?\"ForwardRef(\"+s+\")\":\"ForwardRef\"),s;case EW:return u=s.displayName||null,u!==null?u:ie(s.type)||\"Memo\";case qm:u=s._payload,s=s._init;try{return ie(s(u))}catch{}}return null}function ae(s){return typeof s.tag==\"number\"?te(s):typeof s.name==\"string\"?s.name:null}function te(s){var u=s.type;switch(s.tag){case 31:return\"Activity\";case 24:return\"Cache\";case 9:return(u._context.displayName||\"Context\")+\".Consumer\";case 10:return u.displayName||\"Context\";case 18:return\"DehydratedFragment\";case 11:return s=u.render,s=s.displayName||s.name||\"\",u.displayName||(s!==\"\"?\"ForwardRef(\"+s+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 26:case 27:case 5:return u;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return ie(u);case 8:return u===xW?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";case 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 14:case 15:if(typeof u==\"function\")return u.displayName||u.name||null;if(typeof u==\"string\")return u;break;case 29:if(u=s._debugInfo,u!=null){for(var p=u.length-1;0<=p;p--)if(typeof u[p].name==\"string\")return u[p].name}if(s.return!==null)return te(s.return)}return null}function Z(s){return{current:s}}function X(s,u){0>m2?console.error(\"Unexpected pop.\"):(u!==Qie[m2]&&console.error(\"Unexpected Fiber popped.\"),s.current=Zie[m2],Zie[m2]=null,Qie[m2]=null,m2--)}function F(s,u,p){m2++,Zie[m2]=s.current,Qie[m2]=p,s.current=u}function R(s){return s===null&&console.error(\"Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.\"),s}function O(s,u){F(RS,u,s),F(E7,s,s),F(CS,null,s);var p=u.nodeType;switch(p){case 9:case 11:p=p===9?\"#document\":\"#fragment\",u=(u=u.documentElement)&&(u=u.namespaceURI)?As(u):I2;break;default:if(p=u.tagName,u=u.namespaceURI)u=As(u),u=Oh(u,p);else switch(p){case\"svg\":u=y8;break;case\"math\":u=wV;break;default:u=I2}}p=p.toLowerCase(),p=e6(null,p),p={context:u,ancestorInfo:p},X(CS,s),F(CS,p,s)}function U(s){X(CS,s),X(E7,s),X(RS,s)}function P(){return R(CS.current)}function L(s){s.memoizedState!==null&&F(AW,s,s);var u=R(CS.current),p=s.type,b=Oh(u.context,p);p=e6(u.ancestorInfo,p),b={context:b,ancestorInfo:p},u!==b&&(F(E7,s,s),F(CS,b,s))}function W(s){E7.current===s&&(X(CS,s),X(E7,s)),AW.current===s&&(X(AW,s),p9._currentValue=s5)}function q(){}function H(){if(A7===0){cSe=console.log,uSe=console.info,lSe=console.warn,dSe=console.error,fSe=console.group,pSe=console.groupCollapsed,hSe=console.groupEnd;var s={configurable:!0,enumerable:!0,value:q,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}A7++}function k(){if(A7--,A7===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:jr({},s,{value:cSe}),info:jr({},s,{value:uSe}),warn:jr({},s,{value:lSe}),error:jr({},s,{value:dSe}),group:jr({},s,{value:fSe}),groupCollapsed:jr({},s,{value:pSe}),groupEnd:jr({},s,{value:hSe})})}0>A7&&console.error(\"disabledDepth fell below zero. This is a bug in React. Please file an issue.\")}function V(s){var u=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,s=s.stack,Error.prepareStackTrace=u,s.startsWith(`Error: react-stack-top-frame\\n`)&&(s=s.slice(29)),u=s.indexOf(`\\n`),u!==-1&&(s=s.slice(u+1)),u=s.indexOf(\"react_stack_bottom_frame\"),u!==-1&&(u=s.lastIndexOf(`\\n`,u)),u!==-1)s=s.slice(0,u);else return\"\";return s}function oe(s){if(Jie===void 0)try{throw Error()}catch(p){var u=p.stack.trim().match(/\\\\n( *(at )?)/);Jie=u&&u[1]||\"\",mSe=-1<p.stack.indexOf(`\\n    at`)?\" (<anonymous>)\":-1<p.stack.indexOf(\"@\")?\"@unknown:0:0\":\"\"}return`\\n`+Jie+s+mSe}function se(s,u){if(!s||Xie)return\"\";var p=$ie.get(s);if(p!==void 0)return p;Xie=!0,p=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var b=null;b=tt.H,tt.H=null,H();try{var S={DetermineComponentFrameRoot:function(){try{if(u){var Te=function(){throw Error()};if(Object.defineProperty(Te.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==\"object\"&&Reflect.construct){try{Reflect.construct(Te,[])}catch(Wt){var Ge=Wt}Reflect.construct(s,[],Te)}else{try{Te.call()}catch(Wt){Ge=Wt}s.call(Te.prototype)}}else{try{throw Error()}catch(Wt){Ge=Wt}(Te=s())&&typeof Te.catch==\"function\"&&Te.catch(function(){})}}catch(Wt){if(Wt&&Ge&&typeof Wt.stack==\"string\")return[Wt.stack,Ge.stack]}return[null,null]}};S.DetermineComponentFrameRoot.displayName=\"DetermineComponentFrameRoot\";var T=Object.getOwnPropertyDescriptor(S.DetermineComponentFrameRoot,\"name\");T&&T.configurable&&Object.defineProperty(S.DetermineComponentFrameRoot,\"name\",{value:\"DetermineComponentFrameRoot\"});var j=S.DetermineComponentFrameRoot(),Y=j[0],ce=j[1];if(Y&&ce){var fe=Y.split(`\\n`),De=ce.split(`\\n`);for(j=T=0;T<fe.length&&!fe[T].includes(\"DetermineComponentFrameRoot\");)T++;for(;j<De.length&&!De[j].includes(\"DetermineComponentFrameRoot\");)j++;if(T===fe.length||j===De.length)for(T=fe.length-1,j=De.length-1;1<=T&&0<=j&&fe[T]!==De[j];)j--;for(;1<=T&&0<=j;T--,j--)if(fe[T]!==De[j]){if(T!==1||j!==1)do if(T--,j--,0>j||fe[T]!==De[j]){var Be=`\\n`+fe[T].replace(\" at new \",\" at \");return s.displayName&&Be.includes(\"<anonymous>\")&&(Be=Be.replace(\"<anonymous>\",s.displayName)),typeof s==\"function\"&&$ie.set(s,Be),Be}while(1<=T&&0<=j);break}}}finally{Xie=!1,tt.H=b,k(),Error.prepareStackTrace=p}return fe=(fe=s?s.displayName||s.name:\"\")?oe(fe):\"\",typeof s==\"function\"&&$ie.set(s,fe),fe}function ue(s,u){switch(s.tag){case 26:case 27:case 5:return oe(s.type);case 16:return oe(\"Lazy\");case 13:return s.child!==u&&u!==null?oe(\"Suspense Fallback\"):oe(\"Suspense\");case 19:return oe(\"SuspenseList\");case 0:case 15:return se(s.type,!1);case 11:return se(s.type.render,!1);case 1:return se(s.type,!0);case 31:return oe(\"Activity\");default:return\"\"}}function he(s){try{var u=\"\",p=null;do{u+=ue(s,p);var b=s._debugInfo;if(b)for(var S=b.length-1;0<=S;S--){var T=b[S];if(typeof T.name==\"string\"){var j=u;e:{var Y=T.name,ce=T.env,fe=T.debugLocation;if(fe!=null){var De=V(fe),Be=De.lastIndexOf(`\\n`),Te=Be===-1?De:De.slice(Be+1);if(Te.indexOf(Y)!==-1){var Ge=`\\n`+Te;break e}}Ge=oe(Y+(ce?\" [\"+ce+\"]\":\"\"))}u=j+Ge}}p=s,s=s.return}while(s);return u}catch(Wt){return`\\nError generating stack: `+Wt.message+`\\n`+Wt.stack}}function be(s){return(s=s?s.displayName||s.name:\"\")?oe(s):\"\"}function we(){if(Km===null)return null;var s=Km._debugOwner;return s!=null?ae(s):null}function Ie(){if(Km===null)return\"\";var s=Km;try{var u=\"\";switch(s.tag===6&&(s=s.return),s.tag){case 26:case 27:case 5:u+=oe(s.type);break;case 13:u+=oe(\"Suspense\");break;case 19:u+=oe(\"SuspenseList\");break;case 31:u+=oe(\"Activity\");break;case 30:case 0:case 15:case 1:s._debugOwner||u!==\"\"||(u+=be(s.type));break;case 11:s._debugOwner||u!==\"\"||(u+=be(s.type.render))}for(;s;)if(typeof s.tag==\"number\"){var p=s;s=p._debugOwner;var b=p._debugStack;if(s&&b){var S=V(b);S!==\"\"&&(u+=`\\n`+S)}}else if(s.debugStack!=null){var T=s.debugStack;(s=s.owner)&&T&&(u+=`\\n`+V(T))}else break;var j=u}catch(Y){j=`\\nError generating stack: `+Y.message+`\\n`+Y.stack}return j}function _e(s,u,p,b,S,T,j){var Y=Km;Ve(s);try{return s!==null&&s._debugTask?s._debugTask.run(u.bind(null,p,b,S,T,j)):u(p,b,S,T,j)}finally{Ve(Y)}throw Error(\"runWithFiberInDEV should never be called in production. This is a bug in React.\")}function Ve(s){tt.getCurrentStack=s===null?null:Ie,Ov=!1,Km=s}function Et(s){return typeof Symbol==\"function\"&&Symbol.toStringTag&&s[Symbol.toStringTag]||s.constructor.name||\"Object\"}function qe(s){try{return Xe(s),!1}catch{return!0}}function Xe(s){return\"\"+s}function rt(s,u){if(qe(s))return console.error(\"The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.\",u,Et(s)),Xe(s)}function wt(s,u){if(qe(s))return console.error(\"The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.\",u,Et(s)),Xe(s)}function ot(s){if(qe(s))return console.error(\"Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.\",Et(s)),Xe(s)}function mn(s){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\"u\")return!1;var u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(u.isDisabled)return!0;if(!u.supportsFiber)return console.error(\"The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools\"),!0;try{F4=u.inject(s),vf=u}catch(p){console.error(\"React instrumentation encountered an error: %o.\",p)}return!!u.checkDCE}function St(s){if(typeof g0t==\"function\"&&y0t(s),vf&&typeof vf.setStrictMode==\"function\")try{vf.setStrictMode(F4,s)}catch(u){Nv||(Nv=!0,console.error(\"React instrumentation encountered an error: %o\",u))}}function rn(s){return s>>>=0,s===0?32:31-(b0t(s)/v0t|0)|0}function $t(s){var u=s&42;if(u!==0)return u;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error(\"Should have found matching lanes. This is a bug in React.\"),s}}function Kt(s,u,p){var b=s.pendingLanes;if(b===0)return 0;var S=0,T=s.suspendedLanes,j=s.pingedLanes;s=s.warmLanes;var Y=b&134217727;return Y!==0?(b=Y&~T,b!==0?S=$t(b):(j&=Y,j!==0?S=$t(j):p||(p=Y&~s,p!==0&&(S=$t(p))))):(Y=b&~T,Y!==0?S=$t(Y):j!==0?S=$t(j):p||(p=b&~s,p!==0&&(S=$t(p)))),S===0?0:u!==0&&u!==S&&(u&T)===0&&(T=S&-S,p=u&-u,T>=p||T===32&&(p&4194048)!==0)?u:S}function en(s,u){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&u)===0}function Ho(s,u){switch(s){case 1:case 2:case 4:case 8:case 64:return u+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error(\"Should have found matching lanes. This is a bug in React.\"),-1}}function Fn(){var s=TW;return TW<<=1,(TW&62914560)===0&&(TW=4194304),s}function fn(s){for(var u=[],p=0;31>p;p++)u.push(s);return u}function Hs(s,u){s.pendingLanes|=u,u!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Ar(s,u,p,b,S,T){var j=s.pendingLanes;s.pendingLanes=p,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=p,s.entangledLanes&=p,s.errorRecoveryDisabledLanes&=p,s.shellSuspendCounter=0;var Y=s.entanglements,ce=s.expirationTimes,fe=s.hiddenUpdates;for(p=j&~p;0<p;){var De=31-Rp(p),Be=1<<De;Y[De]=0,ce[De]=-1;var Te=fe[De];if(Te!==null)for(fe[De]=null,De=0;De<Te.length;De++){var Ge=Te[De];Ge!==null&&(Ge.lane&=-536870913)}p&=~Be}b!==0&&Kr(s,b,0),T!==0&&S===0&&s.tag!==0&&(s.suspendedLanes|=T&~(j&~u))}function Kr(s,u,p){s.pendingLanes|=u,s.suspendedLanes&=~u;var b=31-Rp(u);s.entangledLanes|=u,s.entanglements[b]=s.entanglements[b]|1073741824|p&261930}function Ka(s,u){var p=s.entangledLanes|=u;for(s=s.entanglements;p;){var b=31-Rp(p),S=1<<b;S&u|s[b]&u&&(s[b]|=u),p&=~S}}function Sr(s,u){var p=u&-u;return p=(p&42)!==0?1:$r(p),(p&(s.suspendedLanes|u))!==0?0:p}function $r(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function yl(s,u,p){if(Pv)for(s=s.pendingUpdatersLaneMap;0<p;){var b=31-Rp(p),S=1<<b;s[b].add(u),p&=~S}}function lr(s,u){if(Pv)for(var p=s.pendingUpdatersLaneMap,b=s.memoizedUpdaters;0<u;){var S=31-Rp(u);s=1<<S,S=p[S],0<S.size&&(S.forEach(function(T){var j=T.alternate;j!==null&&b.has(j)||b.add(T)}),S.clear()),u&=~s}}function de(s){return s&=-s,Ym!==0&&Ym<s?Sb!==0&&Sb<s?(s&134217727)!==0?Mv:CW:Sb:Ym}function Le(){var s=Ai.p;return s!==0?s:(s=window.event,s===void 0?Mv:eSe(s.type))}function it(s,u){var p=Ai.p;try{return Ai.p=s,u()}finally{Ai.p=p}}function bt(s){delete s[Cd],delete s[Ip],delete s[oae],delete s[w0t],delete s[x0t]}function jt(s){var u=s[Cd];if(u)return u;for(var p=s.parentNode;p;){if(u=p[kS]||p[Cd]){if(p=u.alternate,u.child!==null||p!==null&&p.child!==null)for(s=f7(s);s!==null;){if(p=s[Cd])return p;s=f7(s)}return u}s=p,p=s.parentNode}return null}function Yt(s){if(s=s[Cd]||s[kS]){var u=s.tag;if(u===5||u===6||u===13||u===31||u===26||u===27||u===3)return s}return null}function Qt(s){var u=s.tag;if(u===5||u===26||u===27||u===6)return s.stateNode;throw Error(\"getNodeFromInstance: Invalid argument.\")}function ir(s){var u=s[gSe];return u||(u=s[gSe]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function zt(s){s[S7]=!0}function Mn(s,u){hs(s,u),hs(s+\"Capture\",u)}function hs(s,u){F6[s]&&console.error(\"EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.\",s),F6[s]=u;var p=s.toLowerCase();for(iae[p]=s,s===\"onDoubleClick\"&&(iae.ondblclick=s),s=0;s<u.length;s++)ySe.add(u[s])}function eo(s,u){E0t[u.type]||u.onChange||u.onInput||u.readOnly||u.disabled||u.value==null||console.error(s===\"select\"?\"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.\":\"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.\"),u.onChange||u.readOnly||u.disabled||u.checked==null||console.error(\"You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.\")}function Ur(s){return Ab.call(vSe,s)?!0:Ab.call(bSe,s)?!1:A0t.test(s)?vSe[s]=!0:(bSe[s]=!0,console.error(\"Invalid attribute name: `%s`\",s),!1)}function Eo(s,u,p){if(Ur(u)){if(!s.hasAttribute(u)){switch(typeof p){case\"symbol\":case\"object\":return p;case\"function\":return p;case\"boolean\":if(p===!1)return p}return p===void 0?void 0:null}return s=s.getAttribute(u),s===\"\"&&p===!0?!0:(rt(p,u),s===\"\"+p?p:s)}}function Fr(s,u,p){if(Ur(u))if(p===null)s.removeAttribute(u);else{switch(typeof p){case\"undefined\":case\"function\":case\"symbol\":s.removeAttribute(u);return;case\"boolean\":var b=u.toLowerCase().slice(0,5);if(b!==\"data-\"&&b!==\"aria-\"){s.removeAttribute(u);return}}rt(p,u),s.setAttribute(u,\"\"+p)}}function lo(s,u,p){if(p===null)s.removeAttribute(u);else{switch(typeof p){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":s.removeAttribute(u);return}rt(p,u),s.setAttribute(u,\"\"+p)}}function zs(s,u,p,b){if(b===null)s.removeAttribute(p);else{switch(typeof b){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":s.removeAttribute(p);return}rt(b,p),s.setAttributeNS(u,p,\"\"+b)}}function _r(s){switch(typeof s){case\"bigint\":case\"boolean\":case\"number\":case\"string\":case\"undefined\":return s;case\"object\":return ot(s),s;default:return\"\"}}function zo(s){var u=s.type;return(s=s.nodeName)&&s.toLowerCase()===\"input\"&&(u===\"checkbox\"||u===\"radio\")}function Qu(s,u,p){var b=Object.getOwnPropertyDescriptor(s.constructor.prototype,u);if(!s.hasOwnProperty(u)&&typeof b<\"u\"&&typeof b.get==\"function\"&&typeof b.set==\"function\"){var S=b.get,T=b.set;return Object.defineProperty(s,u,{configurable:!0,get:function(){return S.call(this)},set:function(j){ot(j),p=\"\"+j,T.call(this,j)}}),Object.defineProperty(s,u,{enumerable:b.enumerable}),{getValue:function(){return p},setValue:function(j){ot(j),p=\"\"+j},stopTracking:function(){s._valueTracker=null,delete s[u]}}}}function jo(s){if(!s._valueTracker){var u=zo(s)?\"checked\":\"value\";s._valueTracker=Qu(s,u,\"\"+s[u])}}function fi(s){if(!s)return!1;var u=s._valueTracker;if(!u)return!0;var p=u.getValue(),b=\"\";return s&&(b=zo(s)?s.checked?\"true\":\"false\":s.value),s=b,s!==p?(u.setValue(s),!0):!1}function _a(s){if(s=s||(typeof document<\"u\"?document:void 0),typeof s>\"u\")return null;try{return s.activeElement||s.body}catch{return s.body}}function Tr(s){return s.replace(S0t,function(u){return\"\\\\\\\\\"+u.charCodeAt(0).toString(16)+\" \"})}function ln(s,u){u.checked===void 0||u.defaultChecked===void 0||xSe||(console.error(\"%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components\",we()||\"A component\",u.type),xSe=!0),u.value===void 0||u.defaultValue===void 0||wSe||(console.error(\"%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components\",we()||\"A component\",u.type),wSe=!0)}function ld(s,u,p,b,S,T,j,Y){s.name=\"\",j!=null&&typeof j!=\"function\"&&typeof j!=\"symbol\"&&typeof j!=\"boolean\"?(rt(j,\"type\"),s.type=j):s.removeAttribute(\"type\"),u!=null?j===\"number\"?(u===0&&s.value===\"\"||s.value!=u)&&(s.value=\"\"+_r(u)):s.value!==\"\"+_r(u)&&(s.value=\"\"+_r(u)):j!==\"submit\"&&j!==\"reset\"||s.removeAttribute(\"value\"),u!=null?Xo(s,j,_r(u)):p!=null?Xo(s,j,_r(p)):b!=null&&s.removeAttribute(\"value\"),S==null&&T!=null&&(s.defaultChecked=!!T),S!=null&&(s.checked=S&&typeof S!=\"function\"&&typeof S!=\"symbol\"),Y!=null&&typeof Y!=\"function\"&&typeof Y!=\"symbol\"&&typeof Y!=\"boolean\"?(rt(Y,\"name\"),s.name=\"\"+_r(Y)):s.removeAttribute(\"name\")}function Mo(s,u,p,b,S,T,j,Y){if(T!=null&&typeof T!=\"function\"&&typeof T!=\"symbol\"&&typeof T!=\"boolean\"&&(rt(T,\"type\"),s.type=T),u!=null||p!=null){if(!(T!==\"submit\"&&T!==\"reset\"||u!=null)){jo(s);return}p=p!=null?\"\"+_r(p):\"\",u=u!=null?\"\"+_r(u):p,Y||u===s.value||(s.value=u),s.defaultValue=u}b=b??S,b=typeof b!=\"function\"&&typeof b!=\"symbol\"&&!!b,s.checked=Y?s.checked:!!b,s.defaultChecked=!!b,j!=null&&typeof j!=\"function\"&&typeof j!=\"symbol\"&&typeof j!=\"boolean\"&&(rt(j,\"name\"),s.name=j),jo(s)}function Xo(s,u,p){u===\"number\"&&_a(s.ownerDocument)===s||s.defaultValue===\"\"+p||(s.defaultValue=\"\"+p)}function js(s,u){u.value==null&&(typeof u.children==\"object\"&&u.children!==null?Wie.Children.forEach(u.children,function(p){p==null||typeof p==\"string\"||typeof p==\"number\"||typeof p==\"bigint\"||ASe||(ASe=!0,console.error(\"Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.\"))}):u.dangerouslySetInnerHTML==null||SSe||(SSe=!0,console.error(\"Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.\"))),u.selected==null||ESe||(console.error(\"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.\"),ESe=!0)}function tf(){var s=we();return s?`\\n\\nCheck the render method of \\\\``+s+\"`.\":\"\"}function da(s,u,p,b){if(s=s.options,u){u={};for(var S=0;S<p.length;S++)u[\"$\"+p[S]]=!0;for(p=0;p<s.length;p++)S=u.hasOwnProperty(\"$\"+s[p].value),s[p].selected!==S&&(s[p].selected=S),S&&b&&(s[p].defaultSelected=!0)}else{for(p=\"\"+_r(p),u=null,S=0;S<s.length;S++){if(s[S].value===p){s[S].selected=!0,b&&(s[S].defaultSelected=!0);return}u!==null||s[S].disabled||(u=s[S])}u!==null&&(u.selected=!0)}}function Dc(s,u){for(s=0;s<TSe.length;s++){var p=TSe[s];if(u[p]!=null){var b=ll(u[p]);u.multiple&&!b?console.error(\"The `%s` prop supplied to <select> must be an array if `multiple` is true.%s\",p,tf()):!u.multiple&&b&&console.error(\"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s\",p,tf())}}u.value===void 0||u.defaultValue===void 0||_Se||(console.error(\"Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components\"),_Se=!0)}function Ju(s,u){u.value===void 0||u.defaultValue===void 0||CSe||(console.error(\"%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components\",we()||\"A component\"),CSe=!0),u.children!=null&&u.value==null&&console.error(\"Use the `defaultValue` or `value` props instead of setting children on <textarea>.\")}function Bc(s,u,p){if(u!=null&&(u=\"\"+_r(u),u!==s.value&&(s.value=u),p==null)){s.defaultValue!==u&&(s.defaultValue=u);return}s.defaultValue=p!=null?\"\"+_r(p):\"\"}function nf(s,u,p,b){if(u==null){if(b!=null){if(p!=null)throw Error(\"If you supply `defaultValue` on a <textarea>, do not pass children.\");if(ll(b)){if(1<b.length)throw Error(\"<textarea> can only have at most one child.\");b=b[0]}p=b}p==null&&(p=\"\"),u=p}p=_r(u),s.defaultValue=p,b=s.textContent,b===p&&b!==\"\"&&b!==null&&(s.value=b),jo(s)}function Li(s,u){return s.serverProps===void 0&&s.serverTail.length===0&&s.children.length===1&&3<s.distanceFromLeaf&&s.distanceFromLeaf>15-u?Li(s.children[0],u):s}function Ta(s){return\"  \"+\"  \".repeat(s)}function Lc(s){return\"+ \"+\"  \".repeat(s)}function Xu(s){return\"- \"+\"  \".repeat(s)}function pc(s){switch(s.tag){case 26:case 27:case 5:return s.type;case 16:return\"Lazy\";case 31:return\"Activity\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 0:case 15:return s=s.type,s.displayName||s.name||null;case 11:return s=s.type.render,s.displayName||s.name||null;case 1:return s=s.type,s.displayName||s.name||null;default:return null}}function bl(s,u){return RSe.test(s)?(s=JSON.stringify(s),s.length>u-2?8>u?\\'{\"...\"}\\':\"{\"+s.slice(0,u-7)+\\'...\"}\\':\"{\"+s+\"}\"):s.length>u?5>u?\\'{\"...\"}\\':s.slice(0,u-3)+\"...\":s}function $u(s,u,p){var b=120-2*p;if(u===null)return Lc(p)+bl(s,b)+`\\n`;if(typeof u==\"string\"){for(var S=0;S<u.length&&S<s.length&&u.charCodeAt(S)===s.charCodeAt(S);S++);return S>b-8&&10<S&&(s=\"...\"+s.slice(S-8),u=\"...\"+u.slice(S-8)),Lc(p)+bl(s,b)+`\\n`+Xu(p)+bl(u,b)+`\\n`}return Ta(p)+bl(s,b)+`\\n`}function dd(s){return Object.prototype.toString.call(s).replace(/^\\\\[object (.*)\\\\]$/,function(u,p){return p})}function fd(s,u){switch(typeof s){case\"string\":return s=JSON.stringify(s),s.length>u?5>u?\\'\"...\"\\':s.slice(0,u-4)+\\'...\"\\':s;case\"object\":if(s===null)return\"null\";if(ll(s))return\"[...]\";if(s.$$typeof===Iv)return(u=ie(s.type))?\"<\"+u+\">\":\"<...>\";var p=dd(s);if(p===\"Object\"){p=\"\",u-=2;for(var b in s)if(s.hasOwnProperty(b)){var S=JSON.stringify(b);if(S!==\\'\"\\'+b+\\'\"\\'&&(b=S),u-=b.length-2,S=fd(s[b],15>u?u:15),u-=S.length,0>u){p+=p===\"\"?\"...\":\", ...\";break}p+=(p===\"\"?\"\":\",\")+b+\":\"+S}return\"{\"+p+\"}\"}return p;case\"function\":return(u=s.displayName||s.name)?\"function \"+u:\"function\";default:return String(s)}}function rf(s,u){return typeof s!=\"string\"||RSe.test(s)?\"{\"+fd(s,u-2)+\"}\":s.length>u-2?5>u?\\'\"...\"\\':\\'\"\\'+s.slice(0,u-5)+\\'...\"\\':\\'\"\\'+s+\\'\"\\'}function Im(s,u,p){var b=120-p.length-s.length,S=[],T;for(T in u)if(u.hasOwnProperty(T)&&T!==\"children\"){var j=rf(u[T],120-p.length-T.length-1);b-=T.length+j.length+2,S.push(T+\"=\"+j)}return S.length===0?p+\"<\"+s+`>\\n`:0<b?p+\"<\"+s+\" \"+S.join(\" \")+`>\\n`:p+\"<\"+s+`\\n`+p+\"  \"+S.join(`\\n`+p+\"  \")+`\\n`+p+`>\\n`}function L1(s,u,p){var b=\"\",S=jr({},u),T;for(T in s)if(s.hasOwnProperty(T)){delete S[T];var j=120-2*p-T.length-2,Y=fd(s[T],j);u.hasOwnProperty(T)?(j=fd(u[T],j),b+=Lc(p)+T+\": \"+Y+`\\n`,b+=Xu(p)+T+\": \"+j+`\\n`):b+=Lc(p)+T+\": \"+Y+`\\n`}for(var ce in S)S.hasOwnProperty(ce)&&(s=fd(S[ce],120-2*p-ce.length-2),b+=Xu(p)+ce+\": \"+s+`\\n`);return b}function FA(s,u,p,b){var S=\"\",T=new Map;for(fe in p)p.hasOwnProperty(fe)&&T.set(fe.toLowerCase(),fe);if(T.size===1&&T.has(\"children\"))S+=Im(s,u,Ta(b));else{for(var j in u)if(u.hasOwnProperty(j)&&j!==\"children\"){var Y=120-2*(b+1)-j.length-1,ce=T.get(j.toLowerCase());if(ce!==void 0){T.delete(j.toLowerCase());var fe=u[j];ce=p[ce];var De=rf(fe,Y);Y=rf(ce,Y),typeof fe==\"object\"&&fe!==null&&typeof ce==\"object\"&&ce!==null&&dd(fe)===\"Object\"&&dd(ce)===\"Object\"&&(2<Object.keys(fe).length||2<Object.keys(ce).length||-1<De.indexOf(\"...\")||-1<Y.indexOf(\"...\"))?S+=Ta(b+1)+j+`={{\\n`+L1(fe,ce,b+2)+Ta(b+1)+`}}\\n`:(S+=Lc(b+1)+j+\"=\"+De+`\\n`,S+=Xu(b+1)+j+\"=\"+Y+`\\n`)}else S+=Ta(b+1)+j+\"=\"+rf(u[j],Y)+`\\n`}T.forEach(function(Be){if(Be!==\"children\"){var Te=120-2*(b+1)-Be.length-1;S+=Xu(b+1)+Be+\"=\"+rf(p[Be],Te)+`\\n`}}),S=S===\"\"?Ta(b)+\"<\"+s+`>\\n`:Ta(b)+\"<\"+s+`\\n`+S+Ta(b)+`>\\n`}return s=p.children,u=u.children,typeof s==\"string\"||typeof s==\"number\"||typeof s==\"bigint\"?(T=\"\",(typeof u==\"string\"||typeof u==\"number\"||typeof u==\"bigint\")&&(T=\"\"+u),S+=$u(T,\"\"+s,b+1)):(typeof u==\"string\"||typeof u==\"number\"||typeof u==\"bigint\")&&(S=s==null?S+$u(\"\"+u,null,b+1):S+$u(\"\"+u,void 0,b+1)),S}function km(s,u){var p=pc(s);if(p===null){for(p=\"\",s=s.child;s;)p+=km(s,u),s=s.sibling;return p}return Ta(u)+\"<\"+p+`>\\n`}function U1(s,u){var p=Li(s,u);if(p!==s&&(s.children.length!==1||s.children[0]!==p))return Ta(u)+`...\\n`+U1(p,u+1);p=\"\";var b=s.fiber._debugInfo;if(b)for(var S=0;S<b.length;S++){var T=b[S].name;typeof T==\"string\"&&(p+=Ta(u)+\"<\"+T+`>\\n`,u++)}if(b=\"\",S=s.fiber.pendingProps,s.fiber.tag===6)b=$u(S,s.serverProps,u),u++;else if(T=pc(s.fiber),T!==null)if(s.serverProps===void 0){b=u;var j=120-2*b-T.length-2,Y=\"\";for(fe in S)if(S.hasOwnProperty(fe)&&fe!==\"children\"){var ce=rf(S[fe],15);if(j-=fe.length+ce.length+2,0>j){Y+=\" ...\";break}Y+=\" \"+fe+\"=\"+ce}b=Ta(b)+\"<\"+T+Y+`>\\n`,u++}else s.serverProps===null?(b=Im(T,S,Lc(u)),u++):typeof s.serverProps==\"string\"?console.error(\"Should not have matched a non HostText fiber to a Text node. This is a bug in React.\"):(b=FA(T,S,s.serverProps,u),u++);var fe=\"\";for(S=s.fiber.child,T=0;S&&T<s.children.length;)j=s.children[T],j.fiber===S?(fe+=U1(j,u),T++):fe+=km(S,u),S=S.sibling;for(S&&0<s.children.length&&(fe+=Ta(u)+`...\\n`),S=s.serverTail,s.serverProps===null&&u--,s=0;s<S.length;s++)T=S[s],fe=typeof T==\"string\"?fe+(Xu(u)+bl(T,120-2*u)+`\\n`):fe+Im(T.type,T.props,Xu(u));return p+b+fe}function Px(s){try{return`\\n\\n`+U1(s,0)}catch{return\"\"}}function Wy(s,u,p){for(var b=u,S=null,T=0;b;)b===s&&(T=0),S={fiber:b,children:S!==null?[S]:[],serverProps:b===u?p:b===s?null:void 0,serverTail:[],distanceFromLeaf:T},T++,b=b.return;return S!==null?Px(S).replaceAll(/^[+-]/gm,\">\"):\"\"}function e6(s,u){var p=jr({},s||kSe),b={tag:u};return ISe.indexOf(u)!==-1&&(p.aTagInScope=null,p.buttonTagInScope=null,p.nobrTagInScope=null),T0t.indexOf(u)!==-1&&(p.pTagInButtonScope=null),_0t.indexOf(u)!==-1&&u!==\"address\"&&u!==\"div\"&&u!==\"p\"&&(p.listItemTagAutoclosing=null,p.dlItemTagAutoclosing=null),p.current=b,u===\"form\"&&(p.formTag=b),u===\"a\"&&(p.aTagInScope=b),u===\"button\"&&(p.buttonTagInScope=b),u===\"nobr\"&&(p.nobrTagInScope=b),u===\"p\"&&(p.pTagInButtonScope=b),u===\"li\"&&(p.listItemTagAutoclosing=b),(u===\"dd\"||u===\"dt\")&&(p.dlItemTagAutoclosing=b),u===\"#document\"||u===\"html\"?p.containerTagInScope=null:p.containerTagInScope||(p.containerTagInScope=b),s!==null||u!==\"#document\"&&u!==\"html\"&&u!==\"body\"?p.implicitRootScope===!0&&(p.implicitRootScope=!1):p.implicitRootScope=!0,p}function t6(s,u,p){switch(u){case\"select\":return s===\"hr\"||s===\"option\"||s===\"optgroup\"||s===\"script\"||s===\"template\"||s===\"#text\";case\"optgroup\":return s===\"option\"||s===\"#text\";case\"option\":return s===\"#text\";case\"tr\":return s===\"th\"||s===\"td\"||s===\"style\"||s===\"script\"||s===\"template\";case\"tbody\":case\"thead\":case\"tfoot\":return s===\"tr\"||s===\"style\"||s===\"script\"||s===\"template\";case\"colgroup\":return s===\"col\"||s===\"template\";case\"table\":return s===\"caption\"||s===\"colgroup\"||s===\"tbody\"||s===\"tfoot\"||s===\"thead\"||s===\"style\"||s===\"script\"||s===\"template\";case\"head\":return s===\"base\"||s===\"basefont\"||s===\"bgsound\"||s===\"link\"||s===\"meta\"||s===\"title\"||s===\"noscript\"||s===\"noframes\"||s===\"style\"||s===\"script\"||s===\"template\";case\"html\":if(p)break;return s===\"head\"||s===\"body\"||s===\"frameset\";case\"frameset\":return s===\"frame\";case\"#document\":if(!p)return s===\"html\"}switch(s){case\"h1\":case\"h2\":case\"h3\":case\"h4\":case\"h5\":case\"h6\":return u!==\"h1\"&&u!==\"h2\"&&u!==\"h3\"&&u!==\"h4\"&&u!==\"h5\"&&u!==\"h6\";case\"rp\":case\"rt\":return C0t.indexOf(u)===-1;case\"caption\":case\"col\":case\"colgroup\":case\"frameset\":case\"frame\":case\"tbody\":case\"td\":case\"tfoot\":case\"th\":case\"thead\":case\"tr\":return u==null;case\"head\":return p||u===null;case\"html\":return p&&u===\"#document\"||u===null;case\"body\":return p&&(u===\"#document\"||u===\"html\")||u===null}return!0}function a7(s,u){switch(s){case\"address\":case\"article\":case\"aside\":case\"blockquote\":case\"center\":case\"details\":case\"dialog\":case\"dir\":case\"div\":case\"dl\":case\"fieldset\":case\"figcaption\":case\"figure\":case\"footer\":case\"header\":case\"hgroup\":case\"main\":case\"menu\":case\"nav\":case\"ol\":case\"p\":case\"section\":case\"summary\":case\"ul\":case\"pre\":case\"listing\":case\"table\":case\"hr\":case\"xmp\":case\"h1\":case\"h2\":case\"h3\":case\"h4\":case\"h5\":case\"h6\":return u.pTagInButtonScope;case\"form\":return u.formTag||u.pTagInButtonScope;case\"li\":return u.listItemTagAutoclosing;case\"dd\":case\"dt\":return u.dlItemTagAutoclosing;case\"button\":return u.buttonTagInScope;case\"a\":return u.aTagInScope;case\"nobr\":return u.nobrTagInScope}return null}function HA(s,u){for(;s;){switch(s.tag){case 5:case 26:case 27:if(s.type===u)return s}s=s.return}return null}function Mx(s,u){u=u||kSe;var p=u.current;if(u=(p=t6(s,p&&p.tag,u.implicitRootScope)?null:p)?null:a7(s,u),u=p||u,!u)return!0;var b=u.tag;if(u=String(!!p)+\"|\"+s+\"|\"+b,RW[u])return!1;RW[u]=!0;var S=(u=Km)?HA(u.return,b):null,T=u!==null&&S!==null?Wy(S,u,null):\"\",j=\"<\"+s+\">\";return p?(p=\"\",b===\"table\"&&s===\"tr\"&&(p+=\" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.\"),console.error(`In HTML, %s cannot be a child of <%s>.%s\\nThis will cause a hydration error.%s`,j,b,p,T)):console.error(`In HTML, %s cannot be a descendant of <%s>.\\nThis will cause a hydration error.%s`,j,b,T),u&&(s=u.return,S===null||s===null||S===s&&s._debugOwner===u._debugOwner||_e(S,function(){console.error(`<%s> cannot contain a nested %s.\\nSee this log for the ancestor stack trace.`,b,j)})),!1}function Vy(s,u,p){if(p||t6(\"#text\",u,!1))return!0;if(p=\"#text|\"+u,RW[p])return!1;RW[p]=!0;var b=(p=Km)?HA(p,u):null;return p=p!==null&&b!==null?Wy(b,p,p.tag!==6?{children:null}:null):\"\",/\\\\S/.test(s)?console.error(`In HTML, text nodes cannot be a child of <%s>.\\nThis will cause a hydration error.%s`,u,p):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don\\'t have any extra whitespace between tags on each line of your source code.\\nThis will cause a hydration error.%s`,u,p),!1}function F0(s,u){if(u){var p=s.firstChild;if(p&&p===s.lastChild&&p.nodeType===3){p.nodeValue=u;return}}s.textContent=u}function vl(s){return s.replace(k0t,function(u,p){return p.toUpperCase()})}function F1(s,u,p){var b=u.indexOf(\"--\")===0;b||(-1<u.indexOf(\"-\")?H4.hasOwnProperty(u)&&H4[u]||(H4[u]=!0,console.error(\"Unsupported style property %s. Did you mean %s?\",u,vl(u.replace(I0t,\"ms-\")))):R0t.test(u)?H4.hasOwnProperty(u)&&H4[u]||(H4[u]=!0,console.error(\"Unsupported vendor-prefixed style property %s. Did you mean %s?\",u,u.charAt(0).toUpperCase()+u.slice(1))):!PSe.test(p)||sae.hasOwnProperty(p)&&sae[p]||(sae[p]=!0,console.error(`Style property values shouldn\\'t contain a semicolon. Try \"%s: %s\" instead.`,u,p.replace(PSe,\"\"))),typeof p==\"number\"&&(isNaN(p)?MSe||(MSe=!0,console.error(\"`NaN` is an invalid value for the `%s` css style property.\",u)):isFinite(p)||DSe||(DSe=!0,console.error(\"`Infinity` is an invalid value for the `%s` css style property.\",u)))),p==null||typeof p==\"boolean\"||p===\"\"?b?s.setProperty(u,\"\"):u===\"float\"?s.cssFloat=\"\":s[u]=\"\":b?s.setProperty(u,p):typeof p!=\"number\"||p===0||BSe.has(u)?u===\"float\"?s.cssFloat=p:(wt(p,u),s[u]=(\"\"+p).trim()):s[u]=p+\"px\"}function zA(s,u,p){if(u!=null&&typeof u!=\"object\")throw Error(\"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \\'em\\'}} when using JSX.\");if(u&&Object.freeze(u),s=s.style,p!=null){if(u){var b={};if(p){for(var S in p)if(p.hasOwnProperty(S)&&!u.hasOwnProperty(S))for(var T=aae[S]||[S],j=0;j<T.length;j++)b[T[j]]=S}for(var Y in u)if(u.hasOwnProperty(Y)&&(!p||p[Y]!==u[Y]))for(S=aae[Y]||[Y],T=0;T<S.length;T++)b[S[T]]=Y;Y={};for(var ce in u)for(S=aae[ce]||[ce],T=0;T<S.length;T++)Y[S[T]]=ce;ce={};for(var fe in b)if(S=b[fe],(T=Y[fe])&&S!==T&&(j=S+\",\"+T,!ce[j])){ce[j]=!0,j=console;var De=u[S];j.error.call(j,\"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don\\'t mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.\",De==null||typeof De==\"boolean\"||De===\"\"?\"Removing\":\"Updating\",S,T)}}for(var Be in p)!p.hasOwnProperty(Be)||u!=null&&u.hasOwnProperty(Be)||(Be.indexOf(\"--\")===0?s.setProperty(Be,\"\"):Be===\"float\"?s.cssFloat=\"\":s[Be]=\"\");for(var Te in u)fe=u[Te],u.hasOwnProperty(Te)&&p[Te]!==fe&&F1(s,Te,fe)}else for(b in u)u.hasOwnProperty(b)&&F1(s,b,u[b])}function gh(s){if(s.indexOf(\"-\")===-1)return!1;switch(s){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}function ap(s){return O0t.get(s)||s}function n6(s,u){if(Ab.call(j4,u)&&j4[u])return!0;if(P0t.test(u)){if(s=\"aria-\"+u.slice(4).toLowerCase(),s=LSe.hasOwnProperty(s)?s:null,s==null)return console.error(\"Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.\",u),j4[u]=!0;if(u!==s)return console.error(\"Invalid ARIA attribute `%s`. Did you mean `%s`?\",u,s),j4[u]=!0}if(N0t.test(u)){if(s=u.toLowerCase(),s=LSe.hasOwnProperty(s)?s:null,s==null)return j4[u]=!0,!1;u!==s&&(console.error(\"Unknown ARIA attribute `%s`. Did you mean `%s`?\",u,s),j4[u]=!0)}return!0}function Om(s,u){var p=[],b;for(b in u)n6(s,b)||p.push(b);u=p.map(function(S){return\"`\"+S+\"`\"}).join(\", \"),p.length===1?console.error(\"Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props\",u,s):1<p.length&&console.error(\"Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props\",u,s)}function Gy(s,u,p,b){if(Ab.call(kp,u)&&kp[u])return!0;var S=u.toLowerCase();if(S===\"onfocusin\"||S===\"onfocusout\")return console.error(\"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.\"),kp[u]=!0;if(typeof p==\"function\"&&(s===\"form\"&&u===\"action\"||s===\"input\"&&u===\"formAction\"||s===\"button\"&&u===\"formAction\"))return!0;if(b!=null){if(s=b.possibleRegistrationNames,b.registrationNameDependencies.hasOwnProperty(u))return!0;if(b=s.hasOwnProperty(S)?s[S]:null,b!=null)return console.error(\"Invalid event handler property `%s`. Did you mean `%s`?\",u,b),kp[u]=!0;if(FSe.test(u))return console.error(\"Unknown event handler property `%s`. It will be ignored.\",u),kp[u]=!0}else if(FSe.test(u))return M0t.test(u)&&console.error(\"Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.\",u),kp[u]=!0;if(D0t.test(u)||B0t.test(u))return!0;if(S===\"innerhtml\")return console.error(\"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`.\"),kp[u]=!0;if(S===\"aria\")return console.error(\"The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead.\"),kp[u]=!0;if(S===\"is\"&&p!==null&&p!==void 0&&typeof p!=\"string\")return console.error(\"Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.\",typeof p),kp[u]=!0;if(typeof p==\"number\"&&isNaN(p))return console.error(\"Received NaN for the `%s` attribute. If this is expected, cast the value to a string.\",u),kp[u]=!0;if(kW.hasOwnProperty(S)){if(S=kW[S],S!==u)return console.error(\"Invalid DOM property `%s`. Did you mean `%s`?\",u,S),kp[u]=!0}else if(u!==S)return console.error(\"React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.\",u,S),kp[u]=!0;switch(u){case\"dangerouslySetInnerHTML\":case\"children\":case\"style\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":return!0;case\"innerText\":case\"textContent\":return!0}switch(typeof p){case\"boolean\":switch(u){case\"autoFocus\":case\"checked\":case\"multiple\":case\"muted\":case\"selected\":case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":case\"capture\":case\"download\":case\"inert\":return!0;default:return S=u.toLowerCase().slice(0,5),S===\"data-\"||S===\"aria-\"?!0:(p?console.error(\\'Received `%s` for a non-boolean attribute `%s`.\\\\n\\\\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\\',p,u,u,p,u):console.error(\\'Received `%s` for a non-boolean attribute `%s`.\\\\n\\\\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\\\\n\\\\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.\\',p,u,u,p,u,u,u),kp[u]=!0)}case\"function\":case\"symbol\":return kp[u]=!0,!1;case\"string\":if(p===\"false\"||p===\"true\"){switch(u){case\"checked\":case\"selected\":case\"multiple\":case\"muted\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":case\"inert\":break;default:return!0}console.error(\"Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?\",p,u,p===\"false\"?\"The browser will interpret it as a truthy value.\":\\'Although this works, it will not work as expected if you pass the string \"false\".\\',u,p),kp[u]=!0}}return!0}function uu(s,u,p){var b=[],S;for(S in u)Gy(s,S,u[S],p)||b.push(S);u=b.map(function(T){return\"`\"+T+\"`\"}).join(\", \"),b.length===1?console.error(\"Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior \",u,s):1<b.length&&console.error(\"Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior \",u,s)}function yh(s){return L0t.test(\"\"+s)?\"javascript:throw new Error(\\'React has blocked a javascript: URL as a security precaution.\\')\":s}function Qi(){}function H1(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}function H0(s){var u=Yt(s);if(u&&(s=u.stateNode)){var p=s[Ip]||null;e:switch(s=u.stateNode,u.type){case\"input\":if(ld(s,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),u=p.name,p.type===\"radio\"&&u!=null){for(p=s;p.parentNode;)p=p.parentNode;for(rt(u,\"name\"),p=p.querySelectorAll(\\'input[name=\"\\'+Tr(\"\"+u)+\\'\"][type=\"radio\"]\\'),u=0;u<p.length;u++){var b=p[u];if(b!==s&&b.form===s.form){var S=b[Ip]||null;if(!S)throw Error(\"ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.\");ld(b,S.value,S.defaultValue,S.defaultValue,S.checked,S.defaultChecked,S.type,S.name)}}for(u=0;u<p.length;u++)b=p[u],b.form===s.form&&fi(b)}break e;case\"textarea\":Bc(s,p.value,p.defaultValue);break e;case\"select\":u=p.value,u!=null&&da(s,!!p.multiple,u,!1)}}}function bh(s,u,p){if(cae)return s(u,p);cae=!0;try{var b=s(u);return b}finally{if(cae=!1,(W4!==null||V4!==null)&&(po(),W4&&(u=W4,s=V4,V4=W4=null,H0(u),s)))for(u=0;u<s.length;u++)H0(s[u])}}function z0(s,u){var p=s.stateNode;if(p===null)return null;var b=p[Ip]||null;if(b===null)return null;p=b[u];e:switch(u){case\"onClick\":case\"onClickCapture\":case\"onDoubleClick\":case\"onDoubleClickCapture\":case\"onMouseDown\":case\"onMouseDownCapture\":case\"onMouseMove\":case\"onMouseMoveCapture\":case\"onMouseUp\":case\"onMouseUpCapture\":case\"onMouseEnter\":(b=!b.disabled)||(s=s.type,b=!(s===\"button\"||s===\"input\"||s===\"select\"||s===\"textarea\")),s=!b;break e;default:s=!1}if(s)return null;if(p&&typeof p!=\"function\")throw Error(\"Expected `\"+u+\"` listener to be a function, instead got a value of `\"+typeof p+\"` type.\");return p}function vh(){if(OW)return OW;var s,u=lae,p=u.length,b,S=\"value\"in OS?OS.value:OS.textContent,T=S.length;for(s=0;s<p&&u[s]===S[s];s++);var j=p-s;for(b=1;b<=j&&u[p-b]===S[T-b];b++);return OW=S.slice(s,1<b?1-b:void 0)}function z1(s){var u=s.keyCode;return\"charCode\"in s?(s=s.charCode,s===0&&u===13&&(s=13)):s=u,s===10&&(s=13),32<=s||s===13?s:0}function j0(){return!0}function Nm(){return!1}function Ya(s){function u(p,b,S,T,j){this._reactName=p,this._targetInst=S,this.type=b,this.nativeEvent=T,this.target=j,this.currentTarget=null;for(var Y in s)s.hasOwnProperty(Y)&&(p=s[Y],this[Y]=p?p(T):T[Y]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?j0:Nm,this.isPropagationStopped=Nm,this}return jr(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!=\"unknown\"&&(p.returnValue=!1),this.isDefaultPrevented=j0)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!=\"unknown\"&&(p.cancelBubble=!0),this.isPropagationStopped=j0)},persist:function(){},isPersistent:j0}),u}function jA(s){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(s):(s=Q0t[s])?!!u[s]:!1}function Za(){return jA}function Pm(s,u){switch(s){case\"keyup\":return cgt.indexOf(u.keyCode)!==-1;case\"keydown\":return u.keyCode!==WSe;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function ms(s){return s=s.detail,typeof s==\"object\"&&\"data\"in s?s.data:null}function qy(s,u){switch(s){case\"compositionend\":return ms(u);case\"keypress\":return u.which!==GSe?null:(KSe=!0,qSe);case\"textInput\":return s=u.data,s===qSe&&KSe?null:s;default:return null}}function Uc(s,u){if(G4)return s===\"compositionend\"||!hae&&Pm(s,u)?(s=vh(),OW=lae=OS=null,G4=!1,s):null;switch(s){case\"paste\":return null;case\"keypress\":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case\"compositionend\":return VSe&&u.locale!==\"ko\"?null:u.data;default:return null}}function j1(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u===\"input\"?!!lgt[s.type]:u===\"textarea\"}function Dx(s){if(!Dv)return!1;s=\"on\"+s;var u=s in document;return u||(u=document.createElement(\"div\"),u.setAttribute(s,\"return;\"),u=typeof u[s]==\"function\"),u}function Ky(s,u,p,b){W4?V4?V4.push(b):V4=[b]:W4=b,u=ug(u,\"onChange\"),0<u.length&&(p=new NW(\"onChange\",\"change\",null,p,b),s.push({event:p,listeners:u}))}function r6(s){Rh(s,0)}function Ca(s){var u=Qt(s);if(fi(u))return s}function o6(s,u){if(s===\"change\")return u}function wh(){k7&&(k7.detachEvent(\"onpropertychange\",Yy),O7=k7=null)}function Yy(s){if(s.propertyName===\"value\"&&Ca(O7)){var u=[];Ky(u,O7,s,H1(s)),bh(r6,u)}}function WA(s,u,p){s===\"focusin\"?(wh(),k7=u,O7=p,k7.attachEvent(\"onpropertychange\",Yy)):s===\"focusout\"&&wh()}function VA(s){if(s===\"selectionchange\"||s===\"keyup\"||s===\"keydown\")return Ca(O7)}function el(s,u){if(s===\"click\")return Ca(u)}function Zy(s,u){if(s===\"input\"||s===\"change\")return Ca(u)}function sp(s,u){return s===u&&(s!==0||1/s===1/u)||s!==s&&u!==u}function W0(s,u){if(Op(s,u))return!0;if(typeof s!=\"object\"||s===null||typeof u!=\"object\"||u===null)return!1;var p=Object.keys(s),b=Object.keys(u);if(p.length!==b.length)return!1;for(b=0;b<p.length;b++){var S=p[b];if(!Ab.call(u,S)||!Op(s[S],u[S]))return!1}return!0}function Bx(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Lx(s,u){var p=Bx(s);s=0;for(var b;p;){if(p.nodeType===3){if(b=s+p.textContent.length,s<=u&&b>=u)return{node:p,offset:u-s};s=b}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Bx(p)}}function V0(s,u){return s&&u?s===u?!0:s&&s.nodeType===3?!1:u&&u.nodeType===3?V0(s,u.parentNode):\"contains\"in s?s.contains(u):s.compareDocumentPosition?!!(s.compareDocumentPosition(u)&16):!1:!1}function W1(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var u=_a(s.document);u instanceof s.HTMLIFrameElement;){try{var p=typeof u.contentWindow.location.href==\"string\"}catch{p=!1}if(p)s=u.contentWindow;else break;u=_a(s.document)}return u}function G0(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u&&(u===\"input\"&&(s.type===\"text\"||s.type===\"search\"||s.type===\"tel\"||s.type===\"url\"||s.type===\"password\")||u===\"textarea\"||s.contentEditable===\"true\")}function Qa(s,u,p){var b=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;gae||q4==null||q4!==_a(b)||(b=q4,\"selectionStart\"in b&&G0(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),N7&&W0(N7,b)||(N7=b,b=ug(mae,\"onSelect\"),0<b.length&&(u=new NW(\"onSelect\",\"select\",null,u,p),s.push({event:u,listeners:b}),u.target=q4)))}function q0(s,u){var p={};return p[s.toLowerCase()]=u.toLowerCase(),p[\"Webkit\"+s]=\"webkit\"+u,p[\"Moz\"+s]=\"moz\"+u,p}function of(s){if(yae[s])return yae[s];if(!K4[s])return s;var u=K4[s],p;for(p in u)if(u.hasOwnProperty(p)&&p in ZSe)return yae[s]=u[p];return s}function lu(s,u){e_e.set(s,u),Mn(u,[s])}function i6(s){for(var u=MW,p=0;p<s.length;p++){var b=s[p];if(typeof b==\"object\"&&b!==null)if(ll(b)&&b.length===2&&typeof b[0]==\"string\"){if(u!==MW&&u!==Eae)return wae;u=Eae}else return wae;else{if(typeof b==\"function\"||typeof b==\"string\"&&50<b.length||u!==MW&&u!==xae)return wae;u=xae}}return u}function cp(s,u,p,b){for(var S in s)Ab.call(s,S)&&S[0]!==\"_\"&&pd(S,s[S],u,p,b)}function pd(s,u,p,b,S){switch(typeof u){case\"object\":if(u===null){u=\"null\";break}else{if(u.$$typeof===Iv){var T=ie(u.type)||\"\\\\u2026\",j=u.key;u=u.props;var Y=Object.keys(u),ce=Y.length;if(j==null&&ce===0){u=\"<\"+T+\" />\";break}if(3>b||ce===1&&Y[0]===\"children\"&&j==null){u=\"<\"+T+\" \\\\u2026 />\";break}p.push([S+\"\\\\xA0\\\\xA0\".repeat(b)+s,\"<\"+T]),j!==null&&pd(\"key\",j,p,b+1,S),s=!1;for(var fe in u)fe===\"children\"?u.children!=null&&(!ll(u.children)||0<u.children.length)&&(s=!0):Ab.call(u,fe)&&fe[0]!==\"_\"&&pd(fe,u[fe],p,b+1,S);p.push([\"\",s?\">\\\\u2026</\"+T+\">\":\"/>\"]);return}if(T=Object.prototype.toString.call(u),T=T.slice(8,T.length-1),T===\"Array\"){if(fe=i6(u),fe===xae||fe===MW){u=JSON.stringify(u);break}else if(fe===Eae){for(p.push([S+\"\\\\xA0\\\\xA0\".repeat(b)+s,\"\"]),s=0;s<u.length;s++)T=u[s],pd(T[0],T[1],p,b+1,S);return}}if(T===\"Promise\"){if(u.status===\"fulfilled\"){if(T=p.length,pd(s,u.value,p,b,S),p.length>T){p=p[T],p[1]=\"Promise<\"+(p[1]||\"Object\")+\">\";return}}else if(u.status===\"rejected\"&&(T=p.length,pd(s,u.reason,p,b,S),p.length>T)){p=p[T],p[1]=\"Rejected Promise<\"+p[1]+\">\";return}p.push([\"\\\\xA0\\\\xA0\".repeat(b)+s,\"Promise\"]);return}T===\"Object\"&&(fe=Object.getPrototypeOf(u))&&typeof fe.constructor==\"function\"&&(T=fe.constructor.name),p.push([S+\"\\\\xA0\\\\xA0\".repeat(b)+s,T===\"Object\"?3>b?\"\":\"\\\\u2026\":T]),3>b&&cp(u,p,b+1,S);return}case\"function\":u=u.name===\"\"?\"() => {}\":u.name+\"() {}\";break;case\"string\":u=u===ygt?\"\\\\u2026\":JSON.stringify(u);break;case\"undefined\":u=\"undefined\";break;case\"boolean\":u=u?\"true\":\"false\";break;default:u=String(u)}p.push([S+\"\\\\xA0\\\\xA0\".repeat(b)+s,u])}function V1(s,u,p,b){var S=!0;for(j in s)j in u||(p.push([DW+\"\\\\xA0\\\\xA0\".repeat(b)+j,\"\\\\u2026\"]),S=!1);for(var T in u)if(T in s){var j=s[T],Y=u[T];if(j!==Y){if(b===0&&T===\"children\")S=\"\\\\xA0\\\\xA0\".repeat(b)+T,p.push([DW+S,\"\\\\u2026\"],[BW+S,\"\\\\u2026\"]);else{if(!(3<=b)){if(typeof j==\"object\"&&typeof Y==\"object\"&&j!==null&&Y!==null&&j.$$typeof===Y.$$typeof)if(Y.$$typeof===Iv){if(j.type===Y.type&&j.key===Y.key){j=ie(Y.type)||\"\\\\u2026\",S=\"\\\\xA0\\\\xA0\".repeat(b)+T,j=\"<\"+j+\" \\\\u2026 />\",p.push([DW+S,j],[BW+S,j]),S=!1;continue}}else{var ce=Object.prototype.toString.call(j),fe=Object.prototype.toString.call(Y);if(ce===fe&&(fe===\"[object Object]\"||fe===\"[object Array]\")){ce=[r_e+\"\\\\xA0\\\\xA0\".repeat(b)+T,fe===\"[object Array]\"?\"Array\":\"\"],p.push(ce),fe=p.length,V1(j,Y,p,b+1)?fe===p.length&&(ce[1]=\"Referentially unequal but deeply equal objects. Consider memoization.\"):S=!1;continue}}else if(typeof j==\"function\"&&typeof Y==\"function\"&&j.name===Y.name&&j.length===Y.length&&(ce=Function.prototype.toString.call(j),fe=Function.prototype.toString.call(Y),ce===fe)){j=Y.name===\"\"?\"() => {}\":Y.name+\"() {}\",p.push([r_e+\"\\\\xA0\\\\xA0\".repeat(b)+T,j+\" Referentially unequal function closure. Consider memoization.\"]);continue}}pd(T,j,p,b,DW),pd(T,Y,p,b,BW)}S=!1}}else p.push([BW+\"\\\\xA0\\\\xA0\".repeat(b)+T,\"\\\\u2026\"]),S=!1;return S}function Ja(s){Qr=s&63?\"Blocking\":s&64?\"Gesture\":s&4194176?\"Transition\":s&62914560?\"Suspense\":s&2080374784?\"Idle\":\"Other\"}function Fc(s,u,p,b){Ma&&(PS.start=u,PS.end=p,g2.color=\"warning\",g2.tooltipText=b,g2.properties=null,(s=s._debugTask)?s.run(performance.measure.bind(performance,b,PS)):performance.measure(b,PS))}function Qy(s,u,p){Fc(s,u,p,\"Reconnect\")}function Jy(s,u,p,b,S){var T=te(s);if(T!==null&&Ma){var j=s.alternate,Y=s.actualDuration;if(j===null||j.child!==s.child)for(var ce=s.child;ce!==null;ce=ce.sibling)Y-=ce.actualDuration;b=.5>Y?b?\"tertiary-light\":\"primary-light\":10>Y?b?\"tertiary\":\"primary\":100>Y?b?\"tertiary-dark\":\"primary-dark\":\"error\";var fe=s.memoizedProps;Y=s._debugTask,fe!==null&&j!==null&&j.memoizedProps!==fe?(ce=[bgt],fe=V1(j.memoizedProps,fe,ce,0),1<ce.length&&(fe&&!NS&&(j.lanes&S)===0&&100<s.actualDuration?(NS=!0,ce[0]=vgt,g2.color=\"warning\",g2.tooltipText=o_e):(g2.color=b,g2.tooltipText=T),g2.properties=ce,PS.start=u,PS.end=p,Y!=null?Y.run(performance.measure.bind(performance,\"\\\\u200B\"+T,PS)):performance.measure(\"\\\\u200B\"+T,PS))):Y!=null?Y.run(console.timeStamp.bind(console,T,u,p,pg,void 0,b)):console.timeStamp(T,u,p,pg,void 0,b)}}function GA(s,u,p,b){if(Ma){var S=te(s);if(S!==null){for(var T=null,j=[],Y=0;Y<b.length;Y++){var ce=b[Y];T==null&&ce.source!==null&&(T=ce.source._debugTask),ce=ce.value,j.push([\"Error\",typeof ce==\"object\"&&ce!==null&&typeof ce.message==\"string\"?String(ce.message):String(ce)])}s.key!==null&&pd(\"key\",s.key,j,0,\"\"),s.memoizedProps!==null&&cp(s.memoizedProps,j,0,\"\"),T==null&&(T=s._debugTask),s={start:u,end:p,detail:{devtools:{color:\"error\",track:pg,tooltipText:s.tag===13?\"Hydration failed\":\"Error boundary caught an error\",properties:j}}},T?T.run(performance.measure.bind(performance,\"\\\\u200B\"+S,s)):performance.measure(\"\\\\u200B\"+S,s)}}}function Hc(s,u,p,b,S){if(S!==null){if(Ma){var T=te(s);if(T!==null){b=[];for(var j=0;j<S.length;j++){var Y=S[j].value;b.push([\"Error\",typeof Y==\"object\"&&Y!==null&&typeof Y.message==\"string\"?String(Y.message):String(Y)])}s.key!==null&&pd(\"key\",s.key,b,0,\"\"),s.memoizedProps!==null&&cp(s.memoizedProps,b,0,\"\"),u={start:u,end:p,detail:{devtools:{color:\"error\",track:pg,tooltipText:\"A lifecycle or effect errored\",properties:b}}},(s=s._debugTask)?s.run(performance.measure.bind(performance,\"\\\\u200B\"+T,u)):performance.measure(\"\\\\u200B\"+T,u)}}}else T=te(s),T!==null&&Ma&&(S=1>b?\"secondary-light\":100>b?\"secondary\":500>b?\"secondary-dark\":\"error\",(s=s._debugTask)?s.run(console.timeStamp.bind(console,T,u,p,pg,void 0,S)):console.timeStamp(T,u,p,pg,void 0,S))}function G1(s,u,p,b){if(Ma&&!(u<=s)){var S=(p&738197653)===p?\"tertiary-dark\":\"primary-dark\";p=(p&536870912)===p?\"Prepared\":(p&201326741)===p?\"Hydrated\":\"Render\",b?b.run(console.timeStamp.bind(console,p,s,u,Qr,Wr,S)):console.timeStamp(p,s,u,Qr,Wr,S)}}function Xy(s,u,p,b){!Ma||u<=s||(p=(p&738197653)===p?\"tertiary-dark\":\"primary-dark\",b?b.run(console.timeStamp.bind(console,\"Prewarm\",s,u,Qr,Wr,p)):console.timeStamp(\"Prewarm\",s,u,Qr,Wr,p))}function Ux(s,u,p,b){!Ma||u<=s||(p=(p&738197653)===p?\"tertiary-dark\":\"primary-dark\",b?b.run(console.timeStamp.bind(console,\"Suspended\",s,u,Qr,Wr,p)):console.timeStamp(\"Suspended\",s,u,Qr,Wr,p))}function a6(s,u,p,b,S,T){if(Ma&&!(u<=s)){p=[];for(var j=0;j<b.length;j++){var Y=b[j].value;p.push([\"Recoverable Error\",typeof Y==\"object\"&&Y!==null&&typeof Y.message==\"string\"?String(Y.message):String(Y)])}s={start:s,end:u,detail:{devtools:{color:\"primary-dark\",track:Qr,trackGroup:Wr,tooltipText:S?\"Hydration Failed\":\"Recovered after Error\",properties:p}}},T?T.run(performance.measure.bind(performance,\"Recovered\",s)):performance.measure(\"Recovered\",s)}}function q1(s,u,p,b){!Ma||u<=s||(b?b.run(console.timeStamp.bind(console,\"Errored\",s,u,Qr,Wr,\"error\")):console.timeStamp(\"Errored\",s,u,Qr,Wr,\"error\"))}function K0(s,u,p,b){!Ma||u<=s||(b?b.run(console.timeStamp.bind(console,p,s,u,Qr,Wr,\"secondary-light\")):console.timeStamp(p,s,u,Qr,Wr,\"secondary-light\"))}function Y0(s,u,p,b,S){if(Ma&&!(u<=s)){for(var T=[],j=0;j<p.length;j++){var Y=p[j].value;T.push([\"Error\",typeof Y==\"object\"&&Y!==null&&typeof Y.message==\"string\"?String(Y.message):String(Y)])}s={start:s,end:u,detail:{devtools:{color:\"error\",track:Qr,trackGroup:Wr,tooltipText:b?\"Remaining Effects Errored\":\"Commit Errored\",properties:T}}},S?S.run(performance.measure.bind(performance,\"Errored\",s)):performance.measure(\"Errored\",s)}}function tl(s,u,p){!Ma||u<=s||(p?p.run(console.timeStamp.bind(console,\"Animating\",s,u,Qr,Wr,\"secondary-dark\")):console.timeStamp(\"Animating\",s,u,Qr,Wr,\"secondary-dark\"))}function xh(){for(var s=Y4,u=Aae=Y4=0;u<s;){var p=hg[u];hg[u++]=null;var b=hg[u];hg[u++]=null;var S=hg[u];hg[u++]=null;var T=hg[u];if(hg[u++]=null,b!==null&&S!==null){var j=b.pending;j===null?S.next=S:(S.next=j.next,j.next=S),b.pending=S}T!==0&&qA(p,S,T)}}function hc(s,u,p,b){hg[Y4++]=s,hg[Y4++]=u,hg[Y4++]=p,hg[Y4++]=b,Aae|=b,s.lanes|=b,s=s.alternate,s!==null&&(s.lanes|=b)}function up(s,u,p,b){return hc(s,u,p,b),K1(s)}function zc(s,u){return hc(s,null,null,u),K1(s)}function qA(s,u,p){s.lanes|=p;var b=s.alternate;b!==null&&(b.lanes|=p);for(var S=!1,T=s.return;T!==null;)T.childLanes|=p,b=T.alternate,b!==null&&(b.childLanes|=p),T.tag===22&&(s=T.stateNode,s===null||s._visibility&P7||(S=!0)),s=T,T=T.return;return s.tag===3?(T=s.stateNode,S&&u!==null&&(S=31-Rp(p),s=T.hiddenUpdates,b=s[S],b===null?s[S]=[u]:b.push(u),u.lane=p|536870912),T):null}function K1(s){if(a9>Mgt)throw t5=a9=0,s9=nse=null,Error(\"Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.\");t5>Dgt&&(t5=0,s9=null,console.error(\"Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn\\'t have a dependency array, or one of the dependencies changes on every render.\")),s.alternate===null&&(s.flags&4098)!==0&&Ep(s);for(var u=s,p=u.return;p!==null;)u.alternate===null&&(u.flags&4098)!==0&&Ep(s),u=p,p=u.return;return u.tag===3?u.stateNode:null}function $y(s){if(mg===null)return s;var u=mg(s);return u===void 0?s:u.current}function Y1(s){if(mg===null)return s;var u=mg(s);return u===void 0?s!=null&&typeof s.render==\"function\"&&(u=$y(s.render),s.render!==u)?(u={$$typeof:x7,render:u},s.displayName!==void 0&&(u.displayName=s.displayName),u):s:u.current}function Fx(s,u){if(mg===null)return!1;var p=s.elementType;u=u.type;var b=!1,S=typeof u==\"object\"&&u!==null?u.$$typeof:null;switch(s.tag){case 1:typeof u==\"function\"&&(b=!0);break;case 0:(typeof u==\"function\"||S===qm)&&(b=!0);break;case 11:(S===x7||S===qm)&&(b=!0);break;case 14:case 15:(S===EW||S===qm)&&(b=!0);break;default:return!1}return!!(b&&(s=mg(p),s!==void 0&&s===mg(u)))}function Eh(s){mg!==null&&typeof WeakSet==\"function\"&&(Z4===null&&(Z4=new WeakSet),Z4.add(s))}function KA(s,u,p){do{var b=s,S=b.alternate,T=b.child,j=b.sibling,Y=b.tag;b=b.type;var ce=null;switch(Y){case 0:case 15:case 1:ce=b;break;case 11:ce=b.render}if(mg===null)throw Error(\"Expected resolveFamily to be set during hot reload.\");var fe=!1;if(b=!1,ce!==null&&(ce=mg(ce),ce!==void 0&&(p.has(ce)?b=!0:u.has(ce)&&(Y===1?b=!0:fe=!0))),Z4!==null&&(Z4.has(s)||S!==null&&Z4.has(S))&&(b=!0),b&&(s._debugNeedsRemount=!0),(b||fe)&&(S=zc(s,2),S!==null&&$e(S,s,2)),T===null||b||KA(T,u,p),j===null)break;s=j}while(!0)}function s6(s,u,p,b){this.tag=s,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,i_e||typeof Object.preventExtensions!=\"function\"||Object.preventExtensions(this)}function eb(s){return s=s.prototype,!(!s||!s.isReactComponent)}function fo(s,u){var p=s.alternate;switch(p===null?(p=g(s.tag,u,s.key,s.mode),p.elementType=s.elementType,p.type=s.type,p.stateNode=s.stateNode,p._debugOwner=s._debugOwner,p._debugStack=s._debugStack,p._debugTask=s._debugTask,p._debugHookTypes=s._debugHookTypes,p.alternate=s,s.alternate=p):(p.pendingProps=u,p.type=s.type,p.flags=0,p.subtreeFlags=0,p.deletions=null,p.actualDuration=-0,p.actualStartTime=-1.1),p.flags=s.flags&65011712,p.childLanes=s.childLanes,p.lanes=s.lanes,p.child=s.child,p.memoizedProps=s.memoizedProps,p.memoizedState=s.memoizedState,p.updateQueue=s.updateQueue,u=s.dependencies,p.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext,_debugThenableState:u._debugThenableState},p.sibling=s.sibling,p.index=s.index,p.ref=s.ref,p.refCleanup=s.refCleanup,p.selfBaseDuration=s.selfBaseDuration,p.treeBaseDuration=s.treeBaseDuration,p._debugInfo=s._debugInfo,p._debugNeedsRemount=s._debugNeedsRemount,p.tag){case 0:case 15:p.type=$y(s.type);break;case 1:p.type=$y(s.type);break;case 11:p.type=Y1(s.type)}return p}function Ao(s,u){s.flags&=65011714;var p=s.alternate;return p===null?(s.childLanes=0,s.lanes=u,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null,s.selfBaseDuration=0,s.treeBaseDuration=0):(s.childLanes=p.childLanes,s.lanes=p.lanes,s.child=p.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=p.memoizedProps,s.memoizedState=p.memoizedState,s.updateQueue=p.updateQueue,s.type=p.type,u=p.dependencies,s.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext,_debugThenableState:u._debugThenableState},s.selfBaseDuration=p.selfBaseDuration,s.treeBaseDuration=p.treeBaseDuration),s}function tb(s,u,p,b,S,T){var j=0,Y=s;if(typeof s==\"function\")eb(s)&&(j=1),Y=$y(Y);else if(typeof s==\"string\")j=P(),j=Qmt(s,p,j)?26:s===\"html\"||s===\"head\"||s===\"body\"?27:5;else e:switch(s){case Yie:return u=g(31,p,u,S),u.elementType=Yie,u.lanes=T,u;case L4:return lp(p.children,S,T,u);case xW:j=8,S|=wf,S|=_b;break;case Vie:return s=p,b=S,typeof s.id!=\"string\"&&console.error(\\'Profiler must specify an \"id\" of type `string` as a prop. Received the type `%s` instead.\\',typeof s.id),u=g(12,s,u,b|Cr),u.elementType=Vie,u.lanes=T,u.stateNode={effectDuration:0,passiveEffectDuration:0},u;case qie:return u=g(13,p,u,S),u.elementType=qie,u.lanes=T,u;case Kie:return u=g(19,p,u,S),u.elementType=Kie,u.lanes=T,u;default:if(typeof s==\"object\"&&s!==null)switch(s.$$typeof){case kv:j=10;break e;case Gie:j=9;break e;case x7:j=11,Y=Y1(Y);break e;case EW:j=14;break e;case qm:j=16,Y=null;break e}Y=\"\",(s===void 0||typeof s==\"object\"&&s!==null&&Object.keys(s).length===0)&&(Y+=\" You likely forgot to export your component from the file it\\'s defined in, or you might have mixed up default and named imports.\"),s===null?p=\"null\":ll(s)?p=\"array\":s!==void 0&&s.$$typeof===Iv?(p=\"<\"+(ie(s.type)||\"Unknown\")+\" />\",Y=\" Did you accidentally export a JSX literal instead of a component?\"):p=typeof s,(j=b?ae(b):null)&&(Y+=`\\n\\nCheck the render method of \\\\``+j+\"`.\"),j=29,p=Error(\"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: \"+(p+\".\"+Y)),Y=null}return u=g(j,p,u,S),u.elementType=s,u.type=Y,u.lanes=T,u._debugOwner=b,u}function Z0(s,u,p){return u=tb(s.type,s.key,s.props,s._owner,u,p),u._debugOwner=s._owner,u._debugStack=s._debugStack,u._debugTask=s._debugTask,u}function lp(s,u,p,b){return s=g(7,s,b,u),s.lanes=p,s}function Q0(s,u,p){return s=g(6,s,null,u),s.lanes=p,s}function p4(s){var u=g(18,null,null,jn);return u.stateNode=s,u}function YA(s,u,p){return u=g(4,s.children!==null?s.children:[],s.key,u),u.lanes=p,u.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},u}function wl(s,u){if(typeof s==\"object\"&&s!==null){var p=Sae.get(s);return p!==void 0?p:(u={value:s,source:u,stack:he(u)},Sae.set(s,u),u)}return{value:s,source:u,stack:he(u)}}function xl(s,u){fp(),Q4[J4++]=M7,Q4[J4++]=LW,LW=s,M7=u}function h4(s,u,p){fp(),gg[yg++]=b2,gg[yg++]=v2,gg[yg++]=z6,z6=s;var b=b2;s=v2;var S=32-Rp(b)-1;b&=~(1<<S),p+=1;var T=32-Rp(u)+S;if(30<T){var j=S-S%5;T=(b&(1<<j)-1).toString(32),b>>=j,S-=j,b2=1<<32-Rp(u)+S|p<<S|b,v2=T+s}else b2=1<<T|p<<S|b,v2=s}function ZA(s){fp(),s.return!==null&&(xl(s,1),h4(s,1,0))}function dp(s){for(;s===LW;)LW=Q4[--J4],Q4[J4]=null,M7=Q4[--J4],Q4[J4]=null;for(;s===z6;)z6=gg[--yg],gg[yg]=null,v2=gg[--yg],gg[yg]=null,b2=gg[--yg],gg[yg]=null}function QA(){return fp(),z6!==null?{id:b2,overflow:v2}:null}function jc(s,u){fp(),gg[yg++]=b2,gg[yg++]=v2,gg[yg++]=z6,b2=u.id,v2=u.overflow,z6=s}function fp(){no||console.error(\"Expected to be hydrating. This is a bug in React. Please file an issue.\")}function J0(s,u){if(s.return===null){if(Zm===null)Zm={fiber:s,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:u};else{if(Zm.fiber!==s)throw Error(\"Saw multiple hydration diff roots in a pass. This is a bug in React.\");Zm.distanceFromLeaf>u&&(Zm.distanceFromLeaf=u)}return Zm}var p=J0(s.return,u+1).children;return 0<p.length&&p[p.length-1].fiber===s?(p=p[p.length-1],p.distanceFromLeaf>u&&(p.distanceFromLeaf=u),p):(u={fiber:s,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:u},p.push(u),u)}function c6(){no&&console.error(\"We should not be hydrating here. This is a bug in React. Please file a bug.\")}function JA(s,u){Bv||(s=J0(s,0),s.serverProps=null,u!==null&&(u=Rv(u),s.serverTail.push(u)))}function Mm(s){var u=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,p=\"\",b=Zm;throw b!==null&&(Zm=null,p=Px(b)),Z1(wl(Error(\"Hydration failed because the server rendered \"+(u?\"text\":\"HTML\")+` didn\\'t match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\\n\\n- A server/client branch \\\\`if (typeof window !== \\'undefined\\')\\\\`.\\n- Variable input such as \\\\`Date.now()\\\\` or \\\\`Math.random()\\\\` which changes each time it\\'s called.\\n- Date formatting in a user\\'s locale which doesn\\'t match the server.\\n- External changing data without sending a snapshot of it along with the HTML.\\n- Invalid HTML tag nesting.\\n\\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\\n\\nhttps://react.dev/link/hydration-mismatch`+p),s)),_ae}function El(s){var u=s.stateNode,p=s.type,b=s.memoizedProps;switch(u[Cd]=s,u[Ip]=b,Zc(p,b),p){case\"dialog\":Wn(\"cancel\",u),Wn(\"close\",u);break;case\"iframe\":case\"object\":case\"embed\":Wn(\"load\",u);break;case\"video\":case\"audio\":for(p=0;p<c9.length;p++)Wn(c9[p],u);break;case\"source\":Wn(\"error\",u);break;case\"img\":case\"image\":case\"link\":Wn(\"error\",u),Wn(\"load\",u);break;case\"details\":Wn(\"toggle\",u);break;case\"input\":eo(\"input\",b),Wn(\"invalid\",u),ln(u,b),Mo(u,b.value,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name,!0);break;case\"option\":js(u,b);break;case\"select\":eo(\"select\",b),Wn(\"invalid\",u),Dc(u,b);break;case\"textarea\":eo(\"textarea\",b),Wn(\"invalid\",u),Ju(u,b),nf(u,b.value,b.defaultValue,b.children)}p=b.children,typeof p!=\"string\"&&typeof p!=\"number\"&&typeof p!=\"bigint\"||u.textContent===\"\"+p||b.suppressHydrationWarning===!0||ho(u.textContent,p)?(b.popover!=null&&(Wn(\"beforetoggle\",u),Wn(\"toggle\",u)),b.onScroll!=null&&Wn(\"scroll\",u),b.onScrollEnd!=null&&Wn(\"scrollend\",u),b.onClick!=null&&(u.onclick=Qi),u=!0):u=!1,u||Mm(s,!0)}function Al(s){for(Rd=s.return;Rd;)switch(Rd.tag){case 5:case 31:case 13:bg=!1;return;case 27:case 3:bg=!0;return;default:Rd=Rd.return}}function X0(s){if(s!==Rd)return!1;if(!no)return Al(s),no=!0,!1;var u=s.tag,p;if((p=u!==3&&u!==27)&&((p=u===5)&&(p=s.type,p=!(p!==\"form\"&&p!==\"button\")||vb(s.type,s.memoizedProps)),p=!p),p&&Da){for(p=Da;p;){var b=J0(s,0),S=Rv(p);b.serverTail.push(S),p=S.type===\"Suspense\"?U6(p):bf(p.nextSibling)}Mm(s)}if(Al(s),u===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(\"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.\");Da=U6(s)}else if(u===31){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(\"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.\");Da=U6(s)}else u===27?(u=Da,fg(s.type)?(s=hse,hse=null,Da=s):Da=u):Da=Rd?bf(s.stateNode.nextSibling):null;return!0}function So(){Da=Rd=null,Bv=no=!1}function _o(){var s=DS;return s!==null&&(Dp===null?Dp=s:Dp.push.apply(Dp,s),DS=null),s}function Z1(s){DS===null?DS=[s]:DS.push(s)}function Hx(){var s=Zm;if(s!==null){Zm=null;for(var u=Px(s);0<s.children.length;)s=s.children[0];_e(s.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn\\'t match the client properties. This won\\'t be patched up. This can happen if a SSR-ed Client Component used:\\n\\n- A server/client branch \\\\`if (typeof window !== \\'undefined\\')\\\\`.\\n- Variable input such as \\\\`Date.now()\\\\` or \\\\`Math.random()\\\\` which changes each time it\\'s called.\\n- Date formatting in a user\\'s locale which doesn\\'t match the server.\\n- External changing data without sending a snapshot of it along with the HTML.\\n- Invalid HTML tag nesting.\\n\\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\\n\\n%s%s`,\"https://react.dev/link/hydration-mismatch\",u)})}}function zx(){X4=UW=null,$4=!1}function $0(s,u,p){F(Tae,u._currentValue,s),u._currentValue=p,F(Cae,u._currentRenderer,s),u._currentRenderer!==void 0&&u._currentRenderer!==null&&u._currentRenderer!==s_e&&console.error(\"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.\"),u._currentRenderer=s_e}function Dm(s,u){s._currentValue=Tae.current;var p=Cae.current;X(Cae,u),s._currentRenderer=p,X(Tae,u)}function u6(s,u,p){for(;s!==null;){var b=s.alternate;if((s.childLanes&u)!==u?(s.childLanes|=u,b!==null&&(b.childLanes|=u)):b!==null&&(b.childLanes&u)!==u&&(b.childLanes|=u),s===p)break;s=s.return}s!==p&&console.error(\"Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.\")}function Ws(s,u,p,b){var S=s.child;for(S!==null&&(S.return=s);S!==null;){var T=S.dependencies;if(T!==null){var j=S.child;T=T.firstContext;e:for(;T!==null;){var Y=T;T=S;for(var ce=0;ce<u.length;ce++)if(Y.context===u[ce]){T.lanes|=p,Y=T.alternate,Y!==null&&(Y.lanes|=p),u6(T.return,p,s),b||(j=null);break e}T=Y.next}}else if(S.tag===18){if(j=S.return,j===null)throw Error(\"We just came from a parent so we must have had a parent. This is a bug in React.\");j.lanes|=p,T=j.alternate,T!==null&&(T.lanes|=p),u6(j,p,s),j=null}else j=S.child;if(j!==null)j.return=S;else for(j=S;j!==null;){if(j===s){j=null;break}if(S=j.sibling,S!==null){S.return=j.return,j=S;break}j=j.return}S=j}}function af(s,u,p,b){s=null;for(var S=u,T=!1;S!==null;){if(!T){if((S.flags&524288)!==0)T=!0;else if((S.flags&262144)!==0)break}if(S.tag===10){var j=S.alternate;if(j===null)throw Error(\"Should have a current fiber. This is a bug in React.\");if(j=j.memoizedProps,j!==null){var Y=S.type;Op(S.pendingProps.value,j.value)||(s!==null?s.push(Y):s=[Y])}}else if(S===AW.current){if(j=S.alternate,j===null)throw Error(\"Should have a current fiber. This is a bug in React.\");j.memoizedState.memoizedState!==S.memoizedState.memoizedState&&(s!==null?s.push(p9):s=[p9])}S=S.return}s!==null&&Ws(u,s,p,b),u.flags|=262144}function XA(s){for(s=s.firstContext;s!==null;){if(!Op(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function nl(s){UW=s,X4=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function Hr(s){return $4&&console.error(\"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\"),Vs(UW,s)}function Q1(s,u){return UW===null&&nl(s),Vs(s,u)}function Vs(s,u){var p=u._currentValue;if(u={context:u,memoizedValue:p,next:null},X4===null){if(s===null)throw Error(\"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\");X4=u,s.dependencies={lanes:0,firstContext:u,_debugThenableState:null},s.flags|=524288}else X4=X4.next=u;return p}function nb(){return{controller:new Egt,data:new Map,refCount:0}}function eg(s){s.controller.signal.aborted&&console.warn(\"A cache instance was retained after it was already freed. This likely indicates a bug in React.\"),s.refCount++}function Bm(s){s.refCount--,0>s.refCount&&console.warn(\"A cache instance was released after it was already freed. This likely indicates a bug in React.\"),s.refCount===0&&Agt(Sgt,function(){s.controller.abort()})}function pp(s,u,p){(s&127)!==0?0>Lv&&(Lv=_u(),B7=FW(u),Rae=u,p!=null&&(Iae=te(p)),(Do&(fl|Xm))!==Bl&&(tc=!0,US=D7),s=Tv(),u=Nh(),s!==e8||u!==L7?e8=-1.1:u!==null&&(US=D7),W6=s,L7=u):(s&4194048)!==0&&0>vg&&(vg=_u(),U7=FW(u),c_e=u,p!=null&&(u_e=te(p)),0>E2)&&(s=Tv(),u=Nh(),(s!==HS||u!==V6)&&(HS=-1.1),FS=s,V6=u)}function mc(s){if(0>Lv){Lv=_u(),B7=s._debugTask!=null?s._debugTask:null,(Do&(fl|Xm))!==Bl&&(US=D7);var u=Tv(),p=Nh();u!==e8||p!==L7?e8=-1.1:p!==null&&(US=D7),W6=u,L7=p}0>vg&&(vg=_u(),U7=s._debugTask!=null?s._debugTask:null,0>E2)&&(s=Tv(),u=Nh(),(s!==HS||u!==V6)&&(HS=-1.1),FS=s,V6=u)}function Xa(){var s=j6;return j6=0,s}function Lm(s){var u=j6;return j6=s,u}function Um(s){var u=j6;return j6+=s,u}function Fm(){Dn=Cn=-1.1}function du(){var s=Cn;return Cn=-1.1,s}function Gs(s){0<=s&&(Cn=s)}function rl(){var s=Ss;return Ss=-0,s}function gs(s){0<=s&&(Ss=s)}function hd(){var s=is;return is=null,s}function gc(){var s=tc;return tc=!1,s}function J1(s){Np=_u(),0>s.actualStartTime&&(s.actualStartTime=Np)}function $a(s){if(0<=Np){var u=_u()-Np;s.actualDuration+=u,s.selfBaseDuration=u,Np=-1}}function jx(s){if(0<=Np){var u=_u()-Np;s.actualDuration+=u,Np=-1}}function sf(){if(0<=Np){var s=_u(),u=s-Np;Np=-1,j6+=u,Ss+=u,Dn=s}}function cf(s){is===null&&(is=[]),is.push(s),x2===null&&(x2=[]),x2.push(s)}function Ra(){Np=_u(),0>Cn&&(Cn=Np)}function X1(s){for(var u=s.child;u;)s.actualDuration+=u.actualDuration,u=u.sibling}function Wx(s,u){if(H7===null){var p=H7=[];Oae=0,G6=vu(),t8={status:\"pending\",value:void 0,then:function(b){p.push(b)}}}return Oae++,u.then(Vx,Vx),u}function Vx(){if(--Oae===0&&(-1<vg||(E2=-1.1),H7!==null)){t8!==null&&(t8.status=\"fulfilled\");var s=H7;H7=null,G6=0,t8=null;for(var u=0;u<s.length;u++)(0,s[u])()}}function fu(s,u){var p=[],b={status:\"pending\",value:null,reason:null,then:function(S){p.push(S)}};return s.then(function(){b.status=\"fulfilled\",b.value=u;for(var S=0;S<p.length;S++)(0,p[S])(u)},function(S){for(b.status=\"rejected\",b.reason=S,S=0;S<p.length;S++)(0,p[S])(void 0)}),b}function yc(){var s=q6.current;return s!==null?s:ta.pooledCache}function Ui(s,u){u===null?F(q6,q6.current,s):F(q6,u.pool,s)}function es(){var s=yc();return s===null?null:{parent:Su._currentValue,pool:s}}function ol(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function $o(s){return s=s.status,s===\"fulfilled\"||s===\"rejected\"}function $1(s,u,p){tt.actQueue!==null&&(tt.didUsePromise=!0);var b=s.thenables;if(p=b[p],p===void 0?b.push(u):p!==u&&(s.didWarnAboutUncachedPromise||(s.didWarnAboutUncachedPromise=!0,console.error(\"A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.\")),u.then(Qi,Qi),u=p),u._debugInfo===void 0){s=performance.now(),b=u.displayName;var S={name:typeof b==\"string\"?b:\"Promise\",start:s,end:s,value:u};u._debugInfo=[{awaited:S}],u.status!==\"fulfilled\"&&u.status!==\"rejected\"&&(s=function(){S.end=performance.now()},u.then(s,s))}switch(u.status){case\"fulfilled\":return u.value;case\"rejected\":throw s=u.reason,d6(s),s;default:if(typeof u.status==\"string\")u.then(Qi,Qi);else{if(s=ta,s!==null&&100<s.shellSuspendCounter)throw Error(\"An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `\\'use client\\'` to a module that was originally written for the server.\");s=u,s.status=\"pending\",s.then(function(T){if(u.status===\"pending\"){var j=u;j.status=\"fulfilled\",j.value=T}},function(T){if(u.status===\"pending\"){var j=u;j.status=\"rejected\",j.reason=T}})}switch(u.status){case\"fulfilled\":return u.value;case\"rejected\":throw s=u.reason,d6(s),s}throw Y6=u,K7=!0,n8}}function uf(s){try{return Rgt(s)}catch(u){throw u!==null&&typeof u==\"object\"&&typeof u.then==\"function\"?(Y6=u,K7=!0,n8):u}}function l6(){if(Y6===null)throw Error(\"Expected a suspended thenable. This is a bug in React. Please file an issue.\");var s=Y6;return Y6=null,K7=!1,s}function d6(s){if(s===n8||s===KW)throw Error(\"Hooks are not supported inside an async component. This error is often caused by accidentally adding `\\'use client\\'` to a module that was originally written for the server.\")}function qs(s){var u=Rr;return s!=null&&(Rr=u===null?s:u.concat(s)),u}function Gx(){var s=Rr;if(s!=null){for(var u=s.length-1;0<=u;u--)if(s[u].name!=null){var p=s[u].debugTask;if(p!=null)return p}}return null}function ev(s,u,p){for(var b=Object.keys(s.props),S=0;S<b.length;S++){var T=b[S];if(T!==\"children\"&&T!==\"key\"){u===null&&(u=Z0(s,p.mode,0),u._debugInfo=Rr,u.return=p),_e(u,function(j){console.error(\"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.\",j)},T);break}}}function tv(s){var u=Y7;return Y7+=1,r8===null&&(r8=ol()),$1(r8,s,u)}function tg(s,u){u=u.props.ref,s.ref=u!==void 0?u:null}function f6(s,u){throw u.$$typeof===s0t?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:\\n- Multiple copies of the \"react\" package is used.\\n- A library pre-bundled an old copy of \"react\" or \"react/jsx-runtime\".\\n- A compiler tries to \"inline\" JSX instead of using the runtime.`):(s=Object.prototype.toString.call(u),Error(\"Objects are not valid as a React child (found: \"+(s===\"[object Object]\"?\"object with keys {\"+Object.keys(u).join(\", \")+\"}\":s)+\"). If you meant to render a collection of children, use an array instead.\"))}function rb(s,u){var p=Gx();p!==null?p.run(f6.bind(null,s,u)):f6(s,u)}function qx(s,u){var p=te(s)||\"Component\";I_e[p]||(I_e[p]=!0,u=u.displayName||u.name||\"Component\",s.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\\n  root.render(%s)`,u,u,u):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\\n  <%s>{%s}</%s>`,u,u,p,u,p))}function nv(s,u){var p=Gx();p!==null?p.run(qx.bind(null,s,u)):qx(s,u)}function ob(s,u){var p=te(s)||\"Component\";k_e[p]||(k_e[p]=!0,u=String(u),s.tag===3?console.error(`Symbols are not valid as a React child.\\n  root.render(%s)`,u):console.error(`Symbols are not valid as a React child.\\n  <%s>%s</%s>`,p,u,p))}function Ah(s,u){var p=Gx();p!==null?p.run(ob.bind(null,s,u)):ob(s,u)}function Sl(s){function u(Se,Re){if(s){var Ne=Se.deletions;Ne===null?(Se.deletions=[Re],Se.flags|=16):Ne.push(Re)}}function p(Se,Re){if(!s)return null;for(;Re!==null;)u(Se,Re),Re=Re.sibling;return null}function b(Se){for(var Re=new Map;Se!==null;)Se.key!==null?Re.set(Se.key,Se):Re.set(Se.index,Se),Se=Se.sibling;return Re}function S(Se,Re){return Se=fo(Se,Re),Se.index=0,Se.sibling=null,Se}function T(Se,Re,Ne){return Se.index=Ne,s?(Ne=Se.alternate,Ne!==null?(Ne=Ne.index,Ne<Re?(Se.flags|=67108866,Re):Ne):(Se.flags|=67108866,Re)):(Se.flags|=1048576,Re)}function j(Se){return s&&Se.alternate===null&&(Se.flags|=67108866),Se}function Y(Se,Re,Ne,lt){return Re===null||Re.tag!==6?(Re=Q0(Ne,Se.mode,lt),Re.return=Se,Re._debugOwner=Se,Re._debugTask=Se._debugTask,Re._debugInfo=Rr,Re):(Re=S(Re,Ne),Re.return=Se,Re._debugInfo=Rr,Re)}function ce(Se,Re,Ne,lt){var qt=Ne.type;return qt===L4?(Re=De(Se,Re,Ne.props.children,lt,Ne.key),ev(Ne,Re,Se),Re):Re!==null&&(Re.elementType===qt||Fx(Re,Ne)||typeof qt==\"object\"&&qt!==null&&qt.$$typeof===qm&&uf(qt)===Re.type)?(Re=S(Re,Ne.props),tg(Re,Ne),Re.return=Se,Re._debugOwner=Ne._owner,Re._debugInfo=Rr,Re):(Re=Z0(Ne,Se.mode,lt),tg(Re,Ne),Re.return=Se,Re._debugInfo=Rr,Re)}function fe(Se,Re,Ne,lt){return Re===null||Re.tag!==4||Re.stateNode.containerInfo!==Ne.containerInfo||Re.stateNode.implementation!==Ne.implementation?(Re=YA(Ne,Se.mode,lt),Re.return=Se,Re._debugInfo=Rr,Re):(Re=S(Re,Ne.children||[]),Re.return=Se,Re._debugInfo=Rr,Re)}function De(Se,Re,Ne,lt,qt){return Re===null||Re.tag!==7?(Re=lp(Ne,Se.mode,lt,qt),Re.return=Se,Re._debugOwner=Se,Re._debugTask=Se._debugTask,Re._debugInfo=Rr,Re):(Re=S(Re,Ne),Re.return=Se,Re._debugInfo=Rr,Re)}function Be(Se,Re,Ne){if(typeof Re==\"string\"&&Re!==\"\"||typeof Re==\"number\"||typeof Re==\"bigint\")return Re=Q0(\"\"+Re,Se.mode,Ne),Re.return=Se,Re._debugOwner=Se,Re._debugTask=Se._debugTask,Re._debugInfo=Rr,Re;if(typeof Re==\"object\"&&Re!==null){switch(Re.$$typeof){case Iv:return Ne=Z0(Re,Se.mode,Ne),tg(Ne,Re),Ne.return=Se,Se=qs(Re._debugInfo),Ne._debugInfo=Rr,Rr=Se,Ne;case B4:return Re=YA(Re,Se.mode,Ne),Re.return=Se,Re._debugInfo=Rr,Re;case qm:var lt=qs(Re._debugInfo);return Re=uf(Re),Se=Be(Se,Re,Ne),Rr=lt,Se}if(ll(Re)||ne(Re))return Ne=lp(Re,Se.mode,Ne,null),Ne.return=Se,Ne._debugOwner=Se,Ne._debugTask=Se._debugTask,Se=qs(Re._debugInfo),Ne._debugInfo=Rr,Rr=Se,Ne;if(typeof Re.then==\"function\")return lt=qs(Re._debugInfo),Se=Be(Se,tv(Re),Ne),Rr=lt,Se;if(Re.$$typeof===kv)return Be(Se,Q1(Se,Re),Ne);rb(Se,Re)}return typeof Re==\"function\"&&nv(Se,Re),typeof Re==\"symbol\"&&Ah(Se,Re),null}function Te(Se,Re,Ne,lt){var qt=Re!==null?Re.key:null;if(typeof Ne==\"string\"&&Ne!==\"\"||typeof Ne==\"number\"||typeof Ne==\"bigint\")return qt!==null?null:Y(Se,Re,\"\"+Ne,lt);if(typeof Ne==\"object\"&&Ne!==null){switch(Ne.$$typeof){case Iv:return Ne.key===qt?(qt=qs(Ne._debugInfo),Se=ce(Se,Re,Ne,lt),Rr=qt,Se):null;case B4:return Ne.key===qt?fe(Se,Re,Ne,lt):null;case qm:return qt=qs(Ne._debugInfo),Ne=uf(Ne),Se=Te(Se,Re,Ne,lt),Rr=qt,Se}if(ll(Ne)||ne(Ne))return qt!==null?null:(qt=qs(Ne._debugInfo),Se=De(Se,Re,Ne,lt,null),Rr=qt,Se);if(typeof Ne.then==\"function\")return qt=qs(Ne._debugInfo),Se=Te(Se,Re,tv(Ne),lt),Rr=qt,Se;if(Ne.$$typeof===kv)return Te(Se,Re,Q1(Se,Ne),lt);rb(Se,Ne)}return typeof Ne==\"function\"&&nv(Se,Ne),typeof Ne==\"symbol\"&&Ah(Se,Ne),null}function Ge(Se,Re,Ne,lt,qt){if(typeof lt==\"string\"&&lt!==\"\"||typeof lt==\"number\"||typeof lt==\"bigint\")return Se=Se.get(Ne)||null,Y(Re,Se,\"\"+lt,qt);if(typeof lt==\"object\"&&lt!==null){switch(lt.$$typeof){case Iv:return Ne=Se.get(lt.key===null?Ne:lt.key)||null,Se=qs(lt._debugInfo),Re=ce(Re,Ne,lt,qt),Rr=Se,Re;case B4:return Se=Se.get(lt.key===null?Ne:lt.key)||null,fe(Re,Se,lt,qt);case qm:var Yn=qs(lt._debugInfo);return lt=uf(lt),Re=Ge(Se,Re,Ne,lt,qt),Rr=Yn,Re}if(ll(lt)||ne(lt))return Ne=Se.get(Ne)||null,Se=qs(lt._debugInfo),Re=De(Re,Ne,lt,qt,null),Rr=Se,Re;if(typeof lt.then==\"function\")return Yn=qs(lt._debugInfo),Re=Ge(Se,Re,Ne,tv(lt),qt),Rr=Yn,Re;if(lt.$$typeof===kv)return Ge(Se,Re,Ne,Q1(Re,lt),qt);rb(Re,lt)}return typeof lt==\"function\"&&nv(Re,lt),typeof lt==\"symbol\"&&Ah(Re,lt),null}function Wt(Se,Re,Ne,lt){if(typeof Ne!=\"object\"||Ne===null)return lt;switch(Ne.$$typeof){case Iv:case B4:m(Se,Re,Ne);var qt=Ne.key;if(typeof qt!=\"string\")break;if(lt===null){lt=new Set,lt.add(qt);break}if(!lt.has(qt)){lt.add(qt);break}_e(Re,function(){console.error(\"Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \\\\u2014 the behavior is unsupported and could change in a future version.\",qt)});break;case qm:Ne=uf(Ne),Wt(Se,Re,Ne,lt)}return lt}function Jt(Se,Re,Ne,lt){for(var qt=null,Yn=null,Tn=null,bn=Re,br=Re=0,Ba=null;bn!==null&&br<Ne.length;br++){bn.index>br?(Ba=bn,bn=null):Ba=bn.sibling;var Jc=Te(Se,bn,Ne[br],lt);if(Jc===null){bn===null&&(bn=Ba);break}qt=Wt(Se,Jc,Ne[br],qt),s&&bn&&Jc.alternate===null&&u(Se,bn),Re=T(Jc,Re,br),Tn===null?Yn=Jc:Tn.sibling=Jc,Tn=Jc,bn=Ba}if(br===Ne.length)return p(Se,bn),no&&xl(Se,br),Yn;if(bn===null){for(;br<Ne.length;br++)bn=Be(Se,Ne[br],lt),bn!==null&&(qt=Wt(Se,bn,Ne[br],qt),Re=T(bn,Re,br),Tn===null?Yn=bn:Tn.sibling=bn,Tn=bn);return no&&xl(Se,br),Yn}for(bn=b(bn);br<Ne.length;br++)Ba=Ge(bn,Se,br,Ne[br],lt),Ba!==null&&(qt=Wt(Se,Ba,Ne[br],qt),s&&Ba.alternate!==null&&bn.delete(Ba.key===null?br:Ba.key),Re=T(Ba,Re,br),Tn===null?Yn=Ba:Tn.sibling=Ba,Tn=Ba);return s&&bn.forEach(function(O2){return u(Se,O2)}),no&&xl(Se,br),Yn}function ga(Se,Re,Ne,lt){if(Ne==null)throw Error(\"An iterable object provided no iterator.\");for(var qt=null,Yn=null,Tn=Re,bn=Re=0,br=null,Ba=null,Jc=Ne.next();Tn!==null&&!Jc.done;bn++,Jc=Ne.next()){Tn.index>bn?(br=Tn,Tn=null):br=Tn.sibling;var O2=Te(Se,Tn,Jc.value,lt);if(O2===null){Tn===null&&(Tn=br);break}Ba=Wt(Se,O2,Jc.value,Ba),s&&Tn&&O2.alternate===null&&u(Se,Tn),Re=T(O2,Re,bn),Yn===null?qt=O2:Yn.sibling=O2,Yn=O2,Tn=br}if(Jc.done)return p(Se,Tn),no&&xl(Se,bn),qt;if(Tn===null){for(;!Jc.done;bn++,Jc=Ne.next())Tn=Be(Se,Jc.value,lt),Tn!==null&&(Ba=Wt(Se,Tn,Jc.value,Ba),Re=T(Tn,Re,bn),Yn===null?qt=Tn:Yn.sibling=Tn,Yn=Tn);return no&&xl(Se,bn),qt}for(Tn=b(Tn);!Jc.done;bn++,Jc=Ne.next())br=Ge(Tn,Se,bn,Jc.value,lt),br!==null&&(Ba=Wt(Se,br,Jc.value,Ba),s&&br.alternate!==null&&Tn.delete(br.key===null?bn:br.key),Re=T(br,Re,bn),Yn===null?qt=br:Yn.sibling=br,Yn=br);return s&&Tn.forEach(function(Xgt){return u(Se,Xgt)}),no&&xl(Se,bn),qt}function go(Se,Re,Ne,lt){if(typeof Ne==\"object\"&&Ne!==null&&Ne.type===L4&&Ne.key===null&&(ev(Ne,null,Se),Ne=Ne.props.children),typeof Ne==\"object\"&&Ne!==null){switch(Ne.$$typeof){case Iv:var qt=qs(Ne._debugInfo);e:{for(var Yn=Ne.key;Re!==null;){if(Re.key===Yn){if(Yn=Ne.type,Yn===L4){if(Re.tag===7){p(Se,Re.sibling),lt=S(Re,Ne.props.children),lt.return=Se,lt._debugOwner=Ne._owner,lt._debugInfo=Rr,ev(Ne,lt,Se),Se=lt;break e}}else if(Re.elementType===Yn||Fx(Re,Ne)||typeof Yn==\"object\"&&Yn!==null&&Yn.$$typeof===qm&&uf(Yn)===Re.type){p(Se,Re.sibling),lt=S(Re,Ne.props),tg(lt,Ne),lt.return=Se,lt._debugOwner=Ne._owner,lt._debugInfo=Rr,Se=lt;break e}p(Se,Re);break}else u(Se,Re);Re=Re.sibling}Ne.type===L4?(lt=lp(Ne.props.children,Se.mode,lt,Ne.key),lt.return=Se,lt._debugOwner=Se,lt._debugTask=Se._debugTask,lt._debugInfo=Rr,ev(Ne,lt,Se),Se=lt):(lt=Z0(Ne,Se.mode,lt),tg(lt,Ne),lt.return=Se,lt._debugInfo=Rr,Se=lt)}return Se=j(Se),Rr=qt,Se;case B4:e:{for(qt=Ne,Ne=qt.key;Re!==null;){if(Re.key===Ne)if(Re.tag===4&&Re.stateNode.containerInfo===qt.containerInfo&&Re.stateNode.implementation===qt.implementation){p(Se,Re.sibling),lt=S(Re,qt.children||[]),lt.return=Se,Se=lt;break e}else{p(Se,Re);break}else u(Se,Re);Re=Re.sibling}lt=YA(qt,Se.mode,lt),lt.return=Se,Se=lt}return j(Se);case qm:return qt=qs(Ne._debugInfo),Ne=uf(Ne),Se=go(Se,Re,Ne,lt),Rr=qt,Se}if(ll(Ne))return qt=qs(Ne._debugInfo),Se=Jt(Se,Re,Ne,lt),Rr=qt,Se;if(ne(Ne)){if(qt=qs(Ne._debugInfo),Yn=ne(Ne),typeof Yn!=\"function\")throw Error(\"An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.\");var Tn=Yn.call(Ne);return Tn===Ne?(Se.tag!==0||Object.prototype.toString.call(Se.type)!==\"[object GeneratorFunction]\"||Object.prototype.toString.call(Tn)!==\"[object Generator]\")&&(C_e||console.error(\"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items.\"),C_e=!0):Ne.entries!==Yn||Dae||(console.error(\"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"),Dae=!0),Se=ga(Se,Re,Tn,lt),Rr=qt,Se}if(typeof Ne.then==\"function\")return qt=qs(Ne._debugInfo),Se=go(Se,Re,tv(Ne),lt),Rr=qt,Se;if(Ne.$$typeof===kv)return go(Se,Re,Q1(Se,Ne),lt);rb(Se,Ne)}return typeof Ne==\"string\"&&Ne!==\"\"||typeof Ne==\"number\"||typeof Ne==\"bigint\"?(qt=\"\"+Ne,Re!==null&&Re.tag===6?(p(Se,Re.sibling),lt=S(Re,qt),lt.return=Se,Se=lt):(p(Se,Re),lt=Q0(qt,Se.mode,lt),lt.return=Se,lt._debugOwner=Se,lt._debugTask=Se._debugTask,lt._debugInfo=Rr,Se=lt),j(Se)):(typeof Ne==\"function\"&&nv(Se,Ne),typeof Ne==\"symbol\"&&Ah(Se,Ne),p(Se,Re))}return function(Se,Re,Ne,lt){var qt=Rr;Rr=null;try{Y7=0;var Yn=go(Se,Re,Ne,lt);return r8=null,Yn}catch(Ba){if(Ba===n8||Ba===KW)throw Ba;var Tn=g(29,Ba,null,Se.mode);Tn.lanes=lt,Tn.return=Se;var bn=Tn._debugInfo=Rr;if(Tn._debugOwner=Se._debugOwner,Tn._debugTask=Se._debugTask,bn!=null){for(var br=bn.length-1;0<=br;br--)if(typeof bn[br].stack==\"string\"){Tn._debugOwner=bn[br],Tn._debugTask=bn[br].debugTask;break}}return Tn}finally{Rr=qt}}}function rv(s,u){var p=ll(s);return s=!p&&typeof ne(s)==\"function\",p||s?(p=p?\"array\":\"iterable\",console.error(\"A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>\",p,u,p),!1):!0}function md(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ib(s,u){s=s.updateQueue,u.updateQueue===s&&(u.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function hp(s){return{lane:s,tag:N_e,payload:null,callback:null,next:null}}function Sh(s,u,p){var b=s.updateQueue;if(b===null)return null;if(b=b.shared,Lae===b&&!D_e){var S=te(s);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.\\n\\nPlease update the following component: %s`,S),D_e=!0}return(Do&fl)!==Bl?(S=b.pending,S===null?u.next=u:(u.next=S.next,S.next=u),b.pending=u,u=K1(s),qA(s,null,p),u):(hc(s,b,u,p),K1(s))}function ab(s,u,p){if(u=u.updateQueue,u!==null&&(u=u.shared,(p&4194048)!==0)){var b=u.lanes;b&=s.pendingLanes,p|=b,u.lanes=p,Ka(s,p)}}function ov(s,u){var p=s.updateQueue,b=s.alternate;if(b!==null&&(b=b.updateQueue,p===b)){var S=null,T=null;if(p=p.firstBaseUpdate,p!==null){do{var j={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};T===null?S=T=j:T=T.next=j,p=p.next}while(p!==null);T===null?S=T=u:T=T.next=u}else S=T=u;p={baseState:b.baseState,firstBaseUpdate:S,lastBaseUpdate:T,shared:b.shared,callbacks:b.callbacks},s.updateQueue=p;return}s=p.lastBaseUpdate,s===null?p.firstBaseUpdate=u:s.next=u,p.lastBaseUpdate=u}function il(){if(Uae){var s=t8;if(s!==null)throw s}}function iv(s,u,p,b){Uae=!1;var S=s.updateQueue;zS=!1,Lae=S.shared;var T=S.firstBaseUpdate,j=S.lastBaseUpdate,Y=S.shared.pending;if(Y!==null){S.shared.pending=null;var ce=Y,fe=ce.next;ce.next=null,j===null?T=fe:j.next=fe,j=ce;var De=s.alternate;De!==null&&(De=De.updateQueue,Y=De.lastBaseUpdate,Y!==j&&(Y===null?De.firstBaseUpdate=fe:Y.next=fe,De.lastBaseUpdate=ce))}if(T!==null){var Be=S.baseState;j=0,De=fe=ce=null,Y=T;do{var Te=Y.lane&-536870913,Ge=Te!==Y.lane;if(Ge?(Ir&Te)===Te:(b&Te)===Te){Te!==0&&Te===G6&&(Uae=!0),De!==null&&(De=De.next={lane:0,tag:Y.tag,payload:Y.payload,callback:null,next:null});e:{Te=s;var Wt=Y,Jt=u,ga=p;switch(Wt.tag){case P_e:if(Wt=Wt.payload,typeof Wt==\"function\"){$4=!0;var go=Wt.call(ga,Be,Jt);if(Te.mode&wf){St(!0);try{Wt.call(ga,Be,Jt)}finally{St(!1)}}$4=!1,Be=go;break e}Be=Wt;break e;case Bae:Te.flags=Te.flags&-65537|128;case N_e:if(go=Wt.payload,typeof go==\"function\"){if($4=!0,Wt=go.call(ga,Be,Jt),Te.mode&wf){St(!0);try{go.call(ga,Be,Jt)}finally{St(!1)}}$4=!1}else Wt=go;if(Wt==null)break e;Be=jr({},Be,Wt);break e;case M_e:zS=!0}}Te=Y.callback,Te!==null&&(s.flags|=64,Ge&&(s.flags|=8192),Ge=S.callbacks,Ge===null?S.callbacks=[Te]:Ge.push(Te))}else Ge={lane:Te,tag:Y.tag,payload:Y.payload,callback:Y.callback,next:null},De===null?(fe=De=Ge,ce=Be):De=De.next=Ge,j|=Te;if(Y=Y.next,Y===null){if(Y=S.shared.pending,Y===null)break;Ge=Y,Y=Ge.next,Ge.next=null,S.lastBaseUpdate=Ge,S.shared.pending=null}}while(!0);De===null&&(ce=Be),S.baseState=ce,S.firstBaseUpdate=fe,S.lastBaseUpdate=De,T===null&&(S.shared.lanes=0),VS|=j,s.lanes=j,s.memoizedState=Be}Lae=null}function Kx(s,u){if(typeof s!=\"function\")throw Error(\"Invalid argument passed as callback. Expected a function. Instead received: \"+s);s.call(u)}function m4(s,u){var p=s.shared.hiddenCallbacks;if(p!==null)for(s.shared.hiddenCallbacks=null,s=0;s<p.length;s++)Kx(p[s],u)}function Yx(s,u){var p=s.callbacks;if(p!==null)for(s.callbacks=null,s=0;s<p.length;s++)Kx(p[s],u)}function pu(s,u){var p=Hv;F(ZW,p,s),F(o8,u,s),Hv=p|u.baseLanes}function _l(s){F(ZW,Hv,s),F(o8,o8.current,s)}function Fi(s){Hv=ZW.current,X(o8,s),X(ZW,s)}function _h(s){var u=s.alternate;F(Qc,Qc.current&i8,s),F(Qm,s,s),wg===null&&(u===null||o8.current!==null||u.memoizedState!==null)&&(wg=s)}function $A(s){F(Qc,Qc.current,s),F(Qm,s,s),wg===null&&(wg=s)}function p6(s){s.tag===22?(F(Qc,Qc.current,s),F(Qm,s,s),wg===null&&(wg=s)):Wo(s)}function Wo(s){F(Qc,Qc.current,s),F(Qm,Qm.current,s)}function Wc(s){X(Qm,s),wg===s&&(wg=null),X(Qc,s)}function Zx(s){for(var u=s;u!==null;){if(u.tag===13){var p=u.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||L6(p)||xb(p)))return u}else if(u.tag===19&&(u.memoizedProps.revealOrder===\"forwards\"||u.memoizedProps.revealOrder===\"backwards\"||u.memoizedProps.revealOrder===\"unstable_legacy-backwards\"||u.memoizedProps.revealOrder===\"together\")){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}function ar(){var s=Je;Eg===null?Eg=[s]:Eg.push(s)}function _t(){var s=Je;if(Eg!==null&&(T2++,Eg[T2]!==s)){var u=te(Kn);if(!B_e.has(u)&&(B_e.add(u),Eg!==null)){for(var p=\"\",b=0;b<=T2;b++){var S=Eg[b],T=b===T2?s:S;for(S=b+1+\". \"+S;30>S.length;)S+=\" \";S+=T+`\\n`,p+=S}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\\n\\n   Previous render            Next render\\n   ------------------------------------------------------\\n%s   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n`,u,p)}}}function sb(s){s==null||ll(s)||console.error(\"%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.\",Je,typeof s)}function Qx(){var s=te(Kn);U_e.has(s)||(U_e.add(s),console.error(\"ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.\",s))}function fa(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function eS(s,u){if(J7)return!1;if(u===null)return console.error(\"%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.\",Je),!1;s.length!==u.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\\n\\nPrevious: %s\\nIncoming: %s`,Je,\"[\"+u.join(\", \")+\"]\",\"[\"+s.join(\", \")+\"]\");for(var p=0;p<u.length&&p<s.length;p++)if(!Op(s[p],u[p]))return!1;return!0}function av(s,u,p,b,S,T){S2=T,Kn=u,Eg=s!==null?s._debugHookTypes:null,T2=-1,J7=s!==null&&s.type!==u.type,(Object.prototype.toString.call(p)===\"[object AsyncFunction]\"||Object.prototype.toString.call(p)===\"[object AsyncGeneratorFunction]\")&&(T=te(Kn),Fae.has(T)||(Fae.add(T),console.error(\"%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `\\'use client\\'` to a module that was originally written for the server.\",T===null?\"An unknown Component\":\"<\"+T+\">\"))),u.memoizedState=null,u.updateQueue=null,u.lanes=0,tt.H=s!==null&&s.memoizedState!==null?zae:Eg!==null?F_e:Hae,Q6=T=(u.mode&wf)!==jn;var j=Nae(p,b,S);if(Q6=!1,s8&&(j=sv(u,p,b,S)),T){St(!0);try{j=sv(u,p,b,S)}finally{St(!1)}}return h6(s,u),j}function h6(s,u){u._debugHookTypes=Eg,u.dependencies===null?_2!==null&&(u.dependencies={lanes:0,firstContext:null,_debugThenableState:_2}):u.dependencies._debugThenableState=_2,tt.H=X7;var p=ea!==null&&ea.next!==null;if(S2=0,Eg=Je=Tu=ea=Kn=null,T2=-1,s!==null&&(s.flags&65011712)!==(u.flags&65011712)&&console.error(\"Internal React error: Expected static flag was missing. Please notify the React team.\"),JW=!1,Q7=0,_2=null,p)throw Error(\"Rendered fewer hooks than expected. This may be caused by an accidental early return statement.\");s===null||Cu||(s=s.dependencies,s!==null&&XA(s)&&(Cu=!0)),K7?(K7=!1,s=!0):s=!1,s&&(u=te(u)||\"Unknown\",L_e.has(u)||Fae.has(u)||(L_e.add(u),console.error(\"`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.\")))}function sv(s,u,p,b){Kn=s;var S=0;do{if(s8&&(_2=null),Q7=0,s8=!1,S>=kgt)throw Error(\"Too many re-renders. React limits the number of renders to prevent an infinite loop.\");if(S+=1,J7=!1,Tu=ea=null,s.updateQueue!=null){var T=s.updateQueue;T.lastEffect=null,T.events=null,T.stores=null,T.memoCache!=null&&(T.memoCache.index=0)}T2=-1,tt.H=H_e,T=Nae(u,p,b)}while(s8);return T}function tS(){var s=tt.H,u=s.useState()[0];return u=typeof u.then==\"function\"?Xx(u):u,s=s.useState()[0],(ea!==null?ea.memoizedState:null)!==s&&(Kn.flags|=1024),u}function Jx(){var s=XW!==0;return XW=0,s}function nS(s,u,p){u.updateQueue=s.updateQueue,u.flags=(u.mode&_b)!==jn?u.flags&-402655237:u.flags&-2053,s.lanes&=~p}function m6(s){if(JW){for(s=s.memoizedState;s!==null;){var u=s.queue;u!==null&&(u.pending=null),s=s.next}JW=!1}S2=0,Eg=Tu=ea=Kn=null,T2=-1,Je=null,s8=!1,Q7=XW=0,_2=null}function al(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tu===null?Kn.memoizedState=Tu=s:Tu=Tu.next=s,Tu}function Vo(){if(ea===null){var s=Kn.alternate;s=s!==null?s.memoizedState:null}else s=ea.next;var u=Tu===null?Kn.memoizedState:Tu.next;if(u!==null)Tu=u,ea=s;else{if(s===null)throw Kn.alternate===null?Error(\"Update hook called on initial render. This is likely a bug in React. Please file an issue.\"):Error(\"Rendered more hooks than during the previous render.\");ea=s,s={memoizedState:ea.memoizedState,baseState:ea.baseState,baseQueue:ea.baseQueue,queue:ea.queue,next:null},Tu===null?Kn.memoizedState=Tu=s:Tu=Tu.next=s}return Tu}function rS(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xx(s){var u=Q7;return Q7+=1,_2===null&&(_2=ol()),s=$1(_2,s,u),u=Kn,(Tu===null?u.memoizedState:Tu.next)===null&&(u=u.alternate,tt.H=u!==null&&u.memoizedState!==null?zae:Hae),s}function ng(s){if(s!==null&&typeof s==\"object\"){if(typeof s.then==\"function\")return Xx(s);if(s.$$typeof===kv)return Hr(s)}throw Error(\"An unsupported type was passed to use(): \"+String(s))}function Hm(s){var u=null,p=Kn.updateQueue;if(p!==null&&(u=p.memoCache),u==null){var b=Kn.alternate;b!==null&&(b=b.updateQueue,b!==null&&(b=b.memoCache,b!=null&&(u={data:b.data.map(function(S){return S.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),p===null&&(p=rS(),Kn.updateQueue=p),p.memoCache=u,p=u.data[u.index],p===void 0||J7)for(p=u.data[u.index]=Array(s),b=0;b<s;b++)p[b]=c0t;else p.length!==s&&console.error(\"Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.\",p.length,s);return u.index++,p}function mp(s,u){return typeof u==\"function\"?u(s):u}function oS(s,u,p){var b=al();if(p!==void 0){var S=p(u);if(Q6){St(!0);try{p(u)}finally{St(!1)}}}else S=u;return b.memoizedState=b.baseState=S,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:S},b.queue=s,s=s.dispatch=gd.bind(null,Kn,s),[b.memoizedState,s]}function cb(s){var u=Vo();return iS(u,ea,s)}function iS(s,u,p){var b=s.queue;if(b===null)throw Error(\"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)\");b.lastRenderedReducer=p;var S=s.baseQueue,T=b.pending;if(T!==null){if(S!==null){var j=S.next;S.next=T.next,T.next=j}u.baseQueue!==S&&console.error(\"Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.\"),u.baseQueue=S=T,b.pending=null}if(T=s.baseState,S===null)s.memoizedState=T;else{u=S.next;var Y=j=null,ce=null,fe=u,De=!1;do{var Be=fe.lane&-536870913;if(Be!==fe.lane?(Ir&Be)===Be:(S2&Be)===Be){var Te=fe.revertLane;if(Te===0)ce!==null&&(ce=ce.next={lane:0,revertLane:0,gesture:null,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null}),Be===G6&&(De=!0);else if((S2&Te)===Te){fe=fe.next,Te===G6&&(De=!0);continue}else Be={lane:0,revertLane:fe.revertLane,gesture:null,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null},ce===null?(Y=ce=Be,j=T):ce=ce.next=Be,Kn.lanes|=Te,VS|=Te;Be=fe.action,Q6&&p(T,Be),T=fe.hasEagerState?fe.eagerState:p(T,Be)}else Te={lane:Be,revertLane:fe.revertLane,gesture:fe.gesture,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null},ce===null?(Y=ce=Te,j=T):ce=ce.next=Te,Kn.lanes|=Be,VS|=Be;fe=fe.next}while(fe!==null&&fe!==u);if(ce===null?j=T:ce.next=Y,!Op(T,s.memoizedState)&&(Cu=!0,De&&(p=t8,p!==null)))throw p;s.memoizedState=T,s.baseState=j,s.baseQueue=ce,b.lastRenderedState=T}return S===null&&(b.lanes=0),[s.memoizedState,b.dispatch]}function $x(s){var u=Vo(),p=u.queue;if(p===null)throw Error(\"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)\");p.lastRenderedReducer=s;var b=p.dispatch,S=p.pending,T=u.memoizedState;if(S!==null){p.pending=null;var j=S=S.next;do T=s(T,j.action),j=j.next;while(j!==S);Op(T,u.memoizedState)||(Cu=!0),u.memoizedState=T,u.baseQueue===null&&(u.baseState=T),p.lastRenderedState=T}return[T,b]}function g6(s,u,p){var b=Kn,S=al();if(no){if(p===void 0)throw Error(\"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.\");var T=p();a8||T===p()||(console.error(\"The result of getServerSnapshot should be cached to avoid an infinite loop\"),a8=!0)}else{if(T=u(),a8||(p=u(),Op(T,p)||(console.error(\"The result of getSnapshot should be cached to avoid an infinite loop\"),a8=!0)),ta===null)throw Error(\"Expected a work-in-progress root. This is a bug in React. Please file an issue.\");(Ir&127)!==0||g4(b,u,T)}return S.memoizedState=T,p={value:T,getSnapshot:u},S.queue=p,dv(b4.bind(null,b,p,s),[s]),b.flags|=2048,ub(xg|Mp,{destroy:void 0},y4.bind(null,b,p,T,u),null),T}function aS(s,u,p){var b=Kn,S=Vo(),T=no;if(T){if(p===void 0)throw Error(\"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.\");p=p()}else if(p=u(),!a8){var j=u();Op(p,j)||(console.error(\"The result of getSnapshot should be cached to avoid an infinite loop\"),a8=!0)}(j=!Op((ea||S).memoizedState,p))&&(S.memoizedState=p,Cu=!0),S=S.queue;var Y=b4.bind(null,b,S,s);if(hu(2048,Mp,Y,[s]),S.getSnapshot!==u||j||Tu!==null&&Tu.memoizedState.tag&xg){if(b.flags|=2048,ub(xg|Mp,{destroy:void 0},y4.bind(null,b,S,p,u),null),ta===null)throw Error(\"Expected a work-in-progress root. This is a bug in React. Please file an issue.\");T||(S2&127)!==0||g4(b,u,p)}return p}function g4(s,u,p){s.flags|=16384,s={getSnapshot:u,value:p},u=Kn.updateQueue,u===null?(u=rS(),Kn.updateQueue=u,u.stores=[s]):(p=u.stores,p===null?u.stores=[s]:p.push(s))}function y4(s,u,p,b){u.value=p,u.getSnapshot=b,v4(u)&&w4(s)}function b4(s,u,p){return p(function(){v4(u)&&(pp(2,\"updateSyncExternalStore()\",s),w4(s))})}function v4(s){var u=s.getSnapshot;s=s.value;try{var p=u();return!Op(s,p)}catch{return!0}}function w4(s){var u=zc(s,2);u!==null&&$e(u,s,2)}function y6(s){var u=al();if(typeof s==\"function\"){var p=s;if(s=p(),Q6){St(!0);try{p()}finally{St(!1)}}}return u.memoizedState=u.baseState=s,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mp,lastRenderedState:s},u}function b6(s){s=y6(s);var u=s.queue,p=r2.bind(null,Kn,u);return u.dispatch=p,[s.memoizedState,p]}function cv(s){var u=al();u.memoizedState=u.baseState=s;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=p,u=Tl.bind(null,Kn,!0,p),p.dispatch=u,[s,u]}function e2(s,u){var p=Vo();return x4(p,ea,s,u)}function x4(s,u,p,b){return s.baseState=p,iS(s,ea,typeof b==\"function\"?b:mp)}function E4(s,u){var p=Vo();return ea!==null?x4(p,ea,s,u):(p.baseState=s,[s,p.queue.dispatch])}function s7(s,u,p,b,S){if(og(s))throw Error(\"Cannot update form state while rendering.\");if(s=u.action,s!==null){var T={payload:S,action:s,next:null,isTransition:!0,status:\"pending\",value:null,reason:null,listeners:[],then:function(j){T.listeners.push(j)}};tt.T!==null?p(!0):T.isTransition=!1,b(T),p=u.pending,p===null?(T.next=u.pending=T,A4(u,T)):(T.next=p.next,u.pending=p.next=T)}}function A4(s,u){var p=u.action,b=u.payload,S=s.state;if(u.isTransition){var T=tt.T,j={};j._updatedFibers=new Set,tt.T=j;try{var Y=p(S,b),ce=tt.S;ce!==null&&ce(j,Y),S4(s,u,Y)}catch(fe){uv(s,u,fe)}finally{T!==null&&j.types!==null&&(T.types!==null&&T.types!==j.types&&console.error(\"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.\"),T.types=j.types),tt.T=T,T===null&&j._updatedFibers&&(s=j._updatedFibers.size,j._updatedFibers.clear(),10<s&&console.warn(\"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.\"))}}else try{j=p(S,b),S4(s,u,j)}catch(fe){uv(s,u,fe)}}function S4(s,u,p){p!==null&&typeof p==\"object\"&&typeof p.then==\"function\"?(tt.asyncTransitions++,p.then(n2,n2),p.then(function(b){_4(s,u,b)},function(b){return uv(s,u,b)}),u.isTransition||console.error(\"An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.\")):_4(s,u,p)}function _4(s,u,p){u.status=\"fulfilled\",u.value=p,sS(u),s.state=p,u=s.pending,u!==null&&(p=u.next,p===u?s.pending=null:(p=p.next,u.next=p,A4(s,p)))}function uv(s,u,p){var b=s.pending;if(s.pending=null,b!==null){b=b.next;do u.status=\"rejected\",u.reason=p,sS(u),u=u.next;while(u!==b)}s.action=null}function sS(s){s=s.listeners;for(var u=0;u<s.length;u++)(0,s[u])()}function zm(s,u){return u}function lv(s,u){if(no){var p=ta.formState;if(p!==null){e:{var b=Kn;if(no){if(Da){t:{for(var S=Da,T=bg;S.nodeType!==8;){if(!T){S=null;break t}if(S=bf(S.nextSibling),S===null){S=null;break t}}T=S.data,S=T===lse||T===_Te?S:null}if(S){Da=bf(S.nextSibling),b=S.data===lse;break e}}Mm(b)}b=!1}b&&(u=p[0])}}return p=al(),p.memoizedState=p.baseState=u,b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zm,lastRenderedState:u},p.queue=b,p=r2.bind(null,Kn,b),b.dispatch=p,b=y6(!1),T=Tl.bind(null,Kn,!1,b.queue),b=al(),S={state:u,dispatch:null,action:s,pending:null},b.queue=S,p=s7.bind(null,Kn,S,T,p),S.dispatch=p,b.memoizedState=s,[u,p,!1]}function cS(s){var u=Vo();return v6(u,ea,s)}function v6(s,u,p){if(u=iS(s,u,zm)[0],s=cb(mp)[0],typeof u==\"object\"&&u!==null&&typeof u.then==\"function\")try{var b=Xx(u)}catch(j){throw j===n8?KW:j}else b=u;u=Vo();var S=u.queue,T=S.dispatch;return p!==u.memoizedState&&(Kn.flags|=2048,ub(xg|Mp,{destroy:void 0},c7.bind(null,S,p),null)),[b,T,s]}function c7(s,u){s.action=u}function uS(s){var u=Vo(),p=ea;if(p!==null)return v6(u,p,s);Vo(),u=u.memoizedState,p=Vo();var b=p.queue.dispatch;return p.memoizedState=s,[u,b,!1]}function ub(s,u,p,b){return s={tag:s,create:p,deps:b,inst:u,next:null},u=Kn.updateQueue,u===null&&(u=rS(),Kn.updateQueue=u),p=u.lastEffect,p===null?u.lastEffect=s.next=s:(b=p.next,p.next=s,s.next=b,u.lastEffect=s),s}function lS(s){var u=al();return s={current:s},u.memoizedState=s}function rg(s,u,p,b){var S=al();Kn.flags|=s,S.memoizedState=ub(xg|u,{destroy:void 0},p,b===void 0?null:b)}function hu(s,u,p,b){var S=Vo();b=b===void 0?null:b;var T=S.memoizedState.inst;ea!==null&&b!==null&&eS(b,ea.memoizedState.deps)?S.memoizedState=ub(u,T,p,b):(Kn.flags|=s,S.memoizedState=ub(xg|u,T,p,b))}function dv(s,u){(Kn.mode&_b)!==jn?rg(276826112,Mp,s,u):rg(8390656,Mp,s,u)}function w6(s){Kn.flags|=4;var u=Kn.updateQueue;if(u===null)u=rS(),Kn.updateQueue=u,u.events=[s];else{var p=u.events;p===null?u.events=[s]:p.push(s)}}function t2(s){var u=al(),p={impl:s};return u.memoizedState=p,function(){if((Do&fl)!==Bl)throw Error(\"A function wrapped in useEffectEvent can\\'t be called during rendering.\");return p.impl.apply(void 0,arguments)}}function fv(s){var u=Vo().memoizedState;return w6({ref:u,nextImpl:s}),function(){if((Do&fl)!==Bl)throw Error(\"A function wrapped in useEffectEvent can\\'t be called during rendering.\");return u.impl.apply(void 0,arguments)}}function dS(s,u){var p=4194308;return(Kn.mode&_b)!==jn&&(p|=134217728),rg(p,Jm,s,u)}function T4(s,u){if(typeof u==\"function\"){s=s();var p=u(s);return function(){typeof p==\"function\"?p():u(null)}}if(u!=null)return u.hasOwnProperty(\"current\")||console.error(\"Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.\",\"an object with keys {\"+Object.keys(u).join(\", \")+\"}\"),s=s(),u.current=s,function(){u.current=null}}function x6(s,u,p){typeof u!=\"function\"&&console.error(\"Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.\",u!==null?typeof u:\"null\"),p=p!=null?p.concat([s]):null;var b=4194308;(Kn.mode&_b)!==jn&&(b|=134217728),rg(b,Jm,T4.bind(null,u,s),p)}function fS(s,u,p){typeof u!=\"function\"&&console.error(\"Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.\",u!==null?typeof u:\"null\"),p=p!=null?p.concat([s]):null,hu(4,Jm,T4.bind(null,u,s),p)}function E6(s,u){return al().memoizedState=[s,u===void 0?null:u],s}function pS(s,u){var p=Vo();u=u===void 0?null:u;var b=p.memoizedState;return u!==null&&eS(u,b[1])?b[0]:(p.memoizedState=[s,u],s)}function gp(s,u){var p=al();u=u===void 0?null:u;var b=s();if(Q6){St(!0);try{s()}finally{St(!1)}}return p.memoizedState=[b,u],b}function lb(s,u){var p=Vo();u=u===void 0?null:u;var b=p.memoizedState;if(u!==null&&eS(u,b[1]))return b[0];if(b=s(),Q6){St(!0);try{s()}finally{St(!1)}}return p.memoizedState=[b,u],b}function Th(s,u){var p=al();return hS(p,s,u)}function A6(s,u){var p=Vo();return _6(p,ea.memoizedState,s,u)}function S6(s,u){var p=Vo();return ea===null?hS(p,s,u):_6(p,ea.memoizedState,s,u)}function hS(s,u,p){return p===void 0||(S2&1073741824)!==0&&(Ir&261930)===0?s.memoizedState=u:(s.memoizedState=p,s=At(),Kn.lanes|=s,VS|=s,p)}function _6(s,u,p,b){return Op(p,u)?p:o8.current!==null?(s=hS(s,p,b),Op(s,u)||(Cu=!0),s):(S2&42)===0||(S2&1073741824)!==0&&(Ir&261930)===0?(Cu=!0,s.memoizedState=p):(s=At(),Kn.lanes|=s,VS|=s,u)}function n2(){tt.asyncTransitions--}function T6(s,u,p,b,S){var T=Ai.p;Ai.p=T!==0&&T<Sb?T:Sb;var j=tt.T,Y={};Y._updatedFibers=new Set,tt.T=Y,Tl(s,!1,u,p);try{var ce=S(),fe=tt.S;if(fe!==null&&fe(Y,ce),ce!==null&&typeof ce==\"object\"&&typeof ce.then==\"function\"){tt.asyncTransitions++,ce.then(n2,n2);var De=fu(ce,b);o2(s,u,De,mt(s))}else o2(s,u,b,mt(s))}catch(Be){o2(s,u,{then:function(){},status:\"rejected\",reason:Be},mt(s))}finally{Ai.p=T,j!==null&&Y.types!==null&&(j.types!==null&&j.types!==Y.types&&console.error(\"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.\"),j.types=Y.types),tt.T=j,j===null&&Y._updatedFibers&&(s=Y._updatedFibers.size,Y._updatedFibers.clear(),10<s&&console.warn(\"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.\"))}}function mS(s,u,p,b){if(s.tag!==5)throw Error(\"Expected the form instance to be a HostComponent. This is a bug in React.\");var S=C6(s).queue;mc(s),T6(s,S,u,s5,p===null?d:function(){return R6(s),p(b)})}function C6(s){var u=s.memoizedState;if(u!==null)return u;u={memoizedState:s5,baseState:s5,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mp,lastRenderedState:s5},next:null};var p={};return u.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mp,lastRenderedState:p},next:null},s.memoizedState=u,s=s.alternate,s!==null&&(s.memoizedState=u),u}function R6(s){tt.T===null&&console.error(\"requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.\");var u=C6(s);u.next===null&&(u=s.alternate.memoizedState),o2(s,u.next.queue,{},mt(s))}function gS(){var s=y6(!1);return s=T6.bind(null,Kn,s.queue,!0,!1),al().memoizedState=s,[!1,s]}function I6(){var s=cb(mp)[0],u=Vo().memoizedState;return[typeof s==\"boolean\"?s:Xx(s),u]}function pv(){var s=$x(mp)[0],u=Vo().memoizedState;return[typeof s==\"boolean\"?s:Xx(s),u]}function db(){return Hr(p9)}function hv(){var s=al(),u=ta.identifierPrefix;if(no){var p=v2,b=b2;p=(b&~(1<<32-Rp(b)-1)).toString(32)+p,u=\"_\"+u+\"R_\"+p,p=XW++,0<p&&(u+=\"H\"+p.toString(32)),u+=\"_\"}else p=Igt++,u=\"_\"+u+\"r_\"+p.toString(32)+\"_\";return s.memoizedState=u}function k6(){return al().memoizedState=u7.bind(null,Kn)}function u7(s,u){for(var p=s.return;p!==null;){switch(p.tag){case 24:case 3:var b=mt(p),S=hp(b),T=Sh(p,S,b);T!==null&&(pp(b,\"refresh()\",s),$e(T,p,b),ab(T,p,b)),s=nb(),u!=null&&T!==null&&console.error(\"The seed argument is not enabled outside experimental channels.\"),S.payload={cache:s};return}p=p.return}}function gd(s,u,p){var b=arguments;typeof b[3]==\"function\"&&console.error(\"State updates from the useState() and useReducer() Hooks don\\'t support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().\"),b=mt(s);var S={lane:b,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null};og(s)?yp(u,S):(S=up(s,u,S,b),S!==null&&(pp(b,\"dispatch()\",s),$e(S,s,b),yS(S,u,b)))}function r2(s,u,p){var b=arguments;typeof b[3]==\"function\"&&console.error(\"State updates from the useState() and useReducer() Hooks don\\'t support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().\"),b=mt(s),o2(s,u,p,b)&&pp(b,\"setState()\",s)}function o2(s,u,p,b){var S={lane:b,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null};if(og(s))yp(u,S);else{var T=s.alternate;if(s.lanes===0&&(T===null||T.lanes===0)&&(T=u.lastRenderedReducer,T!==null)){var j=tt.H;tt.H=Cb;try{var Y=u.lastRenderedState,ce=T(Y,p);if(S.hasEagerState=!0,S.eagerState=ce,Op(ce,Y))return hc(s,u,S,0),ta===null&&xh(),!1}catch{}finally{tt.H=j}}if(p=up(s,u,S,b),p!==null)return $e(p,s,b),yS(p,u,b),!0}return!1}function Tl(s,u,p,b){if(tt.T===null&&G6===0&&console.error(\"An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition.\"),b={lane:2,revertLane:vu(),gesture:null,action:b,hasEagerState:!1,eagerState:null,next:null},og(s)){if(u)throw Error(\"Cannot update optimistic state while rendering.\");console.error(\"Cannot call startTransition while rendering.\")}else u=up(s,p,b,2),u!==null&&(pp(2,\"setOptimistic()\",s),$e(u,s,2))}function og(s){var u=s.alternate;return s===Kn||u!==null&&u===Kn}function yp(s,u){s8=JW=!0;var p=s.pending;p===null?u.next=u:(u.next=p.next,p.next=u),s.pending=u}function yS(s,u,p){if((p&4194048)!==0){var b=u.lanes;b&=s.pendingLanes,p|=b,u.lanes=p,Ka(s,p)}}function mv(s){if(s!==null&&typeof s!=\"function\"){var u=String(s);J_e.has(u)||(J_e.add(u),console.error(\"Expected the last optional `callback` argument to be a function. Instead received: %s.\",s))}}function ei(s,u,p,b){var S=s.memoizedState,T=p(b,S);if(s.mode&wf){St(!0);try{T=p(b,S)}finally{St(!1)}}T===void 0&&(u=ie(u)||\"Component\",K_e.has(u)||(K_e.add(u),console.error(\"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.\",u))),S=T==null?S:jr({},S,T),s.memoizedState=S,s.lanes===0&&(s.updateQueue.baseState=S)}function gv(s,u,p,b,S,T,j){var Y=s.stateNode;if(typeof Y.shouldComponentUpdate==\"function\"){if(p=Y.shouldComponentUpdate(b,T,j),s.mode&wf){St(!0);try{p=Y.shouldComponentUpdate(b,T,j)}finally{St(!1)}}return p===void 0&&console.error(\"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.\",ie(u)||\"Component\"),p}return u.prototype&&u.prototype.isPureReactComponent?!W0(p,b)||!W0(S,T):!0}function i2(s,u,p,b){var S=u.state;typeof u.componentWillReceiveProps==\"function\"&&u.componentWillReceiveProps(p,b),typeof u.UNSAFE_componentWillReceiveProps==\"function\"&&u.UNSAFE_componentWillReceiveProps(p,b),u.state!==S&&(s=te(s)||\"Component\",j_e.has(s)||(j_e.add(s),console.error(\"%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component\\'s constructor). Use setState instead.\",s)),jae.enqueueReplaceState(u,u.state,null))}function lf(s,u){var p=u;if(\"ref\"in u){p={};for(var b in u)b!==\"ref\"&&(p[b]=u[b])}if(s=s.defaultProps){p===u&&(p=jr({},p));for(var S in s)p[S]===void 0&&(p[S]=s[S])}return p}function fb(s){vae(s),console.warn(`%s\\n\\n%s\\n`,c8?\"An error occurred in the <\"+c8+\"> component.\":\"An error occurred in one of your React components.\",`Consider adding an error boundary to your tree to customize error handling behavior.\\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function pb(s){var u=c8?\"The above error occurred in the <\"+c8+\"> component.\":\"The above error occurred in one of your React components.\",p=\"React will try to recreate this component tree from scratch using the error boundary you provided, \"+((Wae||\"Anonymous\")+\".\");if(typeof s==\"object\"&&s!==null&&typeof s.environmentName==\"string\"){var b=s.environmentName;s=[`%o\\n\\n%s\\n\\n%s\\n`,s,u,p].slice(0),typeof s[0]==\"string\"?s.splice(0,1,PTe+\" \"+s[0],MTe,AV+b+AV,DTe):s.splice(0,0,PTe,MTe,AV+b+AV,DTe),s.unshift(console),b=Qgt.apply(console.error,s),b()}else console.error(`%o\\n\\n%s\\n\\n%s\\n`,s,u,p)}function hb(s){vae(s)}function bp(s,u){try{c8=u.source?te(u.source):null,Wae=null;var p=u.value;if(tt.actQueue!==null)tt.thrownErrors.push(p);else{var b=s.onUncaughtError;b(p,{componentStack:u.stack})}}catch(S){setTimeout(function(){throw S})}}function vp(s,u,p){try{c8=p.source?te(p.source):null,Wae=te(u);var b=s.onCaughtError;b(p.value,{componentStack:p.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(S){setTimeout(function(){throw S})}}function ig(s,u,p){return p=hp(p),p.tag=Bae,p.payload={element:null},p.callback=function(){_e(u.source,bp,s,u)},p}function Cl(s){return s=hp(s),s.tag=Bae,s}function ag(s,u,p,b){var S=p.type.getDerivedStateFromError;if(typeof S==\"function\"){var T=b.value;s.payload=function(){return S(T)},s.callback=function(){Eh(p),_e(b.source,vp,u,p,b)}}var j=p.stateNode;j!==null&&typeof j.componentDidCatch==\"function\"&&(s.callback=function(){Eh(p),_e(b.source,vp,u,p,b),typeof S!=\"function\"&&(qS===null?qS=new Set([this]):qS.add(this)),_gt(this,b),typeof S==\"function\"||(p.lanes&2)===0&&console.error(\"%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.\",te(p)||\"Unknown\")})}function C4(s,u,p,b,S){if(p.flags|=32768,Pv&&Vi(s,S),b!==null&&typeof b==\"object\"&&typeof b.then==\"function\"){if(u=p.alternate,u!==null&&af(u,p,S,!0),no&&(Bv=!0),p=Qm.current,p!==null){switch(p.tag){case 31:case 13:return wg===null?zi():p.alternate===null&&_s===R2&&(_s=tV),p.flags&=-257,p.flags|=65536,p.lanes=S,b===YW?p.flags|=16384:(u=p.updateQueue,u===null?p.updateQueue=new Set([b]):u.add(b),pf(s,b,S)),!1;case 22:return p.flags|=65536,b===YW?p.flags|=16384:(u=p.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([b])},p.updateQueue=u):(p=u.retryQueue,p===null?u.retryQueue=new Set([b]):p.add(b)),pf(s,b,S)),!1}throw Error(\"Unexpected Suspense handler tag (\"+p.tag+\"). This is a bug in React.\")}return pf(s,b,S),zi(),!1}if(no)return Bv=!0,u=Qm.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=S,b!==_ae&&Z1(wl(Error(\"There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.\",{cause:b}),p))):(b!==_ae&&Z1(wl(Error(\"There was an error while hydrating but React was able to recover by instead client rendering the entire root.\",{cause:b}),p)),s=s.current.alternate,s.flags|=65536,S&=-S,s.lanes|=S,b=wl(b,p),S=ig(s.stateNode,b,S),ov(s,S),_s!==jS&&(_s=J6)),!1;var T=wl(Error(\"There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.\",{cause:b}),p);if(o9===null?o9=[T]:o9.push(T),_s!==jS&&(_s=J6),u===null)return!0;b=wl(b,p),p=u;do{switch(p.tag){case 3:return p.flags|=65536,s=S&-S,p.lanes|=s,s=ig(p.stateNode,b,s),ov(p,s),!1;case 1:if(u=p.type,T=p.stateNode,(p.flags&128)===0&&(typeof u.getDerivedStateFromError==\"function\"||T!==null&&typeof T.componentDidCatch==\"function\"&&(qS===null||!qS.has(T))))return p.flags|=65536,S&=-S,p.lanes|=S,S=Cl(S),ag(S,s,p,b),ov(p,S),!1}p=p.return}while(p!==null);return!1}function ys(s,u,p,b){u.child=s===null?O_e(u,null,p,b):Z6(u,s.child,p,b)}function sl(s,u,p,b,S){p=p.render;var T=u.ref;if(\"ref\"in b){var j={};for(var Y in b)Y!==\"ref\"&&(j[Y]=b[Y])}else j=b;return nl(u),b=av(s,u,p,j,T,S),Y=Jx(),s!==null&&!Cu?(nS(s,u,S),ti(s,u,S)):(no&&Y&&ZA(u),u.flags|=1,ys(s,u,b,S),u.child)}function R4(s,u,p,b,S){if(s===null){var T=p.type;return typeof T==\"function\"&&!eb(T)&&T.defaultProps===void 0&&p.compare===null?(p=$y(T),u.tag=15,u.type=p,c2(u,T),mu(s,u,p,b,S)):(s=tb(p.type,null,b,u,u.mode,S),s.ref=u.ref,s.return=u,u.child=s)}if(T=s.child,!Il(s,S)){var j=T.memoizedProps;if(p=p.compare,p=p!==null?p:W0,p(j,b)&&s.ref===u.ref)return ti(s,u,S)}return u.flags|=1,s=fo(T,b),s.ref=u.ref,s.return=u,u.child=s}function mu(s,u,p,b,S){if(s!==null){var T=s.memoizedProps;if(W0(T,b)&&s.ref===u.ref&&u.type===s.type)if(Cu=!1,u.pendingProps=b=T,Il(s,S))(s.flags&131072)!==0&&(Cu=!0);else return u.lanes=s.lanes,ti(s,u,S)}return wv(s,u,p,b,S)}function yv(s,u,p,b){var S=b.children,T=s!==null?s.memoizedState:null;if(s===null&&u.stateNode===null&&(u.stateNode={_visibility:P7,_pendingMarkers:null,_retryCache:null,_transitions:null}),b.mode===\"hidden\"){if((u.flags&128)!==0){if(T=T!==null?T.baseLanes|p:p,s!==null){for(b=u.child=s.child,S=0;b!==null;)S=S|b.lanes|b.childLanes,b=b.sibling;b=S&~T}else b=0,u.child=null;return bS(s,u,T,p,b)}if((p&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},s!==null&&Ui(u,T!==null?T.cachePool:null),T!==null?pu(u,T):_l(u),p6(u);else return b=u.lanes=536870912,bS(s,u,T!==null?T.baseLanes|p:p,p,b)}else T!==null?(Ui(u,T.cachePool),pu(u,T),Wo(u),u.memoizedState=null):(s!==null&&Ui(u,null),_l(u),Wo(u));return ys(s,u,S,p),u.child}function df(s,u){return s!==null&&s.tag===22||u.stateNode!==null||(u.stateNode={_visibility:P7,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.sibling}function bS(s,u,p,b,S){var T=yc();return T=T===null?null:{parent:Su._currentValue,pool:T},u.memoizedState={baseLanes:p,cachePool:T},s!==null&&Ui(u,null),_l(u),p6(u),s!==null&&af(s,u,b,!0),u.childLanes=S,null}function bv(s,u){var p=u.hidden;return p!==void 0&&console.error(`<Activity> doesn\\'t accept a hidden prop. Use mode=\"hidden\" instead.\\n- <Activity %s>\\n+ <Activity %s>`,p===!0?\"hidden\":p===!1?\"hidden={false}\":\"hidden={...}\",p?\\'mode=\"hidden\"\\':\\'mode=\"visible\"\\'),u=l2({mode:u.mode,children:u.children},s.mode),u.ref=s.ref,s.child=u,u.return=s,u}function vS(s,u,p){return Z6(u,s.child,null,p),s=bv(u,u.pendingProps),s.flags|=2,Wc(u),u.memoizedState=null,s}function O6(s,u,p){var b=u.pendingProps,S=(u.flags&128)!==0;if(u.flags&=-129,s===null){if(no){if(b.mode===\"hidden\")return s=bv(u,b),u.lanes=536870912,df(null,s);if($A(u),(s=Da)?(p=h2(s,bg),p=p!==null&&p.data===r5?p:null,p!==null&&(b={dehydrated:p,treeContext:QA(),retryLane:536870912,hydrationErrors:null},u.memoizedState=b,b=p4(p),b.return=u,u.child=b,Rd=u,Da=null)):p=null,p===null)throw JA(u,s),Mm(u);return u.lanes=536870912,null}return bv(u,b)}var T=s.memoizedState;if(T!==null){var j=T.dehydrated;if($A(u),S)if(u.flags&256)u.flags&=-257,u=vS(s,u,p);else if(u.memoizedState!==null)u.child=s.child,u.flags|=128,u=null;else throw Error(\"Client rendering an Activity suspended it again. This is a bug in React.\");else if(c6(),(p&536870912)!==0&&ka(u),Cu||af(s,u,p,!1),S=(p&s.childLanes)!==0,Cu||S){if(b=ta,b!==null&&(j=Sr(b,p),j!==0&&j!==T.retryLane))throw T.retryLane=j,zc(s,j),$e(b,s,j),Vae;zi(),u=vS(s,u,p)}else s=T.treeContext,Da=bf(j.nextSibling),Rd=u,no=!0,DS=null,Bv=!1,Zm=null,bg=!1,s!==null&&jc(u,s),u=bv(u,b),u.flags|=4096;return u}return T=s.child,b={mode:b.mode,children:b.children},(p&536870912)!==0&&(p&s.lanes)!==0&&ka(u),s=fo(T,b),s.ref=u.ref,u.child=s,s.return=u,s}function vv(s,u){var p=u.ref;if(p===null)s!==null&&s.ref!==null&&(u.flags|=4194816);else{if(typeof p!=\"function\"&&typeof p!=\"object\")throw Error(\"Expected ref to be a function, an object returned by React.createRef(), or undefined/null.\");(s===null||s.ref!==p)&&(u.flags|=4194816)}}function wv(s,u,p,b,S){if(p.prototype&&typeof p.prototype.render==\"function\"){var T=ie(p)||\"Unknown\";X_e[T]||(console.error(\"The <%s /> component appears to have a render method, but doesn\\'t extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.\",T,T),X_e[T]=!0)}return u.mode&wf&&Tb.recordLegacyContextWarning(u,null),s===null&&(c2(u,u.type),p.contextTypes&&(T=ie(p)||\"Unknown\",eTe[T]||(eTe[T]=!0,console.error(\"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)\",T)))),nl(u),p=av(s,u,p,b,void 0,S),b=Jx(),s!==null&&!Cu?(nS(s,u,S),ti(s,u,S)):(no&&b&&ZA(u),u.flags|=1,ys(s,u,p,S),u.child)}function wS(s,u,p,b,S,T){return nl(u),T2=-1,J7=s!==null&&s.type!==u.type,u.updateQueue=null,p=sv(u,b,p,S),h6(s,u),b=Jx(),s!==null&&!Cu?(nS(s,u,T),ti(s,u,T)):(no&&b&&ZA(u),u.flags|=1,ys(s,u,p,T),u.child)}function a2(s,u,p,b,S){switch(a(u)){case!1:var T=u.stateNode,j=new u.type(u.memoizedProps,T.context).state;T.updater.enqueueSetState(T,j,null);break;case!0:u.flags|=128,u.flags|=65536,T=Error(\"Simulated error coming from DevTools\");var Y=S&-S;if(u.lanes|=Y,j=ta,j===null)throw Error(\"Expected a work-in-progress root. This is a bug in React. Please file an issue.\");Y=Cl(Y),ag(Y,j,u,wl(T,u)),ov(u,Y)}if(nl(u),u.stateNode===null){if(j=MS,T=p.contextType,\"contextType\"in p&&T!==null&&(T===void 0||T.$$typeof!==kv)&&!Q_e.has(p)&&(Q_e.add(p),Y=T===void 0?\" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.\":typeof T!=\"object\"?\" However, it is set to a \"+typeof T+\".\":T.$$typeof===Gie?\" Did you accidentally pass the Context.Consumer instead?\":\" However, it is set to an object with keys {\"+Object.keys(T).join(\", \")+\"}.\",console.error(\"%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s\",ie(p)||\"Component\",Y)),typeof T==\"object\"&&T!==null&&(j=Hr(T)),T=new p(b,j),u.mode&wf){St(!0);try{T=new p(b,j)}finally{St(!1)}}if(j=u.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,T.updater=jae,u.stateNode=T,T._reactInternals=u,T._reactInternalInstance=z_e,typeof p.getDerivedStateFromProps==\"function\"&&j===null&&(j=ie(p)||\"Component\",W_e.has(j)||(W_e.add(j),console.error(\"`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.\",j,T.state===null?\"null\":\"undefined\",j))),typeof p.getDerivedStateFromProps==\"function\"||typeof T.getSnapshotBeforeUpdate==\"function\"){var ce=Y=j=null;if(typeof T.componentWillMount==\"function\"&&T.componentWillMount.__suppressDeprecationWarning!==!0?j=\"componentWillMount\":typeof T.UNSAFE_componentWillMount==\"function\"&&(j=\"UNSAFE_componentWillMount\"),typeof T.componentWillReceiveProps==\"function\"&&T.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Y=\"componentWillReceiveProps\":typeof T.UNSAFE_componentWillReceiveProps==\"function\"&&(Y=\"UNSAFE_componentWillReceiveProps\"),typeof T.componentWillUpdate==\"function\"&&T.componentWillUpdate.__suppressDeprecationWarning!==!0?ce=\"componentWillUpdate\":typeof T.UNSAFE_componentWillUpdate==\"function\"&&(ce=\"UNSAFE_componentWillUpdate\"),j!==null||Y!==null||ce!==null){T=ie(p)||\"Component\";var fe=typeof p.getDerivedStateFromProps==\"function\"?\"getDerivedStateFromProps()\":\"getSnapshotBeforeUpdate()\";G_e.has(T)||(G_e.add(T),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\nhttps://react.dev/link/unsafe-component-lifecycles`,T,fe,j!==null?`\\n  `+j:\"\",Y!==null?`\\n  `+Y:\"\",ce!==null?`\\n  `+ce:\"\"))}}T=u.stateNode,j=ie(p)||\"Component\",T.render||(p.prototype&&typeof p.prototype.render==\"function\"?console.error(\"No `render` method found on the %s instance: did you accidentally return an object from the constructor?\",j):console.error(\"No `render` method found on the %s instance: you may have forgotten to define `render`.\",j)),!T.getInitialState||T.getInitialState.isReactClassApproved||T.state||console.error(\"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?\",j),T.getDefaultProps&&!T.getDefaultProps.isReactClassApproved&&console.error(\"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.\",j),T.contextType&&console.error(\"contextType was defined as an instance property on %s. Use a static property to define contextType instead.\",j),p.childContextTypes&&!Z_e.has(p)&&(Z_e.add(p),console.error(\"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)\",j)),p.contextTypes&&!Y_e.has(p)&&(Y_e.add(p),console.error(\"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)\",j)),typeof T.componentShouldUpdate==\"function\"&&console.error(\"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.\",j),p.prototype&&p.prototype.isPureReactComponent&&typeof T.shouldComponentUpdate<\"u\"&&console.error(\"%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.\",ie(p)||\"A pure component\"),typeof T.componentDidUnmount==\"function\"&&console.error(\"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?\",j),typeof T.componentDidReceiveProps==\"function\"&&console.error(\"%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().\",j),typeof T.componentWillRecieveProps==\"function\"&&console.error(\"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?\",j),typeof T.UNSAFE_componentWillRecieveProps==\"function\"&&console.error(\"%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?\",j),Y=T.props!==b,T.props!==void 0&&Y&&console.error(\"When calling super() in `%s`, make sure to pass up the same props that your component\\'s constructor was passed.\",j),T.defaultProps&&console.error(\"Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.\",j,j),typeof T.getSnapshotBeforeUpdate!=\"function\"||typeof T.componentDidUpdate==\"function\"||V_e.has(p)||(V_e.add(p),console.error(\"%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.\",ie(p))),typeof T.getDerivedStateFromProps==\"function\"&&console.error(\"%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.\",j),typeof T.getDerivedStateFromError==\"function\"&&console.error(\"%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.\",j),typeof p.getSnapshotBeforeUpdate==\"function\"&&console.error(\"%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.\",j),(Y=T.state)&&(typeof Y!=\"object\"||ll(Y))&&console.error(\"%s.state: must be set to an object or null\",j),typeof T.getChildContext==\"function\"&&typeof p.childContextTypes!=\"object\"&&console.error(\"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().\",j),T=u.stateNode,T.props=b,T.state=u.memoizedState,T.refs={},md(u),j=p.contextType,T.context=typeof j==\"object\"&&j!==null?Hr(j):MS,T.state===b&&(j=ie(p)||\"Component\",q_e.has(j)||(q_e.add(j),console.error(\"%s: It is not recommended to assign props directly to state because updates to props won\\'t be reflected in state. In most cases, it is better to use props directly.\",j))),u.mode&wf&&Tb.recordLegacyContextWarning(u,T),Tb.recordUnsafeLifecycleWarnings(u,T),T.state=u.memoizedState,j=p.getDerivedStateFromProps,typeof j==\"function\"&&(ei(u,p,j,b),T.state=u.memoizedState),typeof p.getDerivedStateFromProps==\"function\"||typeof T.getSnapshotBeforeUpdate==\"function\"||typeof T.UNSAFE_componentWillMount!=\"function\"&&typeof T.componentWillMount!=\"function\"||(j=T.state,typeof T.componentWillMount==\"function\"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount==\"function\"&&T.UNSAFE_componentWillMount(),j!==T.state&&(console.error(\"%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component\\'s constructor). Use setState instead.\",te(u)||\"Component\"),jae.enqueueReplaceState(T,T.state,null)),iv(u,b,T,S),il(),T.state=u.memoizedState),typeof T.componentDidMount==\"function\"&&(u.flags|=4194308),(u.mode&_b)!==jn&&(u.flags|=134217728),T=!0}else if(s===null){T=u.stateNode;var De=u.memoizedProps;Y=lf(p,De),T.props=Y;var Be=T.context;ce=p.contextType,j=MS,typeof ce==\"object\"&&ce!==null&&(j=Hr(ce)),fe=p.getDerivedStateFromProps,ce=typeof fe==\"function\"||typeof T.getSnapshotBeforeUpdate==\"function\",De=u.pendingProps!==De,ce||typeof T.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof T.componentWillReceiveProps!=\"function\"||(De||Be!==j)&&i2(u,T,b,j),zS=!1;var Te=u.memoizedState;T.state=Te,iv(u,b,T,S),il(),Be=u.memoizedState,De||Te!==Be||zS?(typeof fe==\"function\"&&(ei(u,p,fe,b),Be=u.memoizedState),(Y=zS||gv(u,p,Y,b,Te,Be,j))?(ce||typeof T.UNSAFE_componentWillMount!=\"function\"&&typeof T.componentWillMount!=\"function\"||(typeof T.componentWillMount==\"function\"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount==\"function\"&&T.UNSAFE_componentWillMount()),typeof T.componentDidMount==\"function\"&&(u.flags|=4194308),(u.mode&_b)!==jn&&(u.flags|=134217728)):(typeof T.componentDidMount==\"function\"&&(u.flags|=4194308),(u.mode&_b)!==jn&&(u.flags|=134217728),u.memoizedProps=b,u.memoizedState=Be),T.props=b,T.state=Be,T.context=j,T=Y):(typeof T.componentDidMount==\"function\"&&(u.flags|=4194308),(u.mode&_b)!==jn&&(u.flags|=134217728),T=!1)}else{T=u.stateNode,ib(s,u),j=u.memoizedProps,ce=lf(p,j),T.props=ce,fe=u.pendingProps,Te=T.context,Be=p.contextType,Y=MS,typeof Be==\"object\"&&Be!==null&&(Y=Hr(Be)),De=p.getDerivedStateFromProps,(Be=typeof De==\"function\"||typeof T.getSnapshotBeforeUpdate==\"function\")||typeof T.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof T.componentWillReceiveProps!=\"function\"||(j!==fe||Te!==Y)&&i2(u,T,b,Y),zS=!1,Te=u.memoizedState,T.state=Te,iv(u,b,T,S),il();var Ge=u.memoizedState;j!==fe||Te!==Ge||zS||s!==null&&s.dependencies!==null&&XA(s.dependencies)?(typeof De==\"function\"&&(ei(u,p,De,b),Ge=u.memoizedState),(ce=zS||gv(u,p,ce,b,Te,Ge,Y)||s!==null&&s.dependencies!==null&&XA(s.dependencies))?(Be||typeof T.UNSAFE_componentWillUpdate!=\"function\"&&typeof T.componentWillUpdate!=\"function\"||(typeof T.componentWillUpdate==\"function\"&&T.componentWillUpdate(b,Ge,Y),typeof T.UNSAFE_componentWillUpdate==\"function\"&&T.UNSAFE_componentWillUpdate(b,Ge,Y)),typeof T.componentDidUpdate==\"function\"&&(u.flags|=4),typeof T.getSnapshotBeforeUpdate==\"function\"&&(u.flags|=1024)):(typeof T.componentDidUpdate!=\"function\"||j===s.memoizedProps&&Te===s.memoizedState||(u.flags|=4),typeof T.getSnapshotBeforeUpdate!=\"function\"||j===s.memoizedProps&&Te===s.memoizedState||(u.flags|=1024),u.memoizedProps=b,u.memoizedState=Ge),T.props=b,T.state=Ge,T.context=Y,T=ce):(typeof T.componentDidUpdate!=\"function\"||j===s.memoizedProps&&Te===s.memoizedState||(u.flags|=4),typeof T.getSnapshotBeforeUpdate!=\"function\"||j===s.memoizedProps&&Te===s.memoizedState||(u.flags|=1024),T=!1)}if(Y=T,vv(s,u),j=(u.flags&128)!==0,Y||j){if(Y=u.stateNode,Ve(u),j&&typeof p.getDerivedStateFromError!=\"function\")p=null,Np=-1;else if(p=y_e(Y),u.mode&wf){St(!0);try{y_e(Y)}finally{St(!1)}}u.flags|=1,s!==null&&j?(u.child=Z6(u,s.child,null,S),u.child=Z6(u,null,p,S)):ys(s,u,p,S),u.memoizedState=Y.state,s=u.child}else s=ti(s,u,S);return S=u.stateNode,T&&S.props!==b&&(u8||console.error(\"It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.\",te(u)||\"a component\"),u8=!0),s}function s2(s,u,p,b){return So(),u.flags|=256,ys(s,u,p,b),u.child}function c2(s,u){u&&u.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.\\n  %s.childContextTypes = ...`,u.displayName||u.name||\"Component\"),typeof u.getDerivedStateFromProps==\"function\"&&(s=ie(u)||\"Unknown\",tTe[s]||(console.error(\"%s: Function components do not support getDerivedStateFromProps.\",s),tTe[s]=!0)),typeof u.contextType==\"object\"&&u.contextType!==null&&(u=ie(u)||\"Unknown\",$_e[u]||(console.error(\"%s: Function components do not support contextType.\",u),$_e[u]=!0))}function xS(s){return{baseLanes:s,cachePool:es()}}function u2(s,u,p){return s=s!==null?s.childLanes&~p:0,u&&(s|=Bh),s}function ES(s,u,p){var b,S=u.pendingProps;i(u)&&(u.flags|=128);var T=!1,j=(u.flags&128)!==0;if((b=j)||(b=s!==null&&s.memoizedState===null?!1:(Qc.current&Z7)!==0),b&&(T=!0,u.flags&=-129),b=(u.flags&32)!==0,u.flags&=-33,s===null){if(no){if(T?_h(u):Wo(u),(s=Da)?(p=h2(s,bg),p=p!==null&&p.data!==r5?p:null,p!==null&&(b={dehydrated:p,treeContext:QA(),retryLane:536870912,hydrationErrors:null},u.memoizedState=b,b=p4(p),b.return=u,u.child=b,Rd=u,Da=null)):p=null,p===null)throw JA(u,s),Mm(u);return xb(p)?u.lanes=32:u.lanes=536870912,null}var Y=S.children;if(S=S.fallback,T){Wo(u);var ce=u.mode;return Y=l2({mode:\"hidden\",children:Y},ce),S=lp(S,ce,p,null),Y.return=u,S.return=u,Y.sibling=S,u.child=Y,S=u.child,S.memoizedState=xS(p),S.childLanes=u2(s,b,p),u.memoizedState=Gae,df(null,S)}return _h(u),mb(u,Y)}var fe=s.memoizedState;if(fe!==null){var De=fe.dehydrated;if(De!==null){if(j)u.flags&256?(_h(u),u.flags&=-257,u=AS(s,u,p)):u.memoizedState!==null?(Wo(u),u.child=s.child,u.flags|=128,u=null):(Wo(u),Y=S.fallback,ce=u.mode,S=l2({mode:\"visible\",children:S.children},ce),Y=lp(Y,ce,p,null),Y.flags|=2,S.return=u,Y.return=u,S.sibling=Y,u.child=S,Z6(u,s.child,null,p),S=u.child,S.memoizedState=xS(p),S.childLanes=u2(s,b,p),u.memoizedState=Gae,u=df(null,S));else if(_h(u),c6(),(p&536870912)!==0&&ka(u),xb(De)){if(b=De.nextSibling&&De.nextSibling.dataset,b){Y=b.dgst;var Be=b.msg;ce=b.stck;var Te=b.cstck}T=Be,b=Y,S=ce,De=Te,Y=T,ce=De,Y=Error(Y||\"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.\"),Y.stack=S||\"\",Y.digest=b,b=ce===void 0?null:ce,S={value:Y,source:null,stack:b},typeof b==\"string\"&&Sae.set(Y,S),Z1(S),u=AS(s,u,p)}else if(Cu||af(s,u,p,!1),b=(p&s.childLanes)!==0,Cu||b){if(b=ta,b!==null&&(S=Sr(b,p),S!==0&&S!==fe.retryLane))throw fe.retryLane=S,zc(s,S),$e(b,s,S),Vae;L6(De)||zi(),u=AS(s,u,p)}else L6(De)?(u.flags|=192,u.child=s.child,u=null):(s=fe.treeContext,Da=bf(De.nextSibling),Rd=u,no=!0,DS=null,Bv=!1,Zm=null,bg=!1,s!==null&&jc(u,s),u=mb(u,S.children),u.flags|=4096);return u}}return T?(Wo(u),Y=S.fallback,ce=u.mode,Te=s.child,De=Te.sibling,S=fo(Te,{mode:\"hidden\",children:S.children}),S.subtreeFlags=Te.subtreeFlags&65011712,De!==null?Y=fo(De,Y):(Y=lp(Y,ce,p,null),Y.flags|=2),Y.return=u,S.return=u,S.sibling=Y,u.child=S,df(null,S),S=u.child,Y=s.child.memoizedState,Y===null?Y=xS(p):(ce=Y.cachePool,ce!==null?(Te=Su._currentValue,ce=ce.parent!==Te?{parent:Te,pool:Te}:ce):ce=es(),Y={baseLanes:Y.baseLanes|p,cachePool:ce}),S.memoizedState=Y,S.childLanes=u2(s,b,p),u.memoizedState=Gae,df(s.child,S)):(fe!==null&&(p&62914560)===p&&(p&s.lanes)!==0&&ka(u),_h(u),p=s.child,s=p.sibling,p=fo(p,{mode:\"visible\",children:S.children}),p.return=u,p.sibling=null,s!==null&&(b=u.deletions,b===null?(u.deletions=[s],u.flags|=16):b.push(s)),u.child=p,u.memoizedState=null,p)}function mb(s,u){return u=l2({mode:\"visible\",children:u},s.mode),u.return=s,s.child=u}function l2(s,u){return s=g(22,s,null,u),s.lanes=0,s}function AS(s,u,p){return Z6(u,s.child,null,p),s=mb(u,u.pendingProps.children),s.flags|=2,u.memoizedState=null,s}function Rl(s,u,p){s.lanes|=u;var b=s.alternate;b!==null&&(b.lanes|=u),u6(s.return,u,p)}function gb(s,u,p,b,S,T){var j=s.memoizedState;j===null?s.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:b,tail:p,tailMode:S,treeForkCount:T}:(j.isBackwards=u,j.rendering=null,j.renderingStartTime=0,j.last=b,j.tail=p,j.tailMode=S,j.treeForkCount=T)}function I4(s,u,p){var b=u.pendingProps,S=b.revealOrder,T=b.tail,j=b.children,Y=Qc.current;if((b=(Y&Z7)!==0)?(Y=Y&i8|Z7,u.flags|=128):Y&=i8,F(Qc,Y,u),Y=S??\"null\",S!==\"forwards\"&&S!==\"unstable_legacy-backwards\"&&S!==\"together\"&&S!==\"independent\"&&!nTe[Y])if(nTe[Y]=!0,S==null)console.error(\\'The default for the <SuspenseList revealOrder=\"...\"> prop is changing. To be future compatible you must explictly specify either \"independent\" (the current default), \"together\", \"forwards\" or \"legacy_unstable-backwards\".\\');else if(S===\"backwards\")console.error(\\'The rendering order of <SuspenseList revealOrder=\"backwards\"> is changing. To be future compatible you must specify revealOrder=\"legacy_unstable-backwards\" instead.\\');else if(typeof S==\"string\")switch(S.toLowerCase()){case\"together\":case\"forwards\":case\"backwards\":case\"independent\":console.error(\\'\"%s\" is not a valid value for revealOrder on <SuspenseList />. Use lowercase \"%s\" instead.\\',S,S.toLowerCase());break;case\"forward\":case\"backward\":console.error(\\'\"%s\" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use \"%ss\" instead.\\',S,S.toLowerCase());break;default:console.error(\\'\"%s\" is not a supported revealOrder on <SuspenseList />. Did you mean \"independent\", \"together\", \"forwards\" or \"backwards\"?\\',S)}else console.error(\\'%s is not a supported value for revealOrder on <SuspenseList />. Did you mean \"independent\", \"together\", \"forwards\" or \"backwards\"?\\',S);Y=T??\"null\",eV[Y]||(T==null?(S===\"forwards\"||S===\"backwards\"||S===\"unstable_legacy-backwards\")&&(eV[Y]=!0,console.error(\\'The default for the <SuspenseList tail=\"...\"> prop is changing. To be future compatible you must explictly specify either \"visible\" (the current default), \"collapsed\" or \"hidden\".\\')):T!==\"visible\"&&T!==\"collapsed\"&&T!==\"hidden\"?(eV[Y]=!0,console.error(\\'\"%s\" is not a supported value for tail on <SuspenseList />. Did you mean \"visible\", \"collapsed\" or \"hidden\"?\\',T)):S!==\"forwards\"&&S!==\"backwards\"&&S!==\"unstable_legacy-backwards\"&&(eV[Y]=!0,console.error(\\'<SuspenseList tail=\"%s\" /> is only valid if revealOrder is \"forwards\" or \"backwards\". Did you mean to specify revealOrder=\"forwards\"?\\',T)));e:if((S===\"forwards\"||S===\"backwards\"||S===\"unstable_legacy-backwards\")&&j!==void 0&&j!==null&&j!==!1)if(ll(j)){for(Y=0;Y<j.length;Y++)if(!rv(j[Y],Y))break e}else if(Y=ne(j),typeof Y==\"function\"){if(Y=Y.call(j))for(var ce=Y.next(),fe=0;!ce.done;ce=Y.next()){if(!rv(ce.value,fe))break e;fe++}}else console.error(\\'A single row was passed to a <SuspenseList revealOrder=\"%s\" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?\\',S);if(ys(s,u,j,p),no?(fp(),j=M7):j=0,!b&&s!==null&&(s.flags&128)!==0)e:for(s=u.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Rl(s,p,u);else if(s.tag===19)Rl(s,p,u);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===u)break e;for(;s.sibling===null;){if(s.return===null||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}switch(S){case\"forwards\":for(p=u.child,S=null;p!==null;)s=p.alternate,s!==null&&Zx(s)===null&&(S=p),p=p.sibling;p=S,p===null?(S=u.child,u.child=null):(S=p.sibling,p.sibling=null),gb(u,!1,S,p,T,j);break;case\"backwards\":case\"unstable_legacy-backwards\":for(p=null,S=u.child,u.child=null;S!==null;){if(s=S.alternate,s!==null&&Zx(s)===null){u.child=S;break}s=S.sibling,S.sibling=p,p=S,S=s}gb(u,!0,p,null,T,j);break;case\"together\":gb(u,!1,null,null,void 0,j);break;default:u.memoizedState=null}return u.child}function ti(s,u,p){if(s!==null&&(u.dependencies=s.dependencies),Np=-1,VS|=u.lanes,(p&u.childLanes)===0)if(s!==null){if(af(s,u,p,!1),(p&u.childLanes)===0)return null}else return null;if(s!==null&&u.child!==s.child)throw Error(\"Resuming work not yet implemented.\");if(u.child!==null){for(s=u.child,p=fo(s,s.pendingProps),u.child=p,p.return=u;s.sibling!==null;)s=s.sibling,p=p.sibling=fo(s,s.pendingProps),p.return=u;p.sibling=null}return u.child}function Il(s,u){return(s.lanes&u)!==0?!0:(s=s.dependencies,!!(s!==null&&XA(s)))}function Ks(s,u,p){switch(u.tag){case 3:O(u,u.stateNode.containerInfo),$0(u,Su,s.memoizedState.cache),So();break;case 27:case 5:L(u);break;case 4:O(u,u.stateNode.containerInfo);break;case 10:$0(u,u.type,u.memoizedProps.value);break;case 12:(p&u.childLanes)!==0&&(u.flags|=4),u.flags|=2048;var b=u.stateNode;b.effectDuration=-0,b.passiveEffectDuration=-0;break;case 31:if(u.memoizedState!==null)return u.flags|=128,$A(u),null;break;case 13:if(b=u.memoizedState,b!==null)return b.dehydrated!==null?(_h(u),u.flags|=128,null):(p&u.child.childLanes)!==0?ES(s,u,p):(_h(u),s=ti(s,u,p),s!==null?s.sibling:null);_h(u);break;case 19:var S=(s.flags&128)!==0;if(b=(p&u.childLanes)!==0,b||(af(s,u,p,!1),b=(p&u.childLanes)!==0),S){if(b)return I4(s,u,p);u.flags|=128}if(S=u.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),F(Qc,Qc.current,u),b)break;return null;case 22:return u.lanes=0,yv(s,u,p,u.pendingProps);case 24:$0(u,Su,s.memoizedState.cache)}return ti(s,u,p)}function xv(s,u,p){if(u._debugNeedsRemount&&s!==null){p=tb(u.type,u.key,u.pendingProps,u._debugOwner||null,u.mode,u.lanes),p._debugStack=u._debugStack,p._debugTask=u._debugTask;var b=u.return;if(b===null)throw Error(\"Cannot swap the root fiber.\");if(s.alternate=null,u.alternate=null,p.index=u.index,p.sibling=u.sibling,p.return=u.return,p.ref=u.ref,p._debugInfo=u._debugInfo,u===b.child)b.child=p;else{var S=b.child;if(S===null)throw Error(\"Expected parent to have a child.\");for(;S.sibling!==u;)if(S=S.sibling,S===null)throw Error(\"Expected to find the previous sibling.\");S.sibling=p}return u=b.deletions,u===null?(b.deletions=[s],b.flags|=16):u.push(s),p.flags|=2,p}if(s!==null)if(s.memoizedProps!==u.pendingProps||u.type!==s.type)Cu=!0;else{if(!Il(s,p)&&(u.flags&128)===0)return Cu=!1,Ks(s,u,p);Cu=(s.flags&131072)!==0}else Cu=!1,(b=no)&&(fp(),b=(u.flags&1048576)!==0),b&&(b=u.index,fp(),h4(u,M7,b));switch(u.lanes=0,u.tag){case 16:e:if(b=u.pendingProps,s=uf(u.elementType),u.type=s,typeof s==\"function\")eb(s)?(b=lf(s,b),u.tag=1,u.type=s=$y(s),u=a2(null,u,s,b,p)):(u.tag=0,c2(u,s),u.type=s=$y(s),u=wv(null,u,s,b,p));else{if(s!=null){if(S=s.$$typeof,S===x7){u.tag=11,u.type=s=Y1(s),u=sl(null,u,s,b,p);break e}else if(S===EW){u.tag=14,u=R4(null,u,s,b,p);break e}}throw u=\"\",s!==null&&typeof s==\"object\"&&s.$$typeof===qm&&(u=\" Did you wrap a component in React.lazy() more than once?\"),p=ie(s)||s,Error(\"Element type is invalid. Received a promise that resolves to: \"+p+\". Lazy element type must resolve to a class or function.\"+u)}return u;case 0:return wv(s,u,u.type,u.pendingProps,p);case 1:return b=u.type,S=lf(b,u.pendingProps),a2(s,u,b,S,p);case 3:e:{if(O(u,u.stateNode.containerInfo),s===null)throw Error(\"Should have a current fiber. This is a bug in React.\");b=u.pendingProps;var T=u.memoizedState;S=T.element,ib(s,u),iv(u,b,null,p);var j=u.memoizedState;if(b=j.cache,$0(u,Su,b),b!==T.cache&&Ws(u,[Su],p,!0),il(),b=j.element,T.isDehydrated)if(T={element:b,isDehydrated:!1,cache:j.cache},u.updateQueue.baseState=T,u.memoizedState=T,u.flags&256){u=s2(s,u,b,p);break e}else if(b!==S){S=wl(Error(\"This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.\"),u),Z1(S),u=s2(s,u,b,p);break e}else{switch(s=u.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName===\"HTML\"?s.ownerDocument.body:s}for(Da=bf(s.firstChild),Rd=u,no=!0,DS=null,Bv=!1,Zm=null,bg=!0,p=O_e(u,null,b,p),u.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(So(),b===S){u=ti(s,u,p);break e}ys(s,u,b,p)}u=u.child}return u;case 26:return vv(s,u),s===null?(p=y7(u.type,null,u.pendingProps,null))?u.memoizedState=p:no||(p=u.type,s=u.pendingProps,b=R(RS.current),b=xu(b).createElement(p),b[Cd]=u,b[Ip]=s,$i(b,p,s),zt(b),u.stateNode=b):u.memoizedState=y7(u.type,s.memoizedProps,u.pendingProps,s.memoizedState),null;case 27:return L(u),s===null&&no&&(b=R(RS.current),S=P(),b=u.stateNode=m7(u.type,u.pendingProps,b,S,!1),Bv||(S=Gm(b,u.type,u.pendingProps,S),S!==null&&(J0(u,0).serverProps=S)),Rd=u,bg=!0,S=Da,fg(u.type)?(hse=S,Da=bf(b.firstChild)):Da=S),ys(s,u,u.pendingProps.children,p),vv(s,u),s===null&&(u.flags|=4194304),u.child;case 5:return s===null&&no&&(T=P(),b=Mx(u.type,T.ancestorInfo),S=Da,(j=!S)||(j=ul(S,u.type,u.pendingProps,bg),j!==null?(u.stateNode=j,Bv||(T=Gm(j,u.type,u.pendingProps,T),T!==null&&(J0(u,0).serverProps=T)),Rd=u,Da=bf(j.firstChild),bg=!1,T=!0):T=!1,j=!T),j&&(b&&JA(u,S),Mm(u))),L(u),S=u.type,T=u.pendingProps,j=s!==null?s.memoizedProps:null,b=T.children,vb(S,T)?b=null:j!==null&&vb(S,j)&&(u.flags|=32),u.memoizedState!==null&&(S=av(s,u,tS,null,null,p),p9._currentValue=S),vv(s,u),ys(s,u,b,p),u.child;case 6:return s===null&&no&&(p=u.pendingProps,s=P(),b=s.ancestorInfo.current,p=b!=null?Vy(p,b.tag,s.ancestorInfo.implicitRootScope):!0,s=Da,(b=!s)||(b=fW(s,u.pendingProps,bg),b!==null?(u.stateNode=b,Rd=u,Da=null,b=!0):b=!1,b=!b),b&&(p&&JA(u,s),Mm(u))),null;case 13:return ES(s,u,p);case 4:return O(u,u.stateNode.containerInfo),b=u.pendingProps,s===null?u.child=Z6(u,null,b,p):ys(s,u,b,p),u.child;case 11:return sl(s,u,u.type,u.pendingProps,p);case 7:return ys(s,u,u.pendingProps,p),u.child;case 8:return ys(s,u,u.pendingProps.children,p),u.child;case 12:return u.flags|=4,u.flags|=2048,b=u.stateNode,b.effectDuration=-0,b.passiveEffectDuration=-0,ys(s,u,u.pendingProps.children,p),u.child;case 10:return b=u.type,S=u.pendingProps,T=S.value,\"value\"in S||rTe||(rTe=!0,console.error(\"The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?\")),$0(u,b,T),ys(s,u,S.children,p),u.child;case 9:return S=u.type._context,b=u.pendingProps.children,typeof b!=\"function\"&&console.error(\"A context consumer was rendered with multiple children, or a child that isn\\'t a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.\"),nl(u),S=Hr(S),b=Nae(b,S,void 0),u.flags|=1,ys(s,u,b,p),u.child;case 14:return R4(s,u,u.type,u.pendingProps,p);case 15:return mu(s,u,u.type,u.pendingProps,p);case 19:return I4(s,u,p);case 31:return O6(s,u,p);case 22:return yv(s,u,p,u.pendingProps);case 24:return nl(u),b=Hr(Su),s===null?(S=yc(),S===null&&(S=ta,T=nb(),S.pooledCache=T,eg(T),T!==null&&(S.pooledCacheLanes|=p),S=T),u.memoizedState={parent:b,cache:S},md(u),$0(u,Su,S)):((s.lanes&p)!==0&&(ib(s,u),iv(u,null,null,p),il()),S=s.memoizedState,T=u.memoizedState,S.parent!==b?(S={parent:b,cache:b},u.memoizedState=S,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=S),$0(u,Su,b)):(b=T.cache,$0(u,Su,b),b!==S.cache&&Ws(u,[Su],p,!0))),ys(s,u,u.pendingProps.children,p),u.child;case 29:throw u.pendingProps}throw Error(\"Unknown unit of work tag (\"+u.tag+\"). This error is likely caused by a bug in React. Please file an issue.\")}function bs(s){s.flags|=4}function To(s,u,p,b,S){if((u=(s.mode&xgt)!==jn)&&(u=!1),u){if(s.flags|=16777216,(S&335544128)===S)if(s.stateNode.complete)s.flags|=8192;else if(Ia())s.flags|=8192;else throw Y6=YW,Mae}else s.flags&=-16777217}function yd(s,u){if(u.type!==\"stylesheet\"||(u.state.loading&Ag)!==a5)s.flags&=-16777217;else if(s.flags|=16777216,!YAe(u))if(Ia())s.flags|=8192;else throw Y6=YW,Mae}function ff(s,u){u!==null&&(s.flags|=4),s.flags&16384&&(u=s.tag!==22?Fn():536870912,s.lanes|=u,e5|=u)}function Hi(s,u){if(!no)switch(s.tailMode){case\"hidden\":u=s.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?s.tail=null:p.sibling=null;break;case\"collapsed\":p=s.tail;for(var b=null;p!==null;)p.alternate!==null&&(b=p),p=p.sibling;b===null?u||s.tail===null?s.tail=null:s.tail.sibling=null:b.sibling=null}}function Co(s){var u=s.alternate!==null&&s.alternate.child===s.child,p=0,b=0;if(u)if((s.mode&Cr)!==jn){for(var S=s.selfBaseDuration,T=s.child;T!==null;)p|=T.lanes|T.childLanes,b|=T.subtreeFlags&65011712,b|=T.flags&65011712,S+=T.treeBaseDuration,T=T.sibling;s.treeBaseDuration=S}else for(S=s.child;S!==null;)p|=S.lanes|S.childLanes,b|=S.subtreeFlags&65011712,b|=S.flags&65011712,S.return=s,S=S.sibling;else if((s.mode&Cr)!==jn){S=s.actualDuration,T=s.selfBaseDuration;for(var j=s.child;j!==null;)p|=j.lanes|j.childLanes,b|=j.subtreeFlags,b|=j.flags,S+=j.actualDuration,T+=j.treeBaseDuration,j=j.sibling;s.actualDuration=S,s.treeBaseDuration=T}else for(S=s.child;S!==null;)p|=S.lanes|S.childLanes,b|=S.subtreeFlags,b|=S.flags,S.return=s,S=S.sibling;return s.subtreeFlags|=b,s.childLanes=p,u}function Ev(s,u,p){var b=u.pendingProps;switch(dp(u),u.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Co(u),null;case 1:return Co(u),null;case 3:return p=u.stateNode,b=null,s!==null&&(b=s.memoizedState.cache),u.memoizedState.cache!==b&&(u.flags|=2048),Dm(Su,u),U(u),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(s===null||s.child===null)&&(X0(u)?(Hx(),bs(u)):s===null||s.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,_o())),Co(u),null;case 26:var S=u.type,T=u.memoizedState;return s===null?(bs(u),T!==null?(Co(u),yd(u,T)):(Co(u),To(u,S,null,b,p))):T?T!==s.memoizedState?(bs(u),Co(u),yd(u,T)):(Co(u),u.flags&=-16777217):(s=s.memoizedProps,s!==b&&bs(u),Co(u),To(u,S,s,b,p)),null;case 27:if(W(u),p=R(RS.current),S=u.type,s!==null&&u.stateNode!=null)s.memoizedProps!==b&&bs(u);else{if(!b){if(u.stateNode===null)throw Error(\"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\");return Co(u),null}s=P(),X0(u)?El(u,s):(s=m7(S,b,p,s,!0),u.stateNode=s,bs(u))}return Co(u),null;case 5:if(W(u),S=u.type,s!==null&&u.stateNode!=null)s.memoizedProps!==b&&bs(u);else{if(!b){if(u.stateNode===null)throw Error(\"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\");return Co(u),null}var j=P();if(X0(u))El(u,j);else{switch(T=R(RS.current),Mx(S,j.ancestorInfo),j=j.context,T=xu(T),j){case y8:T=T.createElementNS(z4,S);break;case wV:T=T.createElementNS(IW,S);break;default:switch(S){case\"svg\":T=T.createElementNS(z4,S);break;case\"math\":T=T.createElementNS(IW,S);break;case\"script\":T=T.createElement(\"div\"),T.innerHTML=\"<script><\\\\/script>\",T=T.removeChild(T.firstChild);break;case\"select\":T=typeof b.is==\"string\"?T.createElement(\"select\",{is:b.is}):T.createElement(\"select\"),b.multiple?T.multiple=!0:b.size&&(T.size=b.size);break;default:T=typeof b.is==\"string\"?T.createElement(S,{is:b.is}):T.createElement(S),S.indexOf(\"-\")===-1&&(S!==S.toLowerCase()&&console.error(\"<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.\",S),Object.prototype.toString.call(T)!==\"[object HTMLUnknownElement]\"||Ab.call(CTe,S)||(CTe[S]=!0,console.error(\"The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.\",S)))}}T[Cd]=u,T[Ip]=b;e:for(j=u.child;j!==null;){if(j.tag===5||j.tag===6)T.appendChild(j.stateNode);else if(j.tag!==4&&j.tag!==27&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===u)break e;for(;j.sibling===null;){if(j.return===null||j.return===u)break e;j=j.return}j.sibling.return=j.return,j=j.sibling}u.stateNode=T;e:switch($i(T,S,b),S){case\"button\":case\"input\":case\"select\":case\"textarea\":b=!!b.autoFocus;break e;case\"img\":b=!0;break e;default:b=!1}b&&bs(u)}}return Co(u),To(u,u.type,s===null?null:s.memoizedProps,u.pendingProps,p),null;case 6:if(s&&u.stateNode!=null)s.memoizedProps!==b&&bs(u);else{if(typeof b!=\"string\"&&u.stateNode===null)throw Error(\"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\");if(s=R(RS.current),p=P(),X0(u)){if(s=u.stateNode,p=u.memoizedProps,S=!Bv,b=null,T=Rd,T!==null)switch(T.tag){case 3:S&&(S=N4(s,p,b),S!==null&&(J0(u,0).serverProps=S));break;case 27:case 5:b=T.memoizedProps,S&&(S=N4(s,p,b),S!==null&&(J0(u,0).serverProps=S))}s[Cd]=u,s=!!(s.nodeValue===p||b!==null&&b.suppressHydrationWarning===!0||ho(s.nodeValue,p)),s||Mm(u,!0)}else S=p.ancestorInfo.current,S!=null&&Vy(b,S.tag,p.ancestorInfo.implicitRootScope),s=xu(s).createTextNode(b),s[Cd]=u,u.stateNode=s}return Co(u),null;case 31:if(p=u.memoizedState,s===null||s.memoizedState!==null){if(b=X0(u),p!==null){if(s===null){if(!b)throw Error(\"A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.\");if(s=u.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(\"Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.\");s[Cd]=u,Co(u),(u.mode&Cr)!==jn&&p!==null&&(s=u.child,s!==null&&(u.treeBaseDuration-=s.treeBaseDuration))}else Hx(),So(),(u.flags&128)===0&&(p=u.memoizedState=null),u.flags|=4,Co(u),(u.mode&Cr)!==jn&&p!==null&&(s=u.child,s!==null&&(u.treeBaseDuration-=s.treeBaseDuration));s=!1}else p=_o(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=p),s=!0;if(!s)return u.flags&256?(Wc(u),u):(Wc(u),null);if((u.flags&128)!==0)throw Error(\"Client rendering an Activity suspended it again. This is a bug in React.\")}return Co(u),null;case 13:if(b=u.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(S=b,T=X0(u),S!==null&&S.dehydrated!==null){if(s===null){if(!T)throw Error(\"A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.\");if(T=u.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(\"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.\");T[Cd]=u,Co(u),(u.mode&Cr)!==jn&&S!==null&&(S=u.child,S!==null&&(u.treeBaseDuration-=S.treeBaseDuration))}else Hx(),So(),(u.flags&128)===0&&(S=u.memoizedState=null),u.flags|=4,Co(u),(u.mode&Cr)!==jn&&S!==null&&(S=u.child,S!==null&&(u.treeBaseDuration-=S.treeBaseDuration));S=!1}else S=_o(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=S),S=!0;if(!S)return u.flags&256?(Wc(u),u):(Wc(u),null)}return Wc(u),(u.flags&128)!==0?(u.lanes=p,(u.mode&Cr)!==jn&&X1(u),u):(p=b!==null,s=s!==null&&s.memoizedState!==null,p&&(b=u.child,S=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(S=b.alternate.memoizedState.cachePool.pool),T=null,b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(T=b.memoizedState.cachePool.pool),T!==S&&(b.flags|=2048)),p!==s&&p&&(u.child.flags|=8192),ff(u,u.updateQueue),Co(u),(u.mode&Cr)!==jn&&p&&(s=u.child,s!==null&&(u.treeBaseDuration-=s.treeBaseDuration)),null);case 4:return U(u),s===null&&Ol(u.stateNode.containerInfo),Co(u),null;case 10:return Dm(u.type,u),Co(u),null;case 19:if(X(Qc,u),b=u.memoizedState,b===null)return Co(u),null;if(S=(u.flags&128)!==0,T=b.rendering,T===null)if(S)Hi(b,!1);else{if(_s!==R2||s!==null&&(s.flags&128)!==0)for(s=u.child;s!==null;){if(T=Zx(s),T!==null){for(u.flags|=128,Hi(b,!1),s=T.updateQueue,u.updateQueue=s,ff(u,s),u.subtreeFlags=0,s=p,p=u.child;p!==null;)Ao(p,s),p=p.sibling;return F(Qc,Qc.current&i8|Z7,u),no&&xl(u,b.treeForkCount),u.child}s=s.sibling}b.tail!==null&&Pl()>sV&&(u.flags|=128,S=!0,Hi(b,!1),u.lanes=4194304)}else{if(!S)if(s=Zx(T),s!==null){if(u.flags|=128,S=!0,s=s.updateQueue,u.updateQueue=s,ff(u,s),Hi(b,!0),b.tail===null&&b.tailMode===\"hidden\"&&!T.alternate&&!no)return Co(u),null}else 2*Pl()-b.renderingStartTime>sV&&p!==536870912&&(u.flags|=128,S=!0,Hi(b,!1),u.lanes=4194304);b.isBackwards?(T.sibling=u.child,u.child=T):(s=b.last,s!==null?s.sibling=T:u.child=T,b.last=T)}return b.tail!==null?(s=b.tail,b.rendering=s,b.tail=s.sibling,b.renderingStartTime=Pl(),s.sibling=null,p=Qc.current,p=S?p&i8|Z7:p&i8,F(Qc,p,u),no&&xl(u,b.treeForkCount),s):(Co(u),null);case 22:case 23:return Wc(u),Fi(u),b=u.memoizedState!==null,s!==null?s.memoizedState!==null!==b&&(u.flags|=8192):b&&(u.flags|=8192),b?(p&536870912)!==0&&(u.flags&128)===0&&(Co(u),u.subtreeFlags&6&&(u.flags|=8192)):Co(u),p=u.updateQueue,p!==null&&ff(u,p.retryQueue),p=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),b=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(b=u.memoizedState.cachePool.pool),b!==p&&(u.flags|=2048),s!==null&&X(q6,u),null;case 24:return p=null,s!==null&&(p=s.memoizedState.cache),u.memoizedState.cache!==p&&(u.flags|=2048),Dm(Su,u),Co(u),null;case 25:return null;case 30:return null}throw Error(\"Unknown unit of work tag (\"+u.tag+\"). This error is likely caused by a bug in React. Please file an issue.\")}function d2(s,u){switch(dp(u),u.tag){case 1:return s=u.flags,s&65536?(u.flags=s&-65537|128,(u.mode&Cr)!==jn&&X1(u),u):null;case 3:return Dm(Su,u),U(u),s=u.flags,(s&65536)!==0&&(s&128)===0?(u.flags=s&-65537|128,u):null;case 26:case 27:case 5:return W(u),null;case 31:if(u.memoizedState!==null){if(Wc(u),u.alternate===null)throw Error(\"Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.\");So()}return s=u.flags,s&65536?(u.flags=s&-65537|128,(u.mode&Cr)!==jn&&X1(u),u):null;case 13:if(Wc(u),s=u.memoizedState,s!==null&&s.dehydrated!==null){if(u.alternate===null)throw Error(\"Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.\");So()}return s=u.flags,s&65536?(u.flags=s&-65537|128,(u.mode&Cr)!==jn&&X1(u),u):null;case 19:return X(Qc,u),null;case 4:return U(u),null;case 10:return Dm(u.type,u),null;case 22:case 23:return Wc(u),Fi(u),s!==null&&X(q6,u),s=u.flags,s&65536?(u.flags=s&-65537|128,(u.mode&Cr)!==jn&&X1(u),u):null;case 24:return Dm(Su,u),null;case 25:return null;default:return null}}function sg(s,u){switch(dp(u),u.tag){case 3:Dm(Su,u),U(u);break;case 26:case 27:case 5:W(u);break;case 4:U(u);break;case 31:u.memoizedState!==null&&Wc(u);break;case 13:Wc(u);break;case 19:X(Qc,u);break;case 10:Dm(u.type,u);break;case 22:case 23:Wc(u),Fi(u),s!==null&&X(q6,u);break;case 24:Dm(Su,u)}}function bc(s){return(s.mode&Cr)!==jn}function Av(s,u){bc(s)?(Ra(),vd(u,s),sf()):vd(u,s)}function bd(s,u,p){bc(s)?(Ra(),Ch(p,s,u),sf()):Ch(p,s,u)}function vd(s,u){try{var p=u.updateQueue,b=p!==null?p.lastEffect:null;if(b!==null){var S=b.next;p=S;do{if((p.tag&s)===s&&(b=void 0,(s&Pp)!==QW&&(h8=!0),b=_e(u,Tgt,p),(s&Pp)!==QW&&(h8=!1),b!==void 0&&typeof b!=\"function\")){var T=void 0;T=(p.tag&Jm)!==0?\"useLayoutEffect\":(p.tag&Pp)!==0?\"useInsertionEffect\":\"useEffect\";var j=void 0;j=b===null?\" You returned null. If your effect does not require clean up, return undefined (or nothing).\":typeof b.then==\"function\"?`\\n\\nIt looks like you wrote `+T+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\\n\\n`+T+`(() => {\\n  async function fetchData() {\\n    // You can await here\\n    const response = await MyAPI.getData(someId);\\n    // ...\\n  }\\n  fetchData();\\n}, [someId]); // Or [] if effect doesn\\'t need props or state\\n\\nLearn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:\" You returned: \"+b,_e(u,function(Y,ce){console.error(\"%s must not return anything besides a function, which is used for clean-up.%s\",Y,ce)},T,j)}p=p.next}while(p!==S)}}catch(Y){In(u,u.return,Y)}}function Ch(s,u,p){try{var b=u.updateQueue,S=b!==null?b.lastEffect:null;if(S!==null){var T=S.next;b=T;do{if((b.tag&s)===s){var j=b.inst,Y=j.destroy;Y!==void 0&&(j.destroy=void 0,(s&Pp)!==QW&&(h8=!0),S=u,_e(S,Cgt,S,p,Y),(s&Pp)!==QW&&(h8=!1))}b=b.next}while(b!==T)}}catch(ce){In(u,u.return,ce)}}function A(s,u){bc(s)?(Ra(),vd(u,s),sf()):vd(u,s)}function _(s,u,p){bc(s)?(Ra(),Ch(p,s,u),sf()):Ch(p,s,u)}function D(s){var u=s.updateQueue;if(u!==null){var p=s.stateNode;s.type.defaultProps||\"ref\"in s.memoizedProps||u8||(p.props!==s.memoizedProps&&console.error(\"Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.\",te(s)||\"instance\"),p.state!==s.memoizedState&&console.error(\"Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.\",te(s)||\"instance\"));try{_e(s,Yx,u,p)}catch(b){In(s,s.return,b)}}}function Q(s,u,p){return s.getSnapshotBeforeUpdate(u,p)}function re(s,u){var p=u.memoizedProps,b=u.memoizedState;u=s.stateNode,s.type.defaultProps||\"ref\"in s.memoizedProps||u8||(u.props!==s.memoizedProps&&console.error(\"Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.\",te(s)||\"instance\"),u.state!==s.memoizedState&&console.error(\"Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.\",te(s)||\"instance\"));try{var S=lf(s.type,p),T=_e(s,Q,u,S,b);p=oTe,T!==void 0||p.has(s.type)||(p.add(s.type),_e(s,function(){console.error(\"%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.\",te(s))})),u.__reactInternalSnapshotBeforeUpdate=T}catch(j){In(s,s.return,j)}}function pe(s,u,p){p.props=lf(s.type,s.memoizedProps),p.state=s.memoizedState,bc(s)?(Ra(),_e(s,A_e,s,u,p),sf()):_e(s,A_e,s,u,p)}function xe(s){var u=s.ref;if(u!==null){switch(s.tag){case 26:case 27:case 5:var p=s.stateNode;break;case 30:p=s.stateNode;break;default:p=s.stateNode}if(typeof u==\"function\")if(bc(s))try{Ra(),s.refCleanup=u(p)}finally{sf()}else s.refCleanup=u(p);else typeof u==\"string\"?console.error(\"String refs are no longer supported.\"):u.hasOwnProperty(\"current\")||console.error(\"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().\",te(s)),u.current=p}}function ke(s,u){try{_e(s,xe,s)}catch(p){In(s,u,p)}}function st(s,u){var p=s.ref,b=s.refCleanup;if(p!==null)if(typeof b==\"function\")try{if(bc(s))try{Ra(),_e(s,b)}finally{sf(s)}else _e(s,b)}catch(S){In(s,u,S)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof p==\"function\")try{if(bc(s))try{Ra(),_e(s,p,null)}finally{sf(s)}else _e(s,p,null)}catch(S){In(s,u,S)}else p.current=null}function Ue(s,u,p,b){var S=s.memoizedProps,T=S.id,j=S.onCommit;S=S.onRender,u=u===null?\"mount\":\"update\",VW&&(u=\"nested-update\"),typeof S==\"function\"&&S(T,u,s.actualDuration,s.treeBaseDuration,s.actualStartTime,p),typeof j==\"function\"&&j(T,u,b,p)}function et(s,u,p,b){var S=s.memoizedProps;s=S.id,S=S.onPostCommit,u=u===null?\"mount\":\"update\",VW&&(u=\"nested-update\"),typeof S==\"function\"&&S(s,u,b,p)}function Mt(s){var u=s.type,p=s.memoizedProps,b=s.stateNode;try{_e(s,k4,b,u,p,s)}catch(S){In(s,s.return,S)}}function Ft(s,u,p){try{_e(s,_S,s.stateNode,s.type,p,u,s)}catch(b){In(s,s.return,b)}}function Lt(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&fg(s.type)||s.tag===4}function gt(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||Lt(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&fg(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Qn(s,u,p){var b=s.tag;if(b===5||b===6)s=s.stateNode,u?(N6(p),(p.nodeType===9?p.body:p.nodeName===\"HTML\"?p.ownerDocument.body:p).insertBefore(s,u)):(N6(p),u=p.nodeType===9?p.body:p.nodeName===\"HTML\"?p.ownerDocument.body:p,u.appendChild(s),p=p._reactRootContainer,p!=null||u.onclick!==null||(u.onclick=Qi));else if(b!==4&&(b===27&&fg(s.type)&&(p=s.stateNode,u=null),s=s.child,s!==null))for(Qn(s,u,p),s=s.sibling;s!==null;)Qn(s,u,p),s=s.sibling}function ni(s,u,p){var b=s.tag;if(b===5||b===6)s=s.stateNode,u?p.insertBefore(s,u):p.appendChild(s);else if(b!==4&&(b===27&&fg(s.type)&&(p=s.stateNode),s=s.child,s!==null))for(ni(s,u,p),s=s.sibling;s!==null;)ni(s,u,p),s=s.sibling}function Nn(s){for(var u,p=s.return;p!==null;){if(Lt(p)){u=p;break}p=p.return}if(u==null)throw Error(\"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.\");switch(u.tag){case 27:u=u.stateNode,p=gt(s),ni(s,p,u);break;case 5:p=u.stateNode,u.flags&32&&(p2(p),u.flags&=-33),u=gt(s),ni(s,u,p);break;case 3:case 4:u=u.stateNode.containerInfo,p=gt(s),Qn(s,p,u);break;default:throw Error(\"Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.\")}}function to(s){var u=s.stateNode,p=s.memoizedProps;try{_e(s,g7,s.type,p,u,s)}catch(b){In(s,s.return,b)}}function Ys(s,u){return u.tag===31?(u=u.memoizedState,s.memoizedState!==null&&u===null):u.tag===13?(s=s.memoizedState,u=u.memoizedState,s!==null&&s.dehydrated!==null&&(u===null||u.dehydrated===null)):u.tag===3?s.memoizedState.isDehydrated&&(u.flags&256)===0:!1}function gu(s,u){if(s=s.containerInfo,dse=SV,s=W1(s),G0(s)){if(\"selectionStart\"in s)var p={start:s.selectionStart,end:s.selectionEnd};else e:{p=(p=s.ownerDocument)&&p.defaultView||window;var b=p.getSelection&&p.getSelection();if(b&&b.rangeCount!==0){p=b.anchorNode;var S=b.anchorOffset,T=b.focusNode;b=b.focusOffset;try{p.nodeType,T.nodeType}catch{p=null;break e}var j=0,Y=-1,ce=-1,fe=0,De=0,Be=s,Te=null;t:for(;;){for(var Ge;Be!==p||S!==0&&Be.nodeType!==3||(Y=j+S),Be!==T||b!==0&&Be.nodeType!==3||(ce=j+b),Be.nodeType===3&&(j+=Be.nodeValue.length),(Ge=Be.firstChild)!==null;)Te=Be,Be=Ge;for(;;){if(Be===s)break t;if(Te===p&&++fe===S&&(Y=j),Te===T&&++De===b&&(ce=j),(Ge=Be.nextSibling)!==null)break;Be=Te,Te=Be.parentNode}Be=Ge}p=Y===-1||ce===-1?null:{start:Y,end:ce}}else p=null}p=p||{start:0,end:0}}else p=null;for(fse={focusedElem:s,selectionRange:p},SV=!1,Dl=u;Dl!==null;)if(u=Dl,s=u.child,(u.subtreeFlags&1028)!==0&&s!==null)s.return=u,Dl=s;else for(;Dl!==null;){switch(s=u=Dl,p=s.alternate,S=s.flags,s.tag){case 0:if((S&4)!==0&&(s=s.updateQueue,s=s!==null?s.events:null,s!==null))for(p=0;p<s.length;p++)S=s[p],S.ref.impl=S.nextImpl;break;case 11:case 15:break;case 1:(S&1024)!==0&&p!==null&&re(s,p);break;case 3:if((S&1024)!==0){if(s=s.stateNode.containerInfo,p=s.nodeType,p===9)Eu(s);else if(p===1)switch(s.nodeName){case\"HEAD\":case\"HTML\":case\"BODY\":Eu(s);break;default:s.textContent=\"\"}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((S&1024)!==0)throw Error(\"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\")}if(s=u.sibling,s!==null){s.return=u.return,Dl=s;break}Dl=u.return}}function zr(s,u,p){var b=du(),S=rl(),T=hd(),j=gc(),Y=p.flags;switch(p.tag){case 0:case 11:case 15:Nr(s,p),Y&4&&Av(p,Jm|xg);break;case 1:if(Nr(s,p),Y&4)if(s=p.stateNode,u===null)p.type.defaultProps||\"ref\"in p.memoizedProps||u8||(s.props!==p.memoizedProps&&console.error(\"Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.\",te(p)||\"instance\"),s.state!==p.memoizedState&&console.error(\"Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.\",te(p)||\"instance\")),bc(p)?(Ra(),_e(p,Pae,p,s),sf()):_e(p,Pae,p,s);else{var ce=lf(p.type,u.memoizedProps);u=u.memoizedState,p.type.defaultProps||\"ref\"in p.memoizedProps||u8||(s.props!==p.memoizedProps&&console.error(\"Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.\",te(p)||\"instance\"),s.state!==p.memoizedState&&console.error(\"Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.\",te(p)||\"instance\")),bc(p)?(Ra(),_e(p,w_e,p,s,ce,u,s.__reactInternalSnapshotBeforeUpdate),sf()):_e(p,w_e,p,s,ce,u,s.__reactInternalSnapshotBeforeUpdate)}Y&64&&D(p),Y&512&&ke(p,p.return);break;case 3:if(u=Xa(),Nr(s,p),Y&64&&(Y=p.updateQueue,Y!==null)){if(ce=null,p.child!==null)switch(p.child.tag){case 27:case 5:ce=p.child.stateNode;break;case 1:ce=p.child.stateNode}try{_e(p,Yx,Y,ce)}catch(De){In(p,p.return,De)}}s.effectDuration+=Lm(u);break;case 27:u===null&&Y&4&&to(p);case 26:case 5:if(Nr(s,p),u===null){if(Y&4)Mt(p);else if(Y&64){s=p.type,u=p.memoizedProps,ce=p.stateNode;try{_e(p,f2,ce,s,u,p)}catch(De){In(p,p.return,De)}}}Y&512&&ke(p,p.return);break;case 12:if(Y&4){Y=Xa(),Nr(s,p),s=p.stateNode,s.effectDuration+=Um(Y);try{_e(p,Ue,p,u,BS,s.effectDuration)}catch(De){In(p,p.return,De)}}else Nr(s,p);break;case 31:Nr(s,p),Y&4&&hn(s,p);break;case 13:Nr(s,p),Y&4&&Go(s,p),Y&64&&(s=p.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(Y=xp.bind(null,p),d7(s,Y))));break;case 22:if(Y=p.memoizedState!==null||C2,!Y){u=u!==null&&u.memoizedState!==null||Ru,ce=C2;var fe=Ru;C2=Y,(Ru=u)&&!fe?(Vc(s,p,(p.subtreeFlags&8772)!==0),(p.mode&Cr)!==jn&&0<=Cn&&0<=Dn&&.05<Dn-Cn&&Qy(p,Cn,Dn)):Nr(s,p),C2=ce,Ru=fe}break;case 30:break;default:Nr(s,p)}(p.mode&Cr)!==jn&&0<=Cn&&0<=Dn&&((tc||.05<Ss)&&Hc(p,Cn,Dn,Ss,is),p.alternate===null&&p.return!==null&&p.return.alternate!==null&&.05<Dn-Cn&&(Ys(p.return.alternate,p.return)||Fc(p,Cn,Dn,\"Mount\"))),Gs(b),gs(S),is=T,tc=j}function pa(s){var u=s.alternate;u!==null&&(s.alternate=null,pa(u)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(u=s.stateNode,u!==null&&bt(u)),s.stateNode=null,s._debugOwner=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function vs(s,u,p){for(p=p.child;p!==null;)cl(s,u,p),p=p.sibling}function cl(s,u,p){if(vf&&typeof vf.onCommitFiberUnmount==\"function\")try{vf.onCommitFiberUnmount(F4,p)}catch(fe){Nv||(Nv=!0,console.error(\"React instrumentation encountered an error: %o\",fe))}var b=du(),S=rl(),T=hd(),j=gc();switch(p.tag){case 26:Ru||st(p,u),vs(s,u,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(s=p.stateNode,s.parentNode.removeChild(s));break;case 27:Ru||st(p,u);var Y=Iu,ce=Mh;fg(p.type)&&(Iu=p.stateNode,Mh=!1),vs(s,u,p),_e(p,TS,p.stateNode),Iu=Y,Mh=ce;break;case 5:Ru||st(p,u);case 6:if(Y=Iu,ce=Mh,Iu=null,vs(s,u,p),Iu=Y,Mh=ce,Iu!==null)if(Mh)try{_e(p,Pie,Iu,p.stateNode)}catch(fe){In(p,u,fe)}else try{_e(p,P6,Iu,p.stateNode)}catch(fe){In(p,u,fe)}break;case 18:Iu!==null&&(Mh?(s=Iu,dW(s.nodeType===9?s.body:s.nodeName===\"HTML\"?s.ownerDocument.body:s,p.stateNode),D4(s)):dW(Iu,p.stateNode));break;case 4:Y=Iu,ce=Mh,Iu=p.stateNode.containerInfo,Mh=!0,vs(s,u,p),Iu=Y,Mh=ce;break;case 0:case 11:case 14:case 15:Ch(Pp,p,u),Ru||bd(p,u,Jm),vs(s,u,p);break;case 1:Ru||(st(p,u),Y=p.stateNode,typeof Y.componentWillUnmount==\"function\"&&pe(p,u,Y)),vs(s,u,p);break;case 21:vs(s,u,p);break;case 22:Ru=(Y=Ru)||p.memoizedState!==null,vs(s,u,p),Ru=Y;break;default:vs(s,u,p)}(p.mode&Cr)!==jn&&0<=Cn&&0<=Dn&&(tc||.05<Ss)&&Hc(p,Cn,Dn,Ss,is),Gs(b),gs(S),is=T,tc=j}function hn(s,u){if(u.memoizedState===null&&(s=u.alternate,s!==null&&(s=s.memoizedState,s!==null))){s=s.dehydrated;try{_e(u,pW,s)}catch(p){In(u,u.return,p)}}}function Go(s,u){if(u.memoizedState===null&&(s=u.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{_e(u,h7,s)}catch(p){In(u,u.return,p)}}function qo(s){switch(s.tag){case 31:case 13:case 19:var u=s.stateNode;return u===null&&(u=s.stateNode=new iTe),u;case 22:return s=s.stateNode,u=s._retryCache,u===null&&(u=s._retryCache=new iTe),u;default:throw Error(\"Unexpected Suspense handler tag (\"+s.tag+\"). This is a bug in React.\")}}function ri(s,u){var p=qo(s);u.forEach(function(b){if(!p.has(b)){if(p.add(b),Pv)if(l8!==null&&d8!==null)Vi(d8,l8);else throw Error(\"Expected finished root and lanes to be set. This is a bug in React.\");var S=ec.bind(null,s,b);b.then(S,S)}})}function sr(s,u){var p=u.deletions;if(p!==null)for(var b=0;b<p.length;b++){var S=s,T=u,j=p[b],Y=du(),ce=T;e:for(;ce!==null;){switch(ce.tag){case 27:if(fg(ce.type)){Iu=ce.stateNode,Mh=!1;break e}break;case 5:Iu=ce.stateNode,Mh=!1;break e;case 3:case 4:Iu=ce.stateNode.containerInfo,Mh=!0;break e}ce=ce.return}if(Iu===null)throw Error(\"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.\");cl(S,T,j),Iu=null,Mh=!1,(j.mode&Cr)!==jn&&0<=Cn&&0<=Dn&&.05<Dn-Cn&&Fc(j,Cn,Dn,\"Unmount\"),Gs(Y),S=j,T=S.alternate,T!==null&&(T.return=null),S.return=null}if(u.subtreeFlags&13886)for(u=u.child;u!==null;)Ji(u,s),u=u.sibling}function Ji(s,u){var p=du(),b=rl(),S=hd(),T=gc(),j=s.alternate,Y=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:sr(u,s),nr(s),Y&4&&(Ch(Pp|xg,s,s.return),vd(Pp|xg,s),bd(s,s.return,Jm|xg));break;case 1:if(sr(u,s),nr(s),Y&512&&(Ru||j===null||st(j,j.return)),Y&64&&C2&&(Y=s.updateQueue,Y!==null&&(j=Y.callbacks,j!==null))){var ce=Y.shared.hiddenCallbacks;Y.shared.hiddenCallbacks=ce===null?j:ce.concat(j)}break;case 26:if(ce=Rb,sr(u,s),nr(s),Y&512&&(Ru||j===null||st(j,j.return)),Y&4){var fe=j!==null?j.memoizedState:null;if(Y=s.memoizedState,j===null)if(Y===null)if(s.stateNode===null){e:{Y=s.type,j=s.memoizedProps,ce=ce.ownerDocument||ce;t:switch(Y){case\"title\":fe=ce.getElementsByTagName(\"title\")[0],(!fe||fe[S7]||fe[Cd]||fe.namespaceURI===z4||fe.hasAttribute(\"itemprop\"))&&(fe=ce.createElement(Y),ce.head.insertBefore(fe,ce.querySelector(\"head > title\"))),$i(fe,Y,j),fe[Cd]=s,zt(fe),Y=fe;break e;case\"link\":var De=qAe(\"link\",\"href\",ce).get(Y+(j.href||\"\"));if(De){for(var Be=0;Be<De.length;Be++)if(fe=De[Be],fe.getAttribute(\"href\")===(j.href==null||j.href===\"\"?null:j.href)&&fe.getAttribute(\"rel\")===(j.rel==null?null:j.rel)&&fe.getAttribute(\"title\")===(j.title==null?null:j.title)&&fe.getAttribute(\"crossorigin\")===(j.crossOrigin==null?null:j.crossOrigin)){De.splice(Be,1);break t}}fe=ce.createElement(Y),$i(fe,Y,j),ce.head.appendChild(fe);break;case\"meta\":if(De=qAe(\"meta\",\"content\",ce).get(Y+(j.content||\"\"))){for(Be=0;Be<De.length;Be++)if(fe=De[Be],rt(j.content,\"content\"),fe.getAttribute(\"content\")===(j.content==null?null:\"\"+j.content)&&fe.getAttribute(\"name\")===(j.name==null?null:j.name)&&fe.getAttribute(\"property\")===(j.property==null?null:j.property)&&fe.getAttribute(\"http-equiv\")===(j.httpEquiv==null?null:j.httpEquiv)&&fe.getAttribute(\"charset\")===(j.charSet==null?null:j.charSet)){De.splice(Be,1);break t}}fe=ce.createElement(Y),$i(fe,Y,j),ce.head.appendChild(fe);break;default:throw Error(\\'getNodesForType encountered a type it did not expect: \"\\'+Y+\\'\". This is a bug in React.\\')}fe[Cd]=s,zt(fe),Y=fe}s.stateNode=Y}else KAe(ce,s.type,s.stateNode);else s.stateNode=GAe(ce,Y,s.memoizedProps);else fe!==Y?(fe===null?j.stateNode!==null&&(j=j.stateNode,j.parentNode.removeChild(j)):fe.count--,Y===null?KAe(ce,s.type,s.stateNode):GAe(ce,Y,s.memoizedProps)):Y===null&&s.stateNode!==null&&Ft(s,s.memoizedProps,j.memoizedProps)}break;case 27:sr(u,s),nr(s),Y&512&&(Ru||j===null||st(j,j.return)),j!==null&&Y&4&&Ft(s,s.memoizedProps,j.memoizedProps);break;case 5:if(sr(u,s),nr(s),Y&512&&(Ru||j===null||st(j,j.return)),s.flags&32){ce=s.stateNode;try{_e(s,p2,ce)}catch(Jt){In(s,s.return,Jt)}}Y&4&&s.stateNode!=null&&(ce=s.memoizedProps,Ft(s,ce,j!==null?j.memoizedProps:ce)),Y&1024&&(qae=!0,s.type!==\"form\"&&console.error(\"Unexpected host component type. Expected a form. This is a bug in React.\"));break;case 6:if(sr(u,s),nr(s),Y&4){if(s.stateNode===null)throw Error(\"This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.\");Y=s.memoizedProps,j=j!==null?j.memoizedProps:Y,ce=s.stateNode;try{_e(s,lW,ce,j,Y)}catch(Jt){In(s,s.return,Jt)}}break;case 3:if(ce=Xa(),xV=null,fe=Rb,Rb=Eb(u.containerInfo),sr(u,s),Rb=fe,nr(s),Y&4&&j!==null&&j.memoizedState.isDehydrated)try{_e(s,p7,u.containerInfo)}catch(Jt){In(s,s.return,Jt)}qae&&(qae=!1,Zs(s)),u.effectDuration+=Lm(ce);break;case 4:Y=Rb,Rb=Eb(s.stateNode.containerInfo),sr(u,s),nr(s),Rb=Y;break;case 12:Y=Xa(),sr(u,s),nr(s),s.stateNode.effectDuration+=Um(Y);break;case 31:sr(u,s),nr(s),Y&4&&(Y=s.updateQueue,Y!==null&&(s.updateQueue=null,ri(s,Y)));break;case 13:sr(u,s),nr(s),s.child.flags&8192&&s.memoizedState!==null!=(j!==null&&j.memoizedState!==null)&&(aV=Pl()),Y&4&&(Y=s.updateQueue,Y!==null&&(s.updateQueue=null,ri(s,Y)));break;case 22:ce=s.memoizedState!==null;var Te=j!==null&&j.memoizedState!==null,Ge=C2,Wt=Ru;if(C2=Ge||ce,Ru=Wt||Te,sr(u,s),Ru=Wt,C2=Ge,Te&&!ce&&!Ge&&!Wt&&(s.mode&Cr)!==jn&&0<=Cn&&0<=Dn&&.05<Dn-Cn&&Qy(s,Cn,Dn),nr(s),Y&8192)e:for(u=s.stateNode,u._visibility=ce?u._visibility&~P7:u._visibility|P7,!ce||j===null||Te||C2||Ru||(oi(s),(s.mode&Cr)!==jn&&0<=Cn&&0<=Dn&&.05<Dn-Cn&&Fc(s,Cn,Dn,\"Disconnect\")),j=null,u=s;;){if(u.tag===5||u.tag===26){if(j===null){Te=j=u;try{fe=Te.stateNode,ce?_e(Te,D6,fe):_e(Te,Cv,Te.stateNode,Te.memoizedProps)}catch(Jt){In(Te,Te.return,Jt)}}}else if(u.tag===6){if(j===null){Te=u;try{De=Te.stateNode,ce?_e(Te,B6,De):_e(Te,Mie,De,Te.memoizedProps)}catch(Jt){In(Te,Te.return,Jt)}}}else if(u.tag===18){if(j===null){Te=u;try{Be=Te.stateNode,ce?_e(Te,M6,Be):_e(Te,O4,Te.stateNode)}catch(Jt){In(Te,Te.return,Jt)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===s)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break e;for(;u.sibling===null;){if(u.return===null||u.return===s)break e;j===u&&(j=null),u=u.return}j===u&&(j=null),u.sibling.return=u.return,u=u.sibling}Y&4&&(Y=s.updateQueue,Y!==null&&(j=Y.retryQueue,j!==null&&(Y.retryQueue=null,ri(s,j))));break;case 19:sr(u,s),nr(s),Y&4&&(Y=s.updateQueue,Y!==null&&(s.updateQueue=null,ri(s,Y)));break;case 30:break;case 21:break;default:sr(u,s),nr(s)}(s.mode&Cr)!==jn&&0<=Cn&&0<=Dn&&((tc||.05<Ss)&&Hc(s,Cn,Dn,Ss,is),s.alternate===null&&s.return!==null&&s.return.alternate!==null&&.05<Dn-Cn&&(Ys(s.return.alternate,s.return)||Fc(s,Cn,Dn,\"Mount\"))),Gs(p),gs(b),is=S,tc=T}function nr(s){var u=s.flags;if(u&2){try{_e(s,Nn,s)}catch(p){In(s,s.return,p)}s.flags&=-3}u&4096&&(s.flags&=-4097)}function Zs(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var u=s;Zs(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),s=s.sibling}}function Nr(s,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)zr(s,u.alternate,u),u=u.sibling}function Qs(s){var u=du(),p=rl(),b=hd(),S=gc();switch(s.tag){case 0:case 11:case 14:case 15:bd(s,s.return,Jm),oi(s);break;case 1:st(s,s.return);var T=s.stateNode;typeof T.componentWillUnmount==\"function\"&&pe(s,s.return,T),oi(s);break;case 27:_e(s,TS,s.stateNode);case 26:case 5:st(s,s.return),oi(s);break;case 22:s.memoizedState===null&&oi(s);break;case 30:oi(s);break;default:oi(s)}(s.mode&Cr)!==jn&&0<=Cn&&0<=Dn&&(tc||.05<Ss)&&Hc(s,Cn,Dn,Ss,is),Gs(u),gs(p),is=b,tc=S}function oi(s){for(s=s.child;s!==null;)Qs(s),s=s.sibling}function yu(s,u,p,b){var S=du(),T=rl(),j=hd(),Y=gc(),ce=p.flags;switch(p.tag){case 0:case 11:case 15:Vc(s,p,b),Av(p,Jm);break;case 1:if(Vc(s,p,b),u=p.stateNode,typeof u.componentDidMount==\"function\"&&_e(p,Pae,p,u),u=p.updateQueue,u!==null){s=p.stateNode;try{_e(p,m4,u,s)}catch(fe){In(p,p.return,fe)}}b&&ce&64&&D(p),ke(p,p.return);break;case 27:to(p);case 26:case 5:Vc(s,p,b),b&&u===null&&ce&4&&Mt(p),ke(p,p.return);break;case 12:if(b&&ce&4){ce=Xa(),Vc(s,p,b),b=p.stateNode,b.effectDuration+=Um(ce);try{_e(p,Ue,p,u,BS,b.effectDuration)}catch(fe){In(p,p.return,fe)}}else Vc(s,p,b);break;case 31:Vc(s,p,b),b&&ce&4&&hn(s,p);break;case 13:Vc(s,p,b),b&&ce&4&&Go(s,p);break;case 22:p.memoizedState===null&&Vc(s,p,b),ke(p,p.return);break;case 30:break;default:Vc(s,p,b)}(p.mode&Cr)!==jn&&0<=Cn&&0<=Dn&&(tc||.05<Ss)&&Hc(p,Cn,Dn,Ss,is),Gs(S),gs(T),is=j,tc=Y}function Vc(s,u,p){for(p=p&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;)yu(s,u.alternate,u,p),u=u.sibling}function wd(s,u){var p=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),s=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(s=u.memoizedState.cachePool.pool),s!==p&&(s!=null&&eg(s),p!=null&&Bm(p))}function xd(s,u){s=null,u.alternate!==null&&(s=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==s&&(eg(u),s!=null&&Bm(s))}function ts(s,u,p,b,S){if(u.subtreeFlags&10256||u.actualDuration!==0&&(u.alternate===null||u.alternate.child!==u.child))for(u=u.child;u!==null;){var T=u.sibling;Ed(s,u,p,b,T!==null?T.actualStartTime:S),u=T}}function Ed(s,u,p,b,S){var T=du(),j=rl(),Y=hd(),ce=gc(),fe=NS,De=u.flags;switch(u.tag){case 0:case 11:case 15:(u.mode&Cr)!==jn&&0<u.actualStartTime&&(u.flags&1)!==0&&Jy(u,u.actualStartTime,S,dl,p),ts(s,u,p,b,S),De&2048&&A(u,Mp|xg);break;case 1:(u.mode&Cr)!==jn&&0<u.actualStartTime&&((u.flags&128)!==0?GA(u,u.actualStartTime,S,[]):(u.flags&1)!==0&&Jy(u,u.actualStartTime,S,dl,p)),ts(s,u,p,b,S);break;case 3:var Be=Xa(),Te=dl;dl=u.alternate!==null&&u.alternate.memoizedState.isDehydrated&&(u.flags&256)===0,ts(s,u,p,b,S),dl=Te,De&2048&&(p=null,u.alternate!==null&&(p=u.alternate.memoizedState.cache),b=u.memoizedState.cache,b!==p&&(eg(b),p!=null&&Bm(p))),s.passiveEffectDuration+=Lm(Be);break;case 12:if(De&2048){De=Xa(),ts(s,u,p,b,S),s=u.stateNode,s.passiveEffectDuration+=Um(De);try{_e(u,et,u,u.alternate,BS,s.passiveEffectDuration)}catch(Ge){In(u,u.return,Ge)}}else ts(s,u,p,b,S);break;case 31:De=dl,Be=u.alternate!==null?u.alternate.memoizedState:null,Te=u.memoizedState,Be!==null&&Te===null?(Te=u.deletions,Te!==null&&0<Te.length&&Te[0].tag===18?(dl=!1,Be=Be.hydrationErrors,Be!==null&&GA(u,u.actualStartTime,S,Be)):dl=!0):dl=!1,ts(s,u,p,b,S),dl=De;break;case 13:De=dl,Be=u.alternate!==null?u.alternate.memoizedState:null,Te=u.memoizedState,Be===null||Be.dehydrated===null||Te!==null&&Te.dehydrated!==null?dl=!1:(Te=u.deletions,Te!==null&&0<Te.length&&Te[0].tag===18?(dl=!1,Be=Be.hydrationErrors,Be!==null&&GA(u,u.actualStartTime,S,Be)):dl=!0),ts(s,u,p,b,S),dl=De;break;case 23:break;case 22:Te=u.stateNode,Be=u.alternate,u.memoizedState!==null?Te._visibility&y2?ts(s,u,p,b,S):E(s,u,p,b,S):Te._visibility&y2?ts(s,u,p,b,S):(Te._visibility|=y2,Xi(s,u,p,b,(u.subtreeFlags&10256)!==0||u.actualDuration!==0&&(u.alternate===null||u.alternate.child!==u.child),S),(u.mode&Cr)===jn||dl||(s=u.actualStartTime,0<=s&&.05<S-s&&Qy(u,s,S),0<=Cn&&0<=Dn&&.05<Dn-Cn&&Qy(u,Cn,Dn))),De&2048&&wd(Be,u);break;case 24:ts(s,u,p,b,S),De&2048&&xd(u.alternate,u);break;default:ts(s,u,p,b,S)}(u.mode&Cr)!==jn&&((s=!dl&&u.alternate===null&&u.return!==null&&u.return.alternate!==null)&&(p=u.actualStartTime,0<=p&&.05<S-p&&Fc(u,p,S,\"Mount\")),0<=Cn&&0<=Dn&&((tc||.05<Ss)&&Hc(u,Cn,Dn,Ss,is),s&&.05<Dn-Cn&&Fc(u,Cn,Dn,\"Mount\"))),Gs(T),gs(j),is=Y,tc=ce,NS=fe}function Xi(s,u,p,b,S,T){for(S=S&&((u.subtreeFlags&10256)!==0||u.actualDuration!==0&&(u.alternate===null||u.alternate.child!==u.child)),u=u.child;u!==null;){var j=u.sibling;v(s,u,p,b,S,j!==null?j.actualStartTime:T),u=j}}function v(s,u,p,b,S,T){var j=du(),Y=rl(),ce=hd(),fe=gc(),De=NS;S&&(u.mode&Cr)!==jn&&0<u.actualStartTime&&(u.flags&1)!==0&&Jy(u,u.actualStartTime,T,dl,p);var Be=u.flags;switch(u.tag){case 0:case 11:case 15:Xi(s,u,p,b,S,T),A(u,Mp);break;case 23:break;case 22:var Te=u.stateNode;u.memoizedState!==null?Te._visibility&y2?Xi(s,u,p,b,S,T):E(s,u,p,b,T):(Te._visibility|=y2,Xi(s,u,p,b,S,T)),S&&Be&2048&&wd(u.alternate,u);break;case 24:Xi(s,u,p,b,S,T),S&&Be&2048&&xd(u.alternate,u);break;default:Xi(s,u,p,b,S,T)}(u.mode&Cr)!==jn&&0<=Cn&&0<=Dn&&(tc||.05<Ss)&&Hc(u,Cn,Dn,Ss,is),Gs(j),gs(Y),is=ce,tc=fe,NS=De}function E(s,u,p,b,S){if(u.subtreeFlags&10256||u.actualDuration!==0&&(u.alternate===null||u.alternate.child!==u.child))for(var T=u.child;T!==null;){u=T.sibling;var j=s,Y=p,ce=b,fe=u!==null?u.actualStartTime:S,De=NS;(T.mode&Cr)!==jn&&0<T.actualStartTime&&(T.flags&1)!==0&&Jy(T,T.actualStartTime,fe,dl,Y);var Be=T.flags;switch(T.tag){case 22:E(j,T,Y,ce,fe),Be&2048&&wd(T.alternate,T);break;case 24:E(j,T,Y,ce,fe),Be&2048&&xd(T.alternate,T);break;default:E(j,T,Y,ce,fe)}NS=De,T=u}}function N(s,u,p){if(s.subtreeFlags&$7)for(s=s.child;s!==null;)K(s,u,p),s=s.sibling}function K(s,u,p){switch(s.tag){case 26:N(s,u,p),s.flags&$7&&s.memoizedState!==null&&Jmt(p,Rb,s.memoizedState,s.memoizedProps);break;case 5:N(s,u,p);break;case 3:case 4:var b=Rb;Rb=Eb(s.stateNode.containerInfo),N(s,u,p),Rb=b;break;case 22:s.memoizedState===null&&(b=s.alternate,b!==null&&b.memoizedState!==null?(b=$7,$7=16777216,N(s,u,p),$7=b):N(s,u,p));break;default:N(s,u,p)}}function ee(s){var u=s.alternate;if(u!==null&&(s=u.child,s!==null)){u.child=null;do u=s.sibling,s.sibling=null,s=u;while(s!==null)}}function le(s){var u=s.deletions;if((s.flags&16)!==0){if(u!==null)for(var p=0;p<u.length;p++){var b=u[p],S=du();Dl=b,Me(b,s),(b.mode&Cr)!==jn&&0<=Cn&&0<=Dn&&.05<Dn-Cn&&Fc(b,Cn,Dn,\"Unmount\"),Gs(S)}ee(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)ye(s),s=s.sibling}function ye(s){var u=du(),p=rl(),b=hd(),S=gc();switch(s.tag){case 0:case 11:case 15:le(s),s.flags&2048&&_(s,s.return,Mp|xg);break;case 3:var T=Xa();le(s),s.stateNode.passiveEffectDuration+=Lm(T);break;case 12:T=Xa(),le(s),s.stateNode.passiveEffectDuration+=Um(T);break;case 22:T=s.stateNode,s.memoizedState!==null&&T._visibility&y2&&(s.return===null||s.return.tag!==13)?(T._visibility&=~y2,Ae(s),(s.mode&Cr)!==jn&&0<=Cn&&0<=Dn&&.05<Dn-Cn&&Fc(s,Cn,Dn,\"Disconnect\")):le(s);break;default:le(s)}(s.mode&Cr)!==jn&&0<=Cn&&0<=Dn&&(tc||.05<Ss)&&Hc(s,Cn,Dn,Ss,is),Gs(u),gs(p),tc=S,is=b}function Ae(s){var u=s.deletions;if((s.flags&16)!==0){if(u!==null)for(var p=0;p<u.length;p++){var b=u[p],S=du();Dl=b,Me(b,s),(b.mode&Cr)!==jn&&0<=Cn&&0<=Dn&&.05<Dn-Cn&&Fc(b,Cn,Dn,\"Unmount\"),Gs(S)}ee(s)}for(s=s.child;s!==null;)Ye(s),s=s.sibling}function Ye(s){var u=du(),p=rl(),b=hd(),S=gc();switch(s.tag){case 0:case 11:case 15:_(s,s.return,Mp),Ae(s);break;case 22:var T=s.stateNode;T._visibility&y2&&(T._visibility&=~y2,Ae(s));break;default:Ae(s)}(s.mode&Cr)!==jn&&0<=Cn&&0<=Dn&&(tc||.05<Ss)&&Hc(s,Cn,Dn,Ss,is),Gs(u),gs(p),tc=S,is=b}function Me(s,u){for(;Dl!==null;){var p=Dl,b=p,S=u,T=du(),j=rl(),Y=hd(),ce=gc();switch(b.tag){case 0:case 11:case 15:_(b,S,Mp);break;case 23:case 22:b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(S=b.memoizedState.cachePool.pool,S!=null&&eg(S));break;case 24:Bm(b.memoizedState.cache)}if((b.mode&Cr)!==jn&&0<=Cn&&0<=Dn&&(tc||.05<Ss)&&Hc(b,Cn,Dn,Ss,is),Gs(T),gs(j),tc=ce,is=Y,b=p.child,b!==null)b.return=p,Dl=b;else e:for(p=s;Dl!==null;){if(b=Dl,T=b.sibling,j=b.return,pa(b),b===p){Dl=null;break e}if(T!==null){T.return=j,Dl=T;break e}Dl=j}}}function Fe(){Ngt.forEach(function(s){return s()})}function vt(){var s=typeof IS_REACT_ACT_ENVIRONMENT<\"u\"?IS_REACT_ACT_ENVIRONMENT:void 0;return s||tt.actQueue===null||console.error(\"The current testing environment is not configured to support act(...)\"),s}function mt(s){if((Do&fl)!==Bl&&Ir!==0)return Ir&-Ir;var u=tt.T;return u!==null?(u._updatedFibers||(u._updatedFibers=new Set),u._updatedFibers.add(s),vu()):Le()}function At(){if(Bh===0)if((Ir&536870912)===0||no){var s=_W;_W<<=1,(_W&3932160)===0&&(_W=262144),Bh=s}else Bh=536870912;return s=Qm.current,s!==null&&(s.flags|=32),Bh}function $e(s,u,p){if(h8&&console.error(\"useInsertionEffect must not schedule updates.\"),rse&&(lV=!0),(s===ta&&(ki===X6||ki===$6)||s.cancelPendingCommit!==null)&&(dn(s,0),Pn(s,Ir,Bh,!1)),Hs(s,p),(Do&fl)!==Bl&&s===ta){if(Ov)switch(u.tag){case 0:case 11:case 15:s=Mr&&te(Mr)||\"Unknown\",wTe.has(s)||(wTe.add(s),u=te(u)||\"Unknown\",console.error(\"Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render\",u,s,s));break;case 1:vTe||(console.error(\"Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.\"),vTe=!0)}}else Pv&&yl(s,u,p),mf(u),s===ta&&((Do&fl)===Bl&&(GS|=p),_s===jS&&Pn(s,Ir,Bh,!1)),Pa(s)}function En(s,u,p){if((Do&(fl|Xm))!==Bl)throw Error(\"Should not already be working.\");if(Ir!==0&&Mr!==null){var b=Mr,S=Pl();switch(f_e){case n9:case X6:var T=F7;Ma&&((b=b._debugTask)?b.run(console.timeStamp.bind(console,\"Suspended\",T,S,pg,void 0,\"primary-light\")):console.timeStamp(\"Suspended\",T,S,pg,void 0,\"primary-light\"));break;case $6:T=F7,Ma&&((b=b._debugTask)?b.run(console.timeStamp.bind(console,\"Action\",T,S,pg,void 0,\"primary-light\")):console.timeStamp(\"Action\",T,S,pg,void 0,\"primary-light\"));break;default:Ma&&(b=S-F7,3>b||console.timeStamp(\"Blocked\",F7,S,pg,void 0,5>b?\"primary-light\":10>b?\"primary\":100>b?\"primary-dark\":\"error\"))}}T=(p=!p&&(u&127)===0&&(u&s.expiredLanes)===0||en(s,u))?ji(s,u):Ci(s,u,!0);var j=p;do{if(T===R2){f8&&!p&&Pn(s,u,0,!1),u=ki,F7=_u(),f_e=u;break}else{if(b=Pl(),S=s.current.alternate,j&&!wn(S)){Ja(u),S=Ml,T=b,!Ma||T<=S||(Ec?Ec.run(console.timeStamp.bind(console,\"Teared Render\",S,T,Qr,Wr,\"error\")):console.timeStamp(\"Teared Render\",S,T,Qr,Wr,\"error\")),qn(u,b),T=Ci(s,u,!1),j=!1;continue}if(T===J6){if(j=u,s.errorRecoveryDisabledLanes&j)var Y=0;else Y=s.pendingLanes&-536870913,Y=Y!==0?Y:Y&536870912?536870912:0;if(Y!==0){Ja(u),q1(Ml,b,u,Ec),qn(u,b),u=Y;e:{b=s,T=j,j=o9;var ce=b.current.memoizedState.isDehydrated;if(ce&&(dn(b,Y).flags|=256),Y=Ci(b,Y,!1),Y!==J6){if(Zae&&!ce){b.errorRecoveryDisabledLanes|=T,GS|=T,T=jS;break e}b=Dp,Dp=j,b!==null&&(Dp===null?Dp=b:Dp.push.apply(Dp,b))}T=Y}if(j=!1,T!==J6)continue;b=Pl()}}if(T===t9){Ja(u),q1(Ml,b,u,Ec),qn(u,b),dn(s,0),Pn(s,u,0,!0);break}e:{switch(p=s,T){case R2:case t9:throw Error(\"Root did not complete. This is a bug in React.\");case jS:if((u&4194048)!==u)break;case nV:Ja(u),Xy(Ml,b,u,Ec),qn(u,b),S=u,(S&127)!==0?zW=b:(S&4194048)!==0&&(jW=b),Pn(p,u,Bh,!WS);break e;case J6:Dp=null;break;case tV:case aTe:break;default:throw Error(\"Unknown root exit status.\")}if(tt.actQueue!==null)bu(p,S,u,Dp,i9,iV,Bh,GS,e5,T,null,null,Ml,b);else{if((u&62914560)===u&&(j=aV+uTe-Pl(),10<j)){if(Pn(p,u,Bh,!WS),Kt(p,0,!0)!==0)break e;Ib=u,p.timeoutHandle=RTe(Yr.bind(null,p,S,Dp,i9,iV,u,Bh,GS,e5,WS,T,\"Throttled\",Ml,b),j);break e}Yr(p,S,Dp,i9,iV,u,Bh,GS,e5,WS,T,null,Ml,b)}}}break}while(!0);Pa(s)}function Yr(s,u,p,b,S,T,j,Y,ce,fe,De,Be,Te,Ge){s.timeoutHandle=i5;var Wt=u.subtreeFlags,Jt=null;if((Wt&8192||(Wt&16785408)===16785408)&&(Jt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qi},K(u,T,Jt),Wt=(T&62914560)===T?aV-Pl():(T&4194048)===T?cTe-Pl():0,Wt=Xmt(Jt,Wt),Wt!==null)){Ib=T,s.cancelPendingCommit=Wt(bu.bind(null,s,u,T,p,b,S,j,Y,ce,De,Jt,Jt.waitingForViewTransition?\"Waiting for the previous Animation\":0<Jt.count?0<Jt.imgCount?\"Suspended on CSS and Images\":\"Suspended on CSS\":Jt.imgCount===1?\"Suspended on an Image\":0<Jt.imgCount?\"Suspended on Images\":null,Te,Ge)),Pn(s,T,j,!fe);return}bu(s,u,T,p,b,S,j,Y,ce,De,Jt,Be,Te,Ge)}function wn(s){for(var u=s;;){var p=u.tag;if((p===0||p===11||p===15)&&u.flags&16384&&(p=u.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var b=0;b<p.length;b++){var S=p[b],T=S.getSnapshot;S=S.value;try{if(!Op(T(),S))return!1}catch{return!1}}if(p=u.child,u.subtreeFlags&16384&&p!==null)p.return=u,u=p;else{if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function Pn(s,u,p,b){u&=~Qae,u&=~GS,s.suspendedLanes|=u,s.pingedLanes&=~u,b&&(s.warmLanes|=u),b=s.expirationTimes;for(var S=u;0<S;){var T=31-Rp(S),j=1<<T;b[T]=-1,S&=~j}p!==0&&Kr(s,p,u)}function po(){return(Do&(fl|Xm))===Bl?(ns(0,!1),!1):!0}function pi(){if(Mr!==null){if(ki===Dh)var s=Mr.return;else s=Mr,zx(),m6(s),r8=null,Y7=0,s=Mr;for(;s!==null;)sg(s.alternate,s),s=s.return;Mr=null}}function qn(s,u){(s&127)!==0&&(LS=u),(s&4194048)!==0&&(Uv=u),(s&62914560)!==0&&(l_e=u),(s&2080374784)!==0&&(d_e=u)}function dn(s,u){Ma&&(console.timeStamp(\"Blocking Track\",.003,.003,\"Blocking\",Wr,\"primary-light\"),console.timeStamp(\"Transition Track\",.003,.003,\"Transition\",Wr,\"primary-light\"),console.timeStamp(\"Suspense Track\",.003,.003,\"Suspense\",Wr,\"primary-light\"),console.timeStamp(\"Idle Track\",.003,.003,\"Idle\",Wr,\"primary-light\"));var p=Ml;if(Ml=_u(),Ir!==0&&0<p){if(Ja(Ir),_s===tV||_s===jS)Xy(p,Ml,u,Ec);else{var b=Ml,S=Ec;if(Ma&&!(b<=p)){var T=(u&738197653)===u?\"tertiary-dark\":\"primary-dark\",j=(u&536870912)===u?\"Prewarm\":(u&201326741)===u?\"Interrupted Hydration\":\"Interrupted Render\";S?S.run(console.timeStamp.bind(console,j,p,b,Qr,Wr,T)):console.timeStamp(j,p,b,Qr,Wr,T)}}qn(Ir,Ml)}if(p=Ec,Ec=null,(u&127)!==0){Ec=B7,S=0<=Lv&&Lv<LS?LS:Lv,b=0<=W6&&W6<LS?LS:W6,T=0<=b?b:0<=S?S:Ml,0<=zW?(Ja(2),Ux(zW,T,u,p)):(WW&127)!==0&&(Ja(2),tl(LS,T,A2)),p=S;var Y=b,ce=L7,fe=0<e8,De=US===D7,Be=US===HW;if(S=Ml,b=B7,T=Rae,j=Iae,Ma){if(Qr=\"Blocking\",0<p?p>S&&(p=S):p=S,0<Y?Y>p&&(Y=p):Y=p,ce!==null&&p>Y){var Te=fe?\"secondary-light\":\"warning\";b?b.run(console.timeStamp.bind(console,fe?\"Consecutive\":\"Event: \"+ce,Y,p,Qr,Wr,Te)):console.timeStamp(fe?\"Consecutive\":\"Event: \"+ce,Y,p,Qr,Wr,Te)}S>p&&(Y=De?\"error\":(u&738197653)===u?\"tertiary-light\":\"primary-light\",De=Be?\"Promise Resolved\":De?\"Cascading Update\":5<S-p?\"Update Blocked\":\"Update\",Be=[],j!=null&&Be.push([\"Component name\",j]),T!=null&&Be.push([\"Method name\",T]),p={start:p,end:S,detail:{devtools:{properties:Be,track:Qr,trackGroup:Wr,color:Y}}},b?b.run(performance.measure.bind(performance,De,p)):performance.measure(De,p))}Lv=-1.1,US=0,Iae=Rae=null,zW=-1.1,e8=W6,W6=-1.1,LS=_u()}if((u&4194048)!==0&&(Ec=U7,S=0<=E2&&E2<Uv?Uv:E2,p=0<=vg&&vg<Uv?Uv:vg,b=0<=FS&&FS<Uv?Uv:FS,T=0<=b?b:0<=p?p:Ml,0<=jW?(Ja(256),Ux(jW,T,u,Ec)):(WW&4194048)!==0&&(Ja(256),tl(Uv,T,A2)),Be=b,Y=V6,ce=0<HS,fe=kae===HW,T=Ml,b=U7,j=c_e,De=u_e,Ma&&(Qr=\"Transition\",0<p?p>T&&(p=T):p=T,0<S?S>p&&(S=p):S=p,0<Be?Be>S&&(Be=S):Be=S,S>Be&&Y!==null&&(Te=ce?\"secondary-light\":\"warning\",b?b.run(console.timeStamp.bind(console,ce?\"Consecutive\":\"Event: \"+Y,Be,S,Qr,Wr,Te)):console.timeStamp(ce?\"Consecutive\":\"Event: \"+Y,Be,S,Qr,Wr,Te)),p>S&&(b?b.run(console.timeStamp.bind(console,\"Action\",S,p,Qr,Wr,\"primary-dark\")):console.timeStamp(\"Action\",S,p,Qr,Wr,\"primary-dark\")),T>p&&(S=fe?\"Promise Resolved\":5<T-p?\"Update Blocked\":\"Update\",Be=[],De!=null&&Be.push([\"Component name\",De]),j!=null&&Be.push([\"Method name\",j]),p={start:p,end:T,detail:{devtools:{properties:Be,track:Qr,trackGroup:Wr,color:\"primary-light\"}}},b?b.run(performance.measure.bind(performance,S,p)):performance.measure(S,p))),vg=E2=-1.1,kae=0,jW=-1.1,HS=FS,FS=-1.1,Uv=_u()),(u&62914560)!==0&&(WW&62914560)!==0&&(Ja(4194304),tl(l_e,Ml,A2)),(u&2080374784)!==0&&(WW&2080374784)!==0&&(Ja(268435456),tl(d_e,Ml,A2)),p=s.timeoutHandle,p!==i5&&(s.timeoutHandle=i5,Ggt(p)),p=s.cancelPendingCommit,p!==null&&(s.cancelPendingCommit=null,p()),Ib=0,pi(),ta=s,Mr=p=fo(s.current,null),Ir=u,ki=Dh,$m=null,WS=!1,f8=en(s,u),Zae=!1,_s=R2,e5=Bh=Qae=GS=VS=0,Dp=o9=null,iV=!1,(u&8)!==0&&(u|=u&32),b=s.entangledLanes,b!==0)for(s=s.entanglements,b&=u;0<b;)S=31-Rp(b),T=1<<S,u|=s[S],b&=~T;return Hv=u,xh(),s=n_e(),1e3<s-t_e&&(tt.recentlyCreatedOwnerStacks=0,t_e=s),Tb.discardPendingWarnings(),p}function wi(s,u){Kn=null,tt.H=X7,tt.getCurrentStack=null,Ov=!1,Km=null,u===n8||u===KW?(u=l6(),ki=n9):u===Mae?(u=l6(),ki=sTe):ki=u===Vae?Yae:u!==null&&typeof u==\"object\"&&typeof u.then==\"function\"?r9:rV,$m=u;var p=Mr;p===null?(_s=t9,bp(s,wl(u,s.current))):p.mode&Cr&&$a(p)}function Ia(){var s=Qm.current;return s===null?!0:(Ir&4194048)===Ir?wg===null:(Ir&62914560)===Ir||(Ir&536870912)!==0?s===wg:!1}function Zr(){var s=tt.H;return tt.H=X7,s===null?X7:s}function Ro(){var s=tt.A;return tt.A=Ogt,s}function ka(s){Ec===null&&(Ec=s._debugTask==null?null:s._debugTask)}function zi(){_s=jS,WS||(Ir&4194048)!==Ir&&Qm.current!==null||(f8=!0),(VS&134217727)===0&&(GS&134217727)===0||ta===null||Pn(ta,Ir,Bh,!1)}function Ci(s,u,p){var b=Do;Do|=fl;var S=Zr(),T=Ro();if(ta!==s||Ir!==u){if(Pv){var j=s.memoizedUpdaters;0<j.size&&(Vi(s,Ir),j.clear()),lr(s,u)}i9=null,dn(s,u)}u=!1,j=_s;e:do try{if(ki!==Dh&&Mr!==null){var Y=Mr,ce=$m;switch(ki){case Yae:pi(),j=nV;break e;case n9:case X6:case $6:case r9:Qm.current===null&&(u=!0);var fe=ki;if(ki=Dh,$m=null,Ri(s,Y,ce,fe),p&&f8){j=R2;break e}break;default:fe=ki,ki=Dh,$m=null,Ri(s,Y,ce,fe)}}Io(),j=_s;break}catch(De){wi(s,De)}while(!0);return u&&s.shellSuspendCounter++,zx(),Do=b,tt.H=S,tt.A=T,Mr===null&&(ta=null,Ir=0,xh()),j}function Io(){for(;Mr!==null;)Xs(Mr)}function ji(s,u){var p=Do;Do|=fl;var b=Zr(),S=Ro();if(ta!==s||Ir!==u){if(Pv){var T=s.memoizedUpdaters;0<T.size&&(Vi(s,Ir),T.clear()),lr(s,u)}i9=null,sV=Pl()+lTe,dn(s,u)}else f8=en(s,u);e:do try{if(ki!==Dh&&Mr!==null)t:switch(u=Mr,T=$m,ki){case rV:ki=Dh,$m=null,Ri(s,u,T,rV);break;case X6:case $6:if($o(T)){ki=Dh,$m=null,Wi(u);break}u=function(){ki!==X6&&ki!==$6||ta!==s||(ki=oV),Pa(s)},T.then(u,u);break e;case n9:ki=oV;break e;case sTe:ki=Kae;break e;case oV:$o(T)?(ki=Dh,$m=null,Wi(u)):(ki=Dh,$m=null,Ri(s,u,T,oV));break;case Kae:var j=null;switch(Mr.tag){case 26:j=Mr.memoizedState;case 5:case 27:var Y=Mr;if(j?YAe(j):Y.stateNode.complete){ki=Dh,$m=null;var ce=Y.sibling;if(ce!==null)Mr=ce;else{var fe=Y.return;fe!==null?(Mr=fe,Oa(fe)):Mr=null}break t}break;default:console.error(\"Unexpected type of fiber triggered a suspensey commit. This is a bug in React.\")}ki=Dh,$m=null,Ri(s,u,T,Kae);break;case r9:ki=Dh,$m=null,Ri(s,u,T,r9);break;case Yae:pi(),_s=nV;break e;default:throw Error(\"Unexpected SuspendedReason. This is a bug in React.\")}tt.actQueue!==null?Io():Js();break}catch(De){wi(s,De)}while(!0);return zx(),tt.H=b,tt.A=S,Do=p,Mr!==null?R2:(ta=null,Ir=0,xh(),_s)}function Js(){for(;Mr!==null&&!f0t();)Xs(Mr)}function Xs(s){var u=s.alternate;(s.mode&Cr)!==jn?(J1(s),u=_e(s,xv,u,s,Hv),$a(s)):u=_e(s,xv,u,s,Hv),s.memoizedProps=s.pendingProps,u===null?Oa(s):Mr=u}function Wi(s){var u=_e(s,Ko,s);s.memoizedProps=s.pendingProps,u===null?Oa(s):Mr=u}function Ko(s){var u=s.alternate,p=(s.mode&Cr)!==jn;switch(p&&J1(s),s.tag){case 15:case 0:u=wS(u,s,s.pendingProps,s.type,void 0,Ir);break;case 11:u=wS(u,s,s.pendingProps,s.type.render,s.ref,Ir);break;case 5:m6(s);default:sg(u,s),s=Mr=Ao(s,Hv),u=xv(u,s,Hv)}return p&&$a(s),u}function Ri(s,u,p,b){zx(),m6(u),r8=null,Y7=0;var S=u.return;try{if(C4(s,S,u,p,Ir)){_s=t9,bp(s,wl(p,s.current)),Mr=null;return}}catch(T){if(S!==null)throw Mr=S,T;_s=t9,bp(s,wl(p,s.current)),Mr=null;return}u.flags&32768?(no||b===rV?s=!0:f8||(Ir&536870912)!==0?s=!1:(WS=s=!0,(b===X6||b===$6||b===n9||b===r9)&&(b=Qm.current,b!==null&&b.tag===13&&(b.flags|=16384))),Na(u,s)):Oa(u)}function Oa(s){var u=s;do{if((u.flags&32768)!==0){Na(u,WS);return}var p=u.alternate;if(s=u.return,J1(u),p=_e(u,Ev,p,u,Hv),(u.mode&Cr)!==jn&&jx(u),p!==null){Mr=p;return}if(u=u.sibling,u!==null){Mr=u;return}Mr=u=s}while(u!==null);_s===R2&&(_s=aTe)}function Na(s,u){do{var p=d2(s.alternate,s);if(p!==null){p.flags&=32767,Mr=p;return}if((s.mode&Cr)!==jn){jx(s),p=s.actualDuration;for(var b=s.child;b!==null;)p+=b.actualDuration,b=b.sibling;s.actualDuration=p}if(p=s.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!u&&(s=s.sibling,s!==null)){Mr=s;return}Mr=s=p}while(s!==null);_s=nV,Mr=null}function bu(s,u,p,b,S,T,j,Y,ce,fe,De,Be,Te,Ge){s.cancelPendingCommit=null;do $s();while(ku!==KS);if(Tb.flushLegacyContextWarning(),Tb.flushPendingUnsafeLifecycleWarnings(),(Do&(fl|Xm))!==Bl)throw Error(\"Should not already be working.\");if(Ja(p),fe===J6?q1(Te,Ge,p,Ec):b!==null?a6(Te,Ge,p,b,u!==null&&u.alternate!==null&&u.alternate.memoizedState.isDehydrated&&(u.flags&256)!==0,Ec):G1(Te,Ge,p,Ec),u!==null){if(p===0&&console.error(\"finishedLanes should not be empty during a commit. This is a bug in React.\"),u===s.current)throw Error(\"Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.\");if(T=u.lanes|u.childLanes,T|=Aae,Ar(s,p,T,j,Y,ce),s===ta&&(Mr=ta=null,Ir=0),p8=u,YS=s,Ib=p,$ae=T,tse=S,gTe=b,ese=Ge,yTe=Be,kb=cV,bTe=null,u.actualDuration!==0||(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,Ap(U4,function(){return d9=window.event,kb===cV&&(kb=Xae),ii(),null})):(s.callbackNode=null,s.callbackPriority=0),x2=null,BS=_u(),Be!==null&&K0(Ge,BS,Be,Ec),b=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||b){b=tt.T,tt.T=null,S=Ai.p,Ai.p=Ym,j=Do,Do|=Xm;try{gu(s,u,p)}finally{Do=j,Ai.p=S,tt.T=b}}ku=fTe,ws(),xi(),vc()}}function ws(){if(ku===fTe){ku=KS;var s=YS,u=p8,p=Ib,b=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||b){b=tt.T,tt.T=null;var S=Ai.p;Ai.p=Ym;var T=Do;Do|=Xm;try{l8=p,d8=s,Fm(),Ji(u,s),d8=l8=null,p=fse;var j=W1(s.containerInfo),Y=p.focusedElem,ce=p.selectionRange;if(j!==Y&&Y&&Y.ownerDocument&&V0(Y.ownerDocument.documentElement,Y)){if(ce!==null&&G0(Y)){var fe=ce.start,De=ce.end;if(De===void 0&&(De=fe),\"selectionStart\"in Y)Y.selectionStart=fe,Y.selectionEnd=Math.min(De,Y.value.length);else{var Be=Y.ownerDocument||document,Te=Be&&Be.defaultView||window;if(Te.getSelection){var Ge=Te.getSelection(),Wt=Y.textContent.length,Jt=Math.min(ce.start,Wt),ga=ce.end===void 0?Jt:Math.min(ce.end,Wt);!Ge.extend&&Jt>ga&&(j=ga,ga=Jt,Jt=j);var go=Lx(Y,Jt),Se=Lx(Y,ga);if(go&&Se&&(Ge.rangeCount!==1||Ge.anchorNode!==go.node||Ge.anchorOffset!==go.offset||Ge.focusNode!==Se.node||Ge.focusOffset!==Se.offset)){var Re=Be.createRange();Re.setStart(go.node,go.offset),Ge.removeAllRanges(),Jt>ga?(Ge.addRange(Re),Ge.extend(Se.node,Se.offset)):(Re.setEnd(Se.node,Se.offset),Ge.addRange(Re))}}}}for(Be=[],Ge=Y;Ge=Ge.parentNode;)Ge.nodeType===1&&Be.push({element:Ge,left:Ge.scrollLeft,top:Ge.scrollTop});for(typeof Y.focus==\"function\"&&Y.focus(),Y=0;Y<Be.length;Y++){var Ne=Be[Y];Ne.element.scrollLeft=Ne.left,Ne.element.scrollTop=Ne.top}}SV=!!dse,fse=dse=null}finally{Do=T,Ai.p=S,tt.T=b}}s.current=u,ku=pTe}}function xi(){if(ku===pTe){ku=KS;var s=bTe;if(s!==null){BS=_u();var u=w2,p=BS;!Ma||p<=u||(A2?A2.run(console.timeStamp.bind(console,s,u,p,Qr,Wr,\"secondary-light\")):console.timeStamp(s,u,p,Qr,Wr,\"secondary-light\"))}s=YS,u=p8,p=Ib;var b=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||b){b=tt.T,tt.T=null;var S=Ai.p;Ai.p=Ym;var T=Do;Do|=Xm;try{l8=p,d8=s,Fm(),zr(s,u.alternate,u),d8=l8=null}finally{Do=T,Ai.p=S,tt.T=b}}s=ese,u=yTe,w2=_u(),s=u===null?s:BS,u=w2,p=kb===Jae,b=Ec,x2!==null?Y0(s,u,x2,!1,b):!Ma||u<=s||(b?b.run(console.timeStamp.bind(console,p?\"Commit Interrupted View Transition\":\"Commit\",s,u,Qr,Wr,p?\"error\":\"secondary-dark\")):console.timeStamp(p?\"Commit Interrupted View Transition\":\"Commit\",s,u,Qr,Wr,p?\"error\":\"secondary-dark\")),ku=hTe}}function vc(){if(ku===mTe||ku===hTe){if(ku===mTe){var s=w2;w2=_u();var u=w2,p=kb===Jae;!Ma||u<=s||(A2?A2.run(console.timeStamp.bind(console,p?\"Interrupted View Transition\":\"Starting Animation\",s,u,Qr,Wr,p?\"error\":\"secondary-light\")):console.timeStamp(p?\"Interrupted View Transition\":\"Starting Animation\",s,u,Qr,Wr,p?\" error\":\"secondary-light\")),kb!==Jae&&(kb=dTe)}ku=KS,p0t(),s=YS;var b=p8;u=Ib,p=gTe;var S=b.actualDuration!==0||(b.subtreeFlags&10256)!==0||(b.flags&10256)!==0;S?ku=uV:(ku=KS,p8=YS=null,jm(s,s.pendingLanes),t5=0,s9=null);var T=s.pendingLanes;if(T===0&&(qS=null),S||xc(s),T=de(u),b=b.stateNode,vf&&typeof vf.onCommitFiberRoot==\"function\")try{var j=(b.current.flags&128)===128;switch(T){case Ym:var Y=tae;break;case Sb:Y=nae;break;case Mv:Y=U4;break;case CW:Y=rae;break;default:Y=U4}vf.onCommitFiberRoot(F4,b,Y,j)}catch(Be){Nv||(Nv=!0,console.error(\"React instrumentation encountered an error: %o\",Be))}if(Pv&&s.memoizedUpdaters.clear(),Fe(),p!==null){j=tt.T,Y=Ai.p,Ai.p=Ym,tt.T=null;try{var ce=s.onRecoverableError;for(b=0;b<p.length;b++){var fe=p[b],De=ha(fe.stack);_e(fe.source,ce,fe.value,De)}}finally{tt.T=j,Ai.p=Y}}(Ib&3)!==0&&$s(),Pa(s),T=s.pendingLanes,(u&261930)!==0&&(T&42)!==0?(GW=!0,s===nse?a9++:(a9=0,nse=s)):a9=0,S||qn(u,w2),ns(0,!1)}}function ha(s){return s={componentStack:s},Object.defineProperty(s,\"digest\",{get:function(){console.error(\\'You are accessing \"digest\" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.\\')}}),s}function jm(s,u){(s.pooledCacheLanes&=u)===0&&(u=s.pooledCache,u!=null&&(s.pooledCache=null,Bm(u)))}function $s(){return ws(),xi(),vc(),ii()}function ii(){if(ku!==uV)return!1;var s=YS,u=$ae;$ae=0;var p=de(Ib),b=Mv===0||Mv>p?Mv:p;p=tt.T;var S=Ai.p;try{Ai.p=b,tt.T=null;var T=tse;tse=null,b=YS;var j=Ib;if(ku=KS,p8=YS=null,Ib=0,(Do&(fl|Xm))!==Bl)throw Error(\"Cannot flush passive effects while already rendering.\");Ja(j),rse=!0,lV=!1;var Y=0;if(x2=null,Y=Pl(),kb===dTe)tl(w2,Y,A2);else{var ce=w2,fe=Y,De=kb===Xae;!Ma||fe<=ce||(Ec?Ec.run(console.timeStamp.bind(console,De?\"Waiting for Paint\":\"Waiting\",ce,fe,Qr,Wr,\"secondary-light\")):console.timeStamp(De?\"Waiting for Paint\":\"Waiting\",ce,fe,Qr,Wr,\"secondary-light\"))}ce=Do,Do|=Xm;var Be=b.current;Fm(),ye(Be);var Te=b.current;Be=ese,Fm(),Ed(b,Te,j,T,Be),xc(b),Do=ce;var Ge=Pl();if(Te=Y,Be=Ec,x2!==null?Y0(Te,Ge,x2,!0,Be):!Ma||Ge<=Te||(Be?Be.run(console.timeStamp.bind(console,\"Remaining Effects\",Te,Ge,Qr,Wr,\"secondary-dark\")):console.timeStamp(\"Remaining Effects\",Te,Ge,Qr,Wr,\"secondary-dark\")),qn(j,Ge),ns(0,!1),lV?b===s9?t5++:(t5=0,s9=b):t5=0,lV=rse=!1,vf&&typeof vf.onPostCommitFiberRoot==\"function\")try{vf.onPostCommitFiberRoot(F4,b)}catch(Jt){Nv||(Nv=!0,console.error(\"React instrumentation encountered an error: %o\",Jt))}var Wt=b.current.stateNode;return Wt.effectDuration=0,Wt.passiveEffectDuration=0,!0}finally{Ai.p=S,tt.T=p,jm(s,u)}}function wc(s,u,p){u=wl(p,u),cf(u),u=ig(s.stateNode,u,2),s=Sh(s,u,2),s!==null&&(Hs(s,2),Pa(s))}function In(s,u,p){if(h8=!1,s.tag===3)wc(s,s,p);else{for(;u!==null;){if(u.tag===3){wc(u,s,p);return}if(u.tag===1){var b=u.stateNode;if(typeof u.type.getDerivedStateFromError==\"function\"||typeof b.componentDidCatch==\"function\"&&(qS===null||!qS.has(b))){s=wl(p,s),cf(s),p=Cl(2),b=Sh(u,p,2),b!==null&&(ag(p,b,u,s),Hs(b,2),Pa(b));return}}u=u.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\\n\\nError message:\\n\\n%s`,p)}}function pf(s,u,p){var b=s.pingCache;if(b===null){b=s.pingCache=new Pgt;var S=new Set;b.set(u,S)}else S=b.get(u),S===void 0&&(S=new Set,b.set(u,S));S.has(p)||(Zae=!0,S.add(p),b=wp.bind(null,s,u,p),Pv&&Vi(s,p),u.then(b,b))}function wp(s,u,p){var b=s.pingCache;b!==null&&b.delete(u),s.pingedLanes|=s.suspendedLanes&p,s.warmLanes&=~p,(p&127)!==0?0>Lv&&(LS=Lv=_u(),B7=FW(\"Promise Resolved\"),US=HW):(p&4194048)!==0&&0>vg&&(Uv=vg=_u(),U7=FW(\"Promise Resolved\"),kae=HW),vt()&&tt.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\\n\\nWhen testing, code that resolves suspended data should be wrapped into act(...):\\n\\nact(() => {\\n  /* finish loading suspended data */\\n});\\n/* assert on the output */\\n\\nThis ensures that you\\'re testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),ta===s&&(Ir&p)===p&&(_s===jS||_s===tV&&(Ir&62914560)===Ir&&Pl()-aV<uTe?(Do&fl)===Bl&&dn(s,0):Qae|=p,e5===Ir&&(e5=0)),Pa(s)}function Gc(s,u){u===0&&(u=Fn()),s=zc(s,u),s!==null&&(Hs(s,u),Pa(s))}function xp(s){var u=s.memoizedState,p=0;u!==null&&(p=u.retryLane),Gc(s,p)}function ec(s,u){var p=0;switch(s.tag){case 31:case 13:var b=s.stateNode,S=s.memoizedState;S!==null&&(p=S.retryLane);break;case 19:b=s.stateNode;break;case 22:b=s.stateNode._retryCache;break;default:throw Error(\"Pinged unknown suspense boundary type. This is probably a bug in React.\")}b!==null&&b.delete(u),Gc(s,p)}function hf(s,u,p){if((u.subtreeFlags&67117056)!==0)for(u=u.child;u!==null;){var b=s,S=u,T=S.type===xW;T=p||T,S.tag!==22?S.flags&67108864?T&&_e(S,Wm,b,S):hf(b,S,T):S.memoizedState===null&&(T&&S.flags&8192?_e(S,Wm,b,S):S.subtreeFlags&67108864&&_e(S,hf,b,S,T)),u=u.sibling}}function Wm(s,u){St(!0);try{Qs(u),Ye(u),yu(s,u.alternate,u,!1),v(s,u,0,null,!1,0)}finally{St(!1)}}function xc(s){var u=!0;s.current.mode&(wf|_b)||(u=!1),hf(s,s.current,u)}function Ep(s){if((Do&fl)===Bl){var u=s.tag;if(u===3||u===1||u===0||u===11||u===14||u===15){if(u=te(s)||\"ReactComponent\",dV!==null){if(dV.has(u))return;dV.add(u)}else dV=new Set([u]);_e(s,function(){console.error(\"Can\\'t perform a React state update on a component that hasn\\'t mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.\")})}}}function Vi(s,u){Pv&&s.memoizedUpdaters.forEach(function(p){yl(s,p,u)})}function Ap(s,u){var p=tt.actQueue;return p!==null?(p.push(u),Bgt):eae(s,u)}function mf(s){vt()&&tt.actQueue===null&&_e(s,function(){console.error(`An update to %s inside a test was not wrapped in act(...).\\n\\nWhen testing, code that causes React state updates should be wrapped into act(...):\\n\\nact(() => {\\n  /* fire events that update state */\\n});\\n/* assert on the output */\\n\\nThis ensures that you\\'re testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,te(s))})}function Pa(s){s!==m8&&s.next===null&&(m8===null?fV=m8=s:m8=m8.next=s),pV=!0,tt.actQueue!==null?ise||(ise=!0,Ad()):ose||(ose=!0,Ad())}function ns(s,u){if(!ase&&pV){ase=!0;do for(var p=!1,b=fV;b!==null;){if(!u)if(s!==0){var S=b.pendingLanes;if(S===0)var T=0;else{var j=b.suspendedLanes,Y=b.pingedLanes;T=(1<<31-Rp(42|s)+1)-1,T&=S&~(j&~Y),T=T&201326741?T&201326741|1:T?T|2:0}T!==0&&(p=!0,kl(b,T))}else T=Ir,T=Kt(b,b===ta?T:0,b.cancelPendingCommit!==null||b.timeoutHandle!==i5),(T&3)===0||en(b,T)||(p=!0,kl(b,T));b=b.next}while(p);ase=!1}}function qc(){d9=window.event,Kc()}function Kc(){pV=ise=ose=!1;var s=0;ZS!==0&&SS()&&(s=ZS);for(var u=Pl(),p=null,b=fV;b!==null;){var S=b.next,T=xs(b,u);T===0?(b.next=null,p===null?fV=S:p.next=S,S===null&&(m8=p)):(p=b,(s!==0||(T&3)!==0)&&(pV=!0)),b=S}ku!==KS&&ku!==uV||ns(s,!1),ZS!==0&&(ZS=0)}function xs(s,u){for(var p=s.suspendedLanes,b=s.pingedLanes,S=s.expirationTimes,T=s.pendingLanes&-62914561;0<T;){var j=31-Rp(T),Y=1<<j,ce=S[j];ce===-1?((Y&p)===0||(Y&b)!==0)&&(S[j]=Ho(Y,u)):ce<=u&&(s.expiredLanes|=Y),T&=~Y}if(u=ta,p=Ir,p=Kt(s,s===u?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==i5),b=s.callbackNode,p===0||s===u&&(ki===X6||ki===$6)||s.cancelPendingCommit!==null)return b!==null&&Yc(b),s.callbackNode=null,s.callbackPriority=0;if((p&3)===0||en(s,p)){if(u=p&-p,u!==s.callbackPriority||tt.actQueue!==null&&b!==sse)Yc(b);else return u;switch(de(p)){case Ym:case Sb:p=nae;break;case Mv:p=U4;break;case CW:p=rae;break;default:p=U4}return b=ma.bind(null,s),tt.actQueue!==null?(tt.actQueue.push(b),p=sse):p=eae(p,b),s.callbackPriority=u,s.callbackNode=p,u}return b!==null&&Yc(b),s.callbackPriority=2,s.callbackNode=null,2}function ma(s,u){if(GW=VW=!1,d9=window.event,ku!==KS&&ku!==uV)return s.callbackNode=null,s.callbackPriority=0,null;var p=s.callbackNode;if(kb===cV&&(kb=Xae),$s()&&s.callbackNode!==p)return null;var b=Ir;return b=Kt(s,s===ta?b:0,s.cancelPendingCommit!==null||s.timeoutHandle!==i5),b===0?null:(En(s,b,u),xs(s,Pl()),s.callbackNode!=null&&s.callbackNode===p?ma.bind(null,s):null)}function kl(s,u){if($s())return null;VW=GW,GW=!1,En(s,u,!0)}function Yc(s){s!==sse&&s!==null&&d0t(s)}function Ad(){tt.actQueue!==null&&tt.actQueue.push(function(){return Kc(),null}),qgt(function(){(Do&(fl|Xm))!==Bl?eae(tae,qc):Kc()})}function vu(){if(ZS===0){var s=G6;s===0&&(s=SW,SW<<=1,(SW&261888)===0&&(SW=256)),ZS=s}return ZS}function cg(s){return s==null||typeof s==\"symbol\"||typeof s==\"boolean\"?null:typeof s==\"function\"?s:(rt(s,\"action\"),yh(\"\"+s))}function rs(s,u){var p=u.ownerDocument.createElement(\"input\");return p.name=u.name,p.value=u.value,s.id&&p.setAttribute(\"form\",s.id),u.parentNode.insertBefore(p,u),s=new FormData(s),p.parentNode.removeChild(p),s}function wu(s,u,p,b,S){if(u===\"submit\"&&p&&p.stateNode===S){var T=cg((S[Ip]||null).action),j=b.submitter;j&&(u=(u=j[Ip]||null)?cg(u.formAction):j.getAttribute(\"formAction\"),u!==null&&(T=u,j=null));var Y=new NW(\"action\",\"action\",null,b,S);s.push({event:Y,listeners:[{instance:null,listener:function(){if(b.defaultPrevented){if(ZS!==0){var ce=j?rs(S,j):new FormData(S),fe={pending:!0,data:ce,method:S.method,action:T};Object.freeze(fe),mS(p,fe,null,ce)}}else typeof T==\"function\"&&(Y.preventDefault(),ce=j?rs(S,j):new FormData(S),fe={pending:!0,data:ce,method:S.method,action:T},Object.freeze(fe),mS(p,fe,T,ce))},currentTarget:S}]})}}function Sd(s,u,p){s.currentTarget=p;try{u(s)}catch(b){vae(b)}s.currentTarget=null}function Rh(s,u){u=(u&4)!==0;for(var p=0;p<s.length;p++){var b=s[p];e:{var S=void 0,T=b.event;if(b=b.listeners,u)for(var j=b.length-1;0<=j;j--){var Y=b[j],ce=Y.instance,fe=Y.currentTarget;if(Y=Y.listener,ce!==S&&T.isPropagationStopped())break e;ce!==null?_e(ce,Sd,T,Y,fe):Sd(T,Y,fe),S=ce}else for(j=0;j<b.length;j++){if(Y=b[j],ce=Y.instance,fe=Y.currentTarget,Y=Y.listener,ce!==S&&T.isPropagationStopped())break e;ce!==null?_e(ce,Sd,T,Y,fe):Sd(T,Y,fe),S=ce}}}}function Wn(s,u){cse.has(s)||console.error(\\'Did not expect a listenToNonDelegatedEvent() call for \"%s\". This is a bug in React. Please file an issue.\\',s);var p=u[oae];p===void 0&&(p=u[oae]=new Set);var b=s+\"__bubble\";p.has(b)||(gf(u,s,2,!1),p.add(b))}function Sv(s,u,p){cse.has(s)&&!u&&console.error(\\'Did not expect a listenToNativeEvent() call for \"%s\" in the bubble phase. This is a bug in React. Please file an issue.\\',s);var b=0;u&&(b|=4),gf(p,s,b,u)}function Ol(s){if(!s[hV]){s[hV]=!0,ySe.forEach(function(p){p!==\"selectionchange\"&&(cse.has(p)||Sv(p,!1,s),Sv(p,!0,s))});var u=s.nodeType===9?s:s.ownerDocument;u===null||u[hV]||(u[hV]=!0,Sv(\"selectionchange\",!1,u))}}function gf(s,u,p,b){switch(eSe(u)){case Ym:var S=n0t;break;case Sb:S=r0t;break;default:S=Fie}p=S.bind(null,u,p,s),S=void 0,!uae||u!==\"touchstart\"&&u!==\"touchmove\"&&u!==\"wheel\"||(S=!0),b?S!==void 0?s.addEventListener(u,p,{capture:!0,passive:S}):s.addEventListener(u,p,!0):S!==void 0?s.addEventListener(u,p,{passive:S}):s.addEventListener(u,p,!1)}function Nl(s,u,p,b,S){var T=b;if((u&1)===0&&(u&2)===0&&b!==null)e:for(;;){if(b===null)return;var j=b.tag;if(j===3||j===4){var Y=b.stateNode.containerInfo;if(Y===S)break;if(j===4)for(j=b.return;j!==null;){var ce=j.tag;if((ce===3||ce===4)&&j.stateNode.containerInfo===S)return;j=j.return}for(;Y!==null;){if(j=jt(Y),j===null)return;if(ce=j.tag,ce===5||ce===6||ce===26||ce===27){b=T=j;continue e}Y=Y.parentNode}}b=b.return}bh(function(){var fe=T,De=H1(p),Be=[];e:{var Te=e_e.get(s);if(Te!==void 0){var Ge=NW,Wt=s;switch(s){case\"keypress\":if(z1(p)===0)break e;case\"keydown\":case\"keyup\":Ge=X0t;break;case\"focusin\":Wt=\"focus\",Ge=pae;break;case\"focusout\":Wt=\"blur\",Ge=pae;break;case\"beforeblur\":case\"afterblur\":Ge=pae;break;case\"click\":if(p.button===2)break e;case\"auxclick\":case\"dblclick\":case\"mousedown\":case\"mousemove\":case\"mouseup\":case\"mouseout\":case\"mouseover\":case\"contextmenu\":Ge=HSe;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":Ge=H0t;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":Ge=tgt;break;case QSe:case JSe:case XSe:Ge=W0t;break;case $Se:Ge=rgt;break;case\"scroll\":case\"scrollend\":Ge=U0t;break;case\"wheel\":Ge=igt;break;case\"copy\":case\"cut\":case\"paste\":Ge=G0t;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":Ge=jSe;break;case\"toggle\":case\"beforetoggle\":Ge=sgt}var Jt=(u&4)!==0,ga=!Jt&&(s===\"scroll\"||s===\"scrollend\"),go=Jt?Te!==null?Te+\"Capture\":null:Te;Jt=[];for(var Se=fe,Re;Se!==null;){var Ne=Se;if(Re=Ne.stateNode,Ne=Ne.tag,Ne!==5&&Ne!==26&&Ne!==27||Re===null||go===null||(Ne=z0(Se,go),Ne!=null&&Jt.push(_d(Se,Ne,Re))),ga)break;Se=Se.return}0<Jt.length&&(Te=new Ge(Te,Wt,null,p,De),Be.push({event:Te,listeners:Jt}))}}if((u&7)===0){e:{if(Te=s===\"mouseover\"||s===\"pointerover\",Ge=s===\"mouseout\"||s===\"pointerout\",Te&&p!==_7&&(Wt=p.relatedTarget||p.fromElement)&&(jt(Wt)||Wt[kS]))break e;if((Ge||Te)&&(Te=De.window===De?De:(Te=De.ownerDocument)?Te.defaultView||Te.parentWindow:window,Ge?(Wt=p.relatedTarget||p.toElement,Ge=fe,Wt=Wt?jt(Wt):null,Wt!==null&&(ga=C(Wt),Jt=Wt.tag,Wt!==ga||Jt!==5&&Jt!==27&&Jt!==6)&&(Wt=null)):(Ge=null,Wt=fe),Ge!==Wt)){if(Jt=HSe,Ne=\"onMouseLeave\",go=\"onMouseEnter\",Se=\"mouse\",(s===\"pointerout\"||s===\"pointerover\")&&(Jt=jSe,Ne=\"onPointerLeave\",go=\"onPointerEnter\",Se=\"pointer\"),ga=Ge==null?Te:Qt(Ge),Re=Wt==null?Te:Qt(Wt),Te=new Jt(Ne,Se+\"leave\",Ge,p,De),Te.target=ga,Te.relatedTarget=Re,Ne=null,jt(De)===fe&&(Jt=new Jt(go,Se+\"enter\",Wt,p,De),Jt.target=Re,Jt.relatedTarget=ga,Ne=Jt),ga=Ne,Ge&&Wt)t:{for(Jt=_v,go=Ge,Se=Wt,Re=0,Ne=go;Ne;Ne=Jt(Ne))Re++;Ne=0;for(var lt=Se;lt;lt=Jt(lt))Ne++;for(;0<Re-Ne;)go=Jt(go),Re--;for(;0<Ne-Re;)Se=Jt(Se),Ne--;for(;Re--;){if(go===Se||Se!==null&&go===Se.alternate){Jt=go;break t}go=Jt(go),Se=Jt(Se)}Jt=null}else Jt=null;Ge!==null&&os(Be,Te,Ge,Jt,!1),Wt!==null&&ga!==null&&os(Be,ga,Wt,Jt,!0)}}e:{if(Te=fe?Qt(fe):window,Ge=Te.nodeName&&Te.nodeName.toLowerCase(),Ge===\"select\"||Ge===\"input\"&&Te.type===\"file\")var qt=o6;else if(j1(Te))if(YSe)qt=Zy;else{qt=VA;var Yn=WA}else Ge=Te.nodeName,!Ge||Ge.toLowerCase()!==\"input\"||Te.type!==\"checkbox\"&&Te.type!==\"radio\"?fe&&gh(fe.elementType)&&(qt=o6):qt=el;if(qt&&(qt=qt(s,fe))){Ky(Be,qt,p,De);break e}Yn&&Yn(s,Te,fe),s===\"focusout\"&&fe&&Te.type===\"number\"&&fe.memoizedProps.value!=null&&Xo(Te,\"number\",Te.value)}switch(Yn=fe?Qt(fe):window,s){case\"focusin\":(j1(Yn)||Yn.contentEditable===\"true\")&&(q4=Yn,mae=fe,N7=null);break;case\"focusout\":N7=mae=q4=null;break;case\"mousedown\":gae=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":gae=!1,Qa(Be,p,De);break;case\"selectionchange\":if(dgt)break;case\"keydown\":case\"keyup\":Qa(Be,p,De)}var Tn;if(hae)e:{switch(s){case\"compositionstart\":var bn=\"onCompositionStart\";break e;case\"compositionend\":bn=\"onCompositionEnd\";break e;case\"compositionupdate\":bn=\"onCompositionUpdate\";break e}bn=void 0}else G4?Pm(s,p)&&(bn=\"onCompositionEnd\"):s===\"keydown\"&&p.keyCode===WSe&&(bn=\"onCompositionStart\");bn&&(VSe&&p.locale!==\"ko\"&&(G4||bn!==\"onCompositionStart\"?bn===\"onCompositionEnd\"&&G4&&(Tn=vh()):(OS=De,lae=\"value\"in OS?OS.value:OS.textContent,G4=!0)),Yn=ug(fe,bn),0<Yn.length&&(bn=new zSe(bn,s,null,p,De),Be.push({event:bn,listeners:Yn}),Tn?bn.data=Tn:(Tn=ms(p),Tn!==null&&(bn.data=Tn)))),(Tn=ugt?qy(s,p):Uc(s,p))&&(bn=ug(fe,\"onBeforeInput\"),0<bn.length&&(Yn=new K0t(\"onBeforeInput\",\"beforeinput\",null,p,De),Be.push({event:Yn,listeners:bn}),Yn.data=Tn)),wu(Be,s,fe,p,De)}Rh(Be,u)})}function _d(s,u,p){return{instance:s,listener:u,currentTarget:p}}function ug(s,u){for(var p=u+\"Capture\",b=[];s!==null;){var S=s,T=S.stateNode;if(S=S.tag,S!==5&&S!==26&&S!==27||T===null||(S=z0(s,p),S!=null&&b.unshift(_d(s,S,T)),S=z0(s,u),S!=null&&b.push(_d(s,S,T))),s.tag===3)return b;s=s.return}return[]}function _v(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function os(s,u,p,b,S){for(var T=u._reactName,j=[];p!==null&&p!==b;){var Y=p,ce=Y.alternate,fe=Y.stateNode;if(Y=Y.tag,ce!==null&&ce===b)break;Y!==5&&Y!==26&&Y!==27||fe===null||(ce=fe,S?(fe=z0(p,T),fe!=null&&j.unshift(_d(p,fe,ce))):S||(fe=z0(p,T),fe!=null&&j.push(_d(p,fe,ce)))),p=p.return}j.length!==0&&s.push({event:u,listeners:j})}function Zc(s,u){Om(s,u),s!==\"input\"&&s!==\"textarea\"&&s!==\"select\"||u==null||u.value!==null||USe||(USe=!0,s===\"select\"&&u.multiple?console.error(\"`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.\",s):console.error(\"`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.\",s));var p={registrationNameDependencies:F6,possibleRegistrationNames:iae};gh(s)||typeof u.is==\"string\"||uu(s,u,p),u.contentEditable&&!u.suppressContentEditableWarning&&u.children!=null&&console.error(\"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.\")}function ai(s,u,p,b){u!==p&&(p=Pr(p),Pr(u)!==p&&(b[s]=u))}function lg(s,u,p){u.forEach(function(b){p[_p(b)]=b===\"style\"?Ih(s):s.getAttribute(b)})}function Ii(s,u){u===!1?console.error(\"Expected `%s` listener to be a function, instead got `false`.\\\\n\\\\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.\",s,s,s):console.error(\"Expected `%s` listener to be a function, instead got a value of `%s` type.\",s,typeof u)}function Ei(s,u){return s=s.namespaceURI===IW||s.namespaceURI===z4?s.ownerDocument.createElementNS(s.namespaceURI,s.tagName):s.ownerDocument.createElement(s.tagName),s.innerHTML=u,s.innerHTML}function Pr(s){return qe(s)&&(console.error(\"The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.\",Et(s)),Xe(s)),(typeof s==\"string\"?s:\"\"+s).replace(Lgt,`\\n`).replace(Ugt,\"\")}function ho(s,u){return u=Pr(u),Pr(s)===u}function mo(s,u,p,b,S,T){switch(p){case\"children\":typeof b==\"string\"?(Vy(b,u,!1),u===\"body\"||u===\"textarea\"&&b===\"\"||F0(s,b)):(typeof b==\"number\"||typeof b==\"bigint\")&&(Vy(\"\"+b,u,!1),u!==\"body\"&&F0(s,\"\"+b));break;case\"className\":lo(s,\"class\",b);break;case\"tabIndex\":lo(s,\"tabindex\",b);break;case\"dir\":case\"role\":case\"viewBox\":case\"width\":case\"height\":lo(s,p,b);break;case\"style\":zA(s,b,T);break;case\"data\":if(u!==\"object\"){lo(s,\"data\",b);break}case\"src\":case\"href\":if(b===\"\"&&(u!==\"a\"||p!==\"href\")){console.error(p===\"src\"?\\'An empty string (\"\") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\':\\'An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\',p,p),s.removeAttribute(p);break}if(b==null||typeof b==\"function\"||typeof b==\"symbol\"||typeof b==\"boolean\"){s.removeAttribute(p);break}rt(b,p),b=yh(\"\"+b),s.setAttribute(p,b);break;case\"action\":case\"formAction\":if(b!=null&&(u===\"form\"?p===\"formAction\"?console.error(\"You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.\"):typeof b==\"function\"&&(S.encType==null&&S.method==null||yV||(yV=!0,console.error(\"Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.\")),S.target==null||gV||(gV=!0,console.error(\"Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.\"))):u===\"input\"||u===\"button\"?p===\"action\"?console.error(\"You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.\"):u!==\"input\"||S.type===\"submit\"||S.type===\"image\"||mV?u!==\"button\"||S.type==null||S.type===\"submit\"||mV?typeof b==\"function\"&&(S.name==null||ATe||(ATe=!0,console.error(\\'Cannot specify a \"name\" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.\\')),S.formEncType==null&&S.formMethod==null||yV||(yV=!0,console.error(\"Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.\")),S.formTarget==null||gV||(gV=!0,console.error(\"Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.\"))):(mV=!0,console.error(\\'A button can only specify a formAction along with type=\"submit\" or no type.\\')):(mV=!0,console.error(\\'An input can only specify a formAction along with type=\"submit\" or type=\"image\".\\')):console.error(p===\"action\"?\"You can only pass the action prop to <form>.\":\"You can only pass the formAction prop to <input> or <button>.\")),typeof b==\"function\"){s.setAttribute(p,\"javascript:throw new Error(\\'A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\\\\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().\\')\");break}else typeof T==\"function\"&&(p===\"formAction\"?(u!==\"input\"&&mo(s,u,\"name\",S.name,S,null),mo(s,u,\"formEncType\",S.formEncType,S,null),mo(s,u,\"formMethod\",S.formMethod,S,null),mo(s,u,\"formTarget\",S.formTarget,S,null)):(mo(s,u,\"encType\",S.encType,S,null),mo(s,u,\"method\",S.method,S,null),mo(s,u,\"target\",S.target,S,null)));if(b==null||typeof b==\"symbol\"||typeof b==\"boolean\"){s.removeAttribute(p);break}rt(b,p),b=yh(\"\"+b),s.setAttribute(p,b);break;case\"onClick\":b!=null&&(typeof b!=\"function\"&&Ii(p,b),s.onclick=Qi);break;case\"onScroll\":b!=null&&(typeof b!=\"function\"&&Ii(p,b),Wn(\"scroll\",s));break;case\"onScrollEnd\":b!=null&&(typeof b!=\"function\"&&Ii(p,b),Wn(\"scrollend\",s));break;case\"dangerouslySetInnerHTML\":if(b!=null){if(typeof b!=\"object\"||!(\"__html\"in b))throw Error(\"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.\");if(p=b.__html,p!=null){if(S.children!=null)throw Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");s.innerHTML=p}}break;case\"multiple\":s.multiple=b&&typeof b!=\"function\"&&typeof b!=\"symbol\";break;case\"muted\":s.muted=b&&typeof b!=\"function\"&&typeof b!=\"symbol\";break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":break;case\"autoFocus\":break;case\"xlinkHref\":if(b==null||typeof b==\"function\"||typeof b==\"boolean\"||typeof b==\"symbol\"){s.removeAttribute(\"xlink:href\");break}rt(b,p),p=yh(\"\"+b),s.setAttributeNS(n5,\"xlink:href\",p);break;case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":b!=null&&typeof b!=\"function\"&&typeof b!=\"symbol\"?(rt(b,p),s.setAttribute(p,\"\"+b)):s.removeAttribute(p);break;case\"inert\":b!==\"\"||bV[p]||(bV[p]=!0,console.error(\"Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.\",p));case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":b&&typeof b!=\"function\"&&typeof b!=\"symbol\"?s.setAttribute(p,\"\"):s.removeAttribute(p);break;case\"capture\":case\"download\":b===!0?s.setAttribute(p,\"\"):b!==!1&&b!=null&&typeof b!=\"function\"&&typeof b!=\"symbol\"?(rt(b,p),s.setAttribute(p,b)):s.removeAttribute(p);break;case\"cols\":case\"rows\":case\"size\":case\"span\":b!=null&&typeof b!=\"function\"&&typeof b!=\"symbol\"&&!isNaN(b)&&1<=b?(rt(b,p),s.setAttribute(p,b)):s.removeAttribute(p);break;case\"rowSpan\":case\"start\":b==null||typeof b==\"function\"||typeof b==\"symbol\"||isNaN(b)?s.removeAttribute(p):(rt(b,p),s.setAttribute(p,b));break;case\"popover\":Wn(\"beforetoggle\",s),Wn(\"toggle\",s),Fr(s,\"popover\",b);break;case\"xlinkActuate\":zs(s,n5,\"xlink:actuate\",b);break;case\"xlinkArcrole\":zs(s,n5,\"xlink:arcrole\",b);break;case\"xlinkRole\":zs(s,n5,\"xlink:role\",b);break;case\"xlinkShow\":zs(s,n5,\"xlink:show\",b);break;case\"xlinkTitle\":zs(s,n5,\"xlink:title\",b);break;case\"xlinkType\":zs(s,n5,\"xlink:type\",b);break;case\"xmlBase\":zs(s,use,\"xml:base\",b);break;case\"xmlLang\":zs(s,use,\"xml:lang\",b);break;case\"xmlSpace\":zs(s,use,\"xml:space\",b);break;case\"is\":T!=null&&console.error(\\'Cannot update the \"is\" prop after it has been initialized.\\'),Fr(s,\"is\",b);break;case\"innerText\":case\"textContent\":break;case\"popoverTarget\":STe||b==null||typeof b!=\"object\"||(STe=!0,console.error(\"The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.\",b));default:!(2<p.length)||p[0]!==\"o\"&&p[0]!==\"O\"||p[1]!==\"n\"&&p[1]!==\"N\"?(p=ap(p),Fr(s,p,b)):F6.hasOwnProperty(p)&&b!=null&&typeof b!=\"function\"&&Ii(p,b)}}function Td(s,u,p,b,S,T){switch(p){case\"style\":zA(s,b,T);break;case\"dangerouslySetInnerHTML\":if(b!=null){if(typeof b!=\"object\"||!(\"__html\"in b))throw Error(\"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.\");if(p=b.__html,p!=null){if(S.children!=null)throw Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");s.innerHTML=p}}break;case\"children\":typeof b==\"string\"?F0(s,b):(typeof b==\"number\"||typeof b==\"bigint\")&&F0(s,\"\"+b);break;case\"onScroll\":b!=null&&(typeof b!=\"function\"&&Ii(p,b),Wn(\"scroll\",s));break;case\"onScrollEnd\":b!=null&&(typeof b!=\"function\"&&Ii(p,b),Wn(\"scrollend\",s));break;case\"onClick\":b!=null&&(typeof b!=\"function\"&&Ii(p,b),s.onclick=Qi);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"innerHTML\":case\"ref\":break;case\"innerText\":case\"textContent\":break;default:if(F6.hasOwnProperty(p))b!=null&&typeof b!=\"function\"&&Ii(p,b);else e:{if(p[0]===\"o\"&&p[1]===\"n\"&&(S=p.endsWith(\"Capture\"),u=p.slice(2,S?p.length-7:void 0),T=s[Ip]||null,T=T!=null?T[p]:null,typeof T==\"function\"&&s.removeEventListener(u,T,S),typeof b==\"function\")){typeof T!=\"function\"&&T!==null&&(p in s?s[p]=null:s.hasAttribute(p)&&s.removeAttribute(p)),s.addEventListener(u,b,S);break e}p in s?s[p]=b:b===!0?s.setAttribute(p,\"\"):Fr(s,p,b)}}}function $i(s,u,p){switch(Zc(u,p),u){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"img\":Wn(\"error\",s),Wn(\"load\",s);var b=!1,S=!1,T;for(T in p)if(p.hasOwnProperty(T)){var j=p[T];if(j!=null)switch(T){case\"src\":b=!0;break;case\"srcSet\":S=!0;break;case\"children\":case\"dangerouslySetInnerHTML\":throw Error(u+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:mo(s,u,T,j,p,null)}}S&&mo(s,u,\"srcSet\",p.srcSet,p,null),b&&mo(s,u,\"src\",p.src,p,null);return;case\"input\":eo(\"input\",p),Wn(\"invalid\",s);var Y=T=j=S=null,ce=null,fe=null;for(b in p)if(p.hasOwnProperty(b)){var De=p[b];if(De!=null)switch(b){case\"name\":S=De;break;case\"type\":j=De;break;case\"checked\":ce=De;break;case\"defaultChecked\":fe=De;break;case\"value\":T=De;break;case\"defaultValue\":Y=De;break;case\"children\":case\"dangerouslySetInnerHTML\":if(De!=null)throw Error(u+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");break;default:mo(s,u,b,De,p,null)}}ln(s,p),Mo(s,T,Y,ce,fe,j,S,!1);return;case\"select\":eo(\"select\",p),Wn(\"invalid\",s),b=j=T=null;for(S in p)if(p.hasOwnProperty(S)&&(Y=p[S],Y!=null))switch(S){case\"value\":T=Y;break;case\"defaultValue\":j=Y;break;case\"multiple\":b=Y;default:mo(s,u,S,Y,p,null)}Dc(s,p),u=T,p=j,s.multiple=!!b,u!=null?da(s,!!b,u,!1):p!=null&&da(s,!!b,p,!0);return;case\"textarea\":eo(\"textarea\",p),Wn(\"invalid\",s),T=S=b=null;for(j in p)if(p.hasOwnProperty(j)&&(Y=p[j],Y!=null))switch(j){case\"value\":b=Y;break;case\"defaultValue\":S=Y;break;case\"children\":T=Y;break;case\"dangerouslySetInnerHTML\":if(Y!=null)throw Error(\"`dangerouslySetInnerHTML` does not make sense on <textarea>.\");break;default:mo(s,u,j,Y,p,null)}Ju(s,p),nf(s,b,S,T);return;case\"option\":js(s,p);for(ce in p)if(p.hasOwnProperty(ce)&&(b=p[ce],b!=null))switch(ce){case\"selected\":s.selected=b&&typeof b!=\"function\"&&typeof b!=\"symbol\";break;default:mo(s,u,ce,b,p,null)}return;case\"dialog\":Wn(\"beforetoggle\",s),Wn(\"toggle\",s),Wn(\"cancel\",s),Wn(\"close\",s);break;case\"iframe\":case\"object\":Wn(\"load\",s);break;case\"video\":case\"audio\":for(b=0;b<c9.length;b++)Wn(c9[b],s);break;case\"image\":Wn(\"error\",s),Wn(\"load\",s);break;case\"details\":Wn(\"toggle\",s);break;case\"embed\":case\"source\":case\"link\":Wn(\"error\",s),Wn(\"load\",s);case\"area\":case\"base\":case\"br\":case\"col\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"track\":case\"wbr\":case\"menuitem\":for(fe in p)if(p.hasOwnProperty(fe)&&(b=p[fe],b!=null))switch(fe){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(u+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:mo(s,u,fe,b,p,null)}return;default:if(gh(u)){for(De in p)p.hasOwnProperty(De)&&(b=p[De],b!==void 0&&Td(s,u,De,b,p,void 0));return}}for(Y in p)p.hasOwnProperty(Y)&&(b=p[Y],b!=null&&mo(s,u,Y,b,p,null))}function Sp(s,u,p,b){switch(Zc(u,b),u){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"input\":var S=null,T=null,j=null,Y=null,ce=null,fe=null,De=null;for(Ge in p){var Be=p[Ge];if(p.hasOwnProperty(Ge)&&Be!=null)switch(Ge){case\"checked\":break;case\"value\":break;case\"defaultValue\":ce=Be;default:b.hasOwnProperty(Ge)||mo(s,u,Ge,null,b,Be)}}for(var Te in b){var Ge=b[Te];if(Be=p[Te],b.hasOwnProperty(Te)&&(Ge!=null||Be!=null))switch(Te){case\"type\":T=Ge;break;case\"name\":S=Ge;break;case\"checked\":fe=Ge;break;case\"defaultChecked\":De=Ge;break;case\"value\":j=Ge;break;case\"defaultValue\":Y=Ge;break;case\"children\":case\"dangerouslySetInnerHTML\":if(Ge!=null)throw Error(u+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");break;default:Ge!==Be&&mo(s,u,Te,Ge,b,Be)}}u=p.type===\"checkbox\"||p.type===\"radio\"?p.checked!=null:p.value!=null,b=b.type===\"checkbox\"||b.type===\"radio\"?b.checked!=null:b.value!=null,u||!b||ETe||(console.error(\"A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components\"),ETe=!0),!u||b||xTe||(console.error(\"A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components\"),xTe=!0),ld(s,j,Y,ce,fe,De,T,S);return;case\"select\":Ge=j=Y=Te=null;for(T in p)if(ce=p[T],p.hasOwnProperty(T)&&ce!=null)switch(T){case\"value\":break;case\"multiple\":Ge=ce;default:b.hasOwnProperty(T)||mo(s,u,T,null,b,ce)}for(S in b)if(T=b[S],ce=p[S],b.hasOwnProperty(S)&&(T!=null||ce!=null))switch(S){case\"value\":Te=T;break;case\"defaultValue\":Y=T;break;case\"multiple\":j=T;default:T!==ce&&mo(s,u,S,T,b,ce)}b=Y,u=j,p=Ge,Te!=null?da(s,!!u,Te,!1):!!p!=!!u&&(b!=null?da(s,!!u,b,!0):da(s,!!u,u?[]:\"\",!1));return;case\"textarea\":Ge=Te=null;for(Y in p)if(S=p[Y],p.hasOwnProperty(Y)&&S!=null&&!b.hasOwnProperty(Y))switch(Y){case\"value\":break;case\"children\":break;default:mo(s,u,Y,null,b,S)}for(j in b)if(S=b[j],T=p[j],b.hasOwnProperty(j)&&(S!=null||T!=null))switch(j){case\"value\":Te=S;break;case\"defaultValue\":Ge=S;break;case\"children\":break;case\"dangerouslySetInnerHTML\":if(S!=null)throw Error(\"`dangerouslySetInnerHTML` does not make sense on <textarea>.\");break;default:S!==T&&mo(s,u,j,S,b,T)}Bc(s,Te,Ge);return;case\"option\":for(var Wt in p)if(Te=p[Wt],p.hasOwnProperty(Wt)&&Te!=null&&!b.hasOwnProperty(Wt))switch(Wt){case\"selected\":s.selected=!1;break;default:mo(s,u,Wt,null,b,Te)}for(ce in b)if(Te=b[ce],Ge=p[ce],b.hasOwnProperty(ce)&&Te!==Ge&&(Te!=null||Ge!=null))switch(ce){case\"selected\":s.selected=Te&&typeof Te!=\"function\"&&typeof Te!=\"symbol\";break;default:mo(s,u,ce,Te,b,Ge)}return;case\"img\":case\"link\":case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":case\"menuitem\":for(var Jt in p)Te=p[Jt],p.hasOwnProperty(Jt)&&Te!=null&&!b.hasOwnProperty(Jt)&&mo(s,u,Jt,null,b,Te);for(fe in b)if(Te=b[fe],Ge=p[fe],b.hasOwnProperty(fe)&&Te!==Ge&&(Te!=null||Ge!=null))switch(fe){case\"children\":case\"dangerouslySetInnerHTML\":if(Te!=null)throw Error(u+\" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");break;default:mo(s,u,fe,Te,b,Ge)}return;default:if(gh(u)){for(var ga in p)Te=p[ga],p.hasOwnProperty(ga)&&Te!==void 0&&!b.hasOwnProperty(ga)&&Td(s,u,ga,void 0,b,Te);for(De in b)Te=b[De],Ge=p[De],!b.hasOwnProperty(De)||Te===Ge||Te===void 0&&Ge===void 0||Td(s,u,De,Te,b,Ge);return}}for(var go in p)Te=p[go],p.hasOwnProperty(go)&&Te!=null&&!b.hasOwnProperty(go)&&mo(s,u,go,null,b,Te);for(Be in b)Te=b[Be],Ge=p[Be],!b.hasOwnProperty(Be)||Te===Ge||Te==null&&Ge==null||mo(s,u,Be,Te,b,Ge)}function _p(s){switch(s){case\"class\":return\"className\";case\"for\":return\"htmlFor\";default:return s}}function Ih(s){var u={};s=s.style;for(var p=0;p<s.length;p++){var b=s[p];u[b]=s.getPropertyValue(b)}return u}function Tp(s,u,p){if(u!=null&&typeof u!=\"object\")console.error(\"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \\'em\\'}} when using JSX.\");else{var b,S=b=\"\",T;for(T in u)if(u.hasOwnProperty(T)){var j=u[T];j!=null&&typeof j!=\"boolean\"&&j!==\"\"&&(T.indexOf(\"--\")===0?(wt(j,T),b+=S+T+\":\"+(\"\"+j).trim()):typeof j!=\"number\"||j===0||BSe.has(T)?(wt(j,T),b+=S+T.replace(OSe,\"-$1\").toLowerCase().replace(NSe,\"-ms-\")+\":\"+(\"\"+j).trim()):b+=S+T.replace(OSe,\"-$1\").toLowerCase().replace(NSe,\"-ms-\")+\":\"+j+\"px\",S=\";\")}b=b||null,u=s.getAttribute(\"style\"),u!==b&&(b=Pr(b),Pr(u)!==b&&(p.style=Ih(s)))}}function Es(s,u,p,b,S,T){if(S.delete(p),s=s.getAttribute(p),s===null)switch(typeof b){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":return}else if(b!=null)switch(typeof b){case\"function\":case\"symbol\":case\"boolean\":break;default:if(rt(b,u),s===\"\"+b)return}ai(u,s,b,T)}function kh(s,u,p,b,S,T){if(S.delete(p),s=s.getAttribute(p),s===null){switch(typeof b){case\"function\":case\"symbol\":return}if(!b)return}else switch(typeof b){case\"function\":case\"symbol\":break;default:if(b)return}ai(u,s,b,T)}function Vm(s,u,p,b,S,T){if(S.delete(p),s=s.getAttribute(p),s===null)switch(typeof b){case\"undefined\":case\"function\":case\"symbol\":return}else if(b!=null)switch(typeof b){case\"function\":case\"symbol\":break;default:if(rt(b,p),s===\"\"+b)return}ai(u,s,b,T)}function yb(s,u,p,b,S,T){if(S.delete(p),s=s.getAttribute(p),s===null)switch(typeof b){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":return;default:if(isNaN(b))return}else if(b!=null)switch(typeof b){case\"function\":case\"symbol\":case\"boolean\":break;default:if(!isNaN(b)&&(rt(b,u),s===\"\"+b))return}ai(u,s,b,T)}function bb(s,u,p,b,S,T){if(S.delete(p),s=s.getAttribute(p),s===null)switch(typeof b){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":return}else if(b!=null)switch(typeof b){case\"function\":case\"symbol\":case\"boolean\":break;default:if(rt(b,u),p=yh(\"\"+b),s===p)return}ai(u,s,b,T)}function Gm(s,u,p,b){for(var S={},T=new Set,j=s.attributes,Y=0;Y<j.length;Y++)switch(j[Y].name.toLowerCase()){case\"value\":break;case\"checked\":break;case\"selected\":break;default:T.add(j[Y].name)}if(gh(u)){for(var ce in p)if(p.hasOwnProperty(ce)){var fe=p[ce];if(fe!=null){if(F6.hasOwnProperty(ce))typeof fe!=\"function\"&&Ii(ce,fe);else if(p.suppressHydrationWarning!==!0)switch(ce){case\"children\":typeof fe!=\"string\"&&typeof fe!=\"number\"||ai(\"children\",s.textContent,fe,S);continue;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":continue;case\"dangerouslySetInnerHTML\":j=s.innerHTML,fe=fe?fe.__html:void 0,fe!=null&&(fe=Ei(s,fe),ai(ce,j,fe,S));continue;case\"style\":T.delete(ce),Tp(s,fe,S);continue;case\"offsetParent\":case\"offsetTop\":case\"offsetLeft\":case\"offsetWidth\":case\"offsetHeight\":case\"isContentEditable\":case\"outerText\":case\"outerHTML\":T.delete(ce.toLowerCase()),console.error(\"Assignment to read-only property will result in a no-op: `%s`\",ce);continue;case\"className\":T.delete(\"class\"),j=Eo(s,\"class\",fe),ai(\"className\",j,fe,S);continue;default:b.context===I2&&u!==\"svg\"&&u!==\"math\"?T.delete(ce.toLowerCase()):T.delete(ce),j=Eo(s,ce,fe),ai(ce,j,fe,S)}}}}else for(fe in p)if(p.hasOwnProperty(fe)&&(ce=p[fe],ce!=null)){if(F6.hasOwnProperty(fe))typeof ce!=\"function\"&&Ii(fe,ce);else if(p.suppressHydrationWarning!==!0)switch(fe){case\"children\":typeof ce!=\"string\"&&typeof ce!=\"number\"||ai(\"children\",s.textContent,ce,S);continue;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"value\":case\"checked\":case\"selected\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":continue;case\"dangerouslySetInnerHTML\":j=s.innerHTML,ce=ce?ce.__html:void 0,ce!=null&&(ce=Ei(s,ce),j!==ce&&(S[fe]={__html:j}));continue;case\"className\":Es(s,fe,\"class\",ce,T,S);continue;case\"tabIndex\":Es(s,fe,\"tabindex\",ce,T,S);continue;case\"style\":T.delete(fe),Tp(s,ce,S);continue;case\"multiple\":T.delete(fe),ai(fe,s.multiple,ce,S);continue;case\"muted\":T.delete(fe),ai(fe,s.muted,ce,S);continue;case\"autoFocus\":T.delete(\"autofocus\"),ai(fe,s.autofocus,ce,S);continue;case\"data\":if(u!==\"object\"){T.delete(fe),j=s.getAttribute(\"data\"),ai(fe,j,ce,S);continue}case\"src\":case\"href\":if(!(ce!==\"\"||u===\"a\"&&fe===\"href\"||u===\"object\"&&fe===\"data\")){console.error(fe===\"src\"?\\'An empty string (\"\") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\':\\'An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\',fe,fe);continue}bb(s,fe,fe,ce,T,S);continue;case\"action\":case\"formAction\":if(j=s.getAttribute(fe),typeof ce==\"function\"){T.delete(fe.toLowerCase()),fe===\"formAction\"?(T.delete(\"name\"),T.delete(\"formenctype\"),T.delete(\"formmethod\"),T.delete(\"formtarget\")):(T.delete(\"enctype\"),T.delete(\"method\"),T.delete(\"target\"));continue}else if(j===Fgt){T.delete(fe.toLowerCase()),ai(fe,\"function\",ce,S);continue}bb(s,fe,fe.toLowerCase(),ce,T,S);continue;case\"xlinkHref\":bb(s,fe,\"xlink:href\",ce,T,S);continue;case\"contentEditable\":Vm(s,fe,\"contenteditable\",ce,T,S);continue;case\"spellCheck\":Vm(s,fe,\"spellcheck\",ce,T,S);continue;case\"draggable\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":Vm(s,fe,fe,ce,T,S);continue;case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":kh(s,fe,fe.toLowerCase(),ce,T,S);continue;case\"capture\":case\"download\":e:{Y=s;var De=j=fe,Be=S;if(T.delete(De),Y=Y.getAttribute(De),Y===null)switch(typeof ce){case\"undefined\":case\"function\":case\"symbol\":break e;default:if(ce===!1)break e}else if(ce!=null)switch(typeof ce){case\"function\":case\"symbol\":break;case\"boolean\":if(ce===!0&&Y===\"\")break e;break;default:if(rt(ce,j),Y===\"\"+ce)break e}ai(j,Y,ce,Be)}continue;case\"cols\":case\"rows\":case\"size\":case\"span\":e:{if(Y=s,De=j=fe,Be=S,T.delete(De),Y=Y.getAttribute(De),Y===null)switch(typeof ce){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":break e;default:if(isNaN(ce)||1>ce)break e}else if(ce!=null)switch(typeof ce){case\"function\":case\"symbol\":case\"boolean\":break;default:if(!(isNaN(ce)||1>ce)&&(rt(ce,j),Y===\"\"+ce))break e}ai(j,Y,ce,Be)}continue;case\"rowSpan\":yb(s,fe,\"rowspan\",ce,T,S);continue;case\"start\":yb(s,fe,fe,ce,T,S);continue;case\"xHeight\":Es(s,fe,\"x-height\",ce,T,S);continue;case\"xlinkActuate\":Es(s,fe,\"xlink:actuate\",ce,T,S);continue;case\"xlinkArcrole\":Es(s,fe,\"xlink:arcrole\",ce,T,S);continue;case\"xlinkRole\":Es(s,fe,\"xlink:role\",ce,T,S);continue;case\"xlinkShow\":Es(s,fe,\"xlink:show\",ce,T,S);continue;case\"xlinkTitle\":Es(s,fe,\"xlink:title\",ce,T,S);continue;case\"xlinkType\":Es(s,fe,\"xlink:type\",ce,T,S);continue;case\"xmlBase\":Es(s,fe,\"xml:base\",ce,T,S);continue;case\"xmlLang\":Es(s,fe,\"xml:lang\",ce,T,S);continue;case\"xmlSpace\":Es(s,fe,\"xml:space\",ce,T,S);continue;case\"inert\":ce!==\"\"||bV[fe]||(bV[fe]=!0,console.error(\"Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.\",fe)),kh(s,fe,fe,ce,T,S);continue;default:if(!(2<fe.length)||fe[0]!==\"o\"&&fe[0]!==\"O\"||fe[1]!==\"n\"&&fe[1]!==\"N\"){Y=ap(fe),j=!1,b.context===I2&&u!==\"svg\"&&u!==\"math\"?T.delete(Y.toLowerCase()):(De=fe.toLowerCase(),De=kW.hasOwnProperty(De)&&kW[De]||null,De!==null&&De!==fe&&(j=!0,T.delete(De)),T.delete(Y));e:if(De=s,Be=Y,Y=ce,Ur(Be))if(De.hasAttribute(Be))De=De.getAttribute(Be),rt(Y,Be),Y=De===\"\"+Y?Y:De;else{switch(typeof Y){case\"function\":case\"symbol\":break e;case\"boolean\":if(De=Be.toLowerCase().slice(0,5),De!==\"data-\"&&De!==\"aria-\")break e}Y=Y===void 0?void 0:null}else Y=void 0;j||ai(fe,Y,ce,S)}}}return 0<T.size&&p.suppressHydrationWarning!==!0&&lg(s,T,S),Object.keys(S).length===0?null:S}function dg(s,u){switch(s.length){case 0:return\"\";case 1:return s[0];case 2:return s[0]+\" \"+u+\" \"+s[1];default:return s.slice(0,-1).join(\", \")+\", \"+u+\" \"+s[s.length-1]}}function Cp(s){switch(s){case\"css\":case\"script\":case\"font\":case\"img\":case\"image\":case\"input\":case\"link\":return!0;default:return!1}}function yf(){if(typeof performance.getEntriesByType==\"function\"){for(var s=0,u=0,p=performance.getEntriesByType(\"resource\"),b=0;b<p.length;b++){var S=p[b],T=S.transferSize,j=S.initiatorType,Y=S.duration;if(T&&Y&&Cp(j)){for(j=0,Y=S.responseEnd,b+=1;b<p.length;b++){var ce=p[b],fe=ce.startTime;if(fe>Y)break;var De=ce.transferSize,Be=ce.initiatorType;De&&Cp(Be)&&(ce=ce.responseEnd,j+=De*(ce<Y?1:(Y-fe)/(ce-fe)))}if(--b,u+=8*(T+j)/(S.duration/1e3),s++,10<s)break}}if(0<s)return u/s/1e6}return navigator.connection&&(s=navigator.connection.downlink,typeof s==\"number\")?s:5}function xu(s){return s.nodeType===9?s:s.ownerDocument}function As(s){switch(s){case z4:return y8;case IW:return wV;default:return I2}}function Oh(s,u){if(s===I2)switch(u){case\"svg\":return y8;case\"math\":return wV;default:return I2}return s===y8&&u===\"foreignObject\"?I2:s}function vb(s,u){return s===\"textarea\"||s===\"noscript\"||typeof u.children==\"string\"||typeof u.children==\"number\"||typeof u.children==\"bigint\"||typeof u.dangerouslySetInnerHTML==\"object\"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}function SS(){var s=window.event;return s&&s.type===\"popstate\"?s===pse?!1:(pse=s,!0):(pse=null,!1)}function Nh(){var s=window.event;return s&&s!==d9?s.type:null}function Tv(){var s=window.event;return s&&s!==d9?s.timeStamp:-1.1}function wb(s){setTimeout(function(){throw s})}function k4(s,u,p){switch(u){case\"button\":case\"input\":case\"select\":case\"textarea\":p.autoFocus&&s.focus();break;case\"img\":p.src?s.src=p.src:p.srcSet&&(s.srcset=p.srcSet)}}function f2(){}function _S(s,u,p,b){Sp(s,u,p,b),s[Ip]=b}function p2(s){F0(s,\"\")}function lW(s,u,p){s.nodeValue=p}function N6(s){if(!s.__reactWarnedAboutChildrenConflict){var u=s[Ip]||null;if(u!==null){var p=Yt(s);p!==null&&(typeof u.children==\"string\"||typeof u.children==\"number\"?(s.__reactWarnedAboutChildrenConflict=!0,_e(p,function(){console.error(\\'Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets \"children\" text content using React. It should be a leaf with no children. Otherwise it\\\\\\'s ambiguous which children should be used.\\')})):u.dangerouslySetInnerHTML!=null&&(s.__reactWarnedAboutChildrenConflict=!0,_e(p,function(){console.error(\\'Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets \"dangerouslySetInnerHTML\" using React. It should be a leaf with no children. Otherwise it\\\\\\'s ambiguous which children should be used.\\')})))}}}function fg(s){return s===\"head\"}function P6(s,u){s.removeChild(u)}function Pie(s,u){(s.nodeType===9?s.body:s.nodeName===\"HTML\"?s.ownerDocument.body:s).removeChild(u)}function dW(s,u){var p=u,b=0;do{var S=p.nextSibling;if(s.removeChild(p),S&&S.nodeType===8)if(p=S.data,p===l9||p===vV){if(b===0){s.removeChild(S),D4(u);return}b--}else if(p===u9||p===QS||p===o5||p===g8||p===r5)b++;else if(p===zgt)TS(s.ownerDocument.documentElement);else if(p===Wgt){p=s.ownerDocument.head,TS(p);for(var T=p.firstChild;T;){var j=T.nextSibling,Y=T.nodeName;T[S7]||Y===\"SCRIPT\"||Y===\"STYLE\"||Y===\"LINK\"&&T.rel.toLowerCase()===\"stylesheet\"||p.removeChild(T),T=j}}else p===jgt&&TS(s.ownerDocument.body);p=S}while(p);D4(u)}function l7(s,u){var p=s;s=0;do{var b=p.nextSibling;if(p.nodeType===1?u?(p._stashedDisplay=p.style.display,p.style.display=\"none\"):(p.style.display=p._stashedDisplay||\"\",p.getAttribute(\"style\")===\"\"&&p.removeAttribute(\"style\")):p.nodeType===3&&(u?(p._stashedText=p.nodeValue,p.nodeValue=\"\"):p.nodeValue=p._stashedText||\"\"),b&&b.nodeType===8)if(p=b.data,p===l9){if(s===0)break;s--}else p!==u9&&p!==QS&&p!==o5&&p!==g8||s++;p=b}while(p)}function M6(s){l7(s,!0)}function D6(s){s=s.style,typeof s.setProperty==\"function\"?s.setProperty(\"display\",\"none\",\"important\"):s.display=\"none\"}function B6(s){s.nodeValue=\"\"}function O4(s){l7(s,!1)}function Cv(s,u){u=u[Vgt],u=u!=null&&u.hasOwnProperty(\"display\")?u.display:null,s.style.display=u==null||typeof u==\"boolean\"?\"\":(\"\"+u).trim()}function Mie(s,u){s.nodeValue=u}function Eu(s){var u=s.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var p=u;switch(u=u.nextSibling,p.nodeName){case\"HTML\":case\"HEAD\":case\"BODY\":Eu(p),bt(p);continue;case\"SCRIPT\":case\"STYLE\":continue;case\"LINK\":if(p.rel.toLowerCase()===\"stylesheet\")continue}s.removeChild(p)}}function ul(s,u,p,b){for(;s.nodeType===1;){var S=p;if(s.nodeName.toLowerCase()!==u.toLowerCase()){if(!b&&(s.nodeName!==\"INPUT\"||s.type!==\"hidden\"))break}else if(b){if(!s[S7])switch(u){case\"meta\":if(!s.hasAttribute(\"itemprop\"))break;return s;case\"link\":if(T=s.getAttribute(\"rel\"),T===\"stylesheet\"&&s.hasAttribute(\"data-precedence\"))break;if(T!==S.rel||s.getAttribute(\"href\")!==(S.href==null||S.href===\"\"?null:S.href)||s.getAttribute(\"crossorigin\")!==(S.crossOrigin==null?null:S.crossOrigin)||s.getAttribute(\"title\")!==(S.title==null?null:S.title))break;return s;case\"style\":if(s.hasAttribute(\"data-precedence\"))break;return s;case\"script\":if(T=s.getAttribute(\"src\"),(T!==(S.src==null?null:S.src)||s.getAttribute(\"type\")!==(S.type==null?null:S.type)||s.getAttribute(\"crossorigin\")!==(S.crossOrigin==null?null:S.crossOrigin))&&T&&s.hasAttribute(\"async\")&&!s.hasAttribute(\"itemprop\"))break;return s;default:return s}}else if(u===\"input\"&&s.type===\"hidden\"){rt(S.name,\"name\");var T=S.name==null?null:\"\"+S.name;if(S.type===\"hidden\"&&s.getAttribute(\"name\")===T)return s}else return s;if(s=bf(s.nextSibling),s===null)break}return null}function fW(s,u,p){if(u===\"\")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!==\"INPUT\"||s.type!==\"hidden\")&&!p||(s=bf(s.nextSibling),s===null))return null;return s}function h2(s,u){for(;s.nodeType!==8;)if((s.nodeType!==1||s.nodeName!==\"INPUT\"||s.type!==\"hidden\")&&!u||(s=bf(s.nextSibling),s===null))return null;return s}function L6(s){return s.data===QS||s.data===o5}function xb(s){return s.data===g8||s.data===QS&&s.ownerDocument.readyState!==TTe}function d7(s,u){var p=s.ownerDocument;if(s.data===o5)s._reactRetry=u;else if(s.data!==QS||p.readyState!==TTe)u();else{var b=function(){u(),p.removeEventListener(\"DOMContentLoaded\",b)};p.addEventListener(\"DOMContentLoaded\",b),s._reactRetry=b}}function bf(s){for(;s!=null;s=s.nextSibling){var u=s.nodeType;if(u===1||u===3)break;if(u===8){if(u=s.data,u===u9||u===g8||u===QS||u===o5||u===r5||u===lse||u===_Te)break;if(u===l9||u===vV)return null}}return s}function Rv(s){if(s.nodeType===1){for(var u=s.nodeName.toLowerCase(),p={},b=s.attributes,S=0;S<b.length;S++){var T=b[S];p[_p(T.name)]=T.name.toLowerCase()===\"style\"?Ih(s):T.value}return{type:u,props:p}}return s.nodeType===8?s.data===r5?{type:\"Activity\",props:{}}:{type:\"Suspense\",props:{}}:s.nodeValue}function N4(s,u,p){return p===null||p[Hgt]!==!0?(s.nodeValue===u?s=null:(u=Pr(u),s=Pr(s.nodeValue)===u?null:s.nodeValue),s):null}function U6(s){s=s.nextSibling;for(var u=0;s;){if(s.nodeType===8){var p=s.data;if(p===l9||p===vV){if(u===0)return bf(s.nextSibling);u--}else p!==u9&&p!==g8&&p!==QS&&p!==o5&&p!==r5||u++}s=s.nextSibling}return null}function f7(s){s=s.previousSibling;for(var u=0;s;){if(s.nodeType===8){var p=s.data;if(p===u9||p===g8||p===QS||p===o5||p===r5){if(u===0)return s;u--}else p!==l9&&p!==vV||u++}s=s.previousSibling}return null}function p7(s){D4(s)}function pW(s){D4(s)}function h7(s){D4(s)}function m7(s,u,p,b,S){switch(S&&Mx(s,b.ancestorInfo),u=xu(p),s){case\"html\":if(s=u.documentElement,!s)throw Error(\"React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.\");return s;case\"head\":if(s=u.head,!s)throw Error(\"React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.\");return s;case\"body\":if(s=u.body,!s)throw Error(\"React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.\");return s;default:throw Error(\"resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.\")}}function g7(s,u,p,b){if(!p[kS]&&Yt(p)){var S=p.tagName.toLowerCase();console.error(\"You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.\",S,S,S)}switch(s){case\"html\":case\"head\":case\"body\":break;default:console.error(\"acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.\")}for(S=p.attributes;S.length;)p.removeAttributeNode(S[0]);$i(p,s,u),p[Cd]=b,p[Ip]=u}function TS(s){for(var u=s.attributes;u.length;)s.removeAttributeNode(u[0]);bt(s)}function Eb(s){return typeof s.getRootNode==\"function\"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}function Ph(s,u,p){var b=b8;if(b&&typeof u==\"string\"&&u){var S=Tr(u);S=\\'link[rel=\"\\'+s+\\'\"][href=\"\\'+S+\\'\"]\\',typeof p==\"string\"&&(S+=\\'[crossorigin=\"\\'+p+\\'\"]\\'),NTe.has(S)||(NTe.add(S),s={rel:s,crossOrigin:p,href:u},b.querySelector(S)===null&&(u=b.createElement(\"link\"),$i(u,\"link\",s),zt(u),b.head.appendChild(u)))}}function y7(s,u,p,b){var S=(S=RS.current)?Eb(S):null;if(!S)throw Error(\\'\"resourceRoot\" was expected to exist. This is a bug in React.\\');switch(s){case\"meta\":case\"title\":return null;case\"style\":return typeof p.precedence==\"string\"&&typeof p.href==\"string\"?(p=P4(p.href),u=ir(S).hoistableStyles,b=u.get(p),b||(b={type:\"style\",instance:null,count:0,state:null},u.set(p,b)),b):{type:\"void\",instance:null,count:0,state:null};case\"link\":if(p.rel===\"stylesheet\"&&typeof p.href==\"string\"&&typeof p.precedence==\"string\"){s=P4(p.href);var T=ir(S).hoistableStyles,j=T.get(s);if(!j&&(S=S.ownerDocument||S,j={type:\"stylesheet\",instance:null,count:0,state:{loading:a5,preload:null}},T.set(s,j),(T=S.querySelector(b7(s)))&&!T._p&&(j.instance=T,j.state.loading=f9|Ag),!Sg.has(s))){var Y={rel:\"preload\",as:\"style\",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy};Sg.set(s,Y),T||Zmt(S,s,Y,j.state)}if(u&&b===null)throw p=`\\n\\n  - `+hW(u)+`\\n  + `+hW(p),Error(\"Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key.\"+p);return j}if(u&&b!==null)throw p=`\\n\\n  - `+hW(u)+`\\n  + `+hW(p),Error(\"Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key.\"+p);return null;case\"script\":return u=p.async,p=p.src,typeof p==\"string\"&&u&&typeof u!=\"function\"&&typeof u!=\"symbol\"?(p=M4(p),u=ir(S).hoistableScripts,b=u.get(p),b||(b={type:\"script\",instance:null,count:0,state:null},u.set(p,b)),b):{type:\"void\",instance:null,count:0,state:null};default:throw Error(\\'getResource encountered a type it did not expect: \"\\'+s+\\'\". this is a bug in React.\\')}}function hW(s){var u=0,p=\"<link\";return typeof s.rel==\"string\"?(u++,p+=\\' rel=\"\\'+s.rel+\\'\"\\'):Ab.call(s,\"rel\")&&(u++,p+=\\' rel=\"\\'+(s.rel===null?\"null\":\"invalid type \"+typeof s.rel)+\\'\"\\'),typeof s.href==\"string\"?(u++,p+=\\' href=\"\\'+s.href+\\'\"\\'):Ab.call(s,\"href\")&&(u++,p+=\\' href=\"\\'+(s.href===null?\"null\":\"invalid type \"+typeof s.href)+\\'\"\\'),typeof s.precedence==\"string\"?(u++,p+=\\' precedence=\"\\'+s.precedence+\\'\"\\'):Ab.call(s,\"precedence\")&&(u++,p+=\" precedence={\"+(s.precedence===null?\"null\":\"invalid type \"+typeof s.precedence)+\"}\"),Object.getOwnPropertyNames(s).length>u&&(p+=\" ...\"),p+\" />\"}function P4(s){return\\'href=\"\\'+Tr(s)+\\'\"\\'}function b7(s){return\\'link[rel=\"stylesheet\"][\\'+s+\"]\"}function VAe(s){return jr({},s,{\"data-precedence\":s.precedence,precedence:null})}function Zmt(s,u,p,b){s.querySelector(\\'link[rel=\"preload\"][as=\"style\"][\\'+u+\"]\")?b.loading=f9:(u=s.createElement(\"link\"),b.preload=u,u.addEventListener(\"load\",function(){return b.loading|=f9}),u.addEventListener(\"error\",function(){return b.loading|=kTe}),$i(u,\"link\",p),zt(u),s.head.appendChild(u))}function M4(s){return\\'[src=\"\\'+Tr(s)+\\'\"]\\'}function v7(s){return\"script[async]\"+s}function GAe(s,u,p){if(u.count++,u.instance===null)switch(u.type){case\"style\":var b=s.querySelector(\\'style[data-href~=\"\\'+Tr(p.href)+\\'\"]\\');if(b)return u.instance=b,zt(b),b;var S=jr({},p,{\"data-href\":p.href,\"data-precedence\":p.precedence,href:null,precedence:null});return b=(s.ownerDocument||s).createElement(\"style\"),zt(b),$i(b,\"style\",S),mW(b,p.precedence,s),u.instance=b;case\"stylesheet\":S=P4(p.href);var T=s.querySelector(b7(S));if(T)return u.state.loading|=Ag,u.instance=T,zt(T),T;b=VAe(p),(S=Sg.get(S))&&Die(b,S),T=(s.ownerDocument||s).createElement(\"link\"),zt(T);var j=T;return j._p=new Promise(function(Y,ce){j.onload=Y,j.onerror=ce}),$i(T,\"link\",b),u.state.loading|=Ag,mW(T,p.precedence,s),u.instance=T;case\"script\":return T=M4(p.src),(S=s.querySelector(v7(T)))?(u.instance=S,zt(S),S):(b=p,(S=Sg.get(T))&&(b=jr({},p),Bie(b,S)),s=s.ownerDocument||s,S=s.createElement(\"script\"),zt(S),$i(S,\"link\",b),s.head.appendChild(S),u.instance=S);case\"void\":return null;default:throw Error(\\'acquireResource encountered a resource type it did not expect: \"\\'+u.type+\\'\". this is a bug in React.\\')}else u.type===\"stylesheet\"&&(u.state.loading&Ag)===a5&&(b=u.instance,u.state.loading|=Ag,mW(b,p.precedence,s));return u.instance}function mW(s,u,p){for(var b=p.querySelectorAll(\\'link[rel=\"stylesheet\"][data-precedence],style[data-precedence]\\'),S=b.length?b[b.length-1]:null,T=S,j=0;j<b.length;j++){var Y=b[j];if(Y.dataset.precedence===u)T=Y;else if(T!==S)break}T?T.parentNode.insertBefore(s,T.nextSibling):(u=p.nodeType===9?p.head:p,u.insertBefore(s,u.firstChild))}function Die(s,u){s.crossOrigin==null&&(s.crossOrigin=u.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=u.referrerPolicy),s.title==null&&(s.title=u.title)}function Bie(s,u){s.crossOrigin==null&&(s.crossOrigin=u.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=u.referrerPolicy),s.integrity==null&&(s.integrity=u.integrity)}function qAe(s,u,p){if(xV===null){var b=new Map,S=xV=new Map;S.set(p,b)}else S=xV,b=S.get(p),b||(b=new Map,S.set(p,b));if(b.has(s))return b;for(b.set(s,null),p=p.getElementsByTagName(s),S=0;S<p.length;S++){var T=p[S];if(!(T[S7]||T[Cd]||s===\"link\"&&T.getAttribute(\"rel\")===\"stylesheet\")&&T.namespaceURI!==z4){var j=T.getAttribute(u)||\"\";j=s+j;var Y=b.get(j);Y?Y.push(T):b.set(j,[T])}}return b}function KAe(s,u,p){s=s.ownerDocument||s,s.head.insertBefore(p,u===\"title\"?s.querySelector(\"head > title\"):null)}function Qmt(s,u,p){var b=!p.ancestorInfo.containerTagInScope;if(p.context===y8||u.itemProp!=null)return!b||u.itemProp==null||s!==\"meta\"&&s!==\"title\"&&s!==\"style\"&&s!==\"link\"&&s!==\"script\"||console.error(\"Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.\",s,s),!1;switch(s){case\"meta\":case\"title\":return!0;case\"style\":if(typeof u.precedence!=\"string\"||typeof u.href!=\"string\"||u.href===\"\"){b&&console.error(\\'Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel=\"stylesheet\" ...> tags.  Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence=\"default\"` and `href=\"some unique resource identifier\"`.\\');break}return!0;case\"link\":if(typeof u.rel!=\"string\"||typeof u.href!=\"string\"||u.href===\"\"||u.onLoad||u.onError){if(u.rel===\"stylesheet\"&&typeof u.precedence==\"string\"){s=u.href;var S=u.onError,T=u.disabled;p=[],u.onLoad&&p.push(\"`onLoad`\"),S&&p.push(\"`onError`\"),T!=null&&p.push(\"`disabled`\"),S=dg(p,\"and\"),S+=p.length===1?\" prop\":\" props\",T=p.length===1?\"an \"+S:\"the \"+S,p.length&&console.error(\\'React encountered a <link rel=\"stylesheet\" href=\"%s\" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.\\',s,T,S)}b&&(typeof u.rel!=\"string\"||typeof u.href!=\"string\"||u.href===\"\"?console.error(\"Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag\"):(u.onError||u.onLoad)&&console.error(\"Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.\"));break}switch(u.rel){case\"stylesheet\":return s=u.precedence,u=u.disabled,typeof s!=\"string\"&&b&&console.error(\\'Cannot render a <link rel=\"stylesheet\" /> outside the main document without knowing its precedence. Consider adding precedence=\"default\" or moving it into the root <head> tag.\\'),typeof s==\"string\"&&u==null;default:return!0}case\"script\":if(s=u.async&&typeof u.async!=\"function\"&&typeof u.async!=\"symbol\",!s||u.onLoad||u.onError||!u.src||typeof u.src!=\"string\"){b&&(s?u.onLoad||u.onError?console.error(\"Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.\"):console.error(\"Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>.\"):console.error(\\'Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async=\"\" or moving it into the root <head> tag.\\'));break}return!0;case\"noscript\":case\"template\":b&&console.error(\"Cannot render <%s> outside the main document. Try moving it into the root <head> tag.\",s)}return!1}function YAe(s){return!(s.type===\"stylesheet\"&&(s.state.loading&OTe)===a5)}function Jmt(s,u,p,b){if(p.type===\"stylesheet\"&&(typeof b.media!=\"string\"||matchMedia(b.media).matches!==!1)&&(p.state.loading&Ag)===a5){if(p.instance===null){var S=P4(b.href),T=u.querySelector(b7(S));if(T){u=T._p,u!==null&&typeof u==\"object\"&&typeof u.then==\"function\"&&(s.count++,s=gW.bind(s),u.then(s,s)),p.state.loading|=Ag,p.instance=T,zt(T);return}T=u.ownerDocument||u,b=VAe(b),(S=Sg.get(S))&&Die(b,S),T=T.createElement(\"link\"),zt(T);var j=T;j._p=new Promise(function(Y,ce){j.onload=Y,j.onerror=ce}),$i(T,\"link\",b),p.instance=T}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(p,u),(u=p.state.preload)&&(p.state.loading&OTe)===a5&&(s.count++,p=gW.bind(s),u.addEventListener(\"load\",p),u.addEventListener(\"error\",p))}}function Xmt(s,u){return s.stylesheets&&s.count===0&&yW(s,s.stylesheets),0<s.count||0<s.imgCount?function(p){var b=setTimeout(function(){if(s.stylesheets&&yW(s,s.stylesheets),s.unsuspend){var T=s.unsuspend;s.unsuspend=null,T()}},Kgt+u);0<s.imgBytes&&mse===0&&(mse=125*yf()*Zgt);var S=setTimeout(function(){if(s.waitingForImages=!1,s.count===0&&(s.stylesheets&&yW(s,s.stylesheets),s.unsuspend)){var T=s.unsuspend;s.unsuspend=null,T()}},(s.imgBytes>mse?50:Ygt)+u);return s.unsuspend=p,function(){s.unsuspend=null,clearTimeout(b),clearTimeout(S)}}:null}function gW(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)yW(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}function yW(s,u){s.stylesheets=null,s.unsuspend!==null&&(s.count++,EV=new Map,u.forEach($mt,s),EV=null,gW.call(s))}function $mt(s,u){if(!(u.state.loading&Ag)){var p=EV.get(s);if(p)var b=p.get(gse);else{p=new Map,EV.set(s,p);for(var S=s.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),T=0;T<S.length;T++){var j=S[T];(j.nodeName===\"LINK\"||j.getAttribute(\"media\")!==\"not all\")&&(p.set(j.dataset.precedence,j),b=j)}b&&p.set(gse,b)}S=u.instance,j=S.getAttribute(\"data-precedence\"),T=p.get(j)||b,T===b&&p.set(gse,S),p.set(j,S),this.count++,b=gW.bind(this),S.addEventListener(\"load\",b),S.addEventListener(\"error\",b),T?T.parentNode.insertBefore(S,T.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(S,s.firstChild)),u.state.loading|=Ag}}function e0t(s,u,p,b,S,T,j,Y,ce){for(this.tag=1,this.containerInfo=s,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=i5,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=fn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fn(0),this.hiddenUpdates=fn(null),this.identifierPrefix=b,this.onUncaughtError=S,this.onCaughtError=T,this.onRecoverableError=j,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ce,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,s=this.pendingUpdatersLaneMap=[],u=0;31>u;u++)s.push(new Set);this._debugRootType=p?\"hydrateRoot()\":\"createRoot()\"}function ZAe(s,u,p,b,S,T,j,Y,ce,fe,De,Be){return s=new e0t(s,u,p,j,ce,fe,De,Be,Y),u=wgt,T===!0&&(u|=wf|_b),u|=Cr,T=g(3,null,null,u),s.current=T,T.stateNode=s,u=nb(),eg(u),s.pooledCache=u,eg(u),T.memoizedState={element:b,isDehydrated:p,cache:u},md(T),s}function QAe(s){return s?(s=MS,s):MS}function Lie(s,u,p,b,S,T){if(vf&&typeof vf.onScheduleFiberRoot==\"function\")try{vf.onScheduleFiberRoot(F4,b,p)}catch(j){Nv||(Nv=!0,console.error(\"React instrumentation encountered an error: %o\",j))}S=QAe(S),b.context===null?b.context=S:b.pendingContext=S,Ov&&Km!==null&&!BTe&&(BTe=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\\n\\nCheck the render method of %s.`,te(Km)||\"Unknown\")),b=hp(u),b.payload={element:p},T=T===void 0?null:T,T!==null&&(typeof T!=\"function\"&&console.error(\"Expected the last optional `callback` argument to be a function. Instead received: %s.\",T),b.callback=T),p=Sh(s,b,u),p!==null&&(pp(u,\"root.render()\",null),$e(p,s,u),ab(p,s,u))}function JAe(s,u){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var p=s.retryLane;s.retryLane=p!==0&&p<u?p:u}}function Uie(s,u){JAe(s,u),(s=s.alternate)&&JAe(s,u)}function XAe(s){if(s.tag===13||s.tag===31){var u=zc(s,67108864);u!==null&&$e(u,s,67108864),Uie(s,67108864)}}function $Ae(s){if(s.tag===13||s.tag===31){var u=mt(s);u=$r(u);var p=zc(s,u);p!==null&&$e(p,s,u),Uie(s,u)}}function t0t(){return Km}function n0t(s,u,p,b){var S=tt.T;tt.T=null;var T=Ai.p;try{Ai.p=Ym,Fie(s,u,p,b)}finally{Ai.p=T,tt.T=S}}function r0t(s,u,p,b){var S=tt.T;tt.T=null;var T=Ai.p;try{Ai.p=Sb,Fie(s,u,p,b)}finally{Ai.p=T,tt.T=S}}function Fie(s,u,p,b){if(SV){var S=Hie(b);if(S===null)Nl(s,u,b,_V,p),tSe(s,b);else if(o0t(S,s,u,p,b))b.stopPropagation();else if(tSe(s,b),u&4&&-1<Jgt.indexOf(s)){for(;S!==null;){var T=Yt(S);if(T!==null)switch(T.tag){case 3:if(T=T.stateNode,T.current.memoizedState.isDehydrated){var j=$t(T.pendingLanes);if(j!==0){var Y=T;for(Y.pendingLanes|=2,Y.entangledLanes|=2;j;){var ce=1<<31-Rp(j);Y.entanglements[1]|=ce,j&=~ce}Pa(T),(Do&(fl|Xm))===Bl&&(sV=Pl()+lTe,ns(0,!1))}}break;case 31:case 13:Y=zc(T,2),Y!==null&&$e(Y,T,2),po(),Uie(T,2)}if(T=Hie(b),T===null&&Nl(s,u,b,_V,p),T===S)break;S=T}S!==null&&b.stopPropagation()}else Nl(s,u,b,null,p)}}function Hie(s){return s=H1(s),zie(s)}function zie(s){if(_V=null,s=jt(s),s!==null){var u=C(s);if(u===null)s=null;else{var p=u.tag;if(p===13){if(s=M(u),s!==null)return s;s=null}else if(p===31){if(s=B(u),s!==null)return s;s=null}else if(p===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;s=null}else u!==s&&(s=null)}}return _V=s,null}function eSe(s){switch(s){case\"beforetoggle\":case\"cancel\":case\"click\":case\"close\":case\"contextmenu\":case\"copy\":case\"cut\":case\"auxclick\":case\"dblclick\":case\"dragend\":case\"dragstart\":case\"drop\":case\"focusin\":case\"focusout\":case\"input\":case\"invalid\":case\"keydown\":case\"keypress\":case\"keyup\":case\"mousedown\":case\"mouseup\":case\"paste\":case\"pause\":case\"play\":case\"pointercancel\":case\"pointerdown\":case\"pointerup\":case\"ratechange\":case\"reset\":case\"resize\":case\"seeked\":case\"submit\":case\"toggle\":case\"touchcancel\":case\"touchend\":case\"touchstart\":case\"volumechange\":case\"change\":case\"selectionchange\":case\"textInput\":case\"compositionstart\":case\"compositionend\":case\"compositionupdate\":case\"beforeblur\":case\"afterblur\":case\"beforeinput\":case\"blur\":case\"fullscreenchange\":case\"focus\":case\"hashchange\":case\"popstate\":case\"select\":case\"selectstart\":return Ym;case\"drag\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"mousemove\":case\"mouseout\":case\"mouseover\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"scroll\":case\"touchmove\":case\"wheel\":case\"mouseenter\":case\"mouseleave\":case\"pointerenter\":case\"pointerleave\":return Sb;case\"message\":switch(h0t()){case tae:return Ym;case nae:return Sb;case U4:case m0t:return Mv;case rae:return CW;default:return Mv}default:return Mv}}function tSe(s,u){switch(s){case\"focusin\":case\"focusout\":JS=null;break;case\"dragenter\":case\"dragleave\":XS=null;break;case\"mouseover\":case\"mouseout\":$S=null;break;case\"pointerover\":case\"pointerout\":h9.delete(u.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":m9.delete(u.pointerId)}}function w7(s,u,p,b,S,T){return s===null||s.nativeEvent!==T?(s={blockedOn:u,domEventName:p,eventSystemFlags:b,nativeEvent:T,targetContainers:[S]},u!==null&&(u=Yt(u),u!==null&&XAe(u)),s):(s.eventSystemFlags|=b,u=s.targetContainers,S!==null&&u.indexOf(S)===-1&&u.push(S),s)}function o0t(s,u,p,b,S){switch(u){case\"focusin\":return JS=w7(JS,s,u,p,b,S),!0;case\"dragenter\":return XS=w7(XS,s,u,p,b,S),!0;case\"mouseover\":return $S=w7($S,s,u,p,b,S),!0;case\"pointerover\":var T=S.pointerId;return h9.set(T,w7(h9.get(T)||null,s,u,p,b,S)),!0;case\"gotpointercapture\":return T=S.pointerId,m9.set(T,w7(m9.get(T)||null,s,u,p,b,S)),!0}return!1}function nSe(s){var u=jt(s.target);if(u!==null){var p=C(u);if(p!==null){if(u=p.tag,u===13){if(u=M(p),u!==null){s.blockedOn=u,it(s.priority,function(){$Ae(p)});return}}else if(u===31){if(u=B(p),u!==null){s.blockedOn=u,it(s.priority,function(){$Ae(p)});return}}else if(u===3&&p.stateNode.current.memoizedState.isDehydrated){s.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}s.blockedOn=null}function bW(s){if(s.blockedOn!==null)return!1;for(var u=s.targetContainers;0<u.length;){var p=Hie(s.nativeEvent);if(p===null){p=s.nativeEvent;var b=new p.constructor(p.type,p),S=b;_7!==null&&console.error(\"Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.\"),_7=S,p.target.dispatchEvent(b),_7===null&&console.error(\"Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.\"),_7=null}else return u=Yt(p),u!==null&&XAe(u),s.blockedOn=p,!1;u.shift()}return!0}function rSe(s,u,p){bW(s)&&p.delete(u)}function i0t(){yse=!1,JS!==null&&bW(JS)&&(JS=null),XS!==null&&bW(XS)&&(XS=null),$S!==null&&bW($S)&&($S=null),h9.forEach(rSe),m9.forEach(rSe)}function vW(s,u){s.blockedOn===u&&(s.blockedOn=null,yse||(yse=!0,Au.unstable_scheduleCallback(Au.unstable_NormalPriority,i0t)))}function oSe(s){TV!==s&&(TV=s,Au.unstable_scheduleCallback(Au.unstable_NormalPriority,function(){TV===s&&(TV=null);for(var u=0;u<s.length;u+=3){var p=s[u],b=s[u+1],S=s[u+2];if(typeof b!=\"function\"){if(zie(b||p)===null)continue;break}var T=Yt(p);T!==null&&(s.splice(u,3),u-=3,p={pending:!0,data:S,method:p.method,action:b},Object.freeze(p),mS(T,p,b,S))}}))}function D4(s){function u(ce){return vW(ce,s)}JS!==null&&vW(JS,s),XS!==null&&vW(XS,s),$S!==null&&vW($S,s),h9.forEach(u),m9.forEach(u);for(var p=0;p<e_.length;p++){var b=e_[p];b.blockedOn===s&&(b.blockedOn=null)}for(;0<e_.length&&(p=e_[0],p.blockedOn===null);)nSe(p),p.blockedOn===null&&e_.shift();if(p=(s.ownerDocument||s).$$reactFormReplay,p!=null)for(b=0;b<p.length;b+=3){var S=p[b],T=p[b+1],j=S[Ip]||null;if(typeof T==\"function\")j||oSe(p);else if(j){var Y=null;if(T&&T.hasAttribute(\"formAction\")){if(S=T,j=T[Ip]||null)Y=j.formAction;else if(zie(S)!==null)continue}else Y=j.action;typeof Y==\"function\"?p[b+1]=Y:(p.splice(b,3),b-=3),oSe(p)}}}function iSe(){function s(T){T.canIntercept&&T.info===\"react-transition\"&&T.intercept({handler:function(){return new Promise(function(j){return S=j})},focusReset:\"manual\",scroll:\"manual\"})}function u(){S!==null&&(S(),S=null),b||setTimeout(p,20)}function p(){if(!b&&!navigation.transition){var T=navigation.currentEntry;T&&T.url!=null&&navigation.navigate(T.url,{state:T.getState(),info:\"react-transition\",history:\"replace\"})}}if(typeof navigation==\"object\"){var b=!1,S=null;return navigation.addEventListener(\"navigate\",s),navigation.addEventListener(\"navigatesuccess\",u),navigation.addEventListener(\"navigateerror\",u),setTimeout(p,100),function(){b=!0,navigation.removeEventListener(\"navigate\",s),navigation.removeEventListener(\"navigatesuccess\",u),navigation.removeEventListener(\"navigateerror\",u),S!==null&&(S(),S=null)}}}function jie(s){this._internalRoot=s}function wW(s){this._internalRoot=s}function aSe(s){s[kS]&&(s._reactRootContainer?console.error(\"You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.\"):console.error(\"You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.\"))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Au=xCe(),Wie=at(),a0t=Ob(),jr=Object.assign,s0t=Symbol.for(\"react.element\"),Iv=Symbol.for(\"react.transitional.element\"),B4=Symbol.for(\"react.portal\"),L4=Symbol.for(\"react.fragment\"),xW=Symbol.for(\"react.strict_mode\"),Vie=Symbol.for(\"react.profiler\"),Gie=Symbol.for(\"react.consumer\"),kv=Symbol.for(\"react.context\"),x7=Symbol.for(\"react.forward_ref\"),qie=Symbol.for(\"react.suspense\"),Kie=Symbol.for(\"react.suspense_list\"),EW=Symbol.for(\"react.memo\"),qm=Symbol.for(\"react.lazy\");Symbol.for(\"react.scope\");var Yie=Symbol.for(\"react.activity\");Symbol.for(\"react.legacy_hidden\"),Symbol.for(\"react.tracing_marker\");var c0t=Symbol.for(\"react.memo_cache_sentinel\");Symbol.for(\"react.view_transition\");var sSe=Symbol.iterator,u0t=Symbol.for(\"react.client.reference\"),ll=Array.isArray,tt=Wie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ai=a0t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,l0t=Object.freeze({pending:!1,data:null,method:null,action:null}),Zie=[],Qie=[],m2=-1,CS=Z(null),E7=Z(null),RS=Z(null),AW=Z(null),A7=0,cSe,uSe,lSe,dSe,fSe,pSe,hSe;q.__reactDisabledLog=!0;var Jie,mSe,Xie=!1,$ie=new(typeof WeakMap==\"function\"?WeakMap:Map),Km=null,Ov=!1,Ab=Object.prototype.hasOwnProperty,eae=Au.unstable_scheduleCallback,d0t=Au.unstable_cancelCallback,f0t=Au.unstable_shouldYield,p0t=Au.unstable_requestPaint,Pl=Au.unstable_now,h0t=Au.unstable_getCurrentPriorityLevel,tae=Au.unstable_ImmediatePriority,nae=Au.unstable_UserBlockingPriority,U4=Au.unstable_NormalPriority,m0t=Au.unstable_LowPriority,rae=Au.unstable_IdlePriority,g0t=Au.log,y0t=Au.unstable_setDisableYieldValue,F4=null,vf=null,Nv=!1,Pv=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\",Rp=Math.clz32?Math.clz32:rn,b0t=Math.log,v0t=Math.LN2,SW=256,_W=262144,TW=4194304,Ym=2,Sb=8,Mv=32,CW=268435456,IS=Math.random().toString(36).slice(2),Cd=\"__reactFiber$\"+IS,Ip=\"__reactProps$\"+IS,kS=\"__reactContainer$\"+IS,oae=\"__reactEvents$\"+IS,w0t=\"__reactListeners$\"+IS,x0t=\"__reactHandles$\"+IS,gSe=\"__reactResources$\"+IS,S7=\"__reactMarker$\"+IS,ySe=new Set,F6={},iae={},E0t={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},A0t=RegExp(\"^[: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][: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]*$\"),bSe={},vSe={},S0t=/[\\\\n\"\\\\\\\\]/g,wSe=!1,xSe=!1,ESe=!1,ASe=!1,SSe=!1,_Se=!1,TSe=[\"value\",\"defaultValue\"],CSe=!1,RSe=/[\"\\'&<>\\\\n\\\\t]|^\\\\s|\\\\s$/,_0t=\"address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp\".split(\" \"),ISe=\"applet caption html table td th marquee object template foreignObject desc title\".split(\" \"),T0t=ISe.concat([\"button\"]),C0t=\"dd dt li option optgroup p rp rt\".split(\" \"),kSe={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},RW={},aae={animation:\"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction\".split(\" \"),background:\"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize\".split(\" \"),backgroundPosition:[\"backgroundPositionX\",\"backgroundPositionY\"],border:\"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth\".split(\" \"),borderBlockEnd:[\"borderBlockEndColor\",\"borderBlockEndStyle\",\"borderBlockEndWidth\"],borderBlockStart:[\"borderBlockStartColor\",\"borderBlockStartStyle\",\"borderBlockStartWidth\"],borderBottom:[\"borderBottomColor\",\"borderBottomStyle\",\"borderBottomWidth\"],borderColor:[\"borderBottomColor\",\"borderLeftColor\",\"borderRightColor\",\"borderTopColor\"],borderImage:[\"borderImageOutset\",\"borderImageRepeat\",\"borderImageSlice\",\"borderImageSource\",\"borderImageWidth\"],borderInlineEnd:[\"borderInlineEndColor\",\"borderInlineEndStyle\",\"borderInlineEndWidth\"],borderInlineStart:[\"borderInlineStartColor\",\"borderInlineStartStyle\",\"borderInlineStartWidth\"],borderLeft:[\"borderLeftColor\",\"borderLeftStyle\",\"borderLeftWidth\"],borderRadius:[\"borderBottomLeftRadius\",\"borderBottomRightRadius\",\"borderTopLeftRadius\",\"borderTopRightRadius\"],borderRight:[\"borderRightColor\",\"borderRightStyle\",\"borderRightWidth\"],borderStyle:[\"borderBottomStyle\",\"borderLeftStyle\",\"borderRightStyle\",\"borderTopStyle\"],borderTop:[\"borderTopColor\",\"borderTopStyle\",\"borderTopWidth\"],borderWidth:[\"borderBottomWidth\",\"borderLeftWidth\",\"borderRightWidth\",\"borderTopWidth\"],columnRule:[\"columnRuleColor\",\"columnRuleStyle\",\"columnRuleWidth\"],columns:[\"columnCount\",\"columnWidth\"],flex:[\"flexBasis\",\"flexGrow\",\"flexShrink\"],flexFlow:[\"flexDirection\",\"flexWrap\"],font:\"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight\".split(\" \"),fontVariant:\"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition\".split(\" \"),gap:[\"columnGap\",\"rowGap\"],grid:\"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows\".split(\" \"),gridArea:[\"gridColumnEnd\",\"gridColumnStart\",\"gridRowEnd\",\"gridRowStart\"],gridColumn:[\"gridColumnEnd\",\"gridColumnStart\"],gridColumnGap:[\"columnGap\"],gridGap:[\"columnGap\",\"rowGap\"],gridRow:[\"gridRowEnd\",\"gridRowStart\"],gridRowGap:[\"rowGap\"],gridTemplate:[\"gridTemplateAreas\",\"gridTemplateColumns\",\"gridTemplateRows\"],listStyle:[\"listStyleImage\",\"listStylePosition\",\"listStyleType\"],margin:[\"marginBottom\",\"marginLeft\",\"marginRight\",\"marginTop\"],marker:[\"markerEnd\",\"markerMid\",\"markerStart\"],mask:\"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize\".split(\" \"),maskPosition:[\"maskPositionX\",\"maskPositionY\"],outline:[\"outlineColor\",\"outlineStyle\",\"outlineWidth\"],overflow:[\"overflowX\",\"overflowY\"],padding:[\"paddingBottom\",\"paddingLeft\",\"paddingRight\",\"paddingTop\"],placeContent:[\"alignContent\",\"justifyContent\"],placeItems:[\"alignItems\",\"justifyItems\"],placeSelf:[\"alignSelf\",\"justifySelf\"],textDecoration:[\"textDecorationColor\",\"textDecorationLine\",\"textDecorationStyle\"],textEmphasis:[\"textEmphasisColor\",\"textEmphasisStyle\"],transition:[\"transitionDelay\",\"transitionDuration\",\"transitionProperty\",\"transitionTimingFunction\"],wordWrap:[\"overflowWrap\"]},OSe=/([A-Z])/g,NSe=/^ms-/,R0t=/^(?:webkit|moz|o)[A-Z]/,I0t=/^-ms-/,k0t=/-(.)/g,PSe=/;\\\\s*$/,H4={},sae={},MSe=!1,DSe=!1,BSe=new Set(\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\".split(\" \")),IW=\"http://www.w3.org/1998/Math/MathML\",z4=\"http://www.w3.org/2000/svg\",O0t=new Map([[\"acceptCharset\",\"accept-charset\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"],[\"crossOrigin\",\"crossorigin\"],[\"accentHeight\",\"accent-height\"],[\"alignmentBaseline\",\"alignment-baseline\"],[\"arabicForm\",\"arabic-form\"],[\"baselineShift\",\"baseline-shift\"],[\"capHeight\",\"cap-height\"],[\"clipPath\",\"clip-path\"],[\"clipRule\",\"clip-rule\"],[\"colorInterpolation\",\"color-interpolation\"],[\"colorInterpolationFilters\",\"color-interpolation-filters\"],[\"colorProfile\",\"color-profile\"],[\"colorRendering\",\"color-rendering\"],[\"dominantBaseline\",\"dominant-baseline\"],[\"enableBackground\",\"enable-background\"],[\"fillOpacity\",\"fill-opacity\"],[\"fillRule\",\"fill-rule\"],[\"floodColor\",\"flood-color\"],[\"floodOpacity\",\"flood-opacity\"],[\"fontFamily\",\"font-family\"],[\"fontSize\",\"font-size\"],[\"fontSizeAdjust\",\"font-size-adjust\"],[\"fontStretch\",\"font-stretch\"],[\"fontStyle\",\"font-style\"],[\"fontVariant\",\"font-variant\"],[\"fontWeight\",\"font-weight\"],[\"glyphName\",\"glyph-name\"],[\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\"],[\"glyphOrientationVertical\",\"glyph-orientation-vertical\"],[\"horizAdvX\",\"horiz-adv-x\"],[\"horizOriginX\",\"horiz-origin-x\"],[\"imageRendering\",\"image-rendering\"],[\"letterSpacing\",\"letter-spacing\"],[\"lightingColor\",\"lighting-color\"],[\"markerEnd\",\"marker-end\"],[\"markerMid\",\"marker-mid\"],[\"markerStart\",\"marker-start\"],[\"overlinePosition\",\"overline-position\"],[\"overlineThickness\",\"overline-thickness\"],[\"paintOrder\",\"paint-order\"],[\"panose-1\",\"panose-1\"],[\"pointerEvents\",\"pointer-events\"],[\"renderingIntent\",\"rendering-intent\"],[\"shapeRendering\",\"shape-rendering\"],[\"stopColor\",\"stop-color\"],[\"stopOpacity\",\"stop-opacity\"],[\"strikethroughPosition\",\"strikethrough-position\"],[\"strikethroughThickness\",\"strikethrough-thickness\"],[\"strokeDasharray\",\"stroke-dasharray\"],[\"strokeDashoffset\",\"stroke-dashoffset\"],[\"strokeLinecap\",\"stroke-linecap\"],[\"strokeLinejoin\",\"stroke-linejoin\"],[\"strokeMiterlimit\",\"stroke-miterlimit\"],[\"strokeOpacity\",\"stroke-opacity\"],[\"strokeWidth\",\"stroke-width\"],[\"textAnchor\",\"text-anchor\"],[\"textDecoration\",\"text-decoration\"],[\"textRendering\",\"text-rendering\"],[\"transformOrigin\",\"transform-origin\"],[\"underlinePosition\",\"underline-position\"],[\"underlineThickness\",\"underline-thickness\"],[\"unicodeBidi\",\"unicode-bidi\"],[\"unicodeRange\",\"unicode-range\"],[\"unitsPerEm\",\"units-per-em\"],[\"vAlphabetic\",\"v-alphabetic\"],[\"vHanging\",\"v-hanging\"],[\"vIdeographic\",\"v-ideographic\"],[\"vMathematical\",\"v-mathematical\"],[\"vectorEffect\",\"vector-effect\"],[\"vertAdvY\",\"vert-adv-y\"],[\"vertOriginX\",\"vert-origin-x\"],[\"vertOriginY\",\"vert-origin-y\"],[\"wordSpacing\",\"word-spacing\"],[\"writingMode\",\"writing-mode\"],[\"xmlnsXlink\",\"xmlns:xlink\"],[\"xHeight\",\"x-height\"]]),kW={accept:\"accept\",acceptcharset:\"acceptCharset\",\"accept-charset\":\"acceptCharset\",accesskey:\"accessKey\",action:\"action\",allowfullscreen:\"allowFullScreen\",alt:\"alt\",as:\"as\",async:\"async\",autocapitalize:\"autoCapitalize\",autocomplete:\"autoComplete\",autocorrect:\"autoCorrect\",autofocus:\"autoFocus\",autoplay:\"autoPlay\",autosave:\"autoSave\",capture:\"capture\",cellpadding:\"cellPadding\",cellspacing:\"cellSpacing\",challenge:\"challenge\",charset:\"charSet\",checked:\"checked\",children:\"children\",cite:\"cite\",class:\"className\",classid:\"classID\",classname:\"className\",cols:\"cols\",colspan:\"colSpan\",content:\"content\",contenteditable:\"contentEditable\",contextmenu:\"contextMenu\",controls:\"controls\",controlslist:\"controlsList\",coords:\"coords\",crossorigin:\"crossOrigin\",dangerouslysetinnerhtml:\"dangerouslySetInnerHTML\",data:\"data\",datetime:\"dateTime\",default:\"default\",defaultchecked:\"defaultChecked\",defaultvalue:\"defaultValue\",defer:\"defer\",dir:\"dir\",disabled:\"disabled\",disablepictureinpicture:\"disablePictureInPicture\",disableremoteplayback:\"disableRemotePlayback\",download:\"download\",draggable:\"draggable\",enctype:\"encType\",enterkeyhint:\"enterKeyHint\",fetchpriority:\"fetchPriority\",for:\"htmlFor\",form:\"form\",formmethod:\"formMethod\",formaction:\"formAction\",formenctype:\"formEncType\",formnovalidate:\"formNoValidate\",formtarget:\"formTarget\",frameborder:\"frameBorder\",headers:\"headers\",height:\"height\",hidden:\"hidden\",high:\"high\",href:\"href\",hreflang:\"hrefLang\",htmlfor:\"htmlFor\",httpequiv:\"httpEquiv\",\"http-equiv\":\"httpEquiv\",icon:\"icon\",id:\"id\",imagesizes:\"imageSizes\",imagesrcset:\"imageSrcSet\",inert:\"inert\",innerhtml:\"innerHTML\",inputmode:\"inputMode\",integrity:\"integrity\",is:\"is\",itemid:\"itemID\",itemprop:\"itemProp\",itemref:\"itemRef\",itemscope:\"itemScope\",itemtype:\"itemType\",keyparams:\"keyParams\",keytype:\"keyType\",kind:\"kind\",label:\"label\",lang:\"lang\",list:\"list\",loop:\"loop\",low:\"low\",manifest:\"manifest\",marginwidth:\"marginWidth\",marginheight:\"marginHeight\",max:\"max\",maxlength:\"maxLength\",media:\"media\",mediagroup:\"mediaGroup\",method:\"method\",min:\"min\",minlength:\"minLength\",multiple:\"multiple\",muted:\"muted\",name:\"name\",nomodule:\"noModule\",nonce:\"nonce\",novalidate:\"noValidate\",open:\"open\",optimum:\"optimum\",pattern:\"pattern\",placeholder:\"placeholder\",playsinline:\"playsInline\",poster:\"poster\",preload:\"preload\",profile:\"profile\",radiogroup:\"radioGroup\",readonly:\"readOnly\",referrerpolicy:\"referrerPolicy\",rel:\"rel\",required:\"required\",reversed:\"reversed\",role:\"role\",rows:\"rows\",rowspan:\"rowSpan\",sandbox:\"sandbox\",scope:\"scope\",scoped:\"scoped\",scrolling:\"scrolling\",seamless:\"seamless\",selected:\"selected\",shape:\"shape\",size:\"size\",sizes:\"sizes\",span:\"span\",spellcheck:\"spellCheck\",src:\"src\",srcdoc:\"srcDoc\",srclang:\"srcLang\",srcset:\"srcSet\",start:\"start\",step:\"step\",style:\"style\",summary:\"summary\",tabindex:\"tabIndex\",target:\"target\",title:\"title\",type:\"type\",usemap:\"useMap\",value:\"value\",width:\"width\",wmode:\"wmode\",wrap:\"wrap\",about:\"about\",accentheight:\"accentHeight\",\"accent-height\":\"accentHeight\",accumulate:\"accumulate\",additive:\"additive\",alignmentbaseline:\"alignmentBaseline\",\"alignment-baseline\":\"alignmentBaseline\",allowreorder:\"allowReorder\",alphabetic:\"alphabetic\",amplitude:\"amplitude\",arabicform:\"arabicForm\",\"arabic-form\":\"arabicForm\",ascent:\"ascent\",attributename:\"attributeName\",attributetype:\"attributeType\",autoreverse:\"autoReverse\",azimuth:\"azimuth\",basefrequency:\"baseFrequency\",baselineshift:\"baselineShift\",\"baseline-shift\":\"baselineShift\",baseprofile:\"baseProfile\",bbox:\"bbox\",begin:\"begin\",bias:\"bias\",by:\"by\",calcmode:\"calcMode\",capheight:\"capHeight\",\"cap-height\":\"capHeight\",clip:\"clip\",clippath:\"clipPath\",\"clip-path\":\"clipPath\",clippathunits:\"clipPathUnits\",cliprule:\"clipRule\",\"clip-rule\":\"clipRule\",color:\"color\",colorinterpolation:\"colorInterpolation\",\"color-interpolation\":\"colorInterpolation\",colorinterpolationfilters:\"colorInterpolationFilters\",\"color-interpolation-filters\":\"colorInterpolationFilters\",colorprofile:\"colorProfile\",\"color-profile\":\"colorProfile\",colorrendering:\"colorRendering\",\"color-rendering\":\"colorRendering\",contentscripttype:\"contentScriptType\",contentstyletype:\"contentStyleType\",cursor:\"cursor\",cx:\"cx\",cy:\"cy\",d:\"d\",datatype:\"datatype\",decelerate:\"decelerate\",descent:\"descent\",diffuseconstant:\"diffuseConstant\",direction:\"direction\",display:\"display\",divisor:\"divisor\",dominantbaseline:\"dominantBaseline\",\"dominant-baseline\":\"dominantBaseline\",dur:\"dur\",dx:\"dx\",dy:\"dy\",edgemode:\"edgeMode\",elevation:\"elevation\",enablebackground:\"enableBackground\",\"enable-background\":\"enableBackground\",end:\"end\",exponent:\"exponent\",externalresourcesrequired:\"externalResourcesRequired\",fill:\"fill\",fillopacity:\"fillOpacity\",\"fill-opacity\":\"fillOpacity\",fillrule:\"fillRule\",\"fill-rule\":\"fillRule\",filter:\"filter\",filterres:\"filterRes\",filterunits:\"filterUnits\",floodopacity:\"floodOpacity\",\"flood-opacity\":\"floodOpacity\",floodcolor:\"floodColor\",\"flood-color\":\"floodColor\",focusable:\"focusable\",fontfamily:\"fontFamily\",\"font-family\":\"fontFamily\",fontsize:\"fontSize\",\"font-size\":\"fontSize\",fontsizeadjust:\"fontSizeAdjust\",\"font-size-adjust\":\"fontSizeAdjust\",fontstretch:\"fontStretch\",\"font-stretch\":\"fontStretch\",fontstyle:\"fontStyle\",\"font-style\":\"fontStyle\",fontvariant:\"fontVariant\",\"font-variant\":\"fontVariant\",fontweight:\"fontWeight\",\"font-weight\":\"fontWeight\",format:\"format\",from:\"from\",fx:\"fx\",fy:\"fy\",g1:\"g1\",g2:\"g2\",glyphname:\"glyphName\",\"glyph-name\":\"glyphName\",glyphorientationhorizontal:\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\":\"glyphOrientationHorizontal\",glyphorientationvertical:\"glyphOrientationVertical\",\"glyph-orientation-vertical\":\"glyphOrientationVertical\",glyphref:\"glyphRef\",gradienttransform:\"gradientTransform\",gradientunits:\"gradientUnits\",hanging:\"hanging\",horizadvx:\"horizAdvX\",\"horiz-adv-x\":\"horizAdvX\",horizoriginx:\"horizOriginX\",\"horiz-origin-x\":\"horizOriginX\",ideographic:\"ideographic\",imagerendering:\"imageRendering\",\"image-rendering\":\"imageRendering\",in2:\"in2\",in:\"in\",inlist:\"inlist\",intercept:\"intercept\",k1:\"k1\",k2:\"k2\",k3:\"k3\",k4:\"k4\",k:\"k\",kernelmatrix:\"kernelMatrix\",kernelunitlength:\"kernelUnitLength\",kerning:\"kerning\",keypoints:\"keyPoints\",keysplines:\"keySplines\",keytimes:\"keyTimes\",lengthadjust:\"lengthAdjust\",letterspacing:\"letterSpacing\",\"letter-spacing\":\"letterSpacing\",lightingcolor:\"lightingColor\",\"lighting-color\":\"lightingColor\",limitingconeangle:\"limitingConeAngle\",local:\"local\",markerend:\"markerEnd\",\"marker-end\":\"markerEnd\",markerheight:\"markerHeight\",markermid:\"markerMid\",\"marker-mid\":\"markerMid\",markerstart:\"markerStart\",\"marker-start\":\"markerStart\",markerunits:\"markerUnits\",markerwidth:\"markerWidth\",mask:\"mask\",maskcontentunits:\"maskContentUnits\",maskunits:\"maskUnits\",mathematical:\"mathematical\",mode:\"mode\",numoctaves:\"numOctaves\",offset:\"offset\",opacity:\"opacity\",operator:\"operator\",order:\"order\",orient:\"orient\",orientation:\"orientation\",origin:\"origin\",overflow:\"overflow\",overlineposition:\"overlinePosition\",\"overline-position\":\"overlinePosition\",overlinethickness:\"overlineThickness\",\"overline-thickness\":\"overlineThickness\",paintorder:\"paintOrder\",\"paint-order\":\"paintOrder\",panose1:\"panose1\",\"panose-1\":\"panose1\",pathlength:\"pathLength\",patterncontentunits:\"patternContentUnits\",patterntransform:\"patternTransform\",patternunits:\"patternUnits\",pointerevents:\"pointerEvents\",\"pointer-events\":\"pointerEvents\",points:\"points\",pointsatx:\"pointsAtX\",pointsaty:\"pointsAtY\",pointsatz:\"pointsAtZ\",popover:\"popover\",popovertarget:\"popoverTarget\",popovertargetaction:\"popoverTargetAction\",prefix:\"prefix\",preservealpha:\"preserveAlpha\",preserveaspectratio:\"preserveAspectRatio\",primitiveunits:\"primitiveUnits\",property:\"property\",r:\"r\",radius:\"radius\",refx:\"refX\",refy:\"refY\",renderingintent:\"renderingIntent\",\"rendering-intent\":\"renderingIntent\",repeatcount:\"repeatCount\",repeatdur:\"repeatDur\",requiredextensions:\"requiredExtensions\",requiredfeatures:\"requiredFeatures\",resource:\"resource\",restart:\"restart\",result:\"result\",results:\"results\",rotate:\"rotate\",rx:\"rx\",ry:\"ry\",scale:\"scale\",security:\"security\",seed:\"seed\",shaperendering:\"shapeRendering\",\"shape-rendering\":\"shapeRendering\",slope:\"slope\",spacing:\"spacing\",specularconstant:\"specularConstant\",specularexponent:\"specularExponent\",speed:\"speed\",spreadmethod:\"spreadMethod\",startoffset:\"startOffset\",stddeviation:\"stdDeviation\",stemh:\"stemh\",stemv:\"stemv\",stitchtiles:\"stitchTiles\",stopcolor:\"stopColor\",\"stop-color\":\"stopColor\",stopopacity:\"stopOpacity\",\"stop-opacity\":\"stopOpacity\",strikethroughposition:\"strikethroughPosition\",\"strikethrough-position\":\"strikethroughPosition\",strikethroughthickness:\"strikethroughThickness\",\"strikethrough-thickness\":\"strikethroughThickness\",string:\"string\",stroke:\"stroke\",strokedasharray:\"strokeDasharray\",\"stroke-dasharray\":\"strokeDasharray\",strokedashoffset:\"strokeDashoffset\",\"stroke-dashoffset\":\"strokeDashoffset\",strokelinecap:\"strokeLinecap\",\"stroke-linecap\":\"strokeLinecap\",strokelinejoin:\"strokeLinejoin\",\"stroke-linejoin\":\"strokeLinejoin\",strokemiterlimit:\"strokeMiterlimit\",\"stroke-miterlimit\":\"strokeMiterlimit\",strokewidth:\"strokeWidth\",\"stroke-width\":\"strokeWidth\",strokeopacity:\"strokeOpacity\",\"stroke-opacity\":\"strokeOpacity\",suppresscontenteditablewarning:\"suppressContentEditableWarning\",suppresshydrationwarning:\"suppressHydrationWarning\",surfacescale:\"surfaceScale\",systemlanguage:\"systemLanguage\",tablevalues:\"tableValues\",targetx:\"targetX\",targety:\"targetY\",textanchor:\"textAnchor\",\"text-anchor\":\"textAnchor\",textdecoration:\"textDecoration\",\"text-decoration\":\"textDecoration\",textlength:\"textLength\",textrendering:\"textRendering\",\"text-rendering\":\"textRendering\",to:\"to\",transform:\"transform\",transformorigin:\"transformOrigin\",\"transform-origin\":\"transformOrigin\",typeof:\"typeof\",u1:\"u1\",u2:\"u2\",underlineposition:\"underlinePosition\",\"underline-position\":\"underlinePosition\",underlinethickness:\"underlineThickness\",\"underline-thickness\":\"underlineThickness\",unicode:\"unicode\",unicodebidi:\"unicodeBidi\",\"unicode-bidi\":\"unicodeBidi\",unicoderange:\"unicodeRange\",\"unicode-range\":\"unicodeRange\",unitsperem:\"unitsPerEm\",\"units-per-em\":\"unitsPerEm\",unselectable:\"unselectable\",valphabetic:\"vAlphabetic\",\"v-alphabetic\":\"vAlphabetic\",values:\"values\",vectoreffect:\"vectorEffect\",\"vector-effect\":\"vectorEffect\",version:\"version\",vertadvy:\"vertAdvY\",\"vert-adv-y\":\"vertAdvY\",vertoriginx:\"vertOriginX\",\"vert-origin-x\":\"vertOriginX\",vertoriginy:\"vertOriginY\",\"vert-origin-y\":\"vertOriginY\",vhanging:\"vHanging\",\"v-hanging\":\"vHanging\",videographic:\"vIdeographic\",\"v-ideographic\":\"vIdeographic\",viewbox:\"viewBox\",viewtarget:\"viewTarget\",visibility:\"visibility\",vmathematical:\"vMathematical\",\"v-mathematical\":\"vMathematical\",vocab:\"vocab\",widths:\"widths\",wordspacing:\"wordSpacing\",\"word-spacing\":\"wordSpacing\",writingmode:\"writingMode\",\"writing-mode\":\"writingMode\",x1:\"x1\",x2:\"x2\",x:\"x\",xchannelselector:\"xChannelSelector\",xheight:\"xHeight\",\"x-height\":\"xHeight\",xlinkactuate:\"xlinkActuate\",\"xlink:actuate\":\"xlinkActuate\",xlinkarcrole:\"xlinkArcrole\",\"xlink:arcrole\":\"xlinkArcrole\",xlinkhref:\"xlinkHref\",\"xlink:href\":\"xlinkHref\",xlinkrole:\"xlinkRole\",\"xlink:role\":\"xlinkRole\",xlinkshow:\"xlinkShow\",\"xlink:show\":\"xlinkShow\",xlinktitle:\"xlinkTitle\",\"xlink:title\":\"xlinkTitle\",xlinktype:\"xlinkType\",\"xlink:type\":\"xlinkType\",xmlbase:\"xmlBase\",\"xml:base\":\"xmlBase\",xmllang:\"xmlLang\",\"xml:lang\":\"xmlLang\",xmlns:\"xmlns\",\"xml:space\":\"xmlSpace\",xmlnsxlink:\"xmlnsXlink\",\"xmlns:xlink\":\"xmlnsXlink\",xmlspace:\"xmlSpace\",y1:\"y1\",y2:\"y2\",y:\"y\",ychannelselector:\"yChannelSelector\",z:\"z\",zoomandpan:\"zoomAndPan\"},LSe={\"aria-current\":0,\"aria-description\":0,\"aria-details\":0,\"aria-disabled\":0,\"aria-hidden\":0,\"aria-invalid\":0,\"aria-keyshortcuts\":0,\"aria-label\":0,\"aria-roledescription\":0,\"aria-autocomplete\":0,\"aria-checked\":0,\"aria-expanded\":0,\"aria-haspopup\":0,\"aria-level\":0,\"aria-modal\":0,\"aria-multiline\":0,\"aria-multiselectable\":0,\"aria-orientation\":0,\"aria-placeholder\":0,\"aria-pressed\":0,\"aria-readonly\":0,\"aria-required\":0,\"aria-selected\":0,\"aria-sort\":0,\"aria-valuemax\":0,\"aria-valuemin\":0,\"aria-valuenow\":0,\"aria-valuetext\":0,\"aria-atomic\":0,\"aria-busy\":0,\"aria-live\":0,\"aria-relevant\":0,\"aria-dropeffect\":0,\"aria-grabbed\":0,\"aria-activedescendant\":0,\"aria-colcount\":0,\"aria-colindex\":0,\"aria-colspan\":0,\"aria-controls\":0,\"aria-describedby\":0,\"aria-errormessage\":0,\"aria-flowto\":0,\"aria-labelledby\":0,\"aria-owns\":0,\"aria-posinset\":0,\"aria-rowcount\":0,\"aria-rowindex\":0,\"aria-rowspan\":0,\"aria-setsize\":0,\"aria-braillelabel\":0,\"aria-brailleroledescription\":0,\"aria-colindextext\":0,\"aria-rowindextext\":0},j4={},N0t=RegExp(\"^(aria)-[: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]*$\"),P0t=RegExp(\"^(aria)[A-Z][: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]*$\"),USe=!1,kp={},FSe=/^on./,M0t=/^on[^A-Z]/,D0t=RegExp(\"^(aria)-[: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]*$\"),B0t=RegExp(\"^(aria)[A-Z][: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]*$\"),L0t=/^[\\\\u0000-\\\\u001F ]*j[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*v[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*s[\\\\r\\\\n\\\\t]*c[\\\\r\\\\n\\\\t]*r[\\\\r\\\\n\\\\t]*i[\\\\r\\\\n\\\\t]*p[\\\\r\\\\n\\\\t]*t[\\\\r\\\\n\\\\t]*:/i,_7=null,W4=null,V4=null,cae=!1,Dv=!(typeof window>\"u\"||typeof window.document>\"u\"||typeof window.document.createElement>\"u\"),uae=!1;if(Dv)try{var T7={};Object.defineProperty(T7,\"passive\",{get:function(){uae=!0}}),window.addEventListener(\"test\",T7,T7),window.removeEventListener(\"test\",T7,T7)}catch{uae=!1}var OS=null,lae=null,OW=null,H6={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},NW=Ya(H6),C7=jr({},H6,{view:0,detail:0}),U0t=Ya(C7),dae,fae,R7,PW=jr({},C7,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Za,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return\"movementX\"in s?s.movementX:(s!==R7&&(R7&&s.type===\"mousemove\"?(dae=s.screenX-R7.screenX,fae=s.screenY-R7.screenY):fae=dae=0,R7=s),dae)},movementY:function(s){return\"movementY\"in s?s.movementY:fae}}),HSe=Ya(PW),F0t=jr({},PW,{dataTransfer:0}),H0t=Ya(F0t),z0t=jr({},C7,{relatedTarget:0}),pae=Ya(z0t),j0t=jr({},H6,{animationName:0,elapsedTime:0,pseudoElement:0}),W0t=Ya(j0t),V0t=jr({},H6,{clipboardData:function(s){return\"clipboardData\"in s?s.clipboardData:window.clipboardData}}),G0t=Ya(V0t),q0t=jr({},H6,{data:0}),zSe=Ya(q0t),K0t=zSe,Y0t={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},Z0t={8:\"Backspace\",9:\"Tab\",12:\"Clear\",13:\"Enter\",16:\"Shift\",17:\"Control\",18:\"Alt\",19:\"Pause\",20:\"CapsLock\",27:\"Escape\",32:\" \",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"ArrowLeft\",38:\"ArrowUp\",39:\"ArrowRight\",40:\"ArrowDown\",45:\"Insert\",46:\"Delete\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},Q0t={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"},J0t=jr({},C7,{key:function(s){if(s.key){var u=Y0t[s.key]||s.key;if(u!==\"Unidentified\")return u}return s.type===\"keypress\"?(s=z1(s),s===13?\"Enter\":String.fromCharCode(s)):s.type===\"keydown\"||s.type===\"keyup\"?Z0t[s.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Za,charCode:function(s){return s.type===\"keypress\"?z1(s):0},keyCode:function(s){return s.type===\"keydown\"||s.type===\"keyup\"?s.keyCode:0},which:function(s){return s.type===\"keypress\"?z1(s):s.type===\"keydown\"||s.type===\"keyup\"?s.keyCode:0}}),X0t=Ya(J0t),$0t=jr({},PW,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jSe=Ya($0t),egt=jr({},C7,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Za}),tgt=Ya(egt),ngt=jr({},H6,{propertyName:0,elapsedTime:0,pseudoElement:0}),rgt=Ya(ngt),ogt=jr({},PW,{deltaX:function(s){return\"deltaX\"in s?s.deltaX:\"wheelDeltaX\"in s?-s.wheelDeltaX:0},deltaY:function(s){return\"deltaY\"in s?s.deltaY:\"wheelDeltaY\"in s?-s.wheelDeltaY:\"wheelDelta\"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),igt=Ya(ogt),agt=jr({},H6,{newState:0,oldState:0}),sgt=Ya(agt),cgt=[9,13,27,32],WSe=229,hae=Dv&&\"CompositionEvent\"in window,I7=null;Dv&&\"documentMode\"in document&&(I7=document.documentMode);var ugt=Dv&&\"TextEvent\"in window&&!I7,VSe=Dv&&(!hae||I7&&8<I7&&11>=I7),GSe=32,qSe=String.fromCharCode(GSe),KSe=!1,G4=!1,lgt={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},k7=null,O7=null,YSe=!1;Dv&&(YSe=Dx(\"input\")&&(!document.documentMode||9<document.documentMode));var Op=typeof Object.is==\"function\"?Object.is:sp,dgt=Dv&&\"documentMode\"in document&&11>=document.documentMode,q4=null,mae=null,N7=null,gae=!1,K4={animationend:q0(\"Animation\",\"AnimationEnd\"),animationiteration:q0(\"Animation\",\"AnimationIteration\"),animationstart:q0(\"Animation\",\"AnimationStart\"),transitionrun:q0(\"Transition\",\"TransitionRun\"),transitionstart:q0(\"Transition\",\"TransitionStart\"),transitioncancel:q0(\"Transition\",\"TransitionCancel\"),transitionend:q0(\"Transition\",\"TransitionEnd\")},yae={},ZSe={};Dv&&(ZSe=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete K4.animationend.animation,delete K4.animationiteration.animation,delete K4.animationstart.animation),\"TransitionEvent\"in window||delete K4.transitionend.transition);var QSe=of(\"animationend\"),JSe=of(\"animationiteration\"),XSe=of(\"animationstart\"),fgt=of(\"transitionrun\"),pgt=of(\"transitionstart\"),hgt=of(\"transitioncancel\"),$Se=of(\"transitionend\"),e_e=new Map,bae=\"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\".split(\" \");bae.push(\"scrollEnd\");var t_e=0;if(typeof performance==\"object\"&&typeof performance.now==\"function\")var mgt=performance,n_e=function(){return mgt.now()};else{var ggt=Date;n_e=function(){return ggt.now()}}var vae=typeof reportError==\"function\"?reportError:function(s){if(typeof window==\"object\"&&typeof window.ErrorEvent==\"function\"){var u=new window.ErrorEvent(\"error\",{bubbles:!0,cancelable:!0,message:typeof s==\"object\"&&s!==null&&typeof s.message==\"string\"?String(s.message):String(s),error:s});if(!window.dispatchEvent(u))return}else if(typeof process==\"object\"&&typeof process.emit==\"function\"){process.emit(\"uncaughtException\",s);return}console.error(s)},ygt=\"This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.\",MW=0,wae=1,xae=2,Eae=3,DW=\"\\\\u2013\\\\xA0\",BW=\"+\\\\xA0\",r_e=\"\\\\u2007\\\\xA0\",Ma=typeof console<\"u\"&&typeof console.timeStamp==\"function\"&&typeof performance<\"u\"&&typeof performance.measure==\"function\",pg=\"Components \\\\u269B\",Wr=\"Scheduler \\\\u269B\",Qr=\"Blocking\",NS=!1,g2={color:\"primary\",properties:null,tooltipText:\"\",track:pg},PS={start:-0,end:-0,detail:{devtools:g2}},bgt=[\"Changed Props\",\"\"],o_e=\"This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.\",vgt=[\"Changed Props\",o_e],P7=1,y2=2,hg=[],Y4=0,Aae=0,MS={};Object.freeze(MS);var mg=null,Z4=null,jn=0,wgt=1,Cr=2,wf=8,_b=16,xgt=32,i_e=!1;try{var a_e=Object.preventExtensions({})}catch{i_e=!0}var Sae=new WeakMap,Q4=[],J4=0,LW=null,M7=0,gg=[],yg=0,z6=null,b2=1,v2=\"\",Rd=null,Da=null,no=!1,Bv=!1,Zm=null,DS=null,bg=!1,_ae=Error(\"Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you\\'re seeing this, it\\'s likely a bug in React.\"),Tae=Z(null),Cae=Z(null),s_e={},UW=null,X4=null,$4=!1,Egt=typeof AbortController<\"u\"?AbortController:function(){var s=[],u=this.signal={aborted:!1,addEventListener:function(p,b){s.push(b)}};this.abort=function(){u.aborted=!0,s.forEach(function(p){return p()})}},Agt=Au.unstable_scheduleCallback,Sgt=Au.unstable_NormalPriority,Su={$$typeof:kv,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},_u=Au.unstable_now,FW=console.createTask?console.createTask:function(){return null},D7=1,HW=2,Ml=-0,BS=-0,w2=-0,x2=null,Np=-1.1,j6=-0,Ss=-0,Cn=-1.1,Dn=-1.1,is=null,tc=!1,LS=-0,Lv=-1.1,B7=null,US=0,Rae=null,Iae=null,W6=-1.1,L7=null,e8=-1.1,zW=-1.1,Uv=-0,E2=-1.1,vg=-1.1,kae=0,U7=null,c_e=null,u_e=null,FS=-1.1,V6=null,HS=-1.1,jW=-1.1,l_e=-0,d_e=-0,WW=0,A2=null,f_e=0,F7=-1.1,VW=!1,GW=!1,H7=null,Oae=0,G6=0,t8=null,p_e=tt.S;tt.S=function(s,u){if(cTe=Pl(),typeof u==\"object\"&&u!==null&&typeof u.then==\"function\"){if(0>E2&&0>vg){E2=_u();var p=Tv(),b=Nh();(p!==HS||b!==V6)&&(HS=-1.1),FS=p,V6=b}Wx(s,u)}p_e!==null&&p_e(s,u)};var q6=Z(null),Tb={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},z7=[],j7=[],W7=[],V7=[],G7=[],q7=[],K6=new Set;Tb.recordUnsafeLifecycleWarnings=function(s,u){K6.has(s.type)||(typeof u.componentWillMount==\"function\"&&u.componentWillMount.__suppressDeprecationWarning!==!0&&z7.push(s),s.mode&wf&&typeof u.UNSAFE_componentWillMount==\"function\"&&j7.push(s),typeof u.componentWillReceiveProps==\"function\"&&u.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&W7.push(s),s.mode&wf&&typeof u.UNSAFE_componentWillReceiveProps==\"function\"&&V7.push(s),typeof u.componentWillUpdate==\"function\"&&u.componentWillUpdate.__suppressDeprecationWarning!==!0&&G7.push(s),s.mode&wf&&typeof u.UNSAFE_componentWillUpdate==\"function\"&&q7.push(s))},Tb.flushPendingUnsafeLifecycleWarnings=function(){var s=new Set;0<z7.length&&(z7.forEach(function(Y){s.add(te(Y)||\"Component\"),K6.add(Y.type)}),z7=[]);var u=new Set;0<j7.length&&(j7.forEach(function(Y){u.add(te(Y)||\"Component\"),K6.add(Y.type)}),j7=[]);var p=new Set;0<W7.length&&(W7.forEach(function(Y){p.add(te(Y)||\"Component\"),K6.add(Y.type)}),W7=[]);var b=new Set;0<V7.length&&(V7.forEach(function(Y){b.add(te(Y)||\"Component\"),K6.add(Y.type)}),V7=[]);var S=new Set;0<G7.length&&(G7.forEach(function(Y){S.add(te(Y)||\"Component\"),K6.add(Y.type)}),G7=[]);var T=new Set;if(0<q7.length&&(q7.forEach(function(Y){T.add(te(Y)||\"Component\"),K6.add(Y.type)}),q7=[]),0<u.size){var j=h(u);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\\n\\nPlease update the following components: %s`,j)}0<b.size&&(j=h(b),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move data fetching code or side effects to componentDidUpdate.\\n* If you\\'re updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\\n\\nPlease update the following components: %s`,j)),0<T.size&&(j=h(T),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move data fetching code or side effects to componentDidUpdate.\\n\\nPlease update the following components: %s`,j)),0<s.size&&(j=h(s),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \\\\`npx react-codemod rename-unsafe-lifecycles\\\\` in your project source folder.\\n\\nPlease update the following components: %s`,j)),0<p.size&&(j=h(p),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move data fetching code or side effects to componentDidUpdate.\\n* If you\\'re updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \\\\`npx react-codemod rename-unsafe-lifecycles\\\\` in your project source folder.\\n\\nPlease update the following components: %s`,j)),0<S.size&&(j=h(S),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move data fetching code or side effects to componentDidUpdate.\\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \\\\`npx react-codemod rename-unsafe-lifecycles\\\\` in your project source folder.\\n\\nPlease update the following components: %s`,j))};var qW=new Map,h_e=new Set;Tb.recordLegacyContextWarning=function(s,u){for(var p=null,b=s;b!==null;)b.mode&wf&&(p=b),b=b.return;p===null?console.error(\"Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.\"):!h_e.has(s.type)&&(b=qW.get(p),s.type.contextTypes!=null||s.type.childContextTypes!=null||u!==null&&typeof u.getChildContext==\"function\")&&(b===void 0&&(b=[],qW.set(p,b)),b.push(s))},Tb.flushLegacyContextWarning=function(){qW.forEach(function(s){if(s.length!==0){var u=s[0],p=new Set;s.forEach(function(S){p.add(te(S)||\"Component\"),h_e.add(S.type)});var b=h(p);_e(u,function(){console.error(`Legacy context API has been detected within a strict-mode tree.\\n\\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\\n\\nPlease update the following components: %s\\n\\nLearn more about this warning here: https://react.dev/link/legacy-context`,b)})}})},Tb.discardPendingWarnings=function(){z7=[],j7=[],W7=[],V7=[],G7=[],q7=[],qW=new Map};var m_e={react_stack_bottom_frame:function(s,u,p){var b=Ov;Ov=!0;try{return s(u,p)}finally{Ov=b}}},Nae=m_e.react_stack_bottom_frame.bind(m_e),g_e={react_stack_bottom_frame:function(s){var u=Ov;Ov=!0;try{return s.render()}finally{Ov=u}}},y_e=g_e.react_stack_bottom_frame.bind(g_e),b_e={react_stack_bottom_frame:function(s,u){try{u.componentDidMount()}catch(p){In(s,s.return,p)}}},Pae=b_e.react_stack_bottom_frame.bind(b_e),v_e={react_stack_bottom_frame:function(s,u,p,b,S){try{u.componentDidUpdate(p,b,S)}catch(T){In(s,s.return,T)}}},w_e=v_e.react_stack_bottom_frame.bind(v_e),x_e={react_stack_bottom_frame:function(s,u){var p=u.stack;s.componentDidCatch(u.value,{componentStack:p!==null?p:\"\"})}},_gt=x_e.react_stack_bottom_frame.bind(x_e),E_e={react_stack_bottom_frame:function(s,u,p){try{p.componentWillUnmount()}catch(b){In(s,u,b)}}},A_e=E_e.react_stack_bottom_frame.bind(E_e),S_e={react_stack_bottom_frame:function(s){var u=s.create;return s=s.inst,u=u(),s.destroy=u}},Tgt=S_e.react_stack_bottom_frame.bind(S_e),__e={react_stack_bottom_frame:function(s,u,p){try{p()}catch(b){In(s,u,b)}}},Cgt=__e.react_stack_bottom_frame.bind(__e),T_e={react_stack_bottom_frame:function(s){var u=s._init;return u(s._payload)}},Rgt=T_e.react_stack_bottom_frame.bind(T_e),n8=Error(\"Suspense Exception: This is not a real error! It\\'s an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\\\\n\\\\nTo handle async errors, wrap your component in an error boundary, or call the promise\\'s `.catch` method and pass the result to `use`.\"),Mae=Error(\"Suspense Exception: This is not a real error, and should not leak into userspace. If you\\'re seeing this, it\\'s likely a bug in React.\"),KW=Error(\"Suspense Exception: This is not a real error! It\\'s an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\\\\n\\\\nTo handle async errors, wrap your component in an error boundary.\"),YW={then:function(){console.error(\\'Internal React error: A listener was unexpectedly attached to a \"noop\" thenable. This is a bug in React. Please file an issue.\\')}},Y6=null,K7=!1,r8=null,Y7=0,Rr=null,Dae,C_e=Dae=!1,R_e={},I_e={},k_e={};m=function(s,u,p){if(p!==null&&typeof p==\"object\"&&p._store&&(!p._store.validated&&p.key==null||p._store.validated===2)){if(typeof p._store!=\"object\")throw Error(\"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.\");p._store.validated=1;var b=te(s),S=b||\"null\";if(!R_e[S]){R_e[S]=!0,p=p._owner,s=s._debugOwner;var T=\"\";s&&typeof s.tag==\"number\"&&(S=te(s))&&(T=`\\n\\nCheck the render method of \\\\``+S+\"`.\"),T||b&&(T=`\\n\\nCheck the top-level render call using <`+b+\">.\");var j=\"\";p!=null&&s!==p&&(b=null,typeof p.tag==\"number\"?b=te(p):typeof p.name==\"string\"&&(b=p.name),b&&(j=\" It was passed a child from \"+b+\".\")),_e(u,function(){console.error(\\'Each child in a list should have a unique \"key\" prop.%s%s See https://react.dev/link/warning-keys for more information.\\',T,j)})}}};var Z6=Sl(!0),O_e=Sl(!1),N_e=0,P_e=1,M_e=2,Bae=3,zS=!1,D_e=!1,Lae=null,Uae=!1,o8=Z(null),ZW=Z(0),Qm=Z(null),wg=null,i8=1,Z7=2,Qc=Z(0),QW=0,xg=1,Pp=2,Jm=4,Mp=8,a8,B_e=new Set,L_e=new Set,Fae=new Set,U_e=new Set,S2=0,Kn=null,ea=null,Tu=null,JW=!1,s8=!1,Q6=!1,XW=0,Q7=0,_2=null,Igt=0,kgt=25,Je=null,Eg=null,T2=-1,J7=!1,X7={readContext:Hr,use:ng,useCallback:fa,useContext:fa,useEffect:fa,useImperativeHandle:fa,useLayoutEffect:fa,useInsertionEffect:fa,useMemo:fa,useReducer:fa,useRef:fa,useState:fa,useDebugValue:fa,useDeferredValue:fa,useTransition:fa,useSyncExternalStore:fa,useId:fa,useHostTransitionStatus:fa,useFormState:fa,useActionState:fa,useOptimistic:fa,useMemoCache:fa,useCacheRefresh:fa};X7.useEffectEvent=fa;var Hae=null,F_e=null,zae=null,H_e=null,Fv=null,Cb=null,$W=null;Hae={readContext:function(s){return Hr(s)},use:ng,useCallback:function(s,u){return Je=\"useCallback\",ar(),sb(u),E6(s,u)},useContext:function(s){return Je=\"useContext\",ar(),Hr(s)},useEffect:function(s,u){return Je=\"useEffect\",ar(),sb(u),dv(s,u)},useImperativeHandle:function(s,u,p){return Je=\"useImperativeHandle\",ar(),sb(p),x6(s,u,p)},useInsertionEffect:function(s,u){Je=\"useInsertionEffect\",ar(),sb(u),rg(4,Pp,s,u)},useLayoutEffect:function(s,u){return Je=\"useLayoutEffect\",ar(),sb(u),dS(s,u)},useMemo:function(s,u){Je=\"useMemo\",ar(),sb(u);var p=tt.H;tt.H=Fv;try{return gp(s,u)}finally{tt.H=p}},useReducer:function(s,u,p){Je=\"useReducer\",ar();var b=tt.H;tt.H=Fv;try{return oS(s,u,p)}finally{tt.H=b}},useRef:function(s){return Je=\"useRef\",ar(),lS(s)},useState:function(s){Je=\"useState\",ar();var u=tt.H;tt.H=Fv;try{return b6(s)}finally{tt.H=u}},useDebugValue:function(){Je=\"useDebugValue\",ar()},useDeferredValue:function(s,u){return Je=\"useDeferredValue\",ar(),Th(s,u)},useTransition:function(){return Je=\"useTransition\",ar(),gS()},useSyncExternalStore:function(s,u,p){return Je=\"useSyncExternalStore\",ar(),g6(s,u,p)},useId:function(){return Je=\"useId\",ar(),hv()},useFormState:function(s,u){return Je=\"useFormState\",ar(),Qx(),lv(s,u)},useActionState:function(s,u){return Je=\"useActionState\",ar(),lv(s,u)},useOptimistic:function(s){return Je=\"useOptimistic\",ar(),cv(s)},useHostTransitionStatus:db,useMemoCache:Hm,useCacheRefresh:function(){return Je=\"useCacheRefresh\",ar(),k6()},useEffectEvent:function(s){return Je=\"useEffectEvent\",ar(),t2(s)}},F_e={readContext:function(s){return Hr(s)},use:ng,useCallback:function(s,u){return Je=\"useCallback\",_t(),E6(s,u)},useContext:function(s){return Je=\"useContext\",_t(),Hr(s)},useEffect:function(s,u){return Je=\"useEffect\",_t(),dv(s,u)},useImperativeHandle:function(s,u,p){return Je=\"useImperativeHandle\",_t(),x6(s,u,p)},useInsertionEffect:function(s,u){Je=\"useInsertionEffect\",_t(),rg(4,Pp,s,u)},useLayoutEffect:function(s,u){return Je=\"useLayoutEffect\",_t(),dS(s,u)},useMemo:function(s,u){Je=\"useMemo\",_t();var p=tt.H;tt.H=Fv;try{return gp(s,u)}finally{tt.H=p}},useReducer:function(s,u,p){Je=\"useReducer\",_t();var b=tt.H;tt.H=Fv;try{return oS(s,u,p)}finally{tt.H=b}},useRef:function(s){return Je=\"useRef\",_t(),lS(s)},useState:function(s){Je=\"useState\",_t();var u=tt.H;tt.H=Fv;try{return b6(s)}finally{tt.H=u}},useDebugValue:function(){Je=\"useDebugValue\",_t()},useDeferredValue:function(s,u){return Je=\"useDeferredValue\",_t(),Th(s,u)},useTransition:function(){return Je=\"useTransition\",_t(),gS()},useSyncExternalStore:function(s,u,p){return Je=\"useSyncExternalStore\",_t(),g6(s,u,p)},useId:function(){return Je=\"useId\",_t(),hv()},useActionState:function(s,u){return Je=\"useActionState\",_t(),lv(s,u)},useFormState:function(s,u){return Je=\"useFormState\",_t(),Qx(),lv(s,u)},useOptimistic:function(s){return Je=\"useOptimistic\",_t(),cv(s)},useHostTransitionStatus:db,useMemoCache:Hm,useCacheRefresh:function(){return Je=\"useCacheRefresh\",_t(),k6()},useEffectEvent:function(s){return Je=\"useEffectEvent\",_t(),t2(s)}},zae={readContext:function(s){return Hr(s)},use:ng,useCallback:function(s,u){return Je=\"useCallback\",_t(),pS(s,u)},useContext:function(s){return Je=\"useContext\",_t(),Hr(s)},useEffect:function(s,u){Je=\"useEffect\",_t(),hu(2048,Mp,s,u)},useImperativeHandle:function(s,u,p){return Je=\"useImperativeHandle\",_t(),fS(s,u,p)},useInsertionEffect:function(s,u){return Je=\"useInsertionEffect\",_t(),hu(4,Pp,s,u)},useLayoutEffect:function(s,u){return Je=\"useLayoutEffect\",_t(),hu(4,Jm,s,u)},useMemo:function(s,u){Je=\"useMemo\",_t();var p=tt.H;tt.H=Cb;try{return lb(s,u)}finally{tt.H=p}},useReducer:function(s,u,p){Je=\"useReducer\",_t();var b=tt.H;tt.H=Cb;try{return cb(s,u,p)}finally{tt.H=b}},useRef:function(){return Je=\"useRef\",_t(),Vo().memoizedState},useState:function(){Je=\"useState\",_t();var s=tt.H;tt.H=Cb;try{return cb(mp)}finally{tt.H=s}},useDebugValue:function(){Je=\"useDebugValue\",_t()},useDeferredValue:function(s,u){return Je=\"useDeferredValue\",_t(),A6(s,u)},useTransition:function(){return Je=\"useTransition\",_t(),I6()},useSyncExternalStore:function(s,u,p){return Je=\"useSyncExternalStore\",_t(),aS(s,u,p)},useId:function(){return Je=\"useId\",_t(),Vo().memoizedState},useFormState:function(s){return Je=\"useFormState\",_t(),Qx(),cS(s)},useActionState:function(s){return Je=\"useActionState\",_t(),cS(s)},useOptimistic:function(s,u){return Je=\"useOptimistic\",_t(),e2(s,u)},useHostTransitionStatus:db,useMemoCache:Hm,useCacheRefresh:function(){return Je=\"useCacheRefresh\",_t(),Vo().memoizedState},useEffectEvent:function(s){return Je=\"useEffectEvent\",_t(),fv(s)}},H_e={readContext:function(s){return Hr(s)},use:ng,useCallback:function(s,u){return Je=\"useCallback\",_t(),pS(s,u)},useContext:function(s){return Je=\"useContext\",_t(),Hr(s)},useEffect:function(s,u){Je=\"useEffect\",_t(),hu(2048,Mp,s,u)},useImperativeHandle:function(s,u,p){return Je=\"useImperativeHandle\",_t(),fS(s,u,p)},useInsertionEffect:function(s,u){return Je=\"useInsertionEffect\",_t(),hu(4,Pp,s,u)},useLayoutEffect:function(s,u){return Je=\"useLayoutEffect\",_t(),hu(4,Jm,s,u)},useMemo:function(s,u){Je=\"useMemo\",_t();var p=tt.H;tt.H=$W;try{return lb(s,u)}finally{tt.H=p}},useReducer:function(s,u,p){Je=\"useReducer\",_t();var b=tt.H;tt.H=$W;try{return $x(s,u,p)}finally{tt.H=b}},useRef:function(){return Je=\"useRef\",_t(),Vo().memoizedState},useState:function(){Je=\"useState\",_t();var s=tt.H;tt.H=$W;try{return $x(mp)}finally{tt.H=s}},useDebugValue:function(){Je=\"useDebugValue\",_t()},useDeferredValue:function(s,u){return Je=\"useDeferredValue\",_t(),S6(s,u)},useTransition:function(){return Je=\"useTransition\",_t(),pv()},useSyncExternalStore:function(s,u,p){return Je=\"useSyncExternalStore\",_t(),aS(s,u,p)},useId:function(){return Je=\"useId\",_t(),Vo().memoizedState},useFormState:function(s){return Je=\"useFormState\",_t(),Qx(),uS(s)},useActionState:function(s){return Je=\"useActionState\",_t(),uS(s)},useOptimistic:function(s,u){return Je=\"useOptimistic\",_t(),E4(s,u)},useHostTransitionStatus:db,useMemoCache:Hm,useCacheRefresh:function(){return Je=\"useCacheRefresh\",_t(),Vo().memoizedState},useEffectEvent:function(s){return Je=\"useEffectEvent\",_t(),fv(s)}},Fv={readContext:function(s){return l(),Hr(s)},use:function(s){return c(),ng(s)},useCallback:function(s,u){return Je=\"useCallback\",c(),ar(),E6(s,u)},useContext:function(s){return Je=\"useContext\",c(),ar(),Hr(s)},useEffect:function(s,u){return Je=\"useEffect\",c(),ar(),dv(s,u)},useImperativeHandle:function(s,u,p){return Je=\"useImperativeHandle\",c(),ar(),x6(s,u,p)},useInsertionEffect:function(s,u){Je=\"useInsertionEffect\",c(),ar(),rg(4,Pp,s,u)},useLayoutEffect:function(s,u){return Je=\"useLayoutEffect\",c(),ar(),dS(s,u)},useMemo:function(s,u){Je=\"useMemo\",c(),ar();var p=tt.H;tt.H=Fv;try{return gp(s,u)}finally{tt.H=p}},useReducer:function(s,u,p){Je=\"useReducer\",c(),ar();var b=tt.H;tt.H=Fv;try{return oS(s,u,p)}finally{tt.H=b}},useRef:function(s){return Je=\"useRef\",c(),ar(),lS(s)},useState:function(s){Je=\"useState\",c(),ar();var u=tt.H;tt.H=Fv;try{return b6(s)}finally{tt.H=u}},useDebugValue:function(){Je=\"useDebugValue\",c(),ar()},useDeferredValue:function(s,u){return Je=\"useDeferredValue\",c(),ar(),Th(s,u)},useTransition:function(){return Je=\"useTransition\",c(),ar(),gS()},useSyncExternalStore:function(s,u,p){return Je=\"useSyncExternalStore\",c(),ar(),g6(s,u,p)},useId:function(){return Je=\"useId\",c(),ar(),hv()},useFormState:function(s,u){return Je=\"useFormState\",c(),ar(),lv(s,u)},useActionState:function(s,u){return Je=\"useActionState\",c(),ar(),lv(s,u)},useOptimistic:function(s){return Je=\"useOptimistic\",c(),ar(),cv(s)},useMemoCache:function(s){return c(),Hm(s)},useHostTransitionStatus:db,useCacheRefresh:function(){return Je=\"useCacheRefresh\",ar(),k6()},useEffectEvent:function(s){return Je=\"useEffectEvent\",c(),ar(),t2(s)}},Cb={readContext:function(s){return l(),Hr(s)},use:function(s){return c(),ng(s)},useCallback:function(s,u){return Je=\"useCallback\",c(),_t(),pS(s,u)},useContext:function(s){return Je=\"useContext\",c(),_t(),Hr(s)},useEffect:function(s,u){Je=\"useEffect\",c(),_t(),hu(2048,Mp,s,u)},useImperativeHandle:function(s,u,p){return Je=\"useImperativeHandle\",c(),_t(),fS(s,u,p)},useInsertionEffect:function(s,u){return Je=\"useInsertionEffect\",c(),_t(),hu(4,Pp,s,u)},useLayoutEffect:function(s,u){return Je=\"useLayoutEffect\",c(),_t(),hu(4,Jm,s,u)},useMemo:function(s,u){Je=\"useMemo\",c(),_t();var p=tt.H;tt.H=Cb;try{return lb(s,u)}finally{tt.H=p}},useReducer:function(s,u,p){Je=\"useReducer\",c(),_t();var b=tt.H;tt.H=Cb;try{return cb(s,u,p)}finally{tt.H=b}},useRef:function(){return Je=\"useRef\",c(),_t(),Vo().memoizedState},useState:function(){Je=\"useState\",c(),_t();var s=tt.H;tt.H=Cb;try{return cb(mp)}finally{tt.H=s}},useDebugValue:function(){Je=\"useDebugValue\",c(),_t()},useDeferredValue:function(s,u){return Je=\"useDeferredValue\",c(),_t(),A6(s,u)},useTransition:function(){return Je=\"useTransition\",c(),_t(),I6()},useSyncExternalStore:function(s,u,p){return Je=\"useSyncExternalStore\",c(),_t(),aS(s,u,p)},useId:function(){return Je=\"useId\",c(),_t(),Vo().memoizedState},useFormState:function(s){return Je=\"useFormState\",c(),_t(),cS(s)},useActionState:function(s){return Je=\"useActionState\",c(),_t(),cS(s)},useOptimistic:function(s,u){return Je=\"useOptimistic\",c(),_t(),e2(s,u)},useMemoCache:function(s){return c(),Hm(s)},useHostTransitionStatus:db,useCacheRefresh:function(){return Je=\"useCacheRefresh\",_t(),Vo().memoizedState},useEffectEvent:function(s){return Je=\"useEffectEvent\",c(),_t(),fv(s)}},$W={readContext:function(s){return l(),Hr(s)},use:function(s){return c(),ng(s)},useCallback:function(s,u){return Je=\"useCallback\",c(),_t(),pS(s,u)},useContext:function(s){return Je=\"useContext\",c(),_t(),Hr(s)},useEffect:function(s,u){Je=\"useEffect\",c(),_t(),hu(2048,Mp,s,u)},useImperativeHandle:function(s,u,p){return Je=\"useImperativeHandle\",c(),_t(),fS(s,u,p)},useInsertionEffect:function(s,u){return Je=\"useInsertionEffect\",c(),_t(),hu(4,Pp,s,u)},useLayoutEffect:function(s,u){return Je=\"useLayoutEffect\",c(),_t(),hu(4,Jm,s,u)},useMemo:function(s,u){Je=\"useMemo\",c(),_t();var p=tt.H;tt.H=Cb;try{return lb(s,u)}finally{tt.H=p}},useReducer:function(s,u,p){Je=\"useReducer\",c(),_t();var b=tt.H;tt.H=Cb;try{return $x(s,u,p)}finally{tt.H=b}},useRef:function(){return Je=\"useRef\",c(),_t(),Vo().memoizedState},useState:function(){Je=\"useState\",c(),_t();var s=tt.H;tt.H=Cb;try{return $x(mp)}finally{tt.H=s}},useDebugValue:function(){Je=\"useDebugValue\",c(),_t()},useDeferredValue:function(s,u){return Je=\"useDeferredValue\",c(),_t(),S6(s,u)},useTransition:function(){return Je=\"useTransition\",c(),_t(),pv()},useSyncExternalStore:function(s,u,p){return Je=\"useSyncExternalStore\",c(),_t(),aS(s,u,p)},useId:function(){return Je=\"useId\",c(),_t(),Vo().memoizedState},useFormState:function(s){return Je=\"useFormState\",c(),_t(),uS(s)},useActionState:function(s){return Je=\"useActionState\",c(),_t(),uS(s)},useOptimistic:function(s,u){return Je=\"useOptimistic\",c(),_t(),E4(s,u)},useMemoCache:function(s){return c(),Hm(s)},useHostTransitionStatus:db,useCacheRefresh:function(){return Je=\"useCacheRefresh\",_t(),Vo().memoizedState},useEffectEvent:function(s){return Je=\"useEffectEvent\",c(),_t(),fv(s)}};var z_e={},j_e=new Set,W_e=new Set,V_e=new Set,G_e=new Set,q_e=new Set,K_e=new Set,Y_e=new Set,Z_e=new Set,Q_e=new Set,J_e=new Set;Object.freeze(z_e);var jae={enqueueSetState:function(s,u,p){s=s._reactInternals;var b=mt(s),S=hp(b);S.payload=u,p!=null&&(mv(p),S.callback=p),u=Sh(s,S,b),u!==null&&(pp(b,\"this.setState()\",s),$e(u,s,b),ab(u,s,b))},enqueueReplaceState:function(s,u,p){s=s._reactInternals;var b=mt(s),S=hp(b);S.tag=P_e,S.payload=u,p!=null&&(mv(p),S.callback=p),u=Sh(s,S,b),u!==null&&(pp(b,\"this.replaceState()\",s),$e(u,s,b),ab(u,s,b))},enqueueForceUpdate:function(s,u){s=s._reactInternals;var p=mt(s),b=hp(p);b.tag=M_e,u!=null&&(mv(u),b.callback=u),u=Sh(s,b,p),u!==null&&(pp(p,\"this.forceUpdate()\",s),$e(u,s,p),ab(u,s,p))}},c8=null,Wae=null,Vae=Error(\"This is not a real error. It\\'s an implementation detail of React\\'s selective hydration feature. If this leaks into userspace, it\\'s a bug in React. Please file an issue.\"),Cu=!1,X_e={},$_e={},eTe={},tTe={},u8=!1,nTe={},eV={},Gae={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},rTe=!1,oTe=null;oTe=new Set;var C2=!1,Ru=!1,qae=!1,iTe=typeof WeakSet==\"function\"?WeakSet:Set,Dl=null,l8=null,d8=null,Iu=null,Mh=!1,Rb=null,dl=!1,$7=8192,Ogt={getCacheForType:function(s){var u=Hr(Su),p=u.data.get(s);return p===void 0&&(p=s(),u.data.set(s,p)),p},cacheSignal:function(){return Hr(Su).controller.signal},getOwner:function(){return Km}};if(typeof Symbol==\"function\"&&Symbol.for){var e9=Symbol.for;e9(\"selector.component\"),e9(\"selector.has_pseudo_class\"),e9(\"selector.role\"),e9(\"selector.test_id\"),e9(\"selector.text\")}var Ngt=[],Pgt=typeof WeakMap==\"function\"?WeakMap:Map,Bl=0,fl=2,Xm=4,R2=0,t9=1,J6=2,tV=3,jS=4,nV=6,aTe=5,Do=Bl,ta=null,Mr=null,Ir=0,Dh=0,rV=1,X6=2,n9=3,sTe=4,Kae=5,r9=6,oV=7,Yae=8,$6=9,ki=Dh,$m=null,WS=!1,f8=!1,Zae=!1,Hv=0,_s=R2,VS=0,GS=0,Qae=0,Bh=0,e5=0,o9=null,Dp=null,iV=!1,aV=0,cTe=0,uTe=300,sV=1/0,lTe=500,i9=null,Ec=null,qS=null,cV=0,Jae=1,Xae=2,dTe=3,KS=0,fTe=1,pTe=2,hTe=3,mTe=4,uV=5,ku=0,YS=null,p8=null,Ib=0,$ae=0,ese=-0,tse=null,gTe=null,yTe=null,kb=cV,bTe=null,Mgt=50,a9=0,nse=null,rse=!1,lV=!1,Dgt=50,t5=0,s9=null,h8=!1,dV=null,vTe=!1,wTe=new Set,Bgt={},fV=null,m8=null,ose=!1,ise=!1,pV=!1,ase=!1,ZS=0,sse={};(function(){for(var s=0;s<bae.length;s++){var u=bae[s],p=u.toLowerCase();u=u[0].toUpperCase()+u.slice(1),lu(p,\"on\"+u)}lu(QSe,\"onAnimationEnd\"),lu(JSe,\"onAnimationIteration\"),lu(XSe,\"onAnimationStart\"),lu(\"dblclick\",\"onDoubleClick\"),lu(\"focusin\",\"onFocus\"),lu(\"focusout\",\"onBlur\"),lu(fgt,\"onTransitionRun\"),lu(pgt,\"onTransitionStart\"),lu(hgt,\"onTransitionCancel\"),lu($Se,\"onTransitionEnd\")})(),hs(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]),hs(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]),hs(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]),hs(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]),Mn(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \")),Mn(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \")),Mn(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]),Mn(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \")),Mn(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")),Mn(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var c9=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),cse=new Set(\"beforetoggle cancel close invalid load scroll scrollend toggle\".split(\" \").concat(c9)),hV=\"_reactListening\"+Math.random().toString(36).slice(2),xTe=!1,ETe=!1,mV=!1,ATe=!1,gV=!1,yV=!1,STe=!1,bV={},Lgt=/\\\\r\\\\n?/g,Ugt=/\\\\u0000|\\\\uFFFD/g,n5=\"http://www.w3.org/1999/xlink\",use=\"http://www.w3.org/XML/1998/namespace\",Fgt=\"javascript:throw new Error(\\'React form unexpectedly submitted.\\')\",Hgt=\"suppressHydrationWarning\",r5=\"&\",vV=\"/&\",u9=\"$\",l9=\"/$\",QS=\"$?\",o5=\"$~\",g8=\"$!\",zgt=\"html\",jgt=\"body\",Wgt=\"head\",lse=\"F!\",_Te=\"F\",TTe=\"loading\",Vgt=\"style\",I2=0,y8=1,wV=2,dse=null,fse=null,CTe={dialog:!0,webview:!0},pse=null,d9=void 0,RTe=typeof setTimeout==\"function\"?setTimeout:void 0,Ggt=typeof clearTimeout==\"function\"?clearTimeout:void 0,i5=-1,ITe=typeof Promise==\"function\"?Promise:void 0,qgt=typeof queueMicrotask==\"function\"?queueMicrotask:typeof ITe<\"u\"?function(s){return ITe.resolve(null).then(s).catch(wb)}:RTe,hse=null,a5=0,f9=1,kTe=2,OTe=3,Ag=4,Sg=new Map,NTe=new Set,k2=Ai.d;Ai.d={f:function(){var s=k2.f(),u=po();return s||u},r:function(s){var u=Yt(s);u!==null&&u.tag===5&&u.type===\"form\"?R6(u):k2.r(s)},D:function(s){k2.D(s),Ph(\"dns-prefetch\",s,null)},C:function(s,u){k2.C(s,u),Ph(\"preconnect\",s,u)},L:function(s,u,p){k2.L(s,u,p);var b=b8;if(b&&s&&u){var S=\\'link[rel=\"preload\"][as=\"\\'+Tr(u)+\\'\"]\\';u===\"image\"&&p&&p.imageSrcSet?(S+=\\'[imagesrcset=\"\\'+Tr(p.imageSrcSet)+\\'\"]\\',typeof p.imageSizes==\"string\"&&(S+=\\'[imagesizes=\"\\'+Tr(p.imageSizes)+\\'\"]\\')):S+=\\'[href=\"\\'+Tr(s)+\\'\"]\\';var T=S;switch(u){case\"style\":T=P4(s);break;case\"script\":T=M4(s)}Sg.has(T)||(s=jr({rel:\"preload\",href:u===\"image\"&&p&&p.imageSrcSet?void 0:s,as:u},p),Sg.set(T,s),b.querySelector(S)!==null||u===\"style\"&&b.querySelector(b7(T))||u===\"script\"&&b.querySelector(v7(T))||(u=b.createElement(\"link\"),$i(u,\"link\",s),zt(u),b.head.appendChild(u)))}},m:function(s,u){k2.m(s,u);var p=b8;if(p&&s){var b=u&&typeof u.as==\"string\"?u.as:\"script\",S=\\'link[rel=\"modulepreload\"][as=\"\\'+Tr(b)+\\'\"][href=\"\\'+Tr(s)+\\'\"]\\',T=S;switch(b){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":T=M4(s)}if(!Sg.has(T)&&(s=jr({rel:\"modulepreload\",href:s},u),Sg.set(T,s),p.querySelector(S)===null)){switch(b){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":if(p.querySelector(v7(T)))return}b=p.createElement(\"link\"),$i(b,\"link\",s),zt(b),p.head.appendChild(b)}}},X:function(s,u){k2.X(s,u);var p=b8;if(p&&s){var b=ir(p).hoistableScripts,S=M4(s),T=b.get(S);T||(T=p.querySelector(v7(S)),T||(s=jr({src:s,async:!0},u),(u=Sg.get(S))&&Bie(s,u),T=p.createElement(\"script\"),zt(T),$i(T,\"link\",s),p.head.appendChild(T)),T={type:\"script\",instance:T,count:1,state:null},b.set(S,T))}},S:function(s,u,p){k2.S(s,u,p);var b=b8;if(b&&s){var S=ir(b).hoistableStyles,T=P4(s);u=u||\"default\";var j=S.get(T);if(!j){var Y={loading:a5,preload:null};if(j=b.querySelector(b7(T)))Y.loading=f9|Ag;else{s=jr({rel:\"stylesheet\",href:s,\"data-precedence\":u},p),(p=Sg.get(T))&&Die(s,p);var ce=j=b.createElement(\"link\");zt(ce),$i(ce,\"link\",s),ce._p=new Promise(function(fe,De){ce.onload=fe,ce.onerror=De}),ce.addEventListener(\"load\",function(){Y.loading|=f9}),ce.addEventListener(\"error\",function(){Y.loading|=kTe}),Y.loading|=Ag,mW(j,u,b)}j={type:\"stylesheet\",instance:j,count:1,state:Y},S.set(T,j)}}},M:function(s,u){k2.M(s,u);var p=b8;if(p&&s){var b=ir(p).hoistableScripts,S=M4(s),T=b.get(S);T||(T=p.querySelector(v7(S)),T||(s=jr({src:s,async:!0,type:\"module\"},u),(u=Sg.get(S))&&Bie(s,u),T=p.createElement(\"script\"),zt(T),$i(T,\"link\",s),p.head.appendChild(T)),T={type:\"script\",instance:T,count:1,state:null},b.set(S,T))}}};var b8=typeof document>\"u\"?null:document,xV=null,Kgt=6e4,Ygt=800,Zgt=500,mse=0,gse=null,EV=null,s5=l0t,p9={$$typeof:kv,Provider:null,Consumer:null,_currentValue:s5,_currentValue2:s5,_threadCount:0},PTe=\"%c%s%c\",MTe=\"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px\",DTe=\"\",AV=\" \",Qgt=Function.prototype.bind,BTe=!1,LTe=null,UTe=null,FTe=null,HTe=null,zTe=null,jTe=null,WTe=null,VTe=null,GTe=null,qTe=null;LTe=function(s,u,p,b){u=e(s,u),u!==null&&(p=t(u.memoizedState,p,0,b),u.memoizedState=p,u.baseState=p,s.memoizedProps=jr({},s.memoizedProps),p=zc(s,2),p!==null&&$e(p,s,2))},UTe=function(s,u,p){u=e(s,u),u!==null&&(p=o(u.memoizedState,p,0),u.memoizedState=p,u.baseState=p,s.memoizedProps=jr({},s.memoizedProps),p=zc(s,2),p!==null&&$e(p,s,2))},FTe=function(s,u,p,b){u=e(s,u),u!==null&&(p=n(u.memoizedState,p,b),u.memoizedState=p,u.baseState=p,s.memoizedProps=jr({},s.memoizedProps),p=zc(s,2),p!==null&&$e(p,s,2))},HTe=function(s,u,p){s.pendingProps=t(s.memoizedProps,u,0,p),s.alternate&&(s.alternate.pendingProps=s.pendingProps),u=zc(s,2),u!==null&&$e(u,s,2)},zTe=function(s,u){s.pendingProps=o(s.memoizedProps,u,0),s.alternate&&(s.alternate.pendingProps=s.pendingProps),u=zc(s,2),u!==null&&$e(u,s,2)},jTe=function(s,u,p){s.pendingProps=n(s.memoizedProps,u,p),s.alternate&&(s.alternate.pendingProps=s.pendingProps),u=zc(s,2),u!==null&&$e(u,s,2)},WTe=function(s){var u=zc(s,2);u!==null&&$e(u,s,2)},VTe=function(s){var u=Fn(),p=zc(s,u);p!==null&&$e(p,s,u)},GTe=function(s){a=s},qTe=function(s){i=s};var SV=!0,_V=null,yse=!1,JS=null,XS=null,$S=null,h9=new Map,m9=new Map,e_=[],Jgt=\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset\".split(\" \"),TV=null;if(wW.prototype.render=jie.prototype.render=function(s){var u=this._internalRoot;if(u===null)throw Error(\"Cannot update an unmounted root.\");var p=arguments;typeof p[1]==\"function\"?console.error(\"does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().\"):I(p[1])?console.error(\"You passed a container to the second argument of root.render(...). You don\\'t need to pass it again since you already passed it to create the root.\"):typeof p[1]<\"u\"&&console.error(\"You passed a second argument to root.render(...) but it only accepts one argument.\"),p=s;var b=u.current,S=mt(b);Lie(b,S,p,u,null,null)},wW.prototype.unmount=jie.prototype.unmount=function(){var s=arguments;if(typeof s[0]==\"function\"&&console.error(\"does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().\"),s=this._internalRoot,s!==null){this._internalRoot=null;var u=s.containerInfo;(Do&(fl|Xm))!==Bl&&console.error(\"Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.\"),Lie(s.current,2,null,s,null,null),po(),u[kS]=null}},wW.prototype.unstable_scheduleHydration=function(s){if(s){var u=Le();s={blockedOn:null,target:s,priority:u};for(var p=0;p<e_.length&&u!==0&&u<e_[p].priority;p++);e_.splice(p,0,s),p===0&&nSe(s)}},(function(){var s=Wie.version;if(s!==\"19.2.0\")throw Error(`Incompatible React versions: The \"react\" and \"react-dom\" packages must have the exact same version. Instead got:\\n  - react:      `+(s+`\\n  - react-dom:  19.2.0\\nLearn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map==\"function\"&&Map.prototype!=null&&typeof Map.prototype.forEach==\"function\"&&typeof Set==\"function\"&&Set.prototype!=null&&typeof Set.prototype.clear==\"function\"&&typeof Set.prototype.forEach==\"function\"||console.error(\"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills\"),Ai.findDOMNode=function(s){var u=s._reactInternals;if(u===void 0)throw typeof s.render==\"function\"?Error(\"Unable to find node on an unmounted component.\"):(s=Object.keys(s).join(\",\"),Error(\"Argument appears to not be a ReactComponent. Keys: \"+s));return s=G(u),s=s!==null?J(s):null,s=s===null?null:s.stateNode,s},!(function(){var s={bundleType:1,version:\"19.2.0\",rendererPackageName:\"react-dom\",currentDispatcherRef:tt,reconcilerVersion:\"19.2.0\"};return s.overrideHookState=LTe,s.overrideHookStateDeletePath=UTe,s.overrideHookStateRenamePath=FTe,s.overrideProps=HTe,s.overridePropsDeletePath=zTe,s.overridePropsRenamePath=jTe,s.scheduleUpdate=WTe,s.scheduleRetry=VTe,s.setErrorHandler=GTe,s.setSuspenseHandler=qTe,s.scheduleRefresh=w,s.scheduleRoot=y,s.setRefreshHandler=x,s.getCurrentFiber=t0t,mn(s)})()&&Dv&&window.top===window.self&&(-1<navigator.userAgent.indexOf(\"Chrome\")&&navigator.userAgent.indexOf(\"Edge\")===-1||-1<navigator.userAgent.indexOf(\"Firefox\"))){var KTe=window.location.protocol;/^(https?|file):$/.test(KTe)&&console.info(\"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools\"+(KTe===\"file:\"?`\\nYou might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:\"\"),\"font-weight:bold\")}OV.createRoot=function(s,u){if(!I(s))throw Error(\"Target container is not a DOM element.\");aSe(s);var p=!1,b=\"\",S=fb,T=pb,j=hb;return u!=null&&(u.hydrate?console.warn(\"hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.\"):typeof u==\"object\"&&u!==null&&u.$$typeof===Iv&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\\n\\n  let root = createRoot(domContainer);\\n  root.render(<App />);`),u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(b=u.identifierPrefix),u.onUncaughtError!==void 0&&(S=u.onUncaughtError),u.onCaughtError!==void 0&&(T=u.onCaughtError),u.onRecoverableError!==void 0&&(j=u.onRecoverableError)),u=ZAe(s,1,!1,null,null,p,b,null,S,T,j,iSe),s[kS]=u.current,Ol(s),new jie(u)},OV.hydrateRoot=function(s,u,p){if(!I(s))throw Error(\"Target container is not a DOM element.\");aSe(s),u===void 0&&console.error(\"Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)\");var b=!1,S=\"\",T=fb,j=pb,Y=hb,ce=null;return p!=null&&(p.unstable_strictMode===!0&&(b=!0),p.identifierPrefix!==void 0&&(S=p.identifierPrefix),p.onUncaughtError!==void 0&&(T=p.onUncaughtError),p.onCaughtError!==void 0&&(j=p.onCaughtError),p.onRecoverableError!==void 0&&(Y=p.onRecoverableError),p.formState!==void 0&&(ce=p.formState)),u=ZAe(s,1,!0,u,p??null,b,S,ce,T,j,Y,iSe),u.context=QAe(null),p=u.current,b=mt(p),b=$r(b),S=hp(b),S.callback=null,Sh(p,S,b),pp(b,\"hydrateRoot()\",null),p=b,u.current.lanes=p,Hs(u,p),Pa(u),s[kS]=u.current,Ol(s),new wW(u)},OV.version=\"19.2.0\",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var RCe=me((X$t,CCe)=>{\"use strict\";f();CCe.exports=TCe()});function ya(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}var Tg=$(()=>{f()});var Ise,ICe=$(()=>{f();Ise=\"2.38.4\"});function kCe(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause!==void 0?kCe(e.cause,t):t?null:e}var kse,Oe,Jn=$(()=>{f();ICe();kse={getDocsUrl:({docsBaseUrl:e,docsPath:t=\"\",docsSlug:n})=>t?`${e??\"https://viem.sh\"}${t}${n?`#${n}`:\"\"}`:void 0,version:`viem@${Ise}`},Oe=class e extends Error{constructor(t,n={}){let r=n.cause instanceof e?n.cause.details:n.cause?.message?n.cause.message:n.details,o=n.cause instanceof e&&n.cause.docsPath||n.docsPath,i=kse.getDocsUrl?.({...n,docsPath:o}),a=[t||\"An error occurred.\",\"\",...n.metaMessages?[...n.metaMessages,\"\"]:[],...i?[`Docs: ${i}`]:[],...r?[`Details: ${r}`]:[],...kse.version?[`Version: ${kse.version}`]:[]].join(`\\n`);super(a,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseError\"}),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=t,this.version=Ise}walk(t){return kCe(this,t)}}});var A8,NV,PV,MV,v9=$(()=>{f();Jn();A8=class extends Oe{constructor({max:t,min:n,signed:r,size:o,value:i}){super(`Number \"${i}\" is not in safe ${o?`${o*8}-bit ${r?\"signed\":\"unsigned\"} `:\"\"}integer range ${t?`(${n} to ${t})`:`(above ${n})`}`,{name:\"IntegerOutOfRangeError\"})}},NV=class extends Oe{constructor(t){super(`Bytes value \"${t}\" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:\"InvalidBytesBooleanError\"})}},PV=class extends Oe{constructor(t){super(`Hex value \"${t}\" is not a valid boolean. The hex value must be \"0x0\" (false) or \"0x1\" (true).`,{name:\"InvalidHexBooleanError\"})}},MV=class extends Oe{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`,{name:\"SizeOverflowError\"})}}});function ro(e,{strict:t=!0}={}){return!e||typeof e!=\"string\"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith(\"0x\")}var Cg=$(()=>{f()});function Jr(e){return ro(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}var e0=$(()=>{f();Cg()});function na(e,{dir:t=\"left\"}={}){let n=typeof e==\"string\"?e.replace(\"0x\",\"\"):e,r=0;for(let o=0;o<n.length-1&&n[t===\"left\"?o:n.length-o-1].toString()===\"0\";o++)r++;return n=t===\"left\"?n.slice(r):n.slice(0,n.length-r),typeof e==\"string\"?(n.length===1&&t===\"right\"&&(n=`${n}0`),`0x${n.length%2===1?`0${n}`:n}`):n}var n_=$(()=>{f()});var w9,x9,E9,DV=$(()=>{f();Jn();w9=class extends Oe{constructor({offset:t,position:n,size:r}){super(`Slice ${n===\"start\"?\"starting\":\"ending\"} at offset \"${t}\" is out-of-bounds (size: ${r}).`,{name:\"SliceOffsetOutOfBoundsError\"})}},x9=class extends Oe{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`,{name:\"SizeExceedsPaddingSizeError\"})}},E9=class extends Oe{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${n} ${r} long, but is ${t} ${r} long.`,{name:\"InvalidBytesLengthError\"})}}});function Gi(e,{dir:t,size:n=32}={}){return typeof e==\"string\"?Nb(e,{dir:t,size:n}):Ose(e,{dir:t,size:n})}function Nb(e,{dir:t,size:n=32}={}){if(n===null)return e;let r=e.replace(\"0x\",\"\");if(r.length>n*2)throw new x9({size:Math.ceil(r.length/2),targetSize:n,type:\"hex\"});return`0x${r[t===\"right\"?\"padEnd\":\"padStart\"](n*2,\"0\")}`}function Ose(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new x9({size:e.length,targetSize:n,type:\"bytes\"});let r=new Uint8Array(n);for(let o=0;o<n;o++){let i=t===\"right\";r[i?o:n-o-1]=e[i?o:e.length-o-1]}return r}var r_=$(()=>{f();DV()});function Xn(e,t={}){return typeof e==\"number\"||typeof e==\"bigint\"?Pe(e,t):typeof e==\"string\"?Ul(e,t):typeof e==\"boolean\"?l5(e,t):Bo(e,t)}function l5(e,t={}){let n=`0x${Number(e)}`;return typeof t.size==\"number\"?(Lp(n,{size:t.size}),Gi(n,{size:t.size})):n}function Bo(e,t={}){let n=\"\";for(let o=0;o<e.length;o++)n+=Lyt[e[o]];let r=`0x${n}`;return typeof t.size==\"number\"?(Lp(r,{size:t.size}),Gi(r,{dir:\"right\",size:t.size})):r}function Pe(e,t={}){let{signed:n,size:r}=t,o=BigInt(e),i;r?n?i=(1n<<BigInt(r)*8n-1n)-1n:i=2n**(BigInt(r)*8n)-1n:typeof e==\"number\"&&(i=BigInt(Number.MAX_SAFE_INTEGER));let a=typeof i==\"bigint\"&&n?-i-1n:0;if(i&&o>i||o<a){let l=typeof e==\"bigint\"?\"n\":\"\";throw new A8({max:i?`${i}${l}`:void 0,min:`${a}${l}`,signed:n,size:r,value:`${e}${l}`})}let c=`0x${(n&&o<0?(1n<<BigInt(r*8))+BigInt(o):o).toString(16)}`;return r?Gi(c,{size:r}):c}function Ul(e,t={}){let n=Uyt.encode(e);return Bo(n,t)}var Lyt,Uyt,An=$(()=>{f();v9();r_();Ac();Lyt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));Uyt=new TextEncoder});function t0(e,t={}){return typeof e==\"number\"||typeof e==\"bigint\"?PCe(e,t):typeof e==\"boolean\"?NCe(e,t):ro(e)?Si(e,t):Fl(e,t)}function NCe(e,t={}){let n=new Uint8Array(1);return n[0]=Number(e),typeof t.size==\"number\"?(Lp(n,{size:t.size}),Gi(n,{size:t.size})):n}function OCe(e){if(e>=M2.zero&&e<=M2.nine)return e-M2.zero;if(e>=M2.A&&e<=M2.F)return e-(M2.A-10);if(e>=M2.a&&e<=M2.f)return e-(M2.a-10)}function Si(e,t={}){let n=e;t.size&&(Lp(n,{size:t.size}),n=Gi(n,{dir:\"right\",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);let o=r.length/2,i=new Uint8Array(o);for(let a=0,c=0;a<o;a++){let l=OCe(r.charCodeAt(c++)),d=OCe(r.charCodeAt(c++));if(l===void 0||d===void 0)throw new Oe(`Invalid byte sequence (\"${r[c-2]}${r[c-1]}\" in \"${r}\").`);i[a]=l*16+d}return i}function PCe(e,t){let n=Pe(e,t);return Si(n)}function Fl(e,t={}){let n=Fyt.encode(e);return typeof t.size==\"number\"?(Lp(n,{size:t.size}),Gi(n,{dir:\"right\",size:t.size})):n}var Fyt,M2,Ou=$(()=>{f();Jn();Cg();r_();Ac();An();Fyt=new TextEncoder;M2={zero:48,nine:57,A:65,F:70,a:97,f:102}});function Lp(e,{size:t}){if(Jr(e)>t)throw new MV({givenSize:Jr(e),maxSize:t})}function BV(e,t){let n=typeof t==\"string\"?{to:t}:t,r=n.to;return r===\"number\"?Lo(e,n):r===\"bigint\"?Zn(e,n):r===\"string\"?n0(e,n):r===\"boolean\"?A9(e,n):Si(e,n)}function Zn(e,t={}){let{signed:n}=t;t.size&&Lp(e,{size:t.size});let r=BigInt(e);if(!n)return r;let o=(e.length-2)/2,i=(1n<<BigInt(o)*8n-1n)-1n;return r<=i?r:r-BigInt(`0x${\"f\".padStart(o*2,\"f\")}`)-1n}function A9(e,t={}){let n=e;if(t.size&&(Lp(n,{size:t.size}),n=na(n)),na(n)===\"0x00\")return!1;if(na(n)===\"0x01\")return!0;throw new PV(n)}function Lo(e,t={}){return Number(Zn(e,t))}function n0(e,t={}){let n=Si(e);return t.size&&(Lp(n,{size:t.size}),n=na(n,{dir:\"right\"})),new TextDecoder().decode(n)}var Ac=$(()=>{f();v9();e0();n_();Ou()});function S8(e,t){return({exclude:n,format:r})=>({exclude:n,format:(o,i)=>{let a=t(o,i);if(n)for(let c of n)delete a[c];return{...a,...r(o,i)}},type:e})}var LV=$(()=>{f()});function d5(e,t){let n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?Lo(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?Lo(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Nse[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=Hyt(e.authorizationList)),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof n.v==\"bigint\"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type===\"legacy\"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type===\"eip2930\"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type===\"eip1559\"&&delete n.maxFeePerBlobGas,n}function Hyt(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}var Nse,MCe,S9=$(()=>{f();Ac();LV();Nse={\"0x0\":\"legacy\",\"0x1\":\"eip2930\",\"0x2\":\"eip1559\",\"0x3\":\"eip4844\",\"0x4\":\"eip7702\"};MCe=S8(\"transaction\",d5)});function _9(e,t){let n=(e.transactions??[]).map(r=>typeof r==\"string\"?r:d5(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}var DCe,UV=$(()=>{f();LV();S9();DCe=S8(\"block\",_9)});function Hl(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}var D2=$(()=>{f()});function f5(e,t){let n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(r=>Hl(r)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Lo(e.transactionIndex):null,status:e.status?Pse[e.status]:null,type:e.type?Nse[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}var Pse,BCe,_8=$(()=>{f();Ac();LV();D2();S9();Pse={\"0x0\":\"reverted\",\"0x1\":\"success\"};BCe=S8(\"transactionReceipt\",f5)});function Uh(e,t){let n={};return typeof e.authorizationList<\"u\"&&(n.authorizationList=jyt(e.authorizationList)),typeof e.accessList<\"u\"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<\"u\"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<\"u\"&&(typeof e.blobs[0]!=\"string\"?n.blobs=e.blobs.map(r=>Bo(r)):n.blobs=e.blobs),typeof e.data<\"u\"&&(n.data=e.data),e.account&&(n.from=e.account.address),typeof e.from<\"u\"&&(n.from=e.from),typeof e.gas<\"u\"&&(n.gas=Pe(e.gas)),typeof e.gasPrice<\"u\"&&(n.gasPrice=Pe(e.gasPrice)),typeof e.maxFeePerBlobGas<\"u\"&&(n.maxFeePerBlobGas=Pe(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<\"u\"&&(n.maxFeePerGas=Pe(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<\"u\"&&(n.maxPriorityFeePerGas=Pe(e.maxPriorityFeePerGas)),typeof e.nonce<\"u\"&&(n.nonce=Pe(e.nonce)),typeof e.to<\"u\"&&(n.to=e.to),typeof e.type<\"u\"&&(n.type=zyt[e.type]),typeof e.value<\"u\"&&(n.value=Pe(e.value)),n}function jyt(e){return e.map(t=>({address:t.address,r:t.r?Pe(BigInt(t.r)):t.r,s:t.s?Pe(BigInt(t.s)):t.s,chainId:Pe(t.chainId),nonce:Pe(t.nonce),...typeof t.yParity<\"u\"?{yParity:Pe(t.yParity)}:{},...typeof t.v<\"u\"&&typeof t.yParity>\"u\"?{v:Pe(t.v)}:{}}))}var zyt,o_=$(()=>{f();An();zyt={legacy:\"0x0\",eip2930:\"0x1\",eip1559:\"0x2\",eip4844:\"0x3\",eip7702:\"0x4\"}});var ctn,utn,ltn,dtn,ftn,ptn,htn,mtn,gtn,ytn,btn,vtn,wtn,xtn,Etn,Atn,Stn,_tn,Ttn,Ctn,Rtn,Itn,ktn,Otn,Ntn,Ptn,Mtn,Dtn,Btn,Ltn,Utn,Ftn,Htn,ztn,jtn,Wtn,Vtn,Gtn,qtn,Ktn,Ytn,Ztn,Qtn,Jtn,Xtn,$tn,enn,tnn,nnn,rnn,onn,inn,ann,snn,cnn,unn,lnn,dnn,fnn,pnn,hnn,mnn,gnn,ynn,bnn,vnn,wnn,xnn,Enn,Ann,Snn,_nn,Tnn,Cnn,Rnn,Inn,knn,Onn,Nnn,Pnn,Mnn,Dnn,Bnn,Lnn,Unn,Fnn,Hnn,znn,jnn,Wnn,Vnn,Gnn,qnn,Knn,Ynn,T8,Mse=$(()=>{f();ctn=2n**(8n-1n)-1n,utn=2n**(16n-1n)-1n,ltn=2n**(24n-1n)-1n,dtn=2n**(32n-1n)-1n,ftn=2n**(40n-1n)-1n,ptn=2n**(48n-1n)-1n,htn=2n**(56n-1n)-1n,mtn=2n**(64n-1n)-1n,gtn=2n**(72n-1n)-1n,ytn=2n**(80n-1n)-1n,btn=2n**(88n-1n)-1n,vtn=2n**(96n-1n)-1n,wtn=2n**(104n-1n)-1n,xtn=2n**(112n-1n)-1n,Etn=2n**(120n-1n)-1n,Atn=2n**(128n-1n)-1n,Stn=2n**(136n-1n)-1n,_tn=2n**(144n-1n)-1n,Ttn=2n**(152n-1n)-1n,Ctn=2n**(160n-1n)-1n,Rtn=2n**(168n-1n)-1n,Itn=2n**(176n-1n)-1n,ktn=2n**(184n-1n)-1n,Otn=2n**(192n-1n)-1n,Ntn=2n**(200n-1n)-1n,Ptn=2n**(208n-1n)-1n,Mtn=2n**(216n-1n)-1n,Dtn=2n**(224n-1n)-1n,Btn=2n**(232n-1n)-1n,Ltn=2n**(240n-1n)-1n,Utn=2n**(248n-1n)-1n,Ftn=2n**(256n-1n)-1n,Htn=-(2n**(8n-1n)),ztn=-(2n**(16n-1n)),jtn=-(2n**(24n-1n)),Wtn=-(2n**(32n-1n)),Vtn=-(2n**(40n-1n)),Gtn=-(2n**(48n-1n)),qtn=-(2n**(56n-1n)),Ktn=-(2n**(64n-1n)),Ytn=-(2n**(72n-1n)),Ztn=-(2n**(80n-1n)),Qtn=-(2n**(88n-1n)),Jtn=-(2n**(96n-1n)),Xtn=-(2n**(104n-1n)),$tn=-(2n**(112n-1n)),enn=-(2n**(120n-1n)),tnn=-(2n**(128n-1n)),nnn=-(2n**(136n-1n)),rnn=-(2n**(144n-1n)),onn=-(2n**(152n-1n)),inn=-(2n**(160n-1n)),ann=-(2n**(168n-1n)),snn=-(2n**(176n-1n)),cnn=-(2n**(184n-1n)),unn=-(2n**(192n-1n)),lnn=-(2n**(200n-1n)),dnn=-(2n**(208n-1n)),fnn=-(2n**(216n-1n)),pnn=-(2n**(224n-1n)),hnn=-(2n**(232n-1n)),mnn=-(2n**(240n-1n)),gnn=-(2n**(248n-1n)),ynn=-(2n**(256n-1n)),bnn=2n**8n-1n,vnn=2n**16n-1n,wnn=2n**24n-1n,xnn=2n**32n-1n,Enn=2n**40n-1n,Ann=2n**48n-1n,Snn=2n**56n-1n,_nn=2n**64n-1n,Tnn=2n**72n-1n,Cnn=2n**80n-1n,Rnn=2n**88n-1n,Inn=2n**96n-1n,knn=2n**104n-1n,Onn=2n**112n-1n,Nnn=2n**120n-1n,Pnn=2n**128n-1n,Mnn=2n**136n-1n,Dnn=2n**144n-1n,Bnn=2n**152n-1n,Lnn=2n**160n-1n,Unn=2n**168n-1n,Fnn=2n**176n-1n,Hnn=2n**184n-1n,znn=2n**192n-1n,jnn=2n**200n-1n,Wnn=2n**208n-1n,Vnn=2n**216n-1n,Gnn=2n**224n-1n,qnn=2n**232n-1n,Knn=2n**240n-1n,Ynn=2n**248n-1n,T8=2n**256n-1n});function qi(e){return typeof e[0]==\"string\"?nc(e):Wyt(e)}function Wyt(e){let t=0;for(let o of e)t+=o.length;let n=new Uint8Array(t),r=0;for(let o of e)n.set(o,r),r+=o.length;return n}function nc(e){return`0x${e.reduce((t,n)=>t+n.replace(\"0x\",\"\"),\"\")}`}var Nu=$(()=>{f()});var T9,C8,FV,Dse=$(()=>{f();Jn();T9=class extends Oe{constructor({offset:t}){super(`Offset \\\\`${t}\\\\` cannot be negative.`,{name:\"NegativeOffsetError\"})}},C8=class extends Oe{constructor({length:t,position:n}){super(`Position \\\\`${n}\\\\` is out of bounds (\\\\`0 < position < ${t}\\\\`).`,{name:\"PositionOutOfBoundsError\"})}},FV=class extends Oe{constructor({count:t,limit:n}){super(`Recursive read limit of \\\\`${n}\\\\` exceeded (recursive read count: \\\\`${t}\\\\`).`,{name:\"RecursiveReadLimitExceededError\"})}}});function R8(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(Vyt);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}var Vyt,HV=$(()=>{f();Dse();Vyt={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new FV({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new C8({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new T9({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new T9({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}}});function Pb(e,t=\"hex\"){let n=LCe(e),r=R8(new Uint8Array(n.length));return n.encode(r),t===\"hex\"?Bo(r.bytes):r.bytes}function LCe(e){return Array.isArray(e)?Gyt(e.map(t=>LCe(t))):qyt(e)}function Gyt(e){let t=e.reduce((o,i)=>o+i.length,0),n=UCe(t);return{length:t<=55?1+t:1+n+t,encode(o){t<=55?o.pushByte(192+t):(o.pushByte(247+n),n===1?o.pushUint8(t):n===2?o.pushUint16(t):n===3?o.pushUint24(t):o.pushUint32(t));for(let{encode:i}of e)i(o)}}}function qyt(e){let t=typeof e==\"string\"?Si(e):e,n=UCe(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(o){t.length===1&&t[0]<128?o.pushBytes(t):t.length<=55?(o.pushByte(128+t.length),o.pushBytes(t)):(o.pushByte(183+n),n===1?o.pushUint8(t.length):n===2?o.pushUint16(t.length):n===3?o.pushUint24(t.length):o.pushUint32(t.length),o.pushBytes(t))}}}function UCe(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new Oe(\"Length is too large.\")}var zV=$(()=>{f();Jn();HV();Ou();An()});var Bse,Lse,Use,jV=$(()=>{f();Bse={gwei:9,wei:18},Lse={ether:-9,wei:9},Use={ether:-18,gwei:-9}});function ba(e,t){let n=e.toString(),r=n.startsWith(\"-\");r&&(n=n.slice(1)),n=n.padStart(t,\"0\");let[o,i]=[n.slice(0,n.length-t),n.slice(n.length-t)];return i=i.replace(/(0+)$/,\"\"),`${r?\"-\":\"\"}${o||\"0\"}${i?`.${i}`:\"\"}`}var WV=$(()=>{f()});function I8(e,t=\"wei\"){return ba(e,Bse[t])}var VV=$(()=>{f();jV();WV()});function rc(e,t=\"wei\"){return ba(e,Lse[t])}var p5=$(()=>{f();jV();WV()});function B2(e){let t=Object.entries(e).map(([r,o])=>o===void 0||o===!1?null:[r,o]).filter(Boolean),n=t.reduce((r,[o])=>Math.max(r,o.length),0);return t.map(([r,o])=>`  ${`${r}:`.padEnd(n+1)}  ${o}`).join(`\\n`)}var GV,qV,KV,YV,ZV,k8,O8,N8,QV,Fh=$(()=>{f();VV();p5();Jn();GV=class extends Oe{constructor(){super([\"Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\",\"Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.\"].join(`\\n`),{name:\"FeeConflictError\"})}},qV=class extends Oe{constructor({v:t}){super(`Invalid \\\\`v\\\\` value \"${t}\". Expected 27 or 28.`,{name:\"InvalidLegacyVError\"})}},KV=class extends Oe{constructor({transaction:t}){super(\"Cannot infer a transaction type from provided transaction.\",{metaMessages:[\"Provided Transaction:\",\"{\",B2(t),\"}\",\"\",\"To infer the type, either provide:\",\"- a `type` to the Transaction, or\",\"- an EIP-1559 Transaction with `maxFeePerGas`, or\",\"- an EIP-2930 Transaction with `gasPrice` & `accessList`, or\",\"- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or\",\"- an EIP-7702 Transaction with `authorizationList`, or\",\"- a Legacy Transaction with `gasPrice`\"],name:\"InvalidSerializableTransactionError\"})}},YV=class extends Oe{constructor({storageKey:t}){super(`Size for storage key \"${t}\" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:\"InvalidStorageKeySizeError\"})}},ZV=class extends Oe{constructor(t,{account:n,docsPath:r,chain:o,data:i,gas:a,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:m,to:h,value:g}){let y=B2({chain:o&&`${o?.name} (id: ${o?.id})`,from:n?.address,to:h,value:typeof g<\"u\"&&`${I8(g)} ${o?.nativeCurrency?.symbol||\"ETH\"}`,data:i,gas:a,gasPrice:typeof c<\"u\"&&`${rc(c)} gwei`,maxFeePerGas:typeof l<\"u\"&&`${rc(l)} gwei`,maxPriorityFeePerGas:typeof d<\"u\"&&`${rc(d)} gwei`,nonce:m});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Request Arguments:\",y].filter(Boolean),name:\"TransactionExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}},k8=class extends Oe{constructor({blockHash:t,blockNumber:n,blockTag:r,hash:o,index:i}){let a=\"Transaction\";r&&i!==void 0&&(a=`Transaction at block time \"${r}\" at index \"${i}\"`),t&&i!==void 0&&(a=`Transaction at block hash \"${t}\" at index \"${i}\"`),n&&i!==void 0&&(a=`Transaction at block number \"${n}\" at index \"${i}\"`),o&&(a=`Transaction with hash \"${o}\"`),super(`${a} could not be found.`,{name:\"TransactionNotFoundError\"})}},O8=class extends Oe{constructor({hash:t}){super(`Transaction receipt with hash \"${t}\" could not be found. The Transaction may not be processed on a block yet.`,{name:\"TransactionReceiptNotFoundError\"})}},N8=class extends Oe{constructor({receipt:t}){super(`Transaction with hash \"${t.transactionHash}\" reverted.`,{metaMessages:[\\'The receipt marked the transaction as \"reverted\". This could mean that the function on the contract you are trying to call threw an error.\\',\" \",\"You can attempt to extract the revert reason by:\",\"- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract\",\"- using the `call` Action with raw `data`\"],name:\"TransactionReceiptRevertedError\"}),Object.defineProperty(this,\"receipt\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}},QV=class extends Oe{constructor({hash:t}){super(`Timed out while waiting for transaction with hash \"${t}\" to be confirmed.`,{name:\"WaitForTransactionReceiptTimeoutError\"})}}});function FCe(e){if(!e||e.length===0)return[];let t=[];for(let n of e){let{chainId:r,nonce:o,...i}=n,a=n.address;t.push([r?Xn(r):\"0x\",a,o?Xn(o):\"0x\",...P8({},i)])}return t}var HCe=$(()=>{f();An();Fse()});function M8(e){let{kzg:t}=e,n=e.to??(typeof e.blobs[0]==\"string\"?\"hex\":\"bytes\"),r=typeof e.blobs[0]==\"string\"?e.blobs.map(i=>Si(i)):e.blobs,o=[];for(let i of r)o.push(Uint8Array.from(t.blobToKzgCommitment(i)));return n===\"bytes\"?o:o.map(i=>Bo(i))}var JV=$(()=>{f();Ou();An()});function D8(e){let{kzg:t}=e,n=e.to??(typeof e.blobs[0]==\"string\"?\"hex\":\"bytes\"),r=typeof e.blobs[0]==\"string\"?e.blobs.map(a=>Si(a)):e.blobs,o=typeof e.commitments[0]==\"string\"?e.commitments.map(a=>Si(a)):e.commitments,i=[];for(let a=0;a<r.length;a++){let c=r[a],l=o[a];i.push(Uint8Array.from(t.computeBlobKzgProof(c,l)))}return n===\"bytes\"?i:i.map(a=>Bo(a))}var XV=$(()=>{f();Ou();An()});var h5,zCe=$(()=>{f();h5=typeof globalThis==\"object\"&&\"crypto\"in globalThis?globalThis.crypto:void 0});function Wv(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===\"Uint8Array\"}function Mb(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(\"positive integer expected, got \"+e)}function zl(e,...t){if(!Wv(e))throw new Error(\"Uint8Array expected\");if(t.length>0&&!t.includes(e.length))throw new Error(\"Uint8Array expected of length \"+t+\", got length=\"+e.length)}function $V(e){if(typeof e!=\"function\"||typeof e.create!=\"function\")throw new Error(\"Hash should be wrapped by utils.createHasher\");Mb(e.outputLen),Mb(e.blockLen)}function U2(e,t=!0){if(e.destroyed)throw new Error(\"Hash instance has been destroyed\");if(t&&e.finished)throw new Error(\"Hash#digest() has already been called\")}function eG(e,t){zl(e);let n=t.outputLen;if(e.length<n)throw new Error(\"digestInto() expects output buffer of length at least \"+n)}function WCe(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function Rg(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function tG(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Db(e,t){return e<<32-t|e>>>t}function Yyt(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function Zyt(e){for(let t=0;t<e.length;t++)e[t]=Yyt(e[t]);return e}function r0(e){if(zl(e),VCe)return e.toHex();let t=\"\";for(let n=0;n<e.length;n++)t+=Qyt[e[n]];return t}function jCe(e){if(e>=L2._0&&e<=L2._9)return e-L2._0;if(e>=L2.A&&e<=L2.F)return e-(L2.A-10);if(e>=L2.a&&e<=L2.f)return e-(L2.a-10)}function a_(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);if(VCe)return Uint8Array.fromHex(e);let t=e.length,n=t/2;if(t%2)throw new Error(\"hex string expected, got unpadded hex of length \"+t);let r=new Uint8Array(n);for(let o=0,i=0;o<n;o++,i+=2){let a=jCe(e.charCodeAt(i)),c=jCe(e.charCodeAt(i+1));if(a===void 0||c===void 0){let l=e[i]+e[i+1];throw new Error(\\'hex string expected, got non-hex character \"\\'+l+\\'\" at index \\'+i)}r[o]=a*16+c}return r}function nG(e){if(typeof e!=\"string\")throw new Error(\"string expected\");return new Uint8Array(new TextEncoder().encode(e))}function m5(e){return typeof e==\"string\"&&(e=nG(e)),zl(e),e}function jl(...e){let t=0;for(let r=0;r<e.length;r++){let o=e[r];zl(o),t+=o.length}let n=new Uint8Array(t);for(let r=0,o=0;r<e.length;r++){let i=e[r];n.set(i,o),o+=i.length}return n}function B8(e){let t=r=>e().update(m5(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Bb(e=32){if(h5&&typeof h5.getRandomValues==\"function\")return h5.getRandomValues(new Uint8Array(e));if(h5&&typeof h5.randomBytes==\"function\")return Uint8Array.from(h5.randomBytes(e));throw new Error(\"crypto.getRandomValues must be defined\")}var Kyt,Hse,VCe,Qyt,L2,i_,Ig=$(()=>{f();zCe();Kyt=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;Hse=Kyt?e=>e:Zyt,VCe=typeof Uint8Array.from([]).toHex==\"function\"&&typeof Uint8Array.fromHex==\"function\",Qyt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));L2={_0:48,_9:57,A:65,F:70,a:97,f:102};i_=class{}});function Jyt(e,t,n,r){if(typeof e.setBigUint64==\"function\")return e.setBigUint64(t,n,r);let o=BigInt(32),i=BigInt(4294967295),a=Number(n>>o&i),c=Number(n&i),l=r?4:0,d=r?0:4;e.setUint32(t+l,a,r),e.setUint32(t+d,c,r)}function GCe(e,t,n){return e&t^~e&n}function qCe(e,t,n){return e&t^e&n^t&n}var C9,F2,Id,kd,KCe=$(()=>{f();Ig();C9=class extends i_{constructor(t,n,r,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.buffer=new Uint8Array(t),this.view=tG(this.buffer)}update(t){U2(this),t=m5(t),zl(t);let{view:n,buffer:r,blockLen:o}=this,i=t.length;for(let a=0;a<i;){let c=Math.min(o-this.pos,i-a);if(c===o){let l=tG(t);for(;o<=i-a;a+=o)this.process(l,a);continue}r.set(t.subarray(a,a+c),this.pos),this.pos+=c,a+=c,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){U2(this),eG(t,this),this.finished=!0;let{buffer:n,view:r,blockLen:o,isLE:i}=this,{pos:a}=this;n[a++]=128,Rg(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(r,0),a=0);for(let h=a;h<o;h++)n[h]=0;Jyt(r,o-8,BigInt(this.length*8),i),this.process(r,0);let c=tG(t),l=this.outputLen;if(l%4)throw new Error(\"_sha2: outputLen should be aligned to 32bit\");let d=l/4,m=this.get();if(d>m.length)throw new Error(\"_sha2: outputLen bigger than state\");for(let h=0;h<d;h++)c.setUint32(4*h,m[h],i)}digest(){let{buffer:t,outputLen:n}=this;this.digestInto(t);let r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());let{blockLen:n,buffer:r,length:o,finished:i,destroyed:a,pos:c}=this;return t.destroyed=a,t.finished=i,t.length=o,t.pos=c,o%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}},F2=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Id=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),kd=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])});function Xyt(e,t=!1){return t?{h:Number(e&rG),l:Number(e>>YCe&rG)}:{h:Number(e>>YCe&rG)|0,l:Number(e&rG)|0}}function oG(e,t=!1){let n=e.length,r=new Uint32Array(n),o=new Uint32Array(n);for(let i=0;i<n;i++){let{h:a,l:c}=Xyt(e[i],t);[r[i],o[i]]=[a,c]}return[r,o]}function Vv(e,t,n,r){let o=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:o|0}}var rG,YCe,zse,jse,g5,y5,R9,I9,ZCe,QCe,JCe,XCe,$Ce,e6e,t6e,n6e,r6e,o6e,Wse=$(()=>{f();rG=BigInt(4294967295),YCe=BigInt(32);zse=(e,t,n)=>e>>>n,jse=(e,t,n)=>e<<32-n|t>>>n,g5=(e,t,n)=>e>>>n|t<<32-n,y5=(e,t,n)=>e<<32-n|t>>>n,R9=(e,t,n)=>e<<64-n|t>>>n-32,I9=(e,t,n)=>e>>>n-32|t<<64-n,ZCe=(e,t,n)=>e<<n|t>>>32-n,QCe=(e,t,n)=>t<<n|e>>>32-n,JCe=(e,t,n)=>t<<n-32|e>>>64-n,XCe=(e,t,n)=>e<<n-32|t>>>64-n;$Ce=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),e6e=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,t6e=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),n6e=(e,t,n,r,o)=>t+n+r+o+(e/2**32|0)|0,r6e=(e,t,n,r,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(o>>>0),o6e=(e,t,n,r,o,i)=>t+n+r+o+i+(e/2**32|0)|0});var ebt,s_,iG,i6e,tbt,nbt,c_,u_,aG,Vse,Lb,sG,a6e,L8=$(()=>{f();KCe();Wse();Ig();ebt=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s_=new Uint32Array(64),iG=class extends C9{constructor(t=32){super(64,t,8,!1),this.A=F2[0]|0,this.B=F2[1]|0,this.C=F2[2]|0,this.D=F2[3]|0,this.E=F2[4]|0,this.F=F2[5]|0,this.G=F2[6]|0,this.H=F2[7]|0}get(){let{A:t,B:n,C:r,D:o,E:i,F:a,G:c,H:l}=this;return[t,n,r,o,i,a,c,l]}set(t,n,r,o,i,a,c,l){this.A=t|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=i|0,this.F=a|0,this.G=c|0,this.H=l|0}process(t,n){for(let h=0;h<16;h++,n+=4)s_[h]=t.getUint32(n,!1);for(let h=16;h<64;h++){let g=s_[h-15],y=s_[h-2],w=Db(g,7)^Db(g,18)^g>>>3,x=Db(y,17)^Db(y,19)^y>>>10;s_[h]=x+s_[h-7]+w+s_[h-16]|0}let{A:r,B:o,C:i,D:a,E:c,F:l,G:d,H:m}=this;for(let h=0;h<64;h++){let g=Db(c,6)^Db(c,11)^Db(c,25),y=m+g+GCe(c,l,d)+ebt[h]+s_[h]|0,x=(Db(r,2)^Db(r,13)^Db(r,22))+qCe(r,o,i)|0;m=d,d=l,l=c,c=a+y|0,a=i,i=o,o=r,r=y+x|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,a=a+this.D|0,c=c+this.E|0,l=l+this.F|0,d=d+this.G|0,m=m+this.H|0,this.set(r,o,i,a,c,l,d,m)}roundClean(){Rg(s_)}destroy(){this.set(0,0,0,0,0,0,0,0),Rg(this.buffer)}},i6e=oG([\"0x428a2f98d728ae22\",\"0x7137449123ef65cd\",\"0xb5c0fbcfec4d3b2f\",\"0xe9b5dba58189dbbc\",\"0x3956c25bf348b538\",\"0x59f111f1b605d019\",\"0x923f82a4af194f9b\",\"0xab1c5ed5da6d8118\",\"0xd807aa98a3030242\",\"0x12835b0145706fbe\",\"0x243185be4ee4b28c\",\"0x550c7dc3d5ffb4e2\",\"0x72be5d74f27b896f\",\"0x80deb1fe3b1696b1\",\"0x9bdc06a725c71235\",\"0xc19bf174cf692694\",\"0xe49b69c19ef14ad2\",\"0xefbe4786384f25e3\",\"0x0fc19dc68b8cd5b5\",\"0x240ca1cc77ac9c65\",\"0x2de92c6f592b0275\",\"0x4a7484aa6ea6e483\",\"0x5cb0a9dcbd41fbd4\",\"0x76f988da831153b5\",\"0x983e5152ee66dfab\",\"0xa831c66d2db43210\",\"0xb00327c898fb213f\",\"0xbf597fc7beef0ee4\",\"0xc6e00bf33da88fc2\",\"0xd5a79147930aa725\",\"0x06ca6351e003826f\",\"0x142929670a0e6e70\",\"0x27b70a8546d22ffc\",\"0x2e1b21385c26c926\",\"0x4d2c6dfc5ac42aed\",\"0x53380d139d95b3df\",\"0x650a73548baf63de\",\"0x766a0abb3c77b2a8\",\"0x81c2c92e47edaee6\",\"0x92722c851482353b\",\"0xa2bfe8a14cf10364\",\"0xa81a664bbc423001\",\"0xc24b8b70d0f89791\",\"0xc76c51a30654be30\",\"0xd192e819d6ef5218\",\"0xd69906245565a910\",\"0xf40e35855771202a\",\"0x106aa07032bbd1b8\",\"0x19a4c116b8d2d0c8\",\"0x1e376c085141ab53\",\"0x2748774cdf8eeb99\",\"0x34b0bcb5e19b48a8\",\"0x391c0cb3c5c95a63\",\"0x4ed8aa4ae3418acb\",\"0x5b9cca4f7763e373\",\"0x682e6ff3d6b2b8a3\",\"0x748f82ee5defb2fc\",\"0x78a5636f43172f60\",\"0x84c87814a1f0ab72\",\"0x8cc702081a6439ec\",\"0x90befffa23631e28\",\"0xa4506cebde82bde9\",\"0xbef9a3f7b2c67915\",\"0xc67178f2e372532b\",\"0xca273eceea26619c\",\"0xd186b8c721c0c207\",\"0xeada7dd6cde0eb1e\",\"0xf57d4f7fee6ed178\",\"0x06f067aa72176fba\",\"0x0a637dc5a2c898a6\",\"0x113f9804bef90dae\",\"0x1b710b35131c471b\",\"0x28db77f523047d84\",\"0x32caab7b40c72493\",\"0x3c9ebe0a15c9bebc\",\"0x431d67c49c100d4c\",\"0x4cc5d4becb3e42b6\",\"0x597f299cfc657e2a\",\"0x5fcb6fab3ad6faec\",\"0x6c44198c4a475817\"].map(e=>BigInt(e))),tbt=i6e[0],nbt=i6e[1],c_=new Uint32Array(80),u_=new Uint32Array(80),aG=class extends C9{constructor(t=64){super(128,t,16,!1),this.Ah=kd[0]|0,this.Al=kd[1]|0,this.Bh=kd[2]|0,this.Bl=kd[3]|0,this.Ch=kd[4]|0,this.Cl=kd[5]|0,this.Dh=kd[6]|0,this.Dl=kd[7]|0,this.Eh=kd[8]|0,this.El=kd[9]|0,this.Fh=kd[10]|0,this.Fl=kd[11]|0,this.Gh=kd[12]|0,this.Gl=kd[13]|0,this.Hh=kd[14]|0,this.Hl=kd[15]|0}get(){let{Ah:t,Al:n,Bh:r,Bl:o,Ch:i,Cl:a,Dh:c,Dl:l,Eh:d,El:m,Fh:h,Fl:g,Gh:y,Gl:w,Hh:x,Hl:I}=this;return[t,n,r,o,i,a,c,l,d,m,h,g,y,w,x,I]}set(t,n,r,o,i,a,c,l,d,m,h,g,y,w,x,I){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=o|0,this.Ch=i|0,this.Cl=a|0,this.Dh=c|0,this.Dl=l|0,this.Eh=d|0,this.El=m|0,this.Fh=h|0,this.Fl=g|0,this.Gh=y|0,this.Gl=w|0,this.Hh=x|0,this.Hl=I|0}process(t,n){for(let B=0;B<16;B++,n+=4)c_[B]=t.getUint32(n),u_[B]=t.getUint32(n+=4);for(let B=16;B<80;B++){let z=c_[B-15]|0,G=u_[B-15]|0,J=g5(z,G,1)^g5(z,G,8)^zse(z,G,7),ne=y5(z,G,1)^y5(z,G,8)^jse(z,G,7),ie=c_[B-2]|0,ae=u_[B-2]|0,te=g5(ie,ae,19)^R9(ie,ae,61)^zse(ie,ae,6),Z=y5(ie,ae,19)^I9(ie,ae,61)^jse(ie,ae,6),X=t6e(ne,Z,u_[B-7],u_[B-16]),F=n6e(X,J,te,c_[B-7],c_[B-16]);c_[B]=F|0,u_[B]=X|0}let{Ah:r,Al:o,Bh:i,Bl:a,Ch:c,Cl:l,Dh:d,Dl:m,Eh:h,El:g,Fh:y,Fl:w,Gh:x,Gl:I,Hh:C,Hl:M}=this;for(let B=0;B<80;B++){let z=g5(h,g,14)^g5(h,g,18)^R9(h,g,41),G=y5(h,g,14)^y5(h,g,18)^I9(h,g,41),J=h&y^~h&x,ne=g&w^~g&I,ie=r6e(M,G,ne,nbt[B],u_[B]),ae=o6e(ie,C,z,J,tbt[B],c_[B]),te=ie|0,Z=g5(r,o,28)^R9(r,o,34)^R9(r,o,39),X=y5(r,o,28)^I9(r,o,34)^I9(r,o,39),F=r&i^r&c^i&c,R=o&a^o&l^a&l;C=x|0,M=I|0,x=y|0,I=w|0,y=h|0,w=g|0,{h,l:g}=Vv(d|0,m|0,ae|0,te|0),d=c|0,m=l|0,c=i|0,l=a|0,i=r|0,a=o|0;let O=$Ce(te,X,R);r=e6e(O,ae,Z,F),o=O|0}({h:r,l:o}=Vv(this.Ah|0,this.Al|0,r|0,o|0)),{h:i,l:a}=Vv(this.Bh|0,this.Bl|0,i|0,a|0),{h:c,l}=Vv(this.Ch|0,this.Cl|0,c|0,l|0),{h:d,l:m}=Vv(this.Dh|0,this.Dl|0,d|0,m|0),{h,l:g}=Vv(this.Eh|0,this.El|0,h|0,g|0),{h:y,l:w}=Vv(this.Fh|0,this.Fl|0,y|0,w|0),{h:x,l:I}=Vv(this.Gh|0,this.Gl|0,x|0,I|0),{h:C,l:M}=Vv(this.Hh|0,this.Hl|0,C|0,M|0),this.set(r,o,i,a,c,l,d,m,h,g,y,w,x,I,C,M)}roundClean(){Rg(c_,u_)}destroy(){Rg(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},Vse=class extends aG{constructor(){super(48),this.Ah=Id[0]|0,this.Al=Id[1]|0,this.Bh=Id[2]|0,this.Bl=Id[3]|0,this.Ch=Id[4]|0,this.Cl=Id[5]|0,this.Dh=Id[6]|0,this.Dl=Id[7]|0,this.Eh=Id[8]|0,this.El=Id[9]|0,this.Fh=Id[10]|0,this.Fl=Id[11]|0,this.Gh=Id[12]|0,this.Gl=Id[13]|0,this.Hh=Id[14]|0,this.Hl=Id[15]|0}},Lb=B8(()=>new iG),sG=B8(()=>new aG),a6e=B8(()=>new Vse)});var b5,cG=$(()=>{f();L8();b5=Lb});function k9(e,t){let n=t||\"hex\",r=b5(ro(e,{strict:!1})?t0(e):e);return n===\"bytes\"?r:Xn(r)}var Gse=$(()=>{f();cG();Cg();Ou();An()});function s6e(e){let{commitment:t,version:n=1}=e,r=e.to??(typeof t==\"string\"?\"hex\":\"bytes\"),o=k9(t,\"bytes\");return o.set([n],0),r===\"bytes\"?o:Bo(o)}var c6e=$(()=>{f();An();Gse()});function uG(e){let{commitments:t,version:n}=e,r=e.to??(typeof t[0]==\"string\"?\"hex\":\"bytes\"),o=[];for(let i of t)o.push(s6e({commitment:i,to:r,version:n}));return o}var qse=$(()=>{f();c6e()});var lG,U8,dG,fG,Kse=$(()=>{f();Jn();lG=class extends Oe{constructor({maxSize:t,size:n}){super(\"Blob size is too large.\",{metaMessages:[`Max: ${t} bytes`,`Given: ${n} bytes`],name:\"BlobSizeTooLargeError\"})}},U8=class extends Oe{constructor(){super(\"Blob data must not be empty.\",{name:\"EmptyBlobError\"})}},dG=class extends Oe{constructor({hash:t,size:n}){super(`Versioned hash \"${t}\" size is invalid.`,{metaMessages:[\"Expected: 32\",`Received: ${n}`],name:\"InvalidVersionedHashSizeError\"})}},fG=class extends Oe{constructor({hash:t,version:n}){super(`Versioned hash \"${t}\" version is invalid.`,{metaMessages:[`Expected: ${1}`,`Received: ${n}`],name:\"InvalidVersionedHashVersionError\"})}}});function u6e(e){let t=e.to??(typeof e.data==\"string\"?\"hex\":\"bytes\"),n=typeof e.data==\"string\"?Si(e.data):e.data,r=Jr(n);if(!r)throw new U8;if(r>761855)throw new lG({maxSize:761855,size:r});let o=[],i=!0,a=0;for(;i;){let c=R8(new Uint8Array(131072)),l=0;for(;l<4096;){let d=n.slice(a,a+31);if(c.pushByte(0),c.pushBytes(d),d.length<31){c.pushByte(128),i=!1;break}l++,a+=31}o.push(c)}return t===\"bytes\"?o.map(c=>c.bytes):o.map(c=>Bo(c.bytes))}var l6e=$(()=>{f();Kse();HV();e0();Ou();An()});function pG(e){let{data:t,kzg:n,to:r}=e,o=e.blobs??u6e({data:t,to:r}),i=e.commitments??M8({blobs:o,kzg:n,to:r}),a=e.proofs??D8({blobs:o,commitments:i,kzg:n,to:r}),c=[];for(let l=0;l<o.length;l++)c.push({blob:o[l],commitment:i[l],proof:a[l]});return c}var Yse=$(()=>{f();JV();XV();l6e()});var ra,Ub=$(()=>{f();Jn();ra=class extends Oe{constructor({address:t}){super(`Address \"${t}\" is invalid.`,{metaMessages:[\"- Address must be a hex value of 20 bytes (40 hex characters).\",\"- Address must match its checksum counterpart.\"],name:\"InvalidAddressError\"})}}});var v5,hG,mG,O9,w5,N9=$(()=>{f();Jn();v5=class extends Oe{constructor({blockNumber:t,chain:n,contract:r}){super(`Chain \"${n.name}\" does not support contract \"${r.name}\".`,{metaMessages:[\"This could be due to any of the following:\",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract \"${r.name}\" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract \"${r.name}\" configured.`]],name:\"ChainDoesNotSupportContract\"})}},hG=class extends Oe{constructor({chain:t,currentChainId:n}){super(`The current chain of the wallet (id: ${n}) does not match the target chain for the transaction (id: ${t.id} \\\\u2013 ${t.name}).`,{metaMessages:[`Current Chain ID:  ${n}`,`Expected Chain ID: ${t.id} \\\\u2013 ${t.name}`],name:\"ChainMismatchError\"})}},mG=class extends Oe{constructor(){super([\"No chain was provided to the request.\",\"Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.\"].join(`\\n`),{name:\"ChainNotFoundError\"})}},O9=class extends Oe{constructor(){super(\"No chain was provided to the Client.\",{name:\"ClientChainNotConfiguredError\"})}},w5=class extends Oe{constructor({chainId:t}){super(typeof t==\"number\"?`Chain ID \"${t}\" is invalid.`:\"Chain ID is invalid.\",{name:\"InvalidChainIdError\"})}}});var H2,kg,F8,H8,z8,j8,W8,V8,G8,q8,Gv,Og,l_=$(()=>{f();p5();Jn();H2=class extends Oe{constructor({cause:t,message:n}={}){let r=n?.replace(\"execution reverted: \",\"\")?.replace(\"execution reverted\",\"\");super(`Execution reverted ${r?`with reason: ${r}`:\"for an unknown reason\"}.`,{cause:t,name:\"ExecutionRevertedError\"})}};Object.defineProperty(H2,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(H2,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});kg=class extends Oe{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\\\\`maxFeePerGas\\\\`${n?` = ${rc(n)} gwei`:\"\"}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:\"FeeCapTooHighError\"})}};Object.defineProperty(kg,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\\\\^256-1|fee cap higher than 2\\\\^256-1/});F8=class extends Oe{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\\\\`maxFeePerGas\\\\`${n?` = ${rc(n)}`:\"\"} gwei) cannot be lower than the block base fee.`,{cause:t,name:\"FeeCapTooLowError\"})}};Object.defineProperty(F8,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});H8=class extends Oe{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:\"\"}is higher than the next one expected.`,{cause:t,name:\"NonceTooHighError\"})}};Object.defineProperty(H8,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});z8=class extends Oe{constructor({cause:t,nonce:n}={}){super([`Nonce provided for the transaction ${n?`(${n}) `:\"\"}is lower than the current nonce of the account.`,\"Try increasing the nonce or find the latest nonce with `getTransactionCount`.\"].join(`\\n`),{cause:t,name:\"NonceTooLowError\"})}};Object.defineProperty(z8,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});j8=class extends Oe{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:\"\"}exceeds the maximum allowed nonce.`,{cause:t,name:\"NonceMaxValueError\"})}};Object.defineProperty(j8,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});W8=class extends Oe{constructor({cause:t}={}){super([\"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.\"].join(`\\n`),{cause:t,metaMessages:[\"This error could arise when the account does not have enough funds to:\",\" - pay for the total gas fee,\",\" - pay for the value to send.\",\" \",\"The cost of the transaction is calculated as `gas * gas fee + value`, where:\",\" - `gas` is the amount of gas needed for transaction to execute,\",\" - `gas fee` is the gas fee,\",\" - `value` is the amount of ether to send to the recipient.\"],name:\"InsufficientFundsError\"})}};Object.defineProperty(W8,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});V8=class extends Oe{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:\"\"}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:\"IntrinsicGasTooHighError\"})}};Object.defineProperty(V8,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});G8=class extends Oe{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:\"\"}provided for the transaction is too low.`,{cause:t,name:\"IntrinsicGasTooLowError\"})}};Object.defineProperty(G8,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});q8=class extends Oe{constructor({cause:t}){super(\"The transaction type is not supported for this chain.\",{cause:t,name:\"TransactionTypeNotSupportedError\"})}};Object.defineProperty(q8,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});Gv=class extends Oe{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\\\\`maxPriorityFeePerGas\\\\`${n?` = ${rc(n)} gwei`:\"\"}) cannot be higher than the fee cap (\\\\`maxFeePerGas\\\\`${r?` = ${rc(r)} gwei`:\"\"}).`].join(`\\n`),{cause:t,name:\"TipAboveFeeCapError\"})}};Object.defineProperty(Gv,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});Og=class extends Oe{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t,name:\"UnknownNodeError\"})}}});var Hh,x5=$(()=>{f();Hh=class extends Map{constructor(t){super(),Object.defineProperty(this,\"maxSize\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){let n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){let r=this.keys().next().value;r&&this.delete(r)}return this}}});function fbt(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let a=0;a<10;a++)n[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(let a=0;a<10;a+=2){let c=(a+8)%10,l=(a+2)%10,d=n[l],m=n[l+1],h=d6e(d,m,1)^n[c],g=f6e(d,m,1)^n[c+1];for(let y=0;y<50;y+=10)e[a+y]^=h,e[a+y+1]^=g}let o=e[2],i=e[3];for(let a=0;a<24;a++){let c=h6e[a],l=d6e(o,i,c),d=f6e(o,i,c),m=p6e[a];o=e[m],i=e[m+1],e[m]=l,e[m+1]=d}for(let a=0;a<50;a+=10){for(let c=0;c<10;c++)n[c]=e[a+c];for(let c=0;c<10;c++)e[a+c]^=~n[(c+2)%10]&n[(c+4)%10]}e[0]^=lbt[r],e[1]^=dbt[r]}Rg(n)}var ibt,P9,abt,sbt,cbt,ubt,p6e,h6e,m6e,g6e,lbt,dbt,d6e,f6e,Zse,pbt,z2,M9=$(()=>{f();Wse();Ig();ibt=BigInt(0),P9=BigInt(1),abt=BigInt(2),sbt=BigInt(7),cbt=BigInt(256),ubt=BigInt(113),p6e=[],h6e=[],m6e=[];for(let e=0,t=P9,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],p6e.push(2*(5*r+n)),h6e.push((e+1)*(e+2)/2%64);let o=ibt;for(let i=0;i<7;i++)t=(t<<P9^(t>>sbt)*ubt)%cbt,t&abt&&(o^=P9<<(P9<<BigInt(i))-P9);m6e.push(o)}g6e=oG(m6e,!0),lbt=g6e[0],dbt=g6e[1],d6e=(e,t,n)=>n>32?JCe(e,t,n):ZCe(e,t,n),f6e=(e,t,n)=>n>32?XCe(e,t,n):QCe(e,t,n);Zse=class e extends i_{constructor(t,n,r,o=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=o,this.rounds=i,Mb(r),!(0<t&&t<200))throw new Error(\"only keccak-f1600 function is supported\");this.state=new Uint8Array(200),this.state32=WCe(this.state)}clone(){return this._cloneInto()}keccak(){Hse(this.state32),fbt(this.state32,this.rounds),Hse(this.state32),this.posOut=0,this.pos=0}update(t){U2(this),t=m5(t),zl(t);let{blockLen:n,state:r}=this,o=t.length;for(let i=0;i<o;){let a=Math.min(n-this.pos,o-i);for(let c=0;c<a;c++)r[this.pos++]^=t[i++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:t,suffix:n,pos:r,blockLen:o}=this;t[r]^=n,(n&128)!==0&&r===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){U2(this,!1),zl(t),this.finish();let n=this.state,{blockLen:r}=this;for(let o=0,i=t.length;o<i;){this.posOut>=r&&this.keccak();let a=Math.min(r-this.posOut,i-o);t.set(n.subarray(this.posOut,this.posOut+a),o),this.posOut+=a,o+=a}return t}xofInto(t){if(!this.enableXOF)throw new Error(\"XOF is not possible for this instance\");return this.writeInto(t)}xof(t){return Mb(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(eG(t,this),this.finished)throw new Error(\"digest() was already called\");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Rg(this.state)}_cloneInto(t){let{blockLen:n,suffix:r,outputLen:o,rounds:i,enableXOF:a}=this;return t||(t=new e(n,r,o,a,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=o,t.enableXOF=a,t.destroyed=this.destroyed,t}},pbt=(e,t,n)=>B8(()=>new Zse(t,e,n)),z2=pbt(1,136,256/8)});function dr(e,t){let n=t||\"hex\",r=z2(ro(e,{strict:!1})?t0(e):e);return n===\"bytes\"?r:Xn(r)}var o0=$(()=>{f();M9();Cg();Ou();An()});function qv(e,t){if(Qse.has(`${e}.${t}`))return Qse.get(`${e}.${t}`);let n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=dr(Fl(n),\"bytes\"),o=(t?n.substring(`${t}0x`.length):n).split(\"\");for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&o[a]&&(o[a]=o[a].toUpperCase()),(r[a>>1]&15)>=8&&o[a+1]&&(o[a+1]=o[a+1].toUpperCase());let i=`0x${o.join(\"\")}`;return Qse.set(`${e}.${t}`,i),i}function rr(e,t){if(!Hn(e,{strict:!1}))throw new ra({address:e});return qv(e,t)}var Qse,Kv=$(()=>{f();Ub();Ou();o0();x5();zh();Qse=new Hh(8192)});function Hn(e,t){let{strict:n=!0}=t??{},r=`${e}.${n}`;if(Jse.has(r))return Jse.get(r);let o=hbt.test(e)?e.toLowerCase()===e?!0:n?qv(e)===e:!0:!1;return Jse.set(r,o),o}var hbt,Jse,zh=$(()=>{f();x5();Kv();hbt=/^0x[a-fA-F0-9]{40}$/,Jse=new Hh(8192)});function Od(e,t,n,{strict:r}={}){return ro(e,{strict:!1})?E5(e,t,n,{strict:r}):gG(e,t,n,{strict:r})}function y6e(e,t){if(typeof t==\"number\"&&t>0&&t>Jr(e)-1)throw new w9({offset:t,position:\"start\",size:Jr(e)})}function b6e(e,t,n){if(typeof t==\"number\"&&typeof n==\"number\"&&Jr(e)!==n-t)throw new w9({offset:n,position:\"end\",size:Jr(e)})}function gG(e,t,n,{strict:r}={}){y6e(e,t);let o=e.slice(t,n);return r&&b6e(o,t,n),o}function E5(e,t,n,{strict:r}={}){y6e(e,t);let o=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(n??e.length)*2)}`;return r&&b6e(o,t,n),o}var Yv=$(()=>{f();DV();Cg();e0()});function v6e(e){let{authorizationList:t}=e;if(t)for(let n of t){let{chainId:r}=n,o=n.address;if(!Hn(o))throw new ra({address:o});if(r<0)throw new w5({chainId:r})}yG(e)}function w6e(e){let{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new U8;for(let n of t){let r=Jr(n),o=Lo(Od(n,0,1));if(r!==32)throw new dG({hash:n,size:r});if(o!==1)throw new fG({hash:n,version:o})}}yG(e)}function yG(e){let{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:o}=e;if(t<=0)throw new w5({chainId:t});if(o&&!Hn(o))throw new ra({address:o});if(r&&r>T8)throw new kg({maxFeePerGas:r});if(n&&r&&n>r)throw new Gv({maxFeePerGas:r,maxPriorityFeePerGas:n})}function x6e(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:i}=e;if(t<=0)throw new w5({chainId:t});if(i&&!Hn(i))throw new ra({address:i});if(n||o)throw new Oe(\"`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.\");if(r&&r>T8)throw new kg({maxFeePerGas:r})}function E6e(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:o,to:i}=e;if(i&&!Hn(i))throw new ra({address:i});if(typeof t<\"u\"&&t<=0)throw new w5({chainId:t});if(n||o)throw new Oe(\"`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.\");if(r&&r>T8)throw new kg({maxFeePerGas:r})}var A6e=$(()=>{f();Mse();Ub();Jn();Kse();N9();l_();zh();e0();Yv();Ac()});function bG(e){if(e.type)return e.type;if(typeof e.authorizationList<\"u\")return\"eip7702\";if(typeof e.blobs<\"u\"||typeof e.blobVersionedHashes<\"u\"||typeof e.maxFeePerBlobGas<\"u\"||typeof e.sidecars<\"u\")return\"eip4844\";if(typeof e.maxFeePerGas<\"u\"||typeof e.maxPriorityFeePerGas<\"u\")return\"eip1559\";if(typeof e.gasPrice<\"u\")return typeof e.accessList<\"u\"?\"eip2930\":\"legacy\";throw new KV({transaction:e})}var Xse=$(()=>{f();Fh()});function D9(e){if(!e||e.length===0)return[];let t=[];for(let n=0;n<e.length;n++){let{address:r,storageKeys:o}=e[n];for(let i=0;i<o.length;i++)if(o[i].length-2!==64)throw new YV({storageKey:o[i]});if(!Hn(r,{strict:!1}))throw new ra({address:r});t.push([r,o])}return t}var S6e=$(()=>{f();Ub();Fh();zh()});function _6e(e,t){let n=bG(e);return n===\"eip1559\"?ybt(e,t):n===\"eip2930\"?bbt(e,t):n===\"eip4844\"?gbt(e,t):n===\"eip7702\"?mbt(e,t):vbt(e,t)}function mbt(e,t){let{authorizationList:n,chainId:r,gas:o,nonce:i,to:a,value:c,maxFeePerGas:l,maxPriorityFeePerGas:d,accessList:m,data:h}=e;v6e(e);let g=D9(m),y=FCe(n);return nc([\"0x04\",Pb([Pe(r),i?Pe(i):\"0x\",d?Pe(d):\"0x\",l?Pe(l):\"0x\",o?Pe(o):\"0x\",a??\"0x\",c?Pe(c):\"0x\",h??\"0x\",g,y,...P8(e,t)])])}function gbt(e,t){let{chainId:n,gas:r,nonce:o,to:i,value:a,maxFeePerBlobGas:c,maxFeePerGas:l,maxPriorityFeePerGas:d,accessList:m,data:h}=e;w6e(e);let g=e.blobVersionedHashes,y=e.sidecars;if(e.blobs&&(typeof g>\"u\"||typeof y>\"u\")){let B=typeof e.blobs[0]==\"string\"?e.blobs:e.blobs.map(J=>Bo(J)),z=e.kzg,G=M8({blobs:B,kzg:z});if(typeof g>\"u\"&&(g=uG({commitments:G})),typeof y>\"u\"){let J=D8({blobs:B,commitments:G,kzg:z});y=pG({blobs:B,commitments:G,proofs:J})}}let w=D9(m),x=[Pe(n),o?Pe(o):\"0x\",d?Pe(d):\"0x\",l?Pe(l):\"0x\",r?Pe(r):\"0x\",i??\"0x\",a?Pe(a):\"0x\",h??\"0x\",w,c?Pe(c):\"0x\",g??[],...P8(e,t)],I=[],C=[],M=[];if(y)for(let B=0;B<y.length;B++){let{blob:z,commitment:G,proof:J}=y[B];I.push(z),C.push(G),M.push(J)}return nc([\"0x03\",y?Pb([x,I,C,M]):Pb(x)])}function ybt(e,t){let{chainId:n,gas:r,nonce:o,to:i,value:a,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:d,data:m}=e;yG(e);let h=D9(d),g=[Pe(n),o?Pe(o):\"0x\",l?Pe(l):\"0x\",c?Pe(c):\"0x\",r?Pe(r):\"0x\",i??\"0x\",a?Pe(a):\"0x\",m??\"0x\",h,...P8(e,t)];return nc([\"0x02\",Pb(g)])}function bbt(e,t){let{chainId:n,gas:r,data:o,nonce:i,to:a,value:c,accessList:l,gasPrice:d}=e;x6e(e);let m=D9(l),h=[Pe(n),i?Pe(i):\"0x\",d?Pe(d):\"0x\",r?Pe(r):\"0x\",a??\"0x\",c?Pe(c):\"0x\",o??\"0x\",m,...P8(e,t)];return nc([\"0x01\",Pb(h)])}function vbt(e,t){let{chainId:n=0,gas:r,data:o,nonce:i,to:a,value:c,gasPrice:l}=e;E6e(e);let d=[i?Pe(i):\"0x\",l?Pe(l):\"0x\",r?Pe(r):\"0x\",a??\"0x\",c?Pe(c):\"0x\",o??\"0x\"];if(t){let m=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(n>0)return BigInt(n*2)+BigInt(35n+t.v-27n);let y=27n+(t.v===27n?0n:1n);if(t.v!==y)throw new qV({v:t.v});return y})(),h=na(t.r),g=na(t.s);d=[...d,Pe(m),h===\"0x00\"?\"0x\":h,g===\"0x00\"?\"0x\":g]}else n>0&&(d=[...d,Pe(n),\"0x\",\"0x\"]);return Pb(d)}function P8(e,t){let n=t??e,{v:r,yParity:o}=n;if(typeof n.r>\"u\")return[];if(typeof n.s>\"u\")return[];if(typeof r>\"u\"&&typeof o>\"u\")return[];let i=na(n.r),a=na(n.s);return[typeof o==\"number\"?o?Pe(1):\"0x\":r===0n?\"0x\":r===1n?Pe(1):r===27n?\"0x\":Pe(1),i===\"0x00\"?\"0x\":i,a===\"0x00\"?\"0x\":a]}var Fse=$(()=>{f();Fh();HCe();JV();XV();qse();Yse();Nu();n_();An();zV();A6e();Xse();S6e()});var T6e,C6e=$(()=>{f();T6e={gasPriceOracle:{address:\"0x420000000000000000000000000000000000000F\"},l1Block:{address:\"0x4200000000000000000000000000000000000015\"},l2CrossDomainMessenger:{address:\"0x4200000000000000000000000000000000000007\"},l2Erc721Bridge:{address:\"0x4200000000000000000000000000000000000014\"},l2StandardBridge:{address:\"0x4200000000000000000000000000000000000010\"},l2ToL1MessagePasser:{address:\"0x4200000000000000000000000000000000000016\"}}});var R6e,I6e=$(()=>{f();Ac();UV();S9();_8();R6e={block:DCe({format(e){return{transactions:e.transactions?.map(n=>{if(typeof n==\"string\")return n;let r=d5(n);return r.typeHex===\"0x7e\"&&(r.isSystemTx=n.isSystemTx,r.mint=n.mint?Zn(n.mint):void 0,r.sourceHash=n.sourceHash,r.type=\"deposit\"),r}),stateRoot:e.stateRoot}}}),transaction:MCe({format(e){let t={};return e.type===\"0x7e\"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?Zn(e.mint):void 0,t.sourceHash=e.sourceHash,t.type=\"deposit\"),t}}),transactionReceipt:BCe({format(e){return{l1GasPrice:e.l1GasPrice?Zn(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?Zn(e.l1GasUsed):null,l1Fee:e.l1Fee?Zn(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})}});function wbt(e,t){return Ebt(e)?xbt(e):_6e(e,t)}function xbt(e){Abt(e);let{sourceHash:t,data:n,from:r,gas:o,isSystemTx:i,mint:a,to:c,value:l}=e,d=[t,r,c??\"0x\",a?Xn(a):\"0x\",l?Xn(l):\"0x\",o?Xn(o):\"0x\",i?\"0x1\":\"0x\",n??\"0x\"];return nc([\"0x7e\",Pb(d)])}function Ebt(e){return e.type===\"deposit\"||typeof e.sourceHash<\"u\"}function Abt(e){let{from:t,to:n}=e;if(t&&!Hn(t))throw new ra({address:t});if(n&&!Hn(n))throw new ra({address:n})}var k6e,O6e=$(()=>{f();Ub();zh();Nu();An();zV();Fse();k6e={transaction:wbt}});var Ng,B9=$(()=>{f();C6e();I6e();O6e();Ng={blockTime:2e3,contracts:T6e,formatters:R6e,serializers:k6e}});var $se,N6e=$(()=>{f();Tg();$se=ya({id:42161,name:\"Arbitrum One\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},blockTime:250,rpcUrls:{default:{http:[\"https://arb1.arbitrum.io/rpc\"]}},blockExplorers:{default:{name:\"Arbiscan\",url:\"https://arbiscan.io\",apiUrl:\"https://api.arbiscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:7654707}}})});var ece,P6e=$(()=>{f();Tg();ece=ya({id:421614,name:\"Arbitrum Sepolia\",blockTime:250,nativeCurrency:{name:\"Arbitrum Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia-rollup.arbitrum.io/rpc\"]}},blockExplorers:{default:{name:\"Arbiscan\",url:\"https://sepolia.arbiscan.io\",apiUrl:\"https://api-sepolia.arbiscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:81930}},testnet:!0})});var L9,fr,Sbt,M6e=$(()=>{f();B9();Tg();L9=1,fr=ya({...Ng,id:8453,name:\"Base\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.base.org\"]}},blockExplorers:{default:{name:\"Basescan\",url:\"https://basescan.org\",apiUrl:\"https://api.basescan.org/api\"}},contracts:{...Ng.contracts,disputeGameFactory:{[L9]:{address:\"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e\"}},l2OutputOracle:{[L9]:{address:\"0x56315b90c40730925ec5485cf004d835058518A0\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:5022},portal:{[L9]:{address:\"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e\",blockCreated:17482143}},l1StandardBridge:{[L9]:{address:\"0x3154Cf16ccdb4C6d922629664174b904d80F2C35\",blockCreated:17482143}}},sourceId:L9}),Sbt=ya({...fr,experimental_preconfirmationTime:200,rpcUrls:{default:{http:[\"https://mainnet-preconf.base.org\"]}}})});var U9,Cs,_bt,D6e=$(()=>{f();B9();Tg();U9=11155111,Cs=ya({...Ng,id:84532,network:\"base-sepolia\",name:\"Base Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.base.org\"]}},blockExplorers:{default:{name:\"Basescan\",url:\"https://sepolia.basescan.org\",apiUrl:\"https://api-sepolia.basescan.org/api\"}},contracts:{...Ng.contracts,disputeGameFactory:{[U9]:{address:\"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1\"}},l2OutputOracle:{[U9]:{address:\"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254\"}},portal:{[U9]:{address:\"0x49f53e41452c74589e85ca1677426ba426459e85\",blockCreated:4446677}},l1StandardBridge:{[U9]:{address:\"0xfd0Bf71F60660E2f608ed56e1659C450eB113120\",blockCreated:4446677}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1059647}},testnet:!0,sourceId:U9}),_bt=ya({...Cs,experimental_preconfirmationTime:200,rpcUrls:{default:{http:[\"https://sepolia-preconf.base.org\"]}}})});function K8({chain:e,currentChainId:t}){if(!e)throw new mG;if(t!==e.id)throw new hG({chain:e,currentChainId:t})}var vG=$(()=>{f();N9()});function Pg({blockNumber:e,chain:t,contract:n}){let r=t?.contracts?.[n];if(!r)throw new v5({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new v5({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}var A5=$(()=>{f();N9()});function Bn(e){return typeof e==\"string\"?{address:e,type:\"json-rpc\"}:e}var La=$(()=>{f()});var Rs,Mg,Dg=$(()=>{f();Jn();Rs=class extends Oe{constructor({docsPath:t}={}){super([\"Could not find an Account to execute with this Action.\",\"Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.\"].join(`\\n`),{docsPath:t,docsSlug:\"account\",name:\"AccountNotFoundError\"})}},Mg=class extends Oe{constructor({docsPath:t,metaMessages:n,type:r}){super(`Account type \"${r}\" is not supported.`,{docsPath:t,metaMessages:n,name:\"AccountTypeNotSupportedError\"})}}});var B6e,wG,L6e,xG=$(()=>{f();B6e={1:\"An `assert` condition failed.\",17:\"Arithmetic operation resulted in underflow or overflow.\",18:\"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).\",33:\"Attempted to convert to an invalid type.\",34:\"Attempted to access a storage byte array that is incorrectly encoded.\",49:\"Performed `.pop()` on an empty array\",50:\"Array index is out of bounds.\",65:\"Allocated too much memory or created an array which is too large.\",81:\"Attempted to call a zero-initialized variable of internal function type.\"},wG={inputs:[{name:\"message\",type:\"string\"}],name:\"Error\",type:\"error\"},L6e={inputs:[{name:\"reason\",type:\"uint256\"}],name:\"Panic\",type:\"error\"}});function pl(e,{includeName:t=!1}={}){if(e.type!==\"function\"&&e.type!==\"event\"&&e.type!==\"error\")throw new EG(e.type);return`${e.name}(${F9(e.inputs,{includeName:t})})`}function F9(e,{includeName:t=!1}={}){return e?e.map(n=>Tbt(n,{includeName:t})).join(t?\", \":\",\"):\"\"}function Tbt(e,{includeName:t}){return e.type.startsWith(\"tuple\")?`(${F9(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:\"\")}var j2=$(()=>{f();oc()});var AG,H9,Y8,Bg,SG,_G,Z8,TG,z9,Q8,CG,J8,j9,Fb,X8,RG,IG,$8,Hb,Zv,kG,OG,ek,EG,NG,oc=$(()=>{f();j2();e0();Jn();AG=class extends Oe{constructor({docsPath:t}){super([\"A constructor was not found on the ABI.\",\"Make sure you are using the correct ABI and that the constructor exists on it.\"].join(`\\n`),{docsPath:t,name:\"AbiConstructorNotFoundError\"})}},H9=class extends Oe{constructor({docsPath:t}){super([\"Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\",\"Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.\"].join(`\\n`),{docsPath:t,name:\"AbiConstructorParamsNotFoundError\"})}},Y8=class extends Oe{constructor({data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join(`\\n`),{metaMessages:[`Params: (${F9(n,{includeName:!0})})`,`Data:   ${t} (${r} bytes)`],name:\"AbiDecodingDataSizeTooSmallError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"params\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"size\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=n,this.size=r}},Bg=class extends Oe{constructor(){super(\\'Cannot decode zero data (\"0x\") with ABI parameters.\\',{name:\"AbiDecodingZeroDataError\"})}},SG=class extends Oe{constructor({expectedLength:t,givenLength:n,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${n}`].join(`\\n`),{name:\"AbiEncodingArrayLengthMismatchError\"})}},_G=class extends Oe{constructor({expectedSize:t,value:n}){super(`Size of bytes \"${n}\" (bytes${Jr(n)}) does not match expected size (bytes${t}).`,{name:\"AbiEncodingBytesSizeMismatchError\"})}},Z8=class extends Oe{constructor({expectedLength:t,givenLength:n}){super([\"ABI encoding params/values length mismatch.\",`Expected length (params): ${t}`,`Given length (values): ${n}`].join(`\\n`),{name:\"AbiEncodingLengthMismatchError\"})}},TG=class extends Oe{constructor(t,{docsPath:n}){super([`Arguments (\\\\`args\\\\`) were provided to \"${t}\", but \"${t}\" on the ABI does not contain any parameters (\\\\`inputs\\\\`).`,\"Cannot encode error result without knowing what the parameter types are.\",\"Make sure you are using the correct ABI and that the inputs exist on it.\"].join(`\\n`),{docsPath:n,name:\"AbiErrorInputsNotFoundError\"})}},z9=class extends Oe{constructor(t,{docsPath:n}={}){super([`Error ${t?`\"${t}\" `:\"\"}not found on ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\"].join(`\\n`),{docsPath:n,name:\"AbiErrorNotFoundError\"})}},Q8=class extends Oe{constructor(t,{docsPath:n}){super([`Encoded error signature \"${t}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`].join(`\\n`),{docsPath:n,name:\"AbiErrorSignatureNotFoundError\"}),Object.defineProperty(this,\"signature\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}},CG=class extends Oe{constructor({docsPath:t}){super(\"Cannot extract event signature from empty topics.\",{docsPath:t,name:\"AbiEventSignatureEmptyTopicsError\"})}},J8=class extends Oe{constructor(t,{docsPath:n}){super([`Encoded event signature \"${t}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the event exists on it.\",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join(`\\n`),{docsPath:n,name:\"AbiEventSignatureNotFoundError\"})}},j9=class extends Oe{constructor(t,{docsPath:n}={}){super([`Event ${t?`\"${t}\" `:\"\"}not found on ABI.`,\"Make sure you are using the correct ABI and that the event exists on it.\"].join(`\\n`),{docsPath:n,name:\"AbiEventNotFoundError\"})}},Fb=class extends Oe{constructor(t,{docsPath:n}={}){super([`Function ${t?`\"${t}\" `:\"\"}not found on ABI.`,\"Make sure you are using the correct ABI and that the function exists on it.\"].join(`\\n`),{docsPath:n,name:\"AbiFunctionNotFoundError\"})}},X8=class extends Oe{constructor(t,{docsPath:n}){super([`Function \"${t}\" does not contain any \\\\`outputs\\\\` on ABI.`,\"Cannot decode function result without knowing what the parameter types are.\",\"Make sure you are using the correct ABI and that the function exists on it.\"].join(`\\n`),{docsPath:n,name:\"AbiFunctionOutputsNotFoundError\"})}},RG=class extends Oe{constructor(t,{docsPath:n}){super([`Encoded function signature \"${t}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the function exists on it.\",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join(`\\n`),{docsPath:n,name:\"AbiFunctionSignatureNotFoundError\"})}},IG=class extends Oe{constructor(t,n){super(\"Found ambiguous types in overloaded ABI items.\",{metaMessages:[`\\\\`${t.type}\\\\` in \\\\`${pl(t.abiItem)}\\\\`, and`,`\\\\`${n.type}\\\\` in \\\\`${pl(n.abiItem)}\\\\``,\"\",\"These types encode differently and cannot be distinguished at runtime.\",\"Remove one of the ambiguous items in the ABI.\"],name:\"AbiItemAmbiguityError\"})}},$8=class extends Oe{constructor({expectedSize:t,givenSize:n}){super(`Expected bytes${t}, got bytes${n}.`,{name:\"BytesSizeMismatchError\"})}},Hb=class extends Oe{constructor({abiItem:t,data:n,params:r,size:o}){super([`Data size of ${o} bytes is too small for non-indexed event parameters.`].join(`\\n`),{metaMessages:[`Params: (${F9(r,{includeName:!0})})`,`Data:   ${n} (${o} bytes)`],name:\"DecodeLogDataMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"params\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"size\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=n,this.params=r,this.size=o}},Zv=class extends Oe{constructor({abiItem:t,param:n}){super([`Expected a topic for indexed event parameter${n.name?` \"${n.name}\"`:\"\"} on event \"${pl(t,{includeName:!0})}\".`].join(`\\n`),{name:\"DecodeLogTopicsMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}},kG=class extends Oe{constructor(t,{docsPath:n}){super([`Type \"${t}\" is not a valid encoding type.`,\"Please provide a valid ABI type.\"].join(`\\n`),{docsPath:n,name:\"InvalidAbiEncodingType\"})}},OG=class extends Oe{constructor(t,{docsPath:n}){super([`Type \"${t}\" is not a valid decoding type.`,\"Please provide a valid ABI type.\"].join(`\\n`),{docsPath:n,name:\"InvalidAbiDecodingType\"})}},ek=class extends Oe{constructor(t){super([`Value \"${t}\" is not a valid array.`].join(`\\n`),{name:\"InvalidArrayError\"})}},EG=class extends Oe{constructor(t){super([`\"${t}\" is not a valid definition type.`,\\'Valid types: \"function\", \"event\", \"error\"\\'].join(`\\n`),{name:\"InvalidDefinitionTypeError\"})}},NG=class extends Oe{constructor(t){super(`Type \"${t}\" is not supported for packed encoding.`,{name:\"UnsupportedPackedAbiType\"})}}});function U6e(e){return Cbt(e)}var Cbt,F6e=$(()=>{f();Ou();o0();Cbt=e=>dr(t0(e))});var H6e,z6e=$(()=>{f();H6e=\"1.1.0\"});var Xc,tk=$(()=>{f();z6e();Xc=class e extends Error{constructor(t,n={}){let r=n.cause instanceof e?n.cause.details:n.cause?.message?n.cause.message:n.details,o=n.cause instanceof e&&n.cause.docsPath||n.docsPath,i=[t||\"An error occurred.\",\"\",...n.metaMessages?[...n.metaMessages,\"\"]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${H6e}`].join(`\\n`);super(i),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiTypeError\"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}}});function i0(e,t){return e.exec(t)?.groups}var tce,nce,PG,W9=$(()=>{f();tce=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,nce=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,PG=/^\\\\(.+?\\\\).*?$/});function MG(e){let t=e.type;if(j6e.test(e.type)&&\"components\"in e){t=\"(\";let n=e.components.length;for(let o=0;o<n;o++){let i=e.components[o];t+=MG(i),o<n-1&&(t+=\", \")}let r=i0(j6e,e.type);return t+=`)${r?.array??\"\"}`,MG({...e,type:t})}return\"indexed\"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}var j6e,W6e=$(()=>{f();W9();j6e=/^tuple(?<array>(\\\\[(\\\\d*)\\\\])*)$/});function W2(e){let t=\"\",n=e.length;for(let r=0;r<n;r++){let o=e[r];t+=MG(o),r!==n-1&&(t+=\", \")}return t}var rce=$(()=>{f();W6e()});function S5(e){return e.type===\"function\"?`function ${e.name}(${W2(e.inputs)})${e.stateMutability&&e.stateMutability!==\"nonpayable\"?` ${e.stateMutability}`:\"\"}${e.outputs?.length?` returns (${W2(e.outputs)})`:\"\"}`:e.type===\"event\"?`event ${e.name}(${W2(e.inputs)})`:e.type===\"error\"?`error ${e.name}(${W2(e.inputs)})`:e.type===\"constructor\"?`constructor(${W2(e.inputs)})${e.stateMutability===\"payable\"?\" payable\":\"\"}`:e.type===\"fallback\"?`fallback() external${e.stateMutability===\"payable\"?\" payable\":\"\"}`:\"receive() external payable\"}var V6e=$(()=>{f();rce()});function q6e(e){return G6e.test(e)}function K6e(e){return i0(G6e,e)}function Z6e(e){return Y6e.test(e)}function Q6e(e){return i0(Y6e,e)}function X6e(e){return J6e.test(e)}function $6e(e){return i0(J6e,e)}function d_(e){return e5e.test(e)}function t5e(e){return i0(e5e,e)}function r5e(e){return n5e.test(e)}function o5e(e){return i0(n5e,e)}function a5e(e){return i5e.test(e)}function s5e(e){return i0(i5e,e)}function c5e(e){return Rbt.test(e)}var G6e,Y6e,J6e,e5e,n5e,i5e,Rbt,oce,u5e,DG,nk=$(()=>{f();W9();G6e=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)$/;Y6e=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)$/;J6e=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\\\((?<parameters>.*?)\\\\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\\\\s?\\\\((?<returns>.*?)\\\\))?$/;e5e=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \\\\{(?<properties>.*?)\\\\}$/;n5e=/^constructor\\\\((?<parameters>.*?)\\\\)(?:\\\\s(?<stateMutability>payable{1}))?$/;i5e=/^fallback\\\\(\\\\) external(?:\\\\s(?<stateMutability>payable{1}))?$/;Rbt=/^receive\\\\(\\\\) external payable$/;oce=new Set([\"memory\",\"indexed\",\"storage\",\"calldata\"]),u5e=new Set([\"indexed\"]),DG=new Set([\"calldata\",\"memory\",\"storage\"])});var V9,G9,BG,LG=$(()=>{f();tk();V9=class extends Xc{constructor({signature:t}){super(\"Failed to parse ABI item.\",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:\"/api/human#parseabiitem-1\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiItemError\"})}},G9=class extends Xc{constructor({type:t}){super(\"Unknown type.\",{metaMessages:[`Type \"${t}\" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownTypeError\"})}},BG=class extends Xc{constructor({type:t}){super(\"Unknown type.\",{metaMessages:[`Type \"${t}\" is not a valid ABI type.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSolidityTypeError\"})}}});var q9,K9,Y9,Z9,Q9,J9,UG=$(()=>{f();tk();q9=class extends Xc{constructor({params:t}){super(\"Failed to parse ABI parameters.\",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:\"/api/human#parseabiparameters-1\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiParametersError\"})}},K9=class extends Xc{constructor({param:t}){super(\"Invalid ABI parameter.\",{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParameterError\"})}},Y9=class extends Xc{constructor({param:t,name:n}){super(\"Invalid ABI parameter.\",{details:t,metaMessages:[`\"${n}\" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SolidityProtectedKeywordError\"})}},Z9=class extends Xc{constructor({param:t,type:n,modifier:r}){super(\"Invalid ABI parameter.\",{details:t,metaMessages:[`Modifier \"${r}\" not allowed${n?` in \"${n}\" type`:\"\"}.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidModifierError\"})}},Q9=class extends Xc{constructor({param:t,type:n,modifier:r}){super(\"Invalid ABI parameter.\",{details:t,metaMessages:[`Modifier \"${r}\" not allowed${n?` in \"${n}\" type`:\"\"}.`,`Data location can only be specified for array, struct, or mapping types, but \"${r}\" was given.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidFunctionModifierError\"})}},J9=class extends Xc{constructor({abiParameter:t}){super(\"Invalid ABI parameter.\",{details:JSON.stringify(t,null,2),metaMessages:[\"ABI parameter type is invalid.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiTypeParameterError\"})}}});var zb,X9,$9,ice=$(()=>{f();tk();zb=class extends Xc{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidSignatureError\"})}},X9=class extends Xc{constructor({signature:t}){super(\"Unknown signature.\",{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSignatureError\"})}},$9=class extends Xc{constructor({signature:t}){super(\"Invalid struct signature.\",{details:t,metaMessages:[\"No properties exist.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidStructSignatureError\"})}}});var eB,l5e=$(()=>{f();tk();eB=class extends Xc{constructor({type:t}){super(\"Circular reference detected.\",{metaMessages:[`Struct \"${t}\" is a circular reference.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"CircularReferenceError\"})}}});var tB,d5e=$(()=>{f();tk();tB=class extends Xc{constructor({current:t,depth:n}){super(\"Unbalanced parentheses.\",{metaMessages:[`\"${t.trim()}\" has too many ${n>0?\"opening\":\"closing\"} parentheses.`],details:`Depth \"${n}\"`}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParenthesisError\"})}}});function f5e(e,t,n){let r=\"\";if(n)for(let o of Object.entries(n)){if(!o)continue;let i=\"\";for(let a of o[1])i+=`[${a.type}${a.name?`:${a.name}`:\"\"}]`;r+=`(${o[0]}{${i}})`}return t?`${t}:${e}${r}`:e}var FG,p5e=$(()=>{f();FG=new Map([[\"address\",{type:\"address\"}],[\"bool\",{type:\"bool\"}],[\"bytes\",{type:\"bytes\"}],[\"bytes32\",{type:\"bytes32\"}],[\"int\",{type:\"int256\"}],[\"int256\",{type:\"int256\"}],[\"string\",{type:\"string\"}],[\"uint\",{type:\"uint256\"}],[\"uint8\",{type:\"uint8\"}],[\"uint16\",{type:\"uint16\"}],[\"uint24\",{type:\"uint24\"}],[\"uint32\",{type:\"uint32\"}],[\"uint64\",{type:\"uint64\"}],[\"uint96\",{type:\"uint96\"}],[\"uint112\",{type:\"uint112\"}],[\"uint160\",{type:\"uint160\"}],[\"uint192\",{type:\"uint192\"}],[\"uint256\",{type:\"uint256\"}],[\"address owner\",{type:\"address\",name:\"owner\"}],[\"address to\",{type:\"address\",name:\"to\"}],[\"bool approved\",{type:\"bool\",name:\"approved\"}],[\"bytes _data\",{type:\"bytes\",name:\"_data\"}],[\"bytes data\",{type:\"bytes\",name:\"data\"}],[\"bytes signature\",{type:\"bytes\",name:\"signature\"}],[\"bytes32 hash\",{type:\"bytes32\",name:\"hash\"}],[\"bytes32 r\",{type:\"bytes32\",name:\"r\"}],[\"bytes32 root\",{type:\"bytes32\",name:\"root\"}],[\"bytes32 s\",{type:\"bytes32\",name:\"s\"}],[\"string name\",{type:\"string\",name:\"name\"}],[\"string symbol\",{type:\"string\",name:\"symbol\"}],[\"string tokenURI\",{type:\"string\",name:\"tokenURI\"}],[\"uint tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint8 v\",{type:\"uint8\",name:\"v\"}],[\"uint256 balance\",{type:\"uint256\",name:\"balance\"}],[\"uint256 tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint256 value\",{type:\"uint256\",name:\"value\"}],[\"event:address indexed from\",{type:\"address\",name:\"from\",indexed:!0}],[\"event:address indexed to\",{type:\"address\",name:\"to\",indexed:!0}],[\"event:uint indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}],[\"event:uint256 indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}]])});function nB(e,t={}){if(X6e(e))return Ibt(e,t);if(Z6e(e))return kbt(e,t);if(q6e(e))return Obt(e,t);if(r5e(e))return Nbt(e,t);if(a5e(e))return Pbt(e);if(c5e(e))return{type:\"receive\",stateMutability:\"payable\"};throw new X9({signature:e})}function Ibt(e,t={}){let n=$6e(e);if(!n)throw new zb({signature:e,type:\"function\"});let r=jh(n.parameters),o=[],i=r.length;for(let c=0;c<i;c++)o.push(jb(r[c],{modifiers:DG,structs:t,type:\"function\"}));let a=[];if(n.returns){let c=jh(n.returns),l=c.length;for(let d=0;d<l;d++)a.push(jb(c[d],{modifiers:DG,structs:t,type:\"function\"}))}return{name:n.name,type:\"function\",stateMutability:n.stateMutability??\"nonpayable\",inputs:o,outputs:a}}function kbt(e,t={}){let n=Q6e(e);if(!n)throw new zb({signature:e,type:\"event\"});let r=jh(n.parameters),o=[],i=r.length;for(let a=0;a<i;a++)o.push(jb(r[a],{modifiers:u5e,structs:t,type:\"event\"}));return{name:n.name,type:\"event\",inputs:o}}function Obt(e,t={}){let n=K6e(e);if(!n)throw new zb({signature:e,type:\"error\"});let r=jh(n.parameters),o=[],i=r.length;for(let a=0;a<i;a++)o.push(jb(r[a],{structs:t,type:\"error\"}));return{name:n.name,type:\"error\",inputs:o}}function Nbt(e,t={}){let n=o5e(e);if(!n)throw new zb({signature:e,type:\"constructor\"});let r=jh(n.parameters),o=[],i=r.length;for(let a=0;a<i;a++)o.push(jb(r[a],{structs:t,type:\"constructor\"}));return{type:\"constructor\",stateMutability:n.stateMutability??\"nonpayable\",inputs:o}}function Pbt(e){let t=s5e(e);if(!t)throw new zb({signature:e,type:\"fallback\"});return{type:\"fallback\",stateMutability:t.stateMutability??\"nonpayable\"}}function jb(e,t){let n=f5e(e,t?.type,t?.structs);if(FG.has(n))return FG.get(n);let r=PG.test(e),o=i0(r?Dbt:Mbt,e);if(!o)throw new K9({param:e});if(o.name&&Ubt(o.name))throw new Y9({param:e,name:o.name});let i=o.name?{name:o.name}:{},a=o.modifier===\"indexed\"?{indexed:!0}:{},c=t?.structs??{},l,d={};if(r){l=\"tuple\";let h=jh(o.type),g=[],y=h.length;for(let w=0;w<y;w++)g.push(jb(h[w],{structs:c}));d={components:g}}else if(o.type in c)l=\"tuple\",d={components:c[o.type]};else if(Bbt.test(o.type))l=`${o.type}256`;else if(o.type===\"address payable\")l=\"address\";else if(l=o.type,t?.type!==\"struct\"&&!ace(l))throw new BG({type:l});if(o.modifier){if(!t?.modifiers?.has?.(o.modifier))throw new Z9({param:e,type:t?.type,modifier:o.modifier});if(DG.has(o.modifier)&&!Fbt(l,!!o.array))throw new Q9({param:e,type:t?.type,modifier:o.modifier})}let m={type:`${l}${o.array??\"\"}`,...i,...a,...d};return FG.set(n,m),m}function jh(e,t=[],n=\"\",r=0){let o=e.trim().length;for(let i=0;i<o;i++){let a=e[i],c=e.slice(i+1);switch(a){case\",\":return r===0?jh(c,[...t,n.trim()]):jh(c,t,`${n}${a}`,r);case\"(\":return jh(c,t,`${n}${a}`,r+1);case\")\":return jh(c,t,`${n}${a}`,r-1);default:return jh(c,t,`${n}${a}`,r)}}if(n===\"\")return t;if(r!==0)throw new tB({current:n,depth:r});return t.push(n.trim()),t}function ace(e){return e===\"address\"||e===\"bool\"||e===\"function\"||e===\"string\"||tce.test(e)||nce.test(e)}function Ubt(e){return e===\"address\"||e===\"bool\"||e===\"function\"||e===\"string\"||e===\"tuple\"||tce.test(e)||nce.test(e)||Lbt.test(e)}function Fbt(e,t){return t||e===\"bytes\"||e===\"string\"||e===\"tuple\"}var Mbt,Dbt,Bbt,Lbt,rk=$(()=>{f();W9();LG();UG();ice();d5e();p5e();nk();Mbt=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\\\\spayable)?)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?(?:\\\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Dbt=/^\\\\((?<type>.+?)\\\\)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?(?:\\\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Bbt=/^u?int$/;Lbt=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/});function ok(e){let t={},n=e.length;for(let a=0;a<n;a++){let c=e[a];if(!d_(c))continue;let l=t5e(c);if(!l)throw new zb({signature:c,type:\"struct\"});let d=l.properties.split(\";\"),m=[],h=d.length;for(let g=0;g<h;g++){let w=d[g].trim();if(!w)continue;let x=jb(w,{type:\"struct\"});m.push(x)}if(!m.length)throw new $9({signature:c});t[l.name]=m}let r={},o=Object.entries(t),i=o.length;for(let a=0;a<i;a++){let[c,l]=o[a];r[c]=h5e(l,t)}return r}function h5e(e,t,n=new Set){let r=[],o=e.length;for(let i=0;i<o;i++){let a=e[i];if(PG.test(a.type))r.push(a);else{let l=i0(Hbt,a.type);if(!l?.type)throw new J9({abiParameter:a});let{array:d,type:m}=l;if(m in t){if(n.has(m))throw new eB({type:m});r.push({...a,type:`tuple${d??\"\"}`,components:h5e(t[m]??[],t,new Set([...n,m]))})}else if(ace(m))r.push(a);else throw new G9({type:m})}}return r}var Hbt,HG=$(()=>{f();W9();LG();UG();ice();l5e();nk();rk();Hbt=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\\\\[\\\\d*?\\\\])+?)?$/});function V2(e){let t=ok(e),n=[],r=e.length;for(let o=0;o<r;o++){let i=e[o];d_(i)||n.push(nB(i,t))}return n}var m5e=$(()=>{f();nk();HG();rk()});function rB(e){let t;if(typeof e==\"string\")t=nB(e);else{let n=ok(e),r=e.length;for(let o=0;o<r;o++){let i=e[o];if(!d_(i)){t=nB(i,n);break}}}if(!t)throw new V9({signature:e});return t}var g5e=$(()=>{f();LG();nk();HG();rk()});function oB(e){let t=[];if(typeof e==\"string\"){let n=jh(e),r=n.length;for(let o=0;o<r;o++)t.push(jb(n[o],{modifiers:oce}))}else{let n=ok(e),r=e.length;for(let o=0;o<r;o++){let i=e[o];if(d_(i))continue;let a=jh(i),c=a.length;for(let l=0;l<c;l++)t.push(jb(a[l],{modifiers:oce,structs:n}))}}if(t.length===0)throw new q9({params:e});return t}var y5e=$(()=>{f();UG();nk();HG();rk();rk()});var _5=$(()=>{f();V6e();rce();m5e();g5e();y5e()});function v5e(e){let t=!0,n=\"\",r=0,o=\"\",i=!1;for(let a=0;a<e.length;a++){let c=e[a];if([\"(\",\")\",\",\"].includes(c)&&(t=!0),c===\"(\"&&r++,c===\")\"&&r--,!!t){if(r===0){if(c===\" \"&&[\"event\",\"function\",\"\"].includes(o))o=\"\";else if(o+=c,c===\")\"){i=!0;break}continue}if(c===\" \"){e[a-1]!==\",\"&&n!==\",\"&&n!==\",(\"&&(n=\"\",t=!1);continue}o+=c,n+=c}}if(!i)throw new Oe(\"Unable to normalize signature.\");return o}var w5e=$(()=>{f();Jn()});var x5e,E5e=$(()=>{f();_5();w5e();x5e=e=>{let t=typeof e==\"string\"?e:S5(e);return v5e(t)}});function zG(e){return U6e(x5e(e))}var sce=$(()=>{f();F6e();E5e()});var Qv,ik=$(()=>{f();Yv();sce();Qv=e=>Od(zG(e),0,4)});function A5e(e,t={}){typeof t.size<\"u\"&&Lp(e,{size:t.size});let n=Bo(e,t);return Zn(n,t)}function S5e(e,t={}){let n=e;if(typeof t.size<\"u\"&&(Lp(n,{size:t.size}),n=na(n)),n.length>1||n[0]>1)throw new NV(n);return!!n[0]}function Jv(e,t={}){typeof t.size<\"u\"&&Lp(e,{size:t.size});let n=Bo(e,t);return Lo(n,t)}function _5e(e,t={}){let n=e;return typeof t.size<\"u\"&&(Lp(n,{size:t.size}),n=na(n,{dir:\"right\"})),new TextDecoder().decode(n)}var T5e=$(()=>{f();v9();n_();Ac();An()});var C5e,jG,ak,WG=$(()=>{f();C5e=/^(.*)\\\\[([0-9]*)\\\\]$/,jG=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,ak=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/});function oa(e,t){if(e.length!==t.length)throw new Z8({expectedLength:e.length,givenLength:t.length});let n=zbt({params:e,values:t}),r=uce(n);return r.length===0?\"0x\":r}function zbt({params:e,values:t}){let n=[];for(let r=0;r<e.length;r++)n.push(cce({param:e[r],value:t[r]}));return n}function cce({param:e,value:t}){let n=VG(e.type);if(n){let[r,o]=n;return Wbt(t,{length:r,param:{...e,type:o}})}if(e.type===\"tuple\")return Ybt(t,{param:e});if(e.type===\"address\")return jbt(t);if(e.type===\"bool\")return Gbt(t);if(e.type.startsWith(\"uint\")||e.type.startsWith(\"int\")){let r=e.type.startsWith(\"int\"),[,,o=\"256\"]=ak.exec(e.type)??[];return qbt(t,{signed:r,size:Number(o)})}if(e.type.startsWith(\"bytes\"))return Vbt(t,{param:e});if(e.type===\"string\")return Kbt(t);throw new kG(e.type,{docsPath:\"/docs/contract/encodeAbiParameters\"})}function uce(e){let t=0;for(let i=0;i<e.length;i++){let{dynamic:a,encoded:c}=e[i];a?t+=32:t+=Jr(c)}let n=[],r=[],o=0;for(let i=0;i<e.length;i++){let{dynamic:a,encoded:c}=e[i];a?(n.push(Pe(t+o,{size:32})),r.push(c),o+=Jr(c)):n.push(c)}return qi([...n,...r])}function jbt(e){if(!Hn(e))throw new ra({address:e});return{dynamic:!1,encoded:Nb(e.toLowerCase())}}function Wbt(e,{length:t,param:n}){let r=t===null;if(!Array.isArray(e))throw new ek(e);if(!r&&e.length!==t)throw new SG({expectedLength:t,givenLength:e.length,type:`${n.type}[${t}]`});let o=!1,i=[];for(let a=0;a<e.length;a++){let c=cce({param:n,value:e[a]});c.dynamic&&(o=!0),i.push(c)}if(r||o){let a=uce(i);if(r){let c=Pe(i.length,{size:32});return{dynamic:!0,encoded:i.length>0?qi([c,a]):c}}if(o)return{dynamic:!0,encoded:a}}return{dynamic:!1,encoded:qi(i.map(({encoded:a})=>a))}}function Vbt(e,{param:t}){let[,n]=t.type.split(\"bytes\"),r=Jr(e);if(!n){let o=e;return r%32!==0&&(o=Nb(o,{dir:\"right\",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:qi([Nb(Pe(r,{size:32})),o])}}if(r!==Number.parseInt(n,10))throw new _G({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:Nb(e,{dir:\"right\"})}}function Gbt(e){if(typeof e!=\"boolean\")throw new Oe(`Invalid boolean value: \"${e}\" (type: ${typeof e}). Expected: \\\\`true\\\\` or \\\\`false\\\\`.`);return{dynamic:!1,encoded:Nb(l5(e))}}function qbt(e,{signed:t,size:n=256}){if(typeof n==\"number\"){let r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new A8({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:Pe(e,{size:32,signed:t})}}function Kbt(e){let t=Ul(e),n=Math.ceil(Jr(t)/32),r=[];for(let o=0;o<n;o++)r.push(Nb(Od(t,o*32,(o+1)*32),{dir:\"right\"}));return{dynamic:!0,encoded:qi([Nb(Pe(Jr(t),{size:32})),...r])}}function Ybt(e,{param:t}){let n=!1,r=[];for(let o=0;o<t.components.length;o++){let i=t.components[o],a=Array.isArray(e)?o:i.name,c=cce({param:i,value:e[a]});r.push(c),c.dynamic&&(n=!0)}return{dynamic:n,encoded:n?uce(r):qi(r.map(({encoded:o})=>o))}}function VG(e){let t=e.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}var Lg=$(()=>{f();oc();Ub();Jn();v9();zh();Nu();r_();e0();Yv();An();WG()});function Pu(e,t){let n=typeof t==\"string\"?Si(t):t,r=R8(n);if(Jr(n)===0&&e.length>0)throw new Bg;if(Jr(t)&&Jr(t)<32)throw new Y8({data:typeof t==\"string\"?t:Bo(t),params:e,size:Jr(t)});let o=0,i=[];for(let a=0;a<e.length;++a){let c=e[a];r.setPosition(o);let[l,d]=sk(r,c,{staticPosition:0});o+=d,i.push(l)}return i}function sk(e,t,{staticPosition:n}){let r=VG(t.type);if(r){let[o,i]=r;return Qbt(e,{...t,type:i},{length:o,staticPosition:n})}if(t.type===\"tuple\")return e1t(e,t,{staticPosition:n});if(t.type===\"address\")return Zbt(e);if(t.type===\"bool\")return Jbt(e);if(t.type.startsWith(\"bytes\"))return Xbt(e,t,{staticPosition:n});if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\"))return $bt(e,t);if(t.type===\"string\")return t1t(e,{staticPosition:n});throw new OG(t.type,{docsPath:\"/docs/contract/decodeAbiParameters\"})}function Zbt(e){let t=e.readBytes(32);return[qv(Bo(gG(t,-20))),32]}function Qbt(e,t,{length:n,staticPosition:r}){if(!n){let a=Jv(e.readBytes(lce)),c=r+a,l=c+R5e;e.setPosition(c);let d=Jv(e.readBytes(R5e)),m=iB(t),h=0,g=[];for(let y=0;y<d;++y){e.setPosition(l+(m?y*32:h));let[w,x]=sk(e,t,{staticPosition:l});h+=x,g.push(w)}return e.setPosition(r+32),[g,32]}if(iB(t)){let a=Jv(e.readBytes(lce)),c=r+a,l=[];for(let d=0;d<n;++d){e.setPosition(c+d*32);let[m]=sk(e,t,{staticPosition:c});l.push(m)}return e.setPosition(r+32),[l,32]}let o=0,i=[];for(let a=0;a<n;++a){let[c,l]=sk(e,t,{staticPosition:r+o});o+=l,i.push(c)}return[i,o]}function Jbt(e){return[S5e(e.readBytes(32),{size:32}),32]}function Xbt(e,t,{staticPosition:n}){let[r,o]=t.type.split(\"bytes\");if(!o){let a=Jv(e.readBytes(32));e.setPosition(n+a);let c=Jv(e.readBytes(32));if(c===0)return e.setPosition(n+32),[\"0x\",32];let l=e.readBytes(c);return e.setPosition(n+32),[Bo(l),32]}return[Bo(e.readBytes(Number.parseInt(o,10),32)),32]}function $bt(e,t){let n=t.type.startsWith(\"int\"),r=Number.parseInt(t.type.split(\"int\")[1]||\"256\",10),o=e.readBytes(32);return[r>48?A5e(o,{signed:n}):Jv(o,{signed:n}),32]}function e1t(e,t,{staticPosition:n}){let r=t.components.length===0||t.components.some(({name:a})=>!a),o=r?[]:{},i=0;if(iB(t)){let a=Jv(e.readBytes(lce)),c=n+a;for(let l=0;l<t.components.length;++l){let d=t.components[l];e.setPosition(c+i);let[m,h]=sk(e,d,{staticPosition:c});i+=h,o[r?l:d?.name]=m}return e.setPosition(n+32),[o,32]}for(let a=0;a<t.components.length;++a){let c=t.components[a],[l,d]=sk(e,c,{staticPosition:n});o[r?a:c?.name]=l,i+=d}return[o,i]}function t1t(e,{staticPosition:t}){let n=Jv(e.readBytes(32)),r=t+n;e.setPosition(r);let o=Jv(e.readBytes(32));if(o===0)return e.setPosition(t+32),[\"\",32];let i=e.readBytes(o,32),a=_5e(na(i));return e.setPosition(t+32),[a,32]}function iB(e){let{type:t}=e;if(t===\"string\"||t===\"bytes\"||t.endsWith(\"[]\"))return!0;if(t===\"tuple\")return e.components?.some(iB);let n=VG(e.type);return!!(n&&iB({...e,type:n[1]}))}var R5e,lce,T5=$(()=>{f();oc();Kv();HV();e0();Yv();n_();T5e();Ou();An();Lg();R5e=32,lce=32});function ck(e){let{abi:t,data:n}=e,r=Od(n,0,4);if(r===\"0x\")throw new Bg;let i=[...t||[],wG,L6e].find(a=>a.type===\"error\"&&r===Qv(pl(a)));if(!i)throw new Q8(r,{docsPath:\"/docs/contract/decodeErrorResult\"});return{abiItem:i,args:\"inputs\"in i&&i.inputs&&i.inputs.length>0?Pu(i.inputs,Od(n,4)):void 0,errorName:i.name}}var GG=$(()=>{f();xG();oc();Yv();ik();T5();j2()});var oo,Nd=$(()=>{f();oo=(e,t,n)=>JSON.stringify(e,(r,o)=>{let i=typeof o==\"bigint\"?o.toString():o;return typeof t==\"function\"?t(r,i):i},n)});function dce({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if(\"name\"in e&&\"inputs\"in e&&e.inputs)return`${n?e.name:\"\"}(${e.inputs.map((o,i)=>`${r&&o.name?`${o.name}: `:\"\"}${typeof t[i]==\"object\"?oo(t[i]):t[i]}`).join(\", \")})`}var I5e=$(()=>{f();Nd()});var f_,aB=$(()=>{f();sce();f_=zG});function Wh(e){let{abi:t,args:n=[],name:r}=e,o=ro(r,{strict:!1}),i=t.filter(c=>o?c.type===\"function\"?Qv(c)===r:c.type===\"event\"?f_(c)===r:!1:\"name\"in c&&c.name===r);if(i.length===0)return;if(i.length===1)return i[0];let a;for(let c of i){if(!(\"inputs\"in c))continue;if(!n||n.length===0){if(!c.inputs||c.inputs.length===0)return c;continue}if(!c.inputs||c.inputs.length===0||c.inputs.length!==n.length)continue;if(n.every((d,m)=>{let h=\"inputs\"in c&&c.inputs[m];return h?fce(d,h):!1})){if(a&&\"inputs\"in a&&a.inputs){let d=k5e(c.inputs,a.inputs,n);if(d)throw new IG({abiItem:c,type:d[0]},{abiItem:a,type:d[1]})}a=c}}return a||i[0]}function fce(e,t){let n=typeof e,r=t.type;switch(r){case\"address\":return Hn(e,{strict:!1});case\"bool\":return n===\"boolean\";case\"function\":return n===\"string\";case\"string\":return n===\"string\";default:return r===\"tuple\"&&\"components\"in t?Object.values(t.components).every((o,i)=>fce(Object.values(e)[i],o)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n===\"number\"||n===\"bigint\":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n===\"string\"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\\\\[[0-9]{0,}\\\\])+$/.test(r)?Array.isArray(e)&&e.every(o=>fce(o,{...t,type:r.replace(/(\\\\[[0-9]{0,}\\\\])$/,\"\")})):!1}}function k5e(e,t,n){for(let r in e){let o=e[r],i=t[r];if(o.type===\"tuple\"&&i.type===\"tuple\"&&\"components\"in o&&\"components\"in i)return k5e(o.components,i.components,n[r]);let a=[o.type,i.type];if(a.includes(\"address\")&&a.includes(\"bytes20\")?!0:a.includes(\"address\")&&a.includes(\"string\")?Hn(n[r],{strict:!1}):a.includes(\"address\")&&a.includes(\"bytes\")?Hn(n[r],{strict:!1}):!1)return a}}var p_=$(()=>{f();oc();Cg();zh();aB();ik()});function O5e(e){return e.reduce((t,{slot:n,value:r})=>`${t}        ${n}: ${r}\\n`,\"\")}function N5e(e){return e.reduce((t,{address:n,...r})=>{let o=`${t}    ${n}:\\n`;return r.nonce&&(o+=`      nonce: ${r.nonce}\\n`),r.balance&&(o+=`      balance: ${r.balance}\\n`),r.code&&(o+=`      code: ${r.code}\\n`),r.state&&(o+=`      state:\\n`,o+=O5e(r.state)),r.stateDiff&&(o+=`      stateDiff:\\n`,o+=O5e(r.stateDiff)),o},`  State Override:\\n`).slice(0,-1)}var qG,KG,pce=$(()=>{f();Jn();qG=class extends Oe{constructor({address:t}){super(`State for account \"${t}\" is set multiple times.`,{name:\"AccountStateConflictError\"})}},KG=class extends Oe{constructor(){super(\"state and stateDiff are set on the same account.\",{name:\"StateAssignmentConflictError\"})}}});var P5e,C5,YG=$(()=>{f();P5e=e=>e,C5=e=>e});var R5,Wb,Xv,I5,sB,Vb,$v=$(()=>{f();La();xG();GG();j2();I5e();p_();VV();p5();oc();Jn();pce();Fh();YG();R5=class extends Oe{constructor(t,{account:n,docsPath:r,chain:o,data:i,gas:a,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:m,to:h,value:g,stateOverride:y}){let w=n?Bn(n):void 0,x=B2({from:w?.address,to:h,value:typeof g<\"u\"&&`${I8(g)} ${o?.nativeCurrency?.symbol||\"ETH\"}`,data:i,gas:a,gasPrice:typeof c<\"u\"&&`${rc(c)} gwei`,maxFeePerGas:typeof l<\"u\"&&`${rc(l)} gwei`,maxPriorityFeePerGas:typeof d<\"u\"&&`${rc(d)} gwei`,nonce:m});y&&(x+=`\\n${N5e(y)}`),super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Raw Call Arguments:\",x].filter(Boolean),name:\"CallExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}},Wb=class extends Oe{constructor(t,{abi:n,args:r,contractAddress:o,docsPath:i,functionName:a,sender:c}){let l=Wh({abi:n,args:r,name:a}),d=l?dce({abiItem:l,args:r,includeFunctionName:!1,includeName:!1}):void 0,m=l?pl(l,{includeName:!0}):void 0,h=B2({address:o&&P5e(o),function:m,args:d&&d!==\"()\"&&`${[...Array(a?.length??0).keys()].map(()=>\" \").join(\"\")}${d}`,sender:c});super(t.shortMessage||`An unknown error occurred while executing the contract function \"${a}\".`,{cause:t,docsPath:i,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],h&&\"Contract Call:\",h].filter(Boolean),name:\"ContractFunctionExecutionError\"}),Object.defineProperty(this,\"abi\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"args\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"contractAddress\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"formattedArgs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"functionName\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"sender\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=n,this.args=r,this.cause=t,this.contractAddress=o,this.functionName=a,this.sender=c}},Xv=class extends Oe{constructor({abi:t,data:n,functionName:r,message:o}){let i,a,c,l;if(n&&n!==\"0x\")try{a=ck({abi:t,data:n});let{abiItem:m,errorName:h,args:g}=a;if(h===\"Error\")l=g[0];else if(h===\"Panic\"){let[y]=g;l=B6e[y]}else{let y=m?pl(m,{includeName:!0}):void 0,w=m&&g?dce({abiItem:m,args:g,includeFunctionName:!1,includeName:!1}):void 0;c=[y?`Error: ${y}`:\"\",w&&w!==\"()\"?`       ${[...Array(h?.length??0).keys()].map(()=>\" \").join(\"\")}${w}`:\"\"]}}catch(m){i=m}else o&&(l=o);let d;i instanceof Q8&&(d=i.signature,c=[`Unable to decode signature \"${d}\" as it was not found on the provided ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${d}.`]),super(l&&l!==\"execution reverted\"||d?[`The contract function \"${r}\" reverted with the following ${d?\"signature\":\"reason\"}:`,l||d].join(`\\n`):`The contract function \"${r}\" reverted.`,{cause:i,metaMessages:c,name:\"ContractFunctionRevertedError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"raw\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"reason\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"signature\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=a,this.raw=n,this.reason=l,this.signature=d}},I5=class extends Oe{constructor({functionName:t}){super(`The contract function \"${t}\" returned no data (\"0x\").`,{metaMessages:[\"This could be due to any of the following:\",`  - The contract does not have the function \"${t}\",`,\"  - The parameters passed to the contract function may be invalid, or\",\"  - The address is not a contract.\"],name:\"ContractFunctionZeroDataError\"})}},sB=class extends Oe{constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory \"${t}\".`:\"\"}`,{metaMessages:[\"Please ensure:\",\"- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).\",\"- The `factoryData` is a valid encoded function call for contract deployment function on the factory.\"],name:\"CounterfactualDeploymentFailedError\"})}},Vb=class extends Oe{constructor({data:t,message:n}){super(n||\"\",{name:\"RawContractError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}});var Ug,h_,cB,k5=$(()=>{f();Nd();Jn();YG();Ug=class extends Oe{constructor({body:t,cause:n,details:r,headers:o,status:i,url:a}){super(\"HTTP request failed.\",{cause:n,details:r,metaMessages:[i&&`Status: ${i}`,`URL: ${C5(a)}`,t&&`Request body: ${oo(t)}`].filter(Boolean),name:\"HttpRequestError\"}),Object.defineProperty(this,\"body\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"headers\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"status\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"url\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=o,this.status=i,this.url=a}},h_=class extends Oe{constructor({body:t,error:n,url:r}){super(\"RPC Request failed.\",{cause:n,details:n.message,metaMessages:[`URL: ${C5(r)}`,`Request body: ${oo(t)}`],name:\"RpcRequestError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code,this.data=n.data}},cB=class extends Oe{constructor({body:t,url:n}){super(\"The request took too long to respond.\",{details:\"The request timed out.\",metaMessages:[`URL: ${C5(n)}`,`Request body: ${oo(t)}`],name:\"TimeoutError\"})}}});var n1t,Pd,xf,O5,N5,P5,M5,ew,Gb,D5,Vh,B5,G2,m_,L5,yo,U5,F5,H5,z5,Is,q2,j5,W5,V5,G5,q5,K2,uB,K5=$(()=>{f();Jn();k5();n1t=-1,Pd=class extends Oe{constructor(t,{code:n,docsPath:r,metaMessages:o,name:i,shortMessage:a}){super(a,{cause:t,docsPath:r,metaMessages:o||t?.metaMessages,name:i||\"RpcError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=i||t.name,this.code=t instanceof h_?t.code:n??n1t}},xf=class extends Pd{constructor(t,n){super(t,n),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}},O5=class e extends Pd{constructor(t){super(t,{code:e.code,name:\"ParseRpcError\",shortMessage:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"})}};Object.defineProperty(O5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700});N5=class e extends Pd{constructor(t){super(t,{code:e.code,name:\"InvalidRequestRpcError\",shortMessage:\"JSON is not a valid request object.\"})}};Object.defineProperty(N5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});P5=class e extends Pd{constructor(t,{method:n}={}){super(t,{code:e.code,name:\"MethodNotFoundRpcError\",shortMessage:`The method${n?` \"${n}\"`:\"\"} does not exist / is not available.`})}};Object.defineProperty(P5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});M5=class e extends Pd{constructor(t){super(t,{code:e.code,name:\"InvalidParamsRpcError\",shortMessage:[\"Invalid parameters were provided to the RPC method.\",\"Double check you have provided the correct parameters.\"].join(`\\n`)})}};Object.defineProperty(M5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});ew=class e extends Pd{constructor(t){super(t,{code:e.code,name:\"InternalRpcError\",shortMessage:\"An internal error was received.\"})}};Object.defineProperty(ew,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603});Gb=class e extends Pd{constructor(t){super(t,{code:e.code,name:\"InvalidInputRpcError\",shortMessage:[\"Missing or invalid parameters.\",\"Double check you have provided the correct parameters.\"].join(`\\n`)})}};Object.defineProperty(Gb,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});D5=class e extends Pd{constructor(t){super(t,{code:e.code,name:\"ResourceNotFoundRpcError\",shortMessage:\"Requested resource not found.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ResourceNotFoundRpcError\"})}};Object.defineProperty(D5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});Vh=class e extends Pd{constructor(t){super(t,{code:e.code,name:\"ResourceUnavailableRpcError\",shortMessage:\"Requested resource not available.\"})}};Object.defineProperty(Vh,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});B5=class e extends Pd{constructor(t){super(t,{code:e.code,name:\"TransactionRejectedRpcError\",shortMessage:\"Transaction creation failed.\"})}};Object.defineProperty(B5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});G2=class e extends Pd{constructor(t,{method:n}={}){super(t,{code:e.code,name:\"MethodNotSupportedRpcError\",shortMessage:`Method${n?` \"${n}\"`:\"\"} is not supported.`})}};Object.defineProperty(G2,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004});m_=class e extends Pd{constructor(t){super(t,{code:e.code,name:\"LimitExceededRpcError\",shortMessage:\"Request exceeds defined limit.\"})}};Object.defineProperty(m_,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005});L5=class e extends Pd{constructor(t){super(t,{code:e.code,name:\"JsonRpcVersionUnsupportedError\",shortMessage:\"Version of JSON-RPC protocol is not supported.\"})}};Object.defineProperty(L5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006});yo=class e extends xf{constructor(t){super(t,{code:e.code,name:\"UserRejectedRequestError\",shortMessage:\"User rejected the request.\"})}};Object.defineProperty(yo,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001});U5=class e extends xf{constructor(t){super(t,{code:e.code,name:\"UnauthorizedProviderError\",shortMessage:\"The requested method and/or account has not been authorized by the user.\"})}};Object.defineProperty(U5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100});F5=class e extends xf{constructor(t,{method:n}={}){super(t,{code:e.code,name:\"UnsupportedProviderMethodError\",shortMessage:`The Provider does not support the requested method${n?` \" ${n}\"`:\"\"}.`})}};Object.defineProperty(F5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200});H5=class e extends xf{constructor(t){super(t,{code:e.code,name:\"ProviderDisconnectedError\",shortMessage:\"The Provider is disconnected from all chains.\"})}};Object.defineProperty(H5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900});z5=class e extends xf{constructor(t){super(t,{code:e.code,name:\"ChainDisconnectedError\",shortMessage:\"The Provider is not connected to the requested chain.\"})}};Object.defineProperty(z5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901});Is=class e extends xf{constructor(t){super(t,{code:e.code,name:\"SwitchChainError\",shortMessage:\"An error occurred when attempting to switch chain.\"})}};Object.defineProperty(Is,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4902});q2=class e extends xf{constructor(t){super(t,{code:e.code,name:\"UnsupportedNonOptionalCapabilityError\",shortMessage:\"This Wallet does not support a capability that was not marked as optional.\"})}};Object.defineProperty(q2,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5700});j5=class e extends xf{constructor(t){super(t,{code:e.code,name:\"UnsupportedChainIdError\",shortMessage:\"This Wallet does not support the requested chain ID.\"})}};Object.defineProperty(j5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5710});W5=class e extends xf{constructor(t){super(t,{code:e.code,name:\"DuplicateIdError\",shortMessage:\"There is already a bundle submitted with this ID.\"})}};Object.defineProperty(W5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5720});V5=class e extends xf{constructor(t){super(t,{code:e.code,name:\"UnknownBundleIdError\",shortMessage:\"This bundle id is unknown / has not been submitted\"})}};Object.defineProperty(V5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5730});G5=class e extends xf{constructor(t){super(t,{code:e.code,name:\"BundleTooLargeError\",shortMessage:\"The call bundle is too large for the Wallet to process.\"})}};Object.defineProperty(G5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5740});q5=class e extends xf{constructor(t){super(t,{code:e.code,name:\"AtomicReadyWalletRejectedUpgradeError\",shortMessage:\"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade.\"})}};Object.defineProperty(q5,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5750});K2=class e extends xf{constructor(t){super(t,{code:e.code,name:\"AtomicityNotSupportedError\",shortMessage:\"The wallet does not support atomic execution but the request requires it.\"})}};Object.defineProperty(K2,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5760});uB=class extends Pd{constructor(t){super(t,{name:\"UnknownRpcError\",shortMessage:\"An unknown RPC error occurred.\"})}}});function g_(e,t){let n=(e.details||\"\").toLowerCase(),r=e instanceof Oe?e.walk(o=>o?.code===H2.code):e;return r instanceof Oe?new H2({cause:e,message:r.details}):H2.nodeMessage.test(n)?new H2({cause:e,message:e.details}):kg.nodeMessage.test(n)?new kg({cause:e,maxFeePerGas:t?.maxFeePerGas}):F8.nodeMessage.test(n)?new F8({cause:e,maxFeePerGas:t?.maxFeePerGas}):H8.nodeMessage.test(n)?new H8({cause:e,nonce:t?.nonce}):z8.nodeMessage.test(n)?new z8({cause:e,nonce:t?.nonce}):j8.nodeMessage.test(n)?new j8({cause:e,nonce:t?.nonce}):W8.nodeMessage.test(n)?new W8({cause:e}):V8.nodeMessage.test(n)?new V8({cause:e,gas:t?.gas}):G8.nodeMessage.test(n)?new G8({cause:e,gas:t?.gas}):q8.nodeMessage.test(n)?new q8({cause:e}):Gv.nodeMessage.test(n)?new Gv({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new Og({cause:e})}var lB=$(()=>{f();Jn();l_()});function ZG(e,{docsPath:t,...n}){let r=(()=>{let o=g_(e,n);return o instanceof Og?e:o})();return new R5(r,{docsPath:t,...n})}var hce=$(()=>{f();$v();l_();lB()});function tw(e,{format:t}){if(!t)return{};let n={};function r(i){let a=Object.keys(i);for(let c of a)c in e&&(n[c]=e[c]),i[c]&&typeof i[c]==\"object\"&&!Array.isArray(i[c])&&r(i[c])}let o=t(e||{});return r(o),n}var uk=$(()=>{f()});function Ef(e){let{account:t,gasPrice:n,maxFeePerGas:r,maxPriorityFeePerGas:o,to:i}=e,a=t?Bn(t):void 0;if(a&&!Hn(a.address))throw new ra({address:a.address});if(i&&!Hn(i))throw new ra({address:i});if(typeof n<\"u\"&&(typeof r<\"u\"||typeof o<\"u\"))throw new GV;if(r&&r>T8)throw new kg({maxFeePerGas:r});if(o&&r&&o>r)throw new Gv({maxFeePerGas:r,maxPriorityFeePerGas:o})}var Y2=$(()=>{f();La();Mse();Ub();l_();Fh();zh()});var ia,M5e=$(()=>{f();Tg();ia=ya({id:1,name:\"Ethereum\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},blockTime:12e3,rpcUrls:{default:{http:[\"https://eth.merkle.io\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://etherscan.io\",apiUrl:\"https://api.etherscan.io/api\"}},contracts:{ensUniversalResolver:{address:\"0xeeeeeeee14d718c2b47d9923deab1335e144eeee\",blockCreated:23085558},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:14353601}}})});var dB,fB,D5e=$(()=>{f();B9();Tg();dB=1,fB=ya({...Ng,id:10,name:\"OP Mainnet\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://mainnet.optimism.io\"]}},blockExplorers:{default:{name:\"Optimism Explorer\",url:\"https://optimistic.etherscan.io\",apiUrl:\"https://api-optimistic.etherscan.io/api\"}},contracts:{...Ng.contracts,disputeGameFactory:{[dB]:{address:\"0xe5965Ab5962eDc7477C8520243A95517CD252fA9\"}},l2OutputOracle:{[dB]:{address:\"0xdfe97868233d1aa22e815a266982f2cf17685a27\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:4286263},portal:{[dB]:{address:\"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed\"}},l1StandardBridge:{[dB]:{address:\"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1\"}}},sourceId:dB})});var pB,mce,B5e=$(()=>{f();B9();Tg();pB=11155111,mce=ya({...Ng,id:11155420,name:\"OP Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://sepolia.optimism.io\"]}},blockExplorers:{default:{name:\"Blockscout\",url:\"https://optimism-sepolia.blockscout.com\",apiUrl:\"https://optimism-sepolia.blockscout.com/api\"}},contracts:{...Ng.contracts,disputeGameFactory:{[pB]:{address:\"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1\"}},l2OutputOracle:{[pB]:{address:\"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:1620204},portal:{[pB]:{address:\"0x16Fc5058F25648194471939df75CF27A2fdC48BC\"}},l1StandardBridge:{[pB]:{address:\"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1\"}}},testnet:!0,sourceId:pB})});var gce,L5e=$(()=>{f();Tg();gce=ya({id:137,name:\"Polygon\",blockTime:2e3,nativeCurrency:{name:\"POL\",symbol:\"POL\",decimals:18},rpcUrls:{default:{http:[\"https://polygon-rpc.com\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://polygonscan.com\",apiUrl:\"https://api.polygonscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:25770160}}})});var yce,U5e=$(()=>{f();Tg();yce=ya({id:80001,name:\"Polygon Mumbai\",nativeCurrency:{name:\"MATIC\",symbol:\"MATIC\",decimals:18},rpcUrls:{default:{http:[\"https://80001.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"PolygonScan\",url:\"https://mumbai.polygonscan.com\",apiUrl:\"https://api-testnet.polygonscan.com/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:25770160}},testnet:!0})});var hB,F5e=$(()=>{f();Tg();hB=ya({id:11155111,name:\"Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://11155111.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://sepolia.etherscan.io\",apiUrl:\"https://api-sepolia.etherscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:751532},ensUniversalResolver:{address:\"0xeeeeeeee14d718c2b47d9923deab1335e144eeee\",blockCreated:8928790}},testnet:!0})});var va=$(()=>{f();N6e();P6e();M6e();D6e();M5e();D5e();B5e();L5e();U5e();F5e()});var H5e=me(QG=>{\"use strict\";f();(function(){function e(H){if(H==null)return null;if(typeof H==\"function\")return H.$$typeof===Z?null:H.displayName||H.name||null;if(typeof H==\"string\")return H;switch(H){case I:return\"Fragment\";case M:return\"Profiler\";case C:return\"StrictMode\";case J:return\"Suspense\";case ne:return\"SuspenseList\";case te:return\"Activity\"}if(typeof H==\"object\")switch(typeof H.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),H.$$typeof){case x:return\"Portal\";case z:return H.displayName||\"Context\";case B:return(H._context.displayName||\"Context\")+\".Consumer\";case G:var k=H.render;return H=H.displayName,H||(H=k.displayName||k.name||\"\",H=H!==\"\"?\"ForwardRef(\"+H+\")\":\"ForwardRef\"),H;case ie:return k=H.displayName||null,k!==null?k:e(H.type)||\"Memo\";case ae:k=H._payload,H=H._init;try{return e(H(k))}catch{}}return null}function t(H){return\"\"+H}function n(H){try{t(H);var k=!1}catch{k=!0}if(k){k=console;var V=k.error,oe=typeof Symbol==\"function\"&&Symbol.toStringTag&&H[Symbol.toStringTag]||H.constructor.name||\"Object\";return V.call(k,\"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",oe),t(H)}}function r(H){if(H===I)return\"<>\";if(typeof H==\"object\"&&H!==null&&H.$$typeof===ae)return\"<...>\";try{var k=e(H);return k?\"<\"+k+\">\":\"<...>\"}catch{return\"<...>\"}}function o(){var H=X.A;return H===null?null:H.getOwner()}function i(){return Error(\"react-stack-top-frame\")}function a(H){if(F.call(H,\"key\")){var k=Object.getOwnPropertyDescriptor(H,\"key\").get;if(k&&k.isReactWarning)return!1}return H.key!==void 0}function c(H,k){function V(){U||(U=!0,console.error(\"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",k))}V.isReactWarning=!0,Object.defineProperty(H,\"key\",{get:V,configurable:!0})}function l(){var H=e(this.type);return P[H]||(P[H]=!0,console.error(\"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\")),H=this.props.ref,H!==void 0?H:null}function d(H,k,V,oe,se,ue){var he=V.ref;return H={$$typeof:w,type:H,key:k,props:V,_owner:oe},(he!==void 0?he:null)!==null?Object.defineProperty(H,\"ref\",{enumerable:!1,get:l}):Object.defineProperty(H,\"ref\",{enumerable:!1,value:null}),H._store={},Object.defineProperty(H._store,\"validated\",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(H,\"_debugInfo\",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(H,\"_debugStack\",{configurable:!1,enumerable:!1,writable:!0,value:se}),Object.defineProperty(H,\"_debugTask\",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.freeze&&(Object.freeze(H.props),Object.freeze(H)),H}function m(H,k,V,oe,se,ue){var he=k.children;if(he!==void 0)if(oe)if(R(he)){for(oe=0;oe<he.length;oe++)h(he[oe]);Object.freeze&&Object.freeze(he)}else console.error(\"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\");else h(he);if(F.call(k,\"key\")){he=e(H);var be=Object.keys(k).filter(function(Ie){return Ie!==\"key\"});oe=0<be.length?\"{key: someKey, \"+be.join(\": ..., \")+\": ...}\":\"{key: someKey}\",q[he+oe]||(be=0<be.length?\"{\"+be.join(\": ..., \")+\": ...}\":\"{}\",console.error(`A props object containing a \"key\" prop is being spread into JSX:\\n  let props = %s;\\n  <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n  let props = %s;\\n  <%s key={someKey} {...props} />`,oe,he,be,he),q[he+oe]=!0)}if(he=null,V!==void 0&&(n(V),he=\"\"+V),a(k)&&(n(k.key),he=\"\"+k.key),\"key\"in k){V={};for(var we in k)we!==\"key\"&&(V[we]=k[we])}else V=k;return he&&c(V,typeof H==\"function\"?H.displayName||H.name||\"Unknown\":H),d(H,he,V,o(),se,ue)}function h(H){g(H)?H._store&&(H._store.validated=1):typeof H==\"object\"&&H!==null&&H.$$typeof===ae&&(H._payload.status===\"fulfilled\"?g(H._payload.value)&&H._payload.value._store&&(H._payload.value._store.validated=1):H._store&&(H._store.validated=1))}function g(H){return typeof H==\"object\"&&H!==null&&H.$$typeof===w}var y=at(),w=Symbol.for(\"react.transitional.element\"),x=Symbol.for(\"react.portal\"),I=Symbol.for(\"react.fragment\"),C=Symbol.for(\"react.strict_mode\"),M=Symbol.for(\"react.profiler\"),B=Symbol.for(\"react.consumer\"),z=Symbol.for(\"react.context\"),G=Symbol.for(\"react.forward_ref\"),J=Symbol.for(\"react.suspense\"),ne=Symbol.for(\"react.suspense_list\"),ie=Symbol.for(\"react.memo\"),ae=Symbol.for(\"react.lazy\"),te=Symbol.for(\"react.activity\"),Z=Symbol.for(\"react.client.reference\"),X=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,R=Array.isArray,O=console.createTask?console.createTask:function(){return null};y={react_stack_bottom_frame:function(H){return H()}};var U,P={},L=y.react_stack_bottom_frame.bind(y,i)(),W=O(r(i)),q={};QG.Fragment=I,QG.jsx=function(H,k,V){var oe=1e4>X.recentlyCreatedOwnerStacks++;return m(H,k,V,!1,oe?Error(\"react-stack-top-frame\"):L,oe?O(r(H)):W)},QG.jsxs=function(H,k,V){var oe=1e4>X.recentlyCreatedOwnerStacks++;return m(H,k,V,!0,oe?Error(\"react-stack-top-frame\"):L,oe?O(r(H)):W)}})()});var We=me((Ndn,z5e)=>{\"use strict\";f();z5e.exports=H5e()});var R_,sq,R3e,cq,I3e,Hce,zce,jce,CB,rE,oE=$(()=>{f();R_=[{inputs:[{components:[{name:\"target\",type:\"address\"},{name:\"allowFailure\",type:\"bool\"},{name:\"callData\",type:\"bytes\"}],name:\"calls\",type:\"tuple[]\"}],name:\"aggregate3\",outputs:[{components:[{name:\"success\",type:\"bool\"},{name:\"returnData\",type:\"bytes\"}],name:\"returnData\",type:\"tuple[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"getCurrentBlockTimestamp\",outputs:[{internalType:\"uint256\",name:\"timestamp\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"}],sq=[{name:\"query\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"tuple[]\",name:\"queries\",components:[{type:\"address\",name:\"sender\"},{type:\"string[]\",name:\"urls\"},{type:\"bytes\",name:\"data\"}]}],outputs:[{type:\"bool[]\",name:\"failures\"},{type:\"bytes[]\",name:\"responses\"}]},{name:\"HttpError\",type:\"error\",inputs:[{type:\"uint16\",name:\"status\"},{type:\"string\",name:\"message\"}]}],R3e=[{inputs:[{name:\"dns\",type:\"bytes\"}],name:\"DNSDecodingFailed\",type:\"error\"},{inputs:[{name:\"ens\",type:\"string\"}],name:\"DNSEncodingFailed\",type:\"error\"},{inputs:[],name:\"EmptyAddress\",type:\"error\"},{inputs:[{name:\"status\",type:\"uint16\"},{name:\"message\",type:\"string\"}],name:\"HttpError\",type:\"error\"},{inputs:[],name:\"InvalidBatchGatewayResponse\",type:\"error\"},{inputs:[{name:\"errorData\",type:\"bytes\"}],name:\"ResolverError\",type:\"error\"},{inputs:[{name:\"name\",type:\"bytes\"},{name:\"resolver\",type:\"address\"}],name:\"ResolverNotContract\",type:\"error\"},{inputs:[{name:\"name\",type:\"bytes\"}],name:\"ResolverNotFound\",type:\"error\"},{inputs:[{name:\"primary\",type:\"string\"},{name:\"primaryAddress\",type:\"bytes\"}],name:\"ReverseAddressMismatch\",type:\"error\"},{inputs:[{internalType:\"bytes4\",name:\"selector\",type:\"bytes4\"}],name:\"UnsupportedResolverProfile\",type:\"error\"}],cq=[...R3e,{name:\"resolveWithGateways\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes\"},{name:\"data\",type:\"bytes\"},{name:\"gateways\",type:\"string[]\"}],outputs:[{name:\"\",type:\"bytes\"},{name:\"address\",type:\"address\"}]}],I3e=[...R3e,{name:\"reverseWithGateways\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes\",name:\"reverseName\"},{type:\"uint256\",name:\"coinType\"},{type:\"string[]\",name:\"gateways\"}],outputs:[{type:\"string\",name:\"resolvedName\"},{type:\"address\",name:\"resolver\"},{type:\"address\",name:\"reverseResolver\"}]}],Hce=[{name:\"text\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"},{name:\"key\",type:\"string\"}],outputs:[{name:\"\",type:\"string\"}]}],zce=[{name:\"addr\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"}],outputs:[{name:\"\",type:\"address\"}]},{name:\"addr\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"},{name:\"coinType\",type:\"uint256\"}],outputs:[{name:\"\",type:\"bytes\"}]}],jce=[{name:\"isValidSignature\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"hash\",type:\"bytes32\"},{name:\"signature\",type:\"bytes\"}],outputs:[{name:\"\",type:\"bytes4\"}]}],CB=[{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],outputs:[{type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\",name:\"isValidSig\"}],rE=[{type:\"event\",name:\"Approval\",inputs:[{indexed:!0,name:\"owner\",type:\"address\"},{indexed:!0,name:\"spender\",type:\"address\"},{indexed:!1,name:\"value\",type:\"uint256\"}]},{type:\"event\",name:\"Transfer\",inputs:[{indexed:!0,name:\"from\",type:\"address\"},{indexed:!0,name:\"to\",type:\"address\"},{indexed:!1,name:\"value\",type:\"uint256\"}]},{type:\"function\",name:\"allowance\",stateMutability:\"view\",inputs:[{name:\"owner\",type:\"address\"},{name:\"spender\",type:\"address\"}],outputs:[{type:\"uint256\"}]},{type:\"function\",name:\"approve\",stateMutability:\"nonpayable\",inputs:[{name:\"spender\",type:\"address\"},{name:\"amount\",type:\"uint256\"}],outputs:[{type:\"bool\"}]},{type:\"function\",name:\"balanceOf\",stateMutability:\"view\",inputs:[{name:\"account\",type:\"address\"}],outputs:[{type:\"uint256\"}]},{type:\"function\",name:\"decimals\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint8\"}]},{type:\"function\",name:\"name\",stateMutability:\"view\",inputs:[],outputs:[{type:\"string\"}]},{type:\"function\",name:\"symbol\",stateMutability:\"view\",inputs:[],outputs:[{type:\"string\"}]},{type:\"function\",name:\"totalSupply\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint256\"}]},{type:\"function\",name:\"transfer\",stateMutability:\"nonpayable\",inputs:[{name:\"recipient\",type:\"address\"},{name:\"amount\",type:\"uint256\"}],outputs:[{type:\"bool\"}]},{type:\"function\",name:\"transferFrom\",stateMutability:\"nonpayable\",inputs:[{name:\"sender\",type:\"address\"},{name:\"recipient\",type:\"address\"},{name:\"amount\",type:\"uint256\"}],outputs:[{type:\"bool\"}]}]});function Qh(e){let{abi:t,args:n,functionName:r,data:o}=e,i=t[0];if(r){let c=Wh({abi:t,args:n,name:r});if(!c)throw new Fb(r,{docsPath:Wce});i=c}if(i.type!==\"function\")throw new Fb(void 0,{docsPath:Wce});if(!i.outputs)throw new X8(i.name,{docsPath:Wce});let a=Pu(i.outputs,o);if(a&&a.length>1)return a;if(a&&a.length===1)return a[0]}var Wce,I_=$(()=>{f();oc();T5();p_();Wce=\"/docs/contract/decodeFunctionResult\"});function O3e(e){let{abi:t,args:n,functionName:r}=e,o=t[0];if(r){let i=Wh({abi:t,args:n,name:r});if(!i)throw new Fb(r,{docsPath:k3e});o=i}if(o.type!==\"function\")throw new Fb(void 0,{docsPath:k3e});return{abi:[o],functionName:Qv(pl(o))}}var k3e,N3e=$(()=>{f();oc();ik();j2();p_();k3e=\"/docs/contract/encodeFunctionData\"});function xn(e){let{args:t}=e,{abi:n,functionName:r}=e.abi.length===1&&e.functionName?.startsWith(\"0x\")?e:O3e(e),o=n[0],i=r,a=\"inputs\"in o&&o.inputs?oa(o.inputs,t??[]):void 0;return nc([i,a??\"0x\"])}var zp=$(()=>{f();Nu();Lg();N3e()});function Ck(e){if(!(e instanceof Oe))return!1;let t=e.walk(n=>n instanceof Xv);return t instanceof Xv?t.data?.errorName===\"HttpError\"||t.data?.errorName===\"ResolverError\"||t.data?.errorName===\"ResolverNotContract\"||t.data?.errorName===\"ResolverNotFound\"||t.data?.errorName===\"ReverseAddressMismatch\"||t.data?.errorName===\"UnsupportedResolverProfile\":!1}var uq=$(()=>{f();Jn();$v()});function Zb(e){let{abi:t,data:n}=e,r=Od(n,0,4),o=t.find(i=>i.type===\"function\"&&r===Qv(pl(i)));if(!o)throw new RG(r,{docsPath:\"/docs/contract/decodeFunctionData\"});return{functionName:o.name,args:\"inputs\"in o&&o.inputs&&o.inputs.length>0?Pu(o.inputs,Od(n,4)):void 0}}var Vce=$(()=>{f();oc();Yv();ik();T5();j2()});function qce(e){let{abi:t,errorName:n,args:r}=e,o=t[0];if(n){let l=Wh({abi:t,args:r,name:n});if(!l)throw new z9(n,{docsPath:Gce});o=l}if(o.type!==\"error\")throw new z9(void 0,{docsPath:Gce});let i=pl(o),a=Qv(i),c=\"0x\";if(r&&r.length>0){if(!o.inputs)throw new TG(o.name,{docsPath:Gce});c=oa(o.inputs,r)}return nc([a,c])}var Gce,P3e=$(()=>{f();oc();Nu();ik();Lg();j2();p_();Gce=\"/docs/contract/encodeErrorResult\"});function M3e(e){let{abi:t,functionName:n,result:r}=e,o=t[0];if(n){let a=Wh({abi:t,name:n});if(!a)throw new Fb(n,{docsPath:Kce});o=a}if(o.type!==\"function\")throw new Fb(void 0,{docsPath:Kce});if(!o.outputs)throw new X8(o.name,{docsPath:Kce});let i=(()=>{if(o.outputs.length===0)return[];if(o.outputs.length===1)return[r];if(Array.isArray(r))return r;throw new ek(r)})();return oa(o.outputs,i)}var Kce,D3e=$(()=>{f();oc();Lg();p_();Kce=\"/docs/contract/encodeFunctionResult\"});async function Yce(e){let{data:t,ccipRequest:n}=e,{args:[r]}=Zb({abi:sq,data:t}),o=[],i=[];return await Promise.all(r.map(async(a,c)=>{try{i[c]=a.urls.includes(iE)?await Yce({data:a.data,ccipRequest:n}):await n(a),o[c]=!1}catch(l){o[c]=!0,i[c]=g1t(l)}})),M3e({abi:sq,functionName:\"query\",result:[o,i]})}function g1t(e){return e.name===\"HttpRequestError\"&&e.status?qce({abi:sq,errorName:\"HttpError\",args:[e.status,e.shortMessage]}):qce({abi:[wG],errorName:\"Error\",args:[\"shortMessage\"in e?e.shortMessage:e.message]})}var iE,RB=$(()=>{f();oE();xG();Vce();P3e();D3e();iE=\"x-batch-gateway:true\"});function lq(e){if(e.length!==66||e.indexOf(\"[\")!==0||e.indexOf(\"]\")!==65)return null;let t=`0x${e.slice(1,65)}`;return ro(t)?t:null}var Zce=$(()=>{f();Cg()});function k_(e){let t=new Uint8Array(32).fill(0);if(!e)return Bo(t);let n=e.split(\".\");for(let r=n.length-1;r>=0;r-=1){let o=lq(n[r]),i=o?t0(o):dr(Fl(n[r]),\"bytes\");t=dr(qi([t,i]),\"bytes\")}return Bo(t)}var dq=$(()=>{f();Nu();Ou();An();o0();Zce()});function B3e(e){return`[${e.slice(2)}]`}var L3e=$(()=>{f()});function U3e(e){let t=new Uint8Array(32).fill(0);return e?lq(e)||dr(Fl(e)):Bo(t)}var F3e=$(()=>{f();Ou();An();o0();Zce()});function Rk(e){let t=e.replace(/^\\\\.|\\\\.$/gm,\"\");if(t.length===0)return new Uint8Array(1);let n=new Uint8Array(Fl(t).byteLength+2),r=0,o=t.split(\".\");for(let i=0;i<o.length;i++){let a=Fl(o[i]);a.byteLength>255&&(a=Fl(B3e(U3e(o[i])))),n[r]=a.length,n.set(a,r+1),r+=a.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}var fq=$(()=>{f();Ou();L3e();F3e()});function Ct(e,t,n){let r=e[t.name];if(typeof r==\"function\")return r;let o=e[n];return typeof o==\"function\"?o:i=>t(e,i)}var Yo=$(()=>{f()});function s0(e,{abi:t,address:n,args:r,docsPath:o,functionName:i,sender:a}){let c=e instanceof Vb?e:e instanceof Oe?e.walk(w=>\"data\"in w)||e.walk():{},{code:l,data:d,details:m,message:h,shortMessage:g}=c,y=e instanceof Bg?new I5({functionName:i}):[y1t,ew.code].includes(l)&&(d||m||h||g)?new Xv({abi:t,data:typeof d==\"object\"?d.data:d,functionName:i,message:c instanceof h_?m:g??h}):e;return new Wb(y,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:i,sender:a})}var y1t,c3=$(()=>{f();oc();Jn();$v();k5();K5();y1t=3});function Ik(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===\"Uint8Array\"}function sE(e){if(!Ik(e))throw new Error(\"Uint8Array expected\")}function kk(e,t){if(typeof t!=\"boolean\")throw new Error(e+\" boolean expected, got \"+t)}function IB(e){let t=e.toString(16);return t.length&1?\"0\"+t:t}function j3e(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);return e===\"\"?$ce:BigInt(\"0x\"+e)}function Ok(e){if(sE(e),W3e)return e.toHex();let t=\"\";for(let n=0;n<e.length;n++)t+=b1t[e[n]];return t}function H3e(e){if(e>=aE._0&&e<=aE._9)return e-aE._0;if(e>=aE.A&&e<=aE.F)return e-(aE.A-10);if(e>=aE.a&&e<=aE.f)return e-(aE.a-10)}function kB(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);if(W3e)return Uint8Array.fromHex(e);let t=e.length,n=t/2;if(t%2)throw new Error(\"hex string expected, got unpadded hex of length \"+t);let r=new Uint8Array(n);for(let o=0,i=0;o<n;o++,i+=2){let a=H3e(e.charCodeAt(i)),c=H3e(e.charCodeAt(i+1));if(a===void 0||c===void 0){let l=e[i]+e[i+1];throw new Error(\\'hex string expected, got non-hex character \"\\'+l+\\'\" at index \\'+i)}r[o]=a*16+c}return r}function Jh(e){return j3e(Ok(e))}function eue(e){return sE(e),j3e(Ok(Uint8Array.from(e).reverse()))}function cw(e,t){return kB(e.toString(16).padStart(t*2,\"0\"))}function tue(e,t){return cw(e,t).reverse()}function Mu(e,t,n){let r;if(typeof t==\"string\")try{r=kB(t)}catch(i){throw new Error(e+\" must be hex string or Uint8Array, cause: \"+i)}else if(Ik(t))r=Uint8Array.from(t);else throw new Error(e+\" must be hex string or Uint8Array\");let o=r.length;if(typeof n==\"number\"&&o!==n)throw new Error(e+\" of length \"+n+\" expected, got \"+o);return r}function jp(...e){let t=0;for(let r=0;r<e.length;r++){let o=e[r];sE(o),t+=o.length}let n=new Uint8Array(t);for(let r=0,o=0;r<e.length;r++){let i=e[r];n.set(i,o),o+=i.length}return n}function pq(e){if(typeof e!=\"string\")throw new Error(\"string expected\");return new Uint8Array(new TextEncoder().encode(e))}function u3(e,t,n){return Qce(e)&&Qce(t)&&Qce(n)&&t<=e&&e<n}function cE(e,t,n,r){if(!u3(t,n,r))throw new Error(\"expected valid \"+e+\": \"+n+\" <= n < \"+r+\", got \"+t)}function V3e(e){let t;for(t=0;e>$ce;e>>=Xce,t+=1);return t}function G3e(e,t,n){if(typeof e!=\"number\"||e<2)throw new Error(\"hashLen must be a number\");if(typeof t!=\"number\"||t<2)throw new Error(\"qByteLen must be a number\");if(typeof n!=\"function\")throw new Error(\"hmacFn must be a function\");let r=Jce(e),o=Jce(e),i=0,a=()=>{r.fill(1),o.fill(0),i=0},c=(...h)=>n(o,r,...h),l=(h=Jce(0))=>{o=c(z3e([0]),h),r=c(),h.length!==0&&(o=c(z3e([1]),h),r=c())},d=()=>{if(i++>=1e3)throw new Error(\"drbg: tried 1000 values\");let h=0,g=[];for(;h<t;){r=c();let y=r.slice();g.push(y),h+=r.length}return jp(...g)};return(h,g)=>{a(),l(h);let y;for(;!(y=g(d()));)l();return a(),y}}function uE(e,t,n={}){let r=(o,i,a)=>{let c=v1t[i];if(typeof c!=\"function\")throw new Error(\"invalid validator function\");let l=e[o];if(!(a&&l===void 0)&&!c(l,e))throw new Error(\"param \"+String(o)+\" is invalid. Expected \"+i+\", got \"+l)};for(let[o,i]of Object.entries(t))r(o,i,!1);for(let[o,i]of Object.entries(n))r(o,i,!0);return e}function nue(e){let t=new WeakMap;return(n,...r)=>{let o=t.get(n);if(o!==void 0)return o;let i=e(n,...r);return t.set(n,i),i}}var $ce,Xce,W3e,b1t,aE,Qce,l3,Jce,z3e,v1t,Nk=$(()=>{f();$ce=BigInt(0),Xce=BigInt(1);W3e=typeof Uint8Array.from([]).toHex==\"function\"&&typeof Uint8Array.fromHex==\"function\",b1t=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));aE={_0:48,_9:57,A:65,F:70,a:97,f:102};Qce=e=>typeof e==\"bigint\"&&$ce<=e;l3=e=>(Xce<<BigInt(e))-Xce,Jce=e=>new Uint8Array(e),z3e=e=>Uint8Array.from(e);v1t={bigint:e=>typeof e==\"bigint\",function:e=>typeof e==\"function\",boolean:e=>typeof e==\"boolean\",string:e=>typeof e==\"string\",stringOrUint8Array:e=>typeof e==\"string\"||Ik(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e==\"function\"&&Number.isSafeInteger(e.outputLen)}});var q3e,K3e=$(()=>{f();q3e=\"0.1.1\"});function Y3e(){return q3e}var Z3e=$(()=>{f();K3e()});function Q3e(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause?Q3e(e.cause,t):t?null:e}var Sn,Xh=$(()=>{f();Z3e();Sn=class e extends Error{constructor(t,n={}){let r=(()=>{if(n.cause instanceof e){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&\"details\"in n.cause&&typeof n.cause.details==\"string\"?n.cause.details:n.cause?.message?n.cause.message:n.details})(),o=n.cause instanceof e&&n.cause.docsPath||n.docsPath,a=`https://oxlib.sh${o??\"\"}`,c=[t||\"An error occurred.\",...n.metaMessages?[\"\",...n.metaMessages]:[],...r||o?[\"\",r?`Details: ${r}`:void 0,o?`See: ${a}`:void 0]:[]].filter(l=>typeof l==\"string\").join(`\\n`);super(c,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseError\"}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${Y3e()}`}),this.cause=n.cause,this.details=r,this.docs=a,this.docsPath=o,this.shortMessage=t}walk(t){return Q3e(this,t)}}});function Pk(e,t){if(zg(e)>t)throw new hq({givenSize:zg(e),maxSize:t})}function J3e(e,t){if(typeof t==\"number\"&&t>0&&t>zg(e)-1)throw new OB({offset:t,position:\"start\",size:zg(e)})}function X3e(e,t,n){if(typeof t==\"number\"&&typeof n==\"number\"&&zg(e)!==n-t)throw new OB({offset:n,position:\"end\",size:zg(e)})}function rue(e){if(e>=lE.zero&&e<=lE.nine)return e-lE.zero;if(e>=lE.A&&e<=lE.F)return e-(lE.A-10);if(e>=lE.a&&e<=lE.f)return e-(lE.a-10)}function $3e(e,t={}){let{dir:n,size:r=32}=t;if(r===0)return e;if(e.length>r)throw new mq({size:e.length,targetSize:r,type:\"Bytes\"});let o=new Uint8Array(r);for(let i=0;i<r;i++){let a=n===\"right\";o[a?i:r-i-1]=e[a?i:e.length-i-1]}return o}function oue(e,t={}){let{dir:n=\"left\"}=t,r=e,o=0;for(let i=0;i<r.length-1&&r[n===\"left\"?i:r.length-i-1].toString()===\"0\";i++)o++;return r=n===\"left\"?r.slice(o):r.slice(0,r.length-o),r}var lE,eRe=$(()=>{f();O_();lE={zero:48,nine:57,A:65,F:70,a:97,f:102}});function Mk(e,t){if(ks(e)>t)throw new gq({givenSize:ks(e),maxSize:t})}function tRe(e,t){if(typeof t==\"number\"&&t>0&&t>ks(e)-1)throw new NB({offset:t,position:\"start\",size:ks(e)})}function nRe(e,t,n){if(typeof t==\"number\"&&typeof n==\"number\"&&ks(e)!==n-t)throw new NB({offset:n,position:\"end\",size:ks(e)})}function iue(e,t={}){let{dir:n,size:r=32}=t;if(r===0)return e;let o=e.replace(\"0x\",\"\");if(o.length>r*2)throw new yq({size:Math.ceil(o.length/2),targetSize:r,type:\"Hex\"});return`0x${o[n===\"right\"?\"padEnd\":\"padStart\"](r*2,\"0\")}`}function rRe(e,t={}){let{dir:n=\"left\"}=t,r=e.replace(\"0x\",\"\"),o=0;for(let i=0;i<r.length-1&&r[n===\"left\"?i:r.length-i-1].toString()===\"0\";i++)o++;return r=n===\"left\"?r.slice(o):r.slice(0,r.length-o),r===\"0\"?\"0x\":n===\"right\"&&r.length%2===1?`0x${r}0`:`0x${r}`}var aue=$(()=>{f();Vl()});function N_(e,t,n){return JSON.stringify(e,(r,o)=>typeof t==\"function\"?t(r,o):typeof o==\"bigint\"?o.toString()+x1t:o,n)}var x1t,PB=$(()=>{f();x1t=\"#__bigint\"});function S1t(e){if(!(e instanceof Uint8Array)){if(!e)throw new Dk(e);if(typeof e!=\"object\")throw new Dk(e);if(!(\"BYTES_PER_ELEMENT\"in e))throw new Dk(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!==\"Uint8Array\")throw new Dk(e)}}function iRe(e){return e instanceof Uint8Array?e:typeof e==\"string\"?Bk(e):_1t(e)}function _1t(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Bk(e,t={}){let{size:n}=t,r=e;n&&(Mk(e,n),r=lw(e,n));let o=r.slice(2);o.length%2&&(o=`0${o}`);let i=o.length/2,a=new Uint8Array(i);for(let c=0,l=0;c<i;c++){let d=rue(o.charCodeAt(l++)),m=rue(o.charCodeAt(l++));if(d===void 0||m===void 0)throw new Sn(`Invalid byte sequence (\"${o[l-2]}${o[l-1]}\" in \"${o}\").`);a[c]=d*16+m}return a}function aRe(e,t={}){let{size:n}=t,r=A1t.encode(e);return typeof n==\"number\"?(Pk(r,n),T1t(r,n)):r}function T1t(e,t){return $3e(e,{dir:\"right\",size:t})}function zg(e){return e.length}function sRe(e,t,n,r={}){let{strict:o}=r;J3e(e,t);let i=e.slice(t,n);return o&&X3e(i,t,n),i}function cRe(e,t={}){let{size:n}=t;typeof n<\"u\"&&Pk(e,n);let r=$c(e,t);return uue(r,t)}function uRe(e,t={}){let{size:n}=t,r=e;if(typeof n<\"u\"&&(Pk(r,n),r=cue(r)),r.length>1||r[0]>1)throw new sue(r);return!!r[0]}function uw(e,t={}){let{size:n}=t;typeof n<\"u\"&&Pk(e,n);let r=$c(e,t);return vq(r,t)}function lRe(e,t={}){let{size:n}=t,r=e;return typeof n<\"u\"&&(Pk(r,n),r=C1t(r)),E1t.decode(r)}function cue(e){return oue(e,{dir:\"left\"})}function C1t(e){return oue(e,{dir:\"right\"})}function dRe(e){try{return S1t(e),!0}catch{return!1}}var E1t,A1t,sue,Dk,hq,OB,mq,O_=$(()=>{f();Xh();Vl();eRe();aue();PB();E1t=new TextDecoder,A1t=new TextEncoder;sue=class extends Sn{constructor(t){super(`Bytes value \\\\`${t}\\\\` is not a valid boolean.`,{metaMessages:[\"The bytes array must contain a single byte of either a `0` or `1` value.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.InvalidBytesBooleanError\"})}},Dk=class extends Sn{constructor(t){super(`Value \\\\`${typeof t==\"object\"?N_(t):t}\\\\` of type \\\\`${typeof t}\\\\` is an invalid Bytes value.`,{metaMessages:[\"Bytes values must be of type `Bytes`.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.InvalidBytesTypeError\"})}},hq=class extends Sn{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \\\\`${n}\\\\` bytes. Given size: \\\\`${t}\\\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeOverflowError\"})}},OB=class extends Sn{constructor({offset:t,position:n,size:r}){super(`Slice ${n===\"start\"?\"starting\":\"ending\"} at offset \\\\`${t}\\\\` is out-of-bounds (size: \\\\`${r}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SliceOffsetOutOfBoundsError\"})}},mq=class extends Sn{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\\\\`${t}\\\\`) exceeds padding size (\\\\`${n}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeExceedsPaddingSizeError\"})}}});function k1t(e,t={}){let{strict:n=!1}=t;if(!e)throw new wq(e);if(typeof e!=\"string\")throw new wq(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new xq(e);if(!e.startsWith(\"0x\"))throw new xq(e)}function ic(...e){return`0x${e.reduce((t,n)=>t+n.replace(\"0x\",\"\"),\"\")}`}function Lk(e){return e instanceof Uint8Array?$c(e):Array.isArray(e)?$c(new Uint8Array(e)):e}function Eq(e,t={}){let n=`0x${Number(e)}`;return typeof t.size==\"number\"?(Mk(n,t.size),dE(n,t.size)):n}function $c(e,t={}){let n=\"\";for(let o=0;o<e.length;o++)n+=I1t[e[o]];let r=`0x${n}`;return typeof t.size==\"number\"?(Mk(r,t.size),lw(r,t.size)):r}function mi(e,t={}){let{signed:n,size:r}=t,o=BigInt(e),i;r?n?i=(1n<<BigInt(r)*8n-1n)-1n:i=2n**(BigInt(r)*8n)-1n:typeof e==\"number\"&&(i=BigInt(Number.MAX_SAFE_INTEGER));let a=typeof i==\"bigint\"&&n?-i-1n:0;if(i&&o>i||o<a){let d=typeof e==\"bigint\"?\"n\":\"\";throw new MB({max:i?`${i}${d}`:void 0,min:`${a}${d}`,signed:n,size:r,value:`${e}${d}`})}let l=`0x${(n&&o<0?(1n<<BigInt(r*8))+BigInt(o):o).toString(16)}`;return r?dE(l,r):l}function Uk(e,t={}){return $c(R1t.encode(e),t)}function dE(e,t){return iue(e,{dir:\"left\",size:t})}function lw(e,t){return iue(e,{dir:\"right\",size:t})}function Os(e,t,n,r={}){let{strict:o}=r;tRe(e,t);let i=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(n??e.length)*2)}`;return o&&nRe(i,t,n),i}function ks(e){return Math.ceil((e.length-2)/2)}function lue(e){return rRe(e,{dir:\"left\"})}function uue(e,t={}){let{signed:n}=t;t.size&&Mk(e,t.size);let r=BigInt(e);if(!n)return r;let o=(e.length-2)/2,i=(1n<<BigInt(o)*8n)-1n,a=i>>1n;return r<=a?r:r-i-1n}function vq(e,t={}){let{signed:n,size:r}=t;return Number(!n&&!r?e:uue(e,t))}function DB(e,t={}){let{strict:n=!1}=t;try{return k1t(e,{strict:n}),!0}catch{return!1}}var R1t,I1t,MB,wq,xq,gq,NB,yq,Vl=$(()=>{f();Xh();aue();PB();R1t=new TextEncoder,I1t=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));MB=class extends Sn{constructor({max:t,min:n,signed:r,size:o,value:i}){super(`Number \\\\`${i}\\\\` is not in safe${o?` ${o*8}-bit`:\"\"}${r?\" signed\":\" unsigned\"} integer range ${t?`(\\\\`${n}\\\\` to \\\\`${t}\\\\`)`:`(above \\\\`${n}\\\\`)`}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.IntegerOutOfRangeError\"})}},wq=class extends Sn{constructor(t){super(`Value \\\\`${typeof t==\"object\"?N_(t):t}\\\\` of type \\\\`${typeof t}\\\\` is an invalid hex type.`,{metaMessages:[\\'Hex types must be represented as `\"0x${string}\"`.\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexTypeError\"})}},xq=class extends Sn{constructor(t){super(`Value \\\\`${t}\\\\` is an invalid hex value.`,{metaMessages:[\\'Hex values must start with `\"0x\"` and contain only hexadecimal characters (0-9, a-f, A-F).\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexValueError\"})}},gq=class extends Sn{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \\\\`${n}\\\\` bytes. Given size: \\\\`${t}\\\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeOverflowError\"})}},NB=class extends Sn{constructor({offset:t,position:n,size:r}){super(`Slice ${n===\"start\"?\"starting\":\"ending\"} at offset \\\\`${t}\\\\` is out-of-bounds (size: \\\\`${r}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SliceOffsetOutOfBoundsError\"})}},yq=class extends Sn{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\\\\`${t}\\\\`) exceeds padding size (\\\\`${n}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeExceedsPaddingSizeError\"})}}});function fRe(e){return{address:e.address,amount:mi(e.amount),index:mi(e.index),validatorIndex:mi(e.validatorIndex)}}var pRe=$(()=>{f();Vl()});function Aq(e){return{...typeof e.baseFeePerGas==\"bigint\"&&{baseFeePerGas:mi(e.baseFeePerGas)},...typeof e.blobBaseFee==\"bigint\"&&{blobBaseFee:mi(e.blobBaseFee)},...typeof e.feeRecipient==\"string\"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit==\"bigint\"&&{gasLimit:mi(e.gasLimit)},...typeof e.number==\"bigint\"&&{number:mi(e.number)},...typeof e.prevRandao==\"bigint\"&&{prevRandao:mi(e.prevRandao)},...typeof e.time==\"bigint\"&&{time:mi(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(fRe)}}}var due=$(()=>{f();Vl();pRe()});var mRe,gRe=$(()=>{f();mRe=\"0x82ad56cb\"});var Sq,yRe,bRe,Fk,BB=$(()=>{f();Sq=\"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe\",yRe=\"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe\",bRe=\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\",Fk=\"0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033\"});function f3(e){let{abi:t,args:n,bytecode:r}=e;if(!n||n.length===0)return r;let o=t.find(a=>\"type\"in a&&a.type===\"constructor\");if(!o)throw new AG({docsPath:fue});if(!(\"inputs\"in o))throw new H9({docsPath:fue});if(!o.inputs||o.inputs.length===0)throw new H9({docsPath:fue});let i=oa(o.inputs,n);return nc([r,i])}var fue,_q=$(()=>{f();oc();Nu();Lg();fue=\"/docs/contract/encodeDeployData\"});function Hk(){let e=()=>{},t=()=>{};return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}var Tq=$(()=>{f()});function Cq({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:o}){let i=async()=>{let m=l();a();let h=m.map(({args:g})=>g);h.length!==0&&e(h).then(g=>{o&&Array.isArray(g)&&g.sort(o);for(let y=0;y<m.length;y++){let{resolve:w}=m[y];w?.([g[y],g])}}).catch(g=>{for(let y=0;y<m.length;y++){let{reject:w}=m[y];w?.(g)}})},a=()=>pue.delete(t),c=()=>l().map(({args:m})=>m),l=()=>pue.get(t)||[],d=m=>pue.set(t,[...l(),m]);return{flush:a,async schedule(m){let{promise:h,resolve:g,reject:y}=Hk();return n?.([...c(),m])&&i(),l().length>0?(d({args:m,resolve:g,reject:y}),h):(d({args:m,resolve:g,reject:y}),setTimeout(i,r),h)}}}var pue,hue=$(()=>{f();Tq();pue=new Map});function vRe(e){if(!(!e||e.length===0))return e.reduce((t,{slot:n,value:r})=>{if(n.length!==66)throw new E9({size:n.length,targetSize:66,type:\"hex\"});if(r.length!==66)throw new E9({size:r.length,targetSize:66,type:\"hex\"});return t[n]=r,t},{})}function N1t(e){let{balance:t,nonce:n,state:r,stateDiff:o,code:i}=e,a={};if(i!==void 0&&(a.code=i),t!==void 0&&(a.balance=Pe(t)),n!==void 0&&(a.nonce=Pe(n)),r!==void 0&&(a.state=vRe(r)),o!==void 0){if(a.state)throw new KG;a.stateDiff=vRe(o)}return a}function P_(e){if(!e)return;let t={};for(let{address:n,...r}of e){if(!Hn(n,{strict:!1}))throw new ra({address:n});if(t[n])throw new qG({address:n});t[n]=N1t(r)}return t}var LB=$(()=>{f();Ub();DV();pce();zh();An()});var Rq,Iq,kq,wRe=$(()=>{f();Nd();Jn();YG();Rq=class extends Oe{constructor({callbackSelector:t,cause:n,data:r,extraData:o,sender:i,urls:a}){super(n.shortMessage||\"An error occurred while fetching for an offchain result.\",{cause:n,metaMessages:[...n.metaMessages||[],n.metaMessages?.length?\"\":[],\"Offchain Gateway Call:\",a&&[\"  Gateway URL(s):\",...a.map(c=>`    ${C5(c)}`)],`  Sender: ${i}`,`  Data: ${r}`,`  Callback selector: ${t}`,`  Extra data: ${o}`].flat(),name:\"OffchainLookupError\"})}},Iq=class extends Oe{constructor({result:t,url:n}){super(\"Offchain gateway response is malformed. Response data must be a hex value.\",{metaMessages:[`Gateway URL: ${C5(n)}`,`Response: ${oo(t)}`],name:\"OffchainLookupResponseMalformedError\"})}},kq=class extends Oe{constructor({sender:t,to:n}){super(\"Reverted sender address does not match target contract address (`to`).\",{metaMessages:[`Contract address: ${n}`,`OffchainLookup sender address: ${t}`],name:\"OffchainLookupSenderMismatchError\"})}}});function Dd(e,t){if(!Hn(e,{strict:!1}))throw new ra({address:e});if(!Hn(t,{strict:!1}))throw new ra({address:t});return e.toLowerCase()===t.toLowerCase()}var M_=$(()=>{f();Ub();zh()});var ARe={};as(ARe,{ccipRequest:()=>ERe,offchainLookup:()=>M1t,offchainLookupAbiItem:()=>xRe,offchainLookupSignature:()=>P1t});async function M1t(e,{blockNumber:t,blockTag:n,data:r,to:o}){let{args:i}=ck({data:r,abi:[xRe]}),[a,c,l,d,m]=i,{ccipRead:h}=e,g=h&&typeof h?.request==\"function\"?h.request:ERe;try{if(!Dd(o,a))throw new kq({sender:a,to:o});let y=c.includes(iE)?await Yce({data:l,ccipRequest:g}):await g({data:l,sender:a,urls:c}),{data:w}=await u0(e,{blockNumber:t,blockTag:n,data:qi([d,oa([{type:\"bytes\"},{type:\"bytes\"}],[y,m])]),to:o});return w}catch(y){throw new Rq({callbackSelector:d,cause:y,data:r,extraData:m,sender:a,urls:c})}}async function ERe({data:e,sender:t,urls:n}){let r=new Error(\"An unknown error occurred.\");for(let o=0;o<n.length;o++){let i=n[o],a=i.includes(\"{data}\")?\"GET\":\"POST\",c=a===\"POST\"?{data:e,sender:t}:void 0,l=a===\"POST\"?{\"Content-Type\":\"application/json\"}:{};try{let d=await fetch(i.replace(\"{sender}\",t.toLowerCase()).replace(\"{data}\",e),{body:JSON.stringify(c),headers:l,method:a}),m;if(d.headers.get(\"Content-Type\")?.startsWith(\"application/json\")?m=(await d.json()).data:m=await d.text(),!d.ok){r=new Ug({body:c,details:m?.error?oo(m.error):d.statusText,headers:d.headers,status:d.status,url:i});continue}if(!ro(m)){r=new Iq({result:m,url:i});continue}return m}catch(d){r=new Ug({body:c,details:d.message,url:i})}}throw r}var P1t,xRe,SRe=$(()=>{f();p3();wRe();k5();GG();Lg();M_();Nu();Cg();RB();Nd();P1t=\"0x556f1830\",xRe={name:\"OffchainLookup\",type:\"error\",inputs:[{name:\"sender\",type:\"address\"},{name:\"urls\",type:\"string[]\"},{name:\"callData\",type:\"bytes\"},{name:\"callbackFunction\",type:\"bytes4\"},{name:\"extraData\",type:\"bytes\"}]}});async function u0(e,t){let{account:n=e.account,authorizationList:r,batch:o=!!e.batch?.multicall,blockNumber:i,blockTag:a=e.experimental_blockTag??\"latest\",accessList:c,blobs:l,blockOverrides:d,code:m,data:h,factory:g,factoryData:y,gas:w,gasPrice:x,maxFeePerBlobGas:I,maxFeePerGas:C,maxPriorityFeePerGas:M,nonce:B,to:z,value:G,stateOverride:J,...ne}=t,ie=n?Bn(n):void 0;if(m&&(g||y))throw new Oe(\"Cannot provide both `code` & `factory`/`factoryData` as parameters.\");if(m&&z)throw new Oe(\"Cannot provide both `code` & `to` as parameters.\");let ae=m&&h,te=g&&y&&z&&h,Z=ae||te,X=ae?_Re({code:m,data:h}):te?L1t({data:h,factory:g,factoryData:y,to:z}):h;try{Ef(t);let R=(typeof i==\"bigint\"?Pe(i):void 0)||a,O=d?Aq(d):void 0,U=P_(J),P=e.chain?.formatters?.transactionRequest?.format,W=(P||Uh)({...tw(ne,{format:P}),accessList:c,account:ie,authorizationList:r,blobs:l,data:X,gas:w,gasPrice:x,maxFeePerBlobGas:I,maxFeePerGas:C,maxPriorityFeePerGas:M,nonce:B,to:Z?void 0:z,value:G},\"call\");if(o&&D1t({request:W})&&!U&&!O)try{return await B1t(e,{...W,blockNumber:i,blockTag:a})}catch(k){if(!(k instanceof O9)&&!(k instanceof v5))throw k}let q=(()=>{let k=[W,R];return U&&O?[...k,U,O]:U?[...k,U]:O?[...k,{},O]:k})(),H=await e.request({method:\"eth_call\",params:q});return H===\"0x\"?{data:void 0}:{data:H}}catch(F){let R=U1t(F),{offchainLookup:O,offchainLookupSignature:U}=await Promise.resolve().then(()=>(SRe(),ARe));if(e.ccipRead!==!1&&R?.slice(0,10)===U&&z)return{data:await O(e,{data:R,to:z})};throw Z&&R?.slice(0,10)===\"0x101bb98d\"?new sB({factory:g}):ZG(F,{...t,account:ie,chain:e.chain})}}function D1t({request:e}){let{data:t,to:n,...r}=e;return!(!t||t.startsWith(mRe)||!n||Object.values(r).filter(o=>typeof o<\"u\").length>0)}async function B1t(e,t){let{batchSize:n=1024,deployless:r=!1,wait:o=0}=typeof e.batch?.multicall==\"object\"?e.batch.multicall:{},{blockNumber:i,blockTag:a=e.experimental_blockTag??\"latest\",data:c,to:l}=t,d=(()=>{if(r)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return Pg({blockNumber:i,chain:e.chain,contract:\"multicall3\"});throw new O9})(),h=(typeof i==\"bigint\"?Pe(i):void 0)||a,{schedule:g}=Cq({id:`${e.uid}.${h}`,wait:o,shouldSplitBatch(x){return x.reduce((C,{data:M})=>C+(M.length-2),0)>n*2},fn:async x=>{let I=x.map(B=>({allowFailure:!0,callData:B.data,target:B.to})),C=xn({abi:R_,args:[I],functionName:\"aggregate3\"}),M=await e.request({method:\"eth_call\",params:[{...d===null?{data:_Re({code:Fk,data:C})}:{to:d,data:C}},h]});return Qh({abi:R_,args:[I],functionName:\"aggregate3\",data:M||\"0x\"})}}),[{returnData:y,success:w}]=await g({data:c,to:l});if(!w)throw new Vb({data:y});return y===\"0x\"?{data:void 0}:{data:y}}function _Re(e){let{code:t,data:n}=e;return f3({abi:V2([\"constructor(bytes, bytes)\"]),bytecode:Sq,args:[t,n]})}function L1t(e){let{data:t,factory:n,factoryData:r,to:o}=e;return f3({abi:V2([\"constructor(address, bytes, address, bytes)\"]),bytecode:yRe,args:[o,t,n,r]})}function U1t(e){if(!(e instanceof Oe))return;let t=e.walk();return typeof t?.data==\"object\"?t.data?.data:t.data}var p3=$(()=>{f();_5();due();La();oE();gRe();BB();Jn();N9();$v();I_();_q();zp();A5();An();hce();uk();o_();hue();LB();Y2()});async function _i(e,t){let{abi:n,address:r,args:o,functionName:i,...a}=t,c=xn({abi:n,args:o,functionName:i});try{let{data:l}=await Ct(e,u0,\"call\")({...a,data:c,to:r});return Qh({abi:n,args:o,functionName:i,data:l||\"0x\"})}catch(l){throw s0(l,{abi:n,address:r,args:o,docsPath:\"/docs/contract/readContract\",functionName:i})}}var jg=$(()=>{f();I_();zp();c3();Yo();p3()});async function TRe(e,t){let{blockNumber:n,blockTag:r,coinType:o,name:i,gatewayUrls:a,strict:c}=t,{chain:l}=e,d=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!l)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return Pg({blockNumber:n,chain:l,contract:\"ensUniversalResolver\"})})(),m=l?.ensTlds;if(m&&!m.some(g=>i.endsWith(g)))return null;let h=o!=null?[k_(i),BigInt(o)]:[k_(i)];try{let g=xn({abi:zce,functionName:\"addr\",args:h}),y={address:d,abi:cq,functionName:\"resolveWithGateways\",args:[Xn(Rk(i)),g,a??[iE]],blockNumber:n,blockTag:r},x=await Ct(e,_i,\"readContract\")(y);if(x[0]===\"0x\")return null;let I=Qh({abi:zce,args:h,functionName:\"addr\",data:x[0]});return I===\"0x\"||na(I)===\"0x00\"?null:I}catch(g){if(c)throw g;if(Ck(g))return null;throw g}}var CRe=$(()=>{f();oE();I_();zp();A5();n_();An();uq();RB();dq();fq();Yo();jg()});var Oq,D_,zk,Nq,RRe=$(()=>{f();Jn();Oq=class extends Oe{constructor({data:t}){super(\"Unable to extract image from metadata. The metadata may be malformed or invalid.\",{metaMessages:[\"- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.\",\"\",`Provided data: ${JSON.stringify(t)}`],name:\"EnsAvatarInvalidMetadataError\"})}},D_=class extends Oe{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:\"EnsAvatarInvalidNftUriError\"})}},zk=class extends Oe{constructor({uri:t}){super(`Unable to resolve ENS avatar URI \"${t}\". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:\"EnsAvatarUriResolutionError\"})}},Nq=class extends Oe{constructor({namespace:t}){super(`ENS NFT avatar namespace \"${t}\" is not supported. Must be \"erc721\" or \"erc1155\".`,{name:\"EnsAvatarUnsupportedNamespaceError\"})}}});async function W1t(e){try{let t=await fetch(e,{method:\"HEAD\"});return t.status===200?t.headers.get(\"content-type\")?.startsWith(\"image/\"):!1}catch(t){return typeof t==\"object\"&&typeof t.response<\"u\"||!Object.hasOwn(globalThis,\"Image\")?!1:new Promise(n=>{let r=new Image;r.onload=()=>{n(!0)},r.onerror=()=>{n(!1)},r.src=e})}}function IRe(e,t){return e?e.endsWith(\"/\")?e.slice(0,-1):e:t}function mue({uri:e,gatewayUrls:t}){let n=z1t.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};let r=IRe(t?.ipfs,\"https://ipfs.io\"),o=IRe(t?.arweave,\"https://arweave.net\"),i=e.match(F1t),{protocol:a,subpath:c,target:l,subtarget:d=\"\"}=i?.groups||{},m=a===\"ipns:/\"||c===\"ipns/\",h=a===\"ipfs:/\"||c===\"ipfs/\"||H1t.test(e);if(e.startsWith(\"http\")&&!m&&!h){let y=e;return t?.arweave&&(y=e.replace(/https:\\\\/\\\\/arweave.net/g,t?.arweave)),{uri:y,isOnChain:!1,isEncoded:!1}}if((m||h)&&l)return{uri:`${r}/${m?\"ipns\":\"ipfs\"}/${l}${d}`,isOnChain:!1,isEncoded:!1};if(a===\"ar:/\"&&l)return{uri:`${o}/${l}${d||\"\"}`,isOnChain:!1,isEncoded:!1};let g=e.replace(j1t,\"\");if(g.startsWith(\"<svg\")&&(g=`data:image/svg+xml;base64,${btoa(g)}`),g.startsWith(\"data:\")||g.startsWith(\"{\"))return{uri:g,isOnChain:!0,isEncoded:!1};throw new zk({uri:e})}function gue(e){if(typeof e!=\"object\"||!(\"image\"in e)&&!(\"image_url\"in e)&&!(\"image_data\"in e))throw new Oq({data:e});return e.image||e.image_url||e.image_data}async function kRe({gatewayUrls:e,uri:t}){try{let n=await fetch(t).then(o=>o.json());return await Pq({gatewayUrls:e,uri:gue(n)})}catch{throw new zk({uri:t})}}async function Pq({gatewayUrls:e,uri:t}){let{uri:n,isOnChain:r}=mue({uri:t,gatewayUrls:e});if(r||await W1t(n))return n;throw new zk({uri:t})}function ORe(e){let t=e;t.startsWith(\"did:nft:\")&&(t=t.replace(\"did:nft:\",\"\").replace(/_/g,\"/\"));let[n,r,o]=t.split(\"/\"),[i,a]=n.split(\":\"),[c,l]=r.split(\":\");if(!i||i.toLowerCase()!==\"eip155\")throw new D_({reason:\"Only EIP-155 supported\"});if(!a)throw new D_({reason:\"Chain ID not found\"});if(!l)throw new D_({reason:\"Contract address not found\"});if(!o)throw new D_({reason:\"Token ID not found\"});if(!c)throw new D_({reason:\"ERC namespace not found\"});return{chainID:Number.parseInt(a,10),namespace:c.toLowerCase(),contractAddress:l,tokenID:o}}async function NRe(e,{nft:t}){if(t.namespace===\"erc721\")return _i(e,{address:t.contractAddress,abi:[{name:\"tokenURI\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"tokenId\",type:\"uint256\"}],outputs:[{name:\"\",type:\"string\"}]}],functionName:\"tokenURI\",args:[BigInt(t.tokenID)]});if(t.namespace===\"erc1155\")return _i(e,{address:t.contractAddress,abi:[{name:\"uri\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"_id\",type:\"uint256\"}],outputs:[{name:\"\",type:\"string\"}]}],functionName:\"uri\",args:[BigInt(t.tokenID)]});throw new Nq({namespace:t.namespace})}var F1t,H1t,z1t,j1t,PRe=$(()=>{f();jg();RRe();F1t=/(?<protocol>https?:\\\\/\\\\/[^/]*|ipfs:\\\\/|ipns:\\\\/|ar:\\\\/)?(?<root>\\\\/)?(?<subpath>ipfs\\\\/|ipns\\\\/)?(?<target>[\\\\w\\\\-.]+)(?<subtarget>\\\\/.*)?/,H1t=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\\\\/(?<target>[\\\\w\\\\-.]+))?(?<subtarget>\\\\/.*)?$/,z1t=/^data:([a-zA-Z\\\\-/+]*);base64,([^\"].*)/,j1t=/^data:([a-zA-Z\\\\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/});async function MRe(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?V1t(e,{gatewayUrls:t,record:n}):Pq({uri:n,gatewayUrls:t})}async function V1t(e,{gatewayUrls:t,record:n}){let r=ORe(n),o=await NRe(e,{nft:r}),{uri:i,isOnChain:a,isEncoded:c}=mue({uri:o,gatewayUrls:t});if(a&&(i.includes(\"data:application/json;base64,\")||i.startsWith(\"{\"))){let d=c?atob(i.replace(\"data:application/json;base64,\",\"\")):i,m=JSON.parse(d);return Pq({uri:gue(m),gatewayUrls:t})}let l=r.tokenID;return r.namespace===\"erc1155\"&&(l=l.replace(\"0x\",\"\").padStart(64,\"0\")),kRe({gatewayUrls:t,uri:i.replace(/(?:0x)?{id}/,l)})}var DRe=$(()=>{f();PRe()});async function Mq(e,t){let{blockNumber:n,blockTag:r,key:o,name:i,gatewayUrls:a,strict:c}=t,{chain:l}=e,d=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!l)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return Pg({blockNumber:n,chain:l,contract:\"ensUniversalResolver\"})})(),m=l?.ensTlds;if(m&&!m.some(h=>i.endsWith(h)))return null;try{let h={address:d,abi:cq,args:[Xn(Rk(i)),xn({abi:Hce,functionName:\"text\",args:[k_(i),o]}),a??[iE]],functionName:\"resolveWithGateways\",blockNumber:n,blockTag:r},y=await Ct(e,_i,\"readContract\")(h);if(y[0]===\"0x\")return null;let w=Qh({abi:Hce,functionName:\"text\",data:y[0]});return w===\"\"?null:w}catch(h){if(c)throw h;if(Ck(h))return null;throw h}}var yue=$(()=>{f();oE();I_();zp();A5();An();uq();RB();dq();fq();Yo();jg()});async function BRe(e,{blockNumber:t,blockTag:n,assetGatewayUrls:r,name:o,gatewayUrls:i,strict:a,universalResolverAddress:c}){let l=await Ct(e,Mq,\"getEnsText\")({blockNumber:t,blockTag:n,key:\"avatar\",name:o,universalResolverAddress:c,gatewayUrls:i,strict:a});if(!l)return null;try{return await MRe(e,{record:l,gatewayUrls:r})}catch{return null}}var LRe=$(()=>{f();DRe();Yo();yue()});async function URe(e,t){let{address:n,blockNumber:r,blockTag:o,coinType:i=60n,gatewayUrls:a,strict:c}=t,{chain:l}=e,d=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!l)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return Pg({blockNumber:r,chain:l,contract:\"ensUniversalResolver\"})})();try{let m={address:d,abi:I3e,args:[n,i,a??[iE]],functionName:\"reverseWithGateways\",blockNumber:r,blockTag:o},h=Ct(e,_i,\"readContract\"),[g]=await h(m);return g||null}catch(m){if(c)throw m;if(Ck(m))return null;throw m}}var FRe=$(()=>{f();oE();A5();uq();RB();Yo();jg()});async function HRe(e,t){let{blockNumber:n,blockTag:r,name:o}=t,{chain:i}=e,a=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!i)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return Pg({blockNumber:n,chain:i,contract:\"ensUniversalResolver\"})})(),c=i?.ensTlds;if(c&&!c.some(d=>o.endsWith(d)))throw new Error(`${o} is not a valid ENS TLD (${c?.join(\", \")}) for chain \"${i.name}\" (id: ${i.id}).`);let[l]=await Ct(e,_i,\"readContract\")({address:a,abi:[{inputs:[{type:\"bytes\"}],name:\"findResolver\",outputs:[{type:\"address\"},{type:\"bytes32\"},{type:\"uint256\"}],stateMutability:\"view\",type:\"function\"}],functionName:\"findResolver\",args:[Xn(Rk(o))],blockNumber:n,blockTag:r});return l}var zRe=$(()=>{f();A5();An();fq();Yo();jg()});async function Dq(e,t){let{account:n=e.account,blockNumber:r,blockTag:o=\"latest\",blobs:i,data:a,gas:c,gasPrice:l,maxFeePerBlobGas:d,maxFeePerGas:m,maxPriorityFeePerGas:h,to:g,value:y,...w}=t,x=n?Bn(n):void 0;try{Ef(t);let C=(typeof r==\"bigint\"?Pe(r):void 0)||o,M=e.chain?.formatters?.transactionRequest?.format,z=(M||Uh)({...tw(w,{format:M}),account:x,blobs:i,data:a,gas:c,gasPrice:l,maxFeePerBlobGas:d,maxFeePerGas:m,maxPriorityFeePerGas:h,to:g,value:y},\"createAccessList\"),G=await e.request({method:\"eth_createAccessList\",params:[z,C]});return{accessList:G.accessList,gasUsed:BigInt(G.gasUsed)}}catch(I){throw ZG(I,{...t,account:x,chain:e.chain})}}var bue=$(()=>{f();La();An();hce();uk();o_();Y2()});function B_(e,{method:t}){let n={};return e.transport.type===\"fallback\"&&e.transport.onResponse?.(({method:r,response:o,status:i,transport:a})=>{i===\"success\"&&t===r&&(n[o]=a.request)}),(r=>n[r]||e.request)}var UB=$(()=>{f()});async function jRe(e){let t=B_(e,{method:\"eth_newBlockFilter\"}),n=await e.request({method:\"eth_newBlockFilter\"});return{id:n,request:t(n),type:\"block\"}}var WRe=$(()=>{f();UB()});var Bq,VRe=$(()=>{f();Jn();Bq=class extends Oe{constructor(t){super(`Filter type \"${t}\" is not supported.`,{name:\"FilterTypeNotSupportedError\"})}}});function dw(e){let{abi:t,eventName:n,args:r}=e,o=t[0];if(n){let l=Wh({abi:t,name:n});if(!l)throw new j9(n,{docsPath:GRe});o=l}if(o.type!==\"event\")throw new j9(void 0,{docsPath:GRe});let i=pl(o),a=f_(i),c=[];if(r&&\"inputs\"in o){let l=o.inputs?.filter(m=>\"indexed\"in m&&m.indexed),d=Array.isArray(r)?r:Object.values(r).length>0?l?.map(m=>r[m.name])??[]:[];d.length>0&&(c=l?.map((m,h)=>Array.isArray(d[h])?d[h].map((g,y)=>qRe({param:m,value:d[h][y]})):typeof d[h]<\"u\"&&d[h]!==null?qRe({param:m,value:d[h]}):null)??[])}return[a,...c]}function qRe({param:e,value:t}){if(e.type===\"string\"||e.type===\"bytes\")return dr(t0(t));if(e.type===\"tuple\"||e.type.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/))throw new Bq(e.type);return oa([e],[t])}var GRe,jk=$(()=>{f();oc();VRe();Ou();o0();aB();Lg();j2();p_();GRe=\"/docs/contract/encodeEventTopics\"});async function Lq(e,t){let{address:n,abi:r,args:o,eventName:i,fromBlock:a,strict:c,toBlock:l}=t,d=B_(e,{method:\"eth_newFilter\"}),m=i?dw({abi:r,args:o,eventName:i}):void 0,h=await e.request({method:\"eth_newFilter\",params:[{address:n,fromBlock:typeof a==\"bigint\"?Pe(a):a,toBlock:typeof l==\"bigint\"?Pe(l):l,topics:m}]});return{abi:r,args:o,eventName:i,id:h,request:d(h),strict:!!c,type:\"event\"}}var vue=$(()=>{f();jk();An();UB()});async function Uq(e,{address:t,args:n,event:r,events:o,fromBlock:i,strict:a,toBlock:c}={}){let l=o??(r?[r]:void 0),d=B_(e,{method:\"eth_newFilter\"}),m=[];l&&(m=[l.flatMap(y=>dw({abi:[y],eventName:y.name,args:n}))],r&&(m=m[0]));let h=await e.request({method:\"eth_newFilter\",params:[{address:t,fromBlock:typeof i==\"bigint\"?Pe(i):i,toBlock:typeof c==\"bigint\"?Pe(c):c,...m.length?{topics:m}:{}}]});return{abi:l,args:n,eventName:r?r.name:void 0,fromBlock:i,id:h,request:d(h),strict:!!a,toBlock:c,type:\"event\"}}var wue=$(()=>{f();jk();An();UB()});async function Fq(e){let t=B_(e,{method:\"eth_newPendingTransactionFilter\"}),n=await e.request({method:\"eth_newPendingTransactionFilter\"});return{id:n,request:t(n),type:\"transaction\"}}var xue=$(()=>{f();UB()});function KRe(e){let t=dr(`0x${e.substring(4)}`).substring(26);return qv(`0x${t}`)}var YRe=$(()=>{f();Kv();o0()});var Hq,FB,Eue=$(()=>{f();Ig();Hq=class extends i_{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,$V(t);let r=m5(n);if(this.iHash=t.create(),typeof this.iHash.update!=\"function\")throw new Error(\"Expected instance of class which extends utils.Hash\");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let o=this.blockLen,i=new Uint8Array(o);i.set(r.length>o?t.create().update(r).digest():r);for(let a=0;a<i.length;a++)i[a]^=54;this.iHash.update(i),this.oHash=t.create();for(let a=0;a<i.length;a++)i[a]^=106;this.oHash.update(i),Rg(i)}update(t){return U2(this),this.iHash.update(t),this}digestInto(t){U2(this),zl(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){let t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));let{oHash:n,iHash:r,finished:o,destroyed:i,blockLen:a,outputLen:c}=this;return t=t,t.finished=o,t.destroyed=i,t.blockLen=a,t.outputLen=c,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},FB=(e,t,n)=>new Hq(e,t).update(n).digest();FB.create=(e,t)=>new Hq(e,t)});function eu(e,t){let n=e%t;return n>=Wp?n:t+n}function l0(e,t,n){let r=e;for(;t-- >Wp;)r*=r,r%=n;return r}function zq(e,t){if(e===Wp)throw new Error(\"invert: expected non-zero number\");if(t<=Wp)throw new Error(\"invert: expected positive modulus, got \"+t);let n=eu(e,t),r=t,o=Wp,i=Af,a=Af,c=Wp;for(;n!==Wp;){let d=r/n,m=r%n,h=o-a*d,g=i-c*d;r=n,n=m,o=a,i=c,a=h,c=g}if(r!==Af)throw new Error(\"invert: does not exist\");return eu(o,t)}function $Re(e,t){let n=(e.ORDER+Af)/QRe,r=e.pow(t,n);if(!e.eql(e.sqr(r),t))throw new Error(\"Cannot find square root\");return r}function q1t(e,t){let n=(e.ORDER-JRe)/XRe,r=e.mul(t,h3),o=e.pow(r,n),i=e.mul(t,o),a=e.mul(e.mul(i,h3),o),c=e.mul(i,e.sub(a,e.ONE));if(!e.eql(e.sqr(c),t))throw new Error(\"Cannot find square root\");return c}function K1t(e){if(e<BigInt(3))throw new Error(\"sqrt is not defined for small field\");let t=e-Af,n=0;for(;t%h3===Wp;)t/=h3,n++;let r=h3,o=HB(e);for(;ZRe(o,r)===1;)if(r++>1e3)throw new Error(\"Cannot find square root: probably non-prime P\");if(n===1)return $Re;let i=o.pow(r,t),a=(t+Af)/h3;return function(l,d){if(l.is0(d))return d;if(ZRe(l,d)!==1)throw new Error(\"Cannot find square root\");let m=n,h=l.mul(l.ONE,i),g=l.pow(d,t),y=l.pow(d,a);for(;!l.eql(g,l.ONE);){if(l.is0(g))return l.ZERO;let w=1,x=l.sqr(g);for(;!l.eql(x,l.ONE);)if(w++,x=l.sqr(x),w===m)throw new Error(\"Cannot find square root\");let I=Af<<BigInt(m-w-1),C=l.pow(h,I);m=w,h=l.sqr(C),g=l.mul(g,h),y=l.mul(y,C)}return y}}function Y1t(e){return e%QRe===G1t?$Re:e%XRe===JRe?q1t:K1t(e)}function jq(e){let t={ORDER:\"bigint\",MASK:\"bigint\",BYTES:\"isSafeInteger\",BITS:\"isSafeInteger\"},n=Z1t.reduce((r,o)=>(r[o]=\"function\",r),t);return uE(e,n)}function Q1t(e,t,n){if(n<Wp)throw new Error(\"invalid exponent, negatives unsupported\");if(n===Wp)return e.ONE;if(n===Af)return t;let r=e.ONE,o=t;for(;n>Wp;)n&Af&&(r=e.mul(r,o)),o=e.sqr(o),n>>=Af;return r}function Wk(e,t,n=!1){let r=new Array(t.length).fill(n?e.ZERO:void 0),o=t.reduce((a,c,l)=>e.is0(c)?a:(r[l]=a,e.mul(a,c)),e.ONE),i=e.inv(o);return t.reduceRight((a,c,l)=>e.is0(c)?a:(r[l]=e.mul(a,r[l]),e.mul(a,c)),i),r}function ZRe(e,t){let n=(e.ORDER-Af)/h3,r=e.pow(t,n),o=e.eql(r,e.ONE),i=e.eql(r,e.ZERO),a=e.eql(r,e.neg(e.ONE));if(!o&&!i&&!a)throw new Error(\"invalid Legendre symbol result\");return o?1:i?0:-1}function Aue(e,t){t!==void 0&&Mb(t);let n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function HB(e,t,n=!1,r={}){if(e<=Wp)throw new Error(\"invalid field: expected ORDER > 0, got \"+e);let{nBitLength:o,nByteLength:i}=Aue(e,t);if(i>2048)throw new Error(\"invalid field: expected ORDER of <= 2048 bytes\");let a,c=Object.freeze({ORDER:e,isLE:n,BITS:o,BYTES:i,MASK:l3(o),ZERO:Wp,ONE:Af,create:l=>eu(l,e),isValid:l=>{if(typeof l!=\"bigint\")throw new Error(\"invalid field element: expected bigint, got \"+typeof l);return Wp<=l&&l<e},is0:l=>l===Wp,isOdd:l=>(l&Af)===Af,neg:l=>eu(-l,e),eql:(l,d)=>l===d,sqr:l=>eu(l*l,e),add:(l,d)=>eu(l+d,e),sub:(l,d)=>eu(l-d,e),mul:(l,d)=>eu(l*d,e),pow:(l,d)=>Q1t(c,l,d),div:(l,d)=>eu(l*zq(d,e),e),sqrN:l=>l*l,addN:(l,d)=>l+d,subN:(l,d)=>l-d,mulN:(l,d)=>l*d,inv:l=>zq(l,e),sqrt:r.sqrt||(l=>(a||(a=Y1t(e)),a(c,l))),toBytes:l=>n?tue(l,i):cw(l,i),fromBytes:l=>{if(l.length!==i)throw new Error(\"Field.fromBytes: expected \"+i+\" bytes, got \"+l.length);return n?eue(l):Jh(l)},invertBatch:l=>Wk(c,l),cmov:(l,d,m)=>m?d:l});return Object.freeze(c)}function eIe(e){if(typeof e!=\"bigint\")throw new Error(\"field order must be bigint\");let t=e.toString(2).length;return Math.ceil(t/8)}function Sue(e){let t=eIe(e);return t+Math.ceil(t/2)}function tIe(e,t,n=!1){let r=e.length,o=eIe(t),i=Sue(t);if(r<16||r<i||r>1024)throw new Error(\"expected \"+i+\"-1024 bytes of input, got \"+r);let a=n?eue(e):Jh(e),c=eu(a,t-Af)+Af;return n?tue(c,o):cw(c,o)}var Wp,Af,h3,G1t,QRe,JRe,XRe,Z1t,zB=$(()=>{f();Ig();Nk();Wp=BigInt(0),Af=BigInt(1),h3=BigInt(2),G1t=BigInt(3),QRe=BigInt(4),JRe=BigInt(5),XRe=BigInt(8);Z1t=[\"create\",\"isValid\",\"is0\",\"neg\",\"inv\",\"sqrt\",\"sqr\",\"eql\",\"add\",\"sub\",\"mul\",\"pow\",\"div\",\"addN\",\"subN\",\"mulN\",\"sqrN\"]});function _ue(e,t){let n=t.negate();return e?n:t}function oIe(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error(\"invalid window size, expected [1..\"+t+\"], got W=\"+e)}function Tue(e,t){oIe(e,t);let n=Math.ceil(t/e)+1,r=2**(e-1),o=2**e,i=l3(e),a=BigInt(e);return{windows:n,windowSize:r,mask:i,maxNumber:o,shiftBy:a}}function rIe(e,t,n){let{windowSize:r,mask:o,maxNumber:i,shiftBy:a}=n,c=Number(e&o),l=e>>a;c>r&&(c-=i,l+=Iue);let d=t*r,m=d+Math.abs(c)-1,h=c===0,g=c<0,y=t%2!==0;return{nextN:l,offset:m,isZero:h,isNeg:g,isNegF:y,offsetF:d}}function J1t(e,t){if(!Array.isArray(e))throw new Error(\"array expected\");e.forEach((n,r)=>{if(!(n instanceof t))throw new Error(\"invalid point at index \"+r)})}function X1t(e,t){if(!Array.isArray(e))throw new Error(\"array of scalars expected\");e.forEach((n,r)=>{if(!t.isValid(n))throw new Error(\"invalid scalar at index \"+r)})}function Rue(e){return iIe.get(e)||1}function aIe(e,t){return{constTimeNegate:_ue,hasPrecomputes(n){return Rue(n)!==1},unsafeLadder(n,r,o=e.ZERO){let i=n;for(;r>nIe;)r&Iue&&(o=o.add(i)),i=i.double(),r>>=Iue;return o},precomputeWindow(n,r){let{windows:o,windowSize:i}=Tue(r,t),a=[],c=n,l=c;for(let d=0;d<o;d++){l=c,a.push(l);for(let m=1;m<i;m++)l=l.add(c),a.push(l);c=l.double()}return a},wNAF(n,r,o){let i=e.ZERO,a=e.BASE,c=Tue(n,t);for(let l=0;l<c.windows;l++){let{nextN:d,offset:m,isZero:h,isNeg:g,isNegF:y,offsetF:w}=rIe(o,l,c);o=d,h?a=a.add(_ue(y,r[w])):i=i.add(_ue(g,r[m]))}return{p:i,f:a}},wNAFUnsafe(n,r,o,i=e.ZERO){let a=Tue(n,t);for(let c=0;c<a.windows&&o!==nIe;c++){let{nextN:l,offset:d,isZero:m,isNeg:h}=rIe(o,c,a);if(o=l,!m){let g=r[d];i=i.add(h?g.negate():g)}}return i},getPrecomputes(n,r,o){let i=Cue.get(r);return i||(i=this.precomputeWindow(r,n),n!==1&&Cue.set(r,o(i))),i},wNAFCached(n,r,o){let i=Rue(n);return this.wNAF(i,this.getPrecomputes(i,n,o),r)},wNAFCachedUnsafe(n,r,o,i){let a=Rue(n);return a===1?this.unsafeLadder(n,r,i):this.wNAFUnsafe(a,this.getPrecomputes(a,n,o),r,i)},setWindowSize(n,r){oIe(r,t),iIe.set(n,r),Cue.delete(n)}}}function sIe(e,t,n,r){J1t(n,e),X1t(r,t);let o=n.length,i=r.length;if(o!==i)throw new Error(\"arrays of points and scalars must have equal length\");let a=e.ZERO,c=V3e(BigInt(o)),l=1;c>12?l=c-3:c>4?l=c-2:c>0&&(l=2);let d=l3(l),m=new Array(Number(d)+1).fill(a),h=Math.floor((t.BITS-1)/l)*l,g=a;for(let y=h;y>=0;y-=l){m.fill(a);for(let x=0;x<i;x++){let I=r[x],C=Number(I>>BigInt(y)&d);m[C]=m[C].add(n[x])}let w=a;for(let x=m.length-1,I=a;x>0;x--)I=I.add(m[x]),w=w.add(I);if(g=g.add(w),y!==0)for(let x=0;x<l;x++)g=g.double()}return g}function kue(e){return jq(e.Fp),uE(e,{n:\"bigint\",h:\"bigint\",Gx:\"field\",Gy:\"field\"},{nBitLength:\"isSafeInteger\",nByteLength:\"isSafeInteger\"}),Object.freeze({...Aue(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}var nIe,Iue,Cue,iIe,cIe=$(()=>{f();zB();Nk();nIe=BigInt(0),Iue=BigInt(1);Cue=new WeakMap,iIe=new WeakMap});function uIe(e){e.lowS!==void 0&&kk(\"lowS\",e.lowS),e.prehash!==void 0&&kk(\"prehash\",e.prehash)}function $1t(e){let t=kue(e);uE(t,{a:\"field\",b:\"field\"},{allowInfinityPoint:\"boolean\",allowedPrivateKeyLengths:\"array\",clearCofactor:\"function\",fromBytes:\"function\",isTorsionFree:\"function\",toBytes:\"function\",wrapPrivateKey:\"boolean\"});let{endo:n,Fp:r,a:o}=t;if(n){if(!r.eql(o,r.ZERO))throw new Error(\"invalid endo: CURVE.a must be 0\");if(typeof n!=\"object\"||typeof n.beta!=\"bigint\"||typeof n.splitScalar!=\"function\")throw new Error(\\'invalid endo: expected \"beta\": bigint and \"splitScalar\": function\\')}return Object.freeze({...t})}function Oue(e,t){return Ok(cw(e,t))}function evt(e){let t=$1t(e),{Fp:n}=t,r=HB(t.n,t.nBitLength),o=t.toBytes||((B,z,G)=>{let J=z.toAffine();return jp(Uint8Array.from([4]),n.toBytes(J.x),n.toBytes(J.y))}),i=t.fromBytes||(B=>{let z=B.subarray(1),G=n.fromBytes(z.subarray(0,n.BYTES)),J=n.fromBytes(z.subarray(n.BYTES,2*n.BYTES));return{x:G,y:J}});function a(B){let{a:z,b:G}=t,J=n.sqr(B),ne=n.mul(J,B);return n.add(n.add(ne,n.mul(B,z)),G)}function c(B,z){let G=n.sqr(z),J=a(B);return n.eql(G,J)}if(!c(t.Gx,t.Gy))throw new Error(\"bad curve params: generator point\");let l=n.mul(n.pow(t.a,jB),Pue),d=n.mul(n.sqr(t.b),BigInt(27));if(n.is0(n.add(l,d)))throw new Error(\"bad curve params: a or b\");function m(B){return u3(B,aa,t.n)}function h(B){let{allowedPrivateKeyLengths:z,nByteLength:G,wrapPrivateKey:J,n:ne}=t;if(z&&typeof B!=\"bigint\"){if(Ik(B)&&(B=Ok(B)),typeof B!=\"string\"||!z.includes(B.length))throw new Error(\"invalid private key\");B=B.padStart(G*2,\"0\")}let ie;try{ie=typeof B==\"bigint\"?B:Jh(Mu(\"private key\",B,G))}catch{throw new Error(\"invalid private key, expected hex or \"+G+\" bytes, got \"+typeof B)}return J&&(ie=eu(ie,ne)),cE(\"private key\",ie,aa,ne),ie}function g(B){if(!(B instanceof x))throw new Error(\"ProjectivePoint expected\")}let y=nue((B,z)=>{let{px:G,py:J,pz:ne}=B;if(n.eql(ne,n.ONE))return{x:G,y:J};let ie=B.is0();z==null&&(z=ie?n.ONE:n.inv(ne));let ae=n.mul(G,z),te=n.mul(J,z),Z=n.mul(ne,z);if(ie)return{x:n.ZERO,y:n.ZERO};if(!n.eql(Z,n.ONE))throw new Error(\"invZ was invalid\");return{x:ae,y:te}}),w=nue(B=>{if(B.is0()){if(t.allowInfinityPoint&&!n.is0(B.py))return;throw new Error(\"bad point: ZERO\")}let{x:z,y:G}=B.toAffine();if(!n.isValid(z)||!n.isValid(G))throw new Error(\"bad point: x or y not FE\");if(!c(z,G))throw new Error(\"bad point: equation left != right\");if(!B.isTorsionFree())throw new Error(\"bad point: not in prime-order subgroup\");return!0});class x{constructor(z,G,J){if(z==null||!n.isValid(z))throw new Error(\"x required\");if(G==null||!n.isValid(G)||n.is0(G))throw new Error(\"y required\");if(J==null||!n.isValid(J))throw new Error(\"z required\");this.px=z,this.py=G,this.pz=J,Object.freeze(this)}static fromAffine(z){let{x:G,y:J}=z||{};if(!z||!n.isValid(G)||!n.isValid(J))throw new Error(\"invalid affine point\");if(z instanceof x)throw new Error(\"projective point not allowed\");let ne=ie=>n.eql(ie,n.ZERO);return ne(G)&&ne(J)?x.ZERO:new x(G,J,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(z){let G=Wk(n,z.map(J=>J.pz));return z.map((J,ne)=>J.toAffine(G[ne])).map(x.fromAffine)}static fromHex(z){let G=x.fromAffine(i(Mu(\"pointHex\",z)));return G.assertValidity(),G}static fromPrivateKey(z){return x.BASE.multiply(h(z))}static msm(z,G){return sIe(x,r,z,G)}_setWindowSize(z){M.setWindowSize(this,z)}assertValidity(){w(this)}hasEvenY(){let{y:z}=this.toAffine();if(n.isOdd)return!n.isOdd(z);throw new Error(\"Field doesn\\'t support isOdd\")}equals(z){g(z);let{px:G,py:J,pz:ne}=this,{px:ie,py:ae,pz:te}=z,Z=n.eql(n.mul(G,te),n.mul(ie,ne)),X=n.eql(n.mul(J,te),n.mul(ae,ne));return Z&&X}negate(){return new x(this.px,n.neg(this.py),this.pz)}double(){let{a:z,b:G}=t,J=n.mul(G,jB),{px:ne,py:ie,pz:ae}=this,te=n.ZERO,Z=n.ZERO,X=n.ZERO,F=n.mul(ne,ne),R=n.mul(ie,ie),O=n.mul(ae,ae),U=n.mul(ne,ie);return U=n.add(U,U),X=n.mul(ne,ae),X=n.add(X,X),te=n.mul(z,X),Z=n.mul(J,O),Z=n.add(te,Z),te=n.sub(R,Z),Z=n.add(R,Z),Z=n.mul(te,Z),te=n.mul(U,te),X=n.mul(J,X),O=n.mul(z,O),U=n.sub(F,O),U=n.mul(z,U),U=n.add(U,X),X=n.add(F,F),F=n.add(X,F),F=n.add(F,O),F=n.mul(F,U),Z=n.add(Z,F),O=n.mul(ie,ae),O=n.add(O,O),F=n.mul(O,U),te=n.sub(te,F),X=n.mul(O,R),X=n.add(X,X),X=n.add(X,X),new x(te,Z,X)}add(z){g(z);let{px:G,py:J,pz:ne}=this,{px:ie,py:ae,pz:te}=z,Z=n.ZERO,X=n.ZERO,F=n.ZERO,R=t.a,O=n.mul(t.b,jB),U=n.mul(G,ie),P=n.mul(J,ae),L=n.mul(ne,te),W=n.add(G,J),q=n.add(ie,ae);W=n.mul(W,q),q=n.add(U,P),W=n.sub(W,q),q=n.add(G,ne);let H=n.add(ie,te);return q=n.mul(q,H),H=n.add(U,L),q=n.sub(q,H),H=n.add(J,ne),Z=n.add(ae,te),H=n.mul(H,Z),Z=n.add(P,L),H=n.sub(H,Z),F=n.mul(R,q),Z=n.mul(O,L),F=n.add(Z,F),Z=n.sub(P,F),F=n.add(P,F),X=n.mul(Z,F),P=n.add(U,U),P=n.add(P,U),L=n.mul(R,L),q=n.mul(O,q),P=n.add(P,L),L=n.sub(U,L),L=n.mul(R,L),q=n.add(q,L),U=n.mul(P,q),X=n.add(X,U),U=n.mul(H,q),Z=n.mul(W,Z),Z=n.sub(Z,U),U=n.mul(W,P),F=n.mul(H,F),F=n.add(F,U),new x(Z,X,F)}subtract(z){return this.add(z.negate())}is0(){return this.equals(x.ZERO)}wNAF(z){return M.wNAFCached(this,z,x.normalizeZ)}multiplyUnsafe(z){let{endo:G,n:J}=t;cE(\"scalar\",z,Qb,J);let ne=x.ZERO;if(z===Qb)return ne;if(this.is0()||z===aa)return this;if(!G||M.hasPrecomputes(this))return M.wNAFCachedUnsafe(this,z,x.normalizeZ);let{k1neg:ie,k1:ae,k2neg:te,k2:Z}=G.splitScalar(z),X=ne,F=ne,R=this;for(;ae>Qb||Z>Qb;)ae&aa&&(X=X.add(R)),Z&aa&&(F=F.add(R)),R=R.double(),ae>>=aa,Z>>=aa;return ie&&(X=X.negate()),te&&(F=F.negate()),F=new x(n.mul(F.px,G.beta),F.py,F.pz),X.add(F)}multiply(z){let{endo:G,n:J}=t;cE(\"scalar\",z,aa,J);let ne,ie;if(G){let{k1neg:ae,k1:te,k2neg:Z,k2:X}=G.splitScalar(z),{p:F,f:R}=this.wNAF(te),{p:O,f:U}=this.wNAF(X);F=M.constTimeNegate(ae,F),O=M.constTimeNegate(Z,O),O=new x(n.mul(O.px,G.beta),O.py,O.pz),ne=F.add(O),ie=R.add(U)}else{let{p:ae,f:te}=this.wNAF(z);ne=ae,ie=te}return x.normalizeZ([ne,ie])[0]}multiplyAndAddUnsafe(z,G,J){let ne=x.BASE,ie=(te,Z)=>Z===Qb||Z===aa||!te.equals(ne)?te.multiplyUnsafe(Z):te.multiply(Z),ae=ie(this,G).add(ie(z,J));return ae.is0()?void 0:ae}toAffine(z){return y(this,z)}isTorsionFree(){let{h:z,isTorsionFree:G}=t;if(z===aa)return!0;if(G)return G(x,this);throw new Error(\"isTorsionFree() has not been declared for the elliptic curve\")}clearCofactor(){let{h:z,clearCofactor:G}=t;return z===aa?this:G?G(x,this):this.multiplyUnsafe(t.h)}toRawBytes(z=!0){return kk(\"isCompressed\",z),this.assertValidity(),o(x,this,z)}toHex(z=!0){return kk(\"isCompressed\",z),Ok(this.toRawBytes(z))}}x.BASE=new x(t.Gx,t.Gy,n.ONE),x.ZERO=new x(n.ZERO,n.ONE,n.ZERO);let{endo:I,nBitLength:C}=t,M=aIe(x,I?Math.ceil(C/2):C);return{CURVE:t,ProjectivePoint:x,normPrivateKeyToScalar:h,weierstrassEquation:a,isWithinCurveOrder:m}}function tvt(e){let t=kue(e);return uE(t,{hash:\"hash\",hmac:\"function\",randomBytes:\"function\"},{bits2int:\"function\",bits2int_modN:\"function\",lowS:\"boolean\"}),Object.freeze({lowS:!0,...t})}function lIe(e){let t=tvt(e),{Fp:n,n:r,nByteLength:o,nBitLength:i}=t,a=n.BYTES+1,c=2*n.BYTES+1;function l(O){return eu(O,r)}function d(O){return zq(O,r)}let{ProjectivePoint:m,normPrivateKeyToScalar:h,weierstrassEquation:g,isWithinCurveOrder:y}=evt({...t,toBytes(O,U,P){let L=U.toAffine(),W=n.toBytes(L.x),q=jp;return kk(\"isCompressed\",P),P?q(Uint8Array.from([U.hasEvenY()?2:3]),W):q(Uint8Array.from([4]),W,n.toBytes(L.y))},fromBytes(O){let U=O.length,P=O[0],L=O.subarray(1);if(U===a&&(P===2||P===3)){let W=Jh(L);if(!u3(W,aa,n.ORDER))throw new Error(\"Point is not on curve\");let q=g(W),H;try{H=n.sqrt(q)}catch(oe){let se=oe instanceof Error?\": \"+oe.message:\"\";throw new Error(\"Point is not on curve\"+se)}let k=(H&aa)===aa;return(P&1)===1!==k&&(H=n.neg(H)),{x:W,y:H}}else if(U===c&&P===4){let W=n.fromBytes(L.subarray(0,n.BYTES)),q=n.fromBytes(L.subarray(n.BYTES,2*n.BYTES));return{x:W,y:q}}else{let W=a,q=c;throw new Error(\"invalid Point, expected length of \"+W+\", or uncompressed \"+q+\", got \"+U)}}});function w(O){let U=r>>aa;return O>U}function x(O){return w(O)?l(-O):O}let I=(O,U,P)=>Jh(O.slice(U,P));class C{constructor(U,P,L){cE(\"r\",U,aa,r),cE(\"s\",P,aa,r),this.r=U,this.s=P,L!=null&&(this.recovery=L),Object.freeze(this)}static fromCompact(U){let P=o;return U=Mu(\"compactSignature\",U,P*2),new C(I(U,0,P),I(U,P,2*P))}static fromDER(U){let{r:P,s:L}=fE.toSig(Mu(\"DER\",U));return new C(P,L)}assertValidity(){}addRecoveryBit(U){return new C(this.r,this.s,U)}recoverPublicKey(U){let{r:P,s:L,recovery:W}=this,q=ne(Mu(\"msgHash\",U));if(W==null||![0,1,2,3].includes(W))throw new Error(\"recovery id invalid\");let H=W===2||W===3?P+t.n:P;if(H>=n.ORDER)throw new Error(\"recovery id 2 or 3 invalid\");let k=(W&1)===0?\"02\":\"03\",V=m.fromHex(k+Oue(H,n.BYTES)),oe=d(H),se=l(-q*oe),ue=l(L*oe),he=m.BASE.multiplyAndAddUnsafe(V,se,ue);if(!he)throw new Error(\"point at infinify\");return he.assertValidity(),he}hasHighS(){return w(this.s)}normalizeS(){return this.hasHighS()?new C(this.r,l(-this.s),this.recovery):this}toDERRawBytes(){return kB(this.toDERHex())}toDERHex(){return fE.hexFromSig(this)}toCompactRawBytes(){return kB(this.toCompactHex())}toCompactHex(){let U=o;return Oue(this.r,U)+Oue(this.s,U)}}let M={isValidPrivateKey(O){try{return h(O),!0}catch{return!1}},normPrivateKeyToScalar:h,randomPrivateKey:()=>{let O=Sue(t.n);return tIe(t.randomBytes(O),t.n)},precompute(O=8,U=m.BASE){return U._setWindowSize(O),U.multiply(BigInt(3)),U}};function B(O,U=!0){return m.fromPrivateKey(O).toRawBytes(U)}function z(O){if(typeof O==\"bigint\")return!1;if(O instanceof m)return!0;let P=Mu(\"key\",O).length,L=n.BYTES,W=L+1,q=2*L+1;if(!(t.allowedPrivateKeyLengths||o===W))return P===W||P===q}function G(O,U,P=!0){if(z(O)===!0)throw new Error(\"first arg must be private key\");if(z(U)===!1)throw new Error(\"second arg must be public key\");return m.fromHex(U).multiply(h(O)).toRawBytes(P)}let J=t.bits2int||function(O){if(O.length>8192)throw new Error(\"input is too large\");let U=Jh(O),P=O.length*8-i;return P>0?U>>BigInt(P):U},ne=t.bits2int_modN||function(O){return l(J(O))},ie=l3(i);function ae(O){return cE(\"num < 2^\"+i,O,Qb,ie),cw(O,o)}function te(O,U,P=Z){if([\"recovered\",\"canonical\"].some(we=>we in P))throw new Error(\"sign() legacy options not supported\");let{hash:L,randomBytes:W}=t,{lowS:q,prehash:H,extraEntropy:k}=P;q==null&&(q=!0),O=Mu(\"msgHash\",O),uIe(P),H&&(O=Mu(\"prehashed msgHash\",L(O)));let V=ne(O),oe=h(U),se=[ae(oe),ae(V)];if(k!=null&&k!==!1){let we=k===!0?W(n.BYTES):k;se.push(Mu(\"extraEntropy\",we))}let ue=jp(...se),he=V;function be(we){let Ie=J(we);if(!y(Ie))return;let _e=d(Ie),Ve=m.BASE.multiply(Ie).toAffine(),Et=l(Ve.x);if(Et===Qb)return;let qe=l(_e*l(he+Et*oe));if(qe===Qb)return;let Xe=(Ve.x===Et?0:2)|Number(Ve.y&aa),rt=qe;return q&&w(qe)&&(rt=x(qe),Xe^=1),new C(Et,rt,Xe)}return{seed:ue,k2sig:be}}let Z={lowS:t.lowS,prehash:!1},X={lowS:t.lowS,prehash:!1};function F(O,U,P=Z){let{seed:L,k2sig:W}=te(O,U,P),q=t;return G3e(q.hash.outputLen,q.nByteLength,q.hmac)(L,W)}m.BASE._setWindowSize(8);function R(O,U,P,L=X){let W=O;U=Mu(\"msgHash\",U),P=Mu(\"publicKey\",P);let{lowS:q,prehash:H,format:k}=L;if(uIe(L),\"strict\"in L)throw new Error(\"options.strict was renamed to lowS\");if(k!==void 0&&k!==\"compact\"&&k!==\"der\")throw new Error(\"format must be compact or der\");let V=typeof W==\"string\"||Ik(W),oe=!V&&!k&&typeof W==\"object\"&&W!==null&&typeof W.r==\"bigint\"&&typeof W.s==\"bigint\";if(!V&&!oe)throw new Error(\"invalid signature, expected Uint8Array, hex string or Signature instance\");let se,ue;try{if(oe&&(se=new C(W.r,W.s)),V){try{k!==\"compact\"&&(se=C.fromDER(W))}catch(Xe){if(!(Xe instanceof fE.Err))throw Xe}!se&&k!==\"der\"&&(se=C.fromCompact(W))}ue=m.fromHex(P)}catch{return!1}if(!se||q&&se.hasHighS())return!1;H&&(U=t.hash(U));let{r:he,s:be}=se,we=ne(U),Ie=d(be),_e=l(we*Ie),Ve=l(he*Ie),Et=m.BASE.multiplyAndAddUnsafe(ue,_e,Ve)?.toAffine();return Et?l(Et.x)===he:!1}return{CURVE:t,getPublicKey:B,getSharedSecret:G,sign:F,verify:R,ProjectivePoint:m,Signature:C,utils:M}}function nvt(e,t){let n=e.ORDER,r=Qb;for(let w=n-aa;w%L_===Qb;w/=L_)r+=aa;let o=r,i=L_<<o-aa-aa,a=i*L_,c=(n-aa)/a,l=(c-aa)/L_,d=a-aa,m=i,h=e.pow(t,c),g=e.pow(t,(c+aa)/L_),y=(w,x)=>{let I=h,C=e.pow(x,d),M=e.sqr(C);M=e.mul(M,x);let B=e.mul(w,M);B=e.pow(B,l),B=e.mul(B,C),C=e.mul(B,x),M=e.mul(B,w);let z=e.mul(M,C);B=e.pow(z,m);let G=e.eql(B,e.ONE);C=e.mul(M,g),B=e.mul(z,I),M=e.cmov(C,M,G),z=e.cmov(B,z,G);for(let J=o;J>aa;J--){let ne=J-L_;ne=L_<<ne-aa;let ie=e.pow(z,ne),ae=e.eql(ie,e.ONE);C=e.mul(M,I),I=e.mul(I,I),ie=e.mul(z,I),M=e.cmov(C,M,ae),z=e.cmov(ie,z,ae)}return{isValid:G,value:M}};if(e.ORDER%Pue===jB){let w=(e.ORDER-jB)/Pue,x=e.sqrt(e.neg(t));y=(I,C)=>{let M=e.sqr(C),B=e.mul(I,C);M=e.mul(M,B);let z=e.pow(M,w);z=e.mul(z,B);let G=e.mul(z,x),J=e.mul(e.sqr(z),C),ne=e.eql(J,I),ie=e.cmov(G,z,ne);return{isValid:ne,value:ie}}}return y}function dIe(e,t){if(jq(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error(\"mapToCurveSimpleSWU: invalid opts\");let n=nvt(e,t.Z);if(!e.isOdd)throw new Error(\"Fp.isOdd is not implemented!\");return r=>{let o,i,a,c,l,d,m,h;o=e.sqr(r),o=e.mul(o,t.Z),i=e.sqr(o),i=e.add(i,o),a=e.add(i,e.ONE),a=e.mul(a,t.B),c=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),c=e.mul(c,t.A),i=e.sqr(a),d=e.sqr(c),l=e.mul(d,t.A),i=e.add(i,l),i=e.mul(i,a),d=e.mul(d,c),l=e.mul(d,t.B),i=e.add(i,l),m=e.mul(o,a);let{isValid:g,value:y}=n(i,d);h=e.mul(o,r),h=e.mul(h,y),m=e.cmov(m,a,g),h=e.cmov(h,y,g);let w=e.isOdd(r)===e.isOdd(h);h=e.cmov(e.neg(h),h,w);let x=Wk(e,[c],!0)[0];return m=e.mul(m,x),{x:m,y:h}}}var Nue,fE,Qb,aa,L_,jB,Pue,Mue=$(()=>{f();cIe();zB();Nk();Nue=class extends Error{constructor(t=\"\"){super(t)}},fE={Err:Nue,_tlv:{encode:(e,t)=>{let{Err:n}=fE;if(e<0||e>256)throw new n(\"tlv.encode: wrong tag\");if(t.length&1)throw new n(\"tlv.encode: unpadded data\");let r=t.length/2,o=IB(r);if(o.length/2&128)throw new n(\"tlv.encode: long form length too big\");let i=r>127?IB(o.length/2|128):\"\";return IB(e)+i+o+t},decode(e,t){let{Err:n}=fE,r=0;if(e<0||e>256)throw new n(\"tlv.encode: wrong tag\");if(t.length<2||t[r++]!==e)throw new n(\"tlv.decode: wrong tlv\");let o=t[r++],i=!!(o&128),a=0;if(!i)a=o;else{let l=o&127;if(!l)throw new n(\"tlv.decode(long): indefinite length not supported\");if(l>4)throw new n(\"tlv.decode(long): byte length is too big\");let d=t.subarray(r,r+l);if(d.length!==l)throw new n(\"tlv.decode: length bytes not complete\");if(d[0]===0)throw new n(\"tlv.decode(long): zero leftmost byte\");for(let m of d)a=a<<8|m;if(r+=l,a<128)throw new n(\"tlv.decode(long): not minimal encoding\")}let c=t.subarray(r,r+a);if(c.length!==a)throw new n(\"tlv.decode: wrong value length\");return{v:c,l:t.subarray(r+a)}}},_int:{encode(e){let{Err:t}=fE;if(e<Qb)throw new t(\"integer: negative integers are not allowed\");let n=IB(e);if(Number.parseInt(n[0],16)&8&&(n=\"00\"+n),n.length&1)throw new t(\"unexpected DER parsing assertion: unpadded hex\");return n},decode(e){let{Err:t}=fE;if(e[0]&128)throw new t(\"invalid signature integer: negative\");if(e[0]===0&&!(e[1]&128))throw new t(\"invalid signature integer: unnecessary leading zero\");return Jh(e)}},toSig(e){let{Err:t,_int:n,_tlv:r}=fE,o=Mu(\"signature\",e),{v:i,l:a}=r.decode(48,o);if(a.length)throw new t(\"invalid signature: left bytes after parsing\");let{v:c,l}=r.decode(2,i),{v:d,l:m}=r.decode(2,l);if(m.length)throw new t(\"invalid signature: left bytes after parsing\");return{r:n.decode(c),s:n.decode(d)}},hexFromSig(e){let{_tlv:t,_int:n}=fE,r=t.encode(2,n.encode(e.r)),o=t.encode(2,n.encode(e.s)),i=r+o;return t.encode(48,i)}};Qb=BigInt(0),aa=BigInt(1),L_=BigInt(2),jB=BigInt(3),Pue=BigInt(4)});function rvt(e){return{hash:e,hmac:(t,...n)=>FB(e,t,jl(...n)),randomBytes:Bb}}function fIe(e,t){let n=r=>lIe({...e,...rvt(r)});return{...n(t),create:n}}var pIe=$(()=>{f();Eue();Ig();Mue();});function U_(e,t){if(WB(e),WB(t),e<0||e>=1<<8*t)throw new Error(\"invalid I2OSP input: \"+e);let n=Array.from({length:t}).fill(0);for(let r=t-1;r>=0;r--)n[r]=e&255,e>>>=8;return new Uint8Array(n)}function ivt(e,t){let n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e[r]^t[r];return n}function WB(e){if(!Number.isSafeInteger(e))throw new Error(\"number expected\")}function avt(e,t,n,r){sE(e),sE(t),WB(n),t.length>255&&(t=r(jp(pq(\"H2C-OVERSIZE-DST-\"),t)));let{outputLen:o,blockLen:i}=r,a=Math.ceil(n/o);if(n>65535||a>255)throw new Error(\"expand_message_xmd: invalid lenInBytes\");let c=jp(t,U_(t.length,1)),l=U_(0,i),d=U_(n,2),m=new Array(a),h=r(jp(l,e,d,U_(0,1),c));m[0]=r(jp(h,U_(1,1),c));for(let y=1;y<=a;y++){let w=[ivt(h,m[y-1]),U_(y+1,1),c];m[y]=r(jp(...w))}return jp(...m).slice(0,n)}function svt(e,t,n,r,o){if(sE(e),sE(t),WB(n),t.length>255){let i=Math.ceil(2*r/8);t=o.create({dkLen:i}).update(pq(\"H2C-OVERSIZE-DST-\")).update(t).digest()}if(n>65535||t.length>255)throw new Error(\"expand_message_xof: invalid lenInBytes\");return o.create({dkLen:n}).update(e).update(U_(n,2)).update(t).update(U_(t.length,1)).digest()}function hIe(e,t,n){uE(n,{DST:\"stringOrUint8Array\",p:\"bigint\",m:\"isSafeInteger\",k:\"isSafeInteger\",hash:\"hash\"});let{p:r,k:o,m:i,hash:a,expand:c,DST:l}=n;sE(e),WB(t);let d=typeof l==\"string\"?pq(l):l,m=r.toString(2).length,h=Math.ceil((m+o)/8),g=t*i*h,y;if(c===\"xmd\")y=avt(e,d,g,a);else if(c===\"xof\")y=svt(e,d,g,o,a);else if(c===\"_internal_pass\")y=e;else throw new Error(\\'expand must be \"xmd\" or \"xof\"\\');let w=new Array(t);for(let x=0;x<t;x++){let I=new Array(i);for(let C=0;C<i;C++){let M=h*(C+x*i),B=y.subarray(M,M+h);I[C]=eu(ovt(B),r)}w[x]=I}return w}function mIe(e,t){let n=t.map(r=>Array.from(r).reverse());return(r,o)=>{let[i,a,c,l]=n.map(h=>h.reduce((g,y)=>e.add(e.mul(g,r),y))),[d,m]=Wk(e,[a,l],!0);return r=e.mul(i,d),o=e.mul(o,e.mul(c,m)),{x:r,y:o}}}function gIe(e,t,n){if(typeof t!=\"function\")throw new Error(\"mapToCurve() must be defined\");function r(i){return e.fromAffine(t(i))}function o(i){let a=i.clearCofactor();return a.equals(e.ZERO)?e.ZERO:(a.assertValidity(),a)}return{defaults:n,hashToCurve(i,a){let c=hIe(i,2,{...n,DST:n.DST,...a}),l=r(c[0]),d=r(c[1]);return o(l.add(d))},encodeToCurve(i,a){let c=hIe(i,1,{...n,DST:n.encodeDST,...a});return o(r(c[0]))},mapToCurve(i){if(!Array.isArray(i))throw new Error(\"expected array of bigints\");for(let a of i)if(typeof a!=\"bigint\")throw new Error(\"expected array of bigints\");return o(r(i))}}}var ovt,yIe=$(()=>{f();zB();Nk();ovt=Jh});var SIe={};as(SIe,{encodeToCurve:()=>mvt,hashToCurve:()=>hvt,schnorr:()=>dvt,secp256k1:()=>Jb,secp256k1_hasher:()=>zue});function wIe(e){let t=qB,n=BigInt(3),r=BigInt(6),o=BigInt(11),i=BigInt(22),a=BigInt(23),c=BigInt(44),l=BigInt(88),d=e*e*e%t,m=d*d*e%t,h=l0(m,n,t)*m%t,g=l0(h,n,t)*m%t,y=l0(g,Vq,t)*d%t,w=l0(y,o,t)*y%t,x=l0(w,i,t)*w%t,I=l0(x,c,t)*x%t,C=l0(I,l,t)*I%t,M=l0(C,c,t)*x%t,B=l0(M,n,t)*m%t,z=l0(B,a,t)*w%t,G=l0(z,r,t)*d%t,J=l0(G,Vq,t);if(!F_.eql(F_.sqr(J),e))throw new Error(\"Cannot find square root\");return J}function Gq(e,...t){let n=vIe[e];if(n===void 0){let r=Lb(Uint8Array.from(e,o=>o.charCodeAt(0)));n=jp(r,r),vIe[e]=n}return Lb(jp(n,...t))}function Lue(e){let t=Jb.utils.normPrivateKeyToScalar(e),n=Hue.fromPrivateKey(t);return{scalar:n.hasEvenY()?t:GB(-t),bytes:Fue(n)}}function xIe(e){cE(\"x\",e,VB,qB);let t=Due(e*e),n=Due(t*e+BigInt(7)),r=wIe(n);r%Vq!==Uue&&(r=Due(-r));let o=new Hue(e,r,VB);return o.assertValidity(),o}function EIe(...e){return GB(Vk(Gq(\"BIP0340/challenge\",...e)))}function uvt(e){return Lue(e).bytes}function lvt(e,t,n=Bb(32)){let r=Mu(\"message\",e),{bytes:o,scalar:i}=Lue(t),a=Mu(\"auxRand\",n,32),c=Bue(i^Vk(Gq(\"BIP0340/aux\",a))),l=Gq(\"BIP0340/nonce\",c,o,r),d=GB(Vk(l));if(d===Uue)throw new Error(\"sign failed: k is zero\");let{bytes:m,scalar:h}=Lue(d),g=EIe(m,o,r),y=new Uint8Array(64);if(y.set(m,0),y.set(Bue(GB(h+g*i)),32),!AIe(y,r,o))throw new Error(\"sign: Invalid signature produced\");return y}function AIe(e,t,n){let r=Mu(\"signature\",e,64),o=Mu(\"message\",t),i=Mu(\"publicKey\",n,32);try{let a=xIe(Vk(i)),c=Vk(r.subarray(0,32));if(!u3(c,VB,qB))return!1;let l=Vk(r.subarray(32,64));if(!u3(l,VB,Wq))return!1;let d=EIe(Bue(c),Fue(a),o),m=cvt(a,l,GB(-d));return!(!m||!m.hasEvenY()||m.toAffine().x!==c)}catch{return!1}}var qB,Wq,Uue,VB,Vq,bIe,F_,Jb,vIe,Fue,Bue,Due,GB,Hue,cvt,Vk,dvt,fvt,pvt,zue,hvt,mvt,KB=$(()=>{f();L8();Ig();pIe();yIe();zB();Nk();Mue();qB=BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f\"),Wq=BigInt(\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\"),Uue=BigInt(0),VB=BigInt(1),Vq=BigInt(2),bIe=(e,t)=>(e+t/Vq)/t;F_=HB(qB,void 0,void 0,{sqrt:wIe}),Jb=fIe({a:Uue,b:BigInt(7),Fp:F_,n:Wq,Gx:BigInt(\"55066263022277343669578718895168534326250603453777594175500187360389116729240\"),Gy:BigInt(\"32670510020758816978083085130507043184471273380659243275938904335757337482424\"),h:BigInt(1),lowS:!0,endo:{beta:BigInt(\"0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\"),splitScalar:e=>{let t=Wq,n=BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\"),r=-VB*BigInt(\"0xe4437ed6010e88286f547fa90abfe4c3\"),o=BigInt(\"0x114ca50f7a8e2f3f657c1108d9d44cfd8\"),i=n,a=BigInt(\"0x100000000000000000000000000000000\"),c=bIe(i*e,t),l=bIe(-r*e,t),d=eu(e-c*n-l*o,t),m=eu(-c*r-l*i,t),h=d>a,g=m>a;if(h&&(d=t-d),g&&(m=t-m),d>a||m>a)throw new Error(\"splitScalar: Endomorphism failed, k=\"+e);return{k1neg:h,k1:d,k2neg:g,k2:m}}}},Lb),vIe={};Fue=e=>e.toRawBytes(!0).slice(1),Bue=e=>cw(e,32),Due=e=>eu(e,qB),GB=e=>eu(e,Wq),Hue=Jb.ProjectivePoint,cvt=(e,t,n)=>Hue.BASE.multiplyAndAddUnsafe(e,t,n);Vk=Jh;dvt={getPublicKey:uvt,sign:lvt,verify:AIe,utils:{randomPrivateKey:Jb.utils.randomPrivateKey,lift_x:xIe,pointToBytes:Fue,numberToBytesBE:cw,bytesToNumberBE:Jh,taggedHash:Gq,mod:eu}},fvt=mIe(F_,[[\"0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7\",\"0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581\",\"0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262\",\"0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c\"],[\"0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b\",\"0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14\",\"0x0000000000000000000000000000000000000000000000000000000000000001\"],[\"0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c\",\"0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3\",\"0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931\",\"0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84\"],[\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b\",\"0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573\",\"0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f\",\"0x0000000000000000000000000000000000000000000000000000000000000001\"]].map(e=>e.map(t=>BigInt(t)))),pvt=dIe(F_,{A:BigInt(\"0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533\"),B:BigInt(\"1771\"),Z:F_.create(BigInt(\"-11\"))}),zue=gIe(Jb.ProjectivePoint,e=>{let{x:t,y:n}=pvt(F_.create(e[0]));return fvt(t,n)},{DST:\"secp256k1_XMD:SHA-256_SSWU_RO_\",encodeDST:\"secp256k1_XMD:SHA-256_SSWU_NU_\",p:F_.ORDER,m:1,k:128,expand:\"xmd\",hash:Lb}),hvt=zue.hashToCurve,mvt=zue.encodeToCurve});async function TIe({hash:e,signature:t}){let n=ro(e)?e:Xn(e),{secp256k1:r}=await Promise.resolve().then(()=>(KB(),SIe));return`0x${(()=>{if(typeof t==\"object\"&&\"r\"in t&&\"s\"in t){let{r:d,s:m,v:h,yParity:g}=t,y=Number(g??h),w=_Ie(y);return new r.Signature(Zn(d),Zn(m)).addRecoveryBit(w)}let a=ro(t)?t:Xn(t);if(Jr(a)!==65)throw new Error(\"invalid signature length\");let c=Lo(`0x${a.slice(130)}`),l=_Ie(c);return r.Signature.fromCompact(a.substring(2,130)).addRecoveryBit(l)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function _Ie(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error(\"Invalid yParityOrV value\")}var CIe=$(()=>{f();Cg();e0();Ac();An()});async function qq({hash:e,signature:t}){return KRe(await TIe({hash:e,signature:t}))}var jue=$(()=>{f();YRe();CIe()});function RIe(e){let{chainId:t,nonce:n,to:r}=e,o=e.contractAddress??e.address,i=dr(nc([\"0x05\",Pb([t?Pe(t):\"0x\",o,n?Pe(n):\"0x\"])]));return r===\"bytes\"?Si(i):i}var IIe=$(()=>{f();Nu();Ou();An();zV();o0()});async function H_(e){let{authorization:t,signature:n}=e;return qq({hash:RIe(t),signature:n??t})}var YB=$(()=>{f();jue();IIe()});var Kq,kIe=$(()=>{f();VV();p5();Jn();Fh();Kq=class extends Oe{constructor(t,{account:n,docsPath:r,chain:o,data:i,gas:a,gasPrice:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:m,to:h,value:g}){let y=B2({from:n?.address,to:h,value:typeof g<\"u\"&&`${I8(g)} ${o?.nativeCurrency?.symbol||\"ETH\"}`,data:i,gas:a,gasPrice:typeof c<\"u\"&&`${rc(c)} gwei`,maxFeePerGas:typeof l<\"u\"&&`${rc(l)} gwei`,maxPriorityFeePerGas:typeof d<\"u\"&&`${rc(d)} gwei`,nonce:m});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Estimate Gas Arguments:\",y].filter(Boolean),name:\"EstimateGasExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}});function OIe(e,{docsPath:t,...n}){let r=(()=>{let o=g_(e,n);return o instanceof Og?e:o})();return new Kq(r,{docsPath:t,...n})}var NIe=$(()=>{f();kIe();l_();lB()});var Yq,z_,Zq,Qq=$(()=>{f();p5();Jn();Yq=class extends Oe{constructor(){super(\"`baseFeeMultiplier` must be greater than 1.\",{name:\"BaseFeeScalarError\"})}},z_=class extends Oe{constructor(){super(\"Chain does not support EIP-1559 fees.\",{name:\"Eip1559FeesNotSupportedError\"})}},Zq=class extends Oe{constructor({maxPriorityFeePerGas:t}){super(`\\\\`maxFeePerGas\\\\` cannot be less than the \\\\`maxPriorityFeePerGas\\\\` (${rc(t)} gwei).`,{name:\"MaxFeePerGasTooLowError\"})}}});var Gk,Wue=$(()=>{f();Jn();Gk=class extends Oe{constructor({blockHash:t,blockNumber:n}){let r=\"Block\";t&&(r=`Block at hash \"${t}\"`),n&&(r=`Block at number \"${n}\"`),super(`${r} could not be found.`,{name:\"BlockNotFoundError\"})}}});async function Sf(e,{blockHash:t,blockNumber:n,blockTag:r=e.experimental_blockTag??\"latest\",includeTransactions:o}={}){let i=o??!1,a=n!==void 0?Pe(n):void 0,c=null;if(t?c=await e.request({method:\"eth_getBlockByHash\",params:[t,i]},{dedupe:!0}):c=await e.request({method:\"eth_getBlockByNumber\",params:[a||r,i]},{dedupe:!!a}),!c)throw new Gk({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||_9)(c,\"getBlock\")}var m3=$(()=>{f();Wue();An();UV()});async function qk(e){let t=await e.request({method:\"eth_gasPrice\"});return BigInt(t)}var Jq=$(()=>{f()});async function PIe(e,t){return Vue(e,t)}async function Vue(e,t){let{block:n,chain:r=e.chain,request:o}=t||{};try{let i=r?.fees?.maxPriorityFeePerGas??r?.fees?.defaultPriorityFee;if(typeof i==\"function\"){let c=n||await Ct(e,Sf,\"getBlock\")({}),l=await i({block:c,client:e,request:o});if(l===null)throw new Error;return l}if(typeof i<\"u\")return i;let a=await e.request({method:\"eth_maxPriorityFeePerGas\"});return Zn(a)}catch{let[i,a]=await Promise.all([n?Promise.resolve(n):Ct(e,Sf,\"getBlock\")({}),Ct(e,qk,\"getGasPrice\")({})]);if(typeof i.baseFeePerGas!=\"bigint\")throw new z_;let c=a-i.baseFeePerGas;return c<0n?0n:c}}var Gue=$(()=>{f();Qq();Ac();Yo();m3();Jq()});async function Xq(e,t){return $q(e,t)}async function $q(e,t){let{block:n,chain:r=e.chain,request:o,type:i=\"eip1559\"}=t||{},a=await(async()=>typeof r?.fees?.baseFeeMultiplier==\"function\"?r.fees.baseFeeMultiplier({block:n,client:e,request:o}):r?.fees?.baseFeeMultiplier??1.2)();if(a<1)throw new Yq;let l=10**(a.toString().split(\".\")[1]?.length??0),d=g=>g*BigInt(Math.ceil(a*l))/BigInt(l),m=n||await Ct(e,Sf,\"getBlock\")({});if(typeof r?.fees?.estimateFeesPerGas==\"function\"){let g=await r.fees.estimateFeesPerGas({block:n,client:e,multiply:d,request:o,type:i});if(g!==null)return g}if(i===\"eip1559\"){if(typeof m.baseFeePerGas!=\"bigint\")throw new z_;let g=typeof o?.maxPriorityFeePerGas==\"bigint\"?o.maxPriorityFeePerGas:await Vue(e,{block:m,chain:r,request:o}),y=d(m.baseFeePerGas);return{maxFeePerGas:o?.maxFeePerGas??y+g,maxPriorityFeePerGas:g}}return{gasPrice:o?.gasPrice??d(await Ct(e,qk,\"getGasPrice\")({}))}}var eK=$(()=>{f();Qq();Yo();Gue();m3();Jq()});async function j_(e,{address:t,blockTag:n=\"latest\",blockNumber:r}){let o=await e.request({method:\"eth_getTransactionCount\",params:[t,typeof r==\"bigint\"?Pe(r):n]},{dedupe:!!r});return Lo(o)}var ZB=$(()=>{f();Ac();An()});async function Gl(e){let t=await e.request({method:\"eth_chainId\"},{dedupe:!0});return Lo(t)}var fw=$(()=>{f();Ac()});async function pw(e,t){let{account:n=e.account,blobs:r,chain:o,gas:i,kzg:a,nonce:c,nonceManager:l,parameters:d=QB,type:m}=t,h=n&&Bn(n),g={...t,...h?{from:h?.address}:{}},y;async function w(){return y||(y=await Ct(e,Sf,\"getBlock\")({blockTag:\"latest\"}),y)}let x;async function I(){return x||(o?o.id:typeof t.chainId<\"u\"?t.chainId:(x=await Ct(e,Gl,\"getChainId\")({}),x))}if(d.includes(\"nonce\")&&typeof c>\"u\"&&h)if(l){let C=await I();g.nonce=await l.consume({address:h.address,chainId:C,client:e})}else g.nonce=await Ct(e,j_,\"getTransactionCount\")({address:h.address,blockTag:\"pending\"});if((d.includes(\"blobVersionedHashes\")||d.includes(\"sidecars\"))&&r&&a){let C=M8({blobs:r,kzg:a});if(d.includes(\"blobVersionedHashes\")){let M=uG({commitments:C,to:\"hex\"});g.blobVersionedHashes=M}if(d.includes(\"sidecars\")){let M=D8({blobs:r,commitments:C,kzg:a}),B=pG({blobs:r,commitments:C,proofs:M,to:\"hex\"});g.sidecars=B}}if(d.includes(\"chainId\")&&(g.chainId=await I()),(d.includes(\"fees\")||d.includes(\"type\"))&&typeof m>\"u\")try{g.type=bG(g)}catch{let C=MIe.get(e.uid);typeof C>\"u\"&&(C=typeof(await w())?.baseFeePerGas==\"bigint\",MIe.set(e.uid,C)),g.type=C?\"eip1559\":\"legacy\"}if(d.includes(\"fees\"))if(g.type!==\"legacy\"&&g.type!==\"eip2930\"){if(typeof g.maxFeePerGas>\"u\"||typeof g.maxPriorityFeePerGas>\"u\"){let C=await w(),{maxFeePerGas:M,maxPriorityFeePerGas:B}=await $q(e,{block:C,chain:o,request:g});if(typeof t.maxPriorityFeePerGas>\"u\"&&t.maxFeePerGas&&t.maxFeePerGas<B)throw new Zq({maxPriorityFeePerGas:B});g.maxPriorityFeePerGas=B,g.maxFeePerGas=M}}else{if(typeof t.maxFeePerGas<\"u\"||typeof t.maxPriorityFeePerGas<\"u\")throw new z_;if(typeof t.gasPrice>\"u\"){let C=await w(),{gasPrice:M}=await $q(e,{block:C,chain:o,request:g,type:\"legacy\"});g.gasPrice=M}}return d.includes(\"gas\")&&typeof i>\"u\"&&(g.gas=await Ct(e,Yk,\"estimateGas\")({...g,account:h,prepare:h?.type===\"local\"?[]:[\"blobVersionedHashes\"]})),Ef(g),delete g.parameters,g}var QB,MIe,Kk=$(()=>{f();La();eK();tK();m3();ZB();Qq();JV();XV();qse();Yse();Yo();Y2();Xse();fw();QB=[\"blobVersionedHashes\",\"chainId\",\"fees\",\"gas\",\"nonce\",\"type\"],MIe=new Map});async function Yk(e,t){let{account:n=e.account,prepare:r=!0}=t,o=n?Bn(n):void 0,i=(()=>{if(Array.isArray(r))return r;if(o?.type!==\"local\")return[\"blobVersionedHashes\"]})();try{let{accessList:a,authorizationList:c,blobs:l,blobVersionedHashes:d,blockNumber:m,blockTag:h,data:g,gas:y,gasPrice:w,maxFeePerBlobGas:x,maxFeePerGas:I,maxPriorityFeePerGas:C,nonce:M,value:B,stateOverride:z,...G}=r?await pw(e,{...t,parameters:i}):t,ne=(typeof m==\"bigint\"?Pe(m):void 0)||h,ie=P_(z),ae=await(async()=>{if(G.to)return G.to;if(c&&c.length>0)return await H_({authorization:c[0]}).catch(()=>{throw new Oe(\"`to` is required. Could not infer from `authorizationList`\")})})();Ef(t);let te=e.chain?.formatters?.transactionRequest?.format,X=(te||Uh)({...tw(G,{format:te}),account:o,accessList:a,authorizationList:c,blobs:l,blobVersionedHashes:d,data:g,gas:y,gasPrice:w,maxFeePerBlobGas:x,maxFeePerGas:I,maxPriorityFeePerGas:C,nonce:M,to:ae,value:B},\"estimateGas\");return BigInt(await e.request({method:\"eth_estimateGas\",params:ie?[X,ne??e.experimental_blockTag??\"latest\",ie]:ne?[X,ne]:[X]}))}catch(a){throw OIe(a,{...t,account:o,chain:e.chain})}}var tK=$(()=>{f();La();Jn();YB();An();NIe();uk();o_();LB();Y2();Kk()});async function DIe(e,t){let{abi:n,address:r,args:o,functionName:i,dataSuffix:a,...c}=t,l=xn({abi:n,args:o,functionName:i});try{return await Ct(e,Yk,\"estimateGas\")({data:`${l}${a?a.replace(\"0x\",\"\"):\"\"}`,to:r,...c})}catch(d){let m=c.account?Bn(c.account):void 0;throw s0(d,{abi:n,address:r,args:o,docsPath:\"/docs/contract/estimateContractGas\",functionName:i,sender:m?.address})}}var BIe=$(()=>{f();La();zp();c3();Yo();tK()});async function JB(e,{address:t,blockNumber:n,blockTag:r=e.experimental_blockTag??\"latest\"}){let o=typeof n==\"bigint\"?Pe(n):void 0,i=await e.request({method:\"eth_getBalance\",params:[t,o||r]});return BigInt(i)}var que=$(()=>{f();An()});async function LIe(e){let t=await e.request({method:\"eth_blobBaseFee\"});return BigInt(t)}var UIe=$(()=>{f()});function FIe(e){let t=(o,i)=>({clear:()=>i.delete(o),get:()=>i.get(o),set:a=>i.set(o,a)}),n=t(e,gvt),r=t(e,yvt);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}async function HIe(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){let r=FIe(t),o=r.response.get();if(o&&n>0&&Date.now()-o.created.getTime()<n)return o.data;let i=r.promise.get();i||(i=e(),r.promise.set(i));try{let a=await i;return r.response.set({created:new Date,data:a}),a}finally{r.promise.clear()}}var gvt,yvt,zIe=$(()=>{f();gvt=new Map,yvt=new Map});async function hw(e,{cacheTime:t=e.cacheTime}={}){let n=await HIe(()=>e.request({method:\"eth_blockNumber\"}),{cacheKey:bvt(e.uid),cacheTime:t});return BigInt(n)}var bvt,Zk=$(()=>{f();zIe();bvt=e=>`blockNumber.${e}`});async function jIe(e,{blockHash:t,blockNumber:n,blockTag:r=\"latest\"}={}){let o=n!==void 0?Pe(n):void 0,i;return t?i=await e.request({method:\"eth_getBlockTransactionCountByHash\",params:[t]},{dedupe:!0}):i=await e.request({method:\"eth_getBlockTransactionCountByNumber\",params:[o||r]},{dedupe:!!o}),Lo(i)}var WIe=$(()=>{f();Ac();An()});async function d0(e,{address:t,blockNumber:n,blockTag:r=\"latest\"}){let o=n!==void 0?Pe(n):void 0,i=await e.request({method:\"eth_getCode\",params:[t,o||r]},{dedupe:!!o});if(i!==\"0x\")return i}var XB=$(()=>{f();An()});function pE(e){let{abi:t,data:n,strict:r,topics:o}=e,i=r??!0,[a,...c]=o;if(!a)throw new CG({docsPath:VIe});let l=t.find(x=>x.type===\"event\"&&a===f_(pl(x)));if(!(l&&\"name\"in l)||l.type!==\"event\")throw new J8(a,{docsPath:VIe});let{name:d,inputs:m}=l,h=m?.some(x=>!(\"name\"in x&&x.name)),g=h?[]:{},y=m.map((x,I)=>[x,I]).filter(([x])=>\"indexed\"in x&&x.indexed);for(let x=0;x<y.length;x++){let[I,C]=y[x],M=c[x];if(!M)throw new Zv({abiItem:l,param:I});g[h?C:I.name||C]=vvt({param:I,value:M})}let w=m.filter(x=>!(\"indexed\"in x&&x.indexed));if(w.length>0){if(n&&n!==\"0x\")try{let x=Pu(w,n);if(x)if(h)for(let I=0;I<m.length;I++)g[I]=g[I]??x.shift();else for(let I=0;I<w.length;I++)g[w[I].name]=x[I]}catch(x){if(i)throw x instanceof Y8||x instanceof C8?new Hb({abiItem:l,data:n,params:w,size:Jr(n)}):x}else if(i)throw new Hb({abiItem:l,data:\"0x\",params:w,size:0})}return{eventName:d,args:Object.values(g).length>0?g:void 0}}function vvt({param:e,value:t}){return e.type===\"string\"||e.type===\"bytes\"||e.type===\"tuple\"||e.type.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/)?t:(Pu([e],t)||[])[0]}var VIe,$B=$(()=>{f();oc();Dse();e0();aB();T5();j2();VIe=\"/docs/contract/decodeEventLog\"});function Qk(e){let{abi:t,args:n,logs:r,strict:o=!0}=e,i=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return r.map(a=>{try{let c=t.find(d=>d.type===\"event\"&&a.topics[0]===f_(d));if(!c)return null;let l=pE({...a,abi:[c],strict:o});return i&&!i.includes(l.eventName)||!wvt({args:l.args,inputs:c.inputs,matchArgs:n})?null:{...l,...a}}catch(c){let l,d;if(c instanceof J8)return null;if(c instanceof Hb||c instanceof Zv){if(o)return null;l=c.abiItem.name,d=c.abiItem.inputs?.some(m=>!(\"name\"in m&&m.name))}return{...a,args:d?[]:{},eventName:l}}}).filter(Boolean)}function wvt(e){let{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function o(i,a,c){try{return i.type===\"address\"?Dd(a,c):i.type===\"string\"||i.type===\"bytes\"?dr(t0(a))===c:a===c}catch{return!1}}return Array.isArray(t)&&Array.isArray(r)?r.every((i,a)=>{if(i==null)return!0;let c=n[a];return c?(Array.isArray(i)?i:[i]).some(d=>o(c,d,t[a])):!1}):typeof t==\"object\"&&!Array.isArray(t)&&typeof r==\"object\"&&!Array.isArray(r)?Object.entries(r).every(([i,a])=>{if(a==null)return!0;let c=n.find(d=>d.name===i);return c?(Array.isArray(a)?a:[a]).some(d=>o(c,d,t[i])):!1}):!1}var nK=$(()=>{f();oc();M_();Ou();o0();aB();$B()});async function Jk(e,{address:t,blockHash:n,fromBlock:r,toBlock:o,event:i,events:a,args:c,strict:l}={}){let d=l??!1,m=a??(i?[i]:void 0),h=[];m&&(h=[m.flatMap(x=>dw({abi:[x],eventName:x.name,args:a?void 0:c}))],i&&(h=h[0]));let g;n?g=await e.request({method:\"eth_getLogs\",params:[{address:t,topics:h,blockHash:n}]}):g=await e.request({method:\"eth_getLogs\",params:[{address:t,topics:h,fromBlock:typeof r==\"bigint\"?Pe(r):r,toBlock:typeof o==\"bigint\"?Pe(o):o}]});let y=g.map(w=>Hl(w));return m?Qk({abi:m,args:c,logs:y,strict:d}):y}var rK=$(()=>{f();jk();nK();An();D2()});async function oK(e,t){let{abi:n,address:r,args:o,blockHash:i,eventName:a,fromBlock:c,toBlock:l,strict:d}=t,m=a?Wh({abi:n,name:a}):void 0,h=m?void 0:n.filter(g=>g.type===\"event\");return Ct(e,Jk,\"getLogs\")({address:r,args:o,blockHash:i,event:m,events:h,fromBlock:c,toBlock:l,strict:d})}var Kue=$(()=>{f();p_();Yo();rK()});var iK,GIe=$(()=>{f();Jn();iK=class extends Oe{constructor({address:t}){super(`No EIP-712 domain found on contract \"${t}\".`,{metaMessages:[\"Ensure that:\",`- The contract is deployed at the address \"${t}\".`,\"- `eip712Domain()` function exists on the contract.\",\"- `eip712Domain()` function matches signature to ERC-5267 specification.\"],name:\"Eip712DomainNotFoundError\"})}}});async function qIe(e,t){let{address:n,factory:r,factoryData:o}=t;try{let[i,a,c,l,d,m,h]=await Ct(e,_i,\"readContract\")({abi:xvt,address:n,functionName:\"eip712Domain\",factory:r,factoryData:o});return{domain:{name:a,version:c,chainId:Number(l),verifyingContract:d,salt:m},extensions:h,fields:i}}catch(i){let a=i;throw a.name===\"ContractFunctionExecutionError\"&&a.cause.name===\"ContractFunctionZeroDataError\"?new iK({address:n}):a}}var xvt,KIe=$(()=>{f();GIe();Yo();jg();xvt=[{inputs:[],name:\"eip712Domain\",outputs:[{name:\"fields\",type:\"bytes1\"},{name:\"name\",type:\"string\"},{name:\"version\",type:\"string\"},{name:\"chainId\",type:\"uint256\"},{name:\"verifyingContract\",type:\"address\"},{name:\"salt\",type:\"bytes32\"},{name:\"extensions\",type:\"uint256[]\"}],stateMutability:\"view\",type:\"function\"}]});function YIe(e){return{baseFeePerGas:e.baseFeePerGas.map(t=>BigInt(t)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map(t=>t.map(n=>BigInt(n)))}}var ZIe=$(()=>{f()});async function QIe(e,{blockCount:t,blockNumber:n,blockTag:r=\"latest\",rewardPercentiles:o}){let i=typeof n==\"bigint\"?Pe(n):void 0,a=await e.request({method:\"eth_feeHistory\",params:[Pe(t),i||r,o]},{dedupe:!!i});return YIe(a)}var JIe=$(()=>{f();An();ZIe()});async function W_(e,{filter:t}){let n=\"strict\"in t&&t.strict,r=await t.request({method:\"eth_getFilterChanges\",params:[t.id]});if(typeof r[0]==\"string\")return r;let o=r.map(i=>Hl(i));return!(\"abi\"in t)||!t.abi?o:Qk({abi:t.abi,logs:o,strict:n})}var eL=$(()=>{f();nK();D2()});async function XIe(e,{filter:t}){let n=t.strict??!1,o=(await t.request({method:\"eth_getFilterLogs\",params:[t.id]})).map(i=>Hl(i));return t.abi?Qk({abi:t.abi,logs:o,strict:n}):o}var $Ie=$(()=>{f();nK();D2()});function g3(e,t){if(e.length!==t.length)throw new Z8({expectedLength:e.length,givenLength:t.length});let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t[r];n.push(e4e(o,i))}return nc(n)}function e4e(e,t,n=!1){if(e===\"address\"){let a=t;if(!Hn(a))throw new ra({address:a});return Gi(a.toLowerCase(),{size:n?32:null})}if(e===\"string\")return Ul(t);if(e===\"bytes\")return t;if(e===\"bool\")return Gi(l5(t),{size:n?32:1});let r=e.match(ak);if(r){let[a,c,l=\"256\"]=r,d=Number.parseInt(l,10)/8;return Pe(t,{size:n?32:d,signed:c===\"int\"})}let o=e.match(jG);if(o){let[a,c]=o;if(Number.parseInt(c,10)!==(t.length-2)/2)throw new $8({expectedSize:Number.parseInt(c,10),givenSize:(t.length-2)/2});return Gi(t,{dir:\"right\",size:n?32:null})}let i=e.match(C5e);if(i&&Array.isArray(t)){let[a,c]=i,l=[];for(let d=0;d<t.length;d++)l.push(e4e(c,t[d],!0));return l.length===0?\"0x\":nc(l)}throw new NG(e)}var t4e=$(()=>{f();oc();Ub();zh();Nu();r_();An();WG()});async function n4e({address:e,authorization:t,signature:n}){return Dd(rr(e),await H_({authorization:t,signature:n}))}var r4e=$(()=>{f();Kv();M_();YB()});function o4e(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(aK.get(n))return aK.get(n);let r=e().finally(()=>aK.delete(n));return aK.set(n,r),r}var aK,i4e=$(()=>{f();x5();aK=new Hh(8192)});async function tL(e){return new Promise(t=>setTimeout(t,e))}var Yue=$(()=>{f()});function f0(e,{delay:t=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((o,i)=>{let a=async({count:c=0}={})=>{let l=async({error:d})=>{let m=typeof t==\"function\"?t({count:c,error:d}):t;m&&await tL(m),a({count:c+1})};try{let d=await e();o(d)}catch(d){if(c<n&&await r({count:c,error:d}))return l({error:d});i(d)}};a()})}var nL=$(()=>{f();Yue()});function a4e(e,t={}){return async(n,r={})=>{let{dedupe:o=!1,methods:i,retryDelay:a=150,retryCount:c=3,uid:l}={...t,...r},{method:d}=n;if(i?.exclude?.includes(d))throw new G2(new Error(\"method not supported\"),{method:d});if(i?.include&&!i.include.includes(d))throw new G2(new Error(\"method not supported\"),{method:d});let m=o?Ul(`${l}.${oo(n)}`):void 0;return o4e(()=>f0(async()=>{try{return await e(n)}catch(h){let g=h;switch(g.code){case O5.code:throw new O5(g);case N5.code:throw new N5(g);case P5.code:throw new P5(g,{method:n.method});case M5.code:throw new M5(g);case ew.code:throw new ew(g);case Gb.code:throw new Gb(g);case D5.code:throw new D5(g);case Vh.code:throw new Vh(g);case B5.code:throw new B5(g);case G2.code:throw new G2(g,{method:n.method});case m_.code:throw new m_(g);case L5.code:throw new L5(g);case yo.code:throw new yo(g);case U5.code:throw new U5(g);case F5.code:throw new F5(g);case H5.code:throw new H5(g);case z5.code:throw new z5(g);case Is.code:throw new Is(g);case q2.code:throw new q2(g);case j5.code:throw new j5(g);case W5.code:throw new W5(g);case V5.code:throw new V5(g);case G5.code:throw new G5(g);case q5.code:throw new q5(g);case K2.code:throw new K2(g);case 5e3:throw new yo(g);default:throw h instanceof Oe?h:new uB(g)}}},{delay:({count:h,error:g})=>{if(g&&g instanceof Ug){let y=g?.headers?.get(\"Retry-After\");if(y?.match(/\\\\d/))return Number.parseInt(y,10)*1e3}return~~(1<<h)*a},retryCount:c,shouldRetry:({error:h})=>Evt(h)}),{enabled:o,id:m})}}function Evt(e){return\"code\"in e&&typeof e.code==\"number\"?e.code===-1||e.code===m_.code||e.code===ew.code:e instanceof Ug&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}var s4e=$(()=>{f();Jn();k5();K5();An();i4e();nL();Nd()});function Xk(e,{docsPath:t,...n}){let r=(()=>{let o=g_(e,n);return o instanceof Og?e:o})();return new ZV(r,{docsPath:t,...n})}var sK=$(()=>{f();l_();Fh();lB()});function Zue(e){let{source:t}=e,n=new Map,r=new Hh(8192),o=new Map,i=({address:a,chainId:c})=>`${a}.${c}`;return{async consume({address:a,chainId:c,client:l}){let d=i({address:a,chainId:c}),m=this.get({address:a,chainId:c,client:l});this.increment({address:a,chainId:c});let h=await m;return await t.set({address:a,chainId:c},h),r.set(d,h),h},async increment({address:a,chainId:c}){let l=i({address:a,chainId:c}),d=n.get(l)??0;n.set(l,d+1)},async get({address:a,chainId:c,client:l}){let d=i({address:a,chainId:c}),m=o.get(d);return m||(m=(async()=>{try{let g=await t.get({address:a,chainId:c,client:l}),y=r.get(d)??0;return y>0&&g<=y?y+1:(r.delete(d),g)}finally{this.reset({address:a,chainId:c})}})(),o.set(d,m)),(n.get(d)??0)+await m},reset({address:a,chainId:c}){let l=i({address:a,chainId:c});n.delete(l),o.delete(l)}}}function Avt(){return{async get(e){let{address:t,client:n}=e;return j_(n,{address:t,blockTag:\"pending\"})},set(){}}}var Hxn,c4e=$(()=>{f();ZB();x5();Hxn=Zue({source:Avt()})});function y3(e,{errorInstance:t=new Error(\"timed out\"),timeout:n,signal:r}){return new Promise((o,i)=>{(async()=>{let a;try{let c=new AbortController;n>0&&(a=setTimeout(()=>{r?c.abort():i(t)},n)),o(await e({signal:c?.signal||null}))}catch(c){c?.name===\"AbortError\"&&i(t),i(c)}finally{clearTimeout(a)}})()})}var Que=$(()=>{f()});function Svt(){return{current:0,take(){return this.current++},reset(){this.current=0}}}var Jue,u4e=$(()=>{f();Jue=Svt()});function l4e(e,t={}){return{async request(n){let{body:r,fetchFn:o=t.fetchFn??fetch,onRequest:i=t.onRequest,onResponse:a=t.onResponse,timeout:c=t.timeout??1e4}=n,l={...t.fetchOptions??{},...n.fetchOptions??{}},{headers:d,method:m,signal:h}=l;try{let g=await y3(async({signal:w})=>{let x={...l,body:Array.isArray(r)?oo(r.map(B=>({jsonrpc:\"2.0\",id:B.id??Jue.take(),...B}))):oo({jsonrpc:\"2.0\",id:r.id??Jue.take(),...r}),headers:{\"Content-Type\":\"application/json\",...d},method:m||\"POST\",signal:h||(c>0?w:null)},I=new Request(e,x),C=await i?.(I,x)??{...x,url:e};return await o(C.url??e,C)},{errorInstance:new cB({body:r,url:e}),timeout:c,signal:!0});a&&await a(g);let y;if(g.headers.get(\"Content-Type\")?.startsWith(\"application/json\"))y=await g.json();else{y=await g.text();try{y=JSON.parse(y||\"{}\")}catch(w){if(g.ok)throw w;y={error:y}}}if(!g.ok)throw new Ug({body:r,details:oo(y.error)||g.statusText,headers:g.headers,status:g.status,url:e});return y}catch(g){throw g instanceof Ug||g instanceof cB?g:new Ug({body:r,cause:g,url:e})}}}}var d4e=$(()=>{f();k5();Que();Nd();u4e()});var f4e,p4e=$(()=>{f();f4e=`\\u0019Ethereum Signed Message:\\n`});function h4e(e){let t=typeof e==\"string\"?Ul(e):typeof e.raw==\"string\"?e.raw:Bo(e.raw),n=Ul(`${f4e}${Jr(t)}`);return qi([n,t])}var m4e=$(()=>{f();p4e();Nu();e0();An()});function p0(e,t){return dr(h4e(e),t)}var cK=$(()=>{f();o0();m4e()});var uK,lK,dK,g4e=$(()=>{f();Nd();Jn();uK=class extends Oe{constructor({domain:t}){super(`Invalid domain \"${oo(t)}\".`,{metaMessages:[\"Must be a valid EIP-712 domain.\"]})}},lK=class extends Oe{constructor({primaryType:t,types:n}){super(`Invalid primary type \\\\`${t}\\\\` must be one of \\\\`${JSON.stringify(Object.keys(n))}\\\\`.`,{docsPath:\"/api/glossary/Errors#typeddatainvalidprimarytypeerror\",metaMessages:[\"Check that the primary type is a key in `types`.\"]})}},dK=class extends Oe{constructor({type:t}){super(`Struct type \"${t}\" is invalid.`,{metaMessages:[\"Struct type must not be a Solidity type.\"],name:\"InvalidStructTypeError\"})}}});function y4e(e){let{domain:t,message:n,primaryType:r,types:o}=e,i=(l,d)=>{let m={...d};for(let h of l){let{name:g,type:y}=h;y===\"address\"&&(m[g]=m[g].toLowerCase())}return m},a=o.EIP712Domain?t?i(o.EIP712Domain,t):{}:{},c=(()=>{if(r!==\"EIP712Domain\")return i(o[r],n)})();return oo({domain:a,message:c,primaryType:r,types:o})}function fK(e){let{domain:t,message:n,primaryType:r,types:o}=e,i=(a,c)=>{for(let l of a){let{name:d,type:m}=l,h=c[d],g=m.match(ak);if(g&&(typeof h==\"number\"||typeof h==\"bigint\")){let[x,I,C]=g;Pe(h,{signed:I===\"int\",size:Number.parseInt(C,10)/8})}if(m===\"address\"&&typeof h==\"string\"&&!Hn(h))throw new ra({address:h});let y=m.match(jG);if(y){let[x,I]=y;if(I&&Jr(h)!==Number.parseInt(I,10))throw new $8({expectedSize:Number.parseInt(I,10),givenSize:Jr(h)})}let w=o[m];w&&(_vt(m),i(w,h))}};if(o.EIP712Domain&&t){if(typeof t!=\"object\")throw new uK({domain:t});i(o.EIP712Domain,t)}if(r!==\"EIP712Domain\")if(o[r])i(o[r],n);else throw new lK({primaryType:r,types:o})}function pK({domain:e}){return[typeof e?.name==\"string\"&&{name:\"name\",type:\"string\"},e?.version&&{name:\"version\",type:\"string\"},(typeof e?.chainId==\"number\"||typeof e?.chainId==\"bigint\")&&{name:\"chainId\",type:\"uint256\"},e?.verifyingContract&&{name:\"verifyingContract\",type:\"address\"},e?.salt&&{name:\"salt\",type:\"bytes32\"}].filter(Boolean)}function _vt(e){if(e===\"address\"||e===\"bool\"||e===\"string\"||e.startsWith(\"bytes\")||e.startsWith(\"uint\")||e.startsWith(\"int\"))throw new dK({type:e})}var Xue=$(()=>{f();oc();Ub();g4e();zh();e0();An();WG();Nd()});function Vp(e){let{domain:t={},message:n,primaryType:r}=e,o={EIP712Domain:pK({domain:t}),...e.types};fK({domain:t,message:n,primaryType:r,types:o});let i=[\"0x1901\"];return t&&i.push(b4e({domain:t,types:o})),r!==\"EIP712Domain\"&&i.push($ue({data:n,primaryType:r,types:o})),dr(qi(i))}function b4e({domain:e,types:t}){return $ue({data:e,primaryType:\"EIP712Domain\",types:t})}function $ue({data:e,primaryType:t,types:n}){let r=v4e({data:e,primaryType:t,types:n});return dr(r)}function v4e({data:e,primaryType:t,types:n}){let r=[{type:\"bytes32\"}],o=[Tvt({primaryType:t,types:n})];for(let i of n[t]){let[a,c]=x4e({types:n,name:i.name,type:i.type,value:e[i.name]});r.push(a),o.push(c)}return oa(r,o)}function Tvt({primaryType:e,types:t}){let n=Xn(Cvt({primaryType:e,types:t}));return dr(n)}function Cvt({primaryType:e,types:t}){let n=\"\",r=w4e({primaryType:e,types:t});r.delete(e);let o=[e,...Array.from(r).sort()];for(let i of o)n+=`${i}(${t[i].map(({name:a,type:c})=>`${c} ${a}`).join(\",\")})`;return n}function w4e({primaryType:e,types:t},n=new Set){let o=e.match(/^\\\\w*/u)?.[0];if(n.has(o)||t[o]===void 0)return n;n.add(o);for(let i of t[o])w4e({primaryType:i.type,types:t},n);return n}function x4e({types:e,name:t,type:n,value:r}){if(e[n]!==void 0)return[{type:\"bytes32\"},dr(v4e({data:r,primaryType:n,types:e}))];if(n===\"bytes\")return r=`0x${(r.length%2?\"0\":\"\")+r.slice(2)}`,[{type:\"bytes32\"},dr(r)];if(n===\"string\")return[{type:\"bytes32\"},dr(Xn(r))];if(n.lastIndexOf(\"]\")===n.length-1){let o=n.slice(0,n.lastIndexOf(\"[\")),i=r.map(a=>x4e({name:t,type:o,types:e,value:a}));return[{type:\"bytes32\"},dr(oa(i.map(([a])=>a),i.map(([,a])=>a)))]}return[{type:n},r]}var hK=$(()=>{f();Lg();Nu();An();o0();Xue()});var mK,ele=$(()=>{f();mK=\"0x6492649264926492649264926492649264926492649264926492649264926492\"});function E4e(e){return E5(e,-32)===mK}var A4e=$(()=>{f();ele();Yv()});var gK,S4e=$(()=>{f();gK=class extends Map{constructor(t){super(),Object.defineProperty(this,\"maxSize\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){let n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){let r=this.keys().next().value;r&&this.delete(r)}return this}}});var Rvt,yK,_4e=$(()=>{f();S4e();Rvt={checksum:new gK(8192)},yK=Rvt.checksum});function b3(e,t={}){let{as:n=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,r=z2(iRe(e));return n===\"Bytes\"?r:$c(r)}var bK=$(()=>{f();M9();O_();Vl()});function T4e(e,t={}){let{compressed:n}=t,{prefix:r,x:o,y:i}=e;if(n===!1||typeof o==\"bigint\"&&typeof i==\"bigint\"){if(r!==4)throw new vK({prefix:r,cause:new ole});return}if(n===!0||typeof o==\"bigint\"&&typeof i>\"u\"){if(r!==3&&r!==2)throw new vK({prefix:r,cause:new rle});return}throw new nle({publicKey:e})}function C4e(e){let t=(()=>{if(DB(e))return R4e(e);if(dRe(e))return kvt(e);let{prefix:n,x:r,y:o}=e;return typeof r==\"bigint\"&&typeof o==\"bigint\"?{prefix:n??4,x:r,y:o}:{prefix:n,x:r}})();return T4e(t),t}function kvt(e){return R4e($c(e))}function R4e(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new ile({publicKey:e});if(e.length===130){let r=BigInt(Os(e,0,32)),o=BigInt(Os(e,32,64));return{prefix:4,x:r,y:o}}if(e.length===132){let r=Number(Os(e,0,1)),o=BigInt(Os(e,1,33)),i=BigInt(Os(e,33,65));return{prefix:r,x:o,y:i}}let t=Number(Os(e,0,1)),n=BigInt(Os(e,1,33));return{prefix:t,x:n}}function ale(e,t={}){T4e(e);let{prefix:n,x:r,y:o}=e,{includePrefix:i=!0}=t;return ic(i?mi(n,{size:1}):\"0x\",mi(r,{size:32}),typeof o==\"bigint\"?mi(o,{size:32}):\"0x\")}var nle,vK,rle,ole,ile,sle=$(()=>{f();O_();Xh();Vl();PB();nle=class extends Sn{constructor({publicKey:t}){super(`Value \\\\`${N_(t)}\\\\` is not a valid public key.`,{metaMessages:[\"Public key must contain:\",\"- an `x` and `prefix` value (compressed)\",\"- an `x`, `y`, and `prefix` value (uncompressed)\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidError\"})}},vK=class extends Sn{constructor({prefix:t,cause:n}){super(`Prefix \"${t}\" is invalid.`,{cause:n}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidPrefixError\"})}},rle=class extends Sn{constructor(){super(\"Prefix must be 2 or 3 for compressed public keys.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidCompressedPrefixError\"})}},ole=class extends Sn{constructor(){super(\"Prefix must be 4 for uncompressed public keys.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidUncompressedPrefixError\"})}},ile=class extends Sn{constructor({publicKey:t}){super(`Value \\\\`${t}\\\\` is an invalid public key size.`,{metaMessages:[\"Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).\",`Received ${ks(Lk(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidSerializedSizeError\"})}}});function v3(e,t={}){let{strict:n=!0}=t;if(!Ovt.test(e))throw new wK({address:e,cause:new cle});if(n){if(e.toLowerCase()===e)return;if(xK(e)!==e)throw new wK({address:e,cause:new ule})}}function xK(e){if(yK.has(e))return yK.get(e);v3(e,{strict:!1});let t=e.substring(2).toLowerCase(),n=b3(aRe(t),{as:\"Bytes\"}),r=t.split(\"\");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&r[i]&&(r[i]=r[i].toUpperCase()),(n[i>>1]&15)>=8&&r[i+1]&&(r[i+1]=r[i+1].toUpperCase());let o=`0x${r.join(\"\")}`;return yK.set(e,o),o}function Nvt(e,t={}){let{checksum:n=!1}=t;return v3(e),n?xK(e):e}function k4e(e,t={}){let n=b3(`0x${ale(e).slice(4)}`).substring(26);return Nvt(`0x${n}`,t)}function EK(e,t={}){let{strict:n=!0}=t??{};try{return v3(e,{strict:n}),!0}catch{return!1}}var Ovt,wK,cle,ule,rL=$(()=>{f();O_();_4e();Xh();bK();sle();Ovt=/^0x[a-fA-F0-9]{40}$/;wK=class extends Sn{constructor({address:t,cause:n}){super(`Address \"${t}\" is invalid.`,{cause:n}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidAddressError\"})}},cle=class extends Sn{constructor(){super(\"Address is not a 20 byte (40 hexadecimal character) value.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidInputError\"})}},ule=class extends Sn{constructor(){super(\"Address does not match its checksum counterpart.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidChecksumError\"})}}});var O4e,N4e,SK,q2n,K2n,Y2n,Z2n,Q2n,J2n,X2n,$2n,eEn,tEn,nEn,rEn,oEn,iEn,aEn,sEn,cEn,uEn,lEn,dEn,fEn,pEn,hEn,mEn,gEn,yEn,bEn,vEn,wEn,xEn,EEn,AEn,SEn,_En,TEn,CEn,REn,IEn,kEn,OEn,NEn,PEn,MEn,DEn,BEn,LEn,UEn,FEn,HEn,zEn,jEn,WEn,VEn,GEn,qEn,KEn,YEn,ZEn,QEn,JEn,XEn,$En,eAn,tAn,nAn,rAn,oAn,iAn,aAn,sAn,cAn,uAn,lAn,dAn,fAn,pAn,hAn,mAn,gAn,yAn,bAn,vAn,wAn,xAn,EAn,AAn,SAn,_An,TAn,CAn,RAn,IAn,kAn,OAn,NAn,lle,_K=$(()=>{f();O4e=/^(.*)\\\\[([0-9]*)\\\\]$/,N4e=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,SK=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,q2n=2n**(8n-1n)-1n,K2n=2n**(16n-1n)-1n,Y2n=2n**(24n-1n)-1n,Z2n=2n**(32n-1n)-1n,Q2n=2n**(40n-1n)-1n,J2n=2n**(48n-1n)-1n,X2n=2n**(56n-1n)-1n,$2n=2n**(64n-1n)-1n,eEn=2n**(72n-1n)-1n,tEn=2n**(80n-1n)-1n,nEn=2n**(88n-1n)-1n,rEn=2n**(96n-1n)-1n,oEn=2n**(104n-1n)-1n,iEn=2n**(112n-1n)-1n,aEn=2n**(120n-1n)-1n,sEn=2n**(128n-1n)-1n,cEn=2n**(136n-1n)-1n,uEn=2n**(144n-1n)-1n,lEn=2n**(152n-1n)-1n,dEn=2n**(160n-1n)-1n,fEn=2n**(168n-1n)-1n,pEn=2n**(176n-1n)-1n,hEn=2n**(184n-1n)-1n,mEn=2n**(192n-1n)-1n,gEn=2n**(200n-1n)-1n,yEn=2n**(208n-1n)-1n,bEn=2n**(216n-1n)-1n,vEn=2n**(224n-1n)-1n,wEn=2n**(232n-1n)-1n,xEn=2n**(240n-1n)-1n,EEn=2n**(248n-1n)-1n,AEn=2n**(256n-1n)-1n,SEn=-(2n**(8n-1n)),_En=-(2n**(16n-1n)),TEn=-(2n**(24n-1n)),CEn=-(2n**(32n-1n)),REn=-(2n**(40n-1n)),IEn=-(2n**(48n-1n)),kEn=-(2n**(56n-1n)),OEn=-(2n**(64n-1n)),NEn=-(2n**(72n-1n)),PEn=-(2n**(80n-1n)),MEn=-(2n**(88n-1n)),DEn=-(2n**(96n-1n)),BEn=-(2n**(104n-1n)),LEn=-(2n**(112n-1n)),UEn=-(2n**(120n-1n)),FEn=-(2n**(128n-1n)),HEn=-(2n**(136n-1n)),zEn=-(2n**(144n-1n)),jEn=-(2n**(152n-1n)),WEn=-(2n**(160n-1n)),VEn=-(2n**(168n-1n)),GEn=-(2n**(176n-1n)),qEn=-(2n**(184n-1n)),KEn=-(2n**(192n-1n)),YEn=-(2n**(200n-1n)),ZEn=-(2n**(208n-1n)),QEn=-(2n**(216n-1n)),JEn=-(2n**(224n-1n)),XEn=-(2n**(232n-1n)),$En=-(2n**(240n-1n)),eAn=-(2n**(248n-1n)),tAn=-(2n**(256n-1n)),nAn=2n**8n-1n,rAn=2n**16n-1n,oAn=2n**24n-1n,iAn=2n**32n-1n,aAn=2n**40n-1n,sAn=2n**48n-1n,cAn=2n**56n-1n,uAn=2n**64n-1n,lAn=2n**72n-1n,dAn=2n**80n-1n,fAn=2n**88n-1n,pAn=2n**96n-1n,hAn=2n**104n-1n,mAn=2n**112n-1n,gAn=2n**120n-1n,yAn=2n**128n-1n,bAn=2n**136n-1n,vAn=2n**144n-1n,wAn=2n**152n-1n,xAn=2n**160n-1n,EAn=2n**168n-1n,AAn=2n**176n-1n,SAn=2n**184n-1n,_An=2n**192n-1n,TAn=2n**200n-1n,CAn=2n**208n-1n,RAn=2n**216n-1n,IAn=2n**224n-1n,kAn=2n**232n-1n,OAn=2n**240n-1n,NAn=2n**248n-1n,lle=2n**256n-1n});function w3(e,t,n){let{checksumAddress:r,staticPosition:o}=n,i=ple(t.type);if(i){let[a,c]=i;return Mvt(e,{...t,type:c},{checksumAddress:r,length:a,staticPosition:o})}if(t.type===\"tuple\")return Uvt(e,t,{checksumAddress:r,staticPosition:o});if(t.type===\"address\")return Pvt(e,{checksum:r});if(t.type===\"bool\")return Dvt(e);if(t.type.startsWith(\"bytes\"))return Bvt(e,t,{staticPosition:o});if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\"))return Lvt(e,t);if(t.type===\"string\")return Fvt(e,{staticPosition:o});throw new $k(t.type)}function Pvt(e,t={}){let{checksum:n=!1}=t,r=e.readBytes(32);return[(i=>n?xK(i):i)($c(sRe(r,-20))),32]}function Mvt(e,t,n){let{checksumAddress:r,length:o,staticPosition:i}=n;if(!o){let l=uw(e.readBytes(dle)),d=i+l,m=d+M4e;e.setPosition(d);let h=uw(e.readBytes(M4e)),g=oL(t),y=0,w=[];for(let x=0;x<h;++x){e.setPosition(m+(g?x*32:y));let[I,C]=w3(e,t,{checksumAddress:r,staticPosition:m});y+=C,w.push(I)}return e.setPosition(i+32),[w,32]}if(oL(t)){let l=uw(e.readBytes(dle)),d=i+l,m=[];for(let h=0;h<o;++h){e.setPosition(d+h*32);let[g]=w3(e,t,{checksumAddress:r,staticPosition:d});m.push(g)}return e.setPosition(i+32),[m,32]}let a=0,c=[];for(let l=0;l<o;++l){let[d,m]=w3(e,t,{checksumAddress:r,staticPosition:i+a});a+=m,c.push(d)}return[c,a]}function Dvt(e){return[uRe(e.readBytes(32),{size:32}),32]}function Bvt(e,t,{staticPosition:n}){let[r,o]=t.type.split(\"bytes\");if(!o){let a=uw(e.readBytes(32));e.setPosition(n+a);let c=uw(e.readBytes(32));if(c===0)return e.setPosition(n+32),[\"0x\",32];let l=e.readBytes(c);return e.setPosition(n+32),[$c(l),32]}return[$c(e.readBytes(Number.parseInt(o,10),32)),32]}function Lvt(e,t){let n=t.type.startsWith(\"int\"),r=Number.parseInt(t.type.split(\"int\")[1]||\"256\",10),o=e.readBytes(32);return[r>48?cRe(o,{signed:n}):uw(o,{signed:n}),32]}function Uvt(e,t,n){let{checksumAddress:r,staticPosition:o}=n,i=t.components.length===0||t.components.some(({name:l})=>!l),a=i?[]:{},c=0;if(oL(t)){let l=uw(e.readBytes(dle)),d=o+l;for(let m=0;m<t.components.length;++m){let h=t.components[m];e.setPosition(d+c);let[g,y]=w3(e,h,{checksumAddress:r,staticPosition:d});c+=y,a[i?m:h?.name]=g}return e.setPosition(o+32),[a,32]}for(let l=0;l<t.components.length;++l){let d=t.components[l],[m,h]=w3(e,d,{checksumAddress:r,staticPosition:o});a[i?l:d?.name]=m,c+=h}return[a,c]}function Fvt(e,{staticPosition:t}){let n=uw(e.readBytes(32)),r=t+n;e.setPosition(r);let o=uw(e.readBytes(32));if(o===0)return e.setPosition(t+32),[\"\",32];let i=e.readBytes(o,32),a=lRe(cue(i));return e.setPosition(t+32),[a,32]}function D4e({checksumAddress:e,parameters:t,values:n}){let r=[];for(let o=0;o<t.length;o++)r.push(fle({checksumAddress:e,parameter:t[o],value:n[o]}));return r}function fle({checksumAddress:e=!1,parameter:t,value:n}){let r=t,o=ple(r.type);if(o){let[i,a]=o;return zvt(n,{checksumAddress:e,length:i,parameter:{...r,type:a}})}if(r.type===\"tuple\")return qvt(n,{checksumAddress:e,parameter:r});if(r.type===\"address\")return Hvt(n,{checksum:e});if(r.type===\"bool\")return Wvt(n);if(r.type.startsWith(\"uint\")||r.type.startsWith(\"int\")){let i=r.type.startsWith(\"int\"),[,,a=\"256\"]=SK.exec(r.type)??[];return Vvt(n,{signed:i,size:Number(a)})}if(r.type.startsWith(\"bytes\"))return jvt(n,{type:r.type});if(r.type===\"string\")return Gvt(n);throw new $k(r.type)}function TK(e){let t=0;for(let i=0;i<e.length;i++){let{dynamic:a,encoded:c}=e[i];a?t+=32:t+=ks(c)}let n=[],r=[],o=0;for(let i=0;i<e.length;i++){let{dynamic:a,encoded:c}=e[i];a?(n.push(mi(t+o,{size:32})),r.push(c),o+=ks(c)):n.push(c)}return ic(...n,...r)}function Hvt(e,t){let{checksum:n=!1}=t;return v3(e,{strict:n}),{dynamic:!1,encoded:dE(e.toLowerCase())}}function zvt(e,t){let{checksumAddress:n,length:r,parameter:o}=t,i=r===null;if(!Array.isArray(e))throw new RK(e);if(!i&&e.length!==r)throw new CK({expectedLength:r,givenLength:e.length,type:`${o.type}[${r}]`});let a=!1,c=[];for(let l=0;l<e.length;l++){let d=fle({checksumAddress:n,parameter:o,value:e[l]});d.dynamic&&(a=!0),c.push(d)}if(i||a){let l=TK(c);if(i){let d=mi(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?ic(d,l):d}}if(a)return{dynamic:!0,encoded:l}}return{dynamic:!1,encoded:ic(...c.map(({encoded:l})=>l))}}function jvt(e,{type:t}){let[,n]=t.split(\"bytes\"),r=ks(e);if(!n){let o=e;return r%32!==0&&(o=lw(o,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:ic(dE(mi(r,{size:32})),o)}}if(r!==Number.parseInt(n,10))throw new iL({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:lw(e)}}function Wvt(e){if(typeof e!=\"boolean\")throw new Sn(`Invalid boolean value: \"${e}\" (type: ${typeof e}). Expected: \\\\`true\\\\` or \\\\`false\\\\`.`);return{dynamic:!1,encoded:dE(Eq(e))}}function Vvt(e,{signed:t,size:n}){if(typeof n==\"number\"){let r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new MB({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:mi(e,{size:32,signed:t})}}function Gvt(e){let t=Uk(e),n=Math.ceil(ks(t)/32),r=[];for(let o=0;o<n;o++)r.push(lw(Os(t,o*32,(o+1)*32)));return{dynamic:!0,encoded:ic(lw(mi(ks(t),{size:32})),...r)}}function qvt(e,t){let{checksumAddress:n,parameter:r}=t,o=!1,i=[];for(let a=0;a<r.components.length;a++){let c=r.components[a],l=Array.isArray(e)?a:c.name,d=fle({checksumAddress:n,parameter:c,value:e[l]});i.push(d),d.dynamic&&(o=!0)}return{dynamic:o,encoded:o?TK(i):ic(...i.map(({encoded:a})=>a))}}function ple(e){let t=e.match(/^(.*)\\\\[(\\\\d+)?\\\\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function oL(e){let{type:t}=e;if(t===\"string\"||t===\"bytes\"||t.endsWith(\"[]\"))return!0;if(t===\"tuple\")return e.components?.some(oL);let n=ple(e.type);return!!(n&&oL({...e,type:n[1]}))}var M4e,dle,B4e=$(()=>{f();eO();rL();O_();Xh();Vl();_K();M4e=32,dle=32});function kK(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(Yvt);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}var Yvt,IK,hle,mle,gle=$(()=>{f();Xh();Yvt={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new mle({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new hle({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new IK({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new IK({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};IK=class extends Sn{constructor({offset:t}){super(`Offset \\\\`${t}\\\\` cannot be negative.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.NegativeOffsetError\"})}},hle=class extends Sn{constructor({length:t,position:n}){super(`Position \\\\`${n}\\\\` is out of bounds (\\\\`0 < position < ${t}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.PositionOutOfBoundsError\"})}},mle=class extends Sn{constructor({count:t,limit:n}){super(`Recursive read limit of \\\\`${n}\\\\` exceeded (recursive read count: \\\\`${t}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.RecursiveReadLimitExceededError\"})}}});function tO(e,t,n={}){let{as:r=\"Array\",checksumAddress:o=!1}=n,i=typeof t==\"string\"?Bk(t):t,a=kK(i);if(zg(i)===0&&e.length>0)throw new vle;if(zg(i)&&zg(i)<32)throw new ble({data:typeof t==\"string\"?t:$c(t),parameters:e,size:zg(i)});let c=0,l=r===\"Array\"?[]:{};for(let d=0;d<e.length;++d){let m=e[d];a.setPosition(c);let[h,g]=w3(a,m,{checksumAddress:o,staticPosition:0});c+=g,r===\"Array\"?l.push(h):l[m.name??d]=h}return l}function V_(e,t,n){let{checksumAddress:r=!1}=n??{};if(e.length!==t.length)throw new OK({expectedLength:e.length,givenLength:t.length});let o=D4e({checksumAddress:r,parameters:e,values:t}),i=TK(o);return i.length===0?\"0x\":i}function yle(e,t){if(e.length!==t.length)throw new OK({expectedLength:e.length,givenLength:t.length});let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t[r];n.push(yle.encode(o,i))}return ic(...n)}function sL(e){return Array.isArray(e)&&typeof e[0]==\"string\"?oB(e):typeof e==\"string\"?oB(e):e}var ble,vle,CK,iL,OK,RK,$k,eO=$(()=>{f();_5();rL();O_();Xh();Vl();B4e();gle();_K();(function(e){function t(n,r,o=!1){if(n===\"address\"){let l=r;return v3(l),dE(l.toLowerCase(),o?32:0)}if(n===\"string\")return Uk(r);if(n===\"bytes\")return r;if(n===\"bool\")return dE(Eq(r),o?32:1);let i=n.match(SK);if(i){let[l,d,m=\"256\"]=i,h=Number.parseInt(m,10)/8;return mi(r,{size:o?32:h,signed:d===\"int\"})}let a=n.match(N4e);if(a){let[l,d]=a;if(Number.parseInt(d,10)!==(r.length-2)/2)throw new iL({expectedSize:Number.parseInt(d,10),value:r});return lw(r,o?32:0)}let c=n.match(O4e);if(c&&Array.isArray(r)){let[l,d]=c,m=[];for(let h=0;h<r.length;h++)m.push(t(d,r[h],!0));return m.length===0?\"0x\":ic(...m)}throw new $k(n)}e.encode=t})(yle||(yle={}));ble=class extends Sn{constructor({data:t,parameters:n,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${W2(n)})`,`Data:   ${t} (${r} bytes)`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.DataSizeTooSmallError\"})}},vle=class extends Sn{constructor(){super(\\'Cannot decode zero data (\"0x\") with ABI parameters.\\'),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.ZeroDataError\"})}},CK=class extends Sn{constructor({expectedLength:t,givenLength:n,type:r}){super(`Array length mismatch for type \\\\`${r}\\\\`. Expected: \\\\`${t}\\\\`. Given: \\\\`${n}\\\\`.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.ArrayLengthMismatchError\"})}},iL=class extends Sn{constructor({expectedSize:t,value:n}){super(`Size of bytes \"${n}\" (bytes${ks(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.BytesSizeMismatchError\"})}},OK=class extends Sn{constructor({expectedLength:t,givenLength:n}){super([\"ABI encoding parameters/values length mismatch.\",`Expected length (parameters): ${t}`,`Given length (values): ${n}`].join(`\\n`)),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.LengthMismatchError\"})}},RK=class extends Sn{constructor(t){super(`Value \\\\`${t}\\\\` is not a valid array.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.InvalidArrayError\"})}},$k=class extends Sn{constructor(t){super(`Type \\\\`${t}\\\\` is not a valid ABI Type.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.InvalidTypeError\"})}}});function Zvt(e,t){let{as:n}=t,r=F4e(e),o=kK(new Uint8Array(r.length));return r.encode(o),n===\"Hex\"?$c(o.bytes):o.bytes}function U4e(e,t={}){let{as:n=\"Hex\"}=t;return Zvt(e,{as:n})}function F4e(e){return Array.isArray(e)?Qvt(e.map(t=>F4e(t))):Jvt(e)}function Qvt(e){let t=e.reduce((o,i)=>o+i.length,0),n=H4e(t);return{length:t<=55?1+t:1+n+t,encode(o){t<=55?o.pushByte(192+t):(o.pushByte(247+n),n===1?o.pushUint8(t):n===2?o.pushUint16(t):n===3?o.pushUint24(t):o.pushUint32(t));for(let{encode:i}of e)i(o)}}}function Jvt(e){let t=typeof e==\"string\"?Bk(e):e,n=H4e(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(o){t.length===1&&t[0]<128?o.pushBytes(t):t.length<=55?(o.pushByte(128+t.length),o.pushBytes(t)):(o.pushByte(183+n),n===1?o.pushUint8(t.length):n===2?o.pushUint16(t.length):n===3?o.pushUint24(t.length):o.pushUint32(t.length),o.pushBytes(t))}}}function H4e(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new Sn(\"Length is too large.\")}var z4e=$(()=>{f();O_();Xh();Vl();gle()});function Sle(e,t={}){let{recovered:n}=t;if(typeof e.r>\"u\")throw new cL({signature:e});if(typeof e.s>\"u\")throw new cL({signature:e});if(n&&typeof e.yParity>\"u\")throw new cL({signature:e});if(e.r<0n||e.r>lle)throw new xle({value:e.r});if(e.s<0n||e.s>lle)throw new Ele({value:e.s});if(typeof e.yParity==\"number\"&&e.yParity!==0&&e.yParity!==1)throw new uL({value:e.yParity})}function $vt(e){return j4e($c(e))}function j4e(e){if(e.length!==130&&e.length!==132)throw new wle({signature:e});let t=BigInt(Os(e,0,32)),n=BigInt(Os(e,32,64)),r=(()=>{let o=+`0x${e.slice(130)}`;if(!Number.isNaN(o))try{return Cle(o)}catch{throw new uL({value:o})}})();return typeof r>\"u\"?{r:t,s:n}:{r:t,s:n,yParity:r}}function _le(e){if(!(typeof e.r>\"u\")&&!(typeof e.s>\"u\"))return Tle(e)}function Tle(e){let t=typeof e==\"string\"?j4e(e):e instanceof Uint8Array?$vt(e):typeof e.r==\"string\"?twt(e):e.v?ewt(e):{r:e.r,s:e.s,...typeof e.yParity<\"u\"?{yParity:e.yParity}:{}};return Sle(t),t}function ewt(e){return{r:e.r,s:e.s,yParity:Cle(e.v)}}function twt(e){let t=(()=>{let n=e.v?Number(e.v):void 0,r=e.yParity?Number(e.yParity):void 0;if(typeof n==\"number\"&&typeof r!=\"number\"&&(r=Cle(n)),typeof r!=\"number\")throw new uL({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function W4e(e){let{r:t,s:n,yParity:r}=e;return[r?\"0x01\":\"0x\",t===0n?\"0x\":lue(mi(t)),n===0n?\"0x\":lue(mi(n))]}function Cle(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new Ale({value:e})}var wle,cL,xle,Ele,uL,Ale,Rle=$(()=>{f();Xh();Vl();PB();_K();wle=class extends Sn{constructor({signature:t}){super(`Value \\\\`${t}\\\\` is an invalid signature size.`,{metaMessages:[\"Expected: 64 bytes or 65 bytes.\",`Received ${ks(Lk(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSerializedSizeError\"})}},cL=class extends Sn{constructor({signature:t}){super(`Signature \\\\`${N_(t)}\\\\` is missing either an \\\\`r\\\\`, \\\\`s\\\\`, or \\\\`yParity\\\\` property.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.MissingPropertiesError\"})}},xle=class extends Sn{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidRError\"})}},Ele=class extends Sn{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSError\"})}},uL=class extends Sn{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidYParityError\"})}},Ale=class extends Sn{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidVError\"})}}});function G4e(e,t={}){return typeof e.chainId==\"string\"?nwt(e):{...e,...t.signature}}function nwt(e){let{address:t,chainId:n,nonce:r}=e,o=_le(e);return{address:t,chainId:Number(n),nonce:BigInt(r),...o}}function q4e(e){return rwt(e,{presign:!0})}function rwt(e,t={}){let{presign:n}=t;return b3(ic(\"0x05\",U4e(owt(n?{address:e.address,chainId:e.chainId,nonce:e.nonce}:e))))}function owt(e){let{address:t,chainId:n,nonce:r}=e,o=_le(e);return[n?mi(n):\"0x\",t,r?mi(r):\"0x\",...o?W4e(o):[]]}var K4e=$(()=>{f();bK();Vl();z4e();Rle()});function Y4e(e){return k4e(awt(e))}function awt(e){let{payload:t,signature:n}=e,{r,s:o,yParity:i}=n,c=new Jb.Signature(BigInt(r),BigInt(o)).addRecoveryBit(i).recoverPublicKey(Lk(t).substring(2));return C4e(c)}var Z4e=$(()=>{f();KB();rL();Vl();sle()});var lL={};as(lL,{InvalidWrappedSignatureError:()=>NK,assert:()=>PK,from:()=>cwt,magicBytes:()=>Ile,suffixParameters:()=>kle,unwrap:()=>Q4e,validate:()=>lwt,wrap:()=>uwt});function PK(e){if(typeof e==\"string\"){if(Os(e,-32)!==Ile)throw new NK(e)}else Sle(e.authorization)}function cwt(e){return typeof e==\"string\"?Q4e(e):e}function Q4e(e){PK(e);let t=vq(Os(e,-64,-32)),n=Os(e,-t-64,-64),r=Os(e,0,-t-64),[o,i,a]=tO(kle,n);return{authorization:G4e({address:o.delegation,chainId:Number(o.chainId),nonce:o.nonce,yParity:o.yParity,r:o.r,s:o.s}),signature:r,...a&&a!==\"0x\"?{data:a,to:i}:{}}}function uwt(e){let{data:t,signature:n}=e;PK(e);let r=Y4e({payload:q4e(e.authorization),signature:Tle(e.authorization)}),o=V_(kle,[{...e.authorization,delegation:e.authorization.address,chainId:BigInt(e.authorization.chainId)},e.to??r,t??\"0x\"]),i=mi(ks(o),{size:32});return ic(n,o,i,Ile)}function lwt(e){try{return PK(e),!0}catch{return!1}}var Ile,kle,NK,J4e=$(()=>{f();eO();K4e();Xh();Vl();Z4e();Rle();Ile=\"0x8010801080108010801080108010801080108010801080108010801080108010\",kle=sL(\"(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data\");NK=class extends Sn{constructor(t){super(`Value \\\\`${t}\\\\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureErc8010.InvalidWrappedSignatureError\"})}}});var X4e=$(()=>{f();J4e()});function Ole(e){if(!E4e(e))return{signature:e};let[t,n,r]=Pu([{type:\"address\"},{type:\"bytes\"},{type:\"bytes\"}],e);return{address:t,data:n,signature:r}}var $4e=$(()=>{f();T5();A4e()});function MK(e){let{address:t,data:n,signature:r,to:o=\"hex\"}=e,i=nc([oa([{type:\"address\"},{type:\"bytes\"},{type:\"bytes\"}],[t,n,r]),mK]);return o===\"hex\"?i:Si(i)}var e8e=$(()=>{f();ele();Lg();Nu();Ou()});var DK,t8e=$(()=>{f();Jn();DK=class extends Oe{constructor({value:t}){super(`Number \\\\`${t}\\\\` is not a valid decimal number.`,{name:\"InvalidDecimalNumberError\"})}}});function G_(e,t){if(!/^(-?)([0-9]*)\\\\.?([0-9]*)$/.test(e))throw new DK({value:e});let[n,r=\"0\"]=e.split(\".\"),o=n.startsWith(\"-\");if(o&&(n=n.slice(1)),r=r.replace(/(0+)$/,\"\"),t===0)Math.round(+`.${r}`)===1&&(n=`${BigInt(n)+1n}`),r=\"\";else if(r.length>t){let[i,a,c]=[r.slice(0,t-1),r.slice(t-1,t),r.slice(t)],l=Math.round(+`${a}.${c}`);l>9?r=`${BigInt(i)+BigInt(1)}0`.padStart(i.length+1,\"0\"):r=`${i}${l}`,r.length>t&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,t)}else r=r.padEnd(t,\"0\");return BigInt(`${o?\"-\":\"\"}${n}${r}`)}var n8e=$(()=>{f();t8e()});var q_=$(()=>{f();La();Kv();r_();Ac();An();p5()});function dwt(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function r8e(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?Lo(e.nonce):void 0,storageProof:e.storageProof?dwt(e.storageProof):void 0}}var o8e=$(()=>{f();q_()});async function i8e(e,{address:t,blockNumber:n,blockTag:r,storageKeys:o}){let i=r??\"latest\",a=n!==void 0?Pe(n):void 0,c=await e.request({method:\"eth_getProof\",params:[t,o,a||i]});return r8e(c)}var a8e=$(()=>{f();An();o8e()});async function s8e(e,{address:t,blockNumber:n,blockTag:r=\"latest\",slot:o}){let i=n!==void 0?Pe(n):void 0;return await e.request({method:\"eth_getStorageAt\",params:[t,o,i||r]})}var c8e=$(()=>{f();An()});async function hE(e,{blockHash:t,blockNumber:n,blockTag:r,hash:o,index:i}){let a=r||\"latest\",c=n!==void 0?Pe(n):void 0,l=null;if(o?l=await e.request({method:\"eth_getTransactionByHash\",params:[o]},{dedupe:!0}):t?l=await e.request({method:\"eth_getTransactionByBlockHashAndIndex\",params:[t,Pe(i)]},{dedupe:!0}):(c||a)&&(l=await e.request({method:\"eth_getTransactionByBlockNumberAndIndex\",params:[c||a,Pe(i)]},{dedupe:!!c})),!l)throw new k8({blockHash:t,blockNumber:n,blockTag:a,hash:o,index:i});return(e.chain?.formatters?.transaction?.format||d5)(l,\"getTransaction\")}var dL=$(()=>{f();Fh();An();S9()});async function u8e(e,{hash:t,transactionReceipt:n}){let[r,o]=await Promise.all([Ct(e,hw,\"getBlockNumber\")({}),t?Ct(e,hE,\"getTransaction\")({hash:t}):void 0]),i=n?.blockNumber||o?.blockNumber;return i?r-i+1n:0n}var l8e=$(()=>{f();Yo();Zk();dL()});async function nO(e,{hash:t}){let n=await e.request({method:\"eth_getTransactionReceipt\",params:[t]},{dedupe:!0});if(!n)throw new O8({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||f5)(n,\"getTransactionReceipt\")}var Nle=$(()=>{f();Fh();_8()});async function fL(e,t){let{account:n,authorizationList:r,allowFailure:o=!0,blockNumber:i,blockOverrides:a,blockTag:c,stateOverride:l}=t,d=t.contracts,{batchSize:m=t.batchSize??1024,deployless:h=t.deployless??!1}=typeof e.batch?.multicall==\"object\"?e.batch.multicall:{},g=(()=>{if(t.multicallAddress)return t.multicallAddress;if(h)return null;if(e.chain)return Pg({blockNumber:i,chain:e.chain,contract:\"multicall3\"});throw new Error(\"client chain not configured. multicallAddress is required.\")})(),y=[[]],w=0,x=0;for(let M=0;M<d.length;M++){let{abi:B,address:z,args:G,functionName:J}=d[M];try{let ne=xn({abi:B,args:G,functionName:J});x+=(ne.length-2)/2,m>0&&x>m&&y[w].length>0&&(w++,x=(ne.length-2)/2,y[w]=[]),y[w]=[...y[w],{allowFailure:!0,callData:ne,target:z}]}catch(ne){let ie=s0(ne,{abi:B,address:z,args:G,docsPath:\"/docs/contract/multicall\",functionName:J,sender:n});if(!o)throw ie;y[w]=[...y[w],{allowFailure:!0,callData:\"0x\",target:z}]}}let I=await Promise.allSettled(y.map(M=>Ct(e,_i,\"readContract\")({...g===null?{code:Fk}:{address:g},abi:R_,account:n,args:[M],authorizationList:r,blockNumber:i,blockOverrides:a,blockTag:c,functionName:\"aggregate3\",stateOverride:l}))),C=[];for(let M=0;M<I.length;M++){let B=I[M];if(B.status===\"rejected\"){if(!o)throw B.reason;for(let G=0;G<y[M].length;G++)C.push({status:\"failure\",error:B.reason,result:void 0});continue}let z=B.value;for(let G=0;G<z.length;G++){let{returnData:J,success:ne}=z[G],{callData:ie}=y[M][G],{abi:ae,address:te,functionName:Z,args:X}=d[C.length];try{if(ie===\"0x\")throw new Bg;if(!ne)throw new Vb({data:J});let F=Qh({abi:ae,args:X,data:J,functionName:Z});C.push(o?{result:F,status:\"success\"}:F)}catch(F){let R=s0(F,{abi:ae,address:te,args:X,docsPath:\"/docs/contract/multicall\",functionName:Z});if(!o)throw R;C.push({error:R,result:void 0,status:\"failure\"})}}}if(C.length!==d.length)throw new Oe(\"multicall results mismatch\");return C}var Ple=$(()=>{f();oE();BB();oc();Jn();$v();I_();zp();A5();c3();Yo();jg()});async function pL(e,t){let{blockNumber:n,blockTag:r=e.experimental_blockTag??\"latest\",blocks:o,returnFullTransactions:i,traceTransfers:a,validation:c}=t;try{let l=[];for(let g of o){let y=g.blockOverrides?Aq(g.blockOverrides):void 0,w=g.calls.map(I=>{let C=I,M=C.account?Bn(C.account):void 0,B=C.abi?xn(C):C.data,z={...C,account:M,data:C.dataSuffix?qi([B||\"0x\",C.dataSuffix]):B,from:C.from??M?.address};return Ef(z),Uh(z)}),x=g.stateOverrides?P_(g.stateOverrides):void 0;l.push({blockOverrides:y,calls:w,stateOverrides:x})}let m=(typeof n==\"bigint\"?Pe(n):void 0)||r;return(await e.request({method:\"eth_simulateV1\",params:[{blockStateCalls:l,returnFullTransactions:i,traceTransfers:a,validation:c},m]})).map((g,y)=>({..._9(g),calls:g.calls.map((w,x)=>{let{abi:I,args:C,functionName:M,to:B}=o[y].calls[x],z=w.error?.data??w.returnData,G=BigInt(w.gasUsed),J=w.logs?.map(te=>Hl(te)),ne=w.status===\"0x1\"?\"success\":\"failure\",ie=I&&ne===\"success\"&&z!==\"0x\"?Qh({abi:I,data:z,functionName:M}):null,ae=(()=>{if(ne===\"success\")return;let te;if(w.error?.data===\"0x\"?te=new Bg:w.error&&(te=new Vb(w.error)),!!te)return s0(te,{abi:I??[],address:B??\"0x\",args:C,functionName:M??\"<unknown>\"})})();return{data:z,gasUsed:G,logs:J,status:ne,...ne===\"success\"?{result:ie}:{error:ae}}})}))}catch(l){let d=l,m=g_(d,{});throw m instanceof Og?d:m}}var Mle=$(()=>{f();due();La();oc();$v();l_();I_();zp();Nu();An();c3();lB();UV();D2();o_();LB();Y2()});function LK(e){let t=!0,n=\"\",r=0,o=\"\",i=!1;for(let a=0;a<e.length;a++){let c=e[a];if([\"(\",\")\",\",\"].includes(c)&&(t=!0),c===\"(\"&&r++,c===\")\"&&r--,!!t){if(r===0){if(c===\" \"&&[\"event\",\"function\",\"error\",\"\"].includes(o))o=\"\";else if(o+=c,c===\")\"){i=!0;break}continue}if(c===\" \"){e[a-1]!==\",\"&&n!==\",\"&&n!==\",(\"&&(n=\"\",t=!1);continue}o+=c,n+=c}}if(!i)throw new Sn(\"Unable to normalize signature.\");return o}function BK(e,t){let n=typeof e,r=t.type;switch(r){case\"address\":return EK(e,{strict:!1});case\"bool\":return n===\"boolean\";case\"function\":return n===\"string\";case\"string\":return n===\"string\";default:return r===\"tuple\"&&\"components\"in t?Object.values(t.components).every((o,i)=>BK(Object.values(e)[i],o)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n===\"number\"||n===\"bigint\":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n===\"string\"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\\\\[[0-9]{0,}\\\\])+$/.test(r)?Array.isArray(e)&&e.every(o=>BK(o,{...t,type:r.replace(/(\\\\[[0-9]{0,}\\\\])$/,\"\")})):!1}}function Dle(e,t,n){for(let r in e){let o=e[r],i=t[r];if(o.type===\"tuple\"&&i.type===\"tuple\"&&\"components\"in o&&\"components\"in i)return Dle(o.components,i.components,n[r]);let a=[o.type,i.type];if(a.includes(\"address\")&&a.includes(\"bytes20\")?!0:a.includes(\"address\")&&a.includes(\"string\")?EK(n[r],{strict:!1}):a.includes(\"address\")&&a.includes(\"bytes\")?EK(n[r],{strict:!1}):!1)return a}}var d8e=$(()=>{f();rL();Xh()});function UK(e,t={}){let{prepare:n=!0}=t,r=Array.isArray(e)?rB(e):typeof e==\"string\"?rB(e):e;return{...r,...n?{hash:rO(r)}:{}}}function hL(e,t,n){let{args:r=[],prepare:o=!0}=n??{},i=DB(t,{strict:!1}),a=e.filter(d=>i?d.type===\"function\"||d.type===\"error\"?Lle(d)===Os(t,0,4):d.type===\"event\"?rO(d)===t:!1:\"name\"in d&&d.name===t);if(a.length===0)throw new K_({name:t});if(a.length===1)return{...a[0],...o?{hash:rO(a[0])}:{}};let c;for(let d of a){if(!(\"inputs\"in d))continue;if(!r||r.length===0){if(!d.inputs||d.inputs.length===0)return{...d,...o?{hash:rO(d)}:{}};continue}if(!d.inputs||d.inputs.length===0||d.inputs.length!==r.length)continue;if(r.every((h,g)=>{let y=\"inputs\"in d&&d.inputs[g];return y?BK(h,y):!1})){if(c&&\"inputs\"in c&&c.inputs){let h=Dle(d.inputs,c.inputs,r);if(h)throw new Ble({abiItem:d,type:h[0]},{abiItem:c,type:h[1]})}c=d}}let l=(()=>{if(c)return c;let[d,...m]=a;return{...d,overloads:m}})();if(!l)throw new K_({name:t});return{...l,...o?{hash:rO(l)}:{}}}function Lle(...e){let t=(()=>{if(Array.isArray(e[0])){let[n,r]=e;return hL(n,r)}return e[0]})();return Os(rO(t),0,4)}function pwt(...e){let t=(()=>{if(Array.isArray(e[0])){let[r,o]=e;return hL(r,o)}return e[0]})(),n=typeof t==\"string\"?t:S5(t);return LK(n)}function rO(...e){let t=(()=>{if(Array.isArray(e[0])){let[n,r]=e;return hL(n,r)}return e[0]})();return typeof t!=\"string\"&&\"hash\"in t&&t.hash?t.hash:b3(Uk(pwt(t)))}var Ble,K_,Ule=$(()=>{f();_5();Xh();bK();Vl();d8e();Ble=class extends Sn{constructor(t,n){super(\"Found ambiguous types in overloaded ABI Items.\",{metaMessages:[`\\\\`${t.type}\\\\` in \\\\`${LK(S5(t.abiItem))}\\\\`, and`,`\\\\`${n.type}\\\\` in \\\\`${LK(S5(n.abiItem))}\\\\``,\"\",\"These types encode differently and cannot be distinguished at runtime.\",\"Remove one of the ambiguous items in the ABI.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiItem.AmbiguityError\"})}},K_=class extends Sn{constructor({name:t,data:n,type:r=\"item\"}){let o=t?` with name \"${t}\"`:n?` with data \"${n}\"`:\"\";super(`ABI ${r}${o} not found.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiItem.NotFoundError\"})}}});function p8e(...e){let[t,n]=(()=>{if(Array.isArray(e[0])){let[i,a]=e;return[hwt(i),a]}return e})(),{bytecode:r,args:o}=n;return ic(r,t.inputs?.length&&o?.length?V_(t.inputs,o):\"0x\")}function h8e(e){return UK(e)}function hwt(e){let t=e.find(n=>n.type===\"constructor\");if(!t)throw new K_({name:\"constructor\"});return t}var m8e=$(()=>{f();Ule();eO();Vl()});function y8e(...e){let[t,n=[]]=(()=>{if(Array.isArray(e[0])){let[d,m,h]=e;return[g8e(d,m,{args:h}),h]}let[c,l]=e;return[c,l]})(),{overloads:r}=t,o=r?g8e([t,...r],t.name,{args:n}):t,i=gwt(o),a=n.length>0?V_(o.inputs,n):void 0;return a?ic(i,a):i}function x3(e,t={}){return UK(e,t)}function g8e(e,t,n){let r=hL(e,t,n);if(r.type!==\"function\")throw new K_({name:t,type:\"function\"});return r}function gwt(e){return Lle(e)}var b8e=$(()=>{f();Ule();eO();Vl()});var v8e,Xb,w8e=$(()=>{f();v8e=\"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\",Xb=\"0x0000000000000000000000000000000000000000\"});async function x8e(e,t){let{blockNumber:n,blockTag:r,calls:o,stateOverrides:i,traceAssetChanges:a,traceTransfers:c,validation:l}=t,d=t.account?Bn(t.account):void 0;if(a&&!d)throw new Oe(\"`account` is required when `traceAssetChanges` is true\");let m=d?p8e(h8e(\"constructor(bytes, bytes)\"),{bytecode:Sq,args:[bwt,y8e(x3(\"function getBalance(address)\"),[d.address])]}):void 0,h=a?await Promise.all(t.calls.map(async L=>{if(!L.data&&!L.abi)return;let{accessList:W}=await Dq(e,{account:d.address,...L,data:L.abi?xn(L):L.data});return W.map(({address:q,storageKeys:H})=>H.length>0?q:null)})).then(L=>L.flat().filter(Boolean)):[],g=await pL(e,{blockNumber:n,blockTag:r,blocks:[...a?[{calls:[{data:m}],stateOverrides:i},{calls:h.map((L,W)=>({abi:[x3(\"function balanceOf(address) returns (uint256)\")],functionName:\"balanceOf\",args:[d.address],to:L,from:Xb,nonce:W})),stateOverrides:[{address:Xb,nonce:0}]}]:[],{calls:[...o,{}].map(L=>({...L,from:d?.address})),stateOverrides:i},...a?[{calls:[{data:m}]},{calls:h.map((L,W)=>({abi:[x3(\"function balanceOf(address) returns (uint256)\")],functionName:\"balanceOf\",args:[d.address],to:L,from:Xb,nonce:W})),stateOverrides:[{address:Xb,nonce:0}]},{calls:h.map((L,W)=>({to:L,abi:[x3(\"function decimals() returns (uint256)\")],functionName:\"decimals\",from:Xb,nonce:W})),stateOverrides:[{address:Xb,nonce:0}]},{calls:h.map((L,W)=>({to:L,abi:[x3(\"function tokenURI(uint256) returns (string)\")],functionName:\"tokenURI\",args:[0n],from:Xb,nonce:W})),stateOverrides:[{address:Xb,nonce:0}]},{calls:h.map((L,W)=>({to:L,abi:[x3(\"function symbol() returns (string)\")],functionName:\"symbol\",from:Xb,nonce:W})),stateOverrides:[{address:Xb,nonce:0}]}]:[]],traceTransfers:c,validation:l}),y=a?g[2]:g[0],[w,x,,I,C,M,B,z]=a?g:[],{calls:G,...J}=y,ne=G.slice(0,-1)??[],ie=w?.calls??[],ae=x?.calls??[],te=[...ie,...ae].map(L=>L.status===\"success\"?Zn(L.data):null),Z=I?.calls??[],X=C?.calls??[],F=[...Z,...X].map(L=>L.status===\"success\"?Zn(L.data):null),R=(M?.calls??[]).map(L=>L.status===\"success\"?L.result:null),O=(z?.calls??[]).map(L=>L.status===\"success\"?L.result:null),U=(B?.calls??[]).map(L=>L.status===\"success\"?L.result:null),P=[];for(let[L,W]of F.entries()){let q=te[L];if(typeof W!=\"bigint\"||typeof q!=\"bigint\")continue;let H=R[L-1],k=O[L-1],V=U[L-1],oe=L===0?{address:v8e,decimals:18,symbol:\"ETH\"}:{address:h[L-1],decimals:V||H?Number(H??1):void 0,symbol:k??void 0};P.some(se=>se.token.address===oe.address)||P.push({token:oe,value:{pre:q,post:W,diff:W-q}})}return{assetChanges:P,block:J,results:ne}}var bwt,E8e=$(()=>{f();m8e();b8e();La();w8e();BB();Jn();zp();q_();bue();Mle();bwt=\"0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033\"});async function A8e(e,t){let{abi:n,address:r,args:o,dataSuffix:i,functionName:a,...c}=t,l=c.account?Bn(c.account):e.account,d=xn({abi:n,args:o,functionName:a});try{let{data:m}=await Ct(e,u0,\"call\")({batch:!1,data:`${d}${i?i.replace(\"0x\",\"\"):\"\"}`,to:r,...c,account:l}),h=Qh({abi:n,args:o,functionName:a,data:m||\"0x\"}),g=n.filter(y=>\"name\"in y&&y.name===t.functionName);return{result:h,request:{abi:g,address:r,args:o,dataSuffix:i,functionName:a,...c,account:l}}}catch(m){throw s0(m,{abi:n,address:r,args:o,docsPath:\"/docs/contract/simulateContract\",functionName:a,sender:l?.address})}}var S8e=$(()=>{f();La();I_();zp();c3();Yo();p3()});async function Y_(e,{filter:t}){return t.request({method:\"eth_uninstallFilter\",params:[t.id]})}var mL=$(()=>{f()});var gL={};as(gL,{InvalidWrappedSignatureError:()=>FK,assert:()=>Hle,from:()=>xwt,magicBytes:()=>Fle,universalSignatureValidatorAbi:()=>wwt,universalSignatureValidatorBytecode:()=>vwt,unwrap:()=>_8e,validate:()=>Awt,wrap:()=>Ewt});function Hle(e){if(Os(e,-32)!==Fle)throw new FK(e)}function xwt(e){return typeof e==\"string\"?_8e(e):e}function _8e(e){Hle(e);let[t,n,r]=tO(sL(\"address, bytes, bytes\"),e);return{data:n,signature:r,to:t}}function Ewt(e){let{data:t,signature:n,to:r}=e;return ic(V_(sL(\"address, bytes, bytes\"),[r,t,n]),Fle)}function Awt(e){try{return Hle(e),!0}catch{return!1}}var Fle,vwt,wwt,FK,T8e=$(()=>{f();eO();Xh();Vl();Fle=\"0x6492649264926492649264926492649264926492649264926492649264926492\",vwt=\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\",wwt=[{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],outputs:[{type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\",name:\"isValidSig\"}];FK=class extends Sn{constructor(t){super(`Value \\\\`${t}\\\\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureErc6492.InvalidWrappedSignatureError\"})}}});var C8e=$(()=>{f();T8e()});function R8e({r:e,s:t,to:n=\"hex\",v:r,yParity:o}){let i=(()=>{if(o===0||o===1)return o;if(r&&(r===27n||r===28n||r>=35n))return r%2n===0n?1:0;throw new Error(\"Invalid `v` or `yParity` value\")})(),a=`0x${new Jb.Signature(Zn(e),Zn(t)).toCompactHex()}${i===0?\"1b\":\"1c\"}`;return n===\"hex\"?a:Si(a)}var I8e=$(()=>{f();KB();Ac();Ou()});async function Z_(e,t){let{address:n,hash:r,erc6492VerifierAddress:o=t.universalSignatureVerifierAddress??e.chain?.contracts?.erc6492Verifier?.address,multicallAddress:i=t.multicallAddress??e.chain?.contracts?.multicall3?.address}=t,a=(()=>{let c=t.signature;return ro(c)?c:typeof c==\"object\"&&\"r\"in c&&\"s\"in c?R8e(c):Bo(c)})();try{return lL.validate(a)?await Swt(e,{...t,multicallAddress:i,signature:a}):await _wt(e,{...t,verifierAddress:o,signature:a})}catch(c){try{if(Dd(rr(n),await qq({hash:r,signature:a})))return!0}catch{}if(c instanceof mE)return!1;throw c}}async function Swt(e,t){let{address:n,blockNumber:r,blockTag:o,hash:i,multicallAddress:a}=t,{authorization:c,data:l,signature:d,to:m}=lL.unwrap(t.signature);if(await d0(e,{address:n,blockNumber:r,blockTag:o})===nc([\"0xef0100\",c.address]))return await Twt(e,{address:n,blockNumber:r,blockTag:o,hash:i,signature:d});let g={address:c.address,chainId:Number(c.chainId),nonce:Number(c.nonce),r:Pe(c.r,{size:32}),s:Pe(c.s,{size:32}),yParity:c.yParity};if(!await n4e({address:n,authorization:g}))throw new mE;let w=await Ct(e,_i,\"readContract\")({...a?{address:a}:{code:Fk},authorizationList:[g],abi:R_,blockNumber:r,blockTag:\"pending\",functionName:\"aggregate3\",args:[[...l?[{allowFailure:!0,target:m??n,callData:l}]:[],{allowFailure:!0,target:n,callData:xn({abi:jce,functionName:\"isValidSignature\",args:[i,d]})}]]});if(w[w.length-1]?.returnData?.startsWith(\"0x1626ba7e\"))return!0;throw new mE}async function _wt(e,t){let{address:n,factory:r,factoryData:o,hash:i,signature:a,verifierAddress:c,...l}=t,d=await(async()=>!r&&!o||gL.validate(a)?a:gL.wrap({data:o,signature:a,to:r}))(),m=c?{to:c,data:xn({abi:CB,functionName:\"isValidSig\",args:[n,i,d]}),...l}:{data:f3({abi:CB,args:[n,i,d],bytecode:bRe}),...l},{data:h}=await Ct(e,u0,\"call\")(m).catch(g=>{throw g instanceof R5?new mE:g});if(A9(h??\"0x0\"))return!0;throw new mE}async function Twt(e,t){let{address:n,blockNumber:r,blockTag:o,hash:i,signature:a}=t;if((await Ct(e,_i,\"readContract\")({address:n,abi:jce,args:[i,a],blockNumber:r,blockTag:o,functionName:\"isValidSignature\"}).catch(l=>{throw l instanceof Wb?new mE:l})).startsWith(\"0x1626ba7e\"))return!0;throw new mE}var mE,yL=$(()=>{f();C8e();X4e();oE();BB();$v();_q();zp();Kv();M_();r4e();Nu();Cg();Ac();An();Yo();jue();I8e();p3();XB();jg();mE=class extends Error{}});async function k8e(e,{address:t,message:n,factory:r,factoryData:o,signature:i,...a}){let c=p0(n);return Z_(e,{address:t,factory:r,factoryData:o,hash:c,signature:i,...a})}var O8e=$(()=>{f();cK();yL()});async function N8e(e,t){let{address:n,factory:r,factoryData:o,signature:i,message:a,primaryType:c,types:l,domain:d,...m}=t,h=Vp({message:a,primaryType:c,types:l,domain:d});return Z_(e,{address:n,factory:r,factoryData:o,hash:h,signature:i,...m})}var P8e=$(()=>{f();hK();yL()});function ql(e,t,n){let r=++Cwt,o=()=>zle.get(e)||[],i=()=>{let m=o();zle.set(e,m.filter(h=>h.id!==r))},a=()=>{let m=o();if(!m.some(g=>g.id===r))return;let h=M8e.get(e);if(m.length===1&&h){let g=h();g instanceof Promise&&g.catch(()=>{})}i()},c=o();if(zle.set(e,[...c,{id:r,fns:t}]),c&&c.length>0)return a;let l={};for(let m in t)l[m]=((...h)=>{let g=o();if(g.length!==0)for(let y of g)y.fns[m]?.(...h)});let d=n(l);return typeof d==\"function\"&&M8e.set(e,d),a}var zle,M8e,Cwt,gE=$(()=>{f();zle=new Map,M8e=new Map,Cwt=0});function $h(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let o=!0,i=()=>o=!1;return(async()=>{let c;t&&(c=await e({unpoll:i}));let l=await n?.(c)??r;await tL(l);let d=async()=>{o&&(await e({unpoll:i}),await tL(r),d())};d()})(),i}var Q_=$(()=>{f();Yue()});function HK(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:r,onError:o,poll:i,pollingInterval:a=e.pollingInterval}){let c=typeof i<\"u\"?i:!(e.transport.type===\"webSocket\"||e.transport.type===\"ipc\"||e.transport.type===\"fallback\"&&(e.transport.transports[0].config.type===\"webSocket\"||e.transport.transports[0].config.type===\"ipc\")),l;return c?(()=>{let h=oo([\"watchBlockNumber\",e.uid,t,n,a]);return ql(h,{onBlockNumber:r,onError:o},g=>$h(async()=>{try{let y=await Ct(e,hw,\"getBlockNumber\")({cacheTime:0});if(l!==void 0){if(y===l)return;if(y-l>1&&n)for(let w=l+1n;w<y;w++)g.onBlockNumber(w,l),l=w}(l===void 0||y>l)&&(g.onBlockNumber(y,l),l=y)}catch(y){g.onError?.(y)}},{emitOnBegin:t,interval:a}))})():(()=>{let h=oo([\"watchBlockNumber\",e.uid,t,n]);return ql(h,{onBlockNumber:r,onError:o},g=>{let y=!0,w=()=>y=!1;return(async()=>{try{let x=(()=>{if(e.transport.type===\"fallback\"){let C=e.transport.transports.find(M=>M.config.type===\"webSocket\"||M.config.type===\"ipc\");return C?C.value:e.transport}return e.transport})(),{unsubscribe:I}=await x.subscribe({params:[\"newHeads\"],onData(C){if(!y)return;let M=Zn(C.result?.number);g.onBlockNumber(M,l),l=M},onError(C){g.onError?.(C)}});w=I,y||w()}catch(x){o?.(x)}})(),()=>w()})})()}var jle=$(()=>{f();Ac();Yo();gE();Q_();Nd();Zk()});async function E3(e,t){let{checkReplacement:n=!0,confirmations:r=1,hash:o,onReplaced:i,retryCount:a=6,retryDelay:c=({count:G})=>~~(1<<G)*200,timeout:l=18e4}=t,d=oo([\"waitForTransactionReceipt\",e.uid,o]),m=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval,h,g,y,w=!1,x,I,{promise:C,resolve:M,reject:B}=Hk(),z=l?setTimeout(()=>{I?.(),x?.(),B(new QV({hash:o}))},l):void 0;return x=ql(d,{onReplaced:i,resolve:M,reject:B},async G=>{if(y=await Ct(e,nO,\"getTransactionReceipt\")({hash:o}).catch(()=>{}),y&&r<=1){clearTimeout(z),G.resolve(y),x?.();return}I=Ct(e,HK,\"watchBlockNumber\")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:m,async onBlockNumber(J){let ne=ae=>{clearTimeout(z),I?.(),ae(),x?.()},ie=J;if(!w)try{if(y){if(r>1&&(!y.blockNumber||ie-y.blockNumber+1n<r))return;ne(()=>G.resolve(y));return}if(n&&!h&&(w=!0,await f0(async()=>{h=await Ct(e,hE,\"getTransaction\")({hash:o}),h.blockNumber&&(ie=h.blockNumber)},{delay:c,retryCount:a}),w=!1),y=await Ct(e,nO,\"getTransactionReceipt\")({hash:o}),r>1&&(!y.blockNumber||ie-y.blockNumber+1n<r))return;ne(()=>G.resolve(y))}catch(ae){if(ae instanceof k8||ae instanceof O8){if(!h){w=!1;return}try{g=h,w=!0;let te=await f0(()=>Ct(e,Sf,\"getBlock\")({blockNumber:ie,includeTransactions:!0}),{delay:c,retryCount:a,shouldRetry:({error:F})=>F instanceof Gk});w=!1;let Z=te.transactions.find(({from:F,nonce:R})=>F===g.from&&R===g.nonce);if(!Z||(y=await Ct(e,nO,\"getTransactionReceipt\")({hash:Z.hash}),r>1&&(!y.blockNumber||ie-y.blockNumber+1n<r)))return;let X=\"replaced\";Z.to===g.to&&Z.value===g.value&&Z.input===g.input?X=\"repriced\":Z.from===Z.to&&Z.value===0n&&(X=\"cancelled\"),ne(()=>{G.onReplaced?.({reason:X,replacedTransaction:g,transaction:Z,transactionReceipt:y}),G.resolve(y)})}catch(te){ne(()=>G.reject(te))}}else ne(()=>G.reject(ae))}}})}),C}var zK=$(()=>{f();Wue();Fh();Yo();gE();Tq();nL();Nd();m3();dL();Nle();jle()});function D8e(e,{blockTag:t=e.experimental_blockTag??\"latest\",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:o,onError:i,includeTransactions:a,poll:c,pollingInterval:l=e.pollingInterval}){let d=typeof c<\"u\"?c:!(e.transport.type===\"webSocket\"||e.transport.type===\"ipc\"||e.transport.type===\"fallback\"&&(e.transport.transports[0].config.type===\"webSocket\"||e.transport.transports[0].config.type===\"ipc\")),m=a??!1,h;return d?(()=>{let w=oo([\"watchBlocks\",e.uid,t,n,r,m,l]);return ql(w,{onBlock:o,onError:i},x=>$h(async()=>{try{let I=await Ct(e,Sf,\"getBlock\")({blockTag:t,includeTransactions:m});if(I.number!==null&&h?.number!=null){if(I.number===h.number)return;if(I.number-h.number>1&&n)for(let C=h?.number+1n;C<I.number;C++){let M=await Ct(e,Sf,\"getBlock\")({blockNumber:C,includeTransactions:m});x.onBlock(M,h),h=M}}(h?.number==null||t===\"pending\"&&I?.number==null||I.number!==null&&I.number>h.number)&&(x.onBlock(I,h),h=I)}catch(I){x.onError?.(I)}},{emitOnBegin:r,interval:l}))})():(()=>{let w=!0,x=!0,I=()=>w=!1;return(async()=>{try{r&&Ct(e,Sf,\"getBlock\")({blockTag:t,includeTransactions:m}).then(B=>{w&&x&&(o(B,void 0),x=!1)}).catch(i);let C=(()=>{if(e.transport.type===\"fallback\"){let B=e.transport.transports.find(z=>z.config.type===\"webSocket\"||z.config.type===\"ipc\");return B?B.value:e.transport}return e.transport})(),{unsubscribe:M}=await C.subscribe({params:[\"newHeads\"],async onData(B){if(!w)return;let z=await Ct(e,Sf,\"getBlock\")({blockNumber:B.result?.number,includeTransactions:m}).catch(()=>{});w&&(o(z,h),x=!1,h=z)},onError(B){i?.(B)}});I=M,w||I()}catch(C){i?.(C)}})(),()=>I()})()}var B8e=$(()=>{f();Yo();gE();Q_();Nd();m3()});function L8e(e,t){let{abi:n,address:r,args:o,batch:i=!0,eventName:a,fromBlock:c,onError:l,onLogs:d,poll:m,pollingInterval:h=e.pollingInterval,strict:g}=t;return(typeof m<\"u\"?m:typeof c==\"bigint\"?!0:!(e.transport.type===\"webSocket\"||e.transport.type===\"ipc\"||e.transport.type===\"fallback\"&&(e.transport.transports[0].config.type===\"webSocket\"||e.transport.transports[0].config.type===\"ipc\")))?(()=>{let I=g??!1,C=oo([\"watchContractEvent\",r,o,i,e.uid,a,h,I,c]);return ql(C,{onLogs:d,onError:l},M=>{let B;c!==void 0&&(B=c-1n);let z,G=!1,J=$h(async()=>{if(!G){try{z=await Ct(e,Lq,\"createContractEventFilter\")({abi:n,address:r,args:o,eventName:a,strict:I,fromBlock:c})}catch{}G=!0;return}try{let ne;if(z)ne=await Ct(e,W_,\"getFilterChanges\")({filter:z});else{let ie=await Ct(e,hw,\"getBlockNumber\")({});B&&B<ie?ne=await Ct(e,oK,\"getContractEvents\")({abi:n,address:r,args:o,eventName:a,fromBlock:B+1n,toBlock:ie,strict:I}):ne=[],B=ie}if(ne.length===0)return;if(i)M.onLogs(ne);else for(let ie of ne)M.onLogs([ie])}catch(ne){z&&ne instanceof Gb&&(G=!1),M.onError?.(ne)}},{emitOnBegin:!0,interval:h});return async()=>{z&&await Ct(e,Y_,\"uninstallFilter\")({filter:z}),J()}})})():(()=>{let I=g??!1,C=oo([\"watchContractEvent\",r,o,i,e.uid,a,h,I]),M=!0,B=()=>M=!1;return ql(C,{onLogs:d,onError:l},z=>((async()=>{try{let G=(()=>{if(e.transport.type===\"fallback\"){let ie=e.transport.transports.find(ae=>ae.config.type===\"webSocket\"||ae.config.type===\"ipc\");return ie?ie.value:e.transport}return e.transport})(),J=a?dw({abi:n,eventName:a,args:o}):[],{unsubscribe:ne}=await G.subscribe({params:[\"logs\",{address:r,topics:J}],onData(ie){if(!M)return;let ae=ie.result;try{let{eventName:te,args:Z}=pE({abi:n,data:ae.data,topics:ae.topics,strict:g}),X=Hl(ae,{args:Z,eventName:te});z.onLogs([X])}catch(te){let Z,X;if(te instanceof Hb||te instanceof Zv){if(g)return;Z=te.abiItem.name,X=te.abiItem.inputs?.some(R=>!(\"name\"in R&&R.name))}let F=Hl(ae,{args:X?[]:{},eventName:Z});z.onLogs([F])}},onError(ie){z.onError?.(ie)}});B=ne,M||B()}catch(G){l?.(G)}})(),()=>B()))})()}var U8e=$(()=>{f();oc();K5();$B();jk();D2();Yo();gE();Q_();Nd();vue();Zk();Kue();eL();mL()});function F8e(e,{address:t,args:n,batch:r=!0,event:o,events:i,fromBlock:a,onError:c,onLogs:l,poll:d,pollingInterval:m=e.pollingInterval,strict:h}){let g=typeof d<\"u\"?d:typeof a==\"bigint\"?!0:!(e.transport.type===\"webSocket\"||e.transport.type===\"ipc\"||e.transport.type===\"fallback\"&&(e.transport.transports[0].config.type===\"webSocket\"||e.transport.transports[0].config.type===\"ipc\")),y=h??!1;return g?(()=>{let I=oo([\"watchEvent\",t,n,r,e.uid,o,m,a]);return ql(I,{onLogs:l,onError:c},C=>{let M;a!==void 0&&(M=a-1n);let B,z=!1,G=$h(async()=>{if(!z){try{B=await Ct(e,Uq,\"createEventFilter\")({address:t,args:n,event:o,events:i,strict:y,fromBlock:a})}catch{}z=!0;return}try{let J;if(B)J=await Ct(e,W_,\"getFilterChanges\")({filter:B});else{let ne=await Ct(e,hw,\"getBlockNumber\")({});M&&M!==ne?J=await Ct(e,Jk,\"getLogs\")({address:t,args:n,event:o,events:i,fromBlock:M+1n,toBlock:ne}):J=[],M=ne}if(J.length===0)return;if(r)C.onLogs(J);else for(let ne of J)C.onLogs([ne])}catch(J){B&&J instanceof Gb&&(z=!1),C.onError?.(J)}},{emitOnBegin:!0,interval:m});return async()=>{B&&await Ct(e,Y_,\"uninstallFilter\")({filter:B}),G()}})})():(()=>{let I=!0,C=()=>I=!1;return(async()=>{try{let M=(()=>{if(e.transport.type===\"fallback\"){let J=e.transport.transports.find(ne=>ne.config.type===\"webSocket\"||ne.config.type===\"ipc\");return J?J.value:e.transport}return e.transport})(),B=i??(o?[o]:void 0),z=[];B&&(z=[B.flatMap(ne=>dw({abi:[ne],eventName:ne.name,args:n}))],o&&(z=z[0]));let{unsubscribe:G}=await M.subscribe({params:[\"logs\",{address:t,topics:z}],onData(J){if(!I)return;let ne=J.result;try{let{eventName:ie,args:ae}=pE({abi:B??[],data:ne.data,topics:ne.topics,strict:y}),te=Hl(ne,{args:ae,eventName:ie});l([te])}catch(ie){let ae,te;if(ie instanceof Hb||ie instanceof Zv){if(h)return;ae=ie.abiItem.name,te=ie.abiItem.inputs?.some(X=>!(\"name\"in X&&X.name))}let Z=Hl(ne,{args:te?[]:{},eventName:ae});l([Z])}},onError(J){c?.(J)}});C=G,I||C()}catch(M){c?.(M)}})(),()=>C()})()}var H8e=$(()=>{f();oc();K5();$B();jk();D2();Yo();gE();Q_();Nd();wue();Zk();eL();rK();mL()});function z8e(e,{batch:t=!0,onError:n,onTransactions:r,poll:o,pollingInterval:i=e.pollingInterval}){return(typeof o<\"u\"?o:e.transport.type!==\"webSocket\"&&e.transport.type!==\"ipc\")?(()=>{let d=oo([\"watchPendingTransactions\",e.uid,t,i]);return ql(d,{onTransactions:r,onError:n},m=>{let h,g=$h(async()=>{try{if(!h)try{h=await Ct(e,Fq,\"createPendingTransactionFilter\")({});return}catch(w){throw g(),w}let y=await Ct(e,W_,\"getFilterChanges\")({filter:h});if(y.length===0)return;if(t)m.onTransactions(y);else for(let w of y)m.onTransactions([w])}catch(y){m.onError?.(y)}},{emitOnBegin:!0,interval:i});return async()=>{h&&await Ct(e,Y_,\"uninstallFilter\")({filter:h}),g()}})})():(()=>{let d=!0,m=()=>d=!1;return(async()=>{try{let{unsubscribe:h}=await e.transport.subscribe({params:[\"newPendingTransactions\"],onData(g){if(!d)return;let y=g.result;r([y])},onError(g){n?.(g)}});m=h,d||m()}catch(h){n?.(h)}})(),()=>m()})()}var j8e=$(()=>{f();Yo();gE();Q_();Nd();xue();eL();mL()});async function W8e(e,{chain:t}){let{id:n,name:r,nativeCurrency:o,rpcUrls:i,blockExplorers:a}=t;await e.request({method:\"wallet_addEthereumChain\",params:[{chainId:Pe(n),chainName:r,nativeCurrency:o,rpcUrls:i.default.http,blockExplorerUrls:a?Object.values(a).map(({url:c})=>c):void 0}]},{dedupe:!0,retryCount:0})}var V8e=$(()=>{f();An()});async function oO(e,{serializedTransaction:t}){return e.request({method:\"eth_sendRawTransaction\",params:[t]},{retryCount:0})}var jK=$(()=>{f()});async function $b(e,t){let{account:n=e.account,chain:r=e.chain,accessList:o,authorizationList:i,blobs:a,data:c,gas:l,gasPrice:d,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:g,nonce:y,type:w,value:x,...I}=t;if(typeof n>\"u\")throw new Rs({docsPath:\"/docs/actions/wallet/sendTransaction\"});let C=n?Bn(n):null;try{Ef(t);let M=await(async()=>{if(t.to)return t.to;if(t.to!==null&&i&&i.length>0)return await H_({authorization:i[0]}).catch(()=>{throw new Oe(\"`to` is required. Could not infer from `authorizationList`.\")})})();if(C?.type===\"json-rpc\"||C===null){let B;r!==null&&(B=await Ct(e,Gl,\"getChainId\")({}),K8({currentChainId:B,chain:r}));let z=e.chain?.formatters?.transactionRequest?.format,J=(z||Uh)({...tw(I,{format:z}),accessList:o,account:C,authorizationList:i,blobs:a,chainId:B,data:c,gas:l,gasPrice:d,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:g,nonce:y,to:M,type:w,value:x},\"sendTransaction\"),ne=Wle.get(e.uid),ie=ne?\"wallet_sendTransaction\":\"eth_sendTransaction\";try{return await e.request({method:ie,params:[J]},{retryCount:0})}catch(ae){if(ne===!1)throw ae;let te=ae;if(te.name===\"InvalidInputRpcError\"||te.name===\"InvalidParamsRpcError\"||te.name===\"MethodNotFoundRpcError\"||te.name===\"MethodNotSupportedRpcError\")return await e.request({method:\"wallet_sendTransaction\",params:[J]},{retryCount:0}).then(Z=>(Wle.set(e.uid,!0),Z)).catch(Z=>{let X=Z;throw X.name===\"MethodNotFoundRpcError\"||X.name===\"MethodNotSupportedRpcError\"?(Wle.set(e.uid,!1),te):X});throw te}}if(C?.type===\"local\"){let B=await Ct(e,pw,\"prepareTransactionRequest\")({account:C,accessList:o,authorizationList:i,blobs:a,chain:r,data:c,gas:l,gasPrice:d,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:g,nonce:y,nonceManager:C.nonceManager,parameters:[...QB,\"sidecars\"],type:w,value:x,...I,to:M}),z=r?.serializers?.transaction,G=await C.signTransaction(B,{serializer:z});return await Ct(e,oO,\"sendRawTransaction\")({serializedTransaction:G})}throw C?.type===\"smart\"?new Mg({metaMessages:[\"Consider using the `sendUserOperation` Action instead.\"],docsPath:\"/docs/actions/bundler/sendUserOperation\",type:\"smart\"}):new Mg({docsPath:\"/docs/actions/wallet/sendTransaction\",type:C?.type})}catch(M){throw M instanceof Mg?M:Xk(M,{...t,account:C,chain:t.chain||void 0})}}var Wle,iO=$(()=>{f();La();Dg();Jn();YB();vG();sK();uk();o_();Yo();x5();Y2();fw();Kk();jK();Wle=new Hh(128)});function G8e(e,t){let{abi:n,args:r,bytecode:o,...i}=t,a=f3({abi:n,args:r,bytecode:o});return $b(e,{...i,...i.authorizationList?{to:null}:{},data:a})}var q8e=$(()=>{f();_q();iO()});async function K8e(e){return e.account?.type===\"local\"?[e.account.address]:(await e.request({method:\"eth_accounts\"},{dedupe:!0})).map(n=>qv(n))}var Y8e=$(()=>{f();Kv()});async function A3(e,t){let{account:n=e.account,capabilities:r,chain:o=e.chain,experimental_fallback:i,experimental_fallbackDelay:a=32,forceAtomic:c=!1,id:l,version:d=\"2.0.0\"}=t,m=n?Bn(n):null,h=t.calls.map(g=>{let y=g,w=y.abi?xn({abi:y.abi,functionName:y.functionName,args:y.args}):y.data;return{data:y.dataSuffix&&w?qi([w,y.dataSuffix]):w,to:y.to,value:y.value?Pe(y.value):void 0}});try{let g=await e.request({method:\"wallet_sendCalls\",params:[{atomicRequired:c,calls:h,capabilities:r,chainId:Pe(o.id),from:m?.address,id:l,version:d}]},{retryCount:0});return typeof g==\"string\"?{id:g}:g}catch(g){let y=g;if(i&&(y.name===\"MethodNotFoundRpcError\"||y.name===\"MethodNotSupportedRpcError\"||y.name===\"UnknownRpcError\"||y.details.toLowerCase().includes(\"does not exist / is not available\")||y.details.toLowerCase().includes(\"missing or invalid. request()\")||y.details.toLowerCase().includes(\"did not match any variant of untagged enum\")||y.details.toLowerCase().includes(\"account upgraded to unsupported contract\")||y.details.toLowerCase().includes(\"eip-7702 not supported\")||y.details.toLowerCase().includes(\"unsupported wc_ method\")||y.details.toLowerCase().includes(\"feature toggled misconfigured\")||y.details.toLowerCase().includes(\"jsonrpcengine: response has no error or result for request\"))){if(r&&Object.values(r).some(M=>!M.optional)){let M=\"non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.\";throw new q2(new Oe(M,{details:M}))}if(c&&h.length>1){let C=\"`forceAtomic` is not supported on fallback to `eth_sendTransaction`.\";throw new K2(new Oe(C,{details:C}))}let w=[];for(let C of h){let M=$b(e,{account:m,chain:o,data:C.data,to:C.to,value:C.value?Zn(C.value):void 0});w.push(M),a>0&&await new Promise(B=>setTimeout(B,a))}let x=await Promise.allSettled(w);if(x.every(C=>C.status===\"rejected\"))throw x[0].reason;let I=x.map(C=>C.status===\"fulfilled\"?C.value:Gle);return{id:qi([...I,Pe(o.id,{size:32}),Vle])}}throw Xk(g,{...t,account:m,chain:t.chain})}}var Vle,Gle,bL=$(()=>{f();La();Jn();K5();zp();Nu();Ac();An();sK();iO();Vle=\"0x5792579257925792579257925792579257925792579257925792579257925792\",Gle=Pe(0,{size:32})});async function S3(e,t){async function n(m){if(m.endsWith(Vle.slice(2))){let g=na(E5(m,-64,-32)),y=E5(m,0,-64).slice(2).match(/.{1,64}/g),w=await Promise.all(y.map(I=>Gle.slice(2)!==I?e.request({method:\"eth_getTransactionReceipt\",params:[`0x${I}`]},{dedupe:!0}):void 0)),x=w.some(I=>I===null)?100:w.every(I=>I?.status===\"0x1\")?200:w.every(I=>I?.status===\"0x0\")?500:600;return{atomic:!1,chainId:Lo(g),receipts:w.filter(Boolean),status:x,version:\"2.0.0\"}}return e.request({method:\"wallet_getCallsStatus\",params:[m]})}let{atomic:r=!1,chainId:o,receipts:i,version:a=\"2.0.0\",...c}=await n(t.id),[l,d]=(()=>{let m=c.status;return m>=100&&m<200?[\"pending\",m]:m>=200&&m<300?[\"success\",m]:m>=300&&m<700?[\"failure\",m]:m===\"CONFIRMED\"?[\"success\",200]:m===\"PENDING\"?[\"pending\",100]:[void 0,m]})();return{...c,atomic:r,chainId:o?Lo(o):void 0,receipts:i?.map(m=>({...m,blockNumber:Zn(m.blockNumber),gasUsed:Zn(m.gasUsed),status:Pse[m.status]}))??[],statusCode:d,status:l,version:a}}var WK=$(()=>{f();Yv();n_();Ac();_8();bL()});async function vL(e,t={}){let{account:n=e.account,chainId:r}=t,o=n?Bn(n):void 0,i=r?[o?.address,[Pe(r)]]:[o?.address],a=await e.request({method:\"wallet_getCapabilities\",params:i}),c={};for(let[l,d]of Object.entries(a)){c[Number(l)]={};for(let[m,h]of Object.entries(d))m===\"addSubAccount\"&&(m=\"unstable_addSubAccount\"),c[Number(l)][m]=h}return typeof r==\"number\"?c[r]:c}var qle=$(()=>{f();La();An()});async function Z8e(e){return await e.request({method:\"wallet_getPermissions\"},{dedupe:!0})}var Q8e=$(()=>{f()});async function _3(e,t){let{account:n=e.account,chainId:r,nonce:o}=t;if(!n)throw new Rs({docsPath:\"/docs/eip7702/prepareAuthorization\"});let i=Bn(n),a=(()=>{if(t.executor)return t.executor===\"self\"?t.executor:Bn(t.executor)})(),c={address:t.contractAddress??t.address,chainId:r,nonce:o};return typeof c.chainId>\"u\"&&(c.chainId=e.chain?.id??await Ct(e,Gl,\"getChainId\")({})),typeof c.nonce>\"u\"&&(c.nonce=await Ct(e,j_,\"getTransactionCount\")({address:i.address,blockTag:\"pending\"}),(a===\"self\"||a?.address&&Dd(a.address,i.address))&&(c.nonce+=1)),c}var VK=$(()=>{f();La();Dg();M_();Yo();fw();ZB()});async function J8e(e){return(await e.request({method:\"eth_requestAccounts\"},{dedupe:!0,retryCount:0})).map(n=>rr(n))}var X8e=$(()=>{f();Kv()});async function $8e(e,t){return e.request({method:\"wallet_requestPermissions\",params:[t]},{retryCount:0})}var eke=$(()=>{f()});var GK,tke=$(()=>{f();Jn();GK=class extends Oe{constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:\"BundleFailedError\"}),Object.defineProperty(this,\"result\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}});async function em(e,t){let{id:n,pollingInterval:r=e.pollingInterval,status:o=({statusCode:x})=>x===200||x>=300,retryCount:i=4,retryDelay:a=({count:x})=>~~(1<<x)*200,timeout:c=6e4,throwOnFailure:l=!1}=t,d=oo([\"waitForCallsStatus\",e.uid,n]),{promise:m,resolve:h,reject:g}=Hk(),y,w=ql(d,{resolve:h,reject:g},x=>{let I=$h(async()=>{let C=M=>{clearTimeout(y),I(),M(),w()};try{let M=await f0(async()=>{let B=await Ct(e,S3,\"getCallsStatus\")({id:n});if(l&&B.status===\"failure\")throw new GK(B);return B},{retryCount:i,delay:a});if(!o(M))return;C(()=>x.resolve(M))}catch(M){C(()=>x.reject(M))}},{interval:r,emitOnBegin:!0});return I});return y=c?setTimeout(()=>{w(),clearTimeout(y),g(new Kle({id:n}))},c):void 0,await m}var Kle,wL=$(()=>{f();Jn();tke();Yo();gE();Q_();Tq();nL();Nd();WK();Kle=class extends Oe{constructor({id:t}){super(`Timed out while waiting for call bundle with id \"${t}\" to be confirmed.`,{name:\"WaitForCallsStatusTimeoutError\"})}}});async function nke(e,t){let{chain:n=e.chain}=t,r=t.timeout??Math.max((n?.blockTime??0)*3,5e3),o=await A3(e,t);return await em(e,{...t,id:o.id,timeout:r})}var rke=$(()=>{f();bL();wL()});async function aO(e,{serializedTransaction:t,throwOnReceiptRevert:n,timeout:r}){let o=await e.request({method:\"eth_sendRawTransactionSync\",params:r?[t,Pe(r)]:[t]},{retryCount:0}),a=(e.chain?.formatters?.transactionReceipt?.format||f5)(o);if(a.status===\"reverted\"&&n)throw new N8({receipt:a});return a}var qK=$(()=>{f();Fh();_8();q_()});async function KK(e,t){let{account:n=e.account,chain:r=e.chain,accessList:o,authorizationList:i,blobs:a,data:c,gas:l,gasPrice:d,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:g,nonce:y,pollingInterval:w,throwOnReceiptRevert:x,type:I,value:C,...M}=t,B=t.timeout??Math.max((r?.blockTime??0)*3,5e3);if(typeof n>\"u\")throw new Rs({docsPath:\"/docs/actions/wallet/sendTransactionSync\"});let z=n?Bn(n):null;try{Ef(t);let G=await(async()=>{if(t.to)return t.to;if(t.to!==null&&i&&i.length>0)return await H_({authorization:i[0]}).catch(()=>{throw new Oe(\"`to` is required. Could not infer from `authorizationList`.\")})})();if(z?.type===\"json-rpc\"||z===null){let J;r!==null&&(J=await Ct(e,Gl,\"getChainId\")({}),K8({currentChainId:J,chain:r}));let ne=e.chain?.formatters?.transactionRequest?.format,ae=(ne||Uh)({...tw(M,{format:ne}),accessList:o,account:z,authorizationList:i,blobs:a,chainId:J,data:c,gas:l,gasPrice:d,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:g,nonce:y,to:G,type:I,value:C},\"sendTransaction\"),te=Yle.get(e.uid),Z=te?\"wallet_sendTransaction\":\"eth_sendTransaction\",X=await(async()=>{try{return await e.request({method:Z,params:[ae]},{retryCount:0})}catch(R){if(te===!1)throw R;let O=R;if(O.name===\"InvalidInputRpcError\"||O.name===\"InvalidParamsRpcError\"||O.name===\"MethodNotFoundRpcError\"||O.name===\"MethodNotSupportedRpcError\")return await e.request({method:\"wallet_sendTransaction\",params:[ae]},{retryCount:0}).then(U=>(Yle.set(e.uid,!0),U)).catch(U=>{let P=U;throw P.name===\"MethodNotFoundRpcError\"||P.name===\"MethodNotSupportedRpcError\"?(Yle.set(e.uid,!1),O):P});throw O}})(),F=await Ct(e,E3,\"waitForTransactionReceipt\")({checkReplacement:!1,hash:X,pollingInterval:w,timeout:B});if(x&&F.status===\"reverted\")throw new N8({receipt:F});return F}if(z?.type===\"local\"){let J=await Ct(e,pw,\"prepareTransactionRequest\")({account:z,accessList:o,authorizationList:i,blobs:a,chain:r,data:c,gas:l,gasPrice:d,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:g,nonce:y,nonceManager:z.nonceManager,parameters:[...QB,\"sidecars\"],type:I,value:C,...M,to:G}),ne=r?.serializers?.transaction,ie=await z.signTransaction(J,{serializer:ne});return await Ct(e,aO,\"sendRawTransactionSync\")({serializedTransaction:ie,throwOnReceiptRevert:x})}throw z?.type===\"smart\"?new Mg({metaMessages:[\"Consider using the `sendUserOperation` Action instead.\"],docsPath:\"/docs/actions/bundler/sendUserOperation\",type:\"smart\"}):new Mg({docsPath:\"/docs/actions/wallet/sendTransactionSync\",type:z?.type})}catch(G){throw G instanceof Mg?G:Xk(G,{...t,account:z,chain:t.chain||void 0})}}var Yle,Zle=$(()=>{f();La();Dg();Jn();Fh();YB();vG();sK();uk();o_();Yo();x5();Y2();fw();zK();Kk();qK();Yle=new Hh(128)});async function xL(e,t){let{id:n}=t;await e.request({method:\"wallet_showCallsStatus\",params:[n]})}var Qle=$(()=>{f()});async function oke(e,t){let{account:n=e.account}=t;if(!n)throw new Rs({docsPath:\"/docs/eip7702/signAuthorization\"});let r=Bn(n);if(!r.signAuthorization)throw new Mg({docsPath:\"/docs/eip7702/signAuthorization\",metaMessages:[\"The `signAuthorization` Action does not support JSON-RPC Accounts.\"],type:r.type});let o=await _3(e,t);return r.signAuthorization(o)}var ike=$(()=>{f();La();Dg();VK()});async function ake(e,{account:t=e.account,message:n}){if(!t)throw new Rs({docsPath:\"/docs/actions/wallet/signMessage\"});let r=Bn(t);if(r.signMessage)return r.signMessage({message:n});let o=typeof n==\"string\"?Ul(n):n.raw instanceof Uint8Array?Xn(n.raw):n.raw;return e.request({method:\"personal_sign\",params:[o,r.address]},{retryCount:0})}var ske=$(()=>{f();La();Dg();An()});async function cke(e,t){let{account:n=e.account,chain:r=e.chain,...o}=t;if(!n)throw new Rs({docsPath:\"/docs/actions/wallet/signTransaction\"});let i=Bn(n);Ef({account:i,...t});let a=await Ct(e,Gl,\"getChainId\")({});r!==null&&K8({currentChainId:a,chain:r});let l=(r?.formatters||e.chain?.formatters)?.transactionRequest?.format||Uh;return i.signTransaction?i.signTransaction({...o,chainId:a},{serializer:e.chain?.serializers?.transaction}):await e.request({method:\"eth_signTransaction\",params:[{...l({...o,account:i},\"signTransaction\"),chainId:Pe(a),from:i.address}]},{retryCount:0})}var uke=$(()=>{f();La();Dg();vG();An();o_();Yo();Y2();fw()});async function lke(e,t){let{account:n=e.account,domain:r,message:o,primaryType:i}=t;if(!n)throw new Rs({docsPath:\"/docs/actions/wallet/signTypedData\"});let a=Bn(n),c={EIP712Domain:pK({domain:r}),...t.types};if(fK({domain:r,message:o,primaryType:i,types:c}),a.signTypedData)return a.signTypedData({domain:r,message:o,primaryType:i,types:c});let l=y4e({domain:r,message:o,primaryType:i,types:c});return e.request({method:\"eth_signTypedData_v4\",params:[a.address,l]},{retryCount:0})}var dke=$(()=>{f();La();Dg();Xue()});async function fke(e,{id:t}){await e.request({method:\"wallet_switchEthereumChain\",params:[{chainId:Pe(t)}]},{retryCount:0})}var pke=$(()=>{f();An()});async function hke(e,t){return await e.request({method:\"wallet_watchAsset\",params:t},{retryCount:0})}var mke=$(()=>{f()});async function T3(e,t){return T3.internal(e,$b,\"sendTransaction\",t)}var Jle=$(()=>{f();La();Dg();zp();c3();Yo();iO();(function(e){async function t(n,r,o,i){let{abi:a,account:c=n.account,address:l,args:d,dataSuffix:m,functionName:h,...g}=i;if(typeof c>\"u\")throw new Rs({docsPath:\"/docs/contract/writeContract\"});let y=c?Bn(c):null,w=xn({abi:a,args:d,functionName:h});try{return await Ct(n,r,o)({data:`${w}${m?m.replace(\"0x\",\"\"):\"\"}`,to:l,account:y,...g})}catch(x){throw s0(x,{abi:a,address:l,args:d,docsPath:\"/docs/contract/writeContract\",functionName:h,sender:y?.address})}}e.internal=t})(T3||(T3={}))});async function gke(e,t){return T3.internal(e,KK,\"sendTransactionSync\",t)}var yke=$(()=>{f();Zle();Jle()});var tm=$(()=>{f();p3();que();XB();dL();Ple();jg();zK();WK();qle();VK();bL();iO();Qle();wL()});function JK(e=11){if(!QK||ZK+e>256*2){QK=\"\",ZK=0;for(let t=0;t<256;t++)QK+=(256+Math.random()*256|0).toString(16).substring(1)}return QK.substring(ZK,ZK+++e)}var ZK,QK,Xle=$(()=>{f();ZK=256});function bE(e){let{batch:t,chain:n,ccipRead:r,key:o=\"base\",name:i=\"Base Client\",type:a=\"base\"}=e,c=e.experimental_blockTag??(typeof n?.experimental_preconfirmationTime==\"number\"?\"pending\":void 0),l=n?.blockTime??12e3,d=Math.min(Math.max(Math.floor(l/2),500),4e3),m=e.pollingInterval??d,h=e.cacheTime??m,g=e.account?Bn(e.account):void 0,{config:y,request:w,value:x}=e.transport({chain:n,pollingInterval:m}),I={...y,...x},C={account:g,batch:t,cacheTime:h,ccipRead:r,chain:n,key:o,name:i,pollingInterval:m,request:w,transport:I,type:a,uid:JK(),...c?{experimental_blockTag:c}:{}};function M(B){return z=>{let G=z(B);for(let ne in C)delete G[ne];let J={...B,...G};return Object.assign(J,{extend:M(J)})}}return Object.assign(C,{extend:M(C)})}var XK=$(()=>{f();La();Xle()});function Eke(e){let{scheme:t,statement:n,...r}=e.match(Rwt)?.groups??{},{chainId:o,expirationTime:i,issuedAt:a,notBefore:c,requestId:l,...d}=e.match(Iwt)?.groups??{},m=e.split(\"Resources:\")[1]?.split(`\\n- `).slice(1);return{...r,...d,...o?{chainId:Number(o)}:{},...i?{expirationTime:new Date(i)}:{},...a?{issuedAt:new Date(a)}:{},...c?{notBefore:new Date(c)}:{},...l?{requestId:l}:{},...m?{resources:m}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}var Rwt,Iwt,Ake=$(()=>{f();Rwt=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\\\\/\\\\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\\\\n)(?<address>0x[a-fA-F0-9]{40})\\\\n\\\\n(?:(?<statement>.*)\\\\n\\\\n)?/,Iwt=/(?:URI: (?<uri>.+))\\\\n(?:Version: (?<version>.+))\\\\n(?:Chain ID: (?<chainId>\\\\d+))\\\\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\\\\n(?:Issued At: (?<issuedAt>.+))(?:\\\\nExpiration Time: (?<expirationTime>.+))?(?:\\\\nNot Before: (?<notBefore>.+))?(?:\\\\nRequest ID: (?<requestId>.+))?/});function Ske(e){let{address:t,domain:n,message:r,nonce:o,scheme:i,time:a=new Date}=e;if(n&&r.domain!==n||o&&r.nonce!==o||i&&r.scheme!==i||r.expirationTime&&a>=r.expirationTime||r.notBefore&&a<r.notBefore)return!1;try{if(!r.address||!Hn(r.address,{strict:!1})||t&&!Dd(r.address,t))return!1}catch{return!1}return!0}var _ke=$(()=>{f();zh();M_()});async function Tke(e,t){let{address:n,domain:r,message:o,nonce:i,scheme:a,signature:c,time:l=new Date,...d}=t,m=Eke(o);if(!m.address||!Ske({address:n,domain:r,message:m,nonce:i,scheme:a,time:l}))return!1;let g=p0(o);return Z_(e,{address:m.address,hash:g,signature:c,...d})}var Cke=$(()=>{f();cK();Ake();_ke();yL()});function fO(e){return{call:t=>u0(e,t),createAccessList:t=>Dq(e,t),createBlockFilter:()=>jRe(e),createContractEventFilter:t=>Lq(e,t),createEventFilter:t=>Uq(e,t),createPendingTransactionFilter:()=>Fq(e),estimateContractGas:t=>DIe(e,t),estimateGas:t=>Yk(e,t),getBalance:t=>JB(e,t),getBlobBaseFee:()=>LIe(e),getBlock:t=>Sf(e,t),getBlockNumber:t=>hw(e,t),getBlockTransactionCount:t=>jIe(e,t),getBytecode:t=>d0(e,t),getChainId:()=>Gl(e),getCode:t=>d0(e,t),getContractEvents:t=>oK(e,t),getEip712Domain:t=>qIe(e,t),getEnsAddress:t=>TRe(e,t),getEnsAvatar:t=>BRe(e,t),getEnsName:t=>URe(e,t),getEnsResolver:t=>HRe(e,t),getEnsText:t=>Mq(e,t),getFeeHistory:t=>QIe(e,t),estimateFeesPerGas:t=>Xq(e,t),getFilterChanges:t=>W_(e,t),getFilterLogs:t=>XIe(e,t),getGasPrice:()=>qk(e),getLogs:t=>Jk(e,t),getProof:t=>i8e(e,t),estimateMaxPriorityFeePerGas:t=>PIe(e,t),getStorageAt:t=>s8e(e,t),getTransaction:t=>hE(e,t),getTransactionConfirmations:t=>u8e(e,t),getTransactionCount:t=>j_(e,t),getTransactionReceipt:t=>nO(e,t),multicall:t=>fL(e,t),prepareTransactionRequest:t=>pw(e,t),readContract:t=>_i(e,t),sendRawTransaction:t=>oO(e,t),sendRawTransactionSync:t=>aO(e,t),simulate:t=>pL(e,t),simulateBlocks:t=>pL(e,t),simulateCalls:t=>x8e(e,t),simulateContract:t=>A8e(e,t),verifyHash:t=>Z_(e,t),verifyMessage:t=>k8e(e,t),verifySiweMessage:t=>Tke(e,t),verifyTypedData:t=>N8e(e,t),uninstallFilter:t=>Y_(e,t),waitForTransactionReceipt:t=>E3(e,t),watchBlocks:t=>D8e(e,t),watchBlockNumber:t=>HK(e,t),watchContractEvent:t=>L8e(e,t),watchEvent:t=>F8e(e,t),watchPendingTransactions:t=>z8e(e,t)}}var $le=$(()=>{f();CRe();LRe();FRe();zRe();yue();p3();bue();WRe();vue();wue();xue();BIe();eK();tK();Gue();que();UIe();m3();Zk();WIe();fw();XB();Kue();KIe();JIe();eL();$Ie();Jq();rK();a8e();c8e();dL();l8e();ZB();Nle();Ple();jg();Mle();E8e();S8e();mL();yL();O8e();P8e();zK();jle();B8e();U8e();H8e();j8e();Cke();Kk();jK();qK()});function vE(e){let{key:t=\"public\",name:n=\"Public Client\"}=e;return bE({...e,key:t,name:n,type:\"publicClient\"}).extend(fO)}var Rke=$(()=>{f();XK();$le()});function ede(e){return{addChain:t=>W8e(e,t),deployContract:t=>G8e(e,t),getAddresses:()=>K8e(e),getCallsStatus:t=>S3(e,t),getCapabilities:t=>vL(e,t),getChainId:()=>Gl(e),getPermissions:()=>Z8e(e),prepareAuthorization:t=>_3(e,t),prepareTransactionRequest:t=>pw(e,t),requestAddresses:()=>J8e(e),requestPermissions:t=>$8e(e,t),sendCalls:t=>A3(e,t),sendCallsSync:t=>nke(e,t),sendRawTransaction:t=>oO(e,t),sendRawTransactionSync:t=>aO(e,t),sendTransaction:t=>$b(e,t),sendTransactionSync:t=>KK(e,t),showCallsStatus:t=>xL(e,t),signAuthorization:t=>oke(e,t),signMessage:t=>ake(e,t),signTransaction:t=>cke(e,t),signTypedData:t=>lke(e,t),switchChain:t=>fke(e,t),waitForCallsStatus:t=>em(e,t),watchAsset:t=>hke(e,t),writeContract:t=>T3(e,t),writeContractSync:t=>gke(e,t)}}var Ike=$(()=>{f();fw();V8e();q8e();Y8e();WK();qle();Q8e();VK();Kk();X8e();eke();bL();rke();jK();qK();iO();Zle();Qle();ike();ske();uke();dke();pke();wL();mke();Jle();yke()});function $K({key:e,methods:t,name:n,request:r,retryCount:o=3,retryDelay:i=150,timeout:a,type:c},l){let d=JK();return{config:{key:e,methods:t,name:n,request:r,retryCount:o,retryDelay:i,timeout:a,type:c},request:a4e(r,{methods:t,retryCount:o,retryDelay:i,uid:d}),value:l}}var tde=$(()=>{f();s4e();Xle()});function EL(e,t={}){let{key:n=\"custom\",methods:r,name:o=\"Custom Provider\",retryDelay:i}=t;return({retryCount:a})=>$K({key:n,methods:r,name:o,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:i,type:\"custom\"})}var kke=$(()=>{f();tde()});var eY,Oke=$(()=>{f();Jn();eY=class extends Oe{constructor(){super(\"No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.\",{docsPath:\"/docs/clients/intro\",name:\"UrlRequiredError\"})}}});function hl(e,t={}){let{batch:n,fetchFn:r,fetchOptions:o,key:i=\"http\",methods:a,name:c=\"HTTP JSON-RPC\",onFetchRequest:l,onFetchResponse:d,retryDelay:m,raw:h}=t;return({chain:g,retryCount:y,timeout:w})=>{let{batchSize:x=1e3,wait:I=0}=typeof n==\"object\"?n:{},C=t.retryCount??y,M=w??t.timeout??1e4,B=e||g?.rpcUrls.default.http[0];if(!B)throw new eY;let z=l4e(B,{fetchFn:r,fetchOptions:o,onRequest:l,onResponse:d,timeout:M});return $K({key:i,methods:a,name:c,async request({method:G,params:J}){let ne={method:G,params:J},{schedule:ie}=Cq({id:B,wait:I,shouldSplitBatch(X){return X.length>x},fn:X=>z.request({body:X}),sort:(X,F)=>X.id-F.id}),ae=async X=>n?ie(X):[await z.request({body:X})],[{error:te,result:Z}]=await ae(ne);if(h)return{error:te,result:Z};if(te)throw new h_({body:ne,error:te,url:B});return Z},retryCount:C,retryDelay:m,timeout:M,type:\"http\"},{fetchOptions:o,url:B})}}var Nke=$(()=>{f();k5();Oke();hue();d4e();tde()});function pO(e){let{r:t,s:n}=Jb.Signature.fromCompact(e.slice(2,130)),r=+`0x${e.slice(130)}`,[o,i]=(()=>{if(r===0||r===1)return[void 0,r];if(r===27)return[BigInt(r),0];if(r===28)return[BigInt(r),1];throw new Error(\"Invalid yParityOrV value\")})();return typeof o<\"u\"?{r:Pe(t,{size:32}),s:Pe(n,{size:32}),v:o,yParity:i}:{r:Pe(t,{size:32}),s:Pe(n,{size:32}),yParity:i}}var Pke=$(()=>{f();KB();An()});var gn=$(()=>{f();_5();XK();Rke();$le();Ike();kke();Nke();oE();jV();Jn();$v();K5();T5();$B();Vce();Lg();zp();t4e();Kv();zh();M_();Tg();Cg();r_();e0();Yv();n_();Ac();Ou();An();dq();o0();Gse();nL();Que();cK();hK();$4e();Pke();WV();n8e()});function Kke(e){if(typeof window>\"u\")return;let t=n=>e(n.detail);return window.addEventListener(\"eip6963:announceProvider\",t),window.dispatchEvent(new CustomEvent(\"eip6963:requestProvider\")),()=>window.removeEventListener(\"eip6963:announceProvider\",t)}var Yke=$(()=>{f()});function ude(){let e=new Set,t=[],n=()=>Kke(o=>{t.some(({info:i})=>i.uuid===o.info.uuid)||(t=[...t,o],e.forEach(i=>i(t,{added:[o]})))}),r=n();return{_listeners(){return e},clear(){e.forEach(o=>o([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),r?.()},findProvider({rdns:o}){return t.find(i=>i.info.rdns===o)},getProviders(){return t},reset(){this.clear(),r?.(),r=n()},subscribe(o,{emitImmediately:i}={}){return e.add(o),i&&o(t,{added:t}),()=>e.delete(o)}}}var Zke=$(()=>{f();Yke()});var Qke=$(()=>{f();Zke()});var fde=me((zOn,dde)=>{\"use strict\";f();var Mwt=Object.prototype.hasOwnProperty,qp=\"~\";function SL(){}Object.create&&(SL.prototype=Object.create(null),new SL().__proto__||(qp=!1));function Dwt(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function eOe(e,t,n,r,o){if(typeof n!=\"function\")throw new TypeError(\"The listener must be a function\");var i=new Dwt(n,r||e,o),a=qp?qp+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],i]:e._events[a].push(i):(e._events[a]=i,e._eventsCount++),e}function uY(e,t){--e._eventsCount===0?e._events=new SL:delete e._events[t]}function Tf(){this._events=new SL,this._eventsCount=0}Tf.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)Mwt.call(n,r)&&t.push(qp?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};Tf.prototype.listeners=function(t){var n=qp?qp+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a};Tf.prototype.listenerCount=function(t){var n=qp?qp+t:t,r=this._events[n];return r?r.fn?1:r.length:0};Tf.prototype.emit=function(t,n,r,o,i,a){var c=qp?qp+t:t;if(!this._events[c])return!1;var l=this._events[c],d=arguments.length,m,h;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,n),!0;case 3:return l.fn.call(l.context,n,r),!0;case 4:return l.fn.call(l.context,n,r,o),!0;case 5:return l.fn.call(l.context,n,r,o,i),!0;case 6:return l.fn.call(l.context,n,r,o,i,a),!0}for(h=1,m=new Array(d-1);h<d;h++)m[h-1]=arguments[h];l.fn.apply(l.context,m)}else{var g=l.length,y;for(h=0;h<g;h++)switch(l[h].once&&this.removeListener(t,l[h].fn,void 0,!0),d){case 1:l[h].fn.call(l[h].context);break;case 2:l[h].fn.call(l[h].context,n);break;case 3:l[h].fn.call(l[h].context,n,r);break;case 4:l[h].fn.call(l[h].context,n,r,o);break;default:if(!m)for(y=1,m=new Array(d-1);y<d;y++)m[y-1]=arguments[y];l[h].fn.apply(l[h].context,m)}}return!0};Tf.prototype.on=function(t,n,r){return eOe(this,t,n,r,!1)};Tf.prototype.once=function(t,n,r){return eOe(this,t,n,r,!0)};Tf.prototype.removeListener=function(t,n,r,o){var i=qp?qp+t:t;if(!this._events[i])return this;if(!n)return uY(this,i),this;var a=this._events[i];if(a.fn)a.fn===n&&(!o||a.once)&&(!r||a.context===r)&&uY(this,i);else{for(var c=0,l=[],d=a.length;c<d;c++)(a[c].fn!==n||o&&!a[c].once||r&&a[c].context!==r)&&l.push(a[c]);l.length?this._events[i]=l.length===1?l[0]:l:uY(this,i)}return this};Tf.prototype.removeAllListeners=function(t){var n;return t?(n=qp?qp+t:t,this._events[n]&&uY(this,n)):(this._events=new SL,this._eventsCount=0),this};Tf.prototype.off=Tf.prototype.removeListener;Tf.prototype.addListener=Tf.prototype.on;Tf.prefixed=qp;Tf.EventEmitter=Tf;typeof dde<\"u\"&&(dde.exports=Tf)});var qg,tOe,J_=$(()=>{f();qg=ge(fde(),1),tOe=qg.default});var fOe=me(dOe=>{\"use strict\";f();(function(){function e(y,w){return y===w&&(y!==0||1/y===1/w)||y!==y&&w!==w}function t(y,w){m||o.startTransition===void 0||(m=!0,console.error(\"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"));var x=w();if(!h){var I=w();i(x,I)||(console.error(\"The result of getSnapshot should be cached to avoid an infinite loop\"),h=!0)}I=a({inst:{value:x,getSnapshot:w}});var C=I[0].inst,M=I[1];return l(function(){C.value=x,C.getSnapshot=w,n(C)&&M({inst:C})},[y,x,w]),c(function(){return n(C)&&M({inst:C}),y(function(){n(C)&&M({inst:C})})},[y]),d(x),x}function n(y){var w=y.getSnapshot;y=y.value;try{var x=w();return!i(y,x)}catch{return!0}}function r(y,w){return w()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=at(),i=typeof Object.is==\"function\"?Object.is:e,a=o.useState,c=o.useEffect,l=o.useLayoutEffect,d=o.useDebugValue,m=!1,h=!1,g=typeof window>\"u\"||typeof window.document>\"u\"||typeof window.document.createElement>\"u\"?r:t;dOe.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:g,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var hOe=me((wPn,pOe)=>{\"use strict\";f();pOe.exports=fOe()});var gOe=me(mOe=>{\"use strict\";f();(function(){function e(d,m){return d===m&&(d!==0||1/d===1/m)||d!==d&&m!==m}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=at(),n=hOe(),r=typeof Object.is==\"function\"?Object.is:e,o=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,c=t.useMemo,l=t.useDebugValue;mOe.useSyncExternalStoreWithSelector=function(d,m,h,g,y){var w=i(null);if(w.current===null){var x={hasValue:!1,value:null};w.current=x}else x=w.current;w=c(function(){function C(J){if(!M){if(M=!0,B=J,J=g(J),y!==void 0&&x.hasValue){var ne=x.value;if(y(ne,J))return z=ne}return z=J}if(ne=z,r(B,J))return ne;var ie=g(J);return y!==void 0&&y(ne,ie)?(B=J,ne):(B=J,z=ie)}var M=!1,B,z,G=h===void 0?null:h;return[function(){return C(m())},G===null?void 0:function(){return C(G())}]},[m,h,g,y]);var I=o(d,w[0],w[1]);return a(function(){x.hasValue=!0,x.value=I},[I]),l(I),I},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==\"function\"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var bOe=me((SPn,yOe)=>{\"use strict\";f();yOe.exports=gOe()});var Fde,BOe=$(()=>{Fde={name:\"@base-org/account\",version:\"1.1.1\",description:\"Base Account SDK\",keywords:[\"base\",\"account\",\"sdk\",\"web3\"],publishConfig:{access:\"public\"},type:\"module\",main:\"dist/index.js\",types:\"dist/index.d.ts\",browser:\"dist/base-account.min.js\",exports:{\".\":{types:\"./dist/index.d.ts\",import:\"./dist/index.js\",require:\"./dist/index.js\"},\"./payment\":{types:\"./dist/interface/payment/index.d.ts\",import:\"./dist/interface/payment/index.js\",require:\"./dist/interface/payment/index.js\"},\"./ui-assets\":{types:\"./dist/ui/assets/index.d.ts\",import:\"./dist/ui/assets/index.js\",require:\"./dist/ui/assets/index.js\"}},files:[\"dist\",\"README.md\",\"LICENSE\"],sideEffects:!1,repository:\"https://github.com/base/account-sdk.git\",author:\"Base\",license:\"Apache-2.0\",scripts:{clean:\"rm -rf dist && rm -rf node_modules\",pretest:\"node compile-assets.cjs\",test:\"vitest\",\"test:coverage\":\"vitest --coverage\",prebuild:\"rm -rf ./dist\",build:\"node compile-assets.cjs && tsc -p ./tsconfig.build.json && tsc-alias && yarn build:browser\",\"build:browser\":\"rollup -c rollup.config.js\",prepublishOnly:\"yarn build\",dev:\"yarn build && tsc --watch & nodemon --watch dist --delay 1 --exec tsc-alias\",typecheck:\"tsc --noEmit\",lint:\"biome lint .\",format:\"biome format . --write\",\"format:check\":\"biome check . --formatter-enabled=true --linter-enabled=false --organize-imports-enabled=false\",size:\"size-limit\"},dependencies:{\"@noble/hashes\":\"1.4.0\",clsx:\"1.2.1\",eventemitter3:\"5.0.1\",\"idb-keyval\":\"6.2.1\",ox:\"0.6.9\",preact:\"10.24.2\",viem:\"^2.31.7\",zustand:\"5.0.3\"},devDependencies:{\"@rollup/plugin-commonjs\":\"^25.0.7\",\"@rollup/plugin-json\":\"^6.1.0\",\"@rollup/plugin-node-resolve\":\"^15.2.3\",\"@rollup/plugin-replace\":\"^5.0.5\",\"@rollup/plugin-typescript\":\"^11.1.6\",\"@size-limit/preset-big-lib\":\"^11.1.6\",\"@testing-library/jest-dom\":\"^6.5.0\",\"@testing-library/preact\":\"^3.2.4\",\"@types/node\":\"^14.18.54\",\"@vitest/coverage-v8\":\"2.1.2\",\"@vitest/web-worker\":\"3.2.1\",\"fake-indexeddb\":\"^6.0.0\",glob:\"^11.0.0\",\"jest-websocket-mock\":\"^2.4.0\",jsdom:\"^25.0.1\",nodemon:\"^3.1.0\",rollup:\"^4.9.6\",\"rollup-plugin-terser\":\"^7.0.2\",sass:\"^1.64.1\",\"size-limit\":\"^11.1.6\",\"tsc-alias\":\"^1.8.8\",tslib:\"^2.6.0\",typescript:\"^5.1.6\",vitest:\"^2.1.9\"},\"size-limit\":[{path:\"./dist/index.js\",limit:\"31 KB\",import:\"*\"}]}});var LOe,EY,X_,Zg,wE=$(()=>{f();BOe();LOe=\"https://keys.coinbase.com/connect\",EY=\"https://rpc.wallet.coinbase.com\",X_=Fde.name,Zg=Fde.version});function PL(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var i;let a=l=>l===null?null:JSON.parse(l,t?.reviver),c=(i=n.getItem(o))!=null?i:null;return c instanceof Promise?c.then(a):a(c)},setItem:(o,i)=>n.setItem(o,JSON.stringify(i,t?.replacer)),removeItem:o=>n.removeItem(o)}}var Hde,Wwt,AY,zde=$(()=>{f();Hde=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(r){return Hde(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Hde(r)(n)}}}},Wwt=(e,t)=>(n,r,o)=>{let i={storage:PL(()=>localStorage),partialize:x=>x,version:0,merge:(x,I)=>({...I,...x}),...t},a=!1,c=new Set,l=new Set,d=i.storage;if(!d)return e((...x)=>{console.warn(`[zustand persist middleware] Unable to update item \\'${i.name}\\', the given storage is currently unavailable.`),n(...x)},r,o);let m=()=>{let x=i.partialize({...r()});return d.setItem(i.name,{state:x,version:i.version})},h=o.setState;o.setState=(x,I)=>{h(x,I),m()};let g=e((...x)=>{n(...x),m()},r,o);o.getInitialState=()=>g;let y,w=()=>{var x,I;if(!d)return;a=!1,c.forEach(M=>{var B;return M((B=r())!=null?B:g)});let C=((I=i.onRehydrateStorage)==null?void 0:I.call(i,(x=r())!=null?x:g))||void 0;return Hde(d.getItem.bind(d))(i.name).then(M=>{if(M)if(typeof M.version==\"number\"&&M.version!==i.version){if(i.migrate){let B=i.migrate(M.state,M.version);return B instanceof Promise?B.then(z=>[!0,z]):[!0,B]}console.error(\"State loaded from storage couldn\\'t be migrated since no migrate function was provided\")}else return[!1,M.state];return[!1,void 0]}).then(M=>{var B;let[z,G]=M;if(y=i.merge(G,(B=r())!=null?B:g),n(y,!0),z)return m()}).then(()=>{C?.(y,void 0),y=r(),a=!0,l.forEach(M=>M(y))}).catch(M=>{C?.(void 0,M)})};return o.persist={setOptions:x=>{i={...i,...x},x.storage&&(d=x.storage)},clearStorage:()=>{d?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>w(),hasHydrated:()=>a,onHydrate:x=>(c.add(x),()=>{c.delete(x)}),onFinishHydration:x=>(l.add(x),()=>{l.delete(x)})},i.skipHydration||w(),y||g},AY=Wwt});var UOe,Qg,I3=$(()=>{f();UOe=e=>{let t,n=new Set,r=(d,m)=>{let h=typeof d==\"function\"?d(t):d;if(!Object.is(h,t)){let g=t;t=m??(typeof h!=\"object\"||h===null)?h:Object.assign({},t,h),n.forEach(y=>y(t,g))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>l,subscribe:d=>(n.add(d),()=>n.delete(d))},l=t=e(r,o,c);return c},Qg=e=>e?UOe(e):UOe});var Vwt,Gwt,qwt,Kwt,Ywt,Zwt,Qwt,tu,Jwt,Xwt,$wt,ext,txt,nxt,jde,rxt,Ut,rm=$(()=>{f();wE();zde();I3();Vwt=()=>({chains:[]}),Gwt=()=>({keys:{}}),qwt=()=>({account:{}}),Kwt=()=>({subAccount:void 0}),Ywt=()=>({subAccountConfig:{}}),Zwt=()=>({spendPermissions:[]}),Qwt=()=>({config:{version:Zg}}),tu=Qg(AY((...e)=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vwt(...e)),Gwt(...e)),qwt(...e)),Kwt(...e)),Zwt(...e)),Qwt(...e)),Ywt(...e)),{name:\"base-acc-sdk.store\",storage:PL(()=>localStorage),partialize:e=>({chains:e.chains,keys:e.keys,account:e.account,subAccount:e.subAccount,spendPermissions:e.spendPermissions,config:e.config})})),Jwt={get:()=>tu.getState().subAccountConfig,set:e=>{tu.setState(t=>({subAccountConfig:Object.assign(Object.assign({},t.subAccountConfig),e)}))},clear:()=>{tu.setState({subAccountConfig:{}})}},Xwt={get:()=>tu.getState().subAccount,set:e=>{tu.setState(t=>({subAccount:t.subAccount?Object.assign(Object.assign({},t.subAccount),e):Object.assign({address:e.address},e)}))},clear:()=>{tu.setState({subAccount:void 0})}},$wt={get:()=>tu.getState().spendPermissions,set:e=>{tu.setState({spendPermissions:e})},clear:()=>{tu.setState({spendPermissions:[]})}},ext={get:()=>tu.getState().account,set:e=>{tu.setState(t=>({account:Object.assign(Object.assign({},t.account),e)}))},clear:()=>{tu.setState({account:{}})}},txt={get:()=>tu.getState().chains,set:e=>{tu.setState({chains:e})},clear:()=>{tu.setState({chains:[]})}},nxt={get:e=>tu.getState().keys[e],set:(e,t)=>{tu.setState(n=>({keys:Object.assign(Object.assign({},n.keys),{[e]:t})}))},clear:()=>{tu.setState({keys:{}})}},jde={get:()=>tu.getState().config,set:e=>{tu.setState(t=>({config:Object.assign(Object.assign({},t.config),e)}))}},rxt={subAccounts:Xwt,subAccountsConfig:Jwt,spendPermissions:$wt,account:ext,chains:txt,keys:nxt,config:jde},Ut=Object.assign(Object.assign({},tu),rxt)});var FOe,HOe=$(()=>{f();FOe=\\'!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports.ClientAnalytics=t():e.ClientAnalytics=t()}(this,(function(){return(()=>{var e={792:e=>{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 t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join(\"\")}}};e.exports=t},562:e=>{var t,n;t=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join(\"\")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var i=e[r]<<16|e[r+1]<<8|e[r+2],a=0;a<4;a++)8*r+6*a<=8*e.length?n.push(t.charAt(i>>>6*(3-a)&63)):n.push(\"=\");return n.join(\"\")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\\\\\\\\/]/gi,\"\");for(var n=[],r=0,i=0;r<e.length;i=++r%4)0!=i&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(r))>>>6-2*i);return n}},e.exports=n},335:e=>{function t(e){return!!e.constructor&&\"function\"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return\"function\"==typeof e.readFloatLE&&\"function\"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},762:(e,t,n)=>{var r,i,a,o,s;r=n(562),i=n(792).utf8,a=n(335),o=n(792).bin,(s=function(e,t){e.constructor==String?e=t&&\"binary\"===t.encoding?o.stringToBytes(e):i.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),c=8*e.length,u=1732584193,l=-271733879,d=-1732584194,p=271733878,m=0;m<n.length;m++)n[m]=16711935&(n[m]<<8|n[m]>>>24)|4278255360&(n[m]<<24|n[m]>>>8);n[c>>>5]|=128<<c%32,n[14+(c+64>>>9<<4)]=c;var f=s._ff,v=s._gg,g=s._hh,b=s._ii;for(m=0;m<n.length;m+=16){var h=u,w=l,y=d,T=p;u=f(u,l,d,p,n[m+0],7,-680876936),p=f(p,u,l,d,n[m+1],12,-389564586),d=f(d,p,u,l,n[m+2],17,606105819),l=f(l,d,p,u,n[m+3],22,-1044525330),u=f(u,l,d,p,n[m+4],7,-176418897),p=f(p,u,l,d,n[m+5],12,1200080426),d=f(d,p,u,l,n[m+6],17,-1473231341),l=f(l,d,p,u,n[m+7],22,-45705983),u=f(u,l,d,p,n[m+8],7,1770035416),p=f(p,u,l,d,n[m+9],12,-1958414417),d=f(d,p,u,l,n[m+10],17,-42063),l=f(l,d,p,u,n[m+11],22,-1990404162),u=f(u,l,d,p,n[m+12],7,1804603682),p=f(p,u,l,d,n[m+13],12,-40341101),d=f(d,p,u,l,n[m+14],17,-1502002290),u=v(u,l=f(l,d,p,u,n[m+15],22,1236535329),d,p,n[m+1],5,-165796510),p=v(p,u,l,d,n[m+6],9,-1069501632),d=v(d,p,u,l,n[m+11],14,643717713),l=v(l,d,p,u,n[m+0],20,-373897302),u=v(u,l,d,p,n[m+5],5,-701558691),p=v(p,u,l,d,n[m+10],9,38016083),d=v(d,p,u,l,n[m+15],14,-660478335),l=v(l,d,p,u,n[m+4],20,-405537848),u=v(u,l,d,p,n[m+9],5,568446438),p=v(p,u,l,d,n[m+14],9,-1019803690),d=v(d,p,u,l,n[m+3],14,-187363961),l=v(l,d,p,u,n[m+8],20,1163531501),u=v(u,l,d,p,n[m+13],5,-1444681467),p=v(p,u,l,d,n[m+2],9,-51403784),d=v(d,p,u,l,n[m+7],14,1735328473),u=g(u,l=v(l,d,p,u,n[m+12],20,-1926607734),d,p,n[m+5],4,-378558),p=g(p,u,l,d,n[m+8],11,-2022574463),d=g(d,p,u,l,n[m+11],16,1839030562),l=g(l,d,p,u,n[m+14],23,-35309556),u=g(u,l,d,p,n[m+1],4,-1530992060),p=g(p,u,l,d,n[m+4],11,1272893353),d=g(d,p,u,l,n[m+7],16,-155497632),l=g(l,d,p,u,n[m+10],23,-1094730640),u=g(u,l,d,p,n[m+13],4,681279174),p=g(p,u,l,d,n[m+0],11,-358537222),d=g(d,p,u,l,n[m+3],16,-722521979),l=g(l,d,p,u,n[m+6],23,76029189),u=g(u,l,d,p,n[m+9],4,-640364487),p=g(p,u,l,d,n[m+12],11,-421815835),d=g(d,p,u,l,n[m+15],16,530742520),u=b(u,l=g(l,d,p,u,n[m+2],23,-995338651),d,p,n[m+0],6,-198630844),p=b(p,u,l,d,n[m+7],10,1126891415),d=b(d,p,u,l,n[m+14],15,-1416354905),l=b(l,d,p,u,n[m+5],21,-57434055),u=b(u,l,d,p,n[m+12],6,1700485571),p=b(p,u,l,d,n[m+3],10,-1894986606),d=b(d,p,u,l,n[m+10],15,-1051523),l=b(l,d,p,u,n[m+1],21,-2054922799),u=b(u,l,d,p,n[m+8],6,1873313359),p=b(p,u,l,d,n[m+15],10,-30611744),d=b(d,p,u,l,n[m+6],15,-1560198380),l=b(l,d,p,u,n[m+13],21,1309151649),u=b(u,l,d,p,n[m+4],6,-145523070),p=b(p,u,l,d,n[m+11],10,-1120210379),d=b(d,p,u,l,n[m+2],15,718787259),l=b(l,d,p,u,n[m+9],21,-343485551),u=u+h>>>0,l=l+w>>>0,d=d+y>>>0,p=p+T>>>0}return r.endian([u,l,d,p])})._ff=function(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._gg=function(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._hh=function(e,t,n,r,i,a,o){var s=e+(t^n^r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._ii=function(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error(\"Illegal argument \"+e);var n=r.wordsToBytes(s(e,t));return t&&t.asBytes?n:t&&t.asString?o.bytesToString(n):r.bytesToHex(n)}},2:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{Perfume:()=>ze,incrementUjNavigation:()=>Le,markStep:()=>Re,markStepOnce:()=>qe});var r,i,a={isResourceTiming:!1,isElementTiming:!1,maxTime:3e4,reportOptions:{},enableNavigationTracking:!0},o=window,s=o.console,c=o.navigator,u=o.performance,l=function(){return c.deviceMemory},d=function(){return c.hardwareConcurrency},p=\"mark.\",m=function(){return u&&!!u.getEntriesByType&&!!u.now&&!!u.mark},f=\"4g\",v=!1,g={},b={value:0},h={value:{beacon:0,css:0,fetch:0,img:0,other:0,script:0,total:0,xmlhttprequest:0}},w={value:0},y={value:0},T={},k={isHidden:!1,didChange:!1},_=function(){k.isHidden=!1,document.hidden&&(k.isHidden=document.hidden,k.didChange=!0)},S=function(e,t){try{var n=new PerformanceObserver((function(e){t(e.getEntries())}));return n.observe({type:e,buffered:!0}),n}catch(e){s.warn(\"Perfume.js:\",e)}return null},E=function(){return!!(d()&&d()<=4)||!!(l()&&l()<=4)},x=function(e,t){switch(e){case\"slow-2g\":case\"2g\":case\"3g\":return!0;default:return E()||t}},O=function(e){return parseFloat(e.toFixed(4))},j=function(e){return\"number\"!=typeof e?null:O(e/Math.pow(1024,2))},N=function(e,t,n,r,i){var s,u=function(){a.analyticsTracker&&(k.isHidden&&![\"CLS\",\"INP\"].includes(e)||a.analyticsTracker({attribution:r,metricName:e,data:t,navigatorInformation:c?{deviceMemory:l()||0,hardwareConcurrency:d()||0,serviceWorkerStatus:\"serviceWorker\"in c?c.serviceWorker.controller?\"controlled\":\"supported\":\"unsupported\",isLowEndDevice:E(),isLowEndExperience:x(f,v)}:{},rating:n,navigationType:i}))};[\"CLS\",\"INP\"].includes(e)?u():(s=u,\"requestIdleCallback\"in o?o.requestIdleCallback(s,{timeout:3e3}):s())},I=function(e){e.forEach((function(e){if(!(\"self\"!==e.name||e.startTime<b.value)){var t=e.duration-50;t>0&&(w.value+=t,y.value+=t)}}))};!function(e){e.instant=\"instant\",e.quick=\"quick\",e.moderate=\"moderate\",e.slow=\"slow\",e.unavoidable=\"unavoidable\"}(r||(r={}));var P,M,B,C,D,A=((i={})[r.instant]={vitalsThresholds:[100,200],maxOutlierThreshold:1e4},i[r.quick]={vitalsThresholds:[200,500],maxOutlierThreshold:1e4},i[r.moderate]={vitalsThresholds:[500,1e3],maxOutlierThreshold:1e4},i[r.slow]={vitalsThresholds:[1e3,2e3],maxOutlierThreshold:1e4},i[r.unavoidable]={vitalsThresholds:[2e3,5e3],maxOutlierThreshold:2e4},i),L={RT:[100,200],TBT:[200,600],NTBT:[200,600]},U=function(e,t){return L[e]?t<=L[e][0]?\"good\":t<=L[e][1]?\"needsImprovement\":\"poor\":null},R=function(e,t,n){Object.keys(t).forEach((function(e){\"number\"==typeof t[e]&&(t[e]=O(t[e]))})),N(e,t,null,n||{})},q=function(e){var t=e.attribution,n=e.name,r=e.rating,i=e.value,o=e.navigationType;\"FCP\"===n&&(b.value=i),[\"FCP\",\"LCP\"].includes(n)&&!T[0]&&(T[0]=S(\"longtask\",I)),\"FID\"===n&&setTimeout((function(){k.didChange||(q({attribution:t,name:\"TBT\",rating:U(\"TBT\",w.value),value:w.value,navigationType:o}),R(\"dataConsumption\",h.value))}),1e4);var s=O(i);s<=a.maxTime&&s>=0&&N(n,s,r,t,o)},F=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType(\"navigation\")[0]},z=function(e){if(\"loading\"===document.readyState)return\"loading\";var t=F();if(t){if(e<t.domInteractive)return\"loading\";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return\"dom-interactive\";if(0===t.domComplete||e<t.domComplete)return\"dom-content-loaded\"}return\"complete\"},K=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,\"\")},$=function(e,t){var n=\"\";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?\"#\"+r.id:K(r)+(r.className&&r.className.length?\".\"+r.className.replace(/\\\\\\\\s+/g,\".\"):\"\");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+\">\"+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},Q=-1,W=function(){return Q},H=function(e){addEventListener(\"pageshow\",(function(t){t.persisted&&(Q=t.timeStamp,e(t))}),!0)},V=function(){var e=F();return e&&e.activationStart||0},J=function(e,t){var n=F(),r=\"navigate\";return W()>=0?r=\"back-forward-cache\":n&&(r=document.prerendering||V()>0?\"prerender\":document.wasDiscarded?\"restore\":n.type.replace(/_/g,\"-\")),{name:e,value:void 0===t?-1:t,rating:\"good\",delta:0,entries:[],id:\"v3-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},X=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},G=function(e,t){var n=function n(r){\"pagehide\"!==r.type&&\"hidden\"!==document.visibilityState||(e(r),t&&(removeEventListener(\"visibilitychange\",n,!0),removeEventListener(\"pagehide\",n,!0)))};addEventListener(\"visibilitychange\",n,!0),addEventListener(\"pagehide\",n,!0)},Z=function(e,t,n,r){var i,a;return function(o){t.value>=0&&(o||r)&&((a=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=function(e,t){return e>t[1]?\"poor\":e>t[0]?\"needs-improvement\":\"good\"}(t.value,n),e(t))}},Y=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},ee=function(e){document.prerendering?addEventListener(\"prerenderingchange\",(function(){return e()}),!0):e()},te=-1,ne=function(){return\"hidden\"!==document.visibilityState||document.prerendering?1/0:0},re=function(e){\"hidden\"===document.visibilityState&&te>-1&&(te=\"visibilitychange\"===e.type?e.timeStamp:0,ae())},ie=function(){addEventListener(\"visibilitychange\",re,!0),addEventListener(\"prerenderingchange\",re,!0)},ae=function(){removeEventListener(\"visibilitychange\",re,!0),removeEventListener(\"prerenderingchange\",re,!0)},oe=function(){return te<0&&(te=ne(),ie(),H((function(){setTimeout((function(){te=ne(),ie()}),0)}))),{get firstHiddenTime(){return te}}},se=function(e,t){t=t||{},ee((function(){var n,r=[1800,3e3],i=oe(),a=J(\"FCP\"),o=X(\"paint\",(function(e){e.forEach((function(e){\"first-contentful-paint\"===e.name&&(o.disconnect(),e.startTime<i.firstHiddenTime&&(a.value=Math.max(e.startTime-V(),0),a.entries.push(e),n(!0)))}))}));o&&(n=Z(e,a,r,t.reportAllChanges),H((function(i){a=J(\"FCP\"),n=Z(e,a,r,t.reportAllChanges),Y((function(){a.value=performance.now()-i.timeStamp,n(!0)}))})))}))},ce={passive:!0,capture:!0},ue=new Date,le=function(e,t){P||(P=t,M=e,B=new Date,me(removeEventListener),de())},de=function(){if(M>=0&&M<B-ue){var e={entryType:\"first-input\",name:P.type,target:P.target,cancelable:P.cancelable,startTime:P.timeStamp,processingStart:P.timeStamp+M};C.forEach((function(t){t(e)})),C=[]}},pe=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?function(e,t){var n=function(){le(e,t),i()},r=function(){i()},i=function(){removeEventListener(\"pointerup\",n,ce),removeEventListener(\"pointercancel\",r,ce)};addEventListener(\"pointerup\",n,ce),addEventListener(\"pointercancel\",r,ce)}(t,e):le(t,e)}},me=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach((function(t){return e(t,pe,ce)}))},fe=0,ve=1/0,ge=0,be=function(e){e.forEach((function(e){e.interactionId&&(ve=Math.min(ve,e.interactionId),ge=Math.max(ge,e.interactionId),fe=ge?(ge-ve)/7+1:0)}))},he=function(){return D?fe:performance.interactionCount||0},we=0,ye=function(){return he()-we},Te=[],ke={},_e=function(e){var t=Te[Te.length-1],n=ke[e.interactionId];if(n||Te.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};ke[r.id]=r,Te.push(r)}Te.sort((function(e,t){return t.latency-e.latency})),Te.splice(10).forEach((function(e){delete ke[e.id]}))}},Se={},Ee=function e(t){document.prerendering?ee((function(){return e(t)})):\"complete\"!==document.readyState?addEventListener(\"load\",(function(){return e(t)}),!0):setTimeout(t,0)},xe=function(e,t){t=t||{};var n=[800,1800],r=J(\"TTFB\"),i=Z(e,r,n,t.reportAllChanges);Ee((function(){var a=F();if(a){var o=a.responseStart;if(o<=0||o>performance.now())return;r.value=Math.max(o-V(),0),r.entries=[a],i(!0),H((function(){r=J(\"TTFB\",0),(i=Z(e,r,n,t.reportAllChanges))(!0)}))}}))},Oe=function(e){e.forEach((function(e){e.identifier&&q({attribution:{identifier:e.identifier},name:\"ET\",rating:null,value:e.startTime})}))},je=function(e){e.forEach((function(e){if(a.isResourceTiming&&R(\"resourceTiming\",e),e.decodedBodySize&&e.initiatorType){var t=e.decodedBodySize/1e3;h.value[e.initiatorType]+=t,h.value.total+=t}}))},Ne=function(){!function(e,t){xe((function(e){!function(e){if(e.entries.length){var t=e.entries[0],n=t.activationStart||0,r=Math.max(t.domainLookupStart-n,0),i=Math.max(t.connectStart-n,0),a=Math.max(t.requestStart-n,0);e.attribution={waitingTime:r,dnsTime:i-r,connectionTime:a-i,requestTime:e.value-a,navigationEntry:t}}else e.attribution={waitingTime:0,dnsTime:0,connectionTime:0,requestTime:0}}(e),function(e){e.value>0&&q(e)}(e)}),t)}(0,a.reportOptions.ttfb),function(e,t){!function(e,t){t=t||{},ee((function(){var e,n=[.1,.25],r=J(\"CLS\"),i=-1,a=0,o=[],s=function(e){i>-1&&function(e){!function(e){if(e.entries.length){var t=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(t&&t.sources&&t.sources.length){var n=(r=t.sources).find((function(e){return e.node&&1===e.node.nodeType}))||r[0];if(n)return void(e.attribution={largestShiftTarget:$(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:z(t.startTime)})}}var r;e.attribution={}}(e),function(e){q(e)}(e)}(e)},c=function(t){t.forEach((function(t){if(!t.hadRecentInput){var n=o[0],i=o[o.length-1];a&&t.startTime-i.startTime<1e3&&t.startTime-n.startTime<5e3?(a+=t.value,o.push(t)):(a=t.value,o=[t]),a>r.value&&(r.value=a,r.entries=o,e())}}))},u=X(\"layout-shift\",c);u&&(e=Z(s,r,n,t.reportAllChanges),se((function(t){i=t.value,r.value<0&&(r.value=0,e())})),G((function(){c(u.takeRecords()),e(!0)})),H((function(){a=0,i=-1,r=J(\"CLS\",0),e=Z(s,r,n,t.reportAllChanges),Y((function(){return e()}))})))}))}(0,t)}(0,a.reportOptions.cls),function(e,t){se((function(e){!function(e){if(e.entries.length){var t=F(),n=e.entries[e.entries.length-1];if(t){var r=t.activationStart||0,i=Math.max(0,t.responseStart-r);return void(e.attribution={timeToFirstByte:i,firstByteToFCP:e.value-i,loadState:z(e.entries[0].startTime),navigationEntry:t,fcpEntry:n})}}e.attribution={timeToFirstByte:0,firstByteToFCP:e.value,loadState:z(W())}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.fcp),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=[100,300],i=oe(),a=J(\"FID\"),o=function(e){e.startTime<i.firstHiddenTime&&(a.value=e.processingStart-e.startTime,a.entries.push(e),n(!0))},s=function(e){e.forEach(o)},c=X(\"first-input\",s);n=Z(e,a,r,t.reportAllChanges),c&&G((function(){s(c.takeRecords()),c.disconnect()}),!0),c&&H((function(){var i;a=J(\"FID\"),n=Z(e,a,r,t.reportAllChanges),C=[],M=-1,P=null,me(addEventListener),i=o,C.push(i),de()}))}))}((function(e){!function(e){var t=e.entries[0];e.attribution={eventTarget:$(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:z(t.startTime)}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.fid),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=[2500,4e3],i=oe(),a=J(\"LCP\"),o=function(e){var t=e[e.length-1];if(t){var r=Math.max(t.startTime-V(),0);r<i.firstHiddenTime&&(a.value=r,a.entries=[t],n())}},s=X(\"largest-contentful-paint\",o);if(s){n=Z(e,a,r,t.reportAllChanges);var c=function(){Se[a.id]||(o(s.takeRecords()),s.disconnect(),Se[a.id]=!0,n(!0))};[\"keydown\",\"click\"].forEach((function(e){addEventListener(e,c,{once:!0,capture:!0})})),G(c,!0),H((function(i){a=J(\"LCP\"),n=Z(e,a,r,t.reportAllChanges),Y((function(){a.value=performance.now()-i.timeStamp,Se[a.id]=!0,n(!0)}))}))}}))}((function(e){!function(e){if(e.entries.length){var t=F();if(t){var n=t.activationStart||0,r=e.entries[e.entries.length-1],i=r.url&&performance.getEntriesByType(\"resource\").filter((function(e){return e.name===r.url}))[0],a=Math.max(0,t.responseStart-n),o=Math.max(a,i?(i.requestStart||i.startTime)-n:0),s=Math.max(o,i?i.responseEnd-n:0),c=Math.max(s,r?r.startTime-n:0),u={element:$(r.element),timeToFirstByte:a,resourceLoadDelay:o-a,resourceLoadTime:s-o,elementRenderDelay:c-s,navigationEntry:t,lcpEntry:r};return r.url&&(u.url=r.url),i&&(u.lcpResourceEntry=i),void(e.attribution=u)}}e.attribution={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadTime:0,elementRenderDelay:e.value}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.lcp),function(e,t){!function(e,t){t=t||{},ee((function(){var n=[200,500];\"interactionCount\"in performance||D||(D=X(\"event\",be,{type:\"event\",buffered:!0,durationThreshold:0}));var r,i=J(\"INP\"),a=function(e){e.forEach((function(e){e.interactionId&&_e(e),\"first-input\"===e.entryType&&!Te.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&_e(e)}));var t,n=(t=Math.min(Te.length-1,Math.floor(ye()/50)),Te[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r())},o=X(\"event\",a,{durationThreshold:t.durationThreshold||40});r=Z(e,i,n,t.reportAllChanges),o&&(o.observe({type:\"first-input\",buffered:!0}),G((function(){a(o.takeRecords()),i.value<0&&ye()>0&&(i.value=0,i.entries=[]),r(!0)})),H((function(){Te=[],we=he(),i=J(\"INP\"),r=Z(e,i,n,t.reportAllChanges)})))}))}((function(t){!function(e){if(e.entries.length){var t=e.entries.sort((function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)}))[0];e.attribution={eventTarget:$(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:z(t.startTime)}}else e.attribution={}}(t),e(t)}),t)}((function(e){return q(e)}),a.reportOptions.inp),a.isResourceTiming&&S(\"resource\",je),a.isElementTiming&&S(\"element\",Oe)},Ie=function(e){var t=\"usageDetails\"in e?e.usageDetails:{};R(\"storageEstimate\",{quota:j(e.quota),usage:j(e.usage),caches:j(t.caches),indexedDB:j(t.indexedDB),serviceWorker:j(t.serviceWorkerRegistrations)})},Pe={finalMarkToStepsMap:{},startMarkToStepsMap:{},active:{},navigationSteps:{}},Me=function(e){delete Pe.active[e]},Be=function(){return Pe.navigationSteps},Ce=function(e){var t;return null!==(t=Be()[e])&&void 0!==t?t:{}},De=function(e,t,n){var r=\"step.\"+e,i=u.getEntriesByName(p+t).length>0;if(u.getEntriesByName(p+n).length>0&&a.steps){var o=A[a.steps[e].threshold],s=o.maxOutlierThreshold,c=o.vitalsThresholds;if(i){var l=u.measure(r,p+t,p+n),d=l.duration;if(d<=s){var m=function(e,t){return e<=t[0]?\"good\":e<=t[1]?\"needsImprovement\":\"poor\"}(d,c);d>=0&&(N(\"userJourneyStep\",d,m,{stepName:e},void 0),u.measure(\"step.\".concat(e,\"_vitals_\").concat(m),{start:l.startTime+l.duration,end:l.startTime+l.duration,detail:{type:\"stepVital\",duration:d}}))}}}},Ae=function(){var e=Be(),t=Pe.startMarkToStepsMap,n=Object.keys(e).length;if(0===n)return{};var r={},i=n-1,a=Ce(i);if(Object.keys(a).forEach((function(e){var n,i=null!==(n=t[e])&&void 0!==n?n:[];Object.keys(i).forEach((function(e){r[e]=!0}))})),n>1){var o=Ce(i-1);Object.keys(o).forEach((function(e){var n,i=null!==(n=t[e])&&void 0!==n?n:[];Object.keys(i).forEach((function(e){r[e]=!0}))}))}return r},Le=function(){var e,t=Object.keys(Pe.navigationSteps).length;Pe.navigationSteps[t]={};var n=Ae();null===(e=a.onMarkStep)||void 0===e||e.call(a,\"\",Object.keys(n))},Ue=function(e){var t,n,r,i,o,s,c;if(Pe.finalMarkToStepsMap[e]){!function(e){var t=Pe.navigationSteps,n=Pe.finalMarkToStepsMap,r=Object.keys(t).length;if(0!==r){var i=r-1,a=Ce(i);if(a&&n[e]){var o=n[e];o&&Object.keys(o).forEach((function(e){if(a[e]){var n=Ce(i)||{};n[e]=!1,t[i]=n}if(r>1){var o=i-1,s=Ce(o);s[e]&&(s[e]=!1,t[o]=s)}}))}}}(e);var u=Pe.finalMarkToStepsMap[e];Object.keys(u).forEach((function(t){var n=u[t];n.forEach(Me),Promise.all(n.map((function(n){return function(e,t,n,r){return new(n||(n=Promise))((function(e,t){function i(e){try{o(r.next(e))}catch(e){t(e)}}function a(e){try{o(r.throw(e))}catch(e){t(e)}}function o(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}o((r=r.apply(undefined,[])).next())}))}(0,0,void 0,(function(){return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},\"function\"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError(\"Generator is already executing.\");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(r){switch(r.label){case 0:return[4,De(n,t,e)];case 1:return r.sent(),[2]}}))}))}))).catch((function(){}))}))}else r=e,i=Pe.navigationSteps,o=Object.keys(i).length,(c=Ce(s=(o>0?o:1)-1)||[])[r]=!0,i[s]=c,function(e){var t,n=null!==(t=Pe.startMarkToStepsMap[e])&&void 0!==t?t:[];Object.keys(n).forEach((function(e){Pe.active[e]||(Pe.active[e]=!0)}))}(e);if(a.enableNavigationTracking){var l=Ae();null===(t=a.onMarkStep)||void 0===t||t.call(a,e,Object.keys(l))}else null===(n=a.onMarkStep)||void 0===n||n.call(a,e,Object.keys(Pe.active))},Re=function(e){u.mark(p+e),Ue(e)},qe=function(e){0===u.getEntriesByName(p+e).length&&(u.mark(p+e),Ue(e))},Fe=0,ze=function(){function e(e){if(void 0===e&&(e={}),this.v=\"9.0.0-rc.3\",a.analyticsTracker=e.analyticsTracker,a.isResourceTiming=!!e.resourceTiming,a.isElementTiming=!!e.elementTiming,a.maxTime=e.maxMeasureTime||a.maxTime,a.reportOptions=e.reportOptions||a.reportOptions,a.steps=e.steps,a.onMarkStep=e.onMarkStep,a.enableNavigationTracking=e.enableNavigationTracking,m()){\"PerformanceObserver\"in o&&Ne(),void 0!==document.hidden&&document.addEventListener(\"visibilitychange\",_);var t=function(){if(!m())return{};var e=u.getEntriesByType(\"navigation\")[0];if(!e)return{};var t=e.responseStart,n=e.responseEnd;return{fetchTime:n-e.fetchStart,workerTime:e.workerStart>0?n-e.workerStart:0,totalTime:n-e.requestStart,downloadTime:n-t,timeToFirstByte:t-e.requestStart,headerSize:e.transferSize-e.encodedBodySize||0,dnsLookupTime:e.domainLookupEnd-e.domainLookupStart,redirectTime:e.redirectEnd-e.redirectStart}}();R(\"navigationTiming\",t),t.redirectTime&&q({attribution:{},name:\"RT\",rating:U(\"RT\",t.redirectTime),value:t.redirectTime}),R(\"networkInformation\",function(){if(\"connection\"in c){var e=c.connection;return\"object\"!=typeof e?{}:(f=e.effectiveType,v=!!e.saveData,{downlink:e.downlink,effectiveType:e.effectiveType,rtt:e.rtt,saveData:!!e.saveData})}return{}}()),c&&c.storage&&\"function\"==typeof c.storage.estimate&&c.storage.estimate().then(Ie),a.steps&&a.steps&&(Pe.startMarkToStepsMap={},Pe.finalMarkToStepsMap={},Pe.active={},Pe.navigationSteps={},Object.entries(a.steps).forEach((function(e){var t,n,r=e[0],i=e[1].marks,a=i[0],o=i[1],s=null!==(n=Pe.startMarkToStepsMap[a])&&void 0!==n?n:{};if(s[r]=!0,Pe.startMarkToStepsMap[a]=s,Pe.finalMarkToStepsMap[o]){var c=Pe.finalMarkToStepsMap[o][a]||[];c.push(r),Pe.finalMarkToStepsMap[o][a]=c}else Pe.finalMarkToStepsMap[o]=((t={})[a]=[r],t)})))}}return e.prototype.start=function(e){m()&&!g[e]&&(g[e]=!0,u.mark(\"mark_\".concat(e,\"_start\")))},e.prototype.end=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n=!0),m()&&g[e]){u.mark(\"mark_\".concat(e,\"_end\")),delete g[e];var r=function(e){u.measure(e,\"mark_\".concat(e,\"_start\"),\"mark_\".concat(e,\"_end\"));var t=u.getEntriesByName(e).pop();return t&&\"measure\"===t.entryType?t.duration:-1}(e);n&&R(e,O(r),t)}},e.prototype.endPaint=function(e,t){var n=this;setTimeout((function(){n.end(e,t)}))},e.prototype.clear=function(e){delete g[e],u.clearMarks&&(u.clearMarks(\"mark_\".concat(e,\"_start\")),u.clearMarks(\"mark_\".concat(e,\"_end\")))},e.prototype.markNTBT=function(){var e=this;this.start(\"ntbt\"),y.value=0,clearTimeout(Fe),Fe=setTimeout((function(){e.end(\"ntbt\",{},!1),q({attribution:{},name:\"NTBT\",rating:U(\"NTBT\",y.value),value:y.value}),y.value=0}),2e3)},e}()},426:(e,t)=>{\"use strict\";Symbol.for(\"react.element\"),Symbol.for(\"react.portal\"),Symbol.for(\"react.fragment\"),Symbol.for(\"react.strict_mode\"),Symbol.for(\"react.profiler\"),Symbol.for(\"react.provider\"),Symbol.for(\"react.context\"),Symbol.for(\"react.forward_ref\"),Symbol.for(\"react.suspense\"),Symbol.for(\"react.memo\"),Symbol.for(\"react.lazy\"),Symbol.iterator;var n={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},r=Object.assign,i={};function a(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}function o(){}function s(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(\"object\"!=typeof e&&\"function\"!=typeof e&&null!=e)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,e,t,\"setState\")},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,\"forceUpdate\")},o.prototype=a.prototype;var c=s.prototype=new o;c.constructor=s,r(c,a.prototype),c.isPureReactComponent=!0;Array.isArray,Object.prototype.hasOwnProperty;var u={current:null};t.useCallback=function(e,t){return u.current.useCallback(e,t)},t.useEffect=function(e,t){return u.current.useEffect(e,t)},t.useRef=function(e){return u.current.useRef(e)}},784:(e,t,n)=>{\"use strict\";e.exports=n(426)},353:function(e,t,n){var r;!function(i,a){\"use strict\";var o=\"function\",s=\"undefined\",c=\"object\",u=\"string\",l=\"major\",d=\"model\",p=\"name\",m=\"type\",f=\"vendor\",v=\"version\",g=\"architecture\",b=\"console\",h=\"mobile\",w=\"tablet\",y=\"smarttv\",T=\"wearable\",k=\"embedded\",_=\"Amazon\",S=\"Apple\",E=\"ASUS\",x=\"BlackBerry\",O=\"Browser\",j=\"Chrome\",N=\"Firefox\",I=\"Google\",P=\"Huawei\",M=\"LG\",B=\"Microsoft\",C=\"Motorola\",D=\"Opera\",A=\"Samsung\",L=\"Sharp\",U=\"Sony\",R=\"Xiaomi\",q=\"Zebra\",F=\"Facebook\",z=\"Chromium OS\",K=\"Mac OS\",$=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Q=function(e,t){return typeof e===u&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===u)return e=e.replace(/^\\\\\\\\s\\\\\\\\s*/,\"\"),typeof t===s?e:e.substring(0,350)},V=function(e,t){for(var n,r,i,s,u,l,d=0;d<t.length&&!u;){var p=t[d],m=t[d+1];for(n=r=0;n<p.length&&!u&&p[n];)if(u=p[n++].exec(e))for(i=0;i<m.length;i++)l=u[++r],typeof(s=m[i])===c&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):a:this[s[0]]=l?s[1].call(this,l,s[2]):a:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):a):this[s]=l||a;d+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Q(t[n][r],e))return\"?\"===n?a:n}else if(Q(t[n],e))return\"?\"===n?a:n;return e},X={ME:\"4.90\",\"NT 3.11\":\"NT3.51\",\"NT 4.0\":\"NT4.0\",2e3:\"NT 5.0\",XP:[\"NT 5.1\",\"NT 5.2\"],Vista:\"NT 6.0\",7:\"NT 6.1\",8:\"NT 6.2\",8.1:\"NT 6.3\",10:[\"NT 6.4\",\"NT 10.0\"],RT:\"ARM\"},G={browser:[[/\\\\\\\\b(?:crmo|crios)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Chrome\"]],[/edg(?:e|ios|a)?\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Edge\"]],[/(opera mini)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(opera [mobiletab]{3,6})\\\\\\\\b.+version\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(opera)(?:.+version\\\\\\\\/|[\\\\\\\\/ ]+)([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/opios[\\\\\\\\/ ]+([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\" Mini\"]],[/\\\\\\\\bopr\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D]],[/(kindle)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(ba?idubrowser)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i,/(?:ms|\\\\\\\\()(ie) ([\\\\\\\\w\\\\\\\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(heytap|ovi)browser\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i,/(weibo)__([\\\\\\\\d\\\\\\\\.]+)/i],[p,v],[/(?:\\\\\\\\buc? ?browser|(?:juc.+)ucweb)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"UC\"+O]],[/microm.+\\\\\\\\bqbcore\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\bqbcore\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+).+microm/i],[v,[p,\"WeChat(Win) Desktop\"]],[/micromessenger\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"WeChat\"]],[/konqueror\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Konqueror\"]],[/trident.+rv[: ]([\\\\\\\\w\\\\\\\\.]{1,9})\\\\\\\\b.+like gecko/i],[v,[p,\"IE\"]],[/ya(?:search)?browser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Yandex\"]],[/(avast|avg)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/(.+)/,\"$1 Secure \"+O],v],[/\\\\\\\\bfocus\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N+\" Focus\"]],[/\\\\\\\\bopt\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\" Touch\"]],[/coc_coc\\\\\\\\w+\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Coc Coc\"]],[/dolfin\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Dolphin\"]],[/coast\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\" Coast\"]],[/miuibrowser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"MIUI \"+O]],[/fxios\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N]],[/\\\\\\\\bqihu|(qi?ho?o?|360)browser/i],[[p,\"360 \"+O]],[/(oculus|samsung|sailfish|huawei)browser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/(.+)/,\"$1 \"+O],v],[/(comodo_dragon)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/_/g,\" \"],v],[/(electron)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\\\\\\\/(20\\\\\\\\d\\\\\\\\d\\\\\\\\.[-\\\\\\\\w\\\\\\\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/(metasr)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i,/(lbbrowser)/i,/\\\\\\\\[(linkedin)app\\\\\\\\]/i],[p],[/((?:fban\\\\\\\\/fbios|fb_iab\\\\\\\\/fb4a)(?!.+fbav)|;fbav\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+);)/i],[[p,F],v],[/(kakao(?:talk|story))[\\\\\\\\/ ]([\\\\\\\\w\\\\\\\\.]+)/i,/(naver)\\\\\\\\(.*?(\\\\\\\\d+\\\\\\\\.[\\\\\\\\w\\\\\\\\.]+).*\\\\\\\\)/i,/safari (line)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\b(line)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\/iab/i,/(chromium|instagram)[\\\\\\\\/ ]([-\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/\\\\\\\\bgsa\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) .*safari\\\\\\\\//i],[v,[p,\"GSA\"]],[/musical_ly(?:.+app_?version\\\\\\\\/|_)([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"TikTok\"]],[/headlesschrome(?:\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)| )/i],[v,[p,j+\" Headless\"]],[/ wv\\\\\\\\).+(chrome)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,j+\" WebView\"],v],[/droid.+ version\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b.+(?:mobile safari|safari)/i],[v,[p,\"Android \"+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\\\\\\\/v?([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/version\\\\\\\\/([\\\\\\\\w\\\\\\\\.\\\\\\\\,]+) .*mobile\\\\\\\\/\\\\\\\\w+ (safari)/i],[v,[p,\"Mobile Safari\"]],[/version\\\\\\\\/([\\\\\\\\w(\\\\\\\\.|\\\\\\\\,)]+) .*(mobile ?safari|safari)/i],[v,p],[/webkit.+?(mobile ?safari|safari)(\\\\\\\\/[\\\\\\\\w\\\\\\\\.]+)/i],[p,[v,J,{\"1.0\":\"/8\",1.2:\"/1\",1.3:\"/3\",\"2.0\":\"/412\",\"2.0.2\":\"/416\",\"2.0.3\":\"/417\",\"2.0.4\":\"/419\",\"?\":\"/\"}]],[/(webkit|khtml)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/(navigator|netscape\\\\\\\\d?)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i],[[p,\"Netscape\"],v],[/mobile vr; rv:([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\).+firefox/i],[v,[p,N+\" Reality\"]],[/ekiohf.+(flow)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.\\\\\\\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)$/i,/(firefox)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(mozilla)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) .+rv\\\\\\\\:.+gecko\\\\\\\\/\\\\\\\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\\\\\\\. ]?browser)[-\\\\\\\\/ ]?v?([\\\\\\\\w\\\\\\\\.]+)/i,/(links) \\\\\\\\(([\\\\\\\\w\\\\\\\\.]+)/i,/panasonic;(viera)/i],[p,v],[/(cobalt)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[p,[v,/master.|lts./,\"\"]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\\\\\\\)]/i],[[g,\"amd64\"]],[/(ia32(?=;))/i],[[g,W]],[/((?:i[346]|x)86)[;\\\\\\\\)]/i],[[g,\"ia32\"]],[/\\\\\\\\b(aarch64|arm(v?8e?l?|_?64))\\\\\\\\b/i],[[g,\"arm64\"]],[/\\\\\\\\b(arm(?:v[67])?ht?n?[fl]p?)\\\\\\\\b/i],[[g,\"armhf\"]],[/windows (ce|mobile); ppc;/i],[[g,\"arm\"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\\\\\\\))/i],[[g,/ower/,\"\",W]],[/(sun4\\\\\\\\w)[;\\\\\\\\)]/i],[[g,\"sparc\"]],[/((?:avr32|ia64(?=;))|68k(?=\\\\\\\\))|\\\\\\\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\\\\\\\b|pa-risc)/i],[[g,W]]],device:[[/\\\\\\\\b(sch-i[89]0\\\\\\\\d|shw-m380s|sm-[ptx]\\\\\\\\w{2,4}|gt-[pn]\\\\\\\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[f,A],[m,w]],[/\\\\\\\\b((?:s[cgp]h|gt|sm)-\\\\\\\\w+|sc[g-]?[\\\\\\\\d]+a?|galaxy nexus)/i,/samsung[- ]([-\\\\\\\\w]+)/i,/sec-(sgh\\\\\\\\w+)/i],[d,[f,A],[m,h]],[/(?:\\\\\\\\/|\\\\\\\\()(ip(?:hone|od)[\\\\\\\\w, ]*)(?:\\\\\\\\/|;)/i],[d,[f,S],[m,h]],[/\\\\\\\\((ipad);[-\\\\\\\\w\\\\\\\\),; ]+apple/i,/applecoremedia\\\\\\\\/[\\\\\\\\w\\\\\\\\.]+ \\\\\\\\((ipad)/i,/\\\\\\\\b(ipad)\\\\\\\\d\\\\\\\\d?,\\\\\\\\d\\\\\\\\d?[;\\\\\\\\]].+ios/i],[d,[f,S],[m,w]],[/(macintosh);/i],[d,[f,S]],[/\\\\\\\\b(sh-?[altvz]?\\\\\\\\d\\\\\\\\d[a-ekm]?)/i],[d,[f,L],[m,h]],[/\\\\\\\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\\\\\\\d{2})\\\\\\\\b(?!.+d\\\\\\\\/s)/i],[d,[f,P],[m,w]],[/(?:huawei|honor)([-\\\\\\\\w ]+)[;\\\\\\\\)]/i,/\\\\\\\\b(nexus 6p|\\\\\\\\w{2,4}e?-[atu]?[ln][\\\\\\\\dx][012359c][adn]?)\\\\\\\\b(?!.+d\\\\\\\\/s)/i],[d,[f,P],[m,h]],[/\\\\\\\\b(poco[\\\\\\\\w ]+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b; (\\\\\\\\w+) build\\\\\\\\/hm\\\\\\\\1/i,/\\\\\\\\b(hm[-_ ]?note?[_ ]?(?:\\\\\\\\d\\\\\\\\w)?) bui/i,/\\\\\\\\b(redmi[\\\\\\\\-_ ]?(?:note|k)?[\\\\\\\\w_ ]+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b(mi[-_ ]?(?:a\\\\\\\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\\\\\\\d?\\\\\\\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\\\\\\\))/i],[[d,/_/g,\" \"],[f,R],[m,h]],[/\\\\\\\\b(mi[-_ ]?(?:pad)(?:[\\\\\\\\w_ ]+))(?: bui|\\\\\\\\))/i],[[d,/_/g,\" \"],[f,R],[m,w]],[/; (\\\\\\\\w+) bui.+ oppo/i,/\\\\\\\\b(cph[12]\\\\\\\\d{3}|p(?:af|c[al]|d\\\\\\\\w|e[ar])[mt]\\\\\\\\d0|x9007|a101op)\\\\\\\\b/i],[d,[f,\"OPPO\"],[m,h]],[/vivo (\\\\\\\\w+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b(v[12]\\\\\\\\d{3}\\\\\\\\w?[at])(?: bui|;)/i],[d,[f,\"Vivo\"],[m,h]],[/\\\\\\\\b(rmx[12]\\\\\\\\d{3})(?: bui|;|\\\\\\\\))/i],[d,[f,\"Realme\"],[m,h]],[/\\\\\\\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\\\\\\\b[\\\\\\\\w ]+build\\\\\\\\//i,/\\\\\\\\bmot(?:orola)?[- ](\\\\\\\\w*)/i,/((?:moto[\\\\\\\\w\\\\\\\\(\\\\\\\\) ]+|xt\\\\\\\\d{3,4}|nexus 6)(?= bui|\\\\\\\\)))/i],[d,[f,C],[m,h]],[/\\\\\\\\b(mz60\\\\\\\\d|xoom[2 ]{0,2}) build\\\\\\\\//i],[d,[f,C],[m,w]],[/((?=lg)?[vl]k\\\\\\\\-?\\\\\\\\d{3}) bui| 3\\\\\\\\.[-\\\\\\\\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[f,M],[m,w]],[/(lm(?:-?f100[nv]?|-[\\\\\\\\w\\\\\\\\.]+)(?= bui|\\\\\\\\))|nexus [45])/i,/\\\\\\\\blg[-e;\\\\\\\\/ ]+((?!browser|netcast|android tv)\\\\\\\\w+)/i,/\\\\\\\\blg-?([\\\\\\\\d\\\\\\\\w]+) bui/i],[d,[f,M],[m,h]],[/(ideatab[-\\\\\\\\w ]+)/i,/lenovo ?(s[56]000[-\\\\\\\\w]+|tab(?:[\\\\\\\\w ]+)|yt[-\\\\\\\\d\\\\\\\\w]{6}|tb[-\\\\\\\\d\\\\\\\\w]{6})/i],[d,[f,\"Lenovo\"],[m,w]],[/(?:maemo|nokia).*(n900|lumia \\\\\\\\d+)/i,/nokia[-_ ]?([-\\\\\\\\w\\\\\\\\.]*)/i],[[d,/_/g,\" \"],[f,\"Nokia\"],[m,h]],[/(pixel c)\\\\\\\\b/i],[d,[f,I],[m,w]],[/droid.+; (pixel[\\\\\\\\daxl ]{0,6})(?: bui|\\\\\\\\))/i],[d,[f,I],[m,h]],[/droid.+ (a?\\\\\\\\d[0-2]{2}so|[c-g]\\\\\\\\d{4}|so[-gl]\\\\\\\\w+|xq-a\\\\\\\\w[4-7][12])(?= bui|\\\\\\\\).+chrome\\\\\\\\/(?![1-6]{0,1}\\\\\\\\d\\\\\\\\.))/i],[d,[f,U],[m,h]],[/sony tablet [ps]/i,/\\\\\\\\b(?:sony)?sgp\\\\\\\\w+(?: bui|\\\\\\\\))/i],[[d,\"Xperia Tablet\"],[f,U],[m,w]],[/ (kb2005|in20[12]5|be20[12][59])\\\\\\\\b/i,/(?:one)?(?:plus)? (a\\\\\\\\d0\\\\\\\\d\\\\\\\\d)(?: b|\\\\\\\\))/i],[d,[f,\"OnePlus\"],[m,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\\\\\\\))/i,/(kf[a-z]+)( bui|\\\\\\\\)).+silk\\\\\\\\//i],[d,[f,_],[m,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\\\\\\\)).+silk\\\\\\\\//i],[[d,/(.+)/g,\"Fire Phone $1\"],[f,_],[m,h]],[/(playbook);[-\\\\\\\\w\\\\\\\\),; ]+(rim)/i],[d,f,[m,w]],[/\\\\\\\\b((?:bb[a-f]|st[hv])100-\\\\\\\\d)/i,/\\\\\\\\(bb10; (\\\\\\\\w+)/i],[d,[f,x],[m,h]],[/(?:\\\\\\\\b|asus_)(transfo[prime ]{4,10} \\\\\\\\w+|eeepc|slider \\\\\\\\w+|nexus 7|padfone|p00[cj])/i],[d,[f,E],[m,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \\\\\\\\d\\\\\\\\w?)\\\\\\\\b/i],[d,[f,E],[m,h]],[/(nexus 9)/i],[d,[f,\"HTC\"],[m,w]],[/(htc)[-;_ ]{1,2}([\\\\\\\\w ]+(?=\\\\\\\\)| bui)|\\\\\\\\w+)/i,/(zte)[- ]([\\\\\\\\w ]+?)(?: bui|\\\\\\\\/|\\\\\\\\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\\\\\\\.))|sony(?!-bra))[-_ ]?([-\\\\\\\\w]*)/i],[f,[d,/_/g,\" \"],[m,h]],[/droid.+; ([ab][1-7]-?[0178a]\\\\\\\\d\\\\\\\\d?)/i],[d,[f,\"Acer\"],[m,w]],[/droid.+; (m[1-5] note) bui/i,/\\\\\\\\bmz-([-\\\\\\\\w]{2,})/i],[d,[f,\"Meizu\"],[m,h]],[/(blackberry|benq|palm(?=\\\\\\\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\\\\\\\w]*)/i,/(hp) ([\\\\\\\\w ]+\\\\\\\\w)/i,/(asus)-?(\\\\\\\\w+)/i,/(microsoft); (lumia[\\\\\\\\w ]+)/i,/(lenovo)[-_ ]?([-\\\\\\\\w]+)/i,/(jolla)/i,/(oppo) ?([\\\\\\\\w ]+) bui/i],[f,d,[m,h]],[/(kobo)\\\\\\\\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(nook)[\\\\\\\\w ]+build\\\\\\\\/(\\\\\\\\w+)/i,/(dell) (strea[kpr\\\\\\\\d ]*[\\\\\\\\dko])/i,/(le[- ]+pan)[- ]+(\\\\\\\\w{1,9}) bui/i,/(trinity)[- ]*(t\\\\\\\\d{3}) bui/i,/(gigaset)[- ]+(q\\\\\\\\w{1,9}) bui/i,/(vodafone) ([\\\\\\\\w ]+)(?:\\\\\\\\)| bui)/i],[f,d,[m,w]],[/(surface duo)/i],[d,[f,B],[m,w]],[/droid [\\\\\\\\d\\\\\\\\.]+; (fp\\\\\\\\du?)(?: b|\\\\\\\\))/i],[d,[f,\"Fairphone\"],[m,h]],[/(u304aa)/i],[d,[f,\"AT&T\"],[m,h]],[/\\\\\\\\bsie-(\\\\\\\\w*)/i],[d,[f,\"Siemens\"],[m,h]],[/\\\\\\\\b(rct\\\\\\\\w+) b/i],[d,[f,\"RCA\"],[m,w]],[/\\\\\\\\b(venue[\\\\\\\\d ]{2,7}) b/i],[d,[f,\"Dell\"],[m,w]],[/\\\\\\\\b(q(?:mv|ta)\\\\\\\\w+) b/i],[d,[f,\"Verizon\"],[m,w]],[/\\\\\\\\b(?:barnes[& ]+noble |bn[rt])([\\\\\\\\w\\\\\\\\+ ]*) b/i],[d,[f,\"Barnes & Noble\"],[m,w]],[/\\\\\\\\b(tm\\\\\\\\d{3}\\\\\\\\w+) b/i],[d,[f,\"NuVision\"],[m,w]],[/\\\\\\\\b(k88) b/i],[d,[f,\"ZTE\"],[m,w]],[/\\\\\\\\b(nx\\\\\\\\d{3}j) b/i],[d,[f,\"ZTE\"],[m,h]],[/\\\\\\\\b(gen\\\\\\\\d{3}) b.+49h/i],[d,[f,\"Swiss\"],[m,h]],[/\\\\\\\\b(zur\\\\\\\\d{3}) b/i],[d,[f,\"Swiss\"],[m,w]],[/\\\\\\\\b((zeki)?tb.*\\\\\\\\b) b/i],[d,[f,\"Zeki\"],[m,w]],[/\\\\\\\\b([yr]\\\\\\\\d{2}) b/i,/\\\\\\\\b(dragon[- ]+touch |dt)(\\\\\\\\w{5}) b/i],[[f,\"Dragon Touch\"],d,[m,w]],[/\\\\\\\\b(ns-?\\\\\\\\w{0,9}) b/i],[d,[f,\"Insignia\"],[m,w]],[/\\\\\\\\b((nxa|next)-?\\\\\\\\w{0,9}) b/i],[d,[f,\"NextBook\"],[m,w]],[/\\\\\\\\b(xtreme\\\\\\\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,\"Voice\"],d,[m,h]],[/\\\\\\\\b(lvtel\\\\\\\\-)?(v1[12]) b/i],[[f,\"LvTel\"],d,[m,h]],[/\\\\\\\\b(ph-1) /i],[d,[f,\"Essential\"],[m,h]],[/\\\\\\\\b(v(100md|700na|7011|917g).*\\\\\\\\b) b/i],[d,[f,\"Envizen\"],[m,w]],[/\\\\\\\\b(trio[-\\\\\\\\w\\\\\\\\. ]+) b/i],[d,[f,\"MachSpeed\"],[m,w]],[/\\\\\\\\btu_(1491) b/i],[d,[f,\"Rotor\"],[m,w]],[/(shield[\\\\\\\\w ]+) b/i],[d,[f,\"Nvidia\"],[m,w]],[/(sprint) (\\\\\\\\w+)/i],[f,d,[m,h]],[/(kin\\\\\\\\.[onetw]{3})/i],[[d,/\\\\\\\\./g,\" \"],[f,B],[m,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\\\\\\\)/i],[d,[f,q],[m,w]],[/droid.+; (ec30|ps20|tc[2-8]\\\\\\\\d[kx])\\\\\\\\)/i],[d,[f,q],[m,h]],[/smart-tv.+(samsung)/i],[f,[m,y]],[/hbbtv.+maple;(\\\\\\\\d+)/i],[[d,/^/,\"SmartTV\"],[f,A],[m,y]],[/(nux; netcast.+smarttv|lg (netcast\\\\\\\\.tv-201\\\\\\\\d|android tv))/i],[[f,M],[m,y]],[/(apple) ?tv/i],[f,[d,S+\" TV\"],[m,y]],[/crkey/i],[[d,j+\"cast\"],[f,I],[m,y]],[/droid.+aft(\\\\\\\\w)( bui|\\\\\\\\))/i],[d,[f,_],[m,y]],[/\\\\\\\\(dtv[\\\\\\\\);].+(aquos)/i,/(aquos-tv[\\\\\\\\w ]+)\\\\\\\\)/i],[d,[f,L],[m,y]],[/(bravia[\\\\\\\\w ]+)( bui|\\\\\\\\))/i],[d,[f,U],[m,y]],[/(mitv-\\\\\\\\w{5}) bui/i],[d,[f,R],[m,y]],[/Hbbtv.*(technisat) (.*);/i],[f,d,[m,y]],[/\\\\\\\\b(roku)[\\\\\\\\dx]*[\\\\\\\\)\\\\\\\\/]((?:dvp-)?[\\\\\\\\d\\\\\\\\.]*)/i,/hbbtv\\\\\\\\/\\\\\\\\d+\\\\\\\\.\\\\\\\\d+\\\\\\\\.\\\\\\\\d+ +\\\\\\\\([\\\\\\\\w\\\\\\\\+ ]*; *([\\\\\\\\w\\\\\\\\d][^;]*);([^;]*)/i],[[f,H],[d,H],[m,y]],[/\\\\\\\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\\\\\\\b/i],[[m,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,d,[m,b]],[/droid.+; (shield) bui/i],[d,[f,\"Nvidia\"],[m,b]],[/(playstation [345portablevi]+)/i],[d,[f,U],[m,b]],[/\\\\\\\\b(xbox(?: one)?(?!; xbox))[\\\\\\\\); ]/i],[d,[f,B],[m,b]],[/((pebble))app/i],[f,d,[m,T]],[/(watch)(?: ?os[,\\\\\\\\/]|\\\\\\\\d,\\\\\\\\d\\\\\\\\/)[\\\\\\\\d\\\\\\\\.]+/i],[d,[f,S],[m,T]],[/droid.+; (glass) \\\\\\\\d/i],[d,[f,I],[m,T]],[/droid.+; (wt63?0{2,3})\\\\\\\\)/i],[d,[f,q],[m,T]],[/(quest( 2| pro)?)/i],[d,[f,F],[m,T]],[/(tesla)(?: qtcarbrowser|\\\\\\\\/[-\\\\\\\\w\\\\\\\\.]+)/i],[f,[m,k]],[/(aeobc)\\\\\\\\b/i],[d,[f,_],[m,k]],[/droid .+?; ([^;]+?)(?: bui|\\\\\\\\) applew).+? mobile safari/i],[d,[m,h]],[/droid .+?; ([^;]+?)(?: bui|\\\\\\\\) applew).+?(?! mobile) safari/i],[d,[m,w]],[/\\\\\\\\b((tablet|tab)[;\\\\\\\\/]|focus\\\\\\\\/\\\\\\\\d(?!.+mobile))/i],[[m,w]],[/(phone|mobile(?:[;\\\\\\\\/]| [ \\\\\\\\w\\\\\\\\/\\\\\\\\.]*safari)|pda(?=.+windows ce))/i],[[m,h]],[/(android[-\\\\\\\\w\\\\\\\\. ]{0,9});.+buil/i],[d,[f,\"Generic\"]]],engine:[[/windows.+ edge\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"EdgeHTML\"]],[/webkit\\\\\\\\/537\\\\\\\\.36.+chrome\\\\\\\\/(?!27)([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Blink\"]],[/(presto)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/ekioh(flow)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(khtml|tasman|links)[\\\\\\\\/ ]\\\\\\\\(?([\\\\\\\\w\\\\\\\\.]+)/i,/(icab)[\\\\\\\\/ ]([23]\\\\\\\\.[\\\\\\\\d\\\\\\\\.]+)/i,/\\\\\\\\b(libweb)/i],[p,v],[/rv\\\\\\\\:([\\\\\\\\w\\\\\\\\.]{1,9})\\\\\\\\b.+(gecko)/i],[v,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,v],[/(windows) nt 6\\\\\\\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\\\\\\\/ ]?([\\\\\\\\d\\\\\\\\.\\\\\\\\w ]*)/i,/(windows)[\\\\\\\\/ ]?([ntce\\\\\\\\d\\\\\\\\. ]+\\\\\\\\w)(?!.+xbox)/i],[p,[v,J,X]],[/(win(?=3|9|n)|win 9x )([nt\\\\\\\\d\\\\\\\\.]+)/i],[[p,\"Windows\"],[v,J,X]],[/ip[honead]{2,4}\\\\\\\\b(?:.*os ([\\\\\\\\w]+) like mac|; opera)/i,/ios;fbsv\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i,/cfnetwork\\\\\\\\/.+darwin/i],[[v,/_/g,\".\"],[p,\"iOS\"]],[/(mac os x) ?([\\\\\\\\w\\\\\\\\. ]*)/i,/(macintosh|mac_powerpc\\\\\\\\b)(?!.+haiku)/i],[[p,K],[v,/_/g,\".\"]],[/droid ([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b.+(android[- ]x86|harmonyos)/i],[v,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(blackberry)\\\\\\\\w*\\\\\\\\/([\\\\\\\\w\\\\\\\\.]*)/i,/(tizen|kaios)[\\\\\\\\/ ]([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\((series40);/i],[p,v],[/\\\\\\\\(bb(10);/i],[v,[p,x]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i],[v,[p,\"Symbian\"]],[/mozilla\\\\\\\\/[\\\\\\\\d\\\\\\\\.]+ \\\\\\\\((?:mobile|tablet|tv|mobile; [\\\\\\\\w ]+); rv:.+ gecko\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N+\" OS\"]],[/web0s;.+rt(tv)/i,/\\\\\\\\b(?:hp)?wos(?:browser)?\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"webOS\"]],[/watch(?: ?os[,\\\\\\\\/]|\\\\\\\\d,\\\\\\\\d\\\\\\\\/)([\\\\\\\\d\\\\\\\\.]+)/i],[v,[p,\"watchOS\"]],[/crkey\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i],[v,[p,j+\"cast\"]],[/(cros) [\\\\\\\\w]+(?:\\\\\\\\)| ([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b)/i],[[p,z],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\\\\\\\\/(\\\\\\\\d+\\\\\\\\.[\\\\\\\\w\\\\\\\\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\\\\\\\);]+)/i,/\\\\\\\\b(joli|palm)\\\\\\\\b ?(?:os)?\\\\\\\\/?([\\\\\\\\w\\\\\\\\.]*)/i,/(mint)[\\\\\\\\/\\\\\\\\(\\\\\\\\) ]?(\\\\\\\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\\\\\\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\\\\\\\/ ]?(?!chrom|package)([-\\\\\\\\w\\\\\\\\.]*)/i,/(hurd|linux) ?([\\\\\\\\w\\\\\\\\.]*)/i,/(gnu) ?([\\\\\\\\w\\\\\\\\.]*)/i,/\\\\\\\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\\\\\\\/ ]?(?!amd|[ix346]{1,2}86)([\\\\\\\\w\\\\\\\\.]*)/i,/(haiku) (\\\\\\\\w+)/i],[p,v],[/(sunos) ?([\\\\\\\\w\\\\\\\\.\\\\\\\\d]*)/i],[[p,\"Solaris\"],v],[/((?:open)?solaris)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(aix) ((\\\\\\\\d)(?=\\\\\\\\.|\\\\\\\\)| )[\\\\\\\\w\\\\\\\\.])*/i,/\\\\\\\\b(beos|os\\\\\\\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\\\\\\\\w\\\\\\\\.]*)/i],[p,v]]},Z=function(e,t){if(typeof e===c&&(t=e,e=a),!(this instanceof Z))return new Z(e,t).getResult();var n=typeof i!==s&&i.navigator?i.navigator:a,r=e||(n&&n.userAgent?n.userAgent:\"\"),b=n&&n.userAgentData?n.userAgentData:a,y=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(G,t):G,T=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[p]=a,t[v]=a,V.call(t,r,y.browser),t[l]=typeof(e=t[v])===u?e.replace(/[^\\\\\\\\d\\\\\\\\.]/g,\"\").split(\".\")[0]:a,T&&n&&n.brave&&typeof n.brave.isBrave==o&&(t[p]=\"Brave\"),t},this.getCPU=function(){var e={};return e[g]=a,V.call(e,r,y.cpu),e},this.getDevice=function(){var e={};return e[f]=a,e[d]=a,e[m]=a,V.call(e,r,y.device),T&&!e[m]&&b&&b.mobile&&(e[m]=h),T&&\"Macintosh\"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]=\"iPad\",e[m]=w),e},this.getEngine=function(){var e={};return e[p]=a,e[v]=a,V.call(e,r,y.engine),e},this.getOS=function(){var e={};return e[p]=a,e[v]=a,V.call(e,r,y.os),T&&!e[p]&&b&&\"Unknown\"!=b.platform&&(e[p]=b.platform.replace(/chrome os/i,z).replace(/macos/i,K)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>350?H(e,350):e,this},this.setUA(r),this};Z.VERSION=\"1.0.35\",Z.BROWSER=$([p,v,l]),Z.CPU=$([g]),Z.DEVICE=$([d,f,m,b,h,y,w,T,k]),Z.ENGINE=Z.OS=$([p,v]),typeof t!==s?(e.exports&&(t=e.exports=Z),t.UAParser=Z):n.amdO?(r=function(){return Z}.call(t,n,t,e))===a||(e.exports=r):typeof i!==s&&(i.UAParser=Z);var Y=typeof i!==s&&(i.jQuery||i.Zepto);if(Y&&!Y.ua){var ee=new Z;Y.ua=ee.getResult(),Y.ua.get=function(){return ee.getUA()},Y.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)Y.ua[n]=t[n]}}}(\"object\"==typeof window?window:this)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})};var r={};return(()=>{\"use strict\";n.r(r),n.d(r,{ActionType:()=>f,AmplitudePlatformName:()=>g,AnalyticsEventImportance:()=>l,AnalyticsQueries:()=>e,AuthStatus:()=>b,ComponentType:()=>m,IThresholdTier:()=>Jt,MetricType:()=>d,PlatformName:()=>v,SessionActions:()=>h,SessionAutomatedEvents:()=>w,SessionRank:()=>y,SubjectType:()=>p,UserTypeCommerce:()=>c,UserTypeInsto:()=>i,UserTypeRetail:()=>t,UserTypeRetailBusinessBanking:()=>s,UserTypeRetailEmployeeInternal:()=>a,UserTypeRetailEmployeePersonal:()=>o,UserTypeWallet:()=>u,automatedEvents:()=>xn,automatedMappingConfig:()=>In,clearMarkEntry:()=>Vn,clearPerformanceMarkEntries:()=>Xn,config:()=>A,createEventConfig:()=>On,createNewSpan:()=>Ln,createNewTrace:()=>Un,device:()=>W,endPerfMark:()=>Jn,exposeExperiment:()=>wn,flushQueue:()=>or,generateUUID:()=>V,getAnalyticsHeaders:()=>sr,getReferrerData:()=>le,getTracingHeaders:()=>An,getTracingId:()=>Dn,getUrlHostname:()=>pe,getUrlParams:()=>me,getUrlPathname:()=>fe,getUserContext:()=>ar,identify:()=>Tn,identifyFlow:()=>xe,identity:()=>H,identityFlow:()=>Se,incrementUjNavigation:()=>an,init:()=>yn,initNextJsTrackPageview:()=>_n,initTrackPageview:()=>kn,isEventKeyFormatValid:()=>we,isSessionEnded:()=>pt,location:()=>re,logEvent:()=>$t,logMetric:()=>Ht,logPageView:()=>on,logTrace:()=>Rn,markNTBT:()=>tn,markStep:()=>nn,markStepOnce:()=>rn,onVisibilityChange:()=>ln,optIn:()=>En,optOut:()=>Sn,perfMark:()=>Wn,persistentData:()=>oe,postMessage:()=>K,recordSessionDuration:()=>pn,removeFromIdentifyFlow:()=>Ee,savePersistentData:()=>st,sendScheduledEvents:()=>Bt,setBreadcrumbs:()=>ie,setConfig:()=>U,setLocation:()=>ae,setPagePath:()=>ve,setPageview:()=>Kt,setPersistentData:()=>se,setSessionStart:()=>dt,setTime:()=>Ue,startPerfMark:()=>Hn,timeStone:()=>Le,useEventLogger:()=>Yn,useLogEventOnMount:()=>tr,usePerformanceMarks:()=>rr});let e=function(e){return e.fbclid=\"fbclid\",e.gclid=\"gclid\",e.msclkid=\"msclkid\",e.ptclid=\"ptclid\",e.ttclid=\"ttclid\",e.utm_source=\"utm_source\",e.utm_medium=\"utm_medium\",e.utm_campaign=\"utm_campaign\",e.utm_term=\"utm_term\",e.utm_content=\"utm_content\",e}({});const t=0,i=1,a=2,o=3,s=4,c=5,u=6;let l=function(e){return e.low=\"low\",e.high=\"high\",e}({}),d=function(e){return e.count=\"count\",e.rate=\"rate\",e.gauge=\"gauge\",e.distribution=\"distribution\",e.histogram=\"histogram\",e}({}),p=function(e){return e.commerce_merchant=\"commerce_merchant\",e.device=\"device\",e.edp_fingerprint_id=\"edp_fingerprint_id\",e.nft_user=\"nft_user\",e.user=\"user\",e.wallet_user=\"wallet_user\",e.uuid=\"user_uuid\",e}({}),m=function(e){return e.unknown=\"unknown\",e.banner=\"banner\",e.button=\"button\",e.card=\"card\",e.chart=\"chart\",e.content_script=\"content_script\",e.dropdown=\"dropdown\",e.link=\"link\",e.page=\"page\",e.modal=\"modal\",e.table=\"table\",e.search_bar=\"search_bar\",e.service_worker=\"service_worker\",e.text=\"text\",e.text_input=\"text_input\",e.tray=\"tray\",e.checkbox=\"checkbox\",e.icon=\"icon\",e}({}),f=function(e){return e.unknown=\"unknown\",e.blur=\"blur\",e.click=\"click\",e.change=\"change\",e.dismiss=\"dismiss\",e.focus=\"focus\",e.hover=\"hover\",e.select=\"select\",e.measurement=\"measurement\",e.move=\"move\",e.process=\"process\",e.render=\"render\",e.scroll=\"scroll\",e.view=\"view\",e.search=\"search\",e.keyPress=\"keyPress\",e}({}),v=function(e){return e.unknown=\"unknown\",e.web=\"web\",e.android=\"android\",e.ios=\"ios\",e.mobile_web=\"mobile_web\",e.tablet_web=\"tablet_web\",e.server=\"server\",e.windows=\"windows\",e.macos=\"macos\",e.extension=\"extension\",e}({}),g=function(e){return e.web=\"Web\",e.ios=\"iOS\",e.android=\"Android\",e}({}),b=function(e){return e[e.notLoggedIn=0]=\"notLoggedIn\",e[e.loggedIn=1]=\"loggedIn\",e}({}),h=function(e){return e.ac=\"ac\",e.af=\"af\",e.ah=\"ah\",e.al=\"al\",e.am=\"am\",e.ar=\"ar\",e.as=\"as\",e}({}),w=function(e){return e.pv=\"pv\",e}({}),y=function(e){return e.xs=\"xs\",e.s=\"s\",e.m=\"m\",e.l=\"l\",e.xl=\"xl\",e.xxl=\"xxl\",e}({});const T=\"https://analytics-service-dev.cbhq.net\",k=3e5,_=5e3,S=\"analytics-db\",E=\"experiment-exposure-db\",x=\"Analytics SDK:\",O=Object.values(e),j=\"pageview\",N=\"session_duration\",I={navigationTiming:{eventName:\"perf_navigation_timing\"},redirectTime:{eventName:\"perf_redirect_time\"},RT:{eventName:\"perf_redirect_time\"},TTFB:{eventName:\"perf_time_to_first_byte\"},networkInformation:{eventName:\"perf_network_information\"},storageEstimate:{eventName:\"perf_storage_estimate\"},FCP:{eventName:\"perf_first_contentful_paint\"},FID:{eventName:\"perf_first_input_delay\"},LCP:{eventName:\"perf_largest_contentful_paint\"},CLS:{eventName:\"perf_cumulative_layout_shift\"},TBT:{eventName:\"perf_total_blocking_time\"},NTBT:{eventName:\"perf_navigation_total_blocking_time\"},INP:{eventName:\"perf_interact_to_next_paint\"},ET:{eventName:\"perf_element_timing\"},userJourneyStep:{eventName:\"perf_user_journey_step\"}},P=\"1\",M=\"web\";function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(this,arguments)}const C=/^(https?:\\\\\\\\/\\\\\\\\/)/;function D(e){return{eventsEndpoint:e+\"/amp\",metricsEndPoint:e+\"/metrics\",exposureEndpoint:e+\"/track-exposures\",tracesEndpoint:e+\"/traces\"}}const A=B({authCookie:\"logged_in\",amplitudeApiKey:\"\",batchEventsPeriod:_,batchEventsThreshold:30,batchMetricsPeriod:_,batchMetricsThreshold:30,batchTracesPeriod:_,batchTracesThreshold:30,headers:{},interactionManager:null,isAlwaysAuthed:!1,isProd:!1,isInternalApplication:!1,onError:(e,t)=>{console.error(x,e,t)},platform:v.unknown,projectName:\"\",ricTimeoutScheduleEvent:1e3,ricTimeoutSetDevice:500,showDebugLogging:!1,trackUserId:!1,version:null,apiEndpoint:T},D(T),{steps:{}}),L=[].reduce(((e,t)=>n=>e(t(n))),(e=>{if(!e.isProd)return e.isInternalApplication?(e.apiEndpoint=\"https://analytics-service-internal-dev.cbhq.net\",B({},e,D(e.apiEndpoint))):e;const t=(e=>e.apiEndpoint?C.test(e.apiEndpoint)?e.apiEndpoint:`https://${e.apiEndpoint}`:e.isInternalApplication?\"https://analytics-service-internal.cbhq.net\":\"https://as.coinbase.com\")(e);return B({},e,{apiEndpoint:t},D(t))})),U=e=>{const{batchEventsThreshold:t,batchMetricsThreshold:n,batchTracesThreshold:r}=e,i=[t,n,r];for(const e of i)if((e||0)>30){console.warn(\"You are setting the threshhold for the batch limit to be greater than 30. This may cause request overload.\");break}Object.assign(A,L(e))},R=[v.web,v.mobile_web,v.tablet_web];function q(){return\"android\"===A.platform}function F(){return\"ios\"===A.platform}function z(){return R.includes(A.platform)}function K(e){if(z()&&navigator&&\"serviceWorker\"in navigator&&navigator.serviceWorker.controller)try{navigator.serviceWorker.controller.postMessage(e)}catch(e){e instanceof Error&&A.onError(e)}}var $=n(353),Q=n.n($);const W={amplitudeOSName:null,amplitudeOSVersion:null,amplitudeDeviceModel:null,amplitudePlatform:null,browserName:null,browserMajor:null,osName:null,userAgent:null,width:null,height:null},H={countryCode:null,deviceId:null,device_os:null,isOptOut:!1,languageCode:null,locale:null,jwt:null,session_lcc_id:null,userAgent:null,userId:null},V=e=>e?(e^16*Math.random()>>e/4).toString(16):\"10000000-1000-4000-8000-100000000000\".replace(/[018]/g,V),J=()=>A.isAlwaysAuthed||!!H.userId,X=()=>{const e={};return H.countryCode&&(e.country_code=H.countryCode),e},G=()=>{const{platform:e}=A;if(e===v.web)switch(!0){case window.matchMedia(\"(max-width: 560px)\").matches:return v.mobile_web;case window.matchMedia(\"(max-width: 1024px, min-width: 561px)\").matches:return v.tablet_web}return e},Z=()=>{var e,t,n,r,i;z()?(\"requestIdleCallback\"in window?window.requestIdleCallback(ne,{timeout:A.ricTimeoutSetDevice}):ne(),W.amplitudePlatform=g.web,W.userAgent=(null==(e=window)||null==(e=e.navigator)?void 0:e.userAgent)||null,ee({height:null!=(t=null==(n=window)?void 0:n.innerHeight)?t:null,width:null!=(r=null==(i=window)?void 0:i.innerWidth)?r:null})):F()?(W.amplitudePlatform=g.ios,W.userAgent=H.userAgent,W.userAgent&&ne()):q()&&(W.userAgent=H.userAgent,W.amplitudePlatform=g.android,W.userAgent&&ne())},Y=e=>{Object.assign(H,e),z()&&K({identity:{isAuthed:!!H.userId,locale:H.locale||null}})},ee=e=>{W.height=e.height,W.width=e.width},te=()=>{U({platform:G()}),z()&&K({config:{platform:A.platform}})},ne=()=>{var e;performance.mark&&performance.mark(\"ua_parser_start\");const t=new(Q())(null!=(e=W.userAgent)?e:\"\").getResult();W.browserName=t.browser.name||null,W.browserMajor=t.browser.major||null,W.osName=t.os.name||null,W.amplitudeOSName=W.browserName,W.amplitudeOSVersion=W.browserMajor,W.amplitudeDeviceModel=W.osName,K({device:{browserName:W.browserName,osName:W.osName}}),performance.mark&&(performance.mark(\"ua_parser_end\"),performance.measure(\"ua_parser\",\"ua_parser_start\",\"ua_parser_end\"))},re={breadcrumbs:[],initialUAAData:{},pageKey:\"\",pageKeyRegex:{},pagePath:\"\",prevPageKey:\"\",prevPagePath:\"\"};function ie(e){Object.assign(re,{breadcrumbs:e})}function ae(e){Object.assign(re,e)}const oe={eventId:0,sequenceNumber:0,sessionId:0,lastEventTime:0,sessionStart:0,sessionUUID:null,userId:null,ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0};function se(e){Object.assign(oe,e)}function ce(){var e,t;return null!=(e=null==(t=document)?void 0:t.referrer)?e:\"\"}function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ue.apply(this,arguments)}const le=()=>{const e=ce();if(!e)return{};const t=new URL(e);return t.hostname===pe()?{}:{referrer:e,referring_domain:t.hostname}},de=()=>{const e=new URLSearchParams(me()),t={};return O.forEach((n=>{e.has(n)&&(t[n]=(e.get(n)||\"\").toLowerCase())})),t},pe=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.hostname)||\"\"},me=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.search)||\"\"},fe=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.pathname)||\"\"},ve=()=>{const e=A.overrideWindowLocation?re.pagePath:fe()+me();e&&e!==re.pagePath&&(e!==re.pagePath&&ge(),re.pagePath=e,re.pageKeyRegex&&Object.keys(re.pageKeyRegex).some((e=>{if(re.pageKeyRegex[e].test(re.pagePath))return re.pageKey=e,!0})))},ge=()=>{if(z()){const e=ce();if(!re.prevPagePath&&e){const t=new URL(e);if(t.hostname===pe())return void(re.prevPagePath=t.pathname)}}re.prevPagePath=re.pagePath,re.prevPageKey=re.pageKey},be=e=>{z()&&Object.assign(e,z()?(Object.keys(re.initialUAAData).length>0||(new URLSearchParams(me()),re.initialUAAData=ue({},(()=>{const e={};return O.forEach((t=>{oe[t]&&(e[t]=oe[t])})),e})(),de(),le())),re.initialUAAData):re.initialUAAData)},he=/^[a-zd]+(_[a-zd]+)*$/;function we(e){return he.test(e)}function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ye.apply(this,arguments)}const Te=[\"action\",\"component_type\",\"component_name\",\"context\",\"logging_id\"],ke=[\"num_non_hardware_accounts\",\"ujs\"],_e=\"ujs_\",Se={};function Ee(e){e.forEach((e=>{ke.includes(e)&&delete Se[e]}))}function xe(e){var t;const n=Object.entries(e).reduce(((e,t)=>{const[n,r]=t;return!Te.includes(n)&&ke.includes(n)?we(n)?ye({},e,{[n]:r}):(A.onError(new Error(\"IdentityFlow property names must have snake case format\"),{[n]:r}),e):e}),{});null!=(t=n.ujs)&&t.length&&(n.ujs=n.ujs.map((e=>`${_e}${e}`))),Object.assign(Se,n)}function Oe(){return A.platform!==v.unknown||(A.onError(new Error(\"SDK platform not initialized\")),!1)}const je={eventsQueue:[],eventsScheduled:!1,metricsQueue:[],metricsScheduled:!1,tracesQueue:[],tracesScheduled:!1};function Ne(e){Object.assign(je,e)}const Ie={ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0,sqs:0},Pe={ac:20,af:5,ah:1,al:1,am:0,ar:10,as:20},Me={pv:25},Be={xs:0,s:1,m:1,l:2,xl:2,xxl:2},Ce=e=>e<15?y.xs:e<60?y.s:e<240?y.m:e<960?y.l:e<3840?y.xl:y.xxl,De=e=>{Object.assign(Ie,e)};function Ae(){return(new Date).getTime()}const Le={timeStart:Ae(),timeOnPagePath:0,timeOnPageKey:0,prevTimeOnPagePath:0,prevTimeOnPageKey:0,sessionDuration:0,sessionEnd:0,sessionStart:0,prevSessionDuration:0};function Ue(e){Object.assign(Le,e)}const Re=(e,t)=>t.some((t=>e instanceof t));let qe,Fe;const ze=new WeakMap,Ke=new WeakMap,$e=new WeakMap,Qe=new WeakMap,We=new WeakMap;let He={get(e,t,n){if(e instanceof IDBTransaction){if(\"done\"===t)return Ke.get(e);if(\"objectStoreNames\"===t)return e.objectStoreNames||$e.get(e);if(\"store\"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Je(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&(\"done\"===t||\"store\"===t)||t in e};function Ve(e){return\"function\"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||\"objectStoreNames\"in IDBTransaction.prototype?(Fe||(Fe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(Xe(this),e),Je(ze.get(this))}:function(...e){return Je(t.apply(Xe(this),e))}:function(e,...n){const r=t.call(Xe(this),e,...n);return $e.set(r,e.sort?e.sort():[e]),Je(r)}:(e instanceof IDBTransaction&&function(e){if(Ke.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener(\"complete\",i),e.removeEventListener(\"error\",a),e.removeEventListener(\"abort\",a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException(\"AbortError\",\"AbortError\")),r()};e.addEventListener(\"complete\",i),e.addEventListener(\"error\",a),e.addEventListener(\"abort\",a)}));Ke.set(e,t)}(e),Re(e,qe||(qe=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,He):e);var t}function Je(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener(\"success\",i),e.removeEventListener(\"error\",a)},i=()=>{t(Je(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener(\"success\",i),e.addEventListener(\"error\",a)}));return t.then((t=>{t instanceof IDBCursor&&ze.set(t,e)})).catch((()=>{})),We.set(t,e),t}(e);if(Qe.has(e))return Qe.get(e);const t=Ve(e);return t!==e&&(Qe.set(e,t),We.set(t,e)),t}const Xe=e=>We.get(e),Ge=[\"get\",\"getKey\",\"getAll\",\"getAllKeys\",\"count\"],Ze=[\"put\",\"add\",\"delete\",\"clear\"],Ye=new Map;function et(e,t){if(!(e instanceof IDBDatabase)||t in e||\"string\"!=typeof t)return;if(Ye.get(t))return Ye.get(t);const n=t.replace(/FromIndex$/,\"\"),r=t!==n,i=Ze.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!Ge.includes(n))return;const a=async function(e,...t){const a=this.transaction(e,i?\"readwrite\":\"readonly\");let o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return Ye.set(t,a),a}var tt;tt=He,He={...tt,get:(e,t,n)=>et(e,t)||tt.get(e,t,n),has:(e,t)=>!!et(e,t)||tt.has(e,t)};const nt={isReady:!1,idbKeyval:null};function rt(e){Object.assign(nt,e)}const it={},at=async e=>{if(!nt.idbKeyval)return Promise.resolve(null);try{return await nt.idbKeyval.get(e)}catch(e){return A.onError(new Error(\"IndexedDB:Get:InternalError\")),Promise.resolve(null)}},ot=async(e,t)=>{if(nt.idbKeyval)try{await nt.idbKeyval.set(e,t)}catch(e){A.onError(new Error(\"IndexedDB:Set:InternalError\"))}},st=()=>{\"server\"!==A.platform&&(se({sessionStart:Le.sessionStart,ac:Ie.ac,af:Ie.af,ah:Ie.ah,al:Ie.al,am:Ie.am,ar:Ie.ar,as:Ie.as,pv:Ie.pv}),H.userId&&se({userId:H.userId}),ot(S,oe))},ct=\"rgb(5,177,105)\",ut=e=>{const{metricName:t,data:n}=e,r=e.importance||l.low;if(!A.showDebugLogging||!console)return;const i=`%c ${x}`,a=`color:${ct};font-size:11px;`,o=`Importance: ${r}`;console.group(i,a,t,o),n.forEach((e=>{e.event_type?console.log(e.event_type,e):console.log(e)})),console.groupEnd()},lt=e=>{const{metricName:t,data:n}=e,r=e.importance||l.low;if(!A.showDebugLogging||!console)return;const i=`color:${ct};font-size:11px;`,a=`%c ${x}`,o=`Importance: ${r}`;console.log(a,i,t,n,o)},dt=()=>{const e=Ae();oe.sessionId&&oe.lastEventTime&&oe.sessionUUID&&!pt(e)||(oe.sessionId=e,oe.sessionUUID=V(),Ue({sessionStart:e}),lt({metricName:\"Started new session:\",data:{persistentData:oe,timeStone:Le}})),oe.lastEventTime=e},pt=e=>e-oe.lastEventTime>18e5;function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mt.apply(this,arguments)}const ft=e=>{var t;(e=>{switch(e.action){case f.click:Ie.ac+=1;break;case f.focus:Ie.af+=1;break;case f.hover:Ie.ah+=1;break;case f.move:Ie.am+=1;break;case f.scroll:Ie.al+=1;break;case f.search:Ie.ar+=1;break;case f.select:Ie.as+=1}})(t=e),t.event_type!==j?t.event_type===N&&((e=>{if(!e.session_rank)return;const t=e.session_rank;Object.values(h).forEach((e=>{Ie.sqs+=Ie[e]*Pe[e]})),Object.values(w).forEach((e=>{Ie.sqs+=Ie[e]*Me[e]})),Ie.sqs*=Be[t]})(t),Object.assign(t,Ie),De({ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0,sqs:0})):Ie.pv+=1;const n=e.event_type;delete e.event_type;const r=e.deviceId?e.deviceId:null,i=e.timestamp;return delete e.timestamp,se({eventId:oe.eventId+1}),se({sequenceNumber:oe.sequenceNumber+1}),dt(),st(),{device_id:H.deviceId||r||null,user_id:H.userId,timestamp:i,event_id:oe.eventId,session_id:oe.sessionId||-1,event_type:n,version_name:A.version||null,platform:W.amplitudePlatform,os_name:W.amplitudeOSName,os_version:W.amplitudeOSVersion,device_model:W.amplitudeDeviceModel,language:H.languageCode,event_properties:mt({},e,{session_uuid:oe.sessionUUID,height:W.height,width:W.width}),user_properties:X(),uuid:V(),library:{name:\"@cbhq/client-analytics\",version:\"10.6.0\"},sequence_number:oe.sequenceNumber,user_agent:W.userAgent||H.userAgent}},vt=e=>e.map((e=>ft(e)));function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gt.apply(this,arguments)}const bt=e=>e.map((e=>(e=>{const t=e.tags||{},n=gt({authed:J()?\"true\":\"false\",platform:A.platform},t,{project_name:A.projectName,version_name:A.version||null});return{metric_name:e.metricName,page_path:e.pagePath||null,value:e.value,tags:n,type:e.metricType}})(e))),ht=e=>0!==je.metricsQueue.length&&(je.metricsQueue.length>=A.batchMetricsThreshold||(je.metricsScheduled||(je.metricsScheduled=!0,setTimeout((()=>{je.metricsScheduled=!1,e(bt(je.metricsQueue)),je.metricsQueue=[]}),A.batchMetricsPeriod)),!1)),wt=e=>0!==je.tracesQueue.length&&(je.tracesQueue.length>=A.batchTracesThreshold||(je.tracesScheduled||(je.tracesScheduled=!0,setTimeout((()=>{je.tracesScheduled=!1,e(je.tracesQueue),je.tracesQueue=[]}),A.batchTracesPeriod)),!1)),yt=e=>{var t;z()&&null!=(t=window)&&t.requestIdleCallback?window.requestIdleCallback(e,{timeout:A.ricTimeoutScheduleEvent}):(q()||F())&&A.interactionManager?A.interactionManager.runAfterInteractions(e):e()};function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tt.apply(this,arguments)}const kt=\"application/x-www-form-urlencoded; charset=UTF-8\",_t=e=>{const{data:t,importance:n,isJSON:r,onError:i,url:a}=e,o=r?\"application/json\":kt,s=n||l.low,c=r?JSON.stringify(t):new URLSearchParams(t).toString();function u(){const e=new XMLHttpRequest;e.open(\"POST\",a,!0),Object.keys(A.headers||{}).forEach((t=>{e.setRequestHeader(t,A.headers[t])})),e.setRequestHeader(\"Content-Type\",kt),H.jwt&&e.setRequestHeader(\"authorization\",`Bearer ${H.jwt}`),e.send(c)}if(!z()||r||!(\"sendBeacon\"in navigator)||s!==l.low||A.headers&&0!==Object.keys(A.headers).length)if(z()&&!r)u();else{const e=Tt({},A.headers,{\"Content-Type\":o});H.jwt&&(e.Authorization=`Bearer ${H.jwt}`),fetch(a,{method:\"POST\",mode:\"no-cors\",headers:e,body:c}).catch((e=>{i(e,{context:\"AnalyticsSDKApiError\"})}))}else{const e=new Blob([c],{type:kt});try{navigator.sendBeacon.bind(navigator)(a,e)||u()}catch(e){console.error(e),u()}}};var St=n(762),Et=n.n(St);const xt=(e,t,n)=>{const r=e||\"\";return Et()(\"2\"+r+t+n)};function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(this,arguments)}class jt extends Error{constructor(e){super(e),this.name=\"CircularJsonReference\",this.message=e,\"function\"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}}class Nt extends jt{constructor(...e){super(...e),this.name=\"DomReferenceInAnalyticsEvent\"}}function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},It.apply(this,arguments)}const Pt=(e,t=l.low)=>{var n;e&&je.eventsQueue.push(e),nt.isReady&&(!A.trackUserId||H.userId?(t===l.high||(n=Mt,0!==je.eventsQueue.length&&(je.eventsQueue.length>=A.batchEventsThreshold||(je.eventsScheduled||(je.eventsScheduled=!0,setTimeout((()=>{je.eventsScheduled=!1,n(vt(je.eventsQueue)),je.eventsQueue=[]}),A.batchEventsPeriod)),0))))&&Bt():je.eventsQueue.length>10&&(A.trackUserId=!1,A.onError(new Error(\"userId not set in Logged-in\"))))},Mt=(e,t=l.low)=>{if(H.isOptOut||0===e.length)return;let n;try{n=JSON.stringify(e)}catch(t){const r=e.map((e=>e.event_type)).join(\", \"),[i,a]=(e=>{try{const n=[];for(const r of e){const e=Ot({},r);r.event_properties&&(e.event_properties=Ot({},e.event_properties,{currentTarget:null,target:null,relatedTarget:null,_dispatchInstances:null,_targetInst:null,view:(t=r.event_properties.view,[\"string\",\"number\",\"boolean\"].includes(typeof t)?r.event_properties.view:null)})),n.push(e)}return[!0,JSON.stringify(n)]}catch(e){return[!1,\"\"]}var t})(e);if(!i)return void A.onError(new jt(t instanceof Error?t.message:\"unknown\"),{listEventType:r});n=a,A.onError(new Nt(\"Found DOM element reference\"),{listEventType:r,stringifiedEventData:n})}const r=Ae().toString(),i=It({},{e:n,v:\"2\",upload_time:r},{client:A.amplitudeApiKey,checksum:xt(A.amplitudeApiKey,n,r)});_t({url:A.eventsEndpoint,data:i,importance:t,onError:A.onError}),ut({metricName:\"Batch Events\",data:e,importance:t})},Bt=()=>{Mt(vt(je.eventsQueue)),Ne({eventsQueue:[]})};function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ct.apply(this,arguments)}const Dt=Object.values(f),At=Object.values(m),Lt=e=>Dt.includes(e)?e:f.unknown,Ut=e=>At.includes(e)?e:m.unknown,Rt=(e,t,n)=>{const r={auth:J()?b.loggedIn:b.notLoggedIn,action:Lt(e),component_type:Ut(t),logging_id:n,platform:A.platform,project_name:A.projectName};return\"number\"==typeof H.userTypeEnum&&(r.user_type_enum=H.userTypeEnum),r},qt=e=>{const t=Ae();if(!e)return A.onError(new Error(\"missing logData\")),Ct({},Rt(f.unknown,m.unknown),{locale:H.locale,session_lcc_id:H.session_lcc_id,timestamp:t,time_start:Le.timeStart});const n=Ct({},e,Rt(e.action,e.componentType,e.loggingId),{locale:H.locale,session_lcc_id:H.session_lcc_id,timestamp:t,time_start:Le.timeStart});return delete n.componentType,delete n.loggingId,n},Ft={blacklistRegex:[],isEnabled:!1};function zt(){return{page_key:re.pageKey,page_path:re.pagePath,prev_page_key:re.prevPageKey,prev_page_path:re.prevPagePath}}function Kt(e){Object.assign(Ft,e)}function $t(e,t,n=l.low){if(H.isOptOut)return;if(!Oe())return;const r=qt(t);!function(e){Ft.isEnabled&&(ve(),Object.assign(e,zt()))}(r),be(r),function(e){Object.keys(Se).length>0&&Object.assign(e,Se)}(r),r.has_double_fired=!1,r.event_type=e,n===l.high?Pt(r,n):yt((()=>{Pt(r)}))}function Qt(e,t=!1){t?_t({url:A.metricsEndPoint,data:{metrics:e},isJSON:!0,onError:A.onError}):yt((()=>{_t({url:A.metricsEndPoint,data:{metrics:e},isJSON:!0,onError:A.onError})})),ut({metricName:\"Batch Metrics\",data:e})}function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wt.apply(this,arguments)}function Ht(e){if(!Oe())return;v.server!==A.platform&&!e.pagePath&&re.pagePath&&(e.pagePath=re.pagePath);const t=Object.keys(Se).length?Wt({},e.tags,Se):e.tags;t&&Object.assign(e,{tags:t}),je.metricsQueue.push(e),ht(Qt)&&(Qt(bt(je.metricsQueue)),je.metricsQueue=[])}function Vt(){return Vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vt.apply(this,arguments)}let Jt=function(e){return e.instant=\"instant\",e.quick=\"quick\",e.moderate=\"moderate\",e.slow=\"slow\",e.unavoidable=\"unavoidable\",e}({});function Xt(e){return e.toLowerCase()}let Gt={};const Zt=(e,t)=>{null!=A&&A.onMarkStep&&A.onMarkStep(e,t),xe({ujs:t})};let Yt;const en={Perfume:()=>{},markStep:e=>{},markStepOnce:e=>{},incrementUjNavigation:()=>{}},tn=()=>{z()&&Yt&&Yt.markNTBT&&Yt.markNTBT()},nn=e=>{z()&&Yt&&en.markStep&&en.markStep(e)},rn=e=>{z()&&Yt&&en.markStepOnce&&en.markStepOnce(e)},an=()=>{z()&&Yt&&en.incrementUjNavigation&&en.incrementUjNavigation()};function on(e={callMarkNTBT:!0}){\"unknown\"!==A.platform&&(Ft.blacklistRegex.some((e=>e.test(fe())))||($t(j,{action:f.render,componentType:m.page}),e.callMarkNTBT&&tn()))}let sn=!1,cn=!1;const un=e=>{sn=!e.persisted},ln=(e,t=\"hidden\",n=!1)=>{cn||(addEventListener(\"pagehide\",un),addEventListener(\"beforeunload\",(()=>{})),cn=!0),addEventListener(\"visibilitychange\",(({timeStamp:n})=>{document.visibilityState===t&&e({timeStamp:n,isUnloading:sn})}),{capture:!0,once:n})},dn=36e3;function pn(){const e=pt(Ae());if(e&&(O.forEach((e=>{oe[e]&&delete oe[e]})),st()),!oe.lastEventTime||!Le.sessionStart||!e)return;const t=Math.round((oe.lastEventTime-Le.sessionStart)/1e3);if(t<1||t>dn)return;const n=Ce(t);$t(N,{action:f.measurement,componentType:m.page,session_duration:t,session_end:oe.lastEventTime,session_start:Le.sessionStart,session_rank:n})}function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mn.apply(this,arguments)}const fn=[],vn=[],gn=()=>{const e=fn.shift();e&&e()},bn=()=>{const e=vn.shift();e&&e()};let hn={};function wn(e){const t=function(e){return{test_name:e.testName,group_name:e.group,subject_id:e.subjectId,exposed_at:Ae(),subject_type:e.subjectType,platform:A.platform}}(e);hn[e.testName]=hn[e.testName]||0,hn[e.testName]+k>Ae()?lt({metricName:`Event: exposeExperiment ${e.testName} not sent`,data:t}):(hn[e.testName]=Ae(),ot(E,hn),lt({metricName:`Event: exposeExperiment ${e.testName} sent`,data:t}),_t({url:A.exposureEndpoint,data:[t],onError:(t,n)=>{hn[e.testName]=0,ot(E,hn),A.onError(t,n)},isJSON:!0,importance:l.high}))}const yn=e=>{var t,r,i;U(e),z()&&(H.languageCode=(null==(t=navigator)?void 0:t.languages[0])||(null==(r=navigator)?void 0:r.language)||\"\"),te(),(()=>{var e;if(z()&&null!=(e=window)&&e.indexedDB){const e=function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,t),s=Je(o);return r&&o.addEventListener(\"upgradeneeded\",(e=>{r(Je(o.result),e.oldVersion,e.newVersion,Je(o.transaction),e)})),n&&o.addEventListener(\"blocked\",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{a&&e.addEventListener(\"close\",(()=>a())),i&&e.addEventListener(\"versionchange\",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}(\"keyval-store\",1,{upgrade(e){e.createObjectStore(\"keyval\")}});rt({idbKeyval:{get:async t=>(await e).get(\"keyval\",t),set:async(t,n)=>(await e).put(\"keyval\",n,t),delete:async t=>(await e).delete(\"keyval\",t),keys:async()=>(await e).getAllKeys(\"keyval\")}})}else rt({idbKeyval:{get:async e=>new Promise((t=>{t(it[e])})),set:async(e,t)=>new Promise((n=>{it[e]=t,n(e)})),delete:async e=>new Promise((()=>{delete it[e]})),keys:async()=>new Promise((e=>{e(Object.keys(it))}))}})})(),lt({metricName:\"Initialized Analytics:\",data:{deviceId:H.deviceId}}),fn.push((()=>{Pt()})),(async()=>{const e=await at(S);rt({isReady:!0}),gn(),e&&(bn(),se({eventId:e.eventId||oe.eventId,sequenceNumber:e.sequenceNumber||oe.sequenceNumber,sessionId:e.sessionId||oe.sessionId,lastEventTime:e.lastEventTime||oe.lastEventTime,sessionUUID:e.sessionUUID||oe.sessionUUID}),function(e){se(mn({},function(e){const t={};return O.forEach((n=>{e[n]&&(t[n]=e[n])})),t}(e),de()))}(e),Ue({sessionStart:e.sessionStart||oe.sessionStart}),De({ac:e.ac||Ie.ac,af:e.af||Ie.af,ah:e.ah||Ie.ah,al:e.al||Ie.al,am:e.am||Ie.am,ar:e.ar||Ie.ar,as:e.as||Ie.as,pv:e.pv||Ie.pv}),A.trackUserId&&Y({userId:e.userId||H.userId}),pn(),lt({metricName:\"Initialized Analytics IndexedDB:\",data:e}))})(),async function(){at(E).then((e=>{hn=null!=e?e:{}})).catch((e=>{e instanceof Error&&A.onError(e)}))}(),Z(),z()&&(ln((()=>{se({lastEventTime:Ae()}),st(),Bt()}),\"hidden\"),ln((()=>{pn()}),\"visible\")),z()&&(i=()=>{var e,t,n,r;te(),ee({width:null!=(e=null==(t=window)?void 0:t.innerWidth)?e:null,height:null!=(n=null==(r=window)?void 0:r.innerHeight)?n:null})},addEventListener(\"resize\",(()=>{requestAnimationFrame((()=>{i()}))}))),(()=>{if(z())try{const e=n(2);en.markStep=e.markStep,en.markStepOnce=e.markStepOnce,en.incrementUjNavigation=e.incrementUjNavigation,Yt=new e.Perfume({analyticsTracker:e=>{const{data:t,attribution:n,metricName:r,navigatorInformation:i,rating:a}=e,o=I[r],s=(null==n?void 0:n.category)||null;if(!o&&!s)return;const c=(null==i?void 0:i.deviceMemory)||0,u=(null==i?void 0:i.hardwareConcurrency)||0,l=(null==i?void 0:i.isLowEndDevice)||!1,p=(null==i?void 0:i.isLowEndExperience)||!1,v=(null==i?void 0:i.serviceWorkerStatus)||\"unsupported\",g=Vt({deviceMemory:c,hardwareConcurrency:u,isLowEndDevice:l,isLowEndExperience:p,serviceWorkerStatus:v},Gt),b={is_low_end_device:l,is_low_end_experience:p,page_key:re.pageKey||\"\",save_data:t.saveData||!1,service_worker:v,is_perf_metric:!0};if(\"navigationTiming\"===r)t&&\"number\"==typeof t.redirectTime&&Ht({metricName:I.redirectTime.eventName,metricType:d.histogram,tags:b,value:t.redirectTime||0});else if(\"TTFB\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,vitalsScore:a||null},g)),Ht({metricName:I.TTFB.eventName,metricType:d.histogram,tags:Vt({},b),value:t}),a&&Ht({metricName:`perf_web_vitals_ttfb_${a}`,metricType:d.count,tags:b,value:1});else if(\"networkInformation\"===r)null!=t&&t.effectiveType&&(Gt=t,$t(o.eventName,{action:f.measurement,componentType:m.page,networkInformationDownlink:t.downlink,networkInformationEffectiveType:t.effectiveType,networkInformationRtt:t.rtt,networkInformationSaveData:t.saveData,navigatorDeviceMemory:c,navigatorHardwareConcurrency:u}));else if(\"storageEstimate\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page},t,g)),Ht({metricName:\"perf_storage_estimate_caches\",metricType:d.histogram,tags:b,value:t.caches}),Ht({metricName:\"perf_storage_estimate_indexed_db\",metricType:d.histogram,tags:b,value:t.indexedDB});else if(\"CLS\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page,score:100*t||null,vitalsScore:a||null},g)),a&&Ht({metricName:`perf_web_vitals_cls_${a}`,metricType:d.count,tags:b,value:1});else if(\"FID\"===r){const e=(null==n?void 0:n.performanceEntry)||null,r=parseInt((null==e?void 0:e.processingStart)||\"\");$t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,processingStart:null!=e&&e.processingStart?r:null,startTime:null!=e&&e.startTime?parseInt(e.startTime):null,vitalsScore:a||null},g)),a&&Ht({metricName:`perf_web_vitals_fidVitals_${a}`,metricType:d.count,tags:b,value:1})}else\"userJourneyStep\"===r?($t(\"perf_user_journey_step\",Vt({action:f.measurement,componentType:m.page,duration:t||null,rating:null!=a?a:null,step_name:(null==n?void 0:n.stepName)||\"\"},g)),Ht({metricName:`user_journey_step.${A.projectName}.${A.platform}.${(null==n?void 0:n.stepName)||\"\"}_vitals_${a}`,metricType:d.count,tags:b,value:1}),Ht({metricName:`user_journey_step.${A.projectName}.${A.platform}.${(null==n?void 0:n.stepName)||\"\"}`,metricType:d.distribution,tags:b,value:t||null})):I[r]&&t&&($t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,vitalsScore:a||null},g)),a&&(Ht({metricName:`perf_web_vitals_${Xt(r)}_${a}`,metricType:d.count,tags:b,value:1}),\"LCP\"===r&&Ht({metricName:`perf_web_vitals_${Xt(r)}`,metricType:d.distribution,tags:b,value:t})))},maxMeasureTime:3e4,steps:A.steps,onMarkStep:Zt})}catch(e){e instanceof Error&&A.onError(e)}})()},Tn=e=>{Y(e),e.userAgent&&Z(),lt({metricName:\"Identify:\",data:{countryCode:H.countryCode,deviceId:H.deviceId,userId:H.userId}})},kn=({blacklistRegex:e,pageKeyRegex:t,browserHistory:n})=>{Kt({blacklistRegex:e||[],isEnabled:!0}),ae({pageKeyRegex:t}),on({callMarkNTBT:!1}),n.listen((()=>{on()}))},_n=({blacklistRegex:e,pageKeyRegex:t,nextJsRouter:n})=>{Kt({blacklistRegex:e||[],isEnabled:!0}),ae({pageKeyRegex:t}),on({callMarkNTBT:!1}),n.events.on(\"routeChangeComplete\",(()=>{on()}))},Sn=()=>{Y({isOptOut:!0}),ot(S,{})},En=()=>{Y({isOptOut:!1})},xn={Button:{label:\"cb_button\",uuid:\"e921a074-40e6-4371-8700-134d5cd633e6\",componentType:m.button}};function On(e,t,n){return{componentName:e,actions:t,data:n}}function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(this,arguments)}function Nn(e,t,n){const{componentName:r,data:i}=n;$t(e.label,jn({componentType:e.componentType,action:t,loggingId:e.uuid,component_name:r},i))}const In={actionMapping:{onPress:f.click,onHover:f.hover},handlers:{Button:{[f.click]:e=>Nn(xn.Button,f.click,e),[f.hover]:e=>Nn(xn.Button,f.hover,e)}}};function Pn(e,t=!1){t?_t({url:A.tracesEndpoint,data:{traces:e},isJSON:!0,onError:A.onError}):yt((()=>{_t({url:A.tracesEndpoint,data:{traces:e},isJSON:!0,onError:A.onError})})),ut({metricName:\"Batch Traces\",data:e})}function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mn.apply(this,arguments)}const Bn=1e6;function Cn(e){return e*Bn}function Dn(e=function(){var e;return null==(e=window)?void 0:e.crypto}()){const t=new Uint32Array(2);return null==e||e.getRandomValues(t),((BigInt(t[0])<<BigInt(32))+BigInt(t[1])).toString()}function An(e,t){return{\"x-datadog-origin\":\"rum\",\"x-datadog-parent-id\":t,\"x-datadog-sampling-priority\":\"1\",\"x-datadog-trace-id\":e}}function Ln(e){var t;const{name:n,traceId:r,spanId:i,start:a,duration:o,resource:s,meta:c}=e;return{duration:o?Cn(o):0,name:n,resource:s,service:A.projectName,span_id:null!=i?i:Dn(),start:a?Cn(a):0,trace_id:null!=r?r:Dn(),parent_id:P,type:M,meta:Mn({platform:A.platform},re.pageKey?{page_key:re.pageKey}:{},null!=(t=Se.ujs)&&t.length?{last_ujs:Se.ujs[Se.ujs.length-1]}:{},null!=c?c:{})}}function Un(e){return[Ln(e)]}function Rn(e,t){Oe()&&function(e){return e.length>0}(e)&&(t&&function(e,t){e.forEach((e=>function(e,t){const n=Mn({},e.meta,t.meta),r={start:t.start?Cn(t.start):e.start,duration:t.duration?Cn(t.duration):e.duration};Object.assign(e,t,Mn({meta:n},r))}(e,t)))}(e,t),je.tracesQueue.push(e),wt(Pn)&&(Pn(je.tracesQueue),je.tracesQueue=[]))}function qn(e){var t=function(e,t){if(\"object\"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,\"string\");if(\"object\"!=typeof r)return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==typeof t?t:String(t)}function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fn.apply(this,arguments)}function zn(){return void 0!==typeof window&&\"performance\"in window&&\"mark\"in performance&&\"getEntriesByName\"in performance}function Kn(e,t){return`perf_${e}${null!=t&&t.label?`_${t.label}`:\"\"}`}function $n(e,t,n){return`${Kn(e,n)}__${t}`}let Qn={};function Wn(e,t,n){if(!zn())return;const r=$n(e,t,n);if(performance.mark(r),\"end\"===t){const t=Kn(e,n);!function(e,t,n){try{performance.measure(e,t,n)}catch(e){A.onError(e)}}(t,$n(e,\"start\",n),r);const i=performance.getEntriesByName(t).pop();i&&Ht(Fn({metricName:e,metricType:d.distribution,value:i.duration},null!=n&&n.tags?{tags:n.tags}:{}))}}function Hn(e,t){if(!zn())return;const n=$n(e,\"start\",t);Qn[n]||(Wn(e,\"start\",t),Qn[n]=!0)}function Vn(e,t){const n=$n(e,\"start\",t),r=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(Qn,[n].map(qn));Qn=r}function Jn(e,t){if(!zn())return;const n=$n(e,\"start\",t);Qn[n]&&(Wn(e,\"end\",t),Vn(e,t))}function Xn(){zn()&&(performance.clearMarks(),Qn={})}var Gn=n(784);function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(this,arguments)}function Yn(e,t,n=l.low){const r=(0,Gn.useRef)(t);return(0,Gn.useEffect)((()=>{r.current=t}),[t]),(0,Gn.useCallback)((t=>{$t(e,Zn({},r.current,t),n)}),[e,n])}function er(){return er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},er.apply(this,arguments)}function tr(e,t,n=l.low){(0,Gn.useEffect)((()=>{const r=er({},t,{action:f.render});$t(e,r,n)}),[])}function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nr.apply(this,arguments)}const rr=function(e,t){return{markStartPerf:(0,Gn.useCallback)((()=>Hn(e,t)),[e,t]),markEndPerf:(0,Gn.useCallback)((n=>Jn(e,nr({},t,n))),[e,t])}};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}function ar(){return Object.entries(ir({},Se,zt(),{sessionUUID:oe.sessionUUID,userId:oe.userId})).reduce(((e,t)=>{return null!=(n=t[1])&&\"\"!==n?ir({},e,{[t[0]]:t[1]}):e;var n}),{})}async function or(){return new Promise((e=>{Mt(vt(je.eventsQueue)),Qt(bt(je.metricsQueue),!0),Pn(je.tracesQueue,!0),Ne({eventsQueue:[],metricsQueue:[],tracesQueue:[]}),e()}))}function sr(){return{\"X-CB-Device-ID\":H.deviceId||\"unknown\",\"X-CB-Is-Logged-In\":H.userId?\"true\":\"false\",\"X-CB-Pagekey\":re.pageKey||\"unknown\",\"X-CB-UJS\":(e=Se.ujs,void 0===e||0===e.length?\"\":e.join(\",\")),\"X-CB-Platform\":A.platform||\"unknown\",\"X-CB-Project-Name\":A.projectName||\"unknown\",\"X-CB-Session-UUID\":oe.sessionUUID||\"unknown\",\"X-CB-Version-Name\":A.version?String(A.version):\"unknown\"};var e}})(),r})()}));\\'});var zOe,oxt,jOe=$(()=>{f();rm();HOe();zOe=()=>new Promise((e,t)=>{if(window.ClientAnalytics)return e();try{let n=document.createElement(\"script\");n.textContent=FOe,n.type=\"text/javascript\",document.head.appendChild(n),oxt(),document.head.removeChild(n),e()}catch{console.error(\"Failed to execute inlined telemetry script\"),t()}}),oxt=()=>{var e,t,n;if(typeof window<\"u\"){let r=(n=(e=Ut.config.get().deviceId)!==null&&e!==void 0?e:(t=window.crypto)===null||t===void 0?void 0:t.randomUUID())!==null&&n!==void 0?n:\"\";if(window.ClientAnalytics){let{init:o,identify:i,PlatformName:a}=window.ClientAnalytics;o({isProd:!0,amplitudeApiKey:\"c66737ad47ec354ced777935b0af822e\",platform:a.web,projectName:\"base_account_sdk\",showDebugLogging:!1,version:\"1.0.0\",apiEndpoint:\"https://cca-lite.coinbase.com\"}),i({deviceId:r}),Ut.config.set({deviceId:r})}}}});var WOe,Wde,Cf,SY,k3=$(()=>{f();WOe=\"0xba5ed110efdba3d005bfc882d75358acbbb85842\",Wde=\"0xf85210B21cC50302F477BA56686d2019dC9b67Ad\",Cf=[{inputs:[],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[{name:\"owner\",type:\"bytes\"}],name:\"AlreadyOwner\",type:\"error\"},{inputs:[],name:\"Initialized\",type:\"error\"},{inputs:[{name:\"owner\",type:\"bytes\"}],name:\"InvalidEthereumAddressOwner\",type:\"error\"},{inputs:[{name:\"key\",type:\"uint256\"}],name:\"InvalidNonceKey\",type:\"error\"},{inputs:[{name:\"owner\",type:\"bytes\"}],name:\"InvalidOwnerBytesLength\",type:\"error\"},{inputs:[],name:\"LastOwner\",type:\"error\"},{inputs:[{name:\"index\",type:\"uint256\"}],name:\"NoOwnerAtIndex\",type:\"error\"},{inputs:[{name:\"ownersRemaining\",type:\"uint256\"}],name:\"NotLastOwner\",type:\"error\"},{inputs:[{name:\"selector\",type:\"bytes4\"}],name:\"SelectorNotAllowed\",type:\"error\"},{inputs:[],name:\"Unauthorized\",type:\"error\"},{inputs:[],name:\"UnauthorizedCallContext\",type:\"error\"},{inputs:[],name:\"UpgradeFailed\",type:\"error\"},{inputs:[{name:\"index\",type:\"uint256\"},{name:\"expectedOwner\",type:\"bytes\"},{name:\"actualOwner\",type:\"bytes\"}],name:\"WrongOwnerAtIndex\",type:\"error\"},{anonymous:!1,inputs:[{indexed:!0,name:\"index\",type:\"uint256\"},{indexed:!1,name:\"owner\",type:\"bytes\"}],name:\"AddOwner\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"index\",type:\"uint256\"},{indexed:!1,name:\"owner\",type:\"bytes\"}],name:\"RemoveOwner\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"implementation\",type:\"address\"}],name:\"Upgraded\",type:\"event\"},{stateMutability:\"payable\",type:\"fallback\"},{inputs:[],name:\"REPLAYABLE_NONCE_KEY\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"owner\",type:\"address\"}],name:\"addOwnerAddress\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"x\",type:\"bytes32\"},{name:\"y\",type:\"bytes32\"}],name:\"addOwnerPublicKey\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"functionSelector\",type:\"bytes4\"}],name:\"canSkipChainIdValidation\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"pure\",type:\"function\"},{inputs:[],name:\"domainSeparator\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"eip712Domain\",outputs:[{name:\"fields\",type:\"bytes1\"},{name:\"name\",type:\"string\"},{name:\"version\",type:\"string\"},{name:\"chainId\",type:\"uint256\"},{name:\"verifyingContract\",type:\"address\"},{name:\"salt\",type:\"bytes32\"},{name:\"extensions\",type:\"uint256[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"entryPoint\",outputs:[{name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"target\",type:\"address\"},{name:\"value\",type:\"uint256\"},{name:\"data\",type:\"bytes\"}],name:\"execute\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{components:[{name:\"target\",type:\"address\"},{name:\"value\",type:\"uint256\"},{name:\"data\",type:\"bytes\"}],name:\"calls\",type:\"tuple[]\"}],name:\"executeBatch\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"calls\",type:\"bytes[]\"}],name:\"executeWithoutChainIdValidation\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOp\",type:\"tuple\"}],name:\"getUserOpHashWithoutChainId\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"implementation\",outputs:[{name:\"$\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"owners\",type:\"bytes[]\"}],name:\"initialize\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"account\",type:\"address\"}],name:\"isOwnerAddress\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"account\",type:\"bytes\"}],name:\"isOwnerBytes\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"x\",type:\"bytes32\"},{name:\"y\",type:\"bytes32\"}],name:\"isOwnerPublicKey\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"hash\",type:\"bytes32\"},{name:\"signature\",type:\"bytes\"}],name:\"isValidSignature\",outputs:[{name:\"result\",type:\"bytes4\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"nextOwnerIndex\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"index\",type:\"uint256\"}],name:\"ownerAtIndex\",outputs:[{name:\"\",type:\"bytes\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"ownerCount\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"proxiableUUID\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"index\",type:\"uint256\"},{name:\"owner\",type:\"bytes\"}],name:\"removeLastOwner\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"index\",type:\"uint256\"},{name:\"owner\",type:\"bytes\"}],name:\"removeOwnerAtIndex\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"removedOwnersCount\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"hash\",type:\"bytes32\"}],name:\"replaySafeHash\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"newImplementation\",type:\"address\"},{name:\"data\",type:\"bytes\"}],name:\"upgradeToAndCall\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOp\",type:\"tuple\"},{name:\"userOpHash\",type:\"bytes32\"},{name:\"missingAccountFunds\",type:\"uint256\"}],name:\"validateUserOp\",outputs:[{name:\"validationData\",type:\"uint256\"}],stateMutability:\"nonpayable\",type:\"function\"},{stateMutability:\"payable\",type:\"receive\"}],SY=[{inputs:[{name:\"implementation_\",type:\"address\"}],stateMutability:\"payable\",type:\"constructor\"},{inputs:[],name:\"OwnerRequired\",type:\"error\"},{inputs:[{name:\"owners\",type:\"bytes[]\"},{name:\"nonce\",type:\"uint256\"}],name:\"createAccount\",outputs:[{name:\"account\",type:\"address\"}],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"owners\",type:\"bytes[]\"},{name:\"nonce\",type:\"uint256\"}],name:\"getAddress\",outputs:[{name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"implementation\",outputs:[{name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"initCodeHash\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"}]});var cs,_Y,ML=$(()=>{f();cs={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}},_Y={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"},4902:{standard:\"EIP-3085\",message:\"Unrecognized chain ID.\"}}});function TY(e,t=qOe){if(e&&Number.isInteger(e)){let n=e.toString();if(Vde(_Y,n))return _Y[n].message;if(YOe(e))return ixt}return t}function axt(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(_Y[t]||YOe(e))}function KOe(e,{shouldIncludeStack:t=!1}={}){let n={};if(e&&typeof e==\"object\"&&!Array.isArray(e)&&Vde(e,\"code\")&&axt(e.code)){let r=e;n.code=r.code,r.message&&typeof r.message==\"string\"?(n.message=r.message,Vde(r,\"data\")&&(n.data=r.data)):(n.message=TY(n.code),n.data={originalError:VOe(e)})}else n.code=cs.rpc.internal,n.message=GOe(e,\"message\")?e.message:qOe,n.data={originalError:VOe(e)};return t&&(n.stack=GOe(e,\"stack\")?e.stack:void 0),n}function YOe(e){return e>=-32099&&e<=-32e3}function VOe(e){return e&&typeof e==\"object\"&&!Array.isArray(e)?Object.assign({},e):e}function Vde(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function GOe(e,t){return typeof e==\"object\"&&e!==null&&t in e&&typeof e[t]==\"string\"}var qOe,ixt,Gde=$(()=>{f();ML();qOe=\"Unspecified error message.\",ixt=\"Unspecified server error.\"});function Jg(e,t){let[n,r]=ZOe(t);return new DL(e,n||TY(e),r)}function yO(e,t){let[n,r]=ZOe(t);return new CY(e,n||TY(e),r)}function ZOe(e){if(e){if(typeof e==\"string\")return[e];if(typeof e==\"object\"&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&typeof t!=\"string\")throw new Error(\"Must specify string message.\");return[t||void 0,n]}}return[]}function sxt(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function qde(e){return typeof e==\"object\"&&e!==null&&\"code\"in e&&\"data\"in e&&e.code===-32090&&typeof e.data==\"object\"&&e.data!==null&&\"type\"in e.data&&e.data.type===\"INSUFFICIENT_FUNDS\"}function RY(e){return typeof e==\"object\"&&e!==null&&\"details\"in e}function QOe(e){try{let t=JSON.parse(e.details);return new DL(t.code,t.message,t.data)}catch{return null}}var Vt,DL,CY,om=$(()=>{f();ML();Gde();Vt={rpc:{parse:e=>Jg(cs.rpc.parse,e),invalidRequest:e=>Jg(cs.rpc.invalidRequest,e),invalidParams:e=>Jg(cs.rpc.invalidParams,e),methodNotFound:e=>Jg(cs.rpc.methodNotFound,e),internal:e=>Jg(cs.rpc.internal,e),server:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum RPC Server errors must provide single object argument.\");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error(\\'\"code\" must be an integer such that: -32099 <= code <= -32005\\');return Jg(t,e)},invalidInput:e=>Jg(cs.rpc.invalidInput,e),resourceNotFound:e=>Jg(cs.rpc.resourceNotFound,e),resourceUnavailable:e=>Jg(cs.rpc.resourceUnavailable,e),transactionRejected:e=>Jg(cs.rpc.transactionRejected,e),methodNotSupported:e=>Jg(cs.rpc.methodNotSupported,e),limitExceeded:e=>Jg(cs.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>yO(cs.provider.userRejectedRequest,e),unauthorized:e=>yO(cs.provider.unauthorized,e),unsupportedMethod:e=>yO(cs.provider.unsupportedMethod,e),disconnected:e=>yO(cs.provider.disconnected,e),chainDisconnected:e=>yO(cs.provider.chainDisconnected,e),unsupportedChain:e=>yO(cs.provider.unsupportedChain,e),custom:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum Provider custom errors must provide single object argument.\");let{code:t,message:n,data:r}=e;if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string\\');return new CY(t,n,r)}}};DL=class extends Error{constructor(t,n,r){if(!Number.isInteger(t))throw new Error(\\'\"code\" must be an integer.\\');if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string.\\');super(n),this.code=t,r!==void 0&&(this.data=r)}},CY=class extends DL{constructor(t,n,r){if(!sxt(t))throw new Error(\\'\"code\" must be an integer such that: 1000 <= code <= 4999\\');super(t,n,r)}}});function Ld(e,t,n){if(e==null)throw t??Vt.rpc.invalidParams({message:n??\"value must be present\",data:e})}function mw(e,t){if(!Array.isArray(e))throw Vt.rpc.invalidParams({message:t??\"value must be an array\",data:e})}var bO=$(()=>{f();om()});var cxt,uxt,JOe,XOe,Kde=$(()=>{f();cxt=`Base Account SDK requires the Cross-Origin-Opener-Policy header to not be set to \\'same-origin\\'. This is to ensure that the SDK can communicate with the Base Account app.\\n\\nPlease see https://docs.base.org/smart-wallet/quickstart#cross-origin-opener-policy for more information.`,uxt=()=>{let e;return{getCrossOriginOpenerPolicy:()=>e===void 0?\"undefined\":e,checkCrossOriginOpenerPolicy:async()=>{if(typeof window>\"u\"){e=\"non-browser-env\";return}try{let t=`${window.location.origin}${window.location.pathname}`,n=await fetch(t,{method:\"HEAD\"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);let r=n.headers.get(\"Cross-Origin-Opener-Policy\");e=r??\"null\",e===\"same-origin\"&&console.error(cxt)}catch(t){console.error(\"Error checking Cross-Origin-Opener-Policy:\",t.message),e=\"error\"}}}},{checkCrossOriginOpenerPolicy:JOe,getCrossOriginOpenerPolicy:XOe}=uxt()});function $Oe(e){if(e){if(e.attribution&&e.attribution.auto!==void 0&&e.attribution.dataSuffix!==void 0)throw new Error(\"Attribution cannot contain both auto and dataSuffix properties\");if(e.telemetry&&typeof e.telemetry!=\"boolean\")throw new Error(\"Telemetry must be a boolean\")}}function Yde(e){if(typeof e!=\"function\")throw new Error(\"toAccount is not a function\")}var eNe=$(()=>{f()});function ko(e,t,n){var r,o,i;window.ClientAnalytics&&((r=window.ClientAnalytics)===null||r===void 0||r.logEvent(e,Object.assign(Object.assign({},t),{sdkVersion:Zg,sdkName:X_,appName:(i=(o=Ut.config.get().metadata)===null||o===void 0?void 0:o.appName)!==null&&i!==void 0?i:\"\",appOrigin:window.location.origin}),n))}var io,ao,so,O3=$(()=>{f();wE();rm();(function(e){e.unknown=\"unknown\",e.banner=\"banner\",e.button=\"button\",e.card=\"card\",e.chart=\"chart\",e.content_script=\"content_script\",e.dropdown=\"dropdown\",e.link=\"link\",e.page=\"page\",e.modal=\"modal\",e.table=\"table\",e.search_bar=\"search_bar\",e.service_worker=\"service_worker\",e.text=\"text\",e.text_input=\"text_input\",e.tray=\"tray\",e.checkbox=\"checkbox\",e.icon=\"icon\"})(io||(io={}));(function(e){e.unknown=\"unknown\",e.blur=\"blur\",e.click=\"click\",e.change=\"change\",e.dismiss=\"dismiss\",e.focus=\"focus\",e.hover=\"hover\",e.select=\"select\",e.measurement=\"measurement\",e.move=\"move\",e.process=\"process\",e.render=\"render\",e.scroll=\"scroll\",e.view=\"view\",e.search=\"search\",e.keyPress=\"keyPress\",e.error=\"error\"})(ao||(ao={}));(function(e){e.low=\"low\",e.high=\"high\"})(so||(so={}))});var tNe,nNe,rNe,oNe=$(()=>{f();O3();tNe=()=>{ko(\"communicator.popup_setup.started\",{action:ao.unknown,componentType:io.unknown},so.high)},nNe=()=>{ko(\"communicator.popup_setup.completed\",{action:ao.unknown,componentType:io.unknown},so.high)},rNe=()=>{ko(\"communicator.popup_unload.received\",{action:ao.unknown,componentType:io.unknown},so.high)}});var vO,IY,gw,kY=$(()=>{f();O3();vO=({dialogContext:e})=>{ko(`dialog.${e}.shown`,{action:ao.render,componentType:io.modal,dialogContext:e},so.high)},IY=({dialogContext:e})=>{ko(`dialog.${e}.dismissed`,{action:ao.dismiss,componentType:io.modal,dialogContext:e},so.high)},gw=({dialogContext:e,dialogAction:t})=>{ko(`dialog.${e}.action_clicked`,{action:ao.click,componentType:io.button,dialogContext:e,dialogAction:t},so.high)}});var iNe,aNe=$(()=>{f();iNe=`\\n@font-face {\\n  font-family: \"BaseSans-Regular\";\\n  src: url(\"data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAJigAA8AAAACCywAAJg8AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGoIuG4L7BhzCdAZgAJIGEQgKg+k0gv4NC4p0AAE2AiQDlWQEIAWGfgeublsIz5EGVeP2TiXfSAJ0G0LBr7Zlqf6pcAA3dwBbquuITJr6o7y2YrpNHoSyAwBKe/rZ//////+/IlmMMf8PuQcEUUitMtva1oSQhGamQkxJxpSLWVScqgQ1RW16VovNJTZ2uagkVSeuNje11QubnvZpYVB7yUGi4thNqJYBdoegR2V9jiA4dEhCOgf3Va7muEqhcRKz0dDNOVV47+hxPO9qkzFCUg5glpCZxKbOGFxehX5nYwGEBZOQwyRFIY5oljSrLwkSIj35dugPRJKk8G3GwUgw06hpknM0qqcUdO/UkzLvviWielabhCp59zPCaOnnqLtK3qXfP4Jz+vAum7Q0/NuZGXK9lUJKTpCEJ7ENfKrSzrLJy8uqLLgUD5sssqscpk8OS7HhGv36H+Ct59wJukpOmwpgFOqL6vCNd0ISNjq/nA5E/OXNVV0dR7EKTAKiB1ZvW+tSlyr7EWdJ3qxDtA8codE8WQY4xkT9EJF26FGP+iQKnwv66klyovCkLwlr8Lxu3nv/5/MNMUKMiAhhDtdkGsM0RAwRI8QYaRhCUNgOUAO4Bi0u3DhL0aZoKaLFsXHublwTFwWef9oP2rlv3sxftRCxRCOKSDVvItZINGlFPFkmbqay38SW9hmQLI2pME5qCPQ47vfu8GC3f2SvxM2MUAmZO8ThjH049p2ZcUbGnTPWOHudo8vMLNEQRUvt3y9qA6U5Uu9ZONvHHhBR/BdN1Kcsoz6KD7j59iAmJA4eESNxvpq3Y6fp1ru163hU2GRzm8rmg0BhMJKgMIaf9nO3qg2ztI6m8ncflWgaGnQInYUqlufvbIecf9zg3KdoiqIpiqLnHzctBAhpSGNI+CSBCoxSmdVel2WMzJgqpdvlRLu9sTnXnnhOLGfKTLCJOTM9UWa8ezmfeyz//739L9vet2xVfdv8v/dtfXvfXldd46q+pW+rqhpVVXVV1biGGqPGGGOMMSIiRkSEOCIiIiIiIiKOIyJEHBHHETH/+Nz8/5kozOTkkPZ9M9uZRYC0pVwIQS5XK0nOJvA8lOVX3YrZypBnvvvmw25iURRFUTRNURRFURRFURRFURRF0TRNUzRN0TRN0/zRttoUsFC40OU9euRGFjGNjc8DAIWhNhWIqEFFnL7nFu2CjlFaJxxJRqf6Ung+Jvp73GVuoRtcHv8zeSKBU33dLOlWLJ0kBS4NEvIIaJvcM3ZuaDO0PkAHB26nUXSKoiiKorCiM7PySCWqIBxaeL2g/EBoVNGFPYv0QhLD6BUFa7FVDM8hh4gg8ggWk0GkW3K9iQBYnQnPTdjg3A60rt4SpU4u7oiFDsrYvgxqdHDejpIzYZgbzk8QuuLh/8fU3Bf+KRCpqkoCWRYOgAZ6Z5rQmDGR2/bhWlmYKohLc8ntExu5JXwnk4LxI3Dc4OHi4/9eZ9m+b3l93mMfUbzJKYRFQ1QlXco0TebrSbL0JXsjyd5bw4HXPtI6YPvIcDe3DiFVQLb3iLxBgC4dNk2KLk2ZpkxREncp6io8fL/sm+2zzdT+IY9D0m6/Y4Tb+s6iqZrfMxvuf9tUfXJvk9JjSEMeYnYhCoOwOIYhfWJUUa2kkNlJpML5EP/eVKu0P5sQZjyxnCmOds/xprjWpqAZcY3TaO585D3x+jeeuj+aGBIYUWAPxDGOwjgjW4Pf//+GJyFLEJQZZ5xG63XOmMhaQ53VznlFa3y22daGl256F+cXhBeFxoYXXhZfePD8O32lcfRutrIm2gQ7oUjxl7L8lWnl5GWsjrVZocNaAAtYi4twUQmBxeWB71Q+jf0X4QkWtlmSCs9F9QVYKjgMPC1YEQfHiQ1IA75IGACGQSXDpvfmW2GhW4TDy9KXWhTKEVQViiAk0uAR7iVCIrxEwlP9Tf+zRMPFdQxv5oIEg///pmZK8yodlcqgE4BywtDq/vc9azWnlY7kGdlbOg4NZKEs8O+WPP07CTSbOoxcSiiOX6QEN+t/J+H/fye5TqG9dlWtqrVWRESMyIsRI0bEWhVH3///6xjuE3wV5isP2bQlhMJa/PCAB7e9XrJlnx4vRqoCxJEeHtsI0x9/s5owdGxp17TXIikE8RSCxh6y+31+b1Pbj1sa9nZsapXA6RS3w2leokH/w4wAP/6mRgHw09uiJICffvQeEZQY/BH8E+WJYYuQkGD11BMhJcNy5oJw5Yrlxg3hzh3LQxgiXDhWhAjEGGOw5BSISJFYUWIQsWKx4oxHJEjAmiARoaHBmqgMMc8ClDkxSGKjw2RK5iCZm1JsyrIcyYqswGZl9iDZmxNoTuYrkm/pRNNFvZHyqUC0gupnpCx1EFOHqhHBggLBgJnAPGAJFElsNCDYJGVStElG0cRmItSr1aA7AqYxnAnd7KY4NcTHPZpvggwLTE5jQFCdzRz7ZK4J0n+yOBxfPLubEYQhClMafQx9v+JB6UbImj03AQYbTS6OWrJUJhSP0p/2es1yt0Omr7Egj5366fr4ua6v3dbt9Ruc/3R947/ZvnkHjg3y7lUgoL2UBP/MNpUuiyQu8YoquufZv6iCKqyOV+sY2sKGZqwbj8bn9uvFkxPI5wJN4YqTdR3cr39S/T4cB2JUjhcpltUvgRzIldzOJ3mQJ8XXdymUZumXYxErv47qa0tRnWmroa07s59NsWk3Q2f+HEC/bJfPh/PLFdHXxHmv5nfeueJkzg3Zs+zvMTCTf967JdTaNjTKjk5xsRvd5QGPed4r3vZnH/nrwvoTeZY4lfsvixW3mtfjU+A83xeuevacM9d5qon6fOTg/79PrhPLMWMcwa3bv3J36RZlxnBgAJ2KMoyFYTREKn+ZKsvGlEcUkroTk15wKDTCoMoIwHgRFQNDXIa8HgfEacoFAzxuOQ7CC3jkglmPV3om8ky0iIPACWPlXBxA16FBIDBeeJaRPVKUYhqoHSvO1VEgVUajSwqlmlIalK25HF6e7le5QsHuVNO9EEUGvScieDTMCFZkT4wSprN3PWQynglxJhmiQBMhZVkvQGCuhy3sGznDAIAvIckysxSNLSamjH8rL/iQ6kCmCWULlOP5La5Cs7pTIL3W4dKITAHf4EO4q5DGYsYTJxAmKicRJgvAnGZ4X3BH3jdqsaKPhrAlcd9II/pGQ57oVzQUSmFQLm+lopVwjzel0YxGq1ZiNdKcpfuGqsZq1tfw2zUtj7I82jLYr2C4PWYaWZ7sU0shbvISKvr5PPYncRCxIBcTsIcjEmiZi+j6+xZjUG3QSJJkOZ0oBjriBHZXeDFRTOILE8ls/Z1QmBmC1XFrmI7FjqdMACayJ1Eg7HQJdDV0dWgN4VgRHHE5ABPlwkwJvi3SNGU/lasiDqPyamkvpWzzBjsBryYXJNXRm2tksf66FHEGdBmprXMO/1yFsdTx4ATRRPEkkcqIE5HnoBB2PKcIq8ZzlSN8HCKVJBHWJzP1NxSViSkoDNOJZpubo9BJtAXOIPRT0X9kVclq8tUZa+iMJY1nT2BPZE5i7yWMRBxEHkXREryFuA1pTeFkz16JKs2eU2cambRkOYZ51DBJkZdkdOBO1AQu0xoxEcLlwSSBqtBzWJOQp2j/YPUah4IrAyPcIIRHuRyjYm79IrehQq6t9gjOo6A5WAlDn6G/Slwapo9gn6z1M9KX/NyrefcT219m/6T9N1+VuBqwus3JnHV46zL3MhVy1okYqZS3Xcm8i7xvbUEzwFWV2XeQ5F6iBJcLUUfaS0gcx2wRFtPjKKVzUzgM0nCXr5JMDXgZL8jbNiPYm2wRUCU4+QQoQ91iwHod68TgjVRIY/cPoxKynq70EPJKDlY+WP8/iJENKyo2DdZO0RFCRWl8qYaUyVu2HuXo8nyFlO7UrXuhigi9UUMhCoNpZKOmo7sejsnhitMeFwkw4jbF6eKNCUQeE6I3hF/ZyCJFXdBcy2HclbkniyIr5XDCacLlCrDJrYNzhmcQdHmIRFtGVnnvci45/f5axEx9ZsTly7CRjYpavpZsBLBW4871xpXwuoQwsnGRf67JdGbERWSYIk+XT4QhBZrEundut/S4Oy7OUn2eBVcfMACKZwtZ7vfPkikU8liT8fgJ5pPMqQKnI5sNt3bV9WYXwYCRCmnsJx3RJ0l+6/QvNvRMxawtzC4Ve/pNF9wma6m7xmLp3uXhEaPZS1FUrC1TzWgWUWglgRYfAJF3xGHMqRcDDrmxOBMSnoPnyRB33z8pwsi4oobUmtOoPmfI6dsqlqf6FaTnHQrVMCiFey0ybwY8BcJphGVwiQEUb5+AImiIJCpVoEz+stnFThmZ5E4N86YgEtlZrpMAyaHS6KGQgEAbv7A3kKrhuJCjbuekZkO95mq0dxThTHgj4YjVXu1K1PWIIag9EYMgwH0ZijiLLKJU4NcXx1Mn0CaKJlGNAIcDCHic5Z4StDNOHDZbv7+bRDOSrhiJiqUFgdtxi51Q7pTJTgfRP3jnYS57EIs1CW8ysRQSOk7m7p9jnJzgFFd83PHxxGcIp4ThMwUXE6dU7Um6wBbQywdbvtjyw5Y/tgKwFYjFERNm1a5XNt/KwddMfBXgEfF6P19vBIZYb/EKsmGvtlsHs+XFXT+ugvmLV07hpJyoQKWFFlnspNPOvvt2rlm7l9m0J0S8iAXrI96AQ2JiYmJiYmLiEdmal3VYUVKSJGl/JWzgCM7bBzojlGUlYKF0vU265E+2EO5klB3PUFBWMSOTWolpoaFoor5MkPQ+o6HQ6Cn1jcK8p1zf/YRhp1TgHVfurATSOreWKNSiPbLa8byeBD23wXWgdW5KdhHedfE2EVhUMJNDKaHcdLor9Imh3DvtcFL4Y17E00B5ZStaY9uaXDZpgKZvEZQWWXJKPeq0IL6r24RivS9KJYVHJYSovb2ndPFvOUyxNC5yeXqLW8iJswKBh0zx3z52tby6PyMqltMpj0zteLz4NqK7DmHRrSN3WD3G46yxswltmY2NwFA2nSDKgZ0E5DEBoia2rObDAAy4OTgcRC0G2k3EcdVx6veK9H6BhqHA7y3odv5qPTAUKppb7vWymulmK8NNz9UZ5jiQJkwI7CAgGWfJEzgo9yDmmkgT4PNBHqF2vDigI4wa1Xv17/28Vbquyn7/PLcDQ2HYy7B08iq8MdA4eUgQlpf5zvZaqBf15lCE0M6cNvZpEiAZ2F45nOBqF+dUbKHUUI6ne4MAYbiTVO3lqVfKb1ayIi5FXpcDlGlyjhzkw/MZmPmoh5QQiZDYcpOgDpXi/1NnChbIDPU5wLQ8scKEcyYn50pPz42BgbtUaTxkyOAjWzZfOXL4yZXLX74iAWabrb8yZQYwMxtoo40GOeywwYlIhCGZk0WGZllWGJNV+Z4i1dkqNtuzgyY7s0tSbuYmbe7mgcmlLKUppSoVfU2oCabWxNIxlKGMMiujZsip3MpVVPmVr7gKa5aSKq1SpTW/Fiir8qowv6qqihnd6DqwsPbVo8IQKQ1qjbIrwYlZoLkRJG+6WZugMZshWKeMxCutGYpJve3Mw28xpYiLzi/bdEFwn1ZxmiUMnnpvH8aVtrQW0e6ZDVGIx3ato8cXg9yY3yVwTMWfoZlZasK15xoRJu19atJdVE3aaQooW7py90yx2b0cRnPzQLBQ9HYIGRn2cTuDUU7mqC7QMta7GWFHwDrFdMaTcOwsxz9wFp3hDa95kR4xMURdxCne5kuXVot3fK/AUBFTYyTNwCHho0m3WELrjocfdeK8R76XC8sKb0xtLZNbrPCKR+W4yRFYr8cdWSVxbPijn5fJ7dmOHZjFHoTyqEnGo/iRX/s9m7fejl9nco980fKEe9ZO25rQGIkA8mLmLDUilOb3hTSBN5ZhC0Ppw8fWDJvl6bLWs0om0vNerrzWNo7vz22ZHyX5BJRxLb61CbxsxLC/f5mvCpm9CxpgTGm0mMU2ZFnhZmZoe6P4i3wiNZ1xall2cbaXQ86Jfv1ui0W+Kk5xF7+1CfzDjUdlRyiYgjb1nopTbRc0MOZlydBSGxnHwAhJUwDznPM7XDt5mXHPiztGft91q4ufPGYV8ntnHuOxMKEus9qnCt4NAkC+2EOcjJKkrO8V9zTVQBEfQC4jeS/RQnV12bAEfNhtdUrQOHvFgfxCMpQbaavfRzKKxDFTDhQebuPIyrNyoFCxIqVGLXIygcMhw8uTcy82JZhpiA9XPjuXa+2v0tRpHrJVh8XK5SMI2G7k5DKT7ct2NPJACAlHBetq03f4yQjYWor/KH89NyFNy6aAZfcCPXd/KIF6JBZmc5T156XLzGXJ6MrrokXOWYTZ8OxwfvkjfV6609pkows0w3++aaoWq81hGOyO+h91VBj9Q4+GbwdWiL4yGuSCYyG/BJvVEvDPNPPUi95/VtmyVu0ZmtjUTqqtrR1eiucax2SM5Dze5puIrOflYNPzPKDLhEOv3R+QCE6s+kYtThtQN9QWNv4pwg7GeX2ZlZuQjUN0+tJo0EhUQYT74ymt1oWww35CO+AP+pL6ZgkTZ3Wao8595eNLZjMLXf7QO+Lga81u4TXJUfseAUH/HUsQlPWkQjsn53QV0IokfPU5gcVDN5ey+5t/vund2zM6bridM6h2XdYc2rWHOxatInPllyuGRjh9IZYZl58tA2aPqPK1Vr4jdOa288nZZpQ7JVr4H9lus4hh34OJSGzsgMM+54OzceTY8RNo+nDGutrGPteGPgeE/1zbksih71QDck2qru1lzrsO3fCRj3u9a7IvUWQeivblx00HrgguaQaOhFNG90eTaTPiE1hZsmZF3DoqkHkvm96X74dPYlNQzL1amVzbtptuuJlbeG4gNT2/YNDl+QW7XZ5fkHRZPkP5+kcReN5h0kWyvX/e6p5gc8+NRL07spHCH+2Qx+WzOq7LbDniVvfiXkpoeJQHO8Z8SBxht2BXAhj2Jzm3n1Im7V6xn69XYgk4QIRv5rxFPj8O0co68Vyf//bCf8Fdw3aZ8cS8HAX5tR4zee2G0yXLKziJFiw3a1ETRLImUkmXNb/o1KSR2LTx660Fb7pEx70N2SQQlMaVbODmgGOQwr/lRE1Naqc4ZRbi6VjvlJin37FoOqdevRtc19fpT1/qnqn9a7tHFY9UqzpDo4lLkicwxZgdbr9cQCcL1RYpOzfhViLum2j+Hnr7rNbUcezQpcv7btFZt8+vKrMfwG8XH9DENOGzsdKbtETTVWkl6BjpCUxSzIwsRFY+FBM7HQcNJx2XKLdBHj1eA2j9GG2sFk4fnkLQJKZdoRCW0eXQY6bw6Be3zWpH2S6bfVUHeKfKLuRdIdxWSx49aXgT8KHhi8rvIQzms9Wgl3JkmrVAPwXDALqp6NfGsA66abA76rEfTJLcIyD2OFRj6qpzORp7s0x9OhT37VXoWOfVutBNcpUfkaoEq8FVJ1bjYKkZTRvzQ4rFHwcVj707OBPwdhdXInSbuJNg2oJsG3U7kO2ibo9sh5H7jLb0UDpluIKgmT4x+uSJAOBQmWiNQQRgp2FnNM+socVkyhyrmnpmqXIthgZ8WW3FNxaLAtcGHLOJ0KEdPfjPSVqMTgKwC5BtUnQpWD2btmzZtGnRIsWirkXLJP2yfHL8AkYsiAL6FAAAACwAgAmAGgBkAAAQFAQAwAwgCOAAAJDmvbEQSgEE221AWyelstEKZQgqgS17Ej9CG6DoT/ltRouXPH2bsuOGbsfK9G09wEGh4y1CwT5bvHuo4CIDCMJTw/imZd1CkGbc0X+fJB8VfwstEHU8nbbw/prowT8+QDElmOTENPMhPIH9OQwAY8EO+eTC1Th7grqzUhB/I1P+/I3cdwFOBijV1cHNzpc6XwlnuwudrXY2QLDwulnjduhXzAMbOs1tlEOFU1xSlYtN8eoOA+w8CNgeIvGjEgKjpnY+hnqUGC5KXJEuF23bJdl3IFBvylAZLiNltIyViTJZpsq0zCt1ZKeNV9uDOlFOm+lumh2D4PCme846TPbB1MXXp3yFqIH4JP8RF11Bj434iCvhEOiRndy7bVvxImrlRTeGPuoGbPiNuBXvhXvfwIzyVM/q0ZzssNlH5Vcqb+SwNJ2pDLqSJ5+Hc/lXeG4XoQ7qsBXatFHt2dGdHRtzHAKuLkEVuXdjU/sV4SF9YE4eRKDEp+LMDkVJ4f1PoJ05MGcPtuP3oN9kGHGc2FGjN9Wg2Mhtt2HbxjUPPOE2DFtBYFdh27IrOa97qTg45+w4N67GmJ2NPCR+O0x/mXMr0ZNELM3b1MpG1Fl31zhRqA4lMITwfGI9ewFaNvwzZrtnHbH8exZX+Lvw9NW3LWYvzO2H9S5cCgamDlK9FTIzok2VzzHx/kQbCYZI0Mr3sN4rIdGlYuJTlb8ScvMb59MEnj7zfC6chza9q1d/Hvky/H30h3/umz/OpVwXd+FEPVKVRRliMamNSkN9LpaDbA2WRweqpS6Yy9p0D8ORZ/l/4NsJ40YQ8nSWzTI8aDIqSy659mEfsseNVcQrJJwGjBxsL0R3XUw1ejDUQYu83qwQRIIkDC4y0IGUaE8HhEIkhYM8EQRFTlPBbx+BWhn+tSyXCpUNlx+gquaWmKKCHh7suwwjoEiFYNYLUCDaN7J7C6vmUgFUnIqg4gvR349ExWJcCTbVyzSJJCiVWFoiU3CsDfPyxG/ho23WoejWZMFlH14J+MbuKdOgjMrPh+CrCtNwxfZkUXRnqkyp2wzVszCYMSfzZIud10vRzY1qXpiOvBgHn3NT64jZwVZ5kySmxqOgbzXvdVjvs+9D9aFHrHYun+nXgMm0OvpteB/2jJaVtkzUmKTw870LUPiqSwL0d1/xEAke1Q06jlw3zEYA61w2Ir3G7KQ4JYNugXpEpR2YwArLWQ/wYz8s5CkFI0leRyjairkhOrLH821NEizyjCVWLXXTMg2rPGqNh631pFTjSgMyiWUb0jqr1vurjf5sk4bNHrbHjn2ec8CaY5ac8miK4nxWFz3setysXvs7f/SrxQBdieVDKnqGnjwUOgNpC8+faj7452LYUnbKOQkPjtCu12aD/tW0ZkvOIz0TYz3ObsDK3HBpPoS7iNmi/ri4taWB5TyzXussUmqZYFm1Qqg7anpwGCzUZj0dZcruDQ4JVsGlAEy51TgJQcmj4Ofqr1kE3xzWDpkbLmGoIy7VNk0myZJqQmmhTFRBGL95ptCU7lRXEUePHfRUmJs4Q80q8dJEPGFZc3viyQyl2U7JUVJVoLS4YbPfiAMDeQiEnz1VkZEpI47g7AB5bFN4xoH3Q6JY7VTT5eIiCW0dUXXC1EAa6HOapEqqIaXVsgXLEW0lMNgEhg7WZSLepw1qXp+/G112mm4fEqbzM6q7qtPVtLfH5YrWMLdA8wJ1VJ/Gl8RJNaM0VbbIuCxTbilV1KKHEOizScXw5VxEECO1Ahq9DlxEjwwnI9hKFQQNMSa7l1xGKMryIZn1IsSRazKku35uq48KArOpuFsizFNpYXXzQpJ19VSjyiQUzYTwZk4j6VWW9YnPGhl9QjBXj12TgQ/C0i5j2iqz6Ni9YiLUoFvGVPHmZc8ygVeJvpRtBDhCQdSjgp0H5cMgPI2v5kSIhBUek11XqFDo4mFsOUigHZHDdfWsbj1mjHds0eTdhqHqvA90JAyFA2h4IdOtFuXCdGjBnBzrhytcHpxG7EPsDGq6ajZKOMgLPwvseVivwsGprWFci0EgWSNXm2D4KZPRGsxfO/qiYWLnUrWQj+1EeAb9l9Yh3vF7Jaoo60gWWsO8XVO1ZWWLqxyKmimiCkSUjt0qKmsk6MeTa+M6LvPikN21Tbur9GYGjxhqRfZ4dPHzoNRF22K37yMi2L5ybdg8LCFAgy9qGrCVgV/d+RouxrozXm+C/kTDSfpKEDRy8rpYeEC1Dnr1KgPZeDLVrjsQ+f3TtIJ0wszCrDYpJu2atbhuyr/+88fyAGJhnCK8tnBpMIkmAxw8tCQ6QWZBlEUhfygkuxi3Nj0NMv5uf8my9FrKiujULNoLEkkpuACFOsdLy0VHmPmwVjJKVMg0hWxXy60qzvgT93/zDASBgCVgtcBgG1jZnHjySL/3ZzfjYxEpJJKwKZn9XSrqMalXd3QKM0aady60NbvEV2VaqBXKCmUFs55Fe0yGh78QlMvhliIGqsuC7PVcFiqeN5opodCSHG31djSKAfni6uKLWywMFItABqchMUzVGFio2Ad6cAjHfTh5OFu4nGSv05+FeRAtSJKBLFOW0opy+kOt2rTr0Kmr6j79rh69+vTn0dO7jWE8JjCJipbnT3+3cBKLackdy7FKrLu7NmNrrataPMh4ZHZiF0/tox256Ts/+Om6v2XyN1yIm5lHWMXOVXkgyicgFJE1YkhIycjN5y0qqCqmEhyR59AWsBQrFavW5hmoA7BDyAHQmX8EzQTjmWFhZWPn4OTiHvYhpgXhhYRFRMXEJSSlpKuMfFk5eQVFJThCj97hJjQKHB1bFDunKhGNT/69RdwlJKiy7icdSERzFqFwoQizItXka1Jy8xoU1fCoRsQ0MqZRUY2OSilRvDqypmQ1bJnSkpGtdkf1i9+6QjcFS9xD0R/06q+o/i3+7w+pS3cvudth65kq91eN1shK0tQs2jPnQajzio9fYFhs3ikFDxTqI4XytRoCkEFMCCzwMwg13CKih/oycDtOgcMxcEzqwb7JaAND0R2sT1PQwgq6gtxl+/IrNLbI8cknFDopKXsILgtvOG+kcfl6LTk2Ja54rWjUqFGpRuUse0rggAr1ehnLRfDMVn0jzkfeD1Th1KJBU9fyyPD1QR8rt+xqJWtzNmh0+iOv4xqK+DDjI/nYJz6tG6f45iR2VWOPV4dxjjruZOTNDbd878dJk1Va2Q25vMYvWOUXKcLTZBWdXWnaWTMZq6t6bLhmsAS339Wo7Z2130MJPb/l3W2TtpN2bwrIHst6ab2cp0kYBRuLZbmBiIjKYDfEMONMyJPUpmBqKLVuhjALsagei2WJpZZZbkW1UmWV1dZYa70NNtpks6222W6HndU+xAGH4giOOeGUM84676LLrsZ13PSdH/w0IclskQdW+RAQqhLqUjJyVa+qfoOGjaZxHlSr1XWda8sYbnSg6FBYRYzWGooyIKVmtInOiCOGHwlngtXMLKxs7BycXNzLRflkKSPitEqURLUIzygCOj1XQragBIvj9frEeBDeD1rDdH4QxAJlV0ENCCP2lpf7BdQf3yys/2ZT8q6dcGL1B8J9l/kA8jK0xzG+YrPE61KZS74wXRyoAtQCGgBNgJZgA70hommwpiGahgKGaRqBGIkYY8tYW8ZpGm/LBE0TbZlkx2SKKXZEfaVVS8xNbfZN1fAQoJ1lhoNGPz/jyItzvCQve8WrXjvjdaBkAQAAgAZ0CNo3LDZLuqXe7RLE8hErrFqpaZXV1lj77lJFStNk6lG2UOtsWb+LDdhok822Vtvs2G6HndUu+/bM73VgnzfsTwccdGj4MOCIpqOOOe6Ek07FGWouibMW581Fl111PW5U3Ixb5jvf+8GPfrpdh8KMRVL3EEUb/uD6es39batbEeYRVrFzzbshyAObeZ2PX0BQKCLfy2P6JeyUslemwzHYL58LlIqmNOl4mLY79XsMmmGjxvOkVtMneU6jBeUle614rNr8GiXSRnViwzUzoxlXzQe+6hDyMPB4HUsdLX7koMeOgv8HQ1SZYHNmFlY2dg5OLu5hH8Jd0MZCwjmiu2hGDHEJSanhNGYZzWXl5BUUleAIPXqrPmD9BgwaMlw1HYxCn7Gly93bunW1PtWkTPOBSYdeyGO+4Js/Y8Vcgdc3g0zMAxp/aaFuK8bjtm8J2Yl8vBZKtUgmS/XXpuSHmc4Sh3Qy6tLThb8JIzBnwLC0yxn7xJ1qvy89S0echGytnerg/JiPTcSUpqGwbuNxRkzdcGygjsGu7nFMfL/DENmeLkHp1fynBiH0ynteEoxFXT9I+Vr+B5anb3EBJlGoBIZn0nV3zUtD9IatheS/H5dgdFZWEGyiMvAXCjawqQm1N73m4sVrqbPOevVinyb2eZsb09bZkZlzoutt361x6dOnz4rCezI8zIQNHxzY3u1t6nh48qaDvxdMIP8vJ6J3rUFd4aW3U6uSiOXsZFZ4Nhuac7DT6hMtx/L9LnxCcKmZgcSuLeU8q+JBSq0l8u8kfro7GwBYuk05Y6HhN7TPOsF5nAFRc2sLiWIfOTpRNJsQdqYmwRmnG4HUEUvkLmgnjF2NdbtsygZEX2AmglWeVUQBR+CSuS0PvJUeVIJa90Ku8pkJmHzUUMrG4M17auJ2czdRWGMLxcCLBJIICx5dcMChQ8N7rXTnRvwVj4dewe7Esnx+gWtUFdQfLuxjoT6r5keqifKmEJrFY0N16Aomg6XLMaD9PBy1IhGP8cmxxE6kFKMT8U90oFSHPoXPrMhaI2684f4UD6/jqfNWgiZS6lSfUdS2t0dnH7XBDTWVci2LmYQIIqiABtkywWquj6Hu0VlRv6Yu44ghDjR8Fu841TSWaBg5fmUC3iDEQoxUUoe49WfKcYxkChEYhz5xhw6zwoL7GTHSKVRV3zZtMOUq79yxmfNhOAszMrOsFo/7XR/rNa+thcgfPexJnnnquozk2OZKmdas5POZW/UdvA6oMoaNlrXMad0vW/LWcl2vkC9Sb8ZfCsYRd/mxLUp4qQICWjPJSqkk9Whi3pADZ5Rad3S7OWSTUZuLM39Tzg3dVOBBZDGHPkhuoVdQOZyi5vRKO+a1gFK7X0RQTFbxqiQ7onb0A86RzqgPVUhwrcvyk4wBISNOfIK2bKn4KC9475hNcCxRU4tRxSp+5fzwiBlEtjuxqDn8nN9hP+9MdHtV0zKBn2v7YbL5JvaafwUtKcnIitUrwtoFbrXZE2KnN9Itxs8W9/Uc07Z2/MDjfutJH5kve9dCZYXLXoyegoRZ5nZtVnIpZ7tZwhjjbnE3V2wwPQhyDhwIgTtmBEXlxRnTnDR0yB56ft1jdaYtg34ykR4qjo4FqCNMmjkUJbFiL1Q1dK+PZJSKFpSDx7p4WkhYjLq5S0uKU4ncgXZcEgLETSTAcVEzVXU3hjAolG6dNu0Ol0+65WKwinN7trbxHLdxNEnQeCDpK6eycMoLpT1QTb1patlVYlyRP+WKnbli9nOuuvYcRWIvulGSsZaT1BWPhGYYvgw+myFRcv1KfKSBAhmLk8llXmKeR4d9YIGo2jaIxkw18YrAD0GzvcbK5CHpSCYlqlhmUL7l2VySneUSBHI9PCuTospHSSLtKXer+hiKJOohWaacxc1TfwkksrENmoHAzS1mt+u4ICa+hwJW3XRVXp4h0zKcagHxR10Z38irUa6Br8uZhCdMvqZUGcu9vyEw7n30XQ3DWT73UJsRLMrClf06BSU6xDWYdFOhH8MA3d41bQziQ5Ep04pQtpehdhAd8Y6BTP85SNLDv6Y6/IwjJ15jK4XQ1ODsGRucRNsLmeXdUBQPVC3Hr2MpVXgNiobDPpOkitgn3lwaLkAx0zke6ofyp5INMlU8IGpKfOHtQmhkaruTMC7gcWfpQQwgdGOmSI2rSYAMkdmcDPzCojyQUkhxZH8QXuzxXk/FrUEvtC7PMqahRBKXZIAjPLGiC1K+srkjJY/9SwXdbiw8EccNzYR3ZM64ccyP9WVy6JTCVXycajLWzzMdODwSC3tk/LhBmzWqjZnnsQ1bQvyPvKfZ0ON5UqvDZpjJuW12mUSf61q5CnkspBdpWypdrJYEjKwK3X7ZanYjAaIo4L1UmEgqLv5P8k3GKDkjQ0Fe0jbGbDcvGqs1EEKTB9eTvkT/ZsnpiZ4Izp5YEfh8sjSXotXrE6d2GBF7tbp+e8Vp9wmXzJ4fIy9qk5Cc2NrNM3n7dIGLOrZYs1pnoK6rDLquD6NltTMrqR00iRjsVR6xZ0zyhB6wEYboNuNfXOhESlibm02RZQ+wyyY641qIpyaBMCwMBgIQyKoljZFogNeXyoAcOFIVtbu77mZyjK7kqltvHlx4FpBZ3ikDm60Cphpu6EMf26Ps+N/SYVfpy2DkmEwJx9vttsCQXqk0kk31RX+AC0vY9soc8Dsgp05VC9MzAQfa4SyCeyEeQIDOkCHyL2ZOYQCiQq0kP5iB6xDabQ9c/ZjAW+raaBa06pTAvKyPcU6iEZ+jR2ol+fmQatsfh7BmjO0xXCxYX6CD5F4yH9Dye8RFsEsCPWgvBS92iUd7Q84vm1sSGH1okwRxlPC4pUNJD2bZwEwzwd4dkbhMJaYYIbD9W2EyMxnp8BTZGMq1z7Pbi9bgYF2XaEJjvyYhFKWBxRHZuXSEmZxemyKm2f4sAyStAyKQr67qXutE11TfDvZJq+OzTk3UrQ8rWcLqWQCcIhU21QWXEtazl18N5p7IzkQZNQdSgL2BQELveSwRlOVBvxsHI0bmKPlioCYAiDDxA0jNiKxR43ZYLBEI51wqIiXK5JnevaxKOc5DtEaWbWeWkd7tRX3iSGzMinwUCUZX9+NvfnHgzotYrvykZQjMkbvFEKaiDorBLBhPa429dkDk8sqGTas9e+2IfCgJYe1gjko47PQXI6kmT13UNTv+9cFXiyEC6Y/k9fGZ8y++YYigsbSDkkVtyraImbyL2f0C9tdg71A/jOA/5K6/Z7XVw1bNlKIdcyLKaFZLtnsScr2jm6r8Epa4VgSOvK/tBsCUex7TFGXzDXazqFWbduPoHZM8xvMm/rjllPiRtMYzv1M4mbRyr1Vdk87EjrGkCmq571UZ50RWA+a3RZU0HrXaZSNLsQm5BDF3b9WKVerXfWKRXx7HswZfuIqYDWJ5qw0vLEkPrsthb5DxajQuXeOL2NPEmqQKpfyQSyTDgHcXUw4zvkW+3D6T4CCpPRJIZCOStZ3ze8lrfW+Hb5E8mRbD3FHEfPExn9GNHW1PXlj3/qSvpOk5iL/hgdMbpBYK1hE4VNzUm/qZ3wJw1xqMEVJxxGc4XtIhIfWOX8QQlfBWK7uKXyh7L7nPKxVbzpXsGn1DYW9neWF3Dk4d3aGeowbag+tWTOxtdK9qLY9dCZzjKbIgmNpUhJGRgZRv345AUnFQ03xBWkhD47i+Iu2LbmbhYeVFsTmvm8bi8EQSRoCvt/rxAt9qhrAYYVExcXlJBSlpf7areSI2HKJCUEFAY5P4EdoAA8tbTXHLodtEHDHgs7OA0AaExFMpbLQA9PQELkQS3mSeiji9GrOjRqC9L6BN6fhJ6/FABJu3RmC4DhmEAEK4RmGY3iTaYhabsUWcfjxnpWixSUcdx8rnL+AE9OAfH8yJFoJtNNNmtu7i+vBQipl3S0ZQj3SeYJI/eGyWYqatKtJVpaGCQy6r3MumX1COw1ktFr33B9TELSqLiigpmhIzZ07PnzdJtoIAfuhi1Q3XBqRJquJ0u7R8FOJJZOiIOsMoeksZGIc1cpNhMmpRRvTfnZzcPKq8xtHaAEAEuAAyQQkm7RQ21rLpYOlVc9I8Qb4MrINSAEGiDSCoU1orrVAHQSowYofxI7QBFE+KNhwtMt30BGrHFfqOqekJRsBBoeMRUod9Nnr3UMFRBhCEp4bxJKduUXHPWM1znxpeWnRLQzvqeDqNsPlrogf/+GBLSYFgkhOtWIfY2LWewyEL/EE1M9GicHnubCKIl6k5FcoyQNCZPjjcebPzsXDDRgLfc2VGwCABYoUboD/UkyLfch+z2e3mXjNZUx8l2T7Cal6k9vkVMtO6miH95X9GXFgZ/9oECBUZpHFmJCMbD56jQsqIPk5tpPZdtT8SZayFKCax0UL2SzKb+qUa2OqJUCLUCC1CjzAishC5iGJEKaIcsQSxClEN7gOPgKfAC4gGRBOSdw0kRVD/9qsAUfg94hBiCAsl7SW9N+mcToMKPiutrqb7xgsqqCH/OmYwHm1CZ5hDlO7sUOjr9YiOamWroe/T+jZ2VudCP6tLoV/WS3pVV3dNb4f+FPQXuqGbuqVPd2tfg/5N6N+H/lPov4b+x27vjkkFPDBmAMZswwHGQsNrBIyBY/gIgbHZjJmqqZnJ0wDjqGma+XMWjItgXAHjOhi3wLgLxgMwHoPxDIyXYLwB4715fJ6F8RUYX4XxbRg/hPFzGL+F8WcY/5ydi20E9+4DAAgIMBCgMMEMDDgIkKBAgwELDvyFi5AgQ4EKDRZYYbv9OhxwwoALbnjuve8E8RVwQinokIVH+EX/GBqjIyKiKKlp6RllyVWsVLlshcrVatahzwgqukVr7nscj+KfeBZvoj06hDMyjmyeL6vPiKlRyZrt0dgRo6NUY6A21ldi6LF+pIxd48A4NtLGWQk5Fa3ZPBgPx49OUhfNbuje/sDg0PDI6FduTgobn5icmp6ZnZtfWFxaXlld27IVbWhHHR3oRANdu/dMaz5/J+ffAuaMVqYXD504d+XmylErV69dv/Gsc3PxpZeffeHl1+btd+T6R6bmlhdfy9d+/LP8z+//ktvvEGD3TGxdP4lPsEl6UpiUJvVJdzKeLEIbU5dL7aeMmIpzWdVN2/XTnWlj2p6eTAfT4fRx+jr9nJrRH9rrB4KhcCTa1ByLJ5KpdCabyxeKpXKlWmtpbWuvd3Q2urp7evu6kozh3Ye/LGaIz1vOilb9atDvNLe10XY1xv4OdaTjnGyis13octe62a4We5CqmhVIc9XrnLnbMFatCzmxF3eI00YfVulA4nCWyxB/tyeWvbPabsuretVtnpu6Xxu8GZIKlFFQBf26zV0yMxMc3EHylA49G6K93h5o9vRwFhZIvYiyWYMDmDcM2zxcCUuT9kuqzk2Hw34HhwvOKf0K7Q1SNv0mh0u7eq9qEz5ZzRFh1SV66tkJxamGU489rswd2Jv49DfWCzDRAKyZRW8W6MBu27KbkH/7qaezYDMbBYK3AUttq/OwdWmYGoIaE3hgnIHoMAPGm+m1AFiRZqHweA8SHqFzjNdUlQhWSKmIwZ6ZB5YMr0c6dNspeEgQMdsNsFU1VHcDZTGHHJUx/5A+2TeAQXokjRHS0ezFzJnHAiZ69Q1f9o16MJvFz9h3Q2qi9bYivfmSA5oicO8C9w2oRHd2HpyNMsp2mzCh01OepYCrSul1am2HRpbnHhMF7oWXhafrBv1vXV1EXUgYdzyVz1C3NEBtt108GDTzgH5uqLA4Ka0l37TY2DrNNqPTz+mcvmFow+L32Dl6EYPJplvnqy7KT1XtOoy3CUtr2LJU33oH6eAZ2uRCVmClFwztmy/22GLQF+u39Zu9wcWJfFNp6KaCCDMojpVb291NCEOxTNt87m3P1P1p33gqgG0WD08jYnGChImoo7PrJBaDHDV5pPjWI/LvR6AfK66OZrCs8dQBqLzJfDXbx90Izo3GVMKgAJdgL1a1YqtqLEk36gAobM0X9wyrYmbbME1VaVV/Gt/bBGDmgTX60BP0BJKgBETtly34FrsFVW5x7HmGYKl/30YEGIA1yGBCQ40kMtpotkKEklBQkIoSo5c449hTGc/BBIkcTZTMmc4Unspt4K3GNiFq/ULuoCZqzY7ROuENvXc+WKE93bA61kRiZ6QJ91P0yXA/02PybzFUhKclpt7et82LAAAAAAAAAIIgCEB8NsTlJ51/HEK8INJLgIGGCyEXQ0UjmUE6k3yzzFNpmTXW2awWSVkD6YZwd1Mjva+Ne1GDU2aWfuvHSKPhjM94s+JtPxPoZYBo4yWa5Lqbvunwv05dDCAhlLjGPZ4JiyHTELQsdRAF04CZEJl+yHXoZzDT9eqJiDhw4ZWC/UirmNXZbs9N8hLZ8Hvqz4WIRBsnEfEH6qnnmVpi2oPalC2CJAUBUyBh2KmReMTsUf38xVCjRYiipKalZ5QlV7FS5ZZYpVqN7fao16BJi9NaETUNrV+cJtWvh12MdOH7/dbrvYmE3Qk03AcCTHjSDWysiTW4klQfVuVU3nqkJzDRzOBUSiGWmkM5YtIblVLiZ576vR6c8Tp0BqTINN8BnVmC/6Bst4YSaQ+IpLvmjkf+8cwb7TpCdxPkeFh8REhRoEabfgawEHGYUB4BgUmKZliOh4BDwSIgo2GC0ow+UZ9fIBSJJVInZ5lcoVSpNVqd3mA0mS1Wm4urm7vdw9Ph5e3j6+fl2wwwUzAiRtLsm6x5NL/Wvw1to5EhBen1IFkK0raCtDaQJgYk2SD1FWwVnuBJDI9HlkIwMezSti6IH49kPx71NTmkIP1O9npQAX6DURbPVoHlUmZMwZjWV8WjG6XUpJ9PynqVLnbV/i+yzG5QNzXSDIVZMRZQmqOdHCvlFuMtU0Vsk63s1NrLQZ1fuDiihY+TzglwywMDPfLYCC98NCpeGWBspifL+EqeCRxCSmvydL1gR3byuSPYWhqzzfPEL4Y/YE+VaC4t8MbFauyiFUp/2WYiYjIe/PRn8DuSd0yfgmf92688ROH3iENIaliQdLOJO510Qkfmwy+b9ytlefRL59XjYINDDW2jnbQHin8atR84BBwFTgCngXPAReAKcB24RaTwYuTCYRqvauAX2AfDAlL8nno8/dJzwc9RbUn0JD3UXSez6bVqF8jvjI9zQf598eMeP93BsuNeI8lfu9ZtAbsQ9/YOjQYZvlrL/UaO8gOlvr64cFCNDQ0KAG1YfBgO9Py/EegDQ/9Z2Bs8DA3zDQV7MO8L/A1cJHgbFllIgc/h/6wDHEUF4f3B76goAtt/AIGFBhIuNIiIQoOJZPwQYv+/GXALItNm9HmcdnCzxA8EUHHBCkxeRz2CoCSETzuBmWI50/t+F95POAQ4IsPZDvrbVZDdBNidnz342BPoQ9+hbLj8GYD896WANCAdA6TKUmyBZb5Xo1adQ/7zSrvOcERM7CKLV4IyNCFRRBlNdDHGlMKUpjKrsi5bsycH0piWnM2V3MkfeZZ3+VqUCqmkHDAgOYpjg0757IAIMAWoqdymisKBmlp7cB4KMnUNAjK1BQcy9UksyNRvcKCm+XzYCwdmP6w9/OJI6VG2+5JjrLj02Ivj2uPNJ2Q2+bbzY7XV2WtO3iuUbCBJdSzBgsxyFQ5k1nMWHpNv29nm4xj5lJ19GbnPzjFPcE1zrgPyXTvXNUPvIPyWv8p/7dxzlQvBg5p7qT5xm3iEkk/ZefbhMvnz1LwHgY133LK/t/A78x1HhumHEDb6EkSG+BbwEZ/ic3xJfv0X558BpB/3a/JTnDlZkMosyYqsSXVqsicNaUlr7uSfvElH8VRa9uVYLuVVfqLryeEVUhGV/JmHogId6h6Y0MAIDY2OuLiTEhmRHVoc5aH10RxZl44FNXQ2FkM34n7ceRIH8Sr0Y3wJ/RwdoSJDL4RCJYCFyqIQByqoxz8GfYwxxwoUaJxxBwOWQEIJJwYCyaSRQTb5FFNONfU000YXfYwwAQ0689xhjXts85g9DnjFWz7yhQ98pkOQlDp0SUhikhBM5yUrBSlKRerSlr6MZS4roYSWs9wPUWeChVf0lNKUoaWqjObV1CjKVPVo4H9HnhCt7xCYyCq0sSM5QgMXFRFULN+1PEdWK59mHE6ur6IXLocz61V2RzFc2Kyqe1fCFWrV083Dje1qZliEO7vVzrQMD/arm2UVntCrn20dXhzWMMemqI+aqCskISif0xm9FHKFh7GQJyJ2Fp11BnQHYiCJnuklHMIpfYYpZkdO1MbUWFhYgYlFsTLmxLwojB0xP7ZFWVlpAvlGURhiffCABRwQAStgDewLG1jhFrJwCdfoBgRACGyiB5BG77CLXtEn+oZjFpyFZKFZWHiHRziHV7iHZ/wSDXEwbCMzpkdq/BDFUVJYio4lsSyWR2UsiH3xY9TFT7EutkdNbI0thWpmjAl5jA1FREZUREdMxEZEDI8RMTJGxegIjpAIjbAIj/rYHwfi59RMLdRKbdROHdRJXdRNPUiP/CgIc1ab9uiAytm2Ylvp2fZsR9F+RelQ7GHtqY7dpM+i/+vTALtHg9TPHrD7dMvu0gVt04Io2Zt+y1cuVam6muo01Fqn/YRva7ce/e6g4TN1/xNx1px5C7alEGmcBBOoTaSVQm8qg2m+Y5QmXYZM2XLMkKvALLOVMduo1k677LbHXgcddsRRv2txyhnnPPV8oKIKSsoqmr284PNH48l0Nr9+/Ub5UNaycvMam5pbKK2LOEGqpmU7rucHYRQnaZYXXT+M07ys236cV8dD3AKIMKGMexEpSpIMHJ5AJJEpVBqXxxcIRWKJVCZXKFVqjbZsGRA1SG1SBnFJK/8ZIRLG9quuuq6sgCRi2VRkvVQs0i8bOZ1NGn4WHst23C4pef99+U9YWzt7B0cnZxc0BovDE4gkMoVKozOYLDaHy+MLhGKJVCZXKP1hCBQGRyBRaAwWhycQSWQKlUZn8NWR737645+hT1ZeUVKlRp3D5aFZXvQFQpFYIpXJFUqVqtxodbYrtcZtinZQs9Nb0jF50MasQB0EtEgTduekMlQs5fNDMh5B00WBIsYmOCEJTRiCpfFCCB4hziyZzTjGIAOoDsFy4IVCCJZ9/3eyItXfSOtsd88LDJ4NuzRjSLiHRSGH2ZhQ9rH1B4qQHRc++hsujEKcBEk5iiVxmHMUs2ybuaRUawLjEdKCCp80Cs+tM7epNCcSpCH04ymOOGKyTmcivzvaY5ZtM5eUsiM+9CMNR4zYC0S4RRuXsOKmua7CjSl5IzvEAYIzjztZPkOkoCxcK4NXpqFkNpY944MMtiYkT2DpvX7vNNZ8DDSagopWKlNjcAjhBjpMOilfGIQxUJYbpo0PjSvkRcx/DJdTSmKQpdA8hAvc+JSU4YJjY0GwYd14CDJchDgaepnyEaN5nbyxl5SFntxBGd9s39pQYWKo6aQ356ZxssVYwjHcZAy0Pisu/AwWIkqCZN4pwC33sRR1CDF5vNdyZEyx1gh79DzmIvZ+c+1xSMCxeGsIO5T+Yyuw85UbL2mWQ0HBGtH4hSFP6u6nY5ph38vKkwRVCxWXuChbMyoRxhE23sU+HRs7GQtRXS5/hdDfvZ6xIuWiUo1mZz1CsPkNkxXspcuDR1FJos+PkY+MnV7ZZ+PK0rA0O2Vvs2MszX1T3+xgXnOf1DXbm9/aO42oTXUy++2S+clsiqu0fQ76dQ74aVxgYHR+3lJn55CV/gvra9R/JU4pqhcpmK8X52Ro4QqpOSpjngXwPRjHZbI3v2EpxGipCewZ+TIMBce0HYZhZO/qXobssdyrflf3WONAULlU7v57h7Rz0kDBf24D1ZGxEmjK99wHHe+CryRr0WjG3X8E9dx0q89rJdece+7R1PdwxCYJo7X80qt77pFNNKIiW59rXntzV0c58ZiqxuO56Z0fd3XE3g194WErkbM2vralVHMt0690nqvBiWUxgG1NYfMtvNfffNQhbWUv3Llf4YyZs2bPsV+acAgfZiLDiK69R9GIZfP4CVs4Jlwz3P27yS1qz4Hyti3vr91h+w73VN3O+uy/gd/eBvXHR8Wu2+24sG1BKsoK0lzGp5VUa2sKsHuvjWXz9EN+KZJo1JbqGU2l6Km5ErHTNszylW7lV8ZNwx3Mcuv6lkMLtjuSgxduEWf1CrkOIc3FdyGG8pSlHBVRK2pNu1EBFUKp5c4l7VZ+akeTOiulYiph4yZwqeBRphyFpFIsJweAwwvw8eqikh+dOnuo8BP/2QkV9EC53qfzQMCMBkjqR35kkiAYVMJBI909PL2Y3j6+fnSGTu8G39ipSsNmzdt36sqT/wnL+6bxp11QV6IeQb3qaovGNdWPMROmzJi7xoIlQ+pa9CLqTdJHSF8GRbFHe8sqyO/TzhphQPBYQi6Gisr/hMZTi6M2iU6iGO7pIBRJIUmMBAoTqbinE288tSgqWonc8w0viYbWrMUY5UhcP2rCTCHBuYhH6qVsmdggAUY10sD+3QYKFmCtjqtUObgFwqkbDj+OZ7ebdrYP/k6mnC622X82fuAn2hc2PqFsJXiC9Us5cuNTfhixxpfvMqwsf/QiAT1ryAd1CQJM4rY4wVYgatLeTVFC1PuEI7eEeA7Jn9iPhDV54RKz32EvB4T0xD4qHFlnRWlqYiXVpNLW5EqulNLVFBQhJQOL90fpK67GlbLiS1XjK6EmlLoSUZRmAcRId3MfJqUPAON4YMMU1Nh+L6sIYKzaL0JWXe4EbRo0VjLUtBxDp8+s7Fb4w3Wo9k2wFLDx9S4uaIHJqZX/E8CUj5QRBOgEl4OFdAcDNLAc6FB/RIAp/otB9poZwptj6yR4yjyc//fe9Erjn5AkprT61rA6XGfq4YHpq5Kezb35tGGtJfzLpCBqEBKkHjIN+QbjhNnChGDiMAgMAZOGKcKUYZowY1g4LB6WBaPAemBU2DTsFlwUjoBLwy/BveBZ8Cp4F3wYPg6fgi/CjxGMCA7RAyFBiCMgCHmEOQKD8EMsnA88//78abhJalXqrkyyDFmmWJ7/gOkP7ew6/ecUAOXNwUAjwyViwJDEaH9xF+njM3dE2ENImrnaeh6iCklZHw3yFQZgfDBBmBhMAga7NCvBNGYUDUshqEcshHfCB+BjcCoRhNsSrI4JNUqt3FqMTIpMljzPAflDLv9nUsyp7rV5s+hmTv2nxm/hSdIJ7sTyxOLk2onxydUT5ROZf5dqZpdeu+9frL3o335hhRRcQP755ZNLztlnETQ+p38de3twePD6IF8HsMeFomocJzsGisj+vf2N/bX9+f25fdr+5H7vftE+YT92X+xp8t6/vXd71/bge5AncU88Abj1Dv6bpZOh1NYCEFPLDDCB/PxAqp9IbdunC999z9He6R+6hVxgnIeuLBsOg6zQG4A/Qja2u9jLBfccUHPNvMP61rSmjb3rXZv4jM/a1Dd9rzeHBlq3rSlMZSfTmM6uZjGrPSxqUXtZwlL2tro17bcfQeRAgE12fqSAoUqNjxQkWPXqBaOZFuKrb40DwAUAuHAKw4dfAkFCkogRd5MEiDQwCCTSpGVSpCiLEmXZNGjKZcxYvnDhCkSLVyhFlnIUFI169GhCRdVs2rSWvQVJKAC4ioIHrRAQ2kiT1u6SSzqgeOmUJcukQlWoOnWZN2DYojHjVlBNWbNo0cYeQ5K7AG6M4ME9zFhs4sVrCz8B28SJewgC4hF58h4zZ24HBsYTWH52dwGC3fI9WOyReQbfd9FFv7Db+5ew+Lew+Hd+5We/+M3+AZHfwZKv/O8A+T3e86nv+9znfu6L/cr8LXvM+iSQf8AP0w3kP/CfnCJ6WybA/++vAkz+3UcVyJ8OsyMYv1i4EgIEmr+vFtTj34WEeY6wLP4qFtNpZy6Ceo178DxExvMDKbmxziKH6LgxYj++AVkDd5JgqYNonl6SSbQmS5ZCZ8opA4Zj6A/+Usv9YIOtdqq1yx677fWjn9Spt9/P38HxhfGgXx3SqMlvjjridzcEPVLR+RdQCHKEWkSG01ZcoZ6UrbZH3bBrr6Di3bNti5fH4UsOYB+adH6Fexggwv3CuikzbERkVQkICsMNSZPuppSm+tBcqvlg2nZW4b3bRUGuMDvzU57FKq1QYaVlB+ls1SG6C3ccoP8yYJP3GZNoeRkbRSLNSUyiIgeZdEWBehsYp8BYGba6DDj2ewB7AZqwmt/mDAEGyacLoSEGja50GmAEKkC7SqiJ94eg5FgKOAKUsEIAHWIxYElnwgZpHrPw5mJkN59cddZcybgSRqRBCWbOEh8OWQsAE+iVymLsFldeV0L5WDC4AJmcB9S4J+UqoBduVfMuTlOc3GUmWd/jGFY0564i8uOG5hlftgDwCnNA8BZBsYhOswIQwhWF6dt8OALaYSwedKH7ODOW3cHE8IN+0E6nfF5xJfRNCE86capKMYhKsFEI3cRbBu1TKtGVrpDcceKfMJ4EBDz5VqvSlNEcgZU0Q/md2J4sBIi/OSuuRUiEeZqejHxEAabquj14d3ZCXWknVh0SBfQc/xJD0hMm2uUpMNfQBydaWoaaHrVoDJbLlPFWXvjkc7Wd1IPvAEfG1c6s2uRxV7mVjbzAxfU9vsjzwRrwV4A4Ot6873uQJcEILvfYBkDN+l7hnSLW07szHQYINAavQA2BE1DXZWI4ZMDEyGwTRAMEqQrbklKBrgoKYWB6uoCLINAYvGpq/iE+YwdBIFJdkjXpKXfNDBgEKQMZU1XrTI2YfBygIN8IzbjIvsebn2DGicziVGOSaoi8GrtJMe+yyMZ2o7DL+KUcvIXcM19CRxAT7YoNTQcEp9IrYLaD4pIR67lELxDHGlifUAER6tFtYs+phQwZ31TKbsO5SUUKVNEzySPu8Ch337aiQvNaYi1NJyDZUuPrgfjlZQjCJmOGA5ExiFi2XaniIpKhFn0eKA2ZKaOQRsVESFodpNZvmaIjP/01266JYZx/nxRjtcNKScAA8dhU8O5sdV1oa0JED/fhukPe+8t2nE5TYphEQy/WtFe19cAymvH7FXcWTt1nD4Z3Wkg3/QyoF8rSfWKmnXm6mtilee+apxT3tJYb5vn83NP23KeE6wEDbClbr6+rQuFl1AYWuPd6V8az0Mp4iEZVF0oTI9j3yijllD6kLBDKAqGMhDK2QpVBylR27vdVnLQ9KnCWe7y6msGEF3g02EWCoUYLa7RoIYFWK6ro0bZylTBCssCuwzRv6jurXd3gCvVe7NVR5nZ/Lyw0nKGxxH14F2exhmiFrkkHVRkWdh+ADs4Ca9yiUWBouV+pjZyFceDFlLRVkhcXqoXrtf9rfW998zlFsA1DST4M+snX29OUFjnYtcjD+7ZPz+31tioL3AUhPioWfFFUVXg558jr6/5aQbUejIEJO1A+d9wt5eWFVG4e+mE0QDA/P4gLzprIoA54jwWvFztN6hKJLtzs4jtsnFBLFzc05DUJ9Jf/y4xFyBBQaR/VXvanlgkl+FCUeekryLdbnJ0uIK1GOJO8EFDycBF9v1AFUJJ9xVku500rusFrT9AyZqyT6iyTbJFviRInXD2LxoOVeLDOtjj2/xFPHjKvv+AVh1IE6kHjulPayttxNgonYXwu6ra52QsOW367pzsodNYEOForJl1ozRglsFtLoDj7L+O2a+V2SW6d8z8tpbrkDVUcylydDrHHOWPa6liftrZ3glbgH4KEaWUWx89jCRG6JWyxCNbMn1jqLiphMZB2RZg0rISoOFQeuE3essXR3IKgEEl4sdzicHQ/A+vah1u6PFbooidTGW6QsoTy6qC9gyqKHJ1FQllTDPE1zN3KT3syUUa0AmD5UBI0LFbCmWJjIB1/tnyFqtAVXILLnW4FnBvhVbyCuZZW5xG967u1PyxX+LevfHthAe0/Na+0zUHAdL8epNilHrYtEHGSk72IkY2yc5y8Diut3tucMg5WY1xG5NR2mx1xQLNfzrlxr8YBmnLS0UzxMpycfF36/ZzGHJRrkIh45UpqeiAmv0eCBEL1GisPGiXB1TzU4QaMwe92I1EHZfmKrNiQJudkugYXzp+GFwU1rHOtBCIFfCqOjp0TQtGahAmIk5i0TplTUC1MX2o59XUkzhWensTqnvuWe9IKZx2KI55yDuQYhRDp6wyKeF/QByer1ebuEMoMw3iRLKV+dqKkctIejQctap+V1FC6Q4NheBhbZnapibToTUHwCCxSybqDu5za9CzoNlu7RnBnMXei4JwVZ0QTFKfWkYwnYzHiCQ9HzpiGQi9Yzs40RoWNHQWgtt4aQJkJ02oDVO5gmLBTmSPCLMjfUYUi6B6VMduod9gIywWtXAL6RIoyf3sgBvqTNj1eFtDC43sf/hoZc3KjhdNGtDQ6eVcwlSgfRyvgzcQGhSqBawnm6Mm5tKAxV8geHMvqNtuEXC3MAlbzKQMwkNVCuRiijnWqJNap45HQx5LUrq+HKQIGmWJZMLjOtQIZmtjI+wiDQrEKFqfcH9GANAl3TRNwb0vL70oz+w61y+M/mp+7qWlqieSrGTNIVdCCRI2zdTVw3OPyaJR7A3N8LUQZvtE0aPuk+0m+qaQ3EvmXCm7ogk1C1lljIKOsMMM0HmSjUdHdf3CsstIBtziejYltarbw8ajuS6Jik6xWxHj6XLYegYSkRn32bAuOtEV5SCvhzfDrNSrIMLQU52qGhABmgGGRwwp6+G34m68OvUhV9L2v/0HTb1Zu5BR9ZEoj3/O6708zMs0flqpMclIxEE7xB0f5ZUq1ZWyPmKCQMZhBxgpTLYeE/PinUCa/JnHXrqYYCHBelC0hCqPNtR5eYEAvj1XUGuHqXTPuGXpNuMBJ0EEes8ZJx5OZjtYx2chAuzwrSqH/Rs9LXElbfXf+2opglvwHzE1P/wJh6qd9fTYyuAbef20xw61zfs99S3u7Fb8U6pa56FXLLumMBZOqUBztxx0eq8cwJZDRuGwXk6pByv3EvctSeiNee/TA6W7aN+8gR4S6J84LAgo/kyaIxEs4+4ophRL+Pwwk7uPQp5wcPVcCh6Mr7MEAX5hi+yBg8otaHjsFBIgn9YnlBtjFqEj4LbV9dWtVK14vgbWp6cJvhWWRk6I81oWWxNxUJvkYsfVvhkiWnMJi0jgdcNLnu0DMQh9/Bpx56OCEDQaCgdCpWb//xFlsKuluyldPj1r9t3+r/NuRk4ym7Mi9f3jNu7ZbXPc+R41mW8+ctfQWJ6UUnUvMLQp/F1f0nRuqEG36cfnvWPMixWtYkeWVV/JR/f8fnNl4CYsWtzarHpSEGKldP443V0NjOM2JMAkanKIfczMQOGURiuDt1iPhX0j1fxx737DP8PIAD8hpwYEG8/fUlAvt7wMgsbU4Bg46jcskoIEZmKSZJZkIqdeT4Hnpn4/Dv6hBP0wHUZIG/SSvsE/RBthg7vZwoYkcDhdf4mw9LovKTCagCBOeqGH6E0iLkcTeo1bA4jN4VRMg7JqWFn/QupgY/AAW2TOmcw2A3wlhDANfkEGZCakZ0vSQzneKuNO8TlGCT+f0OGL7uleP8ia+10EUFQK1kHZcURuaBZfEu8FBDEEa9DE/1RD4pUksRnek0V/xHvZxcjKAkA55QDFICoSdkXjSg4j/9ybe4MMw2oTR+h29wF/f+jcNCzstcBouomHJOv6nkP6n8fTa9M9JRDp6wJ+Pfp8OrUV1Yi5+h9JRhf3e4vuR/ro9kyYCTC4SNaAEEkpiR3EgOoADIRpRiL1gEpMk6F1Ny+GV0tlNqtkwtcrgHVvZuYyQP121Bp7CKyU8fbY8lodukc+RSIl8BWBt7wL8rEC01uAsl2Qje96JRAWfDIsgp6PQoMKL204CU5ISXjVkuIAGlXJ2mwNfZvNESeLshKPE5NNTS/3ZIh9IcLwQ7sLaqgdUk+ERxiyPBNOUlnBklrJZC/63WcRcPBGFuc66xM0MQ2PrQUqW3xDB9cQuN7ivwdUY89bf9mMq1mcwPQDfKU6vCNN6xGpZIXM1+ZADMClVZfIT54NkbgerD3r1keGXYYVVy1Q/IqYR8dWdKWKf4UjNhJ3iYxJ0fyFCduRmBp4DbIlu3UkLcEAMALiU0wF/KlVPgXu/BDI8sMTeRRJiD9tY2gZr/RuyubYhYUIpl87wUhBkCk0HXiTP+HBHieZ5Yk4IP/BZxtj+RPMHRdGPLXXWaDYSUxJ4MD7Ej0ST+d6zyRS5WQBRA3ObPkYmGz041CS8OXEEvpGqgDohwIBKjgr7JsK0nsemHRQj6VOskHPEy8iLFuLLJomavW8JdHmKo0x5xGtZGWqJy7IlhDqRNBU+Xi+F4nyjagJXFoddRj16yNj9Oy/L7rGG+ecPjA0ZGETn+SKgshQ7V0246IgZetQ7PGb2zBLCgMQcdAElMSX5lbeGTnzJSQKbT3JNK+8Tpv/9wpCA+HICNr9KHEUfTiZt9CsAaEl4fBtJQzKlF+OGQjMTQqeD4MQ2ygYd2eCGAasoPpexzoKgXIpJpG4ClCAKNQI23hMLOPgmkaB3SivgF5AFKqJ6LRBEjTfhUJENX/2S+wFT0Y14VrNn9t3cxFJVmDMx33knNwIqM97hvhiC/nN5fHjLk6ZHBk9RuvU47LPloMGLP9ikja5/04UKEWXi3PkxVZM1R4/DHdMI8h4AAi5BPoRdBxvx4IcUcIk6CIjc4cVsRY62PkroGG5KuwNAxXTIJpCLqTPUEgdcORx1ew4W8vrQVo8fvAr5NN2/Y5FNuOsBB63WBotLqKShinMJbJGmp8jqJ6Rc+RLSoo7M3JCymzXFXux9gSm6FapRfcbY0wdeKMX5aYhMWYjnJVIezYlVVtMC8YZ3A4QsQ77Tz8QbUFADDQBArPXNvFJI9o0cS4xGd6BbV6UM1rr6bzw3Ptspzdh8sCSrxRwpfIeUSNntozq8ZxBmPdkRVZ6cI1KcTfC9pBz2pKGTj5vOiz827EhwfP4iPzeiZDX+2Cdmks5X7fM2JLd8nbgShuoujeX9Rv8l8Waodi4GM2+fTTMr7HREX+KkRCklv41dTpIWpyUHKtmSAdHDNEmKJadKknxpl8iZga1Oki770+LMVK3uM+6geBWZYMLn2PvfD+ZV8KR9xFqw7e342fQ4jy9992OonFNxh5djiymPhXCfOms9OISUtpCpPe1R7iFGQiNhitQwksIOgDmaZYrzAvNShO8Y31KEBE7PS1zzrCLxdEDRCeYdn5q8zx02yKQ9OiDD9U0oYT9GgXMHthQMQfnv7+JWGtUimMiz5eRiz8kdp6MFq3sKT88HTr3oyPLjLkciLxuehPm7nGlN9iDtXWNL46FkTPU9uuHtGIjqe4mUCWq9cngqdw1JfXhEQg2fljC9GmwleeiCbKq3bpVcBOdXMHzEfjIEH/NNTFhsqmfP99g6O83G/5RmI4U+0xe4gg1vMzQk/slp0AdpUz88PfYHZHU8HETHR2GKDV7SpMHRSZTwRS+Nu9cTO5LL1xrrt7Aa02OhTmifbM8FOI7CUzyP3qIOqWM+YKuRKZ6o4AguQmPjPe4N0sAHmagmQtXIdC4EKozQbfNCDMARQ+J+8sSzHQj8G5KWIPsd6zPu7Ci23OuGUNr3EnNtleF0AI6C/kACzEZTFgmyf5VcF73JQhJaYSdheeaLFGJqkSkhBCW0fo+jdi3z30UaFBMGStvMW4HTT5OQsWtHMBKjO9lNSvquTX6YJhIlKwsrbrPFXYlQPuOuPC699mSUljyqwrlQNLnAZzqOuFMce95rhSwoUYQKKCfl5i2cjHFXw2gIng56kgNCsT/8S/Qqei2cKPo8fkHY+lxGGn02PfOtVxyFlCkfLZl9q8gPpFRDNVRANxCcqUOiKm56mBtFhIJrbEwajuL4AlwfgPq+Og9TrRHvYbyIFzDXMvSk8r468F86rbl8dbiwWsLOfb18Wtwb3S+q3soLQTPKUcizoPjSVE+uF/NW9o79QWk8KN8u2VLz1KhciCZ7U48QYWjqY2Pl4PwYhagGk7z/rIX1Ao7t88el3Xrad3PfmdJaXo71n9HMqOjj3bBV560dHppOD6VuQk3SdmbiXYRESIR8mYYYT8RoGPJkTLkmiF5w4fRqvsC2vIjORQR8qdei27yoWOSqUmvF2Oo0KkqxWSdF5PykQLFv9Ro3R3lWb3Mc02WUZpdwgALXuD5k757oK9ZhSFGl7FnG+xJWmaaa0kSfVlpwka9cnOLR0+4K8goTOEqAENi55IAAv1gurQ9/YT99BpRpvkBPBBks58t8sHw4ON6cBVUHmoh1JhGjLpK0iX3ioZ6ySJt7d1nbae2SoOVtC3XYCYssL9ZDSJlcD1+NrHKnJxUnEDqJnWXUvPJ4KHFWwUD+lcI7ECApRbUnStANoSbvEZWmIzPOC4HgUcWzrCrX1tRPAPdmoQLQqmKwIWLQIvu8wJIjc3aeOGaeel5Lt5BbfDxF7J2cqgxgF5SSBpS+0KBSTfF7kwsrRGWOfEgVElWQZuEw2x/twehokNrhb4wxnmNiIuwZt6Jo60bbIsiSfGldKCu0K7iPyoWOtArE/pxz9CyOCkTiQjtTqC223x8lXNZHKUbIsorGibLFmfCmYXFyZcrDsz0qItomoK+yLXdo15hzhEauTMjybjuf20dvopwMJObw+pPTapzTxwsCiuusVXoZwSjs19WuCXhWNDdN72FTFw+eg8kR+O+Y08kHgd52cpY3li+W901elrebiiXCVbe8/ZiWt52flsivuiU97OcrUN07Vqasu2zFyvrwqZJlA/CucFk8tcpX8adOCbL+kSpk3f2lEBUy6tRSTle453C5l8dlOyJd0V8xUUaVdLmdI9Dl5jqZwhzBLq+VHCnnSlfSQNxp7Nf6J6EAvaKUf6+u9grsTMt0Wlw4agFipWqlVm1HF/JYWCsPy3B746Xgs1GCEG+8gu5S/PhNZmXdtZWK6yqdYAlwdPkvKAR7FZne3H9v7s9W+JV23bn1g/nxErr89MLnZeryBzsYHZnLLaPxuwC16INVBghGoUTMZAcza3OtgiIgcwDR+OgIPwhADvRwgh+/5/1jeygkVoPVldogNTUdwdbH5sYCQ0uE8uvtEAvZD42qxMUFmjY73HinqqI5q7FcIKMsbH2Gpn6QWy1nJlpnmTdRRpZ76NuJFZU+5E7J9yeU8NqhkhXediXcbHsD02DRQMVS7tSN7QQ1sqFsVm2hr/ra3RGe7sSxlPxMXT0oFmsaknOVL3zHIkLTa7YAX5OFy0u324kSc9O3dc3lyCXLk7BaWdyiLey5ggx7yL25o99XtqZR7XUeChfD1gFR1du1PucsU7Ep4I92Rj7+d1lH3iWUBjLBL5mE83gfqwoOfuEGHiL5SnRTj+hmH5yMhZO9eK6UniRSH7q0W51UdGMIm3spyBoO8Xqoh11UPiizgCKtTazeG1wtbfBTeJD7VORDsAevVQYoKypulqKogKQiHiZ4IahuBEGHrab+HM5gCScGuhtv0F+hGBg4T8MuMsr/QiE/GAhE1JqqDK/QrsOtprsxi+6XAMxnHS06XUGWCZgRP+INmgCW9xvaDBUHhvuOABapBjhRdFozTUw+kRkTY4tMw8yyg/kmRsG/fzK8//tJ08nfTrBFxXNbXxZzHszXdrk7J0B8NLoczTqayW0Hk5EKy3mEbaJoADQ96B/F4vEyj64VQxuqoMG/yQa60PuHQk3rwu4pQe68NzMineXqnj8c52smUfr5NxYkapevdDVKzqwY8GbJBhiaouXirnX+d7DAWSdsvGLvjQ2F1GO4snHCRov+nLOjHV2D/OIQoOWwfZpx7SKNoaNtEmysTTK2Vri4thcUuba5uLu1FRXKgj4my5tEjMpLRaiEC7XTGNic7dvE0Fr+EgQ2kKIXmHRaMpDOhhqZmmfalj9Y6B6Ym88KJzYWm0pKnJcJmlxl41b3QhD8Gdmdnaeb6T4EAjHoij/R1a8pK/heyMXAUGMLVzdLC2/Pa6q62DG719BiYhJ1ho4N3+2YqV5+/6n6Tgcd8PpRjCOZGHnYbkRq6VUtROWnqqpnzHXujZHPeG1ddUaNEoW8Zvi9TZI1h+1dnwlW4mfOg7cVOeQhctZ0FmmIlAPCRVJEElgoN08EBMzT7eggiYVykOiWZkHNcv8hAaUUqN0xLd6IEm94PGV3NBVnSIkzUmdQ3Sjxo0n/XR45sKZO8vg7nKOQrBXrJtM0wOwPgh9Qk/MJ0T3egWlJ2JDym1x5+4ILIv8tz/95e0sPFqXm7RXs62qhLfAa0nwbuEG2IPfObbwRi6wPioquTArBZ0fFpfeEhBOCvX1T4/ywxcFCfgcSVP5Hc3d+bvZu3bdB3BDN6SDfzJx65g6+a1EOpc6YSBEeDD7QGvtw2AKfTwG+kHWWbZfB52JO+Th8YjUl+WZJcyo+K0r0+kNWxioN09lSwRaYvFmLU/jcR46Nm+f4QBwkfNgyLtV2FLkWbS+X85t2SD/XtiNoEeXuWXKbnfGj+wXsAC6KuJ6E205bFxV6OBNT00ZIqm6Mja9pTCLUtYG7SJV0+NZs1yP4dgEIgHwRftafUkiJRyJ9YQmVEU0nT/fwozoxgfrZ1yMIlVgYMhZe2JbSL/zs8wypKTUA20wipjeSsIENKekxNwoSaYXJ0VH5ybT8RHD+NSl82CIuFdUvyO32+jbn4XTjNlYhJvhwOqbWXdPkrm6C2oybLJQjXz4WiHdjbMr5FzvT8EuldpEPE/y9X//B7P7pDCJfDC8Oa3unDi0OgbSKjeMz7h+ZL46O8GFCON3frtBRC9vzkiBqIu+bFhvgXxbO77d/dkLoYGnh98G46floY4fv3cZWKhrutjt8DSe/O6H+ZWvgYtjuauKlseE0jaePLyZ2VLPYTueTbhnsxcYYzOISsgyv2flacsrhcKMca9eejd9ThMCN0Vi8faLRBMyHEuZobhM/1pDh8LKx8zemNvc4qH8cC0rudF6Ub7i9W+djFE2NOyceQq4j3MioCQxJqYkl3KwBAhASSU9ylPQy0s/1ht8wZP9xixQYAswkzOqnid43e5ZwdjXp6K/lZc7p8PQbgVhSJL5x1C8Knx62SAzDRQElPuiS8RTV9n4dToA2yxJWdjrzrNK7Q7n8z73Nj7guP6uMPXqal9/wvvEy+a3GQTCP2tvCSOHwHxz3OqlcazEymtmRph/z9H3zHyfbZ8qS2vk8K5zdRe8aQ869fqwfzZ5kl8+Wx4IrX6BlLLgpeih/Q32oAG2WDV/5y41t2F9vLpEf19Y+5r38rDLuaD+vYO54h7NnfKI86fbohat14vaO413HXWfsLu4u7p0AiwDC8z+VZhQD92jeYTjvqkW4Sym4sSwZbr93VtVLCvMxNPuqF/nxIkx9SBFsH47aS30yIkQAY72vIRICn/fZKrn5wfCjPqk+oBQOrWQPm74dKlC3RUWZ0lYr2PHTdJxAfR3RE3p6HZCL4vsF8Uflh3zKPfzKh+XxRyqefqkLP3YJv17MdVgBI64NYemR2KD0uLBqoDbo7oz1cSFzndeUIurxAtN0dnx5GRv+Fh0vUA+1LWGXHmdlWd3jcOZ6T9VX5YTj/Tyx/byE4/IyCu4XKP0nd3P+Db336IUlPFTE5wZjGnfLffYKRizWPaDWFRgJkSLSov380yPDSSAZ8p/8c+jUU0QUNTQlrTnOE5PmXwBtl7bkS9IIddHOchwUfD/EfM9rclf37vuUkmgX53jPLGirrD5PpkyggZm9PMGCKvEJsMw9nx2a/TgHHkJYLw7i8dm1Hul50t3VuztsvevD4zcIvJQgkT6IqszKiJbOvpR4QAKBAsyklzzRszK8lFlrPuysFA96dk/AgeTFx9R1nhfbBbj+XToYZXHhh3vw/3zW++Mha5giMk4RfD9yTi/66dWLdOt9B7UvOgLWX5WiRpDctJOvA42GkMozjrjK9a6/gLn8bxdItNc956VFjgGXolRONKoJeH80/hCsMqu6s6rCYZuURQLi50m/TvnaT6HDkOrVjgJ73dhoU5KUM1s/FzWXmIAQ30RHAetlgbIPU9OL+7MjR5F1TGsSNFLOgmLx28gK7+RMamrDO36QSOFOuQ5WIP4dDgpOiIJNwEzalEQouPS7B22zKTz7JKTxm5rdt1xd1b+SRR5Y1ExWDtwg+5cUXj0G+1Psax79dyFuhb5BGUO3GlsG6eTgkkCI5yZigGsLcpAt1otPaxL/PsvPCmx3vugME1M8XRHsskO/iwpV0cuYnN2zrNK7DFwgnyQUjj7DL72qepV/46gGeZm5ZHCIvKpf+EC+kHHkfaYrd1F9YVxsZy54iaE2Uh85eHqieWr7pJVka382fseAb8QeNV0jLXmkgtegZ8gjdvg/hxKKO9gmJwUXZMl8dVRcbAzPyEXDtxWHb2Xm9s2WVYgFaofySLAhAm2qbL0aaMu9HfcCw3CZ4fjMIv9AUAs2AbfKrv0H+8Ce2Eaxsi7aXHfyxjgx7JKPS2KL0EEUjP989Ok//pOmacQMEgAv7st0hIJ1pZ03tsJB1kYqqHWzc2G9v3kThw8ihoVkZ2JiNwPxIVlhwRn5PmG0u2cAad6Qw4vKD0fv4evLKtsre0XLHl5U9Wbn9S+on2ngIho6wSqS9qxZ/hGsBRs0pDSGGkrgfcxcXtbX3vQZcEN+/9krUnZX2DrbyssjydpI30/HlydfsE6sMzs9/3nvSPdBFbRw+XLGoCveMsbxqi9vnpAlZ54cxkQJZ17+YRhksqKcXO2p9MZ5oSWhv42/E6T5ZAfagBFk/cO7TewmJiomPwIfnR+F2cTef/MWRAgbg6d8SDSc7wz6kTARAE+eeWxxItVIzm9qPWBIuso1XhUYcp6geNkAoZjTkNP//gHwzwGv/H8QWN92hSP/hQMDYkefZq8bzE2MIrrHh2RE2JQw7sjO7yA8oq+HAutH1zzgql3IB9e8oN49gGhi7uJuibQwc6Q7mplLWTm5WVxpmzA1XTHQcafD6DpuRstV/kQbGCQCVo77aCxEWin0xNxlPmDSxHTV4bYyd6M7piaTT5RaUQ8qWs24g1+yCnbNxgfNJ0IRlGjtm8i1u6F+NbPHRPaymQ3GXlCwTUyktXcChHowMn9/Yvgbfv+JEZ9smBc7DVFPffNiDaS6Vr7DO7DGu+LWERhbzmY77gLfs7ab0Kb3dzv46iKnstPGgsVHgs6mjwIsVRCXGRKkxHJ2wrMBygnED5WaOrvsdeP2ySOhuR3B4LRIbwW0xDV1BV99Q2FzEZOEAWMbfv2rBCd9eDkVPGkICMjN9E1G+SbnZgYEZufedGtozsAUFgUGlhS6JjY3uSaWFAUGFBYSvSgNN90gLkmdgyedg0mJHYMnHYPgo7wKSSVHJfNtXPOnK7YwDdunic3vMpVzlEnK8mDwgLJL4R7xt16VQIk4ftQr0bSk2LTuFe9qaepjnyQTLV3sKu2mrW0mhdXx9i5yFYcbSlkQ3UpezI72v2qXbKJfqplzD3exMvFGJ8rGSDc7S7traZpJBejO0w2gJbYTZe9mozauR7tY24Y7pV4g7cCvxzra2kc6pF1wYIcURbeZOZQFyl+gtYIR83MR/CpszM9ON7/2Lpo+Z1s7Z4emJ+BdJSkt0L50zJvW1kNMaq9kSzPUHW+ZLcjg16/NU0df95c+pkCzetSKu4Pzqj/n1QS36eZ3QEiPKEB3zTsV5zH2S5guAFU01NJWM7vSXcPpW5OYlFqaFKNjlcy2yVRUzWV5W27/ipWbh558OrcFW6Q8UDwIhPfBm1/JNsv2ZT/dAqBmK9DFPbXkB0Ln6bZ0IMuw1J3z1GkujrMQPn2Ka85Pqdl6UFd/f7sWPXz1dfcf8BesPTe20NWysxARMOKk4WcWBTIUyGv6DrEFiX84K/pBPAjwoGcoVhQAK9H5OzKafHNk+C/P92ay0jl9N1c9fVdXAz0XV300HxA7tDikL4YmDZFQNJTwKkQDppfCDtbHyZYoP00dMzMNbXtzlvBhPvJkFTm9vfqmG64o2rOKIFJaDMqOjW9AMfq6eJboSfG0PEO0qbaWtYGpy01zAzMdvLmRuoatXu2YYNp4YQa5lYzLTFcSMeOd6I9OnskDfERS+yn94xRsJNqrt3hgWFAmLoRU7Be4KSoHk9dqi7F3NGWLRiha1rq5xRup1QOxtZMn3J8PT3N9vP8csNhlAeZHlwHzIyQ/Y2Hk4EYcFG+zFQfc34RHRNoxtfcTq24AvRXZpYXyisVFucXFivJOhVovnIOTZ1i9Z5iTA7APkOuTa36JaEQMzD1lgl9/mkXbvcp+xatv+P6RN4kYkZeKgM51tcZyXQ/MJGXODZsJpov+CWXZ588Jc6OvbcMQX+aqREuLQPthvYHO+ifW57w+u1Vk4shpSqLgd/Jb+TyH/SFxPJlEnhs5tBbdKEBbK5wHnf440dRZ5/UA466wP0fY4TrPfAjKPQg7CcZw7H4jf5wKKX+NMRvZ7pEPdxgeFVdFVbFuPW3+kQrpyBgUDVEyuySPCspiNZSOCrS6fslMUsnikhwqkMxqKBUVYCXx8qVQP9TRMVtmMBGHMRfpAwMTfj4UG9YVGzEUE9F1DKy+SEn/b8Xg5cm+bWD8di/y8muSxeyjbDwdP/ZmjhbxcSFcVjarWiqaSHZMW2MeKUMSOTZlXlVJqbbR8kJ7KI9N0kkVVUVX1c86u/gpMWZIcrZJxnc29xJoNKKjnGtje0I+jjtIM2v6GTLkEPNvZPAZ10xvdma8HzbYorZW6cVy4DYHjpICnf06AbpAT0yxgjCW+fI77rhO88/f/3XK33bK5/LeuHbmfqMahtp7U+S36J7QkZWR0OQ2kexvc87Nf5ulW9Hg67K1RdmmpKDuevpUcoo1XR9Q+gJ9PZbsEfRp4UXnxrlo7AbY8GUfRpLdgj4vbptWJetA9vdaZYt5BwUJx2WDrgVygkzxTtbioy7ZckjGRKfK3P08wnFidA0J+1/4dcrffkpyRR0vjLkUqpHKkJlWKYo0p7/FWXqnT9Vct/Rkzo5UR0w6JFN2+OPnmyfBP+a6pJSKzPibGSkxhc0BiTF4TwwhJpSc093YvDKRZEEnRnVoYJc+3q3DReW5SiDj4eTxXH+L+nTfXqXAZMo9U07Zd/Vcgpi4ymc1LnM+5dONsYgRqhGkNNvZtcs+p5P2pZAjv/aSBQR+7fKFPb52Id+cu0iz5C+YtrXLZZ+q6KmwsrOHYsK6YsKHYsO7vlt87f+6nHO31T4Ta5C2e+2FRhcCTIwDL+PPGrMECTtHBwRjEj4dlb+jTiV3OUqjkKrWI87hJU/y8Uc1SB7mHzoH0qk6hQ9kCv6OduRsxV4MQCoFrsdoG2Zxx1QURUQ15QomdBtb4Z0c0xracY5vJRJb8iOJdg67EZX42OXDUnblQFI8TlaidwXQFD0doQxUAyM2792VMy0mkmbBLmjzwKFWaaTXLmcpacjGq5240aS2xh8150rTuzE+DDBEh+q/OhoAqf2en/GjMj/h215Rhi1ZFQt3JlamCbpJx93SddKylN5RuX6pi9lBOpqm21y2dOP2qZTum4lc6nJ13eRKXv70am319HLSvUpiKkmbfAebwEyVxHyfM1ttPy2CCo3L8K1tt6ugA7nsX+/qsQrbWuXf2u/5HO5tfpy/aSIRQ4tDbb3RKJSmBsom2tpGQ8u6/c0dg6zOYXzR/AcF5cORDJ9r11f1a+EKFz5c1EbXbXo9rTVn+E5NiJz1wqGV6mNf9xpafGWhHpQzdCfmTwow2VIpUlLwyD5KoWoEk82TopjFJmRfFDIDB7Dt4miLPm6CleOSE1LBZdA9KOey7ychjftHKcdACl2F5fRmTrQ+rU9eXlwIbnmFpguztstbLFvgWKlA1F8jd9X4jp5SLCnIqCqT5hlafweB9FW6t5IhuS3BxtzEzM7MncKQjFQJ7a4+R3mupLpSyOed36gFvC8kMzwwJcUz3I139npz86O2YZf2r8j8yOlWjlr/16dmy3RUnC+pykPAWvpIBJ+y5Cwt5X7H/kL364TdfxfaT6nvp+Y5KZnfiv52Ue3RHgj50VK1K5P59fmszpvT5s+fPv9hzTH668dYW/ZWvIfYza+Mq3z0mGGLnmjEV5LF1FiPNXv0Uch8Hbh8ButAnM8gznNEZL808HCt5ErYTKguqE4g7jVL678ifT8r9Y3Hk9x+SrGiuNj3i14EMsKkr9J9DYygdFslcrWM6Fx83W65omuIp6QyLmyz4nDhAuaeP3veovH0RTfa7AvNDPI2QGGrkHBicDc23b0i+42QAJ70hmYFeevouS1CX4NzsntBaxf1/vU8EndOKUTLYS6jfbUV6bd88bHki/HEN+THxHZmCybF1ZVmYSt/PVYpwfnbNSuvc8SSC7ldNWyxwfqudKjh8l3vx3MRgzqM5fwVq7X4noz6/FvjrDsX8ekXKGcrvscgxfDyVaVchPnluMrboGn/g90Dv+lwv7gZz1x+7DcTFTzjty+P7WeoFr5od0mxvKxoiXNjfJU73eLKGcpZ2lm6u7S7lDeUx0Xma8flu0/vglr/ysLKgs0CnkKedy/Ik5nFGCNMKdOGgwAD4rmMpUmXLAd6HcqyC54OPB8ZcJ3gUcS+G7dYtfhJiL0S+d6oeG8oORRLzMYA5qTcD0Q6/7ht2MUDRSm1nG7wpzc0C+ebWeb+cxOMda1wT45jP4QWOSW4Y1oNCA4vkw+Z5dfaLsFnqdFmcOa7P6/qruVV8BTi3k7Etg5WbU3DVPNJ57BQJZ4cY6UCzV+kmssEsWZOB9AIvCucsEdlelJrjGOGkrwkt+PQD13jOkHg0dqJ0igR43iyr4ADcSGD+Ggz/4fMH3R0ocl+a7y3rB0xWOnWgz96OQc+Xmx32hom3TvX7uyUruSvJfmkhR6yExaXTU1yFvsdOLXcI5LHOLHwxMdq3jaGK/v+2mH9YN5l2MurjMPZYG61VUiL//7dff8W8IdI/an2XDlQntgjFd68zohvNCnaOmDZ324YPgB4E7uK5VTkv91YuBnkeX3DxcvTWaCWYkrkugwqM6EUOwV2TfwmXB+6TWXQShO3pb+82xr7nqV5vr/ffortXX12tUrWrqxlfN+0n1o9aiiw4G+MBeNpqt3m/Sk7k6mlwkOshRuyueO9+n/bkNaeH/1SFzU6DucBeamg/HD84eR16v1gHS+Ehtfd4JSX3FdeIi8zFw8OZ6zrFz6QKzwzMkDeClXxQGh4boXcTMiXscJVN57ipoKY+E5wiMvBCQfpVdhjLRGh1NplEKrAUSJVzV5Zu1ck41uAs0rThxR/E3YYdFNcUZYL929ulexJwRHOzmRIUo2UqcxwJbcxq4a/mr9MhsQlX/mJyHKarFcUk35D4q224lVZlSHDBHNrVAupDGIRxOQEqTMlYBWJg0QXxKzhUeUpVgZ/nezzJgfSQgYJnMN63Pao/1hqoQ/17rfdsaAOdz6BucY5tttbF/CN/Gn8xfZp648taVBFipufZo2BK0ME4xNEMiKaFWQSEjdLRZlCPPS92aWI9kOjeSVyyV26I//USYrIMs684oBIkUxzPIT6safgBNFSZF1WdALuWxE+FBPedSyX3WOUX2g/xTY2LpftPhVKgSn7V8/Azb6QzGCMuj76O+Irp3QAY5CLPLwl2as0YI0f/bndIHMu98Wgbuj4HTYocOc1PejFGjMfJF/otgue+alB56qZ/Md0auCeGtYbZpmot2qo+hyLbFlBADfAXBmmKJAB8F256qmzl5RR7XC8dIaScHT/IsBlIqNjL6tPhZIgsHrLO5+6j3cYvMdH+ppN4vFDv8vbkezpu3fgP32cJf923IhsJv5snCxzGnA4HZDyw/wbAKJlpBThBFZqZU8I2LHp1dkvzlQAgTz3wgiu0RW0NtAE91GxuvLb7o3GU+UzCOJ6+YuHtf0XEKM4pTmgGyga8/tlZ1vjeIQqGhYCMFFHhY+pOjkTfCOdDg6kJJUh73jxRTTI+6piitsUNIOdhwVrFdriv7+xOX4LsLx2sHUAVuYFqB0jUTw/nIuMN5IbAQv2e0FsAfDb3oKJbwGNAzY7J1f7ClOdTR3K3OW5Fncpfhnr5pk0Ow1HegZt57ri9Mm+eoYndg8ptSOGBgThV2IgSTZ1qakRS7Ifzv3UUJIl9d5XQwPCi4J/peMcAeO2FuiHX01WmmFKASEqIv9GqnBXXCiSww4dtjPhFYzz9Pxgbwm/6lZ7JdbLqNon+FpzGrZHOUB4WOEiOENNmEhlv0I+A6IBPgHemjc7TXL8p5+iwJKTHJXVR5eymF8xWT7ozsTqxMX5wcAEECExhjGsUYFLIZqjRX41X15wDv5Ns/a5AI8eiAa1zeDPDY08xnUE+QdSPjQf0g7Jl+YrBbYPSD4zPi8uaCQ0mKkBGBV7paXNpKV6eaakzqSkAVI51gkRVSPA36ZFSWO0Giucl6cyrLdSwU0tfBJwRTMD5rmSOM6Lqzl/GMOxdpdVnCAgADxYAmQLgq2wvVcjQOcxMHqmQAesc4zewiKXVlfSOot2ABHkmNvXFsepR9YwbCaQLvInoOI4qz9fILpn315X19zR3czc3uOaro3BXgubeA+ZqkbOT/bTfsoGyWXd6Tmj/aD12DXLzC5ZtsFrd+lP282qNH5cx4qh0lV0VCkjWXQpRNs4vaErhTQ5+KA4083D2NzFzdjUzd3MGLApC53WhGklwSXXn4OK44aR/AiUU5CFiMh3C2/T4I7ckoLuvCBzK+8jEUtRxyCbiOH82mwL5+s6Wi7W1yzcbDR13a1YK9NszENRFvoGqGtqqiD5OKUqVQDf1YWGO0aVgEyoTxCpQ7lx7JV0obFc+ZyZq7uZsYuHqZFkG5s7uoFOs5xSqkmpUsWYrg08U6KJtHvBCi/vulIH6+MUSxssPJIP6pmL1tzU045ycr6uC/XbusxM6thgmF+DpqRv0Ew+OFCa7WqL47oeRCaRZ4dNBYgVM8WsA53XYhW3kSkNfmzIbTTTG0PJ1el1z3kGmXcbelCimxG33dOU+N6FaKXBpdcPgmaaKMGQPC3/MEuMvpAoasjRNTu11szC0wi5vVYgucP5b7QsqiCOHBIkfO4qWfBi1msyVdjBKDV19o6ec1jqTWsLmueTfeWy1MlnRQUOWtmnGS069AgvqfVuKWNAREFcZ4i0rPMGJ/n/b6OAyqtd+bwPvU3NXwdVKkIVic46YqI6MkqkRyplX4eaG9/UXyI9VXuCZYOyxYZl3sjKvx4udB0RnpEPrex3c/PCyY+2/3CwFy4zFPp+He3lwlDAyUl1V3lB+UD5zS8LP3enaT/3F+BZoV2hJ59FIlIi/ILT4sJEwBBg9me6aF7PZFmv2M2VbBgghYRVBiOQN8VyWtJKbs3XiD8gr+euk9Zh0+HpEf7exOAwFAWNDCOGeGNIwXgkUIEI3/vmVkPd5oMzH/cvDBys9E3dzS2DB9jw4n+U/ojjweKHqv/jxAVjxd9XJYgLEc4uJZ8VEFeS2E+yTtqXABE0CclsVD5X1zLNyHK0Er+ynzFa7ixgz0VLQmkJd4fPH0Dn9s5d6BO/sDe/LzF6fhNchUEr+aJm5yP5Kqsi+ebmeCMV+SLn5yL5qoREmjucHN54ptf9jXMINdXyIcAzZez582ucnT/6koiHHk4OerR5A3RX6odTrVK4UBMnkbqI3hDPa4sKFhFx1ZyEpOJlTXqFjASZtURsrkqhkHvxVf80dow+78U0MzDXVVU7aCIxDQi63+sPE1nECoXV0DE3V4cMI5pXEYI2sDU3rq/UgyVF/WE1jcpfba9IHIgND7kuHH+jSLslTLimnM3qD3Jyz0d7sm3dmpCz99HA9bHPNNYqR9rYyHgnVWuyHQIHhEilvSI5pZvA0ZiX6u8gRXrm6/CenU7y1Z9WNhRIzqBdYFp4zrWoV5pyY9LFxTukQhfqekrd6SEDwTtMDD4MOF/qoOwwc6AgWi13P4FDeYeoSKF5D4iRsEcmrhIJTyoKMf9tAy1JO+lpsNKsGgKn1mVbuBBX4trgpqGILbHJdalCMjQ+fbgjiwbL1WxWrn3KSY6OKF8eELcO3W+34Y/TmtB0aUjp9QOGwm2nX2DZvwqRFBpg/dOOYckNgdbDYY3kcLXXoRUTrueAIyK5N2LMw/n+8vrCKGYm5WlGQrYVg4cGQ6pktzmPpFHMw/L0Jjy4MZUZl8eZoRLm61v6Yfh4sFXMdah5pkoUU4GvYnr8DzChc7oHqjqTVc4N5HNKavi2QJ3LuCnmibXLuKeM4g3t6IKRsArL00dJWz9XwgDYTU5DTVdqUz05xNPUDO7YFuXTaBDHlqHKyepe8PanZiRNd0bU/tnV+9thII/EPyuYmoKyPWtVT1Z68Q/yqai7v7s3OW58GHqZUFXxsaqSsLA4t83HdeccH/t2IGR8EBinSCYmjg9CLm/zsJ87y8t1/cTiHKG68mN1BeEydHw4Ma63F+QgJ6Djg8mJAamEOA8o6Q3ArrwhQScGEwm9fbg/MRHp0CmgPiqwfqJK/ggnx3XTPPuTE8aHJCaAiIkAYhIyMbSU/HITNVi0oG6WtBASKijJD6D9o4Tk3hwjMTnWBt15wMZ57So71w31OsCtordZua5eDxl3Jc+FPLW7bz82eWhU4kFyOSUhvpQCCHhY6GoDg6r00boL2c6EuiCDsJ20DQGh1WVewcsvajKRZxANrn497xgkW6bP0vtUrw4AFX3oLUenh5kucYt27j1DD9Z1iAHhWk1+eZdb8MIKn9BGGm4n0IBQl+1cd2GUPqiqNgCYZdeUFhclJjbUiLPc5iS3VD47yLx11edY6MamKsynqAz40yQGhwmE/t7uXittWJKm/EVypsfp/aPitHWapHtWERKBGWSbW+xuRsjjzdSchOEgWQxSiMlzjDxwg1Cpd5K6/CgicSyhqTsnt6knIa6uJzenrhuowKCHw4m5DcTwwpbueYl1qoXJxOKbi5WTIgua2hfO3ixL48mFxdxnWfGfS/pdsmu+xdtacza4ZdYcx9pXH90z2YT/gAXkKgkFuUHSC7/9VESI7zyQIwIW0+V5B30wvwJYTJ8A4Xk4QDjx02HVYdknPpoU8r+W/9qRUjTgixhaGgL/iN+Om7tQrz7IQE0dV5BqHODen4qVfUMuWzEfPaWPtIubpJWvrSluXrlfqYuutzXM2gBb6OjUjrNNVHVRdUKl4a1DkkcS/+dvhjVut6xqThou1xOBPbGxUUZIFjCHObp7oJm2LDgpcJsBqAvU2karKS9L5Lwd5/raR6s5UFzrkZX/2OM8wZ2g/B+vhyzjNuaH5fO/j4zhN8PXKbw4dPEoDxjd+67tfUEM0leOdhBHD+dQeREkHq8fP0Qc76xoRyRbkdAimYfT/1o2KG11FCraGqWuTecKdDFQxbEkiZgnf1VlJN/8fJtAP7ytXXp4BGXhrf3E994dHT6fycOrbESb38K0WOvKL6jYiwg0xy2s4jp+5mbqa9/2KuJVpgaNo6He+rp41k5QLxi9gS04mvqmyGNmpNaZNpLGRSHjMlPQYMqbFGC/V0XYvLcwz1eWjO1VQS24dzCzL18ouu+enY6emaOHqdnoKmFjONUqIFjh+3rOj3akEib2spxqO5jPak2pShPEDfo3XLWpsHiAHzAe8O9VITYhFqYfYLMXEbD6Bzt0h+25iOgLW/gINIgVCXugLS1dW1yt2DW70boadXXl4Bypa1FNS3/KNJcWE2f3HIWYdhy05jk9Q+3U0+M/72AX946CQrc2Vzf3tsKC+ZhgCqLIFzVPtGl+jq+JN3Kuge/UzM5b1t96J4METW191UZVLX3NAk2tn5r2yQGO18Jr8wZKqChbK6s4Ktue/N7B76rZqtuMPdVXUCXDMrI8st1l/LhTqZIKlbcB1yE2pYK14glDrEiFwNgM1LMbFaLL2BxiKSreV1ZzPdtQS1VOWIPaGzZ/FayxptQ3cRXyY5NX34zfL8wLkgtUaP9wXGJ3b39vYmLvMOS7J0AvuX+TPJidmDygZ3fHJce9oFRg+cpddD8yAv0aZObETwKJDi/nHZb85g7UdHQyxj6SrmXr/jEbMHNmGjyC2bsrtegU4OwmD4DvjHTposMBop8+wwHlAeiCY5lULAACEmCUCrJptHTbAHLvP/FrMb4uKu/Lzqrsf1/aLV7abap4WLnWnW+vFRdmnibtwBYg0zAOtPVwDjaV/C5Q8f/04vJ7+tiSgd/yj92VztsSi+hxBZUBygfiwZzTjA113U0twm/PngwLV/y1ide3sQ7QU1NxveTBO52/6VxnIbHs3QB16GUdtPC7TFD5dU8txcsW8s7c0/mtuYoVfMyV8eaN/41HfIJe+PG/t/ybd9xX317kYptdU4zvUg1n8V7DPmFRwuObH+0TUBbJ71c0Y6IPsqYFztAoyK5ZYiRFCqflc+24WyvOUvwlBrO6X8uRrMEmhmGsSku8lYuTJfFbEFT5bFoKDVgyfarLbt+4aL2i8s2rRNr7c0o2gda+NhG4c9pV1/SueHTPDH+Q9vp3Q33BrS04iX8313D4voMr+OcrzUvhUjj6d3KZWz5I4vyzBlm3PaTZg3rwPljxvhml7jleSgX6zgIaj9WKWUVMzGc/KxH3sWJWrOSlbJOqot+bJDE7J1eHRgcnV7vwYVl+aTZpW9n2Svsv2j+UkxsadY9JBjJ5Vvrehf6WEJPXIRc6smwF+ALsvigHR1c7SgzuFLXJJG0rE2+1aRUvyy/NdM/hoe2d3G0u2Di7268GkZVfTfZS0VuQ9BVXgQrIuVdLt2Epcsd4om6x3Gk1PYWSSuB4bsSuYnkV+QIfWWQOlXTx9nQuHDd75KyT53nS2lhL2tNuCeEryPJc/YMBe+cgNad5UfeYpG1ljWUZXpS3eTXpR8xFKbel+4Q2fDm86v70la9yGHtMb72j5VyT1sSmK2UlHhEhYDv1t52WyGH0/TV9mkHnS8u4iIY2vlnIF662yo8dfC+H7ilKywWzbL1bI5XDHQhIpAUp8IygA7Gj/iD2SRlEb3IyK5gIjBc9dSpvbb/0TVqBTUw8ZhVzE6MtpHPhB0FnoZ/KXScncCko0JFiUNjUM5CFAfmQ9k/j0YaPd6INPo52tEuPf8Z2rvEu/jlTXnzuZ7P22wyyX0XJuR8/MRd8prmOb+f5KMbT010mNDBG0hvLiHBnf8ML+95WkIasUHB4QiDtTd2XmOJ72MSn1XbjSBMk4dHgI63RD29aEF9azRTWUFhiFSl+fdnRolYaPNCsiXdrS9BRm2/MbywIEvQbU+OrsFBS0E6INJFGEh0seJLKlIlnpfuqYkWswSKCySzx6IpHRgbNeOTs3FCrFLvWOYtl3G2ImAvnhGKfdRRGROaCBD0tUGJi7qV5xjlg4bVdksTeauW3ReZ+mgOoXkSIVGjjErFfslRkzkcqPbU+EBGXoKNEYGnIPKNKZnlsDuK8Mo5E5njEuUsuYrL15YgisBUSvAsblMUeq6Eo+JsClQMYgp85pEdl3NUXFDykTmUya0fa9zetKpOeQDbqkHKVb1pTUum/6Vg9nWNi9Juqld80MaRx9dSNdctvileOZO2cV/5N/xV2gjby9nW3iljvbtdwrX0mPVUuiBBxyHm+PxuvVVexIIQAUXcI5qfrbTUKdhKIknKtVsEaJUFAnYrcGVDwTwuw/IOwEhmkHypVihiVeqbpwYEBlI1pdIiVAij8T/cfkkPBe2U0XnT45T8B+Lok93LB367IUcu3+zhY1FhBCKPxar9uP8OAhXK4fuCVmjaTqjF7JJitNAtqbr9jO/lnwzxL2aWRNeDeVKT3bbvbIMZvcnXy6y35wcAkaBk0iTpDNtGfcmcLf7UCFpMsJYiDO7I+4DUzx9uOZmbNE6YmDL6JKzHZB4i0qXkKISzMp5g/5qQJbN2aGRwELO/2ZCZl4+DSan9yiXLXTczd3C0Bc7Wls8u50jVmbg6YWdKisS4gckwxd72+HitnNwulrnEz02y8hHPQVQVmXVgju35Xc1WJCNHcFZ+fg/fCW17Jtsj2Zv+cO7ARl+uVa3mJaEL0zz0cNwgQdz0FUP8Ssa/7sJ1Lie3rf+q02ggbJ/5thFylhdRUh2/pJj0ThX5Pa7xJPakm1Xm1YHAWsHLehyQ4kbVbv5KAXAAbV9U20ADMoMULRRVNB6oz2hrVbfn5IWl2wgZwhEmutXN0b4zzPGHqFXOHbaLRBNKnSSM/XlP3msVzZeUQZeUiFWU7PtCgOAtCsusIMZnVQXvJf9MBD8ih5Mf7ZZOrZNGW63bmZOey/r5qcmljCyli2dHIxFrP0dTc0lhByv6hULdDXr1sSN8KG1tCj4SsYFqm1fUDl661lOaikkksIaXUWyCcCC6t/eXIjIzF5eMibwR/2GFUg/dT+1LQd6WpRV65onOlZ8rWDVI+3zjw/9fmqa9f95c9pkCyelSK+zaMTaGjLc4ZPd+n4JMsRAj+AMoAfa5r8MRAV9uJezH3Ta7F3FFnRW6Kns3Erz03ttTVsrMUETDe0NURBD7OwHggoP933QbKebjVF4MK/4sJ+6Iq8ekKAzCHwnfab5SNnfe15LmK2EulSJlr9NQTbvhK++kTSOW19Q4CPhduk6cZsqbIkwxBjDNMRpLDKVpeU5+2BGd3+AJjwtyVHSDmBtIxDCqGxAJy3pmsLDKZxxLpBoX/pgI31YEpphXiTUeSwlsdT/q6KTtOeuZQ6UAhYyn2Yn5Rlak8tj5BwOfMfjAHnd3YZJLTCQo2LkQUAVy2XIaTjTwB+6HYs6h7jggSpIq5wwGebZpsFBXNay8udCFQWlwIxYcnoAjt72t/LYXr25TvXIYhH5Q7Q0z3M7i5I7rvyeIcem3UVvk5oX6Nqk+KxF1YM3SpzqtZC/XNqb2cGgfNVAFcJqh6qwUU1pe2Mg0hyzyyT381sti+2elEQxiEQdhGhHU6l/Xfwq+9uF9mT1wXziV60omCgv2sF3hBXpmknKOc+Sau+bOiLVx9Q+q692NBApWHVnvSyTQPlTyhUB35WLezOxFEu6lndtuHgoaUDBQwcL+d3sHHv3q9SoihO0MeDn9/dnz6ZJaBG4wpLD4xqi4qSYQNhMX9hLgKts//hhESouqjCCkET1F7bELY9WKbGhO0SY3NWcs9Y7TxnqV5xF+b7ljfbhux0Tr3CnT+7AIMUw6hKcU/Et13PPouqt8rCX3U8v8xWj3E5pBA8V/b6J1wKE13t1NiK38VEbNBktvY571aNpvRERsB9uXHeSHofjG8NKwdkUpGP9VEAivHwspGC76/HbaGJSjY5/i/S5loiqnUTvUCXKn178zu7WfQq5MUM/3y/YwqdeWQFsbDuX1kCXRJfoOdsp3TR0xNSbfKYVPXtmd5/NADmnCBLq6pRT+gdmVrea37r0q4Au0I9QcRPTCvdl5COrWqOm0yITF9srpqrpSQi126g/W+s8TpHctRSR9PTEgbV7kr3sucX12eXwbctRU6+y8PeSpBleV6rXJxtpdHu7ig0uPXkQta3t7FGaWZcsVf/qlCwBWeS0UKT+ViL50XvOGl5768v6mokTrkqAjUh3alBGQioOODiYm9/b29iTqS2lP1SJbaKvBfU1PHVNuFTgwmE7p7u/uToZLJCBkG6ddLoYZ2drPd1ZmkF4s4jQJfVSm4TARkYigxgZxr4l1YARevCji4O6EEZOKfQo8Mn4zwIkAvCUnzyXYpxg0B1FvdQTlOLwh/6XsK4mEYOthDQQmoyWfskuWTFloCXNubxCzAL5SeTwcsWC6LCx0MrbR017h8b/r53i69DTZq8pPHu3oyROSRF+/oj2zWPP4fRuWdYP797K3HmnoRXnbIsaL8++62AjDXNR/uL4tjgphWWW/3/yx61zNC+d7jV742tH14KZk3jGqz4O2G0LlTUlqU1Hq6Wq9v2wvt5Qx5bebwkJ5v5g4dp/7GWP8KbDN1H6DsfyV0vZw+zdhi9OsrDH2aoYALS4iytjB2nby2MLeM58YjaQaSzCSWJaGd11imEJY+yrJ8aGcbSwWz1GuS/sTSi1m2QSzzIcsaRzvdFtDdK32bvNv0nXttn1J9N4uo6UXUj+6LPktZJ1nwCkRCO7qWO4RmPLans1jHBO7rpZSVduq1VHWUb38b6dvUFI8NSnTVtQ9Q3NsI3Ev0SUoX98R9OGRqxv9Cq41rV1jaYjitfCPakbQpJKONsl5TVGgcqRHTS0naO7KIqt5E06elTqm83sHb/JpoLV0P0LZKJY1+kjuSok9KH4GyO566W/077CV1g6IhxIjhZsi4HZ69raYtBuR/Zd2c5KJwHUlUHUm95hu1WozadKLaxoiU79Yjua3ewzxwQgVu85kKnni29Oz3mGI6xOUgqn7rObKXXlQexgD4bQaztEVNypPq4BaIIgdjapZLXU3eWzdssPd/dyuligP0uvOSbx7aCrA8VzROQkUX4iZ0J2X0vDOHKvY7wE5UXeVaDZWhUweVV3ptR7ft3FwUD7EVPB4V31VNr97z+CDvQ+B6lrImhbeF2FAWj4vt2lMa0NMe5WJzvW7Jqobm3eetEqqOPGekLapzNeve5JA0RpeDB/UHt/uUG5R3VZSUHvTvpChLKw1Xv02JfgNYlRLkZSqKkqasAGBQ2pRXdImGJUXw16NuVa0jp8b7M93qceR+qlQU7Bb+BE9BpgLckXr1M/BpP7jlLyC3gh9t/d8Rthv+ImQ/yOWmwZyWI9TYbjIit0peGmti2NVl/GxQRxclvqkBUwHlrqdJrSJ7wJhvQf+BAHsA8DM+VtZbZG5ey5D79DmvKB8VjBlyhmHUjzn6J95elryqYFgs5h4eIDQPJY8xNrC2Udwydc7uJvEUY5hhw1HcGEBRBziPfuSmyfeRYxQO2j02j2A/p11baPpPqf239P7G0un0a4RBa7WZa6O89daoddeIgz5GrEYjth/ErdOZv5NyWy9ia/iC+6vYdohZD1n9ynaOVb42ql+KuWUR8y3djCef76XOCRTbJ8lzMf0ErlfDAdNHdsOeFSmhYWa/pg9sWOx1y04BK2xfBgUpvbx1tK7kG5fZ7Fkv5iti6D/PIiulzu0rV7KcMZZ6DjGfdyJNirT9mFsHXFxb5LRfsJ6zrMfq+yP9luw+gFsgb9pLniKok8SlR833vp6Wxn1qwn1BY2X9A9/eUQRM/SVDOGuPwmq6RU3vBdbaufc0m5vq3gGBKlCgRz1vTN/ucWj4wnc9hMc+rOYMxeOoYgWvbGWWaZfVDlk8y08KjYQFdnG9L5RGm2Yew6xRNuwgZgwirD7po8xaZ8vIS4yFtV72yOVq7zPnYjEf/v8IM0xeNyraQhXJrn3qLYVcAOkS8dbQaravN3jZu8dQ0KqqjRS2Sk5FUcuHWi3d5qif9bR9XBSl9h2Hzc2Uiz5J7+eSp6MTqFZksYXymFVYKdXsKxeUxd2u/zrGtoP2UBttv9hmHzTNulen0Wb1zZ6tvKYa1BVJJ5d4f2rs13Sl6K3px/rWBlq3gC/LdYS79U9g3oN/gUC9bR0eUCAI2AgAc8ULAbCYmDcfVAFfiDl8E+ge39GI+aF7AodPwSYpawjMUNF80Lt68gVxbpBWt7t6B595GKR3A+KSgSdYOTxFFfMMrVKexYbnBRxiO5zjklFrIMB85c8TBOVvnsIxhwhTt7h2FjYxSWTyojIpZxjnIXIhhW3oCbt9B1LefcM/DAU5BWWDLj4dFS/KXAwWGoThHdLC6GQxUN7mCZHxRWRAWk46KBErrVTOIStnGcHjUx+lADnYnOeJFbOfJTkqIZBnmbmgKq0iLZsGzmypFOaONJQyOV+daXLDHlpZs02FeGuhmq6khWsrlL54JGIFz4wZ8qLgrwB47wtfyeS4EYIp6w0zNVEfLuvMTA4GbCdHGhTmKzHDd6AiW1Tcmw3samYlXGNbmYmOymaQww8mXWXO3G4YTXk8T8l5ObKcjehz4ZZBgJWlZ9mZKcsdFeR9aEi5pLd7sveY9uTWDEIXk8EkTVaNLP8Fs0ronlOBX1iDH7zMVKD8fNMmYRZK1tufwr9DhxIGDJbcz75hsYNu7kMeUe2JSiv+/rzJXrURYIl7zKrCESssD49FTniUbthsn48+aLfdT845o57BNKukuuA7Z513WauLLnnK6LorrtovzRur3XLDTemee2mxTBmmy5bFZKscM82QK0+BfIWKPFNslhKzzTVHo23KlJpnvhdeafoIDWMd1+tfnYKdg7MfQ+XmQfhoDBaHJxBJfPwCHX1xKSQsIiomLiEpJS0jK9fVbaigqKSsoqpGVtfQ1CrK/lhEj6JPP2GgvQ0bET56xozHlnaZNGXajFlz5u/T98dfr7zOgSMnWvKOG8G1z3xeMLz58IXlx1+AQEGCmypEKBx8h94UJlyESFGie+y5XXueOrBjvxtixIoTjyBBIimizE0pUqkRrZ+IJANZZjVlyZazGZevgAzfN4lyFSpVqVajVp16DYSPDYJHZOxz77wRoxakmUXWbbE27c24hVaHTl269ejVp9+AQUOGjRg1ZtyESVRTaKbNlNstdLfNmjNvgRbd9w0rVq1Zt+Guezbdt2XbAw898phucl+VwvfMd1Wr8p9WxWq1K1CqrPc++OgTHeVkk5uPQbfH6zM5AFGSFVXTjfCmmJb99R8YhPRu3sXNw4vGYCnohQTiEX38AoISCX/JRsXEJSSlpGn5CQneLcONCp6QNpyQcNx6PABEmGRT1GYeFTugbZeKJS+WEaoDSnZurSFod3O9wWgyW+jupdKkv0qT6DiDcWkWK1GqjJozJcYXJc2Ha900DlHE+3Njxk2YRDWFZtqMW+g+f7qfc/yci0+Wxt4RBFjS2yQYvVHba6TtmT0MT2CGWmu3B7h0NxsJz34tgTeuVhfa2bGiBWe1qnCerixYGhQz8mJLLC9hSVheaf1fDjm+gYbx2iDhhmoVXko7ufdBBCEHX1lJ/+vVtUB5J7dudxqtPkEi61uevxXMuU8WbhBVwVXehdvSCy0Cb5PYreziuXWQS7yf5m4/cp5fvasw5/sGE5t15IuAI7+gAZi/EfAAIjUE4TLExzTWuhvfYhNW8JQtHyfRxZqRN0y8Vn1QMPDn4uuJS3keO3mSxJ5Fj/IlkGcjz+vPbnrv/v0ijUJMTV16Knhr1CgH34hRFbyHlPp/vfp+BJbUycg65iY/8HOWR4tdwz/qrUcSyDFBPJZWAnM8bgZXRrvm8b+rIpB80XGyg5cqHr+b89HXp06+lcsrq905U9So/fZaojghbITFohKSPezfZ5ZnpNAzJGS0KVdYmI3oNc42pt3+IhDFwnAKQUpnke7xghOjpMHPSoxUEgQlViMkGb5xPJBAtEADR978daOC3UPz+0iZ3Y/lb/Zo5uXsl3c7X6Sqw5PNxfESfnOX/w9FRMGlYliAEIygGE6hEpIWocKGAcQmqMHQIzkAQTE8NICnAgAhGEExnPJ0vQo9hQWlT/tAygC9GYcR/YxsqppEj6QAEIIRFMMp1HsxlTEpNHHPrSkN0TsLump727KmLMWwCkWClG+VOoVcyR3XhyU7HKVJZb2h0vqYQg2IflGwiBjLaSorzh+reFQqdTMsCZsAQjCGE5KxSzoadcLA4pEms9omODzkxLDR2MCJGFggBCMohkvpGeJ4HMsMOB5t5D5wQwMbXTrxd83uiEZ/M+J45t4iSDp6M/QmyGgRWjHyjyAcDr+24qsVHF8uAS/f2sLld2UOfYA7DNjChs1d32q+6yvoGzwbPYBQL05R3KXh23B5Bv2+p6bHFC43+P84NW4xncptt3AzzpuvXgxmSltF/7O4mo+wKtKeRhWj6TUUZ+z10CDBLZrIfpmZ5dV85JSjJ8XtrbLKjfAsXYA2P6dpVSlbwGbajXkuWjhyuFo4TrNKxVsiv7q0LbsIV/68zaUw71X59WXD5jnGZ9/PIGNaHjWNLEsDQC4XjFFIFgwCJB3T3t527K03IHYWlrvsV6U3c3HwLqfxS3JoOBFCM1GUp0bjZnGUIfGARIkqkS8OkzYRZrInSqUjcSzadAtfvW5T8KozAYu2LVH+0IXgc/FDcZc8IAgdAkHeUIKLGlBOpeSbmRiW+qc9coGyIpCZZVkSOyCCstC0wWqVbY0pFfUYVD3f7wTQHgAHpsBBAEBZBODgEQhlQ9M02rp3srA5pxUvYzSOoIlKTVvxlCFQdXmtrIU6M23TVHXnxpybFR2q0n0oGtxUtrZLDQrx9VX8xWL2MQ1TqQ/dLnEbObO+tMox40BUNWblCpOi7bKmbV0AFHbZirNFCzOtBwGZTd32dTB53RcxFFjyCLV2PEsIu915+ZmaNkSyxlHXLzOkKfTNxHHI38JVhtawdFurteI9E7eSVO9nK4gSUgx3msEz1qCOpAhB0ZjbF6w5z7RVvThX0nYhtKQon2eZu1hmrcOB8RrPzrLotXhZc9RU2dTMaVVWSycJnKNhUUqOPNeC2PX6ployg2P53yvWtdRW18JNkgT08wtzVXM2OBXqyg9VnhwPGOw07JshDKrapPfl/JZ9U1UQv8muyogzfjq3zcXfBk5dUaandemo1Lpu+gfxRS0quGhm0MTixgxyGUTXdZZIb8fSeJ5iIbyL6xxlDU1z1Ondoq5WK/TiBmGFViZDOT9TXHjq9J/1n/df9F/2X2XX2eLqMYT6Bda7m7tPU7tesjePu86yzG/3v77fxWK6k+sviyhq2vJhA9bGk3/X5eN/AAAA\")\\n    format(\"woff2\");\\n  font-weight: normal;\\n  font-style: normal;\\n  font-display: swap;\\n}\\n`});function cNe(){if(document.head.querySelector(`style[base-sdk-font=\"${sNe}\"]`))return;let t=document.createElement(\"style\");t.setAttribute(\"base-sdk-font\",sNe),t.textContent=iNe,document.head.appendChild(t)}var sNe,uNe=$(()=>{f();aNe();sNe=\"BaseSans-Regular\"});function $_(e,t){for(var n in t)e[n]=t[n];return e}function yNe(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function gi(e,t,n){var r,o,i,a={};for(i in t)i==\"key\"?r=t[i]:i==\"ref\"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?DY.call(arguments,2):n),typeof e==\"function\"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return NY(e,a,r,o,null)}function NY(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++hNe,__i:-1,__u:0};return o==null&&Yi.vnode!=null&&Yi.vnode(i),i}function xO(e){return e.children}function PY(e,t){this.props=e,this.context=t}function wO(e,t){if(t==null)return e.__?wO(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==\"function\"?wO(e):null}function bNe(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return bNe(e)}}function dNe(e){(!e.__d&&(e.__d=!0)&&N3.push(e)&&!MY.__r++||lNe!==Yi.debounceRendering)&&((lNe=Yi.debounceRendering)||mNe)(MY)}function MY(){var e,t,n,r,o,i,a,c;for(N3.sort(Zde);e=N3.shift();)e.__d&&(t=N3.length,r=void 0,i=(o=(n=e).__v).__e,a=[],c=[],n.__P&&((r=$_({},o)).__v=o.__v+1,Yi.vnode&&Yi.vnode(r),efe(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,a,i??wO(o),!!(32&o.__u),c),r.__v=o.__v,r.__.__k[r.__i]=r,xNe(a,r,c),r.__e!=i&&bNe(r)),N3.length>t&&N3.sort(Zde));MY.__r=0}function vNe(e,t,n,r,o,i,a,c,l,d,m){var h,g,y,w,x,I=r&&r.__k||gNe,C=t.length;for(n.__d=l,pxt(n,t,I),l=n.__d,h=0;h<C;h++)(y=n.__k[h])!=null&&(g=y.__i===-1?BL:I[y.__i]||BL,y.__i=h,efe(e,y,g,o,i,a,c,l,d,m),w=y.__e,y.ref&&g.ref!=y.ref&&(g.ref&&tfe(g.ref,null,y),m.push(y.ref,y.__c||w,y)),x==null&&w!=null&&(x=w),65536&y.__u||g.__k===y.__k?l=wNe(y,l,e):typeof y.type==\"function\"&&y.__d!==void 0?l=y.__d:w&&(l=w.nextSibling),y.__d=void 0,y.__u&=-196609);n.__d=l,n.__e=x}function pxt(e,t,n){var r,o,i,a,c,l=t.length,d=n.length,m=d,h=0;for(e.__k=[],r=0;r<l;r++)(o=t[r])!=null&&typeof o!=\"boolean\"&&typeof o!=\"function\"?(a=r+h,(o=e.__k[r]=typeof o==\"string\"||typeof o==\"number\"||typeof o==\"bigint\"||o.constructor==String?NY(null,o,null,null,null):$de(o)?NY(xO,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?NY(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,(c=o.__i=hxt(o,n,a,m))!==-1&&(m--,(i=n[c])&&(i.__u|=131072)),i==null||i.__v===null?(c==-1&&h--,typeof o.type!=\"function\"&&(o.__u|=65536)):c!==a&&(c==a-1?h--:c==a+1?h++:(c>a?h--:h++,o.__u|=65536))):o=e.__k[r]=null;if(m)for(r=0;r<d;r++)(i=n[r])!=null&&(131072&i.__u)==0&&(i.__e==e.__d&&(e.__d=wO(i)),ENe(i,i))}function wNe(e,t,n){var r,o;if(typeof e.type==\"function\"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=wNe(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=wO(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function hxt(e,t,n,r){var o=e.key,i=e.type,a=n-1,c=n+1,l=t[n];if(l===null||l&&o==l.key&&i===l.type&&(131072&l.__u)==0)return n;if(r>(l!=null&&(131072&l.__u)==0?1:0))for(;a>=0||c<t.length;){if(a>=0){if((l=t[a])&&(131072&l.__u)==0&&o==l.key&&i===l.type)return a;a--}if(c<t.length){if((l=t[c])&&(131072&l.__u)==0&&o==l.key&&i===l.type)return c;c++}}return-1}function fNe(e,t,n){t[0]===\"-\"?e.setProperty(t,n??\"\"):e[t]=n==null?\"\":typeof n!=\"number\"||fxt.test(t)?n:n+\"px\"}function OY(e,t,n,r,o){var i;e:if(t===\"style\")if(typeof n==\"string\")e.style.cssText=n;else{if(typeof r==\"string\"&&(e.style.cssText=r=\"\"),r)for(t in r)n&&t in n||fNe(e.style,t,\"\");if(n)for(t in n)r&&n[t]===r[t]||fNe(e.style,t,n[t])}else if(t[0]===\"o\"&&t[1]===\"n\")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,\"$1\")),t=t.toLowerCase()in e||t===\"onFocusOut\"||t===\"onFocusIn\"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Xde,e.addEventListener(t,i?Jde:Qde,i)):e.removeEventListener(t,i?Jde:Qde,i);else{if(o==\"http://www.w3.org/2000/svg\")t=t.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(t!=\"width\"&&t!=\"height\"&&t!=\"href\"&&t!=\"list\"&&t!=\"form\"&&t!=\"tabIndex\"&&t!=\"download\"&&t!=\"rowSpan\"&&t!=\"colSpan\"&&t!=\"role\"&&t!=\"popover\"&&t in e)try{e[t]=n??\"\";break e}catch{}typeof n==\"function\"||(n==null||n===!1&&t[4]!==\"-\"?e.removeAttribute(t):e.setAttribute(t,t==\"popover\"&&n==1?\"\":n))}}function pNe(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Xde++;else if(t.t<n.u)return;return n(Yi.event?Yi.event(t):t)}}}function efe(e,t,n,r,o,i,a,c,l,d){var m,h,g,y,w,x,I,C,M,B,z,G,J,ne,ie,ae,te=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[c=t.__e=n.__e]),(m=Yi.__b)&&m(t);e:if(typeof te==\"function\")try{if(C=t.props,M=\"prototype\"in te&&te.prototype.render,B=(m=te.contextType)&&r[m.__c],z=m?B?B.props.value:m.__:r,n.__c?I=(h=t.__c=n.__c).__=h.__E:(M?t.__c=h=new te(C,z):(t.__c=h=new PY(C,z),h.constructor=te,h.render=gxt),B&&B.sub(h),h.props=C,h.state||(h.state={}),h.context=z,h.__n=r,g=h.__d=!0,h.__h=[],h._sb=[]),M&&h.__s==null&&(h.__s=h.state),M&&te.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=$_({},h.__s)),$_(h.__s,te.getDerivedStateFromProps(C,h.__s))),y=h.props,w=h.state,h.__v=t,g)M&&te.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),M&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(M&&te.getDerivedStateFromProps==null&&C!==y&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(C,z),!h.__e&&(h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(C,h.__s,z)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(h.props=C,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Z){Z&&(Z.__=t)}),G=0;G<h._sb.length;G++)h.__h.push(h._sb[G]);h._sb=[],h.__h.length&&a.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(C,h.__s,z),M&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(y,w,x)})}if(h.context=z,h.props=C,h.__P=e,h.__e=!1,J=Yi.__r,ne=0,M){for(h.state=h.__s,h.__d=!1,J&&J(t),m=h.render(h.props,h.state,h.context),ie=0;ie<h._sb.length;ie++)h.__h.push(h._sb[ie]);h._sb=[]}else do h.__d=!1,J&&J(t),m=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++ne<25);h.state=h.__s,h.getChildContext!=null&&(r=$_($_({},r),h.getChildContext())),M&&!g&&h.getSnapshotBeforeUpdate!=null&&(x=h.getSnapshotBeforeUpdate(y,w)),vNe(e,$de(ae=m!=null&&m.type===xO&&m.key==null?m.props.children:m)?ae:[ae],t,n,r,o,i,a,c,l,d),h.base=t.__e,t.__u&=-161,h.__h.length&&a.push(h),I&&(h.__E=h.__=null)}catch(Z){if(t.__v=null,l||i!=null){for(t.__u|=l?160:32;c&&c.nodeType===8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else t.__e=n.__e,t.__k=n.__k;Yi.__e(Z,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=mxt(n.__e,t,n,r,o,i,a,l,d);(m=Yi.diffed)&&m(t)}function xNe(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)tfe(n[r],n[++r],n[++r]);Yi.__c&&Yi.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){Yi.__e(i,o.__v)}})}function mxt(e,t,n,r,o,i,a,c,l){var d,m,h,g,y,w,x,I=n.props,C=t.props,M=t.type;if(M===\"svg\"?o=\"http://www.w3.org/2000/svg\":M===\"math\"?o=\"http://www.w3.org/1998/Math/MathML\":o||(o=\"http://www.w3.org/1999/xhtml\"),i!=null){for(d=0;d<i.length;d++)if((y=i[d])&&\"setAttribute\"in y==!!M&&(M?y.localName===M:y.nodeType===3)){e=y,i[d]=null;break}}if(e==null){if(M===null)return document.createTextNode(C);e=document.createElementNS(o,M,C.is&&C),c&&(Yi.__m&&Yi.__m(t,i),c=!1),i=null}if(M===null)I===C||c&&e.data===C||(e.data=C);else{if(i=i&&DY.call(e.childNodes),I=n.props||BL,!c&&i!=null)for(I={},d=0;d<e.attributes.length;d++)I[(y=e.attributes[d]).name]=y.value;for(d in I)if(y=I[d],d!=\"children\"){if(d==\"dangerouslySetInnerHTML\")h=y;else if(!(d in C)){if(d==\"value\"&&\"defaultValue\"in C||d==\"checked\"&&\"defaultChecked\"in C)continue;OY(e,d,null,y,o)}}for(d in C)y=C[d],d==\"children\"?g=y:d==\"dangerouslySetInnerHTML\"?m=y:d==\"value\"?w=y:d==\"checked\"?x=y:c&&typeof y!=\"function\"||I[d]===y||OY(e,d,y,I[d],o);if(m)c||h&&(m.__html===h.__html||m.__html===e.innerHTML)||(e.innerHTML=m.__html),t.__k=[];else if(h&&(e.innerHTML=\"\"),vNe(e,$de(g)?g:[g],t,n,r,M===\"foreignObject\"?\"http://www.w3.org/1999/xhtml\":o,i,a,i?i[0]:n.__k&&wO(n,0),c,l),i!=null)for(d=i.length;d--;)yNe(i[d]);c||(d=\"value\",M===\"progress\"&&w==null?e.removeAttribute(\"value\"):w!==void 0&&(w!==e[d]||M===\"progress\"&&!w||M===\"option\"&&w!==I[d])&&OY(e,d,w,I[d],o),d=\"checked\",x!==void 0&&x!==e[d]&&OY(e,d,x,I[d],o))}return e}function tfe(e,t,n){try{if(typeof e==\"function\"){var r=typeof e.__u==\"function\";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){Yi.__e(o,n)}}function ENe(e,t,n){var r,o;if(Yi.unmount&&Yi.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||tfe(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){Yi.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ENe(r[o],t,n||typeof e.type!=\"function\");n||yNe(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function gxt(e,t,n){return this.constructor(e,n)}function eT(e,t,n){var r,o,i,a;Yi.__&&Yi.__(e,t),o=(r=typeof n==\"function\")?null:n&&n.__k||t.__k,i=[],a=[],efe(t,e=(!r&&n||t).__k=gi(xO,null,[e]),o||BL,BL,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?DY.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),xNe(i,e,a)}var DY,Yi,hNe,lxt,N3,lNe,mNe,Zde,Xde,Qde,Jde,dxt,BL,gNe,fxt,$de,yw=$(()=>{f();BL={},gNe=[],fxt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,$de=Array.isArray;DY=gNe.slice,Yi={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(c){e=c}throw e}},hNe=0,lxt=function(e){return e!=null&&e.constructor==null},PY.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=$_({},this.state),typeof e==\"function\"&&(e=e($_({},n),this.props)),e&&$_(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),dNe(this))},PY.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),dNe(this))},PY.prototype.render=xO,N3=[],mNe=typeof Promise==\"function\"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Zde=function(e,t){return e.__v.__b-t.__v.__b},MY.__r=0,Xde=0,Qde=pNe(!1),Jde=pNe(!0),dxt=0});function us(e,t,n,r,o,i){t||(t={});var a,c,l=t;\"ref\"in t&&(a=t.ref,delete t.ref);var d={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--yxt,__i:-1,__u:0,__source:o,__self:i};if(typeof e==\"function\"&&(a=e.defaultProps))for(c in a)l[c]===void 0&&(l[c]=a[c]);return Yi.vnode&&Yi.vnode(d),d}var yxt,q9n,nfe=$(()=>{f();yw();yw();yxt=0,q9n=Array.isArray});var EO={};as(EO,{clsx:()=>m0,default:()=>bxt});function ANe(e){var t,n,r=\"\";if(typeof e==\"string\"||typeof e==\"number\")r+=e;else if(typeof e==\"object\")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ANe(e[t]))&&(r&&(r+=\" \"),r+=n);else for(t in e)e[t]&&(r&&(r+=\" \"),r+=t);return r}function m0(){for(var e,t,n=0,r=\"\";n<arguments.length;)(e=arguments[n++])&&(t=ANe(e))&&(r&&(r+=\" \"),r+=t);return r}var bxt,xE=$(()=>{f();bxt=m0});async function SNe(e){return vxt(e)}function vxt(e,t=4){return`${e.slice(0,2+t)}...${e.slice(-t)}`}var _Ne=$(()=>{f()});var TNe,CNe,RNe=$(()=>{f();TNe=\"#FFF\",CNe=\"#0000FF\"});var INe,kNe=$(()=>{f();nfe();RNe();INe=({fill:e})=>us(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:us(\"path\",{d:\"M0 2.014C0 1.58105 0 1.36457 0.0815779 1.19805C0.159686 1.03861 0.288611 0.909686 0.448049 0.831578C0.61457 0.75 0.831047 0.75 1.264 0.75H14.736C15.169 0.75 15.3854 0.75 15.552 0.831578C15.7114 0.909686 15.8403 1.03861 15.9184 1.19805C16 1.36457 16 1.58105 16 2.014V15.486C16 15.919 16 16.1354 15.9184 16.302C15.8403 16.4614 15.7114 16.5903 15.552 16.6684C15.3854 16.75 15.169 16.75 14.736 16.75H1.264C0.831047 16.75 0.61457 16.75 0.448049 16.6684C0.288611 16.5903 0.159686 16.4614 0.0815779 16.302C0 16.1354 0 15.919 0 15.486V2.014Z\",fill:e===\"blue\"?CNe:TNe})})});function afe(e,t){Bu.__h&&Bu.__h(nu,e,ofe||t),ofe=0;var n=nu.__H||(nu.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function e1(e){return ofe=1,wxt(jNe,e)}function wxt(e,t,n){var r=afe(LL++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):jNe(void 0,t),function(c){var l=r.__N?r.__N[0]:r.__[0],d=r.t(l,c);l!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=nu,!nu.u)){var o=function(c,l,d){if(!r.__c.__H)return!0;var m=r.__c.__H.__.filter(function(g){return!!g.__c});if(m.every(function(g){return!g.__N}))return!i||i.call(this,c,l,d);var h=!1;return m.forEach(function(g){if(g.__N){var y=g.__[0];g.__=g.__N,g.__N=void 0,y!==g.__[0]&&(h=!0)}}),!(!h&&r.__c.props===c)&&(!i||i.call(this,c,l,d))};nu.u=!0;var i=nu.shouldComponentUpdate,a=nu.componentWillUpdate;nu.componentWillUpdate=function(c,l,d){if(this.__e){var m=i;i=void 0,o(c,l,d),i=m}a&&a.call(this,c,l,d)},nu.shouldComponentUpdate=o}return r.__N||r.__}function AO(e,t){var n=afe(LL++,3);!Bu.__s&&zNe(n.__H,t)&&(n.__=e,n.i=t,nu.__H.__h.push(n))}function HNe(e,t){var n=afe(LL++,7);return zNe(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function xxt(){for(var e;e=FNe.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(BY),e.__H.__h.forEach(ife),e.__H.__h=[]}catch(t){e.__H.__h=[],Bu.__e(t,e.__v)}}function Ext(e){var t,n=function(){clearTimeout(r),UNe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);UNe&&(t=requestAnimationFrame(n))}function BY(e){var t=nu,n=e.__c;typeof n==\"function\"&&(e.__c=void 0,n()),nu=t}function ife(e){var t=nu;e.__c=e.__(),nu=t}function zNe(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function jNe(e,t){return typeof t==\"function\"?t(e):t}var LL,nu,rfe,ONe,ofe,FNe,Bu,NNe,PNe,MNe,DNe,BNe,LNe,UNe,sfe=$(()=>{f();yw();ofe=0,FNe=[],Bu=Yi,NNe=Bu.__b,PNe=Bu.__r,MNe=Bu.diffed,DNe=Bu.__c,BNe=Bu.unmount,LNe=Bu.__;Bu.__b=function(e){nu=null,NNe&&NNe(e)},Bu.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),LNe&&LNe(e,t)},Bu.__r=function(e){PNe&&PNe(e),LL=0;var t=(nu=e.__c).__H;t&&(rfe===nu?(t.__h=[],nu.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(BY),t.__h.forEach(ife),t.__h=[],LL=0)),rfe=nu},Bu.diffed=function(e){MNe&&MNe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(FNe.push(t)!==1&&ONe===Bu.requestAnimationFrame||((ONe=Bu.requestAnimationFrame)||Ext)(xxt)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),rfe=nu=null},Bu.__c=function(e,t){t.some(function(n){try{n.__h.forEach(BY),n.__h=n.__h.filter(function(r){return!r.__||ife(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Bu.__e(r,n.__v)}}),DNe&&DNe(e,t)},Bu.unmount=function(e){BNe&&BNe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{BY(r)}catch(o){t=o}}),n.__H=void 0,t&&Bu.__e(t,n.__v))};UNe=typeof requestAnimationFrame==\"function\"});var WNe,VNe=$(()=>{f();WNe=\\'.-base-acc-sdk-css-reset{-webkit-font-smoothing:antialiased;pointer-events:auto !important}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-container{position:fixed;top:0;left:0;width:100%;height:100%;z-index:2147483647}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-container *{user-select:none;box-sizing:border-box}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;padding:20px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-backdrop{align-items:flex-end;justify-content:stretch;padding:0}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog{position:relative;z-index:2147483648}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog{width:100%}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04);width:380px;max-height:90vh;overflow:hidden;transform:scale(0.95);opacity:0;transition:all .2s ease-in-out}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{touch-action:pan-y;user-select:none}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:scale(0.9);opacity:0}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:translateY(100%)}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:scale(1);opacity:1}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:translateY(0)}}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{width:100%;max-width:100%;border-radius:20px 20px 0 0;box-shadow:0 -10px 25px rgba(0,0,0,.15);max-height:80vh;transform:translateY(0)}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:translateY(100%);opacity:1}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:translateY(0);opacity:1}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 0 20px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header{padding:16px 20px 12px 20px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-icon-and-title{display:flex;align-items:center;gap:8px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-icon-and-title-title{font-family:\"BaseSans-Regular\",sans-serif;font-size:14px;font-weight:400;color:#5b616e}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-cblogo{width:32px;height:32px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;cursor:pointer;border-radius:6px;transition:background-color .2s}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close:hover{background-color:#f5f7f8}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close-icon{width:14px;height:14px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close-icon{display:none}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content{padding:20px 20px 16px 20px;font-family:\"BaseSans-Regular\",sans-serif}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content{padding:8px 20px 12px 20px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content-title{font-size:20px;font-weight:600;line-height:28px;color:#0a0b0d;margin-bottom:10px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content-message{font-size:16px;font-weight:400;line-height:24px;color:#5b616e;margin-bottom:0}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-actions{display:flex;padding:16px 20px 20px 20px;flex-direction:column}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-actions{padding:16px 20px calc(20px + env(safe-area-inset-bottom)) 20px;gap:6px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button{font-family:\"BaseSans-Regular\",sans-serif;font-size:16px;font-weight:500;line-height:24px;border:none;border-radius:12px;padding:16px 24px;cursor:pointer;transition:all .2s ease-in-out;width:100%;margin:4px 0}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button:disabled{opacity:.5;cursor:not-allowed}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary{background-color:#0a0b0d;color:#fff}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary:hover:not(:disabled){background-color:#1c1e20}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary:active:not(:disabled){background-color:#2a2d31}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary{background-color:#eef0f3;color:#0a0b0d}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary:hover:not(:disabled){background-color:#e1e4e8}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary:active:not(:disabled){background-color:#d4d8dd}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-handle-bar{position:absolute;top:-16px;left:50%;transform:translateX(-50%);width:64px;height:4px;background-color:#d1d5db;border-radius:2px;opacity:0;animation:handleBarFadeIn .2s ease-in-out .2s forwards}@keyframes handleBarFadeIn{from{opacity:0}to{opacity:1}}\\'});function GNe(){return window.innerWidth<=600&&window.innerHeight>window.innerWidth}var Axt,Sxt,LY,_xt,Txt,qNe=$(()=>{f();yw();nfe();xE();yw();_Ne();rm();kNe();sfe();VNe();Axt=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzIDFMMSAxM20wLTEyTDEzIDEzIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+\";Sxt=()=>{let[e,t]=e1(!1);return AO(()=>{let n=()=>{t(GNe())};return n(),window.addEventListener(\"resize\",n),window.addEventListener(\"orientationchange\",n),()=>{window.removeEventListener(\"resize\",n),window.removeEventListener(\"orientationchange\",n)}},[]),e?us(\"div\",{class:\"-base-acc-sdk-dialog-handle-bar\"}):null},LY=class{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null}attach(t){this.root=document.createElement(\"div\"),this.root.className=\"-base-acc-sdk-dialog-root\",t.appendChild(this.root),this.render()}presentItem(t){let n=this.nextItemKey++;this.items.set(n,t),this.render()}clear(){this.items.clear(),this.root&&eT(null,this.root)}render(){this.root&&eT(us(\"div\",{children:us(_xt,{children:Array.from(this.items.entries()).map(([t,n])=>gi(Txt,Object.assign({},n,{key:t,handleClose:()=>{var r;this.clear(),(r=n.onClose)===null||r===void 0||r.call(n)}})))})}),this.root)}},_xt=e=>{let[t,n]=e1(0),[r,o]=e1(!1),[i,a]=e1(0),c=m=>{if(!GNe())return;let h=m.touches[0];a(h.clientY),o(!0)},l=m=>{if(!r)return;let g=m.touches[0].clientY-i;g>0&&(n(g),m.preventDefault())},d=()=>{if(r)if(o(!1),t>100){let m=document.querySelector(\".-base-acc-sdk-dialog-instance-header-close\");m&&m.click()}else n(0)};return us(\"div\",{class:m0(\"-base-acc-sdk-dialog-container\"),children:[us(\"style\",{children:WNe}),us(\"div\",{class:\"-base-acc-sdk-dialog-backdrop\",onTouchStart:c,onTouchMove:l,onTouchEnd:d,children:us(\"div\",{class:\"-base-acc-sdk-dialog\",style:{transform:`translateY(${t}px)`,transition:r?\"none\":\"transform 0.2s ease-out\"},children:[us(Sxt,{}),e.children]})})]})},Txt=({title:e,message:t,actionItems:n,handleClose:r})=>{let[o,i]=e1(!0),[a,c]=e1(!0),[l,d]=e1(null);AO(()=>{let g=window.setTimeout(()=>{i(!1)},1);return()=>{window.clearTimeout(g)}},[]),AO(()=>{(async()=>{var y;let w=(y=Ut.account.get().accounts)===null||y===void 0?void 0:y[0];if(w){let x=await SNe(w);d(x)}c(!1)})()},[]);let m=HNe(()=>l?`Signed in as ${l}`:\"Base Account\",[l]),h=!a;return us(\"div\",{class:m0(\"-base-acc-sdk-dialog-instance\",o&&\"-base-acc-sdk-dialog-instance-hidden\"),children:[us(\"div\",{class:\"-base-acc-sdk-dialog-instance-header\",children:[us(\"div\",{class:\"-base-acc-sdk-dialog-instance-header-icon-and-title\",children:[us(INe,{fill:\"blue\"}),h&&us(\"div\",{class:\"-base-acc-sdk-dialog-instance-header-icon-and-title-title\",children:m})]}),us(\"div\",{class:\"-base-acc-sdk-dialog-instance-header-close\",onClick:r,children:us(\"img\",{src:Axt,class:\"-base-acc-sdk-dialog-instance-header-close-icon\"})})]}),us(\"div\",{class:\"-base-acc-sdk-dialog-instance-content\",children:[us(\"div\",{class:\"-base-acc-sdk-dialog-instance-content-title\",children:e}),us(\"div\",{class:\"-base-acc-sdk-dialog-instance-content-message\",children:t})]}),n&&n.length>0&&us(\"div\",{class:\"-base-acc-sdk-dialog-instance-actions\",children:n.map((g,y)=>us(\"button\",{class:m0(\"-base-acc-sdk-dialog-instance-button\",g.variant===\"primary\"&&\"-base-acc-sdk-dialog-instance-button-primary\",g.variant===\"secondary\"&&\"-base-acc-sdk-dialog-instance-button-secondary\"),onClick:g.onClick,children:g.text},y))})]})}});function SO(){if(!UY){let e=document.createElement(\"div\");e.className=\"-base-acc-sdk-css-reset\",document.body.appendChild(e),UY=new LY,UY.attach(e)}return cNe(),UY}var UY,FY=$(()=>{f();uNe();qNe();UY=null});function ZNe(e){let t=(window.innerWidth-KNe)/2+window.screenX,n=(window.innerHeight-YNe)/2+window.screenY;Ixt(e);function r(){let i=`wallet_${crypto.randomUUID()}`,a=window.open(e,i,`width=${KNe}, height=${YNe}, left=${t}, top=${n}`);return a?.focus(),a||null}let o=r();return o?Promise.resolve(o):kxt(r)}function QNe(e){e&&!e.closed&&e.close()}function Ixt(e){let t={sdkName:X_,sdkVersion:Zg,origin:window.location.origin,coop:XOe()};for(let[n,r]of Object.entries(t))e.searchParams.has(n)||e.searchParams.append(n,r.toString())}function kxt(e){var t,n;let r=(n=(t=Ut.config.get().metadata)===null||t===void 0?void 0:t.appName)!==null&&n!==void 0?n:\"App\",o=SO();return new Promise((i,a)=>{vO({dialogContext:\"popup_blocked\"}),o.presentItem({title:Cxt.replace(\"{app}\",r),message:Rxt,onClose:()=>{gw({dialogContext:\"popup_blocked\",dialogAction:\"cancel\"}),a(Vt.rpc.internal(\"Popup window was blocked\"))},actionItems:[{text:\"Try again\",variant:\"primary\",onClick:()=>{gw({dialogContext:\"popup_blocked\",dialogAction:\"confirm\"});let c=e();c?i(c):a(Vt.rpc.internal(\"Popup window was blocked\")),o.clear()}},{text:\"Cancel\",variant:\"secondary\",onClick:()=>{gw({dialogContext:\"popup_blocked\",dialogAction:\"cancel\"}),a(Vt.rpc.internal(\"Popup window was blocked\")),o.clear()}}]})})}var KNe,YNe,Cxt,Rxt,JNe=$(()=>{f();wE();om();kY();rm();FY();Kde();KNe=420,YNe=700,Cxt=\"{app} wants to continue in Base Account\",Rxt=\"This action requires your permission to open a new window.\"});var HY,XNe=$(()=>{f();wE();om();oNe();JNe();HY=class{constructor({url:t=LOe,metadata:n,preference:r}){this.popup=null,this.listeners=new Map,this.postMessage=async o=>{(await this.waitForPopupLoaded()).postMessage(o,this.url.origin)},this.postRequestAndWaitForResponse=async o=>{let i=this.onMessage(({requestId:a})=>a===o.id);return this.postMessage(o),await i},this.onMessage=async o=>new Promise((i,a)=>{let c=l=>{if(l.origin!==this.url.origin)return;let d=l.data;o(d)&&(i(d),window.removeEventListener(\"message\",c),this.listeners.delete(c))};window.addEventListener(\"message\",c),this.listeners.set(c,{reject:a})}),this.disconnect=()=>{QNe(this.popup),this.popup=null,this.listeners.forEach(({reject:o},i)=>{o(Vt.provider.userRejectedRequest(\"Request rejected\")),window.removeEventListener(\"message\",i)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?(this.popup.focus(),this.popup):(tNe(),this.popup=await ZNe(this.url),this.onMessage(({event:o})=>o===\"PopupUnload\").then(()=>{this.disconnect(),rNe()}).catch(()=>{}),this.onMessage(({event:o})=>o===\"PopupLoaded\").then(o=>{this.postMessage({requestId:o.id,data:{version:Zg,sdkName:X_,metadata:this.metadata,preference:this.preference,location:window.location.toString()}})}).then(()=>{if(!this.popup)throw Vt.rpc.internal();return nNe(),this.popup})),this.url=new URL(t),this.metadata=n,this.preference=r}}});function $Ne(e){let t=KOe(Nxt(e),{shouldIncludeStack:!0}),n=new URL(\"https://docs.cloud.coinbase.com/wallet-sdk/docs/errors\");return n.searchParams.set(\"version\",Zg),n.searchParams.set(\"code\",t.code.toString()),n.searchParams.set(\"message\",t.message),Object.assign(Object.assign({},t),{docUrl:n.href})}function Oxt(e){return e.errorMessage!==void 0}function Nxt(e){var t;if(typeof e==\"string\")return{message:e,code:cs.rpc.internal};if(Oxt(e)){let n=e.errorMessage,r=(t=e.errorCode)!==null&&t!==void 0?t:n.match(/(denied|rejected)/i)?cs.provider.userRejectedRequest:void 0;return Object.assign(Object.assign({},e),{message:n,code:r,data:{method:e.method}})}return e}var ePe=$(()=>{f();wE();ML();Gde()});var zY,tPe=$(()=>{f();J_();zY=class extends qg.default{}});var nPe,rPe,oPe,iPe=$(()=>{f();O3();nPe=({method:e,correlationId:t})=>{ko(\"provider.request.started\",{action:ao.unknown,componentType:io.unknown,method:e,signerType:\"base-account\",correlationId:t},so.high)},rPe=({method:e,correlationId:t,errorMessage:n})=>{ko(\"provider.request.error\",{action:ao.error,componentType:io.unknown,method:e,signerType:\"base-account\",correlationId:t,errorMessage:n},so.high)},oPe=({method:e,correlationId:t})=>{ko(\"provider.request.responded\",{action:ao.unknown,componentType:io.unknown,method:e,signerType:\"base-account\",correlationId:t},so.high)}});function cfe(){return e=>e}function jY(e){return Math.floor(e)}var UL,Pxt,Mxt,aPe=$(()=>{f();UL=cfe(),Pxt=cfe();Mxt=cfe()});function cPe(e){return[...e].map(t=>t.toString(16).padStart(2,\"0\")).join(\"\")}function uPe(e){return new Uint8Array(e.match(/.{1,2}/g).map(t=>Number.parseInt(t,16)))}function WY(e){return UL(`0x${BigInt(e).toString(16)}`)}function Bxt(e){return e.startsWith(\"0x\")||e.startsWith(\"0X\")}function lPe(e){return Bxt(e)?e.slice(2):e}function Lxt(e){if(typeof e!=\"string\")return!1;let t=lPe(e).toLowerCase();return sPe.test(t)}function VY(e,t=!1){if(typeof e==\"string\"){let n=lPe(e).toLowerCase();if(sPe.test(n))return UL(t?`0x${n}`:n)}throw Vt.rpc.invalidParams(`\"${String(e)}\" is not a hexadecimal string`)}function Uxt(e,t=!1){let n=VY(e,!1);return n.length%2===1&&(n=UL(`0${n}`)),t?UL(`0x${n}`):n}function dPe(e){if(typeof e==\"number\"&&Number.isInteger(e))return jY(e);if(typeof e==\"string\"){if(Dxt.test(e))return jY(Number(e));if(Lxt(e))return jY(Number(BigInt(Uxt(e,!0))))}throw Vt.rpc.invalidParams(`Not an integer: ${String(e)}`)}var Dxt,sPe,FL=$(()=>{f();om();aPe();Dxt=/^[0-9]*$/,sPe=/^[a-f0-9]*$/});var fPe,pPe,hPe,mPe,gPe,yPe,bPe=$(()=>{f();rm();O3();fPe=({method:e,correlationId:t})=>{var n;ko(\"scw_signer.handshake.started\",{action:ao.unknown,componentType:io.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},so.high)},pPe=({method:e,correlationId:t,errorMessage:n})=>{var r;ko(\"scw_signer.handshake.error\",{action:ao.error,componentType:io.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Ut.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},so.high)},hPe=({method:e,correlationId:t})=>{var n;ko(\"scw_signer.handshake.completed\",{action:ao.unknown,componentType:io.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},so.high)},mPe=({method:e,correlationId:t})=>{var n;ko(\"scw_signer.request.started\",{action:ao.unknown,componentType:io.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},so.high)},gPe=({method:e,correlationId:t,errorMessage:n})=>{var r;ko(\"scw_signer.request.error\",{action:ao.error,componentType:io.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Ut.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},so.high)},yPe=({method:e,correlationId:t})=>{var n;ko(\"scw_signer.request.completed\",{action:ao.unknown,componentType:io.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},so.high)}});var vPe,wPe,xPe,EPe,APe,SPe,_Pe,TPe,CPe,RPe=$(()=>{f();rm();O3();vPe=({method:e,correlationId:t})=>{var n;ko(\"scw_sub_account.request.started\",{action:ao.unknown,componentType:io.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},so.high)},wPe=({method:e,correlationId:t})=>{var n;ko(\"scw_sub_account.request.completed\",{action:ao.unknown,componentType:io.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},so.high)},xPe=({method:e,correlationId:t,errorMessage:n})=>{var r;ko(\"scw_sub_account.request.error\",{action:ao.error,componentType:io.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Ut.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},so.high)},EPe=({method:e,correlationId:t})=>{var n;ko(\"scw_sub_account.add_owner.started\",{action:ao.unknown,componentType:io.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},so.high)},APe=({method:e,correlationId:t})=>{var n;ko(\"scw_sub_account.add_owner.completed\",{action:ao.unknown,componentType:io.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},so.high)},SPe=({method:e,correlationId:t,errorMessage:n})=>{var r;ko(\"scw_sub_account.add_owner.error\",{action:ao.error,componentType:io.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Ut.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},so.high)},_Pe=({method:e,correlationId:t})=>{var n;ko(\"scw_sub_account.insufficient_balance.error_handling.started\",{action:ao.unknown,componentType:io.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},so.high)},TPe=({method:e,correlationId:t})=>{var n;ko(\"scw_sub_account.insufficient_balance.error_handling.completed\",{action:ao.unknown,componentType:io.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},so.high)},CPe=({method:e,correlationId:t,errorMessage:n})=>{var r;ko(\"scw_sub_account.insufficient_balance.error_handling.error\",{action:ao.error,componentType:io.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Ut.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},so.high)}});var _O,IPe=$(()=>{f();_O=e=>\"message\"in e&&typeof e.message==\"string\"?e.message:\"\"});var HL,kPe=$(()=>{f();HL=[{inputs:[{name:\"preOpGas\",type:\"uint256\"},{name:\"paid\",type:\"uint256\"},{name:\"validAfter\",type:\"uint48\"},{name:\"validUntil\",type:\"uint48\"},{name:\"targetSuccess\",type:\"bool\"},{name:\"targetResult\",type:\"bytes\"}],name:\"ExecutionResult\",type:\"error\"},{inputs:[{name:\"opIndex\",type:\"uint256\"},{name:\"reason\",type:\"string\"}],name:\"FailedOp\",type:\"error\"},{inputs:[{name:\"sender\",type:\"address\"}],name:\"SenderAddressResult\",type:\"error\"},{inputs:[{name:\"aggregator\",type:\"address\"}],name:\"SignatureValidationFailed\",type:\"error\"},{inputs:[{components:[{name:\"preOpGas\",type:\"uint256\"},{name:\"prefund\",type:\"uint256\"},{name:\"sigFailed\",type:\"bool\"},{name:\"validAfter\",type:\"uint48\"},{name:\"validUntil\",type:\"uint48\"},{name:\"paymasterContext\",type:\"bytes\"}],name:\"returnInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"senderInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"factoryInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"paymasterInfo\",type:\"tuple\"}],name:\"ValidationResult\",type:\"error\"},{inputs:[{components:[{name:\"preOpGas\",type:\"uint256\"},{name:\"prefund\",type:\"uint256\"},{name:\"sigFailed\",type:\"bool\"},{name:\"validAfter\",type:\"uint48\"},{name:\"validUntil\",type:\"uint48\"},{name:\"paymasterContext\",type:\"bytes\"}],name:\"returnInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"senderInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"factoryInfo\",type:\"tuple\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"paymasterInfo\",type:\"tuple\"},{components:[{name:\"aggregator\",type:\"address\"},{components:[{name:\"stake\",type:\"uint256\"},{name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"stakeInfo\",type:\"tuple\"}],name:\"aggregatorInfo\",type:\"tuple\"}],name:\"ValidationResultWithAggregation\",type:\"error\"},{anonymous:!1,inputs:[{indexed:!0,name:\"userOpHash\",type:\"bytes32\"},{indexed:!0,name:\"sender\",type:\"address\"},{indexed:!1,name:\"factory\",type:\"address\"},{indexed:!1,name:\"paymaster\",type:\"address\"}],name:\"AccountDeployed\",type:\"event\"},{anonymous:!1,inputs:[],name:\"BeforeExecution\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"account\",type:\"address\"},{indexed:!1,name:\"totalDeposit\",type:\"uint256\"}],name:\"Deposited\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"aggregator\",type:\"address\"}],name:\"SignatureAggregatorChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"account\",type:\"address\"},{indexed:!1,name:\"totalStaked\",type:\"uint256\"},{indexed:!1,name:\"unstakeDelaySec\",type:\"uint256\"}],name:\"StakeLocked\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"account\",type:\"address\"},{indexed:!1,name:\"withdrawTime\",type:\"uint256\"}],name:\"StakeUnlocked\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"account\",type:\"address\"},{indexed:!1,name:\"withdrawAddress\",type:\"address\"},{indexed:!1,name:\"amount\",type:\"uint256\"}],name:\"StakeWithdrawn\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"userOpHash\",type:\"bytes32\"},{indexed:!0,name:\"sender\",type:\"address\"},{indexed:!0,name:\"paymaster\",type:\"address\"},{indexed:!1,name:\"nonce\",type:\"uint256\"},{indexed:!1,name:\"success\",type:\"bool\"},{indexed:!1,name:\"actualGasCost\",type:\"uint256\"},{indexed:!1,name:\"actualGasUsed\",type:\"uint256\"}],name:\"UserOperationEvent\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"userOpHash\",type:\"bytes32\"},{indexed:!0,name:\"sender\",type:\"address\"},{indexed:!1,name:\"nonce\",type:\"uint256\"},{indexed:!1,name:\"revertReason\",type:\"bytes\"}],name:\"UserOperationRevertReason\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"account\",type:\"address\"},{indexed:!1,name:\"withdrawAddress\",type:\"address\"},{indexed:!1,name:\"amount\",type:\"uint256\"}],name:\"Withdrawn\",type:\"event\"},{inputs:[],name:\"SIG_VALIDATION_FAILED\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"initCode\",type:\"bytes\"},{name:\"sender\",type:\"address\"},{name:\"paymasterAndData\",type:\"bytes\"}],name:\"_validateSenderAndPaymaster\",outputs:[],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"unstakeDelaySec\",type:\"uint32\"}],name:\"addStake\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"account\",type:\"address\"}],name:\"balanceOf\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"account\",type:\"address\"}],name:\"depositTo\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"\",type:\"address\"}],name:\"deposits\",outputs:[{name:\"deposit\",type:\"uint112\"},{name:\"staked\",type:\"bool\"},{name:\"stake\",type:\"uint112\"},{name:\"unstakeDelaySec\",type:\"uint32\"},{name:\"withdrawTime\",type:\"uint48\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"account\",type:\"address\"}],name:\"getDepositInfo\",outputs:[{components:[{name:\"deposit\",type:\"uint112\"},{name:\"staked\",type:\"bool\"},{name:\"stake\",type:\"uint112\"},{name:\"unstakeDelaySec\",type:\"uint32\"},{name:\"withdrawTime\",type:\"uint48\"}],name:\"info\",type:\"tuple\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"sender\",type:\"address\"},{name:\"key\",type:\"uint192\"}],name:\"getNonce\",outputs:[{name:\"nonce\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"initCode\",type:\"bytes\"}],name:\"getSenderAddress\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOp\",type:\"tuple\"}],name:\"getUserOpHash\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{components:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOps\",type:\"tuple[]\"},{name:\"aggregator\",type:\"address\"},{name:\"signature\",type:\"bytes\"}],name:\"opsPerAggregator\",type:\"tuple[]\"},{name:\"beneficiary\",type:\"address\"}],name:\"handleAggregatedOps\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"ops\",type:\"tuple[]\"},{name:\"beneficiary\",type:\"address\"}],name:\"handleOps\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"key\",type:\"uint192\"}],name:\"incrementNonce\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"callData\",type:\"bytes\"},{components:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"paymaster\",type:\"address\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"}],name:\"mUserOp\",type:\"tuple\"},{name:\"userOpHash\",type:\"bytes32\"},{name:\"prefund\",type:\"uint256\"},{name:\"contextOffset\",type:\"uint256\"},{name:\"preOpGas\",type:\"uint256\"}],name:\"opInfo\",type:\"tuple\"},{name:\"context\",type:\"bytes\"}],name:\"innerHandleOp\",outputs:[{name:\"actualGasCost\",type:\"uint256\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"\",type:\"address\"},{name:\"\",type:\"uint192\"}],name:\"nonceSequenceNumber\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"op\",type:\"tuple\"},{name:\"target\",type:\"address\"},{name:\"targetCallData\",type:\"bytes\"}],name:\"simulateHandleOp\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOp\",type:\"tuple\"}],name:\"simulateValidation\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"unlockStake\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"withdrawAddress\",type:\"address\"}],name:\"withdrawStake\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"withdrawAddress\",type:\"address\"},{name:\"withdrawAmount\",type:\"uint256\"}],name:\"withdrawTo\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{stateMutability:\"payable\",type:\"receive\"}]});function GY(e){let{authorization:t,factory:n,factoryData:r}=e;if(n===\"0x7702\"||n===\"0x7702000000000000000000000000000000000000\"){if(!t)return\"0x7702000000000000000000000000000000000000\";let o=t.address;return qi([o,r??\"0x\"])}return n?qi([n,r??\"0x\"]):\"0x\"}var ufe=$(()=>{f();Nu()});function qY(e){let{callGasLimit:t,callData:n,maxPriorityFeePerGas:r,maxFeePerGas:o,paymaster:i,paymasterData:a,paymasterPostOpGasLimit:c,paymasterVerificationGasLimit:l,sender:d,signature:m=\"0x\",verificationGasLimit:h}=e,g=qi([Gi(Pe(h||0n),{size:16}),Gi(Pe(t||0n),{size:16})]),y=GY(e),w=qi([Gi(Pe(r||0n),{size:16}),Gi(Pe(o||0n),{size:16})]),x=e.nonce??0n,I=i?qi([i,Gi(Pe(l||0n),{size:16}),Gi(Pe(c||0n),{size:16}),a||\"0x\"]):\"0x\",C=e.preVerificationGas??0n;return{accountGasLimits:g,callData:n,initCode:y,gasFees:w,nonce:x,paymasterAndData:I,preVerificationGas:C,sender:d,signature:m}}var lfe=$(()=>{f();Nu();r_();q_();ufe()});function OPe(e){let{chainId:t,entryPointAddress:n,userOperation:r}=e,o=qY(r);return{types:Fxt,primaryType:\"PackedUserOperation\",domain:{name:\"ERC4337\",version:\"1\",chainId:t,verifyingContract:n},message:o}}var Fxt,NPe=$(()=>{f();lfe();Fxt={PackedUserOperation:[{type:\"address\",name:\"sender\"},{type:\"uint256\",name:\"nonce\"},{type:\"bytes\",name:\"initCode\"},{type:\"bytes\",name:\"callData\"},{type:\"bytes32\",name:\"accountGasLimits\"},{type:\"uint256\",name:\"preVerificationGas\"},{type:\"bytes32\",name:\"gasFees\"},{type:\"bytes\",name:\"paymasterAndData\"}]}});function zL(e){let{chainId:t,entryPointAddress:n,entryPointVersion:r}=e,o=e.userOperation,{authorization:i,callData:a=\"0x\",callGasLimit:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:m,paymasterAndData:h=\"0x\",preVerificationGas:g,sender:y,verificationGasLimit:w}=o;if(r===\"0.8\")return Vp(OPe({chainId:t,entryPointAddress:n,userOperation:o}));let x=(()=>{if(r===\"0.6\"){let I=o.initCode?.slice(0,42),C=o.initCode?.slice(42),M=GY({authorization:i,factory:I,factoryData:C});return oa([{type:\"address\"},{type:\"uint256\"},{type:\"bytes32\"},{type:\"bytes32\"},{type:\"uint256\"},{type:\"uint256\"},{type:\"uint256\"},{type:\"uint256\"},{type:\"uint256\"},{type:\"bytes32\"}],[y,m,dr(M),dr(a),c,w,g,l,d,dr(h)])}if(r===\"0.7\"){let I=qY(o);return oa([{type:\"address\"},{type:\"uint256\"},{type:\"bytes32\"},{type:\"bytes32\"},{type:\"bytes32\"},{type:\"uint256\"},{type:\"bytes32\"},{type:\"bytes32\"}],[I.sender,I.nonce,dr(I.initCode),dr(I.callData),I.accountGasLimits,I.preVerificationGas,I.gasFees,dr(I.paymasterAndData)])}throw new Error(`entryPointVersion \"${r}\" not supported.`)})();return dr(oa([{type:\"bytes32\"},{type:\"address\"},{type:\"uint256\"}],[dr(x),n,BigInt(t)]))}var PPe=$(()=>{f();Lg();o0();hK();ufe();NPe();lfe()});async function jL(e){let{extend:t,nonceKeyManager:n=Zue({source:{get(){return Date.now()},set(){}}}),...r}=e,o=!1,i=await e.getAddress();return{...t,...r,address:i,async getFactoryArgs(){return\"isDeployed\"in this&&await this.isDeployed()?{factory:void 0,factoryData:void 0}:e.getFactoryArgs()},async getNonce(a){let c=a?.key??BigInt(await n.consume({address:i,chainId:e.client.chain.id,client:e.client}));return e.getNonce?await e.getNonce({...a,key:c}):await _i(e.client,{abi:V2([\"function getNonce(address, uint192) pure returns (uint256)\"]),address:e.entryPoint.address,functionName:\"getNonce\",args:[i,c]})},async isDeployed(){return o?!0:(o=!!await Ct(e.client,d0,\"getCode\")({address:i}),o)},...e.sign?{async sign(a){let[{factory:c,factoryData:l},d]=await Promise.all([this.getFactoryArgs(),e.sign(a)]);return c&&l?MK({address:c,data:l,signature:d}):d}}:{},async signMessage(a){let[{factory:c,factoryData:l},d]=await Promise.all([this.getFactoryArgs(),e.signMessage(a)]);return c&&l&&c!==\"0x7702\"?MK({address:c,data:l,signature:d}):d},async signTypedData(a){let[{factory:c,factoryData:l},d]=await Promise.all([this.getFactoryArgs(),e.signTypedData(a)]);return c&&l&&c!==\"0x7702\"?MK({address:c,data:l,signature:d}):d},type:\"smart\"}}var MPe=$(()=>{f();_5();XB();jg();Yo();c4e();e8e()});var DPe=$(()=>{f();});var TO,bw,CO,RO,IO,kO,OO,NO,PO,MO,DO,BO,LO,P3,UO,vw,FO,HO,M3,D3,zO,jO,B3,WO,L3,VO,GO,qO,KO,U3,F3,H3,z3,KY,YO,ZO,dfe=$(()=>{f();Jn();TO=class extends Oe{constructor({cause:t}){super(\"Smart Account is not deployed.\",{cause:t,metaMessages:[\"This could arise when:\",\"- No `factory`/`factoryData` or `initCode` properties are provided for Smart Account deployment.\",\"- An incorrect `sender` address is provided.\"],name:\"AccountNotDeployedError\"})}};Object.defineProperty(TO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa20/});bw=class extends Oe{constructor({cause:t,data:n,message:r}={}){let o=r?.replace(\"execution reverted: \",\"\")?.replace(\"execution reverted\",\"\");super(`Execution reverted ${o?`with reason: ${o}`:\"for an unknown reason\"}.`,{cause:t,name:\"ExecutionRevertedError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n}};Object.defineProperty(bw,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32521});Object.defineProperty(bw,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});CO=class extends Oe{constructor({cause:t}){super(\"Failed to send funds to beneficiary.\",{cause:t,name:\"FailedToSendToBeneficiaryError\"})}};Object.defineProperty(CO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa91/});RO=class extends Oe{constructor({cause:t}){super(\"Gas value overflowed.\",{cause:t,metaMessages:[\"This could arise when:\",\"- one of the gas values exceeded 2**120 (uint120)\"].filter(Boolean),name:\"GasValuesOverflowError\"})}};Object.defineProperty(RO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa94/});IO=class extends Oe{constructor({cause:t}){super(\"The `handleOps` function was called by the Bundler with a gas limit too low.\",{cause:t,name:\"HandleOpsOutOfGasError\"})}};Object.defineProperty(IO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa95/});kO=class extends Oe{constructor({cause:t,factory:n,factoryData:r,initCode:o}){super(\"Failed to simulate deployment for Smart Account.\",{cause:t,metaMessages:[\"This could arise when:\",\"- Invalid `factory`/`factoryData` or `initCode` properties are present\",\"- Smart Account deployment execution ran out of gas (low `verificationGasLimit` value)\",`- Smart Account deployment execution reverted with an error\\n`,n&&`factory: ${n}`,r&&`factoryData: ${r}`,o&&`initCode: ${o}`].filter(Boolean),name:\"InitCodeFailedError\"})}};Object.defineProperty(kO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa13/});OO=class extends Oe{constructor({cause:t,factory:n,factoryData:r,initCode:o}){super(\"Smart Account initialization implementation did not create an account.\",{cause:t,metaMessages:[\"This could arise when:\",\"- `factory`/`factoryData` or `initCode` properties are invalid\",`- Smart Account initialization implementation is incorrect\\n`,n&&`factory: ${n}`,r&&`factoryData: ${r}`,o&&`initCode: ${o}`].filter(Boolean),name:\"InitCodeMustCreateSenderError\"})}};Object.defineProperty(OO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa15/});NO=class extends Oe{constructor({cause:t,factory:n,factoryData:r,initCode:o,sender:i}){super(\"Smart Account initialization implementation does not return the expected sender.\",{cause:t,metaMessages:[\"This could arise when:\",`Smart Account initialization implementation does not return a sender address\\n`,n&&`factory: ${n}`,r&&`factoryData: ${r}`,o&&`initCode: ${o}`,i&&`sender: ${i}`].filter(Boolean),name:\"InitCodeMustReturnSenderError\"})}};Object.defineProperty(NO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa14/});PO=class extends Oe{constructor({cause:t}){super(\"Smart Account does not have sufficient funds to execute the User Operation.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the Smart Account does not have sufficient funds to cover the required prefund, or\",\"- a Paymaster was not provided\"].filter(Boolean),name:\"InsufficientPrefundError\"})}};Object.defineProperty(PO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa21/});MO=class extends Oe{constructor({cause:t}){super(\"Bundler attempted to call an invalid function on the EntryPoint.\",{cause:t,name:\"InternalCallOnlyError\"})}};Object.defineProperty(MO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa92/});DO=class extends Oe{constructor({cause:t}){super(\"Bundler used an invalid aggregator for handling aggregated User Operations.\",{cause:t,name:\"InvalidAggregatorError\"})}};Object.defineProperty(DO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa96/});BO=class extends Oe{constructor({cause:t,nonce:n}){super(\"Invalid Smart Account nonce used for User Operation.\",{cause:t,metaMessages:[n&&`nonce: ${n}`].filter(Boolean),name:\"InvalidAccountNonceError\"})}};Object.defineProperty(BO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa25/});LO=class extends Oe{constructor({cause:t}){super(\"Bundler has not set a beneficiary address.\",{cause:t,name:\"InvalidBeneficiaryError\"})}};Object.defineProperty(LO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa90/});P3=class extends Oe{constructor({cause:t}){super(\"Invalid fields set on User Operation.\",{cause:t,name:\"InvalidFieldsError\"})}};Object.defineProperty(P3,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});UO=class extends Oe{constructor({cause:t,paymasterAndData:n}){super(\"Paymaster properties provided are invalid.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `paymasterAndData` property is of an incorrect length\\\\n\",n&&`paymasterAndData: ${n}`].filter(Boolean),name:\"InvalidPaymasterAndDataError\"})}};Object.defineProperty(UO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa93/});vw=class extends Oe{constructor({cause:t}){super(\"Paymaster deposit for the User Operation is too low.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the Paymaster has deposited less than the expected amount via the `deposit` function\"].filter(Boolean),name:\"PaymasterDepositTooLowError\"})}};Object.defineProperty(vw,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32508});Object.defineProperty(vw,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa31/});FO=class extends Oe{constructor({cause:t}){super(\"The `validatePaymasterUserOp` function on the Paymaster reverted.\",{cause:t,name:\"PaymasterFunctionRevertedError\"})}};Object.defineProperty(FO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa33/});HO=class extends Oe{constructor({cause:t}){super(\"The Paymaster contract has not been deployed.\",{cause:t,name:\"PaymasterNotDeployedError\"})}};Object.defineProperty(HO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa30/});M3=class extends Oe{constructor({cause:t}){super(\"UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.\",{cause:t,name:\"PaymasterRateLimitError\"})}};Object.defineProperty(M3,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32504});D3=class extends Oe{constructor({cause:t}){super(\"UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.\",{cause:t,name:\"PaymasterStakeTooLowError\"})}};Object.defineProperty(D3,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32505});zO=class extends Oe{constructor({cause:t}){super(\"Paymaster `postOp` function reverted.\",{cause:t,name:\"PaymasterPostOpFunctionRevertedError\"})}};Object.defineProperty(zO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa50/});jO=class extends Oe{constructor({cause:t,factory:n,factoryData:r,initCode:o}){super(\"Smart Account has already been deployed.\",{cause:t,metaMessages:[\"Remove the following properties and try again:\",n&&\"`factory`\",r&&\"`factoryData`\",o&&\"`initCode`\"].filter(Boolean),name:\"SenderAlreadyConstructedError\"})}};Object.defineProperty(jO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa10/});B3=class extends Oe{constructor({cause:t}){super(\"UserOperation rejected because account signature check failed (or paymaster signature, if the paymaster uses its data as signature).\",{cause:t,name:\"SignatureCheckFailedError\"})}};Object.defineProperty(B3,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32507});WO=class extends Oe{constructor({cause:t}){super(\"The `validateUserOp` function on the Smart Account reverted.\",{cause:t,name:\"SmartAccountFunctionRevertedError\"})}};Object.defineProperty(WO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa23/});L3=class extends Oe{constructor({cause:t}){super(\"UserOperation rejected because account specified unsupported signature aggregator.\",{cause:t,name:\"UnsupportedSignatureAggregatorError\"})}};Object.defineProperty(L3,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32506});VO=class extends Oe{constructor({cause:t}){super(\"User Operation expired.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `validAfter` or `validUntil` values returned from `validateUserOp` on the Smart Account are not satisfied\"].filter(Boolean),name:\"UserOperationExpiredError\"})}};Object.defineProperty(VO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa22/});GO=class extends Oe{constructor({cause:t}){super(\"Paymaster for User Operation expired.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `validAfter` or `validUntil` values returned from `validatePaymasterUserOp` on the Paymaster are not satisfied\"].filter(Boolean),name:\"UserOperationPaymasterExpiredError\"})}};Object.defineProperty(GO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa32/});qO=class extends Oe{constructor({cause:t}){super(\"Signature provided for the User Operation is invalid.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Smart Account\"].filter(Boolean),name:\"UserOperationSignatureError\"})}};Object.defineProperty(qO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa24/});KO=class extends Oe{constructor({cause:t}){super(\"Signature provided for the User Operation is invalid.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Paymaster\"].filter(Boolean),name:\"UserOperationPaymasterSignatureError\"})}};Object.defineProperty(KO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa34/});U3=class extends Oe{constructor({cause:t}){super(\"User Operation rejected by EntryPoint\\'s `simulateValidation` during account creation or validation.\",{cause:t,name:\"UserOperationRejectedByEntryPointError\"})}};Object.defineProperty(U3,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32500});F3=class extends Oe{constructor({cause:t}){super(\"User Operation rejected by Paymaster\\'s `validatePaymasterUserOp`.\",{cause:t,name:\"UserOperationRejectedByPaymasterError\"})}};Object.defineProperty(F3,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32501});H3=class extends Oe{constructor({cause:t}){super(\"User Operation rejected with op code validation error.\",{cause:t,name:\"UserOperationRejectedByOpCodeError\"})}};Object.defineProperty(H3,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32502});z3=class extends Oe{constructor({cause:t}){super(\"UserOperation out of time-range: either wallet or paymaster returned a time-range, and it is already expired (or will expire soon).\",{cause:t,name:\"UserOperationOutOfTimeRangeError\"})}};Object.defineProperty(z3,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32503});KY=class extends Oe{constructor({cause:t}){super(`An error occurred while executing user operation: ${t?.shortMessage}`,{cause:t,name:\"UnknownBundlerError\"})}},YO=class extends Oe{constructor({cause:t}){super(\"User Operation verification gas limit exceeded.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the gas used for verification exceeded the `verificationGasLimit`\"].filter(Boolean),name:\"VerificationGasLimitExceededError\"})}};Object.defineProperty(YO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa40/});ZO=class extends Oe{constructor({cause:t}){super(\"User Operation verification gas limit is too low.\",{cause:t,metaMessages:[\"This could arise when:\",\"- the `verificationGasLimit` is too low to verify the User Operation\"].filter(Boolean),name:\"VerificationGasLimitTooLowError\"})}};Object.defineProperty(ZO,\"message\",{enumerable:!0,configurable:!0,writable:!0,value:/aa41/})});var YY,ZY,QY,WL,VL=$(()=>{f();Jn();Fh();q_();YY=class extends Oe{constructor(t,{callData:n,callGasLimit:r,docsPath:o,factory:i,factoryData:a,initCode:c,maxFeePerGas:l,maxPriorityFeePerGas:d,nonce:m,paymaster:h,paymasterAndData:g,paymasterData:y,paymasterPostOpGasLimit:w,paymasterVerificationGasLimit:x,preVerificationGas:I,sender:C,signature:M,verificationGasLimit:B}){let z=B2({callData:n,callGasLimit:r,factory:i,factoryData:a,initCode:c,maxFeePerGas:typeof l<\"u\"&&`${rc(l)} gwei`,maxPriorityFeePerGas:typeof d<\"u\"&&`${rc(d)} gwei`,nonce:m,paymaster:h,paymasterAndData:g,paymasterData:y,paymasterPostOpGasLimit:w,paymasterVerificationGasLimit:x,preVerificationGas:I,sender:C,signature:M,verificationGasLimit:B});super(t.shortMessage,{cause:t,docsPath:o,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Request Arguments:\",z].filter(Boolean),name:\"UserOperationExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}},ZY=class extends Oe{constructor({hash:t}){super(`User Operation receipt with hash \"${t}\" could not be found. The User Operation may not have been processed yet.`,{name:\"UserOperationReceiptNotFoundError\"})}},QY=class extends Oe{constructor({hash:t}){super(`User Operation with hash \"${t}\" could not be found.`,{name:\"UserOperationNotFoundError\"})}},WL=class extends Oe{constructor({hash:t}){super(`Timed out while waiting for User Operation with hash \"${t}\" to be confirmed.`,{name:\"WaitForUserOperationReceiptTimeoutError\"})}}});function BPe(e,t){let n=(e.details||\"\").toLowerCase();if(TO.message.test(n))return new TO({cause:e});if(CO.message.test(n))return new CO({cause:e});if(RO.message.test(n))return new RO({cause:e});if(IO.message.test(n))return new IO({cause:e});if(kO.message.test(n))return new kO({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(OO.message.test(n))return new OO({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(NO.message.test(n))return new NO({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode,sender:t.sender});if(PO.message.test(n))return new PO({cause:e});if(MO.message.test(n))return new MO({cause:e});if(BO.message.test(n))return new BO({cause:e,nonce:t.nonce});if(DO.message.test(n))return new DO({cause:e});if(LO.message.test(n))return new LO({cause:e});if(UO.message.test(n))return new UO({cause:e});if(vw.message.test(n))return new vw({cause:e});if(FO.message.test(n))return new FO({cause:e});if(HO.message.test(n))return new HO({cause:e});if(zO.message.test(n))return new zO({cause:e});if(WO.message.test(n))return new WO({cause:e});if(jO.message.test(n))return new jO({cause:e,factory:t.factory,factoryData:t.factoryData,initCode:t.initCode});if(VO.message.test(n))return new VO({cause:e});if(GO.message.test(n))return new GO({cause:e});if(KO.message.test(n))return new KO({cause:e});if(qO.message.test(n))return new qO({cause:e});if(YO.message.test(n))return new YO({cause:e});if(ZO.message.test(n))return new ZO({cause:e});let r=e.walk(o=>Hxt.some(i=>i.code===o.code));if(r){if(r.code===bw.code)return new bw({cause:e,data:r.data,message:r.details});if(r.code===P3.code)return new P3({cause:e});if(r.code===vw.code)return new vw({cause:e});if(r.code===M3.code)return new M3({cause:e});if(r.code===D3.code)return new D3({cause:e});if(r.code===B3.code)return new B3({cause:e});if(r.code===L3.code)return new L3({cause:e});if(r.code===z3.code)return new z3({cause:e});if(r.code===U3.code)return new U3({cause:e});if(r.code===F3.code)return new F3({cause:e});if(r.code===H3.code)return new H3({cause:e})}return new KY({cause:e})}var Hxt,LPe=$(()=>{f();dfe();Hxt=[bw,P3,vw,M3,D3,B3,L3,z3,U3,F3,H3]});function JY(e,{calls:t,docsPath:n,...r}){let o=(()=>{let i=BPe(e,r);if(t&&i instanceof bw){let a=zxt(i),c=t?.filter(l=>l.abi);if(a&&c.length>0)return jxt({calls:c,revertData:a})}return i})();return new YY(o,{docsPath:n,...r})}function zxt(e){let t;return e.walk(n=>{let r=n;if(typeof r.data==\"string\"||typeof r.data?.revertData==\"string\"||!(r instanceof Oe)&&typeof r.message==\"string\"){let o=(r.data?.revertData||r.data||r.message).match?.(/(0x[A-Za-z0-9]*)/);if(o)return t=o[1],!0}return!1}),t}function jxt(e){let{calls:t,revertData:n}=e,{abi:r,functionName:o,args:i,to:a}=(()=>{let l=t?.filter(m=>!!m.abi);if(l.length===1)return l[0];let d=l.filter(m=>{try{return!!ck({abi:m.abi,data:n})}catch{return!1}});return d.length===1?d[0]:{abi:[],functionName:l.reduce((m,h)=>`${m?`${m} | `:\"\"}${h.functionName}`,\"\"),args:void 0,to:void 0}})(),c=n===\"0x\"?new I5({functionName:o}):new Xv({abi:r,data:n,functionName:o});return new Wb(c,{abi:r,args:i,contractAddress:a,functionName:o})}var ffe=$(()=>{f();Jn();$v();GG();dfe();VL();LPe()});function UPe(e){let t={};return e.callGasLimit&&(t.callGasLimit=BigInt(e.callGasLimit)),e.preVerificationGas&&(t.preVerificationGas=BigInt(e.preVerificationGas)),e.verificationGasLimit&&(t.verificationGasLimit=BigInt(e.verificationGasLimit)),e.paymasterPostOpGasLimit&&(t.paymasterPostOpGasLimit=BigInt(e.paymasterPostOpGasLimit)),e.paymasterVerificationGasLimit&&(t.paymasterVerificationGasLimit=BigInt(e.paymasterVerificationGasLimit)),t}var FPe=$(()=>{f()});function tT(e){let t={};return typeof e.callData<\"u\"&&(t.callData=e.callData),typeof e.callGasLimit<\"u\"&&(t.callGasLimit=Pe(e.callGasLimit)),typeof e.factory<\"u\"&&(t.factory=e.factory),typeof e.factoryData<\"u\"&&(t.factoryData=e.factoryData),typeof e.initCode<\"u\"&&(t.initCode=e.initCode),typeof e.maxFeePerGas<\"u\"&&(t.maxFeePerGas=Pe(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<\"u\"&&(t.maxPriorityFeePerGas=Pe(e.maxPriorityFeePerGas)),typeof e.nonce<\"u\"&&(t.nonce=Pe(e.nonce)),typeof e.paymaster<\"u\"&&(t.paymaster=e.paymaster),typeof e.paymasterAndData<\"u\"&&(t.paymasterAndData=e.paymasterAndData||\"0x\"),typeof e.paymasterData<\"u\"&&(t.paymasterData=e.paymasterData),typeof e.paymasterPostOpGasLimit<\"u\"&&(t.paymasterPostOpGasLimit=Pe(e.paymasterPostOpGasLimit)),typeof e.paymasterVerificationGasLimit<\"u\"&&(t.paymasterVerificationGasLimit=Pe(e.paymasterVerificationGasLimit)),typeof e.preVerificationGas<\"u\"&&(t.preVerificationGas=Pe(e.preVerificationGas)),typeof e.sender<\"u\"&&(t.sender=e.sender),typeof e.signature<\"u\"&&(t.signature=e.signature),typeof e.verificationGasLimit<\"u\"&&(t.verificationGasLimit=Pe(e.verificationGasLimit)),typeof e.authorization<\"u\"&&(t.eip7702Auth=Wxt(e.authorization)),t}function Wxt(e){return{address:e.address,chainId:Pe(e.chainId),nonce:Pe(e.nonce),r:e.r?Pe(BigInt(e.r),{size:32}):Gi(\"0x\",{size:32}),s:e.s?Pe(BigInt(e.s),{size:32}):Gi(\"0x\",{size:32}),yParity:e.yParity?Pe(e.yParity,{size:1}):Gi(\"0x\",{size:32})}}var GL=$(()=>{f();An();q_()});async function HPe(e,t){let{chainId:n,entryPointAddress:r,context:o,...i}=t,a=tT(i),{paymasterPostOpGasLimit:c,paymasterVerificationGasLimit:l,...d}=await e.request({method:\"pm_getPaymasterData\",params:[{...a,callGasLimit:a.callGasLimit??\"0x0\",verificationGasLimit:a.verificationGasLimit??\"0x0\",preVerificationGas:a.preVerificationGas??\"0x0\"},r,Pe(n),o]});return{...d,...c&&{paymasterPostOpGasLimit:Zn(c)},...l&&{paymasterVerificationGasLimit:Zn(l)}}}var zPe=$(()=>{f();Ac();An();GL()});async function jPe(e,t){let{chainId:n,entryPointAddress:r,context:o,...i}=t,a=tT(i),{paymasterPostOpGasLimit:c,paymasterVerificationGasLimit:l,...d}=await e.request({method:\"pm_getPaymasterStubData\",params:[{...a,callGasLimit:a.callGasLimit??\"0x0\",verificationGasLimit:a.verificationGasLimit??\"0x0\",preVerificationGas:a.preVerificationGas??\"0x0\"},r,Pe(n),o]});return{...d,...c&&{paymasterPostOpGasLimit:Zn(c)},...l&&{paymasterVerificationGasLimit:Zn(l)}}}var WPe=$(()=>{f();Ac();An();GL()});async function QO(e,t){let n=t,{account:r=e.account,parameters:o=Vxt,stateOverride:i}=n;if(!r)throw new Rs;let a=Bn(r),c=e,l=n.paymaster??c?.paymaster,d=typeof l==\"string\"?l:void 0,{getPaymasterStubData:m,getPaymasterData:h}=(()=>{if(l===!0)return{getPaymasterStubData:J=>Ct(c,jPe,\"getPaymasterStubData\")(J),getPaymasterData:J=>Ct(c,HPe,\"getPaymasterData\")(J)};if(typeof l==\"object\"){let{getPaymasterStubData:J,getPaymasterData:ne}=l;return{getPaymasterStubData:ne&&J?J:ne,getPaymasterData:ne&&J?ne:void 0}}return{getPaymasterStubData:void 0,getPaymasterData:void 0}})(),g=n.paymasterContext?n.paymasterContext:c?.paymasterContext,y={...n,paymaster:d,sender:a.address},[w,x,I,C,M]=await Promise.all([(async()=>n.calls?a.encodeCalls(n.calls.map(J=>{let ne=J;return ne.abi?{data:xn(ne),to:ne.to,value:ne.value}:ne})):n.callData)(),(async()=>{if(!o.includes(\"factory\"))return;if(n.initCode)return{initCode:n.initCode};if(n.factory&&n.factoryData)return{factory:n.factory,factoryData:n.factoryData};let{factory:J,factoryData:ne}=await a.getFactoryArgs();return a.entryPoint.version===\"0.6\"?{initCode:J&&ne?qi([J,ne]):void 0}:{factory:J,factoryData:ne}})(),(async()=>{if(o.includes(\"fees\")){if(typeof n.maxFeePerGas==\"bigint\"&&typeof n.maxPriorityFeePerGas==\"bigint\")return y;if(c?.userOperation?.estimateFeesPerGas){let J=await c.userOperation.estimateFeesPerGas({account:a,bundlerClient:c,userOperation:y});return{...y,...J}}try{let J=c.client??e,ne=await Ct(J,Xq,\"estimateFeesPerGas\")({chain:J.chain,type:\"eip1559\"});return{maxFeePerGas:typeof n.maxFeePerGas==\"bigint\"?n.maxFeePerGas:BigInt(2n*ne.maxFeePerGas),maxPriorityFeePerGas:typeof n.maxPriorityFeePerGas==\"bigint\"?n.maxPriorityFeePerGas:BigInt(2n*ne.maxPriorityFeePerGas)}}catch{return}}})(),(async()=>{if(o.includes(\"nonce\"))return typeof n.nonce==\"bigint\"?n.nonce:a.getNonce()})(),(async()=>{if(o.includes(\"authorization\")){if(typeof n.authorization==\"object\")return n.authorization;if(a.authorization&&!await a.isDeployed())return{...await _3(a.client,a.authorization),r:\"0xfffffffffffffffffffffffffffffff000000000000000000000000000000000\",s:\"0x7aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",yParity:1}}})()]);typeof w<\"u\"&&(y.callData=w),typeof x<\"u\"&&(y={...y,...x}),typeof I<\"u\"&&(y={...y,...I}),typeof C<\"u\"&&(y.nonce=C),typeof M<\"u\"&&(y.authorization=M),o.includes(\"signature\")&&(typeof n.signature<\"u\"?y.signature=n.signature:y.signature=await a.getStubSignature(y)),a.entryPoint.version===\"0.6\"&&!y.initCode&&(y.initCode=\"0x\");let B;async function z(){return B||(e.chain?e.chain.id:(B=await Ct(e,Gl,\"getChainId\")({}),B))}let G=!1;if(o.includes(\"paymaster\")&&m&&!d&&!n.paymasterAndData){let{isFinal:J=!1,sponsor:ne,...ie}=await m({chainId:await z(),entryPointAddress:a.entryPoint.address,context:g,...y});G=J,y={...y,...ie}}if(a.entryPoint.version===\"0.6\"&&!y.paymasterAndData&&(y.paymasterAndData=\"0x\"),o.includes(\"gas\")){if(a.userOperation?.estimateGas){let J=await a.userOperation.estimateGas(y);y={...y,...J}}if(typeof y.callGasLimit>\"u\"||typeof y.preVerificationGas>\"u\"||typeof y.verificationGasLimit>\"u\"||y.paymaster&&typeof y.paymasterPostOpGasLimit>\"u\"||y.paymaster&&typeof y.paymasterVerificationGasLimit>\"u\"){let J=await Ct(c,$Y,\"estimateUserOperationGas\")({account:a,callGasLimit:0n,preVerificationGas:0n,verificationGasLimit:0n,stateOverride:i,...y.paymaster?{paymasterPostOpGasLimit:0n,paymasterVerificationGasLimit:0n}:{},...y});y={...y,callGasLimit:y.callGasLimit??J.callGasLimit,preVerificationGas:y.preVerificationGas??J.preVerificationGas,verificationGasLimit:y.verificationGasLimit??J.verificationGasLimit,paymasterPostOpGasLimit:y.paymasterPostOpGasLimit??J.paymasterPostOpGasLimit,paymasterVerificationGasLimit:y.paymasterVerificationGasLimit??J.paymasterVerificationGasLimit}}}if(o.includes(\"paymaster\")&&h&&!d&&!n.paymasterAndData&&!G){let J=await h({chainId:await z(),entryPointAddress:a.entryPoint.address,context:g,...y});y={...y,...J}}return delete y.calls,delete y.parameters,delete y.paymasterContext,typeof y.paymaster!=\"string\"&&delete y.paymaster,y}var Vxt,XY=$(()=>{f();La();tm();eK();fw();Dg();zp();Nu();Yo();zPe();WPe();pfe();Vxt=[\"factory\",\"fees\",\"gas\",\"paymaster\",\"nonce\",\"signature\",\"authorization\"]});async function $Y(e,t){let{account:n=e.account,entryPointAddress:r,stateOverride:o}=t;if(!n&&!t.sender)throw new Rs;let i=n?Bn(n):void 0,a=P_(o),c=i?await Ct(e,QO,\"prepareUserOperation\")({...t,parameters:[\"authorization\",\"factory\",\"nonce\",\"paymaster\",\"signature\"]}):t;try{let l=[tT(c),r??i?.entryPoint?.address],d=await e.request({method:\"eth_estimateUserOperationGas\",params:a?[...l,a]:[...l]});return UPe(d)}catch(l){let d=t.calls;throw JY(l,{...c,...d?{calls:d}:{}})}}var pfe=$(()=>{f();La();Dg();Yo();LB();ffe();FPe();GL();XY()});function VPe(e){return e.request({method:\"eth_supportedEntryPoints\"})}var GPe=$(()=>{f()});function qPe(e){let t={...e};return e.callGasLimit&&(t.callGasLimit=BigInt(e.callGasLimit)),e.maxFeePerGas&&(t.maxFeePerGas=BigInt(e.maxFeePerGas)),e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=BigInt(e.maxPriorityFeePerGas)),e.nonce&&(t.nonce=BigInt(e.nonce)),e.paymasterPostOpGasLimit&&(t.paymasterPostOpGasLimit=BigInt(e.paymasterPostOpGasLimit)),e.paymasterVerificationGasLimit&&(t.paymasterVerificationGasLimit=BigInt(e.paymasterVerificationGasLimit)),e.preVerificationGas&&(t.preVerificationGas=BigInt(e.preVerificationGas)),e.verificationGasLimit&&(t.verificationGasLimit=BigInt(e.verificationGasLimit)),t}var KPe=$(()=>{f()});async function YPe(e,{hash:t}){let n=await e.request({method:\"eth_getUserOperationByHash\",params:[t]},{dedupe:!0});if(!n)throw new QY({hash:t});let{blockHash:r,blockNumber:o,entryPoint:i,transactionHash:a,userOperation:c}=n;return{blockHash:r,blockNumber:BigInt(o),entryPoint:i,transactionHash:a,userOperation:qPe(c)}}var ZPe=$(()=>{f();VL();KPe()});function QPe(e){let t={...e};return e.actualGasCost&&(t.actualGasCost=BigInt(e.actualGasCost)),e.actualGasUsed&&(t.actualGasUsed=BigInt(e.actualGasUsed)),e.logs&&(t.logs=e.logs.map(n=>Hl(n))),e.receipt&&(t.receipt=f5(t.receipt)),t}var JPe=$(()=>{f();D2();_8()});async function eZ(e,{hash:t}){let n=await e.request({method:\"eth_getUserOperationReceipt\",params:[t]},{dedupe:!0});if(!n)throw new ZY({hash:t});return QPe(n)}var hfe=$(()=>{f();VL();JPe()});async function XPe(e,t){let{account:n=e.account,entryPointAddress:r}=t;if(!n&&!t.sender)throw new Rs;let o=n?Bn(n):void 0,i=o?await Ct(e,QO,\"prepareUserOperation\")(t):t,a=t.signature||await o?.signUserOperation?.(i),c=tT({...i,signature:a});try{return await e.request({method:\"eth_sendUserOperation\",params:[c,r??o?.entryPoint?.address]},{retryCount:0})}catch(l){let d=t.calls;throw JY(l,{...i,...d?{calls:d}:{},signature:a})}}var $Pe=$(()=>{f();La();Dg();Yo();ffe();GL();XY()});function eMe(e,t){let{hash:n,pollingInterval:r=e.pollingInterval,retryCount:o,timeout:i=12e4}=t,a=0,c=oo([\"waitForUserOperationReceipt\",e.uid,n]);return new Promise((l,d)=>{let m=ql(c,{resolve:l,reject:d},h=>{let g=w=>{y(),w(),m()},y=$h(async()=>{o&&a>=o&&g(()=>h.reject(new WL({hash:n})));try{let w=await Ct(e,eZ,\"getUserOperationReceipt\")({hash:n});g(()=>h.resolve(w))}catch(w){let x=w;x.name!==\"UserOperationReceiptNotFoundError\"&&g(()=>h.reject(x))}a++},{emitOnBegin:!0,interval:r});return i&&setTimeout(()=>g(()=>h.reject(new WL({hash:n}))),i),y})})}var tMe=$(()=>{f();Yo();gE();Q_();Nd();VL();hfe()});function nMe(e){return{estimateUserOperationGas:t=>$Y(e,t),getChainId:()=>Gl(e),getSupportedEntryPoints:()=>VPe(e),getUserOperation:t=>YPe(e,t),getUserOperationReceipt:t=>eZ(e,t),prepareUserOperation:t=>QO(e,t),sendUserOperation:t=>XPe(e,t),waitForUserOperationReceipt:t=>eMe(e,t)}}var rMe=$(()=>{f();fw();pfe();GPe();ZPe();hfe();XY();$Pe();tMe()});function qL(e){let{client:t,key:n=\"bundler\",name:r=\"Bundler Client\",paymaster:o,paymasterContext:i,transport:a,userOperation:c}=e;return Object.assign(bE({...e,chain:e.chain??t?.chain,key:n,name:r,transport:a,type:\"bundlerClient\"}),{client:t,paymaster:o,paymasterContext:i,userOperation:c}).extend(nMe)}var oMe=$(()=>{f();XK();rMe()});var KL,iMe=$(()=>{f();KL=\"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789\"});var YL=$(()=>{f();MPe();oMe();kPe();iMe();PPe()});var mfe,aMe=$(()=>{f();I3();mfe=Qg(()=>({}))});function gfe(e){e.forEach(t=>{var n,r,o,i,a,c,l,d;if(!t.rpcUrl)return;let m=ya({id:t.id,rpcUrls:{default:{http:[t.rpcUrl]}},name:(r=(n=t.nativeCurrency)===null||n===void 0?void 0:n.name)!==null&&r!==void 0?r:\"\",nativeCurrency:{name:(i=(o=t.nativeCurrency)===null||o===void 0?void 0:o.name)!==null&&i!==void 0?i:\"\",symbol:(c=(a=t.nativeCurrency)===null||a===void 0?void 0:a.symbol)!==null&&c!==void 0?c:\"\",decimals:(d=(l=t.nativeCurrency)===null||l===void 0?void 0:l.decimal)!==null&&d!==void 0?d:18}}),h=vE({chain:m,transport:hl(t.rpcUrl)}),g=qL({client:h,transport:hl(t.rpcUrl)});mfe.setState({[t.id]:{client:h,bundlerClient:g}})})}function tZ(e){var t;return(t=mfe.getState()[e])===null||t===void 0?void 0:t.client}var yfe=$(()=>{f();gn();YL();aMe()});var nZ,t1,bfe=$(()=>{f();I3();nZ=Qg(()=>({correlationIds:new Map})),t1={get:e=>nZ.getState().correlationIds.get(e),set:(e,t)=>{nZ.setState(n=>{let r=new Map(n.correlationIds);return r.set(e,t),{correlationIds:r}})},delete:e=>{nZ.setState(t=>{let n=new Map(t.correlationIds);return n.delete(e),{correlationIds:n}})},clear:()=>{nZ.setState({correlationIds:new Map})}}});function ZL(e){if(typeof e!=\"object\"||e===null)throw Vt.rpc.internal(\"sub account info is not an object\");if(!(\"address\"in e))throw Vt.rpc.internal(\"sub account is invalid\");if(\"address\"in e&&typeof e.address==\"string\"&&!Hn(e.address))throw Vt.rpc.internal(\"sub account address is invalid\");if(\"factory\"in e&&typeof e.factory==\"string\"&&!Hn(e.factory))throw Vt.rpc.internal(\"sub account factory address is invalid\");if(\"factoryData\"in e&&typeof e.factoryData==\"string\"&&!ro(e.factoryData))throw Vt.rpc.internal(\"sub account factory data is invalid\")}var sMe=$(()=>{f();gn();om()});async function cMe(){return crypto.subtle.generateKey({name:\"ECDH\",namedCurve:\"P-256\"},!0,[\"deriveKey\"])}async function uMe(e,t){return crypto.subtle.deriveKey({name:\"ECDH\",public:t},e,{name:\"AES-GCM\",length:256},!1,[\"encrypt\",\"decrypt\"])}async function Gxt(e,t){let n=crypto.getRandomValues(new Uint8Array(12)),r=await crypto.subtle.encrypt({name:\"AES-GCM\",iv:n},e,new TextEncoder().encode(t));return{iv:n,cipherText:r}}async function qxt(e,{iv:t,cipherText:n}){let r=await crypto.subtle.decrypt({name:\"AES-GCM\",iv:t},e,n);return new TextDecoder().decode(r)}function lMe(e){switch(e){case\"public\":return\"spki\";case\"private\":return\"pkcs8\"}}async function rZ(e,t){let n=lMe(e),r=await crypto.subtle.exportKey(n,t);return cPe(new Uint8Array(r))}async function oZ(e,t){let n=lMe(e),r=uPe(t).buffer;return await crypto.subtle.importKey(n,new Uint8Array(r),{name:\"ECDH\",namedCurve:\"P-256\"},!0,e===\"private\"?[\"deriveKey\"]:[])}async function dMe(e,t){let n=JSON.stringify(e,(r,o)=>{if(!(o instanceof Error))return o;let i=o;return Object.assign(Object.assign({},i.code?{code:i.code}:{}),{message:i.message})});return Gxt(t,n)}async function fMe(e,t){return JSON.parse(await qxt(t,e))}var vfe=$(()=>{f();FL()});async function JO(e,t){let n=Object.assign(Object.assign({},e),{jsonrpc:\"2.0\",id:crypto.randomUUID()}),r=await window.fetch(t,{method:\"POST\",body:JSON.stringify(n),mode:\"cors\",headers:{\"Content-Type\":\"application/json\",\"X-Cbw-Sdk-Version\":Zg,\"X-Cbw-Sdk-Platform\":X_}}),{result:o,error:i}=await r.json();if(i)throw i;return o}function pMe(e){if(!e||typeof e!=\"object\"||Array.isArray(e))throw Vt.rpc.invalidParams({message:\"Expected a single, non-array, object argument.\",data:e});let{method:t,params:n}=e;if(typeof t!=\"string\"||t.length===0)throw Vt.rpc.invalidParams({message:\"\\'args.method\\' must be a non-empty string.\",data:e});if(n!==void 0&&!Array.isArray(n)&&(typeof n!=\"object\"||n===null))throw Vt.rpc.invalidParams({message:\"\\'args.params\\' must be an object or array if provided.\",data:e});switch(t){case\"eth_sign\":case\"eth_signTypedData_v2\":case\"eth_subscribe\":case\"eth_unsubscribe\":throw Vt.provider.unsupportedMethod()}}var wfe=$(()=>{f();wE();om()});var hMe=$(()=>{f()});var mMe,gMe=$(()=>{f();mMe=\"0.1.1\"});function yMe(){return mMe}var bMe=$(()=>{f();gMe()});function vMe(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause?vMe(e.cause,t):t?null:e}var Dr,EE=$(()=>{f();bMe();Dr=class e extends Error{constructor(t,n={}){let r=(()=>{if(n.cause instanceof e){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause?.message?n.cause.message:n.details})(),o=n.cause instanceof e&&n.cause.docsPath||n.docsPath,a=`https://oxlib.sh${o??\"\"}`,c=[t||\"An error occurred.\",...n.metaMessages?[\"\",...n.metaMessages]:[],...r||o?[\"\",r?`Details: ${r}`:void 0,o?`See: ${a}`:void 0]:[]].filter(l=>typeof l==\"string\").join(`\\n`);super(c,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseError\"}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${yMe()}`}),this.cause=n.cause,this.details=r,this.docs=a,this.docsPath=o,this.shortMessage=t}walk(t){return vMe(this,t)}}});function AE(e,t=\"\"){if(typeof e!=\"boolean\"){let n=t&&`\"${t}\"`;throw new Error(n+\"expected boolean, got type=\"+typeof e)}return e}function g0(e,t,n=\"\"){let r=Wv(e),o=e?.length,i=t!==void 0;if(!r||i&&o!==t){let a=n&&`\"${n}\" `,c=i?` of length ${t}`:\"\",l=r?`length=${o}`:`type=${typeof e}`;throw new Error(a+\"expected Uint8Array\"+c+\", got \"+l)}return e}function XO(e){let t=e.toString(16);return t.length&1?\"0\"+t:t}function Sfe(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);return e===\"\"?Afe:BigInt(\"0x\"+e)}function j3(e){return Sfe(r0(e))}function ww(e){return zl(e),Sfe(r0(Uint8Array.from(e).reverse()))}function QL(e,t){return a_(e.toString(16).padStart(t*2,\"0\"))}function iZ(e,t){return QL(e,t).reverse()}function Zi(e,t,n){let r;if(typeof t==\"string\")try{r=a_(t)}catch(i){throw new Error(e+\" must be hex string or Uint8Array, cause: \"+i)}else if(Wv(t))r=Uint8Array.from(t);else throw new Error(e+\" must be hex string or Uint8Array\");let o=r.length;if(typeof n==\"number\"&&o!==n)throw new Error(e+\" of length \"+n+\" expected, got \"+o);return r}function aZ(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return n===0}function sZ(e){return Uint8Array.from(e)}function _fe(e,t,n){return xfe(e)&&xfe(t)&&xfe(n)&&t<=e&&e<n}function $O(e,t,n,r){if(!_fe(t,n,r))throw new Error(\"expected valid \"+e+\": \"+n+\" <= n < \"+r+\", got \"+t)}function JL(e){let t;for(t=0;e>Afe;e>>=Efe,t+=1);return t}function Tfe(e,t,n){if(typeof e!=\"number\"||e<2)throw new Error(\"hashLen must be a number\");if(typeof t!=\"number\"||t<2)throw new Error(\"qByteLen must be a number\");if(typeof n!=\"function\")throw new Error(\"hmacFn must be a function\");let r=y=>new Uint8Array(y),o=y=>Uint8Array.of(y),i=r(e),a=r(e),c=0,l=()=>{i.fill(1),a.fill(0),c=0},d=(...y)=>n(a,i,...y),m=(y=r(0))=>{a=d(o(0),y),i=d(),y.length!==0&&(a=d(o(1),y),i=d())},h=()=>{if(c++>=1e3)throw new Error(\"drbg: tried 1000 values\");let y=0,w=[];for(;y<t;){i=d();let x=i.slice();w.push(x),y+=i.length}return jl(...w)};return(y,w)=>{l(),m(y);let x;for(;!(x=w(h()));)m();return l(),x}}function rT(e,t,n={}){if(!e||typeof e!=\"object\")throw new Error(\"expected valid options object\");function r(o,i,a){let c=e[o];if(a&&c===void 0)return;let l=typeof c;if(l!==i||c===null)throw new Error(`param \"${o}\" is invalid: expected ${i}, got ${l}`)}Object.entries(t).forEach(([o,i])=>r(o,i,!1)),Object.entries(n).forEach(([o,i])=>r(o,i,!0))}function W3(e){let t=new WeakMap;return(n,...r)=>{let o=t.get(n);if(o!==void 0)return o;let i=e(n,...r);return t.set(n,i),i}}var Afe,Efe,xfe,SE,cZ,V3=$(()=>{f();Ig();Ig();Afe=BigInt(0),Efe=BigInt(1);xfe=e=>typeof e==\"bigint\"&&Afe<=e;SE=e=>(Efe<<BigInt(e))-Efe;cZ=()=>{throw new Error(\"not implemented\")}});var wMe,xMe=$(()=>{f();V3();wMe=aZ});function oT(e,t,n){return JSON.stringify(e,(r,o)=>typeof t==\"function\"?t(r,o):typeof o==\"bigint\"?o.toString()+Jxt:o,n)}var Jxt,eN=$(()=>{f();Jxt=\"#__bigint\"});function $L(e,t){if(G3(e)>t)throw new uZ({givenSize:G3(e),maxSize:t})}function EMe(e,t){if(typeof t==\"number\"&&t>0&&t>G3(e)-1)throw new eU({offset:t,position:\"start\",size:G3(e)})}function AMe(e,t,n){if(typeof t==\"number\"&&typeof n==\"number\"&&G3(e)!==n-t)throw new eU({offset:n,position:\"end\",size:G3(e)})}function Cfe(e){if(e>=_E.zero&&e<=_E.nine)return e-_E.zero;if(e>=_E.A&&e<=_E.F)return e-(_E.A-10);if(e>=_E.a&&e<=_E.f)return e-(_E.a-10)}function SMe(e,t={}){let{dir:n,size:r=32}=t;if(r===0)return e;if(e.length>r)throw new lZ({size:e.length,targetSize:r,type:\"Bytes\"});let o=new Uint8Array(r);for(let i=0;i<r;i++){let a=n===\"right\";o[a?i:r-i-1]=e[a?i:e.length-i-1]}return o}function _Me(e,t={}){let{dir:n=\"left\"}=t,r=e,o=0;for(let i=0;i<r.length-1&&r[n===\"left\"?i:r.length-i-1].toString()===\"0\";i++)o++;return r=n===\"left\"?r.slice(o):r.slice(0,r.length-o),r}var _E,Rfe=$(()=>{f();Xg();_E={zero:48,nine:57,A:65,F:70,a:97,f:102}});function q3(e,t){if(Kp(e)>t)throw new tU({givenSize:Kp(e),maxSize:t})}function CMe(e,t){if(typeof t==\"number\"&&t>0&&t>Kp(e)-1)throw new tN({offset:t,position:\"start\",size:Kp(e)})}function RMe(e,t,n){if(typeof t==\"number\"&&typeof n==\"number\"&&Kp(e)!==n-t)throw new tN({offset:n,position:\"end\",size:Kp(e)})}function Ife(e,t={}){let{dir:n,size:r=32}=t;if(r===0)return e;let o=e.replace(\"0x\",\"\");if(o.length>r*2)throw new nU({size:Math.ceil(o.length/2),targetSize:r,type:\"Hex\"});return`0x${o[n===\"right\"?\"padEnd\":\"padStart\"](r*2,\"0\")}`}function kfe(e,t={}){let{dir:n=\"left\"}=t,r=e.replace(\"0x\",\"\"),o=0;for(let i=0;i<r.length-1&&r[n===\"left\"?i:r.length-i-1].toString()===\"0\";i++)o++;return r=n===\"left\"?r.slice(o):r.slice(0,r.length-o),r===\"0\"?\"0x\":n===\"right\"&&r.length%2===1?`0x${r}0`:`0x${r}`}var Ofe=$(()=>{f();xw()});var Lu={};as(Lu,{IntegerOutOfRangeError:()=>dZ,InvalidHexBooleanError:()=>fZ,InvalidHexTypeError:()=>rU,InvalidHexValueError:()=>oU,InvalidLengthError:()=>Nfe,SizeExceedsPaddingSizeError:()=>nU,SizeOverflowError:()=>tU,SliceOffsetOutOfBoundsError:()=>tN,assert:()=>kMe,concat:()=>r1,from:()=>nN,fromBoolean:()=>Pfe,fromBytes:()=>Tc,fromNumber:()=>Uu,fromString:()=>rN,isEqual:()=>e2t,padLeft:()=>oN,padRight:()=>iN,random:()=>t2t,size:()=>Kp,slice:()=>$g,toBigInt:()=>pZ,toBoolean:()=>r2t,toBytes:()=>o2t,toNumber:()=>OMe,toString:()=>i2t,trimLeft:()=>iU,trimRight:()=>n2t,validate:()=>hZ});function kMe(e,t={}){let{strict:n=!1}=t;if(!e)throw new rU(e);if(typeof e!=\"string\")throw new rU(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new oU(e);if(!e.startsWith(\"0x\"))throw new oU(e)}function r1(...e){return`0x${e.reduce((t,n)=>t+n.replace(\"0x\",\"\"),\"\")}`}function nN(e){return e instanceof Uint8Array?Tc(e):Array.isArray(e)?Tc(new Uint8Array(e)):e}function Pfe(e,t={}){let n=`0x${Number(e)}`;return typeof t.size==\"number\"?(q3(n,t.size),oN(n,t.size)):n}function Tc(e,t={}){let n=\"\";for(let o=0;o<e.length;o++)n+=$xt[e[o]];let r=`0x${n}`;return typeof t.size==\"number\"?(q3(r,t.size),iN(r,t.size)):r}function Uu(e,t={}){let{signed:n,size:r}=t,o=BigInt(e),i;r?n?i=(1n<<BigInt(r)*8n-1n)-1n:i=2n**(BigInt(r)*8n)-1n:typeof e==\"number\"&&(i=BigInt(Number.MAX_SAFE_INTEGER));let a=typeof i==\"bigint\"&&n?-i-1n:0;if(i&&o>i||o<a){let d=typeof e==\"bigint\"?\"n\":\"\";throw new dZ({max:i?`${i}${d}`:void 0,min:`${a}${d}`,signed:n,size:r,value:`${e}${d}`})}let l=`0x${(n&&o<0?(1n<<BigInt(r*8))+BigInt(o):o).toString(16)}`;return r?oN(l,r):l}function rN(e,t={}){return Tc(Xxt.encode(e),t)}function e2t(e,t){return wMe(Kl(e),Kl(t))}function oN(e,t){return Ife(e,{dir:\"left\",size:t})}function iN(e,t){return Ife(e,{dir:\"right\",size:t})}function t2t(e){return Tc(NMe(e))}function $g(e,t,n,r={}){let{strict:o}=r;CMe(e,t);let i=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(n??e.length)*2)}`;return o&&RMe(i,t,n),i}function Kp(e){return Math.ceil((e.length-2)/2)}function iU(e){return kfe(e,{dir:\"left\"})}function n2t(e){return kfe(e,{dir:\"right\"})}function pZ(e,t={}){let{signed:n}=t;t.size&&q3(e,t.size);let r=BigInt(e);if(!n)return r;let o=(e.length-2)/2,i=(1n<<BigInt(o)*8n)-1n,a=i>>1n;return r<=a?r:r-i-1n}function r2t(e,t={}){t.size&&q3(e,t.size);let n=iU(e);if(n===\"0x\")return!1;if(n===\"0x1\")return!0;throw new fZ(e)}function o2t(e,t={}){return Kl(e,t)}function OMe(e,t={}){let{signed:n,size:r}=t;return Number(!n&&!r?e:pZ(e,t))}function i2t(e,t={}){let{size:n}=t,r=Kl(e);return n&&($L(r,n),r=PMe(r)),new TextDecoder().decode(r)}function hZ(e,t={}){let{strict:n=!1}=t;try{return kMe(e,{strict:n}),!0}catch{return!1}}var Xxt,$xt,dZ,fZ,rU,oU,Nfe,tU,tN,nU,xw=$(()=>{f();xMe();Xg();EE();eN();Rfe();Ofe();Xxt=new TextEncoder,$xt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));dZ=class extends Dr{constructor({max:t,min:n,signed:r,size:o,value:i}){super(`Number \\\\`${i}\\\\` is not in safe${o?` ${o*8}-bit`:\"\"}${r?\" signed\":\" unsigned\"} integer range ${t?`(\\\\`${n}\\\\` to \\\\`${t}\\\\`)`:`(above \\\\`${n}\\\\`)`}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.IntegerOutOfRangeError\"})}},fZ=class extends Dr{constructor(t){super(`Hex value \\\\`\"${t}\"\\\\` is not a valid boolean.`,{metaMessages:[\\'The hex value must be `\"0x0\"` (false) or `\"0x1\"` (true).\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexBooleanError\"})}},rU=class extends Dr{constructor(t){super(`Value \\\\`${typeof t==\"object\"?oT(t):t}\\\\` of type \\\\`${typeof t}\\\\` is an invalid hex type.`,{metaMessages:[\\'Hex types must be represented as `\"0x${string}\"`.\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexTypeError\"})}},oU=class extends Dr{constructor(t){super(`Value \\\\`${t}\\\\` is an invalid hex value.`,{metaMessages:[\\'Hex values must start with `\"0x\"` and contain only hexadecimal characters (0-9, a-f, A-F).\\']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexValueError\"})}},Nfe=class extends Dr{constructor(t){super(`Hex value \\\\`\"${t}\"\\\\` is an odd length (${t.length-2} nibbles).`,{metaMessages:[\"It must be an even length.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidLengthError\"})}},tU=class extends Dr{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \\\\`${n}\\\\` bytes. Given size: \\\\`${t}\\\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeOverflowError\"})}},tN=class extends Dr{constructor({offset:t,position:n,size:r}){super(`Slice ${n===\"start\"?\"starting\":\"ending\"} at offset \\\\`${t}\\\\` is out-of-bounds (size: \\\\`${r}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SliceOffsetOutOfBoundsError\"})}},nU=class extends Dr{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\\\\`${t}\\\\`) exceeds padding size (\\\\`${n}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeExceedsPaddingSizeError\"})}}});function s2t(e){if(!(e instanceof Uint8Array)){if(!e)throw new aN(e);if(typeof e!=\"object\")throw new aN(e);if(!(\"BYTES_PER_ELEMENT\"in e))throw new aN(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!==\"Uint8Array\")throw new aN(e)}}function mZ(...e){let t=0;for(let r of e)t+=r.length;let n=new Uint8Array(t);for(let r=0,o=0;r<e.length;r++){let i=e[r];n.set(i,o),o+=i.length}return n}function sN(e){return e instanceof Uint8Array?e:typeof e==\"string\"?Kl(e):Mfe(e)}function Mfe(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Kl(e,t={}){let{size:n}=t,r=e;n&&(q3(e,n),r=iN(e,n));let o=r.slice(2);o.length%2&&(o=`0${o}`);let i=o.length/2,a=new Uint8Array(i);for(let c=0,l=0;c<i;c++){let d=Cfe(o.charCodeAt(l++)),m=Cfe(o.charCodeAt(l++));if(d===void 0||m===void 0)throw new Dr(`Invalid byte sequence (\"${o[l-2]}${o[l-1]}\" in \"${o}\").`);a[c]=d*16+m}return a}function Dfe(e,t){let n=Uu(e,t);return Kl(n)}function cN(e,t={}){let{size:n}=t,r=a2t.encode(e);return typeof n==\"number\"?($L(r,n),c2t(r,n)):r}function c2t(e,t){return SMe(e,{dir:\"right\",size:t})}function NMe(e){return crypto.getRandomValues(new Uint8Array(e))}function G3(e){return e.length}function Bfe(e,t,n,r={}){let{strict:o}=r;EMe(e,t);let i=e.slice(t,n);return o&&AMe(i,t,n),i}function Lfe(e,t={}){let{size:n}=t;typeof n<\"u\"&&$L(e,n);let r=Tc(e,t);return pZ(r,t)}function PMe(e){return _Me(e,{dir:\"right\"})}function MMe(e){try{return s2t(e),!0}catch{return!1}}var a2t,aN,uZ,eU,lZ,Xg=$(()=>{f();EE();xw();eN();Rfe();Ofe();a2t=new TextEncoder;aN=class extends Dr{constructor(t){super(`Value \\\\`${typeof t==\"object\"?oT(t):t}\\\\` of type \\\\`${typeof t}\\\\` is an invalid Bytes value.`,{metaMessages:[\"Bytes values must be of type `Bytes`.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.InvalidBytesTypeError\"})}},uZ=class extends Dr{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \\\\`${n}\\\\` bytes. Given size: \\\\`${t}\\\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeOverflowError\"})}},eU=class extends Dr{constructor({offset:t,position:n,size:r}){super(`Slice ${n===\"start\"?\"starting\":\"ending\"} at offset \\\\`${t}\\\\` is out-of-bounds (size: \\\\`${r}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SliceOffsetOutOfBoundsError\"})}},lZ=class extends Dr{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\\\\`${t}\\\\`) exceeds padding size (\\\\`${n}\\\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeExceedsPaddingSizeError\"})}}});function gZ(e,t={}){let{as:n=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,r=z2(sN(e));return n===\"Bytes\"?r:Tc(r)}function yZ(e,t={}){let{as:n=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,r=b5(sN(e));return n===\"Bytes\"?r:Tc(r)}var bZ=$(()=>{f();M9();cG();Xg();xw()});var vZ,DMe=$(()=>{f();vZ=class extends Map{constructor(t){super(),Object.defineProperty(this,\"maxSize\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){let n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){let r=this.keys().next().value;r&&this.delete(r)}return this}}});var u2t,wZ,Ffe=$(()=>{f();DMe();u2t={checksum:new vZ(8192)},wZ=u2t.checksum});var Yp={};as(Yp,{InvalidCompressedPrefixError:()=>EZ,InvalidError:()=>xZ,InvalidPrefixError:()=>aU,InvalidSerializedSizeError:()=>SZ,InvalidUncompressedPrefixError:()=>AZ,assert:()=>_Z,compress:()=>l2t,from:()=>K3,fromBytes:()=>LMe,fromHex:()=>Hfe,toBytes:()=>zfe,toHex:()=>TZ,validate:()=>d2t});function _Z(e,t={}){let{compressed:n}=t,{prefix:r,x:o,y:i}=e;if(n===!1||typeof o==\"bigint\"&&typeof i==\"bigint\"){if(r!==4)throw new aU({prefix:r,cause:new AZ});return}if(n===!0||typeof o==\"bigint\"&&typeof i>\"u\"){if(r!==3&&r!==2)throw new aU({prefix:r,cause:new EZ});return}throw new xZ({publicKey:e})}function l2t(e){let{x:t,y:n}=e;return{prefix:n%2n===0n?2:3,x:t}}function K3(e){let t=(()=>{if(hZ(e))return Hfe(e);if(MMe(e))return LMe(e);let{prefix:n,x:r,y:o}=e;return typeof r==\"bigint\"&&typeof o==\"bigint\"?{prefix:n??4,x:r,y:o}:{prefix:n,x:r}})();return _Z(t),t}function LMe(e){return Hfe(Tc(e))}function Hfe(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new SZ({publicKey:e});if(e.length===130){let r=BigInt($g(e,0,32)),o=BigInt($g(e,32,64));return{prefix:4,x:r,y:o}}if(e.length===132){let r=Number($g(e,0,1)),o=BigInt($g(e,1,33)),i=BigInt($g(e,33,65));return{prefix:r,x:o,y:i}}let t=Number($g(e,0,1)),n=BigInt($g(e,1,33));return{prefix:t,x:n}}function zfe(e,t={}){return Kl(TZ(e,t))}function TZ(e,t={}){_Z(e);let{prefix:n,x:r,y:o}=e,{includePrefix:i=!0}=t;return r1(i?Uu(n,{size:1}):\"0x\",Uu(r,{size:32}),typeof o==\"bigint\"?Uu(o,{size:32}):\"0x\")}function d2t(e,t={}){try{return _Z(e,t),!0}catch{return!1}}var xZ,aU,EZ,AZ,SZ,sU=$(()=>{f();Xg();EE();xw();eN();xZ=class extends Dr{constructor({publicKey:t}){super(`Value \\\\`${oT(t)}\\\\` is not a valid public key.`,{metaMessages:[\"Public key must contain:\",\"- an `x` and `prefix` value (compressed)\",\"- an `x`, `y`, and `prefix` value (uncompressed)\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidError\"})}},aU=class extends Dr{constructor({prefix:t,cause:n}){super(`Prefix \"${t}\" is invalid.`,{cause:n}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidPrefixError\"})}},EZ=class extends Dr{constructor(){super(\"Prefix must be 2 or 3 for compressed public keys.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidCompressedPrefixError\"})}},AZ=class extends Dr{constructor(){super(\"Prefix must be 4 for uncompressed public keys.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidUncompressedPrefixError\"})}},SZ=class extends Dr{constructor({publicKey:t}){super(`Value \\\\`${t}\\\\` is an invalid public key size.`,{metaMessages:[\"Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).\",`Received ${Kp(nN(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidSerializedSizeError\"})}}});function Vfe(e,t={}){let{strict:n=!0}=t;if(!f2t.test(e))throw new CZ({address:e,cause:new jfe});if(n){if(e.toLowerCase()===e)return;if(p2t(e)!==e)throw new CZ({address:e,cause:new Wfe})}}function p2t(e){if(wZ.has(e))return wZ.get(e);Vfe(e,{strict:!1});let t=e.substring(2).toLowerCase(),n=gZ(cN(t),{as:\"Bytes\"}),r=t.split(\"\");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&r[i]&&(r[i]=r[i].toUpperCase()),(n[i>>1]&15)>=8&&r[i+1]&&(r[i+1]=r[i+1].toUpperCase());let o=`0x${r.join(\"\")}`;return wZ.set(e,o),o}var f2t,CZ,jfe,Wfe,Gfe=$(()=>{f();Xg();Ffe();EE();bZ();f2t=/^0x[a-fA-F0-9]{40}$/;CZ=class extends Dr{constructor({address:t,cause:n}){super(`Address \"${t}\" is invalid.`,{cause:n}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidAddressError\"})}},jfe=class extends Dr{constructor(){super(\"Address is not a 20 byte (40 hexadecimal character) value.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidInputError\"})}},Wfe=class extends Dr{constructor(){super(\"Address does not match its checksum counterpart.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidChecksumError\"})}}});var FMe=$(()=>{f()});var HMe,zMe,jMe,nzn,rzn,ozn,izn,azn,szn,czn,uzn,lzn,dzn,fzn,pzn,hzn,mzn,gzn,yzn,bzn,vzn,wzn,xzn,Ezn,Azn,Szn,_zn,Tzn,Czn,Rzn,Izn,kzn,Ozn,Nzn,Pzn,Mzn,Dzn,Bzn,Lzn,Uzn,Fzn,Hzn,zzn,jzn,Wzn,Vzn,Gzn,qzn,Kzn,Yzn,Zzn,Qzn,Jzn,Xzn,$zn,ejn,tjn,njn,rjn,ojn,ijn,ajn,sjn,cjn,ujn,ljn,djn,fjn,pjn,hjn,mjn,gjn,yjn,bjn,vjn,wjn,xjn,Ejn,Ajn,Sjn,_jn,Tjn,Cjn,Rjn,Ijn,kjn,Ojn,Njn,Pjn,Mjn,Djn,Bjn,Ljn,Ujn,Fjn,Hjn,zjn,jjn,qfe,RZ=$(()=>{f();HMe=/^(.*)\\\\[([0-9]*)\\\\]$/,zMe=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,jMe=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,nzn=2n**(8n-1n)-1n,rzn=2n**(16n-1n)-1n,ozn=2n**(24n-1n)-1n,izn=2n**(32n-1n)-1n,azn=2n**(40n-1n)-1n,szn=2n**(48n-1n)-1n,czn=2n**(56n-1n)-1n,uzn=2n**(64n-1n)-1n,lzn=2n**(72n-1n)-1n,dzn=2n**(80n-1n)-1n,fzn=2n**(88n-1n)-1n,pzn=2n**(96n-1n)-1n,hzn=2n**(104n-1n)-1n,mzn=2n**(112n-1n)-1n,gzn=2n**(120n-1n)-1n,yzn=2n**(128n-1n)-1n,bzn=2n**(136n-1n)-1n,vzn=2n**(144n-1n)-1n,wzn=2n**(152n-1n)-1n,xzn=2n**(160n-1n)-1n,Ezn=2n**(168n-1n)-1n,Azn=2n**(176n-1n)-1n,Szn=2n**(184n-1n)-1n,_zn=2n**(192n-1n)-1n,Tzn=2n**(200n-1n)-1n,Czn=2n**(208n-1n)-1n,Rzn=2n**(216n-1n)-1n,Izn=2n**(224n-1n)-1n,kzn=2n**(232n-1n)-1n,Ozn=2n**(240n-1n)-1n,Nzn=2n**(248n-1n)-1n,Pzn=2n**(256n-1n)-1n,Mzn=-(2n**(8n-1n)),Dzn=-(2n**(16n-1n)),Bzn=-(2n**(24n-1n)),Lzn=-(2n**(32n-1n)),Uzn=-(2n**(40n-1n)),Fzn=-(2n**(48n-1n)),Hzn=-(2n**(56n-1n)),zzn=-(2n**(64n-1n)),jzn=-(2n**(72n-1n)),Wzn=-(2n**(80n-1n)),Vzn=-(2n**(88n-1n)),Gzn=-(2n**(96n-1n)),qzn=-(2n**(104n-1n)),Kzn=-(2n**(112n-1n)),Yzn=-(2n**(120n-1n)),Zzn=-(2n**(128n-1n)),Qzn=-(2n**(136n-1n)),Jzn=-(2n**(144n-1n)),Xzn=-(2n**(152n-1n)),$zn=-(2n**(160n-1n)),ejn=-(2n**(168n-1n)),tjn=-(2n**(176n-1n)),njn=-(2n**(184n-1n)),rjn=-(2n**(192n-1n)),ojn=-(2n**(200n-1n)),ijn=-(2n**(208n-1n)),ajn=-(2n**(216n-1n)),sjn=-(2n**(224n-1n)),cjn=-(2n**(232n-1n)),ujn=-(2n**(240n-1n)),ljn=-(2n**(248n-1n)),djn=-(2n**(256n-1n)),fjn=2n**8n-1n,pjn=2n**16n-1n,hjn=2n**24n-1n,mjn=2n**32n-1n,gjn=2n**40n-1n,yjn=2n**48n-1n,bjn=2n**56n-1n,vjn=2n**64n-1n,wjn=2n**72n-1n,xjn=2n**80n-1n,Ejn=2n**88n-1n,Ajn=2n**96n-1n,Sjn=2n**104n-1n,_jn=2n**112n-1n,Tjn=2n**120n-1n,Cjn=2n**128n-1n,Rjn=2n**136n-1n,Ijn=2n**144n-1n,kjn=2n**152n-1n,Ojn=2n**160n-1n,Njn=2n**168n-1n,Pjn=2n**176n-1n,Mjn=2n**184n-1n,Djn=2n**192n-1n,Bjn=2n**200n-1n,Ljn=2n**208n-1n,Ujn=2n**216n-1n,Fjn=2n**224n-1n,Hjn=2n**232n-1n,zjn=2n**240n-1n,jjn=2n**248n-1n,qfe=2n**256n-1n});function Yfe(e,t){if(e.length!==t.length)throw new Qfe({expectedLength:e.length,givenLength:t.length});let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t[r];n.push(Yfe.encode(o,i))}return r1(...n)}var Zfe,Qfe,Jfe,WMe=$(()=>{f();Gfe();EE();xw();RZ();(function(e){function t(n,r,o=!1){if(n===\"address\"){let l=r;return Vfe(l),oN(l.toLowerCase(),o?32:0)}if(n===\"string\")return rN(r);if(n===\"bytes\")return r;if(n===\"bool\")return oN(Pfe(r),o?32:1);let i=n.match(jMe);if(i){let[l,d,m=\"256\"]=i,h=Number.parseInt(m)/8;return Uu(r,{size:o?32:h,signed:d===\"int\"})}let a=n.match(zMe);if(a){let[l,d]=a;if(Number.parseInt(d)!==(r.length-2)/2)throw new Zfe({expectedSize:Number.parseInt(d),value:r});return iN(r,o?32:0)}let c=n.match(HMe);if(c&&Array.isArray(r)){let[l,d]=c,m=[];for(let h=0;h<r.length;h++)m.push(t(d,r[h],!0));return m.length===0?\"0x\":r1(...m)}throw new Jfe(n)}e.encode=t})(Yfe||(Yfe={}));Zfe=class extends Dr{constructor({expectedSize:t,value:n}){super(`Size of bytes \"${n}\" (bytes${Kp(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.BytesSizeMismatchError\"})}},Qfe=class extends Dr{constructor({expectedLength:t,givenLength:n}){super([\"ABI encoding parameters/values length mismatch.\",`Expected length (parameters): ${t}`,`Given length (values): ${n}`].join(`\\n`)),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.LengthMismatchError\"})}},Jfe=class extends Dr{constructor(t){super(`Type \\\\`${t}\\\\` is not a valid ABI Type.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.InvalidTypeError\"})}}});var VMe=$(()=>{f()});var GMe=$(()=>{f()});var qMe=$(()=>{f()});var KMe=$(()=>{f()});var YMe=$(()=>{f()});var ZMe=$(()=>{f()});var QMe=$(()=>{f()});var JMe=$(()=>{f()});function Cc(e,t){let n=e%t;return n>=Zp?n:t+n}function Ns(e,t,n){let r=e;for(;t-- >Zp;)r*=r,r%=n;return r}function XMe(e,t){if(e===Zp)throw new Error(\"invert: expected non-zero number\");if(t<=Zp)throw new Error(\"invert: expected positive modulus, got \"+t);let n=Cc(e,t),r=t,o=Zp,i=Yl,a=Yl,c=Zp;for(;n!==Zp;){let d=r/n,m=r%n,h=o-a*d,g=i-c*d;r=n,n=m,o=a,i=c,a=h,c=g}if(r!==Yl)throw new Error(\"invert: does not exist\");return Cc(o,t)}function Xfe(e,t,n){if(!e.eql(e.sqr(t),n))throw new Error(\"Cannot find square root\")}function iDe(e,t){let n=(e.ORDER+Yl)/tDe,r=e.pow(t,n);return Xfe(e,r,t),r}function _2t(e,t){let n=(e.ORDER-nDe)/rDe,r=e.mul(t,Y3),o=e.pow(r,n),i=e.mul(t,o),a=e.mul(e.mul(i,Y3),o),c=e.mul(i,e.sub(a,e.ONE));return Xfe(e,c,t),c}function T2t(e){let t=Ud(e),n=aDe(e),r=n(t,t.neg(t.ONE)),o=n(t,r),i=n(t,t.neg(r)),a=(e+A2t)/oDe;return(c,l)=>{let d=c.pow(l,a),m=c.mul(d,r),h=c.mul(d,o),g=c.mul(d,i),y=c.eql(c.sqr(m),l),w=c.eql(c.sqr(h),l);d=c.cmov(d,m,y),m=c.cmov(g,h,w);let x=c.eql(c.sqr(m),l),I=c.cmov(d,m,x);return Xfe(c,I,l),I}}function aDe(e){if(e<eDe)throw new Error(\"sqrt is not defined for small field\");let t=e-Yl,n=0;for(;t%Y3===Zp;)t/=Y3,n++;let r=Y3,o=Ud(e);for(;$Me(o,r)===1;)if(r++>1e3)throw new Error(\"Cannot find square root: probably non-prime P\");if(n===1)return iDe;let i=o.pow(r,t),a=(t+Yl)/Y3;return function(l,d){if(l.is0(d))return d;if($Me(l,d)!==1)throw new Error(\"Cannot find square root\");let m=n,h=l.mul(l.ONE,i),g=l.pow(d,t),y=l.pow(d,a);for(;!l.eql(g,l.ONE);){if(l.is0(g))return l.ZERO;let w=1,x=l.sqr(g);for(;!l.eql(x,l.ONE);)if(w++,x=l.sqr(x),w===m)throw new Error(\"Cannot find square root\");let I=Yl<<BigInt(m-w-1),C=l.pow(h,I);m=w,h=l.sqr(C),g=l.mul(g,h),y=l.mul(y,C)}return y}}function C2t(e){return e%tDe===eDe?iDe:e%rDe===nDe?_2t:e%oDe===S2t?T2t(e):aDe(e)}function $fe(e){let t={ORDER:\"bigint\",MASK:\"bigint\",BYTES:\"number\",BITS:\"number\"},n=R2t.reduce((r,o)=>(r[o]=\"function\",r),t);return rT(e,n),e}function I2t(e,t,n){if(n<Zp)throw new Error(\"invalid exponent, negatives unsupported\");if(n===Zp)return e.ONE;if(n===Yl)return t;let r=e.ONE,o=t;for(;n>Zp;)n&Yl&&(r=e.mul(r,o)),o=e.sqr(o),n>>=Yl;return r}function cU(e,t,n=!1){let r=new Array(t.length).fill(n?e.ZERO:void 0),o=t.reduce((a,c,l)=>e.is0(c)?a:(r[l]=a,e.mul(a,c)),e.ONE),i=e.inv(o);return t.reduceRight((a,c,l)=>e.is0(c)?a:(r[l]=e.mul(a,r[l]),e.mul(a,c)),i),r}function $Me(e,t){let n=(e.ORDER-Yl)/Y3,r=e.pow(t,n),o=e.eql(r,e.ONE),i=e.eql(r,e.ZERO),a=e.eql(r,e.neg(e.ONE));if(!o&&!i&&!a)throw new Error(\"invalid Legendre symbol result\");return o?1:i?0:-1}function IZ(e,t){t!==void 0&&Mb(t);let n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function Ud(e,t,n=!1,r={}){if(e<=Zp)throw new Error(\"invalid field: expected ORDER > 0, got \"+e);let o,i,a=!1,c;if(typeof t==\"object\"&&t!=null){if(r.sqrt||n)throw new Error(\"cannot specify opts in two arguments\");let g=t;g.BITS&&(o=g.BITS),g.sqrt&&(i=g.sqrt),typeof g.isLE==\"boolean\"&&(n=g.isLE),typeof g.modFromBytes==\"boolean\"&&(a=g.modFromBytes),c=g.allowedLengths}else typeof t==\"number\"&&(o=t),r.sqrt&&(i=r.sqrt);let{nBitLength:l,nByteLength:d}=IZ(e,o);if(d>2048)throw new Error(\"invalid field: expected ORDER of <= 2048 bytes\");let m,h=Object.freeze({ORDER:e,isLE:n,BITS:l,BYTES:d,MASK:SE(l),ZERO:Zp,ONE:Yl,allowedLengths:c,create:g=>Cc(g,e),isValid:g=>{if(typeof g!=\"bigint\")throw new Error(\"invalid field element: expected bigint, got \"+typeof g);return Zp<=g&&g<e},is0:g=>g===Zp,isValidNot0:g=>!h.is0(g)&&h.isValid(g),isOdd:g=>(g&Yl)===Yl,neg:g=>Cc(-g,e),eql:(g,y)=>g===y,sqr:g=>Cc(g*g,e),add:(g,y)=>Cc(g+y,e),sub:(g,y)=>Cc(g-y,e),mul:(g,y)=>Cc(g*y,e),pow:(g,y)=>I2t(h,g,y),div:(g,y)=>Cc(g*XMe(y,e),e),sqrN:g=>g*g,addN:(g,y)=>g+y,subN:(g,y)=>g-y,mulN:(g,y)=>g*y,inv:g=>XMe(g,e),sqrt:i||(g=>(m||(m=C2t(e)),m(h,g))),toBytes:g=>n?iZ(g,d):QL(g,d),fromBytes:(g,y=!0)=>{if(c){if(!c.includes(g.length)||g.length>d)throw new Error(\"Field.fromBytes: expected \"+c+\" bytes, got \"+g.length);let x=new Uint8Array(d);x.set(g,n?0:x.length-g.length),g=x}if(g.length!==d)throw new Error(\"Field.fromBytes: expected \"+d+\" bytes, got \"+g.length);let w=n?ww(g):j3(g);if(a&&(w=Cc(w,e)),!y&&!h.isValid(w))throw new Error(\"invalid field element: outside of range 0..ORDER\");return w},invertBatch:g=>cU(h,g),cmov:(g,y,w)=>w?y:g});return Object.freeze(h)}function sDe(e){if(typeof e!=\"bigint\")throw new Error(\"field order must be bigint\");let t=e.toString(2).length;return Math.ceil(t/8)}function epe(e){let t=sDe(e);return t+Math.ceil(t/2)}function tpe(e,t,n=!1){let r=e.length,o=sDe(t),i=epe(t);if(r<16||r<i||r>1024)throw new Error(\"expected \"+i+\"-1024 bytes of input, got \"+r);let a=n?ww(e):j3(e),c=Cc(a,t-Yl)+Yl;return n?iZ(c,o):QL(c,o)}var Zp,Yl,Y3,eDe,tDe,nDe,A2t,rDe,S2t,oDe,TE,R2t,Z3=$(()=>{f();V3();Zp=BigInt(0),Yl=BigInt(1),Y3=BigInt(2),eDe=BigInt(3),tDe=BigInt(4),nDe=BigInt(5),A2t=BigInt(7),rDe=BigInt(8),S2t=BigInt(9),oDe=BigInt(16);TE=(e,t)=>(Cc(e,t)&Yl)===Yl,R2t=[\"create\",\"isValid\",\"is0\",\"neg\",\"inv\",\"sqrt\",\"sqr\",\"eql\",\"add\",\"sub\",\"mul\",\"pow\",\"div\",\"addN\",\"subN\",\"mulN\",\"sqrN\"]});function uU(e,t){let n=t.negate();return e?n:t}function CE(e,t){let n=cU(e.Fp,t.map(r=>r.Z));return t.map((r,o)=>e.fromAffine(r.toAffine(n[o])))}function dDe(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error(\"invalid window size, expected [1..\"+t+\"], got W=\"+e)}function npe(e,t){dDe(e,t);let n=Math.ceil(t/e)+1,r=2**(e-1),o=2**e,i=SE(e),a=BigInt(e);return{windows:n,windowSize:r,mask:i,maxNumber:o,shiftBy:a}}function cDe(e,t,n){let{windowSize:r,mask:o,maxNumber:i,shiftBy:a}=n,c=Number(e&o),l=e>>a;c>r&&(c-=i,l+=Q3);let d=t*r,m=d+Math.abs(c)-1,h=c===0,g=c<0,y=t%2!==0;return{nextN:l,offset:m,isZero:h,isNeg:g,isNegF:y,offsetF:d}}function k2t(e,t){if(!Array.isArray(e))throw new Error(\"array expected\");e.forEach((n,r)=>{if(!(n instanceof t))throw new Error(\"invalid point at index \"+r)})}function O2t(e,t){if(!Array.isArray(e))throw new Error(\"array of scalars expected\");e.forEach((n,r)=>{if(!t.isValid(n))throw new Error(\"invalid scalar at index \"+r)})}function ope(e){return fDe.get(e)||1}function uDe(e){if(e!==uN)throw new Error(\"invalid wNAF\")}function pDe(e,t,n,r){let o=t,i=e.ZERO,a=e.ZERO;for(;n>uN||r>uN;)n&Q3&&(i=i.add(o)),r&Q3&&(a=a.add(o)),o=o.double(),n>>=Q3,r>>=Q3;return{p1:i,p2:a}}function dN(e,t,n,r){k2t(n,e),O2t(r,t);let o=n.length,i=r.length;if(o!==i)throw new Error(\"arrays of points and scalars must have equal length\");let a=e.ZERO,c=JL(BigInt(o)),l=1;c>12?l=c-3:c>4?l=c-2:c>0&&(l=2);let d=SE(l),m=new Array(Number(d)+1).fill(a),h=Math.floor((t.BITS-1)/l)*l,g=a;for(let y=h;y>=0;y-=l){m.fill(a);for(let x=0;x<i;x++){let I=r[x],C=Number(I>>BigInt(y)&d);m[C]=m[C].add(n[x])}let w=a;for(let x=m.length-1,I=a;x>0;x--)I=I.add(m[x]),w=w.add(I);if(g=g.add(w),y!==0)for(let x=0;x<l;x++)g=g.double()}return g}function lDe(e,t,n){if(t){if(t.ORDER!==e)throw new Error(\"Field.ORDER must match order: Fp == p, Fn == n\");return $fe(t),t}else return Ud(e,{isLE:n})}function kZ(e,t,n={},r){if(r===void 0&&(r=e===\"edwards\"),!t||typeof t!=\"object\")throw new Error(`expected valid ${e} CURVE object`);for(let l of[\"p\",\"n\",\"h\"]){let d=t[l];if(!(typeof d==\"bigint\"&&d>uN))throw new Error(`CURVE.${l} must be positive bigint`)}let o=lDe(t.p,n.Fp,r),i=lDe(t.n,n.Fn,r),c=[\"Gx\",\"Gy\",\"a\",e===\"weierstrass\"?\"b\":\"d\"];for(let l of c)if(!o.isValid(t[l]))throw new Error(`CURVE.${l} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:o,Fn:i}}var uN,Q3,rpe,fDe,lN,OZ=$(()=>{f();V3();Z3();uN=BigInt(0),Q3=BigInt(1);rpe=new WeakMap,fDe=new WeakMap;lN=class{constructor(t,n){this.BASE=t.BASE,this.ZERO=t.ZERO,this.Fn=t.Fn,this.bits=n}_unsafeLadder(t,n,r=this.ZERO){let o=t;for(;n>uN;)n&Q3&&(r=r.add(o)),o=o.double(),n>>=Q3;return r}precomputeWindow(t,n){let{windows:r,windowSize:o}=npe(n,this.bits),i=[],a=t,c=a;for(let l=0;l<r;l++){c=a,i.push(c);for(let d=1;d<o;d++)c=c.add(a),i.push(c);a=c.double()}return i}wNAF(t,n,r){if(!this.Fn.isValid(r))throw new Error(\"invalid scalar\");let o=this.ZERO,i=this.BASE,a=npe(t,this.bits);for(let c=0;c<a.windows;c++){let{nextN:l,offset:d,isZero:m,isNeg:h,isNegF:g,offsetF:y}=cDe(r,c,a);r=l,m?i=i.add(uU(g,n[y])):o=o.add(uU(h,n[d]))}return uDe(r),{p:o,f:i}}wNAFUnsafe(t,n,r,o=this.ZERO){let i=npe(t,this.bits);for(let a=0;a<i.windows&&r!==uN;a++){let{nextN:c,offset:l,isZero:d,isNeg:m}=cDe(r,a,i);if(r=c,!d){let h=n[l];o=o.add(m?h.negate():h)}}return uDe(r),o}getPrecomputes(t,n,r){let o=rpe.get(n);return o||(o=this.precomputeWindow(n,t),t!==1&&(typeof r==\"function\"&&(o=r(o)),rpe.set(n,o))),o}cached(t,n,r){let o=ope(t);return this.wNAF(o,this.getPrecomputes(o,t,r),n)}unsafe(t,n,r,o){let i=ope(t);return i===1?this._unsafeLadder(t,n,o):this.wNAFUnsafe(i,this.getPrecomputes(i,t,r),n,o)}createCache(t,n){dDe(n,this.bits),fDe.set(t,n),rpe.delete(t)}hasCache(t){return ope(t)!==1}}});function N2t(e,t,n){let[[r,o],[i,a]]=t,c=hDe(a*e,n),l=hDe(-o*e,n),d=e-c*r-l*i,m=-c*o-l*a,h=d<IE,g=m<IE;h&&(d=-d),g&&(m=-m);let y=SE(Math.ceil(JL(n)/2))+pN;if(d<IE||d>=y||m<IE||m>=y)throw new Error(\"splitScalar (endomorphism): failed, k=\"+e);return{k1neg:h,k1:d,k2neg:g,k2:m}}function ape(e){if(![\"compact\",\"recovered\",\"der\"].includes(e))throw new Error(\\'Signature format must be \"compact\", \"recovered\", or \"der\"\\');return e}function ipe(e,t){let n={};for(let r of Object.keys(t))n[r]=e[r]===void 0?t[r]:e[r];return AE(n.lowS,\"lowS\"),AE(n.prehash,\"prehash\"),n.format!==void 0&&ape(n.format),n}function fN(e,t){let{BYTES:n}=e,r;if(typeof t==\"bigint\")r=t;else{let o=Zi(\"private key\",t);try{r=e.fromBytes(o)}catch{throw new Error(`invalid private key: expected ui8a of size ${n}, got ${typeof t}`)}}if(!e.isValidNot0(r))throw new Error(\"invalid private key: out of range [1..N-1]\");return r}function M2t(e,t={}){let n=kZ(\"weierstrass\",e,t),{Fp:r,Fn:o}=n,i=n.CURVE,{h:a,n:c}=i;rT(t,{},{allowInfinityPoint:\"boolean\",clearCofactor:\"function\",isTorsionFree:\"function\",fromBytes:\"function\",toBytes:\"function\",endo:\"object\",wrapPrivateKey:\"boolean\"});let{endo:l}=t;if(l&&(!r.is0(i.a)||typeof l.beta!=\"bigint\"||!Array.isArray(l.basises)))throw new Error(\\'invalid endo: expected \"beta\": bigint and \"basises\": array\\');let d=yDe(r,o);function m(){if(!r.isOdd)throw new Error(\"compression is not supported: Field does not have .isOdd()\")}function h(X,F,R){let{x:O,y:U}=F.toAffine(),P=r.toBytes(O);if(AE(R,\"isCompressed\"),R){m();let L=!r.isOdd(U);return jl(gDe(L),P)}else return jl(Uint8Array.of(4),P,r.toBytes(U))}function g(X){g0(X,void 0,\"Point\");let{publicKey:F,publicKeyUncompressed:R}=d,O=X.length,U=X[0],P=X.subarray(1);if(O===F&&(U===2||U===3)){let L=r.fromBytes(P);if(!r.isValid(L))throw new Error(\"bad point: is not on curve, wrong x\");let W=x(L),q;try{q=r.sqrt(W)}catch(V){let oe=V instanceof Error?\": \"+V.message:\"\";throw new Error(\"bad point: is not on curve, sqrt error\"+oe)}m();let H=r.isOdd(q);return(U&1)===1!==H&&(q=r.neg(q)),{x:L,y:q}}else if(O===R&&U===4){let L=r.BYTES,W=r.fromBytes(P.subarray(0,L)),q=r.fromBytes(P.subarray(L,L*2));if(!I(W,q))throw new Error(\"bad point: is not on curve\");return{x:W,y:q}}else throw new Error(`bad point: got length ${O}, expected compressed=${F} or uncompressed=${R}`)}let y=t.toBytes||h,w=t.fromBytes||g;function x(X){let F=r.sqr(X),R=r.mul(F,X);return r.add(r.add(R,r.mul(X,i.a)),i.b)}function I(X,F){let R=r.sqr(F),O=x(X);return r.eql(R,O)}if(!I(i.Gx,i.Gy))throw new Error(\"bad curve params: generator point\");let C=r.mul(r.pow(i.a,NZ),P2t),M=r.mul(r.sqr(i.b),BigInt(27));if(r.is0(r.add(C,M)))throw new Error(\"bad curve params: a or b\");function B(X,F,R=!1){if(!r.isValid(F)||R&&r.is0(F))throw new Error(`bad point coordinate ${X}`);return F}function z(X){if(!(X instanceof ae))throw new Error(\"ProjectivePoint expected\")}function G(X){if(!l||!l.basises)throw new Error(\"no endo\");return N2t(X,l.basises,o.ORDER)}let J=W3((X,F)=>{let{X:R,Y:O,Z:U}=X;if(r.eql(U,r.ONE))return{x:R,y:O};let P=X.is0();F==null&&(F=P?r.ONE:r.inv(U));let L=r.mul(R,F),W=r.mul(O,F),q=r.mul(U,F);if(P)return{x:r.ZERO,y:r.ZERO};if(!r.eql(q,r.ONE))throw new Error(\"invZ was invalid\");return{x:L,y:W}}),ne=W3(X=>{if(X.is0()){if(t.allowInfinityPoint&&!r.is0(X.Y))return;throw new Error(\"bad point: ZERO\")}let{x:F,y:R}=X.toAffine();if(!r.isValid(F)||!r.isValid(R))throw new Error(\"bad point: x or y not field elements\");if(!I(F,R))throw new Error(\"bad point: equation left != right\");if(!X.isTorsionFree())throw new Error(\"bad point: not in prime-order subgroup\");return!0});function ie(X,F,R,O,U){return R=new ae(r.mul(R.X,X),R.Y,R.Z),F=uU(O,F),R=uU(U,R),F.add(R)}class ae{constructor(F,R,O){this.X=B(\"x\",F),this.Y=B(\"y\",R,!0),this.Z=B(\"z\",O),Object.freeze(this)}static CURVE(){return i}static fromAffine(F){let{x:R,y:O}=F||{};if(!F||!r.isValid(R)||!r.isValid(O))throw new Error(\"invalid affine point\");if(F instanceof ae)throw new Error(\"projective point not allowed\");return r.is0(R)&&r.is0(O)?ae.ZERO:new ae(R,O,r.ONE)}static fromBytes(F){let R=ae.fromAffine(w(g0(F,void 0,\"point\")));return R.assertValidity(),R}static fromHex(F){return ae.fromBytes(Zi(\"pointHex\",F))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(F=8,R=!0){return Z.createCache(this,F),R||this.multiply(NZ),this}assertValidity(){ne(this)}hasEvenY(){let{y:F}=this.toAffine();if(!r.isOdd)throw new Error(\"Field doesn\\'t support isOdd\");return!r.isOdd(F)}equals(F){z(F);let{X:R,Y:O,Z:U}=this,{X:P,Y:L,Z:W}=F,q=r.eql(r.mul(R,W),r.mul(P,U)),H=r.eql(r.mul(O,W),r.mul(L,U));return q&&H}negate(){return new ae(this.X,r.neg(this.Y),this.Z)}double(){let{a:F,b:R}=i,O=r.mul(R,NZ),{X:U,Y:P,Z:L}=this,W=r.ZERO,q=r.ZERO,H=r.ZERO,k=r.mul(U,U),V=r.mul(P,P),oe=r.mul(L,L),se=r.mul(U,P);return se=r.add(se,se),H=r.mul(U,L),H=r.add(H,H),W=r.mul(F,H),q=r.mul(O,oe),q=r.add(W,q),W=r.sub(V,q),q=r.add(V,q),q=r.mul(W,q),W=r.mul(se,W),H=r.mul(O,H),oe=r.mul(F,oe),se=r.sub(k,oe),se=r.mul(F,se),se=r.add(se,H),H=r.add(k,k),k=r.add(H,k),k=r.add(k,oe),k=r.mul(k,se),q=r.add(q,k),oe=r.mul(P,L),oe=r.add(oe,oe),k=r.mul(oe,se),W=r.sub(W,k),H=r.mul(oe,V),H=r.add(H,H),H=r.add(H,H),new ae(W,q,H)}add(F){z(F);let{X:R,Y:O,Z:U}=this,{X:P,Y:L,Z:W}=F,q=r.ZERO,H=r.ZERO,k=r.ZERO,V=i.a,oe=r.mul(i.b,NZ),se=r.mul(R,P),ue=r.mul(O,L),he=r.mul(U,W),be=r.add(R,O),we=r.add(P,L);be=r.mul(be,we),we=r.add(se,ue),be=r.sub(be,we),we=r.add(R,U);let Ie=r.add(P,W);return we=r.mul(we,Ie),Ie=r.add(se,he),we=r.sub(we,Ie),Ie=r.add(O,U),q=r.add(L,W),Ie=r.mul(Ie,q),q=r.add(ue,he),Ie=r.sub(Ie,q),k=r.mul(V,we),q=r.mul(oe,he),k=r.add(q,k),q=r.sub(ue,k),k=r.add(ue,k),H=r.mul(q,k),ue=r.add(se,se),ue=r.add(ue,se),he=r.mul(V,he),we=r.mul(oe,we),ue=r.add(ue,he),he=r.sub(se,he),he=r.mul(V,he),we=r.add(we,he),se=r.mul(ue,we),H=r.add(H,se),se=r.mul(Ie,we),q=r.mul(be,q),q=r.sub(q,se),se=r.mul(be,ue),k=r.mul(Ie,k),k=r.add(k,se),new ae(q,H,k)}subtract(F){return this.add(F.negate())}is0(){return this.equals(ae.ZERO)}multiply(F){let{endo:R}=t;if(!o.isValidNot0(F))throw new Error(\"invalid scalar: out of range\");let O,U,P=L=>Z.cached(this,L,W=>CE(ae,W));if(R){let{k1neg:L,k1:W,k2neg:q,k2:H}=G(F),{p:k,f:V}=P(W),{p:oe,f:se}=P(H);U=V.add(se),O=ie(R.beta,k,oe,L,q)}else{let{p:L,f:W}=P(F);O=L,U=W}return CE(ae,[O,U])[0]}multiplyUnsafe(F){let{endo:R}=t,O=this;if(!o.isValid(F))throw new Error(\"invalid scalar: out of range\");if(F===IE||O.is0())return ae.ZERO;if(F===pN)return O;if(Z.hasCache(this))return this.multiply(F);if(R){let{k1neg:U,k1:P,k2neg:L,k2:W}=G(F),{p1:q,p2:H}=pDe(ae,O,P,W);return ie(R.beta,q,H,U,L)}else return Z.unsafe(O,F)}multiplyAndAddUnsafe(F,R,O){let U=this.multiplyUnsafe(R).add(F.multiplyUnsafe(O));return U.is0()?void 0:U}toAffine(F){return J(this,F)}isTorsionFree(){let{isTorsionFree:F}=t;return a===pN?!0:F?F(ae,this):Z.unsafe(this,c).is0()}clearCofactor(){let{clearCofactor:F}=t;return a===pN?this:F?F(ae,this):this.multiplyUnsafe(a)}isSmallOrder(){return this.multiplyUnsafe(a).is0()}toBytes(F=!0){return AE(F,\"isCompressed\"),this.assertValidity(),y(ae,this,F)}toHex(F=!0){return r0(this.toBytes(F))}toString(){return`<Point ${this.is0()?\"ZERO\":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(F=!0){return this.toBytes(F)}_setWindowSize(F){this.precompute(F)}static normalizeZ(F){return CE(ae,F)}static msm(F,R){return dN(ae,o,F,R)}static fromPrivateKey(F){return ae.BASE.multiply(fN(o,F))}}ae.BASE=new ae(i.Gx,i.Gy,r.ONE),ae.ZERO=new ae(r.ZERO,r.ONE,r.ZERO),ae.Fp=r,ae.Fn=o;let te=o.BITS,Z=new lN(ae,t.endo?Math.ceil(te/2):te);return ae.BASE.precompute(8),ae}function gDe(e){return Uint8Array.of(e?2:3)}function yDe(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function D2t(e,t={}){let{Fn:n}=e,r=t.randomBytes||Bb,o=Object.assign(yDe(e.Fp,n),{seed:epe(n.ORDER)});function i(y){try{return!!fN(n,y)}catch{return!1}}function a(y,w){let{publicKey:x,publicKeyUncompressed:I}=o;try{let C=y.length;return w===!0&&C!==x||w===!1&&C!==I?!1:!!e.fromBytes(y)}catch{return!1}}function c(y=r(o.seed)){return tpe(g0(y,o.seed,\"seed\"),n.ORDER)}function l(y,w=!0){return e.BASE.multiply(fN(n,y)).toBytes(w)}function d(y){let w=c(y);return{secretKey:w,publicKey:l(w)}}function m(y){if(typeof y==\"bigint\")return!1;if(y instanceof e)return!0;let{secretKey:w,publicKey:x,publicKeyUncompressed:I}=o;if(n.allowedLengths||w===x)return;let C=Zi(\"key\",y).length;return C===x||C===I}function h(y,w,x=!0){if(m(y)===!0)throw new Error(\"first arg must be private key\");if(m(w)===!1)throw new Error(\"second arg must be public key\");let I=fN(n,y);return e.fromHex(w).multiply(I).toBytes(x)}return Object.freeze({getPublicKey:l,getSharedSecret:h,keygen:d,Point:e,utils:{isValidSecretKey:i,isValidPublicKey:a,randomSecretKey:c,isValidPrivateKey:i,randomPrivateKey:c,normPrivateKeyToScalar:y=>fN(n,y),precompute(y=8,w=e.BASE){return w.precompute(y,!1)}},lengths:o})}function B2t(e,t,n={}){$V(t),rT(n,{},{hmac:\"function\",lowS:\"boolean\",randomBytes:\"function\",bits2int:\"function\",bits2int_modN:\"function\"});let r=n.randomBytes||Bb,o=n.hmac||((R,...O)=>FB(t,R,jl(...O))),{Fp:i,Fn:a}=e,{ORDER:c,BITS:l}=a,{keygen:d,getPublicKey:m,getSharedSecret:h,utils:g,lengths:y}=D2t(e,n),w={prehash:!1,lowS:typeof n.lowS==\"boolean\"?n.lowS:!1,format:void 0,extraEntropy:!1},x=\"compact\";function I(R){let O=c>>pN;return R>O}function C(R,O){if(!a.isValidNot0(O))throw new Error(`invalid signature ${R}: out of range 1..Point.Fn.ORDER`);return O}function M(R,O){ape(O);let U=y.signature,P=O===\"compact\"?U:O===\"recovered\"?U+1:void 0;return g0(R,P,`${O} signature`)}class B{constructor(O,U,P){this.r=C(\"r\",O),this.s=C(\"s\",U),P!=null&&(this.recovery=P),Object.freeze(this)}static fromBytes(O,U=x){M(O,U);let P;if(U===\"der\"){let{r:H,s:k}=RE.toSig(g0(O));return new B(H,k)}U===\"recovered\"&&(P=O[0],U=\"compact\",O=O.subarray(1));let L=a.BYTES,W=O.subarray(0,L),q=O.subarray(L,L*2);return new B(a.fromBytes(W),a.fromBytes(q),P)}static fromHex(O,U){return this.fromBytes(a_(O),U)}addRecoveryBit(O){return new B(this.r,this.s,O)}recoverPublicKey(O){let U=i.ORDER,{r:P,s:L,recovery:W}=this;if(W==null||![0,1,2,3].includes(W))throw new Error(\"recovery id invalid\");if(c*mDe<U&&W>1)throw new Error(\"recovery id is ambiguous for h>1 curve\");let H=W===2||W===3?P+c:P;if(!i.isValid(H))throw new Error(\"recovery id 2 or 3 invalid\");let k=i.toBytes(H),V=e.fromBytes(jl(gDe((W&1)===0),k)),oe=a.inv(H),se=G(Zi(\"msgHash\",O)),ue=a.create(-se*oe),he=a.create(L*oe),be=e.BASE.multiplyUnsafe(ue).add(V.multiplyUnsafe(he));if(be.is0())throw new Error(\"point at infinify\");return be.assertValidity(),be}hasHighS(){return I(this.s)}toBytes(O=x){if(ape(O),O===\"der\")return a_(RE.hexFromSig(this));let U=a.toBytes(this.r),P=a.toBytes(this.s);if(O===\"recovered\"){if(this.recovery==null)throw new Error(\"recovery bit must be present\");return jl(Uint8Array.of(this.recovery),U,P)}return jl(U,P)}toHex(O){return r0(this.toBytes(O))}assertValidity(){}static fromCompact(O){return B.fromBytes(Zi(\"sig\",O),\"compact\")}static fromDER(O){return B.fromBytes(Zi(\"sig\",O),\"der\")}normalizeS(){return this.hasHighS()?new B(this.r,a.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes(\"der\")}toDERHex(){return r0(this.toBytes(\"der\"))}toCompactRawBytes(){return this.toBytes(\"compact\")}toCompactHex(){return r0(this.toBytes(\"compact\"))}}let z=n.bits2int||function(O){if(O.length>8192)throw new Error(\"input is too large\");let U=j3(O),P=O.length*8-l;return P>0?U>>BigInt(P):U},G=n.bits2int_modN||function(O){return a.create(z(O))},J=SE(l);function ne(R){return $O(\"num < 2^\"+l,R,IE,J),a.toBytes(R)}function ie(R,O){return g0(R,void 0,\"message\"),O?g0(t(R),void 0,\"prehashed message\"):R}function ae(R,O,U){if([\"recovered\",\"canonical\"].some(ue=>ue in U))throw new Error(\"sign() legacy options not supported\");let{lowS:P,prehash:L,extraEntropy:W}=ipe(U,w);R=ie(R,L);let q=G(R),H=fN(a,O),k=[ne(H),ne(q)];if(W!=null&&W!==!1){let ue=W===!0?r(y.secretKey):W;k.push(Zi(\"extraEntropy\",ue))}let V=jl(...k),oe=q;function se(ue){let he=z(ue);if(!a.isValidNot0(he))return;let be=a.inv(he),we=e.BASE.multiply(he).toAffine(),Ie=a.create(we.x);if(Ie===IE)return;let _e=a.create(be*a.create(oe+Ie*H));if(_e===IE)return;let Ve=(we.x===Ie?0:2)|Number(we.y&pN),Et=_e;return P&&I(_e)&&(Et=a.neg(_e),Ve^=1),new B(Ie,Et,Ve)}return{seed:V,k2sig:se}}function te(R,O,U={}){R=Zi(\"message\",R);let{seed:P,k2sig:L}=ae(R,O,U);return Tfe(t.outputLen,a.BYTES,o)(P,L)}function Z(R){let O,U=typeof R==\"string\"||Wv(R),P=!U&&R!==null&&typeof R==\"object\"&&typeof R.r==\"bigint\"&&typeof R.s==\"bigint\";if(!U&&!P)throw new Error(\"invalid signature, expected Uint8Array, hex string or Signature instance\");if(P)O=new B(R.r,R.s);else if(U){try{O=B.fromBytes(Zi(\"sig\",R),\"der\")}catch(L){if(!(L instanceof RE.Err))throw L}if(!O)try{O=B.fromBytes(Zi(\"sig\",R),\"compact\")}catch{return!1}}return O||!1}function X(R,O,U,P={}){let{lowS:L,prehash:W,format:q}=ipe(P,w);if(U=Zi(\"publicKey\",U),O=ie(Zi(\"message\",O),W),\"strict\"in P)throw new Error(\"options.strict was renamed to lowS\");let H=q===void 0?Z(R):B.fromBytes(Zi(\"sig\",R),q);if(H===!1)return!1;try{let k=e.fromBytes(U);if(L&&H.hasHighS())return!1;let{r:V,s:oe}=H,se=G(O),ue=a.inv(oe),he=a.create(se*ue),be=a.create(V*ue),we=e.BASE.multiplyUnsafe(he).add(k.multiplyUnsafe(be));return we.is0()?!1:a.create(we.x)===V}catch{return!1}}function F(R,O,U={}){let{prehash:P}=ipe(U,w);return O=ie(O,P),B.fromBytes(R,\"recovered\").recoverPublicKey(O).toBytes()}return Object.freeze({keygen:d,getPublicKey:m,getSharedSecret:h,utils:g,lengths:y,Point:e,sign:te,verify:X,recoverPublicKey:F,Signature:B,hash:t})}function L2t(e){let t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp,r=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(a=>Math.ceil(a/2)))):void 0,o=Ud(t.n,{BITS:e.nBitLength,allowedLengths:r,modFromBytes:e.wrapPrivateKey}),i={Fp:n,Fn:o,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:t,curveOpts:i}}function U2t(e){let{CURVE:t,curveOpts:n}=L2t(e),r={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:n,hash:e.hash,ecdsaOpts:r}}function F2t(e,t){let n=t.Point;return Object.assign({},t,{ProjectivePoint:n,CURVE:Object.assign({},e,IZ(n.Fn.ORDER,n.Fn.BITS))})}function bDe(e){let{CURVE:t,curveOpts:n,hash:r,ecdsaOpts:o}=U2t(e),i=M2t(t,n),a=B2t(i,r,o);return F2t(e,a)}var hDe,spe,RE,IE,pN,mDe,NZ,P2t,vDe=$(()=>{f();Eue();Ig();V3();OZ();Z3();hDe=(e,t)=>(e+(e>=0?t:-t)/mDe)/t;spe=class extends Error{constructor(t=\"\"){super(t)}},RE={Err:spe,_tlv:{encode:(e,t)=>{let{Err:n}=RE;if(e<0||e>256)throw new n(\"tlv.encode: wrong tag\");if(t.length&1)throw new n(\"tlv.encode: unpadded data\");let r=t.length/2,o=XO(r);if(o.length/2&128)throw new n(\"tlv.encode: long form length too big\");let i=r>127?XO(o.length/2|128):\"\";return XO(e)+i+o+t},decode(e,t){let{Err:n}=RE,r=0;if(e<0||e>256)throw new n(\"tlv.encode: wrong tag\");if(t.length<2||t[r++]!==e)throw new n(\"tlv.decode: wrong tlv\");let o=t[r++],i=!!(o&128),a=0;if(!i)a=o;else{let l=o&127;if(!l)throw new n(\"tlv.decode(long): indefinite length not supported\");if(l>4)throw new n(\"tlv.decode(long): byte length is too big\");let d=t.subarray(r,r+l);if(d.length!==l)throw new n(\"tlv.decode: length bytes not complete\");if(d[0]===0)throw new n(\"tlv.decode(long): zero leftmost byte\");for(let m of d)a=a<<8|m;if(r+=l,a<128)throw new n(\"tlv.decode(long): not minimal encoding\")}let c=t.subarray(r,r+a);if(c.length!==a)throw new n(\"tlv.decode: wrong value length\");return{v:c,l:t.subarray(r+a)}}},_int:{encode(e){let{Err:t}=RE;if(e<IE)throw new t(\"integer: negative integers are not allowed\");let n=XO(e);if(Number.parseInt(n[0],16)&8&&(n=\"00\"+n),n.length&1)throw new t(\"unexpected DER parsing assertion: unpadded hex\");return n},decode(e){let{Err:t}=RE;if(e[0]&128)throw new t(\"invalid signature integer: negative\");if(e[0]===0&&!(e[1]&128))throw new t(\"invalid signature integer: unnecessary leading zero\");return j3(e)}},toSig(e){let{Err:t,_int:n,_tlv:r}=RE,o=Zi(\"signature\",e),{v:i,l:a}=r.decode(48,o);if(a.length)throw new t(\"invalid signature: left bytes after parsing\");let{v:c,l}=r.decode(2,i),{v:d,l:m}=r.decode(2,l);if(m.length)throw new t(\"invalid signature: left bytes after parsing\");return{r:n.decode(c),s:n.decode(d)}},hexFromSig(e){let{_tlv:t,_int:n}=RE,r=t.encode(2,n.encode(e.r)),o=t.encode(2,n.encode(e.s)),i=r+o;return t.encode(48,i)}},IE=BigInt(0),pN=BigInt(1),mDe=BigInt(2),NZ=BigInt(3),P2t=BigInt(4)});function hN(e,t){let n=r=>bDe({...e,hash:r});return{...n(t),create:n}}var cpe=$(()=>{f();vDe();});function z2t(e){let t=lpe.p,n=BigInt(3),r=BigInt(6),o=BigInt(11),i=BigInt(22),a=BigInt(23),c=BigInt(44),l=BigInt(88),d=e*e*e%t,m=d*d*e%t,h=Ns(m,n,t)*m%t,g=Ns(h,n,t)*m%t,y=Ns(g,wDe,t)*d%t,w=Ns(y,o,t)*y%t,x=Ns(w,i,t)*w%t,I=Ns(x,c,t)*x%t,C=Ns(I,l,t)*I%t,M=Ns(C,c,t)*x%t,B=Ns(M,n,t)*m%t,z=Ns(B,a,t)*w%t,G=Ns(z,r,t)*d%t,J=Ns(G,wDe,t);if(!upe.eql(upe.sqr(J),e))throw new Error(\"Cannot find square root\");return J}var lpe,H2t,wDe,upe,iT,dpe=$(()=>{f();L8();cpe();Z3();lpe={p:BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f\"),n:BigInt(\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt(\"0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\"),Gy:BigInt(\"0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8\")},H2t={beta:BigInt(\"0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\"),basises:[[BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\"),-BigInt(\"0xe4437ed6010e88286f547fa90abfe4c3\")],[BigInt(\"0x114ca50f7a8e2f3f657c1108d9d44cfd8\"),BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\")]]},wDe=BigInt(2);upe=Ud(lpe.p,{sqrt:z2t}),iT=hN({...lpe,Fp:upe,lowS:!0,endo:H2t},Lb)});var ey={};as(ey,{InvalidRError:()=>MZ,InvalidSError:()=>DZ,InvalidSerializedSizeError:()=>PZ,InvalidVError:()=>BZ,InvalidYParityError:()=>J3,MissingPropertiesError:()=>mN,assert:()=>LZ,extract:()=>j2t,from:()=>fpe,fromBytes:()=>xDe,fromDerBytes:()=>W2t,fromDerHex:()=>EDe,fromHex:()=>X3,fromLegacy:()=>ADe,fromRpc:()=>SDe,fromTuple:()=>V2t,toBytes:()=>G2t,toDerBytes:()=>q2t,toDerHex:()=>K2t,toHex:()=>_De,toLegacy:()=>Y2t,toRpc:()=>Z2t,toTuple:()=>Q2t,vToYParity:()=>UZ,validate:()=>J2t,yParityToV:()=>ppe});function LZ(e,t={}){let{recovered:n}=t;if(typeof e.r>\"u\")throw new mN({signature:e});if(typeof e.s>\"u\")throw new mN({signature:e});if(n&&typeof e.yParity>\"u\")throw new mN({signature:e});if(e.r<0n||e.r>qfe)throw new MZ({value:e.r});if(e.s<0n||e.s>qfe)throw new DZ({value:e.s});if(typeof e.yParity==\"number\"&&e.yParity!==0&&e.yParity!==1)throw new J3({value:e.yParity})}function xDe(e){return X3(Tc(e))}function X3(e){if(e.length!==130&&e.length!==132)throw new PZ({signature:e});let t=BigInt($g(e,0,32)),n=BigInt($g(e,32,64)),r=(()=>{let o=+`0x${e.slice(130)}`;if(!Number.isNaN(o))try{return UZ(o)}catch{throw new J3({value:o})}})();return typeof r>\"u\"?{r:t,s:n}:{r:t,s:n,yParity:r}}function j2t(e){if(!(typeof e.r>\"u\")&&!(typeof e.s>\"u\"))return fpe(e)}function fpe(e){let t=typeof e==\"string\"?X3(e):e instanceof Uint8Array?xDe(e):typeof e.r==\"string\"?SDe(e):e.v?ADe(e):{r:e.r,s:e.s,...typeof e.yParity<\"u\"?{yParity:e.yParity}:{}};return LZ(t),t}function W2t(e){return EDe(Tc(e))}function EDe(e){let{r:t,s:n}=iT.Signature.fromDER(nN(e).slice(2));return{r:t,s:n}}function ADe(e){return{r:e.r,s:e.s,yParity:UZ(e.v)}}function SDe(e){let t=(()=>{let n=e.v?Number(e.v):void 0,r=e.yParity?Number(e.yParity):void 0;if(typeof n==\"number\"&&typeof r!=\"number\"&&(r=UZ(n)),typeof r!=\"number\")throw new J3({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function V2t(e){let[t,n,r]=e;return fpe({r:n===\"0x\"?0n:BigInt(n),s:r===\"0x\"?0n:BigInt(r),yParity:t===\"0x\"?0:Number(t)})}function G2t(e){return Kl(_De(e))}function _De(e){LZ(e);let t=e.r,n=e.s;return r1(Uu(t,{size:32}),Uu(n,{size:32}),typeof e.yParity==\"number\"?Uu(ppe(e.yParity),{size:1}):\"0x\")}function q2t(e){return new iT.Signature(e.r,e.s).toDERRawBytes()}function K2t(e){return`0x${new iT.Signature(e.r,e.s).toDERHex()}`}function Y2t(e){return{r:e.r,s:e.s,v:ppe(e.yParity)}}function Z2t(e){let{r:t,s:n,yParity:r}=e;return{r:Uu(t,{size:32}),s:Uu(n,{size:32}),yParity:r===0?\"0x0\":\"0x1\"}}function Q2t(e){let{r:t,s:n,yParity:r}=e;return[r?\"0x01\":\"0x\",t===0n?\"0x\":iU(Uu(t)),n===0n?\"0x\":iU(Uu(n))]}function J2t(e,t={}){try{return LZ(e,t),!0}catch{return!1}}function UZ(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new BZ({value:e})}function ppe(e){if(e===0)return 27;if(e===1)return 28;throw new J3({value:e})}var PZ,mN,MZ,DZ,J3,BZ,FZ=$(()=>{f();dpe();Xg();EE();xw();eN();RZ();PZ=class extends Dr{constructor({signature:t}){super(`Value \\\\`${t}\\\\` is an invalid signature size.`,{metaMessages:[\"Expected: 64 bytes or 65 bytes.\",`Received ${Kp(nN(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSerializedSizeError\"})}},mN=class extends Dr{constructor({signature:t}){super(`Signature \\\\`${oT(t)}\\\\` is missing either an \\\\`r\\\\`, \\\\`s\\\\`, or \\\\`yParity\\\\` property.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.MissingPropertiesError\"})}},MZ=class extends Dr{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidRError\"})}},DZ=class extends Dr{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSError\"})}},J3=class extends Dr{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidYParityError\"})}},BZ=class extends Dr{constructor({value:t}){super(`Value \\\\`${t}\\\\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidVError\"})}}});var TDe=$(()=>{f()});var CDe=$(()=>{f()});function nEt(e,t={}){let{pad:n=!0,url:r=!1}=t,o=new Uint8Array(Math.ceil(e.length/3)*4);for(let l=0,d=0;d<e.length;l+=4,d+=3){let m=(e[d]<<16)+(e[d+1]<<8)+(e[d+2]|0);o[l]=HZ[m>>18],o[l+1]=HZ[m>>12&63],o[l+2]=HZ[m>>6&63],o[l+3]=HZ[m&63]}let i=e.length%3,a=Math.floor(e.length/3)*4+(i&&i+1),c=tEt.decode(new Uint8Array(o.buffer,0,a));return n&&i===1&&(c+=\"==\"),n&&i===2&&(c+=\"=\"),r&&(c=c.replaceAll(\"+\",\"-\").replaceAll(\"/\",\"_\")),c}function RDe(e,t={}){return nEt(Kl(e),t)}function jZ(e){let t=e.replace(/=+$/,\"\"),n=t.length,r=new Uint8Array(n+3);eEt.encodeInto(t+\"===\",r);for(let i=0,a=0;i<t.length;i+=4,a+=3){let c=(zZ[r[i]]<<18)+(zZ[r[i+1]]<<12)+(zZ[r[i+2]]<<6)+zZ[r[i+3]];r[a]=c>>16,r[a+1]=c>>8&255,r[a+2]=c&255}let o=(n>>2)*3+(n%4&&n%4-1);return new Uint8Array(r.buffer,0,o)}var eEt,tEt,HZ,zZ,hpe=$(()=>{f();Xg();eEt=new TextEncoder,tEt=new TextDecoder,HZ=Object.fromEntries(Array.from(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\").map((e,t)=>[t,e.charCodeAt(0)])),zZ={...Object.fromEntries(Array.from(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\").map((e,t)=>[e.charCodeAt(0),t])),61:0,45:62,95:63}});var kDe=$(()=>{f()});var ODe=$(()=>{f()});var NDe,iEt,PDe,aEt,IWn,MDe=$(()=>{f();NDe=6,iEt=32,PDe=4096,aEt=iEt*PDe,IWn=aEt*NDe-1-1*PDe*NDe});var DDe=$(()=>{f()});var BDe=$(()=>{f()});var LDe=$(()=>{f()});var UDe=$(()=>{f()});var FDe=$(()=>{f()});var HDe=$(()=>{f()});var zDe=$(()=>{f()});var jDe=$(()=>{f()});function yEt(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),o=1,i=[0,1];for(let G=1;G<r;G++)i.push(o+=n());let a=n(),c=t;t+=a;let l=0,d=0;function m(){return l==0&&(d=d<<8|e[t++],l=8),d>>--l&1}let h=31,g=2**h,y=g>>>1,w=y>>1,x=g-1,I=0;for(let G=0;G<h;G++)I=I<<1|m();let C=[],M=0,B=g;for(;;){let G=Math.floor(((I-M+1)*o-1)/B),J=0,ne=r;for(;ne-J>1;){let te=J+ne>>>1;G<i[te]?ne=te:J=te}if(J==0)break;C.push(J);let ie=M+Math.floor(B*i[J]/o),ae=M+Math.floor(B*i[J+1]/o)-1;for(;((ie^ae)&y)==0;)I=I<<1&x|m(),ie=ie<<1&x,ae=ae<<1&x|1;for(;ie&~ae&w;)I=I&y|I<<1&x>>>1|m(),ie=ie<<1^y,ae=(ae^y)<<1|y|1;M=ie,B=1+ae-ie}let z=r-4;return C.map(G=>{switch(G-z){case 3:return z+65792+(e[c++]<<16|e[c++]<<8|e[c++]);case 2:return z+256+(e[c++]<<8|e[c++]);case 1:return z+e[c++];default:return G-1}})}function bEt(e){let t=0;return()=>e[t++]}function YDe(e){return bEt(yEt(vEt(e)))}function vEt(e){let t=[];[...\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\"].forEach((o,i)=>t[o.charCodeAt(0)]=i);let n=e.length,r=new Uint8Array(6*n>>3);for(let o=0,i=0,a=0,c=0;o<n;o++)c=c<<6|t[e.charCodeAt(o)],a+=6,a>=8&&(r[i++]=c>>(a-=8));return r}function wEt(e){return e&1?~e>>1:e>>1}function xEt(e,t){let n=Array(e);for(let r=0,o=0;r<e;r++)n[r]=o+=wEt(t());return n}function fU(e,t=0){let n=[];for(;;){let r=e(),o=e();if(!o)break;t+=r;for(let i=0;i<o;i++)n.push(t+i);t+=o+1}return n}function ZDe(e){return pU(()=>{let t=fU(e);if(t.length)return t})}function QDe(e){let t=[];for(;;){let n=e();if(n==0)break;t.push(EEt(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(AEt(n,e))}return t.flat()}function pU(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function JDe(e,t,n){let r=Array(e).fill().map(()=>[]);for(let o=0;o<t;o++)xEt(e,n).forEach((i,a)=>r[a].push(i));return r}function EEt(e,t){let n=1+t(),r=t(),o=pU(t);return JDe(o.length,1+e,t).flatMap((a,c)=>{let[l,...d]=a;return Array(o[c]).fill().map((m,h)=>{let g=h*r;return[l+h*n,d.map(y=>y+g)]})})}function AEt(e,t){let n=1+t();return JDe(n,1+e,t).map(o=>[o[0],o.slice(1)])}function SEt(e){let t=[],n=fU(e);return o(r([]),[]),t;function r(i){let a=e(),c=pU(()=>{let l=fU(e).map(d=>n[d]);if(l.length)return r(l)});return{S:a,B:c,Q:i}}function o({S:i,B:a},c,l){if(!(i&4&&l===c[c.length-1])){i&2&&(l=c[c.length-1]),i&1&&t.push(c);for(let d of a)for(let m of d.Q)o(d,[...c,m],l)}}}function _Et(e){return e.toString(16).toUpperCase().padStart(2,\"0\")}function XDe(e){return`{${_Et(e)}}`}function TEt(e){let t=[];for(let n=0,r=e.length;n<r;){let o=e.codePointAt(n);n+=o<65536?1:2,t.push(o)}return t}function bN(e){let n=e.length;if(n<4096)return String.fromCodePoint(...e);let r=[];for(let o=0;o<n;)r.push(String.fromCodePoint(...e.slice(o,o+=4096)));return r.join(\"\")}function CEt(e,t){let n=e.length,r=n-t.length;for(let o=0;r==0&&o<n;o++)r=e[o]-t[o];return r}function lU(e){return e>>24&255}function t7e(e){return e&16777215}function MEt(){let e=YDe(REt);gpe=new Map(ZDe(e).flatMap((t,n)=>t.map(r=>[r,n+1<<24]))),GDe=new Set(fU(e)),ype=new Map,WZ=new Map;for(let[t,n]of QDe(e)){if(!GDe.has(t)&&n.length==2){let[r,o]=n,i=WZ.get(r);i||(i=new Map,WZ.set(r,i)),i.set(o,t)}ype.set(t,n.reverse())}}function n7e(e){return e>=hU&&e<kEt}function DEt(e,t){if(e>=VZ&&e<OEt&&t>=GZ&&t<NEt)return hU+(e-VZ)*KZ+(t-GZ)*vN;if(n7e(e)&&t>qZ&&t<PEt&&(e-hU)%vN==0)return e+(t-qZ);{let n=WZ.get(e);return n&&(n=n.get(t),n)?n:-1}}function r7e(e){gpe||MEt();let t=[],n=[],r=!1;function o(i){let a=gpe.get(i);a&&(r=!0,i|=a),t.push(i)}for(let i of e)for(;;){if(i<128)t.push(i);else if(n7e(i)){let a=i-hU,c=a/KZ|0,l=a%KZ/vN|0,d=a%vN;o(VZ+c),o(GZ+l),d>0&&o(qZ+d)}else{let a=ype.get(i);a?n.push(...a):o(i)}if(!n.length)break;i=n.pop()}if(r&&t.length>1){let i=lU(t[0]);for(let a=1;a<t.length;a++){let c=lU(t[a]);if(c==0||i<=c){i=c;continue}let l=a-1;for(;;){let d=t[l+1];if(t[l+1]=t[l],t[l]=d,!l||(i=lU(t[--l]),i<=c))break}i=lU(t[a])}}return t}function BEt(e){let t=[],n=[],r=-1,o=0;for(let i of e){let a=lU(i),c=t7e(i);if(r==-1)a==0?r=c:t.push(c);else if(o>0&&o>=a)a==0?(t.push(r,...n),n.length=0,r=c):n.push(c),o=a;else{let l=DEt(r,c);l>=0?r=l:o==0&&a==0?(t.push(r),r=c):(n.push(c),o=a)}}return r>=0&&t.push(r,...n),t}function o7e(e){return r7e(e).map(t7e)}function LEt(e){return BEt(r7e(e))}function mU(e,t){return e.P.has(t)||e.Q.has(t)}function xpe(){if(vpe)return;let e=YDe(gEt),t=()=>fU(e),n=()=>new Set(t()),r=(m,h)=>h.forEach(g=>m.add(g));vpe=new Map(QDe(e)),c7e=n(),eR=t(),ZZ=new Set(t().map(m=>eR[m])),eR=new Set(eR),u7e=n(),UEt=n();let o=ZDe(e),i=e(),a=()=>{let m=new Set;return t().forEach(h=>r(m,o[h])),r(m,t()),m};yN=pU(m=>{let h=pU(e).map(g=>g+96);if(h.length){let g=m>=i;h[0]-=32,h=bN(h),g&&(h=`Restricted[${h}]`);let y=a(),w=a(),x=!e();return{N:h,P:y,Q:w,M:x,R:g}}}),mpe=n(),gN=new Map;let c=t().concat(YZ(mpe)).sort((m,h)=>m-h);c.forEach((m,h)=>{let g=e(),y=c[h]=g?c[h-g]:{V:[],M:new Map};y.V.push(m),mpe.has(m)||gN.set(m,y)});for(let{V:m,M:h}of new Set(gN.values())){let g=[];for(let w of m){let x=yN.filter(C=>mU(C,w)),I=g.find(({G:C})=>x.some(M=>C.has(M)));I||(I={G:new Set,V:[]},g.push(I)),I.V.push(w),r(I.G,x)}let y=g.flatMap(w=>YZ(w.G));for(let{G:w,V:x}of g){let I=new Set(y.filter(C=>!w.has(C)));for(let C of x)h.set(C,I)}}$3=new Set;let l=new Set,d=m=>$3.has(m)?l.add(m):$3.add(m);for(let m of yN){for(let h of m.P)d(h);for(let h of m.Q)d(h)}for(let m of $3)!gN.has(m)&&!l.has(m)&&gN.set(m,s7e);r($3,o7e($3)),KDe=SEt(e).map(m=>bpe.from(m)).sort(CEt),wpe=new Map;for(let m of KDe){let h=[wpe];for(let g of m){let y=h.map(w=>{let x=w.get(g);return x||(x=new Map,w.set(g,x)),x});g===a7e?h.push(...y):h=y}for(let g of h)g.V=m}}function Epe(e){return(l7e(e)?\"\":`${Ape(QZ([e]))} `)+XDe(e)}function Ape(e){return`\"${e}\"\\\\u200E`}function FEt(e){if(e.length>=4&&e[2]==qDe&&e[3]==qDe)throw new Error(`invalid label extension: \"${bN(e.slice(0,4))}\"`)}function HEt(e){for(let n=e.lastIndexOf(95);n>0;)if(e[--n]!==95)throw new Error(\"underscore allowed only at start\")}function zEt(e){let t=e[0],n=WDe.get(t);if(n)throw dU(`leading ${n}`);let r=e.length,o=-1;for(let i=1;i<r;i++){t=e[i];let a=WDe.get(t);if(a){if(o==i)throw dU(`${n} + ${a}`);o=i+1,n=a}}if(o==r)throw dU(`trailing ${n}`)}function QZ(e,t=1/0,n=XDe){let r=[];jEt(e[0])&&r.push(\"\\\\u25CC\"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let o=0,i=e.length;for(let a=0;a<i;a++){let c=e[a];l7e(c)&&(r.push(bN(e.slice(o,a))),r.push(n(c)),o=a+1)}return r.push(bN(e.slice(o,i))),r.join(\"\")}function jEt(e,t){return xpe(),t?ZZ.has(e):eR.has(e)}function l7e(e){return xpe(),u7e.has(e)}function Spe(e){return qEt(WEt(e,LEt,ZEt))}function WEt(e,t,n){if(!e)return[];xpe();let r=0;return e.split(i7e).map(o=>{let i=TEt(o),a={input:i,offset:r};r+=i.length+1;try{let c=a.tokens=YEt(i,t,n),l=c.length,d;if(!l)throw new Error(\"empty label\");let m=a.output=c.flat();if(HEt(m),!(a.emoji=l>1||c[0].is_emoji)&&m.every(g=>g<128))FEt(m),d=\"ASCII\";else{let g=c.flatMap(y=>y.is_emoji?[]:y);if(!g.length)d=\"Emoji\";else{if(eR.has(m[0]))throw dU(\"leading combining mark\");for(let x=1;x<l;x++){let I=c[x];if(!I.is_emoji&&eR.has(I[0]))throw dU(`emoji + combining mark: \"${bN(c[x-1])} + ${QZ([I[0]])}\"`)}zEt(m);let y=YZ(new Set(g)),[w]=GEt(y);KEt(w,g),VEt(w,y),d=w.N}}a.type=d}catch(c){a.error=c}return a})}function VEt(e,t){let n,r=[];for(let o of t){let i=gN.get(o);if(i===s7e)return;if(i){let a=i.M.get(o);if(n=n?n.filter(c=>a.has(c)):YZ(a),!n.length)return}else r.push(o)}if(n){for(let o of n)if(r.every(i=>mU(o,i)))throw new Error(`whole-script confusable: ${e.N}/${o.N}`)}}function GEt(e){let t=yN;for(let n of e){let r=t.filter(o=>mU(o,n));if(!r.length)throw yN.some(o=>mU(o,n))?f7e(t[0],n):d7e(n);if(t=r,r.length==1)break}return t}function qEt(e){return e.map(({input:t,error:n,output:r})=>{if(n){let o=n.message;throw new Error(e.length==1?o:`Invalid label ${Ape(QZ(t,63))}: ${o}`)}return bN(r)}).join(i7e)}function d7e(e){return new Error(`disallowed character: ${Epe(e)}`)}function f7e(e,t){let n=Epe(t),r=yN.find(o=>o.P.has(t));return r&&(n=`${r.N} ${n}`),new Error(`illegal mixture: ${e.N} + ${n}`)}function dU(e){return new Error(`illegal placement: ${e}`)}function KEt(e,t){for(let n of t)if(!mU(e,n))throw f7e(e,n);if(e.M){let n=o7e(t);for(let r=1,o=n.length;r<o;r++)if(ZZ.has(n[r])){let i=r+1;for(let a;i<o&&ZZ.has(a=n[i]);i++)for(let c=r;c<i;c++)if(n[c]==a)throw new Error(`duplicate non-spacing marks: ${Epe(a)}`);if(i-r>VDe)throw new Error(`excessive non-spacing marks: ${Ape(QZ(n.slice(r-1,i)))} (${i-r}/${VDe})`);r=i}}}function YEt(e,t,n){let r=[],o=[];for(e=e.slice().reverse();e.length;){let i=QEt(e);if(i)o.length&&(r.push(t(o)),o=[]),r.push(n(i));else{let a=e.pop();if($3.has(a))o.push(a);else{let c=vpe.get(a);if(c)o.push(...c);else if(!c7e.has(a))throw d7e(a)}}}return o.length&&r.push(t(o)),r}function ZEt(e){return e.filter(t=>t!=a7e)}function QEt(e,t){let n=wpe,r,o=e.length;for(;o&&(n=n.get(e[--o]),!!n);){let{V:i}=n;i&&(r=i,t&&t.push(...e.slice(o).reverse()),e.length=o)}return r}var gEt,WDe,VDe,REt,hU,VZ,GZ,qZ,$De,e7e,vN,KZ,IEt,kEt,OEt,NEt,PEt,gpe,GDe,ype,WZ,qDe,i7e,a7e,s7e,YZ,bpe,vpe,c7e,eR,ZZ,u7e,UEt,yN,mpe,gN,$3,KDe,wpe,_pe=$(()=>{f();gEt=\"AEkVMQnvDV0B0wKWAQYBQgDpATQAoQDcAIUApwBsAOMAcACTAEUAigBRAHkAPgA/ACwANwAoAGIAHgAvACsAJQAXAC8AHAAhACIALwAVACsAEQAiAAsAGwARABgAFwA7ACoAKwAsADQAFgAtABIAHAAhAA4AHQAdABUAFgAZAA0ADgAXABAAGQAUABIEtAYQASIUOjfDBdMAsQCuPwFnAKUBA10jAK5/Ly8vLwE/pwUJ6/0HPwbkMQVXBVgAPSs5APa2EQbIwQuUCkEDyJ4zAsUKLwKOoQKG2D+Ob4kCxcsCg/IBH98JAPKtAUECLY0KP48A4wDiChUAF9S5yAwLPZ0EG3cA/QI5GL0P6wkGKekFBIFnDRsHLQCrAGmR76WcfwBbBpMjBukAGwA7DJMAWxVbqft7uycM2yDPCLspA7EUOwD3LWujAKF9GAAXBCXXFgEdALkZzQT6CSBMNwmXCYgeG1ZZTOODQgATAAwAFQAOa1QAIQAOAEfuFdg98zlYypXmLgoQHV9NWD3sABMADAAVAA5rIFxAlwDD6wAbADkMxQAbFVup+3EB224cHQVbBeIC0J8CxLAKTBykZRRzGm1M9QC7DWcC4QALLTSJF8mRAoF7ARMbAL0NZwLhAAstAUhQJZFMCgMt+wUyCddpF60B10MASSsSdwIxFiEC6ye5N2sAOeEB9SUAxw7LtQEbY4EAsQUABQCK00kFG8MfBxcAqCfRAaErLQObAGcBChk+7Td0BBgXAKoBxwIhANMrEnM681CwBZA6dyc1SAX6JwVZBVivuAVpO11CEjpYQZd7k2ZfofgLEwPFByXxdyMEo0sCU1MCdRurJwGPo6U1WwNFFwSDYQkA0QarPy8jBykCOV0AawFhH3EAgx0ZAJUBSbcAJ2kXAa/FAzctIUNTAW9ZBmUCZQDxSRcDKQEFAElBAKsAXQBzACu1Bgfz7xmNfwAJIQApALMbRwHRAdsHCzGXeIHoAAoAEQA0AD0AODN3edPAEF8QXAFNCUxsOhULAqwPpgvlERUM0SrL09gANKkH6wNTB+sDUwNTB+sH6wNTB+sDUwNTA1MDUxwK8BrTwBBfD0gEbQWOBYsE1giDJkkRgQcoCNJUDXQeHEcDRQD8IyVJHDuTMwslQkwMTQMH/DZCbKd9OANHMatU9ZCiA8syTzlsAR5xEqAAKg9zHDW1Tn56R3GgCktPrrV/SWJOZwK+Oqg/+AohCZNvu3dOBj0QFyehEPMMLwGxATcN6UvUBO0GNwTFH3kZFQ/JlZgIoS3ZDOkm3y6dgFYj8Sp/BelL8DzZC0lRZA9VC2EJ3zpfgUoDHQEJIocK2Q01CGkQ7wrFZw3hEUEHNQPRSZYAoQb9Cw0dMRWxJgxiqAsFOXMG9xryC4smqxMlevgFzxodBkkBJRr7AMsu44WsWi1cGE9bBf8LISPDFKRQHA0hQLN4RBoXBxElpQKNQ2xKg1EyHo8h8jw5DWIuD1F4B/E8ARlLC308mkanRQoRzj6JPUQiRUwoBDF7LCsnhwnLD4EMtXxuAVUJHQmtDG0TLRETN8EINQcVKZcgJxEIHUaRYJYE85sD7xPNAwcFOwk9Bw8DsRwpEyoVJQUJgSDTAu820S6vAotWfAETBccPIR/bEExH3A7lCJcCYQN/JecAKRUdABMilwg/XwBbj9RTAS7HCMNqaCNwA2MU410RbweNDlMHoxwvFbsc3XDEXgeGBCifqwlXAXEJlQFbBN8IBTVXjJwgPWdPi1QYlyBdQTtd+AItDGEVm0S5h3QChw9nEhcBMQFvBzUM/QJzEekRZxCRCOeGADWxM/Q6IQRLIX8gDQojA0tsygsjJvUM9GUBnxJeAwg0OXfqZ6dgsiAX+QcVMsFBXCHtC45PyQyYGr0YPlQqGeAHuwPvGu8n5kFTBfsDnw86STPqBLkLZQiHCTsARQ6fEwfTGGYKbYzMAS2HAbOVA1ONfwJriwYzBwcAYweDBXXhABkCowifAAEAywNTADUCqQeZABUAgT0BOQMjKwEd4QKLA48ILccBkSsB7yUEF78MEQDzM25GAsOtAoBmZp4F2VQCigJFMQFJIQQBSkNNA6tt3QDXAEcGD9tDARGnRscW3z8B22snAMMA9wABMQcBPQHJAe9pALMBWwstCZ6vsQFJ5SUAfwARZwHTAoUA2QAxAHvtAU8ASQVV9QXPAktFAQ0tFCdTXQG3AxsBLwEJAHUGx4mhxQMbBGkHzwIQFxXdAu8qB7EDItsTyULBAr3aUQAyEgo0CrUKtB9f81wvAi1uPUwACh+kPsM/SgVNO087VDtPO1Q7TztUO087VDtPO1QDk7veu94KaF9BYecMog3QRMQ6RRPXYE1gLhPELbMUvRXKJVIZORq4JwEl4FUFDwAtz2YsCCg0cRe4ADspZIM9Y4IeLApHHONTjVT0LRcArUueM6sNqBsRRDwFQ3XpYiYWCgoeAmR9AmI+V0mrVzccAqHzAmiUAmYFAp+AOBcHAmY3AmYiBGoEewN/DwN+jjkCOXMTOX46Hx8CbBkCMjI4BgJtwwJtquuGL2NBJwFjANoA3QBGAQeUDIkA+ge+AAmxAncrAnaeOwJ5Rz8CeLYZWNdFqkbTAnw7AnrEAn0FAnzsBVUFHEf8SHlfIAAnEUlUSlcRE0rIAtD9AtDISyMDiEsDh+JEwZEuAvKdXP8DA6pLykwpIctNSE2rAos7AorUvRcDGT9jAbMCjjMCjlg8k30CjtUCjlh0UbBTMQZS0FSBApP3ApMIAOUAGFUaVatVzAIsFymRgjLdeGJFNzUCl5sC765YHaQAVSEClosClniYAKVZqFoFfUkANwKWsQKWSlxAXM0CmccCmWBcxl0DFQKclzm+OpkCnBICn5cCnrSGABkLLSYLAp3tAp6OALE5YTBh6wKezwKgagGlAp6bGwKeSqFjxGQjIScCJ6sCJnoCoPcCoEgCotkCocACpisCpcoCp/sAeQKn7mh4aK3/RWoYas0CrN8CrKoCrWMCrP4CVxkCVdgCsd3TAx9KbJMCsrkJArLkE2zcbV9tRFsDJckCtlg3O26MAylBArhaArlDEQK5JnNwMnDdAr0VArvWcJIDMg0CvoRx/gMzbQK+FnMec0sCw8cCwwBzfnRHMUF03AM8owM8lgM9uwLFeALGQwLGDIUCyGVNAshAAslLAskqAmSZAt3OeHVdeKp5IUvMAxifZv4CYfAZ75Ugewdejl63DQLPZwLPaCtHT87vD5sAwqkCz28BJeYDTg5+RwEC3CMC24YC0ksDUlgDU1sA/QNViICFO8cS6VxBghiCz4LKg4kC2sMC2dqEDIRFpzgDhqEAKwNkCoZtVfUAUQLfYQLetG9zAuIr7RAB8ywjAfSXAfLOgwLr7wLpbHUC6vUC6uAA9UMBtQLuhQLrmJamlv8C7jsDhdyYdXDccZ0C8v8AZQOOEpmPAvcPA5FqA5KDAveUAvnVAvhimhiap7czmxoDnX8C/vYBFwA1nxifrwMFiQOmZgOm1QDNwQMGZqGEogEFAwxFAQsBGwdpBl21YwEAtwRnuw2HHq8JABNxNQAfAy8SSQOFewFfIx0AjOsAHQDmnwObjQizBhufwQCnBRG76R09PhZ4BWg3PkArQiFCtF9xEV+8AJbFBTIAkEwZm7k7JmAyEbrPDi8YxhiJyfYFVwVYBVcFWAVjBVgFVwVYBVcFWAVXBVgFVwVYRhUI14VnAgICCmRe6SsEyQOxBi+7uwC7BKe7AOdAKRayBUY+aT5wQj9Ctl91N1/oAFgRM6sAjP7Ma8v8pudGej0mIwQrFic2NX5t32rB8RnCLGkBa9duMBcFXwVqycHJuAjPSVsAAAAKfF59i74AMz+BAAMW0QblrSMFAIzDCwMBDQDlZR09JB9KQrFCvEE4I18nYDYnOCMJwT0KRD9DPng+gT5wPnECiUK8SUI7X8tOT2pNCixrVC9qC24fX+AzOhsJZ5sKYiMrPB0mQqtCvCvMAcv8X8kOHy4JCAkifp3fajotShfJq8msCWXBy8wKYEFfD+UQoxEAk40dRUIlG6ltOc44CjM/Qz5wQj8cBwodTEdsWywtWuG8Egp97R0rQj8cXQhKCQ4zVENCNwQ7Q5wsCoEbLUI/G/UIUyIjGDAxAAWPYfBeCnFkyWALYC0jbkNgGTkCGx5gswYCaxBlTmBNEQFk52AVYJVgfWCzYEtgkWgWFwa1DtxVqbxaC0MWqwG7K83BAh8VABwDHgF5AmwvMJVSgAGKCrhHGgDkI3SOCsoNpk3qAZsCh5xPBUBfAPf3BwA0FlcMC6UMJB+6r0eAgQw0ABUTnyuCCHoC0gtLZREbANhOBnUECh5aADEAtritAJQnCxZvqyQ4nxkBWwGGCfwD2e0PBqoGSga5AB3LValaCbthE4kLLT8OuwG7ASICR1ooKCggHh8hLBImBiEMjQBUAm5XkEmVAW4fD3FHAdN1D85RIBmpsE3qBxEFTF8A9/cHAHoGJGwKKwulODAtx69WDQsAX7wLAGNAlQh6AOpN7yIbvwAxALa4rQCUJy07Ds4CkBh7ULtYyHRyjsOlmw/ZFUkb7AEpEFwSBh/lAccJOhCTBQ8rDDYLABEAs+AiAQIApADhAJiCCrJrOS8AFABbG8YubHYqDcEQAjskHNPhHB4LG30CewTBCqrxbAAnLQ6mLs6hHAe7CQAQOg+7GkcczaF3HgE9Kl8cLs4RGQB9q9ocAuugCAHCAULz5B9lAb4Jtwz6CDwKPgAFwAs9AksNuwi8DTwKvAk8DrsFmAEbawouzqEqD4sa4QHDAREWOwCgCzsLuxC7BBiqe9wAO2sMPAACpgm8BRvQ9QUBvgH6bsoGewG7D00RErwBAQDqAQAAdBVbBhbLFPxvF7sYOxjbL7ZtvgNIqLsAB7sALrsC6w5WAAq7BAAeuwJVICp/FTwVuwG+J+QAsloBvSjgo7vIAAFbAAG7AAJbAALjAAg7AA67AgAbu6VbDr/EAPQAaPuoOwMBu5UnSwDn3Rm7CBp7CKEFCv9wAN+7p7sau6OLeXIG+6mbgwASuwYbCwG8AACGAG27BgALu6c7ARo7ugihnMoBuwvtB8CpOwDhewG/AADlABW7AAb7AAm7AGmLABq7GLuOaRX7AA5rAC5LHgAGuwAXuwghAA1KAcIAt68mAcAAALQADpsAHBsBv/7hCqEABcYLFRXbAAebAEK7AQIAabsAC3sAHbsACLsJoQAFygBunxnVAJEIIQAFygABOwAH2wAdmwghAAaaAAl7ABsrAG0bAOa7gAAIWwAUuwkhAAbKAOOLAAk7C6EOxPtfAAc7AG6cQEgARwADOwAJrQM3AAcbABl7Abv/Aab7AAobAAo7AAn7p+sGuwAJGwADCwAQOwAIPAAUOwARawAPiwAN6wANuwAZCwYWGwAVOwBumxm7ALobLgATOwMAaSsKAOFLAAI7AARSABd7BRsABtAAGLsAC/sAX7sAa/sA5IsBuwAXdgG8AAFyC6EABUoAbXYAB/sA5XsAHGseAXsoUgA5RQD+Bw0McgAoKnABpAUIXgG8XiMMCQdvS2xfKokfPBRiLTYDoQq0AdgAFgLRA24BdnJHUhQhA08CFT4BLAYDc0a8e1J6QAApADEB+wBTCtsAe5AsASsAduUNETJGAUoAVwUAAVABB4rMAHg7BCClAFoA1hUAlWg3H4sAzWuxAM/UFgjCdXMbGFYdCdEBiJCrIlNTTUgSPMKJ+QB/HDdAKSvgEZdPAHIBKSwwKUIZDwMwVQT3xe4AS2XcAGoCcQI/EXo6x3guNdUGBQAQGx0KCAwqBB8dKU5TTgi5ugAKEs0AJgABGgCGAIkAjjUA7gC0AOAAnTwAuwCrAKYAoQDyAJ8A0wCcAOsBDAEHAMAAeQBaAMsAzQEHANcA6wCIAKIBNQDjANgA1QMBByoz1NTU1LbA3M3QzkMyFwFNAVcvRwFVAWQBYwFWAUdLQ0VoDQFOFQcIAzI2DAcAIg0kJiksODo6PT09Pj8OQB5RUVFRU1NSUylUVVdWVhxdYWFgYmEjZmhwb3JycnJycnR0dHR0dHR0dHR0dnZ3dnVbAEDsAEUAlgB0AC4AYvIAigBTAFMAMwJz6QCH//LyAGAAj+wAmwBLAF4AYPn5qgCBAIEAZQBSAK0AHgCyAH8CPAI/APgA4wD6APoA5AD7AOUA5QDkAOIAKQJ3AU0BPAE6AVABOgE6AToBNQE0ATQBNAEYAVQPACsIAABNFwoWAxUWDgCKAJIAogBLAGQYAi0AcABpAJEDEgMkKgMeQT5HKQCLAksAwwJTAqAAugKSApICkgKSApICkgKHApICkgKSApICkgKSApECkQKUApwCkwKSApICkAKQApACkAKOApECcQHQApMCmwKSApICkRZ5CwD6BQOnAl0CNhcBUBA1At4RCisTAUo3E02RAXekPAFlWQD/Az1HAQAAkykeGI9qAClgAGkALgCJA5TMi/CuhFoFuisOwhEBndV0KgsEIzFsATNabAGyAN5+gH9+gH6BgoJ+g4aEfoWIhoCHgoiCiX6Kfot+jIqNfo5+j4KQfpF+kn6TfpSDlYiWgpd+2gLabOEC2GwAgmwkbKAAg2xsBEkERgRIBEsESQRPBEwERwRNBE8ETgRKBEwETwCWZmwAowOIbAC0ZgEFbADJUWxsAM9sAgxsAPZabAD2ARkA9gD0APQA9QD0A31ebNSEI2XAAPYA9AD0APUA9BxsbACJWmwA9gCJARkA9gCJAL4A6AAIAPYAiQN9XmzUhCNlwBxsAPdabAEZAPYA9gD0APQA9QD0APcA9AD0APUA9AN9XmzUhCNlwBxsbACJWmwBGQD2AIkA9gCJAu0A9gCJAL4CNwD3AIkDfV5s1IQjZcAcbAJDATZsAkoBOWwCS8FsbAJXbGwDnwLtA58DnwOgA6ADoAOg1IQjZcAGA31ebBxsbACJWmwBGQOfAIkDnwCJAu0DnwCJAL4CNwOfAInUhCNlwAYDfV5sHGwEPmwAiQQ/AIkGjTFtIDFs1m4DKGwDrAJsbABVWv4VMgJsbACJAmwAVAEAul5sAmxebGwAiV5sAmxebD3YAEls1gJsbEbCxxP/x5BApA0KYFA89AsjTx97EHmJQPyocItC2JnNFRCEnFU6SFTDoI0PxeRNRoNRWkpzVnWW8pTagkNmgf+jGupqZ3eu50LAFnc+OzfJwdub1AdpOy76VnijWNR/CMEevikQkFyQuLuPajxWi9chqOoMJ7qpCN4sx3LJG4Myu8kD68wC6+iAwt+pU1JEeY13rpCVkXSZfinVKn4xZpxsI3Lp8bJLrJ9ujkrIalMRBAcv/GSKEtowzcEn5XmJw2BagB8V2UWJoJHZ14SXhM7p0XeGFOuw6mlvyq99WYp5XxrO6ru9nn4RHcOkJ7hx5UqWtman7yVMLzYXQefQRUdIY70RYQE8+aAzCNSGQkXiHfnHYRMi+xczKDdZLk3AV1gzxkkSHLjBwuq8shIJ+/RAbqjqQbugFhe0rqklu432EERkM5k9y1DXzds46oLqKAx6OhPT2WiqEfhaITn7OF9Y694AmKmUvbpWp0xJqDaf3jeNJXnK6NpnGcFOmbclbARC+5+5U52ufw5b0Hh+2LrrNimvZe4eYmApRsZnJE310SqB+1xB6rSJfnV1f2D0awB18Oc0sXAFqIlgHgWiaZGdvP5CJUSsCTCQUC335+iSkwPlLJJ5lwjTSn9Lw22NbK1Tu8w+bUpHtDRDPho7Gun8aw2Jzu9i+N0Ot/kPMbLAb/rUQ82kfpk85qLDkfxLl39QPDngo72GYh/Xigbpcm1pA23D2ywt3D8GgMOao040wDqkHxOEx0OhC+ZmHiIdjK7yRbfJD2ouZbAedhD3p7s8WDmCJfNforgDYPGAXSI08fTjPZ5B37lc5VXGzc1vJmibDwBNVzXuaUzg7N5H4BxqjhJ+kz9HLUJys7bpBDYAPvbut13AwJCWd059tS8YTYgC8HwrkewBfa1LSSpmMr9uR2EekTiAMH+Mx4AGzgbquccwBDlLmRhgXL/YiLPCEb6d2k5qJ6o800qddABkpqt7NG+sc2uvHZwZs57W1AHTFM1KkMShasADAh2FvzbzJOzVDMS3ZlT2BSFKdnkZFB6JyqJbhm6XANis9TrtzJdlPVp+rl8v3nIke6Jou7m2TKu53Vounupgkz2LzrQPhhatLIG7rfF/gUKWp15X3LKt+ZvuCDSqPUigF9yJntimC1HJR7Yj/dUrLAXWrT+1tnwPJJLGKAlQ5VeNDWRKCTt2vz3rJuo4+gIt75/Mkfl/gSZblZ9r/SEeeosZXneli/xNh1WVCvkRt2RnyyjtMkMqhzXh1PVOCbILqv0r7rGYm0CHIyKdhHL90cl9E1I6eEtQTCt6RXj8M0HHrHCHLVRpNM6WIbT5BCMGVnL0o5895qSRbCJz+5I8PGMhAN/Xrj4BgIdlKqlHtBHqTJwmK169toZ2IWxNzrAbIG7zh85Q/LG2A4yBcaBel52zdunokB0lv3A7kXnTI7M6ZnfZ7nwuj5lkGhqSpW+w5CI/FmRlplBEbnZy1ZxS3DL8rf1YWhO5XivWZBSRh1gFsjjyj3qRG1cm/6ors7WsEif6WRxns1MKDZa6KrbfMQ/swIb+2nb0tqxHeii6FcgVeAjE/Xwac1owx04dJKG8R5YQgHNnEfHf0qb8WOnU0eQSjazq+IK7cSuCqYzPEUB/x+QgGZqM3dBoYvNvZVOHDkbgdilWdagqO5bkybXfLpyMPuGq8mvAAEZGbR6RwXGlW9ErOWTfnjfx6dXFJqBj0OBSGFz4lWQasNOmVJeN4SFWSLfOGB/7ehV5YuoNNROHZEG9ElVuMnqbDMMuDleOt/cN/gsWxGw128mwU8/HxkOKqdTZnI7dHka67WCTf/FmBrxpNCaKJ1GxBTCSS7MNfhNj8S4Gtotg6Z3AM9cAeVROnppUMaiV5jjudLnNqoVrKO1/FijLlAc74kxydxKX1RQuMqHR63eecYr5o6MJ+B78VsLlCrpelWh6GOrCOBIoQmIcdpJL1pwE2zzZqBkecGTdK8KMOB6r1eNRURyrz6M899TZaoS/vNOxHf+5gORU+OyYIcIW6diP25GHF6u8TNjuL/GJzCnLLXd01KrsjRa51v4+O/VIAWXESJxfxWjv628J+cWUQpoD+Yytzs3jSMRJ23/XT+vUdtUMLDQq1vnIoeg/GjWh88MT6k9dRqDaQ+vodilFgvjuNw5pJpId9mfwyYeLCGb3BmHXdfQfhfPRQaupe/f8TG4Bk3eDKlYBaEK3kZYNN2Sdxz47m/vYBxvIOKtnqplB1pebzuXmAr/MuzQCknKe653dzaWQQ7MUhWYWvzIZwLe1v0rXxImLaz+AkAu+sYikhouNF3EW6w4crZ6MuUiDbIAx8XhAfegcvW6x9BPb3/sCxGWu9YyatqExB+TSm69qIkI9IwhjrcnzME+jWBx4mNQm5WwLzUjSyY4FZ0aMF5YFlXUD4hL4XfOeYv5rDe2s2D/Cn+28fZ9UCnOQvXFMnQqfc0G+ZqOWWD9l/liqUPaNQzZjxCHpUAD8Rcc90MniQ02ugHWsUupFUvhC9usY7zNPt5F2jO7qgzhafsQSd50jgLrC6Qx6bpHbXR3WNAu1BzGmwbz+ebGmwTjdy006Y6zipP7n/OJlvSmbq+SY+nefAVKK6EBMPbce5n3IdRI8+vbxCpN53rw3TvgNds1SuMiuLGxt89L71mxPDeanGhyHvOjmO56tnVpoHalQnL6TqNuqKsHjHCIKB4pCgj4WyYPvRvYvqi5EMr7lN3MotPR/KH7JUD1lZbU0QzfbrEBJnuQiVAyAC9vwXWp2TRU1/0aapyAH2cbglEHVAdl+1rb1u147uV0td1eNoQZsqHrIMIYVPXtLk2TIU3cJE08PjoYNDpfF/IcJnYQHl6nsplczX3Rgah4NbJJHl//5scUufqsSd//kbIS406ZWoMP//+jhGUswX/5nVNz/jAj9KmXPtAmMiK+khhbn1w/mELzZMT/WxcW//y/jsHaOM/61oAW/CjYhJtY622/TtMYuP7bilBvbiT3vB9n8IcFPnwM78H0KfhYDRdY5PhWJ4jWRQzB+HT5NVZV56LG82hcQms+jOTT/c9Y9sx5rPi1/wB7f/+c5UfUCKk3iwwCuywUc2MGnAwsXf1E5hoI55x1Q/Qby+sWH8NRjavZ8VaDsdi1NUVhH86BJHX1yaFt1w1OYeL5LVmdN+5Q+KuTvXEPDzUCg6xp0HhsUhTWSe7MZMM/6rsTUb0/nbUE3YQlGGt48kT1/6cnf6yHnvHtQx9EosOXN077yyEq/jE3YTiG/5SEJmXFeocJJ1EAd6vKeK6VEdJLOZ1km/EwOnZWCQpzCLKPHxrfh4yJhGq//2dos2E/3+MOcdW5EsgIdmTQUQetzRy5fQHhDBl37XbWzsqO/cASEDjyst1/8NEROqVAxWnddQV+umJ8IrKVgKvGaTc0GsQ4s8h0Osql5QKwlddPDjJhKInyWqYUKmmlIts+FIcXZ6yM6cljbsjUG2ksSOkuIw4sYHffRNgBOLApvD6XrR6Rt0rV2Uf8IpnIUVnb9Twt91QjAaD/dStSWDxg7aYY+VXIgnuowYdOkjywa2hlgrnI6PjaU3e3UjQ5Yk5mdIJGyHnv3/P+1EkMav1yFyF+FeJE/RXnWBw+Nh0aOo6TGlKX7d+dkP9+brvr79SdtXJtcD/aXBGiMNfG6/NQniQHYQlK78FEHDqOh+bDI0o+2Ub0h53EL/vlzjrBczVEZz2bOtvIL+DIzDkk9nCWt7tlqsq3l9JMtJk3r5HG2iJ9b/X11TG6wwMAjHLQ2oasaMEsydh88QPvI+hmqIHhvalpKoKOueJR0eZ9J8G2alNOIOy98jwvbc87Ewk9d+5G/tUijTmlbjFlDKXV05HalKxaRTrucc73On7yzAPS6f2v4ogiaWyWeV73dv/MsQT5HjRrsYV9dLAcI3T+zC2qEVINyNpEhoKV+xVSuWtT4AhBfpnZ7unIM+HX3msI0HiI+P+z2PFgkjGi5PqEbG/wNIWeRUjPtDEgbbubN+I4JaDLrW9borRBDob7ZFx+JdKeFVUKVeWqb/c88Ol7DhM0suLtuEd8tkDSMTD3DFx8UphPINHMHi51hAPttXL4Ektt/lKEUG/R4qZKohHjVpAcPIMiHyWr6xR8/EWnNJvBFET76yCdk5er7ADB/1bgoImhpSiZ/omZjPKPCEeZsOwvPmXL+1vlJNeGO3TzySmGA1X6e58gLrazDM71jywM1XL8zKHN6G3kB31Y8vLtP982N975SZXk2JwDvmv7AY/aDsFFk1v+nE7/hbvuOWhBH4kuemeYozPk2K22Vx/YGiDTLU7YilpOt29u3RZMBh4UJjlTP5ItxTzWv6ebL9b+GSU1Vsm2S8LMfVfJczaBSqE8J1A4YUjpsALL7++bwCPXFhaufdpDFtBlHb9makeYbqdg9ltvK/HwF/rNE6KrtWUkEcxmTB7Iyu5TiVaIgW/YxzQhpArliIMkOoK5L7ShVtF+DYqV01mk7fwop04hQRwg4KFmr5z9nYf05VVqkSe7gfnx5bxxlQ0qEV0jiwzf064qG11iEqjHcUgDWWsDs/LEGlzX31T5KVL+7D4EoKim7HBagiqRo5JI3WfDBgpKIruWz9j/J6Hp5Q/EJbMWB8NeSMuFarNw3AEYPBJtYQO/4oD/ZgPTSQ06di0EeumX5EbrdThO+fvYEVSxLtZ3AJkee0Xn0sDwNtiiZhJjJRDuG1YRKB1vOulfd9JjHeyu+UHTmrtra/pm+8Rixh4WKiLaLOCxIbZNoWRZSyyUGLPjAaAo+SQBpfO2uruWrzFxLlpvrXJNMCWtlJDKGAnlWK5xpU2tcxXbeD+sbdfwYXt/qTwDk6UqXR/aUt099DhSNl4Nk8mXwpw+b0nvjKOG6Mg1PRXjrMUMANvNgEArv8nMJs3vj1aHi8MHz/UfJWWzkcrSpZTNBhduXlGR7i+ip/THDp5R9KRNcDKECgtwgXg4EFN5HHfikP/XvsoCkHTg+NbsD8Gl6eknk4Arwn/BWGJ0hgW0/gUKrzuGZhub7igRP3abetpIm+24xEOlWl3YKpm2qTBFvX8ddDRvm1LcwnCJuEfZx12qPY9TrntMIQsv316zvpyWnyStX8VU4j6tQk+CWlLBUCJR6MdH9Cp7g2qdn2WM9qFbREmejH09dlWEPm8hPF0L7RxwRRdiCs0DP8ewk6ApoELkKU9hckSdbnXm8UHJmaNXjxv/q0fTTpu8rnl9lN0vQCpDRbCtcz12rGRFEA7Cfg7FhZn5QFkNmv1ZURKEsiZce1nS9K7HrwpC7yJV4Xt3eAVbLJfoXHrtwG60Z8gwaSnmxoL3s2ZlRqggZN/MHo1oUS4L+GwObFI596Ld4Mvi8l+cQmF1gJpkpnDio7TuO35npaMHiWzFqPSX3qNgkIPGuX0qGYnPIVsM901Yu8oZnOZOY1TbtIdFUNKNq2dP8SJ4F/VCEzIjF0/Rh+7UrZj80tC6rognVH3mqa8eCs/lcQU1Pjj98kBmAKDbZUTwosv02UunRR3n0X6c+f73mtwB7/WbQ16gO431EtwZbNG1SM4TZPBnsQSESlsfG2JLQXx5xWf4bmQ/xcVCPISAX5897JxHKLD/Xkgu57+ABR2+MMtEbX64+MNlBHpKC7sjlWVEShf5qA+dGc59LFVlZrX/Enq9z/v+wnZ1HErmxmjJjxOA+hAjVUWgtq6ygAi/8ewJDjUMFw3zhQFtbyTLDPFd21Ji5S5QPZo9nMSxdg1+DGFSN0wlWt7XeYPbHqLfliV0J1kOhQNp0VbUPy0MS2Ms66OxtSWvaULaWHnfAA+sieVVgtjDwN3nKonWapkSKRN8BKKJQpCfqo8RQI5udhfu5s5+7vwsppmAJDgz2GNA7d43VdbV2l/SrvEu4RYslmNJmfSOVbssxAhSYy6WxpIQdDB0FVBpZ6IM8yr81QN+XLZ3n/wed/R+s6LslkxKbzzst/GkRbe6rFmtvJCwr1T44ETM+IMgOnjUO0eG6a1n2w7lwM1oFBvzMUWRkNFOvKcx3oSb5XdenZ5dXsute6nkRypBiSdAtA2fxAd8UdLOZW/MB7fZoEuFheQXijdaF8kuaRZoSeWdKOkKsGYEGaXfaDKTu0WMTcLniQs7KRCz9iK3SP+Y2xIjkfVGqFLSQ6vh+A1u6FdfwXsv1VPMfi2cxmdM+/xTgMXEyo2ZGcQ2YmPsghnYdv2+z48JpGZA4tUK1p1q2VdVxyfypXEXcrxKKtmt8UdW7sHWmKMqDuBBM3J/JUQx8eUYN4pJ5oRqvdiPHU1o/WPjiKvnlCqOdyxlxF54L9PrtLD1NejZ9aZDivVr6ZfMFK1/psVygoPIAnphcJWWb9+5IKMKmgRQULsTPZi6Bw4wP32zVEoKcHpP73CkFAqS98nSaGoWDjDJiaACJn4p5o1jq9R4Q4VcibhXF//LHP0bdf63kRVZdRbbhGe7sDQcyWS5tpkfeYHnff25WK+4FpzLlAcbaKmHdIBqOw3fImx1uqQIADH0TyHzFlqTG6nMoY81svP0T6BIyELMS8tMe+E1p6TFP6sVpZa6VNaTumufD5aj9goRa9SAmdJT4HhI2r0egj8UrgFb8L59wGLnYlzkLAiUd3m/WWIIEU61kPoEjd3gIVy/fiBcgqQqHnoXpL0SqLGdGGgn7DQeVMSYWHfjno1FngIKP9cjYaTlcRP6bZunjHP13/lbVm4awti894pTf/ZNNqr4OR+tDVie/m+rC8QpVnRbsCMPukOH87B2jM4AG6pHuXl1x9SiKdhYJVOhfo/+SCaGjUW2CoogL1FFhFGN9o+acoVLl0SXs/3vrSccmZeAF3NewFuOg/P12QYKQF+SH+KYcNnsAhIAELPBUgre/KRUJEA+KPD0MHRjv+3J/j2Z23MuJmkfy7leWcMsti8wXLSHgXFJTaksx1Woi6oljwxFVIJG12SBSZLNJDbXMYPekmiXT4FclKI35BFgqnYpKfcsr+f8HUXQoHJ9UYZ4J5YMiHHyAxg6eidhodgqJ2Htf/xYEx+G0zXchuzlt8hcAl+AT8NCQ4orFc4DerabF1enA7NTLnvtZh3FUwqIOvY7Q4DYmoDHwXTSw5UNNh6r7j0B/ezMYJMDcw4+6gCTZX4YQ+7Xs8de72vsR3cmfpxIX64/6KR1p3VX4F6vfHEzxzarh8aDH4G1DFoBBM6npXFpK+Rh+WrcFclAeAxi0PoaR9CpOxxGLSdvxKVSw8oOOanG/soKImRopN38AdcUhhM2GT/PgQeSQrG12njuJJD5Z7vWfAZmFybYLdSA91kB4aoBhoj1Z//KNIVVujqaLLRwCkbyn4vh0739C9V9iSjybeOIeSOvNs7LW1a7EUtNoKAnOGML4U8KBXpfrw73WjAszJG4Qscq+Xr3kZWR4Omm0xT6qE9y6FNSpstV4onMZSqCEJ+3VX9qjvdx5QVrM0WXxmPZxejdfnihcFAjzv5PjlTl6ickDbHe6+Lch52pjOPqk+m3RZ+bh2JSMGtFBuODbMchrpRVlt16NTQ05Ps0IDtWlUmWfP2vX8M4YDynIuOZ4Ck91+591B98Gw9fw+yQogTR8CSg0zaJu+rlBo/mr3A+1NziF+kdubz+whc857AZt6DwIBIF5+5yiaaf3ByQp1Fm3sOkZDAzwsYSQTM/Kv6idkugF63FDobDdUY3huruU+sCaBuRR+HmOowvmZoBjZHNh77SXFtmY/oOUE7ifN7nBHAo83S/xvcS6H4Ci2u/9Id62Wv6Ui+zMNLAzhfkTkVcW2BwrnYvpur0ZDlzs+ZLsmGTWvd1892t78gx1YjEJusGcxphjLkV0UfAKlekfSBVWHE2ahk4AbbRmHyL7GYdtKfdlINwrcdJuf3Cee1nfUojDQn/YmItESOFhtLzrkEv4k2XpMU9oaJQ3VUC+1INh6BE68pkHameGJm4Gvdb24Q0fXWxd9Tp3A9mzFSe4qXDGGDIV4AAGV1jIDfveknH1TwWpUT6HiQxKP3AAHJNkJeRlj/mXBmS4S1j8FK6YmpK7jyyAiRbsMCCLoJcx01fvgpMvKQRxu9IOwymconQjD56g7ksOrcOeoTbius4JnGesAS1DtgdaophYsw1wGIsMS3P7K6doE3K5czznqPQLSRRF/Ylzb5NtSKsL33SgskFNCF4khn5LWaDxI23ZRi2hzqN8uW8UzZEBYy68+VtGLSymQrXGUlr2nO2BbBIT5Vh1RmGAyDXaW0FPrpx3wv2UYdFk9tSl+906bMxCuXQaKDQP/U19UEcVGK4gmksL8lAorxQSAOwpeYX9xrZsh6yoGaL/X5O3tgQC8OM+/GvxnW9XvAtu/JxAigydfSmZfqZfg1XOcHNOpLlN8j64OZ36l5qawDBJ62YaTvxeNmm5gowCdBosgcpHOgNgwA+sknN8XmsR2IYChcafl9bGNMZ/nB5guWuvEziv6QI2bP2DtyKWG/qUjZMaxy+wASkkVGtuwGtywkTYG6MYrZBo18vYcww48G/+f+eITA/qMwbLlJC0S3+/ai2pPvkOhRRVmGTuSupaxhIk0xoXLtixCxSAn4Z3OnUS3wBqVscLI4P3GP7i/6gxYsswsVmkvDXFLhO/OKcur8flegCSKiqmVpIRvCzgbjEA0mXPn+RExXY/2OE1f/BYuWpRQY8gCDpMOYBx9Gn4tL3hihSIR1ixh2PIIT7cr2gUJbfs76EKYG52Jk0UZF/PQkBxGuFCEWXnG6ue/hTIqjTRq1sotVrKrwIGHDrITyuanUzbIYdgdEeV88K1VD82TYB2B61Ft+tB1KqHPmT9+hWoaV+iF3SuvtJqvnoLaA8wxrD56AUMULEgzO9SvBcBAfqz/dzMYzwMt/YLszDbmGe1bcHHfFMcvGql9bf/tp+Hrj4q18aNnftGjmXTfws39emn7/5IBxog9MrmftAA5Oq4awenm8HimWO72dwVlHcHmutVMdrMHw+p2vzpzT+B0iIZ+IEpplwWhClcXlxhxAsF3CHRnnaUEqq3ByQ+cqhe5SvR4SFxh/LZoQwtj8QZQGT1BzY2EMpYnUcZWQEPlwFZw+7UryK9qV8KgruYsvyMoK16KI2sN4SOblrVwhyiL8+IBZ8cpUhsJQSU7TFHAi+L2F0sn0y+FtDODlnuif2Mba8QddPZYYxjTsIgkMe3M6+7kXxUfZvbCUlyq71J1eNczGk6Vqw6rSx2K3vM+DjLxDRGzWepTO2qTT/W8S7u0QXcyFUahcB4vq8xCYTpy8iswtnyz7Kx6lgTEQJ9RqkgEIN6DOUqB0uRdeYuDa7AP7Zy9z+ZlTsmVR5vtV71m3dmdtNeWghbr5PnPJtjXAzcvZjxyV96VEx/B1TA0IEQSI50ywGuIbmAYdQg/l/rxhQLX+6uOLyFsaUt6mtjpAJkLfehnB6MlOHnNOrWLvCBqVBS07jcM+4RzLEed3f3/0Xwp92U+nataNHyEgnnuYR6PXEjRLETz0xrt3UglfK7Bn4aNlXG7cZco4lMziLv5+Mh2JCww3mz69Z9ZMRR/xv5EKJ38IFxKd9dw5CgPIXja/gzAshMbF14/qBIgNkdUQeP8YE7SrICGtiTnAKTyA9cXa3OauDHxZOdTP7yuYBzD1UcHstIO16FxF1bRUAlSkszI83YufTchU8OPnnozDl9bS0y6CnnjGwgj9M61cXcZsljjhLeT/Vq+30ScN2PcT/dOoxUDqDS38+OpCCzLDdnwHQc3ECQVIkaxmdPaZTSdfp2jjGzSdNLM5yPQsgJDl+ZnhclDQi8ltUnkqWJ323IvTZPN8rn0+EshL1cx9PiaLTzUsryn9Zp2Nt/detUAh4N/2I3dlMQqjHFxSihv0uykzflq5clMy2ZBaxoEb0/QMp03IQQus3vnZd/NOmSsmgqXqKFP3ozyDgY7RQS+npabe/hNG+5sa5FtvL8v0uYuag2NewYkcol3TOTadpuncCnDgOGpmLnTQ1PEPUN2cNsrW8LYfIv+hzfb7vod+ipXHzmbgj5Fzc6RcT/5PD7VQ8nTJBNj1urkVUx9uJvTWmqY08OC80rGDLaWXv243VB16gjt4Xtwp5H2UDR0LiKW24Ed/sOO8jl1yEU/XAb3h7ScKnCFy/V3sICrkY1D0K9fSokHIL0s5/7DLShLAPXRbV7fbv4qj6OwHC9d5PlEOX3LRpQ3P7hcSAKlIKPDM83ypz56U5+rJeo0cyUtC7wltL8wqEiNSgZsDWzACc7RFoZqhlD0+sihIBQlkQTXmvUyIOZhkQX2zqME5VRC7ms1sa3CY+odMn3mMBiTvCMKnnCxg5ZPLq4GUDB4jF8Br2K4x4sxfWjGXQatJ25I1JyrIv2Z4bP1jKw5C+B2/s0v4dGUOsaS6IPIQV3ETQ+F2fSl2BPBXHzyYN8VmwWIrKeMX9pyGWuAOVXwkxJsRBaBVzLhZDP8ONGncknL5DpTxHN32GgFWMwsc0GmL0oRDmRT8u2lvjAKUIi0MmXhIHSlFeh3Qh5pP6ap4YUd6b569ZIaHgya2AyD12cPxY0In/PBjzDctTaKJCU+xc6m9RkNLDEE8guvxtJP8sl8N9bLqw0F/qejaBlcHYqw31zYpsutQp07hsP1vhGdl4hJ1wA7OCsAHnKj9879uSHILEmuZ6vI1lT4tvnWCVKZhhYrWHW9oPKPKpbOC6FTjf/OtUvwmiXr2ykvyLzHGQeyS7BenZpL3N/CaF5T7Gkml7JXN5cj0PKaDpZVImD61FuMgFHPqSHvt4Ej4KBdAfdcoO3AjQPLwwtKsgGM+ty4lNZMBEItJSRLunG5ckrM/BeoXWoPZVvEoIzLgFQYPupMwZCXis4W2SCJ2zsefZqCj+aTfSq1FYdUj2UeJALvVTf7vuuikOE1Hit3UIAGUi/sqgMum9vw218y1FlY/9XnOji9nqhGAcMYICc7BiqLZj5N+cKEuSAuiyWbMg81ZD1lHovy/we2eaCcCv4MzEW3O0mVA/t2xdA0cxTVbXmFhn+tARDpvDz5ftLr15OAAmvo2QiAky+feVO4bGibv2nlBmBzqx0lEDfEm4UnEs11pbnwZlJ/0Y73/wBPYfTNZiJKR73TzdCW1BffiJq9bLjQmaKnU0+gN8sfe25IKSUCooQwxePDrFn3a/zUgWxvPoTYVXfobY/GV2qqTkeVDV9D8657fhY0/wiaJ5NfLxhXbE/naxs34N0hd6vxNfdm1TCnozm/NKSCThchoYgMF7Z2tzXFovRfsNVkf86JjrM60r7UIuV3bsmfrMOqzjXjN6HPBG25zCJ3QLueySbj9oFvX/HxWBqh31PBPxduCVAxMqC9HK+YL3oBZqBruoh6LKvdMqoz0PYXUBrwbiioyE8Tj5ImjJmiOOWLbAZvIZ/l9rIPljx3T5glJ2ewlfuIT5GlodQsAf/IEtmYkML5SRQGxxwW+rlZkD8belJNu09Itwx9xDULTnemVDeojdbgcd2gKGM9aO00Jivtbs7ZyOSE8IPh98GfvatD8Ud5uHcZfAfMiPSlIxd4UqeSDzuNfbKDuFepkyC/s3j9fawmhY1b9NqDi0ZS5eP35l7rL2eK5QlWLlyCmxx8AFaFiTuD2pMUxZV5mBSJuJduOaq2ZrWpu28DE8jl/hisBz7bGWH6qLF0ayWNq1Sejtcs8KQrQqJk5P9QHDYHOIolgNsMDmEaWcTelghbfFCDqWrq6YLwDWy+m68ec5nShgq2fduUBpQUuKKKgnttaUX9PRfMmxqJyU7e0RLr1bev+ge1KK0bZyhHKKDE8gQX9Vf7rNHWOxBtZcxwwGusyMpH77qWZxXsQmbgIGhtiO+gSSRCyu/ek+OFsz1HMiQH0IHV7PjJi3dszYfFp8ue9h4+AfKte4MTiehPvxNcm/T1t9vsFZx8rHN5ie77r2jzZOq/Em4Q+H9sNcZakf9HnzCc1fJixppxP8FQABmVnqa6GbJhwaka7WH7Wdoz1WxOjSNV8N9sgW5S3Ppgkut+TTCkjA+AodUOk1KIR+8G8S3WrSZG4nyqfJ6FEjXl6a/LEoRMHZUqfPRWvwqrtXYy9IUsmUGzkqi76ib4NANCe5DnyOxnFRZ9d8FdBVBjra3iNuZhJuWW5Omi/hBigqDsg0mu2AhfJDXdwyMIJ33HHHPfS2JtjegRejX11m41TbNL+Qp7mR0g9CPKTj9PIjuSycGN/YPozXI4zarXuAeLv5CHKtKcJKRbd6R2oLNiEt0T8+QIVJH7zt9ncKMgd49vV2P1AyScZ9Qzbu3m3LBnuu6dw7aE0b6r4kzVkI/GUS88mA53L/rLtntkFlZXGtIoqNP2mD3eVv08AVVPT3wJn81zpbJV9SuqZ6Pd1ge0Zz2RFHeCdV5CLPftH9V5o9+VzFu4R0QeumqDwUhXn3IyYotdJnxr1l3BqWnQVAeDBEOtPyJQx1q5+mODiClXtYeBLTWtsJ42AMBcf/IFIhpfhYO08hsg0Ik+DpQFNOKReK3o3cudkxWX0soPtI5eSFOA6yNylS+IQjrQtYQ/5s4UcixJfokumBUjpH9ofSjUTwPCapGFndfqqG5IHeMMvfg+88SXm7bNyjk6pGKzL+WxDAdqKtQ72WWVbOk3I+ueGuammmB2pvFZvqIcU/lvW3n9+r2lycnQLE4OX9R1jIgW4cDjJ3v8dAa66mVcfC7ptCr5io6mCaA9qI9T9FFWqo1ZAaMxgxAu8aXqmaOYryMND2sTUfoHvxcYK7hEiJhCLYFDx3PBhE97c2a0ub1/ePJcyJOqr7UaTAPTJ+xvZtjb/40sloY1ltRnTkWILmIP2b7S3AdXCR+YiArMUHwdncpjpyDGfzqGOUoAuaamWzAMacQtb34/M32FEgR5lUEf8fRzFrZUhzQj0fR7/6gdzdnVVvcSneLmtqJ930VCCDORY8CVdQWdo/S3PNkX3pQsPVKWIYGAMrFZoq8bQ/OJBDSXP7KSBdL3QN0Zqd393p6VFc7DnlnFiN00SY5Nux7yadeIM0Upl2rVsu8/VAI\",WDe=new Map([[8217,\"apostrophe\"],[8260,\"fraction slash\"],[12539,\"middle dot\"]]),VDe=4;REt=\"AEUDWAHSCGYATwDVADIAdgAiADQAFAAtABQAIQAPACcADQASAAsAGQAJABIACQARAAUACwAFAAwABQAQAAMABwAEAAoABQAJAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACwANAA0AAwAKAAkABAAdAAYAZwDTAecDNACxCmIB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgPi89uj00MsvBXxEPAGPCDwBnQKoEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJEMAJpIBpob5AERSMAKNoAXqaQLRBMCzEiC+AZ4EWRJJFbEu7QDQLARtEbgECxDwAb/RyAk1AV4nD2cEQQKTAzsAGpobPgAahAGPCrysdy0OAKwAfFIcBAQFUmoA/PtZADkBIadVj2UMUgx5Il4ANQC9vLIBDAHUGVsQ8wCzfQIbGVcCHBZHAZ8CBAgXOhG7AqMZ4M7+1M0UAPDNAWsC+mcJDe8AAQA99zkEXLICyQozAo6lAobcP5JvjQLFzwKD9gU/OD8FEQCtEQL6bW+nAKUEvzjDHsuRyUvOFHcacUz5AqIFRSE2kzsBEQCuaQL5DQTlcgO6twSpTiUgCwIFCAUXBHQEqQV6swAVxUlmTmsCwjqsP/wKJQmXb793UgZBEBsnpRD3DDMBtQE7De1L2ATxBjsEyR99GRkPzZWcCKUt3QztJuMuoYBaI/UqgwXtS/Q83QtNUWgPWQtlCeM6Y4FOAyEBDSKLCt0NOQhtEPMKyWsN5RFFBzkD1UmaAKUHAQsRHTUVtSYQYqwLCTl3Bvsa9guPJq8TKXr8BdMaIQZNASka/wDPLueFsFoxXBxPXwYDCyUjxxSoUCANJUC3eEgaGwcVJakCkUNwSodRNh6TIfY8PQ1mLhNRfAf1PAUZTwuBPJ5Gq0UOEdI+jT1IIklMLAQ1fywvJ4sJzw+FDLl8cgFZCSEJsQxxEzERFzfFCDkHGS2XJCcVCCFGlWCaBPefA/MT0QMLBT8JQQcTA7UcLRMuFSkFDYEk1wLzNtUuswKPVoABFwXLDyUf3xBQR+AO6QibAmUDgyXrAC0VIQAXIpsIQ2MAX4/YUwUuywjHamwjdANnFOdhEXMHkQ5XB6ccMxW/HOFwyF4Lhggoo68JWwF1CZkBXwTjCAk1W4ygIEFnU4tYGJsgYUE/XfwCMQxlFZ9EvYd4AosPaxIbATUBcwc5DQECdxHtEWsQlQjrhgQ1tTP4OiUETyGDIBEKJwNPbM4LJyb5DPhpAaMSYgMMND137merYLYkF/0HGTLFQWAh8QuST80MnBrBGEJULhnkB78D8xrzJ+pBVwX/A6MDEzpNM+4EvQtpCIsJPwBJDqMXB9cYagpxjNABMYsBt5kDV5GDAm+PBjcHCwBnC4cFeeUAHQKnCKMABQDPA1cAOQKtB50AGQCFQQE9AycvASHlAo8DkwgxywGVLwHzKQQbwwwVAPc3bkoCw7ECgGpmogXdWAKOAkk1AU0lBAVOR1EDr3HhANsASwYT30cBFatKyxrjQwHfbysAxwD7AAU1BwVBAc0B820AtwFfCzEJorO1AU3pKQCDABVrAdcCiQDdADUAf/EBUwBNBVn5BdMCT0kBETEYK1dhAbsDHwEzAQ0AeQbLjaXJBx8EbQfTAhAbFeEC7y4HtQEDIt8TzULFAr3eVaFgAmSBAmJCW02vWzcgAqH3AmiYAmYJAp+EOBsLAmY7AmYmBG4EfwN/EwN+kjkGOXcXOYI6IyMCbB0CMjY4CgJtxwJtru+KM2dFKwFnAN4A4QBKBQeYDI0A/gvCAA21AncvAnaiPwJ5S0MCeLodXNtFrkbXAnw/AnrIAn0JAnzwBVkFIEgASH1jJAKBbQKAAAKABQJ/rklYSlsVF0rMAtEBAtDMSycDiE8Dh+ZExZEyAvKhXQMDA65LzkwtJQPPTUxNrwKLPwKK2MEbBx1DZwW3Ao43Ao5cQJeBAo7ZAo5ceFG0UzUKUtRUhQKT+wKTDADpABxVHlWvVdAGLBsplYYy4XhmRTs5ApefAu+yWCGoAFklApaPApZ8nACpWaxaCYFNADsClrUClk5cRFzRApnLAplkXMpdBxkCnJs5wjqdApwWAp+bAp64igAdDzEqDwKd8QKekgC1PWE0Ye8CntMCoG4BqQKenx8Cnk6lY8hkJyUrAievAiZ+AqD7AqBMAqLdAqHEAqYvAqXOAqf/AH0Cp/JofGixAANJahxq0QKs4wKsrgKtZwKtAgJXHQJV3AKx4dcDH05slwKyvQ0CsugXbOBtY21IXwMlzQK2XDs/bpADKUUCuF4CuUcVArkqd3A2cOECvRkCu9pwlgMyEQK+iHICAzNxAr4acyJzTwLDywLDBHOCdEs1RXTgAzynAzyaAz2/AsV8AsZHAsYQiQLIaVECyEQCyU8CyS4CZJ0C3dJ4eWF4rnklS9ADGKNnAgJh9BnzlSR7C16SXrsRAs9rAs9sL0tT0vMTnwDGrQLPcwEp6gNOEn5LBQLcJwLbigLSTwNSXANTXwEBA1WMgIk/AMsW7WBFghyC04LOg40C2scC2d6EEIRJpzwDhqUALwNkDoZxWfkAVQLfZQLeuHN3AuIv7RQB8zAnAfSbAfLShwLr8wLpcHkC6vkC6uQA+UcBuQLuiQLrnJaqlwMC7j8DheCYeXDgcaEC8wMAaQOOFpmTAvcTA5FuA5KHAveYAvnZAvhmmhyaq7s3mx4DnYMC/voBGwA5nxyfswMFjQOmagOm2QDRxQMGaqGIogUJAwxJAtQAPwMA4UEXUwER8wNrB5dnBQCTLSu3r73bAYmZFH8RBDkB+ykFIQ6dCZ8Akv0TtRQrxQL3LScApQC3BbmOkRc/xqdtQS4UJo0uAUMBgPwBtSYAdQMOBG0ALAIWDKEAAAoCPQJqA90DfgSRASBFBSF8CgAFAEQAEwA2EgJ3AQAF1QNr7wrFAgD3Cp8nv7G35QGRIUFCAekUfxE0wIkABAAbAFoCRQKEiwAGOlM6lI1tALg6jzrQAI04wTrcAKUA6ADLATqBOjs5/Dn5O3aJOls7nok6bzkYAVYBMwFsBS81XTWeNa01ZjV1NbY1xTWCNZE10jXhNZ41rTXuNf01sjXBNgI2ETXGNdU2FjYnNd417TYuNj02LjUtITY6Nj02PDbJNwgEkDxXNjg23TcgNw82yiA3iTcwCgSwPGc2JDcZN2w6jTchQtRDB0LgQwscDw8JmyhtKFFVBgDpfwDpsAD+mxQ91wLpNSMArQC9BbeOkRdLxptzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgELgEaJZkC7aMAoQCjBcGOmxdNxrsBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUHqSvAj5Gqwr7YrMUACT9AN3rpF27H7fsd/twPt4l+UW1yQYKBt2Cgy7qJpGiLcdE2P1cQSImUbqJ6ICH27H4knQMIRMrFkHu3sx6tC35Y+eLIh4e4CMKJ4DfyV+8mfta499RCAJ0xfeZR8PsoYOApva9pjGn4PhvyZS7/h5JLuhaucfjuU+Z584wwqNO4hWYmaBCcjgQPale1bjoHzMUbut/zTgxHxBnAyrdKpF4IRMASLBtD/jviyLeCgj8twWjAd3HchN/uqaeRYeHJgl7JEY9/cTrvtfybx/r3Y/NtxJ9dp+MTVmiS9bwBH73s8Di56/Ma+mTPMHq4T1yEG1fWcqr0u+hrGnJEvU1JJAm/maQSrKrazIyvSkDFkj8UUlfBq8baniTGPng6YZRL661rDNw4w/1g2figG0IhXnL7wosd/sVNo5dYSmMBTP5c7rYLjRdCwg8quwljOMPf63D8ICAL0r71XRiyFHdgwHbwfgnPOf4Lzjf2v+j+IiDHG2isp5yUnzSDyDRb4i/Vs0qHSHq8PiEQ/JnBP7PxnjN0j6gT4AVAeRx/1o9VnEUlUwvFrzJqHk9jxAw4sYxCnrxaeBdCFFKbnE7z+x54F5W7ZZsU6kx8Qocul6FoAHHy01FGL/nne61mn4+uYXfQ1Uccn+HMLKE+cZzT8BB1E3FRskOgJrRsq25rauLm8+uamXpkS/bTy6y1wDbCrW4eD532kTWrtNUmVVZOIn/C+/JR9KVR5iG9TY8iaT67ubm/whL1xbKZoqtY+a6fNxMJrg211bGYJDUkYMNWA0BMB++9zOm6Eik4roqs9CCEFW0lyAK0PbvlzvoxrZuY/OEhNW/l/63U15Od/RSvmDvXpGLiVmeGi5PDSH2bYz5o2g6wFDQ2FbZgYgTF8rPlvA1ifjZD3NLtFdXdpSIJvgKR7GpjJWG7GZGawPomIH8B5tUmtHH9LpM+/KQKunEPa1GiQkCXv4Cnm9DLORo2joicHdPDZ64obQrPZ5bgqckkj0G6/NEiPYBY4bCkL7W8G5YzsUb6GakFjykSPkT7JGeLeB6uJOGMm+x7N381BCDfbJFx0dtLgV9Q477BfL1fvitX5anV/oYfxeYl+eF5x5bB8+Ep/L2nsmd56aKF4aAD4GbJWsdKyBW22xEmAD3XdbtsMyAFoR5mOla0gEd9U/YVB7zvHGpHbQonay9Sv0bQ8iZ8piaXVrKc5AG1AmqqgaEvzHSP2Wux7aZTWh6quVDVU01JtMIVRdCFwlSbbqqhoFlyzsotQzRexFvZ/MqUSFu3OhRIuNBbufvBpdVgb8XdGJ48/lJPCZ7dsOujTTbKPSEvGXkOnG2Xdi8/nM3EMRqITd5QeU7iOjKqC7URJY6TnLsHij22xAHKnVRD5MDtBYnoGFqZGMDmXCW6Oj+BAWw14hESY/xLF6bLku06AHkiXTHPCFZ0f9YSqqo27eAhhS67OrA2Het4M9JM3jm/yRX6bYxnfmzYl5qQdHxN08FsNuWDrWd4vMUY2QD3hr8vS73SCTkFoXZR3xNzOQt8d/6HfjBmXqvrE6EGkLzK6YK2U2/ksU/iUH+LvVIsJI+ri2AL/klo+ShdDyfs5A83i2prkMs51IKR7ZcqjZJi5X3+bd8GlyWvtddxKEoEqSgEO7A8jIgf2nH0h8FjM7oB6yte3X5mpL0i/E4Rx0CotKnILJj/vJqo4VkPQ93jRtRVfaitQPqldl5xRYPq8387Z0DcnZvOeION0Ht1+P27kFLGQIcLBX4FG3sffccNHh5cPfzp9INoRtqVtdViJfg8RjnXiIz/MNqEN6zvzX3hMzyWC7oSoXIT14ubc0abPX8Rp9GVa5NI/8iv+6ela1oTncbdimRKnrbRffDR/X4nH+bgqAuHWl7hOaeXPWVzIeRl7ga+JzD4Sx3mlj/q6Ra/E2HhDf21eEzTLNGfCZsY+/yxZzQzIAuijG65ii4O/waAJCrEJaWd/DRAKMQ5678Dw5AT7RCKzdadIwd8LsD+DgPBASmWsUlf8R0k1w/2k4lO2Wpb4zMI6EJVJs0xk/wn8/fRUPqrDKhbjHR41SqgFMx5RGMPuduFwlu5lK89tW11sTqiX/5EfGs5nO+y9FKvgXKPOEmgE05EKNL6Sjb3xS40H3BVPhm0ESOZgAjZoymc8be0inDVo4JdJVf+NKd3tN/CaB7GShhH27qf95NoFZVX/6ZkR2lX+CgWrQ2INgkh+bbMz68+uJ3Clsh8HSMPEQtAt+BBE6fXDab7KIlsKxU1lIXW/KWVstpdPanJ0pdXpQinDyUQjtY7ZVcfiecRxRDMAUhHFU2cEaciQ+htiPMPx1kdvtWG9T44w3r037ljHBFJdYR0r55qvMRixtAEFJAqA4T1ES87FAx7UozXasytg8MftZYt0rjYgLe6EJ5aWvy2qscBSBQ7yehoJIA3wIIZ9ukfkyBb6qnue5ko8W50rpV4kXqWjI5nbGRXrNW0tBZHXlY48nSgcUXBHWT4GcgLZJoLlKJnV96kCYpq9eWHh7xJzkCAyrQuQ5AJ0qq/uZ3toJglNterev+Qm0KXxPg/+YbFRJdfhbp1wOnVOEYdVHTya6CtO0afhEaBhx3oHwCb5Kq6RwHDzFMl2vfjL8GwzcCoTj7wZe+UFnYDV2yKpPU9dba29gYBdNqJg/KXozO+CJTlKmlKhnqTf5doeS35DZFV+cYJQVjd+oVY/Gtc/6XPzUxb1gMqf6cEjNNoRC8AObrp+fx0cVtGu4ffC2TgXRC8zPl8moUHCB5HZ25d87mlsiiK0aNwBtcEQjRNBT/QrXbw/8aVXdKMHn9EqYEKEyxSGTpYQOaes1G1Qq8pDgqkZtlO2HRyCXpmeM7TSrRPkAh004BfisVpF6zP44n2Jvxz/gOVocNCyy9V6lkod28QM4pbaMvVJigD/w3BrsjSJrXlqc4ulBYOCceiBN4b/gHajYyupbhEt63a619Ay4wsL6a6w6B+A7TnoyE7BliWHJfzVxxIKM/W3M/J8Bx99Op863Q8eNuIMGRx++VbYfjm+VGYBA3Ap/KEu/wxBNBpJJncwHPG45V8Gh98ZIrGCc20MwijGowZbcS7d1nEgcOW5cddZpHL2XPAIRbColiheZzXTvBxZOY3iMSDSKDrICyJ/iQs1vdplVdH/JrLJsQ2jtTnfCrITIghq3KFX3qAgLWAIp8IffNSdTYptnbGfc8s+qcr3zyzyHp1aJg+jxTF4kD1ry5Wauv5V3xnOGwTFecNzXSLHBW20/pCQjk4uorD0plIhMSTc79+/r4RKPClRYTBYex1Ob5crtfvRQBBv6re/6FhtCqtduag67glqRA77/3ulblh9YRtMdDxkCyJDeNnAuCLPQFmdRRWJtH20Z8DstfJf+5oj5SSB64d0iF5/Ya4KfTWxfivj9Ap2/zbYaTo/1gO3tM6RYsCZharMBFr7Fm61mLSrQnEI4OF1gbVS4k/JE9UotOrnLJZuswoWodCSV8zbybkJSVIP7n8UaE9xCR39rJZmf27HOAPVOGc9pdkQUcRrI0qyVF9Z3j1RHDbxIfwbWzmPVjwIdPJvtmBYwEQIUsIW1S939hcVikK00ozPRI02cqhzVUNzpOxVdrwRPvlh1aIOf0xFEqD3YkGnCnFah/cFN3J2gB7N+bZSGawwkKFu1tpQMrp1W+27YNkyT0TpcFpTqgOqqLabrgcCUPxh97mREOGy4xItzQ9xSl6rq+8BZsHcrQFReS+QeMxJ3P6CnL9EP/eOLDjumLhvrcQrpPiknsofbzBv9gTP0lU+TIVwE6E7CcKfT36q+ZiEOHJ9ayf0dyUJLezAb2M8aNHwd0+OJmsVgTzRWA\",hU=44032,VZ=4352,GZ=4449,qZ=4519,$De=19,e7e=21,vN=28,KZ=e7e*vN,IEt=$De*KZ,kEt=hU+IEt,OEt=VZ+$De,NEt=GZ+e7e,PEt=qZ+vN;qDe=45,i7e=\".\",a7e=65039,s7e=1,YZ=e=>Array.from(e);bpe=class extends Array{get is_emoji(){return!0}}});var p7e=$(()=>{f();_pe()});var h7e=$(()=>{f()});var m7e=$(()=>{f()});var g7e=$(()=>{f()});var y7e=$(()=>{f()});var b7e=$(()=>{f()});var v7e=$(()=>{f();DPe()});var w7e=$(()=>{f()});var im,Tpe,Cpe,Rpe,Ipe,kpe,Ope,Npe,Ppe,Mpe,Dpe,Bpe,Lpe,x7e=$(()=>{f();im=class extends Error{constructor(t){let{code:n,message:r,data:o}=t;super(r),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.BaseError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n,this.data=o}},Tpe=class e extends im{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Missing or invalid parameters.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InvalidInputError\"})}};Object.defineProperty(Tpe,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});Cpe=class e extends im{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Requested resource not found.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.ResourceNotFoundError\"})}};Object.defineProperty(Cpe,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});Rpe=class e extends im{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Requested resource not available.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.ResourceUnavailableError\"})}};Object.defineProperty(Rpe,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});Ipe=class e extends im{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Transaction creation failed.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.TransactionRejectedError\"})}};Object.defineProperty(Ipe,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});kpe=class e extends im{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Method is not implemented.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.MethodNotSupportedError\"})}};Object.defineProperty(kpe,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004});Ope=class e extends im{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Rate limit exceeded.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.LimitExceededError\"})}};Object.defineProperty(Ope,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005});Npe=class e extends im{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"JSON-RPC version not supported.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.VersionNotSupportedError\"})}};Object.defineProperty(Npe,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006});Ppe=class e extends im{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Input is not a valid JSON-RPC request.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InvalidRequestError\"})}};Object.defineProperty(Ppe,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});Mpe=class e extends im{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Method does not exist.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.MethodNotFoundError\"})}};Object.defineProperty(Mpe,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});Dpe=class e extends im{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Invalid method parameters.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InvalidParamsError\"})}};Object.defineProperty(Dpe,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});Bpe=class e extends im{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Internal JSON-RPC error.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InternalError\"})}};Object.defineProperty(Bpe,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603});Lpe=class e extends im{constructor(t={}){super({code:e.code,data:t.data,message:t.message??\"Failed to parse JSON-RPC response.\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.ParseError\"})}};Object.defineProperty(Lpe,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700})});var tR,Upe,Fpe,Hpe,zpe,jpe,E7e=$(()=>{f();J_();tR=class extends Error{constructor(t,n){super(n),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ProviderRpcError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t,this.details=n}},Upe=class extends tR{constructor({message:t=\"The user rejected the request.\"}={}){super(4001,t),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.UserRejectedRequestError\"})}};Object.defineProperty(Upe,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001});Fpe=class extends tR{constructor({message:t=\"The requested method and/or account has not been authorized by the user.\"}={}){super(4100,t),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.UnauthorizedError\"})}};Object.defineProperty(Fpe,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100});Hpe=class extends tR{constructor({message:t=\"The provider does not support the requested method.\"}={}){super(4200,t),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.UnsupportedMethodError\"})}};Object.defineProperty(Hpe,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200});zpe=class extends tR{constructor({message:t=\"The provider is disconnected from all chains.\"}={}){super(4900,t),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.DisconnectedError\"})}};Object.defineProperty(zpe,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900});jpe=class extends tR{constructor({message:t=\"The provider is not connected to the requested chain.\"}={}){super(4901,t),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.ChainDisconnectedError\"})}};Object.defineProperty(jpe,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901})});var A7e=$(()=>{f()});var S7e=$(()=>{f()});var _7e=$(()=>{f()});var T7e,C7e,R7e,uAt,lAt,dAt,Wpe,uVn,lVn,I7e=$(()=>{f();L8();cpe();Z3();T7e={p:BigInt(\"0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff\"),n:BigInt(\"0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551\"),h:BigInt(1),a:BigInt(\"0xffffffff00000001000000000000000000000000fffffffffffffffffffffffc\"),b:BigInt(\"0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b\"),Gx:BigInt(\"0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296\"),Gy:BigInt(\"0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5\")},C7e={p:BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff\"),n:BigInt(\"0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973\"),h:BigInt(1),a:BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000fffffffc\"),b:BigInt(\"0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef\"),Gx:BigInt(\"0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7\"),Gy:BigInt(\"0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f\")},R7e={p:BigInt(\"0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\"),n:BigInt(\"0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409\"),h:BigInt(1),a:BigInt(\"0x1fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc\"),b:BigInt(\"0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00\"),Gx:BigInt(\"0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66\"),Gy:BigInt(\"0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650\")},uAt=Ud(T7e.p),lAt=Ud(C7e.p),dAt=Ud(R7e.p),Wpe=hN({...T7e,Fp:uAt,lowS:!1},Lb),uVn=hN({...C7e,Fp:lAt,lowS:!1},a6e),lVn=hN({...R7e,Fp:dAt,lowS:!1,allowedPrivateKeyLengths:[130,131,132]},sG)});var wN,k7e,JZ=$(()=>{f();I7e();wN=Wpe,k7e=Wpe});function O7e(e){let{hash:t,payload:n,publicKey:r,signature:o}=e;return k7e.verify(o,n instanceof Uint8Array?n:Kl(n),TZ(r).substring(2),...t?[{prehash:!0,lowS:!0}]:[])}var Vpe=$(()=>{f();JZ();Xg();sU()});var P7e=$(()=>{f()});var M7e=$(()=>{f()});var D7e=$(()=>{f()});var B7e=$(()=>{f()});var L7e=$(()=>{f()});var U7e=$(()=>{f()});var F7e=$(()=>{f()});var H7e=$(()=>{f()});var z7e=$(()=>{f()});var j7e=$(()=>{f()});var W7e=$(()=>{f()});var V7e=$(()=>{f()});var G7e=$(()=>{f()});function q7e(e){let t=e[4]===0?5:4,n=t+32,r=e[n+2]===0?n+3:n+2,o=BigInt(Tc(e.slice(t,n))),i=BigInt(Tc(e.slice(r)));return{r:o,s:i>wN.CURVE.n/2n?wN.CURVE.n-i:i}}async function K7e(e){try{let t=e.getPublicKey();if(!t)throw new aT;let n=new Uint8Array(t),r=await crypto.subtle.importKey(\"spki\",new Uint8Array(n),{name:\"ECDSA\",namedCurve:\"P-256\",hash:\"SHA-256\"},!0,[\"verify\"]),o=new Uint8Array(await crypto.subtle.exportKey(\"raw\",r));return K3(o)}catch(t){if(t.message!==\"Permission denied to access object\")throw t;let n=new Uint8Array(e.attestationObject),r=32,o=88,i=l=>{let d=new Uint8Array([l,o,r]);for(let m=0;m<n.length-d.length;m++)if(d.every((h,g)=>n[m+g]===h))return m+d.length;throw new aT},a=i(33),c=i(34);return K3(new Uint8Array([4,...n.slice(a,a+r),...n.slice(c,c+r)]))}}var Y7e=$(()=>{f();JZ();xw();sU();Gpe()});var xN={};as(xN,{CredentialCreationFailedError:()=>aT,CredentialRequestFailedError:()=>gU,createChallenge:()=>Z7e,createCredential:()=>TAt,getAuthenticatorData:()=>Q7e,getClientDataJSON:()=>J7e,getCredentialCreationOptions:()=>X7e,getCredentialRequestOptions:()=>$7e,getSignPayload:()=>CAt,sign:()=>RAt,verify:()=>IAt});async function TAt(e){let{createFn:t=window.navigator.credentials.create.bind(window.navigator.credentials),...n}=e,r=X7e(n);try{let o=await t(r);if(!o)throw new aT;let i=o.response,a=await K7e(i);return{id:o.id,publicKey:a,raw:o}}catch(o){throw new aT({cause:o})}}function Q7e(e={}){let{flag:t=5,rpId:n=window.location.hostname,signCount:r=0}=e,o=yZ(rN(n)),i=Uu(t,{size:1}),a=Uu(r,{size:4});return r1(o,i,a)}function J7e(e){let{challenge:t,crossOrigin:n=!1,extraClientData:r,origin:o=window.location.origin}=e;return JSON.stringify({type:\"webauthn.get\",challenge:RDe(t,{url:!0,pad:!1}),origin:o,crossOrigin:n,...r})}function X7e(e){let{attestation:t=\"none\",authenticatorSelection:n={residentKey:\"preferred\",requireResidentKey:!1,userVerification:\"required\"},challenge:r=Z7e,excludeCredentialIds:o,name:i,rp:a={id:window.location.hostname,name:window.document.title},user:c,extensions:l}=e,d=c?.name??i;return{publicKey:{attestation:t,authenticatorSelection:n,challenge:r,...o?{excludeCredentials:o?.map(m=>({id:jZ(m),type:\"public-key\"}))}:{},pubKeyCredParams:[{type:\"public-key\",alg:-7}],rp:a,user:{id:c?.id??gZ(cN(d),{as:\"Bytes\"}),name:d,displayName:c?.displayName??d},extensions:l}}}function $7e(e){let{credentialId:t,challenge:n,rpId:r=window.location.hostname,userVerification:o=\"required\"}=e;return{publicKey:{...t?{allowCredentials:[{id:jZ(t),type:\"public-key\"}]}:{},challenge:Kl(n),rpId:r,userVerification:o}}}function CAt(e){let{challenge:t,crossOrigin:n,extraClientData:r,flag:o,origin:i,rpId:a,signCount:c,userVerification:l=\"required\"}=e,d=Q7e({flag:o,rpId:a,signCount:c}),m=J7e({challenge:t,crossOrigin:n,extraClientData:r,origin:i}),h=yZ(rN(m)),g=m.indexOf(\\'\"challenge\"\\'),y=m.indexOf(\\'\"type\"\\'),w={authenticatorData:d,clientDataJSON:m,challengeIndex:g,typeIndex:y,userVerificationRequired:l===\"required\"},x=r1(d,h);return{metadata:w,payload:x}}async function RAt(e){let{getFn:t=window.navigator.credentials.get.bind(window.navigator.credentials),...n}=e,r=$7e(n);try{let o=await t(r);if(!o)throw new gU;let i=o.response,a=String.fromCharCode(...new Uint8Array(i.clientDataJSON)),c=a.indexOf(\\'\"challenge\"\\'),l=a.indexOf(\\'\"type\"\\'),d=q7e(new Uint8Array(i.signature));return{metadata:{authenticatorData:Tc(new Uint8Array(i.authenticatorData)),clientDataJSON:a,challengeIndex:c,typeIndex:l,userVerificationRequired:r.publicKey.userVerification===\"required\"},signature:d,raw:o}}catch(o){throw new gU({cause:o})}}function IAt(e){let{challenge:t,hash:n=!0,metadata:r,publicKey:o,signature:i}=e,{authenticatorData:a,challengeIndex:c,clientDataJSON:l,typeIndex:d,userVerificationRequired:m}=r,h=Kl(a);if(h.length<37)return!1;let g=h[32];if((g&1)!==1||m&&(g&4)!==4||(g&8)!==8&&(g&16)===16)return!1;let y=\\'\"type\":\"webauthn.get\"\\';if(y!==l.slice(Number(d),y.length+1))return!1;let w=l.slice(Number(c)).match(/^\"challenge\":\"(.*?)\"/);if(!w)return!1;let[x,I]=w;if(Tc(jZ(I))!==t)return!1;let C=yZ(cN(l),{as:\"Bytes\"}),M=mZ(h,C);return O7e({hash:n,payload:M,publicKey:o,signature:i})}var Z7e,aT,gU,Gpe=$(()=>{f();hpe();Xg();EE();bZ();xw();Vpe();Y7e();Z7e=Uint8Array.from([105,171,180,181,160,222,75,198,42,42,32,31,141,37,186,233]);aT=class extends Dr{constructor({cause:t}={}){super(\"Failed to create credential.\",{cause:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WebAuthnP256.CredentialCreationFailedError\"})}},gU=class extends Dr{constructor({cause:t}={}){super(\"Failed to request credential.\",{cause:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WebAuthnP256.CredentialRequestFailedError\"})}}});var sT={};as(sT,{createKeyPair:()=>kAt,sign:()=>OAt,verify:()=>NAt});async function kAt(e={}){let{extractable:t=!1}=e,n=await globalThis.crypto.subtle.generateKey({name:\"ECDSA\",namedCurve:\"P-256\"},t,[\"sign\",\"verify\"]),r=await globalThis.crypto.subtle.exportKey(\"raw\",n.publicKey),o=K3(new Uint8Array(r));return{privateKey:n.privateKey,publicKey:o}}async function OAt(e){let{payload:t,privateKey:n}=e,r=await globalThis.crypto.subtle.sign({name:\"ECDSA\",hash:\"SHA-256\"},n,sN(t)),o=Mfe(new Uint8Array(r)),i=Lfe(Bfe(o,0,32)),a=Lfe(Bfe(o,32,64));return a>wN.CURVE.n/2n&&(a=wN.CURVE.n-a),{r:i,s:a}}async function NAt(e){let{payload:t,signature:n}=e,r=await globalThis.crypto.subtle.importKey(\"raw\",zfe(e.publicKey),{name:\"ECDSA\",namedCurve:\"P-256\"},!0,[\"verify\"]);return await globalThis.crypto.subtle.verify({name:\"ECDSA\",hash:\"SHA-256\"},r,mZ(Dfe(n.r),Dfe(n.s)),sN(t))}var e9e=$(()=>{f();JZ();Xg();sU()});var yU=$(()=>{f();hMe();VMe();GMe();qMe();KMe();FMe();WMe();YMe();ZMe();Gfe();QMe();TDe();CDe();hpe();kDe();MDe();LDe();UDe();FDe();HDe();zDe();Xg();Ffe();jDe();p7e();EE();h7e();bZ();g7e();xw();y7e();eN();ODe();b7e();v7e();w7e();E7e();sU();JMe();A7e();S7e();x7e();_7e();m7e();Vpe();FZ();P7e();RZ();M7e();DDe();B7e();L7e();U7e();F7e();H7e();z7e();j7e();W7e();V7e();G7e();D7e();Gpe();e9e();BDe()});function XZ(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function bU(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=XZ(n);return(o,i)=>r.then(a=>i(a.transaction(t,o).objectStore(t)))}function Kpe(){return qpe||(qpe=bU(\"keyval-store\",\"keyval\")),qpe}function $Z(e,t=Kpe()){return t(\"readonly\",n=>XZ(n.get(e)))}function eQ(e,t,n=Kpe()){return n(\"readwrite\",r=>(r.put(t,e),XZ(r.transaction)))}function tQ(e,t=Kpe()){return t(\"readwrite\",n=>(n.delete(e),XZ(n.transaction)))}var qpe,Ype=$(()=>{f()});function t9e(e,t){let n=typeof indexedDB<\"u\"?bU(e,t):void 0;return{getItem:async r=>{let o=await $Z(r,n);return o||null},removeItem:async r=>tQ(r,n),setItem:async(r,o)=>eQ(r,o,n)}}var n9e=$(()=>{f();Ype()});async function DAt(){let e=await sT.createKeyPair({extractable:!1}),t=Lu.slice(Yp.toHex(e.publicKey),1);return await cT.setItem(t,e),await cT.setItem(nQ,t),e}async function r9e(){let e=await cT.getItem(nQ);if(!e)return null;let t=await cT.getItem(e);return t||null}async function BAt(){let e=await r9e();if(!e){let t=await DAt(),n=Lu.slice(Yp.toHex(t.publicKey),1);return await cT.setItem(n,t),await cT.setItem(nQ,n),t}return e}async function LAt(){let e=await BAt(),t=Lu.slice(Yp.toHex(e.publicKey),1),n=async r=>{let{payload:o,metadata:i}=xN.getSignPayload({challenge:r,origin:\"https://keys.coinbase.com\",userVerification:\"preferred\"}),a=await sT.sign({payload:o,privateKey:e.privateKey});return{signature:ey.toHex(a),raw:{},webauthn:i}};return{id:t,publicKey:t,async sign({hash:r}){return n(r)},async signMessage({message:r}){return n(p0(r))},async signTypedData(r){return n(Vp(r))},type:\"webAuthn\"}}async function nR(){return{account:await LAt()}}async function o9e(){let e=await r9e();e&&(await cT.removeItem(Lu.slice(Yp.toHex(e.publicKey),1)),await cT.removeItem(nQ))}var PAt,MAt,nQ,cT,rQ=$(()=>{f();yU();gn();n9e();PAt=\"base-acc-sdk\",MAt=\"keys\",nQ=\"activeId\",cT=t9e(PAt,MAt)});var i9e,a9e,s9e,oQ,c9e=$(()=>{f();rm();vfe();i9e={storageKey:\"ownPrivateKey\",keyType:\"private\"},a9e={storageKey:\"ownPublicKey\",keyType:\"public\"},s9e={storageKey:\"peerPublicKey\",keyType:\"public\"},oQ=class{constructor(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(t){this.sharedSecret=null,this.peerPublicKey=t,await this.storeKey(s9e,t),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,Ut.keys.clear()}async generateKeyPair(){let t=await cMe();this.ownPrivateKey=t.privateKey,this.ownPublicKey=t.publicKey,await this.storeKey(i9e,t.privateKey),await this.storeKey(a9e,t.publicKey)}async loadKeysIfNeeded(){if(this.ownPrivateKey===null&&(this.ownPrivateKey=await this.loadKey(i9e)),this.ownPublicKey===null&&(this.ownPublicKey=await this.loadKey(a9e)),(this.ownPrivateKey===null||this.ownPublicKey===null)&&await this.generateKeyPair(),this.peerPublicKey===null&&(this.peerPublicKey=await this.loadKey(s9e)),this.sharedSecret===null){if(this.ownPrivateKey===null||this.peerPublicKey===null)return;this.sharedSecret=await uMe(this.ownPrivateKey,this.peerPublicKey)}}async loadKey(t){let n=Ut.keys.get(t.storageKey);return n?oZ(t.keyType,n):null}async storeKey(t,n){let r=await rZ(t.keyType,n);Ut.keys.set(t.storageKey,r)}}});function rR(e,t){if(!(typeof e!=\"object\"||e===null))return t.split(/[.[\\\\]]+/).filter(Boolean).reduce((n,r)=>{if(typeof n==\"object\"&&n!==null)return n[r]},e)}var Zpe=$(()=>{f()});function Qpe(e){var t;if(!Array.isArray(e.params))return null;switch(e.method){case\"personal_sign\":return e.params[1];case\"eth_signTypedData_v4\":return e.params[0];case\"eth_signTransaction\":case\"eth_sendTransaction\":case\"wallet_sendCalls\":return(t=e.params[0])===null||t===void 0?void 0:t.from;default:return null}}function u9e(e,t){if(!Array.isArray(e.params))throw Vt.rpc.invalidParams();let n=[...e.params];switch(e.method){case\"eth_signTransaction\":case\"eth_sendTransaction\":case\"wallet_sendCalls\":n[0].from=t;break;case\"eth_signTypedData_v4\":n[0]=t;break;case\"personal_sign\":n[1]=t;break;default:break}return Object.assign(Object.assign({},e),{params:n})}function Jpe(e){var t;if(!e||!Array.isArray(e)||!(!((t=e[0])===null||t===void 0)&&t.chainId))throw Vt.rpc.invalidParams();if(typeof e[0].chainId!=\"string\"&&typeof e[0].chainId!=\"number\")throw Vt.rpc.invalidParams()}function l9e(e){if(!e||!Array.isArray(e)||e.length!==1&&e.length!==2)throw Vt.rpc.invalidParams();if(typeof e[0]!=\"string\"||!Hn(e[0]))throw Vt.rpc.invalidParams();if(e.length===2){if(!Array.isArray(e[1]))throw Vt.rpc.invalidParams();for(let t of e[1])if(typeof t!=\"string\"||!t.startsWith(\"0x\"))throw Vt.rpc.invalidParams()}}function EN(e,t){let n=Object.assign({},e);if(t&&e.method.startsWith(\"wallet_\")){let r=rR(n,\"params.0.capabilities\");if(typeof r>\"u\"&&(r={}),typeof r!=\"object\")throw Vt.rpc.invalidParams();r=Object.assign(Object.assign({},t),r),n.params&&Array.isArray(n.params)&&(n.params[0]=Object.assign(Object.assign({},n.params[0]),{capabilities:r}))}return n}async function vU(){var e;let t=(e=Ut.subAccountsConfig.get())!==null&&e!==void 0?e:{},n={};if(t.enableAutoSubAccounts){let{account:r}=t.toOwnerAccount?await t.toOwnerAccount():await nR();if(!r)throw Vt.provider.unauthorized(\"No owner account found\");n.addSubAccount={account:{type:\"create\",keys:[{type:r.address?\"address\":\"webauthn-p256\",publicKey:r.address||r.publicKey}]}}}Ut.subAccountsConfig.set({capabilities:n})}function d9e(e){if(!(e.method===\"coinbase_fetchPermissions\"&&e.params===void 0)){if(e.method===\"coinbase_fetchPermissions\"&&Array.isArray(e.params)&&e.params.length===1&&typeof e.params[0]==\"object\"){if(typeof e.params[0].account!=\"string\"||!e.params[0].chainId.startsWith(\"0x\"))throw Vt.rpc.invalidParams(\"FetchPermissions - Invalid params: params[0].account must be a hex string\");if(typeof e.params[0].chainId!=\"string\"||!e.params[0].chainId.startsWith(\"0x\"))throw Vt.rpc.invalidParams(\"FetchPermissions - Invalid params: params[0].chainId must be a hex string\");if(typeof e.params[0].spender!=\"string\"||!e.params[0].spender.startsWith(\"0x\"))throw Vt.rpc.invalidParams(\"FetchPermissions - Invalid params: params[0].spender must be a hex string\");return}throw Vt.rpc.invalidParams()}}function f9e(e){var t,n,r;if(e.params!==void 0)return e;let o=(t=Ut.getState().account.accounts)===null||t===void 0?void 0:t[0],i=(n=Ut.getState().account.chain)===null||n===void 0?void 0:n.id,a=(r=Ut.getState().subAccount)===null||r===void 0?void 0:r.address;if(!o||!a||!i)throw Vt.rpc.invalidParams(\"FetchPermissions - one or more of account, sub account, or chain id is missing, connect to sub account via wallet_connect first\");return{method:\"coinbase_fetchPermissions\",params:[{account:o,chainId:Pe(i),spender:a}]}}function p9e({spendPermission:e,chainId:t}){return{domain:{name:\"Spend Permission Manager\",version:\"1\",chainId:t,verifyingContract:Wde},types:{SpendPermission:[{name:\"account\",type:\"address\"},{name:\"spender\",type:\"address\"},{name:\"token\",type:\"address\"},{name:\"allowance\",type:\"uint160\"},{name:\"period\",type:\"uint48\"},{name:\"start\",type:\"uint48\"},{name:\"end\",type:\"uint48\"},{name:\"salt\",type:\"uint256\"},{name:\"extraData\",type:\"bytes\"}]},primaryType:\"SpendPermission\",message:{account:e.account,spender:e.spender,token:e.token,allowance:e.allowance,period:e.period,start:e.start,end:e.end,salt:e.salt,extraData:e.extraData}}}function h9e({spendPermissionBatch:e,chainId:t}){return{domain:{name:\"Spend Permission Manager\",version:\"1\",chainId:t,verifyingContract:Wde},types:{SpendPermissionBatch:[{name:\"account\",type:\"address\"},{name:\"period\",type:\"uint48\"},{name:\"start\",type:\"uint48\"},{name:\"end\",type:\"uint48\"},{name:\"permissions\",type:\"PermissionDetails[]\"}],PermissionDetails:[{name:\"spender\",type:\"address\"},{name:\"token\",type:\"address\"},{name:\"allowance\",type:\"uint160\"},{name:\"salt\",type:\"uint256\"},{name:\"extraData\",type:\"bytes\"}]},primaryType:\"SpendPermissionBatch\",message:{account:e.account,period:e.period,start:e.start,end:e.end,permissions:e.permissions.map(n=>({spender:n.spender,token:n.token,allowance:n.allowance,salt:n.salt,extraData:n.extraData}))}}}async function iQ({client:e,id:t}){var n;let r=await em(e,{id:t});if(r.status===\"success\")return(n=r.receipts)===null||n===void 0?void 0:n[0].transactionHash;throw Vt.rpc.internal(\"failed to send transaction\")}function aQ({calls:e,from:t,chainId:n,capabilities:r}){let o=jde.get().paymasterUrls,i={method:\"wallet_sendCalls\",params:[{version:\"1.0\",calls:e,chainId:Pe(n),from:t,atomicRequired:!0,capabilities:r}]};return o?.[n]&&(i=EN(i,{paymasterService:{url:o?.[n]}})),i}async function m9e(){let e=SO();return await new Promise(n=>{vO({dialogContext:\"sub_account_insufficient_balance\"}),e.presentItem({title:\"Insufficient spend permission\",message:\"Your spend permission\\'s remaining balance cannot cover this transaction. Please choose how to proceed:\",onClose:()=>{IY({dialogContext:\"sub_account_insufficient_balance\"}),e.clear()},actionItems:[{text:\"Edit spend permission\",variant:\"primary\",onClick:()=>{gw({dialogContext:\"sub_account_insufficient_balance\",dialogAction:\"create_permission\"}),e.clear(),n(\"update_permission\")}},{text:\"Use primary account\",variant:\"secondary\",onClick:()=>{gw({dialogContext:\"sub_account_insufficient_balance\",dialogAction:\"continue_in_popup\"}),e.clear(),n(\"continue_popup\")}}]})})}function g9e({errorData:e,sourceAddress:t}){var n;let r=[];for(let[o,{amount:i,sources:a}]of Object.entries((n=e?.required)!==null&&n!==void 0?n:{})){if(a.filter(l=>Zn(l.balance)>=Zn(i)&&l.address.toLowerCase()===t?.toLowerCase()).length===0)throw new Error(\"Source address has insufficient balance for a token\");r.push({token:o,requiredAmount:Zn(i)})}return r}function y9e(e){return typeof e==\"object\"&&e!==null&&\"calls\"in e}function b9e(e){return Array.isArray(e)&&e.length===1&&typeof e[0]==\"object\"&&e[0]!==null&&\"to\"in e[0]}function UAt(e){return Od(dr(Xn(e)),0,16)}function v9e({attribution:e,dappOrigin:t}){if(e){if(\"auto\"in e&&e.auto&&t)return UAt(t);if(\"dataSuffix\"in e)return e.dataSuffix}}function w9e(e,t){var n;if(!Array.isArray(e?.params))return!1;let r=(n=e.params[0])===null||n===void 0?void 0:n.capabilities;return!r||typeof r!=\"object\"?!1:t in r}function wU(e,t){let n=e.filter(r=>r!==t);return[t,...n]}function xU(e,t){return[...e.filter(r=>r!==t),t]}async function x9e(){let e=Ut.spendPermissions.get(),t=Ut.subAccounts.get(),n=Ut.account.get().accounts;return n?{accounts:n?.map(o=>({address:o,capabilities:{subAccounts:t?[t]:void 0,spendPermissions:e.length>0?{permissions:e}:void 0}}))}:null}var EU=$(()=>{f();gn();gn();om();kY();rm();FY();Zpe();tm();rQ();k3()});function FAt(e){return e.replaceAll(\"+\",\"-\").replaceAll(\"/\",\"_\").replace(/=+$/,\"\")}function sQ(e){let t=btoa(String.fromCharCode(...new Uint8Array(e)));return FAt(t)}function E9e({webauthn:e,signature:t,id:n}){let r=ey.fromHex(t);return{id:n,rawId:sQ(Fl(n)),response:{authenticatorData:sQ(Si(e.authenticatorData)),clientDataJSON:sQ(Fl(e.clientDataJSON)),signature:sQ(HAt(r.r,r.s))},type:JSON.parse(e.clientDataJSON).type}}function HAt(e,t){let n=Si(na(Pe(e))),r=Si(na(Pe(t))),o=n.length,i=r.length,a=o+i+4,c=new Uint8Array(a+2);return c[0]=48,c[1]=a,c[2]=2,c[3]=o,c.set(n,4),c[o+4]=2,c[o+5]=i,c.set(r,o+6),c}var A9e=$(()=>{f();yU();gn()});async function S9e(e){let{owner:t,ownerIndex:n,address:r,client:o,factoryData:i}=e,a={abi:HL,address:KL,version:\"0.6\"},c={abi:SY,address:WOe};return jL({client:o,entryPoint:a,extend:{abi:Cf,factory:c},async decodeCalls(l){let d=Zb({abi:Cf,data:l});if(d.functionName===\"execute\")return[{to:d.args[0],value:d.args[1],data:d.args[2]}];if(d.functionName===\"executeBatch\")return d.args[0].map(m=>({to:m.target,value:m.value,data:m.data}));throw new Oe(`unable to decode calls for \"${d.functionName}\"`)},async encodeCalls(l){var d,m;return l.length===1?xn({abi:Cf,functionName:\"execute\",args:[l[0].to,(d=l[0].value)!==null&&d!==void 0?d:BigInt(0),(m=l[0].data)!==null&&m!==void 0?m:\"0x\"]}):xn({abi:Cf,functionName:\"executeBatch\",args:[l.map(h=>{var g,y;return{data:(g=h.data)!==null&&g!==void 0?g:\"0x\",target:h.to,value:(y=h.value)!==null&&y!==void 0?y:BigInt(0)}})]})},async getAddress(){return r},async getFactoryArgs(){return i?{factory:c.address,factoryData:i}:{factory:c.address,factoryData:i}},async getStubSignature(){return t.type===\"webAuthn\"?\"0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000170000000000000000000000000000000000000000000000000000000000000001949fc7c88032b9fcb5f6efc7a7b8c63668eae9871b765e23123bb473ff57aa831a7c0d9276168ebcc29f2875a0239cffdf2a9cd1c2007c5c77c071db9264df1d000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97630500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008a7b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a2273496a396e6164474850596759334b7156384f7a4a666c726275504b474f716d59576f4d57516869467773222c226f726967696e223a2268747470733a2f2f7369676e2e636f696e626173652e636f6d222c2263726f73734f726967696e223a66616c73657d00000000000000000000000000000000000000000000\":AU({ownerIndex:n,signature:\"0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c\"})},async sign(l){let d=await this.getAddress(),m=Xpe({address:d,chainId:o.chain.id,hash:l.hash}),h=await cQ({hash:m,owner:t});return AU({ownerIndex:n,signature:h})},async signMessage(l){let{message:d}=l,m=await this.getAddress(),h=Xpe({address:m,chainId:o.chain.id,hash:p0(d)}),g=await cQ({hash:h,owner:t});return AU({ownerIndex:n,signature:g})},async signTypedData(l){let{domain:d,types:m,primaryType:h,message:g}=l,y=await this.getAddress(),w=Xpe({address:y,chainId:o.chain.id,hash:Vp({domain:d,message:g,primaryType:h,types:m})}),x=await cQ({hash:w,owner:t});return AU({ownerIndex:n,signature:x})},async signUserOperation(l){let{chainId:d=o.chain.id}=l,m=zAt(l,[\"chainId\"]),h=await this.getAddress(),g=zL({chainId:d,entryPointAddress:a.address,entryPointVersion:a.version,userOperation:Object.assign(Object.assign({},m),{sender:h})}),y=await cQ({hash:g,owner:t});return AU({ownerIndex:n,signature:y})},userOperation:{async estimateGas(l){var d;if(t.type===\"webAuthn\")return{verificationGasLimit:BigInt(Math.max(Number((d=l.verificationGasLimit)!==null&&d!==void 0?d:BigInt(0)),8e5))}}}})}async function cQ({hash:e,owner:t}){if(t.type===\"webAuthn\"){let{signature:n,webauthn:r}=await t.sign({hash:e});return jAt({signature:n,webauthn:r})}if(t.sign)return t.sign({hash:e});throw new Oe(\"`owner` does not support raw sign.\")}function Xpe({address:e,chainId:t,hash:n}){return Vp({domain:{chainId:t,name:\"Coinbase Smart Wallet\",verifyingContract:e,version:\"1\"},types:{CoinbaseSmartWalletMessage:[{name:\"hash\",type:\"bytes32\"}]},primaryType:\"CoinbaseSmartWalletMessage\",message:{hash:n}})}function jAt({webauthn:e,signature:t}){let{r:n,s:r}=X3(t);return oa([{components:[{name:\"authenticatorData\",type:\"bytes\"},{name:\"clientDataJSON\",type:\"bytes\"},{name:\"challengeIndex\",type:\"uint256\"},{name:\"typeIndex\",type:\"uint256\"},{name:\"r\",type:\"uint256\"},{name:\"s\",type:\"uint256\"}],type:\"tuple\"}],[{authenticatorData:e.authenticatorData,clientDataJSON:Ul(e.clientDataJSON),challengeIndex:BigInt(e.challengeIndex),typeIndex:BigInt(e.typeIndex),r:n,s:r}])}function AU(e){let{ownerIndex:t=0}=e,n=(()=>{if(Jr(e.signature)!==65)return e.signature;let r=pO(e.signature);return g3([\"bytes32\",\"bytes32\",\"uint8\"],[r.r,r.s,r.yParity===0?27:28])})();return oa([{components:[{name:\"ownerIndex\",type:\"uint8\"},{name:\"signatureData\",type:\"bytes\"}],type:\"tuple\"}],[{ownerIndex:t,signatureData:n}])}var zAt,_9e=$(()=>{f();FZ();gn();YL();k3();zAt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}});async function T9e({address:e,client:t,factory:n,factoryData:r,owner:o,ownerIndex:i,parentAddress:a,attribution:c}){var l;let d={address:e,factory:n,factoryData:r},m=(l=t.chain)===null||l===void 0?void 0:l.id;if(!m)throw Vt.rpc.internal(\"chainId not found\");let h=await S9e({owner:o,ownerIndex:i??1,address:e,client:t,factoryData:r}),g=async y=>{var w,x,I,C,M,B;try{switch(y.method){case\"wallet_addSubAccount\":return d;case\"eth_accounts\":return[d.address];case\"eth_coinbase\":return d.address;case\"net_version\":return m.toString();case\"eth_chainId\":return Pe(m);case\"eth_sendTransaction\":{mw(y.params);let z=y.params[0];Ld(z.to,Vt.rpc.invalidParams(\"to is required\"));let G={to:z.to,data:VY((w=z.data)!==null&&w!==void 0?w:\"0x\",!0),value:VY((x=z.value)!==null&&x!==void 0?x:\"0x\",!0),from:(I=z.from)!==null&&I!==void 0?I:d.address},J=aQ({calls:[G],chainId:m,from:G.from}),ne=await g(J);return iQ({client:t,id:ne})}case\"wallet_sendCalls\":{mw(y.params);let z=rR(y.params[0],\"chainId\");if(!z)throw Vt.rpc.invalidParams(\"chainId is required\");if(!ro(z))throw Vt.rpc.invalidParams(\"chainId must be a hex encoded integer\");if(!y.params[0])throw Vt.rpc.invalidParams(\"params are required\");if(!(\"calls\"in y.params[0]))throw Vt.rpc.invalidParams(\"calls are required\");let G={method:\"wallet_prepareCalls\",params:[{version:\"1.0\",calls:y.params[0].calls,chainId:z,from:d.address,capabilities:\"capabilities\"in y.params[0]?y.params[0].capabilities:{}}]};a&&(G=EN(G,{funding:[{type:\"spendPermission\",data:{autoApply:!0,sources:[a],preference:\"PREFER_DIRECT_BALANCE\"}}]}));let J=await g(G),ne=await((M=(C=o).sign)===null||M===void 0?void 0:M.call(C,{hash:n0(J.signatureRequest.hash)})),ie;if(!ne)throw Vt.rpc.internal(\"signature not found\");return ro(ne)?ie={type:\"secp256k1\",data:{address:o.address,signature:ne}}:ie={type:\"webauthn\",data:{signature:JSON.stringify(E9e(Object.assign({id:(B=o.id)!==null&&B!==void 0?B:\"1\"},ne))),publicKey:o.publicKey}},(await g({method:\"wallet_sendPreparedCalls\",params:[{version:\"1.0\",type:J.type,data:J.userOp,chainId:J.chainId,signature:ie}]}))[0]}case\"wallet_sendPreparedCalls\":{mw(y.params);let z=rR(y.params[0],\"chainId\");if(!z)throw Vt.rpc.invalidParams(\"chainId is required\");if(!ro(z))throw Vt.rpc.invalidParams(\"chainId must be a hex encoded integer\");return await t.request({method:\"wallet_sendPreparedCalls\",params:y.params})}case\"wallet_prepareCalls\":{mw(y.params);let z=rR(y.params[0],\"chainId\");if(!z)throw Vt.rpc.invalidParams(\"chainId is required\");if(!ro(z))throw Vt.rpc.invalidParams(\"chainId must be a hex encoded integer\");if(!y.params[0])throw Vt.rpc.invalidParams(\"params are required\");if(!rR(y.params[0],\"calls\"))throw Vt.rpc.invalidParams(\"calls are required\");let G=y.params[0];return c&&G.capabilities&&!(\"attribution\"in G.capabilities)&&(G.capabilities.attribution=c),await t.request({method:\"wallet_prepareCalls\",params:[Object.assign(Object.assign({},y.params[0]),{chainId:z})]})}case\"personal_sign\":{if(mw(y.params),!ro(y.params[0]))throw Vt.rpc.invalidParams(\"message must be a hex encoded string\");let z=n0(y.params[0]);return h.signMessage({message:z})}case\"eth_signTypedData_v4\":{mw(y.params);let z=typeof y.params[1]==\"string\"?JSON.parse(y.params[1]):y.params[1];return h.signTypedData(z)}case\"eth_signTypedData_v1\":case\"eth_signTypedData_v3\":case\"wallet_addEthereumChain\":case\"wallet_switchEthereumChain\":default:throw Vt.rpc.methodNotSupported()}}catch(z){if(RY(z)){let G=QOe(z);if(G)throw G}throw z}};return{request:g}}var C9e=$(()=>{f();om();FL();bO();A9e();Zpe();gn();EU();_9e()});async function uQ({address:e,client:t,publicKey:n,factory:r,factoryData:o}){if(!await d0(t,{address:e})&&r&&o){let c=Zb({abi:SY,data:o});if(c.functionName!==\"createAccount\")throw Vt.rpc.internal(\"unknown factory function\");let[l]=c.args;return l.findIndex(d=>d.toLowerCase()===R9e(n).toLowerCase())}let a=await _i(t,{address:e,abi:Cf,functionName:\"ownerCount\"});for(let c=Number(a)-1;c>=0;c--){let l=await _i(t,{address:e,abi:Cf,functionName:\"ownerAtIndex\",args:[BigInt(c)]}),d=R9e(n);if(l.toLowerCase()===d.toLowerCase())return c}return-1}function R9e(e){return Hn(e)?Gi(e):e}var $pe=$(()=>{f();om();gn();tm();k3()});var lQ=$(()=>{f();wL()});async function I9e(){var e,t;let n=(t=(e=Ut.config.get().metadata)===null||e===void 0?void 0:e.appName)!==null&&t!==void 0?t:\"App\",r=SO();return new Promise(o=>{vO({dialogContext:\"sub_account_add_owner\"}),r.presentItem({title:`Re-authorize ${n}`,message:`${n} has lost access to your account. Please sign at the next step to re-authorize ${n}`,onClose:()=>{IY({dialogContext:\"sub_account_add_owner\"}),o(\"cancel\")},actionItems:[{text:\"Continue\",variant:\"primary\",onClick:()=>{gw({dialogContext:\"sub_account_add_owner\",dialogAction:\"confirm\"}),r.clear(),o(\"authenticate\")}},{text:\"Not now\",variant:\"secondary\",onClick:()=>{gw({dialogContext:\"sub_account_add_owner\",dialogAction:\"cancel\"}),r.clear(),o(\"cancel\")}}]})})}var k9e=$(()=>{f();kY();rm();FY()});async function O9e({ownerAccount:e,globalAccountRequest:t}){var n,r;let o=Ut.account.get(),i=Ut.subAccounts.get(),a=(n=o.accounts)===null||n===void 0?void 0:n.find(w=>w.toLowerCase()!==i?.address.toLowerCase());Ld(a,Vt.provider.unauthorized(\"no global account\")),Ld((r=o.chain)===null||r===void 0?void 0:r.id,Vt.provider.unauthorized(\"no chain id\")),Ld(i?.address,Vt.provider.unauthorized(\"no sub account\"));let c=[];if(e.type===\"local\"&&e.address&&c.push({to:i.address,data:xn({abi:Cf,functionName:\"addOwnerAddress\",args:[e.address]}),value:Xn(0)}),e.publicKey){let[w,x]=Pu([{type:\"bytes32\"},{type:\"bytes32\"}],e.publicKey);c.push({to:i.address,data:xn({abi:Cf,functionName:\"addOwnerPublicKey\",args:[w,x]}),value:Xn(0)})}let l={method:\"wallet_sendCalls\",params:[{version:\"1\",calls:c,chainId:Pe(84532),from:a}]};if(await I9e()===\"cancel\")throw Vt.provider.unauthorized(\"user cancelled\");let m=await t(l),h=tZ(o.chain.id);if(Ld(h,Vt.rpc.internal(`client not found for chainId ${o.chain.id}`)),(await em(h,{id:m})).status!==\"success\")throw Vt.rpc.internal(\"add owner call failed\");let y=await uQ({address:i.address,publicKey:e.type===\"local\"&&e.address?e.address:e.publicKey,client:h});if(y===-1)throw Vt.rpc.internal(\"failed to find owner index\");return y}var N9e=$(()=>{f();om();yfe();rm();bO();gn();lQ();k3();$pe();k9e()});async function P9e({errorData:e,globalAccountAddress:t,subAccountAddress:n,client:r,request:o,subAccountRequest:i,globalAccountRequest:a}){var c;let l=(c=r.chain)===null||c===void 0?void 0:c.id;Ld(l,Vt.rpc.internal(\"invalid chainId\"));let d=g9e({errorData:e,sourceAddress:t}),m=await m9e();if(m===\"cancel\")throw new Error(\"User cancelled funding\");let h,g=3600*24,y=3;if(m===\"update_permission\"){if(d.length===1){let B=d[0],z=p9e({spendPermission:{token:B.token,allowance:Pe(B.requiredAmount*BigInt(y)),period:g,account:t,spender:n,start:0,end:0xffffffffffff,salt:Pe(BigInt(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER))),extraData:\"0x\"},chainId:l});h={method:\"eth_signTypedData_v4\",params:[t,z]}}else{let B=h9e({spendPermissionBatch:{account:t,period:g,start:0,end:0xffffffffffff,permissions:d.map(z=>({token:z.token,allowance:Pe(z.requiredAmount*BigInt(y)),period:g,account:t,spender:n,salt:\"0x0\",extraData:\"0x\"}))},chainId:l});h={method:\"eth_signTypedData_v4\",params:[t,B]}}try{await a(h)}catch(B){throw console.error(B),new Error(\"User denied spend permission request\")}return i(o)}let w=d.map(B=>B.token.toLowerCase()===\"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE\".toLowerCase()?{to:n,value:Pe(B.requiredAmount),data:\"0x\"}:{to:B.token,value:\"0x0\",data:xn({abi:rE,functionName:\"transfer\",args:[n,B.requiredAmount]})}),x;if(o.method===\"wallet_sendCalls\"&&y9e(o.params))x=o.params[0];else if(o.method===\"eth_sendTransaction\"&&b9e(o.params))x=aQ({calls:[o.params[0]],chainId:l,from:o.params[0].from}).params[0];else throw new Error(\"Could not get original call\");let I=xn({abi:Cf,functionName:\"executeBatch\",args:[x.calls.map(B=>{var z,G;return{target:B.to,value:Zn((z=B.value)!==null&&z!==void 0?z:\"0x0\"),data:(G=B.data)!==null&&G!==void 0?G:\"0x\"}})]}),C=[...w,{data:I,to:n,value:\"0x0\"}],M=await a({method:\"wallet_sendCalls\",params:[Object.assign(Object.assign({},x),{calls:C,from:t})]});return o.method===\"eth_sendTransaction\"?iQ({client:r,id:M}):M}var M9e=$(()=>{f();om();bO();gn();EU();k3()});var dQ,D9e=$(()=>{f();wE();gn();om();bPe();RPe();IPe();FL();yfe();bfe();rm();bO();sMe();vfe();wfe();rQ();c9e();EU();C9e();$pe();N9e();M9e();dQ=class{constructor(t){var n,r,o,i;this.communicator=t.communicator,this.callback=t.callback,this.keyManager=new oQ;let{account:a,chains:c}=Ut.getState();this.accounts=(n=a.accounts)!==null&&n!==void 0?n:[],this.chain=(r=a.chain)!==null&&r!==void 0?r:{id:(i=(o=t.metadata.appChainIds)===null||o===void 0?void 0:o[0])!==null&&i!==void 0?i:1},c&&gfe(c)}get isConnected(){return this.accounts.length>0}async handshake(t){var n,r,o;let i=t1.get(t);fPe({method:t.method,correlationId:i});try{await((r=(n=this.communicator).waitForPopupLoaded)===null||r===void 0?void 0:r.call(n));let a=await this.createRequestMessage({handshake:{method:t.method,params:(o=t.params)!==null&&o!==void 0?o:[]}},i),c=await this.communicator.postRequestAndWaitForResponse(a);if(\"failure\"in c.content)throw c.content.failure;let l=await oZ(\"public\",c.sender);await this.keyManager.setPeerPublicKey(l);let d=await this.decryptResponseMessage(c);this.handleResponse(t,d),hPe({method:t.method,correlationId:i})}catch(a){throw pPe({method:t.method,correlationId:i,errorMessage:_O(a)}),a}}async request(t){let n=t1.get(t);mPe({method:t.method,correlationId:n});try{let r=await this._request(t);return yPe({method:t.method,correlationId:n}),r}catch(r){throw gPe({method:t.method,correlationId:n,errorMessage:_O(r)}),r}}async _request(t){var n,r,o,i,a,c,l,d,m,h;if(this.accounts.length===0)switch(t.method){case\"wallet_switchEthereumChain\":{Jpe(t.params),this.chain.id=Number(t.params[0].chainId);return}case\"wallet_connect\":{await((r=(n=this.communicator).waitForPopupLoaded)===null||r===void 0?void 0:r.call(n)),await vU();let g={};w9e(t,\"addSubAccount\")&&(g=(i=(o=Ut.subAccountsConfig.get())===null||o===void 0?void 0:o.capabilities)!==null&&i!==void 0?i:{});let y=EN(t,g);return this.sendRequestToPopup(y)}case\"wallet_sendCalls\":case\"wallet_sign\":return this.sendRequestToPopup(t);default:throw Vt.provider.unauthorized()}if(this.shouldRequestUseSubAccountSigner(t)){let g=t1.get(t);vPe({method:t.method,correlationId:g});try{let y=await this.sendRequestToSubAccountSigner(t);return wPe({method:t.method,correlationId:g}),y}catch(y){throw xPe({method:t.method,correlationId:g,errorMessage:_O(y)}),y}}switch(t.method){case\"eth_requestAccounts\":case\"eth_accounts\":{let g=Ut.subAccounts.get(),y=Ut.subAccountsConfig.get();return g?.address&&(this.accounts=y?.enableAutoSubAccounts?wU(this.accounts,g.address):xU(this.accounts,g.address)),(a=this.callback)===null||a===void 0||a.call(this,\"connect\",{chainId:Pe(this.chain.id)}),this.accounts}case\"eth_coinbase\":return this.accounts[0];case\"net_version\":return this.chain.id;case\"eth_chainId\":return Pe(this.chain.id);case\"wallet_getCapabilities\":return this.handleGetCapabilitiesRequest(t);case\"wallet_switchEthereumChain\":return this.handleSwitchChainRequest(t);case\"eth_ecRecover\":case\"personal_sign\":case\"wallet_sign\":case\"personal_ecRecover\":case\"eth_signTransaction\":case\"eth_sendTransaction\":case\"eth_signTypedData_v1\":case\"eth_signTypedData_v3\":case\"eth_signTypedData_v4\":case\"eth_signTypedData\":case\"wallet_addEthereumChain\":case\"wallet_watchAsset\":case\"wallet_sendCalls\":case\"wallet_showCallsStatus\":case\"wallet_grantPermissions\":return this.sendRequestToPopup(t);case\"wallet_connect\":{let g=await x9e();if(g)return g;await((l=(c=this.communicator).waitForPopupLoaded)===null||l===void 0?void 0:l.call(c)),await vU();let y=Ut.subAccountsConfig.get(),w=EN(t,(d=y?.capabilities)!==null&&d!==void 0?d:{}),x=await this.sendRequestToPopup(w);return(m=this.callback)===null||m===void 0||m.call(this,\"connect\",{chainId:Pe(this.chain.id)}),x}case\"wallet_getSubAccounts\":{let g=Ut.subAccounts.get();if(g?.address)return{subAccounts:[g]};if(!this.chain.rpcUrl)throw Vt.rpc.internal(\"No RPC URL set for chain\");let y=await JO(t,this.chain.rpcUrl);if(mw(y.subAccounts,\"subAccounts\"),y.subAccounts.length>0){ZL(y.subAccounts[0]);let w=y.subAccounts[0];Ut.subAccounts.set({address:w.address,factory:w.factory,factoryData:w.factoryData})}return y}case\"wallet_addSubAccount\":return this.addSubAccount(t);case\"coinbase_fetchPermissions\":{d9e(t);let g=f9e(t),y=await JO(g,EY),w=Lo((h=g.params)===null||h===void 0?void 0:h[0].chainId);return Ut.spendPermissions.set(y.permissions.map(x=>Object.assign(Object.assign({},x),{chainId:w}))),y}default:if(!this.chain.rpcUrl)throw Vt.rpc.internal(\"No RPC URL set for chain\");return JO(t,this.chain.rpcUrl)}}async sendRequestToPopup(t){var n,r;await((r=(n=this.communicator).waitForPopupLoaded)===null||r===void 0?void 0:r.call(n));let o=await this.sendEncryptedRequest(t),i=await this.decryptResponseMessage(o);return this.handleResponse(t,i)}async handleResponse(t,n){var r,o,i,a,c;let l=n.result;if(\"error\"in l)throw l.error;switch(t.method){case\"eth_requestAccounts\":{let d=l.value;this.accounts=d,Ut.account.set({accounts:d,chain:this.chain}),(r=this.callback)===null||r===void 0||r.call(this,\"accountsChanged\",d);break}case\"wallet_connect\":{let d=l.value,m=d.accounts.map(C=>C.address);this.accounts=m,Ut.account.set({accounts:m});let h=d.accounts.at(0),g=h?.capabilities;if(g?.subAccounts){let C=g?.subAccounts;mw(C,\"subAccounts\"),ZL(C[0]),Ut.subAccounts.set({address:C[0].address,factory:C[0].factory,factoryData:C[0].factoryData})}let y=[this.accounts[0]],w=Ut.subAccounts.get(),x=Ut.subAccountsConfig.get();w?.address&&(this.accounts=x?.enableAutoSubAccounts?wU(this.accounts,w.address):xU(this.accounts,w.address));let I=(i=(o=d?.accounts)===null||o===void 0?void 0:o[0].capabilities)===null||i===void 0?void 0:i.spendPermissions;I&&\"permissions\"in I&&Ut.spendPermissions.set(I?.permissions),(a=this.callback)===null||a===void 0||a.call(this,\"accountsChanged\",y);break}case\"wallet_addSubAccount\":{ZL(l.value);let d=l.value;Ut.subAccounts.set(d);let m=Ut.subAccountsConfig.get();this.accounts=m?.enableAutoSubAccounts?wU(this.accounts,d.address):xU(this.accounts,d.address),(c=this.callback)===null||c===void 0||c.call(this,\"accountsChanged\",this.accounts);break}default:break}return l.value}async cleanup(){var t,n;let r=Ut.config.get().metadata;await this.keyManager.clear(),Ut.account.clear(),Ut.subAccounts.clear(),Ut.spendPermissions.clear(),Ut.chains.clear(),this.accounts=[],this.chain={id:(n=(t=r?.appChainIds)===null||t===void 0?void 0:t[0])!==null&&n!==void 0?n:1}}async handleSwitchChainRequest(t){Jpe(t.params);let n=dPe(t.params[0].chainId);if(this.updateChain(n))return null;let o=await this.sendRequestToPopup(t);return o===null&&this.updateChain(n),o}async handleGetCapabilitiesRequest(t){l9e(t.params);let n=t.params[0],r=t.params[1];if(!this.accounts.some(c=>Dd(c,n)))throw Vt.provider.unauthorized(\"no active account found when getting capabilities\");let o=Ut.getState().account.capabilities;if(!o)return{};if(!r||r.length===0)return o;let i=new Set(r.map(c=>Lo(c)));return Object.fromEntries(Object.entries(o).filter(([c])=>{try{let l=Lo(c);return i.has(l)}catch{return!1}}))}async sendEncryptedRequest(t){let n=await this.keyManager.getSharedSecret();if(!n)throw Vt.provider.unauthorized(\"No shared secret found when encrypting request\");let r=await dMe({action:t,chainId:this.chain.id},n),o=t1.get(t),i=await this.createRequestMessage({encrypted:r},o);return this.communicator.postRequestAndWaitForResponse(i)}async createRequestMessage(t,n){let r=await rZ(\"public\",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),correlationId:n,sender:r,content:t,timestamp:new Date}}async decryptResponseMessage(t){var n,r,o;let i=t.content;if(\"failure\"in i)throw i.failure;let a=await this.keyManager.getSharedSecret();if(!a)throw Vt.provider.unauthorized(\"Invalid session: no shared secret found when decrypting response\");let c=await fMe(i.encrypted,a),l=(n=c.data)===null||n===void 0?void 0:n.chains;if(l){let m=(r=c.data)===null||r===void 0?void 0:r.nativeCurrencies,h=Object.entries(l).map(([g,y])=>{let w=m?.[Number(g)];return Object.assign({id:Number(g),rpcUrl:y},w?{nativeCurrency:w}:{})});Ut.chains.set(h),this.updateChain(this.chain.id,h),gfe(h)}let d=(o=c.data)===null||o===void 0?void 0:o.capabilities;return d&&Ut.account.set({capabilities:d}),c}updateChain(t,n){var r;let o=Ut.getState(),i=n??o.chains,a=i?.find(c=>c.id===t);return a?(a!==this.chain&&(this.chain=a,Ut.account.set({chain:a}),(r=this.callback)===null||r===void 0||r.call(this,\"chainChanged\",WY(a.id))),!0):!1}async addSubAccount(t){var n,r,o,i;let c=Ut.getState().subAccount,l=Ut.subAccountsConfig.get();if(c?.address)return this.accounts=l?.enableAutoSubAccounts?wU(this.accounts,c.address):xU(this.accounts,c.address),(n=this.callback)===null||n===void 0||n.call(this,\"accountsChanged\",this.accounts),c;if(await((o=(r=this.communicator).waitForPopupLoaded)===null||o===void 0?void 0:o.call(r)),Array.isArray(t.params)&&t.params.length>0&&t.params[0].account&&t.params[0].account.type===\"create\"){let m;if(t.params[0].account.keys&&t.params[0].account.keys.length>0)m=t.params[0].account.keys;else{let h=(i=Ut.subAccountsConfig.get())!==null&&i!==void 0?i:{},{account:g}=h.toOwnerAccount?await h.toOwnerAccount():await nR();if(!g)throw Vt.provider.unauthorized(\"could not get subaccount owner account when adding sub account\");m=[{type:g.address?\"address\":\"webauthn-p256\",publicKey:g.address||g.publicKey}]}t.params[0].account.keys=m}let d=await this.sendRequestToPopup(t);return ZL(d),d}shouldRequestUseSubAccountSigner(t){let n=Qpe(t),r=Ut.subAccounts.get();return n?n.toLowerCase()===r?.address.toLowerCase():!1}async sendRequestToSubAccountSigner(t){var n;let r=Ut.subAccounts.get(),o=Ut.subAccountsConfig.get(),i=Ut.config.get();Ld(r?.address,Vt.provider.unauthorized(\"no active sub account when sending request to sub account signer\"));let a=o?.toOwnerAccount?await o.toOwnerAccount():await nR();Ld(a?.account,Vt.provider.unauthorized(\"no active sub account owner when sending request to sub account signer\")),Qpe(t)===void 0&&(t=u9e(t,r.address));let l=tZ(this.chain.id);Ld(l,Vt.rpc.internal(`client not found for chainId ${this.chain.id} when sending request to sub account signer`));let d=this.accounts.find(w=>w.toLowerCase()!==r.address.toLowerCase());Ld(d,Vt.provider.unauthorized(\"no global account found when sending request to sub account signer\"));let m=v9e({attribution:(n=i.preference)===null||n===void 0?void 0:n.attribution,dappOrigin:window.location.origin}),h=a.account.type===\"local\"?a.account.address:a.account.publicKey,g=await uQ({address:r.address,factory:r.factory,factoryData:r.factoryData,publicKey:h,client:l});if(g===-1){let w=t1.get(t);EPe({method:t.method,correlationId:w});try{g=await O9e({ownerAccount:a.account,globalAccountRequest:this.sendRequestToPopup.bind(this)}),APe({method:t.method,correlationId:w})}catch(x){return SPe({method:t.method,correlationId:w,errorMessage:_O(x)}),Vt.provider.unauthorized(\"failed to add sub account owner when sending request to sub account signer\")}}let{request:y}=await T9e({address:r.address,owner:a.account,client:l,factory:r.factory,factoryData:r.factoryData,parentAddress:d,attribution:m?{suffix:m}:void 0,ownerIndex:g});try{return await y(t)}catch(w){let x;if(RY(w))x=JSON.parse(w.details);else if(qde(w))x=w;else throw w;if(!(qde(x)&&x.data)||!x.data)throw w;let I=t1.get(t);_Pe({method:t.method,correlationId:I});try{let C=await P9e({errorData:x.data,globalAccountAddress:d,subAccountAddress:r.address,client:l,request:t,subAccountRequest:y,globalAccountRequest:this.request.bind(this)});return TPe({method:t.method,correlationId:I}),C}catch(C){throw console.error(C),CPe({method:t.method,correlationId:I,errorMessage:_O(C)}),w}}}}});var WAt,fQ,B9e=$(()=>{f();XNe();wE();ML();om();ePe();tPe();iPe();FL();D9e();EU();bfe();rm();wfe();WAt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},fQ=class extends zY{constructor(t){var{metadata:n}=t,r=t.preference,{walletUrl:o}=r,i=WAt(r,[\"walletUrl\"]);super(),this.isBaseAccount=!0,this.communicator=new HY({url:o,metadata:n,preference:i}),this.signer=new dQ({metadata:n,communicator:this.communicator,callback:this.emit.bind(this)})}async request(t){let n=crypto.randomUUID();t1.set(t,n),nPe({method:t.method,correlationId:n});try{let r=await this._request(t);return oPe({method:t.method,correlationId:n}),r}catch(r){throw rPe({method:t.method,correlationId:n,errorMessage:r instanceof Error?r.message:\"\"}),r}finally{t1.delete(t)}}async _request(t){var n,r;try{if(pMe(t),!this.signer.isConnected)switch(t.method){case\"eth_requestAccounts\":{await this.signer.handshake({method:\"handshake\"}),await vU(),await this.signer.request({method:\"wallet_connect\",params:[{version:\"1\",capabilities:Object.assign({},(r=(n=Ut.subAccountsConfig.get())===null||n===void 0?void 0:n.capabilities)!==null&&r!==void 0?r:{})}]});break}case\"wallet_connect\":return await this.signer.handshake({method:\"handshake\"}),await this.signer.request(t);case\"wallet_sendCalls\":case\"wallet_sign\":try{return await this.signer.handshake({method:\"handshake\"}),await this.signer.request(t)}finally{await this.signer.cleanup()}case\"wallet_getCallsStatus\":return await JO(t,EY);case\"eth_accounts\":return[];case\"net_version\":return 1;case\"eth_chainId\":return WY(1);default:throw Vt.provider.unauthorized(\"Must call \\'eth_requestAccounts\\' before other methods\")}return await this.signer.request(t)}catch(o){let{code:i}=o;return i===cs.provider.unauthorized&&await this.disconnect(),Promise.reject($Ne(o))}}async disconnect(){await this.signer.cleanup(),t1.clear(),this.emit(\"disconnect\",Vt.provider.disconnected(\"User initiated disconnection\"))}}});function L9e(){var e,t;let n=(e=window.ethereum)!==null&&e!==void 0?e:(t=window.top)===null||t===void 0?void 0:t.ethereum;return n?.[VAt]?n:null}var VAt,U9e=$(()=>{f();VAt=\"isCoinbaseBrowser\"});function pQ(e){var t,n,r,o;let i={metadata:{appName:e.appName||\"App\",appLogoUrl:e.appLogoUrl||\"\",appChainIds:e.appChainIds||[]},preference:(t=e.preference)!==null&&t!==void 0?t:{},paymasterUrls:e.paymasterUrls};!((n=e.subAccounts)===null||n===void 0)&&n.toOwnerAccount&&Yde(e.subAccounts.toOwnerAccount),Ut.subAccountsConfig.set({toOwnerAccount:(r=e.subAccounts)===null||r===void 0?void 0:r.toOwnerAccount,enableAutoSubAccounts:(o=e.subAccounts)===null||o===void 0?void 0:o.enableAutoSubAccounts}),Ut.config.set(i),Ut.persist.rehydrate(),JOe(),$Oe(i.preference),i.preference.telemetry!==!1&&zOe();let a=null,c={getProvider:()=>{var l;return a||(a=(l=L9e())!==null&&l!==void 0?l:new fQ(i)),a},subAccount:{async create(l){var d;return await((d=c.getProvider())===null||d===void 0?void 0:d.request({method:\"wallet_addSubAccount\",params:[{version:\"1\",account:l}]}))},async get(){var l,d;let m=Ut.subAccounts.get();if(m?.address)return m;let g=(d=(await((l=c.getProvider())===null||l===void 0?void 0:l.request({method:\"wallet_connect\",params:[{version:\"1\",capabilities:{}}]}))).accounts[0].capabilities)===null||d===void 0?void 0:d.subAccounts;return Array.isArray(g)?g[0]:null},addOwner:async({address:l,publicKey:d,chainId:m})=>{var h,g;let y=Ut.subAccounts.get(),w=Ut.account.get();Ld(w,new Error(\"account does not exist\")),Ld(y?.address,new Error(\"subaccount does not exist\"));let x=[];if(d){let[I,C]=Pu([{type:\"bytes32\"},{type:\"bytes32\"}],d);x.push({to:y.address,data:xn({abi:Cf,functionName:\"addOwnerPublicKey\",args:[I,C]}),value:Xn(0)})}return l&&x.push({to:y.address,data:xn({abi:Cf,functionName:\"addOwnerAddress\",args:[l]}),value:Xn(0)}),await((h=c.getProvider())===null||h===void 0?void 0:h.request({method:\"wallet_sendCalls\",params:[{calls:x,chainId:Xn(m),from:(g=w.accounts)===null||g===void 0?void 0:g[0],version:\"1\"}]}))},setToOwnerAccount(l){Yde(l),Ut.subAccountsConfig.set({toOwnerAccount:l})}}};return c}var ehe=$(()=>{f();jOe();k3();rm();bO();Kde();eNe();gn();B9e();U9e()});var oR,AN,hQ,SU=$(()=>{f();oR={USDC:{decimals:6,addresses:{base:\"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",baseSepolia:\"0x036CbD53842c5426634e7929541eC2318f3dCF7e\"}}},AN={base:8453,baseSepolia:84532},hQ=[{name:\"transfer\",type:\"function\",stateMutability:\"nonpayable\",inputs:[{name:\"to\",type:\"address\"},{name:\"amount\",type:\"uint256\"}],outputs:[{name:\"\",type:\"bool\"}]},{name:\"Transfer\",type:\"event\",anonymous:!1,inputs:[{name:\"from\",type:\"address\",indexed:!0},{name:\"to\",type:\"address\",indexed:!0},{name:\"value\",type:\"uint256\",indexed:!1}]}]});var F9e,H9e,z9e,j9e,_U,the,nhe=$(()=>{f();O3();F9e=({amount:e,testnet:t,correlationId:n})=>{ko(\"payment.pay.started\",{action:ao.process,componentType:io.unknown,method:\"pay\",correlationId:n,signerType:\"base-account\",amount:e,testnet:t},so.high)},H9e=({amount:e,testnet:t,correlationId:n,errorMessage:r})=>{ko(\"payment.pay.error\",{action:ao.error,componentType:io.unknown,method:\"pay\",correlationId:n,signerType:\"base-account\",amount:e,testnet:t,errorMessage:r},so.high)},z9e=({amount:e,testnet:t,correlationId:n})=>{ko(\"payment.pay.completed\",{action:ao.process,componentType:io.unknown,method:\"pay\",correlationId:n,signerType:\"base-account\",amount:e,testnet:t},so.high)},j9e=({testnet:e,correlationId:t})=>{ko(\"payment.status_check.started\",{action:ao.process,componentType:io.unknown,method:\"getPaymentStatus\",correlationId:t,signerType:\"base-account\",testnet:e},so.low)},_U=({testnet:e,status:t,correlationId:n})=>{ko(\"payment.status_check.completed\",{action:ao.process,componentType:io.unknown,method:\"getPaymentStatus\",correlationId:n,signerType:\"base-account\",testnet:e,status:t},so.low)},the=({testnet:e,correlationId:t,errorMessage:n})=>{ko(\"payment.status_check.error\",{action:ao.error,componentType:io.unknown,method:\"getPaymentStatus\",correlationId:t,errorMessage:n,signerType:\"base-account\",testnet:e},so.low)}});async function TU(e){var t;let{id:n,testnet:r=!1,telemetry:o=!0}=e,i=crypto.randomUUID();o&&j9e({testnet:r,correlationId:i});try{let a=r?\"https://api.developer.coinbase.com/rpc/v1/base-sepolia/S-fOd2n2Oi4fl4e1Crm83XeDXZ7tkg8O\":\"https://api.developer.coinbase.com/rpc/v1/base/S-fOd2n2Oi4fl4e1Crm83XeDXZ7tkg8O\",c=await fetch(a,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({jsonrpc:\"2.0\",id:1,method:\"eth_getUserOperationReceipt\",params:[n]})}).then(h=>h.json());if(c.error){console.error(\"[getPaymentStatus] RPC error:\",c.error);let h=c.error.message||\"Network error\";return o&&the({testnet:r,correlationId:i,errorMessage:h}),{status:\"failed\",id:n,message:\"Unable to check payment status. Please try again later.\",error:h}}if(!c.result){let h=await fetch(a,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({jsonrpc:\"2.0\",id:2,method:\"eth_getUserOperationByHash\",params:[n]})}).then(y=>y.json());return h.result?(o&&_U({testnet:r,status:\"pending\",correlationId:i}),{status:\"pending\",id:n,message:\"Your payment is being processed. This usually takes a few seconds.\",sender:h.result.sender}):(o&&_U({testnet:r,status:\"not_found\",correlationId:i}),{status:\"not_found\",id:n,message:\"Payment not found. Please check your transaction ID.\"})}let{success:l,receipt:d,reason:m}=c.result;if(l){let h,g;if(d?.logs){let w=r?\"baseSepolia\":\"base\",x=oR.USDC.addresses[w].toLowerCase();for(let I of d.logs)if(((t=I.address)===null||t===void 0?void 0:t.toLowerCase())===x)try{let C=pE({abi:hQ,data:I.data,topics:I.topics});if(C.eventName===\"Transfer\"&&C.args){let M=C.args;if(M.value&&M.to){h=ba(M.value,6),g=M.to;break}}}catch(C){console.error(\"[getPaymentStatus] Error parsing log:\",C)}}return o&&_U({testnet:r,status:\"completed\",correlationId:i}),{status:\"completed\",id:n,message:\"Payment completed successfully\",sender:c.result.sender,amount:h,recipient:g}}else{let h=\"Payment could not be completed\";return m&&(m.toLowerCase().includes(\"insufficient\")?h=\"Insufficient USDC balance\":m.toLowerCase().includes(\"revert\")?h=\"Payment was rejected\":h=m),o&&_U({testnet:r,status:\"failed\",correlationId:i}),{status:\"failed\",id:n,message:\"Payment failed\",sender:c.result.sender,error:h}}}catch(a){console.error(\"[getPaymentStatus] Error checking status:\",a);let c=a instanceof Error?a.message:\"Connection error\";return o&&the({testnet:r,correlationId:i,errorMessage:c}),{status:\"failed\",id:n,message:\"Unable to check payment status\",error:c}}}var rhe=$(()=>{f();gn();nhe();SU()});function GAt(e,t,n=!0){let r=typeof window<\"u\"?window.location.origin:\"Base Pay SDK\";return pQ({appName:r,appChainIds:[e],preference:{telemetry:n,walletUrl:t}})}async function qAt(e,t){var n;let o=await e.getProvider().request({method:\"wallet_sendCalls\",params:[t]}),i,a;if(typeof o==\"string\"&&o.length>=66)i=o.slice(0,66);else if(typeof o==\"object\"&&o!==null){let c=o;if(typeof c.id==\"string\"&&c.id.length>=66)i=c.id.slice(0,66),!((n=c.capabilities)===null||n===void 0)&&n.dataCallback&&(a=c.capabilities.dataCallback);else throw new Error(`Could not extract transaction hash from object response. Available fields: ${Object.keys(c).join(\", \")}`)}else throw new Error(`Unexpected response format from wallet_sendCalls: expected string with length > 66 or object with id, got ${typeof o}`);return{transactionHash:i,payerInfoResponses:a}}async function W9e(e,t,n,r=!0){let i=AN[t?\"baseSepolia\":\"base\"],a=GAt(i,n,r),c=a.getProvider();try{return await qAt(a,e)}finally{await c.disconnect()}}var V9e=$(()=>{f();ehe();SU()});function KAt(e,t){let n=G_(t,oR.USDC.decimals);return xn({abi:hQ,functionName:\"transfer\",args:[e,n]})}function YAt(e,t,n){let r=t?\"baseSepolia\":\"base\",o=AN[r],a={to:oR.USDC.addresses[r],data:e,value:\"0x0\"},c={};return n&&n.requests.length>0&&(c.dataCallback={requests:n.requests.map(d=>{var m;return{type:d.type,optional:(m=d.optional)!==null&&m!==void 0?m:!1}}),callbackURL:n.callbackURL}),{version:\"2.0.0\",chainId:o,calls:[a],capabilities:c}}function G9e(e,t,n,r){let o=KAt(e,t);return YAt(o,n,r)}var q9e=$(()=>{f();gn();SU()});function K9e(e,t){if(typeof e!=\"string\")throw new Error(\"Invalid amount: must be a string\");let n=parseFloat(e);if(isNaN(n))throw new Error(\"Invalid amount: must be a valid number\");if(n<=0)throw new Error(\"Invalid amount: must be greater than 0\");let r=e.indexOf(\".\");if(r!==-1&&e.length-r-1>t)throw new Error(`Invalid amount: pay only supports up to ${t} decimal places`)}function Y9e(e){if(!e)throw new Error(\"Invalid address: address is required\");if(!Hn(e))throw new Error(\"Invalid address: must be a valid Ethereum address\")}var Z9e=$(()=>{f();gn()});async function CU(e){var t;let{amount:n,to:r,testnet:o=!1,payerInfo:i,walletUrl:a,telemetry:c=!0}=e,l=crypto.randomUUID();c&&F9e({amount:n,testnet:o,correlationId:l});try{K9e(n,2),Y9e(r);let d=G9e(r,n,o,i),m=await W9e(d,o,a,c);return c&&z9e({amount:n,testnet:o,correlationId:l}),{success:!0,id:m.transactionHash,amount:n,to:r,payerInfoResponses:m.payerInfoResponses}}catch(d){let m=\"Unknown error occurred\";if(d instanceof Error)m=d.message;else if(typeof d==\"string\")m=d;else if(d&&typeof d==\"object\"){let h=d;typeof h?.message==\"string\"?m=h.message:typeof((t=h?.error)===null||t===void 0?void 0:t.message)==\"string\"?m=h.error.message:typeof h?.reason==\"string\"&&(m=h.reason)}return c&&H9e({amount:n,testnet:o,correlationId:l,errorMessage:m}),{success:!1,error:m,amount:n,to:r}}}var ohe=$(()=>{f();nhe();V9e();q9e();Z9e()});var ihe,Q9e=$(()=>{f();SU();rhe();ohe();ihe={pay:CU,getPaymentStatus:TU,constants:{CHAIN_IDS:AN,TOKENS:oR},types:{}}});var J9e=$(()=>{f();Q9e();rhe();ohe()});var X9e={};as(X9e,{base:()=>ihe,createBaseAccountSDK:()=>pQ,getCryptoKeyAccount:()=>nR,getPaymentStatus:()=>TU,pay:()=>CU,removeCryptoKey:()=>o9e});var $9e=$(()=>{f();ehe();rQ();J9e()});var ty,mQ,iR=$(()=>{f();ty=\"4.3.6\",mQ=\"@coinbase/wallet-sdk\"});var ZAt,QAt,JAt,XAt,$At,eSt,tSt,ru,nSt,rSt,oSt,iSt,aSt,sSt,ahe,cSt,Bt,ny=$(()=>{f();zde();I3();iR();ZAt=()=>({chains:[]}),QAt=()=>({keys:{}}),JAt=()=>({account:{}}),XAt=()=>({subAccount:void 0}),$At=()=>({subAccountConfig:{}}),eSt=()=>({spendPermissions:[]}),tSt=()=>({config:{version:ty}}),ru=Qg(AY((...e)=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ZAt(...e)),QAt(...e)),JAt(...e)),XAt(...e)),eSt(...e)),tSt(...e)),$At(...e)),{name:\"cbwsdk.store\",storage:PL(()=>localStorage),partialize:e=>({chains:e.chains,keys:e.keys,account:e.account,subAccount:e.subAccount,spendPermissions:e.spendPermissions,config:e.config})})),nSt={get:()=>ru.getState().subAccountConfig,set:e=>{ru.setState(t=>({subAccountConfig:Object.assign(Object.assign({},t.subAccountConfig),e)}))},clear:()=>{ru.setState({subAccountConfig:{}})}},rSt={get:()=>ru.getState().subAccount,set:e=>{ru.setState(t=>({subAccount:t.subAccount?Object.assign(Object.assign({},t.subAccount),e):Object.assign({address:e.address},e)}))},clear:()=>{ru.setState({subAccount:void 0})}},oSt={get:()=>ru.getState().spendPermissions,set:e=>{ru.setState({spendPermissions:e})},clear:()=>{ru.setState({spendPermissions:[]})}},iSt={get:()=>ru.getState().account,set:e=>{ru.setState(t=>({account:Object.assign(Object.assign({},t.account),e)}))},clear:()=>{ru.setState({account:{}})}},aSt={get:()=>ru.getState().chains,set:e=>{ru.setState({chains:e})},clear:()=>{ru.setState({chains:[]})}},sSt={get:e=>ru.getState().keys[e],set:(e,t)=>{ru.setState(n=>({keys:Object.assign(Object.assign({},n.keys),{[e]:t})}))},clear:()=>{ru.setState({keys:{}})}},ahe={get:()=>ru.getState().config,set:e=>{ru.setState(t=>({config:Object.assign(Object.assign({},t.config),e)}))}},cSt={subAccounts:rSt,subAccountsConfig:nSt,spendPermissions:oSt,account:iSt,chains:aSt,keys:sSt,config:ahe},Bt=Object.assign(Object.assign({},ru),cSt)});var eBe,tBe=$(()=>{f();eBe=\\'!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports.ClientAnalytics=t():e.ClientAnalytics=t()}(this,(function(){return(()=>{var e={792:e=>{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 t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join(\"\")}}};e.exports=t},562:e=>{var t,n;t=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join(\"\")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var i=e[r]<<16|e[r+1]<<8|e[r+2],a=0;a<4;a++)8*r+6*a<=8*e.length?n.push(t.charAt(i>>>6*(3-a)&63)):n.push(\"=\");return n.join(\"\")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\\\\\\\\/]/gi,\"\");for(var n=[],r=0,i=0;r<e.length;i=++r%4)0!=i&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(r))>>>6-2*i);return n}},e.exports=n},335:e=>{function t(e){return!!e.constructor&&\"function\"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return\"function\"==typeof e.readFloatLE&&\"function\"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},762:(e,t,n)=>{var r,i,a,o,s;r=n(562),i=n(792).utf8,a=n(335),o=n(792).bin,(s=function(e,t){e.constructor==String?e=t&&\"binary\"===t.encoding?o.stringToBytes(e):i.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),c=8*e.length,u=1732584193,l=-271733879,d=-1732584194,p=271733878,m=0;m<n.length;m++)n[m]=16711935&(n[m]<<8|n[m]>>>24)|4278255360&(n[m]<<24|n[m]>>>8);n[c>>>5]|=128<<c%32,n[14+(c+64>>>9<<4)]=c;var f=s._ff,v=s._gg,g=s._hh,b=s._ii;for(m=0;m<n.length;m+=16){var h=u,w=l,y=d,T=p;u=f(u,l,d,p,n[m+0],7,-680876936),p=f(p,u,l,d,n[m+1],12,-389564586),d=f(d,p,u,l,n[m+2],17,606105819),l=f(l,d,p,u,n[m+3],22,-1044525330),u=f(u,l,d,p,n[m+4],7,-176418897),p=f(p,u,l,d,n[m+5],12,1200080426),d=f(d,p,u,l,n[m+6],17,-1473231341),l=f(l,d,p,u,n[m+7],22,-45705983),u=f(u,l,d,p,n[m+8],7,1770035416),p=f(p,u,l,d,n[m+9],12,-1958414417),d=f(d,p,u,l,n[m+10],17,-42063),l=f(l,d,p,u,n[m+11],22,-1990404162),u=f(u,l,d,p,n[m+12],7,1804603682),p=f(p,u,l,d,n[m+13],12,-40341101),d=f(d,p,u,l,n[m+14],17,-1502002290),u=v(u,l=f(l,d,p,u,n[m+15],22,1236535329),d,p,n[m+1],5,-165796510),p=v(p,u,l,d,n[m+6],9,-1069501632),d=v(d,p,u,l,n[m+11],14,643717713),l=v(l,d,p,u,n[m+0],20,-373897302),u=v(u,l,d,p,n[m+5],5,-701558691),p=v(p,u,l,d,n[m+10],9,38016083),d=v(d,p,u,l,n[m+15],14,-660478335),l=v(l,d,p,u,n[m+4],20,-405537848),u=v(u,l,d,p,n[m+9],5,568446438),p=v(p,u,l,d,n[m+14],9,-1019803690),d=v(d,p,u,l,n[m+3],14,-187363961),l=v(l,d,p,u,n[m+8],20,1163531501),u=v(u,l,d,p,n[m+13],5,-1444681467),p=v(p,u,l,d,n[m+2],9,-51403784),d=v(d,p,u,l,n[m+7],14,1735328473),u=g(u,l=v(l,d,p,u,n[m+12],20,-1926607734),d,p,n[m+5],4,-378558),p=g(p,u,l,d,n[m+8],11,-2022574463),d=g(d,p,u,l,n[m+11],16,1839030562),l=g(l,d,p,u,n[m+14],23,-35309556),u=g(u,l,d,p,n[m+1],4,-1530992060),p=g(p,u,l,d,n[m+4],11,1272893353),d=g(d,p,u,l,n[m+7],16,-155497632),l=g(l,d,p,u,n[m+10],23,-1094730640),u=g(u,l,d,p,n[m+13],4,681279174),p=g(p,u,l,d,n[m+0],11,-358537222),d=g(d,p,u,l,n[m+3],16,-722521979),l=g(l,d,p,u,n[m+6],23,76029189),u=g(u,l,d,p,n[m+9],4,-640364487),p=g(p,u,l,d,n[m+12],11,-421815835),d=g(d,p,u,l,n[m+15],16,530742520),u=b(u,l=g(l,d,p,u,n[m+2],23,-995338651),d,p,n[m+0],6,-198630844),p=b(p,u,l,d,n[m+7],10,1126891415),d=b(d,p,u,l,n[m+14],15,-1416354905),l=b(l,d,p,u,n[m+5],21,-57434055),u=b(u,l,d,p,n[m+12],6,1700485571),p=b(p,u,l,d,n[m+3],10,-1894986606),d=b(d,p,u,l,n[m+10],15,-1051523),l=b(l,d,p,u,n[m+1],21,-2054922799),u=b(u,l,d,p,n[m+8],6,1873313359),p=b(p,u,l,d,n[m+15],10,-30611744),d=b(d,p,u,l,n[m+6],15,-1560198380),l=b(l,d,p,u,n[m+13],21,1309151649),u=b(u,l,d,p,n[m+4],6,-145523070),p=b(p,u,l,d,n[m+11],10,-1120210379),d=b(d,p,u,l,n[m+2],15,718787259),l=b(l,d,p,u,n[m+9],21,-343485551),u=u+h>>>0,l=l+w>>>0,d=d+y>>>0,p=p+T>>>0}return r.endian([u,l,d,p])})._ff=function(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._gg=function(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._hh=function(e,t,n,r,i,a,o){var s=e+(t^n^r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._ii=function(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+(i>>>0)+o;return(s<<a|s>>>32-a)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error(\"Illegal argument \"+e);var n=r.wordsToBytes(s(e,t));return t&&t.asBytes?n:t&&t.asString?o.bytesToString(n):r.bytesToHex(n)}},2:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{Perfume:()=>ze,incrementUjNavigation:()=>Le,markStep:()=>Re,markStepOnce:()=>qe});var r,i,a={isResourceTiming:!1,isElementTiming:!1,maxTime:3e4,reportOptions:{},enableNavigationTracking:!0},o=window,s=o.console,c=o.navigator,u=o.performance,l=function(){return c.deviceMemory},d=function(){return c.hardwareConcurrency},p=\"mark.\",m=function(){return u&&!!u.getEntriesByType&&!!u.now&&!!u.mark},f=\"4g\",v=!1,g={},b={value:0},h={value:{beacon:0,css:0,fetch:0,img:0,other:0,script:0,total:0,xmlhttprequest:0}},w={value:0},y={value:0},T={},k={isHidden:!1,didChange:!1},_=function(){k.isHidden=!1,document.hidden&&(k.isHidden=document.hidden,k.didChange=!0)},S=function(e,t){try{var n=new PerformanceObserver((function(e){t(e.getEntries())}));return n.observe({type:e,buffered:!0}),n}catch(e){s.warn(\"Perfume.js:\",e)}return null},E=function(){return!!(d()&&d()<=4)||!!(l()&&l()<=4)},x=function(e,t){switch(e){case\"slow-2g\":case\"2g\":case\"3g\":return!0;default:return E()||t}},O=function(e){return parseFloat(e.toFixed(4))},j=function(e){return\"number\"!=typeof e?null:O(e/Math.pow(1024,2))},N=function(e,t,n,r,i){var s,u=function(){a.analyticsTracker&&(k.isHidden&&![\"CLS\",\"INP\"].includes(e)||a.analyticsTracker({attribution:r,metricName:e,data:t,navigatorInformation:c?{deviceMemory:l()||0,hardwareConcurrency:d()||0,serviceWorkerStatus:\"serviceWorker\"in c?c.serviceWorker.controller?\"controlled\":\"supported\":\"unsupported\",isLowEndDevice:E(),isLowEndExperience:x(f,v)}:{},rating:n,navigationType:i}))};[\"CLS\",\"INP\"].includes(e)?u():(s=u,\"requestIdleCallback\"in o?o.requestIdleCallback(s,{timeout:3e3}):s())},I=function(e){e.forEach((function(e){if(!(\"self\"!==e.name||e.startTime<b.value)){var t=e.duration-50;t>0&&(w.value+=t,y.value+=t)}}))};!function(e){e.instant=\"instant\",e.quick=\"quick\",e.moderate=\"moderate\",e.slow=\"slow\",e.unavoidable=\"unavoidable\"}(r||(r={}));var P,M,B,C,D,A=((i={})[r.instant]={vitalsThresholds:[100,200],maxOutlierThreshold:1e4},i[r.quick]={vitalsThresholds:[200,500],maxOutlierThreshold:1e4},i[r.moderate]={vitalsThresholds:[500,1e3],maxOutlierThreshold:1e4},i[r.slow]={vitalsThresholds:[1e3,2e3],maxOutlierThreshold:1e4},i[r.unavoidable]={vitalsThresholds:[2e3,5e3],maxOutlierThreshold:2e4},i),L={RT:[100,200],TBT:[200,600],NTBT:[200,600]},U=function(e,t){return L[e]?t<=L[e][0]?\"good\":t<=L[e][1]?\"needsImprovement\":\"poor\":null},R=function(e,t,n){Object.keys(t).forEach((function(e){\"number\"==typeof t[e]&&(t[e]=O(t[e]))})),N(e,t,null,n||{})},q=function(e){var t=e.attribution,n=e.name,r=e.rating,i=e.value,o=e.navigationType;\"FCP\"===n&&(b.value=i),[\"FCP\",\"LCP\"].includes(n)&&!T[0]&&(T[0]=S(\"longtask\",I)),\"FID\"===n&&setTimeout((function(){k.didChange||(q({attribution:t,name:\"TBT\",rating:U(\"TBT\",w.value),value:w.value,navigationType:o}),R(\"dataConsumption\",h.value))}),1e4);var s=O(i);s<=a.maxTime&&s>=0&&N(n,s,r,t,o)},F=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType(\"navigation\")[0]},z=function(e){if(\"loading\"===document.readyState)return\"loading\";var t=F();if(t){if(e<t.domInteractive)return\"loading\";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return\"dom-interactive\";if(0===t.domComplete||e<t.domComplete)return\"dom-content-loaded\"}return\"complete\"},K=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,\"\")},$=function(e,t){var n=\"\";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?\"#\"+r.id:K(r)+(r.className&&r.className.length?\".\"+r.className.replace(/\\\\\\\\s+/g,\".\"):\"\");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+\">\"+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},Q=-1,W=function(){return Q},H=function(e){addEventListener(\"pageshow\",(function(t){t.persisted&&(Q=t.timeStamp,e(t))}),!0)},V=function(){var e=F();return e&&e.activationStart||0},J=function(e,t){var n=F(),r=\"navigate\";return W()>=0?r=\"back-forward-cache\":n&&(r=document.prerendering||V()>0?\"prerender\":document.wasDiscarded?\"restore\":n.type.replace(/_/g,\"-\")),{name:e,value:void 0===t?-1:t,rating:\"good\",delta:0,entries:[],id:\"v3-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},X=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},G=function(e,t){var n=function n(r){\"pagehide\"!==r.type&&\"hidden\"!==document.visibilityState||(e(r),t&&(removeEventListener(\"visibilitychange\",n,!0),removeEventListener(\"pagehide\",n,!0)))};addEventListener(\"visibilitychange\",n,!0),addEventListener(\"pagehide\",n,!0)},Z=function(e,t,n,r){var i,a;return function(o){t.value>=0&&(o||r)&&((a=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=function(e,t){return e>t[1]?\"poor\":e>t[0]?\"needs-improvement\":\"good\"}(t.value,n),e(t))}},Y=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},ee=function(e){document.prerendering?addEventListener(\"prerenderingchange\",(function(){return e()}),!0):e()},te=-1,ne=function(){return\"hidden\"!==document.visibilityState||document.prerendering?1/0:0},re=function(e){\"hidden\"===document.visibilityState&&te>-1&&(te=\"visibilitychange\"===e.type?e.timeStamp:0,ae())},ie=function(){addEventListener(\"visibilitychange\",re,!0),addEventListener(\"prerenderingchange\",re,!0)},ae=function(){removeEventListener(\"visibilitychange\",re,!0),removeEventListener(\"prerenderingchange\",re,!0)},oe=function(){return te<0&&(te=ne(),ie(),H((function(){setTimeout((function(){te=ne(),ie()}),0)}))),{get firstHiddenTime(){return te}}},se=function(e,t){t=t||{},ee((function(){var n,r=[1800,3e3],i=oe(),a=J(\"FCP\"),o=X(\"paint\",(function(e){e.forEach((function(e){\"first-contentful-paint\"===e.name&&(o.disconnect(),e.startTime<i.firstHiddenTime&&(a.value=Math.max(e.startTime-V(),0),a.entries.push(e),n(!0)))}))}));o&&(n=Z(e,a,r,t.reportAllChanges),H((function(i){a=J(\"FCP\"),n=Z(e,a,r,t.reportAllChanges),Y((function(){a.value=performance.now()-i.timeStamp,n(!0)}))})))}))},ce={passive:!0,capture:!0},ue=new Date,le=function(e,t){P||(P=t,M=e,B=new Date,me(removeEventListener),de())},de=function(){if(M>=0&&M<B-ue){var e={entryType:\"first-input\",name:P.type,target:P.target,cancelable:P.cancelable,startTime:P.timeStamp,processingStart:P.timeStamp+M};C.forEach((function(t){t(e)})),C=[]}},pe=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?function(e,t){var n=function(){le(e,t),i()},r=function(){i()},i=function(){removeEventListener(\"pointerup\",n,ce),removeEventListener(\"pointercancel\",r,ce)};addEventListener(\"pointerup\",n,ce),addEventListener(\"pointercancel\",r,ce)}(t,e):le(t,e)}},me=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach((function(t){return e(t,pe,ce)}))},fe=0,ve=1/0,ge=0,be=function(e){e.forEach((function(e){e.interactionId&&(ve=Math.min(ve,e.interactionId),ge=Math.max(ge,e.interactionId),fe=ge?(ge-ve)/7+1:0)}))},he=function(){return D?fe:performance.interactionCount||0},we=0,ye=function(){return he()-we},Te=[],ke={},_e=function(e){var t=Te[Te.length-1],n=ke[e.interactionId];if(n||Te.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};ke[r.id]=r,Te.push(r)}Te.sort((function(e,t){return t.latency-e.latency})),Te.splice(10).forEach((function(e){delete ke[e.id]}))}},Se={},Ee=function e(t){document.prerendering?ee((function(){return e(t)})):\"complete\"!==document.readyState?addEventListener(\"load\",(function(){return e(t)}),!0):setTimeout(t,0)},xe=function(e,t){t=t||{};var n=[800,1800],r=J(\"TTFB\"),i=Z(e,r,n,t.reportAllChanges);Ee((function(){var a=F();if(a){var o=a.responseStart;if(o<=0||o>performance.now())return;r.value=Math.max(o-V(),0),r.entries=[a],i(!0),H((function(){r=J(\"TTFB\",0),(i=Z(e,r,n,t.reportAllChanges))(!0)}))}}))},Oe=function(e){e.forEach((function(e){e.identifier&&q({attribution:{identifier:e.identifier},name:\"ET\",rating:null,value:e.startTime})}))},je=function(e){e.forEach((function(e){if(a.isResourceTiming&&R(\"resourceTiming\",e),e.decodedBodySize&&e.initiatorType){var t=e.decodedBodySize/1e3;h.value[e.initiatorType]+=t,h.value.total+=t}}))},Ne=function(){!function(e,t){xe((function(e){!function(e){if(e.entries.length){var t=e.entries[0],n=t.activationStart||0,r=Math.max(t.domainLookupStart-n,0),i=Math.max(t.connectStart-n,0),a=Math.max(t.requestStart-n,0);e.attribution={waitingTime:r,dnsTime:i-r,connectionTime:a-i,requestTime:e.value-a,navigationEntry:t}}else e.attribution={waitingTime:0,dnsTime:0,connectionTime:0,requestTime:0}}(e),function(e){e.value>0&&q(e)}(e)}),t)}(0,a.reportOptions.ttfb),function(e,t){!function(e,t){t=t||{},ee((function(){var e,n=[.1,.25],r=J(\"CLS\"),i=-1,a=0,o=[],s=function(e){i>-1&&function(e){!function(e){if(e.entries.length){var t=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(t&&t.sources&&t.sources.length){var n=(r=t.sources).find((function(e){return e.node&&1===e.node.nodeType}))||r[0];if(n)return void(e.attribution={largestShiftTarget:$(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:z(t.startTime)})}}var r;e.attribution={}}(e),function(e){q(e)}(e)}(e)},c=function(t){t.forEach((function(t){if(!t.hadRecentInput){var n=o[0],i=o[o.length-1];a&&t.startTime-i.startTime<1e3&&t.startTime-n.startTime<5e3?(a+=t.value,o.push(t)):(a=t.value,o=[t]),a>r.value&&(r.value=a,r.entries=o,e())}}))},u=X(\"layout-shift\",c);u&&(e=Z(s,r,n,t.reportAllChanges),se((function(t){i=t.value,r.value<0&&(r.value=0,e())})),G((function(){c(u.takeRecords()),e(!0)})),H((function(){a=0,i=-1,r=J(\"CLS\",0),e=Z(s,r,n,t.reportAllChanges),Y((function(){return e()}))})))}))}(0,t)}(0,a.reportOptions.cls),function(e,t){se((function(e){!function(e){if(e.entries.length){var t=F(),n=e.entries[e.entries.length-1];if(t){var r=t.activationStart||0,i=Math.max(0,t.responseStart-r);return void(e.attribution={timeToFirstByte:i,firstByteToFCP:e.value-i,loadState:z(e.entries[0].startTime),navigationEntry:t,fcpEntry:n})}}e.attribution={timeToFirstByte:0,firstByteToFCP:e.value,loadState:z(W())}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.fcp),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=[100,300],i=oe(),a=J(\"FID\"),o=function(e){e.startTime<i.firstHiddenTime&&(a.value=e.processingStart-e.startTime,a.entries.push(e),n(!0))},s=function(e){e.forEach(o)},c=X(\"first-input\",s);n=Z(e,a,r,t.reportAllChanges),c&&G((function(){s(c.takeRecords()),c.disconnect()}),!0),c&&H((function(){var i;a=J(\"FID\"),n=Z(e,a,r,t.reportAllChanges),C=[],M=-1,P=null,me(addEventListener),i=o,C.push(i),de()}))}))}((function(e){!function(e){var t=e.entries[0];e.attribution={eventTarget:$(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:z(t.startTime)}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.fid),function(e,t){!function(e,t){t=t||{},ee((function(){var n,r=[2500,4e3],i=oe(),a=J(\"LCP\"),o=function(e){var t=e[e.length-1];if(t){var r=Math.max(t.startTime-V(),0);r<i.firstHiddenTime&&(a.value=r,a.entries=[t],n())}},s=X(\"largest-contentful-paint\",o);if(s){n=Z(e,a,r,t.reportAllChanges);var c=function(){Se[a.id]||(o(s.takeRecords()),s.disconnect(),Se[a.id]=!0,n(!0))};[\"keydown\",\"click\"].forEach((function(e){addEventListener(e,c,{once:!0,capture:!0})})),G(c,!0),H((function(i){a=J(\"LCP\"),n=Z(e,a,r,t.reportAllChanges),Y((function(){a.value=performance.now()-i.timeStamp,Se[a.id]=!0,n(!0)}))}))}}))}((function(e){!function(e){if(e.entries.length){var t=F();if(t){var n=t.activationStart||0,r=e.entries[e.entries.length-1],i=r.url&&performance.getEntriesByType(\"resource\").filter((function(e){return e.name===r.url}))[0],a=Math.max(0,t.responseStart-n),o=Math.max(a,i?(i.requestStart||i.startTime)-n:0),s=Math.max(o,i?i.responseEnd-n:0),c=Math.max(s,r?r.startTime-n:0),u={element:$(r.element),timeToFirstByte:a,resourceLoadDelay:o-a,resourceLoadTime:s-o,elementRenderDelay:c-s,navigationEntry:t,lcpEntry:r};return r.url&&(u.url=r.url),i&&(u.lcpResourceEntry=i),void(e.attribution=u)}}e.attribution={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadTime:0,elementRenderDelay:e.value}}(e),function(e){q(e)}(e)}),t)}(0,a.reportOptions.lcp),function(e,t){!function(e,t){t=t||{},ee((function(){var n=[200,500];\"interactionCount\"in performance||D||(D=X(\"event\",be,{type:\"event\",buffered:!0,durationThreshold:0}));var r,i=J(\"INP\"),a=function(e){e.forEach((function(e){e.interactionId&&_e(e),\"first-input\"===e.entryType&&!Te.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&_e(e)}));var t,n=(t=Math.min(Te.length-1,Math.floor(ye()/50)),Te[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r())},o=X(\"event\",a,{durationThreshold:t.durationThreshold||40});r=Z(e,i,n,t.reportAllChanges),o&&(o.observe({type:\"first-input\",buffered:!0}),G((function(){a(o.takeRecords()),i.value<0&&ye()>0&&(i.value=0,i.entries=[]),r(!0)})),H((function(){Te=[],we=he(),i=J(\"INP\"),r=Z(e,i,n,t.reportAllChanges)})))}))}((function(t){!function(e){if(e.entries.length){var t=e.entries.sort((function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)}))[0];e.attribution={eventTarget:$(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:z(t.startTime)}}else e.attribution={}}(t),e(t)}),t)}((function(e){return q(e)}),a.reportOptions.inp),a.isResourceTiming&&S(\"resource\",je),a.isElementTiming&&S(\"element\",Oe)},Ie=function(e){var t=\"usageDetails\"in e?e.usageDetails:{};R(\"storageEstimate\",{quota:j(e.quota),usage:j(e.usage),caches:j(t.caches),indexedDB:j(t.indexedDB),serviceWorker:j(t.serviceWorkerRegistrations)})},Pe={finalMarkToStepsMap:{},startMarkToStepsMap:{},active:{},navigationSteps:{}},Me=function(e){delete Pe.active[e]},Be=function(){return Pe.navigationSteps},Ce=function(e){var t;return null!==(t=Be()[e])&&void 0!==t?t:{}},De=function(e,t,n){var r=\"step.\"+e,i=u.getEntriesByName(p+t).length>0;if(u.getEntriesByName(p+n).length>0&&a.steps){var o=A[a.steps[e].threshold],s=o.maxOutlierThreshold,c=o.vitalsThresholds;if(i){var l=u.measure(r,p+t,p+n),d=l.duration;if(d<=s){var m=function(e,t){return e<=t[0]?\"good\":e<=t[1]?\"needsImprovement\":\"poor\"}(d,c);d>=0&&(N(\"userJourneyStep\",d,m,{stepName:e},void 0),u.measure(\"step.\".concat(e,\"_vitals_\").concat(m),{start:l.startTime+l.duration,end:l.startTime+l.duration,detail:{type:\"stepVital\",duration:d}}))}}}},Ae=function(){var e=Be(),t=Pe.startMarkToStepsMap,n=Object.keys(e).length;if(0===n)return{};var r={},i=n-1,a=Ce(i);if(Object.keys(a).forEach((function(e){var n,i=null!==(n=t[e])&&void 0!==n?n:[];Object.keys(i).forEach((function(e){r[e]=!0}))})),n>1){var o=Ce(i-1);Object.keys(o).forEach((function(e){var n,i=null!==(n=t[e])&&void 0!==n?n:[];Object.keys(i).forEach((function(e){r[e]=!0}))}))}return r},Le=function(){var e,t=Object.keys(Pe.navigationSteps).length;Pe.navigationSteps[t]={};var n=Ae();null===(e=a.onMarkStep)||void 0===e||e.call(a,\"\",Object.keys(n))},Ue=function(e){var t,n,r,i,o,s,c;if(Pe.finalMarkToStepsMap[e]){!function(e){var t=Pe.navigationSteps,n=Pe.finalMarkToStepsMap,r=Object.keys(t).length;if(0!==r){var i=r-1,a=Ce(i);if(a&&n[e]){var o=n[e];o&&Object.keys(o).forEach((function(e){if(a[e]){var n=Ce(i)||{};n[e]=!1,t[i]=n}if(r>1){var o=i-1,s=Ce(o);s[e]&&(s[e]=!1,t[o]=s)}}))}}}(e);var u=Pe.finalMarkToStepsMap[e];Object.keys(u).forEach((function(t){var n=u[t];n.forEach(Me),Promise.all(n.map((function(n){return function(e,t,n,r){return new(n||(n=Promise))((function(e,t){function i(e){try{o(r.next(e))}catch(e){t(e)}}function a(e){try{o(r.throw(e))}catch(e){t(e)}}function o(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}o((r=r.apply(undefined,[])).next())}))}(0,0,void 0,(function(){return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},\"function\"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError(\"Generator is already executing.\");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(r){switch(r.label){case 0:return[4,De(n,t,e)];case 1:return r.sent(),[2]}}))}))}))).catch((function(){}))}))}else r=e,i=Pe.navigationSteps,o=Object.keys(i).length,(c=Ce(s=(o>0?o:1)-1)||[])[r]=!0,i[s]=c,function(e){var t,n=null!==(t=Pe.startMarkToStepsMap[e])&&void 0!==t?t:[];Object.keys(n).forEach((function(e){Pe.active[e]||(Pe.active[e]=!0)}))}(e);if(a.enableNavigationTracking){var l=Ae();null===(t=a.onMarkStep)||void 0===t||t.call(a,e,Object.keys(l))}else null===(n=a.onMarkStep)||void 0===n||n.call(a,e,Object.keys(Pe.active))},Re=function(e){u.mark(p+e),Ue(e)},qe=function(e){0===u.getEntriesByName(p+e).length&&(u.mark(p+e),Ue(e))},Fe=0,ze=function(){function e(e){if(void 0===e&&(e={}),this.v=\"9.0.0-rc.3\",a.analyticsTracker=e.analyticsTracker,a.isResourceTiming=!!e.resourceTiming,a.isElementTiming=!!e.elementTiming,a.maxTime=e.maxMeasureTime||a.maxTime,a.reportOptions=e.reportOptions||a.reportOptions,a.steps=e.steps,a.onMarkStep=e.onMarkStep,a.enableNavigationTracking=e.enableNavigationTracking,m()){\"PerformanceObserver\"in o&&Ne(),void 0!==document.hidden&&document.addEventListener(\"visibilitychange\",_);var t=function(){if(!m())return{};var e=u.getEntriesByType(\"navigation\")[0];if(!e)return{};var t=e.responseStart,n=e.responseEnd;return{fetchTime:n-e.fetchStart,workerTime:e.workerStart>0?n-e.workerStart:0,totalTime:n-e.requestStart,downloadTime:n-t,timeToFirstByte:t-e.requestStart,headerSize:e.transferSize-e.encodedBodySize||0,dnsLookupTime:e.domainLookupEnd-e.domainLookupStart,redirectTime:e.redirectEnd-e.redirectStart}}();R(\"navigationTiming\",t),t.redirectTime&&q({attribution:{},name:\"RT\",rating:U(\"RT\",t.redirectTime),value:t.redirectTime}),R(\"networkInformation\",function(){if(\"connection\"in c){var e=c.connection;return\"object\"!=typeof e?{}:(f=e.effectiveType,v=!!e.saveData,{downlink:e.downlink,effectiveType:e.effectiveType,rtt:e.rtt,saveData:!!e.saveData})}return{}}()),c&&c.storage&&\"function\"==typeof c.storage.estimate&&c.storage.estimate().then(Ie),a.steps&&a.steps&&(Pe.startMarkToStepsMap={},Pe.finalMarkToStepsMap={},Pe.active={},Pe.navigationSteps={},Object.entries(a.steps).forEach((function(e){var t,n,r=e[0],i=e[1].marks,a=i[0],o=i[1],s=null!==(n=Pe.startMarkToStepsMap[a])&&void 0!==n?n:{};if(s[r]=!0,Pe.startMarkToStepsMap[a]=s,Pe.finalMarkToStepsMap[o]){var c=Pe.finalMarkToStepsMap[o][a]||[];c.push(r),Pe.finalMarkToStepsMap[o][a]=c}else Pe.finalMarkToStepsMap[o]=((t={})[a]=[r],t)})))}}return e.prototype.start=function(e){m()&&!g[e]&&(g[e]=!0,u.mark(\"mark_\".concat(e,\"_start\")))},e.prototype.end=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n=!0),m()&&g[e]){u.mark(\"mark_\".concat(e,\"_end\")),delete g[e];var r=function(e){u.measure(e,\"mark_\".concat(e,\"_start\"),\"mark_\".concat(e,\"_end\"));var t=u.getEntriesByName(e).pop();return t&&\"measure\"===t.entryType?t.duration:-1}(e);n&&R(e,O(r),t)}},e.prototype.endPaint=function(e,t){var n=this;setTimeout((function(){n.end(e,t)}))},e.prototype.clear=function(e){delete g[e],u.clearMarks&&(u.clearMarks(\"mark_\".concat(e,\"_start\")),u.clearMarks(\"mark_\".concat(e,\"_end\")))},e.prototype.markNTBT=function(){var e=this;this.start(\"ntbt\"),y.value=0,clearTimeout(Fe),Fe=setTimeout((function(){e.end(\"ntbt\",{},!1),q({attribution:{},name:\"NTBT\",rating:U(\"NTBT\",y.value),value:y.value}),y.value=0}),2e3)},e}()},426:(e,t)=>{\"use strict\";Symbol.for(\"react.element\"),Symbol.for(\"react.portal\"),Symbol.for(\"react.fragment\"),Symbol.for(\"react.strict_mode\"),Symbol.for(\"react.profiler\"),Symbol.for(\"react.provider\"),Symbol.for(\"react.context\"),Symbol.for(\"react.forward_ref\"),Symbol.for(\"react.suspense\"),Symbol.for(\"react.memo\"),Symbol.for(\"react.lazy\"),Symbol.iterator;var n={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},r=Object.assign,i={};function a(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}function o(){}function s(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(\"object\"!=typeof e&&\"function\"!=typeof e&&null!=e)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,e,t,\"setState\")},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,\"forceUpdate\")},o.prototype=a.prototype;var c=s.prototype=new o;c.constructor=s,r(c,a.prototype),c.isPureReactComponent=!0;Array.isArray,Object.prototype.hasOwnProperty;var u={current:null};t.useCallback=function(e,t){return u.current.useCallback(e,t)},t.useEffect=function(e,t){return u.current.useEffect(e,t)},t.useRef=function(e){return u.current.useRef(e)}},784:(e,t,n)=>{\"use strict\";e.exports=n(426)},353:function(e,t,n){var r;!function(i,a){\"use strict\";var o=\"function\",s=\"undefined\",c=\"object\",u=\"string\",l=\"major\",d=\"model\",p=\"name\",m=\"type\",f=\"vendor\",v=\"version\",g=\"architecture\",b=\"console\",h=\"mobile\",w=\"tablet\",y=\"smarttv\",T=\"wearable\",k=\"embedded\",_=\"Amazon\",S=\"Apple\",E=\"ASUS\",x=\"BlackBerry\",O=\"Browser\",j=\"Chrome\",N=\"Firefox\",I=\"Google\",P=\"Huawei\",M=\"LG\",B=\"Microsoft\",C=\"Motorola\",D=\"Opera\",A=\"Samsung\",L=\"Sharp\",U=\"Sony\",R=\"Xiaomi\",q=\"Zebra\",F=\"Facebook\",z=\"Chromium OS\",K=\"Mac OS\",$=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Q=function(e,t){return typeof e===u&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===u)return e=e.replace(/^\\\\\\\\s\\\\\\\\s*/,\"\"),typeof t===s?e:e.substring(0,350)},V=function(e,t){for(var n,r,i,s,u,l,d=0;d<t.length&&!u;){var p=t[d],m=t[d+1];for(n=r=0;n<p.length&&!u&&p[n];)if(u=p[n++].exec(e))for(i=0;i<m.length;i++)l=u[++r],typeof(s=m[i])===c&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):a:this[s[0]]=l?s[1].call(this,l,s[2]):a:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):a):this[s]=l||a;d+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Q(t[n][r],e))return\"?\"===n?a:n}else if(Q(t[n],e))return\"?\"===n?a:n;return e},X={ME:\"4.90\",\"NT 3.11\":\"NT3.51\",\"NT 4.0\":\"NT4.0\",2e3:\"NT 5.0\",XP:[\"NT 5.1\",\"NT 5.2\"],Vista:\"NT 6.0\",7:\"NT 6.1\",8:\"NT 6.2\",8.1:\"NT 6.3\",10:[\"NT 6.4\",\"NT 10.0\"],RT:\"ARM\"},G={browser:[[/\\\\\\\\b(?:crmo|crios)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Chrome\"]],[/edg(?:e|ios|a)?\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Edge\"]],[/(opera mini)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(opera [mobiletab]{3,6})\\\\\\\\b.+version\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(opera)(?:.+version\\\\\\\\/|[\\\\\\\\/ ]+)([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/opios[\\\\\\\\/ ]+([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\" Mini\"]],[/\\\\\\\\bopr\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D]],[/(kindle)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(ba?idubrowser)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i,/(?:ms|\\\\\\\\()(ie) ([\\\\\\\\w\\\\\\\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i,/(heytap|ovi)browser\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i,/(weibo)__([\\\\\\\\d\\\\\\\\.]+)/i],[p,v],[/(?:\\\\\\\\buc? ?browser|(?:juc.+)ucweb)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"UC\"+O]],[/microm.+\\\\\\\\bqbcore\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\bqbcore\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+).+microm/i],[v,[p,\"WeChat(Win) Desktop\"]],[/micromessenger\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"WeChat\"]],[/konqueror\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Konqueror\"]],[/trident.+rv[: ]([\\\\\\\\w\\\\\\\\.]{1,9})\\\\\\\\b.+like gecko/i],[v,[p,\"IE\"]],[/ya(?:search)?browser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Yandex\"]],[/(avast|avg)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/(.+)/,\"$1 Secure \"+O],v],[/\\\\\\\\bfocus\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N+\" Focus\"]],[/\\\\\\\\bopt\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\" Touch\"]],[/coc_coc\\\\\\\\w+\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Coc Coc\"]],[/dolfin\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Dolphin\"]],[/coast\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,D+\" Coast\"]],[/miuibrowser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"MIUI \"+O]],[/fxios\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N]],[/\\\\\\\\bqihu|(qi?ho?o?|360)browser/i],[[p,\"360 \"+O]],[/(oculus|samsung|sailfish|huawei)browser\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/(.+)/,\"$1 \"+O],v],[/(comodo_dragon)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,/_/g,\" \"],v],[/(electron)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\\\\\\\/(20\\\\\\\\d\\\\\\\\d\\\\\\\\.[-\\\\\\\\w\\\\\\\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/(metasr)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]+)/i,/(lbbrowser)/i,/\\\\\\\\[(linkedin)app\\\\\\\\]/i],[p],[/((?:fban\\\\\\\\/fbios|fb_iab\\\\\\\\/fb4a)(?!.+fbav)|;fbav\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+);)/i],[[p,F],v],[/(kakao(?:talk|story))[\\\\\\\\/ ]([\\\\\\\\w\\\\\\\\.]+)/i,/(naver)\\\\\\\\(.*?(\\\\\\\\d+\\\\\\\\.[\\\\\\\\w\\\\\\\\.]+).*\\\\\\\\)/i,/safari (line)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\b(line)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\/iab/i,/(chromium|instagram)[\\\\\\\\/ ]([-\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/\\\\\\\\bgsa\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) .*safari\\\\\\\\//i],[v,[p,\"GSA\"]],[/musical_ly(?:.+app_?version\\\\\\\\/|_)([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"TikTok\"]],[/headlesschrome(?:\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)| )/i],[v,[p,j+\" Headless\"]],[/ wv\\\\\\\\).+(chrome)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[[p,j+\" WebView\"],v],[/droid.+ version\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b.+(?:mobile safari|safari)/i],[v,[p,\"Android \"+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\\\\\\\/v?([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/version\\\\\\\\/([\\\\\\\\w\\\\\\\\.\\\\\\\\,]+) .*mobile\\\\\\\\/\\\\\\\\w+ (safari)/i],[v,[p,\"Mobile Safari\"]],[/version\\\\\\\\/([\\\\\\\\w(\\\\\\\\.|\\\\\\\\,)]+) .*(mobile ?safari|safari)/i],[v,p],[/webkit.+?(mobile ?safari|safari)(\\\\\\\\/[\\\\\\\\w\\\\\\\\.]+)/i],[p,[v,J,{\"1.0\":\"/8\",1.2:\"/1\",1.3:\"/3\",\"2.0\":\"/412\",\"2.0.2\":\"/416\",\"2.0.3\":\"/417\",\"2.0.4\":\"/419\",\"?\":\"/\"}]],[/(webkit|khtml)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[p,v],[/(navigator|netscape\\\\\\\\d?)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)/i],[[p,\"Netscape\"],v],[/mobile vr; rv:([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\).+firefox/i],[v,[p,N+\" Reality\"]],[/ekiohf.+(flow)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.\\\\\\\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\\\\\\\/([-\\\\\\\\w\\\\\\\\.]+)$/i,/(firefox)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(mozilla)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+) .+rv\\\\\\\\:.+gecko\\\\\\\\/\\\\\\\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\\\\\\\. ]?browser)[-\\\\\\\\/ ]?v?([\\\\\\\\w\\\\\\\\.]+)/i,/(links) \\\\\\\\(([\\\\\\\\w\\\\\\\\.]+)/i,/panasonic;(viera)/i],[p,v],[/(cobalt)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[p,[v,/master.|lts./,\"\"]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\\\\\\\)]/i],[[g,\"amd64\"]],[/(ia32(?=;))/i],[[g,W]],[/((?:i[346]|x)86)[;\\\\\\\\)]/i],[[g,\"ia32\"]],[/\\\\\\\\b(aarch64|arm(v?8e?l?|_?64))\\\\\\\\b/i],[[g,\"arm64\"]],[/\\\\\\\\b(arm(?:v[67])?ht?n?[fl]p?)\\\\\\\\b/i],[[g,\"armhf\"]],[/windows (ce|mobile); ppc;/i],[[g,\"arm\"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\\\\\\\))/i],[[g,/ower/,\"\",W]],[/(sun4\\\\\\\\w)[;\\\\\\\\)]/i],[[g,\"sparc\"]],[/((?:avr32|ia64(?=;))|68k(?=\\\\\\\\))|\\\\\\\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\\\\\\\b|pa-risc)/i],[[g,W]]],device:[[/\\\\\\\\b(sch-i[89]0\\\\\\\\d|shw-m380s|sm-[ptx]\\\\\\\\w{2,4}|gt-[pn]\\\\\\\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[f,A],[m,w]],[/\\\\\\\\b((?:s[cgp]h|gt|sm)-\\\\\\\\w+|sc[g-]?[\\\\\\\\d]+a?|galaxy nexus)/i,/samsung[- ]([-\\\\\\\\w]+)/i,/sec-(sgh\\\\\\\\w+)/i],[d,[f,A],[m,h]],[/(?:\\\\\\\\/|\\\\\\\\()(ip(?:hone|od)[\\\\\\\\w, ]*)(?:\\\\\\\\/|;)/i],[d,[f,S],[m,h]],[/\\\\\\\\((ipad);[-\\\\\\\\w\\\\\\\\),; ]+apple/i,/applecoremedia\\\\\\\\/[\\\\\\\\w\\\\\\\\.]+ \\\\\\\\((ipad)/i,/\\\\\\\\b(ipad)\\\\\\\\d\\\\\\\\d?,\\\\\\\\d\\\\\\\\d?[;\\\\\\\\]].+ios/i],[d,[f,S],[m,w]],[/(macintosh);/i],[d,[f,S]],[/\\\\\\\\b(sh-?[altvz]?\\\\\\\\d\\\\\\\\d[a-ekm]?)/i],[d,[f,L],[m,h]],[/\\\\\\\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\\\\\\\d{2})\\\\\\\\b(?!.+d\\\\\\\\/s)/i],[d,[f,P],[m,w]],[/(?:huawei|honor)([-\\\\\\\\w ]+)[;\\\\\\\\)]/i,/\\\\\\\\b(nexus 6p|\\\\\\\\w{2,4}e?-[atu]?[ln][\\\\\\\\dx][012359c][adn]?)\\\\\\\\b(?!.+d\\\\\\\\/s)/i],[d,[f,P],[m,h]],[/\\\\\\\\b(poco[\\\\\\\\w ]+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b; (\\\\\\\\w+) build\\\\\\\\/hm\\\\\\\\1/i,/\\\\\\\\b(hm[-_ ]?note?[_ ]?(?:\\\\\\\\d\\\\\\\\w)?) bui/i,/\\\\\\\\b(redmi[\\\\\\\\-_ ]?(?:note|k)?[\\\\\\\\w_ ]+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b(mi[-_ ]?(?:a\\\\\\\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\\\\\\\d?\\\\\\\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\\\\\\\))/i],[[d,/_/g,\" \"],[f,R],[m,h]],[/\\\\\\\\b(mi[-_ ]?(?:pad)(?:[\\\\\\\\w_ ]+))(?: bui|\\\\\\\\))/i],[[d,/_/g,\" \"],[f,R],[m,w]],[/; (\\\\\\\\w+) bui.+ oppo/i,/\\\\\\\\b(cph[12]\\\\\\\\d{3}|p(?:af|c[al]|d\\\\\\\\w|e[ar])[mt]\\\\\\\\d0|x9007|a101op)\\\\\\\\b/i],[d,[f,\"OPPO\"],[m,h]],[/vivo (\\\\\\\\w+)(?: bui|\\\\\\\\))/i,/\\\\\\\\b(v[12]\\\\\\\\d{3}\\\\\\\\w?[at])(?: bui|;)/i],[d,[f,\"Vivo\"],[m,h]],[/\\\\\\\\b(rmx[12]\\\\\\\\d{3})(?: bui|;|\\\\\\\\))/i],[d,[f,\"Realme\"],[m,h]],[/\\\\\\\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\\\\\\\b[\\\\\\\\w ]+build\\\\\\\\//i,/\\\\\\\\bmot(?:orola)?[- ](\\\\\\\\w*)/i,/((?:moto[\\\\\\\\w\\\\\\\\(\\\\\\\\) ]+|xt\\\\\\\\d{3,4}|nexus 6)(?= bui|\\\\\\\\)))/i],[d,[f,C],[m,h]],[/\\\\\\\\b(mz60\\\\\\\\d|xoom[2 ]{0,2}) build\\\\\\\\//i],[d,[f,C],[m,w]],[/((?=lg)?[vl]k\\\\\\\\-?\\\\\\\\d{3}) bui| 3\\\\\\\\.[-\\\\\\\\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[f,M],[m,w]],[/(lm(?:-?f100[nv]?|-[\\\\\\\\w\\\\\\\\.]+)(?= bui|\\\\\\\\))|nexus [45])/i,/\\\\\\\\blg[-e;\\\\\\\\/ ]+((?!browser|netcast|android tv)\\\\\\\\w+)/i,/\\\\\\\\blg-?([\\\\\\\\d\\\\\\\\w]+) bui/i],[d,[f,M],[m,h]],[/(ideatab[-\\\\\\\\w ]+)/i,/lenovo ?(s[56]000[-\\\\\\\\w]+|tab(?:[\\\\\\\\w ]+)|yt[-\\\\\\\\d\\\\\\\\w]{6}|tb[-\\\\\\\\d\\\\\\\\w]{6})/i],[d,[f,\"Lenovo\"],[m,w]],[/(?:maemo|nokia).*(n900|lumia \\\\\\\\d+)/i,/nokia[-_ ]?([-\\\\\\\\w\\\\\\\\.]*)/i],[[d,/_/g,\" \"],[f,\"Nokia\"],[m,h]],[/(pixel c)\\\\\\\\b/i],[d,[f,I],[m,w]],[/droid.+; (pixel[\\\\\\\\daxl ]{0,6})(?: bui|\\\\\\\\))/i],[d,[f,I],[m,h]],[/droid.+ (a?\\\\\\\\d[0-2]{2}so|[c-g]\\\\\\\\d{4}|so[-gl]\\\\\\\\w+|xq-a\\\\\\\\w[4-7][12])(?= bui|\\\\\\\\).+chrome\\\\\\\\/(?![1-6]{0,1}\\\\\\\\d\\\\\\\\.))/i],[d,[f,U],[m,h]],[/sony tablet [ps]/i,/\\\\\\\\b(?:sony)?sgp\\\\\\\\w+(?: bui|\\\\\\\\))/i],[[d,\"Xperia Tablet\"],[f,U],[m,w]],[/ (kb2005|in20[12]5|be20[12][59])\\\\\\\\b/i,/(?:one)?(?:plus)? (a\\\\\\\\d0\\\\\\\\d\\\\\\\\d)(?: b|\\\\\\\\))/i],[d,[f,\"OnePlus\"],[m,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\\\\\\\))/i,/(kf[a-z]+)( bui|\\\\\\\\)).+silk\\\\\\\\//i],[d,[f,_],[m,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\\\\\\\)).+silk\\\\\\\\//i],[[d,/(.+)/g,\"Fire Phone $1\"],[f,_],[m,h]],[/(playbook);[-\\\\\\\\w\\\\\\\\),; ]+(rim)/i],[d,f,[m,w]],[/\\\\\\\\b((?:bb[a-f]|st[hv])100-\\\\\\\\d)/i,/\\\\\\\\(bb10; (\\\\\\\\w+)/i],[d,[f,x],[m,h]],[/(?:\\\\\\\\b|asus_)(transfo[prime ]{4,10} \\\\\\\\w+|eeepc|slider \\\\\\\\w+|nexus 7|padfone|p00[cj])/i],[d,[f,E],[m,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \\\\\\\\d\\\\\\\\w?)\\\\\\\\b/i],[d,[f,E],[m,h]],[/(nexus 9)/i],[d,[f,\"HTC\"],[m,w]],[/(htc)[-;_ ]{1,2}([\\\\\\\\w ]+(?=\\\\\\\\)| bui)|\\\\\\\\w+)/i,/(zte)[- ]([\\\\\\\\w ]+?)(?: bui|\\\\\\\\/|\\\\\\\\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\\\\\\\.))|sony(?!-bra))[-_ ]?([-\\\\\\\\w]*)/i],[f,[d,/_/g,\" \"],[m,h]],[/droid.+; ([ab][1-7]-?[0178a]\\\\\\\\d\\\\\\\\d?)/i],[d,[f,\"Acer\"],[m,w]],[/droid.+; (m[1-5] note) bui/i,/\\\\\\\\bmz-([-\\\\\\\\w]{2,})/i],[d,[f,\"Meizu\"],[m,h]],[/(blackberry|benq|palm(?=\\\\\\\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\\\\\\\w]*)/i,/(hp) ([\\\\\\\\w ]+\\\\\\\\w)/i,/(asus)-?(\\\\\\\\w+)/i,/(microsoft); (lumia[\\\\\\\\w ]+)/i,/(lenovo)[-_ ]?([-\\\\\\\\w]+)/i,/(jolla)/i,/(oppo) ?([\\\\\\\\w ]+) bui/i],[f,d,[m,h]],[/(kobo)\\\\\\\\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(nook)[\\\\\\\\w ]+build\\\\\\\\/(\\\\\\\\w+)/i,/(dell) (strea[kpr\\\\\\\\d ]*[\\\\\\\\dko])/i,/(le[- ]+pan)[- ]+(\\\\\\\\w{1,9}) bui/i,/(trinity)[- ]*(t\\\\\\\\d{3}) bui/i,/(gigaset)[- ]+(q\\\\\\\\w{1,9}) bui/i,/(vodafone) ([\\\\\\\\w ]+)(?:\\\\\\\\)| bui)/i],[f,d,[m,w]],[/(surface duo)/i],[d,[f,B],[m,w]],[/droid [\\\\\\\\d\\\\\\\\.]+; (fp\\\\\\\\du?)(?: b|\\\\\\\\))/i],[d,[f,\"Fairphone\"],[m,h]],[/(u304aa)/i],[d,[f,\"AT&T\"],[m,h]],[/\\\\\\\\bsie-(\\\\\\\\w*)/i],[d,[f,\"Siemens\"],[m,h]],[/\\\\\\\\b(rct\\\\\\\\w+) b/i],[d,[f,\"RCA\"],[m,w]],[/\\\\\\\\b(venue[\\\\\\\\d ]{2,7}) b/i],[d,[f,\"Dell\"],[m,w]],[/\\\\\\\\b(q(?:mv|ta)\\\\\\\\w+) b/i],[d,[f,\"Verizon\"],[m,w]],[/\\\\\\\\b(?:barnes[& ]+noble |bn[rt])([\\\\\\\\w\\\\\\\\+ ]*) b/i],[d,[f,\"Barnes & Noble\"],[m,w]],[/\\\\\\\\b(tm\\\\\\\\d{3}\\\\\\\\w+) b/i],[d,[f,\"NuVision\"],[m,w]],[/\\\\\\\\b(k88) b/i],[d,[f,\"ZTE\"],[m,w]],[/\\\\\\\\b(nx\\\\\\\\d{3}j) b/i],[d,[f,\"ZTE\"],[m,h]],[/\\\\\\\\b(gen\\\\\\\\d{3}) b.+49h/i],[d,[f,\"Swiss\"],[m,h]],[/\\\\\\\\b(zur\\\\\\\\d{3}) b/i],[d,[f,\"Swiss\"],[m,w]],[/\\\\\\\\b((zeki)?tb.*\\\\\\\\b) b/i],[d,[f,\"Zeki\"],[m,w]],[/\\\\\\\\b([yr]\\\\\\\\d{2}) b/i,/\\\\\\\\b(dragon[- ]+touch |dt)(\\\\\\\\w{5}) b/i],[[f,\"Dragon Touch\"],d,[m,w]],[/\\\\\\\\b(ns-?\\\\\\\\w{0,9}) b/i],[d,[f,\"Insignia\"],[m,w]],[/\\\\\\\\b((nxa|next)-?\\\\\\\\w{0,9}) b/i],[d,[f,\"NextBook\"],[m,w]],[/\\\\\\\\b(xtreme\\\\\\\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,\"Voice\"],d,[m,h]],[/\\\\\\\\b(lvtel\\\\\\\\-)?(v1[12]) b/i],[[f,\"LvTel\"],d,[m,h]],[/\\\\\\\\b(ph-1) /i],[d,[f,\"Essential\"],[m,h]],[/\\\\\\\\b(v(100md|700na|7011|917g).*\\\\\\\\b) b/i],[d,[f,\"Envizen\"],[m,w]],[/\\\\\\\\b(trio[-\\\\\\\\w\\\\\\\\. ]+) b/i],[d,[f,\"MachSpeed\"],[m,w]],[/\\\\\\\\btu_(1491) b/i],[d,[f,\"Rotor\"],[m,w]],[/(shield[\\\\\\\\w ]+) b/i],[d,[f,\"Nvidia\"],[m,w]],[/(sprint) (\\\\\\\\w+)/i],[f,d,[m,h]],[/(kin\\\\\\\\.[onetw]{3})/i],[[d,/\\\\\\\\./g,\" \"],[f,B],[m,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\\\\\\\)/i],[d,[f,q],[m,w]],[/droid.+; (ec30|ps20|tc[2-8]\\\\\\\\d[kx])\\\\\\\\)/i],[d,[f,q],[m,h]],[/smart-tv.+(samsung)/i],[f,[m,y]],[/hbbtv.+maple;(\\\\\\\\d+)/i],[[d,/^/,\"SmartTV\"],[f,A],[m,y]],[/(nux; netcast.+smarttv|lg (netcast\\\\\\\\.tv-201\\\\\\\\d|android tv))/i],[[f,M],[m,y]],[/(apple) ?tv/i],[f,[d,S+\" TV\"],[m,y]],[/crkey/i],[[d,j+\"cast\"],[f,I],[m,y]],[/droid.+aft(\\\\\\\\w)( bui|\\\\\\\\))/i],[d,[f,_],[m,y]],[/\\\\\\\\(dtv[\\\\\\\\);].+(aquos)/i,/(aquos-tv[\\\\\\\\w ]+)\\\\\\\\)/i],[d,[f,L],[m,y]],[/(bravia[\\\\\\\\w ]+)( bui|\\\\\\\\))/i],[d,[f,U],[m,y]],[/(mitv-\\\\\\\\w{5}) bui/i],[d,[f,R],[m,y]],[/Hbbtv.*(technisat) (.*);/i],[f,d,[m,y]],[/\\\\\\\\b(roku)[\\\\\\\\dx]*[\\\\\\\\)\\\\\\\\/]((?:dvp-)?[\\\\\\\\d\\\\\\\\.]*)/i,/hbbtv\\\\\\\\/\\\\\\\\d+\\\\\\\\.\\\\\\\\d+\\\\\\\\.\\\\\\\\d+ +\\\\\\\\([\\\\\\\\w\\\\\\\\+ ]*; *([\\\\\\\\w\\\\\\\\d][^;]*);([^;]*)/i],[[f,H],[d,H],[m,y]],[/\\\\\\\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\\\\\\\b/i],[[m,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,d,[m,b]],[/droid.+; (shield) bui/i],[d,[f,\"Nvidia\"],[m,b]],[/(playstation [345portablevi]+)/i],[d,[f,U],[m,b]],[/\\\\\\\\b(xbox(?: one)?(?!; xbox))[\\\\\\\\); ]/i],[d,[f,B],[m,b]],[/((pebble))app/i],[f,d,[m,T]],[/(watch)(?: ?os[,\\\\\\\\/]|\\\\\\\\d,\\\\\\\\d\\\\\\\\/)[\\\\\\\\d\\\\\\\\.]+/i],[d,[f,S],[m,T]],[/droid.+; (glass) \\\\\\\\d/i],[d,[f,I],[m,T]],[/droid.+; (wt63?0{2,3})\\\\\\\\)/i],[d,[f,q],[m,T]],[/(quest( 2| pro)?)/i],[d,[f,F],[m,T]],[/(tesla)(?: qtcarbrowser|\\\\\\\\/[-\\\\\\\\w\\\\\\\\.]+)/i],[f,[m,k]],[/(aeobc)\\\\\\\\b/i],[d,[f,_],[m,k]],[/droid .+?; ([^;]+?)(?: bui|\\\\\\\\) applew).+? mobile safari/i],[d,[m,h]],[/droid .+?; ([^;]+?)(?: bui|\\\\\\\\) applew).+?(?! mobile) safari/i],[d,[m,w]],[/\\\\\\\\b((tablet|tab)[;\\\\\\\\/]|focus\\\\\\\\/\\\\\\\\d(?!.+mobile))/i],[[m,w]],[/(phone|mobile(?:[;\\\\\\\\/]| [ \\\\\\\\w\\\\\\\\/\\\\\\\\.]*safari)|pda(?=.+windows ce))/i],[[m,h]],[/(android[-\\\\\\\\w\\\\\\\\. ]{0,9});.+buil/i],[d,[f,\"Generic\"]]],engine:[[/windows.+ edge\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"EdgeHTML\"]],[/webkit\\\\\\\\/537\\\\\\\\.36.+chrome\\\\\\\\/(?!27)([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"Blink\"]],[/(presto)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/ekioh(flow)\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i,/(khtml|tasman|links)[\\\\\\\\/ ]\\\\\\\\(?([\\\\\\\\w\\\\\\\\.]+)/i,/(icab)[\\\\\\\\/ ]([23]\\\\\\\\.[\\\\\\\\d\\\\\\\\.]+)/i,/\\\\\\\\b(libweb)/i],[p,v],[/rv\\\\\\\\:([\\\\\\\\w\\\\\\\\.]{1,9})\\\\\\\\b.+(gecko)/i],[v,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,v],[/(windows) nt 6\\\\\\\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\\\\\\\/ ]?([\\\\\\\\d\\\\\\\\.\\\\\\\\w ]*)/i,/(windows)[\\\\\\\\/ ]?([ntce\\\\\\\\d\\\\\\\\. ]+\\\\\\\\w)(?!.+xbox)/i],[p,[v,J,X]],[/(win(?=3|9|n)|win 9x )([nt\\\\\\\\d\\\\\\\\.]+)/i],[[p,\"Windows\"],[v,J,X]],[/ip[honead]{2,4}\\\\\\\\b(?:.*os ([\\\\\\\\w]+) like mac|; opera)/i,/ios;fbsv\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i,/cfnetwork\\\\\\\\/.+darwin/i],[[v,/_/g,\".\"],[p,\"iOS\"]],[/(mac os x) ?([\\\\\\\\w\\\\\\\\. ]*)/i,/(macintosh|mac_powerpc\\\\\\\\b)(?!.+haiku)/i],[[p,K],[v,/_/g,\".\"]],[/droid ([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b.+(android[- ]x86|harmonyos)/i],[v,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(blackberry)\\\\\\\\w*\\\\\\\\/([\\\\\\\\w\\\\\\\\.]*)/i,/(tizen|kaios)[\\\\\\\\/ ]([\\\\\\\\w\\\\\\\\.]+)/i,/\\\\\\\\((series40);/i],[p,v],[/\\\\\\\\(bb(10);/i],[v,[p,x]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i],[v,[p,\"Symbian\"]],[/mozilla\\\\\\\\/[\\\\\\\\d\\\\\\\\.]+ \\\\\\\\((?:mobile|tablet|tv|mobile; [\\\\\\\\w ]+); rv:.+ gecko\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,N+\" OS\"]],[/web0s;.+rt(tv)/i,/\\\\\\\\b(?:hp)?wos(?:browser)?\\\\\\\\/([\\\\\\\\w\\\\\\\\.]+)/i],[v,[p,\"webOS\"]],[/watch(?: ?os[,\\\\\\\\/]|\\\\\\\\d,\\\\\\\\d\\\\\\\\/)([\\\\\\\\d\\\\\\\\.]+)/i],[v,[p,\"watchOS\"]],[/crkey\\\\\\\\/([\\\\\\\\d\\\\\\\\.]+)/i],[v,[p,j+\"cast\"]],[/(cros) [\\\\\\\\w]+(?:\\\\\\\\)| ([\\\\\\\\w\\\\\\\\.]+)\\\\\\\\b)/i],[[p,z],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\\\\\\\\/(\\\\\\\\d+\\\\\\\\.[\\\\\\\\w\\\\\\\\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\\\\\\\);]+)/i,/\\\\\\\\b(joli|palm)\\\\\\\\b ?(?:os)?\\\\\\\\/?([\\\\\\\\w\\\\\\\\.]*)/i,/(mint)[\\\\\\\\/\\\\\\\\(\\\\\\\\) ]?(\\\\\\\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\\\\\\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\\\\\\\/ ]?(?!chrom|package)([-\\\\\\\\w\\\\\\\\.]*)/i,/(hurd|linux) ?([\\\\\\\\w\\\\\\\\.]*)/i,/(gnu) ?([\\\\\\\\w\\\\\\\\.]*)/i,/\\\\\\\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\\\\\\\/ ]?(?!amd|[ix346]{1,2}86)([\\\\\\\\w\\\\\\\\.]*)/i,/(haiku) (\\\\\\\\w+)/i],[p,v],[/(sunos) ?([\\\\\\\\w\\\\\\\\.\\\\\\\\d]*)/i],[[p,\"Solaris\"],v],[/((?:open)?solaris)[-\\\\\\\\/ ]?([\\\\\\\\w\\\\\\\\.]*)/i,/(aix) ((\\\\\\\\d)(?=\\\\\\\\.|\\\\\\\\)| )[\\\\\\\\w\\\\\\\\.])*/i,/\\\\\\\\b(beos|os\\\\\\\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\\\\\\\\w\\\\\\\\.]*)/i],[p,v]]},Z=function(e,t){if(typeof e===c&&(t=e,e=a),!(this instanceof Z))return new Z(e,t).getResult();var n=typeof i!==s&&i.navigator?i.navigator:a,r=e||(n&&n.userAgent?n.userAgent:\"\"),b=n&&n.userAgentData?n.userAgentData:a,y=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(G,t):G,T=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[p]=a,t[v]=a,V.call(t,r,y.browser),t[l]=typeof(e=t[v])===u?e.replace(/[^\\\\\\\\d\\\\\\\\.]/g,\"\").split(\".\")[0]:a,T&&n&&n.brave&&typeof n.brave.isBrave==o&&(t[p]=\"Brave\"),t},this.getCPU=function(){var e={};return e[g]=a,V.call(e,r,y.cpu),e},this.getDevice=function(){var e={};return e[f]=a,e[d]=a,e[m]=a,V.call(e,r,y.device),T&&!e[m]&&b&&b.mobile&&(e[m]=h),T&&\"Macintosh\"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]=\"iPad\",e[m]=w),e},this.getEngine=function(){var e={};return e[p]=a,e[v]=a,V.call(e,r,y.engine),e},this.getOS=function(){var e={};return e[p]=a,e[v]=a,V.call(e,r,y.os),T&&!e[p]&&b&&\"Unknown\"!=b.platform&&(e[p]=b.platform.replace(/chrome os/i,z).replace(/macos/i,K)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>350?H(e,350):e,this},this.setUA(r),this};Z.VERSION=\"1.0.35\",Z.BROWSER=$([p,v,l]),Z.CPU=$([g]),Z.DEVICE=$([d,f,m,b,h,y,w,T,k]),Z.ENGINE=Z.OS=$([p,v]),typeof t!==s?(e.exports&&(t=e.exports=Z),t.UAParser=Z):n.amdO?(r=function(){return Z}.call(t,n,t,e))===a||(e.exports=r):typeof i!==s&&(i.UAParser=Z);var Y=typeof i!==s&&(i.jQuery||i.Zepto);if(Y&&!Y.ua){var ee=new Z;Y.ua=ee.getResult(),Y.ua.get=function(){return ee.getUA()},Y.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)Y.ua[n]=t[n]}}}(\"object\"==typeof window?window:this)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})};var r={};return(()=>{\"use strict\";n.r(r),n.d(r,{ActionType:()=>f,AmplitudePlatformName:()=>g,AnalyticsEventImportance:()=>l,AnalyticsQueries:()=>e,AuthStatus:()=>b,ComponentType:()=>m,IThresholdTier:()=>Jt,MetricType:()=>d,PlatformName:()=>v,SessionActions:()=>h,SessionAutomatedEvents:()=>w,SessionRank:()=>y,SubjectType:()=>p,UserTypeCommerce:()=>c,UserTypeInsto:()=>i,UserTypeRetail:()=>t,UserTypeRetailBusinessBanking:()=>s,UserTypeRetailEmployeeInternal:()=>a,UserTypeRetailEmployeePersonal:()=>o,UserTypeWallet:()=>u,automatedEvents:()=>xn,automatedMappingConfig:()=>In,clearMarkEntry:()=>Vn,clearPerformanceMarkEntries:()=>Xn,config:()=>A,createEventConfig:()=>On,createNewSpan:()=>Ln,createNewTrace:()=>Un,device:()=>W,endPerfMark:()=>Jn,exposeExperiment:()=>wn,flushQueue:()=>or,generateUUID:()=>V,getAnalyticsHeaders:()=>sr,getReferrerData:()=>le,getTracingHeaders:()=>An,getTracingId:()=>Dn,getUrlHostname:()=>pe,getUrlParams:()=>me,getUrlPathname:()=>fe,getUserContext:()=>ar,identify:()=>Tn,identifyFlow:()=>xe,identity:()=>H,identityFlow:()=>Se,incrementUjNavigation:()=>an,init:()=>yn,initNextJsTrackPageview:()=>_n,initTrackPageview:()=>kn,isEventKeyFormatValid:()=>we,isSessionEnded:()=>pt,location:()=>re,logEvent:()=>$t,logMetric:()=>Ht,logPageView:()=>on,logTrace:()=>Rn,markNTBT:()=>tn,markStep:()=>nn,markStepOnce:()=>rn,onVisibilityChange:()=>ln,optIn:()=>En,optOut:()=>Sn,perfMark:()=>Wn,persistentData:()=>oe,postMessage:()=>K,recordSessionDuration:()=>pn,removeFromIdentifyFlow:()=>Ee,savePersistentData:()=>st,sendScheduledEvents:()=>Bt,setBreadcrumbs:()=>ie,setConfig:()=>U,setLocation:()=>ae,setPagePath:()=>ve,setPageview:()=>Kt,setPersistentData:()=>se,setSessionStart:()=>dt,setTime:()=>Ue,startPerfMark:()=>Hn,timeStone:()=>Le,useEventLogger:()=>Yn,useLogEventOnMount:()=>tr,usePerformanceMarks:()=>rr});let e=function(e){return e.fbclid=\"fbclid\",e.gclid=\"gclid\",e.msclkid=\"msclkid\",e.ptclid=\"ptclid\",e.ttclid=\"ttclid\",e.utm_source=\"utm_source\",e.utm_medium=\"utm_medium\",e.utm_campaign=\"utm_campaign\",e.utm_term=\"utm_term\",e.utm_content=\"utm_content\",e}({});const t=0,i=1,a=2,o=3,s=4,c=5,u=6;let l=function(e){return e.low=\"low\",e.high=\"high\",e}({}),d=function(e){return e.count=\"count\",e.rate=\"rate\",e.gauge=\"gauge\",e.distribution=\"distribution\",e.histogram=\"histogram\",e}({}),p=function(e){return e.commerce_merchant=\"commerce_merchant\",e.device=\"device\",e.edp_fingerprint_id=\"edp_fingerprint_id\",e.nft_user=\"nft_user\",e.user=\"user\",e.wallet_user=\"wallet_user\",e.uuid=\"user_uuid\",e}({}),m=function(e){return e.unknown=\"unknown\",e.banner=\"banner\",e.button=\"button\",e.card=\"card\",e.chart=\"chart\",e.content_script=\"content_script\",e.dropdown=\"dropdown\",e.link=\"link\",e.page=\"page\",e.modal=\"modal\",e.table=\"table\",e.search_bar=\"search_bar\",e.service_worker=\"service_worker\",e.text=\"text\",e.text_input=\"text_input\",e.tray=\"tray\",e.checkbox=\"checkbox\",e.icon=\"icon\",e}({}),f=function(e){return e.unknown=\"unknown\",e.blur=\"blur\",e.click=\"click\",e.change=\"change\",e.dismiss=\"dismiss\",e.focus=\"focus\",e.hover=\"hover\",e.select=\"select\",e.measurement=\"measurement\",e.move=\"move\",e.process=\"process\",e.render=\"render\",e.scroll=\"scroll\",e.view=\"view\",e.search=\"search\",e.keyPress=\"keyPress\",e}({}),v=function(e){return e.unknown=\"unknown\",e.web=\"web\",e.android=\"android\",e.ios=\"ios\",e.mobile_web=\"mobile_web\",e.tablet_web=\"tablet_web\",e.server=\"server\",e.windows=\"windows\",e.macos=\"macos\",e.extension=\"extension\",e}({}),g=function(e){return e.web=\"Web\",e.ios=\"iOS\",e.android=\"Android\",e}({}),b=function(e){return e[e.notLoggedIn=0]=\"notLoggedIn\",e[e.loggedIn=1]=\"loggedIn\",e}({}),h=function(e){return e.ac=\"ac\",e.af=\"af\",e.ah=\"ah\",e.al=\"al\",e.am=\"am\",e.ar=\"ar\",e.as=\"as\",e}({}),w=function(e){return e.pv=\"pv\",e}({}),y=function(e){return e.xs=\"xs\",e.s=\"s\",e.m=\"m\",e.l=\"l\",e.xl=\"xl\",e.xxl=\"xxl\",e}({});const T=\"https://analytics-service-dev.cbhq.net\",k=3e5,_=5e3,S=\"analytics-db\",E=\"experiment-exposure-db\",x=\"Analytics SDK:\",O=Object.values(e),j=\"pageview\",N=\"session_duration\",I={navigationTiming:{eventName:\"perf_navigation_timing\"},redirectTime:{eventName:\"perf_redirect_time\"},RT:{eventName:\"perf_redirect_time\"},TTFB:{eventName:\"perf_time_to_first_byte\"},networkInformation:{eventName:\"perf_network_information\"},storageEstimate:{eventName:\"perf_storage_estimate\"},FCP:{eventName:\"perf_first_contentful_paint\"},FID:{eventName:\"perf_first_input_delay\"},LCP:{eventName:\"perf_largest_contentful_paint\"},CLS:{eventName:\"perf_cumulative_layout_shift\"},TBT:{eventName:\"perf_total_blocking_time\"},NTBT:{eventName:\"perf_navigation_total_blocking_time\"},INP:{eventName:\"perf_interact_to_next_paint\"},ET:{eventName:\"perf_element_timing\"},userJourneyStep:{eventName:\"perf_user_journey_step\"}},P=\"1\",M=\"web\";function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(this,arguments)}const C=/^(https?:\\\\\\\\/\\\\\\\\/)/;function D(e){return{eventsEndpoint:e+\"/amp\",metricsEndPoint:e+\"/metrics\",exposureEndpoint:e+\"/track-exposures\",tracesEndpoint:e+\"/traces\"}}const A=B({authCookie:\"logged_in\",amplitudeApiKey:\"\",batchEventsPeriod:_,batchEventsThreshold:30,batchMetricsPeriod:_,batchMetricsThreshold:30,batchTracesPeriod:_,batchTracesThreshold:30,headers:{},interactionManager:null,isAlwaysAuthed:!1,isProd:!1,isInternalApplication:!1,onError:(e,t)=>{console.error(x,e,t)},platform:v.unknown,projectName:\"\",ricTimeoutScheduleEvent:1e3,ricTimeoutSetDevice:500,showDebugLogging:!1,trackUserId:!1,version:null,apiEndpoint:T},D(T),{steps:{}}),L=[].reduce(((e,t)=>n=>e(t(n))),(e=>{if(!e.isProd)return e.isInternalApplication?(e.apiEndpoint=\"https://analytics-service-internal-dev.cbhq.net\",B({},e,D(e.apiEndpoint))):e;const t=(e=>e.apiEndpoint?C.test(e.apiEndpoint)?e.apiEndpoint:`https://${e.apiEndpoint}`:e.isInternalApplication?\"https://analytics-service-internal.cbhq.net\":\"https://as.coinbase.com\")(e);return B({},e,{apiEndpoint:t},D(t))})),U=e=>{const{batchEventsThreshold:t,batchMetricsThreshold:n,batchTracesThreshold:r}=e,i=[t,n,r];for(const e of i)if((e||0)>30){console.warn(\"You are setting the threshhold for the batch limit to be greater than 30. This may cause request overload.\");break}Object.assign(A,L(e))},R=[v.web,v.mobile_web,v.tablet_web];function q(){return\"android\"===A.platform}function F(){return\"ios\"===A.platform}function z(){return R.includes(A.platform)}function K(e){if(z()&&navigator&&\"serviceWorker\"in navigator&&navigator.serviceWorker.controller)try{navigator.serviceWorker.controller.postMessage(e)}catch(e){e instanceof Error&&A.onError(e)}}var $=n(353),Q=n.n($);const W={amplitudeOSName:null,amplitudeOSVersion:null,amplitudeDeviceModel:null,amplitudePlatform:null,browserName:null,browserMajor:null,osName:null,userAgent:null,width:null,height:null},H={countryCode:null,deviceId:null,device_os:null,isOptOut:!1,languageCode:null,locale:null,jwt:null,session_lcc_id:null,userAgent:null,userId:null},V=e=>e?(e^16*Math.random()>>e/4).toString(16):\"10000000-1000-4000-8000-100000000000\".replace(/[018]/g,V),J=()=>A.isAlwaysAuthed||!!H.userId,X=()=>{const e={};return H.countryCode&&(e.country_code=H.countryCode),e},G=()=>{const{platform:e}=A;if(e===v.web)switch(!0){case window.matchMedia(\"(max-width: 560px)\").matches:return v.mobile_web;case window.matchMedia(\"(max-width: 1024px, min-width: 561px)\").matches:return v.tablet_web}return e},Z=()=>{var e,t,n,r,i;z()?(\"requestIdleCallback\"in window?window.requestIdleCallback(ne,{timeout:A.ricTimeoutSetDevice}):ne(),W.amplitudePlatform=g.web,W.userAgent=(null==(e=window)||null==(e=e.navigator)?void 0:e.userAgent)||null,ee({height:null!=(t=null==(n=window)?void 0:n.innerHeight)?t:null,width:null!=(r=null==(i=window)?void 0:i.innerWidth)?r:null})):F()?(W.amplitudePlatform=g.ios,W.userAgent=H.userAgent,W.userAgent&&ne()):q()&&(W.userAgent=H.userAgent,W.amplitudePlatform=g.android,W.userAgent&&ne())},Y=e=>{Object.assign(H,e),z()&&K({identity:{isAuthed:!!H.userId,locale:H.locale||null}})},ee=e=>{W.height=e.height,W.width=e.width},te=()=>{U({platform:G()}),z()&&K({config:{platform:A.platform}})},ne=()=>{var e;performance.mark&&performance.mark(\"ua_parser_start\");const t=new(Q())(null!=(e=W.userAgent)?e:\"\").getResult();W.browserName=t.browser.name||null,W.browserMajor=t.browser.major||null,W.osName=t.os.name||null,W.amplitudeOSName=W.browserName,W.amplitudeOSVersion=W.browserMajor,W.amplitudeDeviceModel=W.osName,K({device:{browserName:W.browserName,osName:W.osName}}),performance.mark&&(performance.mark(\"ua_parser_end\"),performance.measure(\"ua_parser\",\"ua_parser_start\",\"ua_parser_end\"))},re={breadcrumbs:[],initialUAAData:{},pageKey:\"\",pageKeyRegex:{},pagePath:\"\",prevPageKey:\"\",prevPagePath:\"\"};function ie(e){Object.assign(re,{breadcrumbs:e})}function ae(e){Object.assign(re,e)}const oe={eventId:0,sequenceNumber:0,sessionId:0,lastEventTime:0,sessionStart:0,sessionUUID:null,userId:null,ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0};function se(e){Object.assign(oe,e)}function ce(){var e,t;return null!=(e=null==(t=document)?void 0:t.referrer)?e:\"\"}function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ue.apply(this,arguments)}const le=()=>{const e=ce();if(!e)return{};const t=new URL(e);return t.hostname===pe()?{}:{referrer:e,referring_domain:t.hostname}},de=()=>{const e=new URLSearchParams(me()),t={};return O.forEach((n=>{e.has(n)&&(t[n]=(e.get(n)||\"\").toLowerCase())})),t},pe=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.hostname)||\"\"},me=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.search)||\"\"},fe=()=>{var e;return(null==(e=window)||null==(e=e.location)?void 0:e.pathname)||\"\"},ve=()=>{const e=A.overrideWindowLocation?re.pagePath:fe()+me();e&&e!==re.pagePath&&(e!==re.pagePath&&ge(),re.pagePath=e,re.pageKeyRegex&&Object.keys(re.pageKeyRegex).some((e=>{if(re.pageKeyRegex[e].test(re.pagePath))return re.pageKey=e,!0})))},ge=()=>{if(z()){const e=ce();if(!re.prevPagePath&&e){const t=new URL(e);if(t.hostname===pe())return void(re.prevPagePath=t.pathname)}}re.prevPagePath=re.pagePath,re.prevPageKey=re.pageKey},be=e=>{z()&&Object.assign(e,z()?(Object.keys(re.initialUAAData).length>0||(new URLSearchParams(me()),re.initialUAAData=ue({},(()=>{const e={};return O.forEach((t=>{oe[t]&&(e[t]=oe[t])})),e})(),de(),le())),re.initialUAAData):re.initialUAAData)},he=/^[a-zd]+(_[a-zd]+)*$/;function we(e){return he.test(e)}function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ye.apply(this,arguments)}const Te=[\"action\",\"component_type\",\"component_name\",\"context\",\"logging_id\"],ke=[\"num_non_hardware_accounts\",\"ujs\"],_e=\"ujs_\",Se={};function Ee(e){e.forEach((e=>{ke.includes(e)&&delete Se[e]}))}function xe(e){var t;const n=Object.entries(e).reduce(((e,t)=>{const[n,r]=t;return!Te.includes(n)&&ke.includes(n)?we(n)?ye({},e,{[n]:r}):(A.onError(new Error(\"IdentityFlow property names must have snake case format\"),{[n]:r}),e):e}),{});null!=(t=n.ujs)&&t.length&&(n.ujs=n.ujs.map((e=>`${_e}${e}`))),Object.assign(Se,n)}function Oe(){return A.platform!==v.unknown||(A.onError(new Error(\"SDK platform not initialized\")),!1)}const je={eventsQueue:[],eventsScheduled:!1,metricsQueue:[],metricsScheduled:!1,tracesQueue:[],tracesScheduled:!1};function Ne(e){Object.assign(je,e)}const Ie={ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0,sqs:0},Pe={ac:20,af:5,ah:1,al:1,am:0,ar:10,as:20},Me={pv:25},Be={xs:0,s:1,m:1,l:2,xl:2,xxl:2},Ce=e=>e<15?y.xs:e<60?y.s:e<240?y.m:e<960?y.l:e<3840?y.xl:y.xxl,De=e=>{Object.assign(Ie,e)};function Ae(){return(new Date).getTime()}const Le={timeStart:Ae(),timeOnPagePath:0,timeOnPageKey:0,prevTimeOnPagePath:0,prevTimeOnPageKey:0,sessionDuration:0,sessionEnd:0,sessionStart:0,prevSessionDuration:0};function Ue(e){Object.assign(Le,e)}const Re=(e,t)=>t.some((t=>e instanceof t));let qe,Fe;const ze=new WeakMap,Ke=new WeakMap,$e=new WeakMap,Qe=new WeakMap,We=new WeakMap;let He={get(e,t,n){if(e instanceof IDBTransaction){if(\"done\"===t)return Ke.get(e);if(\"objectStoreNames\"===t)return e.objectStoreNames||$e.get(e);if(\"store\"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Je(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&(\"done\"===t||\"store\"===t)||t in e};function Ve(e){return\"function\"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||\"objectStoreNames\"in IDBTransaction.prototype?(Fe||(Fe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(Xe(this),e),Je(ze.get(this))}:function(...e){return Je(t.apply(Xe(this),e))}:function(e,...n){const r=t.call(Xe(this),e,...n);return $e.set(r,e.sort?e.sort():[e]),Je(r)}:(e instanceof IDBTransaction&&function(e){if(Ke.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener(\"complete\",i),e.removeEventListener(\"error\",a),e.removeEventListener(\"abort\",a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException(\"AbortError\",\"AbortError\")),r()};e.addEventListener(\"complete\",i),e.addEventListener(\"error\",a),e.addEventListener(\"abort\",a)}));Ke.set(e,t)}(e),Re(e,qe||(qe=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,He):e);var t}function Je(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener(\"success\",i),e.removeEventListener(\"error\",a)},i=()=>{t(Je(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener(\"success\",i),e.addEventListener(\"error\",a)}));return t.then((t=>{t instanceof IDBCursor&&ze.set(t,e)})).catch((()=>{})),We.set(t,e),t}(e);if(Qe.has(e))return Qe.get(e);const t=Ve(e);return t!==e&&(Qe.set(e,t),We.set(t,e)),t}const Xe=e=>We.get(e),Ge=[\"get\",\"getKey\",\"getAll\",\"getAllKeys\",\"count\"],Ze=[\"put\",\"add\",\"delete\",\"clear\"],Ye=new Map;function et(e,t){if(!(e instanceof IDBDatabase)||t in e||\"string\"!=typeof t)return;if(Ye.get(t))return Ye.get(t);const n=t.replace(/FromIndex$/,\"\"),r=t!==n,i=Ze.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!Ge.includes(n))return;const a=async function(e,...t){const a=this.transaction(e,i?\"readwrite\":\"readonly\");let o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return Ye.set(t,a),a}var tt;tt=He,He={...tt,get:(e,t,n)=>et(e,t)||tt.get(e,t,n),has:(e,t)=>!!et(e,t)||tt.has(e,t)};const nt={isReady:!1,idbKeyval:null};function rt(e){Object.assign(nt,e)}const it={},at=async e=>{if(!nt.idbKeyval)return Promise.resolve(null);try{return await nt.idbKeyval.get(e)}catch(e){return A.onError(new Error(\"IndexedDB:Get:InternalError\")),Promise.resolve(null)}},ot=async(e,t)=>{if(nt.idbKeyval)try{await nt.idbKeyval.set(e,t)}catch(e){A.onError(new Error(\"IndexedDB:Set:InternalError\"))}},st=()=>{\"server\"!==A.platform&&(se({sessionStart:Le.sessionStart,ac:Ie.ac,af:Ie.af,ah:Ie.ah,al:Ie.al,am:Ie.am,ar:Ie.ar,as:Ie.as,pv:Ie.pv}),H.userId&&se({userId:H.userId}),ot(S,oe))},ct=\"rgb(5,177,105)\",ut=e=>{const{metricName:t,data:n}=e,r=e.importance||l.low;if(!A.showDebugLogging||!console)return;const i=`%c ${x}`,a=`color:${ct};font-size:11px;`,o=`Importance: ${r}`;console.group(i,a,t,o),n.forEach((e=>{e.event_type?console.log(e.event_type,e):console.log(e)})),console.groupEnd()},lt=e=>{const{metricName:t,data:n}=e,r=e.importance||l.low;if(!A.showDebugLogging||!console)return;const i=`color:${ct};font-size:11px;`,a=`%c ${x}`,o=`Importance: ${r}`;console.log(a,i,t,n,o)},dt=()=>{const e=Ae();oe.sessionId&&oe.lastEventTime&&oe.sessionUUID&&!pt(e)||(oe.sessionId=e,oe.sessionUUID=V(),Ue({sessionStart:e}),lt({metricName:\"Started new session:\",data:{persistentData:oe,timeStone:Le}})),oe.lastEventTime=e},pt=e=>e-oe.lastEventTime>18e5;function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mt.apply(this,arguments)}const ft=e=>{var t;(e=>{switch(e.action){case f.click:Ie.ac+=1;break;case f.focus:Ie.af+=1;break;case f.hover:Ie.ah+=1;break;case f.move:Ie.am+=1;break;case f.scroll:Ie.al+=1;break;case f.search:Ie.ar+=1;break;case f.select:Ie.as+=1}})(t=e),t.event_type!==j?t.event_type===N&&((e=>{if(!e.session_rank)return;const t=e.session_rank;Object.values(h).forEach((e=>{Ie.sqs+=Ie[e]*Pe[e]})),Object.values(w).forEach((e=>{Ie.sqs+=Ie[e]*Me[e]})),Ie.sqs*=Be[t]})(t),Object.assign(t,Ie),De({ac:0,af:0,ah:0,al:0,am:0,ar:0,as:0,pv:0,sqs:0})):Ie.pv+=1;const n=e.event_type;delete e.event_type;const r=e.deviceId?e.deviceId:null,i=e.timestamp;return delete e.timestamp,se({eventId:oe.eventId+1}),se({sequenceNumber:oe.sequenceNumber+1}),dt(),st(),{device_id:H.deviceId||r||null,user_id:H.userId,timestamp:i,event_id:oe.eventId,session_id:oe.sessionId||-1,event_type:n,version_name:A.version||null,platform:W.amplitudePlatform,os_name:W.amplitudeOSName,os_version:W.amplitudeOSVersion,device_model:W.amplitudeDeviceModel,language:H.languageCode,event_properties:mt({},e,{session_uuid:oe.sessionUUID,height:W.height,width:W.width}),user_properties:X(),uuid:V(),library:{name:\"@cbhq/client-analytics\",version:\"10.6.0\"},sequence_number:oe.sequenceNumber,user_agent:W.userAgent||H.userAgent}},vt=e=>e.map((e=>ft(e)));function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gt.apply(this,arguments)}const bt=e=>e.map((e=>(e=>{const t=e.tags||{},n=gt({authed:J()?\"true\":\"false\",platform:A.platform},t,{project_name:A.projectName,version_name:A.version||null});return{metric_name:e.metricName,page_path:e.pagePath||null,value:e.value,tags:n,type:e.metricType}})(e))),ht=e=>0!==je.metricsQueue.length&&(je.metricsQueue.length>=A.batchMetricsThreshold||(je.metricsScheduled||(je.metricsScheduled=!0,setTimeout((()=>{je.metricsScheduled=!1,e(bt(je.metricsQueue)),je.metricsQueue=[]}),A.batchMetricsPeriod)),!1)),wt=e=>0!==je.tracesQueue.length&&(je.tracesQueue.length>=A.batchTracesThreshold||(je.tracesScheduled||(je.tracesScheduled=!0,setTimeout((()=>{je.tracesScheduled=!1,e(je.tracesQueue),je.tracesQueue=[]}),A.batchTracesPeriod)),!1)),yt=e=>{var t;z()&&null!=(t=window)&&t.requestIdleCallback?window.requestIdleCallback(e,{timeout:A.ricTimeoutScheduleEvent}):(q()||F())&&A.interactionManager?A.interactionManager.runAfterInteractions(e):e()};function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tt.apply(this,arguments)}const kt=\"application/x-www-form-urlencoded; charset=UTF-8\",_t=e=>{const{data:t,importance:n,isJSON:r,onError:i,url:a}=e,o=r?\"application/json\":kt,s=n||l.low,c=r?JSON.stringify(t):new URLSearchParams(t).toString();function u(){const e=new XMLHttpRequest;e.open(\"POST\",a,!0),Object.keys(A.headers||{}).forEach((t=>{e.setRequestHeader(t,A.headers[t])})),e.setRequestHeader(\"Content-Type\",kt),H.jwt&&e.setRequestHeader(\"authorization\",`Bearer ${H.jwt}`),e.send(c)}if(!z()||r||!(\"sendBeacon\"in navigator)||s!==l.low||A.headers&&0!==Object.keys(A.headers).length)if(z()&&!r)u();else{const e=Tt({},A.headers,{\"Content-Type\":o});H.jwt&&(e.Authorization=`Bearer ${H.jwt}`),fetch(a,{method:\"POST\",mode:\"no-cors\",headers:e,body:c}).catch((e=>{i(e,{context:\"AnalyticsSDKApiError\"})}))}else{const e=new Blob([c],{type:kt});try{navigator.sendBeacon.bind(navigator)(a,e)||u()}catch(e){console.error(e),u()}}};var St=n(762),Et=n.n(St);const xt=(e,t,n)=>{const r=e||\"\";return Et()(\"2\"+r+t+n)};function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(this,arguments)}class jt extends Error{constructor(e){super(e),this.name=\"CircularJsonReference\",this.message=e,\"function\"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}}class Nt extends jt{constructor(...e){super(...e),this.name=\"DomReferenceInAnalyticsEvent\"}}function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},It.apply(this,arguments)}const Pt=(e,t=l.low)=>{var n;e&&je.eventsQueue.push(e),nt.isReady&&(!A.trackUserId||H.userId?(t===l.high||(n=Mt,0!==je.eventsQueue.length&&(je.eventsQueue.length>=A.batchEventsThreshold||(je.eventsScheduled||(je.eventsScheduled=!0,setTimeout((()=>{je.eventsScheduled=!1,n(vt(je.eventsQueue)),je.eventsQueue=[]}),A.batchEventsPeriod)),0))))&&Bt():je.eventsQueue.length>10&&(A.trackUserId=!1,A.onError(new Error(\"userId not set in Logged-in\"))))},Mt=(e,t=l.low)=>{if(H.isOptOut||0===e.length)return;let n;try{n=JSON.stringify(e)}catch(t){const r=e.map((e=>e.event_type)).join(\", \"),[i,a]=(e=>{try{const n=[];for(const r of e){const e=Ot({},r);r.event_properties&&(e.event_properties=Ot({},e.event_properties,{currentTarget:null,target:null,relatedTarget:null,_dispatchInstances:null,_targetInst:null,view:(t=r.event_properties.view,[\"string\",\"number\",\"boolean\"].includes(typeof t)?r.event_properties.view:null)})),n.push(e)}return[!0,JSON.stringify(n)]}catch(e){return[!1,\"\"]}var t})(e);if(!i)return void A.onError(new jt(t instanceof Error?t.message:\"unknown\"),{listEventType:r});n=a,A.onError(new Nt(\"Found DOM element reference\"),{listEventType:r,stringifiedEventData:n})}const r=Ae().toString(),i=It({},{e:n,v:\"2\",upload_time:r},{client:A.amplitudeApiKey,checksum:xt(A.amplitudeApiKey,n,r)});_t({url:A.eventsEndpoint,data:i,importance:t,onError:A.onError}),ut({metricName:\"Batch Events\",data:e,importance:t})},Bt=()=>{Mt(vt(je.eventsQueue)),Ne({eventsQueue:[]})};function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ct.apply(this,arguments)}const Dt=Object.values(f),At=Object.values(m),Lt=e=>Dt.includes(e)?e:f.unknown,Ut=e=>At.includes(e)?e:m.unknown,Rt=(e,t,n)=>{const r={auth:J()?b.loggedIn:b.notLoggedIn,action:Lt(e),component_type:Ut(t),logging_id:n,platform:A.platform,project_name:A.projectName};return\"number\"==typeof H.userTypeEnum&&(r.user_type_enum=H.userTypeEnum),r},qt=e=>{const t=Ae();if(!e)return A.onError(new Error(\"missing logData\")),Ct({},Rt(f.unknown,m.unknown),{locale:H.locale,session_lcc_id:H.session_lcc_id,timestamp:t,time_start:Le.timeStart});const n=Ct({},e,Rt(e.action,e.componentType,e.loggingId),{locale:H.locale,session_lcc_id:H.session_lcc_id,timestamp:t,time_start:Le.timeStart});return delete n.componentType,delete n.loggingId,n},Ft={blacklistRegex:[],isEnabled:!1};function zt(){return{page_key:re.pageKey,page_path:re.pagePath,prev_page_key:re.prevPageKey,prev_page_path:re.prevPagePath}}function Kt(e){Object.assign(Ft,e)}function $t(e,t,n=l.low){if(H.isOptOut)return;if(!Oe())return;const r=qt(t);!function(e){Ft.isEnabled&&(ve(),Object.assign(e,zt()))}(r),be(r),function(e){Object.keys(Se).length>0&&Object.assign(e,Se)}(r),r.has_double_fired=!1,r.event_type=e,n===l.high?Pt(r,n):yt((()=>{Pt(r)}))}function Qt(e,t=!1){t?_t({url:A.metricsEndPoint,data:{metrics:e},isJSON:!0,onError:A.onError}):yt((()=>{_t({url:A.metricsEndPoint,data:{metrics:e},isJSON:!0,onError:A.onError})})),ut({metricName:\"Batch Metrics\",data:e})}function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wt.apply(this,arguments)}function Ht(e){if(!Oe())return;v.server!==A.platform&&!e.pagePath&&re.pagePath&&(e.pagePath=re.pagePath);const t=Object.keys(Se).length?Wt({},e.tags,Se):e.tags;t&&Object.assign(e,{tags:t}),je.metricsQueue.push(e),ht(Qt)&&(Qt(bt(je.metricsQueue)),je.metricsQueue=[])}function Vt(){return Vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vt.apply(this,arguments)}let Jt=function(e){return e.instant=\"instant\",e.quick=\"quick\",e.moderate=\"moderate\",e.slow=\"slow\",e.unavoidable=\"unavoidable\",e}({});function Xt(e){return e.toLowerCase()}let Gt={};const Zt=(e,t)=>{null!=A&&A.onMarkStep&&A.onMarkStep(e,t),xe({ujs:t})};let Yt;const en={Perfume:()=>{},markStep:e=>{},markStepOnce:e=>{},incrementUjNavigation:()=>{}},tn=()=>{z()&&Yt&&Yt.markNTBT&&Yt.markNTBT()},nn=e=>{z()&&Yt&&en.markStep&&en.markStep(e)},rn=e=>{z()&&Yt&&en.markStepOnce&&en.markStepOnce(e)},an=()=>{z()&&Yt&&en.incrementUjNavigation&&en.incrementUjNavigation()};function on(e={callMarkNTBT:!0}){\"unknown\"!==A.platform&&(Ft.blacklistRegex.some((e=>e.test(fe())))||($t(j,{action:f.render,componentType:m.page}),e.callMarkNTBT&&tn()))}let sn=!1,cn=!1;const un=e=>{sn=!e.persisted},ln=(e,t=\"hidden\",n=!1)=>{cn||(addEventListener(\"pagehide\",un),addEventListener(\"beforeunload\",(()=>{})),cn=!0),addEventListener(\"visibilitychange\",(({timeStamp:n})=>{document.visibilityState===t&&e({timeStamp:n,isUnloading:sn})}),{capture:!0,once:n})},dn=36e3;function pn(){const e=pt(Ae());if(e&&(O.forEach((e=>{oe[e]&&delete oe[e]})),st()),!oe.lastEventTime||!Le.sessionStart||!e)return;const t=Math.round((oe.lastEventTime-Le.sessionStart)/1e3);if(t<1||t>dn)return;const n=Ce(t);$t(N,{action:f.measurement,componentType:m.page,session_duration:t,session_end:oe.lastEventTime,session_start:Le.sessionStart,session_rank:n})}function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mn.apply(this,arguments)}const fn=[],vn=[],gn=()=>{const e=fn.shift();e&&e()},bn=()=>{const e=vn.shift();e&&e()};let hn={};function wn(e){const t=function(e){return{test_name:e.testName,group_name:e.group,subject_id:e.subjectId,exposed_at:Ae(),subject_type:e.subjectType,platform:A.platform}}(e);hn[e.testName]=hn[e.testName]||0,hn[e.testName]+k>Ae()?lt({metricName:`Event: exposeExperiment ${e.testName} not sent`,data:t}):(hn[e.testName]=Ae(),ot(E,hn),lt({metricName:`Event: exposeExperiment ${e.testName} sent`,data:t}),_t({url:A.exposureEndpoint,data:[t],onError:(t,n)=>{hn[e.testName]=0,ot(E,hn),A.onError(t,n)},isJSON:!0,importance:l.high}))}const yn=e=>{var t,r,i;U(e),z()&&(H.languageCode=(null==(t=navigator)?void 0:t.languages[0])||(null==(r=navigator)?void 0:r.language)||\"\"),te(),(()=>{var e;if(z()&&null!=(e=window)&&e.indexedDB){const e=function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,t),s=Je(o);return r&&o.addEventListener(\"upgradeneeded\",(e=>{r(Je(o.result),e.oldVersion,e.newVersion,Je(o.transaction),e)})),n&&o.addEventListener(\"blocked\",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{a&&e.addEventListener(\"close\",(()=>a())),i&&e.addEventListener(\"versionchange\",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}(\"keyval-store\",1,{upgrade(e){e.createObjectStore(\"keyval\")}});rt({idbKeyval:{get:async t=>(await e).get(\"keyval\",t),set:async(t,n)=>(await e).put(\"keyval\",n,t),delete:async t=>(await e).delete(\"keyval\",t),keys:async()=>(await e).getAllKeys(\"keyval\")}})}else rt({idbKeyval:{get:async e=>new Promise((t=>{t(it[e])})),set:async(e,t)=>new Promise((n=>{it[e]=t,n(e)})),delete:async e=>new Promise((()=>{delete it[e]})),keys:async()=>new Promise((e=>{e(Object.keys(it))}))}})})(),lt({metricName:\"Initialized Analytics:\",data:{deviceId:H.deviceId}}),fn.push((()=>{Pt()})),(async()=>{const e=await at(S);rt({isReady:!0}),gn(),e&&(bn(),se({eventId:e.eventId||oe.eventId,sequenceNumber:e.sequenceNumber||oe.sequenceNumber,sessionId:e.sessionId||oe.sessionId,lastEventTime:e.lastEventTime||oe.lastEventTime,sessionUUID:e.sessionUUID||oe.sessionUUID}),function(e){se(mn({},function(e){const t={};return O.forEach((n=>{e[n]&&(t[n]=e[n])})),t}(e),de()))}(e),Ue({sessionStart:e.sessionStart||oe.sessionStart}),De({ac:e.ac||Ie.ac,af:e.af||Ie.af,ah:e.ah||Ie.ah,al:e.al||Ie.al,am:e.am||Ie.am,ar:e.ar||Ie.ar,as:e.as||Ie.as,pv:e.pv||Ie.pv}),A.trackUserId&&Y({userId:e.userId||H.userId}),pn(),lt({metricName:\"Initialized Analytics IndexedDB:\",data:e}))})(),async function(){at(E).then((e=>{hn=null!=e?e:{}})).catch((e=>{e instanceof Error&&A.onError(e)}))}(),Z(),z()&&(ln((()=>{se({lastEventTime:Ae()}),st(),Bt()}),\"hidden\"),ln((()=>{pn()}),\"visible\")),z()&&(i=()=>{var e,t,n,r;te(),ee({width:null!=(e=null==(t=window)?void 0:t.innerWidth)?e:null,height:null!=(n=null==(r=window)?void 0:r.innerHeight)?n:null})},addEventListener(\"resize\",(()=>{requestAnimationFrame((()=>{i()}))}))),(()=>{if(z())try{const e=n(2);en.markStep=e.markStep,en.markStepOnce=e.markStepOnce,en.incrementUjNavigation=e.incrementUjNavigation,Yt=new e.Perfume({analyticsTracker:e=>{const{data:t,attribution:n,metricName:r,navigatorInformation:i,rating:a}=e,o=I[r],s=(null==n?void 0:n.category)||null;if(!o&&!s)return;const c=(null==i?void 0:i.deviceMemory)||0,u=(null==i?void 0:i.hardwareConcurrency)||0,l=(null==i?void 0:i.isLowEndDevice)||!1,p=(null==i?void 0:i.isLowEndExperience)||!1,v=(null==i?void 0:i.serviceWorkerStatus)||\"unsupported\",g=Vt({deviceMemory:c,hardwareConcurrency:u,isLowEndDevice:l,isLowEndExperience:p,serviceWorkerStatus:v},Gt),b={is_low_end_device:l,is_low_end_experience:p,page_key:re.pageKey||\"\",save_data:t.saveData||!1,service_worker:v,is_perf_metric:!0};if(\"navigationTiming\"===r)t&&\"number\"==typeof t.redirectTime&&Ht({metricName:I.redirectTime.eventName,metricType:d.histogram,tags:b,value:t.redirectTime||0});else if(\"TTFB\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,vitalsScore:a||null},g)),Ht({metricName:I.TTFB.eventName,metricType:d.histogram,tags:Vt({},b),value:t}),a&&Ht({metricName:`perf_web_vitals_ttfb_${a}`,metricType:d.count,tags:b,value:1});else if(\"networkInformation\"===r)null!=t&&t.effectiveType&&(Gt=t,$t(o.eventName,{action:f.measurement,componentType:m.page,networkInformationDownlink:t.downlink,networkInformationEffectiveType:t.effectiveType,networkInformationRtt:t.rtt,networkInformationSaveData:t.saveData,navigatorDeviceMemory:c,navigatorHardwareConcurrency:u}));else if(\"storageEstimate\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page},t,g)),Ht({metricName:\"perf_storage_estimate_caches\",metricType:d.histogram,tags:b,value:t.caches}),Ht({metricName:\"perf_storage_estimate_indexed_db\",metricType:d.histogram,tags:b,value:t.indexedDB});else if(\"CLS\"===r)$t(o.eventName,Vt({action:f.measurement,componentType:m.page,score:100*t||null,vitalsScore:a||null},g)),a&&Ht({metricName:`perf_web_vitals_cls_${a}`,metricType:d.count,tags:b,value:1});else if(\"FID\"===r){const e=(null==n?void 0:n.performanceEntry)||null,r=parseInt((null==e?void 0:e.processingStart)||\"\");$t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,processingStart:null!=e&&e.processingStart?r:null,startTime:null!=e&&e.startTime?parseInt(e.startTime):null,vitalsScore:a||null},g)),a&&Ht({metricName:`perf_web_vitals_fidVitals_${a}`,metricType:d.count,tags:b,value:1})}else\"userJourneyStep\"===r?($t(\"perf_user_journey_step\",Vt({action:f.measurement,componentType:m.page,duration:t||null,rating:null!=a?a:null,step_name:(null==n?void 0:n.stepName)||\"\"},g)),Ht({metricName:`user_journey_step.${A.projectName}.${A.platform}.${(null==n?void 0:n.stepName)||\"\"}_vitals_${a}`,metricType:d.count,tags:b,value:1}),Ht({metricName:`user_journey_step.${A.projectName}.${A.platform}.${(null==n?void 0:n.stepName)||\"\"}`,metricType:d.distribution,tags:b,value:t||null})):I[r]&&t&&($t(o.eventName,Vt({action:f.measurement,componentType:m.page,duration:t||null,vitalsScore:a||null},g)),a&&(Ht({metricName:`perf_web_vitals_${Xt(r)}_${a}`,metricType:d.count,tags:b,value:1}),\"LCP\"===r&&Ht({metricName:`perf_web_vitals_${Xt(r)}`,metricType:d.distribution,tags:b,value:t})))},maxMeasureTime:3e4,steps:A.steps,onMarkStep:Zt})}catch(e){e instanceof Error&&A.onError(e)}})()},Tn=e=>{Y(e),e.userAgent&&Z(),lt({metricName:\"Identify:\",data:{countryCode:H.countryCode,deviceId:H.deviceId,userId:H.userId}})},kn=({blacklistRegex:e,pageKeyRegex:t,browserHistory:n})=>{Kt({blacklistRegex:e||[],isEnabled:!0}),ae({pageKeyRegex:t}),on({callMarkNTBT:!1}),n.listen((()=>{on()}))},_n=({blacklistRegex:e,pageKeyRegex:t,nextJsRouter:n})=>{Kt({blacklistRegex:e||[],isEnabled:!0}),ae({pageKeyRegex:t}),on({callMarkNTBT:!1}),n.events.on(\"routeChangeComplete\",(()=>{on()}))},Sn=()=>{Y({isOptOut:!0}),ot(S,{})},En=()=>{Y({isOptOut:!1})},xn={Button:{label:\"cb_button\",uuid:\"e921a074-40e6-4371-8700-134d5cd633e6\",componentType:m.button}};function On(e,t,n){return{componentName:e,actions:t,data:n}}function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(this,arguments)}function Nn(e,t,n){const{componentName:r,data:i}=n;$t(e.label,jn({componentType:e.componentType,action:t,loggingId:e.uuid,component_name:r},i))}const In={actionMapping:{onPress:f.click,onHover:f.hover},handlers:{Button:{[f.click]:e=>Nn(xn.Button,f.click,e),[f.hover]:e=>Nn(xn.Button,f.hover,e)}}};function Pn(e,t=!1){t?_t({url:A.tracesEndpoint,data:{traces:e},isJSON:!0,onError:A.onError}):yt((()=>{_t({url:A.tracesEndpoint,data:{traces:e},isJSON:!0,onError:A.onError})})),ut({metricName:\"Batch Traces\",data:e})}function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mn.apply(this,arguments)}const Bn=1e6;function Cn(e){return e*Bn}function Dn(e=function(){var e;return null==(e=window)?void 0:e.crypto}()){const t=new Uint32Array(2);return null==e||e.getRandomValues(t),((BigInt(t[0])<<BigInt(32))+BigInt(t[1])).toString()}function An(e,t){return{\"x-datadog-origin\":\"rum\",\"x-datadog-parent-id\":t,\"x-datadog-sampling-priority\":\"1\",\"x-datadog-trace-id\":e}}function Ln(e){var t;const{name:n,traceId:r,spanId:i,start:a,duration:o,resource:s,meta:c}=e;return{duration:o?Cn(o):0,name:n,resource:s,service:A.projectName,span_id:null!=i?i:Dn(),start:a?Cn(a):0,trace_id:null!=r?r:Dn(),parent_id:P,type:M,meta:Mn({platform:A.platform},re.pageKey?{page_key:re.pageKey}:{},null!=(t=Se.ujs)&&t.length?{last_ujs:Se.ujs[Se.ujs.length-1]}:{},null!=c?c:{})}}function Un(e){return[Ln(e)]}function Rn(e,t){Oe()&&function(e){return e.length>0}(e)&&(t&&function(e,t){e.forEach((e=>function(e,t){const n=Mn({},e.meta,t.meta),r={start:t.start?Cn(t.start):e.start,duration:t.duration?Cn(t.duration):e.duration};Object.assign(e,t,Mn({meta:n},r))}(e,t)))}(e,t),je.tracesQueue.push(e),wt(Pn)&&(Pn(je.tracesQueue),je.tracesQueue=[]))}function qn(e){var t=function(e,t){if(\"object\"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,\"string\");if(\"object\"!=typeof r)return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return String(e)}(e);return\"symbol\"==typeof t?t:String(t)}function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fn.apply(this,arguments)}function zn(){return void 0!==typeof window&&\"performance\"in window&&\"mark\"in performance&&\"getEntriesByName\"in performance}function Kn(e,t){return`perf_${e}${null!=t&&t.label?`_${t.label}`:\"\"}`}function $n(e,t,n){return`${Kn(e,n)}__${t}`}let Qn={};function Wn(e,t,n){if(!zn())return;const r=$n(e,t,n);if(performance.mark(r),\"end\"===t){const t=Kn(e,n);!function(e,t,n){try{performance.measure(e,t,n)}catch(e){A.onError(e)}}(t,$n(e,\"start\",n),r);const i=performance.getEntriesByName(t).pop();i&&Ht(Fn({metricName:e,metricType:d.distribution,value:i.duration},null!=n&&n.tags?{tags:n.tags}:{}))}}function Hn(e,t){if(!zn())return;const n=$n(e,\"start\",t);Qn[n]||(Wn(e,\"start\",t),Qn[n]=!0)}function Vn(e,t){const n=$n(e,\"start\",t),r=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(Qn,[n].map(qn));Qn=r}function Jn(e,t){if(!zn())return;const n=$n(e,\"start\",t);Qn[n]&&(Wn(e,\"end\",t),Vn(e,t))}function Xn(){zn()&&(performance.clearMarks(),Qn={})}var Gn=n(784);function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(this,arguments)}function Yn(e,t,n=l.low){const r=(0,Gn.useRef)(t);return(0,Gn.useEffect)((()=>{r.current=t}),[t]),(0,Gn.useCallback)((t=>{$t(e,Zn({},r.current,t),n)}),[e,n])}function er(){return er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},er.apply(this,arguments)}function tr(e,t,n=l.low){(0,Gn.useEffect)((()=>{const r=er({},t,{action:f.render});$t(e,r,n)}),[])}function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nr.apply(this,arguments)}const rr=function(e,t){return{markStartPerf:(0,Gn.useCallback)((()=>Hn(e,t)),[e,t]),markEndPerf:(0,Gn.useCallback)((n=>Jn(e,nr({},t,n))),[e,t])}};function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ir.apply(this,arguments)}function ar(){return Object.entries(ir({},Se,zt(),{sessionUUID:oe.sessionUUID,userId:oe.userId})).reduce(((e,t)=>{return null!=(n=t[1])&&\"\"!==n?ir({},e,{[t[0]]:t[1]}):e;var n}),{})}async function or(){return new Promise((e=>{Mt(vt(je.eventsQueue)),Qt(bt(je.metricsQueue),!0),Pn(je.tracesQueue,!0),Ne({eventsQueue:[],metricsQueue:[],tracesQueue:[]}),e()}))}function sr(){return{\"X-CB-Device-ID\":H.deviceId||\"unknown\",\"X-CB-Is-Logged-In\":H.userId?\"true\":\"false\",\"X-CB-Pagekey\":re.pageKey||\"unknown\",\"X-CB-UJS\":(e=Se.ujs,void 0===e||0===e.length?\"\":e.join(\",\")),\"X-CB-Platform\":A.platform||\"unknown\",\"X-CB-Project-Name\":A.projectName||\"unknown\",\"X-CB-Session-UUID\":oe.sessionUUID||\"unknown\",\"X-CB-Version-Name\":A.version?String(A.version):\"unknown\"};var e}})(),r})()}));\\'});var gQ,uSt,she=$(()=>{f();ny();tBe();gQ=()=>new Promise((e,t)=>{if(window.ClientAnalytics)return e();try{let n=document.createElement(\"script\");n.textContent=eBe,n.type=\"text/javascript\",document.head.appendChild(n),uSt(),document.head.removeChild(n),e()}catch{console.error(\"Failed to execute inlined telemetry script\"),t()}}),uSt=()=>{var e,t,n;if(typeof window<\"u\"){let r=(n=(e=Bt.config.get().deviceId)!==null&&e!==void 0?e:(t=window.crypto)===null||t===void 0?void 0:t.randomUUID())!==null&&n!==void 0?n:\"\";if(window.ClientAnalytics){let{init:o,identify:i,PlatformName:a}=window.ClientAnalytics;o({isProd:!0,amplitudeApiKey:\"c66737ad47ec354ced777935b0af822e\",platform:a.web,projectName:\"base_account_sdk\",showDebugLogging:!1,version:\"1.0.0\",apiEndpoint:\"https://cca-lite.coinbase.com\"}),i({deviceId:r}),Bt.config.set({deviceId:r})}}}});var ls,yQ,IU=$(()=>{f();ls={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}},yQ={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"},4902:{standard:\"EIP-3085\",message:\"Unrecognized chain ID.\"}}});function bQ(e,t=oBe){if(e&&Number.isInteger(e)){let n=e.toString();if(che(yQ,n))return yQ[n].message;if(aBe(e))return lSt}return t}function dSt(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(yQ[t]||aBe(e))}function iBe(e,{shouldIncludeStack:t=!1}={}){let n={};if(e&&typeof e==\"object\"&&!Array.isArray(e)&&che(e,\"code\")&&dSt(e.code)){let r=e;n.code=r.code,r.message&&typeof r.message==\"string\"?(n.message=r.message,che(r,\"data\")&&(n.data=r.data)):(n.message=bQ(n.code),n.data={originalError:nBe(e)})}else n.code=ls.rpc.internal,n.message=rBe(e,\"message\")?e.message:oBe,n.data={originalError:nBe(e)};return t&&(n.stack=rBe(e,\"stack\")?e.stack:void 0),n}function aBe(e){return e>=-32099&&e<=-32e3}function nBe(e){return e&&typeof e==\"object\"&&!Array.isArray(e)?Object.assign({},e):e}function che(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function rBe(e,t){return typeof e==\"object\"&&e!==null&&t in e&&typeof e[t]==\"string\"}var oBe,lSt,uhe=$(()=>{f();IU();oBe=\"Unspecified error message.\",lSt=\"Unspecified server error.\"});function ry(e,t){let[n,r]=sBe(t);return new kU(e,n||bQ(e),r)}function SN(e,t){let[n,r]=sBe(t);return new vQ(e,n||bQ(e),r)}function sBe(e){if(e){if(typeof e==\"string\")return[e];if(typeof e==\"object\"&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&typeof t!=\"string\")throw new Error(\"Must specify string message.\");return[t||void 0,n]}}return[]}function fSt(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function lhe(e){return typeof e==\"object\"&&e!==null&&\"code\"in e&&\"data\"in e&&e.code===-32090&&typeof e.data==\"object\"&&e.data!==null&&\"type\"in e.data&&e.data.type===\"INSUFFICIENT_FUNDS\"}function wQ(e){return typeof e==\"object\"&&e!==null&&\"details\"in e}function cBe(e){try{let t=JSON.parse(e.details);return new kU(t.code,t.message,t.data)}catch{return null}}var It,kU,vQ,Rf=$(()=>{f();IU();uhe();It={rpc:{parse:e=>ry(ls.rpc.parse,e),invalidRequest:e=>ry(ls.rpc.invalidRequest,e),invalidParams:e=>ry(ls.rpc.invalidParams,e),methodNotFound:e=>ry(ls.rpc.methodNotFound,e),internal:e=>ry(ls.rpc.internal,e),server:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum RPC Server errors must provide single object argument.\");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error(\\'\"code\" must be an integer such that: -32099 <= code <= -32005\\');return ry(t,e)},invalidInput:e=>ry(ls.rpc.invalidInput,e),resourceNotFound:e=>ry(ls.rpc.resourceNotFound,e),resourceUnavailable:e=>ry(ls.rpc.resourceUnavailable,e),transactionRejected:e=>ry(ls.rpc.transactionRejected,e),methodNotSupported:e=>ry(ls.rpc.methodNotSupported,e),limitExceeded:e=>ry(ls.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>SN(ls.provider.userRejectedRequest,e),unauthorized:e=>SN(ls.provider.unauthorized,e),unsupportedMethod:e=>SN(ls.provider.unsupportedMethod,e),disconnected:e=>SN(ls.provider.disconnected,e),chainDisconnected:e=>SN(ls.provider.chainDisconnected,e),unsupportedChain:e=>SN(ls.provider.unsupportedChain,e),custom:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum Provider custom errors must provide single object argument.\");let{code:t,message:n,data:r}=e;if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string\\');return new vQ(t,n,r)}}};kU=class extends Error{constructor(t,n,r){if(!Number.isInteger(t))throw new Error(\\'\"code\" must be an integer.\\');if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string.\\');super(n),this.code=t,r!==void 0&&(this.data=r)}},vQ=class extends kU{constructor(t,n,r){if(!fSt(t))throw new Error(\\'\"code\" must be an integer such that: 1000 <= code <= 4999\\');super(t,n,r)}}});function dhe(){return e=>e}function o1(e){return Math.floor(e)}var _N,uBe,pSt,fhe=$(()=>{f();_N=dhe(),uBe=dhe();pSt=dhe()});function kE(e){return OU(crypto.getRandomValues(new Uint8Array(e)))}function OU(e){return[...e].map(t=>t.toString(16).padStart(2,\"0\")).join(\"\")}function TN(e){return new Uint8Array(e.match(/.{1,2}/g).map(t=>Number.parseInt(t,16)))}function aR(e,t=!1){let n=e.toString(\"hex\");return _N(t?`0x${n}`:n)}function xQ(e){return aR(SQ(e),!0)}function i1(e){return uBe(e.toString(10))}function OE(e){return _N(`0x${BigInt(e).toString(16)}`)}function fBe(e){return e.startsWith(\"0x\")||e.startsWith(\"0X\")}function phe(e){return fBe(e)?e.slice(2):e}function hhe(e){return fBe(e)?`0x${e.slice(2)}`:`0x${e}`}function EQ(e){if(typeof e!=\"string\")return!1;let t=phe(e).toLowerCase();return dBe.test(t)}function AQ(e,t=!1){if(typeof e==\"string\"){let n=phe(e).toLowerCase();if(dBe.test(n))return _N(t?`0x${n}`:n)}throw It.rpc.invalidParams(`\"${String(e)}\" is not a hexadecimal string`)}function mhe(e,t=!1){let n=AQ(e,!1);return n.length%2===1&&(n=_N(`0${n}`)),t?_N(`0x${n}`):n}function NE(e){if(typeof e==\"string\"){let t=phe(e).toLowerCase();if(EQ(t)&&t.length===40)return hhe(t)}throw It.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}function SQ(e){if(globalThis.Buffer.isBuffer(e))return e;if(typeof e==\"string\"){if(EQ(e)){let t=mhe(e,!1);return globalThis.Buffer.from(t,\"hex\")}return globalThis.Buffer.from(e,\"utf8\")}throw It.rpc.invalidParams(`Not binary data: ${String(e)}`)}function sR(e){if(typeof e==\"number\"&&Number.isInteger(e))return o1(e);if(typeof e==\"string\"){if(lBe.test(e))return o1(Number(e));if(EQ(e))return o1(Number(BigInt(mhe(e,!0))))}throw It.rpc.invalidParams(`Not an integer: ${String(e)}`)}function CN(e){if(e!==null&&(typeof e==\"bigint\"||hSt(e)))return BigInt(e.toString(10));if(typeof e==\"number\")return BigInt(sR(e));if(typeof e==\"string\"){if(lBe.test(e))return BigInt(e);if(EQ(e))return BigInt(mhe(e,!0))}throw It.rpc.invalidParams(`Not an integer: ${String(e)}`)}function pBe(e){if(typeof e==\"string\")return JSON.parse(e);if(typeof e==\"object\")return e;throw It.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)}function hSt(e){if(e==null||typeof e.constructor!=\"function\")return!1;let{constructor:t}=e;return typeof t.config==\"function\"&&typeof t.EUCLID==\"number\"}function hBe(){let e=document.querySelector(\\'link[sizes=\"192x192\"]\\')||document.querySelector(\\'link[sizes=\"180x180\"]\\')||document.querySelector(\\'link[rel=\"icon\"]\\')||document.querySelector(\\'link[rel=\"shortcut icon\"]\\'),{protocol:t,host:n}=document.location,r=e?e.getAttribute(\"href\"):null;return!r||r.startsWith(\"javascript:\")||r.startsWith(\"vbscript:\")?`${t}//${n}/favicon.ico`:r.startsWith(\"http://\")||r.startsWith(\"https://\")||r.startsWith(\"data:\")?r:r.startsWith(\"//\")?t+r:`${t}//${n}${r}`}var lBe,dBe,a1=$(()=>{f();Rf();fhe();lBe=/^[0-9]*$/,dBe=/^[a-f0-9]*$/});var mSt,gSt,_Q,mBe,TQ=$(()=>{f();mSt=`Coinbase Wallet SDK requires the Cross-Origin-Opener-Policy header to not be set to \\'same-origin\\'. This is to ensure that the SDK can communicate with the Coinbase Smart Wallet app.\\n\\nPlease see https://www.smartwallet.dev/guides/tips/popup-tips#cross-origin-opener-policy for more information.`,gSt=()=>{let e;return{getCrossOriginOpenerPolicy:()=>e===void 0?\"undefined\":e,checkCrossOriginOpenerPolicy:async()=>{if(typeof window>\"u\"){e=\"non-browser-env\";return}try{let t=`${window.location.origin}${window.location.pathname}`,n=await fetch(t,{method:\"HEAD\"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);let r=n.headers.get(\"Cross-Origin-Opener-Policy\");e=r??\"null\",e===\"same-origin\"&&console.error(mSt)}catch(t){console.error(\"Error checking Cross-Origin-Opener-Policy:\",t.message),e=\"error\"}}}},{checkCrossOriginOpenerPolicy:_Q,getCrossOriginOpenerPolicy:mBe}=gSt()});async function uT(e,t){let n=Object.assign(Object.assign({},e),{jsonrpc:\"2.0\",id:crypto.randomUUID()}),r=await window.fetch(t,{method:\"POST\",body:JSON.stringify(n),mode:\"cors\",headers:{\"Content-Type\":\"application/json\",\"X-Cbw-Sdk-Version\":ty,\"X-Cbw-Sdk-Platform\":mQ}}),{result:o,error:i}=await r.json();if(i)throw i;return o}function ySt(){return globalThis.coinbaseWalletExtension}function bSt(){var e,t;try{let n=globalThis;return(e=n.ethereum)!==null&&e!==void 0?e:(t=n.top)===null||t===void 0?void 0:t.ethereum}catch{return}}function CQ({metadata:e,preference:t}){var n,r;let{appName:o,appLogoUrl:i,appChainIds:a}=e;if(t.options!==\"smartWalletOnly\"){let l=ySt();if(l)return(n=l.setAppInfo)===null||n===void 0||n.call(l,o,i,a,t),l}let c=bSt();if(c?.isCoinbaseBrowser)return(r=c.setAppInfo)===null||r===void 0||r.call(c,o,i,a,t),c}function gBe(e){if(!e||typeof e!=\"object\"||Array.isArray(e))throw It.rpc.invalidParams({message:\"Expected a single, non-array, object argument.\",data:e});let{method:t,params:n}=e;if(typeof t!=\"string\"||t.length===0)throw It.rpc.invalidParams({message:\"\\'args.method\\' must be a non-empty string.\",data:e});if(n!==void 0&&!Array.isArray(n)&&(typeof n!=\"object\"||n===null))throw It.rpc.invalidParams({message:\"\\'args.params\\' must be an object or array if provided.\",data:e});switch(t){case\"eth_sign\":case\"eth_signTypedData_v2\":case\"eth_subscribe\":case\"eth_unsubscribe\":throw It.provider.unsupportedMethod()}}var RN=$(()=>{f();iR();Rf()});function RQ(e){if(e){if(![\"all\",\"smartWalletOnly\",\"eoaOnly\"].includes(e.options))throw new Error(`Invalid options: ${e.options}`);if(e.attribution&&e.attribution.auto!==void 0&&e.attribution.dataSuffix!==void 0)throw new Error(\"Attribution cannot contain both auto and dataSuffix properties\");if(e.telemetry&&typeof e.telemetry!=\"boolean\")throw new Error(\"Telemetry must be a boolean\")}}function ghe(e){if(typeof e!=\"function\")throw new Error(\"toAccount is not a function\")}var yhe=$(()=>{f()});var yBe,IQ,bhe,bBe,IN=$(()=>{f();yBe=\"https://keys.coinbase.com/connect\",IQ=\"https://rpc.wallet.coinbase.com\",bhe=\"https://www.walletlink.org\",bBe=\"https://go.cb-w.com/walletlink\"});function kr(e,t,n){var r,o,i,a;window.ClientAnalytics&&((r=window.ClientAnalytics)===null||r===void 0||r.logEvent(e,Object.assign(Object.assign({},t),{sdkVersion:ty,appName:(i=(o=Bt.config.get().metadata)===null||o===void 0?void 0:o.appName)!==null&&i!==void 0?i:\"\",appOrigin:window.location.origin,appPreferredSigner:(a=Bt.config.get().preference)===null||a===void 0?void 0:a.options}),n))}var pr,hr,mr,lT=$(()=>{f();ny();iR();(function(e){e.unknown=\"unknown\",e.banner=\"banner\",e.button=\"button\",e.card=\"card\",e.chart=\"chart\",e.content_script=\"content_script\",e.dropdown=\"dropdown\",e.link=\"link\",e.page=\"page\",e.modal=\"modal\",e.table=\"table\",e.search_bar=\"search_bar\",e.service_worker=\"service_worker\",e.text=\"text\",e.text_input=\"text_input\",e.tray=\"tray\",e.checkbox=\"checkbox\",e.icon=\"icon\"})(pr||(pr={}));(function(e){e.unknown=\"unknown\",e.blur=\"blur\",e.click=\"click\",e.change=\"change\",e.dismiss=\"dismiss\",e.focus=\"focus\",e.hover=\"hover\",e.select=\"select\",e.measurement=\"measurement\",e.move=\"move\",e.process=\"process\",e.render=\"render\",e.scroll=\"scroll\",e.view=\"view\",e.search=\"search\",e.keyPress=\"keyPress\",e.error=\"error\"})(hr||(hr={}));(function(e){e.low=\"low\",e.high=\"high\"})(mr||(mr={}))});var vBe,wBe,xBe,EBe=$(()=>{f();lT();vBe=()=>{kr(\"communicator.popup_setup.started\",{action:hr.unknown,componentType:pr.unknown},mr.high)},wBe=()=>{kr(\"communicator.popup_setup.completed\",{action:hr.unknown,componentType:pr.unknown},mr.high)},xBe=()=>{kr(\"communicator.popup_unload.received\",{action:hr.unknown,componentType:pr.unknown},mr.high)}});var kN,PE,kQ=$(()=>{f();lT();kN=({snackbarContext:e})=>{kr(`snackbar.${e}.shown`,{action:hr.render,componentType:pr.modal,snackbarContext:e},mr.high)},PE=({snackbarContext:e,snackbarAction:t})=>{kr(`snackbar.${e}.action_clicked`,{action:hr.click,componentType:pr.button,snackbarContext:e,snackbarAction:t},mr.high)}});var ABe,SBe=$(()=>{f();ABe=\\'@namespace svg \"http://www.w3.org/2000/svg\";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Helvetica Neue\",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:\"\\\\\\\\201C\" \"\\\\\\\\201D\" \"\\\\\\\\2018\" \"\\\\\\\\2019\";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Helvetica Neue\",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}\\'});function OQ(){let e=document.createElement(\"style\");e.type=\"text/css\",e.appendChild(document.createTextNode(ABe)),document.documentElement.appendChild(e)}var vhe=$(()=>{f();SBe()});function vSt(){try{return window.frameElement!==null}catch{return!1}}function _Be(){try{return vSt()&&window.top?window.top.location:window.location}catch{return window.location}}function TBe(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((e=window?.navigator)===null||e===void 0?void 0:e.userAgent)}function NQ(){var e,t;return(t=(e=window?.matchMedia)===null||e===void 0?void 0:e.call(window,\"(prefers-color-scheme: dark)\").matches)!==null&&t!==void 0?t:!1}var NU=$(()=>{f()});var CBe,RBe=$(()=>{f();CBe=\".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}\"});var wSt,xSt,ON,whe,ESt,PQ=$(()=>{f();xE();yw();yw();sfe();NU();RBe();wSt=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+\",xSt=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=\",ON=class{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=NQ()}attach(t){this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-snackbar-root\",t.appendChild(this.root),this.render()}presentItem(t){let n=this.nextItemKey++;return this.items.set(n,t),this.render(),()=>{this.items.delete(n),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&eT(gi(\"div\",null,gi(whe,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([t,n])=>gi(ESt,Object.assign({},n,{key:t}))))),this.root)}},whe=e=>gi(\"div\",{class:m0(\"-cbwsdk-snackbar-container\")},gi(\"style\",null,CBe),gi(\"div\",{class:\"-cbwsdk-snackbar\"},e.children)),ESt=({autoExpand:e,message:t,menuItems:n})=>{let[r,o]=e1(!0),[i,a]=e1(e??!1);AO(()=>{let l=[window.setTimeout(()=>{o(!1)},1),window.setTimeout(()=>{a(!0)},1e4)];return()=>{l.forEach(window.clearTimeout)}});let c=()=>{a(!i)};return gi(\"div\",{class:m0(\"-cbwsdk-snackbar-instance\",r&&\"-cbwsdk-snackbar-instance-hidden\",i&&\"-cbwsdk-snackbar-instance-expanded\")},gi(\"div\",{class:\"-cbwsdk-snackbar-instance-header\",onClick:c},gi(\"img\",{src:wSt,class:\"-cbwsdk-snackbar-instance-header-cblogo\"}),\" \",gi(\"div\",{class:\"-cbwsdk-snackbar-instance-header-message\"},t),gi(\"div\",{class:\"-gear-container\"},!i&&gi(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},gi(\"circle\",{cx:\"12\",cy:\"12\",r:\"12\",fill:\"#F5F7F8\"})),gi(\"img\",{src:xSt,class:\"-gear-icon\",title:\"Expand\"}))),n&&n.length>0&&gi(\"div\",{class:\"-cbwsdk-snackbar-instance-menu\"},n.map((l,d)=>gi(\"div\",{class:m0(\"-cbwsdk-snackbar-instance-menu-item\",l.isRed&&\"-cbwsdk-snackbar-instance-menu-item-is-red\"),onClick:l.onClick,key:d},gi(\"svg\",{width:l.svgWidth,height:l.svgHeight,viewBox:\"0 0 10 11\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},gi(\"path\",{\"fill-rule\":l.defaultFillRule,\"clip-rule\":l.defaultClipRule,d:l.path,fill:\"#AAAAAA\"})),gi(\"span\",{class:m0(\"-cbwsdk-snackbar-instance-menu-item-info\",l.isRed&&\"-cbwsdk-snackbar-instance-menu-item-info-is-red\")},l.info)))))}});var xhe,MQ,Ehe=$(()=>{f();vhe();PQ();xhe=\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\",MQ=class{constructor(){this.attached=!1,this.snackbar=new ON}attach(){if(this.attached)throw new Error(\"Coinbase Wallet SDK UI is already attached\");let t=document.documentElement,n=document.createElement(\"div\");n.className=\"-cbwsdk-css-reset\",t.appendChild(n),this.snackbar.attach(n),this.attached=!0,OQ()}showConnecting(t){let n;return t.isUnlinkedErrorState?n={autoExpand:!0,message:\"Connection lost\",menuItems:[{isRed:!1,info:\"Reset connection\",svgWidth:\"10\",svgHeight:\"11\",path:\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:t.onResetConnection}]}:n={message:\"Confirm on phone\",menuItems:[{isRed:!0,info:\"Cancel transaction\",svgWidth:\"11\",svgHeight:\"11\",path:\"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z\",defaultFillRule:\"inherit\",defaultClipRule:\"inherit\",onClick:t.onCancel},{isRed:!1,info:\"Reset connection\",svgWidth:\"10\",svgHeight:\"11\",path:xhe,defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:t.onResetConnection}]},this.snackbar.presentItem(n)}}});function OBe(e){let t=(window.innerWidth-IBe)/2+window.screenX,n=(window.innerHeight-kBe)/2+window.screenY;_St(e);function r(){let i=`wallet_${crypto.randomUUID()}`,a=window.open(e,i,`width=${IBe}, height=${kBe}, left=${t}, top=${n}`);return a?.focus(),a||null}let o=r();if(!o){let i=PU();return new Promise((a,c)=>{kN({snackbarContext:\"popup_blocked\"}),i.presentItem({autoExpand:!0,message:SSt,menuItems:[Object.assign(Object.assign({},ASt),{onClick:()=>{PE({snackbarContext:\"popup_blocked\",snackbarAction:\"confirm\"}),o=r(),o?a(o):c(It.rpc.internal(\"Popup window was blocked\")),i.clear()}})]})})}return Promise.resolve(o)}function NBe(e){e&&!e.closed&&e.close()}function _St(e){let t={sdkName:mQ,sdkVersion:ty,origin:window.location.origin,coop:mBe()};for(let[n,r]of Object.entries(t))e.searchParams.has(n)||e.searchParams.append(n,r.toString())}function PU(){if(!DQ){let e=document.createElement(\"div\");e.className=\"-cbwsdk-css-reset\",document.body.appendChild(e),DQ=new ON,DQ.attach(e)}return DQ}var IBe,kBe,ASt,SSt,DQ,BQ=$(()=>{f();Rf();kQ();Ehe();PQ();iR();TQ();IBe=420,kBe=700,ASt={isRed:!1,info:\"Retry\",svgWidth:\"10\",svgHeight:\"11\",path:xhe,defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\"},SSt=\"Popup was blocked. Try again.\",DQ=null});var LQ,PBe=$(()=>{f();IN();Rf();EBe();BQ();iR();LQ=class{constructor({url:t=yBe,metadata:n,preference:r}){this.popup=null,this.listeners=new Map,this.postMessage=async o=>{(await this.waitForPopupLoaded()).postMessage(o,this.url.origin)},this.postRequestAndWaitForResponse=async o=>{let i=this.onMessage(({requestId:a})=>a===o.id);return this.postMessage(o),await i},this.onMessage=async o=>new Promise((i,a)=>{let c=l=>{if(l.origin!==this.url.origin)return;let d=l.data;o(d)&&(i(d),window.removeEventListener(\"message\",c),this.listeners.delete(c))};window.addEventListener(\"message\",c),this.listeners.set(c,{reject:a})}),this.disconnect=()=>{NBe(this.popup),this.popup=null,this.listeners.forEach(({reject:o},i)=>{o(It.provider.userRejectedRequest(\"Request rejected\")),window.removeEventListener(\"message\",i)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?(this.popup.focus(),this.popup):(vBe(),this.popup=await OBe(this.url),this.onMessage(({event:o})=>o===\"PopupUnload\").then(()=>{this.disconnect(),xBe()}).catch(()=>{}),this.onMessage(({event:o})=>o===\"PopupLoaded\").then(o=>{this.postMessage({requestId:o.id,data:{version:ty,metadata:this.metadata,preference:this.preference,location:window.location.toString()}})}).then(()=>{if(!this.popup)throw It.rpc.internal();return wBe(),this.popup})),this.url=new URL(t),this.metadata=n,this.preference=r}}});function Fu(e){return e.errorMessage!==void 0}var UQ=$(()=>{f()});function MBe(e){let t=iBe(TSt(e),{shouldIncludeStack:!0}),n=new URL(\"https://docs.cloud.coinbase.com/wallet-sdk/docs/errors\");return n.searchParams.set(\"version\",ty),n.searchParams.set(\"code\",t.code.toString()),n.searchParams.set(\"message\",t.message),Object.assign(Object.assign({},t),{docUrl:n.href})}function TSt(e){var t;if(typeof e==\"string\")return{message:e,code:ls.rpc.internal};if(Fu(e)){let n=e.errorMessage,r=(t=e.errorCode)!==null&&t!==void 0?t:n.match(/(denied|rejected)/i)?ls.provider.userRejectedRequest:void 0;return Object.assign(Object.assign({},e),{message:n,code:r,data:{method:e.method}})}return e}var DBe=$(()=>{f();iR();UQ();IU();uhe()});var FQ,BBe=$(()=>{f();J_();FQ=class extends qg.default{}});var Ew,MU=$(()=>{f();Ew=class e{constructor(t,n){this.scope=t,this.module=n}storeObject(t,n){this.setItem(t,JSON.stringify(n))}loadObject(t){let n=this.getItem(t);return n?JSON.parse(n):void 0}setItem(t,n){localStorage.setItem(this.scopedKey(t),n)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){let t=this.scopedKey(\"\"),n=[];for(let r=0;r<localStorage.length;r++){let o=localStorage.key(r);typeof o==\"string\"&&o.startsWith(t)&&n.push(o)}n.forEach(r=>localStorage.removeItem(r))}scopedKey(t){return`-${this.scope}${this.module?`:${this.module}`:\"\"}:${t}`}static clearAll(){new e(\"CBWSDK\").clear(),new e(\"walletlink\").clear()}}});var LBe,UBe,FBe,HBe,zBe,jBe=$(()=>{f();lT();LBe=({signerType:e})=>{kr(\"provider.signer.loaded_from_storage\",{action:hr.measurement,componentType:pr.unknown,signerType:e},mr.low)},UBe=({method:e,correlationId:t})=>{kr(\"provider.request.started\",{action:hr.unknown,componentType:pr.unknown,method:e,correlationId:t},mr.high)},FBe=({method:e,correlationId:t,signerType:n,errorMessage:r})=>{kr(\"provider.request.error\",{action:hr.error,componentType:pr.unknown,method:e,signerType:n,correlationId:t,errorMessage:r},mr.high)},HBe=({method:e,signerType:t,correlationId:n})=>{kr(\"provider.request.responded\",{action:hr.unknown,componentType:pr.unknown,method:e,signerType:t,correlationId:n},mr.high)},zBe=()=>{kr(\"provider.enable_function.called\",{action:hr.measurement,componentType:pr.unknown},mr.high)}});var WBe,VBe,GBe=$(()=>{f();lT();WBe=()=>{kr(\"signer.selection.requested\",{action:hr.unknown,componentType:pr.unknown},mr.high)},VBe=e=>{kr(\"signer.selection.responded\",{action:hr.unknown,componentType:pr.unknown,signerType:e},mr.high)}});var HQ,am,zQ=$(()=>{f();I3();HQ=Qg(()=>({correlationIds:new Map})),am={get:e=>HQ.getState().correlationIds.get(e),set:(e,t)=>{HQ.setState(n=>{let r=new Map(n.correlationIds);return r.set(e,t),{correlationIds:r}})},delete:e=>{HQ.setState(t=>{let n=new Map(t.correlationIds);return n.delete(e),{correlationIds:n}})},clear:()=>{HQ.setState({correlationIds:new Map})}}});var qBe,KBe,YBe,ZBe,QBe,JBe,XBe=$(()=>{f();ny();lT();qBe=({method:e,correlationId:t})=>{var n;kr(\"scw_signer.handshake.started\",{action:hr.unknown,componentType:pr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},mr.high)},KBe=({method:e,correlationId:t,errorMessage:n})=>{var r;kr(\"scw_signer.handshake.error\",{action:hr.error,componentType:pr.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Bt.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},mr.high)},YBe=({method:e,correlationId:t})=>{var n;kr(\"scw_signer.handshake.completed\",{action:hr.unknown,componentType:pr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},mr.high)},ZBe=({method:e,correlationId:t})=>{var n;kr(\"scw_signer.request.started\",{action:hr.unknown,componentType:pr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},mr.high)},QBe=({method:e,correlationId:t,errorMessage:n})=>{var r;kr(\"scw_signer.request.error\",{action:hr.error,componentType:pr.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Bt.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},mr.high)},JBe=({method:e,correlationId:t})=>{var n;kr(\"scw_signer.request.completed\",{action:hr.unknown,componentType:pr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},mr.high)}});var $Be,eLe,tLe,nLe,rLe,oLe,iLe,aLe,sLe,cLe=$(()=>{f();ny();lT();$Be=({method:e,correlationId:t})=>{var n;kr(\"scw_sub_account.request.started\",{action:hr.unknown,componentType:pr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},mr.high)},eLe=({method:e,correlationId:t})=>{var n;kr(\"scw_sub_account.request.completed\",{action:hr.unknown,componentType:pr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},mr.high)},tLe=({method:e,correlationId:t,errorMessage:n})=>{var r;kr(\"scw_sub_account.request.error\",{action:hr.error,componentType:pr.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Bt.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},mr.high)},nLe=({method:e,correlationId:t})=>{var n;kr(\"scw_sub_account.add_owner.started\",{action:hr.unknown,componentType:pr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},mr.high)},rLe=({method:e,correlationId:t})=>{var n;kr(\"scw_sub_account.add_owner.completed\",{action:hr.unknown,componentType:pr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},mr.high)},oLe=({method:e,correlationId:t,errorMessage:n})=>{var r;kr(\"scw_sub_account.add_owner.error\",{action:hr.error,componentType:pr.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Bt.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},mr.high)},iLe=({method:e,correlationId:t})=>{var n;kr(\"scw_sub_account.insufficient_balance.error_handling.started\",{action:hr.unknown,componentType:pr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},mr.high)},aLe=({method:e,correlationId:t})=>{var n;kr(\"scw_sub_account.insufficient_balance.error_handling.completed\",{action:hr.unknown,componentType:pr.unknown,method:e,correlationId:t,enableAutoSubAccounts:(n=Bt.subAccountsConfig.get())===null||n===void 0?void 0:n.enableAutoSubAccounts},mr.high)},sLe=({method:e,correlationId:t,errorMessage:n})=>{var r;kr(\"scw_sub_account.insufficient_balance.error_handling.error\",{action:hr.error,componentType:pr.unknown,method:e,correlationId:t,errorMessage:n,enableAutoSubAccounts:(r=Bt.subAccountsConfig.get())===null||r===void 0?void 0:r.enableAutoSubAccounts},mr.high)}});var ME,Ahe=$(()=>{f();ME=e=>\"message\"in e&&typeof e.message==\"string\"?e.message:\"\"});var She,uLe=$(()=>{f();I3();She=Qg(()=>({}))});function _he(e){e.forEach(t=>{var n,r,o,i,a,c,l,d;if(!t.rpcUrl)return;let m=ya({id:t.id,rpcUrls:{default:{http:[t.rpcUrl]}},name:(r=(n=t.nativeCurrency)===null||n===void 0?void 0:n.name)!==null&&r!==void 0?r:\"\",nativeCurrency:{name:(i=(o=t.nativeCurrency)===null||o===void 0?void 0:o.name)!==null&&i!==void 0?i:\"\",symbol:(c=(a=t.nativeCurrency)===null||a===void 0?void 0:a.symbol)!==null&&c!==void 0?c:\"\",decimals:(d=(l=t.nativeCurrency)===null||l===void 0?void 0:l.decimal)!==null&&d!==void 0?d:18}}),h=vE({chain:m,transport:hl(t.rpcUrl)}),g=qL({client:h,transport:hl(t.rpcUrl)});She.setState({[t.id]:{client:h,bundlerClient:g}})})}function jQ(e){var t;return(t=She.getState()[e])===null||t===void 0?void 0:t.client}var The=$(()=>{f();gn();YL();uLe()});function Zl(e,t,n){if(e==null)throw t??It.rpc.invalidParams({message:n??\"value must be present\",data:e})}function Aw(e,t){if(!Array.isArray(e))throw It.rpc.invalidParams({message:t??\"value must be an array\",data:e})}var NN=$(()=>{f();Rf()});function DU(e){if(typeof e!=\"object\"||e===null)throw It.rpc.internal(\"sub account info is not an object\");if(!(\"address\"in e))throw It.rpc.internal(\"sub account is invalid\");if(\"address\"in e&&typeof e.address==\"string\"&&!Hn(e.address))throw It.rpc.internal(\"sub account address is invalid\");if(\"factory\"in e&&typeof e.factory==\"string\"&&!Hn(e.factory))throw It.rpc.internal(\"sub account factory address is invalid\");if(\"factoryData\"in e&&typeof e.factoryData==\"string\"&&!ro(e.factoryData))throw It.rpc.internal(\"sub account factory data is invalid\")}var lLe=$(()=>{f();gn();Rf()});async function dLe(){return crypto.subtle.generateKey({name:\"ECDH\",namedCurve:\"P-256\"},!0,[\"deriveKey\"])}async function fLe(e,t){return crypto.subtle.deriveKey({name:\"ECDH\",public:t},e,{name:\"AES-GCM\",length:256},!1,[\"encrypt\",\"decrypt\"])}async function CSt(e,t){let n=crypto.getRandomValues(new Uint8Array(12)),r=await crypto.subtle.encrypt({name:\"AES-GCM\",iv:n},e,new TextEncoder().encode(t));return{iv:n,cipherText:r}}async function RSt(e,{iv:t,cipherText:n}){let r=await crypto.subtle.decrypt({name:\"AES-GCM\",iv:t},e,n);return new TextDecoder().decode(r)}function pLe(e){switch(e){case\"public\":return\"spki\";case\"private\":return\"pkcs8\"}}async function WQ(e,t){let n=pLe(e),r=await crypto.subtle.exportKey(n,t);return OU(new Uint8Array(r))}async function VQ(e,t){let n=pLe(e),r=TN(t).buffer;return await crypto.subtle.importKey(n,new Uint8Array(r),{name:\"ECDH\",namedCurve:\"P-256\"},!0,e===\"private\"?[\"deriveKey\"]:[])}async function hLe(e,t){let n=JSON.stringify(e,(r,o)=>{if(!(o instanceof Error))return o;let i=o;return Object.assign(Object.assign({},i.code?{code:i.code}:{}),{message:i.message})});return CSt(t,n)}async function mLe(e,t){return JSON.parse(await RSt(t,e))}var Che=$(()=>{f();a1()});function gLe(e,t){let n=typeof indexedDB<\"u\"?bU(e,t):void 0;return{getItem:async r=>{let o=await $Z(r,n);return o||null},removeItem:async r=>tQ(r,n),setItem:async(r,o)=>eQ(r,o,n)}}var yLe=$(()=>{f();Ype()});async function OSt(){let e=await sT.createKeyPair({extractable:!1}),t=Lu.slice(Yp.toHex(e.publicKey),1);return await dT.setItem(t,e),await dT.setItem(GQ,t),e}async function bLe(){let e=await dT.getItem(GQ);if(!e)return null;let t=await dT.getItem(e);return t||null}async function NSt(){let e=await bLe();if(!e){let t=await OSt(),n=Lu.slice(Yp.toHex(t.publicKey),1);return await dT.setItem(n,t),await dT.setItem(GQ,n),t}return e}async function PSt(){let e=await NSt(),t=Lu.slice(Yp.toHex(e.publicKey),1),n=async r=>{let{payload:o,metadata:i}=xN.getSignPayload({challenge:r,origin:\"https://keys.coinbase.com\",userVerification:\"preferred\"}),a=await sT.sign({payload:o,privateKey:e.privateKey});return{signature:ey.toHex(a),raw:{},webauthn:i}};return{id:t,publicKey:t,async sign({hash:r}){return n(r)},async signMessage({message:r}){return n(p0(r))},async signTypedData(r){return n(Vp(r))},type:\"webAuthn\"}}async function cR(){return{account:await PSt()}}async function vLe(){let e=await bLe();e&&(await dT.removeItem(Lu.slice(Yp.toHex(e.publicKey),1)),await dT.removeItem(GQ))}var ISt,kSt,GQ,dT,qQ=$(()=>{f();yU();gn();yLe();ISt=\"cbwsdk\",kSt=\"keys\",GQ=\"activeId\",dT=gLe(ISt,kSt)});var wLe,xLe,ELe,KQ,ALe=$(()=>{f();ny();Che();wLe={storageKey:\"ownPrivateKey\",keyType:\"private\"},xLe={storageKey:\"ownPublicKey\",keyType:\"public\"},ELe={storageKey:\"peerPublicKey\",keyType:\"public\"},KQ=class{constructor(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(t){this.sharedSecret=null,this.peerPublicKey=t,await this.storeKey(ELe,t),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,Bt.keys.clear()}async generateKeyPair(){let t=await dLe();this.ownPrivateKey=t.privateKey,this.ownPublicKey=t.publicKey,await this.storeKey(wLe,t.privateKey),await this.storeKey(xLe,t.publicKey)}async loadKeysIfNeeded(){if(this.ownPrivateKey===null&&(this.ownPrivateKey=await this.loadKey(wLe)),this.ownPublicKey===null&&(this.ownPublicKey=await this.loadKey(xLe)),(this.ownPrivateKey===null||this.ownPublicKey===null)&&await this.generateKeyPair(),this.peerPublicKey===null&&(this.peerPublicKey=await this.loadKey(ELe)),this.sharedSecret===null){if(this.ownPrivateKey===null||this.peerPublicKey===null)return;this.sharedSecret=await fLe(this.ownPrivateKey,this.peerPublicKey)}}async loadKey(t){let n=Bt.keys.get(t.storageKey);return n?VQ(t.keyType,n):null}async storeKey(t,n){let r=await WQ(t.keyType,n);Bt.keys.set(t.storageKey,r)}}});function uR(e,t){if(!(typeof e!=\"object\"||e===null))return t.split(/[.[\\\\]]+/).filter(Boolean).reduce((n,r)=>{if(typeof n==\"object\"&&n!==null)return n[r]},e)}var Rhe=$(()=>{f()});var YQ,Ihe,If,ZQ,lR=$(()=>{f();YQ=\"0x0ba5ed0c6aa8c49038f819e587e2633c4a9f428a\",Ihe=\"0xf85210B21cC50302F477BA56686d2019dC9b67Ad\",If=[{inputs:[],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[{name:\"owner\",type:\"bytes\"}],name:\"AlreadyOwner\",type:\"error\"},{inputs:[],name:\"Initialized\",type:\"error\"},{inputs:[{name:\"owner\",type:\"bytes\"}],name:\"InvalidEthereumAddressOwner\",type:\"error\"},{inputs:[{name:\"key\",type:\"uint256\"}],name:\"InvalidNonceKey\",type:\"error\"},{inputs:[{name:\"owner\",type:\"bytes\"}],name:\"InvalidOwnerBytesLength\",type:\"error\"},{inputs:[],name:\"LastOwner\",type:\"error\"},{inputs:[{name:\"index\",type:\"uint256\"}],name:\"NoOwnerAtIndex\",type:\"error\"},{inputs:[{name:\"ownersRemaining\",type:\"uint256\"}],name:\"NotLastOwner\",type:\"error\"},{inputs:[{name:\"selector\",type:\"bytes4\"}],name:\"SelectorNotAllowed\",type:\"error\"},{inputs:[],name:\"Unauthorized\",type:\"error\"},{inputs:[],name:\"UnauthorizedCallContext\",type:\"error\"},{inputs:[],name:\"UpgradeFailed\",type:\"error\"},{inputs:[{name:\"index\",type:\"uint256\"},{name:\"expectedOwner\",type:\"bytes\"},{name:\"actualOwner\",type:\"bytes\"}],name:\"WrongOwnerAtIndex\",type:\"error\"},{anonymous:!1,inputs:[{indexed:!0,name:\"index\",type:\"uint256\"},{indexed:!1,name:\"owner\",type:\"bytes\"}],name:\"AddOwner\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"index\",type:\"uint256\"},{indexed:!1,name:\"owner\",type:\"bytes\"}],name:\"RemoveOwner\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,name:\"implementation\",type:\"address\"}],name:\"Upgraded\",type:\"event\"},{stateMutability:\"payable\",type:\"fallback\"},{inputs:[],name:\"REPLAYABLE_NONCE_KEY\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"owner\",type:\"address\"}],name:\"addOwnerAddress\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"x\",type:\"bytes32\"},{name:\"y\",type:\"bytes32\"}],name:\"addOwnerPublicKey\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"functionSelector\",type:\"bytes4\"}],name:\"canSkipChainIdValidation\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"pure\",type:\"function\"},{inputs:[],name:\"domainSeparator\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"eip712Domain\",outputs:[{name:\"fields\",type:\"bytes1\"},{name:\"name\",type:\"string\"},{name:\"version\",type:\"string\"},{name:\"chainId\",type:\"uint256\"},{name:\"verifyingContract\",type:\"address\"},{name:\"salt\",type:\"bytes32\"},{name:\"extensions\",type:\"uint256[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"entryPoint\",outputs:[{name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"target\",type:\"address\"},{name:\"value\",type:\"uint256\"},{name:\"data\",type:\"bytes\"}],name:\"execute\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{components:[{name:\"target\",type:\"address\"},{name:\"value\",type:\"uint256\"},{name:\"data\",type:\"bytes\"}],name:\"calls\",type:\"tuple[]\"}],name:\"executeBatch\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"calls\",type:\"bytes[]\"}],name:\"executeWithoutChainIdValidation\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOp\",type:\"tuple\"}],name:\"getUserOpHashWithoutChainId\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"implementation\",outputs:[{name:\"$\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"owners\",type:\"bytes[]\"}],name:\"initialize\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"account\",type:\"address\"}],name:\"isOwnerAddress\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"account\",type:\"bytes\"}],name:\"isOwnerBytes\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"x\",type:\"bytes32\"},{name:\"y\",type:\"bytes32\"}],name:\"isOwnerPublicKey\",outputs:[{name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"hash\",type:\"bytes32\"},{name:\"signature\",type:\"bytes\"}],name:\"isValidSignature\",outputs:[{name:\"result\",type:\"bytes4\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"nextOwnerIndex\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"index\",type:\"uint256\"}],name:\"ownerAtIndex\",outputs:[{name:\"\",type:\"bytes\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"ownerCount\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"proxiableUUID\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"index\",type:\"uint256\"},{name:\"owner\",type:\"bytes\"}],name:\"removeLastOwner\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{name:\"index\",type:\"uint256\"},{name:\"owner\",type:\"bytes\"}],name:\"removeOwnerAtIndex\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"removedOwnersCount\",outputs:[{name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"hash\",type:\"bytes32\"}],name:\"replaySafeHash\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"newImplementation\",type:\"address\"},{name:\"data\",type:\"bytes\"}],name:\"upgradeToAndCall\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{components:[{name:\"sender\",type:\"address\"},{name:\"nonce\",type:\"uint256\"},{name:\"initCode\",type:\"bytes\"},{name:\"callData\",type:\"bytes\"},{name:\"callGasLimit\",type:\"uint256\"},{name:\"verificationGasLimit\",type:\"uint256\"},{name:\"preVerificationGas\",type:\"uint256\"},{name:\"maxFeePerGas\",type:\"uint256\"},{name:\"maxPriorityFeePerGas\",type:\"uint256\"},{name:\"paymasterAndData\",type:\"bytes\"},{name:\"signature\",type:\"bytes\"}],name:\"userOp\",type:\"tuple\"},{name:\"userOpHash\",type:\"bytes32\"},{name:\"missingAccountFunds\",type:\"uint256\"}],name:\"validateUserOp\",outputs:[{name:\"validationData\",type:\"uint256\"}],stateMutability:\"nonpayable\",type:\"function\"},{stateMutability:\"payable\",type:\"receive\"}],ZQ=[{inputs:[{name:\"implementation_\",type:\"address\"}],stateMutability:\"payable\",type:\"constructor\"},{inputs:[],name:\"OwnerRequired\",type:\"error\"},{inputs:[{name:\"owners\",type:\"bytes[]\"},{name:\"nonce\",type:\"uint256\"}],name:\"createAccount\",outputs:[{name:\"account\",type:\"address\"}],stateMutability:\"payable\",type:\"function\"},{inputs:[{name:\"owners\",type:\"bytes[]\"},{name:\"nonce\",type:\"uint256\"}],name:\"getAddress\",outputs:[{name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"implementation\",outputs:[{name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"initCodeHash\",outputs:[{name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"}]});function khe(e){var t;if(!Array.isArray(e.params))return null;switch(e.method){case\"personal_sign\":return e.params[1];case\"eth_signTypedData_v4\":return e.params[0];case\"eth_signTransaction\":case\"eth_sendTransaction\":case\"wallet_sendCalls\":return(t=e.params[0])===null||t===void 0?void 0:t.from;default:return null}}function SLe(e,t){if(!Array.isArray(e.params))throw It.rpc.invalidParams();let n=[...e.params];switch(e.method){case\"eth_signTransaction\":case\"eth_sendTransaction\":case\"wallet_sendCalls\":n[0].from=t;break;case\"eth_signTypedData_v4\":n[0]=t;break;case\"personal_sign\":n[1]=t;break;default:break}return Object.assign(Object.assign({},e),{params:n})}function Ohe(e){var t;if(!e||!Array.isArray(e)||!(!((t=e[0])===null||t===void 0)&&t.chainId))throw It.rpc.invalidParams();if(typeof e[0].chainId!=\"string\"&&typeof e[0].chainId!=\"number\")throw It.rpc.invalidParams()}function _Le(e){if(!e||!Array.isArray(e)||e.length!==1&&e.length!==2)throw It.rpc.invalidParams();if(typeof e[0]!=\"string\"||!Hn(e[0]))throw It.rpc.invalidParams();if(e.length===2){if(!Array.isArray(e[1]))throw It.rpc.invalidParams();for(let t of e[1])if(typeof t!=\"string\"||!t.startsWith(\"0x\"))throw It.rpc.invalidParams()}}function PN(e,t){let n=Object.assign({},e);if(t&&e.method.startsWith(\"wallet_\")){let r=uR(n,\"params.0.capabilities\");if(typeof r>\"u\"&&(r={}),typeof r!=\"object\")throw It.rpc.invalidParams();r=Object.assign(Object.assign({},t),r),n.params&&Array.isArray(n.params)&&(n.params[0]=Object.assign(Object.assign({},n.params[0]),{capabilities:r}))}return n}async function QQ(){var e;let t=(e=Bt.subAccountsConfig.get())!==null&&e!==void 0?e:{},n={};if(t.enableAutoSubAccounts){let{account:r}=t.toOwnerAccount?await t.toOwnerAccount():await cR();if(!r)throw It.provider.unauthorized(\"No owner account found\");n.addSubAccount={account:{type:\"create\",keys:[{type:r.address?\"address\":\"webauthn-p256\",publicKey:r.address||r.publicKey}]}}}Bt.subAccountsConfig.set({capabilities:n})}function TLe(e){if(!(e.method===\"coinbase_fetchPermissions\"&&e.params===void 0)){if(e.method===\"coinbase_fetchPermissions\"&&Array.isArray(e.params)&&e.params.length===1&&typeof e.params[0]==\"object\"){if(typeof e.params[0].account!=\"string\"||!e.params[0].chainId.startsWith(\"0x\"))throw It.rpc.invalidParams(\"FetchPermissions - Invalid params: params[0].account must be a hex string\");if(typeof e.params[0].chainId!=\"string\"||!e.params[0].chainId.startsWith(\"0x\"))throw It.rpc.invalidParams(\"FetchPermissions - Invalid params: params[0].chainId must be a hex string\");if(typeof e.params[0].spender!=\"string\"||!e.params[0].spender.startsWith(\"0x\"))throw It.rpc.invalidParams(\"FetchPermissions - Invalid params: params[0].spender must be a hex string\");return}throw It.rpc.invalidParams()}}function CLe(e){var t,n,r;if(e.params!==void 0)return e;let o=(t=Bt.getState().account.accounts)===null||t===void 0?void 0:t[0],i=(n=Bt.getState().account.chain)===null||n===void 0?void 0:n.id,a=(r=Bt.getState().subAccount)===null||r===void 0?void 0:r.address;if(!o||!a||!i)throw It.rpc.invalidParams(\"FetchPermissions - one or more of account, sub account, or chain id is missing, connect to sub account via wallet_connect first\");return{method:\"coinbase_fetchPermissions\",params:[{account:o,chainId:Pe(i),spender:a}]}}function RLe({spendPermission:e,chainId:t}){return{domain:{name:\"Spend Permission Manager\",version:\"1\",chainId:t,verifyingContract:Ihe},types:{SpendPermission:[{name:\"account\",type:\"address\"},{name:\"spender\",type:\"address\"},{name:\"token\",type:\"address\"},{name:\"allowance\",type:\"uint160\"},{name:\"period\",type:\"uint48\"},{name:\"start\",type:\"uint48\"},{name:\"end\",type:\"uint48\"},{name:\"salt\",type:\"uint256\"},{name:\"extraData\",type:\"bytes\"}]},primaryType:\"SpendPermission\",message:{account:e.account,spender:e.spender,token:e.token,allowance:e.allowance,period:e.period,start:e.start,end:e.end,salt:e.salt,extraData:e.extraData}}}function ILe({spendPermissionBatch:e,chainId:t}){return{domain:{name:\"Spend Permission Manager\",version:\"1\",chainId:t,verifyingContract:Ihe},types:{SpendPermissionBatch:[{name:\"account\",type:\"address\"},{name:\"period\",type:\"uint48\"},{name:\"start\",type:\"uint48\"},{name:\"end\",type:\"uint48\"},{name:\"permissions\",type:\"PermissionDetails[]\"}],PermissionDetails:[{name:\"spender\",type:\"address\"},{name:\"token\",type:\"address\"},{name:\"allowance\",type:\"uint160\"},{name:\"salt\",type:\"uint256\"},{name:\"extraData\",type:\"bytes\"}]},primaryType:\"SpendPermissionBatch\",message:{account:e.account,period:e.period,start:e.start,end:e.end,permissions:e.permissions.map(n=>({spender:n.spender,token:n.token,allowance:n.allowance,salt:n.salt,extraData:n.extraData}))}}}async function JQ({client:e,id:t}){var n;let r=await em(e,{id:t});if(r.status===\"success\")return(n=r.receipts)===null||n===void 0?void 0:n[0].transactionHash;throw It.rpc.internal(\"failed to send transaction\")}function XQ({calls:e,from:t,chainId:n,capabilities:r}){let o=ahe.get().paymasterUrls,i={method:\"wallet_sendCalls\",params:[{version:\"1.0\",calls:e,chainId:Pe(n),from:t,atomicRequired:!0,capabilities:r}]};return o?.[n]&&(i=PN(i,{paymasterService:{url:o?.[n]}})),i}async function kLe(){let e=PU();return await new Promise(n=>{kN({snackbarContext:\"sub_account_insufficient_balance\"}),e.presentItem({autoExpand:!0,message:\"Insufficient spend permission. Choose how to proceed:\",menuItems:[{isRed:!1,info:\"Create new Spend Permission\",svgWidth:\"10\",svgHeight:\"11\",path:\"\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:()=>{PE({snackbarContext:\"sub_account_insufficient_balance\",snackbarAction:\"create_permission\"}),e.clear(),n(\"update_permission\")}},{isRed:!1,info:\"Continue in Popup\",svgWidth:\"10\",svgHeight:\"11\",path:\"\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:()=>{PE({snackbarContext:\"sub_account_insufficient_balance\",snackbarAction:\"continue_in_popup\"}),e.clear(),n(\"continue_popup\")}},{isRed:!0,info:\"Cancel\",svgWidth:\"10\",svgHeight:\"11\",path:\"\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:()=>{PE({snackbarContext:\"sub_account_insufficient_balance\",snackbarAction:\"cancel\"}),e.clear(),n(\"cancel\")}}]})})}function OLe({errorData:e,sourceAddress:t}){var n;let r=[];for(let[o,{amount:i,sources:a}]of Object.entries((n=e?.required)!==null&&n!==void 0?n:{})){if(a.filter(l=>Zn(l.balance)>=Zn(i)&&l.address.toLowerCase()===t?.toLowerCase()).length===0)throw new Error(\"Source address has insufficient balance for a token\");r.push({token:o,requiredAmount:Zn(i)})}return r}function NLe(e){return typeof e==\"object\"&&e!==null&&\"calls\"in e}function PLe(e){return Array.isArray(e)&&e.length===1&&typeof e[0]==\"object\"&&e[0]!==null&&\"to\"in e[0]}function MSt(e){return Od(dr(Xn(e)),0,16)}function MLe({attribution:e,dappOrigin:t}){if(e){if(\"auto\"in e&&e.auto&&t)return MSt(t);if(\"dataSuffix\"in e)return e.dataSuffix}}function DLe(e,t){var n;if(!Array.isArray(e?.params))return!1;let r=(n=e.params[0])===null||n===void 0?void 0:n.capabilities;return!r||typeof r!=\"object\"?!1:t in r}function BU(e,t){let n=e.filter(r=>r!==t);return[t,...n]}function LU(e,t){return[...e.filter(r=>r!==t),t]}async function BLe(){let e=Bt.spendPermissions.get(),t=Bt.subAccounts.get(),n=Bt.account.get().accounts;return n?{accounts:n?.map(o=>({address:o,capabilities:{subAccounts:t?[t]:void 0,spendPermissions:e.length>0?{permissions:e}:void 0}}))}:null}var $Q=$(()=>{f();gn();gn();Rf();kQ();ny();Rhe();BQ();lQ();qQ();lR()});function DSt(e){return e.replaceAll(\"+\",\"-\").replaceAll(\"/\",\"_\").replace(/=+$/,\"\")}function eJ(e){let t=btoa(String.fromCharCode(...new Uint8Array(e)));return DSt(t)}function LLe({webauthn:e,signature:t,id:n}){let r=ey.fromHex(t);return{id:n,rawId:eJ(Fl(n)),response:{authenticatorData:eJ(Si(e.authenticatorData)),clientDataJSON:eJ(Fl(e.clientDataJSON)),signature:eJ(BSt(r.r,r.s))},type:JSON.parse(e.clientDataJSON).type}}function BSt(e,t){let n=Si(na(Pe(e))),r=Si(na(Pe(t))),o=n.length,i=r.length,a=o+i+4,c=new Uint8Array(a+2);return c[0]=48,c[1]=a,c[2]=2,c[3]=o,c.set(n,4),c[o+4]=2,c[o+5]=i,c.set(r,o+6),c}var ULe=$(()=>{f();yU();gn()});async function FLe(e){let{owner:t,ownerIndex:n,address:r,client:o,factoryData:i}=e,a={abi:HL,address:KL,version:\"0.6\"},c={abi:ZQ,address:YQ};return jL({client:o,entryPoint:a,extend:{abi:If,factory:c},async decodeCalls(l){let d=Zb({abi:If,data:l});if(d.functionName===\"execute\")return[{to:d.args[0],value:d.args[1],data:d.args[2]}];if(d.functionName===\"executeBatch\")return d.args[0].map(m=>({to:m.target,value:m.value,data:m.data}));throw new Oe(`unable to decode calls for \"${d.functionName}\"`)},async encodeCalls(l){var d,m;return l.length===1?xn({abi:If,functionName:\"execute\",args:[l[0].to,(d=l[0].value)!==null&&d!==void 0?d:BigInt(0),(m=l[0].data)!==null&&m!==void 0?m:\"0x\"]}):xn({abi:If,functionName:\"executeBatch\",args:[l.map(h=>{var g,y;return{data:(g=h.data)!==null&&g!==void 0?g:\"0x\",target:h.to,value:(y=h.value)!==null&&y!==void 0?y:BigInt(0)}})]})},async getAddress(){return r},async getFactoryArgs(){return i?{factory:c.address,factoryData:i}:{factory:c.address,factoryData:i}},async getStubSignature(){return t.type===\"webAuthn\"?\"0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000170000000000000000000000000000000000000000000000000000000000000001949fc7c88032b9fcb5f6efc7a7b8c63668eae9871b765e23123bb473ff57aa831a7c0d9276168ebcc29f2875a0239cffdf2a9cd1c2007c5c77c071db9264df1d000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97630500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008a7b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a2273496a396e6164474850596759334b7156384f7a4a666c726275504b474f716d59576f4d57516869467773222c226f726967696e223a2268747470733a2f2f7369676e2e636f696e626173652e636f6d222c2263726f73734f726967696e223a66616c73657d00000000000000000000000000000000000000000000\":UU({ownerIndex:n,signature:\"0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c\"})},async sign(l){let d=await this.getAddress(),m=Nhe({address:d,chainId:o.chain.id,hash:l.hash}),h=await tJ({hash:m,owner:t});return UU({ownerIndex:n,signature:h})},async signMessage(l){let{message:d}=l,m=await this.getAddress(),h=Nhe({address:m,chainId:o.chain.id,hash:p0(d)}),g=await tJ({hash:h,owner:t});return UU({ownerIndex:n,signature:g})},async signTypedData(l){let{domain:d,types:m,primaryType:h,message:g}=l,y=await this.getAddress(),w=Nhe({address:y,chainId:o.chain.id,hash:Vp({domain:d,message:g,primaryType:h,types:m})}),x=await tJ({hash:w,owner:t});return UU({ownerIndex:n,signature:x})},async signUserOperation(l){let{chainId:d=o.chain.id}=l,m=LSt(l,[\"chainId\"]),h=await this.getAddress(),g=zL({chainId:d,entryPointAddress:a.address,entryPointVersion:a.version,userOperation:Object.assign(Object.assign({},m),{sender:h})}),y=await tJ({hash:g,owner:t});return UU({ownerIndex:n,signature:y})},userOperation:{async estimateGas(l){var d;if(t.type===\"webAuthn\")return{verificationGasLimit:BigInt(Math.max(Number((d=l.verificationGasLimit)!==null&&d!==void 0?d:BigInt(0)),8e5))}}}})}async function tJ({hash:e,owner:t}){if(t.type===\"webAuthn\"){let{signature:n,webauthn:r}=await t.sign({hash:e});return USt({signature:n,webauthn:r})}if(t.sign)return t.sign({hash:e});throw new Oe(\"`owner` does not support raw sign.\")}function Nhe({address:e,chainId:t,hash:n}){return Vp({domain:{chainId:t,name:\"Coinbase Smart Wallet\",verifyingContract:e,version:\"1\"},types:{CoinbaseSmartWalletMessage:[{name:\"hash\",type:\"bytes32\"}]},primaryType:\"CoinbaseSmartWalletMessage\",message:{hash:n}})}function USt({webauthn:e,signature:t}){let{r:n,s:r}=X3(t);return oa([{components:[{name:\"authenticatorData\",type:\"bytes\"},{name:\"clientDataJSON\",type:\"bytes\"},{name:\"challengeIndex\",type:\"uint256\"},{name:\"typeIndex\",type:\"uint256\"},{name:\"r\",type:\"uint256\"},{name:\"s\",type:\"uint256\"}],type:\"tuple\"}],[{authenticatorData:e.authenticatorData,clientDataJSON:Ul(e.clientDataJSON),challengeIndex:BigInt(e.challengeIndex),typeIndex:BigInt(e.typeIndex),r:n,s:r}])}function UU(e){let{ownerIndex:t=0}=e,n=(()=>{if(Jr(e.signature)!==65)return e.signature;let r=pO(e.signature);return g3([\"bytes32\",\"bytes32\",\"uint8\"],[r.r,r.s,r.yParity===0?27:28])})();return oa([{components:[{name:\"ownerIndex\",type:\"uint8\"},{name:\"signatureData\",type:\"bytes\"}],type:\"tuple\"}],[{ownerIndex:t,signatureData:n}])}var LSt,HLe=$(()=>{f();FZ();gn();YL();lR();LSt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}});async function zLe({address:e,client:t,factory:n,factoryData:r,owner:o,ownerIndex:i,parentAddress:a,attribution:c}){var l;let d={address:e,factory:n,factoryData:r},m=(l=t.chain)===null||l===void 0?void 0:l.id;if(!m)throw It.rpc.internal(\"chainId not found\");let h=await FLe({owner:o,ownerIndex:i??1,address:e,client:t,factoryData:r}),g=async y=>{var w,x,I,C,M,B;try{switch(y.method){case\"wallet_addSubAccount\":return d;case\"eth_accounts\":return[d.address];case\"eth_coinbase\":return d.address;case\"net_version\":return m.toString();case\"eth_chainId\":return Pe(m);case\"eth_sendTransaction\":{Aw(y.params);let z=y.params[0];Zl(z.to,It.rpc.invalidParams(\"to is required\"));let G={to:z.to,data:AQ((w=z.data)!==null&&w!==void 0?w:\"0x\",!0),value:AQ((x=z.value)!==null&&x!==void 0?x:\"0x\",!0),from:(I=z.from)!==null&&I!==void 0?I:d.address},J=XQ({calls:[G],chainId:m,from:G.from}),ne=await g(J);return JQ({client:t,id:ne})}case\"wallet_sendCalls\":{Aw(y.params);let z=uR(y.params[0],\"chainId\");if(!z)throw It.rpc.invalidParams(\"chainId is required\");if(!ro(z))throw It.rpc.invalidParams(\"chainId must be a hex encoded integer\");if(!y.params[0])throw It.rpc.invalidParams(\"params are required\");if(!(\"calls\"in y.params[0]))throw It.rpc.invalidParams(\"calls are required\");let G={method:\"wallet_prepareCalls\",params:[{version:\"1.0\",calls:y.params[0].calls,chainId:z,from:d.address,capabilities:\"capabilities\"in y.params[0]?y.params[0].capabilities:{}}]};a&&(G=PN(G,{funding:[{type:\"spendPermission\",data:{autoApply:!0,sources:[a],preference:\"PREFER_DIRECT_BALANCE\"}}]}));let J=await g(G),ne=await((M=(C=o).sign)===null||M===void 0?void 0:M.call(C,{hash:n0(J.signatureRequest.hash)})),ie;if(!ne)throw It.rpc.internal(\"signature not found\");return ro(ne)?ie={type:\"secp256k1\",data:{address:o.address,signature:ne}}:ie={type:\"webauthn\",data:{signature:JSON.stringify(LLe(Object.assign({id:(B=o.id)!==null&&B!==void 0?B:\"1\"},ne))),publicKey:o.publicKey}},(await g({method:\"wallet_sendPreparedCalls\",params:[{version:\"1.0\",type:J.type,data:J.userOp,chainId:J.chainId,signature:ie}]}))[0]}case\"wallet_sendPreparedCalls\":{Aw(y.params);let z=uR(y.params[0],\"chainId\");if(!z)throw It.rpc.invalidParams(\"chainId is required\");if(!ro(z))throw It.rpc.invalidParams(\"chainId must be a hex encoded integer\");return await t.request({method:\"wallet_sendPreparedCalls\",params:y.params})}case\"wallet_prepareCalls\":{Aw(y.params);let z=uR(y.params[0],\"chainId\");if(!z)throw It.rpc.invalidParams(\"chainId is required\");if(!ro(z))throw It.rpc.invalidParams(\"chainId must be a hex encoded integer\");if(!y.params[0])throw It.rpc.invalidParams(\"params are required\");if(!uR(y.params[0],\"calls\"))throw It.rpc.invalidParams(\"calls are required\");let G=y.params[0];return c&&G.capabilities&&!(\"attribution\"in G.capabilities)&&(G.capabilities.attribution=c),await t.request({method:\"wallet_prepareCalls\",params:[Object.assign(Object.assign({},y.params[0]),{chainId:z})]})}case\"personal_sign\":{if(Aw(y.params),!ro(y.params[0]))throw It.rpc.invalidParams(\"message must be a hex encoded string\");let z=n0(y.params[0]);return h.signMessage({message:z})}case\"eth_signTypedData_v4\":{Aw(y.params);let z=typeof y.params[1]==\"string\"?JSON.parse(y.params[1]):y.params[1];return h.signTypedData(z)}case\"eth_signTypedData_v1\":case\"eth_signTypedData_v3\":case\"wallet_addEthereumChain\":case\"wallet_switchEthereumChain\":default:throw It.rpc.methodNotSupported()}}catch(z){if(wQ(z)){let G=cBe(z);if(G)throw G}throw z}};return{request:g}}var jLe=$(()=>{f();Rf();a1();NN();ULe();Rhe();gn();$Q();HLe()});async function nJ({address:e,client:t,publicKey:n,factory:r,factoryData:o}){if(!await d0(t,{address:e})&&r&&o){if(rr(r)!==rr(YQ))throw It.rpc.internal(\"unknown factory address\");let c=Zb({abi:ZQ,data:o});if(c.functionName!==\"createAccount\")throw It.rpc.internal(\"unknown factory function\");let[l]=c.args;return l.findIndex(d=>d.toLowerCase()===WLe(n).toLowerCase())}let a=await _i(t,{address:e,abi:If,functionName:\"ownerCount\"});for(let c=Number(a)-1;c>=0;c--){let l=await _i(t,{address:e,abi:If,functionName:\"ownerAtIndex\",args:[BigInt(c)]}),d=WLe(n);if(l.toLowerCase()===d.toLowerCase())return c}return-1}function WLe(e){return Hn(e)?Gi(e):e}var Phe=$(()=>{f();Rf();gn();tm();lR()});async function VLe(){let e=PU();return new Promise(t=>{kN({snackbarContext:\"sub_account_add_owner\"}),e.presentItem({autoExpand:!0,message:\"App requires a signer update\",menuItems:[{isRed:!1,info:\"Confirm\",svgWidth:\"10\",svgHeight:\"11\",path:\"\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:()=>{PE({snackbarContext:\"sub_account_add_owner\",snackbarAction:\"confirm\"}),e.clear(),t(\"authenticate\")}},{isRed:!0,info:\"Cancel\",svgWidth:\"10\",svgHeight:\"11\",path:\"\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:()=>{PE({snackbarContext:\"sub_account_add_owner\",snackbarAction:\"cancel\"}),e.clear(),t(\"cancel\")}}]})})}var GLe=$(()=>{f();kQ();BQ()});async function qLe({ownerAccount:e,globalAccountRequest:t}){var n,r;let o=Bt.account.get(),i=Bt.subAccounts.get(),a=(n=o.accounts)===null||n===void 0?void 0:n.find(w=>w.toLowerCase()!==i?.address.toLowerCase());Zl(a,It.provider.unauthorized(\"no global account\")),Zl((r=o.chain)===null||r===void 0?void 0:r.id,It.provider.unauthorized(\"no chain id\")),Zl(i?.address,It.provider.unauthorized(\"no sub account\"));let c=[];if(e.type===\"local\"&&e.address&&c.push({to:i.address,data:xn({abi:If,functionName:\"addOwnerAddress\",args:[e.address]}),value:Xn(0)}),e.publicKey){let[w,x]=Pu([{type:\"bytes32\"},{type:\"bytes32\"}],e.publicKey);c.push({to:i.address,data:xn({abi:If,functionName:\"addOwnerPublicKey\",args:[w,x]}),value:Xn(0)})}let l={method:\"wallet_sendCalls\",params:[{version:\"1\",calls:c,chainId:Pe(84532),from:a}]};if(await VLe()===\"cancel\")throw It.provider.unauthorized(\"user cancelled\");let m=await t(l),h=jQ(o.chain.id);if(Zl(h,It.rpc.internal(`client not found for chainId ${o.chain.id}`)),(await em(h,{id:m})).status!==\"success\")throw It.rpc.internal(\"add owner call failed\");let y=await nJ({address:i.address,publicKey:e.type===\"local\"&&e.address?e.address:e.publicKey,client:h});if(y===-1)throw It.rpc.internal(\"failed to find owner index\");return y}var KLe=$(()=>{f();Rf();The();ny();NN();gn();lQ();lR();Phe();GLe()});async function YLe({errorData:e,globalAccountAddress:t,subAccountAddress:n,client:r,request:o,subAccountRequest:i,globalAccountRequest:a}){var c;let l=(c=r.chain)===null||c===void 0?void 0:c.id;Zl(l,It.rpc.internal(\"invalid chainId\"));let d=OLe({errorData:e,sourceAddress:t}),m=await kLe();if(m===\"cancel\")throw new Error(\"User cancelled funding\");let h,g=3600*24,y=3;if(m===\"update_permission\"){if(d.length===1){let B=d[0],z=RLe({spendPermission:{token:B.token,allowance:Pe(B.requiredAmount*BigInt(y)),period:g,account:t,spender:n,start:0,end:0xffffffffffff,salt:Pe(BigInt(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER))),extraData:\"0x\"},chainId:l});h={method:\"eth_signTypedData_v4\",params:[t,z]}}else{let B=ILe({spendPermissionBatch:{account:t,period:g,start:0,end:0xffffffffffff,permissions:d.map(z=>({token:z.token,allowance:Pe(z.requiredAmount*BigInt(y)),period:g,account:t,spender:n,salt:\"0x0\",extraData:\"0x\"}))},chainId:l});h={method:\"eth_signTypedData_v4\",params:[t,B]}}try{await a(h)}catch(B){throw console.error(B),new Error(\"User denied spend permission request\")}return i(o)}let w=d.map(B=>B.token.toLowerCase()===\"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE\".toLowerCase()?{to:n,value:Pe(B.requiredAmount),data:\"0x\"}:{to:B.token,value:\"0x0\",data:xn({abi:rE,functionName:\"transfer\",args:[n,B.requiredAmount]})}),x;if(o.method===\"wallet_sendCalls\"&&NLe(o.params))x=o.params[0];else if(o.method===\"eth_sendTransaction\"&&PLe(o.params))x=XQ({calls:[o.params[0]],chainId:l,from:o.params[0].from}).params[0];else throw new Error(\"Could not get original call\");let I=xn({abi:If,functionName:\"executeBatch\",args:[x.calls.map(B=>{var z,G;return{target:B.to,value:Zn((z=B.value)!==null&&z!==void 0?z:\"0x0\"),data:(G=B.data)!==null&&G!==void 0?G:\"0x\"}})]}),C=[...w,{data:I,to:n,value:\"0x0\"}],M=await a({method:\"wallet_sendCalls\",params:[Object.assign(Object.assign({},x),{calls:C,from:t})]});return o.method===\"eth_sendTransaction\"?JQ({client:r,id:M}):M}var ZLe=$(()=>{f();Rf();NN();gn();$Q();lR()});var FU,QLe=$(()=>{f();IN();gn();Rf();XBe();cLe();Ahe();a1();The();zQ();ny();NN();lLe();Che();RN();qQ();ALe();$Q();jLe();Phe();KLe();ZLe();FU=class{constructor(t){var n,r,o,i;this.communicator=t.communicator,this.callback=t.callback,this.keyManager=new KQ;let{account:a,chains:c}=Bt.getState();this.accounts=(n=a.accounts)!==null&&n!==void 0?n:[],this.chain=(r=a.chain)!==null&&r!==void 0?r:{id:(i=(o=t.metadata.appChainIds)===null||o===void 0?void 0:o[0])!==null&&i!==void 0?i:1},c&&_he(c)}async handshake(t){var n,r,o;let i=am.get(t);qBe({method:t.method,correlationId:i});try{await((r=(n=this.communicator).waitForPopupLoaded)===null||r===void 0?void 0:r.call(n));let a=await this.createRequestMessage({handshake:{method:t.method,params:(o=t.params)!==null&&o!==void 0?o:[]}},i),c=await this.communicator.postRequestAndWaitForResponse(a);if(\"failure\"in c.content)throw c.content.failure;let l=await VQ(\"public\",c.sender);await this.keyManager.setPeerPublicKey(l);let d=await this.decryptResponseMessage(c);this.handleResponse(t,d),YBe({method:t.method,correlationId:i})}catch(a){throw KBe({method:t.method,correlationId:i,errorMessage:ME(a)}),a}}async request(t){let n=am.get(t);ZBe({method:t.method,correlationId:n});try{let r=await this._request(t);return JBe({method:t.method,correlationId:n}),r}catch(r){throw QBe({method:t.method,correlationId:n,errorMessage:ME(r)}),r}}async _request(t){var n,r,o,i,a,c,l,d,m,h,g,y,w,x;if(this.accounts.length===0)switch(t.method){case\"eth_requestAccounts\":return await((r=(n=this.communicator).waitForPopupLoaded)===null||r===void 0?void 0:r.call(n)),await QQ(),await this.request({method:\"wallet_connect\",params:[{version:\"1\",capabilities:Object.assign({},(i=(o=Bt.subAccountsConfig.get())===null||o===void 0?void 0:o.capabilities)!==null&&i!==void 0?i:{})}]}),this.accounts;case\"wallet_switchEthereumChain\":{Ohe(t.params),this.chain.id=Number(t.params[0].chainId);return}case\"wallet_connect\":{await((c=(a=this.communicator).waitForPopupLoaded)===null||c===void 0?void 0:c.call(a)),await QQ();let I={};DLe(t,\"addSubAccount\")&&(I=(d=(l=Bt.subAccountsConfig.get())===null||l===void 0?void 0:l.capabilities)!==null&&d!==void 0?d:{});let C=PN(t,I);return this.sendRequestToPopup(C)}case\"wallet_sendCalls\":case\"wallet_sign\":return this.sendRequestToPopup(t);default:throw It.provider.unauthorized()}if(this.shouldRequestUseSubAccountSigner(t)){let I=am.get(t);$Be({method:t.method,correlationId:I});try{let C=await this.sendRequestToSubAccountSigner(t);return eLe({method:t.method,correlationId:I}),C}catch(C){throw tLe({method:t.method,correlationId:I,errorMessage:ME(C)}),C}}switch(t.method){case\"eth_requestAccounts\":case\"eth_accounts\":{let I=Bt.subAccounts.get(),C=Bt.subAccountsConfig.get();return I?.address&&(this.accounts=C?.enableAutoSubAccounts?BU(this.accounts,I.address):LU(this.accounts,I.address)),(m=this.callback)===null||m===void 0||m.call(this,\"connect\",{chainId:Pe(this.chain.id)}),this.accounts}case\"eth_coinbase\":return this.accounts[0];case\"net_version\":return this.chain.id;case\"eth_chainId\":return Pe(this.chain.id);case\"wallet_getCapabilities\":return this.handleGetCapabilitiesRequest(t);case\"wallet_switchEthereumChain\":return this.handleSwitchChainRequest(t);case\"eth_ecRecover\":case\"personal_sign\":case\"wallet_sign\":case\"personal_ecRecover\":case\"eth_signTransaction\":case\"eth_sendTransaction\":case\"eth_signTypedData_v1\":case\"eth_signTypedData_v3\":case\"eth_signTypedData_v4\":case\"eth_signTypedData\":case\"wallet_addEthereumChain\":case\"wallet_watchAsset\":case\"wallet_sendCalls\":case\"wallet_showCallsStatus\":case\"wallet_grantPermissions\":return this.sendRequestToPopup(t);case\"wallet_connect\":{let I=await BLe();if(I)return I;await((g=(h=this.communicator).waitForPopupLoaded)===null||g===void 0?void 0:g.call(h)),await QQ();let C=Bt.subAccountsConfig.get(),M=PN(t,(y=C?.capabilities)!==null&&y!==void 0?y:{});return(w=this.callback)===null||w===void 0||w.call(this,\"connect\",{chainId:Pe(this.chain.id)}),this.sendRequestToPopup(M)}case\"wallet_getSubAccounts\":{let I=Bt.subAccounts.get();if(I?.address)return{subAccounts:[I]};if(!this.chain.rpcUrl)throw It.rpc.internal(\"No RPC URL set for chain\");let C=await uT(t,this.chain.rpcUrl);if(Aw(C.subAccounts,\"subAccounts\"),C.subAccounts.length>0){DU(C.subAccounts[0]);let M=C.subAccounts[0];Bt.subAccounts.set({address:M.address,factory:M.factory,factoryData:M.factoryData})}return C}case\"wallet_addSubAccount\":return this.addSubAccount(t);case\"coinbase_fetchPermissions\":{TLe(t);let I=CLe(t),C=await uT(I,IQ),M=Lo((x=I.params)===null||x===void 0?void 0:x[0].chainId);return Bt.spendPermissions.set(C.permissions.map(B=>Object.assign(Object.assign({},B),{chainId:M}))),C}default:if(!this.chain.rpcUrl)throw It.rpc.internal(\"No RPC URL set for chain\");return uT(t,this.chain.rpcUrl)}}async sendRequestToPopup(t){var n,r;await((r=(n=this.communicator).waitForPopupLoaded)===null||r===void 0?void 0:r.call(n));let o=await this.sendEncryptedRequest(t),i=await this.decryptResponseMessage(o);return this.handleResponse(t,i)}async handleResponse(t,n){var r,o,i,a,c;let l=n.result;if(\"error\"in l)throw l.error;switch(t.method){case\"eth_requestAccounts\":{let d=l.value;this.accounts=d,Bt.account.set({accounts:d,chain:this.chain}),(r=this.callback)===null||r===void 0||r.call(this,\"accountsChanged\",d);break}case\"wallet_connect\":{let d=l.value,m=d.accounts.map(C=>C.address);this.accounts=m,Bt.account.set({accounts:m});let h=d.accounts.at(0),g=h?.capabilities;if(g?.subAccounts){let C=g?.subAccounts;Aw(C,\"subAccounts\"),DU(C[0]),Bt.subAccounts.set({address:C[0].address,factory:C[0].factory,factoryData:C[0].factoryData})}let y=[this.accounts[0]],w=Bt.subAccounts.get(),x=Bt.subAccountsConfig.get();w?.address&&(this.accounts=x?.enableAutoSubAccounts?BU(this.accounts,w.address):LU(this.accounts,w.address));let I=(i=(o=d?.accounts)===null||o===void 0?void 0:o[0].capabilities)===null||i===void 0?void 0:i.spendPermissions;I&&\"permissions\"in I&&Bt.spendPermissions.set(I?.permissions),(a=this.callback)===null||a===void 0||a.call(this,\"accountsChanged\",y);break}case\"wallet_addSubAccount\":{DU(l.value);let d=l.value;Bt.subAccounts.set(d);let m=Bt.subAccountsConfig.get();this.accounts=m?.enableAutoSubAccounts?BU(this.accounts,d.address):LU(this.accounts,d.address),(c=this.callback)===null||c===void 0||c.call(this,\"accountsChanged\",this.accounts);break}default:break}return l.value}async cleanup(){var t,n;let r=Bt.config.get().metadata;await this.keyManager.clear(),Bt.account.clear(),Bt.subAccounts.clear(),Bt.spendPermissions.clear(),Bt.chains.clear(),this.accounts=[],this.chain={id:(n=(t=r?.appChainIds)===null||t===void 0?void 0:t[0])!==null&&n!==void 0?n:1}}async handleSwitchChainRequest(t){Ohe(t.params);let n=sR(t.params[0].chainId);if(this.updateChain(n))return null;let o=await this.sendRequestToPopup(t);return o===null&&this.updateChain(n),o}async handleGetCapabilitiesRequest(t){_Le(t.params);let n=t.params[0],r=t.params[1];if(!this.accounts.some(c=>Dd(c,n)))throw It.provider.unauthorized(\"no active account found when getting capabilities\");let o=Bt.getState().account.capabilities;if(!o)return{};if(!r||r.length===0)return o;let i=new Set(r.map(c=>Lo(c)));return Object.fromEntries(Object.entries(o).filter(([c])=>{try{let l=Lo(c);return i.has(l)}catch{return!1}}))}async sendEncryptedRequest(t){let n=await this.keyManager.getSharedSecret();if(!n)throw It.provider.unauthorized(\"No shared secret found when encrypting request\");let r=await hLe({action:t,chainId:this.chain.id},n),o=am.get(t),i=await this.createRequestMessage({encrypted:r},o);return this.communicator.postRequestAndWaitForResponse(i)}async createRequestMessage(t,n){let r=await WQ(\"public\",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),correlationId:n,sender:r,content:t,timestamp:new Date}}async decryptResponseMessage(t){var n,r,o;let i=t.content;if(\"failure\"in i)throw i.failure;let a=await this.keyManager.getSharedSecret();if(!a)throw It.provider.unauthorized(\"Invalid session: no shared secret found when decrypting response\");let c=await mLe(i.encrypted,a),l=(n=c.data)===null||n===void 0?void 0:n.chains;if(l){let m=(r=c.data)===null||r===void 0?void 0:r.nativeCurrencies,h=Object.entries(l).map(([g,y])=>{let w=m?.[Number(g)];return Object.assign({id:Number(g),rpcUrl:y},w?{nativeCurrency:w}:{})});Bt.chains.set(h),this.updateChain(this.chain.id,h),_he(h)}let d=(o=c.data)===null||o===void 0?void 0:o.capabilities;return d&&Bt.account.set({capabilities:d}),c}updateChain(t,n){var r;let o=Bt.getState(),i=n??o.chains,a=i?.find(c=>c.id===t);return a?(a!==this.chain&&(this.chain=a,Bt.account.set({chain:a}),(r=this.callback)===null||r===void 0||r.call(this,\"chainChanged\",OE(a.id))),!0):!1}async addSubAccount(t){var n,r,o,i;let c=Bt.getState().subAccount,l=Bt.subAccountsConfig.get();if(c?.address)return this.accounts=l?.enableAutoSubAccounts?BU(this.accounts,c.address):LU(this.accounts,c.address),(n=this.callback)===null||n===void 0||n.call(this,\"accountsChanged\",this.accounts),c;if(await((o=(r=this.communicator).waitForPopupLoaded)===null||o===void 0?void 0:o.call(r)),Array.isArray(t.params)&&t.params.length>0&&t.params[0].account&&t.params[0].account.type===\"create\"){let m;if(t.params[0].account.keys&&t.params[0].account.keys.length>0)m=t.params[0].account.keys;else{let h=(i=Bt.subAccountsConfig.get())!==null&&i!==void 0?i:{},{account:g}=h.toOwnerAccount?await h.toOwnerAccount():await cR();if(!g)throw It.provider.unauthorized(\"could not get subaccount owner account when adding sub account\");m=[{type:g.address?\"address\":\"webauthn-p256\",publicKey:g.address||g.publicKey}]}t.params[0].account.keys=m}let d=await this.sendRequestToPopup(t);return DU(d),d}shouldRequestUseSubAccountSigner(t){let n=khe(t),r=Bt.subAccounts.get();return n?n.toLowerCase()===r?.address.toLowerCase():!1}async sendRequestToSubAccountSigner(t){var n;let r=Bt.subAccounts.get(),o=Bt.subAccountsConfig.get(),i=Bt.config.get();Zl(r?.address,It.provider.unauthorized(\"no active sub account when sending request to sub account signer\"));let a=o?.toOwnerAccount?await o.toOwnerAccount():await cR();Zl(a?.account,It.provider.unauthorized(\"no active sub account owner when sending request to sub account signer\")),khe(t)===void 0&&(t=SLe(t,r.address));let l=jQ(this.chain.id);Zl(l,It.rpc.internal(`client not found for chainId ${this.chain.id} when sending request to sub account signer`));let d=this.accounts.find(w=>w.toLowerCase()!==r.address.toLowerCase());Zl(d,It.provider.unauthorized(\"no global account found when sending request to sub account signer\"));let m=MLe({attribution:(n=i.preference)===null||n===void 0?void 0:n.attribution,dappOrigin:window.location.origin}),h=a.account.type===\"local\"?a.account.address:a.account.publicKey,g=await nJ({address:r.address,factory:r.factory,factoryData:r.factoryData,publicKey:h,client:l});if(g===-1){let w=am.get(t);nLe({method:t.method,correlationId:w});try{g=await qLe({ownerAccount:a.account,globalAccountRequest:this.sendRequestToPopup.bind(this)}),rLe({method:t.method,correlationId:w})}catch(x){return oLe({method:t.method,correlationId:w,errorMessage:ME(x)}),It.provider.unauthorized(\"failed to add sub account owner when sending request to sub account signer\")}}let{request:y}=await zLe({address:r.address,owner:a.account,client:l,factory:r.factory,factoryData:r.factoryData,parentAddress:d,attribution:m?{suffix:m}:void 0,ownerIndex:g});try{return await y(t)}catch(w){let x;if(wQ(w))x=JSON.parse(w.details);else if(lhe(w))x=w;else throw w;if(!(lhe(x)&&x.data)||!x.data)throw w;let I=am.get(t);iLe({method:t.method,correlationId:I});try{let C=await YLe({errorData:x.data,globalAccountAddress:d,subAccountAddress:r.address,client:l,request:t,subAccountRequest:y,globalAccountRequest:this.request.bind(this)});return aLe({method:t.method,correlationId:I}),C}catch(C){throw console.error(C),sLe({method:t.method,correlationId:I,errorMessage:ME(C)}),w}}}}});var JLe,XLe,$Le,eUe,tUe,nUe,Mhe,rUe,Dhe=$(()=>{f();lT();JLe=({method:e,correlationId:t})=>{kr(\"walletlink_signer.handshake.started\",{action:hr.unknown,componentType:pr.unknown,method:e,correlationId:t},mr.high)},XLe=({method:e,correlationId:t,errorMessage:n})=>{kr(\"walletlink_signer.handshake.error\",{action:hr.error,componentType:pr.unknown,method:e,correlationId:t,errorMessage:n},mr.high)},$Le=({method:e,correlationId:t})=>{kr(\"walletlink_signer.handshake.completed\",{action:hr.unknown,componentType:pr.unknown,method:e,correlationId:t},mr.high)},eUe=({method:e,correlationId:t})=>{kr(\"walletlink_signer.request.started\",{action:hr.unknown,componentType:pr.unknown,method:e,correlationId:t},mr.high)},tUe=({method:e,correlationId:t,errorMessage:n})=>{kr(\"walletlink_signer.request.error\",{action:hr.error,componentType:pr.unknown,method:e,correlationId:t,errorMessage:n},mr.high)},nUe=({method:e,correlationId:t})=>{kr(\"walletlink_signer.request.completed\",{action:hr.unknown,componentType:pr.unknown,method:e,correlationId:t},mr.high)},Mhe=()=>{kr(\"walletlink_signer.walletlink_connection.connection_failed\",{action:hr.measurement,componentType:pr.unknown},mr.high)},rUe=()=>{kr(\"walletlink_signer.walletlink_connection.fetch_unseen_events_failed\",{action:hr.measurement,componentType:pr.unknown},mr.high)}});var Lhe=me(Fd=>{\"use strict\";f();Object.defineProperty(Fd,\"__esModule\",{value:!0});Fd.output=Fd.exists=Fd.hash=Fd.bytes=Fd.bool=Fd.number=Fd.isBytes=void 0;function rJ(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}Fd.number=rJ;function oUe(e){if(typeof e!=\"boolean\")throw new Error(`boolean expected, not ${e}`)}Fd.bool=oUe;function iUe(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}Fd.isBytes=iUe;function Bhe(e,...t){if(!iUe(e))throw new Error(\"Uint8Array expected\");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}Fd.bytes=Bhe;function aUe(e){if(typeof e!=\"function\"||typeof e.create!=\"function\")throw new Error(\"Hash should be wrapped by utils.wrapConstructor\");rJ(e.outputLen),rJ(e.blockLen)}Fd.hash=aUe;function sUe(e,t=!0){if(e.destroyed)throw new Error(\"Hash instance has been destroyed\");if(t&&e.finished)throw new Error(\"Hash#digest() has already been called\")}Fd.exists=sUe;function cUe(e,t){Bhe(e);let n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}Fd.output=cUe;var FSt={number:rJ,bool:oUe,bytes:Bhe,hash:aUe,exists:sUe,output:cUe};Fd.default=FSt});var kUe=me($n=>{\"use strict\";f();Object.defineProperty($n,\"__esModule\",{value:!0});$n.add5L=$n.add5H=$n.add4H=$n.add4L=$n.add3H=$n.add3L=$n.add=$n.rotlBL=$n.rotlBH=$n.rotlSL=$n.rotlSH=$n.rotr32L=$n.rotr32H=$n.rotrBL=$n.rotrBH=$n.rotrSL=$n.rotrSH=$n.shrSL=$n.shrSH=$n.toBig=$n.split=$n.fromBig=void 0;var oJ=BigInt(2**32-1),Uhe=BigInt(32);function Fhe(e,t=!1){return t?{h:Number(e&oJ),l:Number(e>>Uhe&oJ)}:{h:Number(e>>Uhe&oJ)|0,l:Number(e&oJ)|0}}$n.fromBig=Fhe;function uUe(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:i,l:a}=Fhe(e[o],t);[n[o],r[o]]=[i,a]}return[n,r]}$n.split=uUe;var lUe=(e,t)=>BigInt(e>>>0)<<Uhe|BigInt(t>>>0);$n.toBig=lUe;var dUe=(e,t,n)=>e>>>n;$n.shrSH=dUe;var fUe=(e,t,n)=>e<<32-n|t>>>n;$n.shrSL=fUe;var pUe=(e,t,n)=>e>>>n|t<<32-n;$n.rotrSH=pUe;var hUe=(e,t,n)=>e<<32-n|t>>>n;$n.rotrSL=hUe;var mUe=(e,t,n)=>e<<64-n|t>>>n-32;$n.rotrBH=mUe;var gUe=(e,t,n)=>e>>>n-32|t<<64-n;$n.rotrBL=gUe;var yUe=(e,t)=>t;$n.rotr32H=yUe;var bUe=(e,t)=>e;$n.rotr32L=bUe;var vUe=(e,t,n)=>e<<n|t>>>32-n;$n.rotlSH=vUe;var wUe=(e,t,n)=>t<<n|e>>>32-n;$n.rotlSL=wUe;var xUe=(e,t,n)=>t<<n-32|e>>>64-n;$n.rotlBH=xUe;var EUe=(e,t,n)=>e<<n-32|t>>>64-n;$n.rotlBL=EUe;function AUe(e,t,n,r){let o=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:o|0}}$n.add=AUe;var SUe=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);$n.add3L=SUe;var _Ue=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;$n.add3H=_Ue;var TUe=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);$n.add4L=TUe;var CUe=(e,t,n,r,o)=>t+n+r+o+(e/2**32|0)|0;$n.add4H=CUe;var RUe=(e,t,n,r,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(o>>>0);$n.add5L=RUe;var IUe=(e,t,n,r,o,i)=>t+n+r+o+i+(e/2**32|0)|0;$n.add5H=IUe;var HSt={fromBig:Fhe,split:uUe,toBig:lUe,shrSH:dUe,shrSL:fUe,rotrSH:pUe,rotrSL:hUe,rotrBH:mUe,rotrBL:gUe,rotr32H:yUe,rotr32L:bUe,rotlSH:vUe,rotlSL:wUe,rotlBH:xUe,rotlBL:EUe,add:AUe,add3L:SUe,add3H:_Ue,add4L:TUe,add4H:CUe,add5H:IUe,add5L:RUe};$n.default=HSt});var OUe=me(iJ=>{\"use strict\";f();Object.defineProperty(iJ,\"__esModule\",{value:!0});iJ.crypto=void 0;iJ.crypto=typeof globalThis==\"object\"&&\"crypto\"in globalThis?globalThis.crypto:void 0});var MUe=me(Ln=>{\"use strict\";f();Object.defineProperty(Ln,\"__esModule\",{value:!0});Ln.randomBytes=Ln.wrapXOFConstructorWithOpts=Ln.wrapConstructorWithOpts=Ln.wrapConstructor=Ln.checkOpts=Ln.Hash=Ln.concatBytes=Ln.toBytes=Ln.utf8ToBytes=Ln.asyncLoop=Ln.nextTick=Ln.hexToBytes=Ln.bytesToHex=Ln.byteSwap32=Ln.byteSwapIfBE=Ln.byteSwap=Ln.isLE=Ln.rotl=Ln.rotr=Ln.createView=Ln.u32=Ln.u8=Ln.isBytes=void 0;var Hhe=OUe(),jhe=Lhe();function zSt(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}Ln.isBytes=zSt;var jSt=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);Ln.u8=jSt;var WSt=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));Ln.u32=WSt;var VSt=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);Ln.createView=VSt;var GSt=(e,t)=>e<<32-t|e>>>t;Ln.rotr=GSt;var qSt=(e,t)=>e<<t|e>>>32-t>>>0;Ln.rotl=qSt;Ln.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;var KSt=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;Ln.byteSwap=KSt;Ln.byteSwapIfBE=Ln.isLE?e=>e:e=>(0,Ln.byteSwap)(e);function YSt(e){for(let t=0;t<e.length;t++)e[t]=(0,Ln.byteSwap)(e[t])}Ln.byteSwap32=YSt;var ZSt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));function QSt(e){(0,jhe.bytes)(e);let t=\"\";for(let n=0;n<e.length;n++)t+=ZSt[e[n]];return t}Ln.bytesToHex=QSt;var DE={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function NUe(e){if(e>=DE._0&&e<=DE._9)return e-DE._0;if(e>=DE._A&&e<=DE._F)return e-(DE._A-10);if(e>=DE._a&&e<=DE._f)return e-(DE._a-10)}function JSt(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);let t=e.length,n=t/2;if(t%2)throw new Error(\"padded hex string expected, got unpadded hex of length \"+t);let r=new Uint8Array(n);for(let o=0,i=0;o<n;o++,i+=2){let a=NUe(e.charCodeAt(i)),c=NUe(e.charCodeAt(i+1));if(a===void 0||c===void 0){let l=e[i]+e[i+1];throw new Error(\\'hex string expected, got non-hex character \"\\'+l+\\'\" at index \\'+i)}r[o]=a*16+c}return r}Ln.hexToBytes=JSt;var XSt=async()=>{};Ln.nextTick=XSt;async function $St(e,t,n){let r=Date.now();for(let o=0;o<e;o++){n(o);let i=Date.now()-r;i>=0&&i<t||(await(0,Ln.nextTick)(),r+=i)}}Ln.asyncLoop=$St;function PUe(e){if(typeof e!=\"string\")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}Ln.utf8ToBytes=PUe;function aJ(e){return typeof e==\"string\"&&(e=PUe(e)),(0,jhe.bytes)(e),e}Ln.toBytes=aJ;function e_t(...e){let t=0;for(let r=0;r<e.length;r++){let o=e[r];(0,jhe.bytes)(o),t+=o.length}let n=new Uint8Array(t);for(let r=0,o=0;r<e.length;r++){let i=e[r];n.set(i,o),o+=i.length}return n}Ln.concatBytes=e_t;var zhe=class{clone(){return this._cloneInto()}};Ln.Hash=zhe;var t_t={}.toString;function n_t(e,t){if(t!==void 0&&t_t.call(t)!==\"[object Object]\")throw new Error(\"Options should be object or undefined\");return Object.assign(e,t)}Ln.checkOpts=n_t;function r_t(e){let t=r=>e().update(aJ(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}Ln.wrapConstructor=r_t;function o_t(e){let t=(r,o)=>e(o).update(aJ(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}Ln.wrapConstructorWithOpts=o_t;function i_t(e){let t=(r,o)=>e(o).update(aJ(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}Ln.wrapXOFConstructorWithOpts=i_t;function a_t(e=32){if(Hhe.crypto&&typeof Hhe.crypto.getRandomValues==\"function\")return Hhe.crypto.getRandomValues(new Uint8Array(e));throw new Error(\"crypto.getRandomValues must be defined\")}Ln.randomBytes=a_t});var jUe=me(Ua=>{\"use strict\";f();Object.defineProperty(Ua,\"__esModule\",{value:!0});Ua.shake256=Ua.shake128=Ua.keccak_512=Ua.keccak_384=Ua.keccak_256=Ua.keccak_224=Ua.sha3_512=Ua.sha3_384=Ua.sha3_256=Ua.sha3_224=Ua.Keccak=Ua.keccakP=void 0;var MN=Lhe(),zU=kUe(),BE=MUe(),LUe=[],UUe=[],FUe=[],s_t=BigInt(0),HU=BigInt(1),c_t=BigInt(2),u_t=BigInt(7),l_t=BigInt(256),d_t=BigInt(113);for(let e=0,t=HU,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],LUe.push(2*(5*r+n)),UUe.push((e+1)*(e+2)/2%64);let o=s_t;for(let i=0;i<7;i++)t=(t<<HU^(t>>u_t)*d_t)%l_t,t&c_t&&(o^=HU<<(HU<<BigInt(i))-HU);FUe.push(o)}var[f_t,p_t]=(0,zU.split)(FUe,!0),DUe=(e,t,n)=>n>32?(0,zU.rotlBH)(e,t,n):(0,zU.rotlSH)(e,t,n),BUe=(e,t,n)=>n>32?(0,zU.rotlBL)(e,t,n):(0,zU.rotlSL)(e,t,n);function HUe(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let a=0;a<10;a++)n[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(let a=0;a<10;a+=2){let c=(a+8)%10,l=(a+2)%10,d=n[l],m=n[l+1],h=DUe(d,m,1)^n[c],g=BUe(d,m,1)^n[c+1];for(let y=0;y<50;y+=10)e[a+y]^=h,e[a+y+1]^=g}let o=e[2],i=e[3];for(let a=0;a<24;a++){let c=UUe[a],l=DUe(o,i,c),d=BUe(o,i,c),m=LUe[a];o=e[m],i=e[m+1],e[m]=l,e[m+1]=d}for(let a=0;a<50;a+=10){for(let c=0;c<10;c++)n[c]=e[a+c];for(let c=0;c<10;c++)e[a+c]^=~n[(c+2)%10]&n[(c+4)%10]}e[0]^=f_t[r],e[1]^=p_t[r]}n.fill(0)}Ua.keccakP=HUe;var jU=class e extends BE.Hash{constructor(t,n,r,o=!1,i=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=o,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,MN.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error(\"Sha3 supports only keccak-f1600 function\");this.state=new Uint8Array(200),this.state32=(0,BE.u32)(this.state)}keccak(){BE.isLE||(0,BE.byteSwap32)(this.state32),HUe(this.state32,this.rounds),BE.isLE||(0,BE.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(t){(0,MN.exists)(this);let{blockLen:n,state:r}=this;t=(0,BE.toBytes)(t);let o=t.length;for(let i=0;i<o;){let a=Math.min(n-this.pos,o-i);for(let c=0;c<a;c++)r[this.pos++]^=t[i++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:t,suffix:n,pos:r,blockLen:o}=this;t[r]^=n,(n&128)!==0&&r===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){(0,MN.exists)(this,!1),(0,MN.bytes)(t),this.finish();let n=this.state,{blockLen:r}=this;for(let o=0,i=t.length;o<i;){this.posOut>=r&&this.keccak();let a=Math.min(r-this.posOut,i-o);t.set(n.subarray(this.posOut,this.posOut+a),o),this.posOut+=a,o+=a}return t}xofInto(t){if(!this.enableXOF)throw new Error(\"XOF is not possible for this instance\");return this.writeInto(t)}xof(t){return(0,MN.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,MN.output)(t,this),this.finished)throw new Error(\"digest() was already called\");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:n,suffix:r,outputLen:o,rounds:i,enableXOF:a}=this;return t||(t=new e(n,r,o,a,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=o,t.enableXOF=a,t.destroyed=this.destroyed,t}};Ua.Keccak=jU;var fT=(e,t,n)=>(0,BE.wrapConstructor)(()=>new jU(t,e,n));Ua.sha3_224=fT(6,144,224/8);Ua.sha3_256=fT(6,136,256/8);Ua.sha3_384=fT(6,104,384/8);Ua.sha3_512=fT(6,72,512/8);Ua.keccak_224=fT(1,144,224/8);Ua.keccak_256=fT(1,136,256/8);Ua.keccak_384=fT(1,104,384/8);Ua.keccak_512=fT(1,72,512/8);var zUe=(e,t,n)=>(0,BE.wrapXOFConstructorWithOpts)((r={})=>new jU(t,e,r.dkLen===void 0?n:r.dkLen,!0));Ua.shake128=zUe(31,168,128/8);Ua.shake256=zUe(31,136,256/8)});var Whe=me((kXn,ZUe)=>{f();var{keccak_256:h_t}=jUe();function WUe(e){return globalThis.Buffer.allocUnsafe(e).fill(0)}function m_t(e){return`0x${e.toString(16)}`}function g_t(e){let t=m_t(e);return new globalThis.Buffer(qUe(t.slice(2)),\"hex\")}function y_t(e){return e.toString(2).length}function VUe(e,t){let n=e.toString(16);n.length%2!==0&&(n=\"0\"+n);let r=n.match(/.{1,2}/g).map(o=>parseInt(o,16));for(;r.length<t;)r.unshift(0);return globalThis.Buffer.from(r)}function b_t(e,t){let n=e<0n,r;if(n){let o=(1n<<BigInt(t))-1n;r=(~e&o)+1n}else r=e;return r&=(1n<<BigInt(t))-1n,r}function GUe(e,t,n){let r=WUe(t);return e=sJ(e),n?e.length<t?(e.copy(r),r):e.slice(0,t):e.length<t?(e.copy(r,t-e.length),r):e.slice(-t)}function v_t(e,t){return GUe(e,t,!0)}function sJ(e){if(!globalThis.Buffer.isBuffer(e))if(Array.isArray(e))e=globalThis.Buffer.from(e);else if(typeof e==\"string\")KUe(e)?e=globalThis.Buffer.from(qUe(YUe(e)),\"hex\"):e=globalThis.Buffer.from(e);else if(typeof e==\"number\")e=g_t(e);else if(e==null)e=globalThis.Buffer.allocUnsafe(0);else if(typeof e==\"bigint\")e=VUe(e);else if(e.toArray)e=globalThis.Buffer.from(e.toArray());else throw new Error(\"invalid type\");return e}function w_t(e){return e=sJ(e),\"0x\"+e.toString(\"hex\")}function x_t(e,t){if(e=sJ(e),t||(t=256),t!==256)throw new Error(\"unsupported\");return globalThis.Buffer.from(h_t(new Uint8Array(e)))}function qUe(e){return e.length%2?\"0\"+e:e}function KUe(e){return typeof e==\"string\"&&e.match(/^0x[0-9A-Fa-f]*$/)}function YUe(e){return typeof e==\"string\"&&e.startsWith(\"0x\")?e.slice(2):e}ZUe.exports={zeros:WUe,setLength:GUe,setLengthRight:v_t,isHexString:KUe,stripHexPrefix:YUe,toBuffer:sJ,bufferToHex:w_t,keccak:x_t,bitLengthFromBigInt:y_t,bufferBEFromBigInt:VUe,twosFromBigInt:b_t}});var tFe=me((NXn,eFe)=>{f();var Qp=Whe();function JUe(e){return e.startsWith(\"int[\")?\"int256\"+e.slice(3):e===\"int\"?\"int256\":e.startsWith(\"uint[\")?\"uint256\"+e.slice(4):e===\"uint\"?\"uint256\":e.startsWith(\"fixed[\")?\"fixed128x128\"+e.slice(5):e===\"fixed\"?\"fixed128x128\":e.startsWith(\"ufixed[\")?\"ufixed128x128\"+e.slice(6):e===\"ufixed\"?\"ufixed128x128\":e}function DN(e){return Number.parseInt(/^\\\\D+(\\\\d+)$/.exec(e)[1],10)}function QUe(e){var t=/^\\\\D+(\\\\d+)x(\\\\d+)$/.exec(e);return[Number.parseInt(t[1],10),Number.parseInt(t[2],10)]}function XUe(e){var t=e.match(/(.*)\\\\[(.*?)\\\\]$/);return t?t[2]===\"\"?\"dynamic\":Number.parseInt(t[2],10):null}function dR(e){var t=typeof e;if(t===\"string\"||t===\"number\")return BigInt(e);if(t===\"bigint\")return e;throw new Error(\"Argument is not a number\")}function Sw(e,t){var n,r,o,i;if(e===\"address\")return Sw(\"uint160\",dR(t));if(e===\"bool\")return Sw(\"uint8\",t?1:0);if(e===\"string\")return Sw(\"bytes\",new globalThis.Buffer(t,\"utf8\"));if(A_t(e)){if(typeof t.length>\"u\")throw new Error(\"Not an array?\");if(n=XUe(e),n!==\"dynamic\"&&n!==0&&t.length>n)throw new Error(\"Elements exceed array size: \"+n);o=[],e=e.slice(0,e.lastIndexOf(\"[\")),typeof t==\"string\"&&(t=JSON.parse(t));for(i in t)o.push(Sw(e,t[i]));if(n===\"dynamic\"){var a=Sw(\"uint256\",t.length);o.unshift(a)}return globalThis.Buffer.concat(o)}else{if(e===\"bytes\")return t=new globalThis.Buffer(t),o=globalThis.Buffer.concat([Sw(\"uint256\",t.length),t]),t.length%32!==0&&(o=globalThis.Buffer.concat([o,Qp.zeros(32-t.length%32)])),o;if(e.startsWith(\"bytes\")){if(n=DN(e),n<1||n>32)throw new Error(\"Invalid bytes<N> width: \"+n);return Qp.setLengthRight(t,32)}else if(e.startsWith(\"uint\")){if(n=DN(e),n%8||n<8||n>256)throw new Error(\"Invalid uint<N> width: \"+n);r=dR(t);let c=Qp.bitLengthFromBigInt(r);if(c>n)throw new Error(\"Supplied uint exceeds width: \"+n+\" vs \"+c);if(r<0)throw new Error(\"Supplied uint is negative\");return Qp.bufferBEFromBigInt(r,32)}else if(e.startsWith(\"int\")){if(n=DN(e),n%8||n<8||n>256)throw new Error(\"Invalid int<N> width: \"+n);r=dR(t);let c=Qp.bitLengthFromBigInt(r);if(c>n)throw new Error(\"Supplied int exceeds width: \"+n+\" vs \"+c);let l=Qp.twosFromBigInt(r,256);return Qp.bufferBEFromBigInt(l,32)}else if(e.startsWith(\"ufixed\")){if(n=QUe(e),r=dR(t),r<0)throw new Error(\"Supplied ufixed is negative\");return Sw(\"uint256\",r*BigInt(2)**BigInt(n[1]))}else if(e.startsWith(\"fixed\"))return n=QUe(e),Sw(\"int256\",dR(t)*BigInt(2)**BigInt(n[1]))}throw new Error(\"Unsupported or invalid type: \"+e)}function E_t(e){return e===\"string\"||e===\"bytes\"||XUe(e)===\"dynamic\"}function A_t(e){return e.lastIndexOf(\"]\")===e.length-1}function S_t(e,t){var n=[],r=[],o=32*e.length;for(var i in e){var a=JUe(e[i]),c=t[i],l=Sw(a,c);E_t(a)?(n.push(Sw(\"uint256\",o)),r.push(l),o+=l.length):n.push(l)}return globalThis.Buffer.concat(n.concat(r))}function $Ue(e,t){if(e.length!==t.length)throw new Error(\"Number of types are not matching the values\");for(var n,r,o=[],i=0;i<e.length;i++){var a=JUe(e[i]),c=t[i];if(a===\"bytes\")o.push(c);else if(a===\"string\")o.push(new globalThis.Buffer(c,\"utf8\"));else if(a===\"bool\")o.push(new globalThis.Buffer(c?\"01\":\"00\",\"hex\"));else if(a===\"address\")o.push(Qp.setLength(c,20));else if(a.startsWith(\"bytes\")){if(n=DN(a),n<1||n>32)throw new Error(\"Invalid bytes<N> width: \"+n);o.push(Qp.setLengthRight(c,n))}else if(a.startsWith(\"uint\")){if(n=DN(a),n%8||n<8||n>256)throw new Error(\"Invalid uint<N> width: \"+n);r=dR(c);let l=Qp.bitLengthFromBigInt(r);if(l>n)throw new Error(\"Supplied uint exceeds width: \"+n+\" vs \"+l);o.push(Qp.bufferBEFromBigInt(r,n/8))}else if(a.startsWith(\"int\")){if(n=DN(a),n%8||n<8||n>256)throw new Error(\"Invalid int<N> width: \"+n);r=dR(c);let l=Qp.bitLengthFromBigInt(r);if(l>n)throw new Error(\"Supplied int exceeds width: \"+n+\" vs \"+l);let d=Qp.twosFromBigInt(r,n);o.push(Qp.bufferBEFromBigInt(d,n/8))}else throw new Error(\"Unsupported or invalid type: \"+a)}return globalThis.Buffer.concat(o)}function __t(e,t){return Qp.keccak($Ue(e,t))}eFe.exports={rawEncode:S_t,solidityPack:$Ue,soliditySHA3:__t}});var oFe=me((MXn,rFe)=>{f();var s1=Whe(),WU=tFe(),nFe={type:\"object\",properties:{types:{type:\"object\",additionalProperties:{type:\"array\",items:{type:\"object\",properties:{name:{type:\"string\"},type:{type:\"string\"}},required:[\"name\",\"type\"]}}},primaryType:{type:\"string\"},domain:{type:\"object\"},message:{type:\"object\"}},required:[\"types\",\"primaryType\",\"domain\",\"message\"]},Vhe={encodeData(e,t,n,r=!0){let o=[\"bytes32\"],i=[this.hashType(e,n)];if(r){let a=(c,l,d)=>{if(n[l]!==void 0)return[\"bytes32\",d==null?\"0x0000000000000000000000000000000000000000000000000000000000000000\":s1.keccak(this.encodeData(l,d,n,r))];if(d===void 0)throw new Error(`missing value for field ${c} of type ${l}`);if(l===\"bytes\")return[\"bytes32\",s1.keccak(d)];if(l===\"string\")return typeof d==\"string\"&&(d=globalThis.Buffer.from(d,\"utf8\")),[\"bytes32\",s1.keccak(d)];if(l.lastIndexOf(\"]\")===l.length-1){let m=l.slice(0,l.lastIndexOf(\"[\")),h=d.map(g=>a(c,m,g));return[\"bytes32\",s1.keccak(WU.rawEncode(h.map(([g])=>g),h.map(([,g])=>g)))]}return[l,d]};for(let c of n[e]){let[l,d]=a(c.name,c.type,t[c.name]);o.push(l),i.push(d)}}else for(let a of n[e]){let c=t[a.name];if(c!==void 0)if(a.type===\"bytes\")o.push(\"bytes32\"),c=s1.keccak(c),i.push(c);else if(a.type===\"string\")o.push(\"bytes32\"),typeof c==\"string\"&&(c=globalThis.Buffer.from(c,\"utf8\")),c=s1.keccak(c),i.push(c);else if(n[a.type]!==void 0)o.push(\"bytes32\"),c=s1.keccak(this.encodeData(a.type,c,n,r)),i.push(c);else{if(a.type.lastIndexOf(\"]\")===a.type.length-1)throw new Error(\"Arrays currently unimplemented in encodeData\");o.push(a.type),i.push(c)}}return WU.rawEncode(o,i)},encodeType(e,t){let n=\"\",r=this.findTypeDependencies(e,t).filter(o=>o!==e);r=[e].concat(r.sort());for(let o of r){if(!t[o])throw new Error(\"No type definition specified: \"+o);n+=o+\"(\"+t[o].map(({name:a,type:c})=>c+\" \"+a).join(\",\")+\")\"}return n},findTypeDependencies(e,t,n=[]){if(e=e.match(/^\\\\w*/)[0],n.includes(e)||t[e]===void 0)return n;n.push(e);for(let r of t[e])for(let o of this.findTypeDependencies(r.type,t,n))!n.includes(o)&&n.push(o);return n},hashStruct(e,t,n,r=!0){return s1.keccak(this.encodeData(e,t,n,r))},hashType(e,t){return s1.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let n in nFe.properties)e[n]&&(t[n]=e[n]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){let n=this.sanitizeData(e),r=[globalThis.Buffer.from(\"1901\",\"hex\")];return r.push(this.hashStruct(\"EIP712Domain\",n.domain,n.types,t)),n.primaryType!==\"EIP712Domain\"&&r.push(this.hashStruct(n.primaryType,n.message,n.types,t)),s1.keccak(globalThis.Buffer.concat(r))}};rFe.exports={TYPED_MESSAGE_SCHEMA:nFe,TypedDataUtils:Vhe,hashForSignTypedDataLegacy:function(e){return T_t(e.data)},hashForSignTypedData_v3:function(e){return Vhe.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return Vhe.hash(e.data)}};function T_t(e){let t=new Error(\"Expect argument to be non-empty array\");if(typeof e!=\"object\"||!e.length)throw t;let n=e.map(function(i){return i.type===\"bytes\"?s1.toBuffer(i.value):i.value}),r=e.map(function(i){return i.type}),o=e.map(function(i){if(!i.name)throw t;return i.type+\" \"+i.name});return WU.soliditySHA3([\"bytes32\",\"bytes32\"],[WU.soliditySHA3(new Array(e.length).fill(\"string\"),o),WU.soliditySHA3(r,n)])}});var iFe,VU,aFe,cJ=$(()=>{f();iFe=\"walletUsername\",VU=\"Addresses\",aFe=\"AppVersion\"});var uJ,sFe=$(()=>{f();a1();uJ=class{constructor(t){this.secret=t}async encrypt(t){let n=this.secret;if(n.length!==64)throw new Error(\"secret must be 256 bits\");let r=crypto.getRandomValues(new Uint8Array(12)),o=await crypto.subtle.importKey(\"raw\",TN(n),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),i=new TextEncoder,a=await window.crypto.subtle.encrypt({name:\"AES-GCM\",iv:r},o,i.encode(t)),c=16,l=a.slice(a.byteLength-c),d=a.slice(0,a.byteLength-c),m=new Uint8Array(l),h=new Uint8Array(d),g=new Uint8Array([...r,...m,...h]);return OU(g)}async decrypt(t){let n=this.secret;if(n.length!==64)throw new Error(\"secret must be 256 bits\");return new Promise((r,o)=>{(async()=>{let i=await crypto.subtle.importKey(\"raw\",TN(n),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),a=TN(t),c=a.slice(0,12),l=a.slice(12,28),d=a.slice(28),m=new Uint8Array([...d,...l]),h={name:\"AES-GCM\",iv:new Uint8Array(c)};try{let g=await window.crypto.subtle.decrypt(h,i,m),y=new TextDecoder;r(y.decode(g))}catch(g){o(g)}})()})}}});var lJ,cFe=$(()=>{f();lJ=class{constructor(t,n,r){this.linkAPIUrl=t,this.sessionId=n;let o=`${n}:${r}`;this.auth=`Basic ${btoa(o)}`}async markUnseenEventsAsSeen(t){return Promise.all(t.map(n=>fetch(`${this.linkAPIUrl}/events/${n.eventId}/seen`,{method:\"POST\",headers:{Authorization:this.auth}}))).catch(n=>console.error(\"Unable to mark events as seen:\",n))}async fetchUnseenEvents(){var t;let n=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(n.ok){let{events:r,error:o}=await n.json();if(o)throw new Error(`Check unseen events failed: ${o}`);let i=(t=r?.filter(a=>a.event===\"Web3Response\").map(a=>({type:\"Event\",sessionId:this.sessionId,eventId:a.id,event:a.event,data:a.data})))!==null&&t!==void 0?t:[];return this.markUnseenEventsAsSeen(i),i}throw new Error(`Check unseen events failed: ${n.status}`)}}});var c1,fR,uFe=$(()=>{f();(function(e){e[e.DISCONNECTED=0]=\"DISCONNECTED\",e[e.CONNECTING=1]=\"CONNECTING\",e[e.CONNECTED=2]=\"CONNECTED\"})(c1||(c1={}));fR=class e{setConnectionStateListener(t){this.connectionStateListener=t}setIncomingDataListener(t){this.incomingDataListener=t}constructor(t,n=WebSocket){this.WebSocketClass=n,this.webSocket=null,this.isDisconnecting=!1,this.url=t.replace(/^http/,\"ws\"),this.instanceId=e.instanceCounter++,e.activeInstances.add(this.instanceId)}async connect(){if(this.webSocket)throw new Error(\"webSocket object is not null\");if(this.isDisconnecting)throw new Error(\"WebSocket is disconnecting, cannot reconnect on same instance\");return new Promise((t,n)=>{var r;let o;try{this.webSocket=o=new this.WebSocketClass(this.url)}catch(i){n(i);return}(r=this.connectionStateListener)===null||r===void 0||r.call(this,c1.CONNECTING),o.onclose=i=>{var a;this.clearWebSocket(),o.readyState!==WebSocket.OPEN&&n(new Error(`websocket error ${i.code}: ${i.reason}`)),(a=this.connectionStateListener)===null||a===void 0||a.call(this,c1.DISCONNECTED)},o.onopen=i=>{var a;t(),(a=this.connectionStateListener)===null||a===void 0||a.call(this,c1.CONNECTED),e.pendingData.length>0&&([...e.pendingData].forEach(l=>this.sendData(l)),e.pendingData=[])},o.onmessage=i=>{var a,c;if(i.data===\"h\")(a=this.incomingDataListener)===null||a===void 0||a.call(this,{type:\"Heartbeat\"});else try{let l=JSON.parse(i.data);(c=this.incomingDataListener)===null||c===void 0||c.call(this,l)}catch{}}})}disconnect(){var t;let{webSocket:n}=this;if(n){this.isDisconnecting=!0,this.clearWebSocket(),(t=this.connectionStateListener)===null||t===void 0||t.call(this,c1.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{n.close()}catch{}}}sendData(t){let{webSocket:n}=this;if(!n){e.pendingData.push(t),this.isDisconnecting||this.connect();return}if(n.readyState!==WebSocket.OPEN){e.pendingData.push(t);return}n.send(t)}clearWebSocket(){let{webSocket:t}=this;t&&(this.webSocket=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.onopen=null)}cleanup(){e.activeInstances.delete(this.instanceId)}};fR.instanceCounter=0;fR.activeInstances=new Set;fR.pendingData=[]});var lFe,C_t,dJ,dFe=$(()=>{f();Dhe();fhe();cJ();sFe();cFe();uFe();lFe=1e4,C_t=6e4,dJ=class{constructor({session:t,linkAPIUrl:n,listener:r}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=o1(1),this.reconnectAttempts=0,this.isReconnecting=!1,this._connected=!1,this._linked=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=i=>{if(!i)return;new Map([[\"__destroyed\",this.handleDestroyed],[\"EthereumAddress\",this.handleAccountUpdated],[\"WalletUsername\",this.handleWalletUsernameUpdated],[\"AppVersion\",this.handleAppVersionUpdated],[\"ChainId\",c=>i.JsonRpcUrl&&this.handleChainUpdated(c,i.JsonRpcUrl)]]).forEach((c,l)=>{let d=i[l];d!==void 0&&c(d)})},this.handleDestroyed=i=>{var a;i===\"1\"&&((a=this.listener)===null||a===void 0||a.resetAndReload())},this.handleAccountUpdated=async i=>{var a;try{let c=await this.cipher.decrypt(i);(a=this.listener)===null||a===void 0||a.accountUpdated(c)}catch{}},this.handleMetadataUpdated=async(i,a)=>{var c;try{let l=await this.cipher.decrypt(a);(c=this.listener)===null||c===void 0||c.metadataUpdated(i,l)}catch{}},this.handleWalletUsernameUpdated=async i=>{this.handleMetadataUpdated(iFe,i)},this.handleAppVersionUpdated=async i=>{this.handleMetadataUpdated(aFe,i)},this.handleChainUpdated=async(i,a)=>{var c;try{let l=await this.cipher.decrypt(i),d=await this.cipher.decrypt(a);(c=this.listener)===null||c===void 0||c.chainUpdated(l,d)}catch{}},this.session=t,this.cipher=new uJ(t.secret),this.listener=r,this.linkAPIUrl=n,this.WebSocketClass=WebSocket;let o=this.createWebSocket();this.ws=o,this.http=new lJ(n,t.id,t.key),this.setupVisibilityChangeHandler()}createWebSocket(){let t=new fR(`${this.linkAPIUrl}/rpc`,this.WebSocketClass);return this.activeWsInstance=t,t.setConnectionStateListener(async n=>{if(t!==this.activeWsInstance)return;let r=!1;switch(n){case c1.DISCONNECTED:this.heartbeatIntervalId&&(clearInterval(this.heartbeatIntervalId),this.heartbeatIntervalId=void 0),this.lastHeartbeatResponse=0,r=!1,this.destroyed||(async()=>{if(this.isReconnecting)return;this.isReconnecting=!0;let i=this.reconnectAttempts===0?0:3e3;await new Promise(a=>setTimeout(a,i)),!this.destroyed&&t===this.activeWsInstance?(this.reconnectAttempts++,\"cleanup\"in this.ws&&typeof this.ws.cleanup==\"function\"&&this.ws.cleanup(),this.ws=this.createWebSocket(),this.ws.connect().catch(()=>{Mhe()}).finally(()=>{this.isReconnecting=!1})):this.isReconnecting=!1})();break;case c1.CONNECTED:this.reconnectAttempts=0;try{r=await this.handleConnected(),this.fetchUnseenEventsAPI().catch(()=>{})}catch{break}this.connected=r,this.updateLastHeartbeat(),this.heartbeatIntervalId&&clearInterval(this.heartbeatIntervalId),this.heartbeatIntervalId=window.setInterval(()=>{this.heartbeat()},lFe),setTimeout(()=>{this.heartbeat()},100);break;case c1.CONNECTING:break}n!==c1.CONNECTED&&(this.connected=r)}),t.setIncomingDataListener(n=>{var r;switch(n.type){case\"Heartbeat\":this.updateLastHeartbeat();return;case\"IsLinkedOK\":case\"Linked\":{let o=n.type===\"IsLinkedOK\"?n.linked:void 0;this.linked=o||n.onlineGuests>0;break}case\"GetSessionConfigOK\":case\"SessionConfigUpdated\":{this.handleSessionMetadataUpdated(n.metadata);break}case\"Event\":{this.handleIncomingEvent(n);break}}n.id!==void 0&&((r=this.requestResolutions.get(n.id))===null||r===void 0||r(n))}),t}setupVisibilityChangeHandler(){this.visibilityChangeHandler=()=>{!document.hidden&&!this.destroyed&&(this.connected?this.heartbeat():this.reconnectWithFreshWebSocket())},this.focusHandler=()=>{!this.destroyed&&!this.connected&&this.reconnectWithFreshWebSocket()},document.addEventListener(\"visibilitychange\",this.visibilityChangeHandler),window.addEventListener(\"focus\",this.focusHandler),window.addEventListener(\"pageshow\",t=>{t.persisted&&this.focusHandler&&this.focusHandler()})}reconnectWithFreshWebSocket(){if(this.destroyed)return;let t=this.ws;this.activeWsInstance=void 0,t.disconnect(),\"cleanup\"in t&&typeof t.cleanup==\"function\"&&t.cleanup(),this.ws=this.createWebSocket(),this.ws.connect().catch(()=>{Mhe()})}connect(){if(this.destroyed)throw new Error(\"instance is destroyed\");this.ws.connect()}async destroy(){this.destroyed||(await this.makeRequest({type:\"SetSessionConfig\",id:o1(this.nextReqId++),sessionId:this.session.id,metadata:{__destroyed:\"1\"}},{timeout:1e3}),this.destroyed=!0,this.activeWsInstance=void 0,this.heartbeatIntervalId&&(clearInterval(this.heartbeatIntervalId),this.heartbeatIntervalId=void 0),this.visibilityChangeHandler&&document.removeEventListener(\"visibilitychange\",this.visibilityChangeHandler),this.focusHandler&&window.removeEventListener(\"focus\",this.focusHandler),this.ws.disconnect(),\"cleanup\"in this.ws&&typeof this.ws.cleanup==\"function\"&&this.ws.cleanup(),this.listener=void 0)}get connected(){return this._connected}set connected(t){this._connected=t}get linked(){return this._linked}set linked(t){var n,r;this._linked=t,t&&((n=this.onceLinked)===null||n===void 0||n.call(this)),(r=this.listener)===null||r===void 0||r.linkedUpdated(t)}setOnceLinked(t){return new Promise(n=>{this.linked?t().then(n):this.onceLinked=()=>{t().then(n),this.onceLinked=void 0}})}async handleIncomingEvent(t){var n;if(!(t.type!==\"Event\"||t.event!==\"Web3Response\"))try{let r=await this.cipher.decrypt(t.data),o=JSON.parse(r);if(o.type!==\"WEB3_RESPONSE\")return;(n=this.listener)===null||n===void 0||n.handleWeb3ResponseMessage(o.id,o.response)}catch{}}async checkUnseenEvents(){await new Promise(t=>setTimeout(t,250));try{await this.fetchUnseenEventsAPI()}catch(t){console.error(\"Unable to check for unseen events\",t)}}async fetchUnseenEventsAPI(){try{(await this.http.fetchUnseenEvents()).forEach(n=>{this.handleIncomingEvent(n)})}catch{rUe()}}async publishEvent(t,n,r=!1){let o=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},n),{origin:location.origin,location:location.href,relaySource:\"coinbaseWalletExtension\"in window&&window.coinbaseWalletExtension?\"injected_sdk\":\"sdk\"}))),i={type:\"PublishEvent\",id:o1(this.nextReqId++),sessionId:this.session.id,event:t,data:o,callWebhook:r};return this.setOnceLinked(async()=>{let a=await this.makeRequest(i);if(a.type===\"Fail\")throw new Error(a.error||\"failed to publish event\");return a.eventId})}sendData(t){this.ws.sendData(JSON.stringify(t))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>lFe*2){this.ws.disconnect();return}if(this.connected)try{this.ws.sendData(\"h\")}catch{}}async makeRequest(t,n={timeout:C_t}){let r=t.id;this.sendData(t);let o;return Promise.race([new Promise((i,a)=>{o=window.setTimeout(()=>{a(new Error(`request ${r} timed out`))},n.timeout)}),new Promise(i=>{this.requestResolutions.set(r,a=>{clearTimeout(o),i(a),this.requestResolutions.delete(r)})})])}async handleConnected(){return(await this.makeRequest({type:\"HostSession\",id:o1(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key})).type===\"Fail\"?!1:(this.sendData({type:\"IsLinked\",id:o1(this.nextReqId++),sessionId:this.session.id}),this.sendData({type:\"GetSessionConfig\",id:o1(this.nextReqId++),sessionId:this.session.id}),!0)}}});var fJ,fFe=$(()=>{f();a1();fJ=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let t=this._nextRequestId,n=hhe(t.toString(16));return this.callbacks.get(n)&&this.callbacks.delete(n),t}}});function R_t(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}function pJ(e,...t){if(!R_t(e))throw new Error(\"Uint8Array expected\");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function Ghe(e,t=!0){if(e.destroyed)throw new Error(\"Hash instance has been destroyed\");if(t&&e.finished)throw new Error(\"Hash#digest() has already been called\")}function pFe(e,t){pJ(e);let n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}var qhe=$(()=>{f()});function hFe(e){pJ(e);let t=\"\";for(let n=0;n<e.length;n++)t+=I_t[e[n]];return t}function k_t(e){if(typeof e!=\"string\")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Khe(e){return typeof e==\"string\"&&(e=k_t(e)),pJ(e),e}function mFe(e){let t=r=>e().update(Khe(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}var mJ,u1,i$n,I_t,hJ,a$n,gJ=$(()=>{f();qhe();mJ=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),u1=(e,t)=>e<<32-t|e>>>t,i$n=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,I_t=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));hJ=class{clone(){return this._cloneInto()}},a$n={}.toString});function O_t(e,t,n,r){if(typeof e.setBigUint64==\"function\")return e.setBigUint64(t,n,r);let o=BigInt(32),i=BigInt(4294967295),a=Number(n>>o&i),c=Number(n&i),l=r?4:0,d=r?0:4;e.setUint32(t+l,a,r),e.setUint32(t+d,c,r)}var gFe,yFe,yJ,bFe=$(()=>{f();qhe();gJ();gFe=(e,t,n)=>e&t^~e&n,yFe=(e,t,n)=>e&t^e&n^t&n,yJ=class extends hJ{constructor(t,n,r,o){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=mJ(this.buffer)}update(t){Ghe(this);let{view:n,buffer:r,blockLen:o}=this;t=Khe(t);let i=t.length;for(let a=0;a<i;){let c=Math.min(o-this.pos,i-a);if(c===o){let l=mJ(t);for(;o<=i-a;a+=o)this.process(l,a);continue}r.set(t.subarray(a,a+c),this.pos),this.pos+=c,a+=c,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Ghe(this),pFe(t,this),this.finished=!0;let{buffer:n,view:r,blockLen:o,isLE:i}=this,{pos:a}=this;n[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>o-a&&(this.process(r,0),a=0);for(let h=a;h<o;h++)n[h]=0;O_t(r,o-8,BigInt(this.length*8),i),this.process(r,0);let c=mJ(t),l=this.outputLen;if(l%4)throw new Error(\"_sha2: outputLen should be aligned to 32bit\");let d=l/4,m=this.get();if(d>m.length)throw new Error(\"_sha2: outputLen bigger than state\");for(let h=0;h<d;h++)c.setUint32(4*h,m[h],i)}digest(){let{buffer:t,outputLen:n}=this;this.digestInto(t);let r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());let{blockLen:n,buffer:r,length:o,finished:i,destroyed:a,pos:c}=this;return t.length=o,t.pos=c,t.finished=i,t.destroyed=a,o%n&&t.buffer.set(r),t}}});var N_t,pT,hT,Yhe,vFe,wFe=$(()=>{f();bFe();gJ();N_t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),pT=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),hT=new Uint32Array(64),Yhe=class extends yJ{constructor(){super(64,32,8,!1),this.A=pT[0]|0,this.B=pT[1]|0,this.C=pT[2]|0,this.D=pT[3]|0,this.E=pT[4]|0,this.F=pT[5]|0,this.G=pT[6]|0,this.H=pT[7]|0}get(){let{A:t,B:n,C:r,D:o,E:i,F:a,G:c,H:l}=this;return[t,n,r,o,i,a,c,l]}set(t,n,r,o,i,a,c,l){this.A=t|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=i|0,this.F=a|0,this.G=c|0,this.H=l|0}process(t,n){for(let h=0;h<16;h++,n+=4)hT[h]=t.getUint32(n,!1);for(let h=16;h<64;h++){let g=hT[h-15],y=hT[h-2],w=u1(g,7)^u1(g,18)^g>>>3,x=u1(y,17)^u1(y,19)^y>>>10;hT[h]=x+hT[h-7]+w+hT[h-16]|0}let{A:r,B:o,C:i,D:a,E:c,F:l,G:d,H:m}=this;for(let h=0;h<64;h++){let g=u1(c,6)^u1(c,11)^u1(c,25),y=m+g+gFe(c,l,d)+N_t[h]+hT[h]|0,x=(u1(r,2)^u1(r,13)^u1(r,22))+yFe(r,o,i)|0;m=d,d=l,l=c,c=a+y|0,a=i,i=o,o=r,r=y+x|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,a=a+this.D|0,c=c+this.E|0,l=l+this.F|0,d=d+this.G|0,m=m+this.H|0,this.set(r,o,i,a,c,l,d,m)}roundClean(){hT.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},vFe=mFe(()=>new Yhe)});var xFe,EFe,AFe,BN,SFe=$(()=>{f();wFe();gJ();a1();xFe=\"session:id\",EFe=\"session:secret\",AFe=\"session:linked\",BN=class e{constructor(t,n,r,o=!1){this.storage=t,this.id=n,this.secret=r,this.key=hFe(vFe(`${n}, ${r} WalletLink`)),this._linked=!!o}static create(t){let n=kE(16),r=kE(32);return new e(t,n,r).save()}static load(t){let n=t.getItem(xFe),r=t.getItem(AFe),o=t.getItem(EFe);return n&&o?new e(t,n,o,r===\"1\"):null}get linked(){return this._linked}set linked(t){this._linked=t,this.persistLinked()}save(){return this.storage.setItem(xFe,this.id),this.storage.setItem(EFe,this.secret),this.persistLinked(),this}persistLinked(){this.storage.setItem(AFe,this._linked?\"1\":\"0\")}}});var _Fe,TFe=$(()=>{f();_Fe=\".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}\"});var bJ,P_t,CFe=$(()=>{f();xE();yw();yw();vhe();PQ();NU();TFe();bJ=class{constructor(){this.root=null,this.darkMode=NQ()}attach(){let t=document.documentElement;this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-css-reset\",t.appendChild(this.root),OQ()}present(t){this.render(t)}clear(){this.render(null)}render(t){this.root&&(eT(null,this.root),t&&eT(gi(P_t,Object.assign({},t,{onDismiss:()=>{this.clear()},darkMode:this.darkMode})),this.root))}},P_t=({title:e,buttonText:t,darkMode:n,onButtonClick:r,onDismiss:o})=>{let i=n?\"dark\":\"light\";return gi(whe,{darkMode:n},gi(\"div\",{class:\"-cbwsdk-redirect-dialog\"},gi(\"style\",null,_Fe),gi(\"div\",{class:\"-cbwsdk-redirect-dialog-backdrop\",onClick:o}),gi(\"div\",{class:m0(\"-cbwsdk-redirect-dialog-box\",i)},gi(\"p\",null,e),gi(\"button\",{onClick:r},t))))}});var GU,RFe=$(()=>{f();IN();CFe();NU();GU=class{constructor(){this.attached=!1,this.redirectDialog=new bJ}attach(){if(this.attached)throw new Error(\"Coinbase Wallet SDK UI is already attached\");this.redirectDialog.attach(),this.attached=!0}redirectToCoinbaseWallet(t){let n=new URL(bBe);n.searchParams.append(\"redirect_url\",_Be().href),t&&n.searchParams.append(\"wl_url\",t);let r=document.createElement(\"a\");r.target=\"cbw-opener\",r.href=n.href,r.rel=\"noreferrer noopener\",r.click()}openCoinbaseWalletDeeplink(t){this.redirectToCoinbaseWallet(t),setTimeout(()=>{this.redirectDialog.present({title:\"Redirecting to Coinbase Wallet...\",buttonText:\"Open\",onButtonClick:()=>{this.redirectToCoinbaseWallet(t)}})},99)}showConnecting(t){return()=>{this.redirectDialog.clear()}}}});var qU,IFe=$(()=>{f();Rf();MU();a1();dFe();cJ();fFe();SFe();UQ();NU();Ehe();RFe();qU=class e{constructor(t){this.chainCallbackParams={chainId:\"\",jsonRpcUrl:\"\"},this.isMobileWeb=TBe(),this.linkedUpdated=i=>{this.isLinked=i;let a=this.storage.getItem(VU);if(i&&(this._session.linked=i),this.isUnlinkedErrorState=!1,a){let c=a.split(\" \"),l=this.storage.getItem(\"IsStandaloneSigning\")===\"true\";c[0]!==\"\"&&!i&&this._session.linked&&!l&&(this.isUnlinkedErrorState=!0)}},this.metadataUpdated=(i,a)=>{this.storage.setItem(i,a)},this.chainUpdated=(i,a)=>{this.chainCallbackParams.chainId===i&&this.chainCallbackParams.jsonRpcUrl===a||(this.chainCallbackParams={chainId:i,jsonRpcUrl:a},this.chainCallback&&this.chainCallback(a,Number.parseInt(i,10)))},this.accountUpdated=i=>{this.accountsCallback&&this.accountsCallback([i]),e.accountRequestCallbackIds.size>0&&(Array.from(e.accountRequestCallbackIds.values()).forEach(a=>{this.invokeCallback(a,{method:\"requestEthereumAccounts\",result:[i]})}),e.accountRequestCallbackIds.clear())},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=t.linkAPIUrl,this.storage=t.storage,this.metadata=t.metadata,this.accountsCallback=t.accountsCallback,this.chainCallback=t.chainCallback;let{session:n,ui:r,connection:o}=this.subscribe();this._session=n,this.connection=o,this.relayEventManager=new fJ,this.ui=r,this.ui.attach()}subscribe(){let t=BN.load(this.storage)||BN.create(this.storage),{linkAPIUrl:n}=this,r=new dJ({session:t,linkAPIUrl:n,listener:this}),o=this.isMobileWeb?new GU:new MQ;return r.connect(),{session:t,ui:o,connection:r}}resetAndReload(){this.connection.destroy().then(()=>{let t=BN.load(this.storage);t?.id===this._session.id&&Ew.clearAll(),document.location.reload()}).catch(t=>{})}signEthereumTransaction(t){return this.sendRequest({method:\"signEthereumTransaction\",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:i1(t.weiValue),data:aR(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?i1(t.gasPriceInWei):null,maxFeePerGas:t.gasPriceInWei?i1(t.gasPriceInWei):null,maxPriorityFeePerGas:t.gasPriceInWei?i1(t.gasPriceInWei):null,gasLimit:t.gasLimit?i1(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(t){return this.sendRequest({method:\"signEthereumTransaction\",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:i1(t.weiValue),data:aR(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?i1(t.gasPriceInWei):null,maxFeePerGas:t.maxFeePerGas?i1(t.maxFeePerGas):null,maxPriorityFeePerGas:t.maxPriorityFeePerGas?i1(t.maxPriorityFeePerGas):null,gasLimit:t.gasLimit?i1(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!0}})}submitEthereumTransaction(t,n){return this.sendRequest({method:\"submitEthereumTransaction\",params:{signedTransaction:aR(t,!0),chainId:n}})}getWalletLinkSession(){return this._session}sendRequest(t){let n=null,r=kE(8),o=i=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,t.method,i),n?.()};return new Promise((i,a)=>{n=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:o,onResetConnection:this.resetAndReload}),this.relayEventManager.callbacks.set(r,c=>{if(n?.(),Fu(c))return a(new Error(c.errorMessage));i(c)}),this.publishWeb3RequestEvent(r,t)})}publishWeb3RequestEvent(t,n){let r={type:\"WEB3_REQUEST\",id:t,request:n};this.publishEvent(\"Web3Request\",r,!0).then(o=>{}).catch(o=>{this.handleWeb3ResponseMessage(r.id,{method:n.method,errorMessage:o.message})}),this.isMobileWeb&&this.openCoinbaseWalletDeeplink(n.method)}openCoinbaseWalletDeeplink(t){if(this.ui instanceof GU)switch(t){case\"requestEthereumAccounts\":case\"switchEthereumChain\":return;default:window.addEventListener(\"blur\",()=>{window.addEventListener(\"focus\",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0}),this.ui.openCoinbaseWalletDeeplink();break}}publishWeb3RequestCanceledEvent(t){let n={type:\"WEB3_REQUEST_CANCELED\",id:t};this.publishEvent(\"Web3RequestCanceled\",n,!1).then()}publishEvent(t,n,r){return this.connection.publishEvent(t,n,r)}handleWeb3ResponseMessage(t,n){if(n.method===\"requestEthereumAccounts\"){e.accountRequestCallbackIds.forEach(r=>this.invokeCallback(r,n)),e.accountRequestCallbackIds.clear();return}this.invokeCallback(t,n)}handleErrorResponse(t,n,r){var o;let i=(o=r?.message)!==null&&o!==void 0?o:\"Unspecified error message.\";this.handleWeb3ResponseMessage(t,{method:n,errorMessage:i})}invokeCallback(t,n){let r=this.relayEventManager.callbacks.get(t);r&&(r(n),this.relayEventManager.callbacks.delete(t))}requestEthereumAccounts(){let{appName:t,appLogoUrl:n}=this.metadata,r={method:\"requestEthereumAccounts\",params:{appName:t,appLogoUrl:n}},o=null,i=kE(8);return new Promise((a,c)=>{this.relayEventManager.callbacks.set(i,l=>{if(o?.(),Fu(l))return c(new Error(l.errorMessage));a(l)}),e.accountRequestCallbackIds.add(i),this.publishWeb3RequestEvent(i,r)})}watchAsset(t,n,r,o,i,a){let c={method:\"watchAsset\",params:{type:t,options:{address:n,symbol:r,decimals:o,image:i},chainId:a}},l=null,d=kE(8),m=h=>{this.publishWeb3RequestCanceledEvent(d),this.handleErrorResponse(d,c.method,h),l?.()};return l=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:m,onResetConnection:this.resetAndReload}),new Promise((h,g)=>{this.relayEventManager.callbacks.set(d,y=>{if(l?.(),Fu(y))return g(new Error(y.errorMessage));h(y)}),this.publishWeb3RequestEvent(d,c)})}addEthereumChain(t,n,r,o,i,a){let c={method:\"addEthereumChain\",params:{chainId:t,rpcUrls:n,blockExplorerUrls:o,chainName:i,iconUrls:r,nativeCurrency:a}},l=null,d=kE(8),m=h=>{this.publishWeb3RequestCanceledEvent(d),this.handleErrorResponse(d,c.method,h),l?.()};return l=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:m,onResetConnection:this.resetAndReload}),new Promise((h,g)=>{this.relayEventManager.callbacks.set(d,y=>{if(l?.(),Fu(y))return g(new Error(y.errorMessage));h(y)}),this.publishWeb3RequestEvent(d,c)})}switchEthereumChain(t,n){let r={method:\"switchEthereumChain\",params:Object.assign({chainId:t},{address:n})},o=null,i=kE(8),a=c=>{this.publishWeb3RequestCanceledEvent(i),this.handleErrorResponse(i,r.method,c),o?.()};return o=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:a,onResetConnection:this.resetAndReload}),new Promise((c,l)=>{this.relayEventManager.callbacks.set(i,d=>{if(o?.(),Fu(d)&&d.errorCode)return l(It.provider.custom({code:d.errorCode,message:\"Unrecognized chain ID. Try adding the chain using addEthereumChain first.\"}));if(Fu(d))return l(new Error(d.errorMessage));c(d)}),this.publishWeb3RequestEvent(i,r)})}};qU.accountRequestCallbackIds=new Set});var KU,kFe,OFe,YU,NFe=$(()=>{f();IN();Rf();MU();Dhe();Ahe();a1();zQ();RN();KU=ge(oFe(),1);IFe();cJ();UQ();kFe=\"DefaultChainId\",OFe=\"DefaultJsonRpcUrl\",YU=class{constructor(t){this._relay=null,this._addresses=[],this.metadata=t.metadata,this._storage=new Ew(\"walletlink\",bhe),this.callback=t.callback||null;let n=this._storage.getItem(VU);if(n){let r=n.split(\" \");r[0]!==\"\"&&(this._addresses=r.map(o=>NE(o)))}this.initializeRelay()}getSession(){let t=this.initializeRelay(),{id:n,secret:r}=t.getWalletLinkSession();return{id:n,secret:r}}async handshake(t){let n=\"eth_requestAccounts\",r=am.get(t);JLe({method:n,correlationId:r});try{await this._eth_requestAccounts(),$Le({method:n,correlationId:r})}catch(o){throw XLe({method:n,correlationId:r,errorMessage:ME(o)}),o}}get selectedAddress(){return this._addresses[0]||void 0}get jsonRpcUrl(){var t;return(t=this._storage.getItem(OFe))!==null&&t!==void 0?t:void 0}set jsonRpcUrl(t){this._storage.setItem(OFe,t)}updateProviderInfo(t,n){var r;this.jsonRpcUrl=t;let o=this.getChainId();this._storage.setItem(kFe,n.toString(10)),sR(n)!==o&&((r=this.callback)===null||r===void 0||r.call(this,\"chainChanged\",OE(n)))}async watchAsset(t){let n=Array.isArray(t)?t[0]:t;if(!n.type)throw It.rpc.invalidParams(\"Type is required\");if(n?.type!==\"ERC20\")throw It.rpc.invalidParams(`Asset of type \\'${n.type}\\' is not supported`);if(!n?.options)throw It.rpc.invalidParams(\"Options are required\");if(!n?.options.address)throw It.rpc.invalidParams(\"Address is required\");let r=this.getChainId(),{address:o,symbol:i,image:a,decimals:c}=n.options,d=await this.initializeRelay().watchAsset(n.type,o,i,c,a,r?.toString());return Fu(d)?!1:!!d.result}async addEthereumChain(t){var n,r;let o=t[0];if(((n=o.rpcUrls)===null||n===void 0?void 0:n.length)===0)throw It.rpc.invalidParams(\"please pass in at least 1 rpcUrl\");if(!o.chainName||o.chainName.trim()===\"\")throw It.rpc.invalidParams(\"chainName is a required field\");if(!o.nativeCurrency)throw It.rpc.invalidParams(\"nativeCurrency is a required field\");let i=Number.parseInt(o.chainId,16);if(i===this.getChainId())return!1;let a=this.initializeRelay(),{rpcUrls:c=[],blockExplorerUrls:l=[],chainName:d,iconUrls:m=[],nativeCurrency:h}=o,g=await a.addEthereumChain(i.toString(),c,m,l,d,h);if(Fu(g))return!1;if(((r=g.result)===null||r===void 0?void 0:r.isApproved)===!0)return this.updateProviderInfo(c[0],i),null;throw It.rpc.internal(\"unable to add ethereum chain\")}async switchEthereumChain(t){let n=t[0],r=Number.parseInt(n.chainId,16),i=await this.initializeRelay().switchEthereumChain(r.toString(10),this.selectedAddress||void 0);if(Fu(i))throw i;let a=i.result;return a.isApproved&&a.rpcUrl.length>0&&this.updateProviderInfo(a.rpcUrl,r),null}async cleanup(){this.callback=null,this._relay&&this._relay.resetAndReload(),this._storage.clear()}_setAddresses(t,n){var r;if(!Array.isArray(t))throw new Error(\"addresses is not an array\");let o=t.map(i=>NE(i));JSON.stringify(o)!==JSON.stringify(this._addresses)&&(this._addresses=o,(r=this.callback)===null||r===void 0||r.call(this,\"accountsChanged\",o),this._storage.setItem(VU,o.join(\" \")))}async request(t){let n=am.get(t);eUe({method:t.method,correlationId:n});try{let r=await this._request(t);return nUe({method:t.method,correlationId:n}),r}catch(r){throw tUe({method:t.method,correlationId:n,errorMessage:ME(r)}),r}}async _request(t){let n=t.params||[];switch(t.method){case\"eth_accounts\":return[...this._addresses];case\"eth_coinbase\":return this.selectedAddress||null;case\"net_version\":return this.getChainId().toString(10);case\"eth_chainId\":return OE(this.getChainId());case\"eth_requestAccounts\":return this._eth_requestAccounts();case\"eth_ecRecover\":case\"personal_ecRecover\":return this.ecRecover(t);case\"personal_sign\":return this.personalSign(t);case\"eth_signTransaction\":return this._eth_signTransaction(n);case\"eth_sendRawTransaction\":return this._eth_sendRawTransaction(n);case\"eth_sendTransaction\":return this._eth_sendTransaction(n);case\"eth_signTypedData_v1\":case\"eth_signTypedData_v3\":case\"eth_signTypedData_v4\":case\"eth_signTypedData\":return this.signTypedData(t);case\"wallet_addEthereumChain\":return this.addEthereumChain(n);case\"wallet_switchEthereumChain\":return this.switchEthereumChain(n);case\"wallet_watchAsset\":return this.watchAsset(n);default:if(!this.jsonRpcUrl)throw It.rpc.internal(\"No RPC URL set for chain\");return uT(t,this.jsonRpcUrl)}}_ensureKnownAddress(t){let n=NE(t);if(!this._addresses.map(o=>NE(o)).includes(n))throw new Error(\"Unknown Ethereum address\")}_prepareTransactionParams(t){let n=t.from?NE(t.from):this.selectedAddress;if(!n)throw new Error(\"Ethereum address is unavailable\");this._ensureKnownAddress(n);let r=t.to?NE(t.to):null,o=t.value!=null?CN(t.value):BigInt(0),i=t.data?SQ(t.data):globalThis.Buffer.alloc(0),a=t.nonce!=null?sR(t.nonce):null,c=t.gasPrice!=null?CN(t.gasPrice):null,l=t.maxFeePerGas!=null?CN(t.maxFeePerGas):null,d=t.maxPriorityFeePerGas!=null?CN(t.maxPriorityFeePerGas):null,m=t.gas!=null?CN(t.gas):null,h=t.chainId?sR(t.chainId):this.getChainId();return{fromAddress:n,toAddress:r,weiValue:o,data:i,nonce:a,gasPriceInWei:c,maxFeePerGas:l,maxPriorityFeePerGas:d,gasLimit:m,chainId:h}}async ecRecover(t){let{method:n,params:r}=t;if(!Array.isArray(r))throw It.rpc.invalidParams();let i=await this.initializeRelay().sendRequest({method:\"ethereumAddressFromSignedMessage\",params:{message:xQ(r[0]),signature:xQ(r[1]),addPrefix:n===\"personal_ecRecover\"}});if(Fu(i))throw i;return i.result}getChainId(){var t;return Number.parseInt((t=this._storage.getItem(kFe))!==null&&t!==void 0?t:\"1\",10)}async _eth_requestAccounts(){var t,n;if(this._addresses.length>0)return(t=this.callback)===null||t===void 0||t.call(this,\"connect\",{chainId:OE(this.getChainId())}),this._addresses;let o=await this.initializeRelay().requestEthereumAccounts();if(Fu(o))throw o;if(!o.result)throw new Error(\"accounts received is empty\");return this._setAddresses(o.result),(n=this.callback)===null||n===void 0||n.call(this,\"connect\",{chainId:OE(this.getChainId())}),this._addresses}async personalSign({params:t}){if(!Array.isArray(t))throw It.rpc.invalidParams();let n=t[1],r=t[0];this._ensureKnownAddress(n);let i=await this.initializeRelay().sendRequest({method:\"signEthereumMessage\",params:{address:NE(n),message:xQ(r),addPrefix:!0,typedDataJson:null}});if(Fu(i))throw i;return i.result}async _eth_signTransaction(t){let n=this._prepareTransactionParams(t[0]||{}),o=await this.initializeRelay().signEthereumTransaction(n);if(Fu(o))throw o;return o.result}async _eth_sendRawTransaction(t){let n=SQ(t[0]),o=await this.initializeRelay().submitEthereumTransaction(n,this.getChainId());if(Fu(o))throw o;return o.result}async _eth_sendTransaction(t){let n=this._prepareTransactionParams(t[0]||{}),o=await this.initializeRelay().signAndSubmitEthereumTransaction(n);if(Fu(o))throw o;return o.result}async signTypedData(t){let{method:n,params:r}=t;if(!Array.isArray(r))throw It.rpc.invalidParams();let o=d=>{let m={eth_signTypedData_v1:KU.default.hashForSignTypedDataLegacy,eth_signTypedData_v3:KU.default.hashForSignTypedData_v3,eth_signTypedData_v4:KU.default.hashForSignTypedData_v4,eth_signTypedData:KU.default.hashForSignTypedData_v4};return aR(m[n]({data:pBe(d)}),!0)},i=r[n===\"eth_signTypedData_v1\"?1:0],a=r[n===\"eth_signTypedData_v1\"?0:1];this._ensureKnownAddress(i);let l=await this.initializeRelay().sendRequest({method:\"signEthereumMessage\",params:{address:NE(i),message:o(a),typedDataJson:JSON.stringify(a,null,2),addPrefix:!1}});if(Fu(l))throw l;return l.result}initializeRelay(){return this._relay||(this._relay=new qU({linkAPIUrl:bhe,storage:this._storage,metadata:this.metadata,accountsCallback:this._setAddresses.bind(this),chainCallback:this.updateProviderInfo.bind(this)})),this._relay}}});function DFe(){return MFe.getItem(PFe)}function BFe(e){MFe.setItem(PFe,e)}function Zhe(e){if(e)return e instanceof FU?\"scw\":\"walletlink\"}async function LFe(e){let{communicator:t,metadata:n,handshakeRequest:r,callback:o}=e;M_t(t,n,o,r).catch(()=>{});let i={id:crypto.randomUUID(),event:\"selectSignerType\",data:Object.assign(Object.assign({},e.preference),{handshakeRequest:r})},{data:a}=await t.postRequestAndWaitForResponse(i);return a}function UFe(e){let{signerType:t,metadata:n,communicator:r,callback:o}=e;switch(t){case\"scw\":return new FU({metadata:n,callback:o,communicator:r});case\"walletlink\":return new YU({metadata:n,callback:o})}}async function M_t(e,t,n,r){await e.onMessage(({event:i})=>i===\"WalletLinkSessionRequest\");let o=new YU({metadata:t,callback:n});e.postMessage({event:\"WalletLinkUpdate\",data:{session:o.getSession()}}),await o.handshake(r),e.postMessage({event:\"WalletLinkUpdate\",data:{connected:!0}})}var PFe,MFe,FFe=$(()=>{f();MU();QLe();NFe();PFe=\"SignerType\",MFe=new Ew(\"CBWSDK\",\"SignerConfigurator\")});var D_t,LN,Qhe=$(()=>{f();PBe();IN();IU();Rf();DBe();BBe();MU();jBe();GBe();a1();zQ();ny();RN();FFe();D_t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},LN=class extends FQ{constructor(t){var{metadata:n}=t,r=t.preference,{keysUrl:o}=r,i=D_t(r,[\"keysUrl\"]);super(),this.signer=null,this.isCoinbaseWallet=!0,this.metadata=n,this.preference=i,this.communicator=new LQ({url:o,metadata:n,preference:i});let a=DFe();a&&(this.signer=this.initSigner(a),LBe({signerType:a}))}async request(t){let n=crypto.randomUUID();am.set(t,n),UBe({method:t.method,correlationId:n});try{let r=await this._request(t);return HBe({method:t.method,signerType:Zhe(this.signer),correlationId:n}),r}catch(r){throw FBe({method:t.method,correlationId:n,signerType:Zhe(this.signer),errorMessage:r instanceof Error?r.message:\"\"}),r}finally{am.delete(t)}}async _request(t){try{if(gBe(t),!this.signer)switch(t.method){case\"eth_requestAccounts\":{let r,o=Bt.subAccountsConfig.get();o?.enableAutoSubAccounts?r=\"scw\":r=await this.requestSignerSelection(t);let i=this.initSigner(r);r===\"scw\"&&o?.enableAutoSubAccounts?(await i.handshake({method:\"handshake\"}),await i.request(t)):await i.handshake(t),this.signer=i,BFe(r);break}case\"wallet_connect\":{let r=this.initSigner(\"scw\");await r.handshake({method:\"handshake\"});let o=await r.request(t);return this.signer=r,o}case\"wallet_sendCalls\":case\"wallet_sign\":{let r=this.initSigner(\"scw\");await r.handshake({method:\"handshake\"});let o=await r.request(t);return await r.cleanup(),o}case\"wallet_getCallsStatus\":return await uT(t,IQ);case\"net_version\":return 1;case\"eth_chainId\":return OE(1);default:throw It.provider.unauthorized(\"Must call \\'eth_requestAccounts\\' before other methods\")}return await this.signer.request(t)}catch(n){let{code:r}=n;return r===ls.provider.unauthorized&&this.disconnect(),Promise.reject(MBe(n))}}async enable(){return console.warn(\\'.enable() has been deprecated. Please use .request({ method: \"eth_requestAccounts\" }) instead.\\'),zBe(),await this.request({method:\"eth_requestAccounts\"})}async disconnect(){var t;await((t=this.signer)===null||t===void 0?void 0:t.cleanup()),this.signer=null,Ew.clearAll(),am.clear(),this.emit(\"disconnect\",It.provider.disconnected(\"User initiated disconnection\"))}async requestSignerSelection(t){WBe();let n=await LFe({communicator:this.communicator,preference:this.preference,metadata:this.metadata,handshakeRequest:t,callback:this.emit.bind(this)});return VBe(n),n}initSigner(t){return UFe({signerType:t,metadata:this.metadata,communicator:this.communicator,callback:this.emit.bind(this)})}}});var HFe,zFe=$(()=>{f();HFe=(e,t)=>{let n;switch(e){case\"standard\":return n=t,`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' viewBox=\\'0 0 1024 1024\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3E %3Crect width=\\'1024\\' height=\\'1024\\' fill=\\'%230052FF\\'/%3E %3Cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z\\' fill=\\'white\\'/%3E %3C/svg%3E `;case\"circle\":return n=t,`data:image/svg+xml,%3Csvg xmlns=\\'http://www.w3.org/2000/svg\\' width=\\'${t}\\' height=\\'${n}\\' viewBox=\\'0 0 999.81 999.81\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3Cpath class=\\'cls-2\\' d=\\'M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3Cpath class=\\'cls-3\\' d=\\'M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3C/svg%3E`;case\"text\":return n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 528.15 53.64\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class=\\'cls-1\\' d=\\'M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z\\'/%3E%3C/svg%3E`;case\"textWithLogo\":return n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 308.44 77.61\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z\\'/%3E%3C/svg%3E`;case\"textLight\":return n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 528.15 53.64\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class=\\'cls-1\\' d=\\'M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z\\'/%3E%3C/svg%3E`;case\"textWithLogoLight\":return n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 308.44 77.61\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z\\'/%3E%3C/svg%3E`;default:return n=t,`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' viewBox=\\'0 0 1024 1024\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3E %3Crect width=\\'1024\\' height=\\'1024\\' fill=\\'%230052FF\\'/%3E %3Cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z\\' fill=\\'white\\'/%3E %3C/svg%3E `}}});var UN,Jhe=$(()=>{f();she();a1();ny();TQ();RN();yhe();Qhe();zFe();UN=class{constructor(t){Bt.persist.rehydrate(),this.metadata={appName:t.appName||\"Dapp\",appLogoUrl:t.appLogoUrl||hBe(),appChainIds:t.appChainIds||[]},Bt.config.set({metadata:this.metadata}),_Q()}makeWeb3Provider(t={options:\"all\"}){var n;RQ(t),t.telemetry!==!1&&gQ(),Bt.config.set({preference:t});let r={metadata:this.metadata,preference:t};return(n=CQ(r))!==null&&n!==void 0?n:new LN(r)}getCoinbaseWalletLogo(t,n=240){return HFe(t,n)}}});function jFe(e){var t;let n={metadata:e.metadata,preference:e.preference};return(t=CQ(n))!==null&&t!==void 0?t:new LN(n)}var WFe=$(()=>{f();RN();Qhe()});function VFe(e){var t,n,r,o;let i={metadata:{appName:e.appName||\"Dapp\",appLogoUrl:e.appLogoUrl||\"\",appChainIds:e.appChainIds||[]},preference:Object.assign(B_t,(t=e.preference)!==null&&t!==void 0?t:{}),paymasterUrls:e.paymasterUrls};!((n=e.subAccounts)===null||n===void 0)&&n.toOwnerAccount&&ghe(e.subAccounts.toOwnerAccount),Bt.subAccountsConfig.set({toOwnerAccount:(r=e.subAccounts)===null||r===void 0?void 0:r.toOwnerAccount,enableAutoSubAccounts:(o=e.subAccounts)===null||o===void 0?void 0:o.enableAutoSubAccounts}),Bt.config.set(i),Bt.persist.rehydrate(),_Q(),i.preference.telemetry!==!1&&gQ(),RQ(i.preference);let a=null,c={getProvider(){return a||(a=jFe(i)),a.sdk=c,a},subAccount:{async create(l){var d,m;let h=Bt.getState();return Zl((d=h.subAccount)===null||d===void 0?void 0:d.address,new Error(\"subaccount already exists\")),await((m=c.getProvider())===null||m===void 0?void 0:m.request({method:\"wallet_addSubAccount\",params:[{version:\"1\",account:l}]}))},async get(){var l,d;let m=Bt.subAccounts.get();if(m?.address)return m;let g=(d=(await((l=c.getProvider())===null||l===void 0?void 0:l.request({method:\"wallet_connect\",params:[{version:\"1\",capabilities:{}}]}))).accounts[0].capabilities)===null||d===void 0?void 0:d.subAccounts;return Array.isArray(g)?g[0]:null},async addOwner({address:l,publicKey:d,chainId:m}){var h,g;let y=Bt.subAccounts.get(),w=Bt.account.get();Zl(w,new Error(\"account does not exist\")),Zl(y?.address,new Error(\"subaccount does not exist\"));let x=[];if(d){let[I,C]=Pu([{type:\"bytes32\"},{type:\"bytes32\"}],d);x.push({to:y.address,data:xn({abi:If,functionName:\"addOwnerPublicKey\",args:[I,C]}),value:Xn(0)})}return l&&x.push({to:y.address,data:xn({abi:If,functionName:\"addOwnerAddress\",args:[l]}),value:Xn(0)}),await((h=c.getProvider())===null||h===void 0?void 0:h.request({method:\"wallet_sendCalls\",params:[{calls:x,chainId:Xn(m),from:(g=w.accounts)===null||g===void 0?void 0:g[0],version:\"1\"}]}))},setToOwnerAccount(l){ghe(l),Bt.subAccountsConfig.set({toOwnerAccount:l})}}};return c}var B_t,GFe=$(()=>{f();gn();she();lR();NN();TQ();yhe();WFe();ny();B_t={options:\"all\"}});var qFe={};as(qFe,{CoinbaseWalletSDK:()=>UN,createCoinbaseWalletSDK:()=>VFe,default:()=>L_t,getCryptoKeyAccount:()=>cR,removeCryptoKey:()=>vLe});var L_t,KFe=$(()=>{f();Jhe();Jhe();GFe();qQ();L_t=UN});var YFe=me(vJ=>{\"use strict\";f();Object.defineProperty(vJ,\"__esModule\",{value:!0});vJ.walletLogo=void 0;var U_t=(e,t)=>{let n;switch(e){case\"standard\":return n=t,`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' viewBox=\\'0 0 1024 1024\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3E %3Crect width=\\'1024\\' height=\\'1024\\' fill=\\'%230052FF\\'/%3E %3Cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z\\' fill=\\'white\\'/%3E %3C/svg%3E `;case\"circle\":return n=t,`data:image/svg+xml,%3Csvg xmlns=\\'http://www.w3.org/2000/svg\\' width=\\'${t}\\' height=\\'${n}\\' viewBox=\\'0 0 999.81 999.81\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3Cpath class=\\'cls-2\\' d=\\'M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3Cpath class=\\'cls-3\\' d=\\'M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z\\' transform=\\'translate(-183.1 115.9)\\'/%3E%3C/svg%3E`;case\"text\":return n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 528.15 53.64\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class=\\'cls-1\\' d=\\'M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z\\'/%3E%3C/svg%3E`;case\"textWithLogo\":return n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 308.44 77.61\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z\\'/%3E%3C/svg%3E`;case\"textLight\":return n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 528.15 53.64\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class=\\'cls-1\\' d=\\'M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z\\'/%3E%3C/svg%3E`;case\"textWithLogoLight\":return n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' xmlns=\\'http://www.w3.org/2000/svg\\' viewBox=\\'0 0 308.44 77.61\\'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class=\\'cls-1\\' d=\\'M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z\\'/%3E%3C/svg%3E`;default:return n=t,`data:image/svg+xml,%3Csvg width=\\'${t}\\' height=\\'${n}\\' viewBox=\\'0 0 1024 1024\\' fill=\\'none\\' xmlns=\\'http://www.w3.org/2000/svg\\'%3E %3Crect width=\\'1024\\' height=\\'1024\\' fill=\\'%230052FF\\'/%3E %3Cpath fill-rule=\\'evenodd\\' clip-rule=\\'evenodd\\' d=\\'M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z\\' fill=\\'white\\'/%3E %3C/svg%3E `}};vJ.walletLogo=U_t});var ZFe=me(wJ=>{\"use strict\";f();Object.defineProperty(wJ,\"__esModule\",{value:!0});wJ.LINK_API_URL=void 0;wJ.LINK_API_URL=\"https://www.walletlink.org\"});var QFe=me(()=>{f()});var pR=me((JFe,Xhe)=>{f();(function(e,t){\"use strict\";function n(F,R){if(!F)throw new Error(R||\"Assertion failed\")}function r(F,R){F.super_=R;var O=function(){};O.prototype=R.prototype,F.prototype=new O,F.prototype.constructor=F}function o(F,R,O){if(o.isBN(F))return F;this.negative=0,this.words=null,this.length=0,this.red=null,F!==null&&((R===\"le\"||R===\"be\")&&(O=R,R=10),this._init(F||0,R||10,O||\"be\"))}typeof e==\"object\"?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;var i;try{typeof window<\"u\"&&typeof window.Buffer<\"u\"?i=window.Buffer:i=QFe().Buffer}catch{}o.isBN=function(R){return R instanceof o?!0:R!==null&&typeof R==\"object\"&&R.constructor.wordSize===o.wordSize&&Array.isArray(R.words)},o.max=function(R,O){return R.cmp(O)>0?R:O},o.min=function(R,O){return R.cmp(O)<0?R:O},o.prototype._init=function(R,O,U){if(typeof R==\"number\")return this._initNumber(R,O,U);if(typeof R==\"object\")return this._initArray(R,O,U);O===\"hex\"&&(O=16),n(O===(O|0)&&O>=2&&O<=36),R=R.toString().replace(/\\\\s+/g,\"\");var P=0;R[0]===\"-\"&&(P++,this.negative=1),P<R.length&&(O===16?this._parseHex(R,P,U):(this._parseBase(R,O,P),U===\"le\"&&this._initArray(this.toArray(),O,U)))},o.prototype._initNumber=function(R,O,U){R<0&&(this.negative=1,R=-R),R<67108864?(this.words=[R&67108863],this.length=1):R<4503599627370496?(this.words=[R&67108863,R/67108864&67108863],this.length=2):(n(R<9007199254740992),this.words=[R&67108863,R/67108864&67108863,1],this.length=3),U===\"le\"&&this._initArray(this.toArray(),O,U)},o.prototype._initArray=function(R,O,U){if(n(typeof R.length==\"number\"),R.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(R.length/3),this.words=new Array(this.length);for(var P=0;P<this.length;P++)this.words[P]=0;var L,W,q=0;if(U===\"be\")for(P=R.length-1,L=0;P>=0;P-=3)W=R[P]|R[P-1]<<8|R[P-2]<<16,this.words[L]|=W<<q&67108863,this.words[L+1]=W>>>26-q&67108863,q+=24,q>=26&&(q-=26,L++);else if(U===\"le\")for(P=0,L=0;P<R.length;P+=3)W=R[P]|R[P+1]<<8|R[P+2]<<16,this.words[L]|=W<<q&67108863,this.words[L+1]=W>>>26-q&67108863,q+=24,q>=26&&(q-=26,L++);return this._strip()};function a(F,R){var O=F.charCodeAt(R);if(O>=48&&O<=57)return O-48;if(O>=65&&O<=70)return O-55;if(O>=97&&O<=102)return O-87;n(!1,\"Invalid character in \"+F)}function c(F,R,O){var U=a(F,O);return O-1>=R&&(U|=a(F,O-1)<<4),U}o.prototype._parseHex=function(R,O,U){this.length=Math.ceil((R.length-O)/6),this.words=new Array(this.length);for(var P=0;P<this.length;P++)this.words[P]=0;var L=0,W=0,q;if(U===\"be\")for(P=R.length-1;P>=O;P-=2)q=c(R,O,P)<<L,this.words[W]|=q&67108863,L>=18?(L-=18,W+=1,this.words[W]|=q>>>26):L+=8;else{var H=R.length-O;for(P=H%2===0?O+1:O;P<R.length;P+=2)q=c(R,O,P)<<L,this.words[W]|=q&67108863,L>=18?(L-=18,W+=1,this.words[W]|=q>>>26):L+=8}this._strip()};function l(F,R,O,U){for(var P=0,L=0,W=Math.min(F.length,O),q=R;q<W;q++){var H=F.charCodeAt(q)-48;P*=U,H>=49?L=H-49+10:H>=17?L=H-17+10:L=H,n(H>=0&&L<U,\"Invalid character\"),P+=L}return P}o.prototype._parseBase=function(R,O,U){this.words=[0],this.length=1;for(var P=0,L=1;L<=67108863;L*=O)P++;P--,L=L/O|0;for(var W=R.length-U,q=W%P,H=Math.min(W,W-q)+U,k=0,V=U;V<H;V+=P)k=l(R,V,V+P,O),this.imuln(L),this.words[0]+k<67108864?this.words[0]+=k:this._iaddn(k);if(q!==0){var oe=1;for(k=l(R,V,R.length,O),V=0;V<q;V++)oe*=O;this.imuln(oe),this.words[0]+k<67108864?this.words[0]+=k:this._iaddn(k)}this._strip()},o.prototype.copy=function(R){R.words=new Array(this.length);for(var O=0;O<this.length;O++)R.words[O]=this.words[O];R.length=this.length,R.negative=this.negative,R.red=this.red};function d(F,R){F.words=R.words,F.length=R.length,F.negative=R.negative,F.red=R.red}if(o.prototype._move=function(R){d(R,this)},o.prototype.clone=function(){var R=new o(null);return this.copy(R),R},o.prototype._expand=function(R){for(;this.length<R;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<\"u\"&&typeof Symbol.for==\"function\")try{o.prototype[Symbol.for(\"nodejs.util.inspect.custom\")]=m}catch{o.prototype.inspect=m}else o.prototype.inspect=m;function m(){return(this.red?\"<BN-R: \":\"<BN: \")+this.toString(16)+\">\"}var h=[\"\",\"0\",\"00\",\"000\",\"0000\",\"00000\",\"000000\",\"0000000\",\"00000000\",\"000000000\",\"0000000000\",\"00000000000\",\"000000000000\",\"0000000000000\",\"00000000000000\",\"000000000000000\",\"0000000000000000\",\"00000000000000000\",\"000000000000000000\",\"0000000000000000000\",\"00000000000000000000\",\"000000000000000000000\",\"0000000000000000000000\",\"00000000000000000000000\",\"000000000000000000000000\",\"0000000000000000000000000\"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],y=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(R,O){R=R||10,O=O|0||1;var U;if(R===16||R===\"hex\"){U=\"\";for(var P=0,L=0,W=0;W<this.length;W++){var q=this.words[W],H=((q<<P|L)&16777215).toString(16);L=q>>>24-P&16777215,P+=2,P>=26&&(P-=26,W--),L!==0||W!==this.length-1?U=h[6-H.length]+H+U:U=H+U}for(L!==0&&(U=L.toString(16)+U);U.length%O!==0;)U=\"0\"+U;return this.negative!==0&&(U=\"-\"+U),U}if(R===(R|0)&&R>=2&&R<=36){var k=g[R],V=y[R];U=\"\";var oe=this.clone();for(oe.negative=0;!oe.isZero();){var se=oe.modrn(V).toString(R);oe=oe.idivn(V),oe.isZero()?U=se+U:U=h[k-se.length]+se+U}for(this.isZero()&&(U=\"0\"+U);U.length%O!==0;)U=\"0\"+U;return this.negative!==0&&(U=\"-\"+U),U}n(!1,\"Base should be between 2 and 36\")},o.prototype.toNumber=function(){var R=this.words[0];return this.length===2?R+=this.words[1]*67108864:this.length===3&&this.words[2]===1?R+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,\"Number can only safely store up to 53 bits\"),this.negative!==0?-R:R},o.prototype.toJSON=function(){return this.toString(16,2)},i&&(o.prototype.toBuffer=function(R,O){return this.toArrayLike(i,R,O)}),o.prototype.toArray=function(R,O){return this.toArrayLike(Array,R,O)};var w=function(R,O){return R.allocUnsafe?R.allocUnsafe(O):new R(O)};o.prototype.toArrayLike=function(R,O,U){this._strip();var P=this.byteLength(),L=U||Math.max(1,P);n(P<=L,\"byte array longer than desired length\"),n(L>0,\"Requested array length <= 0\");var W=w(R,L),q=O===\"le\"?\"LE\":\"BE\";return this[\"_toArrayLike\"+q](W,P),W},o.prototype._toArrayLikeLE=function(R,O){for(var U=0,P=0,L=0,W=0;L<this.length;L++){var q=this.words[L]<<W|P;R[U++]=q&255,U<R.length&&(R[U++]=q>>8&255),U<R.length&&(R[U++]=q>>16&255),W===6?(U<R.length&&(R[U++]=q>>24&255),P=0,W=0):(P=q>>>24,W+=2)}if(U<R.length)for(R[U++]=P;U<R.length;)R[U++]=0},o.prototype._toArrayLikeBE=function(R,O){for(var U=R.length-1,P=0,L=0,W=0;L<this.length;L++){var q=this.words[L]<<W|P;R[U--]=q&255,U>=0&&(R[U--]=q>>8&255),U>=0&&(R[U--]=q>>16&255),W===6?(U>=0&&(R[U--]=q>>24&255),P=0,W=0):(P=q>>>24,W+=2)}if(U>=0)for(R[U--]=P;U>=0;)R[U--]=0},Math.clz32?o.prototype._countBits=function(R){return 32-Math.clz32(R)}:o.prototype._countBits=function(R){var O=R,U=0;return O>=4096&&(U+=13,O>>>=13),O>=64&&(U+=7,O>>>=7),O>=8&&(U+=4,O>>>=4),O>=2&&(U+=2,O>>>=2),U+O},o.prototype._zeroBits=function(R){if(R===0)return 26;var O=R,U=0;return(O&8191)===0&&(U+=13,O>>>=13),(O&127)===0&&(U+=7,O>>>=7),(O&15)===0&&(U+=4,O>>>=4),(O&3)===0&&(U+=2,O>>>=2),(O&1)===0&&U++,U},o.prototype.bitLength=function(){var R=this.words[this.length-1],O=this._countBits(R);return(this.length-1)*26+O};function x(F){for(var R=new Array(F.bitLength()),O=0;O<R.length;O++){var U=O/26|0,P=O%26;R[O]=F.words[U]>>>P&1}return R}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var R=0,O=0;O<this.length;O++){var U=this._zeroBits(this.words[O]);if(R+=U,U!==26)break}return R},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(R){return this.negative!==0?this.abs().inotn(R).iaddn(1):this.clone()},o.prototype.fromTwos=function(R){return this.testn(R-1)?this.notn(R).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(R){for(;this.length<R.length;)this.words[this.length++]=0;for(var O=0;O<R.length;O++)this.words[O]=this.words[O]|R.words[O];return this._strip()},o.prototype.ior=function(R){return n((this.negative|R.negative)===0),this.iuor(R)},o.prototype.or=function(R){return this.length>R.length?this.clone().ior(R):R.clone().ior(this)},o.prototype.uor=function(R){return this.length>R.length?this.clone().iuor(R):R.clone().iuor(this)},o.prototype.iuand=function(R){var O;this.length>R.length?O=R:O=this;for(var U=0;U<O.length;U++)this.words[U]=this.words[U]&R.words[U];return this.length=O.length,this._strip()},o.prototype.iand=function(R){return n((this.negative|R.negative)===0),this.iuand(R)},o.prototype.and=function(R){return this.length>R.length?this.clone().iand(R):R.clone().iand(this)},o.prototype.uand=function(R){return this.length>R.length?this.clone().iuand(R):R.clone().iuand(this)},o.prototype.iuxor=function(R){var O,U;this.length>R.length?(O=this,U=R):(O=R,U=this);for(var P=0;P<U.length;P++)this.words[P]=O.words[P]^U.words[P];if(this!==O)for(;P<O.length;P++)this.words[P]=O.words[P];return this.length=O.length,this._strip()},o.prototype.ixor=function(R){return n((this.negative|R.negative)===0),this.iuxor(R)},o.prototype.xor=function(R){return this.length>R.length?this.clone().ixor(R):R.clone().ixor(this)},o.prototype.uxor=function(R){return this.length>R.length?this.clone().iuxor(R):R.clone().iuxor(this)},o.prototype.inotn=function(R){n(typeof R==\"number\"&&R>=0);var O=Math.ceil(R/26)|0,U=R%26;this._expand(O),U>0&&O--;for(var P=0;P<O;P++)this.words[P]=~this.words[P]&67108863;return U>0&&(this.words[P]=~this.words[P]&67108863>>26-U),this._strip()},o.prototype.notn=function(R){return this.clone().inotn(R)},o.prototype.setn=function(R,O){n(typeof R==\"number\"&&R>=0);var U=R/26|0,P=R%26;return this._expand(U+1),O?this.words[U]=this.words[U]|1<<P:this.words[U]=this.words[U]&~(1<<P),this._strip()},o.prototype.iadd=function(R){var O;if(this.negative!==0&&R.negative===0)return this.negative=0,O=this.isub(R),this.negative^=1,this._normSign();if(this.negative===0&&R.negative!==0)return R.negative=0,O=this.isub(R),R.negative=1,O._normSign();var U,P;this.length>R.length?(U=this,P=R):(U=R,P=this);for(var L=0,W=0;W<P.length;W++)O=(U.words[W]|0)+(P.words[W]|0)+L,this.words[W]=O&67108863,L=O>>>26;for(;L!==0&&W<U.length;W++)O=(U.words[W]|0)+L,this.words[W]=O&67108863,L=O>>>26;if(this.length=U.length,L!==0)this.words[this.length]=L,this.length++;else if(U!==this)for(;W<U.length;W++)this.words[W]=U.words[W];return this},o.prototype.add=function(R){var O;return R.negative!==0&&this.negative===0?(R.negative=0,O=this.sub(R),R.negative^=1,O):R.negative===0&&this.negative!==0?(this.negative=0,O=R.sub(this),this.negative=1,O):this.length>R.length?this.clone().iadd(R):R.clone().iadd(this)},o.prototype.isub=function(R){if(R.negative!==0){R.negative=0;var O=this.iadd(R);return R.negative=1,O._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(R),this.negative=1,this._normSign();var U=this.cmp(R);if(U===0)return this.negative=0,this.length=1,this.words[0]=0,this;var P,L;U>0?(P=this,L=R):(P=R,L=this);for(var W=0,q=0;q<L.length;q++)O=(P.words[q]|0)-(L.words[q]|0)+W,W=O>>26,this.words[q]=O&67108863;for(;W!==0&&q<P.length;q++)O=(P.words[q]|0)+W,W=O>>26,this.words[q]=O&67108863;if(W===0&&q<P.length&&P!==this)for(;q<P.length;q++)this.words[q]=P.words[q];return this.length=Math.max(this.length,q),P!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(R){return this.clone().isub(R)};function I(F,R,O){O.negative=R.negative^F.negative;var U=F.length+R.length|0;O.length=U,U=U-1|0;var P=F.words[0]|0,L=R.words[0]|0,W=P*L,q=W&67108863,H=W/67108864|0;O.words[0]=q;for(var k=1;k<U;k++){for(var V=H>>>26,oe=H&67108863,se=Math.min(k,R.length-1),ue=Math.max(0,k-F.length+1);ue<=se;ue++){var he=k-ue|0;P=F.words[he]|0,L=R.words[ue]|0,W=P*L+oe,V+=W/67108864|0,oe=W&67108863}O.words[k]=oe|0,H=V|0}return H!==0?O.words[k]=H|0:O.length--,O._strip()}var C=function(R,O,U){var P=R.words,L=O.words,W=U.words,q=0,H,k,V,oe=P[0]|0,se=oe&8191,ue=oe>>>13,he=P[1]|0,be=he&8191,we=he>>>13,Ie=P[2]|0,_e=Ie&8191,Ve=Ie>>>13,Et=P[3]|0,qe=Et&8191,Xe=Et>>>13,rt=P[4]|0,wt=rt&8191,ot=rt>>>13,mn=P[5]|0,St=mn&8191,rn=mn>>>13,$t=P[6]|0,Kt=$t&8191,en=$t>>>13,Ho=P[7]|0,Fn=Ho&8191,fn=Ho>>>13,Hs=P[8]|0,Ar=Hs&8191,Kr=Hs>>>13,Ka=P[9]|0,Sr=Ka&8191,$r=Ka>>>13,yl=L[0]|0,lr=yl&8191,de=yl>>>13,Le=L[1]|0,it=Le&8191,bt=Le>>>13,jt=L[2]|0,Yt=jt&8191,Qt=jt>>>13,ir=L[3]|0,zt=ir&8191,Mn=ir>>>13,hs=L[4]|0,eo=hs&8191,Ur=hs>>>13,Eo=L[5]|0,Fr=Eo&8191,lo=Eo>>>13,zs=L[6]|0,_r=zs&8191,zo=zs>>>13,Qu=L[7]|0,jo=Qu&8191,fi=Qu>>>13,_a=L[8]|0,Tr=_a&8191,ln=_a>>>13,ld=L[9]|0,Mo=ld&8191,Xo=ld>>>13;U.negative=R.negative^O.negative,U.length=19,H=Math.imul(se,lr),k=Math.imul(se,de),k=k+Math.imul(ue,lr)|0,V=Math.imul(ue,de);var js=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+(js>>>26)|0,js&=67108863,H=Math.imul(be,lr),k=Math.imul(be,de),k=k+Math.imul(we,lr)|0,V=Math.imul(we,de),H=H+Math.imul(se,it)|0,k=k+Math.imul(se,bt)|0,k=k+Math.imul(ue,it)|0,V=V+Math.imul(ue,bt)|0;var tf=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+(tf>>>26)|0,tf&=67108863,H=Math.imul(_e,lr),k=Math.imul(_e,de),k=k+Math.imul(Ve,lr)|0,V=Math.imul(Ve,de),H=H+Math.imul(be,it)|0,k=k+Math.imul(be,bt)|0,k=k+Math.imul(we,it)|0,V=V+Math.imul(we,bt)|0,H=H+Math.imul(se,Yt)|0,k=k+Math.imul(se,Qt)|0,k=k+Math.imul(ue,Yt)|0,V=V+Math.imul(ue,Qt)|0;var da=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+(da>>>26)|0,da&=67108863,H=Math.imul(qe,lr),k=Math.imul(qe,de),k=k+Math.imul(Xe,lr)|0,V=Math.imul(Xe,de),H=H+Math.imul(_e,it)|0,k=k+Math.imul(_e,bt)|0,k=k+Math.imul(Ve,it)|0,V=V+Math.imul(Ve,bt)|0,H=H+Math.imul(be,Yt)|0,k=k+Math.imul(be,Qt)|0,k=k+Math.imul(we,Yt)|0,V=V+Math.imul(we,Qt)|0,H=H+Math.imul(se,zt)|0,k=k+Math.imul(se,Mn)|0,k=k+Math.imul(ue,zt)|0,V=V+Math.imul(ue,Mn)|0;var Dc=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+(Dc>>>26)|0,Dc&=67108863,H=Math.imul(wt,lr),k=Math.imul(wt,de),k=k+Math.imul(ot,lr)|0,V=Math.imul(ot,de),H=H+Math.imul(qe,it)|0,k=k+Math.imul(qe,bt)|0,k=k+Math.imul(Xe,it)|0,V=V+Math.imul(Xe,bt)|0,H=H+Math.imul(_e,Yt)|0,k=k+Math.imul(_e,Qt)|0,k=k+Math.imul(Ve,Yt)|0,V=V+Math.imul(Ve,Qt)|0,H=H+Math.imul(be,zt)|0,k=k+Math.imul(be,Mn)|0,k=k+Math.imul(we,zt)|0,V=V+Math.imul(we,Mn)|0,H=H+Math.imul(se,eo)|0,k=k+Math.imul(se,Ur)|0,k=k+Math.imul(ue,eo)|0,V=V+Math.imul(ue,Ur)|0;var Ju=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+(Ju>>>26)|0,Ju&=67108863,H=Math.imul(St,lr),k=Math.imul(St,de),k=k+Math.imul(rn,lr)|0,V=Math.imul(rn,de),H=H+Math.imul(wt,it)|0,k=k+Math.imul(wt,bt)|0,k=k+Math.imul(ot,it)|0,V=V+Math.imul(ot,bt)|0,H=H+Math.imul(qe,Yt)|0,k=k+Math.imul(qe,Qt)|0,k=k+Math.imul(Xe,Yt)|0,V=V+Math.imul(Xe,Qt)|0,H=H+Math.imul(_e,zt)|0,k=k+Math.imul(_e,Mn)|0,k=k+Math.imul(Ve,zt)|0,V=V+Math.imul(Ve,Mn)|0,H=H+Math.imul(be,eo)|0,k=k+Math.imul(be,Ur)|0,k=k+Math.imul(we,eo)|0,V=V+Math.imul(we,Ur)|0,H=H+Math.imul(se,Fr)|0,k=k+Math.imul(se,lo)|0,k=k+Math.imul(ue,Fr)|0,V=V+Math.imul(ue,lo)|0;var Bc=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+(Bc>>>26)|0,Bc&=67108863,H=Math.imul(Kt,lr),k=Math.imul(Kt,de),k=k+Math.imul(en,lr)|0,V=Math.imul(en,de),H=H+Math.imul(St,it)|0,k=k+Math.imul(St,bt)|0,k=k+Math.imul(rn,it)|0,V=V+Math.imul(rn,bt)|0,H=H+Math.imul(wt,Yt)|0,k=k+Math.imul(wt,Qt)|0,k=k+Math.imul(ot,Yt)|0,V=V+Math.imul(ot,Qt)|0,H=H+Math.imul(qe,zt)|0,k=k+Math.imul(qe,Mn)|0,k=k+Math.imul(Xe,zt)|0,V=V+Math.imul(Xe,Mn)|0,H=H+Math.imul(_e,eo)|0,k=k+Math.imul(_e,Ur)|0,k=k+Math.imul(Ve,eo)|0,V=V+Math.imul(Ve,Ur)|0,H=H+Math.imul(be,Fr)|0,k=k+Math.imul(be,lo)|0,k=k+Math.imul(we,Fr)|0,V=V+Math.imul(we,lo)|0,H=H+Math.imul(se,_r)|0,k=k+Math.imul(se,zo)|0,k=k+Math.imul(ue,_r)|0,V=V+Math.imul(ue,zo)|0;var nf=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+(nf>>>26)|0,nf&=67108863,H=Math.imul(Fn,lr),k=Math.imul(Fn,de),k=k+Math.imul(fn,lr)|0,V=Math.imul(fn,de),H=H+Math.imul(Kt,it)|0,k=k+Math.imul(Kt,bt)|0,k=k+Math.imul(en,it)|0,V=V+Math.imul(en,bt)|0,H=H+Math.imul(St,Yt)|0,k=k+Math.imul(St,Qt)|0,k=k+Math.imul(rn,Yt)|0,V=V+Math.imul(rn,Qt)|0,H=H+Math.imul(wt,zt)|0,k=k+Math.imul(wt,Mn)|0,k=k+Math.imul(ot,zt)|0,V=V+Math.imul(ot,Mn)|0,H=H+Math.imul(qe,eo)|0,k=k+Math.imul(qe,Ur)|0,k=k+Math.imul(Xe,eo)|0,V=V+Math.imul(Xe,Ur)|0,H=H+Math.imul(_e,Fr)|0,k=k+Math.imul(_e,lo)|0,k=k+Math.imul(Ve,Fr)|0,V=V+Math.imul(Ve,lo)|0,H=H+Math.imul(be,_r)|0,k=k+Math.imul(be,zo)|0,k=k+Math.imul(we,_r)|0,V=V+Math.imul(we,zo)|0,H=H+Math.imul(se,jo)|0,k=k+Math.imul(se,fi)|0,k=k+Math.imul(ue,jo)|0,V=V+Math.imul(ue,fi)|0;var Li=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+(Li>>>26)|0,Li&=67108863,H=Math.imul(Ar,lr),k=Math.imul(Ar,de),k=k+Math.imul(Kr,lr)|0,V=Math.imul(Kr,de),H=H+Math.imul(Fn,it)|0,k=k+Math.imul(Fn,bt)|0,k=k+Math.imul(fn,it)|0,V=V+Math.imul(fn,bt)|0,H=H+Math.imul(Kt,Yt)|0,k=k+Math.imul(Kt,Qt)|0,k=k+Math.imul(en,Yt)|0,V=V+Math.imul(en,Qt)|0,H=H+Math.imul(St,zt)|0,k=k+Math.imul(St,Mn)|0,k=k+Math.imul(rn,zt)|0,V=V+Math.imul(rn,Mn)|0,H=H+Math.imul(wt,eo)|0,k=k+Math.imul(wt,Ur)|0,k=k+Math.imul(ot,eo)|0,V=V+Math.imul(ot,Ur)|0,H=H+Math.imul(qe,Fr)|0,k=k+Math.imul(qe,lo)|0,k=k+Math.imul(Xe,Fr)|0,V=V+Math.imul(Xe,lo)|0,H=H+Math.imul(_e,_r)|0,k=k+Math.imul(_e,zo)|0,k=k+Math.imul(Ve,_r)|0,V=V+Math.imul(Ve,zo)|0,H=H+Math.imul(be,jo)|0,k=k+Math.imul(be,fi)|0,k=k+Math.imul(we,jo)|0,V=V+Math.imul(we,fi)|0,H=H+Math.imul(se,Tr)|0,k=k+Math.imul(se,ln)|0,k=k+Math.imul(ue,Tr)|0,V=V+Math.imul(ue,ln)|0;var Ta=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+(Ta>>>26)|0,Ta&=67108863,H=Math.imul(Sr,lr),k=Math.imul(Sr,de),k=k+Math.imul($r,lr)|0,V=Math.imul($r,de),H=H+Math.imul(Ar,it)|0,k=k+Math.imul(Ar,bt)|0,k=k+Math.imul(Kr,it)|0,V=V+Math.imul(Kr,bt)|0,H=H+Math.imul(Fn,Yt)|0,k=k+Math.imul(Fn,Qt)|0,k=k+Math.imul(fn,Yt)|0,V=V+Math.imul(fn,Qt)|0,H=H+Math.imul(Kt,zt)|0,k=k+Math.imul(Kt,Mn)|0,k=k+Math.imul(en,zt)|0,V=V+Math.imul(en,Mn)|0,H=H+Math.imul(St,eo)|0,k=k+Math.imul(St,Ur)|0,k=k+Math.imul(rn,eo)|0,V=V+Math.imul(rn,Ur)|0,H=H+Math.imul(wt,Fr)|0,k=k+Math.imul(wt,lo)|0,k=k+Math.imul(ot,Fr)|0,V=V+Math.imul(ot,lo)|0,H=H+Math.imul(qe,_r)|0,k=k+Math.imul(qe,zo)|0,k=k+Math.imul(Xe,_r)|0,V=V+Math.imul(Xe,zo)|0,H=H+Math.imul(_e,jo)|0,k=k+Math.imul(_e,fi)|0,k=k+Math.imul(Ve,jo)|0,V=V+Math.imul(Ve,fi)|0,H=H+Math.imul(be,Tr)|0,k=k+Math.imul(be,ln)|0,k=k+Math.imul(we,Tr)|0,V=V+Math.imul(we,ln)|0,H=H+Math.imul(se,Mo)|0,k=k+Math.imul(se,Xo)|0,k=k+Math.imul(ue,Mo)|0,V=V+Math.imul(ue,Xo)|0;var Lc=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+(Lc>>>26)|0,Lc&=67108863,H=Math.imul(Sr,it),k=Math.imul(Sr,bt),k=k+Math.imul($r,it)|0,V=Math.imul($r,bt),H=H+Math.imul(Ar,Yt)|0,k=k+Math.imul(Ar,Qt)|0,k=k+Math.imul(Kr,Yt)|0,V=V+Math.imul(Kr,Qt)|0,H=H+Math.imul(Fn,zt)|0,k=k+Math.imul(Fn,Mn)|0,k=k+Math.imul(fn,zt)|0,V=V+Math.imul(fn,Mn)|0,H=H+Math.imul(Kt,eo)|0,k=k+Math.imul(Kt,Ur)|0,k=k+Math.imul(en,eo)|0,V=V+Math.imul(en,Ur)|0,H=H+Math.imul(St,Fr)|0,k=k+Math.imul(St,lo)|0,k=k+Math.imul(rn,Fr)|0,V=V+Math.imul(rn,lo)|0,H=H+Math.imul(wt,_r)|0,k=k+Math.imul(wt,zo)|0,k=k+Math.imul(ot,_r)|0,V=V+Math.imul(ot,zo)|0,H=H+Math.imul(qe,jo)|0,k=k+Math.imul(qe,fi)|0,k=k+Math.imul(Xe,jo)|0,V=V+Math.imul(Xe,fi)|0,H=H+Math.imul(_e,Tr)|0,k=k+Math.imul(_e,ln)|0,k=k+Math.imul(Ve,Tr)|0,V=V+Math.imul(Ve,ln)|0,H=H+Math.imul(be,Mo)|0,k=k+Math.imul(be,Xo)|0,k=k+Math.imul(we,Mo)|0,V=V+Math.imul(we,Xo)|0;var Xu=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+(Xu>>>26)|0,Xu&=67108863,H=Math.imul(Sr,Yt),k=Math.imul(Sr,Qt),k=k+Math.imul($r,Yt)|0,V=Math.imul($r,Qt),H=H+Math.imul(Ar,zt)|0,k=k+Math.imul(Ar,Mn)|0,k=k+Math.imul(Kr,zt)|0,V=V+Math.imul(Kr,Mn)|0,H=H+Math.imul(Fn,eo)|0,k=k+Math.imul(Fn,Ur)|0,k=k+Math.imul(fn,eo)|0,V=V+Math.imul(fn,Ur)|0,H=H+Math.imul(Kt,Fr)|0,k=k+Math.imul(Kt,lo)|0,k=k+Math.imul(en,Fr)|0,V=V+Math.imul(en,lo)|0,H=H+Math.imul(St,_r)|0,k=k+Math.imul(St,zo)|0,k=k+Math.imul(rn,_r)|0,V=V+Math.imul(rn,zo)|0,H=H+Math.imul(wt,jo)|0,k=k+Math.imul(wt,fi)|0,k=k+Math.imul(ot,jo)|0,V=V+Math.imul(ot,fi)|0,H=H+Math.imul(qe,Tr)|0,k=k+Math.imul(qe,ln)|0,k=k+Math.imul(Xe,Tr)|0,V=V+Math.imul(Xe,ln)|0,H=H+Math.imul(_e,Mo)|0,k=k+Math.imul(_e,Xo)|0,k=k+Math.imul(Ve,Mo)|0,V=V+Math.imul(Ve,Xo)|0;var pc=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+(pc>>>26)|0,pc&=67108863,H=Math.imul(Sr,zt),k=Math.imul(Sr,Mn),k=k+Math.imul($r,zt)|0,V=Math.imul($r,Mn),H=H+Math.imul(Ar,eo)|0,k=k+Math.imul(Ar,Ur)|0,k=k+Math.imul(Kr,eo)|0,V=V+Math.imul(Kr,Ur)|0,H=H+Math.imul(Fn,Fr)|0,k=k+Math.imul(Fn,lo)|0,k=k+Math.imul(fn,Fr)|0,V=V+Math.imul(fn,lo)|0,H=H+Math.imul(Kt,_r)|0,k=k+Math.imul(Kt,zo)|0,k=k+Math.imul(en,_r)|0,V=V+Math.imul(en,zo)|0,H=H+Math.imul(St,jo)|0,k=k+Math.imul(St,fi)|0,k=k+Math.imul(rn,jo)|0,V=V+Math.imul(rn,fi)|0,H=H+Math.imul(wt,Tr)|0,k=k+Math.imul(wt,ln)|0,k=k+Math.imul(ot,Tr)|0,V=V+Math.imul(ot,ln)|0,H=H+Math.imul(qe,Mo)|0,k=k+Math.imul(qe,Xo)|0,k=k+Math.imul(Xe,Mo)|0,V=V+Math.imul(Xe,Xo)|0;var bl=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+(bl>>>26)|0,bl&=67108863,H=Math.imul(Sr,eo),k=Math.imul(Sr,Ur),k=k+Math.imul($r,eo)|0,V=Math.imul($r,Ur),H=H+Math.imul(Ar,Fr)|0,k=k+Math.imul(Ar,lo)|0,k=k+Math.imul(Kr,Fr)|0,V=V+Math.imul(Kr,lo)|0,H=H+Math.imul(Fn,_r)|0,k=k+Math.imul(Fn,zo)|0,k=k+Math.imul(fn,_r)|0,V=V+Math.imul(fn,zo)|0,H=H+Math.imul(Kt,jo)|0,k=k+Math.imul(Kt,fi)|0,k=k+Math.imul(en,jo)|0,V=V+Math.imul(en,fi)|0,H=H+Math.imul(St,Tr)|0,k=k+Math.imul(St,ln)|0,k=k+Math.imul(rn,Tr)|0,V=V+Math.imul(rn,ln)|0,H=H+Math.imul(wt,Mo)|0,k=k+Math.imul(wt,Xo)|0,k=k+Math.imul(ot,Mo)|0,V=V+Math.imul(ot,Xo)|0;var $u=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+($u>>>26)|0,$u&=67108863,H=Math.imul(Sr,Fr),k=Math.imul(Sr,lo),k=k+Math.imul($r,Fr)|0,V=Math.imul($r,lo),H=H+Math.imul(Ar,_r)|0,k=k+Math.imul(Ar,zo)|0,k=k+Math.imul(Kr,_r)|0,V=V+Math.imul(Kr,zo)|0,H=H+Math.imul(Fn,jo)|0,k=k+Math.imul(Fn,fi)|0,k=k+Math.imul(fn,jo)|0,V=V+Math.imul(fn,fi)|0,H=H+Math.imul(Kt,Tr)|0,k=k+Math.imul(Kt,ln)|0,k=k+Math.imul(en,Tr)|0,V=V+Math.imul(en,ln)|0,H=H+Math.imul(St,Mo)|0,k=k+Math.imul(St,Xo)|0,k=k+Math.imul(rn,Mo)|0,V=V+Math.imul(rn,Xo)|0;var dd=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+(dd>>>26)|0,dd&=67108863,H=Math.imul(Sr,_r),k=Math.imul(Sr,zo),k=k+Math.imul($r,_r)|0,V=Math.imul($r,zo),H=H+Math.imul(Ar,jo)|0,k=k+Math.imul(Ar,fi)|0,k=k+Math.imul(Kr,jo)|0,V=V+Math.imul(Kr,fi)|0,H=H+Math.imul(Fn,Tr)|0,k=k+Math.imul(Fn,ln)|0,k=k+Math.imul(fn,Tr)|0,V=V+Math.imul(fn,ln)|0,H=H+Math.imul(Kt,Mo)|0,k=k+Math.imul(Kt,Xo)|0,k=k+Math.imul(en,Mo)|0,V=V+Math.imul(en,Xo)|0;var fd=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+(fd>>>26)|0,fd&=67108863,H=Math.imul(Sr,jo),k=Math.imul(Sr,fi),k=k+Math.imul($r,jo)|0,V=Math.imul($r,fi),H=H+Math.imul(Ar,Tr)|0,k=k+Math.imul(Ar,ln)|0,k=k+Math.imul(Kr,Tr)|0,V=V+Math.imul(Kr,ln)|0,H=H+Math.imul(Fn,Mo)|0,k=k+Math.imul(Fn,Xo)|0,k=k+Math.imul(fn,Mo)|0,V=V+Math.imul(fn,Xo)|0;var rf=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+(rf>>>26)|0,rf&=67108863,H=Math.imul(Sr,Tr),k=Math.imul(Sr,ln),k=k+Math.imul($r,Tr)|0,V=Math.imul($r,ln),H=H+Math.imul(Ar,Mo)|0,k=k+Math.imul(Ar,Xo)|0,k=k+Math.imul(Kr,Mo)|0,V=V+Math.imul(Kr,Xo)|0;var Im=(q+H|0)+((k&8191)<<13)|0;q=(V+(k>>>13)|0)+(Im>>>26)|0,Im&=67108863,H=Math.imul(Sr,Mo),k=Math.imul(Sr,Xo),k=k+Math.imul($r,Mo)|0,V=Math.imul($r,Xo);var L1=(q+H|0)+((k&8191)<<13)|0;return q=(V+(k>>>13)|0)+(L1>>>26)|0,L1&=67108863,W[0]=js,W[1]=tf,W[2]=da,W[3]=Dc,W[4]=Ju,W[5]=Bc,W[6]=nf,W[7]=Li,W[8]=Ta,W[9]=Lc,W[10]=Xu,W[11]=pc,W[12]=bl,W[13]=$u,W[14]=dd,W[15]=fd,W[16]=rf,W[17]=Im,W[18]=L1,q!==0&&(W[19]=q,U.length++),U};Math.imul||(C=I);function M(F,R,O){O.negative=R.negative^F.negative,O.length=F.length+R.length;for(var U=0,P=0,L=0;L<O.length-1;L++){var W=P;P=0;for(var q=U&67108863,H=Math.min(L,R.length-1),k=Math.max(0,L-F.length+1);k<=H;k++){var V=L-k,oe=F.words[V]|0,se=R.words[k]|0,ue=oe*se,he=ue&67108863;W=W+(ue/67108864|0)|0,he=he+q|0,q=he&67108863,W=W+(he>>>26)|0,P+=W>>>26,W&=67108863}O.words[L]=q,U=W,W=P}return U!==0?O.words[L]=U:O.length--,O._strip()}function B(F,R,O){return M(F,R,O)}o.prototype.mulTo=function(R,O){var U,P=this.length+R.length;return this.length===10&&R.length===10?U=C(this,R,O):P<63?U=I(this,R,O):P<1024?U=M(this,R,O):U=B(this,R,O),U};function z(F,R){this.x=F,this.y=R}z.prototype.makeRBT=function(R){for(var O=new Array(R),U=o.prototype._countBits(R)-1,P=0;P<R;P++)O[P]=this.revBin(P,U,R);return O},z.prototype.revBin=function(R,O,U){if(R===0||R===U-1)return R;for(var P=0,L=0;L<O;L++)P|=(R&1)<<O-L-1,R>>=1;return P},z.prototype.permute=function(R,O,U,P,L,W){for(var q=0;q<W;q++)P[q]=O[R[q]],L[q]=U[R[q]]},z.prototype.transform=function(R,O,U,P,L,W){this.permute(W,R,O,U,P,L);for(var q=1;q<L;q<<=1)for(var H=q<<1,k=Math.cos(2*Math.PI/H),V=Math.sin(2*Math.PI/H),oe=0;oe<L;oe+=H)for(var se=k,ue=V,he=0;he<q;he++){var be=U[oe+he],we=P[oe+he],Ie=U[oe+he+q],_e=P[oe+he+q],Ve=se*Ie-ue*_e;_e=se*_e+ue*Ie,Ie=Ve,U[oe+he]=be+Ie,P[oe+he]=we+_e,U[oe+he+q]=be-Ie,P[oe+he+q]=we-_e,he!==H&&(Ve=k*se-V*ue,ue=k*ue+V*se,se=Ve)}},z.prototype.guessLen13b=function(R,O){var U=Math.max(O,R)|1,P=U&1,L=0;for(U=U/2|0;U;U=U>>>1)L++;return 1<<L+1+P},z.prototype.conjugate=function(R,O,U){if(!(U<=1))for(var P=0;P<U/2;P++){var L=R[P];R[P]=R[U-P-1],R[U-P-1]=L,L=O[P],O[P]=-O[U-P-1],O[U-P-1]=-L}},z.prototype.normalize13b=function(R,O){for(var U=0,P=0;P<O/2;P++){var L=Math.round(R[2*P+1]/O)*8192+Math.round(R[2*P]/O)+U;R[P]=L&67108863,L<67108864?U=0:U=L/67108864|0}return R},z.prototype.convert13b=function(R,O,U,P){for(var L=0,W=0;W<O;W++)L=L+(R[W]|0),U[2*W]=L&8191,L=L>>>13,U[2*W+1]=L&8191,L=L>>>13;for(W=2*O;W<P;++W)U[W]=0;n(L===0),n((L&-8192)===0)},z.prototype.stub=function(R){for(var O=new Array(R),U=0;U<R;U++)O[U]=0;return O},z.prototype.mulp=function(R,O,U){var P=2*this.guessLen13b(R.length,O.length),L=this.makeRBT(P),W=this.stub(P),q=new Array(P),H=new Array(P),k=new Array(P),V=new Array(P),oe=new Array(P),se=new Array(P),ue=U.words;ue.length=P,this.convert13b(R.words,R.length,q,P),this.convert13b(O.words,O.length,V,P),this.transform(q,W,H,k,P,L),this.transform(V,W,oe,se,P,L);for(var he=0;he<P;he++){var be=H[he]*oe[he]-k[he]*se[he];k[he]=H[he]*se[he]+k[he]*oe[he],H[he]=be}return this.conjugate(H,k,P),this.transform(H,k,ue,W,P,L),this.conjugate(ue,W,P),this.normalize13b(ue,P),U.negative=R.negative^O.negative,U.length=R.length+O.length,U._strip()},o.prototype.mul=function(R){var O=new o(null);return O.words=new Array(this.length+R.length),this.mulTo(R,O)},o.prototype.mulf=function(R){var O=new o(null);return O.words=new Array(this.length+R.length),B(this,R,O)},o.prototype.imul=function(R){return this.clone().mulTo(R,this)},o.prototype.imuln=function(R){var O=R<0;O&&(R=-R),n(typeof R==\"number\"),n(R<67108864);for(var U=0,P=0;P<this.length;P++){var L=(this.words[P]|0)*R,W=(L&67108863)+(U&67108863);U>>=26,U+=L/67108864|0,U+=W>>>26,this.words[P]=W&67108863}return U!==0&&(this.words[P]=U,this.length++),this.length=R===0?1:this.length,O?this.ineg():this},o.prototype.muln=function(R){return this.clone().imuln(R)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(R){var O=x(R);if(O.length===0)return new o(1);for(var U=this,P=0;P<O.length&&O[P]===0;P++,U=U.sqr());if(++P<O.length)for(var L=U.sqr();P<O.length;P++,L=L.sqr())O[P]!==0&&(U=U.mul(L));return U},o.prototype.iushln=function(R){n(typeof R==\"number\"&&R>=0);var O=R%26,U=(R-O)/26,P=67108863>>>26-O<<26-O,L;if(O!==0){var W=0;for(L=0;L<this.length;L++){var q=this.words[L]&P,H=(this.words[L]|0)-q<<O;this.words[L]=H|W,W=q>>>26-O}W&&(this.words[L]=W,this.length++)}if(U!==0){for(L=this.length-1;L>=0;L--)this.words[L+U]=this.words[L];for(L=0;L<U;L++)this.words[L]=0;this.length+=U}return this._strip()},o.prototype.ishln=function(R){return n(this.negative===0),this.iushln(R)},o.prototype.iushrn=function(R,O,U){n(typeof R==\"number\"&&R>=0);var P;O?P=(O-O%26)/26:P=0;var L=R%26,W=Math.min((R-L)/26,this.length),q=67108863^67108863>>>L<<L,H=U;if(P-=W,P=Math.max(0,P),H){for(var k=0;k<W;k++)H.words[k]=this.words[k];H.length=W}if(W!==0)if(this.length>W)for(this.length-=W,k=0;k<this.length;k++)this.words[k]=this.words[k+W];else this.words[0]=0,this.length=1;var V=0;for(k=this.length-1;k>=0&&(V!==0||k>=P);k--){var oe=this.words[k]|0;this.words[k]=V<<26-L|oe>>>L,V=oe&q}return H&&V!==0&&(H.words[H.length++]=V),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(R,O,U){return n(this.negative===0),this.iushrn(R,O,U)},o.prototype.shln=function(R){return this.clone().ishln(R)},o.prototype.ushln=function(R){return this.clone().iushln(R)},o.prototype.shrn=function(R){return this.clone().ishrn(R)},o.prototype.ushrn=function(R){return this.clone().iushrn(R)},o.prototype.testn=function(R){n(typeof R==\"number\"&&R>=0);var O=R%26,U=(R-O)/26,P=1<<O;if(this.length<=U)return!1;var L=this.words[U];return!!(L&P)},o.prototype.imaskn=function(R){n(typeof R==\"number\"&&R>=0);var O=R%26,U=(R-O)/26;if(n(this.negative===0,\"imaskn works only with positive numbers\"),this.length<=U)return this;if(O!==0&&U++,this.length=Math.min(U,this.length),O!==0){var P=67108863^67108863>>>O<<O;this.words[this.length-1]&=P}return this._strip()},o.prototype.maskn=function(R){return this.clone().imaskn(R)},o.prototype.iaddn=function(R){return n(typeof R==\"number\"),n(R<67108864),R<0?this.isubn(-R):this.negative!==0?this.length===1&&(this.words[0]|0)<=R?(this.words[0]=R-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(R),this.negative=1,this):this._iaddn(R)},o.prototype._iaddn=function(R){this.words[0]+=R;for(var O=0;O<this.length&&this.words[O]>=67108864;O++)this.words[O]-=67108864,O===this.length-1?this.words[O+1]=1:this.words[O+1]++;return this.length=Math.max(this.length,O+1),this},o.prototype.isubn=function(R){if(n(typeof R==\"number\"),n(R<67108864),R<0)return this.iaddn(-R);if(this.negative!==0)return this.negative=0,this.iaddn(R),this.negative=1,this;if(this.words[0]-=R,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var O=0;O<this.length&&this.words[O]<0;O++)this.words[O]+=67108864,this.words[O+1]-=1;return this._strip()},o.prototype.addn=function(R){return this.clone().iaddn(R)},o.prototype.subn=function(R){return this.clone().isubn(R)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(R,O,U){var P=R.length+U,L;this._expand(P);var W,q=0;for(L=0;L<R.length;L++){W=(this.words[L+U]|0)+q;var H=(R.words[L]|0)*O;W-=H&67108863,q=(W>>26)-(H/67108864|0),this.words[L+U]=W&67108863}for(;L<this.length-U;L++)W=(this.words[L+U]|0)+q,q=W>>26,this.words[L+U]=W&67108863;if(q===0)return this._strip();for(n(q===-1),q=0,L=0;L<this.length;L++)W=-(this.words[L]|0)+q,q=W>>26,this.words[L]=W&67108863;return this.negative=1,this._strip()},o.prototype._wordDiv=function(R,O){var U=this.length-R.length,P=this.clone(),L=R,W=L.words[L.length-1]|0,q=this._countBits(W);U=26-q,U!==0&&(L=L.ushln(U),P.iushln(U),W=L.words[L.length-1]|0);var H=P.length-L.length,k;if(O!==\"mod\"){k=new o(null),k.length=H+1,k.words=new Array(k.length);for(var V=0;V<k.length;V++)k.words[V]=0}var oe=P.clone()._ishlnsubmul(L,1,H);oe.negative===0&&(P=oe,k&&(k.words[H]=1));for(var se=H-1;se>=0;se--){var ue=(P.words[L.length+se]|0)*67108864+(P.words[L.length+se-1]|0);for(ue=Math.min(ue/W|0,67108863),P._ishlnsubmul(L,ue,se);P.negative!==0;)ue--,P.negative=0,P._ishlnsubmul(L,1,se),P.isZero()||(P.negative^=1);k&&(k.words[se]=ue)}return k&&k._strip(),P._strip(),O!==\"div\"&&U!==0&&P.iushrn(U),{div:k||null,mod:P}},o.prototype.divmod=function(R,O,U){if(n(!R.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var P,L,W;return this.negative!==0&&R.negative===0?(W=this.neg().divmod(R,O),O!==\"mod\"&&(P=W.div.neg()),O!==\"div\"&&(L=W.mod.neg(),U&&L.negative!==0&&L.iadd(R)),{div:P,mod:L}):this.negative===0&&R.negative!==0?(W=this.divmod(R.neg(),O),O!==\"mod\"&&(P=W.div.neg()),{div:P,mod:W.mod}):(this.negative&R.negative)!==0?(W=this.neg().divmod(R.neg(),O),O!==\"div\"&&(L=W.mod.neg(),U&&L.negative!==0&&L.isub(R)),{div:W.div,mod:L}):R.length>this.length||this.cmp(R)<0?{div:new o(0),mod:this}:R.length===1?O===\"div\"?{div:this.divn(R.words[0]),mod:null}:O===\"mod\"?{div:null,mod:new o(this.modrn(R.words[0]))}:{div:this.divn(R.words[0]),mod:new o(this.modrn(R.words[0]))}:this._wordDiv(R,O)},o.prototype.div=function(R){return this.divmod(R,\"div\",!1).div},o.prototype.mod=function(R){return this.divmod(R,\"mod\",!1).mod},o.prototype.umod=function(R){return this.divmod(R,\"mod\",!0).mod},o.prototype.divRound=function(R){var O=this.divmod(R);if(O.mod.isZero())return O.div;var U=O.div.negative!==0?O.mod.isub(R):O.mod,P=R.ushrn(1),L=R.andln(1),W=U.cmp(P);return W<0||L===1&&W===0?O.div:O.div.negative!==0?O.div.isubn(1):O.div.iaddn(1)},o.prototype.modrn=function(R){var O=R<0;O&&(R=-R),n(R<=67108863);for(var U=(1<<26)%R,P=0,L=this.length-1;L>=0;L--)P=(U*P+(this.words[L]|0))%R;return O?-P:P},o.prototype.modn=function(R){return this.modrn(R)},o.prototype.idivn=function(R){var O=R<0;O&&(R=-R),n(R<=67108863);for(var U=0,P=this.length-1;P>=0;P--){var L=(this.words[P]|0)+U*67108864;this.words[P]=L/R|0,U=L%R}return this._strip(),O?this.ineg():this},o.prototype.divn=function(R){return this.clone().idivn(R)},o.prototype.egcd=function(R){n(R.negative===0),n(!R.isZero());var O=this,U=R.clone();O.negative!==0?O=O.umod(R):O=O.clone();for(var P=new o(1),L=new o(0),W=new o(0),q=new o(1),H=0;O.isEven()&&U.isEven();)O.iushrn(1),U.iushrn(1),++H;for(var k=U.clone(),V=O.clone();!O.isZero();){for(var oe=0,se=1;(O.words[0]&se)===0&&oe<26;++oe,se<<=1);if(oe>0)for(O.iushrn(oe);oe-- >0;)(P.isOdd()||L.isOdd())&&(P.iadd(k),L.isub(V)),P.iushrn(1),L.iushrn(1);for(var ue=0,he=1;(U.words[0]&he)===0&&ue<26;++ue,he<<=1);if(ue>0)for(U.iushrn(ue);ue-- >0;)(W.isOdd()||q.isOdd())&&(W.iadd(k),q.isub(V)),W.iushrn(1),q.iushrn(1);O.cmp(U)>=0?(O.isub(U),P.isub(W),L.isub(q)):(U.isub(O),W.isub(P),q.isub(L))}return{a:W,b:q,gcd:U.iushln(H)}},o.prototype._invmp=function(R){n(R.negative===0),n(!R.isZero());var O=this,U=R.clone();O.negative!==0?O=O.umod(R):O=O.clone();for(var P=new o(1),L=new o(0),W=U.clone();O.cmpn(1)>0&&U.cmpn(1)>0;){for(var q=0,H=1;(O.words[0]&H)===0&&q<26;++q,H<<=1);if(q>0)for(O.iushrn(q);q-- >0;)P.isOdd()&&P.iadd(W),P.iushrn(1);for(var k=0,V=1;(U.words[0]&V)===0&&k<26;++k,V<<=1);if(k>0)for(U.iushrn(k);k-- >0;)L.isOdd()&&L.iadd(W),L.iushrn(1);O.cmp(U)>=0?(O.isub(U),P.isub(L)):(U.isub(O),L.isub(P))}var oe;return O.cmpn(1)===0?oe=P:oe=L,oe.cmpn(0)<0&&oe.iadd(R),oe},o.prototype.gcd=function(R){if(this.isZero())return R.abs();if(R.isZero())return this.abs();var O=this.clone(),U=R.clone();O.negative=0,U.negative=0;for(var P=0;O.isEven()&&U.isEven();P++)O.iushrn(1),U.iushrn(1);do{for(;O.isEven();)O.iushrn(1);for(;U.isEven();)U.iushrn(1);var L=O.cmp(U);if(L<0){var W=O;O=U,U=W}else if(L===0||U.cmpn(1)===0)break;O.isub(U)}while(!0);return U.iushln(P)},o.prototype.invm=function(R){return this.egcd(R).a.umod(R)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(R){return this.words[0]&R},o.prototype.bincn=function(R){n(typeof R==\"number\");var O=R%26,U=(R-O)/26,P=1<<O;if(this.length<=U)return this._expand(U+1),this.words[U]|=P,this;for(var L=P,W=U;L!==0&&W<this.length;W++){var q=this.words[W]|0;q+=L,L=q>>>26,q&=67108863,this.words[W]=q}return L!==0&&(this.words[W]=L,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(R){var O=R<0;if(this.negative!==0&&!O)return-1;if(this.negative===0&&O)return 1;this._strip();var U;if(this.length>1)U=1;else{O&&(R=-R),n(R<=67108863,\"Number is too big\");var P=this.words[0]|0;U=P===R?0:P<R?-1:1}return this.negative!==0?-U|0:U},o.prototype.cmp=function(R){if(this.negative!==0&&R.negative===0)return-1;if(this.negative===0&&R.negative!==0)return 1;var O=this.ucmp(R);return this.negative!==0?-O|0:O},o.prototype.ucmp=function(R){if(this.length>R.length)return 1;if(this.length<R.length)return-1;for(var O=0,U=this.length-1;U>=0;U--){var P=this.words[U]|0,L=R.words[U]|0;if(P!==L){P<L?O=-1:P>L&&(O=1);break}}return O},o.prototype.gtn=function(R){return this.cmpn(R)===1},o.prototype.gt=function(R){return this.cmp(R)===1},o.prototype.gten=function(R){return this.cmpn(R)>=0},o.prototype.gte=function(R){return this.cmp(R)>=0},o.prototype.ltn=function(R){return this.cmpn(R)===-1},o.prototype.lt=function(R){return this.cmp(R)===-1},o.prototype.lten=function(R){return this.cmpn(R)<=0},o.prototype.lte=function(R){return this.cmp(R)<=0},o.prototype.eqn=function(R){return this.cmpn(R)===0},o.prototype.eq=function(R){return this.cmp(R)===0},o.red=function(R){return new Z(R)},o.prototype.toRed=function(R){return n(!this.red,\"Already a number in reduction context\"),n(this.negative===0,\"red works only with positives\"),R.convertTo(this)._forceRed(R)},o.prototype.fromRed=function(){return n(this.red,\"fromRed works only with numbers in reduction context\"),this.red.convertFrom(this)},o.prototype._forceRed=function(R){return this.red=R,this},o.prototype.forceRed=function(R){return n(!this.red,\"Already a number in reduction context\"),this._forceRed(R)},o.prototype.redAdd=function(R){return n(this.red,\"redAdd works only with red numbers\"),this.red.add(this,R)},o.prototype.redIAdd=function(R){return n(this.red,\"redIAdd works only with red numbers\"),this.red.iadd(this,R)},o.prototype.redSub=function(R){return n(this.red,\"redSub works only with red numbers\"),this.red.sub(this,R)},o.prototype.redISub=function(R){return n(this.red,\"redISub works only with red numbers\"),this.red.isub(this,R)},o.prototype.redShl=function(R){return n(this.red,\"redShl works only with red numbers\"),this.red.shl(this,R)},o.prototype.redMul=function(R){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,R),this.red.mul(this,R)},o.prototype.redIMul=function(R){return n(this.red,\"redMul works only with red numbers\"),this.red._verify2(this,R),this.red.imul(this,R)},o.prototype.redSqr=function(){return n(this.red,\"redSqr works only with red numbers\"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,\"redISqr works only with red numbers\"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,\"redSqrt works only with red numbers\"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,\"redInvm works only with red numbers\"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,\"redNeg works only with red numbers\"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(R){return n(this.red&&!R.red,\"redPow(normalNum)\"),this.red._verify1(this),this.red.pow(this,R)};var G={k256:null,p224:null,p192:null,p25519:null};function J(F,R){this.name=F,this.p=new o(R,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}J.prototype._tmp=function(){var R=new o(null);return R.words=new Array(Math.ceil(this.n/13)),R},J.prototype.ireduce=function(R){var O=R,U;do this.split(O,this.tmp),O=this.imulK(O),O=O.iadd(this.tmp),U=O.bitLength();while(U>this.n);var P=U<this.n?-1:O.ucmp(this.p);return P===0?(O.words[0]=0,O.length=1):P>0?O.isub(this.p):O.strip!==void 0?O.strip():O._strip(),O},J.prototype.split=function(R,O){R.iushrn(this.n,0,O)},J.prototype.imulK=function(R){return R.imul(this.k)};function ne(){J.call(this,\"k256\",\"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f\")}r(ne,J),ne.prototype.split=function(R,O){for(var U=4194303,P=Math.min(R.length,9),L=0;L<P;L++)O.words[L]=R.words[L];if(O.length=P,R.length<=9){R.words[0]=0,R.length=1;return}var W=R.words[9];for(O.words[O.length++]=W&U,L=10;L<R.length;L++){var q=R.words[L]|0;R.words[L-10]=(q&U)<<4|W>>>22,W=q}W>>>=22,R.words[L-10]=W,W===0&&R.length>10?R.length-=10:R.length-=9},ne.prototype.imulK=function(R){R.words[R.length]=0,R.words[R.length+1]=0,R.length+=2;for(var O=0,U=0;U<R.length;U++){var P=R.words[U]|0;O+=P*977,R.words[U]=O&67108863,O=P*64+(O/67108864|0)}return R.words[R.length-1]===0&&(R.length--,R.words[R.length-1]===0&&R.length--),R};function ie(){J.call(this,\"p224\",\"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001\")}r(ie,J);function ae(){J.call(this,\"p192\",\"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff\")}r(ae,J);function te(){J.call(this,\"25519\",\"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed\")}r(te,J),te.prototype.imulK=function(R){for(var O=0,U=0;U<R.length;U++){var P=(R.words[U]|0)*19+O,L=P&67108863;P>>>=26,R.words[U]=L,O=P}return O!==0&&(R.words[R.length++]=O),R},o._prime=function(R){if(G[R])return G[R];var O;if(R===\"k256\")O=new ne;else if(R===\"p224\")O=new ie;else if(R===\"p192\")O=new ae;else if(R===\"p25519\")O=new te;else throw new Error(\"Unknown prime \"+R);return G[R]=O,O};function Z(F){if(typeof F==\"string\"){var R=o._prime(F);this.m=R.p,this.prime=R}else n(F.gtn(1),\"modulus must be greater than 1\"),this.m=F,this.prime=null}Z.prototype._verify1=function(R){n(R.negative===0,\"red works only with positives\"),n(R.red,\"red works only with red numbers\")},Z.prototype._verify2=function(R,O){n((R.negative|O.negative)===0,\"red works only with positives\"),n(R.red&&R.red===O.red,\"red works only with red numbers\")},Z.prototype.imod=function(R){return this.prime?this.prime.ireduce(R)._forceRed(this):(d(R,R.umod(this.m)._forceRed(this)),R)},Z.prototype.neg=function(R){return R.isZero()?R.clone():this.m.sub(R)._forceRed(this)},Z.prototype.add=function(R,O){this._verify2(R,O);var U=R.add(O);return U.cmp(this.m)>=0&&U.isub(this.m),U._forceRed(this)},Z.prototype.iadd=function(R,O){this._verify2(R,O);var U=R.iadd(O);return U.cmp(this.m)>=0&&U.isub(this.m),U},Z.prototype.sub=function(R,O){this._verify2(R,O);var U=R.sub(O);return U.cmpn(0)<0&&U.iadd(this.m),U._forceRed(this)},Z.prototype.isub=function(R,O){this._verify2(R,O);var U=R.isub(O);return U.cmpn(0)<0&&U.iadd(this.m),U},Z.prototype.shl=function(R,O){return this._verify1(R),this.imod(R.ushln(O))},Z.prototype.imul=function(R,O){return this._verify2(R,O),this.imod(R.imul(O))},Z.prototype.mul=function(R,O){return this._verify2(R,O),this.imod(R.mul(O))},Z.prototype.isqr=function(R){return this.imul(R,R.clone())},Z.prototype.sqr=function(R){return this.mul(R,R)},Z.prototype.sqrt=function(R){if(R.isZero())return R.clone();var O=this.m.andln(3);if(n(O%2===1),O===3){var U=this.m.add(new o(1)).iushrn(2);return this.pow(R,U)}for(var P=this.m.subn(1),L=0;!P.isZero()&&P.andln(1)===0;)L++,P.iushrn(1);n(!P.isZero());var W=new o(1).toRed(this),q=W.redNeg(),H=this.m.subn(1).iushrn(1),k=this.m.bitLength();for(k=new o(2*k*k).toRed(this);this.pow(k,H).cmp(q)!==0;)k.redIAdd(q);for(var V=this.pow(k,P),oe=this.pow(R,P.addn(1).iushrn(1)),se=this.pow(R,P),ue=L;se.cmp(W)!==0;){for(var he=se,be=0;he.cmp(W)!==0;be++)he=he.redSqr();n(be<ue);var we=this.pow(V,new o(1).iushln(ue-be-1));oe=oe.redMul(we),V=we.redSqr(),se=se.redMul(V),ue=be}return oe},Z.prototype.invm=function(R){var O=R._invmp(this.m);return O.negative!==0?(O.negative=0,this.imod(O).redNeg()):this.imod(O)},Z.prototype.pow=function(R,O){if(O.isZero())return new o(1).toRed(this);if(O.cmpn(1)===0)return R.clone();var U=4,P=new Array(1<<U);P[0]=new o(1).toRed(this),P[1]=R;for(var L=2;L<P.length;L++)P[L]=this.mul(P[L-1],R);var W=P[0],q=0,H=0,k=O.bitLength()%26;for(k===0&&(k=26),L=O.length-1;L>=0;L--){for(var V=O.words[L],oe=k-1;oe>=0;oe--){var se=V>>oe&1;if(W!==P[0]&&(W=this.sqr(W)),se===0&&q===0){H=0;continue}q<<=1,q|=se,H++,!(H!==U&&(L!==0||oe!==0))&&(W=this.mul(W,P[q]),H=0,q=0)}k=26}return W},Z.prototype.convertTo=function(R){var O=R.umod(this.m);return O===R?O.clone():O},Z.prototype.convertFrom=function(R){var O=R.clone();return O.red=null,O},o.mont=function(R){return new X(R)};function X(F){Z.call(this,F),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}r(X,Z),X.prototype.convertTo=function(R){return this.imod(R.ushln(this.shift))},X.prototype.convertFrom=function(R){var O=this.imod(R.mul(this.rinv));return O.red=null,O},X.prototype.imul=function(R,O){if(R.isZero()||O.isZero())return R.words[0]=0,R.length=1,R;var U=R.imul(O),P=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),L=U.isub(P).iushrn(this.shift),W=L;return L.cmp(this.m)>=0?W=L.isub(this.m):L.cmpn(0)<0&&(W=L.iadd(this.m)),W._forceRed(this)},X.prototype.mul=function(R,O){if(R.isZero()||O.isZero())return new o(0)._forceRed(this);var U=R.mul(O),P=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),L=U.isub(P).iushrn(this.shift),W=L;return L.cmp(this.m)>=0?W=L.isub(this.m):L.cmpn(0)<0&&(W=L.iadd(this.m)),W._forceRed(this)},X.prototype.invm=function(R){var O=this.imod(R._invmp(this.m).mul(this.r2));return O._forceRed(this)}})(typeof Xhe>\"u\"||Xhe,JFe)});var ZU=me(FN=>{\"use strict\";f();Object.defineProperty(FN,\"__esModule\",{value:!0});FN.errorValues=FN.standardErrorCodes=void 0;FN.standardErrorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}};FN.errorValues={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"},4902:{standard:\"EIP-3085\",message:\"Unrecognized chain ID.\"}}});var EJ=me(y0=>{\"use strict\";f();Object.defineProperty(y0,\"__esModule\",{value:!0});y0.serialize=y0.getErrorCode=y0.isValidCode=y0.getMessageFromCode=y0.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var xJ=ZU(),eHe=\"Unspecified error message.\";y0.JSON_RPC_SERVER_ERROR_MESSAGE=\"Unspecified server error.\";function tHe(e,t=eHe){if(e&&Number.isInteger(e)){let n=e.toString();if($he(xJ.errorValues,n))return xJ.errorValues[n].message;if(rHe(e))return y0.JSON_RPC_SERVER_ERROR_MESSAGE}return t}y0.getMessageFromCode=tHe;function nHe(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(xJ.errorValues[t]||rHe(e))}y0.isValidCode=nHe;function F_t(e){var t;if(typeof e==\"number\")return e;if(H_t(e))return(t=e.code)!==null&&t!==void 0?t:e.errorCode}y0.getErrorCode=F_t;function H_t(e){return typeof e==\"object\"&&e!==null&&(typeof e.code==\"number\"||typeof e.errorCode==\"number\")}function z_t(e,{shouldIncludeStack:t=!1}={}){let n={};if(e&&typeof e==\"object\"&&!Array.isArray(e)&&$he(e,\"code\")&&nHe(e.code)){let r=e;n.code=r.code,r.message&&typeof r.message==\"string\"?(n.message=r.message,$he(r,\"data\")&&(n.data=r.data)):(n.message=tHe(n.code),n.data={originalError:XFe(e)})}else n.code=xJ.standardErrorCodes.rpc.internal,n.message=$Fe(e,\"message\")?e.message:eHe,n.data={originalError:XFe(e)};return t&&(n.stack=$Fe(e,\"stack\")?e.stack:void 0),n}y0.serialize=z_t;function rHe(e){return e>=-32099&&e<=-32e3}function XFe(e){return e&&typeof e==\"object\"&&!Array.isArray(e)?Object.assign({},e):e}function $he(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $Fe(e,t){return typeof e==\"object\"&&e!==null&&t in e&&typeof e[t]==\"string\"}});var aHe=me(_J=>{\"use strict\";f();Object.defineProperty(_J,\"__esModule\",{value:!0});_J.standardErrors=void 0;var Hd=ZU(),oHe=EJ();_J.standardErrors={rpc:{parse:e=>oy(Hd.standardErrorCodes.rpc.parse,e),invalidRequest:e=>oy(Hd.standardErrorCodes.rpc.invalidRequest,e),invalidParams:e=>oy(Hd.standardErrorCodes.rpc.invalidParams,e),methodNotFound:e=>oy(Hd.standardErrorCodes.rpc.methodNotFound,e),internal:e=>oy(Hd.standardErrorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum RPC Server errors must provide single object argument.\");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error(\\'\"code\" must be an integer such that: -32099 <= code <= -32005\\');return oy(t,e)},invalidInput:e=>oy(Hd.standardErrorCodes.rpc.invalidInput,e),resourceNotFound:e=>oy(Hd.standardErrorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>oy(Hd.standardErrorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>oy(Hd.standardErrorCodes.rpc.transactionRejected,e),methodNotSupported:e=>oy(Hd.standardErrorCodes.rpc.methodNotSupported,e),limitExceeded:e=>oy(Hd.standardErrorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>HN(Hd.standardErrorCodes.provider.userRejectedRequest,e),unauthorized:e=>HN(Hd.standardErrorCodes.provider.unauthorized,e),unsupportedMethod:e=>HN(Hd.standardErrorCodes.provider.unsupportedMethod,e),disconnected:e=>HN(Hd.standardErrorCodes.provider.disconnected,e),chainDisconnected:e=>HN(Hd.standardErrorCodes.provider.chainDisconnected,e),unsupportedChain:e=>HN(Hd.standardErrorCodes.provider.unsupportedChain,e),custom:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum Provider custom errors must provide single object argument.\");let{code:t,message:n,data:r}=e;if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string\\');return new SJ(t,n,r)}}};function oy(e,t){let[n,r]=iHe(t);return new AJ(e,n||(0,oHe.getMessageFromCode)(e),r)}function HN(e,t){let[n,r]=iHe(t);return new SJ(e,n||(0,oHe.getMessageFromCode)(e),r)}function iHe(e){if(e){if(typeof e==\"string\")return[e];if(typeof e==\"object\"&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&typeof t!=\"string\")throw new Error(\"Must specify string message.\");return[t||void 0,n]}}return[]}var AJ=class extends Error{constructor(t,n,r){if(!Number.isInteger(t))throw new Error(\\'\"code\" must be an integer.\\');if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string.\\');super(n),this.code=t,r!==void 0&&(this.data=r)}},SJ=class extends AJ{constructor(t,n,r){if(!j_t(t))throw new Error(\\'\"code\" must be an integer such that: 1000 <= code <= 4999\\');super(t,n,r)}};function j_t(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}});var CJ=me(TJ=>{\"use strict\";f();Object.defineProperty(TJ,\"__esModule\",{value:!0});TJ.isErrorResponse=void 0;function W_t(e){return e.errorMessage!==void 0}TJ.isErrorResponse=W_t});var IJ=me(RJ=>{\"use strict\";f();Object.defineProperty(RJ,\"__esModule\",{value:!0});RJ.LIB_VERSION=void 0;RJ.LIB_VERSION=\"3.9.3\"});var sHe=me(kJ=>{\"use strict\";f();Object.defineProperty(kJ,\"__esModule\",{value:!0});kJ.serializeError=void 0;var V_t=CJ(),G_t=IJ(),q_t=ZU(),K_t=EJ();function Y_t(e,t){let n=(0,K_t.serialize)(Z_t(e),{shouldIncludeStack:!0}),r=new URL(\"https://docs.cloud.coinbase.com/wallet-sdk/docs/errors\");r.searchParams.set(\"version\",G_t.LIB_VERSION),r.searchParams.set(\"code\",n.code.toString());let o=Q_t(n.data,t);return o&&r.searchParams.set(\"method\",o),r.searchParams.set(\"message\",n.message),Object.assign(Object.assign({},n),{docUrl:r.href})}kJ.serializeError=Y_t;function Z_t(e){return typeof e==\"string\"?{message:e,code:q_t.standardErrorCodes.rpc.internal}:(0,V_t.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method}}):e}function Q_t(e,t){let n=e?.method;if(n)return n;if(t!==void 0){if(typeof t==\"string\")return t;if(Array.isArray(t)){if(t.length>0)return t[0].method}else return t.method}}});var QU=me(iy=>{\"use strict\";f();Object.defineProperty(iy,\"__esModule\",{value:!0});iy.standardErrors=iy.standardErrorCodes=iy.serializeError=iy.getMessageFromCode=iy.getErrorCode=void 0;var J_t=ZU();Object.defineProperty(iy,\"standardErrorCodes\",{enumerable:!0,get:function(){return J_t.standardErrorCodes}});var X_t=aHe();Object.defineProperty(iy,\"standardErrors\",{enumerable:!0,get:function(){return X_t.standardErrors}});var $_t=sHe();Object.defineProperty(iy,\"serializeError\",{enumerable:!0,get:function(){return $_t.serializeError}});var cHe=EJ();Object.defineProperty(iy,\"getErrorCode\",{enumerable:!0,get:function(){return cHe.getErrorCode}});Object.defineProperty(iy,\"getMessageFromCode\",{enumerable:!0,get:function(){return cHe.getMessageFromCode}})});var XU=me(kf=>{\"use strict\";f();Object.defineProperty(kf,\"__esModule\",{value:!0});kf.ProviderType=kf.RegExpString=kf.IntNumber=kf.BigIntString=kf.AddressString=kf.HexString=kf.OpaqueType=void 0;function JU(){return e=>e}kf.OpaqueType=JU;kf.HexString=JU();kf.AddressString=JU();kf.BigIntString=JU();function eTt(e){return Math.floor(e)}kf.IntNumber=eTt;kf.RegExpString=JU();var uHe;(function(e){e.CoinbaseWallet=\"CoinbaseWallet\",e.MetaMask=\"MetaMask\",e.Unselected=\"\"})(uHe||(kf.ProviderType=uHe={}))});var _w=me(Rn=>{\"use strict\";f();var tTt=Rn&&Rn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rn,\"__esModule\",{value:!0});Rn.isMobileWeb=Rn.getLocation=Rn.isInIFrame=Rn.createQrUrl=Rn.getFavicon=Rn.range=Rn.isBigNumber=Rn.ensureParsedJSONObject=Rn.ensureBN=Rn.ensureRegExpString=Rn.ensureIntNumber=Rn.ensureBuffer=Rn.ensureAddressString=Rn.ensureEvenLengthHexString=Rn.ensureHexString=Rn.isHexString=Rn.prepend0x=Rn.strip0x=Rn.has0xPrefix=Rn.hexStringFromIntNumber=Rn.intNumberFromHexString=Rn.bigIntStringFromBN=Rn.hexStringFromBuffer=Rn.hexStringToUint8Array=Rn.uint8ArrayToHex=Rn.randomBytesHex=void 0;var mT=tTt(pR()),hR=QU(),ay=XU(),lHe=/^[0-9]*$/,dHe=/^[a-f0-9]*$/;function nTt(e){return fHe(crypto.getRandomValues(new Uint8Array(e)))}Rn.randomBytesHex=nTt;function fHe(e){return[...e].map(t=>t.toString(16).padStart(2,\"0\")).join(\"\")}Rn.uint8ArrayToHex=fHe;function rTt(e){return new Uint8Array(e.match(/.{1,2}/g).map(t=>parseInt(t,16)))}Rn.hexStringToUint8Array=rTt;function oTt(e,t=!1){let n=e.toString(\"hex\");return(0,ay.HexString)(t?`0x${n}`:n)}Rn.hexStringFromBuffer=oTt;function iTt(e){return(0,ay.BigIntString)(e.toString(10))}Rn.bigIntStringFromBN=iTt;function aTt(e){return(0,ay.IntNumber)(new mT.default(eF(e,!1),16).toNumber())}Rn.intNumberFromHexString=aTt;function sTt(e){return(0,ay.HexString)(`0x${new mT.default(e).toString(16)}`)}Rn.hexStringFromIntNumber=sTt;function eme(e){return e.startsWith(\"0x\")||e.startsWith(\"0X\")}Rn.has0xPrefix=eme;function OJ(e){return eme(e)?e.slice(2):e}Rn.strip0x=OJ;function pHe(e){return eme(e)?`0x${e.slice(2)}`:`0x${e}`}Rn.prepend0x=pHe;function $U(e){if(typeof e!=\"string\")return!1;let t=OJ(e).toLowerCase();return dHe.test(t)}Rn.isHexString=$U;function hHe(e,t=!1){if(typeof e==\"string\"){let n=OJ(e).toLowerCase();if(dHe.test(n))return(0,ay.HexString)(t?`0x${n}`:n)}throw hR.standardErrors.rpc.invalidParams(`\"${String(e)}\" is not a hexadecimal string`)}Rn.ensureHexString=hHe;function eF(e,t=!1){let n=hHe(e,!1);return n.length%2===1&&(n=(0,ay.HexString)(`0${n}`)),t?(0,ay.HexString)(`0x${n}`):n}Rn.ensureEvenLengthHexString=eF;function cTt(e){if(typeof e==\"string\"){let t=OJ(e).toLowerCase();if($U(t)&&t.length===40)return(0,ay.AddressString)(pHe(t))}throw hR.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}Rn.ensureAddressString=cTt;function uTt(e){if(globalThis.Buffer.isBuffer(e))return e;if(typeof e==\"string\"){if($U(e)){let t=eF(e,!1);return globalThis.Buffer.from(t,\"hex\")}return globalThis.Buffer.from(e,\"utf8\")}throw hR.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)}Rn.ensureBuffer=uTt;function mHe(e){if(typeof e==\"number\"&&Number.isInteger(e))return(0,ay.IntNumber)(e);if(typeof e==\"string\"){if(lHe.test(e))return(0,ay.IntNumber)(Number(e));if($U(e))return(0,ay.IntNumber)(new mT.default(eF(e,!1),16).toNumber())}throw hR.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}Rn.ensureIntNumber=mHe;function lTt(e){if(e instanceof RegExp)return(0,ay.RegExpString)(e.toString());throw hR.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)}Rn.ensureRegExpString=lTt;function dTt(e){if(e!==null&&(mT.default.isBN(e)||gHe(e)))return new mT.default(e.toString(10),10);if(typeof e==\"number\")return new mT.default(mHe(e));if(typeof e==\"string\"){if(lHe.test(e))return new mT.default(e,10);if($U(e))return new mT.default(eF(e,!1),16)}throw hR.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}Rn.ensureBN=dTt;function fTt(e){if(typeof e==\"string\")return JSON.parse(e);if(typeof e==\"object\")return e;throw hR.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)}Rn.ensureParsedJSONObject=fTt;function gHe(e){if(e==null||typeof e.constructor!=\"function\")return!1;let{constructor:t}=e;return typeof t.config==\"function\"&&typeof t.EUCLID==\"number\"}Rn.isBigNumber=gHe;function pTt(e,t){return Array.from({length:t-e},(n,r)=>e+r)}Rn.range=pTt;function hTt(){let e=document.querySelector(\\'link[sizes=\"192x192\"]\\')||document.querySelector(\\'link[sizes=\"180x180\"]\\')||document.querySelector(\\'link[rel=\"icon\"]\\')||document.querySelector(\\'link[rel=\"shortcut icon\"]\\'),{protocol:t,host:n}=document.location,r=e?e.getAttribute(\"href\"):null;return!r||r.startsWith(\"javascript:\")||r.startsWith(\"vbscript:\")?null:r.startsWith(\"http://\")||r.startsWith(\"https://\")||r.startsWith(\"data:\")?r:r.startsWith(\"//\")?t+r:`${t}//${n}${r}`}Rn.getFavicon=hTt;function mTt(e,t,n,r,o,i){let a=r?\"parent-id\":\"id\",c=new URLSearchParams({[a]:e,secret:t,server:n,v:o,chainId:i.toString()}).toString();return`${n}/#/link?${c}`}Rn.createQrUrl=mTt;function yHe(){try{return window.frameElement!==null}catch{return!1}}Rn.isInIFrame=yHe;function gTt(){try{return yHe()&&window.top?window.top.location:window.location}catch{return window.location}}Rn.getLocation=gTt;function yTt(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((e=window?.navigator)===null||e===void 0?void 0:e.userAgent)}Rn.isMobileWeb=yTt});var bHe=me(NJ=>{\"use strict\";f();Object.defineProperty(NJ,\"__esModule\",{value:!0});NJ.ScopedLocalStorage=void 0;var tme=class{constructor(t){this.scope=t}setItem(t,n){localStorage.setItem(this.scopedKey(t),n)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){let t=this.scopedKey(\"\"),n=[];for(let r=0;r<localStorage.length;r++){let o=localStorage.key(r);typeof o==\"string\"&&o.startsWith(t)&&n.push(o)}n.forEach(r=>localStorage.removeItem(r))}scopedKey(t){return`${this.scope}:${t}`}};NJ.ScopedLocalStorage=tme});var MJ=me(PJ=>{\"use strict\";f();Object.defineProperty(PJ,\"__esModule\",{value:!0});PJ.EVENTS=void 0;PJ.EVENTS={STARTED_CONNECTING:\"walletlink_sdk.started.connecting\",CONNECTED_STATE_CHANGE:\"walletlink_sdk.connected\",DISCONNECTED:\"walletlink_sdk.disconnected\",METADATA_DESTROYED:\"walletlink_sdk_metadata_destroyed\",LINKED:\"walletlink_sdk.linked\",FAILURE:\"walletlink_sdk.generic_failure\",SESSION_CONFIG_RECEIVED:\"walletlink_sdk.session_config_event_received\",ETH_ACCOUNTS_STATE:\"walletlink_sdk.eth_accounts_state\",SESSION_STATE_CHANGE:\"walletlink_sdk.session_state_change\",UNLINKED_ERROR_STATE:\"walletlink_sdk.unlinked_error_state\",SKIPPED_CLEARING_SESSION:\"walletlink_sdk.skipped_clearing_session\",GENERAL_ERROR:\"walletlink_sdk.general_error\",WEB3_REQUEST:\"walletlink_sdk.web3.request\",WEB3_REQUEST_PUBLISHED:\"walletlink_sdk.web3.request_published\",WEB3_RESPONSE:\"walletlink_sdk.web3.response\",METHOD_NOT_IMPLEMENTED:\"walletlink_sdk.method_not_implemented\",UNKNOWN_ADDRESS_ENCOUNTERED:\"walletlink_sdk.unknown_address_encountered\"}});var DJ=me(Tw=>{\"use strict\";f();Object.defineProperty(Tw,\"__esModule\",{value:!0});Tw.RelayAbstract=Tw.APP_VERSION_KEY=Tw.LOCAL_STORAGE_ADDRESSES_KEY=Tw.WALLET_USER_NAME_KEY=void 0;var vHe=QU();Tw.WALLET_USER_NAME_KEY=\"walletUsername\";Tw.LOCAL_STORAGE_ADDRESSES_KEY=\"Addresses\";Tw.APP_VERSION_KEY=\"AppVersion\";var nme=class{async makeEthereumJSONRPCRequest(t,n){if(!n)throw new Error(\"Error: No jsonRpcUrl provided\");return window.fetch(n,{method:\"POST\",body:JSON.stringify(t),mode:\"cors\",headers:{\"Content-Type\":\"application/json\"}}).then(r=>r.json()).then(r=>{if(!r)throw vHe.standardErrors.rpc.parse({});let o=r,{error:i}=o;if(i)throw(0,vHe.serializeError)(i,t.method);return o})}};Tw.RelayAbstract=nme});var sy=me((Htr,rme)=>{f();typeof Object.create==\"function\"?rme.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:rme.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}}});var l1=me((ome,xHe)=>{f();var BJ=P2(),Cw=BJ.Buffer;function wHe(e,t){for(var n in e)t[n]=e[n]}Cw.from&&Cw.alloc&&Cw.allocUnsafe&&Cw.allocUnsafeSlow?xHe.exports=BJ:(wHe(BJ,ome),ome.Buffer=mR);function mR(e,t,n){return Cw(e,t,n)}mR.prototype=Object.create(Cw.prototype);wHe(Cw,mR);mR.from=function(e,t,n){if(typeof e==\"number\")throw new TypeError(\"Argument must not be a number\");return Cw(e,t,n)};mR.alloc=function(e,t,n){if(typeof e!=\"number\")throw new TypeError(\"Argument must be a number\");var r=Cw(e);return t!==void 0?typeof n==\"string\"?r.fill(t,n):r.fill(t):r.fill(0),r};mR.allocUnsafe=function(e){if(typeof e!=\"number\")throw new TypeError(\"Argument must be a number\");return Cw(e)};mR.allocUnsafeSlow=function(e){if(typeof e!=\"number\")throw new TypeError(\"Argument must be a number\");return BJ.SlowBuffer(e)}});var AHe=me((Wtr,EHe)=>{f();var bTt={}.toString;EHe.exports=Array.isArray||function(e){return bTt.call(e)==\"[object Array]\"}});var zN=me((Gtr,SHe)=>{\"use strict\";f();SHe.exports=TypeError});var ime=me((Ktr,_He)=>{\"use strict\";f();_He.exports=Object});var CHe=me((Ztr,THe)=>{\"use strict\";f();THe.exports=Error});var IHe=me((Jtr,RHe)=>{\"use strict\";f();RHe.exports=EvalError});var OHe=me(($tr,kHe)=>{\"use strict\";f();kHe.exports=RangeError});var PHe=me((tnr,NHe)=>{\"use strict\";f();NHe.exports=ReferenceError});var ame=me((rnr,MHe)=>{\"use strict\";f();MHe.exports=SyntaxError});var BHe=me((inr,DHe)=>{\"use strict\";f();DHe.exports=URIError});var UHe=me((snr,LHe)=>{\"use strict\";f();LHe.exports=Math.abs});var HHe=me((unr,FHe)=>{\"use strict\";f();FHe.exports=Math.floor});var jHe=me((dnr,zHe)=>{\"use strict\";f();zHe.exports=Math.max});var VHe=me((pnr,WHe)=>{\"use strict\";f();WHe.exports=Math.min});var qHe=me((mnr,GHe)=>{\"use strict\";f();GHe.exports=Math.pow});var YHe=me((ynr,KHe)=>{\"use strict\";f();KHe.exports=Math.round});var QHe=me((vnr,ZHe)=>{\"use strict\";f();ZHe.exports=Number.isNaN||function(t){return t!==t}});var XHe=me((xnr,JHe)=>{\"use strict\";f();var vTt=QHe();JHe.exports=function(t){return vTt(t)||t===0?t:t<0?-1:1}});var eze=me((Anr,$He)=>{\"use strict\";f();$He.exports=Object.getOwnPropertyDescriptor});var jN=me((_nr,tze)=>{\"use strict\";f();var LJ=eze();if(LJ)try{LJ([],\"length\")}catch{LJ=null}tze.exports=LJ});var tF=me((Cnr,nze)=>{\"use strict\";f();var UJ=Object.defineProperty||!1;if(UJ)try{UJ({},\"a\",{value:1})}catch{UJ=!1}nze.exports=UJ});var sme=me((Inr,rze)=>{\"use strict\";f();rze.exports=function(){if(typeof Symbol!=\"function\"||typeof Object.getOwnPropertySymbols!=\"function\")return!1;if(typeof Symbol.iterator==\"symbol\")return!0;var t={},n=Symbol(\"test\"),r=Object(n);if(typeof n==\"string\"||Object.prototype.toString.call(n)!==\"[object Symbol]\"||Object.prototype.toString.call(r)!==\"[object Symbol]\")return!1;var o=42;t[n]=o;for(var i in t)return!1;if(typeof Object.keys==\"function\"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames==\"function\"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor==\"function\"){var c=Object.getOwnPropertyDescriptor(t,n);if(c.value!==o||c.enumerable!==!0)return!1}return!0}});var aze=me((Onr,ize)=>{\"use strict\";f();var oze=typeof Symbol<\"u\"&&Symbol,wTt=sme();ize.exports=function(){return typeof oze!=\"function\"||typeof Symbol!=\"function\"||typeof oze(\"foo\")!=\"symbol\"||typeof Symbol(\"bar\")!=\"symbol\"?!1:wTt()}});var cme=me((Pnr,sze)=>{\"use strict\";f();sze.exports=typeof Reflect<\"u\"&&Reflect.getPrototypeOf||null});var ume=me((Dnr,cze)=>{\"use strict\";f();var xTt=ime();cze.exports=xTt.getPrototypeOf||null});var dze=me((Lnr,lze)=>{\"use strict\";f();var ETt=\"Function.prototype.bind called on incompatible \",ATt=Object.prototype.toString,STt=Math.max,_Tt=\"[object Function]\",uze=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},TTt=function(t,n){for(var r=[],o=n||0,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},CTt=function(e,t){for(var n=\"\",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};lze.exports=function(t){var n=this;if(typeof n!=\"function\"||ATt.apply(n)!==_Tt)throw new TypeError(ETt+n);for(var r=TTt(arguments,1),o,i=function(){if(this instanceof o){var m=n.apply(this,uze(r,arguments));return Object(m)===m?m:this}return n.apply(t,uze(r,arguments))},a=STt(0,n.length-r.length),c=[],l=0;l<a;l++)c[l]=\"$\"+l;if(o=Function(\"binder\",\"return function (\"+CTt(c,\",\")+\"){ return binder.apply(this,arguments); }\")(i),n.prototype){var d=function(){};d.prototype=n.prototype,o.prototype=new d,d.prototype=null}return o}});var WN=me((Fnr,fze)=>{\"use strict\";f();var RTt=dze();fze.exports=Function.prototype.bind||RTt});var FJ=me((znr,pze)=>{\"use strict\";f();pze.exports=Function.prototype.call});var HJ=me((Wnr,hze)=>{\"use strict\";f();hze.exports=Function.prototype.apply});var gze=me((Gnr,mze)=>{\"use strict\";f();mze.exports=typeof Reflect<\"u\"&&Reflect&&Reflect.apply});var lme=me((Knr,yze)=>{\"use strict\";f();var ITt=WN(),kTt=HJ(),OTt=FJ(),NTt=gze();yze.exports=NTt||ITt.call(OTt,kTt)});var zJ=me((Znr,bze)=>{\"use strict\";f();var PTt=WN(),MTt=zN(),DTt=FJ(),BTt=lme();bze.exports=function(t){if(t.length<1||typeof t[0]!=\"function\")throw new MTt(\"a function is required\");return BTt(PTt,DTt,t)}});var Sze=me((Jnr,Aze)=>{\"use strict\";f();var LTt=zJ(),vze=jN(),xze;try{xze=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=\"object\"||!(\"code\"in e)||e.code!==\"ERR_PROTO_ACCESS\")throw e}var dme=!!xze&&vze&&vze(Object.prototype,\"__proto__\"),Eze=Object,wze=Eze.getPrototypeOf;Aze.exports=dme&&typeof dme.get==\"function\"?LTt([dme.get]):typeof wze==\"function\"?function(t){return wze(t==null?t:Eze(t))}:!1});var fme=me(($nr,Rze)=>{\"use strict\";f();var _ze=cme(),Tze=ume(),Cze=Sze();Rze.exports=_ze?function(t){return _ze(t)}:Tze?function(t){if(!t||typeof t!=\"object\"&&typeof t!=\"function\")throw new TypeError(\"getProto: not an object\");return Tze(t)}:Cze?function(t){return Cze(t)}:null});var kze=me((trr,Ize)=>{\"use strict\";f();var UTt=Function.prototype.call,FTt=Object.prototype.hasOwnProperty,HTt=WN();Ize.exports=HTt.call(UTt,FTt)});var mme=me((rrr,Bze)=>{\"use strict\";f();var bo,zTt=ime(),jTt=CHe(),WTt=IHe(),VTt=OHe(),GTt=PHe(),KN=ame(),qN=zN(),qTt=BHe(),KTt=UHe(),YTt=HHe(),ZTt=jHe(),QTt=VHe(),JTt=qHe(),XTt=YHe(),$Tt=XHe(),Mze=Function,pme=function(e){try{return Mze(\\'\"use strict\"; return (\\'+e+\").constructor;\")()}catch{}},nF=jN(),eCt=tF(),hme=function(){throw new qN},tCt=nF?(function(){try{return arguments.callee,hme}catch{try{return nF(arguments,\"callee\").get}catch{return hme}}})():hme,VN=aze()(),Ql=fme(),nCt=ume(),rCt=cme(),Dze=HJ(),rF=FJ(),GN={},oCt=typeof Uint8Array>\"u\"||!Ql?bo:Ql(Uint8Array),gR={__proto__:null,\"%AggregateError%\":typeof AggregateError>\"u\"?bo:AggregateError,\"%Array%\":Array,\"%ArrayBuffer%\":typeof ArrayBuffer>\"u\"?bo:ArrayBuffer,\"%ArrayIteratorPrototype%\":VN&&Ql?Ql([][Symbol.iterator]()):bo,\"%AsyncFromSyncIteratorPrototype%\":bo,\"%AsyncFunction%\":GN,\"%AsyncGenerator%\":GN,\"%AsyncGeneratorFunction%\":GN,\"%AsyncIteratorPrototype%\":GN,\"%Atomics%\":typeof Atomics>\"u\"?bo:Atomics,\"%BigInt%\":typeof BigInt>\"u\"?bo:BigInt,\"%BigInt64Array%\":typeof BigInt64Array>\"u\"?bo:BigInt64Array,\"%BigUint64Array%\":typeof BigUint64Array>\"u\"?bo:BigUint64Array,\"%Boolean%\":Boolean,\"%DataView%\":typeof DataView>\"u\"?bo:DataView,\"%Date%\":Date,\"%decodeURI%\":decodeURI,\"%decodeURIComponent%\":decodeURIComponent,\"%encodeURI%\":encodeURI,\"%encodeURIComponent%\":encodeURIComponent,\"%Error%\":jTt,\"%eval%\":eval,\"%EvalError%\":WTt,\"%Float16Array%\":typeof Float16Array>\"u\"?bo:Float16Array,\"%Float32Array%\":typeof Float32Array>\"u\"?bo:Float32Array,\"%Float64Array%\":typeof Float64Array>\"u\"?bo:Float64Array,\"%FinalizationRegistry%\":typeof FinalizationRegistry>\"u\"?bo:FinalizationRegistry,\"%Function%\":Mze,\"%GeneratorFunction%\":GN,\"%Int8Array%\":typeof Int8Array>\"u\"?bo:Int8Array,\"%Int16Array%\":typeof Int16Array>\"u\"?bo:Int16Array,\"%Int32Array%\":typeof Int32Array>\"u\"?bo:Int32Array,\"%isFinite%\":isFinite,\"%isNaN%\":isNaN,\"%IteratorPrototype%\":VN&&Ql?Ql(Ql([][Symbol.iterator]())):bo,\"%JSON%\":typeof JSON==\"object\"?JSON:bo,\"%Map%\":typeof Map>\"u\"?bo:Map,\"%MapIteratorPrototype%\":typeof Map>\"u\"||!VN||!Ql?bo:Ql(new Map()[Symbol.iterator]()),\"%Math%\":Math,\"%Number%\":Number,\"%Object%\":zTt,\"%Object.getOwnPropertyDescriptor%\":nF,\"%parseFloat%\":parseFloat,\"%parseInt%\":parseInt,\"%Promise%\":typeof Promise>\"u\"?bo:Promise,\"%Proxy%\":typeof Proxy>\"u\"?bo:Proxy,\"%RangeError%\":VTt,\"%ReferenceError%\":GTt,\"%Reflect%\":typeof Reflect>\"u\"?bo:Reflect,\"%RegExp%\":RegExp,\"%Set%\":typeof Set>\"u\"?bo:Set,\"%SetIteratorPrototype%\":typeof Set>\"u\"||!VN||!Ql?bo:Ql(new Set()[Symbol.iterator]()),\"%SharedArrayBuffer%\":typeof SharedArrayBuffer>\"u\"?bo:SharedArrayBuffer,\"%String%\":String,\"%StringIteratorPrototype%\":VN&&Ql?Ql(\"\"[Symbol.iterator]()):bo,\"%Symbol%\":VN?Symbol:bo,\"%SyntaxError%\":KN,\"%ThrowTypeError%\":tCt,\"%TypedArray%\":oCt,\"%TypeError%\":qN,\"%Uint8Array%\":typeof Uint8Array>\"u\"?bo:Uint8Array,\"%Uint8ClampedArray%\":typeof Uint8ClampedArray>\"u\"?bo:Uint8ClampedArray,\"%Uint16Array%\":typeof Uint16Array>\"u\"?bo:Uint16Array,\"%Uint32Array%\":typeof Uint32Array>\"u\"?bo:Uint32Array,\"%URIError%\":qTt,\"%WeakMap%\":typeof WeakMap>\"u\"?bo:WeakMap,\"%WeakRef%\":typeof WeakRef>\"u\"?bo:WeakRef,\"%WeakSet%\":typeof WeakSet>\"u\"?bo:WeakSet,\"%Function.prototype.call%\":rF,\"%Function.prototype.apply%\":Dze,\"%Object.defineProperty%\":eCt,\"%Object.getPrototypeOf%\":nCt,\"%Math.abs%\":KTt,\"%Math.floor%\":YTt,\"%Math.max%\":ZTt,\"%Math.min%\":QTt,\"%Math.pow%\":JTt,\"%Math.round%\":XTt,\"%Math.sign%\":$Tt,\"%Reflect.getPrototypeOf%\":rCt};if(Ql)try{null.error}catch(e){Oze=Ql(Ql(e)),gR[\"%Error.prototype%\"]=Oze}var Oze,iCt=function e(t){var n;if(t===\"%AsyncFunction%\")n=pme(\"async function () {}\");else if(t===\"%GeneratorFunction%\")n=pme(\"function* () {}\");else if(t===\"%AsyncGeneratorFunction%\")n=pme(\"async function* () {}\");else if(t===\"%AsyncGenerator%\"){var r=e(\"%AsyncGeneratorFunction%\");r&&(n=r.prototype)}else if(t===\"%AsyncIteratorPrototype%\"){var o=e(\"%AsyncGenerator%\");o&&Ql&&(n=Ql(o.prototype))}return gR[t]=n,n},Nze={__proto__:null,\"%ArrayBufferPrototype%\":[\"ArrayBuffer\",\"prototype\"],\"%ArrayPrototype%\":[\"Array\",\"prototype\"],\"%ArrayProto_entries%\":[\"Array\",\"prototype\",\"entries\"],\"%ArrayProto_forEach%\":[\"Array\",\"prototype\",\"forEach\"],\"%ArrayProto_keys%\":[\"Array\",\"prototype\",\"keys\"],\"%ArrayProto_values%\":[\"Array\",\"prototype\",\"values\"],\"%AsyncFunctionPrototype%\":[\"AsyncFunction\",\"prototype\"],\"%AsyncGenerator%\":[\"AsyncGeneratorFunction\",\"prototype\"],\"%AsyncGeneratorPrototype%\":[\"AsyncGeneratorFunction\",\"prototype\",\"prototype\"],\"%BooleanPrototype%\":[\"Boolean\",\"prototype\"],\"%DataViewPrototype%\":[\"DataView\",\"prototype\"],\"%DatePrototype%\":[\"Date\",\"prototype\"],\"%ErrorPrototype%\":[\"Error\",\"prototype\"],\"%EvalErrorPrototype%\":[\"EvalError\",\"prototype\"],\"%Float32ArrayPrototype%\":[\"Float32Array\",\"prototype\"],\"%Float64ArrayPrototype%\":[\"Float64Array\",\"prototype\"],\"%FunctionPrototype%\":[\"Function\",\"prototype\"],\"%Generator%\":[\"GeneratorFunction\",\"prototype\"],\"%GeneratorPrototype%\":[\"GeneratorFunction\",\"prototype\",\"prototype\"],\"%Int8ArrayPrototype%\":[\"Int8Array\",\"prototype\"],\"%Int16ArrayPrototype%\":[\"Int16Array\",\"prototype\"],\"%Int32ArrayPrototype%\":[\"Int32Array\",\"prototype\"],\"%JSONParse%\":[\"JSON\",\"parse\"],\"%JSONStringify%\":[\"JSON\",\"stringify\"],\"%MapPrototype%\":[\"Map\",\"prototype\"],\"%NumberPrototype%\":[\"Number\",\"prototype\"],\"%ObjectPrototype%\":[\"Object\",\"prototype\"],\"%ObjProto_toString%\":[\"Object\",\"prototype\",\"toString\"],\"%ObjProto_valueOf%\":[\"Object\",\"prototype\",\"valueOf\"],\"%PromisePrototype%\":[\"Promise\",\"prototype\"],\"%PromiseProto_then%\":[\"Promise\",\"prototype\",\"then\"],\"%Promise_all%\":[\"Promise\",\"all\"],\"%Promise_reject%\":[\"Promise\",\"reject\"],\"%Promise_resolve%\":[\"Promise\",\"resolve\"],\"%RangeErrorPrototype%\":[\"RangeError\",\"prototype\"],\"%ReferenceErrorPrototype%\":[\"ReferenceError\",\"prototype\"],\"%RegExpPrototype%\":[\"RegExp\",\"prototype\"],\"%SetPrototype%\":[\"Set\",\"prototype\"],\"%SharedArrayBufferPrototype%\":[\"SharedArrayBuffer\",\"prototype\"],\"%StringPrototype%\":[\"String\",\"prototype\"],\"%SymbolPrototype%\":[\"Symbol\",\"prototype\"],\"%SyntaxErrorPrototype%\":[\"SyntaxError\",\"prototype\"],\"%TypedArrayPrototype%\":[\"TypedArray\",\"prototype\"],\"%TypeErrorPrototype%\":[\"TypeError\",\"prototype\"],\"%Uint8ArrayPrototype%\":[\"Uint8Array\",\"prototype\"],\"%Uint8ClampedArrayPrototype%\":[\"Uint8ClampedArray\",\"prototype\"],\"%Uint16ArrayPrototype%\":[\"Uint16Array\",\"prototype\"],\"%Uint32ArrayPrototype%\":[\"Uint32Array\",\"prototype\"],\"%URIErrorPrototype%\":[\"URIError\",\"prototype\"],\"%WeakMapPrototype%\":[\"WeakMap\",\"prototype\"],\"%WeakSetPrototype%\":[\"WeakSet\",\"prototype\"]},oF=WN(),jJ=kze(),aCt=oF.call(rF,Array.prototype.concat),sCt=oF.call(Dze,Array.prototype.splice),Pze=oF.call(rF,String.prototype.replace),WJ=oF.call(rF,String.prototype.slice),cCt=oF.call(rF,RegExp.prototype.exec),uCt=/[^%.[\\\\]]+|\\\\[(?:(-?\\\\d+(?:\\\\.\\\\d+)?)|([\"\\'])((?:(?!\\\\2)[^\\\\\\\\]|\\\\\\\\.)*?)\\\\2)\\\\]|(?=(?:\\\\.|\\\\[\\\\])(?:\\\\.|\\\\[\\\\]|%$))/g,lCt=/\\\\\\\\(\\\\\\\\)?/g,dCt=function(t){var n=WJ(t,0,1),r=WJ(t,-1);if(n===\"%\"&&r!==\"%\")throw new KN(\"invalid intrinsic syntax, expected closing `%`\");if(r===\"%\"&&n!==\"%\")throw new KN(\"invalid intrinsic syntax, expected opening `%`\");var o=[];return Pze(t,uCt,function(i,a,c,l){o[o.length]=c?Pze(l,lCt,\"$1\"):a||i}),o},fCt=function(t,n){var r=t,o;if(jJ(Nze,r)&&(o=Nze[r],r=\"%\"+o[0]+\"%\"),jJ(gR,r)){var i=gR[r];if(i===GN&&(i=iCt(r)),typeof i>\"u\"&&!n)throw new qN(\"intrinsic \"+t+\" exists, but is not available. Please file an issue!\");return{alias:o,name:r,value:i}}throw new KN(\"intrinsic \"+t+\" does not exist!\")};Bze.exports=function(t,n){if(typeof t!=\"string\"||t.length===0)throw new qN(\"intrinsic name must be a non-empty string\");if(arguments.length>1&&typeof n!=\"boolean\")throw new qN(\\'\"allowMissing\" argument must be a boolean\\');if(cCt(/^%?[^%]*%?$/,t)===null)throw new KN(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");var r=dCt(t),o=r.length>0?r[0]:\"\",i=fCt(\"%\"+o+\"%\",n),a=i.name,c=i.value,l=!1,d=i.alias;d&&(o=d[0],sCt(r,aCt([0,1],d)));for(var m=1,h=!0;m<r.length;m+=1){var g=r[m],y=WJ(g,0,1),w=WJ(g,-1);if((y===\\'\"\\'||y===\"\\'\"||y===\"`\"||w===\\'\"\\'||w===\"\\'\"||w===\"`\")&&y!==w)throw new KN(\"property names with quotes must have matching quotes\");if((g===\"constructor\"||!h)&&(l=!0),o+=\".\"+g,a=\"%\"+o+\"%\",jJ(gR,a))c=gR[a];else if(c!=null){if(!(g in c)){if(!n)throw new qN(\"base intrinsic for \"+t+\" exists, but the property is not available.\");return}if(nF&&m+1>=r.length){var x=nF(c,g);h=!!x,h&&\"get\"in x&&!(\"originalValue\"in x.get)?c=x.get:c=c[g]}else h=jJ(c,g),c=c[g];h&&!l&&(gR[a]=c)}}return c}});var gme=me((irr,Fze)=>{\"use strict\";f();var Lze=mme(),Uze=zJ(),pCt=Uze([Lze(\"%String.prototype.indexOf%\")]);Fze.exports=function(t,n){var r=Lze(t,!!n);return typeof r==\"function\"&&pCt(t,\".prototype.\")>-1?Uze([r]):r}});var Wze=me((srr,jze)=>{\"use strict\";f();var zze=Function.prototype.toString,YN=typeof Reflect==\"object\"&&Reflect!==null&&Reflect.apply,bme,VJ;if(typeof YN==\"function\"&&typeof Object.defineProperty==\"function\")try{bme=Object.defineProperty({},\"length\",{get:function(){throw VJ}}),VJ={},YN(function(){throw 42},null,bme)}catch(e){e!==VJ&&(YN=null)}else YN=null;var hCt=/^\\\\s*class\\\\b/,vme=function(t){try{var n=zze.call(t);return hCt.test(n)}catch{return!1}},yme=function(t){try{return vme(t)?!1:(zze.call(t),!0)}catch{return!1}},GJ=Object.prototype.toString,mCt=\"[object Object]\",gCt=\"[object Function]\",yCt=\"[object GeneratorFunction]\",bCt=\"[object HTMLAllCollection]\",vCt=\"[object HTML document.all class]\",wCt=\"[object HTMLCollection]\",xCt=typeof Symbol==\"function\"&&!!Symbol.toStringTag,ECt=!(0 in[,]),wme=function(){return!1};typeof document==\"object\"&&(Hze=document.all,GJ.call(Hze)===GJ.call(document.all)&&(wme=function(t){if((ECt||!t)&&(typeof t>\"u\"||typeof t==\"object\"))try{var n=GJ.call(t);return(n===bCt||n===vCt||n===wCt||n===mCt)&&t(\"\")==null}catch{}return!1}));var Hze;jze.exports=YN?function(t){if(wme(t))return!0;if(!t||typeof t!=\"function\"&&typeof t!=\"object\")return!1;try{YN(t,null,bme)}catch(n){if(n!==VJ)return!1}return!vme(t)&&yme(t)}:function(t){if(wme(t))return!0;if(!t||typeof t!=\"function\"&&typeof t!=\"object\")return!1;if(xCt)return yme(t);if(vme(t))return!1;var n=GJ.call(t);return n!==gCt&&n!==yCt&&!/^\\\\[object HTML/.test(n)?!1:yme(t)}});var qze=me((urr,Gze)=>{\"use strict\";f();var ACt=Wze(),SCt=Object.prototype.toString,Vze=Object.prototype.hasOwnProperty,_Ct=function(t,n,r){for(var o=0,i=t.length;o<i;o++)Vze.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},TCt=function(t,n,r){for(var o=0,i=t.length;o<i;o++)r==null?n(t.charAt(o),o,t):n.call(r,t.charAt(o),o,t)},CCt=function(t,n,r){for(var o in t)Vze.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))};function RCt(e){return SCt.call(e)===\"[object Array]\"}Gze.exports=function(t,n,r){if(!ACt(n))throw new TypeError(\"iterator must be a function\");var o;arguments.length>=3&&(o=r),RCt(t)?_Ct(t,n,o):typeof t==\"string\"?TCt(t,n,o):CCt(t,n,o)}});var Yze=me((drr,Kze)=>{\"use strict\";f();Kze.exports=[\"Float16Array\",\"Float32Array\",\"Float64Array\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"BigInt64Array\",\"BigUint64Array\"]});var Qze=me((prr,Zze)=>{\"use strict\";f();var xme=Yze(),ICt=globalThis;Zze.exports=function(){for(var t=[],n=0;n<xme.length;n++)typeof ICt[xme[n]]==\"function\"&&(t[t.length]=xme[n]);return t}});var eje=me((mrr,$ze)=>{\"use strict\";f();var Jze=tF(),kCt=ame(),ZN=zN(),Xze=jN();$ze.exports=function(t,n,r){if(!t||typeof t!=\"object\"&&typeof t!=\"function\")throw new ZN(\"`obj` must be an object or a function`\");if(typeof n!=\"string\"&&typeof n!=\"symbol\")throw new ZN(\"`property` must be a string or a symbol`\");if(arguments.length>3&&typeof arguments[3]!=\"boolean\"&&arguments[3]!==null)throw new ZN(\"`nonEnumerable`, if provided, must be a boolean or null\");if(arguments.length>4&&typeof arguments[4]!=\"boolean\"&&arguments[4]!==null)throw new ZN(\"`nonWritable`, if provided, must be a boolean or null\");if(arguments.length>5&&typeof arguments[5]!=\"boolean\"&&arguments[5]!==null)throw new ZN(\"`nonConfigurable`, if provided, must be a boolean or null\");if(arguments.length>6&&typeof arguments[6]!=\"boolean\")throw new ZN(\"`loose`, if provided, must be a boolean\");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,l=!!Xze&&Xze(t,n);if(Jze)Jze(t,n,{configurable:a===null&&l?l.configurable:!a,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(c||!o&&!i&&!a)t[n]=r;else throw new kCt(\"This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.\")}});var rje=me((yrr,nje)=>{\"use strict\";f();var Eme=tF(),tje=function(){return!!Eme};tje.hasArrayLengthDefineBug=function(){if(!Eme)return null;try{return Eme([],\"length\",{value:1}).length!==1}catch{return!0}};nje.exports=tje});var cje=me((vrr,sje)=>{\"use strict\";f();var OCt=mme(),oje=eje(),NCt=rje()(),ije=jN(),aje=zN(),PCt=OCt(\"%Math.floor%\");sje.exports=function(t,n){if(typeof t!=\"function\")throw new aje(\"`fn` is not a function\");if(typeof n!=\"number\"||n<0||n>4294967295||PCt(n)!==n)throw new aje(\"`length` must be a positive 32-bit integer\");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if(\"length\"in t&&ije){var a=ije(t,\"length\");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!r)&&(NCt?oje(t,\"length\",n,!0,!0):oje(t,\"length\",n)),t}});var lje=me((xrr,uje)=>{\"use strict\";f();var MCt=WN(),DCt=HJ(),BCt=lme();uje.exports=function(){return BCt(MCt,DCt,arguments)}});var pje=me((Arr,qJ)=>{\"use strict\";f();var LCt=cje(),dje=tF(),UCt=zJ(),fje=lje();qJ.exports=function(t){var n=UCt(arguments),r=t.length-(arguments.length-1);return LCt(n,1+(r>0?r:0),!0)};dje?dje(qJ.exports,\"apply\",{value:fje}):qJ.exports.apply=fje});var mje=me((_rr,hje)=>{\"use strict\";f();var FCt=sme();hje.exports=function(){return FCt()&&!!Symbol.toStringTag}});var wje=me((Crr,vje)=>{\"use strict\";f();var ZJ=qze(),HCt=Qze(),gje=pje(),Sme=gme(),YJ=jN(),KJ=fme(),zCt=Sme(\"Object.prototype.toString\"),bje=mje()(),yje=globalThis,Ame=HCt(),_me=Sme(\"String.prototype.slice\"),jCt=Sme(\"Array.prototype.indexOf\",!0)||function(t,n){for(var r=0;r<t.length;r+=1)if(t[r]===n)return r;return-1},QJ={__proto__:null};bje&&YJ&&KJ?ZJ(Ame,function(e){var t=new yje[e];if(Symbol.toStringTag in t&&KJ){var n=KJ(t),r=YJ(n,Symbol.toStringTag);if(!r&&n){var o=KJ(n);r=YJ(o,Symbol.toStringTag)}QJ[\"$\"+e]=gje(r.get)}}):ZJ(Ame,function(e){var t=new yje[e],n=t.slice||t.set;n&&(QJ[\"$\"+e]=gje(n))});var WCt=function(t){var n=!1;return ZJ(QJ,function(r,o){if(!n)try{\"$\"+r(t)===o&&(n=_me(o,1))}catch{}}),n},VCt=function(t){var n=!1;return ZJ(QJ,function(r,o){if(!n)try{r(t),n=_me(o,1)}catch{}}),n};vje.exports=function(t){if(!t||typeof t!=\"object\")return!1;if(!bje){var n=_me(zCt(t),8,-1);return jCt(Ame,n)>-1?n:n!==\"Object\"?!1:VCt(t)}return YJ?WCt(t):null}});var Eje=me((Irr,xje)=>{\"use strict\";f();var GCt=wje();xje.exports=function(t){return!!GCt(t)}});var Sje=me((Orr,Aje)=>{\"use strict\";f();var qCt=zN(),KCt=gme(),YCt=KCt(\"TypedArray.prototype.buffer\",!0),ZCt=Eje();Aje.exports=YCt||function(t){if(!ZCt(t))throw new qCt(\"Not a Typed Array\");return t.buffer}});var Cje=me((Prr,Tje)=>{\"use strict\";f();var d1=l1().Buffer,QCt=AHe(),JCt=Sje(),XCt=ArrayBuffer.isView||function(t){try{return JCt(t),!0}catch{return!1}},$Ct=typeof Uint8Array<\"u\",_je=typeof ArrayBuffer<\"u\"&&typeof Uint8Array<\"u\",e6t=_je&&(d1.prototype instanceof Uint8Array||d1.TYPED_ARRAY_SUPPORT);Tje.exports=function(t,n){if(d1.isBuffer(t))return t.constructor&&!(\"isBuffer\"in t)?d1.from(t):t;if(typeof t==\"string\")return d1.from(t,n);if(_je&&XCt(t)){if(t.byteLength===0)return d1.alloc(0);if(e6t){var r=d1.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}var o=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),i=d1.from(o);if(i.length===t.byteLength)return i}if($Ct&&t instanceof Uint8Array)return d1.from(t);var a=QCt(t);if(a)for(var c=0;c<t.length;c+=1){var l=t[c];if(typeof l!=\"number\"||l<0||l>255||~~l!==l)throw new RangeError(\"Array items must be numbers in the range 0-255.\")}if(a||d1.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer==\"function\"&&t.constructor.isBuffer(t))return d1.from(t);throw new TypeError(\\'The \"data\" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.\\')}});var yR=me((Drr,Rje)=>{\"use strict\";f();var t6t=l1().Buffer,n6t=Cje();function JJ(e,t){this._block=t6t.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}JJ.prototype.update=function(e,t){e=n6t(e,t||\"utf8\");for(var n=this._block,r=this._blockSize,o=e.length,i=this._len,a=0;a<o;){for(var c=i%r,l=Math.min(o-a,r-c),d=0;d<l;d++)n[c+d]=e[a+d];i+=l,a+=l,i%r===0&&this._update(n)}return this._len+=o,this};JJ.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=this._len*8;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(n&4294967295)>>>0,o=(n-r)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i};JJ.prototype._update=function(){throw new Error(\"_update must be implemented by subclass\")};Rje.exports=JJ});var Oje=me((Lrr,kje)=>{\"use strict\";f();var r6t=sy(),Ije=yR(),o6t=l1().Buffer,i6t=[1518500249,1859775393,-1894007588,-899497514],a6t=new Array(80);function iF(){this.init(),this._w=a6t,Ije.call(this,64,56)}r6t(iF,Ije);iF.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function s6t(e){return e<<5|e>>>27}function c6t(e){return e<<30|e>>>2}function u6t(e,t,n,r){return e===0?t&n|~t&r:e===2?t&n|t&r|n&r:t^n^r}iF.prototype._update=function(e){for(var t=this._w,n=this._a|0,r=this._b|0,o=this._c|0,i=this._d|0,a=this._e|0,c=0;c<16;++c)t[c]=e.readInt32BE(c*4);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var l=0;l<80;++l){var d=~~(l/20),m=s6t(n)+u6t(d,r,o,i)+a+t[l]+i6t[d]|0;a=i,i=o,o=c6t(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=i+this._d|0,this._e=a+this._e|0};iF.prototype._hash=function(){var e=o6t.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};kje.exports=iF});var Mje=me((Frr,Pje)=>{\"use strict\";f();var l6t=sy(),Nje=yR(),d6t=l1().Buffer,f6t=[1518500249,1859775393,-1894007588,-899497514],p6t=new Array(80);function aF(){this.init(),this._w=p6t,Nje.call(this,64,56)}l6t(aF,Nje);aF.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function h6t(e){return e<<1|e>>>31}function m6t(e){return e<<5|e>>>27}function g6t(e){return e<<30|e>>>2}function y6t(e,t,n,r){return e===0?t&n|~t&r:e===2?t&n|t&r|n&r:t^n^r}aF.prototype._update=function(e){for(var t=this._w,n=this._a|0,r=this._b|0,o=this._c|0,i=this._d|0,a=this._e|0,c=0;c<16;++c)t[c]=e.readInt32BE(c*4);for(;c<80;++c)t[c]=h6t(t[c-3]^t[c-8]^t[c-14]^t[c-16]);for(var l=0;l<80;++l){var d=~~(l/20),m=m6t(n)+y6t(d,r,o,i)+a+t[l]+f6t[d]|0;a=i,i=o,o=g6t(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=i+this._d|0,this._e=a+this._e|0};aF.prototype._hash=function(){var e=d6t.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};Pje.exports=aF});var Tme=me((zrr,Bje)=>{\"use strict\";f();var b6t=sy(),Dje=yR(),v6t=l1().Buffer,w6t=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],x6t=new Array(64);function sF(){this.init(),this._w=x6t,Dje.call(this,64,56)}b6t(sF,Dje);sF.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function E6t(e,t,n){return n^e&(t^n)}function A6t(e,t,n){return e&t|n&(e|t)}function S6t(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function _6t(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function T6t(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function C6t(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}sF.prototype._update=function(e){for(var t=this._w,n=this._a|0,r=this._b|0,o=this._c|0,i=this._d|0,a=this._e|0,c=this._f|0,l=this._g|0,d=this._h|0,m=0;m<16;++m)t[m]=e.readInt32BE(m*4);for(;m<64;++m)t[m]=C6t(t[m-2])+t[m-7]+T6t(t[m-15])+t[m-16]|0;for(var h=0;h<64;++h){var g=d+_6t(a)+E6t(a,c,l)+w6t[h]+t[h]|0,y=S6t(n)+A6t(n,r,o)|0;d=l,l=c,c=a,a=i+g|0,i=o,o=r,r=n,n=g+y|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=i+this._d|0,this._e=a+this._e|0,this._f=c+this._f|0,this._g=l+this._g|0,this._h=d+this._h|0};sF.prototype._hash=function(){var e=v6t.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};Bje.exports=sF});var Uje=me((Wrr,Lje)=>{\"use strict\";f();var R6t=sy(),I6t=Tme(),k6t=yR(),O6t=l1().Buffer,N6t=new Array(64);function XJ(){this.init(),this._w=N6t,k6t.call(this,64,56)}R6t(XJ,I6t);XJ.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};XJ.prototype._hash=function(){var e=O6t.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};Lje.exports=XJ});var Cme=me((Grr,Gje)=>{\"use strict\";f();var P6t=sy(),Vje=yR(),M6t=l1().Buffer,Fje=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],D6t=new Array(160);function cF(){this.init(),this._w=D6t,Vje.call(this,128,112)}P6t(cF,Vje);cF.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Hje(e,t,n){return n^e&(t^n)}function zje(e,t,n){return e&t|n&(e|t)}function jje(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function Wje(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function B6t(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function L6t(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function U6t(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function F6t(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function Jl(e,t){return e>>>0<t>>>0?1:0}cF.prototype._update=function(e){for(var t=this._w,n=this._ah|0,r=this._bh|0,o=this._ch|0,i=this._dh|0,a=this._eh|0,c=this._fh|0,l=this._gh|0,d=this._hh|0,m=this._al|0,h=this._bl|0,g=this._cl|0,y=this._dl|0,w=this._el|0,x=this._fl|0,I=this._gl|0,C=this._hl|0,M=0;M<32;M+=2)t[M]=e.readInt32BE(M*4),t[M+1]=e.readInt32BE(M*4+4);for(;M<160;M+=2){var B=t[M-30],z=t[M-30+1],G=B6t(B,z),J=L6t(z,B);B=t[M-4],z=t[M-4+1];var ne=U6t(B,z),ie=F6t(z,B),ae=t[M-14],te=t[M-14+1],Z=t[M-32],X=t[M-32+1],F=J+te|0,R=G+ae+Jl(F,J)|0;F=F+ie|0,R=R+ne+Jl(F,ie)|0,F=F+X|0,R=R+Z+Jl(F,X)|0,t[M]=R,t[M+1]=F}for(var O=0;O<160;O+=2){R=t[O],F=t[O+1];var U=zje(n,r,o),P=zje(m,h,g),L=jje(n,m),W=jje(m,n),q=Wje(a,w),H=Wje(w,a),k=Fje[O],V=Fje[O+1],oe=Hje(a,c,l),se=Hje(w,x,I),ue=C+H|0,he=d+q+Jl(ue,C)|0;ue=ue+se|0,he=he+oe+Jl(ue,se)|0,ue=ue+V|0,he=he+k+Jl(ue,V)|0,ue=ue+F|0,he=he+R+Jl(ue,F)|0;var be=W+P|0,we=L+U+Jl(be,W)|0;d=l,C=I,l=c,I=x,c=a,x=w,w=y+ue|0,a=i+he+Jl(w,y)|0,i=o,y=g,o=r,g=h,r=n,h=m,m=ue+be|0,n=he+we+Jl(m,ue)|0}this._al=this._al+m|0,this._bl=this._bl+h|0,this._cl=this._cl+g|0,this._dl=this._dl+y|0,this._el=this._el+w|0,this._fl=this._fl+x|0,this._gl=this._gl+I|0,this._hl=this._hl+C|0,this._ah=this._ah+n+Jl(this._al,m)|0,this._bh=this._bh+r+Jl(this._bl,h)|0,this._ch=this._ch+o+Jl(this._cl,g)|0,this._dh=this._dh+i+Jl(this._dl,y)|0,this._eh=this._eh+a+Jl(this._el,w)|0,this._fh=this._fh+c+Jl(this._fl,x)|0,this._gh=this._gh+l+Jl(this._gl,I)|0,this._hh=this._hh+d+Jl(this._hl,C)|0};cF.prototype._hash=function(){var e=M6t.allocUnsafe(64);function t(n,r,o){e.writeInt32BE(n,o),e.writeInt32BE(r,o+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};Gje.exports=cF});var Kje=me((Krr,qje)=>{\"use strict\";f();var H6t=sy(),z6t=Cme(),j6t=yR(),W6t=l1().Buffer,V6t=new Array(160);function $J(){this.init(),this._w=V6t,j6t.call(this,128,112)}H6t($J,z6t);$J.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};$J.prototype._hash=function(){var e=W6t.allocUnsafe(48);function t(n,r,o){e.writeInt32BE(n,o),e.writeInt32BE(r,o+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};qje.exports=$J});var Yje=me((Zrr,LE)=>{\"use strict\";f();LE.exports=function(t){var n=t.toLowerCase(),r=LE.exports[n];if(!r)throw new Error(n+\" is not supported (we accept pull requests)\");return new r};LE.exports.sha=Oje();LE.exports.sha1=Mje();LE.exports.sha224=Uje();LE.exports.sha256=Tme();LE.exports.sha384=Kje();LE.exports.sha512=Cme()});var tX=me(eX=>{\"use strict\";f();Object.defineProperty(eX,\"__esModule\",{value:!0});eX.Session=void 0;var Zje=Yje(),Qje=_w(),Jje=\"session:id\",Xje=\"session:secret\",$je=\"session:linked\",Rme=class e{constructor(t,n,r,o){this._storage=t,this._id=n||(0,Qje.randomBytesHex)(16),this._secret=r||(0,Qje.randomBytesHex)(32),this._key=new Zje.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest(\"hex\"),this._linked=!!o}static load(t){let n=t.getItem(Jje),r=t.getItem($je),o=t.getItem(Xje);return n&&o?new e(t,n,o,r===\"1\"):null}static hash(t){return new Zje.sha256().update(t).digest(\"hex\")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(t){this._linked=t,this.persistLinked()}save(){return this._storage.setItem(Jje,this._id),this._storage.setItem(Xje,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem($je,this._linked?\"1\":\"0\")}};eX.Session=Rme});var eWe=me(rX=>{\"use strict\";f();Object.defineProperty(rX,\"__esModule\",{value:!0});rX.Cipher=void 0;var nX=_w(),Ime=class{constructor(t){this.secret=t}async encrypt(t){let n=this.secret;if(n.length!==64)throw Error(\"secret must be 256 bits\");let r=crypto.getRandomValues(new Uint8Array(12)),o=await crypto.subtle.importKey(\"raw\",(0,nX.hexStringToUint8Array)(n),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),i=new TextEncoder,a=await window.crypto.subtle.encrypt({name:\"AES-GCM\",iv:r},o,i.encode(t)),c=16,l=a.slice(a.byteLength-c),d=a.slice(0,a.byteLength-c),m=new Uint8Array(l),h=new Uint8Array(d),g=new Uint8Array([...r,...m,...h]);return(0,nX.uint8ArrayToHex)(g)}async decrypt(t){let n=this.secret;if(n.length!==64)throw Error(\"secret must be 256 bits\");return new Promise((r,o)=>{(async function(){let i=await crypto.subtle.importKey(\"raw\",(0,nX.hexStringToUint8Array)(n),{name:\"aes-gcm\"},!1,[\"encrypt\",\"decrypt\"]),a=(0,nX.hexStringToUint8Array)(t),c=a.slice(0,12),l=a.slice(12,28),d=a.slice(28),m=new Uint8Array([...d,...l]),h={name:\"AES-GCM\",iv:new Uint8Array(c)};try{let g=await window.crypto.subtle.decrypt(h,i,m),y=new TextDecoder;r(y.decode(g))}catch(g){o(g)}})()})}};rX.Cipher=Ime});var tWe=me(oX=>{\"use strict\";f();Object.defineProperty(oX,\"__esModule\",{value:!0});oX.WalletLinkHTTP=void 0;var kme=class{constructor(t,n,r){this.linkAPIUrl=t,this.sessionId=n;let o=`${n}:${r}`;this.auth=`Basic ${btoa(o)}`}async markUnseenEventsAsSeen(t){return Promise.all(t.map(n=>fetch(`${this.linkAPIUrl}/events/${n.eventId}/seen`,{method:\"POST\",headers:{Authorization:this.auth}}))).catch(n=>console.error(\"Unabled to mark event as failed:\",n))}async fetchUnseenEvents(){var t;let n=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(n.ok){let{events:r,error:o}=await n.json();if(o)throw new Error(`Check unseen events failed: ${o}`);let i=(t=r?.filter(a=>a.event===\"Web3Response\").map(a=>({type:\"Event\",sessionId:this.sessionId,eventId:a.id,event:a.event,data:a.data})))!==null&&t!==void 0?t:[];return this.markUnseenEventsAsSeen(i),i}throw new Error(`Check unseen events failed: ${n.status}`)}};oX.WalletLinkHTTP=kme});var nWe=me(JN=>{\"use strict\";f();Object.defineProperty(JN,\"__esModule\",{value:!0});JN.WalletLinkWebSocket=JN.ConnectionState=void 0;var QN;(function(e){e[e.DISCONNECTED=0]=\"DISCONNECTED\",e[e.CONNECTING=1]=\"CONNECTING\",e[e.CONNECTED=2]=\"CONNECTED\"})(QN||(JN.ConnectionState=QN={}));var Ome=class{setConnectionStateListener(t){this.connectionStateListener=t}setIncomingDataListener(t){this.incomingDataListener=t}constructor(t,n=WebSocket){this.WebSocketClass=n,this.webSocket=null,this.pendingData=[],this.url=t.replace(/^http/,\"ws\")}async connect(){if(this.webSocket)throw new Error(\"webSocket object is not null\");return new Promise((t,n)=>{var r;let o;try{this.webSocket=o=new this.WebSocketClass(this.url)}catch(i){n(i);return}(r=this.connectionStateListener)===null||r===void 0||r.call(this,QN.CONNECTING),o.onclose=i=>{var a;this.clearWebSocket(),n(new Error(`websocket error ${i.code}: ${i.reason}`)),(a=this.connectionStateListener)===null||a===void 0||a.call(this,QN.DISCONNECTED)},o.onopen=i=>{var a;t(),(a=this.connectionStateListener)===null||a===void 0||a.call(this,QN.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(l=>this.sendData(l)),this.pendingData=[])},o.onmessage=i=>{var a,c;if(i.data===\"h\")(a=this.incomingDataListener)===null||a===void 0||a.call(this,{type:\"Heartbeat\"});else try{let l=JSON.parse(i.data);(c=this.incomingDataListener)===null||c===void 0||c.call(this,l)}catch{}}})}disconnect(){var t;let{webSocket:n}=this;if(n){this.clearWebSocket(),(t=this.connectionStateListener)===null||t===void 0||t.call(this,QN.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{n.close()}catch{}}}sendData(t){let{webSocket:n}=this;if(!n){this.pendingData.push(t),this.connect();return}n.send(t)}clearWebSocket(){let{webSocket:t}=this;t&&(this.webSocket=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.onopen=null)}};JN.WalletLinkWebSocket=Ome});var iWe=me(aX=>{\"use strict\";f();Object.defineProperty(aX,\"__esModule\",{value:!0});aX.WalletLinkConnection=void 0;var XN=XU(),G6t=eWe(),Rw=MJ(),rWe=DJ(),$N=tX(),q6t=tWe(),iX=nWe(),oWe=1e4,K6t=6e4,Nme=class{constructor({session:t,linkAPIUrl:n,listener:r,diagnostic:o,WebSocketClass:i=WebSocket}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,XN.IntNumber)(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=c=>{if(!c)return;new Map([[\"__destroyed\",this.handleDestroyed],[\"EthereumAddress\",this.handleAccountUpdated],[\"WalletUsername\",this.handleWalletUsernameUpdated],[\"AppVersion\",this.handleAppVersionUpdated],[\"ChainId\",d=>c.JsonRpcUrl&&this.handleChainUpdated(d,c.JsonRpcUrl)]]).forEach((d,m)=>{let h=c[m];h!==void 0&&d(h)})},this.handleDestroyed=c=>{var l,d;c===\"1\"&&((l=this.listener)===null||l===void 0||l.resetAndReload(),(d=this.diagnostic)===null||d===void 0||d.log(Rw.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:this.isDestroyed,sessionIdHash:$N.Session.hash(this.session.id)}))},this.handleAccountUpdated=async c=>{var l,d;try{let m=await this.cipher.decrypt(c);(l=this.listener)===null||l===void 0||l.accountUpdated(m)}catch{(d=this.diagnostic)===null||d===void 0||d.log(Rw.EVENTS.GENERAL_ERROR,{message:\"Had error decrypting\",value:\"selectedAddress\"})}},this.handleMetadataUpdated=async(c,l)=>{var d,m;try{let h=await this.cipher.decrypt(l);(d=this.listener)===null||d===void 0||d.metadataUpdated(c,h)}catch{(m=this.diagnostic)===null||m===void 0||m.log(Rw.EVENTS.GENERAL_ERROR,{message:\"Had error decrypting\",value:c})}},this.handleWalletUsernameUpdated=async c=>{this.handleMetadataUpdated(rWe.WALLET_USER_NAME_KEY,c)},this.handleAppVersionUpdated=async c=>{this.handleMetadataUpdated(rWe.APP_VERSION_KEY,c)},this.handleChainUpdated=async(c,l)=>{var d,m;try{let h=await this.cipher.decrypt(c),g=await this.cipher.decrypt(l);(d=this.listener)===null||d===void 0||d.chainUpdated(h,g)}catch{(m=this.diagnostic)===null||m===void 0||m.log(Rw.EVENTS.GENERAL_ERROR,{message:\"Had error decrypting\",value:\"chainId|jsonRpcUrl\"})}},this.session=t,this.cipher=new G6t.Cipher(t.secret),this.diagnostic=o,this.listener=r;let a=new iX.WalletLinkWebSocket(`${n}/rpc`,i);a.setConnectionStateListener(async c=>{var l;(l=this.diagnostic)===null||l===void 0||l.log(Rw.EVENTS.CONNECTED_STATE_CHANGE,{state:c,sessionIdHash:$N.Session.hash(t.id)});let d=!1;switch(c){case iX.ConnectionState.DISCONNECTED:if(!this.destroyed){let m=async()=>{await new Promise(h=>setTimeout(h,5e3)),this.destroyed||a.connect().catch(()=>{m()})};m()}break;case iX.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),d=!0}catch{}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},oWe),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();break;case iX.ConnectionState.CONNECTING:break}this.connected!==d&&(this.connected=d)}),a.setIncomingDataListener(c=>{var l,d,m;switch(c.type){case\"Heartbeat\":this.updateLastHeartbeat();return;case\"IsLinkedOK\":case\"Linked\":{let h=c.type===\"IsLinkedOK\"?c.linked:void 0;(l=this.diagnostic)===null||l===void 0||l.log(Rw.EVENTS.LINKED,{sessionIdHash:$N.Session.hash(t.id),linked:h,type:c.type,onlineGuests:c.onlineGuests}),this.linked=h||c.onlineGuests>0;break}case\"GetSessionConfigOK\":case\"SessionConfigUpdated\":{(d=this.diagnostic)===null||d===void 0||d.log(Rw.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:$N.Session.hash(t.id),metadata_keys:c&&c.metadata?Object.keys(c.metadata):void 0}),this.handleSessionMetadataUpdated(c.metadata);break}case\"Event\":{this.handleIncomingEvent(c);break}}c.id!==void 0&&((m=this.requestResolutions.get(c.id))===null||m===void 0||m(c))}),this.ws=a,this.http=new q6t.WalletLinkHTTP(n,t.id,t.key)}connect(){var t;if(this.destroyed)throw new Error(\"instance is destroyed\");(t=this.diagnostic)===null||t===void 0||t.log(Rw.EVENTS.STARTED_CONNECTING,{sessionIdHash:$N.Session.hash(this.session.id)}),this.ws.connect()}destroy(){var t;this.destroyed=!0,this.ws.disconnect(),(t=this.diagnostic)===null||t===void 0||t.log(Rw.EVENTS.DISCONNECTED,{sessionIdHash:$N.Session.hash(this.session.id)}),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(t){var n,r;this._connected=t,t&&((n=this.onceConnected)===null||n===void 0||n.call(this)),(r=this.listener)===null||r===void 0||r.connectedUpdated(t)}setOnceConnected(t){return new Promise(n=>{this.connected?t().then(n):this.onceConnected=()=>{t().then(n),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(t){var n,r;this._linked=t,t&&((n=this.onceLinked)===null||n===void 0||n.call(this)),(r=this.listener)===null||r===void 0||r.linkedUpdated(t)}setOnceLinked(t){return new Promise(n=>{this.linked?t().then(n):this.onceLinked=()=>{t().then(n),this.onceLinked=void 0}})}async handleIncomingEvent(t){var n,r;if(!(t.type!==\"Event\"||t.event!==\"Web3Response\"))try{let o=await this.cipher.decrypt(t.data),i=JSON.parse(o);if(i.type!==\"WEB3_RESPONSE\")return;(n=this.listener)===null||n===void 0||n.handleWeb3ResponseMessage(i)}catch{(r=this.diagnostic)===null||r===void 0||r.log(Rw.EVENTS.GENERAL_ERROR,{message:\"Had error decrypting\",value:\"incomingEvent\"})}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(t=>setTimeout(t,250));try{await this.fetchUnseenEventsAPI()}catch(t){console.error(\"Unable to check for unseen events\",t)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(n=>this.handleIncomingEvent(n))}async setSessionMetadata(t,n){let r={type:\"SetSessionConfig\",id:(0,XN.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[t]:n}};return this.setOnceConnected(async()=>{let o=await this.makeRequest(r);if(o.type===\"Fail\")throw new Error(o.error||\"failed to set session metadata\")})}async publishEvent(t,n,r=!1){let o=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},n),{origin:location.origin,relaySource:window.coinbaseWalletExtension?\"injected_sdk\":\"sdk\"}))),i={type:\"PublishEvent\",id:(0,XN.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:t,data:o,callWebhook:r};return this.setOnceLinked(async()=>{let a=await this.makeRequest(i);if(a.type===\"Fail\")throw new Error(a.error||\"failed to publish event\");return a.eventId})}sendData(t){this.ws.sendData(JSON.stringify(t))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>oWe*2){this.ws.disconnect();return}try{this.ws.sendData(\"h\")}catch{}}async makeRequest(t,n=K6t){let r=t.id;this.sendData(t);let o;return Promise.race([new Promise((i,a)=>{o=window.setTimeout(()=>{a(new Error(`request ${r} timed out`))},n)}),new Promise(i=>{this.requestResolutions.set(r,a=>{clearTimeout(o),i(a),this.requestResolutions.delete(r)})})])}async authenticate(){let t={type:\"HostSession\",id:(0,XN.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},n=await this.makeRequest(t);if(n.type===\"Fail\")throw new Error(n.error||\"failed to authentcate\")}sendIsLinked(){let t={type:\"IsLinked\",id:(0,XN.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(t)}sendGetSessionConfig(){let t={type:\"GetSessionConfig\",id:(0,XN.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(t)}};aX.WalletLinkConnection=Nme});var aWe=me(Pme=>{\"use strict\";f();Object.defineProperty(Pme,\"__esModule\",{value:!0});Pme.default=\\'@namespace svg \"http://www.w3.org/2000/svg\";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Helvetica Neue\",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:\"\\\\\\\\201C\" \"\\\\\\\\201D\" \"\\\\\\\\2018\" \"\\\\\\\\2019\";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Helvetica Neue\",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}\\'});var Mme=me(eP=>{\"use strict\";f();var Y6t=eP&&eP.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eP,\"__esModule\",{value:!0});eP.injectCssReset=void 0;var Z6t=Y6t(aWe());function Q6t(){let e=document.createElement(\"style\");e.type=\"text/css\",e.appendChild(document.createTextNode(Z6t.default)),document.documentElement.appendChild(e)}eP.injectCssReset=Q6t});var Jp={};as(Jp,{Component:()=>lF,Fragment:()=>hF,cloneElement:()=>r5t,createContext:()=>o5t,createElement:()=>yWe,createRef:()=>X6t,h:()=>yWe,hydrate:()=>TWe,isValidElement:()=>dWe,options:()=>wa,render:()=>_We,toChildArray:()=>xWe});function Iw(e,t){for(var n in t)e[n]=t[n];return e}function Hme(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function yWe(e,t,n){var r,o,i,a={};for(i in t)i==\"key\"?r=t[i]:i==\"ref\"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?fF.call(arguments,2):n),typeof e==\"function\"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return uF(e,a,r,o,null)}function uF(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++lWe,__i:-1,__u:0};return o==null&&wa.vnode!=null&&wa.vnode(i),i}function X6t(){return{current:null}}function hF(e){return e.children}function lF(e,t){this.props=e,this.context=t}function tP(e,t){if(t==null)return e.__?tP(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==\"function\"?tP(e):null}function bWe(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return bWe(e)}}function Lme(e){(!e.__d&&(e.__d=!0)&&bR.push(e)&&!cX.__r++||sWe!=wa.debounceRendering)&&((sWe=wa.debounceRendering)||fWe)(cX)}function cX(){for(var e,t,n,r,o,i,a,c=1;bR.length;)bR.length>c&&bR.sort(pWe),e=bR.shift(),c=bR.length,e.__d&&(n=void 0,r=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=Iw({},r)).__v=r.__v+1,wa.vnode&&wa.vnode(n),zme(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??tP(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,EWe(i,n,a),r.__e=r.__=null,n.__e!=o&&bWe(n)));cX.__r=0}function vWe(e,t,n,r,o,i,a,c,l,d,m){var h,g,y,w,x,I,C,M=r&&r.__k||gWe,B=t.length;for(l=$6t(n,t,M,l,B),h=0;h<B;h++)(y=n.__k[h])!=null&&(g=y.__i==-1?dF:M[y.__i]||dF,y.__i=h,I=zme(e,y,g,o,i,a,c,l,d,m),w=y.__e,y.ref&&g.ref!=y.ref&&(g.ref&&jme(g.ref,null,y),m.push(y.ref,y.__c||w,y)),x==null&&w!=null&&(x=w),(C=!!(4&y.__u))||g.__k===y.__k?l=wWe(y,l,e,C):typeof y.type==\"function\"&&I!==void 0?l=I:w&&(l=w.nextSibling),y.__u&=-7);return n.__e=x,l}function $6t(e,t,n,r,o){var i,a,c,l,d,m=n.length,h=m,g=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!=\"boolean\"&&typeof a!=\"function\"?(l=i+g,(a=e.__k[i]=typeof a==\"string\"||typeof a==\"number\"||typeof a==\"bigint\"||a.constructor==String?uF(null,a,null,null,null):pF(a)?uF(hF,{children:a},null,null,null):a.constructor==null&&a.__b>0?uF(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,c=null,(d=a.__i=e5t(a,n,l,h))!=-1&&(h--,(c=n[d])&&(c.__u|=2)),c==null||c.__v==null?(d==-1&&(o>m?g--:o<m&&g++),typeof a.type!=\"function\"&&(a.__u|=4)):d!=l&&(d==l-1?g--:d==l+1?g++:(d>l?g--:g++,a.__u|=4))):e.__k[i]=null;if(h)for(i=0;i<m;i++)(c=n[i])!=null&&(2&c.__u)==0&&(c.__e==r&&(r=tP(c)),SWe(c,c));return r}function wWe(e,t,n,r){var o,i;if(typeof e.type==\"function\"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=wWe(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=tP(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function xWe(e,t){return t=t||[],e==null||typeof e==\"boolean\"||(pF(e)?e.some(function(n){xWe(n,t)}):t.push(e)),t}function e5t(e,t,n,r){var o,i,a,c=e.key,l=e.type,d=t[n],m=d!=null&&(2&d.__u)==0;if(d===null&&e.key==null||m&&c==d.key&&l==d.type)return n;if(r>(m?1:0)){for(o=n-1,i=n+1;o>=0||i<t.length;)if((d=t[a=o>=0?o--:i++])!=null&&(2&d.__u)==0&&c==d.key&&l==d.type)return a}return-1}function cWe(e,t,n){t[0]==\"-\"?e.setProperty(t,n??\"\"):e[t]=n==null?\"\":typeof n!=\"number\"||J6t.test(t)?n:n+\"px\"}function sX(e,t,n,r,o){var i,a;e:if(t==\"style\")if(typeof n==\"string\")e.style.cssText=n;else{if(typeof r==\"string\"&&(e.style.cssText=r=\"\"),r)for(t in r)n&&t in n||cWe(e.style,t,\"\");if(n)for(t in n)r&&n[t]==r[t]||cWe(e.style,t,n[t])}else if(t[0]==\"o\"&&t[1]==\"n\")i=t!=(t=t.replace(hWe,\"$1\")),a=t.toLowerCase(),t=a in e||t==\"onFocusOut\"||t==\"onFocusIn\"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Fme,e.addEventListener(t,i?Bme:Dme,i)):e.removeEventListener(t,i?Bme:Dme,i);else{if(o==\"http://www.w3.org/2000/svg\")t=t.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(t!=\"width\"&&t!=\"height\"&&t!=\"href\"&&t!=\"list\"&&t!=\"form\"&&t!=\"tabIndex\"&&t!=\"download\"&&t!=\"rowSpan\"&&t!=\"colSpan\"&&t!=\"role\"&&t!=\"popover\"&&t in e)try{e[t]=n??\"\";break e}catch{}typeof n==\"function\"||(n==null||n===!1&&t[4]!=\"-\"?e.removeAttribute(t):e.setAttribute(t,t==\"popover\"&&n==1?\"\":n))}}function uWe(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Fme++;else if(t.t<n.u)return;return n(wa.event?wa.event(t):t)}}}function zme(e,t,n,r,o,i,a,c,l,d){var m,h,g,y,w,x,I,C,M,B,z,G,J,ne,ie,ae,te,Z=t.type;if(t.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),i=[c=t.__e=n.__e]),(m=wa.__b)&&m(t);e:if(typeof Z==\"function\")try{if(C=t.props,M=\"prototype\"in Z&&Z.prototype.render,B=(m=Z.contextType)&&r[m.__c],z=m?B?B.props.value:m.__:r,n.__c?I=(h=t.__c=n.__c).__=h.__E:(M?t.__c=h=new Z(C,z):(t.__c=h=new lF(C,z),h.constructor=Z,h.render=n5t),B&&B.sub(h),h.props=C,h.state||(h.state={}),h.context=z,h.__n=r,g=h.__d=!0,h.__h=[],h._sb=[]),M&&h.__s==null&&(h.__s=h.state),M&&Z.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=Iw({},h.__s)),Iw(h.__s,Z.getDerivedStateFromProps(C,h.__s))),y=h.props,w=h.state,h.__v=t,g)M&&Z.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),M&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(M&&Z.getDerivedStateFromProps==null&&C!==y&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(C,z),!h.__e&&h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(C,h.__s,z)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(h.props=C,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(X){X&&(X.__=t)}),G=0;G<h._sb.length;G++)h.__h.push(h._sb[G]);h._sb=[],h.__h.length&&a.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(C,h.__s,z),M&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(y,w,x)})}if(h.context=z,h.props=C,h.__P=e,h.__e=!1,J=wa.__r,ne=0,M){for(h.state=h.__s,h.__d=!1,J&&J(t),m=h.render(h.props,h.state,h.context),ie=0;ie<h._sb.length;ie++)h.__h.push(h._sb[ie]);h._sb=[]}else do h.__d=!1,J&&J(t),m=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++ne<25);h.state=h.__s,h.getChildContext!=null&&(r=Iw(Iw({},r),h.getChildContext())),M&&!g&&h.getSnapshotBeforeUpdate!=null&&(x=h.getSnapshotBeforeUpdate(y,w)),ae=m,m!=null&&m.type===hF&&m.key==null&&(ae=AWe(m.props.children)),c=vWe(e,pF(ae)?ae:[ae],t,n,r,o,i,a,c,l,d),h.base=t.__e,t.__u&=-161,h.__h.length&&a.push(h),I&&(h.__E=h.__=null)}catch(X){if(t.__v=null,l||i!=null)if(X.then){for(t.__u|=l?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else{for(te=i.length;te--;)Hme(i[te]);Ume(t)}else t.__e=n.__e,t.__k=n.__k,X.then||Ume(t);wa.__e(X,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=t5t(n.__e,t,n,r,o,i,a,l,d);return(m=wa.diffed)&&m(t),128&t.__u?void 0:c}function Ume(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Ume)}function EWe(e,t,n){for(var r=0;r<n.length;r++)jme(n[r],n[++r],n[++r]);wa.__c&&wa.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){wa.__e(i,o.__v)}})}function AWe(e){return typeof e!=\"object\"||e==null||e.__b&&e.__b>0?e:pF(e)?e.map(AWe):Iw({},e)}function t5t(e,t,n,r,o,i,a,c,l){var d,m,h,g,y,w,x,I=n.props,C=t.props,M=t.type;if(M==\"svg\"?o=\"http://www.w3.org/2000/svg\":M==\"math\"?o=\"http://www.w3.org/1998/Math/MathML\":o||(o=\"http://www.w3.org/1999/xhtml\"),i!=null){for(d=0;d<i.length;d++)if((y=i[d])&&\"setAttribute\"in y==!!M&&(M?y.localName==M:y.nodeType==3)){e=y,i[d]=null;break}}if(e==null){if(M==null)return document.createTextNode(C);e=document.createElementNS(o,M,C.is&&C),c&&(wa.__m&&wa.__m(t,i),c=!1),i=null}if(M==null)I===C||c&&e.data==C||(e.data=C);else{if(i=i&&fF.call(e.childNodes),I=n.props||dF,!c&&i!=null)for(I={},d=0;d<e.attributes.length;d++)I[(y=e.attributes[d]).name]=y.value;for(d in I)if(y=I[d],d!=\"children\"){if(d==\"dangerouslySetInnerHTML\")h=y;else if(!(d in C)){if(d==\"value\"&&\"defaultValue\"in C||d==\"checked\"&&\"defaultChecked\"in C)continue;sX(e,d,null,y,o)}}for(d in C)y=C[d],d==\"children\"?g=y:d==\"dangerouslySetInnerHTML\"?m=y:d==\"value\"?w=y:d==\"checked\"?x=y:c&&typeof y!=\"function\"||I[d]===y||sX(e,d,y,I[d],o);if(m)c||h&&(m.__html==h.__html||m.__html==e.innerHTML)||(e.innerHTML=m.__html),t.__k=[];else if(h&&(e.innerHTML=\"\"),vWe(t.type==\"template\"?e.content:e,pF(g)?g:[g],t,n,r,M==\"foreignObject\"?\"http://www.w3.org/1999/xhtml\":o,i,a,i?i[0]:n.__k&&tP(n,0),c,l),i!=null)for(d=i.length;d--;)Hme(i[d]);c||(d=\"value\",M==\"progress\"&&w==null?e.removeAttribute(\"value\"):w!=null&&(w!==e[d]||M==\"progress\"&&!w||M==\"option\"&&w!=I[d])&&sX(e,d,w,I[d],o),d=\"checked\",x!=null&&x!=e[d]&&sX(e,d,x,I[d],o))}return e}function jme(e,t,n){try{if(typeof e==\"function\"){var r=typeof e.__u==\"function\";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){wa.__e(o,n)}}function SWe(e,t,n){var r,o;if(wa.unmount&&wa.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||jme(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){wa.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&SWe(r[o],t,n||typeof e.type!=\"function\");n||Hme(e.__e),e.__c=e.__=e.__e=void 0}function n5t(e,t,n){return this.constructor(e,n)}function _We(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),wa.__&&wa.__(e,t),o=(r=typeof n==\"function\")?null:n&&n.__k||t.__k,i=[],a=[],zme(t,e=(!r&&n||t).__k=yWe(hF,null,[e]),o||dF,dF,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?fF.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),EWe(i,e,a)}function TWe(e,t){_We(e,t,TWe)}function r5t(e,t,n){var r,o,i,a,c=Iw({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i==\"key\"?r=t[i]:i==\"ref\"?o=t[i]:c[i]=t[i]===void 0&&a!=null?a[i]:t[i];return arguments.length>2&&(c.children=arguments.length>3?fF.call(arguments,2):n),uF(e.type,c,r||e.key,o||e.ref,null)}function o5t(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(a){a.__e=!0,Lme(a)})},this.sub=function(i){r.add(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),a&&a.call(i)}}),n.children}return t.__c=\"__cC\"+mWe++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}var fF,wa,lWe,dWe,bR,sWe,fWe,pWe,hWe,Fme,Dme,Bme,mWe,dF,gWe,J6t,pF,Of=$(()=>{f();dF={},gWe=[],J6t=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,pF=Array.isArray;fF=gWe.slice,wa={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(c){e=c}throw e}},lWe=0,dWe=function(e){return e!=null&&e.constructor==null},lF.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Iw({},this.state),typeof e==\"function\"&&(e=e(Iw({},n),this.props)),e&&Iw(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Lme(this))},lF.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Lme(this))},lF.prototype.render=hF,bR=[],fWe=typeof Promise==\"function\"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,pWe=function(e,t){return e.__v.__b-t.__v.__b},cX.__r=0,hWe=/(PointerCapture)$|Capture$/i,Fme=0,Dme=uWe(!1),Bme=uWe(!0),mWe=0});var mF={};as(mF,{useCallback:()=>c5t,useContext:()=>u5t,useDebugValue:()=>l5t,useEffect:()=>i5t,useErrorBoundary:()=>d5t,useId:()=>f5t,useImperativeHandle:()=>s5t,useLayoutEffect:()=>UWe,useMemo:()=>Gme,useReducer:()=>LWe,useRef:()=>a5t,useState:()=>BWe});function vR(e,t){ac.__h&&ac.__h(xa,e,nP||t),nP=0;var n=xa.__H||(xa.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function BWe(e){return nP=1,LWe(FWe,e)}function LWe(e,t,n){var r=vR(UE++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):FWe(void 0,t),function(c){var l=r.__N?r.__N[0]:r.__[0],d=r.t(l,c);l!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=xa,!xa.__f)){var o=function(c,l,d){if(!r.__c.__H)return!0;var m=r.__c.__H.__.filter(function(g){return!!g.__c});if(m.every(function(g){return!g.__N}))return!i||i.call(this,c,l,d);var h=r.__c.props!==c;return m.forEach(function(g){if(g.__N){var y=g.__[0];g.__=g.__N,g.__N=void 0,y!==g.__[0]&&(h=!0)}}),i&&i.call(this,c,l,d)||h};xa.__f=!0;var i=xa.shouldComponentUpdate,a=xa.componentWillUpdate;xa.componentWillUpdate=function(c,l,d){if(this.__e){var m=i;i=void 0,o(c,l,d),i=m}a&&a.call(this,c,l,d)},xa.shouldComponentUpdate=o}return r.__N||r.__}function i5t(e,t){var n=vR(UE++,3);!ac.__s&&qme(n.__H,t)&&(n.__=e,n.u=t,xa.__H.__h.push(n))}function UWe(e,t){var n=vR(UE++,4);!ac.__s&&qme(n.__H,t)&&(n.__=e,n.u=t,xa.__h.push(n))}function a5t(e){return nP=5,Gme(function(){return{current:e}},[])}function s5t(e,t,n){nP=6,UWe(function(){if(typeof e==\"function\"){var r=e(t());return function(){e(null),r&&typeof r==\"function\"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function Gme(e,t){var n=vR(UE++,7);return qme(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function c5t(e,t){return nP=8,Gme(function(){return e},t)}function u5t(e){var t=xa.context[e.__c],n=vR(UE++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(xa)),t.props.value):e.__}function l5t(e,t){ac.useDebugValue&&ac.useDebugValue(t?t(e):e)}function d5t(e){var t=vR(UE++,10),n=BWe();return t.__=e,xa.componentDidCatch||(xa.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function f5t(){var e=vR(UE++,11);if(!e.__){for(var t=xa.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__=\"P\"+n[0]+\"-\"+n[1]++}return e.__}function p5t(){for(var e;e=DWe.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(uX),e.__H.__h.forEach(Vme),e.__H.__h=[]}catch(t){e.__H.__h=[],ac.__e(t,e.__v)}}function h5t(e){var t,n=function(){clearTimeout(r),MWe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);MWe&&(t=requestAnimationFrame(n))}function uX(e){var t=xa,n=e.__c;typeof n==\"function\"&&(e.__c=void 0,n()),xa=t}function Vme(e){var t=xa;e.__c=e.__(),xa=t}function qme(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function FWe(e,t){return typeof t==\"function\"?t(e):t}var UE,xa,Wme,CWe,nP,DWe,ac,RWe,IWe,kWe,OWe,NWe,PWe,MWe,gF=$(()=>{f();Of();nP=0,DWe=[],ac=wa,RWe=ac.__b,IWe=ac.__r,kWe=ac.diffed,OWe=ac.__c,NWe=ac.unmount,PWe=ac.__;ac.__b=function(e){xa=null,RWe&&RWe(e)},ac.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),PWe&&PWe(e,t)},ac.__r=function(e){IWe&&IWe(e),UE=0;var t=(xa=e.__c).__H;t&&(Wme===xa?(t.__h=[],xa.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(uX),t.__h.forEach(Vme),t.__h=[],UE=0)),Wme=xa},ac.diffed=function(e){kWe&&kWe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(DWe.push(t)!==1&&CWe===ac.requestAnimationFrame||((CWe=ac.requestAnimationFrame)||h5t)(p5t)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Wme=xa=null},ac.__c=function(e,t){t.some(function(n){try{n.__h.forEach(uX),n.__h=n.__h.filter(function(r){return!r.__||Vme(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],ac.__e(r,n.__v)}}),OWe&&OWe(e,t)},ac.unmount=function(e){NWe&&NWe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{uX(r)}catch(o){t=o}}),n.__H=void 0,t&&ac.__e(t,n.__v))};MWe=typeof requestAnimationFrame==\"function\"});var zWe=me(lX=>{\"use strict\";f();Object.defineProperty(lX,\"__esModule\",{value:!0});lX.CloseIcon=void 0;var HWe=(Of(),hi(Jp));function m5t(e){return(0,HWe.h)(\"svg\",Object.assign({width:\"40\",height:\"40\",viewBox:\"0 0 40 40\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,HWe.h)(\"path\",{d:\"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z\"}))}lX.CloseIcon=m5t});var jWe=me(fX=>{\"use strict\";f();Object.defineProperty(fX,\"__esModule\",{value:!0});fX.CoinbaseWalletRound=void 0;var dX=(Of(),hi(Jp));function g5t(e){return(0,dX.h)(\"svg\",Object.assign({width:\"28\",height:\"28\",viewBox:\"0 0 28 28\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,dX.h)(\"circle\",{cx:\"14\",cy:\"14\",r:\"14\",fill:\"#0052FF\"}),(0,dX.h)(\"path\",{d:\"M23.8521 14.0003C23.8521 19.455 19.455 23.8521 14.0003 23.8521C8.54559 23.8521 4.14844 19.455 4.14844 14.0003C4.14844 8.54559 8.54559 4.14844 14.0003 4.14844C19.455 4.14844 23.8521 8.54559 23.8521 14.0003Z\",fill:\"white\"}),(0,dX.h)(\"path\",{d:\"M11.1855 12.5042C11.1855 12.0477 11.1855 11.7942 11.2835 11.642C11.3814 11.4899 11.4793 11.3377 11.6261 11.287C11.8219 11.1855 12.0178 11.1855 12.5073 11.1855H15.4934C15.983 11.1855 16.1788 11.1855 16.3746 11.287C16.5215 11.3884 16.6683 11.4899 16.7173 11.642C16.8152 11.8449 16.8152 12.0477 16.8152 12.5042V15.4965C16.8152 15.953 16.8152 16.2066 16.7173 16.3587C16.6194 16.5109 16.5215 16.663 16.3746 16.7137C16.1788 16.8152 15.983 16.8152 15.4934 16.8152H12.5073C12.0178 16.8152 11.8219 16.8152 11.6261 16.7137C11.4793 16.6123 11.3324 16.5109 11.2835 16.3587C11.1855 16.1558 11.1855 15.953 11.1855 15.4965V12.5042Z\",fill:\"#0052FF\"}))}fX.CoinbaseWalletRound=g5t});var WWe=me(pX=>{\"use strict\";f();Object.defineProperty(pX,\"__esModule\",{value:!0});pX.QRCodeIcon=void 0;var yF=(Of(),hi(Jp));function y5t(e){return(0,yF.h)(\"svg\",Object.assign({width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,yF.h)(\"path\",{d:\"M3 3V8.99939L5 8.99996V5H9V3H3Z\"}),(0,yF.h)(\"path\",{d:\"M15 21L21 21V15.0006L19 15V19L15 19V21Z\"}),(0,yF.h)(\"path\",{d:\"M21 9H19V5H15.0006L15 3H21V9Z\"}),(0,yF.h)(\"path\",{d:\"M3 15V21H8.99939L8.99996 19H5L5 15H3Z\"}))}pX.QRCodeIcon=y5t});var YWe=me((xor,KWe)=>{f();function VWe(e){this.mode=b0.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,n=this.data.length;t<n;t++){var r=[],o=this.data.charCodeAt(t);o>65536?(r[0]=240|(o&1835008)>>>18,r[1]=128|(o&258048)>>>12,r[2]=128|(o&4032)>>>6,r[3]=128|o&63):o>2048?(r[0]=224|(o&61440)>>>12,r[1]=128|(o&4032)>>>6,r[2]=128|o&63):o>128?(r[0]=192|(o&1984)>>>6,r[1]=128|o&63):r[0]=o,this.parsedData.push(r)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}VWe.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;t<n;t++)e.put(this.parsedData[t],8)}};function Ow(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}Ow.prototype={addData:function(e){var t=new VWe(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+\",\"+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[n][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=Ow.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(r==0||r==6)||0<=r&&r<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=sc.getLostPoint(this);(n==0||e>r)&&(e=r,t=n)}return t},createMovieClip:function(e,t,n){var r=e.createEmptyMovieClip(t,n),o=1;this.make();for(var i=0;i<this.modules.length;i++)for(var a=i*o,c=0;c<this.modules[i].length;c++){var l=c*o,d=this.modules[i][c];d&&(r.beginFill(0,100),r.moveTo(l,a),r.lineTo(l+o,a),r.lineTo(l+o,a+o),r.lineTo(l,a+o),r.endFill())}return r},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]==null&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)this.modules[6][t]==null&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=sc.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],o=e[n];if(this.modules[r][o]==null)for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)i==-2||i==2||a==-2||a==2||i==0&&a==0?this.modules[r+i][o+a]=!0:this.modules[r+i][o+a]=!1}},setupTypeNumber:function(e){for(var t=sc.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=sc.getBCHTypeInfo(n),o=0;o<15;o++){var i=!e&&(r>>o&1)==1;o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(var o=0;o<15;o++){var i=!e&&(r>>o&1)==1;o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,r=this.moduleCount-1,o=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(var c=0;c<2;c++)if(this.modules[r][a-c]==null){var l=!1;i<e.length&&(l=(e[i]>>>o&1)==1);var d=sc.getMask(t,r,a-c);d&&(l=!l),this.modules[r][a-c]=l,o--,o==-1&&(i++,o=7)}if(r+=n,r<0||this.moduleCount<=r){r-=n,n=-n;break}}}};Ow.PAD0=236;Ow.PAD1=17;Ow.createData=function(e,t,n){for(var r=kw.getRSBlocks(e,t),o=new GWe,i=0;i<n.length;i++){var a=n[i];o.put(a.mode,4),o.put(a.getLength(),sc.getLengthInBits(a.mode,e)),a.write(o)}for(var c=0,i=0;i<r.length;i++)c+=r[i].dataCount;if(o.getLengthInBits()>c*8)throw new Error(\"code length overflow. (\"+o.getLengthInBits()+\">\"+c*8+\")\");for(o.getLengthInBits()+4<=c*8&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=c*8||(o.put(Ow.PAD0,8),o.getLengthInBits()>=c*8));)o.put(Ow.PAD1,8);return Ow.createBytes(o,r)};Ow.createBytes=function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),a=new Array(t.length),c=0;c<t.length;c++){var l=t[c].dataCount,d=t[c].totalCount-l;r=Math.max(r,l),o=Math.max(o,d),i[c]=new Array(l);for(var m=0;m<i[c].length;m++)i[c][m]=255&e.buffer[m+n];n+=l;var h=sc.getErrorCorrectPolynomial(d),g=new rP(i[c],h.getLength()-1),y=g.mod(h);a[c]=new Array(h.getLength()-1);for(var m=0;m<a[c].length;m++){var w=m+y.getLength()-a[c].length;a[c][m]=w>=0?y.get(w):0}}for(var x=0,m=0;m<t.length;m++)x+=t[m].totalCount;for(var I=new Array(x),C=0,m=0;m<r;m++)for(var c=0;c<t.length;c++)m<i[c].length&&(I[C++]=i[c][m]);for(var m=0;m<o;m++)for(var c=0;c<t.length;c++)m<a[c].length&&(I[C++]=a[c][m]);return I};var b0={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},yT={L:1,M:0,Q:3,H:2},gT={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},sc={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;sc.getBCHDigit(t)-sc.getBCHDigit(sc.G15)>=0;)t^=sc.G15<<sc.getBCHDigit(t)-sc.getBCHDigit(sc.G15);return(e<<10|t)^sc.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;sc.getBCHDigit(t)-sc.getBCHDigit(sc.G18)>=0;)t^=sc.G18<<sc.getBCHDigit(t)-sc.getBCHDigit(sc.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;e!=0;)t++,e>>>=1;return t},getPatternPosition:function(e){return sc.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case gT.PATTERN000:return(t+n)%2==0;case gT.PATTERN001:return t%2==0;case gT.PATTERN010:return n%3==0;case gT.PATTERN011:return(t+n)%3==0;case gT.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case gT.PATTERN101:return t*n%2+t*n%3==0;case gT.PATTERN110:return(t*n%2+t*n%3)%2==0;case gT.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error(\"bad maskPattern:\"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new rP([1],0),n=0;n<e;n++)t=t.multiply(new rP([1,Xl.gexp(n)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case b0.MODE_NUMBER:return 10;case b0.MODE_ALPHA_NUM:return 9;case b0.MODE_8BIT_BYTE:return 8;case b0.MODE_KANJI:return 8;default:throw new Error(\"mode:\"+e)}else if(t<27)switch(e){case b0.MODE_NUMBER:return 12;case b0.MODE_ALPHA_NUM:return 11;case b0.MODE_8BIT_BYTE:return 16;case b0.MODE_KANJI:return 10;default:throw new Error(\"mode:\"+e)}else if(t<41)switch(e){case b0.MODE_NUMBER:return 14;case b0.MODE_ALPHA_NUM:return 13;case b0.MODE_8BIT_BYTE:return 16;case b0.MODE_KANJI:return 12;default:throw new Error(\"mode:\"+e)}else throw new Error(\"type:\"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var o=0;o<t;o++){for(var i=0,a=e.isDark(r,o),c=-1;c<=1;c++)if(!(r+c<0||t<=r+c))for(var l=-1;l<=1;l++)o+l<0||t<=o+l||c==0&&l==0||a==e.isDark(r+c,o+l)&&i++;i>5&&(n+=3+i-5)}for(var r=0;r<t-1;r++)for(var o=0;o<t-1;o++){var d=0;e.isDark(r,o)&&d++,e.isDark(r+1,o)&&d++,e.isDark(r,o+1)&&d++,e.isDark(r+1,o+1)&&d++,(d==0||d==4)&&(n+=3)}for(var r=0;r<t;r++)for(var o=0;o<t-6;o++)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(var o=0;o<t;o++)for(var r=0;r<t-6;r++)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);for(var m=0,o=0;o<t;o++)for(var r=0;r<t;r++)e.isDark(r,o)&&m++;var h=Math.abs(100*m/t/t-50)/5;return n+=h*10,n}},Xl={glog:function(e){if(e<1)throw new Error(\"glog(\"+e+\")\");return Xl.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return Xl.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(Hu=0;Hu<8;Hu++)Xl.EXP_TABLE[Hu]=1<<Hu;var Hu;for(Hu=8;Hu<256;Hu++)Xl.EXP_TABLE[Hu]=Xl.EXP_TABLE[Hu-4]^Xl.EXP_TABLE[Hu-5]^Xl.EXP_TABLE[Hu-6]^Xl.EXP_TABLE[Hu-8];var Hu;for(Hu=0;Hu<255;Hu++)Xl.LOG_TABLE[Xl.EXP_TABLE[Hu]]=Hu;var Hu;function rP(e,t){if(e.length==null)throw new Error(e.length+\"/\"+t);for(var n=0;n<e.length&&e[n]==0;)n++;this.num=new Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}rP.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var r=0;r<e.getLength();r++)t[n+r]^=Xl.gexp(Xl.glog(this.get(n))+Xl.glog(e.get(r)));return new rP(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=Xl.glog(this.get(0))-Xl.glog(e.get(0)),n=new Array(this.getLength()),r=0;r<this.getLength();r++)n[r]=this.get(r);for(var r=0;r<e.getLength();r++)n[r]^=Xl.gexp(Xl.glog(e.get(r))+t);return new rP(n,0).mod(e)}};function kw(e,t){this.totalCount=e,this.dataCount=t}kw.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];kw.getRSBlocks=function(e,t){var n=kw.getRsBlockTable(e,t);if(n==null)throw new Error(\"bad rs block @ typeNumber:\"+e+\"/errorCorrectLevel:\"+t);for(var r=n.length/3,o=[],i=0;i<r;i++)for(var a=n[i*3+0],c=n[i*3+1],l=n[i*3+2],d=0;d<a;d++)o.push(new kw(c,l));return o};kw.getRsBlockTable=function(e,t){switch(t){case yT.L:return kw.RS_BLOCK_TABLE[(e-1)*4+0];case yT.M:return kw.RS_BLOCK_TABLE[(e-1)*4+1];case yT.Q:return kw.RS_BLOCK_TABLE[(e-1)*4+2];case yT.H:return kw.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};function GWe(){this.buffer=[],this.length=0}GWe.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Kme=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function qWe(e){var t=this;if(this.options={padding:4,width:256,height:256,typeNumber:4,color:\"#000000\",background:\"#ffffff\",ecl:\"M\",image:{svg:\"\",width:0,height:0}},typeof e==\"string\"&&(e={content:e}),e)for(var n in e)this.options[n]=e[n];if(typeof this.options.content!=\"string\")throw new Error(\"Expected \\'content\\' as string!\");if(this.options.content.length===0)throw new Error(\"Expected \\'content\\' to be non-empty!\");if(!(this.options.padding>=0))throw new Error(\"Expected \\'padding\\' value to be non-negative!\");if(!(this.options.width>0)||!(this.options.height>0))throw new Error(\"Expected \\'width\\' or \\'height\\' value to be higher than zero!\");function r(d){switch(d){case\"L\":return yT.L;case\"M\":return yT.M;case\"Q\":return yT.Q;case\"H\":return yT.H;default:throw new Error(\"Unknwon error correction level: \"+d)}}function o(d,m){for(var h=i(d),g=1,y=0,w=0,x=Kme.length;w<=x;w++){var I=Kme[w];if(!I)throw new Error(\"Content too long: expected \"+y+\" but got \"+h);switch(m){case\"L\":y=I[0];break;case\"M\":y=I[1];break;case\"Q\":y=I[2];break;case\"H\":y=I[3];break;default:throw new Error(\"Unknwon error correction level: \"+m)}if(h<=y)break;g++}if(g>Kme.length)throw new Error(\"Content too long\");return g}function i(d){var m=encodeURI(d).toString().replace(/\\\\%[0-9a-fA-F]{2}/g,\"a\");return m.length+(m.length!=d?3:0)}var a=this.options.content,c=o(a,this.options.ecl),l=r(this.options.ecl);this.qrcode=new Ow(c,l),this.qrcode.addData(a),this.qrcode.make()}qWe.prototype.svg=function(e){var t=this.options||{},n=this.qrcode.modules;typeof e>\"u\"&&(e={container:t.container||\"svg\"});for(var r=typeof t.pretty<\"u\"?!!t.pretty:!0,o=r?\"  \":\"\",i=r?`\\\\r\\n`:\"\",a=t.width,c=t.height,l=n.length,d=a/(l+2*t.padding),m=c/(l+2*t.padding),h=typeof t.join<\"u\"?!!t.join:!1,g=typeof t.swap<\"u\"?!!t.swap:!1,y=typeof t.xmlDeclaration<\"u\"?!!t.xmlDeclaration:!0,w=typeof t.predefined<\"u\"?!!t.predefined:!1,x=w?o+\\'<defs><path id=\"qrmodule\" d=\"M0 0 h\\'+m+\" v\"+d+\\' H0 z\" style=\"fill:\\'+t.color+\\';shape-rendering:crispEdges;\" /></defs>\\'+i:\"\",I=o+\\'<rect x=\"0\" y=\"0\" width=\"\\'+a+\\'\" height=\"\\'+c+\\'\" style=\"fill:\\'+t.background+\\';shape-rendering:crispEdges;\"/>\\'+i,C=\"\",M=\"\",B=0;B<l;B++)for(var z=0;z<l;z++){var G=n[z][B];if(G){var J=z*d+t.padding*d,ne=B*m+t.padding*m;if(g){var ie=J;J=ne,ne=ie}if(h){var ae=d+J,te=m+ne;J=Number.isInteger(J)?Number(J):J.toFixed(2),ne=Number.isInteger(ne)?Number(ne):ne.toFixed(2),ae=Number.isInteger(ae)?Number(ae):ae.toFixed(2),te=Number.isInteger(te)?Number(te):te.toFixed(2),M+=\"M\"+J+\",\"+ne+\" V\"+te+\" H\"+ae+\" V\"+ne+\" H\"+J+\" Z \"}else w?C+=o+\\'<use x=\"\\'+J.toString()+\\'\" y=\"\\'+ne.toString()+\\'\" href=\"#qrmodule\" />\\'+i:C+=o+\\'<rect x=\"\\'+J.toString()+\\'\" y=\"\\'+ne.toString()+\\'\" width=\"\\'+d+\\'\" height=\"\\'+m+\\'\" style=\"fill:\\'+t.color+\\';shape-rendering:crispEdges;\"/>\\'+i}}h&&(C=o+\\'<path x=\"0\" y=\"0\" style=\"fill:\\'+t.color+\\';shape-rendering:crispEdges;\" d=\"\\'+M+\\'\" />\\');let Z=\"\";if(this.options.image!==void 0&&this.options.image.svg){let F=a*this.options.image.width/100,R=c*this.options.image.height/100,O=a/2-F/2,U=c/2-R/2;Z+=`<svg x=\"${O}\" y=\"${U}\" width=\"${F}\" height=\"${R}\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"xMinYMin meet\">`,Z+=this.options.image.svg+i,Z+=\"</svg>\"}var X=\"\";switch(e.container){case\"svg\":y&&(X+=\\'<?xml version=\"1.0\" standalone=\"yes\"?>\\'+i),X+=\\'<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"\\'+a+\\'\" height=\"\\'+c+\\'\">\\'+i,X+=x+I+C,X+=Z,X+=\"</svg>\";break;case\"svg-viewbox\":y&&(X+=\\'<?xml version=\"1.0\" standalone=\"yes\"?>\\'+i),X+=\\'<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 \\'+a+\" \"+c+\\'\">\\'+i,X+=x+I+C,X+=Z,X+=\"</svg>\";break;case\"g\":X+=\\'<g width=\"\\'+a+\\'\" height=\"\\'+c+\\'\">\\'+i,X+=x+I+C,X+=Z,X+=\"</g>\";break;default:X+=(x+I+C+Z).replace(/^\\\\s+/,\"\");break}return X};KWe.exports=qWe});var QWe=me(oP=>{\"use strict\";f();var b5t=oP&&oP.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oP,\"__esModule\",{value:!0});oP.QRCode=void 0;var v5t=(Of(),hi(Jp)),ZWe=(gF(),hi(mF)),w5t=b5t(YWe()),x5t=e=>{let[t,n]=(0,ZWe.useState)(\"\");return(0,ZWe.useEffect)(()=>{var r,o;let i=new w5t.default({content:e.content,background:e.bgColor||\"#ffffff\",color:e.fgColor||\"#000000\",container:\"svg\",ecl:\"M\",width:(r=e.width)!==null&&r!==void 0?r:256,height:(o=e.height)!==null&&o!==void 0?o:256,padding:0,image:e.image}),a=globalThis.Buffer.from(i.svg(),\"utf8\").toString(\"base64\");n(`data:image/svg+xml;base64,${a}`)},[e.bgColor,e.content,e.fgColor,e.height,e.image,e.width]),t?(0,v5t.h)(\"img\",{src:t,alt:\"QR Code\"}):null};oP.QRCode=x5t});var JWe=me(Yme=>{\"use strict\";f();Object.defineProperty(Yme,\"__esModule\",{value:!0});Yme.default=\".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}\"});var XWe=me(iP=>{\"use strict\";f();var E5t=iP&&iP.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(iP,\"__esModule\",{value:!0});iP.Spinner=void 0;var hX=(Of(),hi(Jp)),A5t=E5t(JWe()),S5t=e=>{var t;let n=(t=e.size)!==null&&t!==void 0?t:64,r=e.color||\"#000\";return(0,hX.h)(\"div\",{class:\"-cbwsdk-spinner\"},(0,hX.h)(\"style\",null,A5t.default),(0,hX.h)(\"svg\",{viewBox:\"0 0 100 100\",xmlns:\"http://www.w3.org/2000/svg\",style:{width:n,height:n}},(0,hX.h)(\"circle\",{style:{cx:50,cy:50,r:45,stroke:r}})))};iP.Spinner=S5t});var $We=me(Zme=>{\"use strict\";f();Object.defineProperty(Zme,\"__esModule\",{value:!0});Zme.default=\".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer;border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}\"});var nVe=me(bT=>{\"use strict\";f();var eVe=bT&&bT.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bT,\"__esModule\",{value:!0});bT.CoinbaseWalletSteps=bT.ConnectContent=void 0;var wR=eVe((xE(),hi(EO))),si=(Of(),hi(Jp)),_5t=_w(),T5t=IJ(),C5t=zWe(),R5t=jWe(),I5t=WWe(),k5t=QWe(),O5t=XWe(),N5t=eVe($We()),Qme={title:\"Coinbase Wallet app\",description:\"Connect with your self-custody wallet\",steps:tVe},P5t=e=>e===\"light\"?\"#FFFFFF\":\"#0A0B0D\";function M5t(e){let{theme:t}=e,n=(0,_5t.createQrUrl)(e.sessionId,e.sessionSecret,e.linkAPIUrl,e.isParentConnection,e.version,e.chainId),r=Qme.steps;return(0,si.h)(\"div\",{\"data-testid\":\"connect-content\",className:(0,wR.default)(\"-cbwsdk-connect-content\",t)},(0,si.h)(\"style\",null,N5t.default),(0,si.h)(\"div\",{className:\"-cbwsdk-connect-content-header\"},(0,si.h)(\"h2\",{className:(0,wR.default)(\"-cbwsdk-connect-content-heading\",t)},\"Scan to connect with our mobile app\"),e.onCancel&&(0,si.h)(\"button\",{type:\"button\",className:\"-cbwsdk-cancel-button\",onClick:e.onCancel},(0,si.h)(C5t.CloseIcon,{fill:t===\"light\"?\"#0A0B0D\":\"#FFFFFF\"}))),(0,si.h)(\"div\",{className:\"-cbwsdk-connect-content-layout\"},(0,si.h)(\"div\",{className:\"-cbwsdk-connect-content-column-left\"},(0,si.h)(D5t,{title:Qme.title,description:Qme.description,theme:t})),(0,si.h)(\"div\",{className:\"-cbwsdk-connect-content-column-right\"},(0,si.h)(\"div\",{className:\"-cbwsdk-connect-content-qr-wrapper\"},(0,si.h)(k5t.QRCode,{content:n,width:200,height:200,fgColor:\"#000\",bgColor:\"transparent\"}),(0,si.h)(\"input\",{type:\"hidden\",name:\"cbw-cbwsdk-version\",value:T5t.LIB_VERSION}),(0,si.h)(\"input\",{type:\"hidden\",value:n})),(0,si.h)(r,{theme:t}),!e.isConnected&&(0,si.h)(\"div\",{\"data-testid\":\"connecting-spinner\",className:(0,wR.default)(\"-cbwsdk-connect-content-qr-connecting\",t)},(0,si.h)(O5t.Spinner,{size:36,color:t===\"dark\"?\"#FFF\":\"#000\"}),(0,si.h)(\"p\",null,\"Connecting...\")))))}bT.ConnectContent=M5t;function D5t({title:e,description:t,theme:n}){return(0,si.h)(\"div\",{className:(0,wR.default)(\"-cbwsdk-connect-item\",n)},(0,si.h)(\"div\",null,(0,si.h)(R5t.CoinbaseWalletRound,null)),(0,si.h)(\"div\",{className:\"-cbwsdk-connect-item-copy-wrapper\"},(0,si.h)(\"h3\",{className:\"-cbwsdk-connect-item-title\"},e),(0,si.h)(\"p\",{className:\"-cbwsdk-connect-item-description\"},t)))}function tVe({theme:e}){return(0,si.h)(\"ol\",{className:\"-cbwsdk-wallet-steps\"},(0,si.h)(\"li\",{className:(0,wR.default)(\"-cbwsdk-wallet-steps-item\",e)},(0,si.h)(\"div\",{className:\"-cbwsdk-wallet-steps-item-wrapper\"},\"Open Coinbase Wallet app\")),(0,si.h)(\"li\",{className:(0,wR.default)(\"-cbwsdk-wallet-steps-item\",e)},(0,si.h)(\"div\",{className:\"-cbwsdk-wallet-steps-item-wrapper\"},(0,si.h)(\"span\",null,\"Tap \",(0,si.h)(\"strong\",null,\"Scan\"),\" \"),(0,si.h)(\"span\",{className:(0,wR.default)(\"-cbwsdk-wallet-steps-pad-left\",\"-cbwsdk-wallet-steps-icon\",e)},(0,si.h)(I5t.QRCodeIcon,{fill:P5t(e)})))))}bT.CoinbaseWalletSteps=tVe});var oVe=me(mX=>{\"use strict\";f();Object.defineProperty(mX,\"__esModule\",{value:!0});mX.ArrowLeftIcon=void 0;var rVe=(Of(),hi(Jp));function B5t(e){return(0,rVe.h)(\"svg\",Object.assign({width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,rVe.h)(\"path\",{d:\"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z\"}))}mX.ArrowLeftIcon=B5t});var iVe=me(gX=>{\"use strict\";f();Object.defineProperty(gX,\"__esModule\",{value:!0});gX.LaptopIcon=void 0;var Jme=(Of(),hi(Jp));function L5t(e){return(0,Jme.h)(\"svg\",Object.assign({width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,Jme.h)(\"path\",{d:\"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z\"}),(0,Jme.h)(\"path\",{d:\"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z\"}))}gX.LaptopIcon=L5t});var sVe=me(yX=>{\"use strict\";f();Object.defineProperty(yX,\"__esModule\",{value:!0});yX.SafeIcon=void 0;var aVe=(Of(),hi(Jp));function U5t(e){return(0,aVe.h)(\"svg\",Object.assign({width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",xmlns:\"http://www.w3.org/2000/svg\"},e),(0,aVe.h)(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z\"}))}yX.SafeIcon=U5t});var cVe=me(Xme=>{\"use strict\";f();Object.defineProperty(Xme,\"__esModule\",{value:!0});Xme.default=\".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}\"});var lVe=me(aP=>{\"use strict\";f();var uVe=aP&&aP.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(aP,\"__esModule\",{value:!0});aP.TryExtensionContent=void 0;var xR=uVe((xE(),hi(EO))),zu=(Of(),hi(Jp)),$me=(gF(),hi(mF)),F5t=oVe(),H5t=iVe(),z5t=sVe(),j5t=uVe(cVe());function W5t({theme:e}){let[t,n]=(0,$me.useState)(!1),r=(0,$me.useCallback)(()=>{window.open(\"https://api.wallet.coinbase.com/rpc/v2/desktop/chrome\",\"_blank\")},[]),o=(0,$me.useCallback)(()=>{t?window.location.reload():(r(),n(!0))},[r,t]);return(0,zu.h)(\"div\",{class:(0,xR.default)(\"-cbwsdk-try-extension\",e)},(0,zu.h)(\"style\",null,j5t.default),(0,zu.h)(\"div\",{class:\"-cbwsdk-try-extension-column-half\"},(0,zu.h)(\"h3\",{class:(0,xR.default)(\"-cbwsdk-try-extension-heading\",e)},\"Or try the Coinbase Wallet browser extension\"),(0,zu.h)(\"div\",{class:\"-cbwsdk-try-extension-cta-wrapper\"},(0,zu.h)(\"button\",{class:(0,xR.default)(\"-cbwsdk-try-extension-cta\",e),onClick:o},t?\"Refresh\":\"Install\"),(0,zu.h)(\"div\",null,!t&&(0,zu.h)(F5t.ArrowLeftIcon,{class:\"-cbwsdk-try-extension-cta-icon\",fill:e===\"light\"?\"#0052FF\":\"#588AF5\"})))),(0,zu.h)(\"div\",{class:\"-cbwsdk-try-extension-column-half\"},(0,zu.h)(\"ul\",{class:\"-cbwsdk-try-extension-list\"},(0,zu.h)(\"li\",{class:\"-cbwsdk-try-extension-list-item\"},(0,zu.h)(\"div\",{class:\"-cbwsdk-try-extension-list-item-icon-wrapper\"},(0,zu.h)(\"span\",{class:(0,xR.default)(\"-cbwsdk-try-extension-list-item-icon\",e)},(0,zu.h)(H5t.LaptopIcon,{fill:e===\"light\"?\"#0A0B0D\":\"#FFFFFF\"}))),(0,zu.h)(\"div\",{class:(0,xR.default)(\"-cbwsdk-try-extension-list-item-copy\",e)},\"Connect with dapps with just one click on your desktop browser\")),(0,zu.h)(\"li\",{class:\"-cbwsdk-try-extension-list-item\"},(0,zu.h)(\"div\",{class:\"-cbwsdk-try-extension-list-item-icon-wrapper\"},(0,zu.h)(\"span\",{class:(0,xR.default)(\"-cbwsdk-try-extension-list-item-icon\",e)},(0,zu.h)(z5t.SafeIcon,{fill:e===\"light\"?\"#0A0B0D\":\"#FFFFFF\"}))),(0,zu.h)(\"div\",{class:(0,xR.default)(\"-cbwsdk-try-extension-list-item-copy\",e)},\"Add an additional layer of security by using a supported Ledger hardware wallet\")))))}aP.TryExtensionContent=W5t});var dVe=me(e0e=>{\"use strict\";f();Object.defineProperty(e0e,\"__esModule\",{value:!0});e0e.default=\".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}\"});var pVe=me(sP=>{\"use strict\";f();var fVe=sP&&sP.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(sP,\"__esModule\",{value:!0});sP.ConnectDialog=void 0;var t0e=fVe((xE(),hi(EO))),ER=(Of(),hi(Jp)),n0e=(gF(),hi(mF)),V5t=nVe(),G5t=lVe(),q5t=fVe(dVe()),K5t=e=>{let{isOpen:t,darkMode:n}=e,[r,o]=(0,n0e.useState)(!t),[i,a]=(0,n0e.useState)(!t);(0,n0e.useEffect)(()=>{let l=[window.setTimeout(()=>{a(!t)},10)];return t?o(!1):l.push(window.setTimeout(()=>{o(!0)},360)),()=>{l.forEach(window.clearTimeout)}},[t]);let c=n?\"dark\":\"light\";return(0,ER.h)(\"div\",{class:(0,t0e.default)(\"-cbwsdk-connect-dialog-container\",r&&\"-cbwsdk-connect-dialog-container-hidden\")},(0,ER.h)(\"style\",null,q5t.default),(0,ER.h)(\"div\",{class:(0,t0e.default)(\"-cbwsdk-connect-dialog-backdrop\",c,i&&\"-cbwsdk-connect-dialog-backdrop-hidden\")}),(0,ER.h)(\"div\",{class:\"-cbwsdk-connect-dialog\"},(0,ER.h)(\"div\",{class:(0,t0e.default)(\"-cbwsdk-connect-dialog-box\",i&&\"-cbwsdk-connect-dialog-box-hidden\")},e.connectDisabled?null:(0,ER.h)(V5t.ConnectContent,{theme:c,version:e.version,sessionId:e.sessionId,sessionSecret:e.sessionSecret,linkAPIUrl:e.linkAPIUrl,isConnected:e.isConnected,isParentConnection:e.isParentConnection,chainId:e.chainId,onCancel:e.onCancel}),(0,ER.h)(G5t.TryExtensionContent,{theme:c}))))};sP.ConnectDialog=K5t});var hVe=me(bX=>{\"use strict\";f();Object.defineProperty(bX,\"__esModule\",{value:!0});bX.LinkFlow=void 0;var r0e=(Of(),hi(Jp)),Y5t=pVe(),o0e=class{constructor(t){this.connected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=t.darkMode,this.version=t.version,this.sessionId=t.sessionId,this.sessionSecret=t.sessionSecret,this.linkAPIUrl=t.linkAPIUrl,this.isParentConnection=t.isParentConnection}attach(t){this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-link-flow-root\",t.appendChild(this.root),this.render()}setConnected(t){this.connected!==t&&(this.connected=t,this.render())}setChainId(t){this.chainId!==t&&(this.chainId=t,this.render())}detach(){var t;this.root&&((0,r0e.render)(null,this.root),(t=this.root.parentElement)===null||t===void 0||t.removeChild(this.root))}setConnectDisabled(t){this.connectDisabled=t}open(t){this.isOpen=!0,this.onCancel=t.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){this.root&&(0,r0e.render)((0,r0e.h)(Y5t.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.connected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)}};bX.LinkFlow=o0e});var mVe=me(i0e=>{\"use strict\";f();Object.defineProperty(i0e,\"__esModule\",{value:!0});i0e.default=\".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}\"});var c0e=me(cy=>{\"use strict\";f();var gVe=cy&&cy.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cy,\"__esModule\",{value:!0});cy.SnackbarInstance=cy.SnackbarContainer=cy.Snackbar=void 0;var vX=gVe((xE(),hi(EO))),ju=(Of(),hi(Jp)),a0e=(gF(),hi(mF)),Z5t=gVe(mVe()),Q5t=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+\",J5t=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=\",s0e=class{constructor(t){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=t.darkMode}attach(t){this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-snackbar-root\",t.appendChild(this.root),this.render()}presentItem(t){let n=this.nextItemKey++;return this.items.set(n,t),this.render(),()=>{this.items.delete(n),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,ju.render)((0,ju.h)(\"div\",null,(0,ju.h)(cy.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([t,n])=>(0,ju.h)(cy.SnackbarInstance,Object.assign({},n,{key:t}))))),this.root)}};cy.Snackbar=s0e;var X5t=e=>(0,ju.h)(\"div\",{class:(0,vX.default)(\"-cbwsdk-snackbar-container\")},(0,ju.h)(\"style\",null,Z5t.default),(0,ju.h)(\"div\",{class:\"-cbwsdk-snackbar\"},e.children));cy.SnackbarContainer=X5t;var $5t=({autoExpand:e,message:t,menuItems:n})=>{let[r,o]=(0,a0e.useState)(!0),[i,a]=(0,a0e.useState)(e??!1);(0,a0e.useEffect)(()=>{let l=[window.setTimeout(()=>{o(!1)},1),window.setTimeout(()=>{a(!0)},1e4)];return()=>{l.forEach(window.clearTimeout)}});let c=()=>{a(!i)};return(0,ju.h)(\"div\",{class:(0,vX.default)(\"-cbwsdk-snackbar-instance\",r&&\"-cbwsdk-snackbar-instance-hidden\",i&&\"-cbwsdk-snackbar-instance-expanded\")},(0,ju.h)(\"div\",{class:\"-cbwsdk-snackbar-instance-header\",onClick:c},(0,ju.h)(\"img\",{src:Q5t,class:\"-cbwsdk-snackbar-instance-header-cblogo\"}),\" \",(0,ju.h)(\"div\",{class:\"-cbwsdk-snackbar-instance-header-message\"},t),(0,ju.h)(\"div\",{class:\"-gear-container\"},!i&&(0,ju.h)(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},(0,ju.h)(\"circle\",{cx:\"12\",cy:\"12\",r:\"12\",fill:\"#F5F7F8\"})),(0,ju.h)(\"img\",{src:J5t,class:\"-gear-icon\",title:\"Expand\"}))),n&&n.length>0&&(0,ju.h)(\"div\",{class:\"-cbwsdk-snackbar-instance-menu\"},n.map((l,d)=>(0,ju.h)(\"div\",{class:(0,vX.default)(\"-cbwsdk-snackbar-instance-menu-item\",l.isRed&&\"-cbwsdk-snackbar-instance-menu-item-is-red\"),onClick:l.onClick,key:d},(0,ju.h)(\"svg\",{width:l.svgWidth,height:l.svgHeight,viewBox:\"0 0 10 11\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},(0,ju.h)(\"path\",{\"fill-rule\":l.defaultFillRule,\"clip-rule\":l.defaultClipRule,d:l.path,fill:\"#AAAAAA\"})),(0,ju.h)(\"span\",{class:(0,vX.default)(\"-cbwsdk-snackbar-instance-menu-item-info\",l.isRed&&\"-cbwsdk-snackbar-instance-menu-item-info-is-red\")},l.info)))))};cy.SnackbarInstance=$5t});var l0e=me(wX=>{\"use strict\";f();Object.defineProperty(wX,\"__esModule\",{value:!0});wX.WalletLinkRelayUI=void 0;var e3t=Mme(),t3t=hVe(),n3t=c0e(),u0e=class{constructor(t){this.standalone=null,this.attached=!1,this.snackbar=new n3t.Snackbar({darkMode:t.darkMode}),this.linkFlow=new t3t.LinkFlow({darkMode:t.darkMode,version:t.version,sessionId:t.session.id,sessionSecret:t.session.secret,linkAPIUrl:t.linkAPIUrl,isParentConnection:!1})}attach(){if(this.attached)throw new Error(\"Coinbase Wallet SDK UI is already attached\");let t=document.documentElement,n=document.createElement(\"div\");n.className=\"-cbwsdk-css-reset\",t.appendChild(n),this.linkFlow.attach(n),this.snackbar.attach(n),this.attached=!0,(0,e3t.injectCssReset)()}setConnected(t){this.linkFlow.setConnected(t)}setChainId(t){this.linkFlow.setChainId(t)}setConnectDisabled(t){this.linkFlow.setConnectDisabled(t)}addEthereumChain(){}watchAsset(){}switchEthereumChain(){}requestEthereumAccounts(t){this.linkFlow.open({onCancel:t.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}showConnecting(t){let n;return t.isUnlinkedErrorState?n={autoExpand:!0,message:\"Connection lost\",menuItems:[{isRed:!1,info:\"Reset connection\",svgWidth:\"10\",svgHeight:\"11\",path:\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:t.onResetConnection}]}:n={message:\"Confirm on phone\",menuItems:[{isRed:!0,info:\"Cancel transaction\",svgWidth:\"11\",svgHeight:\"11\",path:\"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z\",defaultFillRule:\"inherit\",defaultClipRule:\"inherit\",onClick:t.onCancel},{isRed:!1,info:\"Reset connection\",svgWidth:\"10\",svgHeight:\"11\",path:\"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z\",defaultFillRule:\"evenodd\",defaultClipRule:\"evenodd\",onClick:t.onResetConnection}]},this.snackbar.presentItem(n)}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(t){this.standalone=t}isStandalone(){var t;return(t=this.standalone)!==null&&t!==void 0?t:!1}};wX.WalletLinkRelayUI=u0e});var d0e=me(EX=>{\"use strict\";f();Object.defineProperty(EX,\"__esModule\",{value:!0});EX.WalletLinkRelay=void 0;var cP=QU(),r3t=XU(),cc=_w(),AR=MJ(),yVe=DJ(),vT=tX(),o3t=iWe(),SR=CJ(),i3t=l0e(),xX=class e extends yVe.RelayAbstract{constructor(t){var n;super(),this.accountsCallback=null,this.chainCallbackParams={chainId:\"\",jsonRpcUrl:\"\"},this.chainCallback=null,this.dappDefaultChain=1,this.appName=\"\",this.appLogoUrl=null,this.linkedUpdated=a=>{var c;this.isLinked=a;let l=this.storage.getItem(yVe.LOCAL_STORAGE_ADDRESSES_KEY);if(a&&(this.session.linked=a),this.isUnlinkedErrorState=!1,l){let d=l.split(\" \"),m=this.storage.getItem(\"IsStandaloneSigning\")===\"true\";if(d[0]!==\"\"&&!a&&this.session.linked&&!m){this.isUnlinkedErrorState=!0;let h=this.getSessionIdHash();(c=this.diagnostic)===null||c===void 0||c.log(AR.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:h})}}},this.metadataUpdated=(a,c)=>{this.storage.setItem(a,c)},this.chainUpdated=(a,c)=>{this.chainCallbackParams.chainId===a&&this.chainCallbackParams.jsonRpcUrl===c||(this.chainCallbackParams={chainId:a,jsonRpcUrl:c},this.chainCallback&&this.chainCallback(a,c))},this.accountUpdated=a=>{this.accountsCallback&&this.accountsCallback([a]),e.accountRequestCallbackIds.size>0&&(Array.from(e.accountRequestCallbackIds.values()).forEach(c=>{let l={type:\"WEB3_RESPONSE\",id:c,response:{method:\"requestEthereumAccounts\",result:[a]}};this.invokeCallback(Object.assign(Object.assign({},l),{id:c}))}),e.accountRequestCallbackIds.clear())},this.connectedUpdated=a=>{this.ui.setConnected(a)},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=t.linkAPIUrl,this.storage=t.storage,this.options=t;let{session:r,ui:o,connection:i}=this.subscribe();this._session=r,this.connection=i,this.relayEventManager=t.relayEventManager,this.diagnostic=t.diagnosticLogger,this._reloadOnDisconnect=(n=t.reloadOnDisconnect)!==null&&n!==void 0?n:!0,this.ui=o}subscribe(){let t=vT.Session.load(this.storage)||new vT.Session(this.storage).save(),{linkAPIUrl:n,diagnostic:r}=this,o=new o3t.WalletLinkConnection({session:t,linkAPIUrl:n,diagnostic:r,listener:this}),{version:i,darkMode:a}=this.options,c=this.options.uiConstructor({linkAPIUrl:n,version:i,darkMode:a,session:t});return o.connect(),{session:t,ui:c,connection:o}}attachUI(){this.ui.attach()}resetAndReload(){Promise.race([this.connection.setSessionMetadata(\"__destroyed\",\"1\"),new Promise(t=>setTimeout(()=>t(null),1e3))]).then(()=>{var t,n;let r=this.ui.isStandalone();(t=this.diagnostic)===null||t===void 0||t.log(AR.EVENTS.SESSION_STATE_CHANGE,{method:\"relay::resetAndReload\",sessionMetadataChange:\"__destroyed, 1\",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let o=vT.Session.load(this.storage);if(o?.id===this._session.id?this.storage.clear():o&&((n=this.diagnostic)===null||n===void 0||n.log(AR.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:vT.Session.hash(o.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);let{session:i,ui:a,connection:c}=this.subscribe();this._session=i,this.connection=c,this.ui=a,r&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.options.headlessMode||this.attachUI()}).catch(t=>{var n;(n=this.diagnostic)===null||n===void 0||n.log(AR.EVENTS.FAILURE,{method:\"relay::resetAndReload\",message:`failed to reset and reload with ${t}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(t,n){this.appName=t,this.appLogoUrl=n}getStorageItem(t){return this.storage.getItem(t)}get session(){return this._session}setStorageItem(t,n){this.storage.setItem(t,n)}signEthereumMessage(t,n,r,o){return this.sendRequest({method:\"signEthereumMessage\",params:{message:(0,cc.hexStringFromBuffer)(t,!0),address:n,addPrefix:r,typedDataJson:o||null}})}ethereumAddressFromSignedMessage(t,n,r){return this.sendRequest({method:\"ethereumAddressFromSignedMessage\",params:{message:(0,cc.hexStringFromBuffer)(t,!0),signature:(0,cc.hexStringFromBuffer)(n,!0),addPrefix:r}})}signEthereumTransaction(t){return this.sendRequest({method:\"signEthereumTransaction\",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,cc.bigIntStringFromBN)(t.weiValue),data:(0,cc.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,cc.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.gasPriceInWei?(0,cc.bigIntStringFromBN)(t.gasPriceInWei):null,maxPriorityFeePerGas:t.gasPriceInWei?(0,cc.bigIntStringFromBN)(t.gasPriceInWei):null,gasLimit:t.gasLimit?(0,cc.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(t){return this.sendRequest({method:\"signEthereumTransaction\",params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,cc.bigIntStringFromBN)(t.weiValue),data:(0,cc.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,cc.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.maxFeePerGas?(0,cc.bigIntStringFromBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:t.maxPriorityFeePerGas?(0,cc.bigIntStringFromBN)(t.maxPriorityFeePerGas):null,gasLimit:t.gasLimit?(0,cc.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!0}})}submitEthereumTransaction(t,n){return this.sendRequest({method:\"submitEthereumTransaction\",params:{signedTransaction:(0,cc.hexStringFromBuffer)(t,!0),chainId:n}})}scanQRCode(t){return this.sendRequest({method:\"scanQRCode\",params:{regExp:t}})}getQRCodeUrl(){return(0,cc.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(t,n){return this.sendRequest({method:\"generic\",params:{action:n,data:t}})}sendGenericMessage(t){return this.sendRequest(t)}sendRequest(t){let n=null,r=(0,cc.randomBytesHex)(8),o=a=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,t.method,a),n?.()};return{promise:new Promise((a,c)=>{this.ui.isStandalone()||(n=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:o,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(r,l=>{if(n?.(),(0,SR.isErrorResponse)(l))return c(new Error(l.errorMessage));a(l)}),this.ui.isStandalone()?this.sendRequestStandalone(r,t):this.publishWeb3RequestEvent(r,t)}),cancel:o}}setConnectDisabled(t){this.ui.setConnectDisabled(t)}setAccountsCallback(t){this.accountsCallback=t}setChainCallback(t){this.chainCallback=t}setDappDefaultChainCallback(t){this.dappDefaultChain=t,this.ui instanceof i3t.WalletLinkRelayUI&&this.ui.setChainId(t)}publishWeb3RequestEvent(t,n){var r;let o={type:\"WEB3_REQUEST\",id:t,request:n},i=vT.Session.load(this.storage);(r=this.diagnostic)===null||r===void 0||r.log(AR.EVENTS.WEB3_REQUEST,{eventId:o.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?vT.Session.hash(i.id):\"\",isSessionMismatched:(i?.id!==this._session.id).toString()}),this.publishEvent(\"Web3Request\",o,!0).then(a=>{var c;(c=this.diagnostic)===null||c===void 0||c.log(AR.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:o.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?vT.Session.hash(i.id):\"\",isSessionMismatched:(i?.id!==this._session.id).toString()})}).catch(a=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:o.id,response:{method:n.method,errorMessage:a.message}})})}publishWeb3RequestCanceledEvent(t){let n={type:\"WEB3_REQUEST_CANCELED\",id:t};this.publishEvent(\"Web3RequestCanceled\",n,!1).then()}publishEvent(t,n,r){return this.connection.publishEvent(t,n,r)}handleWeb3ResponseMessage(t){var n;let{response:r}=t;if((n=this.diagnostic)===null||n===void 0||n.log(AR.EVENTS.WEB3_RESPONSE,{eventId:t.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash()}),r.method===\"requestEthereumAccounts\"){e.accountRequestCallbackIds.forEach(o=>this.invokeCallback(Object.assign(Object.assign({},t),{id:o}))),e.accountRequestCallbackIds.clear();return}this.invokeCallback(t)}handleErrorResponse(t,n,r,o){var i;let a=(i=r?.message)!==null&&i!==void 0?i:(0,cP.getMessageFromCode)(o);this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:t,response:{method:n,errorMessage:a,errorCode:o}})}invokeCallback(t){let n=this.relayEventManager.callbacks.get(t.id);n&&(n(t.response),this.relayEventManager.callbacks.delete(t.id))}requestEthereumAccounts(){let t={method:\"requestEthereumAccounts\",params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},n=null,r=(0,cc.randomBytesHex)(8),o=a=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,t.method,a),n?.()};return{promise:new Promise((a,c)=>{if(this.relayEventManager.callbacks.set(r,l=>{if(this.ui.hideRequestEthereumAccounts(),n?.(),(0,SR.isErrorResponse)(l))return c(new Error(l.errorMessage));a(l)}),this.ui.inlineAccountsResponse()){let l=d=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:r,response:{method:\"requestEthereumAccounts\",result:d}})};this.ui.requestEthereumAccounts({onCancel:o,onAccounts:l})}else{let l=cP.standardErrors.provider.userRejectedRequest(\"User denied account authorization\");this.ui.requestEthereumAccounts({onCancel:()=>o(l)})}e.accountRequestCallbackIds.add(r),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(r,t)}),cancel:o}}selectProvider(t){let n={method:\"selectProvider\",params:{providerOptions:t}},r=(0,cc.randomBytesHex)(8),o=a=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,n.method,a)},i=new Promise((a,c)=>{this.relayEventManager.callbacks.set(r,m=>{if((0,SR.isErrorResponse)(m))return c(new Error(m.errorMessage));a(m)});let l=m=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:r,response:{method:\"selectProvider\",result:r3t.ProviderType.Unselected}})},d=m=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:r,response:{method:\"selectProvider\",result:m}})};this.ui.selectProvider&&this.ui.selectProvider({onApprove:d,onCancel:l,providerOptions:t})});return{cancel:o,promise:i}}watchAsset(t,n,r,o,i,a){let c={method:\"watchAsset\",params:{type:t,options:{address:n,symbol:r,decimals:o,image:i},chainId:a}},l=null,d=(0,cc.randomBytesHex)(8),m=g=>{this.publishWeb3RequestCanceledEvent(d),this.handleErrorResponse(d,c.method,g),l?.()};this.ui.inlineWatchAsset()||(l=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:m,onResetConnection:this.resetAndReload}));let h=new Promise((g,y)=>{this.relayEventManager.callbacks.set(d,I=>{if(l?.(),(0,SR.isErrorResponse)(I))return y(new Error(I.errorMessage));g(I)});let w=I=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:d,response:{method:\"watchAsset\",result:!1}})},x=()=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:d,response:{method:\"watchAsset\",result:!0}})};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:x,onCancel:w,type:t,address:n,symbol:r,decimals:o,image:i,chainId:a}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(d,c)});return{cancel:m,promise:h}}addEthereumChain(t,n,r,o,i,a){let c={method:\"addEthereumChain\",params:{chainId:t,rpcUrls:n,blockExplorerUrls:o,chainName:i,iconUrls:r,nativeCurrency:a}},l=null,d=(0,cc.randomBytesHex)(8),m=g=>{this.publishWeb3RequestCanceledEvent(d),this.handleErrorResponse(d,c.method,g),l?.()};return this.ui.inlineAddEthereumChain(t)||(l=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:m,onResetConnection:this.resetAndReload})),{promise:new Promise((g,y)=>{this.relayEventManager.callbacks.set(d,I=>{if(l?.(),(0,SR.isErrorResponse)(I))return y(new Error(I.errorMessage));g(I)});let w=I=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:d,response:{method:\"addEthereumChain\",result:{isApproved:!1,rpcUrl:\"\"}}})},x=I=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:d,response:{method:\"addEthereumChain\",result:{isApproved:!0,rpcUrl:I}}})};this.ui.inlineAddEthereumChain(t)&&this.ui.addEthereumChain({onCancel:w,onApprove:x,chainId:c.params.chainId,rpcUrls:c.params.rpcUrls,blockExplorerUrls:c.params.blockExplorerUrls,chainName:c.params.chainName,iconUrls:c.params.iconUrls,nativeCurrency:c.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(t)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(d,c)}),cancel:m}}switchEthereumChain(t,n){let r={method:\"switchEthereumChain\",params:Object.assign({chainId:t},{address:n})},o=(0,cc.randomBytesHex)(8),i=c=>{this.publishWeb3RequestCanceledEvent(o),this.handleErrorResponse(o,r.method,c)};return{promise:new Promise((c,l)=>{this.relayEventManager.callbacks.set(o,h=>{if((0,SR.isErrorResponse)(h)&&h.errorCode)return l(cP.standardErrors.provider.custom({code:h.errorCode,message:\"Unrecognized chain ID. Try adding the chain using addEthereumChain first.\"}));if((0,SR.isErrorResponse)(h))return l(new Error(h.errorMessage));c(h)});let d=h=>{var g;if(h){let y=(g=(0,cP.getErrorCode)(h))!==null&&g!==void 0?g:cP.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(o,\"switchEthereumChain\",h instanceof Error?h:cP.standardErrors.provider.unsupportedChain(t),y)}else this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:o,response:{method:\"switchEthereumChain\",result:{isApproved:!1,rpcUrl:\"\"}}})},m=h=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:o,response:{method:\"switchEthereumChain\",result:{isApproved:!0,rpcUrl:h}}})};this.ui.switchEthereumChain({onCancel:d,onApprove:m,chainId:r.params.chainId,address:r.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(o,r)}),cancel:i}}inlineAddEthereumChain(t){return this.ui.inlineAddEthereumChain(t)}getSessionIdHash(){return vT.Session.hash(this._session.id)}sendRequestStandalone(t,n){let r=i=>{this.handleErrorResponse(t,n.method,i)},o=i=>{this.handleWeb3ResponseMessage({type:\"WEB3_RESPONSE\",id:t,response:i})};switch(n.method){case\"signEthereumMessage\":this.ui.signEthereumMessage({request:n,onSuccess:o,onCancel:r});break;case\"signEthereumTransaction\":this.ui.signEthereumTransaction({request:n,onSuccess:o,onCancel:r});break;case\"submitEthereumTransaction\":this.ui.submitEthereumTransaction({request:n,onSuccess:o,onCancel:r});break;case\"ethereumAddressFromSignedMessage\":this.ui.ethereumAddressFromSignedMessage({request:n,onSuccess:o});break;default:r();break}}};EX.WalletLinkRelay=xX;xX.accountRequestCallbackIds=new Set});var bVe=me(_R=>{\"use strict\";f();var a3t=_R&&_R.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||(\"get\"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),s3t=_R&&_R.__exportStar||function(e,t){for(var n in e)n!==\"default\"&&!Object.prototype.hasOwnProperty.call(t,n)&&a3t(t,e,n)};Object.defineProperty(_R,\"__esModule\",{value:!0});s3t(c0e(),_R)});var vVe=me(f0e=>{\"use strict\";f();Object.defineProperty(f0e,\"__esModule\",{value:!0});f0e.default=\".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}\"});var xVe=me(uP=>{\"use strict\";f();var wVe=uP&&uP.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(uP,\"__esModule\",{value:!0});uP.RedirectDialog=void 0;var c3t=wVe((xE(),hi(EO))),Nw=(Of(),hi(Jp)),u3t=Mme(),l3t=bVe(),d3t=wVe(vVe()),p0e=class{constructor(){this.root=null}attach(){let t=document.documentElement;this.root=document.createElement(\"div\"),this.root.className=\"-cbwsdk-css-reset\",t.appendChild(this.root),(0,u3t.injectCssReset)()}present(t){this.render(t)}clear(){this.render(null)}render(t){this.root&&((0,Nw.render)(null,this.root),t&&(0,Nw.render)((0,Nw.h)(f3t,Object.assign({},t,{onDismiss:()=>{this.clear()}})),this.root))}};uP.RedirectDialog=p0e;var f3t=({title:e,buttonText:t,darkMode:n,onButtonClick:r,onDismiss:o})=>{let i=n?\"dark\":\"light\";return(0,Nw.h)(l3t.SnackbarContainer,{darkMode:n},(0,Nw.h)(\"div\",{class:\"-cbwsdk-redirect-dialog\"},(0,Nw.h)(\"style\",null,d3t.default),(0,Nw.h)(\"div\",{class:\"-cbwsdk-redirect-dialog-backdrop\",onClick:o}),(0,Nw.h)(\"div\",{class:(0,c3t.default)(\"-cbwsdk-redirect-dialog-box\",i)},(0,Nw.h)(\"p\",null,e),(0,Nw.h)(\"button\",{onClick:r},t))))}});var m0e=me(AX=>{\"use strict\";f();Object.defineProperty(AX,\"__esModule\",{value:!0});AX.MobileRelayUI=void 0;var p3t=xVe(),h0e=class{constructor(t){this.attached=!1,this.darkMode=!1,this.redirectDialog=new p3t.RedirectDialog,this.darkMode=t.darkMode}attach(){if(this.attached)throw new Error(\"Coinbase Wallet SDK UI is already attached\");this.redirectDialog.attach(),this.attached=!0}setConnected(t){}redirectToCoinbaseWallet(t){let n=new URL(\"https://go.cb-w.com/walletlink\");n.searchParams.append(\"redirect_url\",window.location.href),t&&n.searchParams.append(\"wl_url\",t);let r=document.createElement(\"a\");r.target=\"cbw-opener\",r.href=n.href,r.rel=\"noreferrer noopener\",r.click()}openCoinbaseWalletDeeplink(t){this.redirectDialog.present({title:\"Redirecting to Coinbase Wallet...\",buttonText:\"Open\",darkMode:this.darkMode,onButtonClick:()=>{this.redirectToCoinbaseWallet(t)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(t)},99)}showConnecting(t){return()=>{this.redirectDialog.clear()}}hideRequestEthereumAccounts(){this.redirectDialog.clear()}requestEthereumAccounts(){}addEthereumChain(){}watchAsset(){}selectProvider(){}switchEthereumChain(){}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}reloadUI(){}setStandalone(){}setConnectDisabled(){}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}isStandalone(){return!1}};AX.MobileRelayUI=h0e});var y0e=me(SX=>{\"use strict\";f();Object.defineProperty(SX,\"__esModule\",{value:!0});SX.MobileRelay=void 0;var h3t=_w(),m3t=d0e(),g3t=m0e(),g0e=class extends m3t.WalletLinkRelay{constructor(t){var n;super(t),this._enableMobileWalletLink=(n=t.enableMobileWalletLink)!==null&&n!==void 0?n:!1}requestEthereumAccounts(){return this._enableMobileWalletLink?super.requestEthereumAccounts():{promise:new Promise(()=>{let t=(0,h3t.getLocation)();t.href=`https://go.cb-w.com/dapp?cb_url=${encodeURIComponent(t.href)}`}),cancel:()=>{}}}publishWeb3RequestEvent(t,n){if(super.publishWeb3RequestEvent(t,n),!(this._enableMobileWalletLink&&this.ui instanceof g3t.MobileRelayUI))return;let r=!1;switch(n.method){case\"requestEthereumAccounts\":case\"connectAndSignIn\":r=!0,this.ui.openCoinbaseWalletDeeplink(this.getQRCodeUrl());break;case\"switchEthereumChain\":return;default:r=!0,this.ui.openCoinbaseWalletDeeplink();break}r&&window.addEventListener(\"blur\",()=>{window.addEventListener(\"focus\",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0})}handleWeb3ResponseMessage(t){super.handleWeb3ResponseMessage(t)}connectAndSignIn(t){if(!this._enableMobileWalletLink)throw new Error(\"connectAndSignIn is supported only when enableMobileWalletLink is on\");return this.sendRequest({method:\"connectAndSignIn\",params:{appName:this.appName,appLogoUrl:this.appLogoUrl,domain:window.location.hostname,aud:window.location.href,version:\"1\",type:\"eip4361\",nonce:t.nonce,iat:new Date().toISOString(),chainId:`eip155:${this.dappDefaultChain}`,statement:t.statement,resources:t.resources}})}};SX.MobileRelay=g0e});var bF=me((pir,b0e)=>{\"use strict\";f();var lP=typeof Reflect==\"object\"?Reflect:null,EVe=lP&&typeof lP.apply==\"function\"?lP.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},_X;lP&&typeof lP.ownKeys==\"function\"?_X=lP.ownKeys:Object.getOwnPropertySymbols?_X=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:_X=function(t){return Object.getOwnPropertyNames(t)};function y3t(e){console&&console.warn&&console.warn(e)}var SVe=Number.isNaN||function(t){return t!==t};function sa(){sa.init.call(this)}b0e.exports=sa;b0e.exports.once=x3t;sa.EventEmitter=sa;sa.prototype._events=void 0;sa.prototype._eventsCount=0;sa.prototype._maxListeners=void 0;var AVe=10;function TX(e){if(typeof e!=\"function\")throw new TypeError(\\'The \"listener\" argument must be of type Function. Received type \\'+typeof e)}Object.defineProperty(sa,\"defaultMaxListeners\",{enumerable:!0,get:function(){return AVe},set:function(e){if(typeof e!=\"number\"||e<0||SVe(e))throw new RangeError(\\'The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received \\'+e+\".\");AVe=e}});sa.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};sa.prototype.setMaxListeners=function(t){if(typeof t!=\"number\"||t<0||SVe(t))throw new RangeError(\\'The value of \"n\" is out of range. It must be a non-negative number. Received \\'+t+\".\");return this._maxListeners=t,this};function _Ve(e){return e._maxListeners===void 0?sa.defaultMaxListeners:e._maxListeners}sa.prototype.getMaxListeners=function(){return _Ve(this)};sa.prototype.emit=function(t){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var o=t===\"error\",i=this._events;if(i!==void 0)o=o&&i.error===void 0;else if(!o)return!1;if(o){var a;if(n.length>0&&(a=n[0]),a instanceof Error)throw a;var c=new Error(\"Unhandled error.\"+(a?\" (\"+a.message+\")\":\"\"));throw c.context=a,c}var l=i[t];if(l===void 0)return!1;if(typeof l==\"function\")EVe(l,this,n);else for(var d=l.length,m=kVe(l,d),r=0;r<d;++r)EVe(m[r],this,n);return!0};function TVe(e,t,n,r){var o,i,a;if(TX(n),i=e._events,i===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit(\"newListener\",t,n.listener?n.listener:n),i=e._events),a=i[t]),a===void 0)a=i[t]=n,++e._eventsCount;else if(typeof a==\"function\"?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),o=_Ve(e),o>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error(\"Possible EventEmitter memory leak detected. \"+a.length+\" \"+String(t)+\" listeners added. Use emitter.setMaxListeners() to increase limit\");c.name=\"MaxListenersExceededWarning\",c.emitter=e,c.type=t,c.count=a.length,y3t(c)}return e}sa.prototype.addListener=function(t,n){return TVe(this,t,n,!1)};sa.prototype.on=sa.prototype.addListener;sa.prototype.prependListener=function(t,n){return TVe(this,t,n,!0)};function b3t(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function CVe(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=b3t.bind(r);return o.listener=n,r.wrapFn=o,o}sa.prototype.once=function(t,n){return TX(n),this.on(t,CVe(this,t,n)),this};sa.prototype.prependOnceListener=function(t,n){return TX(n),this.prependListener(t,CVe(this,t,n)),this};sa.prototype.removeListener=function(t,n){var r,o,i,a,c;if(TX(n),o=this._events,o===void 0)return this;if(r=o[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete o[t],o.removeListener&&this.emit(\"removeListener\",t,r.listener||n));else if(typeof r!=\"function\"){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===n||r[a].listener===n){c=r[a].listener,i=a;break}if(i<0)return this;i===0?r.shift():v3t(r,i),r.length===1&&(o[t]=r[0]),o.removeListener!==void 0&&this.emit(\"removeListener\",t,c||n)}return this};sa.prototype.off=sa.prototype.removeListener;sa.prototype.removeAllListeners=function(t){var n,r,o;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var i=Object.keys(r),a;for(o=0;o<i.length;++o)a=i[o],a!==\"removeListener\"&&this.removeAllListeners(a);return this.removeAllListeners(\"removeListener\"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[t],typeof n==\"function\")this.removeListener(t,n);else if(n!==void 0)for(o=n.length-1;o>=0;o--)this.removeListener(t,n[o]);return this};function RVe(e,t,n){var r=e._events;if(r===void 0)return[];var o=r[t];return o===void 0?[]:typeof o==\"function\"?n?[o.listener||o]:[o]:n?w3t(o):kVe(o,o.length)}sa.prototype.listeners=function(t){return RVe(this,t,!0)};sa.prototype.rawListeners=function(t){return RVe(this,t,!1)};sa.listenerCount=function(e,t){return typeof e.listenerCount==\"function\"?e.listenerCount(t):IVe.call(e,t)};sa.prototype.listenerCount=IVe;function IVe(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==\"function\")return 1;if(n!==void 0)return n.length}return 0}sa.prototype.eventNames=function(){return this._eventsCount>0?_X(this._events):[]};function kVe(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v3t(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function w3t(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function x3t(e,t){return new Promise(function(n,r){function o(a){e.removeListener(t,i),r(a)}function i(){typeof e.removeListener==\"function\"&&e.removeListener(\"error\",o),n([].slice.call(arguments))}OVe(e,t,i,{once:!0}),t!==\"error\"&&E3t(e,o,{once:!0})})}function E3t(e,t,n){typeof e.on==\"function\"&&OVe(e,\"error\",t,n)}function OVe(e,t,n,r){if(typeof e.on==\"function\")r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener==\"function\")e.addEventListener(t,function o(i){r.once&&e.removeEventListener(t,o),n(i)});else throw new TypeError(\\'The \"emitter\" argument must be of type EventEmitter. Received type \\'+typeof e)}});var v0e=me((mir,NVe)=>{f();NVe.exports=bF().EventEmitter});var w0e=me(()=>{f()});var UVe=me((wir,LVe)=>{\"use strict\";f();function PVe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function MVe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PVe(Object(n),!0).forEach(function(r){A3t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PVe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function A3t(e,t,n){return t=BVe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S3t(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function DVe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,BVe(r.key),r)}}function _3t(e,t,n){return t&&DVe(e.prototype,t),n&&DVe(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}function BVe(e){var t=T3t(e,\"string\");return typeof t==\"symbol\"?t:String(t)}function T3t(e,t){if(typeof e!=\"object\"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||\"default\");if(typeof r!=\"object\")return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(t===\"string\"?String:Number)(e)}var C3t=P2(),CX=C3t.Buffer,R3t=w0e(),x0e=R3t.inspect,I3t=x0e&&x0e.custom||\"inspect\";function k3t(e,t,n){CX.prototype.copy.call(e,t,n)}LVe.exports=(function(){function e(){S3t(this,e),this.head=null,this.tail=null,this.length=0}return _3t(e,[{key:\"push\",value:function(n){var r={data:n,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}},{key:\"unshift\",value:function(n){var r={data:n,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}},{key:\"shift\",value:function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}}},{key:\"clear\",value:function(){this.head=this.tail=null,this.length=0}},{key:\"join\",value:function(n){if(this.length===0)return\"\";for(var r=this.head,o=\"\"+r.data;r=r.next;)o+=n+r.data;return o}},{key:\"concat\",value:function(n){if(this.length===0)return CX.alloc(0);for(var r=CX.allocUnsafe(n>>>0),o=this.head,i=0;o;)k3t(o.data,r,i),i+=o.data.length,o=o.next;return r}},{key:\"consume\",value:function(n,r){var o;return n<this.head.data.length?(o=this.head.data.slice(0,n),this.head.data=this.head.data.slice(n)):n===this.head.data.length?o=this.shift():o=r?this._getString(n):this._getBuffer(n),o}},{key:\"first\",value:function(){return this.head.data}},{key:\"_getString\",value:function(n){var r=this.head,o=1,i=r.data;for(n-=i.length;r=r.next;){var a=r.data,c=n>a.length?a.length:n;if(c===a.length?i+=a:i+=a.slice(0,n),n-=c,n===0){c===a.length?(++o,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=a.slice(c));break}++o}return this.length-=o,i}},{key:\"_getBuffer\",value:function(n){var r=CX.allocUnsafe(n),o=this.head,i=1;for(o.data.copy(r),n-=o.data.length;o=o.next;){var a=o.data,c=n>a.length?a.length:n;if(a.copy(r,r.length-n,0,c),n-=c,n===0){c===a.length?(++i,o.next?this.head=o.next:this.head=this.tail=null):(this.head=o,o.data=a.slice(c));break}++i}return this.length-=i,r}},{key:I3t,value:function(n,r){return x0e(this,MVe(MVe({},r),{},{depth:0,customInspect:!1}))}}]),e})()});var A0e=me((Eir,HVe)=>{\"use strict\";f();function O3t(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return r||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(E0e,this,e)):process.nextTick(E0e,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!t&&i?n._writableState?n._writableState.errorEmitted?process.nextTick(RX,n):(n._writableState.errorEmitted=!0,process.nextTick(FVe,n,i)):process.nextTick(FVe,n,i):t?(process.nextTick(RX,n),t(i)):process.nextTick(RX,n)}),this)}function FVe(e,t){E0e(e,t),RX(e)}function RX(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(\"close\")}function N3t(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function E0e(e,t){e.emit(\"error\",t)}function P3t(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(\"error\",t)}HVe.exports={destroy:O3t,undestroy:N3t,errorOrDestroy:P3t}});var TR=me((Sir,WVe)=>{\"use strict\";f();function M3t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var jVe={};function uy(e,t,n){n||(n=Error);function r(i,a,c){return typeof t==\"string\"?t:t(i,a,c)}var o=(function(i){M3t(a,i);function a(c,l,d){return i.call(this,r(c,l,d))||this}return a})(n);o.prototype.name=n.name,o.prototype.code=e,jVe[e]=o}function zVe(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(r){return String(r)}),n>2?\"one of \".concat(t,\" \").concat(e.slice(0,n-1).join(\", \"),\", or \")+e[n-1]:n===2?\"one of \".concat(t,\" \").concat(e[0],\" or \").concat(e[1]):\"of \".concat(t,\" \").concat(e[0])}else return\"of \".concat(t,\" \").concat(String(e))}function D3t(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function B3t(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function L3t(e,t,n){return typeof n!=\"number\"&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}uy(\"ERR_INVALID_OPT_VALUE\",function(e,t){return\\'The value \"\\'+t+\\'\" is invalid for option \"\\'+e+\\'\"\\'},TypeError);uy(\"ERR_INVALID_ARG_TYPE\",function(e,t,n){var r;typeof t==\"string\"&&D3t(t,\"not \")?(r=\"must not be\",t=t.replace(/^not /,\"\")):r=\"must be\";var o;if(B3t(e,\" argument\"))o=\"The \".concat(e,\" \").concat(r,\" \").concat(zVe(t,\"type\"));else{var i=L3t(e,\".\")?\"property\":\"argument\";o=\\'The \"\\'.concat(e,\\'\" \\').concat(i,\" \").concat(r,\" \").concat(zVe(t,\"type\"))}return o+=\". Received type \".concat(typeof n),o},TypeError);uy(\"ERR_STREAM_PUSH_AFTER_EOF\",\"stream.push() after EOF\");uy(\"ERR_METHOD_NOT_IMPLEMENTED\",function(e){return\"The \"+e+\" method is not implemented\"});uy(\"ERR_STREAM_PREMATURE_CLOSE\",\"Premature close\");uy(\"ERR_STREAM_DESTROYED\",function(e){return\"Cannot call \"+e+\" after a stream was destroyed\"});uy(\"ERR_MULTIPLE_CALLBACK\",\"Callback called multiple times\");uy(\"ERR_STREAM_CANNOT_PIPE\",\"Cannot pipe, not readable\");uy(\"ERR_STREAM_WRITE_AFTER_END\",\"write after end\");uy(\"ERR_STREAM_NULL_VALUES\",\"May not write null values to stream\",TypeError);uy(\"ERR_UNKNOWN_ENCODING\",function(e){return\"Unknown encoding: \"+e},TypeError);uy(\"ERR_STREAM_UNSHIFT_AFTER_END_EVENT\",\"stream.unshift() after end event\");WVe.exports.codes=jVe});var S0e=me((Tir,VVe)=>{\"use strict\";f();var U3t=TR().codes.ERR_INVALID_OPT_VALUE;function F3t(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}function H3t(e,t,n,r){var o=F3t(t,r,n);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var i=r?n:\"highWaterMark\";throw new U3t(i,o)}return Math.floor(o)}return e.objectMode?16:16*1024}VVe.exports={getHighWaterMark:H3t}});var qVe=me((Rir,GVe)=>{f();GVe.exports=z3t;function z3t(e,t){if(_0e(\"noDeprecation\"))return e;var n=!1;function r(){if(!n){if(_0e(\"throwDeprecation\"))throw new Error(t);_0e(\"traceDeprecation\")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return r}function _0e(e){try{if(!globalThis.localStorage)return!1}catch{return!1}var t=globalThis.localStorage[e];return t==null?!1:String(t).toLowerCase()===\"true\"}});var R0e=me((kir,XVe)=>{\"use strict\";f();XVe.exports=Rc;function YVe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){hRt(t,e)}}var dP;Rc.WritableState=wF;var j3t={deprecate:qVe()},ZVe=v0e(),kX=P2().Buffer,W3t=(typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){};function V3t(e){return kX.from(e)}function G3t(e){return kX.isBuffer(e)||e instanceof W3t}var C0e=A0e(),q3t=S0e(),K3t=q3t.getHighWaterMark,wT=TR().codes,Y3t=wT.ERR_INVALID_ARG_TYPE,Z3t=wT.ERR_METHOD_NOT_IMPLEMENTED,Q3t=wT.ERR_MULTIPLE_CALLBACK,J3t=wT.ERR_STREAM_CANNOT_PIPE,X3t=wT.ERR_STREAM_DESTROYED,$3t=wT.ERR_STREAM_NULL_VALUES,eRt=wT.ERR_STREAM_WRITE_AFTER_END,tRt=wT.ERR_UNKNOWN_ENCODING,fP=C0e.errorOrDestroy;sy()(Rc,ZVe);function nRt(){}function wF(e,t,n){dP=dP||CR(),e=e||{},typeof n!=\"boolean\"&&(n=t instanceof dP),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=K3t(this,e,\"writableHighWaterMark\",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var r=e.decodeStrings===!1;this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(o){uRt(t,o)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new YVe(this)}wF.prototype.getBuffer=function(){for(var t=this.bufferedRequest,n=[];t;)n.push(t),t=t.next;return n};(function(){try{Object.defineProperty(wF.prototype,\"buffer\",{get:j3t.deprecate(function(){return this.getBuffer()},\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch{}})();var IX;typeof Symbol==\"function\"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==\"function\"?(IX=Function.prototype[Symbol.hasInstance],Object.defineProperty(Rc,Symbol.hasInstance,{value:function(t){return IX.call(this,t)?!0:this!==Rc?!1:t&&t._writableState instanceof wF}})):IX=function(t){return t instanceof this};function Rc(e){dP=dP||CR();var t=this instanceof dP;if(!t&&!IX.call(Rc,this))return new Rc(e);this._writableState=new wF(e,this,t),this.writable=!0,e&&(typeof e.write==\"function\"&&(this._write=e.write),typeof e.writev==\"function\"&&(this._writev=e.writev),typeof e.destroy==\"function\"&&(this._destroy=e.destroy),typeof e.final==\"function\"&&(this._final=e.final)),ZVe.call(this)}Rc.prototype.pipe=function(){fP(this,new J3t)};function rRt(e,t){var n=new eRt;fP(e,n),process.nextTick(t,n)}function oRt(e,t,n,r){var o;return n===null?o=new $3t:typeof n!=\"string\"&&!t.objectMode&&(o=new Y3t(\"chunk\",[\"string\",\"Buffer\"],n)),o?(fP(e,o),process.nextTick(r,o),!1):!0}Rc.prototype.write=function(e,t,n){var r=this._writableState,o=!1,i=!r.objectMode&&G3t(e);return i&&!kX.isBuffer(e)&&(e=V3t(e)),typeof t==\"function\"&&(n=t,t=null),i?t=\"buffer\":t||(t=r.defaultEncoding),typeof n!=\"function\"&&(n=nRt),r.ending?rRt(this,n):(i||oRt(this,r,e,n))&&(r.pendingcb++,o=aRt(this,r,i,e,t,n)),o};Rc.prototype.cork=function(){this._writableState.corked++};Rc.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&QVe(this,e))};Rc.prototype.setDefaultEncoding=function(t){if(typeof t==\"string\"&&(t=t.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((t+\"\").toLowerCase())>-1))throw new tRt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Rc.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function iRt(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==\"string\"&&(t=kX.from(t,n)),t}Object.defineProperty(Rc.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function aRt(e,t,n,r,o,i){if(!n){var a=iRt(t,r,o);r!==a&&(n=!0,o=\"buffer\",r=a)}var c=t.objectMode?1:r.length;t.length+=c;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var d=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:i,next:null},d?d.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else T0e(e,t,!1,c,r,o,i);return l}function T0e(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new X3t(\"write\")):n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function sRt(e,t,n,r,o){--t.pendingcb,n?(process.nextTick(o,r),process.nextTick(vF,e,t),e._writableState.errorEmitted=!0,fP(e,r)):(o(r),e._writableState.errorEmitted=!0,fP(e,r),vF(e,t))}function cRt(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function uRt(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(typeof o!=\"function\")throw new Q3t;if(cRt(n),t)sRt(e,n,r,t,o);else{var i=JVe(n)||e.destroyed;!i&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&QVe(e,n),r?process.nextTick(KVe,e,n,i,o):KVe(e,n,i,o)}}function KVe(e,t,n,r){n||lRt(e,t),t.pendingcb--,r(),vF(e,t)}function lRt(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(\"drain\"))}function QVe(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var a=0,c=!0;n;)o[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;o.allBuffers=c,T0e(e,t,!0,t.length,o,\"\",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new YVe(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,d=n.encoding,m=n.callback,h=t.objectMode?1:l.length;if(T0e(e,t,!1,h,l,d,m),n=n.next,t.bufferedRequestCount--,t.writing)break}n===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}Rc.prototype._write=function(e,t,n){n(new Z3t(\"_write()\"))};Rc.prototype._writev=null;Rc.prototype.end=function(e,t,n){var r=this._writableState;return typeof e==\"function\"?(n=e,e=null,t=null):typeof t==\"function\"&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||pRt(this,r,n),this};Object.defineProperty(Rc.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}});function JVe(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function dRt(e,t){e._final(function(n){t.pendingcb--,n&&fP(e,n),t.prefinished=!0,e.emit(\"prefinish\"),vF(e,t)})}function fRt(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==\"function\"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(dRt,e,t)):(t.prefinished=!0,e.emit(\"prefinish\")))}function vF(e,t){var n=JVe(t);if(n&&(fRt(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(\"finish\"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}function pRt(e,t,n){t.ending=!0,vF(e,t),n&&(t.finished?process.nextTick(n):e.once(\"finish\",n)),t.ended=!0,e.writable=!1}function hRt(e,t,n){var r=e.entry;for(e.entry=null;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree.next=e}Object.defineProperty(Rc.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Rc.prototype.destroy=C0e.destroy;Rc.prototype._undestroy=C0e.undestroy;Rc.prototype._destroy=function(e,t){t(e)}});var CR=me((Nir,eGe)=>{\"use strict\";f();var mRt=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};eGe.exports=Pw;var $Ve=O0e(),k0e=R0e();sy()(Pw,$Ve);for(I0e=mRt(k0e.prototype),OX=0;OX<I0e.length;OX++)NX=I0e[OX],Pw.prototype[NX]||(Pw.prototype[NX]=k0e.prototype[NX]);var I0e,NX,OX;function Pw(e){if(!(this instanceof Pw))return new Pw(e);$Ve.call(this,e),k0e.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once(\"end\",gRt)))}Object.defineProperty(Pw.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Pw.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Pw.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}});function gRt(){this._writableState.ended||process.nextTick(yRt,this)}function yRt(e){e.end()}Object.defineProperty(Pw.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var M0e=me(nGe=>{\"use strict\";f();var P0e=l1().Buffer,tGe=P0e.isEncoding||function(e){switch(e=\"\"+e,e&&e.toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":case\"raw\":return!0;default:return!1}};function bRt(e){if(!e)return\"utf8\";for(var t;;)switch(e){case\"utf8\":case\"utf-8\":return\"utf8\";case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return\"utf16le\";case\"latin1\":case\"binary\":return\"latin1\";case\"base64\":case\"ascii\":case\"hex\":return e;default:if(t)return;e=(\"\"+e).toLowerCase(),t=!0}}function vRt(e){var t=bRt(e);if(typeof t!=\"string\"&&(P0e.isEncoding===tGe||!tGe(e)))throw new Error(\"Unknown encoding: \"+e);return t||e}nGe.StringDecoder=xF;function xF(e){this.encoding=vRt(e);var t;switch(this.encoding){case\"utf16le\":this.text=_Rt,this.end=TRt,t=4;break;case\"utf8\":this.fillLast=ERt,t=4;break;case\"base64\":this.text=CRt,this.end=RRt,t=3;break;default:this.write=IRt,this.end=kRt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=P0e.allocUnsafe(t)}xF.prototype.write=function(e){if(e.length===0)return\"\";var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return\"\";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||\"\"};xF.prototype.end=SRt;xF.prototype.text=ARt;xF.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function N0e(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function wRt(e,t,n){var r=t.length-1;if(r<n)return 0;var o=N0e(t[r]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--r<n||o===-2?0:(o=N0e(t[r]),o>=0?(o>0&&(e.lastNeed=o-2),o):--r<n||o===-2?0:(o=N0e(t[r]),o>=0?(o>0&&(o===2?o=0:e.lastNeed=o-3),o):0))}function xRt(e,t,n){if((t[0]&192)!==128)return e.lastNeed=0,\"\\\\uFFFD\";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,\"\\\\uFFFD\";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,\"\\\\uFFFD\"}}function ERt(e){var t=this.lastTotal-this.lastNeed,n=xRt(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function ARt(e,t){var n=wRt(this,e,t);if(!this.lastNeed)return e.toString(\"utf8\",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(\"utf8\",t,r)}function SRt(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+\"\\\\uFFFD\":t}function _Rt(e,t){if((e.length-t)%2===0){var n=e.toString(\"utf16le\",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(\"utf16le\",t,e.length-1)}function TRt(e){var t=e&&e.length?this.write(e):\"\";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(\"utf16le\",0,n)}return t}function CRt(e,t){var n=(e.length-t)%3;return n===0?e.toString(\"base64\",t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(\"base64\",t,e.length-n))}function RRt(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+this.lastChar.toString(\"base64\",0,3-this.lastNeed):t}function IRt(e){return e.toString(this.encoding)}function kRt(e){return e&&e.length?this.write(e):\"\"}});var PX=me((Bir,iGe)=>{\"use strict\";f();var rGe=TR().codes.ERR_STREAM_PREMATURE_CLOSE;function ORt(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r)}}}function NRt(){}function PRt(e){return e.setHeader&&typeof e.abort==\"function\"}function oGe(e,t,n){if(typeof t==\"function\")return oGe(e,null,t);t||(t={}),n=ORt(n||NRt);var r=t.readable||t.readable!==!1&&e.readable,o=t.writable||t.writable!==!1&&e.writable,i=function(){e.writable||c()},a=e._writableState&&e._writableState.finished,c=function(){o=!1,a=!0,r||n.call(e)},l=e._readableState&&e._readableState.endEmitted,d=function(){r=!1,l=!0,o||n.call(e)},m=function(w){n.call(e,w)},h=function(){var w;if(r&&!l)return(!e._readableState||!e._readableState.ended)&&(w=new rGe),n.call(e,w);if(o&&!a)return(!e._writableState||!e._writableState.ended)&&(w=new rGe),n.call(e,w)},g=function(){e.req.on(\"finish\",c)};return PRt(e)?(e.on(\"complete\",c),e.on(\"abort\",h),e.req?g():e.on(\"request\",g)):o&&!e._writableState&&(e.on(\"end\",i),e.on(\"close\",i)),e.on(\"end\",d),e.on(\"finish\",c),t.error!==!1&&e.on(\"error\",m),e.on(\"close\",h),function(){e.removeListener(\"complete\",c),e.removeListener(\"abort\",h),e.removeListener(\"request\",g),e.req&&e.req.removeListener(\"finish\",c),e.removeListener(\"end\",i),e.removeListener(\"close\",i),e.removeListener(\"finish\",c),e.removeListener(\"end\",d),e.removeListener(\"error\",m),e.removeListener(\"close\",h)}}iGe.exports=oGe});var sGe=me((Uir,aGe)=>{\"use strict\";f();var MX;function xT(e,t,n){return t=MRt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MRt(e){var t=DRt(e,\"string\");return typeof t==\"symbol\"?t:String(t)}function DRt(e,t){if(typeof e!=\"object\"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||\"default\");if(typeof r!=\"object\")return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(t===\"string\"?String:Number)(e)}var BRt=PX(),ET=Symbol(\"lastResolve\"),RR=Symbol(\"lastReject\"),EF=Symbol(\"error\"),DX=Symbol(\"ended\"),IR=Symbol(\"lastPromise\"),D0e=Symbol(\"handlePromise\"),kR=Symbol(\"stream\");function AT(e,t){return{value:e,done:t}}function LRt(e){var t=e[ET];if(t!==null){var n=e[kR].read();n!==null&&(e[IR]=null,e[ET]=null,e[RR]=null,t(AT(n,!1)))}}function URt(e){process.nextTick(LRt,e)}function FRt(e,t){return function(n,r){e.then(function(){if(t[DX]){n(AT(void 0,!0));return}t[D0e](n,r)},r)}}var HRt=Object.getPrototypeOf(function(){}),zRt=Object.setPrototypeOf((MX={get stream(){return this[kR]},next:function(){var t=this,n=this[EF];if(n!==null)return Promise.reject(n);if(this[DX])return Promise.resolve(AT(void 0,!0));if(this[kR].destroyed)return new Promise(function(a,c){process.nextTick(function(){t[EF]?c(t[EF]):a(AT(void 0,!0))})});var r=this[IR],o;if(r)o=new Promise(FRt(r,this));else{var i=this[kR].read();if(i!==null)return Promise.resolve(AT(i,!1));o=new Promise(this[D0e])}return this[IR]=o,o}},xT(MX,Symbol.asyncIterator,function(){return this}),xT(MX,\"return\",function(){var t=this;return new Promise(function(n,r){t[kR].destroy(null,function(o){if(o){r(o);return}n(AT(void 0,!0))})})}),MX),HRt),jRt=function(t){var n,r=Object.create(zRt,(n={},xT(n,kR,{value:t,writable:!0}),xT(n,ET,{value:null,writable:!0}),xT(n,RR,{value:null,writable:!0}),xT(n,EF,{value:null,writable:!0}),xT(n,DX,{value:t._readableState.endEmitted,writable:!0}),xT(n,D0e,{value:function(i,a){var c=r[kR].read();c?(r[IR]=null,r[ET]=null,r[RR]=null,i(AT(c,!1))):(r[ET]=i,r[RR]=a)},writable:!0}),n));return r[IR]=null,BRt(t,function(o){if(o&&o.code!==\"ERR_STREAM_PREMATURE_CLOSE\"){var i=r[RR];i!==null&&(r[IR]=null,r[ET]=null,r[RR]=null,i(o)),r[EF]=o;return}var a=r[ET];a!==null&&(r[IR]=null,r[ET]=null,r[RR]=null,a(AT(void 0,!0))),r[DX]=!0}),t.on(\"readable\",URt.bind(null,r)),r};aGe.exports=jRt});var uGe=me((Hir,cGe)=>{f();cGe.exports=function(){throw new Error(\"Readable.from is not available in the browser\")}});var O0e=me((Wir,vGe)=>{\"use strict\";f();vGe.exports=ci;var pP;ci.ReadableState=pGe;var jir=bF().EventEmitter,fGe=function(t,n){return t.listeners(n).length},SF=v0e(),BX=P2().Buffer,WRt=(typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){};function VRt(e){return BX.from(e)}function GRt(e){return BX.isBuffer(e)||e instanceof WRt}var B0e=w0e(),co;B0e&&B0e.debuglog?co=B0e.debuglog(\"stream\"):co=function(){};var qRt=UVe(),W0e=A0e(),KRt=S0e(),YRt=KRt.getHighWaterMark,LX=TR().codes,ZRt=LX.ERR_INVALID_ARG_TYPE,QRt=LX.ERR_STREAM_PUSH_AFTER_EOF,JRt=LX.ERR_METHOD_NOT_IMPLEMENTED,XRt=LX.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,hP,L0e,U0e;sy()(ci,SF);var AF=W0e.errorOrDestroy,F0e=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function $Rt(e,t,n){if(typeof e.prependListener==\"function\")return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function pGe(e,t,n){pP=pP||CR(),e=e||{},typeof n!=\"boolean\"&&(n=t instanceof pP),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=YRt(this,e,\"readableHighWaterMark\",n),this.buffer=new qRt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(hP||(hP=M0e().StringDecoder),this.decoder=new hP(e.encoding),this.encoding=e.encoding)}function ci(e){if(pP=pP||CR(),!(this instanceof ci))return new ci(e);var t=this instanceof pP;this._readableState=new pGe(e,this,t),this.readable=!0,e&&(typeof e.read==\"function\"&&(this._read=e.read),typeof e.destroy==\"function\"&&(this._destroy=e.destroy)),SF.call(this)}Object.defineProperty(ci.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});ci.prototype.destroy=W0e.destroy;ci.prototype._undestroy=W0e.undestroy;ci.prototype._destroy=function(e,t){t(e)};ci.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==\"string\"&&(t=t||n.defaultEncoding,t!==n.encoding&&(e=BX.from(e,t),t=\"\"),r=!0),hGe(this,e,t,!1,r)};ci.prototype.unshift=function(e){return hGe(this,e,null,!0,!1)};function hGe(e,t,n,r,o){co(\"readableAddChunk\",t);var i=e._readableState;if(t===null)i.reading=!1,nIt(e,i);else{var a;if(o||(a=eIt(i,t)),a)AF(e,a);else if(i.objectMode||t&&t.length>0)if(typeof t!=\"string\"&&!i.objectMode&&Object.getPrototypeOf(t)!==BX.prototype&&(t=VRt(t)),r)i.endEmitted?AF(e,new XRt):H0e(e,i,t,!0);else if(i.ended)AF(e,new QRt);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!n?(t=i.decoder.write(t),i.objectMode||t.length!==0?H0e(e,i,t,!1):j0e(e,i)):H0e(e,i,t,!1)}else r||(i.reading=!1,j0e(e,i))}return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function H0e(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit(\"data\",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&UX(e)),j0e(e,t)}function eIt(e,t){var n;return!GRt(t)&&typeof t!=\"string\"&&t!==void 0&&!e.objectMode&&(n=new ZRt(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],t)),n}ci.prototype.isPaused=function(){return this._readableState.flowing===!1};ci.prototype.setEncoding=function(e){hP||(hP=M0e().StringDecoder);var t=new hP(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r=\"\";n!==null;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),r!==\"\"&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var lGe=1073741824;function tIt(e){return e>=lGe?e=lGe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function dGe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=tIt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}ci.prototype.read=function(e){co(\"read\",e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return co(\"read: emitReadable\",t.length,t.ended),t.length===0&&t.ended?z0e(this):UX(this),null;if(e=dGe(e,t),e===0&&t.ended)return t.length===0&&z0e(this),null;var r=t.needReadable;co(\"need readable\",r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,co(\"length less than watermark\",r)),t.ended||t.reading?(r=!1,co(\"reading or ended\",r)):r&&(co(\"do read\"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=dGe(n,t)));var o;return e>0?o=yGe(e,t):o=null,o===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&z0e(this)),o!==null&&this.emit(\"data\",o),o};function nIt(e,t){if(co(\"onEofChunk\"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?UX(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,mGe(e)))}}function UX(e){var t=e._readableState;co(\"emitReadable\",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(co(\"emitReadable\",t.flowing),t.emittedReadable=!0,process.nextTick(mGe,e))}function mGe(e){var t=e._readableState;co(\"emitReadable_\",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(\"readable\"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,V0e(e)}function j0e(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(rIt,e,t))}function rIt(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var n=t.length;if(co(\"maybeReadMore read 0\"),e.read(0),n===t.length)break}t.readingMore=!1}ci.prototype._read=function(e){AF(this,new JRt(\"_read()\"))};ci.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,co(\"pipe count=%d opts=%j\",r.pipesCount,t);var o=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,i=o?c:x;r.endEmitted?process.nextTick(i):n.once(\"end\",i),e.on(\"unpipe\",a);function a(I,C){co(\"onunpipe\"),I===n&&C&&C.hasUnpiped===!1&&(C.hasUnpiped=!0,m())}function c(){co(\"onend\"),e.end()}var l=oIt(n);e.on(\"drain\",l);var d=!1;function m(){co(\"cleanup\"),e.removeListener(\"close\",y),e.removeListener(\"finish\",w),e.removeListener(\"drain\",l),e.removeListener(\"error\",g),e.removeListener(\"unpipe\",a),n.removeListener(\"end\",c),n.removeListener(\"end\",x),n.removeListener(\"data\",h),d=!0,r.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}n.on(\"data\",h);function h(I){co(\"ondata\");var C=e.write(I);co(\"dest.write\",C),C===!1&&((r.pipesCount===1&&r.pipes===e||r.pipesCount>1&&bGe(r.pipes,e)!==-1)&&!d&&(co(\"false write response, pause\",r.awaitDrain),r.awaitDrain++),n.pause())}function g(I){co(\"onerror\",I),x(),e.removeListener(\"error\",g),fGe(e,\"error\")===0&&AF(e,I)}$Rt(e,\"error\",g);function y(){e.removeListener(\"finish\",w),x()}e.once(\"close\",y);function w(){co(\"onfinish\"),e.removeListener(\"close\",y),x()}e.once(\"finish\",w);function x(){co(\"unpipe\"),n.unpipe(e)}return e.emit(\"pipe\",n),r.flowing||(co(\"pipe resume\"),n.resume()),e};function oIt(e){return function(){var n=e._readableState;co(\"pipeOnDrain\",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&fGe(e,\"data\")&&(n.flowing=!0,V0e(e))}}ci.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(\"unpipe\",this,n),this);if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var a=bGe(t.pipes,e);return a===-1?this:(t.pipes.splice(a,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(\"unpipe\",this,n),this)};ci.prototype.on=function(e,t){var n=SF.prototype.on.call(this,e,t),r=this._readableState;return e===\"data\"?(r.readableListening=this.listenerCount(\"readable\")>0,r.flowing!==!1&&this.resume()):e===\"readable\"&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,co(\"on readable\",r.length,r.reading),r.length?UX(this):r.reading||process.nextTick(iIt,this)),n};ci.prototype.addListener=ci.prototype.on;ci.prototype.removeListener=function(e,t){var n=SF.prototype.removeListener.call(this,e,t);return e===\"readable\"&&process.nextTick(gGe,this),n};ci.prototype.removeAllListeners=function(e){var t=SF.prototype.removeAllListeners.apply(this,arguments);return(e===\"readable\"||e===void 0)&&process.nextTick(gGe,this),t};function gGe(e){var t=e._readableState;t.readableListening=e.listenerCount(\"readable\")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(\"data\")>0&&e.resume()}function iIt(e){co(\"readable nexttick read 0\"),e.read(0)}ci.prototype.resume=function(){var e=this._readableState;return e.flowing||(co(\"resume\"),e.flowing=!e.readableListening,aIt(this,e)),e.paused=!1,this};function aIt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(sIt,e,t))}function sIt(e,t){co(\"resume\",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(\"resume\"),V0e(e),t.flowing&&!t.reading&&e.read(0)}ci.prototype.pause=function(){return co(\"call pause flowing=%j\",this._readableState.flowing),this._readableState.flowing!==!1&&(co(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this._readableState.paused=!0,this};function V0e(e){var t=e._readableState;for(co(\"flow\",t.flowing);t.flowing&&e.read()!==null;);}ci.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;e.on(\"end\",function(){if(co(\"wrapped end\"),n.decoder&&!n.ended){var a=n.decoder.end();a&&a.length&&t.push(a)}t.push(null)}),e.on(\"data\",function(a){if(co(\"wrapped data\"),n.decoder&&(a=n.decoder.write(a)),!(n.objectMode&&a==null)&&!(!n.objectMode&&(!a||!a.length))){var c=t.push(a);c||(r=!0,e.pause())}});for(var o in e)this[o]===void 0&&typeof e[o]==\"function\"&&(this[o]=(function(c){return function(){return e[c].apply(e,arguments)}})(o));for(var i=0;i<F0e.length;i++)e.on(F0e[i],this.emit.bind(this,F0e[i]));return this._read=function(a){co(\"wrapped _read\",a),r&&(r=!1,e.resume())},this};typeof Symbol==\"function\"&&(ci.prototype[Symbol.asyncIterator]=function(){return L0e===void 0&&(L0e=sGe()),L0e(this)});Object.defineProperty(ci.prototype,\"readableHighWaterMark\",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(ci.prototype,\"readableBuffer\",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(ci.prototype,\"readableFlowing\",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});ci._fromList=yGe;Object.defineProperty(ci.prototype,\"readableLength\",{enumerable:!1,get:function(){return this._readableState.length}});function yGe(e,t){if(t.length===0)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(t.decoder?n=t.buffer.join(\"\"):t.buffer.length===1?n=t.buffer.first():n=t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function z0e(e){var t=e._readableState;co(\"endReadable\",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(cIt,t,e))}function cIt(e,t){if(co(\"endReadableNT\",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(\"end\"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==\"function\"&&(ci.from=function(e,t){return U0e===void 0&&(U0e=uGe()),U0e(ci,e,t)});function bGe(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}});var G0e=me((Gir,xGe)=>{\"use strict\";f();xGe.exports=FE;var FX=TR().codes,uIt=FX.ERR_METHOD_NOT_IMPLEMENTED,lIt=FX.ERR_MULTIPLE_CALLBACK,dIt=FX.ERR_TRANSFORM_ALREADY_TRANSFORMING,fIt=FX.ERR_TRANSFORM_WITH_LENGTH_0,HX=CR();sy()(FE,HX);function pIt(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(\"error\",new lIt);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function FE(e){if(!(this instanceof FE))return new FE(e);HX.call(this,e),this._transformState={afterTransform:pIt.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==\"function\"&&(this._transform=e.transform),typeof e.flush==\"function\"&&(this._flush=e.flush)),this.on(\"prefinish\",hIt)}function hIt(){var e=this;typeof this._flush==\"function\"&&!this._readableState.destroyed?this._flush(function(t,n){wGe(e,t,n)}):wGe(this,null,null)}FE.prototype.push=function(e,t){return this._transformState.needTransform=!1,HX.prototype.push.call(this,e,t)};FE.prototype._transform=function(e,t,n){n(new uIt(\"_transform()\"))};FE.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}};FE.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};FE.prototype._destroy=function(e,t){HX.prototype._destroy.call(this,e,function(n){t(n)})};function wGe(e,t,n){if(t)return e.emit(\"error\",t);if(n!=null&&e.push(n),e._writableState.length)throw new fIt;if(e._transformState.transforming)throw new dIt;return e.push(null)}});var SGe=me((Kir,AGe)=>{\"use strict\";f();AGe.exports=_F;var EGe=G0e();sy()(_F,EGe);function _F(e){if(!(this instanceof _F))return new _F(e);EGe.call(this,e)}_F.prototype._transform=function(e,t,n){n(null,e)}});var IGe=me((Zir,RGe)=>{\"use strict\";f();var q0e;function mIt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var CGe=TR().codes,gIt=CGe.ERR_MISSING_ARGS,yIt=CGe.ERR_STREAM_DESTROYED;function _Ge(e){if(e)throw e}function bIt(e){return e.setHeader&&typeof e.abort==\"function\"}function vIt(e,t,n,r){r=mIt(r);var o=!1;e.on(\"close\",function(){o=!0}),q0e===void 0&&(q0e=PX()),q0e(e,{readable:t,writable:n},function(a){if(a)return r(a);o=!0,r()});var i=!1;return function(a){if(!o&&!i){if(i=!0,bIt(e))return e.abort();if(typeof e.destroy==\"function\")return e.destroy();r(a||new yIt(\"pipe\"))}}}function TGe(e){e()}function wIt(e,t){return e.pipe(t)}function xIt(e){return!e.length||typeof e[e.length-1]!=\"function\"?_Ge:e.pop()}function EIt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=xIt(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new gIt(\"streams\");var o,i=t.map(function(a,c){var l=c<t.length-1,d=c>0;return vIt(a,l,d,function(m){o||(o=m),m&&i.forEach(TGe),!l&&(i.forEach(TGe),r(o))})});return t.reduce(wIt)}RGe.exports=EIt});var K0e=me((ly,kGe)=>{f();ly=kGe.exports=O0e();ly.Stream=ly;ly.Readable=ly;ly.Writable=R0e();ly.Duplex=CR();ly.Transform=G0e();ly.PassThrough=SGe();ly.finished=PX();ly.pipeline=IGe()});var PGe=me((Xir,NGe)=>{f();var{Transform:AIt}=K0e();NGe.exports=e=>class OGe extends AIt{constructor(n,r,o,i,a){super(a),this._rate=n,this._capacity=r,this._delimitedSuffix=o,this._hashBitLength=i,this._options=a,this._state=new e,this._state.initialize(n,r),this._finalized=!1}_transform(n,r,o){let i=null;try{this.update(n,r)}catch(a){i=a}o(i)}_flush(n){let r=null;try{this.push(this.digest())}catch(o){r=o}n(r)}update(n,r){if(!globalThis.Buffer.isBuffer(n)&&typeof n!=\"string\")throw new TypeError(\"Data must be a string or a buffer\");if(this._finalized)throw new Error(\"Digest already called\");return globalThis.Buffer.isBuffer(n)||(n=globalThis.Buffer.from(n,r)),this._state.absorb(n),this}digest(n){if(this._finalized)throw new Error(\"Digest already called\");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let r=this._state.squeeze(this._hashBitLength/8);return n!==void 0&&(r=r.toString(n)),this._resetState(),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let n=new OGe(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}}});var BGe=me((ear,DGe)=>{f();var{Transform:SIt}=K0e();DGe.exports=e=>class MGe extends SIt{constructor(n,r,o,i){super(i),this._rate=n,this._capacity=r,this._delimitedSuffix=o,this._options=i,this._state=new e,this._state.initialize(n,r),this._finalized=!1}_transform(n,r,o){let i=null;try{this.update(n,r)}catch(a){i=a}o(i)}_flush(){}_read(n){this.push(this.squeeze(n))}update(n,r){if(!globalThis.Buffer.isBuffer(n)&&typeof n!=\"string\")throw new TypeError(\"Data must be a string or a buffer\");if(this._finalized)throw new Error(\"Squeeze already called\");return globalThis.Buffer.isBuffer(n)||(n=globalThis.Buffer.from(n,r)),this._state.absorb(n),this}squeeze(n,r){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let o=this._state.squeeze(n);return r!==void 0&&(o=o.toString(r)),o}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let n=new MGe(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}}});var UGe=me((nar,LGe)=>{f();var _It=PGe(),TIt=BGe();LGe.exports=function(e){let t=_It(e),n=TIt(e);return function(r,o){switch(typeof r==\"string\"?r.toLowerCase():r){case\"keccak224\":return new t(1152,448,null,224,o);case\"keccak256\":return new t(1088,512,null,256,o);case\"keccak384\":return new t(832,768,null,384,o);case\"keccak512\":return new t(576,1024,null,512,o);case\"sha3-224\":return new t(1152,448,6,224,o);case\"sha3-256\":return new t(1088,512,6,256,o);case\"sha3-384\":return new t(832,768,6,384,o);case\"sha3-512\":return new t(576,1024,6,512,o);case\"shake128\":return new n(1344,256,31,o);case\"shake256\":return new n(1088,512,31,o);default:throw new Error(\"Invald algorithm: \"+r)}}}});var zGe=me(HGe=>{f();var FGe=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];HGe.p1600=function(e){for(let t=0;t<24;++t){let n=e[0]^e[10]^e[20]^e[30]^e[40],r=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],i=e[3]^e[13]^e[23]^e[33]^e[43],a=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],m=e[8]^e[18]^e[28]^e[38]^e[48],h=e[9]^e[19]^e[29]^e[39]^e[49],g=m^(o<<1|i>>>31),y=h^(i<<1|o>>>31),w=e[0]^g,x=e[1]^y,I=e[10]^g,C=e[11]^y,M=e[20]^g,B=e[21]^y,z=e[30]^g,G=e[31]^y,J=e[40]^g,ne=e[41]^y;g=n^(a<<1|c>>>31),y=r^(c<<1|a>>>31);let ie=e[2]^g,ae=e[3]^y,te=e[12]^g,Z=e[13]^y,X=e[22]^g,F=e[23]^y,R=e[32]^g,O=e[33]^y,U=e[42]^g,P=e[43]^y;g=o^(l<<1|d>>>31),y=i^(d<<1|l>>>31);let L=e[4]^g,W=e[5]^y,q=e[14]^g,H=e[15]^y,k=e[24]^g,V=e[25]^y,oe=e[34]^g,se=e[35]^y,ue=e[44]^g,he=e[45]^y;g=a^(m<<1|h>>>31),y=c^(h<<1|m>>>31);let be=e[6]^g,we=e[7]^y,Ie=e[16]^g,_e=e[17]^y,Ve=e[26]^g,Et=e[27]^y,qe=e[36]^g,Xe=e[37]^y,rt=e[46]^g,wt=e[47]^y;g=l^(n<<1|r>>>31),y=d^(r<<1|n>>>31);let ot=e[8]^g,mn=e[9]^y,St=e[18]^g,rn=e[19]^y,$t=e[28]^g,Kt=e[29]^y,en=e[38]^g,Ho=e[39]^y,Fn=e[48]^g,fn=e[49]^y,Hs=w,Ar=x,Kr=C<<4|I>>>28,Ka=I<<4|C>>>28,Sr=M<<3|B>>>29,$r=B<<3|M>>>29,yl=G<<9|z>>>23,lr=z<<9|G>>>23,de=J<<18|ne>>>14,Le=ne<<18|J>>>14,it=ie<<1|ae>>>31,bt=ae<<1|ie>>>31,jt=Z<<12|te>>>20,Yt=te<<12|Z>>>20,Qt=X<<10|F>>>22,ir=F<<10|X>>>22,zt=O<<13|R>>>19,Mn=R<<13|O>>>19,hs=U<<2|P>>>30,eo=P<<2|U>>>30,Ur=W<<30|L>>>2,Eo=L<<30|W>>>2,Fr=q<<6|H>>>26,lo=H<<6|q>>>26,zs=V<<11|k>>>21,_r=k<<11|V>>>21,zo=oe<<15|se>>>17,Qu=se<<15|oe>>>17,jo=he<<29|ue>>>3,fi=ue<<29|he>>>3,_a=be<<28|we>>>4,Tr=we<<28|be>>>4,ln=_e<<23|Ie>>>9,ld=Ie<<23|_e>>>9,Mo=Ve<<25|Et>>>7,Xo=Et<<25|Ve>>>7,js=qe<<21|Xe>>>11,tf=Xe<<21|qe>>>11,da=wt<<24|rt>>>8,Dc=rt<<24|wt>>>8,Ju=ot<<27|mn>>>5,Bc=mn<<27|ot>>>5,nf=St<<20|rn>>>12,Li=rn<<20|St>>>12,Ta=Kt<<7|$t>>>25,Lc=$t<<7|Kt>>>25,Xu=en<<8|Ho>>>24,pc=Ho<<8|en>>>24,bl=Fn<<14|fn>>>18,$u=fn<<14|Fn>>>18;e[0]=Hs^~jt&zs,e[1]=Ar^~Yt&_r,e[10]=_a^~nf&Sr,e[11]=Tr^~Li&$r,e[20]=it^~Fr&Mo,e[21]=bt^~lo&Xo,e[30]=Ju^~Kr&Qt,e[31]=Bc^~Ka&ir,e[40]=Ur^~ln&Ta,e[41]=Eo^~ld&Lc,e[2]=jt^~zs&js,e[3]=Yt^~_r&tf,e[12]=nf^~Sr&zt,e[13]=Li^~$r&Mn,e[22]=Fr^~Mo&Xu,e[23]=lo^~Xo&pc,e[32]=Kr^~Qt&zo,e[33]=Ka^~ir&Qu,e[42]=ln^~Ta&yl,e[43]=ld^~Lc&lr,e[4]=zs^~js&bl,e[5]=_r^~tf&$u,e[14]=Sr^~zt&jo,e[15]=$r^~Mn&fi,e[24]=Mo^~Xu&de,e[25]=Xo^~pc&Le,e[34]=Qt^~zo&da,e[35]=ir^~Qu&Dc,e[44]=Ta^~yl&hs,e[45]=Lc^~lr&eo,e[6]=js^~bl&Hs,e[7]=tf^~$u&Ar,e[16]=zt^~jo&_a,e[17]=Mn^~fi&Tr,e[26]=Xu^~de&it,e[27]=pc^~Le&bt,e[36]=zo^~da&Ju,e[37]=Qu^~Dc&Bc,e[46]=yl^~hs&Ur,e[47]=lr^~eo&Eo,e[8]=bl^~Hs&jt,e[9]=$u^~Ar&Yt,e[18]=jo^~_a&nf,e[19]=fi^~Tr&Li,e[28]=de^~it&Fr,e[29]=Le^~bt&lo,e[38]=da^~Ju&Kr,e[39]=Dc^~Bc&Ka,e[48]=hs^~Ur&ln,e[49]=eo^~Eo&ld,e[0]^=FGe[t*2],e[1]^=FGe[t*2+1]}}});var WGe=me((aar,jGe)=>{f();var zX=zGe();function mP(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}mP.prototype.initialize=function(e,t){for(let n=0;n<50;++n)this.state[n]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1};mP.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(zX.p1600(this.state),this.count=0)};mP.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<8*(this.count%4),(e&128)!==0&&this.count===this.blockSize-1&&zX.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),zX.p1600(this.state),this.count=0,this.squeezing=!0};mP.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);let t=globalThis.Buffer.alloc(e);for(let n=0;n<e;++n)t[n]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(zX.p1600(this.state),this.count=0);return t};mP.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing};jGe.exports=mP});var GGe=me((car,VGe)=>{f();VGe.exports=UGe()(WGe())});var Y0e=me((lar,QGe)=>{f();var CIt=GGe(),RIt=pR();function qGe(e){return globalThis.Buffer.allocUnsafe(e).fill(0)}function KGe(e,t,n){let r=qGe(t);return e=jX(e),n?e.length<t?(e.copy(r),r):e.slice(0,t):e.length<t?(e.copy(r,t-e.length),r):e.slice(-t)}function IIt(e,t){return KGe(e,t,!0)}function jX(e){if(!globalThis.Buffer.isBuffer(e))if(Array.isArray(e))e=globalThis.Buffer.from(e);else if(typeof e==\"string\")YGe(e)?e=globalThis.Buffer.from(NIt(ZGe(e)),\"hex\"):e=globalThis.Buffer.from(e);else if(typeof e==\"number\")e=intToBuffer(e);else if(e==null)e=globalThis.Buffer.allocUnsafe(0);else if(RIt.isBN(e))e=e.toArrayLike(globalThis.Buffer);else if(e.toArray)e=globalThis.Buffer.from(e.toArray());else throw new Error(\"invalid type\");return e}function kIt(e){return e=jX(e),\"0x\"+e.toString(\"hex\")}function OIt(e,t){return e=jX(e),t||(t=256),CIt(\"keccak\"+t).update(e).digest()}function NIt(e){return e.length%2?\"0\"+e:e}function YGe(e){return typeof e==\"string\"&&e.match(/^0x[0-9A-Fa-f]*$/)}function ZGe(e){return typeof e==\"string\"&&e.startsWith(\"0x\")?e.slice(2):e}QGe.exports={zeros:qGe,setLength:KGe,setLengthRight:IIt,isHexString:YGe,stripHexPrefix:ZGe,toBuffer:jX,bufferToHex:kIt,keccak:OIt}});var nqe=me((far,tqe)=>{f();var PR=Y0e(),NR=pR();function XGe(e){return e.startsWith(\"int[\")?\"int256\"+e.slice(3):e===\"int\"?\"int256\":e.startsWith(\"uint[\")?\"uint256\"+e.slice(4):e===\"uint\"?\"uint256\":e.startsWith(\"fixed[\")?\"fixed128x128\"+e.slice(5):e===\"fixed\"?\"fixed128x128\":e.startsWith(\"ufixed[\")?\"ufixed128x128\"+e.slice(6):e===\"ufixed\"?\"ufixed128x128\":e}function gP(e){return parseInt(/^\\\\D+(\\\\d+)$/.exec(e)[1],10)}function JGe(e){var t=/^\\\\D+(\\\\d+)x(\\\\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function $Ge(e){var t=e.match(/(.*)\\\\[(.*?)\\\\]$/);return t?t[2]===\"\"?\"dynamic\":parseInt(t[2],10):null}function OR(e){var t=typeof e;if(t===\"string\")return PR.isHexString(e)?new NR(PR.stripHexPrefix(e),16):new NR(e,10);if(t===\"number\")return new NR(e);if(e.toArray)return e;throw new Error(\"Argument is not a number\")}function Mw(e,t){var n,r,o,i;if(e===\"address\")return Mw(\"uint160\",OR(t));if(e===\"bool\")return Mw(\"uint8\",t?1:0);if(e===\"string\")return Mw(\"bytes\",new globalThis.Buffer(t,\"utf8\"));if(MIt(e)){if(typeof t.length>\"u\")throw new Error(\"Not an array?\");if(n=$Ge(e),n!==\"dynamic\"&&n!==0&&t.length>n)throw new Error(\"Elements exceed array size: \"+n);o=[],e=e.slice(0,e.lastIndexOf(\"[\")),typeof t==\"string\"&&(t=JSON.parse(t));for(i in t)o.push(Mw(e,t[i]));if(n===\"dynamic\"){var a=Mw(\"uint256\",t.length);o.unshift(a)}return globalThis.Buffer.concat(o)}else{if(e===\"bytes\")return t=new globalThis.Buffer(t),o=globalThis.Buffer.concat([Mw(\"uint256\",t.length),t]),t.length%32!==0&&(o=globalThis.Buffer.concat([o,PR.zeros(32-t.length%32)])),o;if(e.startsWith(\"bytes\")){if(n=gP(e),n<1||n>32)throw new Error(\"Invalid bytes<N> width: \"+n);return PR.setLengthRight(t,32)}else if(e.startsWith(\"uint\")){if(n=gP(e),n%8||n<8||n>256)throw new Error(\"Invalid uint<N> width: \"+n);if(r=OR(t),r.bitLength()>n)throw new Error(\"Supplied uint exceeds width: \"+n+\" vs \"+r.bitLength());if(r<0)throw new Error(\"Supplied uint is negative\");return r.toArrayLike(globalThis.Buffer,\"be\",32)}else if(e.startsWith(\"int\")){if(n=gP(e),n%8||n<8||n>256)throw new Error(\"Invalid int<N> width: \"+n);if(r=OR(t),r.bitLength()>n)throw new Error(\"Supplied int exceeds width: \"+n+\" vs \"+r.bitLength());return r.toTwos(256).toArrayLike(globalThis.Buffer,\"be\",32)}else if(e.startsWith(\"ufixed\")){if(n=JGe(e),r=OR(t),r<0)throw new Error(\"Supplied ufixed is negative\");return Mw(\"uint256\",r.mul(new NR(2).pow(new NR(n[1]))))}else if(e.startsWith(\"fixed\"))return n=JGe(e),Mw(\"int256\",OR(t).mul(new NR(2).pow(new NR(n[1]))))}throw new Error(\"Unsupported or invalid type: \"+e)}function PIt(e){return e===\"string\"||e===\"bytes\"||$Ge(e)===\"dynamic\"}function MIt(e){return e.lastIndexOf(\"]\")===e.length-1}function DIt(e,t){var n=[],r=[],o=32*e.length;for(var i in e){var a=XGe(e[i]),c=t[i],l=Mw(a,c);PIt(a)?(n.push(Mw(\"uint256\",o)),r.push(l),o+=l.length):n.push(l)}return globalThis.Buffer.concat(n.concat(r))}function eqe(e,t){if(e.length!==t.length)throw new Error(\"Number of types are not matching the values\");for(var n,r,o=[],i=0;i<e.length;i++){var a=XGe(e[i]),c=t[i];if(a===\"bytes\")o.push(c);else if(a===\"string\")o.push(new globalThis.Buffer(c,\"utf8\"));else if(a===\"bool\")o.push(new globalThis.Buffer(c?\"01\":\"00\",\"hex\"));else if(a===\"address\")o.push(PR.setLength(c,20));else if(a.startsWith(\"bytes\")){if(n=gP(a),n<1||n>32)throw new Error(\"Invalid bytes<N> width: \"+n);o.push(PR.setLengthRight(c,n))}else if(a.startsWith(\"uint\")){if(n=gP(a),n%8||n<8||n>256)throw new Error(\"Invalid uint<N> width: \"+n);if(r=OR(c),r.bitLength()>n)throw new Error(\"Supplied uint exceeds width: \"+n+\" vs \"+r.bitLength());o.push(r.toArrayLike(globalThis.Buffer,\"be\",n/8))}else if(a.startsWith(\"int\")){if(n=gP(a),n%8||n<8||n>256)throw new Error(\"Invalid int<N> width: \"+n);if(r=OR(c),r.bitLength()>n)throw new Error(\"Supplied int exceeds width: \"+n+\" vs \"+r.bitLength());o.push(r.toTwos(n).toArrayLike(globalThis.Buffer,\"be\",n/8))}else throw new Error(\"Unsupported or invalid type: \"+a)}return globalThis.Buffer.concat(o)}function BIt(e,t){return PR.keccak(eqe(e,t))}tqe.exports={rawEncode:DIt,solidityPack:eqe,soliditySHA3:BIt}});var iqe=me((har,oqe)=>{f();var f1=Y0e(),TF=nqe(),rqe={type:\"object\",properties:{types:{type:\"object\",additionalProperties:{type:\"array\",items:{type:\"object\",properties:{name:{type:\"string\"},type:{type:\"string\"}},required:[\"name\",\"type\"]}}},primaryType:{type:\"string\"},domain:{type:\"object\"},message:{type:\"object\"}},required:[\"types\",\"primaryType\",\"domain\",\"message\"]},Z0e={encodeData(e,t,n,r=!0){let o=[\"bytes32\"],i=[this.hashType(e,n)];if(r){let a=(c,l,d)=>{if(n[l]!==void 0)return[\"bytes32\",d==null?\"0x0000000000000000000000000000000000000000000000000000000000000000\":f1.keccak(this.encodeData(l,d,n,r))];if(d===void 0)throw new Error(`missing value for field ${c} of type ${l}`);if(l===\"bytes\")return[\"bytes32\",f1.keccak(d)];if(l===\"string\")return typeof d==\"string\"&&(d=globalThis.Buffer.from(d,\"utf8\")),[\"bytes32\",f1.keccak(d)];if(l.lastIndexOf(\"]\")===l.length-1){let m=l.slice(0,l.lastIndexOf(\"[\")),h=d.map(g=>a(c,m,g));return[\"bytes32\",f1.keccak(TF.rawEncode(h.map(([g])=>g),h.map(([,g])=>g)))]}return[l,d]};for(let c of n[e]){let[l,d]=a(c.name,c.type,t[c.name]);o.push(l),i.push(d)}}else for(let a of n[e]){let c=t[a.name];if(c!==void 0)if(a.type===\"bytes\")o.push(\"bytes32\"),c=f1.keccak(c),i.push(c);else if(a.type===\"string\")o.push(\"bytes32\"),typeof c==\"string\"&&(c=globalThis.Buffer.from(c,\"utf8\")),c=f1.keccak(c),i.push(c);else if(n[a.type]!==void 0)o.push(\"bytes32\"),c=f1.keccak(this.encodeData(a.type,c,n,r)),i.push(c);else{if(a.type.lastIndexOf(\"]\")===a.type.length-1)throw new Error(\"Arrays currently unimplemented in encodeData\");o.push(a.type),i.push(c)}}return TF.rawEncode(o,i)},encodeType(e,t){let n=\"\",r=this.findTypeDependencies(e,t).filter(o=>o!==e);r=[e].concat(r.sort());for(let o of r){if(!t[o])throw new Error(\"No type definition specified: \"+o);n+=o+\"(\"+t[o].map(({name:a,type:c})=>c+\" \"+a).join(\",\")+\")\"}return n},findTypeDependencies(e,t,n=[]){if(e=e.match(/^\\\\w*/)[0],n.includes(e)||t[e]===void 0)return n;n.push(e);for(let r of t[e])for(let o of this.findTypeDependencies(r.type,t,n))!n.includes(o)&&n.push(o);return n},hashStruct(e,t,n,r=!0){return f1.keccak(this.encodeData(e,t,n,r))},hashType(e,t){return f1.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let n in rqe.properties)e[n]&&(t[n]=e[n]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){let n=this.sanitizeData(e),r=[globalThis.Buffer.from(\"1901\",\"hex\")];return r.push(this.hashStruct(\"EIP712Domain\",n.domain,n.types,t)),n.primaryType!==\"EIP712Domain\"&&r.push(this.hashStruct(n.primaryType,n.message,n.types,t)),f1.keccak(globalThis.Buffer.concat(r))}};oqe.exports={TYPED_MESSAGE_SCHEMA:rqe,TypedDataUtils:Z0e,hashForSignTypedDataLegacy:function(e){return LIt(e.data)},hashForSignTypedData_v3:function(e){return Z0e.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return Z0e.hash(e.data)}};function LIt(e){let t=new Error(\"Expect argument to be non-empty array\");if(typeof e!=\"object\"||!e.length)throw t;let n=e.map(function(i){return i.type===\"bytes\"?f1.toBuffer(i.value):i.value}),r=e.map(function(i){return i.type}),o=e.map(function(i){if(!i.name)throw t;return i.type+\" \"+i.name});return TF.soliditySHA3([\"bytes32\",\"bytes32\"],[TF.soliditySHA3(new Array(e.length).fill(\"string\"),o),TF.soliditySHA3(r,n)])}});var lqe=me(bP=>{\"use strict\";f();Object.defineProperty(bP,\"__esModule\",{value:!0});bP.filterFromParam=bP.FilterPolyfill=void 0;var yP=XU(),Xp=_w(),UIt=300*1e3,MR={jsonrpc:\"2.0\",id:0},Q0e=class{constructor(t){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,yP.IntNumber)(1),this.REQUEST_THROTTLE_INTERVAL=1e3,this.lastFetchTimestamp=new Date(0),this.resolvers=[],this.provider=t}async newFilter(t){let n=uqe(t),r=this.makeFilterId(),o=await this.setInitialCursorPosition(r,n.fromBlock);return console.info(`Installing new log filter(${r}):`,n,\"initial cursor position:\",o),this.logFilters.set(r,n),this.setFilterTimeout(r),(0,Xp.hexStringFromIntNumber)(r)}async newBlockFilter(){let t=this.makeFilterId(),n=await this.setInitialCursorPosition(t,\"latest\");return console.info(`Installing new block filter (${t}) with initial cursor position:`,n),this.blockFilters.add(t),this.setFilterTimeout(t),(0,Xp.hexStringFromIntNumber)(t)}async newPendingTransactionFilter(){let t=this.makeFilterId(),n=await this.setInitialCursorPosition(t,\"latest\");return console.info(`Installing new block filter (${t}) with initial cursor position:`,n),this.pendingTransactionFilters.add(t),this.setFilterTimeout(t),(0,Xp.hexStringFromIntNumber)(t)}uninstallFilter(t){let n=(0,Xp.intNumberFromHexString)(t);return console.info(`Uninstalling filter (${n})`),this.deleteFilter(n),!0}getFilterChanges(t){let n=(0,Xp.intNumberFromHexString)(t);return this.timeouts.has(n)&&this.setFilterTimeout(n),this.logFilters.has(n)?this.getLogFilterChanges(n):this.blockFilters.has(n)?this.getBlockFilterChanges(n):this.pendingTransactionFilters.has(n)?this.getPendingTransactionFilterChanges(n):Promise.resolve(WX())}async getFilterLogs(t){let n=(0,Xp.intNumberFromHexString)(t),r=this.logFilters.get(n);return r?this.sendAsyncPromise(Object.assign(Object.assign({},MR),{method:\"eth_getLogs\",params:[aqe(r)]})):WX()}makeFilterId(){return(0,yP.IntNumber)(++this.nextFilterId)}sendAsyncPromise(t){return new Promise((n,r)=>{this.provider.sendAsync(t,(o,i)=>{if(o)return r(o);if(Array.isArray(i)||i==null)return r(new Error(`unexpected response received: ${JSON.stringify(i)}`));n(i)})})}deleteFilter(t){console.info(`Deleting filter (${t})`),this.logFilters.delete(t),this.blockFilters.delete(t),this.pendingTransactionFilters.delete(t),this.cursors.delete(t),this.timeouts.delete(t)}async getLogFilterChanges(t){let n=this.logFilters.get(t),r=this.cursors.get(t);if(!r||!n)return WX();let o=await this.getCurrentBlockHeight(),i=n.toBlock===\"latest\"?o:n.toBlock;if(r>o||r>Number(n.toBlock))return VX();console.info(`Fetching logs from ${r} to ${i} for filter ${t}`);let a=await this.sendAsyncPromise(Object.assign(Object.assign({},MR),{method:\"eth_getLogs\",params:[aqe(Object.assign(Object.assign({},n),{fromBlock:r,toBlock:i}))]}));if(Array.isArray(a.result)){let c=a.result.map(d=>(0,Xp.intNumberFromHexString)(d.blockNumber||\"0x0\")),l=Math.max(...c);if(l&&l>r){let d=(0,yP.IntNumber)(l+1);console.info(`Moving cursor position for filter (${t}) from ${r} to ${d}`),this.cursors.set(t,d)}}return a}async getBlockFilterChanges(t){let n=this.cursors.get(t);if(!n)return WX();let r=await this.getCurrentBlockHeight();if(n>r)return VX();console.info(`Fetching blocks from ${n} to ${r} for filter (${t})`);let o=(await Promise.all((0,Xp.range)(n,r+1).map(a=>this.getBlockHashByNumber((0,yP.IntNumber)(a))))).filter(a=>!!a),i=(0,yP.IntNumber)(n+o.length);return console.info(`Moving cursor position for filter (${t}) from ${n} to ${i}`),this.cursors.set(t,i),Object.assign(Object.assign({},MR),{result:o})}async getPendingTransactionFilterChanges(t){return Promise.resolve(VX())}async setInitialCursorPosition(t,n){let r=await this.getCurrentBlockHeight(),o=typeof n==\"number\"&&n>r?n:r;return this.cursors.set(t,o),o}setFilterTimeout(t){let n=this.timeouts.get(t);n&&window.clearTimeout(n);let r=window.setTimeout(()=>{console.info(`Filter (${t}) timed out`),this.deleteFilter(t)},UIt);this.timeouts.set(t,r)}async getCurrentBlockHeight(){let t=new Date;if(t.getTime()-this.lastFetchTimestamp.getTime()>this.REQUEST_THROTTLE_INTERVAL){this.lastFetchTimestamp=t;let n=await this._getCurrentBlockHeight();this.currentBlockHeight=n,this.resolvers.forEach(r=>r(n)),this.resolvers=[]}return this.currentBlockHeight?this.currentBlockHeight:new Promise(n=>this.resolvers.push(n))}async _getCurrentBlockHeight(){let{result:t}=await this.sendAsyncPromise(Object.assign(Object.assign({},MR),{method:\"eth_blockNumber\",params:[]}));return(0,Xp.intNumberFromHexString)((0,Xp.ensureHexString)(t))}async getBlockHashByNumber(t){let n=await this.sendAsyncPromise(Object.assign(Object.assign({},MR),{method:\"eth_getBlockByNumber\",params:[(0,Xp.hexStringFromIntNumber)(t),!1]}));return n.result&&typeof n.result.hash==\"string\"?(0,Xp.ensureHexString)(n.result.hash):null}};bP.FilterPolyfill=Q0e;function uqe(e){return{fromBlock:sqe(e.fromBlock),toBlock:sqe(e.toBlock),addresses:e.address===void 0?null:Array.isArray(e.address)?e.address:[e.address],topics:e.topics||[]}}bP.filterFromParam=uqe;function aqe(e){let t={fromBlock:cqe(e.fromBlock),toBlock:cqe(e.toBlock),topics:e.topics};return e.addresses!==null&&(t.address=e.addresses),t}function sqe(e){if(e===void 0||e===\"latest\"||e===\"pending\")return\"latest\";if(e===\"earliest\")return(0,yP.IntNumber)(0);if((0,Xp.isHexString)(e))return(0,Xp.intNumberFromHexString)(e);throw new Error(`Invalid block option: ${String(e)}`)}function cqe(e){return e===\"latest\"?e:(0,Xp.hexStringFromIntNumber)(e)}function WX(){return Object.assign(Object.assign({},MR),{error:{code:-32e3,message:\"filter not found\"}})}function VX(){return Object.assign(Object.assign({},MR),{result:[]})}});var GX=me((bar,dqe)=>{f();dqe.exports=FIt;function FIt(e){e=e||{};var t=e.max||Number.MAX_SAFE_INTEGER,n=typeof e.start<\"u\"?e.start:Math.floor(Math.random()*t);return function(){return n=n%t,n++}}});var hqe=me((xar,pqe)=>{\"use strict\";f();var fqe=(e,t)=>function(){let n=t.promiseModule,r=new Array(arguments.length);for(let o=0;o<arguments.length;o++)r[o]=arguments[o];return new n((o,i)=>{t.errorFirst?r.push(function(a,c){if(t.multiArgs){let l=new Array(arguments.length-1);for(let d=1;d<arguments.length;d++)l[d-1]=arguments[d];a?(l.unshift(a),i(l)):o(l)}else a?i(a):o(c)}):r.push(function(a){if(t.multiArgs){let c=new Array(arguments.length-1);for(let l=0;l<arguments.length;l++)c[l]=arguments[l];o(c)}else o(a)}),e.apply(this,r)})};pqe.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let n=o=>{let i=a=>typeof a==\"string\"?o===a:a.test(o);return t.include?t.include.some(i):!t.exclude.some(i)},r;typeof e==\"function\"?r=function(){return t.excludeMain?e.apply(this,arguments):fqe(e,t).apply(this,arguments)}:r=Object.create(Object.getPrototypeOf(e));for(let o in e){let i=e[o];r[o]=typeof i==\"function\"&&n(o)?fqe(i,t):i}return r}});var qX=me(X0e=>{\"use strict\";f();Object.defineProperty(X0e,\"__esModule\",{value:!0});var HIt=bF();function mqe(e,t,n){try{Reflect.apply(e,t,n)}catch(r){setTimeout(()=>{throw r})}}function zIt(e){let t=e.length,n=new Array(t);for(let r=0;r<t;r+=1)n[r]=e[r];return n}var J0e=class extends HIt.EventEmitter{emit(t,...n){let r=t===\"error\",o=this._events;if(o!==void 0)r=r&&o.error===void 0;else if(!r)return!1;if(r){let a;if(n.length>0&&([a]=n),a instanceof Error)throw a;let c=new Error(`Unhandled error.${a?` (${a.message})`:\"\"}`);throw c.context=a,c}let i=o[t];if(i===void 0)return!1;if(typeof i==\"function\")mqe(i,this,n);else{let a=i.length,c=zIt(i);for(let l=0;l<a;l+=1)mqe(c[l],this,n)}return!0}};X0e.default=J0e});var ege=me(vP=>{\"use strict\";f();var jIt=vP&&vP.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vP,\"__esModule\",{value:!0});vP.BaseBlockTracker=void 0;var WIt=jIt(qX()),VIt=1e3,GIt=(e,t)=>e+t,gqe=[\"sync\",\"latest\"],$0e=class extends WIt.default{constructor(t){super(),this._blockResetDuration=t.blockResetDuration||20*VIt,this._usePastBlocks=t.usePastBlocks||!1,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}async destroy(){this._cancelBlockResetTimeout(),await this._maybeEnd(),super.removeAllListeners()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(n=>this.once(\"latest\",n))}removeAllListeners(t){return t?super.removeAllListeners(t):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener(),this}_setupInternalEvents(){this.removeListener(\"newListener\",this._onNewListener),this.removeListener(\"removeListener\",this._onRemoveListener),this.on(\"newListener\",this._onNewListener),this.on(\"removeListener\",this._onRemoveListener)}_onNewListener(t){gqe.includes(t)&&this._maybeStart()}_onRemoveListener(){this._getBlockTrackerEventCount()>0||this._maybeEnd()}async _maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),await this._start(),this.emit(\"_started\"))}async _maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),await this._end(),this.emit(\"_ended\"))}_getBlockTrackerEventCount(){return gqe.map(t=>this.listenerCount(t)).reduce(GIt)}_shouldUseNewBlock(t){let n=this._currentBlock;if(!n)return!0;let r=yqe(t),o=yqe(n);return this._usePastBlocks&&r<o||r>o}_newPotentialLatest(t){this._shouldUseNewBlock(t)&&this._setCurrentBlock(t)}_setCurrentBlock(t){let n=this._currentBlock;this._currentBlock=t,this.emit(\"latest\",t),this.emit(\"sync\",{oldBlock:n,newBlock:t})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}};vP.BaseBlockTracker=$0e;function yqe(e){return Number.parseInt(e,16)}});var ST={};as(ST,{Struct:()=>uc,StructError:()=>KX,any:()=>r4t,array:()=>o4t,assert:()=>vqe,assign:()=>ZIt,bigint:()=>i4t,boolean:()=>a4t,coerce:()=>ige,create:()=>wqe,date:()=>s4t,defaulted:()=>E4t,define:()=>sm,deprecated:()=>QIt,dynamic:()=>JIt,empty:()=>S4t,enums:()=>c4t,func:()=>u4t,instance:()=>l4t,integer:()=>d4t,intersection:()=>f4t,is:()=>rge,lazy:()=>XIt,literal:()=>p4t,map:()=>h4t,mask:()=>xqe,max:()=>_4t,min:()=>T4t,never:()=>oge,nonempty:()=>C4t,nullable:()=>m4t,number:()=>g4t,object:()=>CF,omit:()=>$It,optional:()=>Eqe,partial:()=>e4t,pattern:()=>R4t,pick:()=>t4t,record:()=>y4t,refine:()=>DR,regexp:()=>b4t,set:()=>v4t,size:()=>I4t,string:()=>Aqe,struct:()=>n4t,trimmed:()=>A4t,tuple:()=>w4t,type:()=>RF,union:()=>x4t,unknown:()=>Sqe,validate:()=>wP});function qIt(e){return dy(e)&&typeof e[Symbol.iterator]==\"function\"}function dy(e){return typeof e==\"object\"&&e!=null}function bqe(e){if(Object.prototype.toString.call(e)!==\"[object Object]\")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function ml(e){return typeof e==\"symbol\"?e.toString():typeof e==\"string\"?JSON.stringify(e):`${e}`}function KIt(e){let{done:t,value:n}=e.next();return t?void 0:n}function YIt(e,t,n,r){if(e===!0)return;e===!1?e={}:typeof e==\"string\"&&(e={message:e});let{path:o,branch:i}=t,{type:a}=n,{refinement:c,message:l=`Expected a value of type \\\\`${a}\\\\`${c?` with refinement \\\\`${c}\\\\``:\"\"}, but received: \\\\`${ml(r)}\\\\``}=e;return{value:r,type:a,refinement:c,key:o[o.length-1],path:o,branch:i,...e,message:l}}function*tge(e,t,n,r){qIt(e)||(e=[e]);for(let o of e){let i=YIt(o,t,n,r);i&&(yield i)}}function*nge(e,t,n={}){let{path:r=[],branch:o=[e],coerce:i=!1,mask:a=!1}=n,c={path:r,branch:o};if(i&&(e=t.coercer(e,c),a&&t.type!==\"type\"&&dy(t.schema)&&dy(e)&&!Array.isArray(e)))for(let d in e)t.schema[d]===void 0&&delete e[d];let l=\"valid\";for(let d of t.validator(e,c))d.explanation=n.message,l=\"not_valid\",yield[d,void 0];for(let[d,m,h]of t.entries(e,c)){let g=nge(m,h,{path:d===void 0?r:[...r,d],branch:d===void 0?o:[...o,m],coerce:i,mask:a,message:n.message});for(let y of g)y[0]?(l=y[0].refinement!=null?\"not_refined\":\"not_valid\",yield[y[0],void 0]):i&&(m=y[1],d===void 0?e=m:e instanceof Map?e.set(d,m):e instanceof Set?e.add(m):dy(e)&&(m!==void 0||d in e)&&(e[d]=m))}if(l!==\"not_valid\")for(let d of t.refiner(e,c))d.explanation=n.message,l=\"not_refined\",yield[d,void 0];l===\"valid\"&&(yield[void 0,e])}function vqe(e,t,n){let r=wP(e,t,{message:n});if(r[0])throw r[0]}function wqe(e,t,n){let r=wP(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function xqe(e,t,n){let r=wP(e,t,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}function rge(e,t){return!wP(e,t)[0]}function wP(e,t,n={}){let r=nge(e,t,n),o=KIt(r);return o[0]?[new KX(o[0],function*(){for(let a of r)a[0]&&(yield a[0])}),void 0]:[void 0,o[1]]}function ZIt(...e){let t=e[0].type===\"type\",n=e.map(o=>o.schema),r=Object.assign({},...n);return t?RF(r):CF(r)}function sm(e,t){return new uc({type:e,schema:null,validator:t})}function QIt(e,t){return new uc({...e,refiner:(n,r)=>n===void 0||e.refiner(n,r),validator(n,r){return n===void 0?!0:(t(n,r),e.validator(n,r))}})}function JIt(e){return new uc({type:\"dynamic\",schema:null,*entries(t,n){yield*e(t,n).entries(t,n)},validator(t,n){return e(t,n).validator(t,n)},coercer(t,n){return e(t,n).coercer(t,n)},refiner(t,n){return e(t,n).refiner(t,n)}})}function XIt(e){let t;return new uc({type:\"lazy\",schema:null,*entries(n,r){t??(t=e()),yield*t.entries(n,r)},validator(n,r){return t??(t=e()),t.validator(n,r)},coercer(n,r){return t??(t=e()),t.coercer(n,r)},refiner(n,r){return t??(t=e()),t.refiner(n,r)}})}function $It(e,t){let{schema:n}=e,r={...n};for(let o of t)delete r[o];switch(e.type){case\"type\":return RF(r);default:return CF(r)}}function e4t(e){let t=e instanceof uc,n=t?{...e.schema}:{...e};for(let r in n)n[r]=Eqe(n[r]);return t&&e.type===\"type\"?RF(n):CF(n)}function t4t(e,t){let{schema:n}=e,r={};for(let o of t)r[o]=n[o];switch(e.type){case\"type\":return RF(r);default:return CF(r)}}function n4t(e,t){return console.warn(\"superstruct@0.11 - The `struct` helper has been renamed to `define`.\"),sm(e,t)}function r4t(){return sm(\"any\",()=>!0)}function o4t(e){return new uc({type:\"array\",schema:e,*entries(t){if(e&&Array.isArray(t))for(let[n,r]of t.entries())yield[n,r,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${ml(t)}`}})}function i4t(){return sm(\"bigint\",e=>typeof e==\"bigint\")}function a4t(){return sm(\"boolean\",e=>typeof e==\"boolean\")}function s4t(){return sm(\"date\",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \\\\`Date\\\\` object, but received: ${ml(e)}`)}function c4t(e){let t={},n=e.map(r=>ml(r)).join();for(let r of e)t[r]=r;return new uc({type:\"enums\",schema:t,validator(r){return e.includes(r)||`Expected one of \\\\`${n}\\\\`, but received: ${ml(r)}`}})}function u4t(){return sm(\"func\",e=>typeof e==\"function\"||`Expected a function, but received: ${ml(e)}`)}function l4t(e){return sm(\"instance\",t=>t instanceof e||`Expected a \\\\`${e.name}\\\\` instance, but received: ${ml(t)}`)}function d4t(){return sm(\"integer\",e=>typeof e==\"number\"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${ml(e)}`)}function f4t(e){return new uc({type:\"intersection\",schema:null,*entries(t,n){for(let r of e)yield*r.entries(t,n)},*validator(t,n){for(let r of e)yield*r.validator(t,n)},*refiner(t,n){for(let r of e)yield*r.refiner(t,n)}})}function p4t(e){let t=ml(e),n=typeof e;return new uc({type:\"literal\",schema:n===\"string\"||n===\"number\"||n===\"boolean\"?e:null,validator(r){return r===e||`Expected the literal \\\\`${t}\\\\`, but received: ${ml(r)}`}})}function h4t(e,t){return new uc({type:\"map\",schema:null,*entries(n){if(e&&t&&n instanceof Map)for(let[r,o]of n.entries())yield[r,r,e],yield[r,o,t]},coercer(n){return n instanceof Map?new Map(n):n},validator(n){return n instanceof Map||`Expected a \\\\`Map\\\\` object, but received: ${ml(n)}`}})}function oge(){return sm(\"never\",()=>!1)}function m4t(e){return new uc({...e,validator:(t,n)=>t===null||e.validator(t,n),refiner:(t,n)=>t===null||e.refiner(t,n)})}function g4t(){return sm(\"number\",e=>typeof e==\"number\"&&!isNaN(e)||`Expected a number, but received: ${ml(e)}`)}function CF(e){let t=e?Object.keys(e):[],n=oge();return new uc({type:\"object\",schema:e||null,*entries(r){if(e&&dy(r)){let o=new Set(Object.keys(r));for(let i of t)o.delete(i),yield[i,r[i],e[i]];for(let i of o)yield[i,r[i],n]}},validator(r){return dy(r)||`Expected an object, but received: ${ml(r)}`},coercer(r){return dy(r)?{...r}:r}})}function Eqe(e){return new uc({...e,validator:(t,n)=>t===void 0||e.validator(t,n),refiner:(t,n)=>t===void 0||e.refiner(t,n)})}function y4t(e,t){return new uc({type:\"record\",schema:null,*entries(n){if(dy(n))for(let r in n){let o=n[r];yield[r,r,e],yield[r,o,t]}},validator(n){return dy(n)||`Expected an object, but received: ${ml(n)}`}})}function b4t(){return sm(\"regexp\",e=>e instanceof RegExp)}function v4t(e){return new uc({type:\"set\",schema:null,*entries(t){if(e&&t instanceof Set)for(let n of t)yield[n,n,e]},coercer(t){return t instanceof Set?new Set(t):t},validator(t){return t instanceof Set||`Expected a \\\\`Set\\\\` object, but received: ${ml(t)}`}})}function Aqe(){return sm(\"string\",e=>typeof e==\"string\"||`Expected a string, but received: ${ml(e)}`)}function w4t(e){let t=oge();return new uc({type:\"tuple\",schema:null,*entries(n){if(Array.isArray(n)){let r=Math.max(e.length,n.length);for(let o=0;o<r;o++)yield[o,n[o],e[o]||t]}},validator(n){return Array.isArray(n)||`Expected an array, but received: ${ml(n)}`}})}function RF(e){let t=Object.keys(e);return new uc({type:\"type\",schema:e,*entries(n){if(dy(n))for(let r of t)yield[r,n[r],e[r]]},validator(n){return dy(n)||`Expected an object, but received: ${ml(n)}`},coercer(n){return dy(n)?{...n}:n}})}function x4t(e){let t=e.map(n=>n.type).join(\" | \");return new uc({type:\"union\",schema:null,coercer(n){for(let r of e){let[o,i]=r.validate(n,{coerce:!0});if(!o)return i}return n},validator(n,r){let o=[];for(let i of e){let[...a]=nge(n,i,r),[c]=a;if(c[0])for(let[l]of a)l&&o.push(l);else return[]}return[`Expected the value to satisfy a union of \\\\`${t}\\\\`, but received: ${ml(n)}`,...o]}})}function Sqe(){return sm(\"unknown\",()=>!0)}function ige(e,t,n){return new uc({...e,coercer:(r,o)=>rge(r,t)?e.coercer(n(r,o),o):e.coercer(r,o)})}function E4t(e,t,n={}){return ige(e,Sqe(),r=>{let o=typeof t==\"function\"?t():t;if(r===void 0)return o;if(!n.strict&&bqe(r)&&bqe(o)){let i={...r},a=!1;for(let c in o)i[c]===void 0&&(i[c]=o[c],a=!0);if(a)return i}return r})}function A4t(e){return ige(e,Aqe(),t=>t.trim())}function S4t(e){return DR(e,\"empty\",t=>{let n=_qe(t);return n===0||`Expected an empty ${e.type} but received one with a size of \\\\`${n}\\\\``})}function _qe(e){return e instanceof Map||e instanceof Set?e.size:e.length}function _4t(e,t,n={}){let{exclusive:r}=n;return DR(e,\"max\",o=>r?o<t:o<=t||`Expected a ${e.type} less than ${r?\"\":\"or equal to \"}${t} but received \\\\`${o}\\\\``)}function T4t(e,t,n={}){let{exclusive:r}=n;return DR(e,\"min\",o=>r?o>t:o>=t||`Expected a ${e.type} greater than ${r?\"\":\"or equal to \"}${t} but received \\\\`${o}\\\\``)}function C4t(e){return DR(e,\"nonempty\",t=>_qe(t)>0||`Expected a nonempty ${e.type} but received an empty one`)}function R4t(e,t){return DR(e,\"pattern\",n=>t.test(n)||`Expected a ${e.type} matching \\\\`/${t.source}/\\\\` but received \"${n}\"`)}function I4t(e,t,n=t){let r=`Expected a ${e.type}`,o=t===n?`of \\\\`${t}\\\\``:`between \\\\`${t}\\\\` and \\\\`${n}\\\\``;return DR(e,\"size\",i=>{if(typeof i==\"number\"||i instanceof Date)return t<=i&&i<=n||`${r} ${o} but received \\\\`${i}\\\\``;if(i instanceof Map||i instanceof Set){let{size:a}=i;return t<=a&&a<=n||`${r} with a size ${o} but received one with a size of \\\\`${a}\\\\``}else{let{length:a}=i;return t<=a&&a<=n||`${r} with a length ${o} but received one with a length of \\\\`${a}\\\\``}})}function DR(e,t,n){return new uc({...e,*refiner(r,o){yield*e.refiner(r,o);let i=n(r,o),a=tge(i,o,e,r);for(let c of a)yield{...c,refinement:t}}})}var KX,uc,_T=$(()=>{f();KX=class extends TypeError{constructor(t,n){let r,{message:o,explanation:i,...a}=t,{path:c}=t,l=c.length===0?o:`At path: ${c.join(\".\")} -- ${o}`;super(i??l),i!=null&&(this.cause=l),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>r??(r=[t,...n()])}};uc=class{constructor(t){let{type:n,schema:r,validator:o,refiner:i,coercer:a=l=>l,entries:c=function*(){}}=t;this.type=n,this.schema=r,this.entries=c,this.coercer=a,o?this.validator=(l,d)=>{let m=o(l,d);return tge(m,d,this,l)}:this.validator=()=>[],i?this.refiner=(l,d)=>{let m=i(l,d);return tge(m,d,this,l)}:this.refiner=()=>[]}assert(t,n){return vqe(t,this,n)}create(t,n){return wqe(t,this,n)}is(t){return rge(t,this)}mask(t,n){return xqe(t,this,n)}validate(t,n={}){return wP(t,this,n)}}});var HE=me(Dw=>{\"use strict\";f();Object.defineProperty(Dw,\"__esModule\",{value:!0});Dw.assertExhaustive=Dw.assertStruct=Dw.assert=Dw.AssertionError=void 0;var k4t=(_T(),hi(ST));function O4t(e){return typeof e==\"object\"&&e!==null&&\"message\"in e}function N4t(e){var t,n;return typeof((n=(t=e?.prototype)===null||t===void 0?void 0:t.constructor)===null||n===void 0?void 0:n.name)==\"string\"}function P4t(e){let t=O4t(e)?e.message:String(e);return t.endsWith(\".\")?t.slice(0,-1):t}function Tqe(e,t){return N4t(e)?new e({message:t}):e({message:t})}var IF=class extends Error{constructor(t){super(t.message),this.code=\"ERR_ASSERTION\"}};Dw.AssertionError=IF;function M4t(e,t=\"Assertion failed.\",n=IF){if(!e)throw t instanceof Error?t:Tqe(n,t)}Dw.assert=M4t;function D4t(e,t,n=\"Assertion failed\",r=IF){try{(0,k4t.assert)(e,t)}catch(o){throw Tqe(r,`${n}: ${P4t(o)}.`)}}Dw.assertStruct=D4t;function B4t(e){throw new Error(\"Invalid branch reached. Should be detected during compilation.\")}Dw.assertExhaustive=B4t});var age=me(YX=>{\"use strict\";f();Object.defineProperty(YX,\"__esModule\",{value:!0});YX.base64=void 0;var L4t=(_T(),hi(ST)),U4t=HE(),F4t=(e,t={})=>{var n,r;let o=(n=t.paddingRequired)!==null&&n!==void 0?n:!1,i=(r=t.characterSet)!==null&&r!==void 0?r:\"base64\",a;i===\"base64\"?a=String.raw`[A-Za-z0-9+\\\\/]`:((0,U4t.assert)(i===\"base64url\"),a=String.raw`[-_A-Za-z0-9]`);let c;return o?c=new RegExp(`^(?:${a}{4})*(?:${a}{3}=|${a}{2}==)?$`,\"u\"):c=new RegExp(`^(?:${a}{4})*(?:${a}{2,3}|${a}{3}=|${a}{2}==)?$`,\"u\"),(0,L4t.pattern)(e,c)};YX.base64=F4t});var kF=me(Wu=>{\"use strict\";f();Object.defineProperty(Wu,\"__esModule\",{value:!0});Wu.remove0x=Wu.add0x=Wu.assertIsStrictHexString=Wu.assertIsHexString=Wu.isStrictHexString=Wu.isHexString=Wu.StrictHexStruct=Wu.HexStruct=void 0;var xP=(_T(),hi(ST)),Cqe=HE();Wu.HexStruct=(0,xP.pattern)((0,xP.string)(),/^(?:0x)?[0-9a-f]+$/iu);Wu.StrictHexStruct=(0,xP.pattern)((0,xP.string)(),/^0x[0-9a-f]+$/iu);function Rqe(e){return(0,xP.is)(e,Wu.HexStruct)}Wu.isHexString=Rqe;function Iqe(e){return(0,xP.is)(e,Wu.StrictHexStruct)}Wu.isStrictHexString=Iqe;function H4t(e){(0,Cqe.assert)(Rqe(e),\"Value must be a hexadecimal string.\")}Wu.assertIsHexString=H4t;function z4t(e){(0,Cqe.assert)(Iqe(e),\\'Value must be a hexadecimal string, starting with \"0x\".\\')}Wu.assertIsStrictHexString=z4t;function j4t(e){return e.startsWith(\"0x\")?e:e.startsWith(\"0X\")?`0x${e.substring(2)}`:`0x${e}`}Wu.add0x=j4t;function W4t(e){return e.startsWith(\"0x\")||e.startsWith(\"0X\")?e.substring(2):e}Wu.remove0x=W4t});var uge=me(yi=>{\"use strict\";f();Object.defineProperty(yi,\"__esModule\",{value:!0});yi.createDataView=yi.concatBytes=yi.valueToBytes=yi.stringToBytes=yi.numberToBytes=yi.signedBigIntToBytes=yi.bigIntToBytes=yi.hexToBytes=yi.bytesToString=yi.bytesToNumber=yi.bytesToSignedBigInt=yi.bytesToBigInt=yi.bytesToHex=yi.assertIsBytes=yi.isBytes=void 0;var v0=HE(),sge=kF(),kqe=48,Oqe=58,Nqe=87;function V4t(){let e=[];return()=>{if(e.length===0)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,\"0\"));return e}}var G4t=V4t();function cge(e){return e instanceof Uint8Array}yi.isBytes=cge;function EP(e){(0,v0.assert)(cge(e),\"Value must be a Uint8Array.\")}yi.assertIsBytes=EP;function Pqe(e){if(EP(e),e.length===0)return\"0x\";let t=G4t(),n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=t[e[r]];return(0,sge.add0x)(n.join(\"\"))}yi.bytesToHex=Pqe;function Mqe(e){EP(e);let t=Pqe(e);return BigInt(t)}yi.bytesToBigInt=Mqe;function q4t(e){EP(e);let t=BigInt(0);for(let n of e)t=(t<<BigInt(8))+BigInt(n);return BigInt.asIntN(e.length*8,t)}yi.bytesToSignedBigInt=q4t;function K4t(e){EP(e);let t=Mqe(e);return(0,v0.assert)(t<=BigInt(Number.MAX_SAFE_INTEGER),\"Number is not a safe integer. Use `bytesToBigInt` instead.\"),Number(t)}yi.bytesToNumber=K4t;function Y4t(e){return EP(e),new TextDecoder().decode(e)}yi.bytesToString=Y4t;function ZX(e){var t;if(((t=e?.toLowerCase)===null||t===void 0?void 0:t.call(e))===\"0x\")return new Uint8Array;(0,sge.assertIsHexString)(e);let n=(0,sge.remove0x)(e).toLowerCase(),r=n.length%2===0?n:`0${n}`,o=new Uint8Array(r.length/2);for(let i=0;i<o.length;i++){let a=r.charCodeAt(i*2),c=r.charCodeAt(i*2+1),l=a-(a<Oqe?kqe:Nqe),d=c-(c<Oqe?kqe:Nqe);o[i]=l*16+d}return o}yi.hexToBytes=ZX;function Dqe(e){(0,v0.assert)(typeof e==\"bigint\",\"Value must be a bigint.\"),(0,v0.assert)(e>=BigInt(0),\"Value must be a non-negative bigint.\");let t=e.toString(16);return ZX(t)}yi.bigIntToBytes=Dqe;function Z4t(e,t){(0,v0.assert)(t>0);let n=e>>BigInt(31);return!((~e&n)+(e&~n)>>BigInt(t*8+-1))}function Q4t(e,t){(0,v0.assert)(typeof e==\"bigint\",\"Value must be a bigint.\"),(0,v0.assert)(typeof t==\"number\",\"Byte length must be a number.\"),(0,v0.assert)(t>0,\"Byte length must be greater than 0.\"),(0,v0.assert)(Z4t(e,t),\"Byte length is too small to represent the given value.\");let n=e,r=new Uint8Array(t);for(let o=0;o<r.length;o++)r[o]=Number(BigInt.asUintN(8,n)),n>>=BigInt(8);return r.reverse()}yi.signedBigIntToBytes=Q4t;function Bqe(e){(0,v0.assert)(typeof e==\"number\",\"Value must be a number.\"),(0,v0.assert)(e>=0,\"Value must be a non-negative number.\"),(0,v0.assert)(Number.isSafeInteger(e),\"Value is not a safe integer. Use `bigIntToBytes` instead.\");let t=e.toString(16);return ZX(t)}yi.numberToBytes=Bqe;function Lqe(e){return(0,v0.assert)(typeof e==\"string\",\"Value must be a string.\"),new TextEncoder().encode(e)}yi.stringToBytes=Lqe;function Uqe(e){if(typeof e==\"bigint\")return Dqe(e);if(typeof e==\"number\")return Bqe(e);if(typeof e==\"string\")return e.startsWith(\"0x\")?ZX(e):Lqe(e);if(cge(e))return e;throw new TypeError(`Unsupported value type: \"${typeof e}\".`)}yi.valueToBytes=Uqe;function J4t(e){let t=new Array(e.length),n=0;for(let o=0;o<e.length;o++){let i=Uqe(e[o]);t[o]=i,n+=i.length}let r=new Uint8Array(n);for(let o=0,i=0;o<t.length;o++)r.set(t[o],i),i+=t[o].length;return r}yi.concatBytes=J4t;function X4t(e){if(typeof globalThis.Buffer<\"u\"&&e instanceof globalThis.Buffer){let t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new DataView(t)}return new DataView(e.buffer,e.byteOffset,e.byteLength)}yi.createDataView=X4t});var Hqe=me(QX=>{\"use strict\";f();Object.defineProperty(QX,\"__esModule\",{value:!0});QX.ChecksumStruct=void 0;var Fqe=(_T(),hi(ST)),$4t=age();QX.ChecksumStruct=(0,Fqe.size)((0,$4t.base64)((0,Fqe.string)(),{paddingRequired:!0}),44,44)});var Wqe=me(Bw=>{\"use strict\";f();Object.defineProperty(Bw,\"__esModule\",{value:!0});Bw.createHex=Bw.createBytes=Bw.createBigInt=Bw.createNumber=void 0;var lc=(_T(),hi(ST)),e8t=HE(),zqe=uge(),JX=kF(),jqe=(0,lc.union)([(0,lc.number)(),(0,lc.bigint)(),(0,lc.string)(),JX.StrictHexStruct]),t8t=(0,lc.coerce)((0,lc.number)(),jqe,Number),n8t=(0,lc.coerce)((0,lc.bigint)(),jqe,BigInt),Uar=(0,lc.union)([JX.StrictHexStruct,(0,lc.instance)(Uint8Array)]),r8t=(0,lc.coerce)((0,lc.instance)(Uint8Array),(0,lc.union)([JX.StrictHexStruct]),zqe.hexToBytes),o8t=(0,lc.coerce)(JX.StrictHexStruct,(0,lc.instance)(Uint8Array),zqe.bytesToHex);function i8t(e){try{let t=(0,lc.create)(e,t8t);return(0,e8t.assert)(Number.isFinite(t),`Expected a number-like value, got \"${e}\".`),t}catch(t){throw t instanceof lc.StructError?new Error(`Expected a number-like value, got \"${e}\".`):t}}Bw.createNumber=i8t;function a8t(e){try{return(0,lc.create)(e,n8t)}catch(t){throw t instanceof lc.StructError?new Error(`Expected a number-like value, got \"${String(t.value)}\".`):t}}Bw.createBigInt=a8t;function s8t(e){if(typeof e==\"string\"&&e.toLowerCase()===\"0x\")return new Uint8Array;try{return(0,lc.create)(e,r8t)}catch(t){throw t instanceof lc.StructError?new Error(`Expected a bytes-like value, got \"${String(t.value)}\".`):t}}Bw.createBytes=s8t;function c8t(e){if(e instanceof Uint8Array&&e.length===0||typeof e==\"string\"&&e.toLowerCase()===\"0x\")return\"0x\";try{return(0,lc.create)(e,o8t)}catch(t){throw t instanceof lc.StructError?new Error(`Expected a bytes-like value, got \"${String(t.value)}\".`):t}}Bw.createHex=c8t});var Gqe=me(Uw=>{\"use strict\";f();var Vqe=Uw&&Uw.__classPrivateFieldSet||function(e,t,n,r,o){if(r===\"m\")throw new TypeError(\"Private method is not writable\");if(r===\"a\"&&!o)throw new TypeError(\"Private accessor was defined without a setter\");if(typeof t==\"function\"?e!==t||!o:!t.has(e))throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");return r===\"a\"?o.call(e,n):o?o.value=n:t.set(e,n),n},$p=Uw&&Uw.__classPrivateFieldGet||function(e,t,n,r){if(n===\"a\"&&!r)throw new TypeError(\"Private accessor was defined without a getter\");if(typeof t==\"function\"?e!==t||!r:!t.has(e))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return n===\"m\"?r:n===\"a\"?r.call(e):r?r.value:t.get(e)},p1,Lw;Object.defineProperty(Uw,\"__esModule\",{value:!0});Uw.FrozenSet=Uw.FrozenMap=void 0;var OF=class{constructor(t){p1.set(this,void 0),Vqe(this,p1,new Map(t),\"f\"),Object.freeze(this)}get size(){return $p(this,p1,\"f\").size}[(p1=new WeakMap,Symbol.iterator)](){return $p(this,p1,\"f\")[Symbol.iterator]()}entries(){return $p(this,p1,\"f\").entries()}forEach(t,n){return $p(this,p1,\"f\").forEach((r,o,i)=>t.call(n,r,o,this))}get(t){return $p(this,p1,\"f\").get(t)}has(t){return $p(this,p1,\"f\").has(t)}keys(){return $p(this,p1,\"f\").keys()}values(){return $p(this,p1,\"f\").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([t,n])=>`${String(t)} => ${String(n)}`).join(\", \")} `:\"\"}}`}};Uw.FrozenMap=OF;var NF=class{constructor(t){Lw.set(this,void 0),Vqe(this,Lw,new Set(t),\"f\"),Object.freeze(this)}get size(){return $p(this,Lw,\"f\").size}[(Lw=new WeakMap,Symbol.iterator)](){return $p(this,Lw,\"f\")[Symbol.iterator]()}entries(){return $p(this,Lw,\"f\").entries()}forEach(t,n){return $p(this,Lw,\"f\").forEach((r,o,i)=>t.call(n,r,o,this))}has(t){return $p(this,Lw,\"f\").has(t)}keys(){return $p(this,Lw,\"f\").keys()}values(){return $p(this,Lw,\"f\").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(t=>String(t)).join(\", \")} `:\"\"}}`}};Uw.FrozenSet=NF;Object.freeze(OF);Object.freeze(OF.prototype);Object.freeze(NF);Object.freeze(NF.prototype)});var Kqe=me(qqe=>{\"use strict\";f();Object.defineProperty(qqe,\"__esModule\",{value:!0})});var Yqe=me(Ot=>{\"use strict\";f();Object.defineProperty(Ot,\"__esModule\",{value:!0});Ot.getJsonRpcIdValidator=Ot.assertIsJsonRpcError=Ot.isJsonRpcError=Ot.assertIsJsonRpcFailure=Ot.isJsonRpcFailure=Ot.assertIsJsonRpcSuccess=Ot.isJsonRpcSuccess=Ot.assertIsJsonRpcResponse=Ot.isJsonRpcResponse=Ot.assertIsPendingJsonRpcResponse=Ot.isPendingJsonRpcResponse=Ot.JsonRpcResponseStruct=Ot.JsonRpcFailureStruct=Ot.JsonRpcSuccessStruct=Ot.PendingJsonRpcResponseStruct=Ot.assertIsJsonRpcRequest=Ot.isJsonRpcRequest=Ot.assertIsJsonRpcNotification=Ot.isJsonRpcNotification=Ot.JsonRpcNotificationStruct=Ot.JsonRpcRequestStruct=Ot.JsonRpcParamsStruct=Ot.JsonRpcErrorStruct=Ot.JsonRpcIdStruct=Ot.JsonRpcVersionStruct=Ot.jsonrpc2=Ot.getJsonSize=Ot.isValidJson=Ot.JsonStruct=Ot.UnsafeJsonStruct=void 0;var er=(_T(),hi(ST)),TT=HE(),u8t=()=>(0,er.define)(\"finite number\",e=>(0,er.is)(e,(0,er.number)())&&Number.isFinite(e));Ot.UnsafeJsonStruct=(0,er.union)([(0,er.literal)(null),(0,er.boolean)(),u8t(),(0,er.string)(),(0,er.array)((0,er.lazy)(()=>Ot.UnsafeJsonStruct)),(0,er.record)((0,er.string)(),(0,er.lazy)(()=>Ot.UnsafeJsonStruct))]);Ot.JsonStruct=(0,er.define)(\"Json\",(e,t)=>{function n(r,o){let a=[...o.validator(r,t)];return a.length>0?a:!0}try{let r=n(e,Ot.UnsafeJsonStruct);return r!==!0?r:n(JSON.parse(JSON.stringify(e)),Ot.UnsafeJsonStruct)}catch(r){return r instanceof RangeError?\"Circular reference detected\":!1}});function l8t(e){return(0,er.is)(e,Ot.JsonStruct)}Ot.isValidJson=l8t;function d8t(e){(0,TT.assertStruct)(e,Ot.JsonStruct,\"Invalid JSON value\");let t=JSON.stringify(e);return new TextEncoder().encode(t).byteLength}Ot.getJsonSize=d8t;Ot.jsonrpc2=\"2.0\";Ot.JsonRpcVersionStruct=(0,er.literal)(Ot.jsonrpc2);Ot.JsonRpcIdStruct=(0,er.nullable)((0,er.union)([(0,er.number)(),(0,er.string)()]));Ot.JsonRpcErrorStruct=(0,er.object)({code:(0,er.integer)(),message:(0,er.string)(),data:(0,er.optional)(Ot.JsonStruct),stack:(0,er.optional)((0,er.string)())});Ot.JsonRpcParamsStruct=(0,er.optional)((0,er.union)([(0,er.record)((0,er.string)(),Ot.JsonStruct),(0,er.array)(Ot.JsonStruct)]));Ot.JsonRpcRequestStruct=(0,er.object)({id:Ot.JsonRpcIdStruct,jsonrpc:Ot.JsonRpcVersionStruct,method:(0,er.string)(),params:Ot.JsonRpcParamsStruct});Ot.JsonRpcNotificationStruct=(0,er.omit)(Ot.JsonRpcRequestStruct,[\"id\"]);function f8t(e){return(0,er.is)(e,Ot.JsonRpcNotificationStruct)}Ot.isJsonRpcNotification=f8t;function p8t(e,t){(0,TT.assertStruct)(e,Ot.JsonRpcNotificationStruct,\"Invalid JSON-RPC notification\",t)}Ot.assertIsJsonRpcNotification=p8t;function h8t(e){return(0,er.is)(e,Ot.JsonRpcRequestStruct)}Ot.isJsonRpcRequest=h8t;function m8t(e,t){(0,TT.assertStruct)(e,Ot.JsonRpcRequestStruct,\"Invalid JSON-RPC request\",t)}Ot.assertIsJsonRpcRequest=m8t;Ot.PendingJsonRpcResponseStruct=(0,er.object)({id:Ot.JsonRpcIdStruct,jsonrpc:Ot.JsonRpcVersionStruct,result:(0,er.optional)((0,er.unknown)()),error:(0,er.optional)(Ot.JsonRpcErrorStruct)});Ot.JsonRpcSuccessStruct=(0,er.object)({id:Ot.JsonRpcIdStruct,jsonrpc:Ot.JsonRpcVersionStruct,result:Ot.JsonStruct});Ot.JsonRpcFailureStruct=(0,er.object)({id:Ot.JsonRpcIdStruct,jsonrpc:Ot.JsonRpcVersionStruct,error:Ot.JsonRpcErrorStruct});Ot.JsonRpcResponseStruct=(0,er.union)([Ot.JsonRpcSuccessStruct,Ot.JsonRpcFailureStruct]);function g8t(e){return(0,er.is)(e,Ot.PendingJsonRpcResponseStruct)}Ot.isPendingJsonRpcResponse=g8t;function y8t(e,t){(0,TT.assertStruct)(e,Ot.PendingJsonRpcResponseStruct,\"Invalid pending JSON-RPC response\",t)}Ot.assertIsPendingJsonRpcResponse=y8t;function b8t(e){return(0,er.is)(e,Ot.JsonRpcResponseStruct)}Ot.isJsonRpcResponse=b8t;function v8t(e,t){(0,TT.assertStruct)(e,Ot.JsonRpcResponseStruct,\"Invalid JSON-RPC response\",t)}Ot.assertIsJsonRpcResponse=v8t;function w8t(e){return(0,er.is)(e,Ot.JsonRpcSuccessStruct)}Ot.isJsonRpcSuccess=w8t;function x8t(e,t){(0,TT.assertStruct)(e,Ot.JsonRpcSuccessStruct,\"Invalid JSON-RPC success response\",t)}Ot.assertIsJsonRpcSuccess=x8t;function E8t(e){return(0,er.is)(e,Ot.JsonRpcFailureStruct)}Ot.isJsonRpcFailure=E8t;function A8t(e,t){(0,TT.assertStruct)(e,Ot.JsonRpcFailureStruct,\"Invalid JSON-RPC failure response\",t)}Ot.assertIsJsonRpcFailure=A8t;function S8t(e){return(0,er.is)(e,Ot.JsonRpcErrorStruct)}Ot.isJsonRpcError=S8t;function _8t(e,t){(0,TT.assertStruct)(e,Ot.JsonRpcErrorStruct,\"Invalid JSON-RPC error\",t)}Ot.assertIsJsonRpcError=_8t;function T8t(e){let{permitEmptyString:t,permitFractions:n,permitNull:r}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},e);return i=>!!(typeof i==\"number\"&&(n||Number.isInteger(i))||typeof i==\"string\"&&(t||i.length>0)||r&&i===null)}Ot.getJsonRpcIdValidator=T8t});var Qqe=me(Zqe=>{\"use strict\";f();Object.defineProperty(Zqe,\"__esModule\",{value:!0})});var Xqe=me((Zar,Jqe)=>{f();var AP=1e3,SP=AP*60,_P=SP*60,BR=_P*24,C8t=BR*7,R8t=BR*365.25;Jqe.exports=function(e,t){t=t||{};var n=typeof e;if(n===\"string\"&&e.length>0)return I8t(e);if(n===\"number\"&&isFinite(e))return t.long?O8t(e):k8t(e);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(e))};function I8t(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\\\\d+)?\\\\.?\\\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||\"ms\").toLowerCase();switch(r){case\"years\":case\"year\":case\"yrs\":case\"yr\":case\"y\":return n*R8t;case\"weeks\":case\"week\":case\"w\":return n*C8t;case\"days\":case\"day\":case\"d\":return n*BR;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return n*_P;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return n*SP;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return n*AP;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return n;default:return}}}}function k8t(e){var t=Math.abs(e);return t>=BR?Math.round(e/BR)+\"d\":t>=_P?Math.round(e/_P)+\"h\":t>=SP?Math.round(e/SP)+\"m\":t>=AP?Math.round(e/AP)+\"s\":e+\"ms\"}function O8t(e){var t=Math.abs(e);return t>=BR?XX(e,t,BR,\"day\"):t>=_P?XX(e,t,_P,\"hour\"):t>=SP?XX(e,t,SP,\"minute\"):t>=AP?XX(e,t,AP,\"second\"):e+\" ms\"}function XX(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+\" \"+r+(o?\"s\":\"\")}});var eKe=me((Jar,$qe)=>{f();function N8t(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=o,n.enabled=c,n.humanize=Xqe(),n.destroy=d,Object.keys(e).forEach(m=>{n[m]=e[m]}),n.names=[],n.skips=[],n.formatters={};function t(m){let h=0;for(let g=0;g<m.length;g++)h=(h<<5)-h+m.charCodeAt(g),h|=0;return n.colors[Math.abs(h)%n.colors.length]}n.selectColor=t;function n(m){let h,g=null,y,w;function x(...I){if(!x.enabled)return;let C=x,M=Number(new Date),B=M-(h||M);C.diff=B,C.prev=h,C.curr=M,h=M,I[0]=n.coerce(I[0]),typeof I[0]!=\"string\"&&I.unshift(\"%O\");let z=0;I[0]=I[0].replace(/%([a-zA-Z%])/g,(J,ne)=>{if(J===\"%%\")return\"%\";z++;let ie=n.formatters[ne];if(typeof ie==\"function\"){let ae=I[z];J=ie.call(C,ae),I.splice(z,1),z--}return J}),n.formatArgs.call(C,I),(C.log||n.log).apply(C,I)}return x.namespace=m,x.useColors=n.useColors(),x.color=n.selectColor(m),x.extend=r,x.destroy=n.destroy,Object.defineProperty(x,\"enabled\",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(y!==n.namespaces&&(y=n.namespaces,w=n.enabled(m)),w),set:I=>{g=I}}),typeof n.init==\"function\"&&n.init(x),x}function r(m,h){let g=n(this.namespace+(typeof h>\"u\"?\":\":h)+m);return g.log=this.log,g}function o(m){n.save(m),n.namespaces=m,n.names=[],n.skips=[];let h=(typeof m==\"string\"?m:\"\").trim().replace(/\\\\s+/g,\",\").split(\",\").filter(Boolean);for(let g of h)g[0]===\"-\"?n.skips.push(g.slice(1)):n.names.push(g)}function i(m,h){let g=0,y=0,w=-1,x=0;for(;g<m.length;)if(y<h.length&&(h[y]===m[g]||h[y]===\"*\"))h[y]===\"*\"?(w=y,x=g,y++):(g++,y++);else if(w!==-1)y=w+1,x++,g=x;else return!1;for(;y<h.length&&h[y]===\"*\";)y++;return y===h.length}function a(){let m=[...n.names,...n.skips.map(h=>\"-\"+h)].join(\",\");return n.enable(\"\"),m}function c(m){for(let h of n.skips)if(i(m,h))return!1;for(let h of n.names)if(i(m,h))return!0;return!1}function l(m){return m instanceof Error?m.stack||m.message:m}function d(){console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\")}return n.enable(n.load()),n}$qe.exports=N8t});var tKe=me((cm,$X)=>{f();cm.formatArgs=M8t;cm.save=D8t;cm.load=B8t;cm.useColors=P8t;cm.storage=L8t();cm.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\"))}})();cm.colors=[\"#0000CC\",\"#0000FF\",\"#0033CC\",\"#0033FF\",\"#0066CC\",\"#0066FF\",\"#0099CC\",\"#0099FF\",\"#00CC00\",\"#00CC33\",\"#00CC66\",\"#00CC99\",\"#00CCCC\",\"#00CCFF\",\"#3300CC\",\"#3300FF\",\"#3333CC\",\"#3333FF\",\"#3366CC\",\"#3366FF\",\"#3399CC\",\"#3399FF\",\"#33CC00\",\"#33CC33\",\"#33CC66\",\"#33CC99\",\"#33CCCC\",\"#33CCFF\",\"#6600CC\",\"#6600FF\",\"#6633CC\",\"#6633FF\",\"#66CC00\",\"#66CC33\",\"#9900CC\",\"#9900FF\",\"#9933CC\",\"#9933FF\",\"#99CC00\",\"#99CC33\",\"#CC0000\",\"#CC0033\",\"#CC0066\",\"#CC0099\",\"#CC00CC\",\"#CC00FF\",\"#CC3300\",\"#CC3333\",\"#CC3366\",\"#CC3399\",\"#CC33CC\",\"#CC33FF\",\"#CC6600\",\"#CC6633\",\"#CC9900\",\"#CC9933\",\"#CCCC00\",\"#CCCC33\",\"#FF0000\",\"#FF0033\",\"#FF0066\",\"#FF0099\",\"#FF00CC\",\"#FF00FF\",\"#FF3300\",\"#FF3333\",\"#FF3366\",\"#FF3399\",\"#FF33CC\",\"#FF33FF\",\"#FF6600\",\"#FF6633\",\"#FF9900\",\"#FF9933\",\"#FFCC00\",\"#FFCC33\"];function P8t(){if(typeof window<\"u\"&&window.process&&(window.process.type===\"renderer\"||window.process.__nwjs))return!0;if(typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\\\\/(\\\\d+)/))return!1;let e;return typeof document<\"u\"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<\"u\"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<\"u\"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\\\\/(\\\\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\\\\/(\\\\d+)/)}function M8t(e){if(e[0]=(this.useColors?\"%c\":\"\")+this.namespace+(this.useColors?\" %c\":\" \")+e[0]+(this.useColors?\"%c \":\" \")+\"+\"+$X.exports.humanize(this.diff),!this.useColors)return;let t=\"color: \"+this.color;e.splice(1,0,t,\"color: inherit\");let n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!==\"%%\"&&(n++,o===\"%c\"&&(r=n))}),e.splice(r,0,t)}cm.log=console.debug||console.log||(()=>{});function D8t(e){try{e?cm.storage.setItem(\"debug\",e):cm.storage.removeItem(\"debug\")}catch{}}function B8t(){let e;try{e=cm.storage.getItem(\"debug\")||cm.storage.getItem(\"DEBUG\")}catch{}return!e&&typeof process<\"u\"&&\"env\"in process&&(e=process.env.DEBUG),e}function L8t(){try{return localStorage}catch{}}$X.exports=eKe()(cm);var{formatters:U8t}=$X.exports;U8t.j=function(e){try{return JSON.stringify(e)}catch(t){return\"[UnexpectedJSONParseError]: \"+t.message}}});var nKe=me(CT=>{\"use strict\";f();var F8t=CT&&CT.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(CT,\"__esModule\",{value:!0});CT.createModuleLogger=CT.createProjectLogger=void 0;var H8t=F8t(tKe()),z8t=(0,H8t.default)(\"metamask\");function j8t(e){return z8t.extend(e)}CT.createProjectLogger=j8t;function W8t(e,t){return e.extend(t)}CT.createModuleLogger=W8t});var oKe=me(Ps=>{\"use strict\";f();Object.defineProperty(Ps,\"__esModule\",{value:!0});Ps.calculateNumberSize=Ps.calculateStringSize=Ps.isASCII=Ps.isPlainObject=Ps.ESCAPE_CHARACTERS_REGEXP=Ps.JsonSize=Ps.hasProperty=Ps.isObject=Ps.isNullOrUndefined=Ps.isNonEmptyArray=void 0;function V8t(e){return Array.isArray(e)&&e.length>0}Ps.isNonEmptyArray=V8t;function G8t(e){return e==null}Ps.isNullOrUndefined=G8t;function q8t(e){return!!e&&typeof e==\"object\"&&!Array.isArray(e)}Ps.isObject=q8t;var K8t=(e,t)=>Object.hasOwnProperty.call(e,t);Ps.hasProperty=K8t;var Y8t;(function(e){e[e.Null=4]=\"Null\",e[e.Comma=1]=\"Comma\",e[e.Wrapper=1]=\"Wrapper\",e[e.True=4]=\"True\",e[e.False=5]=\"False\",e[e.Quote=1]=\"Quote\",e[e.Colon=1]=\"Colon\",e[e.Date=24]=\"Date\"})(Y8t=Ps.JsonSize||(Ps.JsonSize={}));Ps.ESCAPE_CHARACTERS_REGEXP=/\"|\\\\\\\\|\\\\n|\\\\r|\\\\t/gu;function Z8t(e){if(typeof e!=\"object\"||e===null)return!1;try{let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch{return!1}}Ps.isPlainObject=Z8t;function rKe(e){return e.charCodeAt(0)<=127}Ps.isASCII=rKe;function Q8t(e){var t;return e.split(\"\").reduce((r,o)=>rKe(o)?r+1:r+2,0)+((t=e.match(Ps.ESCAPE_CHARACTERS_REGEXP))!==null&&t!==void 0?t:[]).length}Ps.calculateStringSize=Q8t;function J8t(e){return e.toString().length}Ps.calculateNumberSize=J8t});var iKe=me(Fw=>{\"use strict\";f();Object.defineProperty(Fw,\"__esModule\",{value:!0});Fw.hexToBigInt=Fw.hexToNumber=Fw.bigIntToHex=Fw.numberToHex=void 0;var TP=HE(),PF=kF(),X8t=e=>((0,TP.assert)(typeof e==\"number\",\"Value must be a number.\"),(0,TP.assert)(e>=0,\"Value must be a non-negative number.\"),(0,TP.assert)(Number.isSafeInteger(e),\"Value is not a safe integer. Use `bigIntToHex` instead.\"),(0,PF.add0x)(e.toString(16)));Fw.numberToHex=X8t;var $8t=e=>((0,TP.assert)(typeof e==\"bigint\",\"Value must be a bigint.\"),(0,TP.assert)(e>=0,\"Value must be a non-negative bigint.\"),(0,PF.add0x)(e.toString(16)));Fw.bigIntToHex=$8t;var ekt=e=>{(0,PF.assertIsHexString)(e);let t=parseInt(e,16);return(0,TP.assert)(Number.isSafeInteger(t),\"Value is not a safe integer. Use `hexToBigInt` instead.\"),t};Fw.hexToNumber=ekt;var tkt=e=>((0,PF.assertIsHexString)(e),BigInt((0,PF.add0x)(e)));Fw.hexToBigInt=tkt});var sKe=me(aKe=>{\"use strict\";f();Object.defineProperty(aKe,\"__esModule\",{value:!0})});var uKe=me(zE=>{\"use strict\";f();Object.defineProperty(zE,\"__esModule\",{value:!0});zE.timeSince=zE.inMilliseconds=zE.Duration=void 0;var nkt;(function(e){e[e.Millisecond=1]=\"Millisecond\",e[e.Second=1e3]=\"Second\",e[e.Minute=6e4]=\"Minute\",e[e.Hour=36e5]=\"Hour\",e[e.Day=864e5]=\"Day\",e[e.Week=6048e5]=\"Week\",e[e.Year=31536e6]=\"Year\"})(nkt=zE.Duration||(zE.Duration={}));var rkt=e=>Number.isInteger(e)&&e>=0,cKe=(e,t)=>{if(!rkt(e))throw new Error(`\"${t}\" must be a non-negative integer. Received: \"${e}\".`)};function okt(e,t){return cKe(e,\"count\"),e*t}zE.inMilliseconds=okt;function ikt(e){return cKe(e,\"timestamp\"),Date.now()-e}zE.timeSince=ikt});var dKe=me(lKe=>{\"use strict\";f();Object.defineProperty(lKe,\"__esModule\",{value:!0})});var MF=me((fsr,fKe)=>{\"use strict\";f();var akt=\"2.0.0\",skt=Number.MAX_SAFE_INTEGER||9007199254740991,ckt=16,ukt=250,lkt=[\"major\",\"premajor\",\"minor\",\"preminor\",\"patch\",\"prepatch\",\"prerelease\"];fKe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:ckt,MAX_SAFE_BUILD_LENGTH:ukt,MAX_SAFE_INTEGER:skt,RELEASE_TYPES:lkt,SEMVER_SPEC_VERSION:akt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var DF=me((hsr,pKe)=>{\"use strict\";f();var dkt=typeof process==\"object\"&&process.env&&process.env.NODE_DEBUG&&/\\\\bsemver\\\\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(\"SEMVER\",...e):()=>{};pKe.exports=dkt});var CP=me((Hw,hKe)=>{\"use strict\";f();var{MAX_SAFE_COMPONENT_LENGTH:lge,MAX_SAFE_BUILD_LENGTH:fkt,MAX_LENGTH:pkt}=MF(),hkt=DF();Hw=hKe.exports={};var mkt=Hw.re=[],gkt=Hw.safeRe=[],sn=Hw.src=[],ykt=Hw.safeSrc=[],cn=Hw.t={},bkt=0,dge=\"[a-zA-Z0-9-]\",vkt=[[\"\\\\\\\\s\",1],[\"\\\\\\\\d\",pkt],[dge,fkt]],wkt=e=>{for(let[t,n]of vkt)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},Er=(e,t,n)=>{let r=wkt(t),o=bkt++;hkt(e,o,t),cn[e]=o,sn[o]=t,ykt[o]=r,mkt[o]=new RegExp(t,n?\"g\":void 0),gkt[o]=new RegExp(r,n?\"g\":void 0)};Er(\"NUMERICIDENTIFIER\",\"0|[1-9]\\\\\\\\d*\");Er(\"NUMERICIDENTIFIERLOOSE\",\"\\\\\\\\d+\");Er(\"NONNUMERICIDENTIFIER\",`\\\\\\\\d*[a-zA-Z-]${dge}*`);Er(\"MAINVERSION\",`(${sn[cn.NUMERICIDENTIFIER]})\\\\\\\\.(${sn[cn.NUMERICIDENTIFIER]})\\\\\\\\.(${sn[cn.NUMERICIDENTIFIER]})`);Er(\"MAINVERSIONLOOSE\",`(${sn[cn.NUMERICIDENTIFIERLOOSE]})\\\\\\\\.(${sn[cn.NUMERICIDENTIFIERLOOSE]})\\\\\\\\.(${sn[cn.NUMERICIDENTIFIERLOOSE]})`);Er(\"PRERELEASEIDENTIFIER\",`(?:${sn[cn.NONNUMERICIDENTIFIER]}|${sn[cn.NUMERICIDENTIFIER]})`);Er(\"PRERELEASEIDENTIFIERLOOSE\",`(?:${sn[cn.NONNUMERICIDENTIFIER]}|${sn[cn.NUMERICIDENTIFIERLOOSE]})`);Er(\"PRERELEASE\",`(?:-(${sn[cn.PRERELEASEIDENTIFIER]}(?:\\\\\\\\.${sn[cn.PRERELEASEIDENTIFIER]})*))`);Er(\"PRERELEASELOOSE\",`(?:-?(${sn[cn.PRERELEASEIDENTIFIERLOOSE]}(?:\\\\\\\\.${sn[cn.PRERELEASEIDENTIFIERLOOSE]})*))`);Er(\"BUILDIDENTIFIER\",`${dge}+`);Er(\"BUILD\",`(?:\\\\\\\\+(${sn[cn.BUILDIDENTIFIER]}(?:\\\\\\\\.${sn[cn.BUILDIDENTIFIER]})*))`);Er(\"FULLPLAIN\",`v?${sn[cn.MAINVERSION]}${sn[cn.PRERELEASE]}?${sn[cn.BUILD]}?`);Er(\"FULL\",`^${sn[cn.FULLPLAIN]}$`);Er(\"LOOSEPLAIN\",`[v=\\\\\\\\s]*${sn[cn.MAINVERSIONLOOSE]}${sn[cn.PRERELEASELOOSE]}?${sn[cn.BUILD]}?`);Er(\"LOOSE\",`^${sn[cn.LOOSEPLAIN]}$`);Er(\"GTLT\",\"((?:<|>)?=?)\");Er(\"XRANGEIDENTIFIERLOOSE\",`${sn[cn.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\\\\\*`);Er(\"XRANGEIDENTIFIER\",`${sn[cn.NUMERICIDENTIFIER]}|x|X|\\\\\\\\*`);Er(\"XRANGEPLAIN\",`[v=\\\\\\\\s]*(${sn[cn.XRANGEIDENTIFIER]})(?:\\\\\\\\.(${sn[cn.XRANGEIDENTIFIER]})(?:\\\\\\\\.(${sn[cn.XRANGEIDENTIFIER]})(?:${sn[cn.PRERELEASE]})?${sn[cn.BUILD]}?)?)?`);Er(\"XRANGEPLAINLOOSE\",`[v=\\\\\\\\s]*(${sn[cn.XRANGEIDENTIFIERLOOSE]})(?:\\\\\\\\.(${sn[cn.XRANGEIDENTIFIERLOOSE]})(?:\\\\\\\\.(${sn[cn.XRANGEIDENTIFIERLOOSE]})(?:${sn[cn.PRERELEASELOOSE]})?${sn[cn.BUILD]}?)?)?`);Er(\"XRANGE\",`^${sn[cn.GTLT]}\\\\\\\\s*${sn[cn.XRANGEPLAIN]}$`);Er(\"XRANGELOOSE\",`^${sn[cn.GTLT]}\\\\\\\\s*${sn[cn.XRANGEPLAINLOOSE]}$`);Er(\"COERCEPLAIN\",`(^|[^\\\\\\\\d])(\\\\\\\\d{1,${lge}})(?:\\\\\\\\.(\\\\\\\\d{1,${lge}}))?(?:\\\\\\\\.(\\\\\\\\d{1,${lge}}))?`);Er(\"COERCE\",`${sn[cn.COERCEPLAIN]}(?:$|[^\\\\\\\\d])`);Er(\"COERCEFULL\",sn[cn.COERCEPLAIN]+`(?:${sn[cn.PRERELEASE]})?(?:${sn[cn.BUILD]})?(?:$|[^\\\\\\\\d])`);Er(\"COERCERTL\",sn[cn.COERCE],!0);Er(\"COERCERTLFULL\",sn[cn.COERCEFULL],!0);Er(\"LONETILDE\",\"(?:~>?)\");Er(\"TILDETRIM\",`(\\\\\\\\s*)${sn[cn.LONETILDE]}\\\\\\\\s+`,!0);Hw.tildeTrimReplace=\"$1~\";Er(\"TILDE\",`^${sn[cn.LONETILDE]}${sn[cn.XRANGEPLAIN]}$`);Er(\"TILDELOOSE\",`^${sn[cn.LONETILDE]}${sn[cn.XRANGEPLAINLOOSE]}$`);Er(\"LONECARET\",\"(?:\\\\\\\\^)\");Er(\"CARETTRIM\",`(\\\\\\\\s*)${sn[cn.LONECARET]}\\\\\\\\s+`,!0);Hw.caretTrimReplace=\"$1^\";Er(\"CARET\",`^${sn[cn.LONECARET]}${sn[cn.XRANGEPLAIN]}$`);Er(\"CARETLOOSE\",`^${sn[cn.LONECARET]}${sn[cn.XRANGEPLAINLOOSE]}$`);Er(\"COMPARATORLOOSE\",`^${sn[cn.GTLT]}\\\\\\\\s*(${sn[cn.LOOSEPLAIN]})$|^$`);Er(\"COMPARATOR\",`^${sn[cn.GTLT]}\\\\\\\\s*(${sn[cn.FULLPLAIN]})$|^$`);Er(\"COMPARATORTRIM\",`(\\\\\\\\s*)${sn[cn.GTLT]}\\\\\\\\s*(${sn[cn.LOOSEPLAIN]}|${sn[cn.XRANGEPLAIN]})`,!0);Hw.comparatorTrimReplace=\"$1$2$3\";Er(\"HYPHENRANGE\",`^\\\\\\\\s*(${sn[cn.XRANGEPLAIN]})\\\\\\\\s+-\\\\\\\\s+(${sn[cn.XRANGEPLAIN]})\\\\\\\\s*$`);Er(\"HYPHENRANGELOOSE\",`^\\\\\\\\s*(${sn[cn.XRANGEPLAINLOOSE]})\\\\\\\\s+-\\\\\\\\s+(${sn[cn.XRANGEPLAINLOOSE]})\\\\\\\\s*$`);Er(\"STAR\",\"(<|>)?=?\\\\\\\\s*\\\\\\\\*\");Er(\"GTE0\",\"^\\\\\\\\s*>=\\\\\\\\s*0\\\\\\\\.0\\\\\\\\.0\\\\\\\\s*$\");Er(\"GTE0PRE\",\"^\\\\\\\\s*>=\\\\\\\\s*0\\\\\\\\.0\\\\\\\\.0-0\\\\\\\\s*$\")});var e$=me((ysr,mKe)=>{\"use strict\";f();var xkt=Object.freeze({loose:!0}),Ekt=Object.freeze({}),Akt=e=>e?typeof e!=\"object\"?xkt:e:Ekt;mKe.exports=Akt});var fge=me((vsr,bKe)=>{\"use strict\";f();var gKe=/^[0-9]+$/,yKe=(e,t)=>{if(typeof e==\"number\"&&typeof t==\"number\")return e===t?0:e<t?-1:1;let n=gKe.test(e),r=gKe.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},Skt=(e,t)=>yKe(t,e);bKe.exports={compareIdentifiers:yKe,rcompareIdentifiers:Skt}});var Nf=me((xsr,wKe)=>{\"use strict\";f();var t$=DF(),{MAX_LENGTH:vKe,MAX_SAFE_INTEGER:n$}=MF(),{safeRe:r$,t:o$}=CP(),_kt=e$(),{compareIdentifiers:pge}=fge(),hge=class e{constructor(t,n){if(n=_kt(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!=\"string\")throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof t}\".`);if(t.length>vKe)throw new TypeError(`version is longer than ${vKe} characters`);t$(\"SemVer\",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=t.trim().match(n.loose?r$[o$.LOOSE]:r$[o$.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>n$||this.major<0)throw new TypeError(\"Invalid major version\");if(this.minor>n$||this.minor<0)throw new TypeError(\"Invalid minor version\");if(this.patch>n$||this.patch<0)throw new TypeError(\"Invalid patch version\");r[4]?this.prerelease=r[4].split(\".\").map(o=>{if(/^[0-9]+$/.test(o)){let i=+o;if(i>=0&&i<n$)return i}return o}):this.prerelease=[],this.build=r[5]?r[5].split(\".\"):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(\".\")}`),this.version}toString(){return this.version}compare(t){if(t$(\"SemVer.compare\",this.version,this.options,t),!(t instanceof e)){if(typeof t==\"string\"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{let r=this.prerelease[n],o=t.prerelease[n];if(t$(\"prerelease compare\",n,r,o),r===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(r===void 0)return-1;if(r===o)continue;return pge(r,o)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{let r=this.build[n],o=t.build[n];if(t$(\"build compare\",n,r,o),r===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(r===void 0)return-1;if(r===o)continue;return pge(r,o)}while(++n)}inc(t,n,r){if(t.startsWith(\"pre\")){if(!n&&r===!1)throw new Error(\"invalid increment argument: identifier is empty\");if(n){let o=`-${n}`.match(this.options.loose?r$[o$.PRERELEASELOOSE]:r$[o$.PRERELEASE]);if(!o||o[1]!==n)throw new Error(`invalid identifier: ${n}`)}}switch(t){case\"premajor\":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(\"pre\",n,r);break;case\"preminor\":this.prerelease.length=0,this.patch=0,this.minor++,this.inc(\"pre\",n,r);break;case\"prepatch\":this.prerelease.length=0,this.inc(\"patch\",n,r),this.inc(\"pre\",n,r);break;case\"prerelease\":this.prerelease.length===0&&this.inc(\"patch\",n,r),this.inc(\"pre\",n,r);break;case\"release\":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case\"major\":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case\"minor\":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case\"patch\":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case\"pre\":{let o=Number(r)?1:0;if(this.prerelease.length===0)this.prerelease=[o];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]==\"number\"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(\".\")&&r===!1)throw new Error(\"invalid increment argument: identifier already exists\");this.prerelease.push(o)}}if(n){let i=[n,o];r===!1&&(i=[n]),pge(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(\".\")}`),this}};wKe.exports=hge});var LR=me((Asr,EKe)=>{\"use strict\";f();var xKe=Nf(),Tkt=(e,t,n=!1)=>{if(e instanceof xKe)return e;try{return new xKe(e,t)}catch(r){if(!n)return null;throw r}};EKe.exports=Tkt});var SKe=me((_sr,AKe)=>{\"use strict\";f();var Ckt=LR(),Rkt=(e,t)=>{let n=Ckt(e,t);return n?n.version:null};AKe.exports=Rkt});var TKe=me((Csr,_Ke)=>{\"use strict\";f();var Ikt=LR(),kkt=(e,t)=>{let n=Ikt(e.trim().replace(/^[=v]+/,\"\"),t);return n?n.version:null};_Ke.exports=kkt});var IKe=me((Isr,RKe)=>{\"use strict\";f();var CKe=Nf(),Okt=(e,t,n,r,o)=>{typeof n==\"string\"&&(o=r,r=n,n=void 0);try{return new CKe(e instanceof CKe?e.version:e,n).inc(t,r,o).version}catch{return null}};RKe.exports=Okt});var NKe=me((Osr,OKe)=>{\"use strict\";f();var kKe=LR(),Nkt=(e,t)=>{let n=kKe(e,null,!0),r=kKe(t,null,!0),o=n.compare(r);if(o===0)return null;let i=o>0,a=i?n:r,c=i?r:n,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return\"major\";if(c.compareMain(a)===0)return c.minor&&!c.patch?\"minor\":\"patch\"}let m=l?\"pre\":\"\";return n.major!==r.major?m+\"major\":n.minor!==r.minor?m+\"minor\":n.patch!==r.patch?m+\"patch\":\"prerelease\"};OKe.exports=Nkt});var MKe=me((Psr,PKe)=>{\"use strict\";f();var Pkt=Nf(),Mkt=(e,t)=>new Pkt(e,t).major;PKe.exports=Mkt});var BKe=me((Dsr,DKe)=>{\"use strict\";f();var Dkt=Nf(),Bkt=(e,t)=>new Dkt(e,t).minor;DKe.exports=Bkt});var UKe=me((Lsr,LKe)=>{\"use strict\";f();var Lkt=Nf(),Ukt=(e,t)=>new Lkt(e,t).patch;LKe.exports=Ukt});var HKe=me((Fsr,FKe)=>{\"use strict\";f();var Fkt=LR(),Hkt=(e,t)=>{let n=Fkt(e,t);return n&&n.prerelease.length?n.prerelease:null};FKe.exports=Hkt});var fy=me((zsr,jKe)=>{\"use strict\";f();var zKe=Nf(),zkt=(e,t,n)=>new zKe(e,n).compare(new zKe(t,n));jKe.exports=zkt});var VKe=me((Wsr,WKe)=>{\"use strict\";f();var jkt=fy(),Wkt=(e,t,n)=>jkt(t,e,n);WKe.exports=Wkt});var qKe=me((Gsr,GKe)=>{\"use strict\";f();var Vkt=fy(),Gkt=(e,t)=>Vkt(e,t,!0);GKe.exports=Gkt});var i$=me((Ksr,YKe)=>{\"use strict\";f();var KKe=Nf(),qkt=(e,t,n)=>{let r=new KKe(e,n),o=new KKe(t,n);return r.compare(o)||r.compareBuild(o)};YKe.exports=qkt});var QKe=me((Zsr,ZKe)=>{\"use strict\";f();var Kkt=i$(),Ykt=(e,t)=>e.sort((n,r)=>Kkt(n,r,t));ZKe.exports=Ykt});var XKe=me((Jsr,JKe)=>{\"use strict\";f();var Zkt=i$(),Qkt=(e,t)=>e.sort((n,r)=>Zkt(r,n,t));JKe.exports=Qkt});var BF=me(($sr,$Ke)=>{\"use strict\";f();var Jkt=fy(),Xkt=(e,t,n)=>Jkt(e,t,n)>0;$Ke.exports=Xkt});var a$=me((tcr,eYe)=>{\"use strict\";f();var $kt=fy(),eOt=(e,t,n)=>$kt(e,t,n)<0;eYe.exports=eOt});var mge=me((rcr,tYe)=>{\"use strict\";f();var tOt=fy(),nOt=(e,t,n)=>tOt(e,t,n)===0;tYe.exports=nOt});var gge=me((icr,nYe)=>{\"use strict\";f();var rOt=fy(),oOt=(e,t,n)=>rOt(e,t,n)!==0;nYe.exports=oOt});var s$=me((scr,rYe)=>{\"use strict\";f();var iOt=fy(),aOt=(e,t,n)=>iOt(e,t,n)>=0;rYe.exports=aOt});var c$=me((ucr,oYe)=>{\"use strict\";f();var sOt=fy(),cOt=(e,t,n)=>sOt(e,t,n)<=0;oYe.exports=cOt});var yge=me((dcr,iYe)=>{\"use strict\";f();var uOt=mge(),lOt=gge(),dOt=BF(),fOt=s$(),pOt=a$(),hOt=c$(),mOt=(e,t,n,r)=>{switch(t){case\"===\":return typeof e==\"object\"&&(e=e.version),typeof n==\"object\"&&(n=n.version),e===n;case\"!==\":return typeof e==\"object\"&&(e=e.version),typeof n==\"object\"&&(n=n.version),e!==n;case\"\":case\"=\":case\"==\":return uOt(e,n,r);case\"!=\":return lOt(e,n,r);case\">\":return dOt(e,n,r);case\">=\":return fOt(e,n,r);case\"<\":return pOt(e,n,r);case\"<=\":return hOt(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};iYe.exports=mOt});var sYe=me((pcr,aYe)=>{\"use strict\";f();var gOt=Nf(),yOt=LR(),{safeRe:u$,t:l$}=CP(),bOt=(e,t)=>{if(e instanceof gOt)return e;if(typeof e==\"number\"&&(e=String(e)),typeof e!=\"string\")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(t.includePrerelease?u$[l$.COERCEFULL]:u$[l$.COERCE]);else{let l=t.includePrerelease?u$[l$.COERCERTLFULL]:u$[l$.COERCERTL],d;for(;(d=l.exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||d.index+d[0].length!==n.index+n[0].length)&&(n=d),l.lastIndex=d.index+d[1].length+d[2].length;l.lastIndex=-1}if(n===null)return null;let r=n[2],o=n[3]||\"0\",i=n[4]||\"0\",a=t.includePrerelease&&n[5]?`-${n[5]}`:\"\",c=t.includePrerelease&&n[6]?`+${n[6]}`:\"\";return yOt(`${r}.${o}.${i}${a}${c}`,t)};aYe.exports=bOt});var uYe=me((mcr,cYe)=>{\"use strict\";f();var bge=class{constructor(){this.max=1e3,this.map=new Map}get(t){let n=this.map.get(t);if(n!==void 0)return this.map.delete(t),this.map.set(t,n),n}delete(t){return this.map.delete(t)}set(t,n){if(!this.delete(t)&&n!==void 0){if(this.map.size>=this.max){let o=this.map.keys().next().value;this.delete(o)}this.map.set(t,n)}return this}};cYe.exports=bge});var py=me((ycr,pYe)=>{\"use strict\";f();var vOt=/\\\\s+/g,vge=class e{constructor(t,n){if(n=xOt(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof wge)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().replace(vOt,\" \"),this.set=this.raw.split(\"||\").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(o=>!dYe(o[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&ROt(o[0])){this.set=[o];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=\"\";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+=\"||\");let n=this.set[t];for(let r=0;r<n.length;r++)r>0&&(this.formatted+=\" \"),this.formatted+=n[r].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let r=((this.options.includePrerelease&&TOt)|(this.options.loose&&COt))+\":\"+t,o=lYe.get(r);if(o)return o;let i=this.options.loose,a=i?eh[Pf.HYPHENRANGELOOSE]:eh[Pf.HYPHENRANGE];t=t.replace(a,UOt(this.options.includePrerelease)),ds(\"hyphen replace\",t),t=t.replace(eh[Pf.COMPARATORTRIM],AOt),ds(\"comparator trim\",t),t=t.replace(eh[Pf.TILDETRIM],SOt),ds(\"tilde trim\",t),t=t.replace(eh[Pf.CARETTRIM],_Ot),ds(\"caret trim\",t);let c=t.split(\" \").map(h=>IOt(h,this.options)).join(\" \").split(/\\\\s+/).map(h=>LOt(h,this.options));i&&(c=c.filter(h=>(ds(\"loose invalid filter\",h,this.options),!!h.match(eh[Pf.COMPARATORLOOSE])))),ds(\"range list\",c);let l=new Map,d=c.map(h=>new wge(h,this.options));for(let h of d){if(dYe(h))return[h];l.set(h.value,h)}l.size>1&&l.has(\"\")&&l.delete(\"\");let m=[...l.values()];return lYe.set(r,m),m}intersects(t,n){if(!(t instanceof e))throw new TypeError(\"a Range is required\");return this.set.some(r=>fYe(r,n)&&t.set.some(o=>fYe(o,n)&&r.every(i=>o.every(a=>i.intersects(a,n)))))}test(t){if(!t)return!1;if(typeof t==\"string\")try{t=new EOt(t,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(FOt(this.set[n],t,this.options))return!0;return!1}};pYe.exports=vge;var wOt=uYe(),lYe=new wOt,xOt=e$(),wge=LF(),ds=DF(),EOt=Nf(),{safeRe:eh,t:Pf,comparatorTrimReplace:AOt,tildeTrimReplace:SOt,caretTrimReplace:_Ot}=CP(),{FLAG_INCLUDE_PRERELEASE:TOt,FLAG_LOOSE:COt}=MF(),dYe=e=>e.value===\"<0.0.0-0\",ROt=e=>e.value===\"\",fYe=(e,t)=>{let n=!0,r=e.slice(),o=r.pop();for(;n&&r.length;)n=r.every(i=>o.intersects(i,t)),o=r.pop();return n},IOt=(e,t)=>(e=e.replace(eh[Pf.BUILD],\"\"),ds(\"comp\",e,t),e=NOt(e,t),ds(\"caret\",e),e=kOt(e,t),ds(\"tildes\",e),e=MOt(e,t),ds(\"xrange\",e),e=BOt(e,t),ds(\"stars\",e),e),th=e=>!e||e.toLowerCase()===\"x\"||e===\"*\",kOt=(e,t)=>e.trim().split(/\\\\s+/).map(n=>OOt(n,t)).join(\" \"),OOt=(e,t)=>{let n=t.loose?eh[Pf.TILDELOOSE]:eh[Pf.TILDE];return e.replace(n,(r,o,i,a,c)=>{ds(\"tilde\",e,r,o,i,a,c);let l;return th(o)?l=\"\":th(i)?l=`>=${o}.0.0 <${+o+1}.0.0-0`:th(a)?l=`>=${o}.${i}.0 <${o}.${+i+1}.0-0`:c?(ds(\"replaceTilde pr\",c),l=`>=${o}.${i}.${a}-${c} <${o}.${+i+1}.0-0`):l=`>=${o}.${i}.${a} <${o}.${+i+1}.0-0`,ds(\"tilde return\",l),l})},NOt=(e,t)=>e.trim().split(/\\\\s+/).map(n=>POt(n,t)).join(\" \"),POt=(e,t)=>{ds(\"caret\",e,t);let n=t.loose?eh[Pf.CARETLOOSE]:eh[Pf.CARET],r=t.includePrerelease?\"-0\":\"\";return e.replace(n,(o,i,a,c,l)=>{ds(\"caret\",e,o,i,a,c,l);let d;return th(i)?d=\"\":th(a)?d=`>=${i}.0.0${r} <${+i+1}.0.0-0`:th(c)?i===\"0\"?d=`>=${i}.${a}.0${r} <${i}.${+a+1}.0-0`:d=`>=${i}.${a}.0${r} <${+i+1}.0.0-0`:l?(ds(\"replaceCaret pr\",l),i===\"0\"?a===\"0\"?d=`>=${i}.${a}.${c}-${l} <${i}.${a}.${+c+1}-0`:d=`>=${i}.${a}.${c}-${l} <${i}.${+a+1}.0-0`:d=`>=${i}.${a}.${c}-${l} <${+i+1}.0.0-0`):(ds(\"no pr\"),i===\"0\"?a===\"0\"?d=`>=${i}.${a}.${c}${r} <${i}.${a}.${+c+1}-0`:d=`>=${i}.${a}.${c}${r} <${i}.${+a+1}.0-0`:d=`>=${i}.${a}.${c} <${+i+1}.0.0-0`),ds(\"caret return\",d),d})},MOt=(e,t)=>(ds(\"replaceXRanges\",e,t),e.split(/\\\\s+/).map(n=>DOt(n,t)).join(\" \")),DOt=(e,t)=>{e=e.trim();let n=t.loose?eh[Pf.XRANGELOOSE]:eh[Pf.XRANGE];return e.replace(n,(r,o,i,a,c,l)=>{ds(\"xRange\",e,r,o,i,a,c,l);let d=th(i),m=d||th(a),h=m||th(c),g=h;return o===\"=\"&&g&&(o=\"\"),l=t.includePrerelease?\"-0\":\"\",d?o===\">\"||o===\"<\"?r=\"<0.0.0-0\":r=\"*\":o&&g?(m&&(a=0),c=0,o===\">\"?(o=\">=\",m?(i=+i+1,a=0,c=0):(a=+a+1,c=0)):o===\"<=\"&&(o=\"<\",m?i=+i+1:a=+a+1),o===\"<\"&&(l=\"-0\"),r=`${o+i}.${a}.${c}${l}`):m?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:h&&(r=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),ds(\"xRange return\",r),r})},BOt=(e,t)=>(ds(\"replaceStars\",e,t),e.trim().replace(eh[Pf.STAR],\"\")),LOt=(e,t)=>(ds(\"replaceGTE0\",e,t),e.trim().replace(eh[t.includePrerelease?Pf.GTE0PRE:Pf.GTE0],\"\")),UOt=e=>(t,n,r,o,i,a,c,l,d,m,h,g)=>(th(r)?n=\"\":th(o)?n=`>=${r}.0.0${e?\"-0\":\"\"}`:th(i)?n=`>=${r}.${o}.0${e?\"-0\":\"\"}`:a?n=`>=${n}`:n=`>=${n}${e?\"-0\":\"\"}`,th(d)?l=\"\":th(m)?l=`<${+d+1}.0.0-0`:th(h)?l=`<${d}.${+m+1}.0-0`:g?l=`<=${d}.${m}.${h}-${g}`:e?l=`<${d}.${m}.${+h+1}-0`:l=`<=${l}`,`${n} ${l}`.trim()),FOt=(e,t,n)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let r=0;r<e.length;r++)if(ds(e[r].semver),e[r].semver!==wge.ANY&&e[r].semver.prerelease.length>0){let o=e[r].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}});var LF=me((vcr,vYe)=>{\"use strict\";f();var UF=Symbol(\"SemVer ANY\"),Age=class e{static get ANY(){return UF}constructor(t,n){if(n=hYe(n),t instanceof e){if(t.loose===!!n.loose)return t;t=t.value}t=t.trim().split(/\\\\s+/).join(\" \"),Ege(\"comparator\",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===UF?this.value=\"\":this.value=this.operator+this.semver.version,Ege(\"comp\",this)}parse(t){let n=this.options.loose?mYe[gYe.COMPARATORLOOSE]:mYe[gYe.COMPARATOR],r=t.match(n);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=r[1]!==void 0?r[1]:\"\",this.operator===\"=\"&&(this.operator=\"\"),r[2]?this.semver=new yYe(r[2],this.options.loose):this.semver=UF}toString(){return this.value}test(t){if(Ege(\"Comparator.test\",t,this.options.loose),this.semver===UF||t===UF)return!0;if(typeof t==\"string\")try{t=new yYe(t,this.options)}catch{return!1}return xge(t,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw new TypeError(\"a Comparator is required\");return this.operator===\"\"?this.value===\"\"?!0:new bYe(t.value,n).test(this.value):t.operator===\"\"?t.value===\"\"?!0:new bYe(this.value,n).test(t.semver):(n=hYe(n),n.includePrerelease&&(this.value===\"<0.0.0-0\"||t.value===\"<0.0.0-0\")||!n.includePrerelease&&(this.value.startsWith(\"<0.0.0\")||t.value.startsWith(\"<0.0.0\"))?!1:!!(this.operator.startsWith(\">\")&&t.operator.startsWith(\">\")||this.operator.startsWith(\"<\")&&t.operator.startsWith(\"<\")||this.semver.version===t.semver.version&&this.operator.includes(\"=\")&&t.operator.includes(\"=\")||xge(this.semver,\"<\",t.semver,n)&&this.operator.startsWith(\">\")&&t.operator.startsWith(\"<\")||xge(this.semver,\">\",t.semver,n)&&this.operator.startsWith(\"<\")&&t.operator.startsWith(\">\")))}};vYe.exports=Age;var hYe=e$(),{safeRe:mYe,t:gYe}=CP(),xge=yge(),Ege=DF(),yYe=Nf(),bYe=py()});var FF=me((xcr,wYe)=>{\"use strict\";f();var HOt=py(),zOt=(e,t,n)=>{try{t=new HOt(t,n)}catch{return!1}return t.test(e)};wYe.exports=zOt});var EYe=me((Acr,xYe)=>{\"use strict\";f();var jOt=py(),WOt=(e,t)=>new jOt(e,t).set.map(n=>n.map(r=>r.value).join(\" \").trim().split(\" \"));xYe.exports=WOt});var SYe=me((_cr,AYe)=>{\"use strict\";f();var VOt=Nf(),GOt=py(),qOt=(e,t,n)=>{let r=null,o=null,i=null;try{i=new GOt(t,n)}catch{return null}return e.forEach(a=>{i.test(a)&&(!r||o.compare(a)===-1)&&(r=a,o=new VOt(r,n))}),r};AYe.exports=qOt});var TYe=me((Ccr,_Ye)=>{\"use strict\";f();var KOt=Nf(),YOt=py(),ZOt=(e,t,n)=>{let r=null,o=null,i=null;try{i=new YOt(t,n)}catch{return null}return e.forEach(a=>{i.test(a)&&(!r||o.compare(a)===1)&&(r=a,o=new KOt(r,n))}),r};_Ye.exports=ZOt});var IYe=me((Icr,RYe)=>{\"use strict\";f();var Sge=Nf(),QOt=py(),CYe=BF(),JOt=(e,t)=>{e=new QOt(e,t);let n=new Sge(\"0.0.0\");if(e.test(n)||(n=new Sge(\"0.0.0-0\"),e.test(n)))return n;n=null;for(let r=0;r<e.set.length;++r){let o=e.set[r],i=null;o.forEach(a=>{let c=new Sge(a.semver.version);switch(a.operator){case\">\":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case\"\":case\">=\":(!i||CYe(c,i))&&(i=c);break;case\"<\":case\"<=\":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!n||CYe(n,i))&&(n=i)}return n&&e.test(n)?n:null};RYe.exports=JOt});var OYe=me((Ocr,kYe)=>{\"use strict\";f();var XOt=py(),$Ot=(e,t)=>{try{return new XOt(e,t).range||\"*\"}catch{return null}};kYe.exports=$Ot});var d$=me((Pcr,DYe)=>{\"use strict\";f();var eNt=Nf(),MYe=LF(),{ANY:tNt}=MYe,nNt=py(),rNt=FF(),NYe=BF(),PYe=a$(),oNt=c$(),iNt=s$(),aNt=(e,t,n,r)=>{e=new eNt(e,r),t=new nNt(t,r);let o,i,a,c,l;switch(n){case\">\":o=NYe,i=oNt,a=PYe,c=\">\",l=\">=\";break;case\"<\":o=PYe,i=iNt,a=NYe,c=\"<\",l=\"<=\";break;default:throw new TypeError(\\'Must provide a hilo val of \"<\" or \">\"\\')}if(rNt(e,t,r))return!1;for(let d=0;d<t.set.length;++d){let m=t.set[d],h=null,g=null;if(m.forEach(y=>{y.semver===tNt&&(y=new MYe(\">=0.0.0\")),h=h||y,g=g||y,o(y.semver,h.semver,r)?h=y:a(y.semver,g.semver,r)&&(g=y)}),h.operator===c||h.operator===l||(!g.operator||g.operator===c)&&i(e,g.semver))return!1;if(g.operator===l&&a(e,g.semver))return!1}return!0};DYe.exports=aNt});var LYe=me((Dcr,BYe)=>{\"use strict\";f();var sNt=d$(),cNt=(e,t,n)=>sNt(e,t,\">\",n);BYe.exports=cNt});var FYe=me((Lcr,UYe)=>{\"use strict\";f();var uNt=d$(),lNt=(e,t,n)=>uNt(e,t,\"<\",n);UYe.exports=lNt});var jYe=me((Fcr,zYe)=>{\"use strict\";f();var HYe=py(),dNt=(e,t,n)=>(e=new HYe(e,n),t=new HYe(t,n),e.intersects(t,n));zYe.exports=dNt});var VYe=me((zcr,WYe)=>{\"use strict\";f();var fNt=FF(),pNt=fy();WYe.exports=(e,t,n)=>{let r=[],o=null,i=null,a=e.sort((m,h)=>pNt(m,h,n));for(let m of a)fNt(m,t,n)?(i=m,o||(o=m)):(i&&r.push([o,i]),i=null,o=null);o&&r.push([o,null]);let c=[];for(let[m,h]of r)m===h?c.push(m):!h&&m===a[0]?c.push(\"*\"):h?m===a[0]?c.push(`<=${h}`):c.push(`${m} - ${h}`):c.push(`>=${m}`);let l=c.join(\" || \"),d=typeof t.raw==\"string\"?t.raw:String(t);return l.length<d.length?l:t}});var QYe=me((Wcr,ZYe)=>{\"use strict\";f();var GYe=py(),Tge=LF(),{ANY:_ge}=Tge,HF=FF(),Cge=fy(),hNt=(e,t,n={})=>{if(e===t)return!0;e=new GYe(e,n),t=new GYe(t,n);let r=!1;e:for(let o of e.set){for(let i of t.set){let a=gNt(o,i,n);if(r=r||a!==null,a)continue e}if(r)return!1}return!0},mNt=[new Tge(\">=0.0.0-0\")],qYe=[new Tge(\">=0.0.0\")],gNt=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===_ge){if(t.length===1&&t[0].semver===_ge)return!0;n.includePrerelease?e=mNt:e=qYe}if(t.length===1&&t[0].semver===_ge){if(n.includePrerelease)return!0;t=qYe}let r=new Set,o,i;for(let y of e)y.operator===\">\"||y.operator===\">=\"?o=KYe(o,y,n):y.operator===\"<\"||y.operator===\"<=\"?i=YYe(i,y,n):r.add(y.semver);if(r.size>1)return null;let a;if(o&&i){if(a=Cge(o.semver,i.semver,n),a>0)return null;if(a===0&&(o.operator!==\">=\"||i.operator!==\"<=\"))return null}for(let y of r){if(o&&!HF(y,String(o),n)||i&&!HF(y,String(i),n))return null;for(let w of t)if(!HF(y,String(w),n))return!1;return!0}let c,l,d,m,h=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1,g=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1;h&&h.prerelease.length===1&&i.operator===\"<\"&&h.prerelease[0]===0&&(h=!1);for(let y of t){if(m=m||y.operator===\">\"||y.operator===\">=\",d=d||y.operator===\"<\"||y.operator===\"<=\",o){if(g&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===g.major&&y.semver.minor===g.minor&&y.semver.patch===g.patch&&(g=!1),y.operator===\">\"||y.operator===\">=\"){if(c=KYe(o,y,n),c===y&&c!==o)return!1}else if(o.operator===\">=\"&&!HF(o.semver,String(y),n))return!1}if(i){if(h&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===h.major&&y.semver.minor===h.minor&&y.semver.patch===h.patch&&(h=!1),y.operator===\"<\"||y.operator===\"<=\"){if(l=YYe(i,y,n),l===y&&l!==i)return!1}else if(i.operator===\"<=\"&&!HF(i.semver,String(y),n))return!1}if(!y.operator&&(i||o)&&a!==0)return!1}return!(o&&d&&!i&&a!==0||i&&m&&!o&&a!==0||g||h)},KYe=(e,t,n)=>{if(!e)return t;let r=Cge(e.semver,t.semver,n);return r>0?e:r<0||t.operator===\">\"&&e.operator===\">=\"?t:e},YYe=(e,t,n)=>{if(!e)return t;let r=Cge(e.semver,t.semver,n);return r<0?e:r>0||t.operator===\"<\"&&e.operator===\"<=\"?t:e};ZYe.exports=hNt});var eZe=me((Gcr,$Ye)=>{\"use strict\";f();var Rge=CP(),JYe=MF(),yNt=Nf(),XYe=fge(),bNt=LR(),vNt=SKe(),wNt=TKe(),xNt=IKe(),ENt=NKe(),ANt=MKe(),SNt=BKe(),_Nt=UKe(),TNt=HKe(),CNt=fy(),RNt=VKe(),INt=qKe(),kNt=i$(),ONt=QKe(),NNt=XKe(),PNt=BF(),MNt=a$(),DNt=mge(),BNt=gge(),LNt=s$(),UNt=c$(),FNt=yge(),HNt=sYe(),zNt=LF(),jNt=py(),WNt=FF(),VNt=EYe(),GNt=SYe(),qNt=TYe(),KNt=IYe(),YNt=OYe(),ZNt=d$(),QNt=LYe(),JNt=FYe(),XNt=jYe(),$Nt=VYe(),ePt=QYe();$Ye.exports={parse:bNt,valid:vNt,clean:wNt,inc:xNt,diff:ENt,major:ANt,minor:SNt,patch:_Nt,prerelease:TNt,compare:CNt,rcompare:RNt,compareLoose:INt,compareBuild:kNt,sort:ONt,rsort:NNt,gt:PNt,lt:MNt,eq:DNt,neq:BNt,gte:LNt,lte:UNt,cmp:FNt,coerce:HNt,Comparator:zNt,Range:jNt,satisfies:WNt,toComparators:VNt,maxSatisfying:GNt,minSatisfying:qNt,minVersion:KNt,validRange:YNt,outside:ZNt,gtr:QNt,ltr:JNt,intersects:XNt,simplifyRange:$Nt,subset:ePt,SemVer:yNt,re:Rge.re,src:Rge.src,tokens:Rge.t,SEMVER_SPEC_VERSION:JYe.SEMVER_SPEC_VERSION,RELEASE_TYPES:JYe.RELEASE_TYPES,compareIdentifiers:XYe.compareIdentifiers,rcompareIdentifiers:XYe.rcompareIdentifiers}});var nZe=me(Ms=>{\"use strict\";f();Object.defineProperty(Ms,\"__esModule\",{value:!0});Ms.satisfiesVersionRange=Ms.gtRange=Ms.gtVersion=Ms.assertIsSemVerRange=Ms.assertIsSemVerVersion=Ms.isValidSemVerRange=Ms.isValidSemVerVersion=Ms.VersionRangeStruct=Ms.VersionStruct=void 0;var zF=eZe(),RP=(_T(),hi(ST)),tZe=HE();Ms.VersionStruct=(0,RP.refine)((0,RP.string)(),\"Version\",e=>(0,zF.valid)(e)===null?`Expected SemVer version, got \"${e}\"`:!0);Ms.VersionRangeStruct=(0,RP.refine)((0,RP.string)(),\"Version range\",e=>(0,zF.validRange)(e)===null?`Expected SemVer range, got \"${e}\"`:!0);function tPt(e){return(0,RP.is)(e,Ms.VersionStruct)}Ms.isValidSemVerVersion=tPt;function nPt(e){return(0,RP.is)(e,Ms.VersionRangeStruct)}Ms.isValidSemVerRange=nPt;function rPt(e){(0,tZe.assertStruct)(e,Ms.VersionStruct)}Ms.assertIsSemVerVersion=rPt;function oPt(e){(0,tZe.assertStruct)(e,Ms.VersionRangeStruct)}Ms.assertIsSemVerRange=oPt;function iPt(e,t){return(0,zF.gt)(e,t)}Ms.gtVersion=iPt;function aPt(e,t){return(0,zF.gtr)(e,t)}Ms.gtRange=aPt;function sPt(e,t){return(0,zF.satisfies)(e,t,{includePrerelease:!0})}Ms.satisfiesVersionRange=sPt});var rZe=me(dc=>{\"use strict\";f();var cPt=dc&&dc.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||(\"get\"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),zd=dc&&dc.__exportStar||function(e,t){for(var n in e)n!==\"default\"&&!Object.prototype.hasOwnProperty.call(t,n)&&cPt(t,e,n)};Object.defineProperty(dc,\"__esModule\",{value:!0});zd(HE(),dc);zd(age(),dc);zd(uge(),dc);zd(Hqe(),dc);zd(Wqe(),dc);zd(Gqe(),dc);zd(Kqe(),dc);zd(kF(),dc);zd(Yqe(),dc);zd(Qqe(),dc);zd(nKe(),dc);zd(oKe(),dc);zd(iKe(),dc);zd(sKe(),dc);zd(uKe(),dc);zd(dKe(),dc);zd(nZe(),dc)});var iZe=me(IP=>{\"use strict\";f();Object.defineProperty(IP,\"__esModule\",{value:!0});IP.createModuleLogger=IP.projectLogger=void 0;var oZe=rZe();Object.defineProperty(IP,\"createModuleLogger\",{enumerable:!0,get:function(){return oZe.createModuleLogger}});IP.projectLogger=(0,oZe.createProjectLogger)(\"eth-block-tracker\")});var lZe=me(kP=>{\"use strict\";f();var uZe=kP&&kP.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(kP,\"__esModule\",{value:!0});kP.PollingBlockTracker=void 0;var uPt=uZe(GX()),lPt=uZe(hqe()),dPt=ege(),aZe=iZe(),sZe=(0,aZe.createModuleLogger)(aZe.projectLogger,\"polling-block-tracker\"),fPt=(0,uPt.default)(),pPt=1e3,Ige=class extends dPt.BaseBlockTracker{constructor(t={}){var n;if(!t.provider)throw new Error(\"PollingBlockTracker - no provider specified.\");super(Object.assign(Object.assign({},t),{blockResetDuration:(n=t.blockResetDuration)!==null&&n!==void 0?n:t.pollingInterval})),this._provider=t.provider,this._pollingInterval=t.pollingInterval||20*pPt,this._retryTimeout=t.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=t.keepEventLoopActive===void 0?!0:t.keepEventLoopActive,this._setSkipCacheFlag=t.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var t;this._isRunning;)try{await this._updateLatestBlock();let n=cZe(this._pollingInterval,!this._keepEventLoopActive);this.emit(\"_waitingForNextIteration\"),await n}catch(n){let r=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block:\\n${(t=n.stack)!==null&&t!==void 0?t:n}`);try{this.emit(\"error\",r)}catch{console.error(r)}let o=cZe(this._retryTimeout,!this._keepEventLoopActive);this.emit(\"_waitingForNextIteration\"),await o}}async _updateLatestBlock(){let t=await this._fetchLatestBlock();this._newPotentialLatest(t)}async _fetchLatestBlock(){let t={jsonrpc:\"2.0\",id:fPt(),method:\"eth_blockNumber\",params:[]};this._setSkipCacheFlag&&(t.skipCache=!0),sZe(\"Making request\",t);let n=await(0,lPt.default)(r=>this._provider.sendAsync(t,r))();if(sZe(\"Got response\",n),n.error)throw new Error(`PollingBlockTracker - encountered error fetching block:\\n${n.error.message}`);return n.result}};kP.PollingBlockTracker=Ige;function cZe(e,t){return new Promise(n=>{let r=setTimeout(n,e);r.unref&&t&&r.unref()})}});var dZe=me(OP=>{\"use strict\";f();var hPt=OP&&OP.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(OP,\"__esModule\",{value:!0});OP.SubscribeBlockTracker=void 0;var mPt=hPt(GX()),gPt=ege(),yPt=(0,mPt.default)(),kge=class extends gPt.BaseBlockTracker{constructor(t={}){if(!t.provider)throw new Error(\"SubscribeBlockTracker - no provider specified.\");super(t),this._provider=t.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}async _start(){if(this._subscriptionId===void 0||this._subscriptionId===null)try{let t=await this._call(\"eth_blockNumber\");this._subscriptionId=await this._call(\"eth_subscribe\",\"newHeads\"),this._provider.on(\"data\",this._handleSubData.bind(this)),this._newPotentialLatest(t)}catch(t){this.emit(\"error\",t)}}async _end(){if(this._subscriptionId!==null&&this._subscriptionId!==void 0)try{await this._call(\"eth_unsubscribe\",this._subscriptionId),this._subscriptionId=null}catch(t){this.emit(\"error\",t)}}_call(t,...n){return new Promise((r,o)=>{this._provider.sendAsync({id:yPt(),method:t,params:n,jsonrpc:\"2.0\"},(i,a)=>{i?o(i):r(a.result)})})}_handleSubData(t,n){var r;n.method===\"eth_subscription\"&&((r=n.params)===null||r===void 0?void 0:r.subscription)===this._subscriptionId&&this._newPotentialLatest(n.params.result.number)}};OP.SubscribeBlockTracker=kge});var pZe=me(RT=>{\"use strict\";f();var bPt=RT&&RT.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),fZe=RT&&RT.__exportStar||function(e,t){for(var n in e)n!==\"default\"&&!Object.prototype.hasOwnProperty.call(t,n)&&bPt(t,e,n)};Object.defineProperty(RT,\"__esModule\",{value:!0});fZe(lZe(),RT);fZe(dZe(),RT)});var Nge=me(f$=>{\"use strict\";f();Object.defineProperty(f$,\"__esModule\",{value:!0});f$.getUniqueId=void 0;var hZe=4294967295,Oge=Math.floor(Math.random()*hZe);function vPt(){return Oge=(Oge+1)%hZe,Oge}f$.getUniqueId=vPt});var mZe=me(p$=>{\"use strict\";f();Object.defineProperty(p$,\"__esModule\",{value:!0});p$.createIdRemapMiddleware=void 0;var wPt=Nge();function xPt(){return(e,t,n,r)=>{let o=e.id,i=wPt.getUniqueId();e.id=i,t.id=i,n(a=>{e.id=o,t.id=o,a()})}}p$.createIdRemapMiddleware=xPt});var gZe=me(h$=>{\"use strict\";f();Object.defineProperty(h$,\"__esModule\",{value:!0});h$.createAsyncMiddleware=void 0;function EPt(e){return async(t,n,r,o)=>{let i,a=new Promise(m=>{i=m}),c=null,l=!1,d=async()=>{l=!0,r(m=>{c=m,i()}),await a};try{await e(t,n,d),l?(await a,c(null)):o(null)}catch(m){c?c(m):o(m)}}}h$.createAsyncMiddleware=EPt});var yZe=me(m$=>{\"use strict\";f();Object.defineProperty(m$,\"__esModule\",{value:!0});m$.createScaffoldMiddleware=void 0;function APt(e){return(t,n,r,o)=>{let i=e[t.method];return i===void 0?r():typeof i==\"function\"?i(t,n,r,o):(n.result=i,o())}}m$.createScaffoldMiddleware=APt});var vZe=me(Mge=>{\"use strict\";f();Object.defineProperty(Mge,\"__esModule\",{value:!0});var SPt=bF();function bZe(e,t,n){try{Reflect.apply(e,t,n)}catch(r){setTimeout(()=>{throw r})}}function _Pt(e){let t=e.length,n=new Array(t);for(let r=0;r<t;r+=1)n[r]=e[r];return n}var Pge=class extends SPt.EventEmitter{emit(t,...n){let r=t===\"error\",o=this._events;if(o!==void 0)r=r&&o.error===void 0;else if(!r)return!1;if(r){let a;if(n.length>0&&([a]=n),a instanceof Error)throw a;let c=new Error(`Unhandled error.${a?` (${a.message})`:\"\"}`);throw c.context=a,c}let i=o[t];if(i===void 0)return!1;if(typeof i==\"function\")bZe(i,this,n);else{let a=i.length,c=_Pt(i);for(let l=0;l<a;l+=1)bZe(c[l],this,n)}return!0}};Mge.default=Pge});var _Ze=me((mur,SZe)=>{f();SZe.exports=jF;jF.default=jF;jF.stable=EZe;jF.stableStringify=EZe;var g$=\"[...]\",wZe=\"[Circular]\",FR=[],UR=[];function xZe(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function jF(e,t,n,r){typeof r>\"u\"&&(r=xZe()),Dge(e,\"\",0,[],void 0,0,r);var o;try{UR.length===0?o=JSON.stringify(e,t,n):o=JSON.stringify(e,AZe(t),n)}catch{return JSON.stringify(\"[unable to serialize, circular reference is too complex to analyze]\")}finally{for(;FR.length!==0;){var i=FR.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return o}function NP(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);o.get!==void 0?o.configurable?(Object.defineProperty(r,n,{value:e}),FR.push([r,n,t,o])):UR.push([t,n,e]):(r[n]=e,FR.push([r,n,t]))}function Dge(e,t,n,r,o,i,a){i+=1;var c;if(typeof e==\"object\"&&e!==null){for(c=0;c<r.length;c++)if(r[c]===e){NP(wZe,e,t,o);return}if(typeof a.depthLimit<\"u\"&&i>a.depthLimit){NP(g$,e,t,o);return}if(typeof a.edgesLimit<\"u\"&&n+1>a.edgesLimit){NP(g$,e,t,o);return}if(r.push(e),Array.isArray(e))for(c=0;c<e.length;c++)Dge(e[c],c,c,r,e,i,a);else{var l=Object.keys(e);for(c=0;c<l.length;c++){var d=l[c];Dge(e[d],d,c,r,e,i,a)}}r.pop()}}function TPt(e,t){return e<t?-1:e>t?1:0}function EZe(e,t,n,r){typeof r>\"u\"&&(r=xZe());var o=Bge(e,\"\",0,[],void 0,0,r)||e,i;try{UR.length===0?i=JSON.stringify(o,t,n):i=JSON.stringify(o,AZe(t),n)}catch{return JSON.stringify(\"[unable to serialize, circular reference is too complex to analyze]\")}finally{for(;FR.length!==0;){var a=FR.pop();a.length===4?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return i}function Bge(e,t,n,r,o,i,a){i+=1;var c;if(typeof e==\"object\"&&e!==null){for(c=0;c<r.length;c++)if(r[c]===e){NP(wZe,e,t,o);return}try{if(typeof e.toJSON==\"function\")return}catch{return}if(typeof a.depthLimit<\"u\"&&i>a.depthLimit){NP(g$,e,t,o);return}if(typeof a.edgesLimit<\"u\"&&n+1>a.edgesLimit){NP(g$,e,t,o);return}if(r.push(e),Array.isArray(e))for(c=0;c<e.length;c++)Bge(e[c],c,c,r,e,i,a);else{var l={},d=Object.keys(e).sort(TPt);for(c=0;c<d.length;c++){var m=d[c];Bge(e[m],m,c,r,e,i,a),l[m]=e[m]}if(typeof o<\"u\")FR.push([o,t,e]),o[t]=l;else return l}r.pop()}}function AZe(e){return e=typeof e<\"u\"?e:function(t,n){return n},function(t,n){if(UR.length>0)for(var r=0;r<UR.length;r++){var o=UR[r];if(o[1]===t&&o[0]===n){n=o[2],UR.splice(r,1);break}}return e.call(this,t,n)}}});var b$=me(PP=>{\"use strict\";f();Object.defineProperty(PP,\"__esModule\",{value:!0});PP.EthereumProviderError=PP.EthereumRpcError=void 0;var CPt=_Ze(),y$=class extends Error{constructor(t,n,r){if(!Number.isInteger(t))throw new Error(\\'\"code\" must be an integer.\\');if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string.\\');super(n),this.code=t,r!==void 0&&(this.data=r)}serialize(){let t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return CPt.default(this.serialize(),IPt,2)}};PP.EthereumRpcError=y$;var Lge=class extends y${constructor(t,n,r){if(!RPt(t))throw new Error(\\'\"code\" must be an integer such that: 1000 <= code <= 4999\\');super(t,n,r)}};PP.EthereumProviderError=Lge;function RPt(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function IPt(e,t){if(t!==\"[Circular]\")return t}});var v$=me(MP=>{\"use strict\";f();Object.defineProperty(MP,\"__esModule\",{value:!0});MP.errorValues=MP.errorCodes=void 0;MP.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};MP.errorValues={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"}}});var Hge=me(h1=>{\"use strict\";f();Object.defineProperty(h1,\"__esModule\",{value:!0});h1.serializeError=h1.isValidCode=h1.getMessageFromCode=h1.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var w$=v$(),kPt=b$(),TZe=w$.errorCodes.rpc.internal,OPt=\"Unspecified error message. This is a bug, please report it.\",NPt={code:TZe,message:Fge(TZe)};h1.JSON_RPC_SERVER_ERROR_MESSAGE=\"Unspecified server error.\";function Fge(e,t=OPt){if(Number.isInteger(e)){let n=e.toString();if(Uge(w$.errorValues,n))return w$.errorValues[n].message;if(IZe(e))return h1.JSON_RPC_SERVER_ERROR_MESSAGE}return t}h1.getMessageFromCode=Fge;function RZe(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(w$.errorValues[t]||IZe(e))}h1.isValidCode=RZe;function PPt(e,{fallbackError:t=NPt,shouldIncludeStack:n=!1}={}){var r,o;if(!t||!Number.isInteger(t.code)||typeof t.message!=\"string\")throw new Error(\"Must provide fallback error with integer number code and string message.\");if(e instanceof kPt.EthereumRpcError)return e.serialize();let i={};if(e&&typeof e==\"object\"&&!Array.isArray(e)&&Uge(e,\"code\")&&RZe(e.code)){let c=e;i.code=c.code,c.message&&typeof c.message==\"string\"?(i.message=c.message,Uge(c,\"data\")&&(i.data=c.data)):(i.message=Fge(i.code),i.data={originalError:CZe(e)})}else{i.code=t.code;let c=(r=e)===null||r===void 0?void 0:r.message;i.message=c&&typeof c==\"string\"?c:t.message,i.data={originalError:CZe(e)}}let a=(o=e)===null||o===void 0?void 0:o.stack;return n&&e&&a&&typeof a==\"string\"&&(i.stack=a),i}h1.serializeError=PPt;function IZe(e){return e>=-32099&&e<=-32e3}function CZe(e){return e&&typeof e==\"object\"&&!Array.isArray(e)?Object.assign({},e):e}function Uge(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var NZe=me(x$=>{\"use strict\";f();Object.defineProperty(x$,\"__esModule\",{value:!0});x$.ethErrors=void 0;var zge=b$(),kZe=Hge(),Mf=v$();x$.ethErrors={rpc:{parse:e=>hy(Mf.errorCodes.rpc.parse,e),invalidRequest:e=>hy(Mf.errorCodes.rpc.invalidRequest,e),invalidParams:e=>hy(Mf.errorCodes.rpc.invalidParams,e),methodNotFound:e=>hy(Mf.errorCodes.rpc.methodNotFound,e),internal:e=>hy(Mf.errorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum RPC Server errors must provide single object argument.\");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error(\\'\"code\" must be an integer such that: -32099 <= code <= -32005\\');return hy(t,e)},invalidInput:e=>hy(Mf.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>hy(Mf.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>hy(Mf.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>hy(Mf.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>hy(Mf.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>hy(Mf.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>WF(Mf.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>WF(Mf.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>WF(Mf.errorCodes.provider.unsupportedMethod,e),disconnected:e=>WF(Mf.errorCodes.provider.disconnected,e),chainDisconnected:e=>WF(Mf.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum Provider custom errors must provide single object argument.\");let{code:t,message:n,data:r}=e;if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string\\');return new zge.EthereumProviderError(t,n,r)}}};function hy(e,t){let[n,r]=OZe(t);return new zge.EthereumRpcError(e,n||kZe.getMessageFromCode(e),r)}function WF(e,t){let[n,r]=OZe(t);return new zge.EthereumProviderError(e,n||kZe.getMessageFromCode(e),r)}function OZe(e){if(e){if(typeof e==\"string\")return[e];if(typeof e==\"object\"&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&typeof t!=\"string\")throw new Error(\"Must specify string message.\");return[t||void 0,n]}}return[]}});var DZe=me(um=>{\"use strict\";f();Object.defineProperty(um,\"__esModule\",{value:!0});um.getMessageFromCode=um.serializeError=um.EthereumProviderError=um.EthereumRpcError=um.ethErrors=um.errorCodes=void 0;var PZe=b$();Object.defineProperty(um,\"EthereumRpcError\",{enumerable:!0,get:function(){return PZe.EthereumRpcError}});Object.defineProperty(um,\"EthereumProviderError\",{enumerable:!0,get:function(){return PZe.EthereumProviderError}});var MZe=Hge();Object.defineProperty(um,\"serializeError\",{enumerable:!0,get:function(){return MZe.serializeError}});Object.defineProperty(um,\"getMessageFromCode\",{enumerable:!0,get:function(){return MZe.getMessageFromCode}});var MPt=NZe();Object.defineProperty(um,\"ethErrors\",{enumerable:!0,get:function(){return MPt.ethErrors}});var DPt=v$();Object.defineProperty(um,\"errorCodes\",{enumerable:!0,get:function(){return DPt.errorCodes}})});var Vge=me(DP=>{\"use strict\";f();var BPt=DP&&DP.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(DP,\"__esModule\",{value:!0});DP.JsonRpcEngine=void 0;var LPt=BPt(vZe()),my=DZe(),Wge=class e extends LPt.default{constructor(){super(),this._middleware=[]}push(t){this._middleware.push(t)}handle(t,n){if(n&&typeof n!=\"function\")throw new Error(\\'\"callback\" must be a function if provided.\\');return Array.isArray(t)?n?this._handleBatch(t,n):this._handleBatch(t):n?this._handle(t,n):this._promiseHandle(t)}asMiddleware(){return async(t,n,r,o)=>{try{let[i,a,c]=await e._runAllMiddleware(t,n,this._middleware);return a?(await e._runReturnHandlers(c),o(i)):r(async l=>{try{await e._runReturnHandlers(c)}catch(d){return l(d)}return l()})}catch(i){return o(i)}}}async _handleBatch(t,n){try{let r=await Promise.all(t.map(this._promiseHandle.bind(this)));return n?n(null,r):r}catch(r){if(n)return n(r);throw r}}_promiseHandle(t){return new Promise(n=>{this._handle(t,(r,o)=>{n(o)})})}async _handle(t,n){if(!t||Array.isArray(t)||typeof t!=\"object\"){let a=new my.EthereumRpcError(my.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof t}`,{request:t});return n(a,{id:void 0,jsonrpc:\"2.0\",error:a})}if(typeof t.method!=\"string\"){let a=new my.EthereumRpcError(my.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof t.method}`,{request:t});return n(a,{id:t.id,jsonrpc:\"2.0\",error:a})}let r=Object.assign({},t),o={id:r.id,jsonrpc:r.jsonrpc},i=null;try{await this._processRequest(r,o)}catch(a){i=a}return i&&(delete o.result,o.error||(o.error=my.serializeError(i))),n(i,o)}async _processRequest(t,n){let[r,o,i]=await e._runAllMiddleware(t,n,this._middleware);if(e._checkForCompletion(t,n,o),await e._runReturnHandlers(i),r)throw r}static async _runAllMiddleware(t,n,r){let o=[],i=null,a=!1;for(let c of r)if([i,a]=await e._runMiddleware(t,n,c,o),a)break;return[i,a,o.reverse()]}static _runMiddleware(t,n,r,o){return new Promise(i=>{let a=l=>{let d=l||n.error;d&&(n.error=my.serializeError(d)),i([d,!0])},c=l=>{n.error?a(n.error):(l&&(typeof l!=\"function\"&&a(new my.EthereumRpcError(my.errorCodes.rpc.internal,`JsonRpcEngine: \"next\" return handlers must be functions. Received \"${typeof l}\" for request:\\n${jge(t)}`,{request:t})),o.push(l)),i([null,!1]))};try{r(t,n,c,a)}catch(l){a(l)}})}static async _runReturnHandlers(t){for(let n of t)await new Promise((r,o)=>{n(i=>i?o(i):r())})}static _checkForCompletion(t,n,r){if(!(\"result\"in n)&&!(\"error\"in n))throw new my.EthereumRpcError(my.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request:\\n${jge(t)}`,{request:t});if(!r)throw new my.EthereumRpcError(my.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request:\\n${jge(t)}`,{request:t})}};DP.JsonRpcEngine=Wge;function jge(e){return JSON.stringify(e,null,2)}});var BZe=me(E$=>{\"use strict\";f();Object.defineProperty(E$,\"__esModule\",{value:!0});E$.mergeMiddleware=void 0;var UPt=Vge();function FPt(e){let t=new UPt.JsonRpcEngine;return e.forEach(n=>t.push(n)),t.asMiddleware()}E$.mergeMiddleware=FPt});var Gge=me(gy=>{\"use strict\";f();var HPt=gy&&gy.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),BP=gy&&gy.__exportStar||function(e,t){for(var n in e)n!==\"default\"&&!Object.prototype.hasOwnProperty.call(t,n)&&HPt(t,e,n)};Object.defineProperty(gy,\"__esModule\",{value:!0});BP(mZe(),gy);BP(gZe(),gy);BP(yZe(),gy);BP(Nge(),gy);BP(Vge(),gy);BP(BZe(),gy)});var T$=me((Pur,_$)=>{f();var LZe,UZe,FZe,HZe,zZe,jZe,WZe,VZe,GZe,qZe,KZe,YZe,ZZe,A$,qge,QZe,JZe,XZe,LP,$Ze,eQe,tQe,nQe,rQe,oQe,iQe,aQe,sQe,S$,cQe,uQe,lQe;(function(e){var t=typeof globalThis==\"object\"?globalThis:typeof self==\"object\"?self:typeof this==\"object\"?this:{};typeof define==\"function\"&&define.amd?define(\"tslib\",[\"exports\"],function(r){e(n(t,n(r)))}):typeof _$==\"object\"&&typeof _$.exports==\"object\"?e(n(t,n(_$.exports))):e(n(t));function n(r,o){return r!==t&&(typeof Object.create==\"function\"?Object.defineProperty(r,\"__esModule\",{value:!0}):r.__esModule=!0),function(i,a){return r[i]=o?o(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(i[c]=a[c])};LZe=function(i,a){if(typeof a!=\"function\"&&a!==null)throw new TypeError(\"Class extends value \"+String(a)+\" is not a constructor or null\");t(i,a);function c(){this.constructor=i}i.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)},UZe=Object.assign||function(i){for(var a,c=1,l=arguments.length;c<l;c++){a=arguments[c];for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(i[d]=a[d])}return i},FZe=function(i,a){var c={};for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&a.indexOf(l)<0&&(c[l]=i[l]);if(i!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var d=0,l=Object.getOwnPropertySymbols(i);d<l.length;d++)a.indexOf(l[d])<0&&Object.prototype.propertyIsEnumerable.call(i,l[d])&&(c[l[d]]=i[l[d]]);return c},HZe=function(i,a,c,l){var d=arguments.length,m=d<3?a:l===null?l=Object.getOwnPropertyDescriptor(a,c):l,h;if(typeof Reflect==\"object\"&&typeof Reflect.decorate==\"function\")m=Reflect.decorate(i,a,c,l);else for(var g=i.length-1;g>=0;g--)(h=i[g])&&(m=(d<3?h(m):d>3?h(a,c,m):h(a,c))||m);return d>3&&m&&Object.defineProperty(a,c,m),m},zZe=function(i,a){return function(c,l){a(c,l,i)}},jZe=function(i,a,c,l,d,m){function h(J){if(J!==void 0&&typeof J!=\"function\")throw new TypeError(\"Function expected\");return J}for(var g=l.kind,y=g===\"getter\"?\"get\":g===\"setter\"?\"set\":\"value\",w=!a&&i?l.static?i:i.prototype:null,x=a||(w?Object.getOwnPropertyDescriptor(w,l.name):{}),I,C=!1,M=c.length-1;M>=0;M--){var B={};for(var z in l)B[z]=z===\"access\"?{}:l[z];for(var z in l.access)B.access[z]=l.access[z];B.addInitializer=function(J){if(C)throw new TypeError(\"Cannot add initializers after decoration has completed\");m.push(h(J||null))};var G=(0,c[M])(g===\"accessor\"?{get:x.get,set:x.set}:x[y],B);if(g===\"accessor\"){if(G===void 0)continue;if(G===null||typeof G!=\"object\")throw new TypeError(\"Object expected\");(I=h(G.get))&&(x.get=I),(I=h(G.set))&&(x.set=I),(I=h(G.init))&&d.unshift(I)}else(I=h(G))&&(g===\"field\"?d.unshift(I):x[y]=I)}w&&Object.defineProperty(w,l.name,x),C=!0},WZe=function(i,a,c){for(var l=arguments.length>2,d=0;d<a.length;d++)c=l?a[d].call(i,c):a[d].call(i);return l?c:void 0},VZe=function(i){return typeof i==\"symbol\"?i:\"\".concat(i)},GZe=function(i,a,c){return typeof a==\"symbol\"&&(a=a.description?\"[\".concat(a.description,\"]\"):\"\"),Object.defineProperty(i,\"name\",{configurable:!0,value:c?\"\".concat(c,\" \",a):a})},qZe=function(i,a){if(typeof Reflect==\"object\"&&typeof Reflect.metadata==\"function\")return Reflect.metadata(i,a)},KZe=function(i,a,c,l){function d(m){return m instanceof c?m:new c(function(h){h(m)})}return new(c||(c=Promise))(function(m,h){function g(x){try{w(l.next(x))}catch(I){h(I)}}function y(x){try{w(l.throw(x))}catch(I){h(I)}}function w(x){x.done?m(x.value):d(x.value).then(g,y)}w((l=l.apply(i,a||[])).next())})},YZe=function(i,a){var c={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},l,d,m,h=Object.create((typeof Iterator==\"function\"?Iterator:Object).prototype);return h.next=g(0),h.throw=g(1),h.return=g(2),typeof Symbol==\"function\"&&(h[Symbol.iterator]=function(){return this}),h;function g(w){return function(x){return y([w,x])}}function y(w){if(l)throw new TypeError(\"Generator is already executing.\");for(;h&&(h=0,w[0]&&(c=0)),c;)try{if(l=1,d&&(m=w[0]&2?d.return:w[0]?d.throw||((m=d.return)&&m.call(d),0):d.next)&&!(m=m.call(d,w[1])).done)return m;switch(d=0,m&&(w=[w[0]&2,m.value]),w[0]){case 0:case 1:m=w;break;case 4:return c.label++,{value:w[1],done:!1};case 5:c.label++,d=w[1],w=[0];continue;case 7:w=c.ops.pop(),c.trys.pop();continue;default:if(m=c.trys,!(m=m.length>0&&m[m.length-1])&&(w[0]===6||w[0]===2)){c=0;continue}if(w[0]===3&&(!m||w[1]>m[0]&&w[1]<m[3])){c.label=w[1];break}if(w[0]===6&&c.label<m[1]){c.label=m[1],m=w;break}if(m&&c.label<m[2]){c.label=m[2],c.ops.push(w);break}m[2]&&c.ops.pop(),c.trys.pop();continue}w=a.call(i,c)}catch(x){w=[6,x],d=0}finally{l=m=0}if(w[0]&5)throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}},ZZe=function(i,a){for(var c in i)c!==\"default\"&&!Object.prototype.hasOwnProperty.call(a,c)&&S$(a,i,c)},S$=Object.create?(function(i,a,c,l){l===void 0&&(l=c);var d=Object.getOwnPropertyDescriptor(a,c);(!d||(\"get\"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(i,l,d)}):(function(i,a,c,l){l===void 0&&(l=c),i[l]=a[c]}),A$=function(i){var a=typeof Symbol==\"function\"&&Symbol.iterator,c=a&&i[a],l=0;if(c)return c.call(i);if(i&&typeof i.length==\"number\")return{next:function(){return i&&l>=i.length&&(i=void 0),{value:i&&i[l++],done:!i}}};throw new TypeError(a?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")},qge=function(i,a){var c=typeof Symbol==\"function\"&&i[Symbol.iterator];if(!c)return i;var l=c.call(i),d,m=[],h;try{for(;(a===void 0||a-- >0)&&!(d=l.next()).done;)m.push(d.value)}catch(g){h={error:g}}finally{try{d&&!d.done&&(c=l.return)&&c.call(l)}finally{if(h)throw h.error}}return m},QZe=function(){for(var i=[],a=0;a<arguments.length;a++)i=i.concat(qge(arguments[a]));return i},JZe=function(){for(var i=0,a=0,c=arguments.length;a<c;a++)i+=arguments[a].length;for(var l=Array(i),d=0,a=0;a<c;a++)for(var m=arguments[a],h=0,g=m.length;h<g;h++,d++)l[d]=m[h];return l},XZe=function(i,a,c){if(c||arguments.length===2)for(var l=0,d=a.length,m;l<d;l++)(m||!(l in a))&&(m||(m=Array.prototype.slice.call(a,0,l)),m[l]=a[l]);return i.concat(m||Array.prototype.slice.call(a))},LP=function(i){return this instanceof LP?(this.v=i,this):new LP(i)},$Ze=function(i,a,c){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var l=c.apply(i,a||[]),d,m=[];return d=Object.create((typeof AsyncIterator==\"function\"?AsyncIterator:Object).prototype),g(\"next\"),g(\"throw\"),g(\"return\",h),d[Symbol.asyncIterator]=function(){return this},d;function h(M){return function(B){return Promise.resolve(B).then(M,I)}}function g(M,B){l[M]&&(d[M]=function(z){return new Promise(function(G,J){m.push([M,z,G,J])>1||y(M,z)})},B&&(d[M]=B(d[M])))}function y(M,B){try{w(l[M](B))}catch(z){C(m[0][3],z)}}function w(M){M.value instanceof LP?Promise.resolve(M.value.v).then(x,I):C(m[0][2],M)}function x(M){y(\"next\",M)}function I(M){y(\"throw\",M)}function C(M,B){M(B),m.shift(),m.length&&y(m[0][0],m[0][1])}},eQe=function(i){var a,c;return a={},l(\"next\"),l(\"throw\",function(d){throw d}),l(\"return\"),a[Symbol.iterator]=function(){return this},a;function l(d,m){a[d]=i[d]?function(h){return(c=!c)?{value:LP(i[d](h)),done:!1}:m?m(h):h}:m}},tQe=function(i){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var a=i[Symbol.asyncIterator],c;return a?a.call(i):(i=typeof A$==\"function\"?A$(i):i[Symbol.iterator](),c={},l(\"next\"),l(\"throw\"),l(\"return\"),c[Symbol.asyncIterator]=function(){return this},c);function l(m){c[m]=i[m]&&function(h){return new Promise(function(g,y){h=i[m](h),d(g,y,h.done,h.value)})}}function d(m,h,g,y){Promise.resolve(y).then(function(w){m({value:w,done:g})},h)}},nQe=function(i,a){return Object.defineProperty?Object.defineProperty(i,\"raw\",{value:a}):i.raw=a,i};var n=Object.create?(function(i,a){Object.defineProperty(i,\"default\",{enumerable:!0,value:a})}):function(i,a){i.default=a},r=function(i){return r=Object.getOwnPropertyNames||function(a){var c=[];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(c[c.length]=l);return c},r(i)};rQe=function(i){if(i&&i.__esModule)return i;var a={};if(i!=null)for(var c=r(i),l=0;l<c.length;l++)c[l]!==\"default\"&&S$(a,i,c[l]);return n(a,i),a},oQe=function(i){return i&&i.__esModule?i:{default:i}},iQe=function(i,a,c,l){if(c===\"a\"&&!l)throw new TypeError(\"Private accessor was defined without a getter\");if(typeof a==\"function\"?i!==a||!l:!a.has(i))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return c===\"m\"?l:c===\"a\"?l.call(i):l?l.value:a.get(i)},aQe=function(i,a,c,l,d){if(l===\"m\")throw new TypeError(\"Private method is not writable\");if(l===\"a\"&&!d)throw new TypeError(\"Private accessor was defined without a setter\");if(typeof a==\"function\"?i!==a||!d:!a.has(i))throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");return l===\"a\"?d.call(i,c):d?d.value=c:a.set(i,c),c},sQe=function(i,a){if(a===null||typeof a!=\"object\"&&typeof a!=\"function\")throw new TypeError(\"Cannot use \\'in\\' operator on non-object\");return typeof i==\"function\"?a===i:i.has(a)},cQe=function(i,a,c){if(a!=null){if(typeof a!=\"object\"&&typeof a!=\"function\")throw new TypeError(\"Object expected.\");var l,d;if(c){if(!Symbol.asyncDispose)throw new TypeError(\"Symbol.asyncDispose is not defined.\");l=a[Symbol.asyncDispose]}if(l===void 0){if(!Symbol.dispose)throw new TypeError(\"Symbol.dispose is not defined.\");l=a[Symbol.dispose],c&&(d=l)}if(typeof l!=\"function\")throw new TypeError(\"Object not disposable.\");d&&(l=function(){try{d.call(this)}catch(m){return Promise.reject(m)}}),i.stack.push({value:a,dispose:l,async:c})}else c&&i.stack.push({async:!0});return a};var o=typeof SuppressedError==\"function\"?SuppressedError:function(i,a,c){var l=new Error(c);return l.name=\"SuppressedError\",l.error=i,l.suppressed=a,l};uQe=function(i){function a(m){i.error=i.hasError?new o(m,i.error,\"An error was suppressed during disposal.\"):m,i.hasError=!0}var c,l=0;function d(){for(;c=i.stack.pop();)try{if(!c.async&&l===1)return l=0,i.stack.push(c),Promise.resolve().then(d);if(c.dispose){var m=c.dispose.call(c.value);if(c.async)return l|=2,Promise.resolve(m).then(d,function(h){return a(h),d()})}else l|=1}catch(h){a(h)}if(l===1)return i.hasError?Promise.reject(i.error):Promise.resolve();if(i.hasError)throw i.error}return d()},lQe=function(i,a){return typeof i==\"string\"&&/^\\\\.\\\\.?\\\\//.test(i)?i.replace(/\\\\.(tsx)$|((?:\\\\.d)?)((?:\\\\.[^./]+?)?)\\\\.([cm]?)ts$/i,function(c,l,d,m,h){return l?a?\".jsx\":\".js\":d&&(!m||!h)?c:d+m+\".\"+h.toLowerCase()+\"js\"}):i},e(\"__extends\",LZe),e(\"__assign\",UZe),e(\"__rest\",FZe),e(\"__decorate\",HZe),e(\"__param\",zZe),e(\"__esDecorate\",jZe),e(\"__runInitializers\",WZe),e(\"__propKey\",VZe),e(\"__setFunctionName\",GZe),e(\"__metadata\",qZe),e(\"__awaiter\",KZe),e(\"__generator\",YZe),e(\"__exportStar\",ZZe),e(\"__createBinding\",S$),e(\"__values\",A$),e(\"__read\",qge),e(\"__spread\",QZe),e(\"__spreadArrays\",JZe),e(\"__spreadArray\",XZe),e(\"__await\",LP),e(\"__asyncGenerator\",$Ze),e(\"__asyncDelegator\",eQe),e(\"__asyncValues\",tQe),e(\"__makeTemplateObject\",nQe),e(\"__importStar\",rQe),e(\"__importDefault\",oQe),e(\"__classPrivateFieldGet\",iQe),e(\"__classPrivateFieldSet\",aQe),e(\"__classPrivateFieldIn\",sQe),e(\"__addDisposableResource\",cQe),e(\"__disposeResources\",uQe),e(\"__rewriteRelativeImportExtension\",lQe)})});var Yge=me(Kge=>{\"use strict\";f();Object.defineProperty(Kge,\"__esModule\",{value:!0});var dQe=T$(),zPt=(function(){function e(t){if(this._maxConcurrency=t,this._queue=[],t<=0)throw new Error(\"semaphore must be initialized to a positive value\");this._value=t}return e.prototype.acquire=function(){var t=this,n=this.isLocked(),r=new Promise(function(o){return t._queue.push(o)});return n||this._dispatch(),r},e.prototype.runExclusive=function(t){return dQe.__awaiter(this,void 0,void 0,function(){var n,r,o;return dQe.__generator(this,function(i){switch(i.label){case 0:return[4,this.acquire()];case 1:n=i.sent(),r=n[0],o=n[1],i.label=2;case 2:return i.trys.push([2,,4,5]),[4,t(r)];case 3:return[2,i.sent()];case 4:return o(),[7];case 5:return[2]}})})},e.prototype.isLocked=function(){return this._value<=0},e.prototype.release=function(){if(this._maxConcurrency>1)throw new Error(\"this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead\");if(this._currentReleaser){var t=this._currentReleaser;this._currentReleaser=void 0,t()}},e.prototype._dispatch=function(){var t=this,n=this._queue.shift();if(n){var r=!1;this._currentReleaser=function(){r||(r=!0,t._value++,t._dispatch())},n([this._value--,this._currentReleaser])}},e})();Kge.default=zPt});var pQe=me(Zge=>{\"use strict\";f();Object.defineProperty(Zge,\"__esModule\",{value:!0});var fQe=T$(),jPt=Yge(),WPt=(function(){function e(){this._semaphore=new jPt.default(1)}return e.prototype.acquire=function(){return fQe.__awaiter(this,void 0,void 0,function(){var t,n;return fQe.__generator(this,function(r){switch(r.label){case 0:return[4,this._semaphore.acquire()];case 1:return t=r.sent(),n=t[1],[2,n]}})})},e.prototype.runExclusive=function(t){return this._semaphore.runExclusive(function(){return t()})},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.release=function(){this._semaphore.release()},e})();Zge.default=WPt});var hQe=me(R$=>{\"use strict\";f();Object.defineProperty(R$,\"__esModule\",{value:!0});R$.withTimeout=void 0;var C$=T$();function VPt(e,t,n){var r=this;return n===void 0&&(n=new Error(\"timeout\")),{acquire:function(){return new Promise(function(o,i){return C$.__awaiter(r,void 0,void 0,function(){var a,c,l;return C$.__generator(this,function(d){switch(d.label){case 0:return a=!1,setTimeout(function(){a=!0,i(n)},t),[4,e.acquire()];case 1:return c=d.sent(),a?(l=Array.isArray(c)?c[1]:c,l()):o(c),[2]}})})})},runExclusive:function(o){return C$.__awaiter(this,void 0,void 0,function(){var i,a;return C$.__generator(this,function(c){switch(c.label){case 0:i=function(){},c.label=1;case 1:return c.trys.push([1,,7,8]),[4,this.acquire()];case 2:return a=c.sent(),Array.isArray(a)?(i=a[1],[4,o(a[0])]):[3,4];case 3:return[2,c.sent()];case 4:return i=a,[4,o()];case 5:return[2,c.sent()];case 6:return[3,8];case 7:return i(),[7];case 8:return[2]}})})},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}R$.withTimeout=VPt});var mQe=me(IT=>{\"use strict\";f();Object.defineProperty(IT,\"__esModule\",{value:!0});IT.withTimeout=IT.Semaphore=IT.Mutex=void 0;var GPt=pQe();Object.defineProperty(IT,\"Mutex\",{enumerable:!0,get:function(){return GPt.default}});var qPt=Yge();Object.defineProperty(IT,\"Semaphore\",{enumerable:!0,get:function(){return qPt.default}});var KPt=hQe();Object.defineProperty(IT,\"withTimeout\",{enumerable:!0,get:function(){return KPt.withTimeout}})});var yQe=me((Wur,gQe)=>{f();gQe.exports=ZPt;var YPt=Object.prototype.hasOwnProperty;function ZPt(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)YPt.call(n,r)&&(e[r]=n[r])}return e}});var vQe=me((Gur,bQe)=>{f();var QPt=yQe(),JPt=GX()();bQe.exports=ur;function ur(e){let t=this;t.currentProvider=e}ur.prototype.getBalance=VF(2,\"eth_getBalance\");ur.prototype.getCode=VF(2,\"eth_getCode\");ur.prototype.getTransactionCount=VF(2,\"eth_getTransactionCount\");ur.prototype.getStorageAt=VF(3,\"eth_getStorageAt\");ur.prototype.call=VF(2,\"eth_call\");ur.prototype.protocolVersion=uo(\"eth_protocolVersion\");ur.prototype.syncing=uo(\"eth_syncing\");ur.prototype.coinbase=uo(\"eth_coinbase\");ur.prototype.mining=uo(\"eth_mining\");ur.prototype.hashrate=uo(\"eth_hashrate\");ur.prototype.gasPrice=uo(\"eth_gasPrice\");ur.prototype.accounts=uo(\"eth_accounts\");ur.prototype.blockNumber=uo(\"eth_blockNumber\");ur.prototype.getBlockTransactionCountByHash=uo(\"eth_getBlockTransactionCountByHash\");ur.prototype.getBlockTransactionCountByNumber=uo(\"eth_getBlockTransactionCountByNumber\");ur.prototype.getUncleCountByBlockHash=uo(\"eth_getUncleCountByBlockHash\");ur.prototype.getUncleCountByBlockNumber=uo(\"eth_getUncleCountByBlockNumber\");ur.prototype.sign=uo(\"eth_sign\");ur.prototype.sendTransaction=uo(\"eth_sendTransaction\");ur.prototype.sendRawTransaction=uo(\"eth_sendRawTransaction\");ur.prototype.estimateGas=uo(\"eth_estimateGas\");ur.prototype.getBlockByHash=uo(\"eth_getBlockByHash\");ur.prototype.getBlockByNumber=uo(\"eth_getBlockByNumber\");ur.prototype.getTransactionByHash=uo(\"eth_getTransactionByHash\");ur.prototype.getTransactionByBlockHashAndIndex=uo(\"eth_getTransactionByBlockHashAndIndex\");ur.prototype.getTransactionByBlockNumberAndIndex=uo(\"eth_getTransactionByBlockNumberAndIndex\");ur.prototype.getTransactionReceipt=uo(\"eth_getTransactionReceipt\");ur.prototype.getUncleByBlockHashAndIndex=uo(\"eth_getUncleByBlockHashAndIndex\");ur.prototype.getUncleByBlockNumberAndIndex=uo(\"eth_getUncleByBlockNumberAndIndex\");ur.prototype.getCompilers=uo(\"eth_getCompilers\");ur.prototype.compileLLL=uo(\"eth_compileLLL\");ur.prototype.compileSolidity=uo(\"eth_compileSolidity\");ur.prototype.compileSerpent=uo(\"eth_compileSerpent\");ur.prototype.newFilter=uo(\"eth_newFilter\");ur.prototype.newBlockFilter=uo(\"eth_newBlockFilter\");ur.prototype.newPendingTransactionFilter=uo(\"eth_newPendingTransactionFilter\");ur.prototype.uninstallFilter=uo(\"eth_uninstallFilter\");ur.prototype.getFilterChanges=uo(\"eth_getFilterChanges\");ur.prototype.getFilterLogs=uo(\"eth_getFilterLogs\");ur.prototype.getLogs=uo(\"eth_getLogs\");ur.prototype.getWork=uo(\"eth_getWork\");ur.prototype.submitWork=uo(\"eth_submitWork\");ur.prototype.submitHashrate=uo(\"eth_submitHashrate\");ur.prototype.sendAsync=function(e,t){this.currentProvider.sendAsync(XPt(e),function(r,o){if(!r&&o.error&&(r=new Error(\"EthQuery - RPC Error - \"+o.error.message)),r)return t(r);t(null,o.result)})};function uo(e){return function(){let t=this;var n=[].slice.call(arguments),r=n.pop();t.sendAsync({method:e,params:n},r)}}function VF(e,t){return function(){let n=this;var r=[].slice.call(arguments),o=r.pop();r.length<e&&r.push(\"latest\"),n.sendAsync({method:t,params:r},o)}}function XPt(e){return QPt({id:JPt(),jsonrpc:\"2.0\",params:[]},e)}});var AQe=me((Kur,EQe)=>{\"use strict\";f();var wQe=(e,t,n,r)=>function(...o){let i=t.promiseModule;return new i((a,c)=>{t.multiArgs?o.push((...d)=>{t.errorFirst?d[0]?c(d):(d.shift(),a(d)):a(d)}):t.errorFirst?o.push((d,m)=>{d?c(d):a(m)}):o.push(a),Reflect.apply(e,this===n?r:this,o)})},xQe=new WeakMap;EQe.exports=(e,t)=>{t={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...t};let n=typeof e;if(!(e!==null&&(n===\"object\"||n===\"function\")))throw new TypeError(`Expected \\\\`input\\\\` to be a \\\\`Function\\\\` or \\\\`Object\\\\`, got \\\\`${e===null?\"null\":n}\\\\``);let r=(a,c)=>{let l=xQe.get(a);if(l||(l={},xQe.set(a,l)),c in l)return l[c];let d=w=>typeof w==\"string\"||typeof c==\"symbol\"?c===w:w.test(c),m=Reflect.getOwnPropertyDescriptor(a,c),h=m===void 0||m.writable||m.configurable,y=(t.include?t.include.some(d):!t.exclude.some(d))&&h;return l[c]=y,y},o=new WeakMap,i=new Proxy(e,{apply(a,c,l){let d=o.get(a);if(d)return Reflect.apply(d,c,l);let m=t.excludeMain?a:wQe(a,t,i,a);return o.set(a,m),Reflect.apply(m,c,l)},get(a,c){let l=a[c];if(!r(a,c)||l===Function.prototype[c])return l;let d=o.get(l);if(d)return d;if(typeof l==\"function\"){let m=wQe(l,t,i,a);return o.set(l,m),m}return l}});return i}});var I$=me((Zur,SQe)=>{f();var $Pt=qX().default,Qge=class extends $Pt{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error(\"BaseFilter - no update method specified\")}addResults(t){this.updates=this.updates.concat(t),t.forEach(n=>this.emit(\"update\",n))}addInitialResults(t){}getChangesAndClear(){let t=this.updates;return this.updates=[],t}};SQe.exports=Qge});var TQe=me((Jur,_Qe)=>{f();var eMt=I$(),Jge=class extends eMt{constructor(){super(),this.allResults=[]}async update(){throw new Error(\"BaseFilterWithHistory - no update method specified\")}addResults(t){this.allResults=this.allResults.concat(t),super.addResults(t)}addInitialResults(t){this.allResults=this.allResults.concat(t),super.addInitialResults(t)}getAllResults(){return this.allResults}};_Qe.exports=Jge});var UP=me(($ur,IQe)=>{f();IQe.exports={minBlockRef:tMt,maxBlockRef:nMt,sortBlockRefs:Xge,bnToHex:rMt,blockRefIsNumber:oMt,hexToInt:k$,incrementHexInt:iMt,intToHex:RQe,unsafeRandomBytes:aMt};function tMt(...e){return Xge(e)[0]}function nMt(...e){let t=Xge(e);return t[t.length-1]}function Xge(e){return e.sort((t,n)=>t===\"latest\"||n===\"earliest\"?1:n===\"latest\"||t===\"earliest\"?-1:k$(t)-k$(n))}function rMt(e){return\"0x\"+e.toString(16)}function oMt(e){return e&&![\"earliest\",\"latest\",\"pending\"].includes(e)}function k$(e){return e==null?e:Number.parseInt(e,16)}function iMt(e){if(e==null)return e;let t=k$(e);return RQe(t+1)}function RQe(e){if(e==null)return e;let t=e.toString(16);return t.length%2&&(t=\"0\"+t),\"0x\"+t}function aMt(e){let t=\"0x\";for(let n=0;n<e;n++)t+=CQe(),t+=CQe();return t}function CQe(){return Math.floor(Math.random()*16).toString(16)}});var OQe=me((nlr,kQe)=>{f();var sMt=vQe(),cMt=AQe(),uMt=TQe(),{bnToHex:tlr,hexToInt:O$,incrementHexInt:lMt,minBlockRef:dMt,blockRefIsNumber:fMt}=UP(),$ge=class extends uMt{constructor({provider:t,params:n}){super(),this.type=\"log\",this.ethQuery=new sMt(t),this.params=Object.assign({fromBlock:\"latest\",toBlock:\"latest\",address:void 0,topics:[]},n),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(r=>r.toLowerCase()))}async initialize({currentBlock:t}){let n=this.params.fromBlock;[\"latest\",\"pending\"].includes(n)&&(n=t),n===\"earliest\"&&(n=\"0x0\"),this.params.fromBlock=n;let r=dMt(this.params.toBlock,t),o=Object.assign({},this.params,{toBlock:r}),i=await this._fetchLogs(o);this.addInitialResults(i)}async update({oldBlock:t,newBlock:n}){let r=n,o;t?o=lMt(t):o=n;let i=Object.assign({},this.params,{fromBlock:o,toBlock:r}),c=(await this._fetchLogs(i)).filter(l=>this.matchLog(l));this.addResults(c)}async _fetchLogs(t){return await cMt(r=>this.ethQuery.getLogs(t,r))()}matchLog(t){if(O$(this.params.fromBlock)>=O$(t.blockNumber)||fMt(this.params.toBlock)&&O$(this.params.toBlock)<=O$(t.blockNumber))return!1;let n=t.address&&t.address.toLowerCase();return this.params.address&&n&&!this.params.address.includes(n)?!1:this.params.topics.every((o,i)=>{let a=t.topics[i];if(!a)return!1;a=a.toLowerCase();let c=Array.isArray(o)?o:[o];return c.includes(null)?!0:(c=c.map(m=>m.toLowerCase()),c.includes(a))})}};kQe.exports=$ge});var N$=me((olr,PQe)=>{f();PQe.exports=pMt;async function pMt({provider:e,fromBlock:t,toBlock:n}){t||(t=n);let r=NQe(t),i=NQe(n)-r+1,a=Array(i).fill().map((l,d)=>r+d).map(hMt),c=await Promise.all(a.map(l=>gMt(e,\"eth_getBlockByNumber\",[l,!1])));return c=c.filter(l=>l!==null),c}function NQe(e){return e==null?e:Number.parseInt(e,16)}function hMt(e){return e==null?e:\"0x\"+e.toString(16)}function mMt(e,t){return new Promise((n,r)=>{e.sendAsync(t,(o,i)=>{o?r(o):i.error?r(i.error):i.result?n(i.result):r(new Error(\"Result was empty\"))})})}async function gMt(e,t,n){for(let r=0;r<3;r++)try{return await mMt(e,{id:1,jsonrpc:\"2.0\",method:t,params:n})}catch(o){console.error(`provider.sendAsync failed: ${o.stack||o.message||o}`)}return null}});var DQe=me((alr,MQe)=>{f();var yMt=I$(),bMt=N$(),{incrementHexInt:vMt}=UP(),eye=class extends yMt{constructor({provider:t,params:n}){super(),this.type=\"block\",this.provider=t}async update({oldBlock:t,newBlock:n}){let r=n,o=vMt(t),a=(await bMt({provider:this.provider,fromBlock:o,toBlock:r})).map(c=>c.hash);this.addResults(a)}};MQe.exports=eye});var LQe=me((clr,BQe)=>{f();var wMt=I$(),xMt=N$(),{incrementHexInt:EMt}=UP(),tye=class extends wMt{constructor({provider:t}){super(),this.type=\"tx\",this.provider=t}async update({oldBlock:t}){let n=t,r=EMt(t),o=await xMt({provider:this.provider,fromBlock:r,toBlock:n}),i=[];for(let a of o)i.push(...a.transactions);this.addResults(i)}};BQe.exports=tye});var HQe=me((llr,FQe)=>{f();var AMt=mQe().Mutex,{createAsyncMiddleware:SMt,createScaffoldMiddleware:_Mt}=Gge(),TMt=OQe(),CMt=DQe(),RMt=LQe(),{intToHex:UQe,hexToInt:nye}=UP();FQe.exports=IMt;function IMt({blockTracker:e,provider:t}){let n=0,r={},o=new AMt,i=kMt({mutex:o}),a=_Mt({eth_newFilter:i(rye(l)),eth_newBlockFilter:i(rye(d)),eth_newPendingTransactionFilter:i(rye(m)),eth_uninstallFilter:i(P$(y)),eth_getFilterChanges:i(P$(h)),eth_getFilterLogs:i(P$(g))}),c=async({oldBlock:M,newBlock:B})=>{if(r.length===0)return;let z=await o.acquire();try{await Promise.all(FP(r).map(async G=>{try{await G.update({oldBlock:M,newBlock:B})}catch(J){console.error(J)}}))}catch(G){console.error(G)}z()};return a.newLogFilter=l,a.newBlockFilter=d,a.newPendingTransactionFilter=m,a.uninstallFilter=y,a.getFilterChanges=h,a.getFilterLogs=g,a.destroy=()=>{I()},a;async function l(M){let B=new TMt({provider:t,params:M}),z=await w(B);return B}async function d(){let M=new CMt({provider:t}),B=await w(M);return M}async function m(){let M=new RMt({provider:t}),B=await w(M);return M}async function h(M){let B=nye(M),z=r[B];if(!z)throw new Error(`No filter for index \"${B}\"`);return z.getChangesAndClear()}async function g(M){let B=nye(M),z=r[B];if(!z)throw new Error(`No filter for index \"${B}\"`);let G=[];return z.type===\"log\"&&(G=z.getAllResults()),G}async function y(M){let B=nye(M),G=!!r[B];return G&&await x(B),G}async function w(M){let B=FP(r).length,z=await e.getLatestBlock();await M.initialize({currentBlock:z}),n++,r[n]=M,M.id=n,M.idHex=UQe(n);let G=FP(r).length;return C({prevFilterCount:B,newFilterCount:G}),n}async function x(M){let B=FP(r).length;delete r[M];let z=FP(r).length;C({prevFilterCount:B,newFilterCount:z})}async function I(){let M=FP(r).length;r={},C({prevFilterCount:M,newFilterCount:0})}function C({prevFilterCount:M,newFilterCount:B}){if(M===0&&B>0){e.on(\"sync\",c);return}if(M>0&&B===0){e.removeListener(\"sync\",c);return}}}function rye(e){return P$(async(...t)=>{let n=await e(...t);return UQe(n.id)})}function P$(e){return SMt(async(t,n)=>{let r=await e.apply(null,t.params);n.result=r})}function kMt({mutex:e}){return t=>async(n,r,o,i)=>{(await e.acquire())(),t(n,r,o,i)}}function FP(e,t){let n=[];for(let r in e)n.push(e[r]);return n}});var WQe=me((flr,jQe)=>{f();var OMt=qX().default,{createAsyncMiddleware:zQe,createScaffoldMiddleware:NMt}=Gge(),PMt=HQe(),{unsafeRandomBytes:MMt,incrementHexInt:DMt}=UP(),BMt=N$();jQe.exports=LMt;function LMt({blockTracker:e,provider:t}){let n={},r=PMt({blockTracker:e,provider:t}),o=!1,i=new OMt,a=NMt({eth_subscribe:zQe(c),eth_unsubscribe:zQe(l)});return a.destroy=m,{events:i,middleware:a};async function c(h,g){if(o)throw new Error(\"SubscriptionManager - attempting to use after destroying\");let y=h.params[0],w=MMt(16),x;switch(y){case\"newHeads\":x=I({subId:w});break;case\"logs\":let M=h.params[1],B=await r.newLogFilter(M);x=C({subId:w,filter:B});break;default:throw new Error(`SubscriptionManager - unsupported subscription type \"${y}\"`)}n[w]=x,g.result=w;return;function I({subId:M}){let B={type:y,destroy:async()=>{e.removeListener(\"sync\",B.update)},update:async({oldBlock:z,newBlock:G})=>{let J=G,ne=DMt(z);(await BMt({provider:t,fromBlock:ne,toBlock:J})).map(UMt).filter(te=>te!==null).forEach(te=>{d(M,te)})}};return e.on(\"sync\",B.update),B}function C({subId:M,filter:B}){return B.on(\"update\",G=>d(M,G)),{type:y,destroy:async()=>await r.uninstallFilter(B.idHex)}}}async function l(h,g){if(o)throw new Error(\"SubscriptionManager - attempting to use after destroying\");let y=h.params[0],w=n[y];if(!w){g.result=!1;return}delete n[y],await w.destroy(),g.result=!0}function d(h,g){i.emit(\"notification\",{jsonrpc:\"2.0\",method:\"eth_subscription\",params:{subscription:h,result:g}})}function m(){i.removeAllListeners();for(let h in n)n[h].destroy(),delete n[h];o=!0}}function UMt(e){return e==null?null:{hash:e.hash,parentHash:e.parentHash,sha3Uncles:e.sha3Uncles,miner:e.miner,stateRoot:e.stateRoot,transactionsRoot:e.transactionsRoot,receiptsRoot:e.receiptsRoot,logsBloom:e.logsBloom,difficulty:e.difficulty,number:e.number,gasLimit:e.gasLimit,gasUsed:e.gasUsed,nonce:e.nonce,mixHash:e.mixHash,timestamp:e.timestamp,extraData:e.extraData}}});var GQe=me(M$=>{\"use strict\";f();Object.defineProperty(M$,\"__esModule\",{value:!0});M$.SubscriptionManager=void 0;var FMt=pZe(),HMt=WQe(),VQe=()=>{},oye=class{constructor(t){let n=new FMt.PollingBlockTracker({provider:t,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:r,middleware:o}=HMt({blockTracker:n,provider:t});this.events=r,this.subscriptionMiddleware=o}async handleRequest(t){let n={};return await this.subscriptionMiddleware(t,n,VQe,VQe),n}destroy(){this.subscriptionMiddleware.destroy()}};M$.SubscriptionManager=oye});var B$=me(HP=>{\"use strict\";f();var ZQe=HP&&HP.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(HP,\"__esModule\",{value:!0});HP.CoinbaseWalletProvider=void 0;var zMt=ZQe(pR()),jMt=fde(),ui=QU(),Vr=_w(),WMt=y0e(),qQe=DJ(),D$=tX(),w0=CJ(),iye=ZQe(iqe()),GF=MJ(),VMt=lqe(),GMt=GQe(),KQe=\"DefaultChainId\",YQe=\"DefaultJsonRpcUrl\",aye=class extends jMt.EventEmitter{constructor(t){var n,r;super(),this._filterPolyfill=new VMt.FilterPolyfill(this),this._subscriptionManager=new GMt.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=t.chainId,this._jsonRpcUrlFromOpts=t.jsonRpcUrl,this._overrideIsMetaMask=t.overrideIsMetaMask,this._relayProvider=t.relayProvider,this._storage=t.storage,this._relayEventManager=t.relayEventManager,this.diagnostic=t.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=(n=t.overrideIsCoinbaseWallet)!==null&&n!==void 0?n:!0,this.isCoinbaseBrowser=(r=t.overrideIsCoinbaseBrowser)!==null&&r!==void 0?r:!1,this.qrUrl=t.qrUrl;let o=this.getChainId(),i=(0,Vr.prepend0x)(o.toString(16));this.emit(\"connect\",{chainIdStr:i});let a=this._storage.getItem(qQe.LOCAL_STORAGE_ADDRESSES_KEY);if(a){let c=a.split(\" \");c[0]!==\"\"&&(this._addresses=c.map(l=>(0,Vr.ensureAddressString)(l)),this.emit(\"accountsChanged\",c))}this._subscriptionManager.events.on(\"notification\",c=>{this.emit(\"message\",{type:c.method,data:c.params})}),this._isAuthorized()&&this.initializeRelay(),window.addEventListener(\"message\",c=>{var l;if(!(c.origin!==location.origin||c.source!==window)&&c.data.type===\"walletLinkMessage\"&&c.data.data.action===\"dappChainSwitched\"){let d=c.data.data.chainId,m=(l=c.data.data.jsonRpcUrl)!==null&&l!==void 0?l:this.jsonRpcUrl;this.updateProviderInfo(m,Number(d))}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,Vr.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var t;return(t=this._storage.getItem(YQe))!==null&&t!==void 0?t:this._jsonRpcUrlFromOpts}set jsonRpcUrl(t){this._storage.setItem(YQe,t)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(t,n){this.isCoinbaseBrowser||(this._chainIdFromOpts=n,this._jsonRpcUrlFromOpts=t),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(t,n){this.jsonRpcUrl=t;let r=this.getChainId();this._storage.setItem(KQe,n.toString(10)),((0,Vr.ensureIntNumber)(n)!==r||!this.hasMadeFirstChainChangedEmission)&&(this.emit(\"chainChanged\",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(t,n,r,o,i,a){let l=await(await this.initializeRelay()).watchAsset(t,n,r,o,i,a?.toString()).promise;return(0,w0.isErrorResponse)(l)?!1:!!l.result}async addEthereumChain(t,n,r,o,i,a){var c,l;if((0,Vr.ensureIntNumber)(t)===this.getChainId())return!1;let d=await this.initializeRelay(),m=d.inlineAddEthereumChain(t.toString());!this._isAuthorized()&&!m&&await d.requestEthereumAccounts().promise;let h=await d.addEthereumChain(t.toString(),n,i,r,o,a).promise;return(0,w0.isErrorResponse)(h)?!1:(((c=h.result)===null||c===void 0?void 0:c.isApproved)===!0&&this.updateProviderInfo(n[0],t),((l=h.result)===null||l===void 0?void 0:l.isApproved)===!0)}async switchEthereumChain(t){let r=await(await this.initializeRelay()).switchEthereumChain(t.toString(10),this.selectedAddress||void 0).promise;if((0,w0.isErrorResponse)(r)){if(!r.errorCode)return;throw r.errorCode===ui.standardErrorCodes.provider.unsupportedChain?ui.standardErrors.provider.unsupportedChain():ui.standardErrors.provider.custom({message:r.errorMessage,code:r.errorCode})}let o=r.result;o.isApproved&&o.rpcUrl.length>0&&this.updateProviderInfo(o.rpcUrl,t)}setAppInfo(t,n){this.initializeRelay().then(r=>r.setAppInfo(t,n))}async enable(){var t;return(t=this.diagnostic)===null||t===void 0||t.log(GF.EVENTS.ETH_ACCOUNTS_STATE,{method:\"provider::enable\",addresses_length:this._addresses.length,sessionIdHash:this._relay?D$.Session.hash(this._relay.session.id):void 0}),this._isAuthorized()?[...this._addresses]:await this.send(\"eth_requestAccounts\")}async close(){(await this.initializeRelay()).resetAndReload()}send(t,n){try{let r=this._send(t,n);if(r instanceof Promise)return r.catch(o=>{throw(0,ui.serializeError)(o,t)})}catch(r){throw(0,ui.serializeError)(r,t)}}_send(t,n){if(typeof t==\"string\"){let o=t,i=Array.isArray(n)?n:n!==void 0?[n]:[],a={jsonrpc:\"2.0\",id:0,method:o,params:i};return this._sendRequestAsync(a).then(c=>c.result)}if(typeof n==\"function\"){let o=t,i=n;return this._sendAsync(o,i)}if(Array.isArray(t))return t.map(i=>this._sendRequest(i));let r=t;return this._sendRequest(r)}async sendAsync(t,n){try{return this._sendAsync(t,n).catch(r=>{throw(0,ui.serializeError)(r,t)})}catch(r){return Promise.reject((0,ui.serializeError)(r,t))}}async _sendAsync(t,n){if(typeof n!=\"function\")throw new Error(\"callback is required\");if(Array.isArray(t)){let o=n;this._sendMultipleRequestsAsync(t).then(i=>o(null,i)).catch(i=>o(i,null));return}let r=n;return this._sendRequestAsync(t).then(o=>r(null,o)).catch(o=>r(o,null))}async request(t){try{return this._request(t).catch(n=>{throw(0,ui.serializeError)(n,t.method)})}catch(n){return Promise.reject((0,ui.serializeError)(n,t.method))}}async _request(t){if(!t||typeof t!=\"object\"||Array.isArray(t))throw ui.standardErrors.rpc.invalidRequest({message:\"Expected a single, non-array, object argument.\",data:t});let{method:n,params:r}=t;if(typeof n!=\"string\"||n.length===0)throw ui.standardErrors.rpc.invalidRequest({message:\"\\'args.method\\' must be a non-empty string.\",data:t});if(r!==void 0&&!Array.isArray(r)&&(typeof r!=\"object\"||r===null))throw ui.standardErrors.rpc.invalidRequest({message:\"\\'args.params\\' must be an object or array if provided.\",data:t});let o=r===void 0?[]:r,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:n,params:o,jsonrpc:\"2.0\",id:i})).result}async scanQRCode(t){let r=await(await this.initializeRelay()).scanQRCode((0,Vr.ensureRegExpString)(t)).promise;if((0,w0.isErrorResponse)(r))throw(0,ui.serializeError)(r.errorMessage,\"scanQRCode\");if(typeof r.result!=\"string\")throw(0,ui.serializeError)(\"result was not a string\",\"scanQRCode\");return r.result}async genericRequest(t,n){let o=await(await this.initializeRelay()).genericRequest(t,n).promise;if((0,w0.isErrorResponse)(o))throw(0,ui.serializeError)(o.errorMessage,\"generic\");if(typeof o.result!=\"string\")throw(0,ui.serializeError)(\"result was not a string\",\"generic\");return o.result}async connectAndSignIn(t){var n;(n=this.diagnostic)===null||n===void 0||n.log(GF.EVENTS.ETH_ACCOUNTS_STATE,{method:\"provider::connectAndSignIn\",sessionIdHash:this._relay?D$.Session.hash(this._relay.session.id):void 0});let r;try{let i=await this.initializeRelay();if(!(i instanceof WMt.MobileRelay))throw new Error(\"connectAndSignIn is only supported on mobile\");if(r=await i.connectAndSignIn(t).promise,(0,w0.isErrorResponse)(r))throw new Error(r.errorMessage)}catch(i){throw typeof i.message==\"string\"&&i.message.match(/(denied|rejected)/i)?ui.standardErrors.provider.userRejectedRequest(\"User denied account authorization\"):i}if(!r.result)throw new Error(\"accounts received is empty\");let{accounts:o}=r.result;return this._setAddresses(o),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),r.result}async selectProvider(t){let r=await(await this.initializeRelay()).selectProvider(t).promise;if((0,w0.isErrorResponse)(r))throw(0,ui.serializeError)(r.errorMessage,\"selectProvider\");if(typeof r.result!=\"string\")throw(0,ui.serializeError)(\"result was not a string\",\"selectProvider\");return r.result}supportsSubscriptions(){return!1}subscribe(){throw new Error(\"Subscriptions are not supported\")}unsubscribe(){throw new Error(\"Subscriptions are not supported\")}disconnect(){return!0}_sendRequest(t){let n={jsonrpc:\"2.0\",id:t.id},{method:r}=t;if(n.result=this._handleSynchronousMethods(t),n.result===void 0)throw new Error(`Coinbase Wallet does not support calling ${r} synchronously without a callback. Please provide a callback parameter to call ${r} asynchronously.`);return n}_setAddresses(t,n){if(!Array.isArray(t))throw new Error(\"addresses is not an array\");let r=t.map(o=>(0,Vr.ensureAddressString)(o));JSON.stringify(r)!==JSON.stringify(this._addresses)&&(this._addresses=r,this.emit(\"accountsChanged\",this._addresses),this._storage.setItem(qQe.LOCAL_STORAGE_ADDRESSES_KEY,r.join(\" \")))}_sendRequestAsync(t){return new Promise((n,r)=>{try{let o=this._handleSynchronousMethods(t);if(o!==void 0)return n({jsonrpc:\"2.0\",id:t.id,result:o});let i=this._handleAsynchronousFilterMethods(t);if(i!==void 0){i.then(c=>n(Object.assign(Object.assign({},c),{id:t.id}))).catch(c=>r(c));return}let a=this._handleSubscriptionMethods(t);if(a!==void 0){a.then(c=>n({jsonrpc:\"2.0\",id:t.id,result:c.result})).catch(c=>r(c));return}}catch(o){return r(o)}this._handleAsynchronousMethods(t).then(o=>o&&n(Object.assign(Object.assign({},o),{id:t.id}))).catch(o=>r(o))})}_sendMultipleRequestsAsync(t){return Promise.all(t.map(n=>this._sendRequestAsync(n)))}_handleSynchronousMethods(t){let{method:n}=t,r=t.params||[];switch(n){case\"eth_accounts\":return this._eth_accounts();case\"eth_coinbase\":return this._eth_coinbase();case\"eth_uninstallFilter\":return this._eth_uninstallFilter(r);case\"net_version\":return this._net_version();case\"eth_chainId\":return this._eth_chainId();default:return}}async _handleAsynchronousMethods(t){let{method:n}=t,r=t.params||[];switch(n){case\"eth_requestAccounts\":return this._eth_requestAccounts();case\"eth_sign\":return this._eth_sign(r);case\"eth_ecRecover\":return this._eth_ecRecover(r);case\"personal_sign\":return this._personal_sign(r);case\"personal_ecRecover\":return this._personal_ecRecover(r);case\"eth_signTransaction\":return this._eth_signTransaction(r);case\"eth_sendRawTransaction\":return this._eth_sendRawTransaction(r);case\"eth_sendTransaction\":return this._eth_sendTransaction(r);case\"eth_signTypedData_v1\":return this._eth_signTypedData_v1(r);case\"eth_signTypedData_v2\":return this._throwUnsupportedMethodError();case\"eth_signTypedData_v3\":return this._eth_signTypedData_v3(r);case\"eth_signTypedData_v4\":case\"eth_signTypedData\":return this._eth_signTypedData_v4(r);case\"cbWallet_arbitrary\":return this._cbwallet_arbitrary(r);case\"wallet_addEthereumChain\":return this._wallet_addEthereumChain(r);case\"wallet_switchEthereumChain\":return this._wallet_switchEthereumChain(r);case\"wallet_watchAsset\":return this._wallet_watchAsset(r)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(t,this.jsonRpcUrl).catch(i=>{var a;throw(i.code===ui.standardErrorCodes.rpc.methodNotFound||i.code===ui.standardErrorCodes.rpc.methodNotSupported)&&((a=this.diagnostic)===null||a===void 0||a.log(GF.EVENTS.METHOD_NOT_IMPLEMENTED,{method:t.method,sessionIdHash:this._relay?D$.Session.hash(this._relay.session.id):void 0})),i})}_handleAsynchronousFilterMethods(t){let{method:n}=t,r=t.params||[];switch(n){case\"eth_newFilter\":return this._eth_newFilter(r);case\"eth_newBlockFilter\":return this._eth_newBlockFilter();case\"eth_newPendingTransactionFilter\":return this._eth_newPendingTransactionFilter();case\"eth_getFilterChanges\":return this._eth_getFilterChanges(r);case\"eth_getFilterLogs\":return this._eth_getFilterLogs(r)}}_handleSubscriptionMethods(t){switch(t.method){case\"eth_subscribe\":case\"eth_unsubscribe\":return this._subscriptionManager.handleRequest(t)}}_isKnownAddress(t){try{let n=(0,Vr.ensureAddressString)(t);return this._addresses.map(o=>(0,Vr.ensureAddressString)(o)).includes(n)}catch{}return!1}_ensureKnownAddress(t){var n;if(!this._isKnownAddress(t))throw(n=this.diagnostic)===null||n===void 0||n.log(GF.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error(\"Unknown Ethereum address\")}_prepareTransactionParams(t){let n=t.from?(0,Vr.ensureAddressString)(t.from):this.selectedAddress;if(!n)throw new Error(\"Ethereum address is unavailable\");this._ensureKnownAddress(n);let r=t.to?(0,Vr.ensureAddressString)(t.to):null,o=t.value!=null?(0,Vr.ensureBN)(t.value):new zMt.default(0),i=t.data?(0,Vr.ensureBuffer)(t.data):globalThis.Buffer.alloc(0),a=t.nonce!=null?(0,Vr.ensureIntNumber)(t.nonce):null,c=t.gasPrice!=null?(0,Vr.ensureBN)(t.gasPrice):null,l=t.maxFeePerGas!=null?(0,Vr.ensureBN)(t.maxFeePerGas):null,d=t.maxPriorityFeePerGas!=null?(0,Vr.ensureBN)(t.maxPriorityFeePerGas):null,m=t.gas!=null?(0,Vr.ensureBN)(t.gas):null,h=t.chainId?(0,Vr.ensureIntNumber)(t.chainId):this.getChainId();return{fromAddress:n,toAddress:r,weiValue:o,data:i,nonce:a,gasPriceInWei:c,maxFeePerGas:l,maxPriorityFeePerGas:d,gasLimit:m,chainId:h}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw ui.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw ui.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(t,n,r,o){this._ensureKnownAddress(n);try{let a=await(await this.initializeRelay()).signEthereumMessage(t,n,r,o).promise;if((0,w0.isErrorResponse)(a))throw new Error(a.errorMessage);return{jsonrpc:\"2.0\",id:0,result:a.result}}catch(i){throw typeof i.message==\"string\"&&i.message.match(/(denied|rejected)/i)?ui.standardErrors.provider.userRejectedRequest(\"User denied message signature\"):i}}async _ethereumAddressFromSignedMessage(t,n,r){let i=await(await this.initializeRelay()).ethereumAddressFromSignedMessage(t,n,r).promise;if((0,w0.isErrorResponse)(i))throw new Error(i.errorMessage);return{jsonrpc:\"2.0\",id:0,result:i.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,Vr.hexStringFromIntNumber)(this.getChainId())}getChainId(){let t=this._storage.getItem(KQe);if(!t)return(0,Vr.ensureIntNumber)(this._chainIdFromOpts);let n=parseInt(t,10);return(0,Vr.ensureIntNumber)(n)}async _eth_requestAccounts(){var t;if((t=this.diagnostic)===null||t===void 0||t.log(GF.EVENTS.ETH_ACCOUNTS_STATE,{method:\"provider::_eth_requestAccounts\",addresses_length:this._addresses.length,sessionIdHash:this._relay?D$.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())return Promise.resolve({jsonrpc:\"2.0\",id:0,result:this._addresses});let n;try{if(n=await(await this.initializeRelay()).requestEthereumAccounts().promise,(0,w0.isErrorResponse)(n))throw new Error(n.errorMessage)}catch(r){throw typeof r.message==\"string\"&&r.message.match(/(denied|rejected)/i)?ui.standardErrors.provider.userRejectedRequest(\"User denied account authorization\"):r}if(!n.result)throw new Error(\"accounts received is empty\");return this._setAddresses(n.result),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:\"2.0\",id:0,result:this._addresses}}_eth_sign(t){this._requireAuthorization();let n=(0,Vr.ensureAddressString)(t[0]),r=(0,Vr.ensureBuffer)(t[1]);return this._signEthereumMessage(r,n,!1)}_eth_ecRecover(t){let n=(0,Vr.ensureBuffer)(t[0]),r=(0,Vr.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(n,r,!1)}_personal_sign(t){this._requireAuthorization();let n=(0,Vr.ensureBuffer)(t[0]),r=(0,Vr.ensureAddressString)(t[1]);return this._signEthereumMessage(n,r,!0)}_personal_ecRecover(t){let n=(0,Vr.ensureBuffer)(t[0]),r=(0,Vr.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(n,r,!0)}async _eth_signTransaction(t){this._requireAuthorization();let n=this._prepareTransactionParams(t[0]||{});try{let o=await(await this.initializeRelay()).signEthereumTransaction(n).promise;if((0,w0.isErrorResponse)(o))throw new Error(o.errorMessage);return{jsonrpc:\"2.0\",id:0,result:o.result}}catch(r){throw typeof r.message==\"string\"&&r.message.match(/(denied|rejected)/i)?ui.standardErrors.provider.userRejectedRequest(\"User denied transaction signature\"):r}}async _eth_sendRawTransaction(t){let n=(0,Vr.ensureBuffer)(t[0]),o=await(await this.initializeRelay()).submitEthereumTransaction(n,this.getChainId()).promise;if((0,w0.isErrorResponse)(o))throw new Error(o.errorMessage);return{jsonrpc:\"2.0\",id:0,result:o.result}}async _eth_sendTransaction(t){this._requireAuthorization();let n=this._prepareTransactionParams(t[0]||{});try{let o=await(await this.initializeRelay()).signAndSubmitEthereumTransaction(n).promise;if((0,w0.isErrorResponse)(o))throw new Error(o.errorMessage);return{jsonrpc:\"2.0\",id:0,result:o.result}}catch(r){throw typeof r.message==\"string\"&&r.message.match(/(denied|rejected)/i)?ui.standardErrors.provider.userRejectedRequest(\"User denied transaction signature\"):r}}async _eth_signTypedData_v1(t){this._requireAuthorization();let n=(0,Vr.ensureParsedJSONObject)(t[0]),r=(0,Vr.ensureAddressString)(t[1]);this._ensureKnownAddress(r);let o=iye.default.hashForSignTypedDataLegacy({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(o,r,!1,i)}async _eth_signTypedData_v3(t){this._requireAuthorization();let n=(0,Vr.ensureAddressString)(t[0]),r=(0,Vr.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(n);let o=iye.default.hashForSignTypedData_v3({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(o,n,!1,i)}async _eth_signTypedData_v4(t){this._requireAuthorization();let n=(0,Vr.ensureAddressString)(t[0]),r=(0,Vr.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(n);let o=iye.default.hashForSignTypedData_v4({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(o,n,!1,i)}async _cbwallet_arbitrary(t){let n=t[0],r=t[1];if(typeof r!=\"string\")throw new Error(\"parameter must be a string\");if(typeof n!=\"object\"||n===null)throw new Error(\"parameter must be an object\");return{jsonrpc:\"2.0\",id:0,result:await this.genericRequest(n,r)}}async _wallet_addEthereumChain(t){var n,r,o,i;let a=t[0];if(((n=a.rpcUrls)===null||n===void 0?void 0:n.length)===0)return{jsonrpc:\"2.0\",id:0,error:{code:2,message:\"please pass in at least 1 rpcUrl\"}};if(!a.chainName||a.chainName.trim()===\"\")throw ui.standardErrors.rpc.invalidParams(\"chainName is a required field\");if(!a.nativeCurrency)throw ui.standardErrors.rpc.invalidParams(\"nativeCurrency is a required field\");let c=parseInt(a.chainId,16);return await this.addEthereumChain(c,(r=a.rpcUrls)!==null&&r!==void 0?r:[],(o=a.blockExplorerUrls)!==null&&o!==void 0?o:[],a.chainName,(i=a.iconUrls)!==null&&i!==void 0?i:[],a.nativeCurrency)?{jsonrpc:\"2.0\",id:0,result:null}:{jsonrpc:\"2.0\",id:0,error:{code:2,message:\"unable to add ethereum chain\"}}}async _wallet_switchEthereumChain(t){let n=t[0];return await this.switchEthereumChain(parseInt(n.chainId,16)),{jsonrpc:\"2.0\",id:0,result:null}}async _wallet_watchAsset(t){let n=Array.isArray(t)?t[0]:t;if(!n.type)throw ui.standardErrors.rpc.invalidParams(\"Type is required\");if(n?.type!==\"ERC20\")throw ui.standardErrors.rpc.invalidParams(`Asset of type \\'${n.type}\\' is not supported`);if(!n?.options)throw ui.standardErrors.rpc.invalidParams(\"Options are required\");if(!n?.options.address)throw ui.standardErrors.rpc.invalidParams(\"Address is required\");let r=this.getChainId(),{address:o,symbol:i,image:a,decimals:c}=n.options;return{jsonrpc:\"2.0\",id:0,result:await this.watchAsset(n.type,o,i,c,a,r)}}_eth_uninstallFilter(t){let n=(0,Vr.ensureHexString)(t[0]);return this._filterPolyfill.uninstallFilter(n)}async _eth_newFilter(t){let n=t[0];return{jsonrpc:\"2.0\",id:0,result:await this._filterPolyfill.newFilter(n)}}async _eth_newBlockFilter(){return{jsonrpc:\"2.0\",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:\"2.0\",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(t){let n=(0,Vr.ensureHexString)(t[0]);return this._filterPolyfill.getFilterChanges(n)}_eth_getFilterLogs(t){let n=(0,Vr.ensureHexString)(t[0]);return this._filterPolyfill.getFilterLogs(n)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(t=>(t.setAccountsCallback((n,r)=>this._setAddresses(n,r)),t.setChainCallback((n,r)=>{this.updateProviderInfo(r,parseInt(n,10))}),t.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=t,t))}};HP.CoinbaseWalletProvider=aye});var QQe=me(L$=>{\"use strict\";f();Object.defineProperty(L$,\"__esModule\",{value:!0});L$.RelayEventManager=void 0;var qMt=_w(),sye=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let t=this._nextRequestId,n=(0,qMt.prepend0x)(t.toString(16));return this.callbacks.get(n)&&this.callbacks.delete(n),t}};L$.RelayEventManager=sye});var cye=me(F$=>{\"use strict\";f();Object.defineProperty(F$,\"__esModule\",{value:!0});F$.CoinbaseWalletSDK=void 0;var KMt=YFe(),YMt=ZFe(),JQe=_w(),ZMt=bHe(),QMt=B$(),JMt=y0e(),XMt=m0e(),$Mt=QQe(),eDt=l0e(),tDt=d0e(),XQe=IJ(),U$=class e{constructor(t){var n,r,o;this._appName=\"\",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let i=t.linkAPIUrl||YMt.LINK_API_URL;typeof t.overrideIsMetaMask>\"u\"?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=t.overrideIsMetaMask,this._overrideIsCoinbaseWallet=(n=t.overrideIsCoinbaseWallet)!==null&&n!==void 0?n:!0,this._overrideIsCoinbaseBrowser=(r=t.overrideIsCoinbaseBrowser)!==null&&r!==void 0?r:!1,this._diagnosticLogger=t.diagnosticLogger,this._reloadOnDisconnect=(o=t.reloadOnDisconnect)!==null&&o!==void 0?o:!0;let a=new URL(i),c=`${a.protocol}//${a.host}`;if(this._storage=new ZMt.ScopedLocalStorage(`-walletlink:${c}`),this._storage.setItem(\"version\",e.VERSION),this.walletExtension||this.coinbaseBrowser)return;this._relayEventManager=new $Mt.RelayEventManager;let l=(0,JQe.isMobileWeb)(),d=t.uiConstructor||(h=>l?new XMt.MobileRelayUI(h):new eDt.WalletLinkRelayUI(h)),m={linkAPIUrl:i,version:XQe.LIB_VERSION,darkMode:!!t.darkMode,headlessMode:!!t.headlessMode,uiConstructor:d,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect,enableMobileWalletLink:t.enableMobileWalletLink};this._relay=l?new JMt.MobileRelay(m):new tDt.WalletLinkRelay(m),this.setAppInfo(t.appName,t.appLogoUrl),!t.headlessMode&&this._relay.attachUI()}makeWeb3Provider(t=\"\",n=1){let r=this.walletExtension;if(r)return this.isCipherProvider(r)||r.setProviderInfo(t,n),this._reloadOnDisconnect===!1&&typeof r.disableReloadOnDisconnect==\"function\"&&r.disableReloadOnDisconnect(),r;let o=this.coinbaseBrowser;if(o)return o;let i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw new Error(\"Relay not initialized, should never happen\");return t||i.setConnectDisabled(!0),new QMt.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(i),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:t,chainId:n,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(t,n){var r;this._appName=t||\"DApp\",this._appLogoUrl=n||(0,JQe.getFavicon)();let o=this.walletExtension;o?this.isCipherProvider(o)||o.setAppInfo(this._appName,this._appLogoUrl):(r=this._relay)===null||r===void 0||r.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var t;let n=this===null||this===void 0?void 0:this.walletExtension;n?n.close():(t=this._relay)===null||t===void 0||t.resetAndReload()}getQrUrl(){var t,n;return(n=(t=this._relay)===null||t===void 0?void 0:t.getQRCodeUrl())!==null&&n!==void 0?n:null}getCoinbaseWalletLogo(t,n=240){return(0,KMt.walletLogo)(t,n)}get walletExtension(){var t;return(t=window.coinbaseWalletExtension)!==null&&t!==void 0?t:window.walletLinkExtension}get coinbaseBrowser(){var t,n;try{let r=(t=window.ethereum)!==null&&t!==void 0?t:(n=window.top)===null||n===void 0?void 0:n.ethereum;return r&&\"isCoinbaseBrowser\"in r&&r.isCoinbaseBrowser?r:void 0}catch{return}}isCipherProvider(t){return typeof t.isCipher==\"boolean\"&&t.isCipher}};F$.CoinbaseWalletSDK=U$;U$.VERSION=XQe.LIB_VERSION});var eJe=me(HR=>{\"use strict\";f();Object.defineProperty(HR,\"__esModule\",{value:!0});HR.CoinbaseWalletProvider=HR.CoinbaseWalletSDK=void 0;var uye=cye(),$Qe=B$(),nDt=cye();Object.defineProperty(HR,\"CoinbaseWalletSDK\",{enumerable:!0,get:function(){return nDt.CoinbaseWalletSDK}});var rDt=B$();Object.defineProperty(HR,\"CoinbaseWalletProvider\",{enumerable:!0,get:function(){return rDt.CoinbaseWalletProvider}});HR.default=uye.CoinbaseWalletSDK;typeof window<\"u\"&&(window.CoinbaseWalletSDK=uye.CoinbaseWalletSDK,window.CoinbaseWalletProvider=$Qe.CoinbaseWalletProvider,window.WalletLink=uye.CoinbaseWalletSDK,window.WalletLinkProvider=$Qe.CoinbaseWalletProvider)});var nJe=me((OT,tJe)=>{f();var H$=typeof globalThis<\"u\"&&globalThis||typeof self<\"u\"&&self||typeof globalThis<\"u\"&&globalThis,z$=(function(){function e(){this.fetch=!1,this.DOMException=H$.DOMException}return e.prototype=H$,new e})();(function(e){var t=(function(n){var r=typeof e<\"u\"&&e||typeof self<\"u\"&&self||typeof e<\"u\"&&e||{},o={searchParams:\"URLSearchParams\"in r,iterable:\"Symbol\"in r&&\"iterator\"in Symbol,blob:\"FileReader\"in r&&\"Blob\"in r&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:\"FormData\"in r,arrayBuffer:\"ArrayBuffer\"in r};function i(Z){return Z&&DataView.prototype.isPrototypeOf(Z)}if(o.arrayBuffer)var a=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],c=ArrayBuffer.isView||function(Z){return Z&&a.indexOf(Object.prototype.toString.call(Z))>-1};function l(Z){if(typeof Z!=\"string\"&&(Z=String(Z)),/[^a-z0-9\\\\-#$%&\\'*+.^_`|~!]/i.test(Z)||Z===\"\")throw new TypeError(\\'Invalid character in header field name: \"\\'+Z+\\'\"\\');return Z.toLowerCase()}function d(Z){return typeof Z!=\"string\"&&(Z=String(Z)),Z}function m(Z){var X={next:function(){var F=Z.shift();return{done:F===void 0,value:F}}};return o.iterable&&(X[Symbol.iterator]=function(){return X}),X}function h(Z){this.map={},Z instanceof h?Z.forEach(function(X,F){this.append(F,X)},this):Array.isArray(Z)?Z.forEach(function(X){if(X.length!=2)throw new TypeError(\"Headers constructor: expected name/value pair to be length 2, found\"+X.length);this.append(X[0],X[1])},this):Z&&Object.getOwnPropertyNames(Z).forEach(function(X){this.append(X,Z[X])},this)}h.prototype.append=function(Z,X){Z=l(Z),X=d(X);var F=this.map[Z];this.map[Z]=F?F+\", \"+X:X},h.prototype.delete=function(Z){delete this.map[l(Z)]},h.prototype.get=function(Z){return Z=l(Z),this.has(Z)?this.map[Z]:null},h.prototype.has=function(Z){return this.map.hasOwnProperty(l(Z))},h.prototype.set=function(Z,X){this.map[l(Z)]=d(X)},h.prototype.forEach=function(Z,X){for(var F in this.map)this.map.hasOwnProperty(F)&&Z.call(X,this.map[F],F,this)},h.prototype.keys=function(){var Z=[];return this.forEach(function(X,F){Z.push(F)}),m(Z)},h.prototype.values=function(){var Z=[];return this.forEach(function(X){Z.push(X)}),m(Z)},h.prototype.entries=function(){var Z=[];return this.forEach(function(X,F){Z.push([F,X])}),m(Z)},o.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function g(Z){if(!Z._noBody){if(Z.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));Z.bodyUsed=!0}}function y(Z){return new Promise(function(X,F){Z.onload=function(){X(Z.result)},Z.onerror=function(){F(Z.error)}})}function w(Z){var X=new FileReader,F=y(X);return X.readAsArrayBuffer(Z),F}function x(Z){var X=new FileReader,F=y(X),R=/charset=([A-Za-z0-9_-]+)/.exec(Z.type),O=R?R[1]:\"utf-8\";return X.readAsText(Z,O),F}function I(Z){for(var X=new Uint8Array(Z),F=new Array(X.length),R=0;R<X.length;R++)F[R]=String.fromCharCode(X[R]);return F.join(\"\")}function C(Z){if(Z.slice)return Z.slice(0);var X=new Uint8Array(Z.byteLength);return X.set(new Uint8Array(Z)),X.buffer}function M(){return this.bodyUsed=!1,this._initBody=function(Z){this.bodyUsed=this.bodyUsed,this._bodyInit=Z,Z?typeof Z==\"string\"?this._bodyText=Z:o.blob&&Blob.prototype.isPrototypeOf(Z)?this._bodyBlob=Z:o.formData&&FormData.prototype.isPrototypeOf(Z)?this._bodyFormData=Z:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(Z)?this._bodyText=Z.toString():o.arrayBuffer&&o.blob&&i(Z)?(this._bodyArrayBuffer=C(Z.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(Z)||c(Z))?this._bodyArrayBuffer=C(Z):this._bodyText=Z=Object.prototype.toString.call(Z):(this._noBody=!0,this._bodyText=\"\"),this.headers.get(\"content-type\")||(typeof Z==\"string\"?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(Z)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},o.blob&&(this.blob=function(){var Z=g(this);if(Z)return Z;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var Z=g(this);return Z||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(o.blob)return this.blob().then(w);throw new Error(\"could not read as ArrayBuffer\")}},this.text=function(){var Z=g(this);if(Z)return Z;if(this._bodyBlob)return x(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(I(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var B=[\"CONNECT\",\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"PATCH\",\"POST\",\"PUT\",\"TRACE\"];function z(Z){var X=Z.toUpperCase();return B.indexOf(X)>-1?X:Z}function G(Z,X){if(!(this instanceof G))throw new TypeError(\\'Please use the \"new\" operator, this DOM object constructor cannot be called as a function.\\');X=X||{};var F=X.body;if(Z instanceof G){if(Z.bodyUsed)throw new TypeError(\"Already read\");this.url=Z.url,this.credentials=Z.credentials,X.headers||(this.headers=new h(Z.headers)),this.method=Z.method,this.mode=Z.mode,this.signal=Z.signal,!F&&Z._bodyInit!=null&&(F=Z._bodyInit,Z.bodyUsed=!0)}else this.url=String(Z);if(this.credentials=X.credentials||this.credentials||\"same-origin\",(X.headers||!this.headers)&&(this.headers=new h(X.headers)),this.method=z(X.method||this.method||\"GET\"),this.mode=X.mode||this.mode||null,this.signal=X.signal||this.signal||(function(){if(\"AbortController\"in r){var U=new AbortController;return U.signal}})(),this.referrer=null,(this.method===\"GET\"||this.method===\"HEAD\")&&F)throw new TypeError(\"Body not allowed for GET or HEAD requests\");if(this._initBody(F),(this.method===\"GET\"||this.method===\"HEAD\")&&(X.cache===\"no-store\"||X.cache===\"no-cache\")){var R=/([?&])_=[^&]*/;if(R.test(this.url))this.url=this.url.replace(R,\"$1_=\"+new Date().getTime());else{var O=/\\\\?/;this.url+=(O.test(this.url)?\"&\":\"?\")+\"_=\"+new Date().getTime()}}}G.prototype.clone=function(){return new G(this,{body:this._bodyInit})};function J(Z){var X=new FormData;return Z.trim().split(\"&\").forEach(function(F){if(F){var R=F.split(\"=\"),O=R.shift().replace(/\\\\+/g,\" \"),U=R.join(\"=\").replace(/\\\\+/g,\" \");X.append(decodeURIComponent(O),decodeURIComponent(U))}}),X}function ne(Z){var X=new h,F=Z.replace(/\\\\r?\\\\n[\\\\t ]+/g,\" \");return F.split(\"\\\\r\").map(function(R){return R.indexOf(`\\n`)===0?R.substr(1,R.length):R}).forEach(function(R){var O=R.split(\":\"),U=O.shift().trim();if(U){var P=O.join(\":\").trim();try{X.append(U,P)}catch(L){console.warn(\"Response \"+L.message)}}}),X}M.call(G.prototype);function ie(Z,X){if(!(this instanceof ie))throw new TypeError(\\'Please use the \"new\" operator, this DOM object constructor cannot be called as a function.\\');if(X||(X={}),this.type=\"default\",this.status=X.status===void 0?200:X.status,this.status<200||this.status>599)throw new RangeError(\"Failed to construct \\'Response\\': The status provided (0) is outside the range [200, 599].\");this.ok=this.status>=200&&this.status<300,this.statusText=X.statusText===void 0?\"\":\"\"+X.statusText,this.headers=new h(X.headers),this.url=X.url||\"\",this._initBody(Z)}M.call(ie.prototype),ie.prototype.clone=function(){return new ie(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},ie.error=function(){var Z=new ie(null,{status:200,statusText:\"\"});return Z.ok=!1,Z.status=0,Z.type=\"error\",Z};var ae=[301,302,303,307,308];ie.redirect=function(Z,X){if(ae.indexOf(X)===-1)throw new RangeError(\"Invalid status code\");return new ie(null,{status:X,headers:{location:Z}})},n.DOMException=r.DOMException;try{new n.DOMException}catch{n.DOMException=function(X,F){this.message=X,this.name=F;var R=Error(X);this.stack=R.stack},n.DOMException.prototype=Object.create(Error.prototype),n.DOMException.prototype.constructor=n.DOMException}function te(Z,X){return new Promise(function(F,R){var O=new G(Z,X);if(O.signal&&O.signal.aborted)return R(new n.DOMException(\"Aborted\",\"AbortError\"));var U=new XMLHttpRequest;function P(){U.abort()}U.onload=function(){var q={statusText:U.statusText,headers:ne(U.getAllResponseHeaders()||\"\")};O.url.indexOf(\"file://\")===0&&(U.status<200||U.status>599)?q.status=200:q.status=U.status,q.url=\"responseURL\"in U?U.responseURL:q.headers.get(\"X-Request-URL\");var H=\"response\"in U?U.response:U.responseText;setTimeout(function(){F(new ie(H,q))},0)},U.onerror=function(){setTimeout(function(){R(new TypeError(\"Network request failed\"))},0)},U.ontimeout=function(){setTimeout(function(){R(new TypeError(\"Network request timed out\"))},0)},U.onabort=function(){setTimeout(function(){R(new n.DOMException(\"Aborted\",\"AbortError\"))},0)};function L(q){try{return q===\"\"&&r.location.href?r.location.href:q}catch{return q}}if(U.open(O.method,L(O.url),!0),O.credentials===\"include\"?U.withCredentials=!0:O.credentials===\"omit\"&&(U.withCredentials=!1),\"responseType\"in U&&(o.blob?U.responseType=\"blob\":o.arrayBuffer&&(U.responseType=\"arraybuffer\")),X&&typeof X.headers==\"object\"&&!(X.headers instanceof h||r.Headers&&X.headers instanceof r.Headers)){var W=[];Object.getOwnPropertyNames(X.headers).forEach(function(q){W.push(l(q)),U.setRequestHeader(q,d(X.headers[q]))}),O.headers.forEach(function(q,H){W.indexOf(H)===-1&&U.setRequestHeader(H,q)})}else O.headers.forEach(function(q,H){U.setRequestHeader(H,q)});O.signal&&(O.signal.addEventListener(\"abort\",P),U.onreadystatechange=function(){U.readyState===4&&O.signal.removeEventListener(\"abort\",P)}),U.send(typeof O._bodyInit>\"u\"?null:O._bodyInit)})}return te.polyfill=!0,r.fetch||(r.fetch=te,r.Headers=h,r.Request=G,r.Response=ie),n.Headers=h,n.Request=G,n.Response=ie,n.fetch=te,n})({})})(z$);z$.fetch.ponyfill=!0;delete z$.fetch.polyfill;var zP=H$.fetch?H$:z$;OT=zP.fetch;OT.default=zP.fetch;OT.fetch=zP.fetch;OT.Headers=zP.Headers;OT.Request=zP.Request;OT.Response=zP.Response;tJe.exports=OT});var oJe=me((Ilr,rJe)=>{f();var jP=1e3,WP=jP*60,VP=WP*60,zR=VP*24,aDt=zR*7,sDt=zR*365.25;rJe.exports=function(e,t){t=t||{};var n=typeof e;if(n===\"string\"&&e.length>0)return cDt(e);if(n===\"number\"&&isFinite(e))return t.long?lDt(e):uDt(e);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(e))};function cDt(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\\\\d+)?\\\\.?\\\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||\"ms\").toLowerCase();switch(r){case\"years\":case\"year\":case\"yrs\":case\"yr\":case\"y\":return n*sDt;case\"weeks\":case\"week\":case\"w\":return n*aDt;case\"days\":case\"day\":case\"d\":return n*zR;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return n*VP;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return n*WP;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return n*jP;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return n;default:return}}}}function uDt(e){var t=Math.abs(e);return t>=zR?Math.round(e/zR)+\"d\":t>=VP?Math.round(e/VP)+\"h\":t>=WP?Math.round(e/WP)+\"m\":t>=jP?Math.round(e/jP)+\"s\":e+\"ms\"}function lDt(e){var t=Math.abs(e);return t>=zR?j$(e,t,zR,\"day\"):t>=VP?j$(e,t,VP,\"hour\"):t>=WP?j$(e,t,WP,\"minute\"):t>=jP?j$(e,t,jP,\"second\"):e+\" ms\"}function j$(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+\" \"+r+(o?\"s\":\"\")}});var aJe=me((Olr,iJe)=>{f();function dDt(e){n.debug=n,n.default=n,n.coerce=l,n.disable=i,n.enable=o,n.enabled=a,n.humanize=oJe(),n.destroy=d,Object.keys(e).forEach(m=>{n[m]=e[m]}),n.names=[],n.skips=[],n.formatters={};function t(m){let h=0;for(let g=0;g<m.length;g++)h=(h<<5)-h+m.charCodeAt(g),h|=0;return n.colors[Math.abs(h)%n.colors.length]}n.selectColor=t;function n(m){let h,g=null,y,w;function x(...I){if(!x.enabled)return;let C=x,M=Number(new Date),B=M-(h||M);C.diff=B,C.prev=h,C.curr=M,h=M,I[0]=n.coerce(I[0]),typeof I[0]!=\"string\"&&I.unshift(\"%O\");let z=0;I[0]=I[0].replace(/%([a-zA-Z%])/g,(J,ne)=>{if(J===\"%%\")return\"%\";z++;let ie=n.formatters[ne];if(typeof ie==\"function\"){let ae=I[z];J=ie.call(C,ae),I.splice(z,1),z--}return J}),n.formatArgs.call(C,I),(C.log||n.log).apply(C,I)}return x.namespace=m,x.useColors=n.useColors(),x.color=n.selectColor(m),x.extend=r,x.destroy=n.destroy,Object.defineProperty(x,\"enabled\",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(y!==n.namespaces&&(y=n.namespaces,w=n.enabled(m)),w),set:I=>{g=I}}),typeof n.init==\"function\"&&n.init(x),x}function r(m,h){let g=n(this.namespace+(typeof h>\"u\"?\":\":h)+m);return g.log=this.log,g}function o(m){n.save(m),n.namespaces=m,n.names=[],n.skips=[];let h,g=(typeof m==\"string\"?m:\"\").split(/[\\\\s,]+/),y=g.length;for(h=0;h<y;h++)g[h]&&(m=g[h].replace(/\\\\*/g,\".*?\"),m[0]===\"-\"?n.skips.push(new RegExp(\"^\"+m.slice(1)+\"$\")):n.names.push(new RegExp(\"^\"+m+\"$\")))}function i(){let m=[...n.names.map(c),...n.skips.map(c).map(h=>\"-\"+h)].join(\",\");return n.enable(\"\"),m}function a(m){if(m[m.length-1]===\"*\")return!0;let h,g;for(h=0,g=n.skips.length;h<g;h++)if(n.skips[h].test(m))return!1;for(h=0,g=n.names.length;h<g;h++)if(n.names[h].test(m))return!0;return!1}function c(m){return m.toString().substring(2,m.toString().length-2).replace(/\\\\.\\\\*\\\\?$/,\"*\")}function l(m){return m instanceof Error?m.stack||m.message:m}function d(){console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\")}return n.enable(n.load()),n}iJe.exports=dDt});var sJe=me((x0,W$)=>{f();x0.formatArgs=pDt;x0.save=hDt;x0.load=mDt;x0.useColors=fDt;x0.storage=gDt();x0.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\"))}})();x0.colors=[\"#0000CC\",\"#0000FF\",\"#0033CC\",\"#0033FF\",\"#0066CC\",\"#0066FF\",\"#0099CC\",\"#0099FF\",\"#00CC00\",\"#00CC33\",\"#00CC66\",\"#00CC99\",\"#00CCCC\",\"#00CCFF\",\"#3300CC\",\"#3300FF\",\"#3333CC\",\"#3333FF\",\"#3366CC\",\"#3366FF\",\"#3399CC\",\"#3399FF\",\"#33CC00\",\"#33CC33\",\"#33CC66\",\"#33CC99\",\"#33CCCC\",\"#33CCFF\",\"#6600CC\",\"#6600FF\",\"#6633CC\",\"#6633FF\",\"#66CC00\",\"#66CC33\",\"#9900CC\",\"#9900FF\",\"#9933CC\",\"#9933FF\",\"#99CC00\",\"#99CC33\",\"#CC0000\",\"#CC0033\",\"#CC0066\",\"#CC0099\",\"#CC00CC\",\"#CC00FF\",\"#CC3300\",\"#CC3333\",\"#CC3366\",\"#CC3399\",\"#CC33CC\",\"#CC33FF\",\"#CC6600\",\"#CC6633\",\"#CC9900\",\"#CC9933\",\"#CCCC00\",\"#CCCC33\",\"#FF0000\",\"#FF0033\",\"#FF0066\",\"#FF0099\",\"#FF00CC\",\"#FF00FF\",\"#FF3300\",\"#FF3333\",\"#FF3366\",\"#FF3399\",\"#FF33CC\",\"#FF33FF\",\"#FF6600\",\"#FF6633\",\"#FF9900\",\"#FF9933\",\"#FFCC00\",\"#FFCC33\"];function fDt(){return typeof window<\"u\"&&window.process&&(window.process.type===\"renderer\"||window.process.__nwjs)?!0:typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\\\\/(\\\\d+)/)?!1:typeof document<\"u\"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<\"u\"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\\\\/(\\\\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\\\\/(\\\\d+)/)}function pDt(e){if(e[0]=(this.useColors?\"%c\":\"\")+this.namespace+(this.useColors?\" %c\":\" \")+e[0]+(this.useColors?\"%c \":\" \")+\"+\"+W$.exports.humanize(this.diff),!this.useColors)return;let t=\"color: \"+this.color;e.splice(1,0,t,\"color: inherit\");let n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!==\"%%\"&&(n++,o===\"%c\"&&(r=n))}),e.splice(r,0,t)}x0.log=console.debug||console.log||(()=>{});function hDt(e){try{e?x0.storage.setItem(\"debug\",e):x0.storage.removeItem(\"debug\")}catch{}}function mDt(){let e;try{e=x0.storage.getItem(\"debug\")}catch{}return!e&&typeof process<\"u\"&&\"env\"in process&&(e=process.env.DEBUG),e}function gDt(){try{return localStorage}catch{}}W$.exports=aJe()(x0);var{formatters:yDt}=W$.exports;yDt.j=function(e){try{return JSON.stringify(e)}catch(t){return\"[UnexpectedJSONParseError]: \"+t.message}}});var gJe=me((Mlr,mJe)=>{\"use strict\";f();var pye=Object.defineProperty,bDt=Object.getOwnPropertyDescriptor,vDt=Object.getOwnPropertyNames,wDt=Object.prototype.hasOwnProperty,xDt=(e,t)=>{for(var n in t)pye(e,n,{get:t[n],enumerable:!0})},EDt=(e,t,n,r)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let o of vDt(t))!wDt.call(e,o)&&o!==n&&pye(e,o,{get:()=>t[o],enumerable:!(r=bDt(t,o))||r.enumerable});return e},ADt=e=>EDt(pye({},\"__esModule\",{value:!0}),e),cJe={};xDt(cJe,{createFinalURL:()=>hJe,createPathBasedClient:()=>RDt,createQuerySerializer:()=>lye,default:()=>lJe,defaultBodySerializer:()=>pJe,defaultPathSerializer:()=>fJe,mergeHeaders:()=>dye,randomID:()=>uJe,removeTrailingSlash:()=>fye,serializeArrayParam:()=>mye,serializeObjectParam:()=>hye,serializePrimitiveParam:()=>qF,wrapAsPathBasedClient:()=>dJe});mJe.exports=ADt(cJe);var SDt=/\\\\{[^{}]+\\\\}/g,_Dt=()=>typeof process==\"object\"&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici;function uJe(){return Math.random().toString(36).slice(2,11)}function lJe(e){let{baseUrl:t=\"\",Request:n=globalThis.Request,fetch:r=globalThis.fetch,querySerializer:o,bodySerializer:i,headers:a,requestInitExt:c=void 0,...l}={...e};c=_Dt()?c:void 0,t=fye(t);let d=[];async function m(h,g){let{baseUrl:y,fetch:w=r,Request:x=n,headers:I,params:C={},parseAs:M=\"json\",querySerializer:B,bodySerializer:z=i??pJe,body:G,...J}=g||{},ne=t;y&&(ne=fye(y)??t);let ie=typeof o==\"function\"?o:lye(o);B&&(ie=typeof B==\"function\"?B:lye({...typeof o==\"object\"?o:{},...B}));let ae=G===void 0?void 0:z(G,dye(a,I,C.header)),te=dye(ae===void 0||ae instanceof FormData?{}:{\"Content-Type\":\"application/json\"},a,I,C.header),Z={redirect:\"follow\",...l,...J,body:ae,headers:te},X,F,R=new n(hJe(h,{baseUrl:ne,params:C,querySerializer:ie}),Z),O;for(let P in J)P in R||(R[P]=J[P]);if(d.length){X=uJe(),F=Object.freeze({baseUrl:ne,fetch:w,parseAs:M,querySerializer:ie,bodySerializer:z});for(let P of d)if(P&&typeof P==\"object\"&&typeof P.onRequest==\"function\"){let L=await P.onRequest({request:R,schemaPath:h,params:C,options:F,id:X});if(L)if(L instanceof n)R=L;else if(L instanceof Response){O=L;break}else throw new Error(\"onRequest: must return new Request() or Response() when modifying the request\")}}if(!O){try{O=await w(R,c)}catch(P){let L=P;if(d.length)for(let W=d.length-1;W>=0;W--){let q=d[W];if(q&&typeof q==\"object\"&&typeof q.onError==\"function\"){let H=await q.onError({request:R,error:L,schemaPath:h,params:C,options:F,id:X});if(H){if(H instanceof Response){L=void 0,O=H;break}if(H instanceof Error){L=H;continue}throw new Error(\"onError: must return new Response() or instance of Error\")}}}if(L)throw L}if(d.length)for(let P=d.length-1;P>=0;P--){let L=d[P];if(L&&typeof L==\"object\"&&typeof L.onResponse==\"function\"){let W=await L.onResponse({request:R,response:O,schemaPath:h,params:C,options:F,id:X});if(W){if(!(W instanceof Response))throw new Error(\"onResponse: must return new Response() when modifying the response\");O=W}}}}if(O.status===204||R.method===\"HEAD\"||O.headers.get(\"Content-Length\")===\"0\")return O.ok?{data:void 0,response:O}:{error:void 0,response:O};if(O.ok)return M===\"stream\"?{data:O.body,response:O}:{data:await O[M](),response:O};let U=await O.text();try{U=JSON.parse(U)}catch{}return{error:U,response:O}}return{request(h,g,y){return m(g,{...y,method:h.toUpperCase()})},GET(h,g){return m(h,{...g,method:\"GET\"})},PUT(h,g){return m(h,{...g,method:\"PUT\"})},POST(h,g){return m(h,{...g,method:\"POST\"})},DELETE(h,g){return m(h,{...g,method:\"DELETE\"})},OPTIONS(h,g){return m(h,{...g,method:\"OPTIONS\"})},HEAD(h,g){return m(h,{...g,method:\"HEAD\"})},PATCH(h,g){return m(h,{...g,method:\"PATCH\"})},TRACE(h,g){return m(h,{...g,method:\"TRACE\"})},use(...h){for(let g of h)if(g){if(typeof g!=\"object\"||!(\"onRequest\"in g||\"onResponse\"in g||\"onError\"in g))throw new Error(\"Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`\");d.push(g)}},eject(...h){for(let g of h){let y=d.indexOf(g);y!==-1&&d.splice(y,1)}}}}var TDt=class{constructor(e,t){ss(this,\"GET\",e=>this.client.GET(this.url,e));ss(this,\"PUT\",e=>this.client.PUT(this.url,e));ss(this,\"POST\",e=>this.client.POST(this.url,e));ss(this,\"DELETE\",e=>this.client.DELETE(this.url,e));ss(this,\"OPTIONS\",e=>this.client.OPTIONS(this.url,e));ss(this,\"HEAD\",e=>this.client.HEAD(this.url,e));ss(this,\"PATCH\",e=>this.client.PATCH(this.url,e));ss(this,\"TRACE\",e=>this.client.TRACE(this.url,e));this.client=e,this.url=t}},CDt=class{constructor(){this.client=null}get(e,t){let n=new TDt(e,t);return this.client[t]=n,n}};function dJe(e){let t=new CDt,n=new Proxy(e,t);function r(){}r.prototype=n;let o=new r;return t.client=o,o}function RDt(e){return dJe(lJe(e))}function qF(e,t,n){if(t==null)return\"\";if(typeof t==\"object\")throw new Error(\"Deeply-nested arrays/objects aren\\\\u2019t supported. Provide your own `querySerializer()` to handle these.\");return`${e}=${n?.allowReserved===!0?t:encodeURIComponent(t)}`}function hye(e,t,n){if(!t||typeof t!=\"object\")return\"\";let r=[],o={simple:\",\",label:\".\",matrix:\";\"}[n.style]||\"&\";if(n.style!==\"deepObject\"&&n.explode===!1){for(let c in t)r.push(c,n.allowReserved===!0?t[c]:encodeURIComponent(t[c]));let a=r.join(\",\");switch(n.style){case\"form\":return`${e}=${a}`;case\"label\":return`.${a}`;case\"matrix\":return`;${e}=${a}`;default:return a}}for(let a in t){let c=n.style===\"deepObject\"?`${e}[${a}]`:a;r.push(qF(c,t[a],n))}let i=r.join(o);return n.style===\"label\"||n.style===\"matrix\"?`${o}${i}`:i}function mye(e,t,n){if(!Array.isArray(t))return\"\";if(n.explode===!1){let i={form:\",\",spaceDelimited:\"%20\",pipeDelimited:\"|\"}[n.style]||\",\",a=(n.allowReserved===!0?t:t.map(c=>encodeURIComponent(c))).join(i);switch(n.style){case\"simple\":return a;case\"label\":return`.${a}`;case\"matrix\":return`;${e}=${a}`;default:return`${e}=${a}`}}let r={simple:\",\",label:\".\",matrix:\";\"}[n.style]||\"&\",o=[];for(let i of t)n.style===\"simple\"||n.style===\"label\"?o.push(n.allowReserved===!0?i:encodeURIComponent(i)):o.push(qF(e,i,n));return n.style===\"label\"||n.style===\"matrix\"?`${r}${o.join(r)}`:o.join(r)}function lye(e){return function(n){let r=[];if(n&&typeof n==\"object\")for(let o in n){let i=n[o];if(i!=null){if(Array.isArray(i)){if(i.length===0)continue;r.push(mye(o,i,{style:\"form\",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if(typeof i==\"object\"){r.push(hye(o,i,{style:\"deepObject\",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}r.push(qF(o,i,e))}}return r.join(\"&\")}}function fJe(e,t){let n=e;for(let r of e.match(SDt)??[]){let o=r.substring(1,r.length-1),i=!1,a=\"simple\";if(o.endsWith(\"*\")&&(i=!0,o=o.substring(0,o.length-1)),o.startsWith(\".\")?(a=\"label\",o=o.substring(1)):o.startsWith(\";\")&&(a=\"matrix\",o=o.substring(1)),!t||t[o]===void 0||t[o]===null)continue;let c=t[o];if(Array.isArray(c)){n=n.replace(r,mye(o,c,{style:a,explode:i}));continue}if(typeof c==\"object\"){n=n.replace(r,hye(o,c,{style:a,explode:i}));continue}if(a===\"matrix\"){n=n.replace(r,`;${qF(o,c)}`);continue}n=n.replace(r,a===\"label\"?`.${encodeURIComponent(c)}`:encodeURIComponent(c))}return n}function pJe(e,t){return e instanceof FormData?e:t&&(t.get instanceof Function?t.get(\"Content-Type\")??t.get(\"content-type\"):t[\"Content-Type\"]??t[\"content-type\"])===\"application/x-www-form-urlencoded\"?new URLSearchParams(e).toString():JSON.stringify(e)}function hJe(e,t){let n=`${t.baseUrl}${e}`;t.params?.path&&(n=fJe(n,t.params.path));let r=t.querySerializer(t.params.query??{});return r.startsWith(\"?\")&&(r=r.substring(1)),r&&(n+=`?${r}`),n}function dye(...e){let t=new Headers;for(let n of e){if(!n||typeof n!=\"object\")continue;let r=n instanceof Headers?n.entries():Object.entries(n);for(let[o,i]of r)if(i===null)t.delete(o);else if(Array.isArray(i))for(let a of i)t.append(o,a);else i!==void 0&&t.set(o,i)}return t}function fye(e){return e.endsWith(\"/\")?e.substring(0,e.length-1):e}});var xJe=me((Flr,wJe)=>{\"use strict\";f();var IDt=Object.create,V$=Object.defineProperty,kDt=Object.getOwnPropertyDescriptor,ODt=Object.getOwnPropertyNames,NDt=Object.getPrototypeOf,PDt=Object.prototype.hasOwnProperty,MDt=(e,t)=>{for(var n in t)V$(e,n,{get:t[n],enumerable:!0})},bJe=(e,t,n,r)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let o of ODt(t))!PDt.call(e,o)&&o!==n&&V$(e,o,{get:()=>t[o],enumerable:!(r=kDt(t,o))||r.enumerable});return e},DDt=(e,t,n)=>(n=e!=null?IDt(NDt(e)):{},bJe(t||!e||!e.__esModule?V$(n,\"default\",{value:e,enumerable:!0}):n,e)),BDt=e=>bJe(V$({},\"__esModule\",{value:!0}),e),vJe={};MDt(vJe,{analytics:()=>VDt});wJe.exports=BDt(vJe);var LDt=DDt(gJe()),UDt=class{constructor(e){this.batch=[],this.maxTimeoutMs=3e4,this.timeoutId=null,this.isSending=!1,this.batchSize=e.batchSize,this.baseTimeoutMs=e.baseTimeoutMs,this.currentTimeoutMs=e.baseTimeoutMs,this.sendFn=e.sendFn}enqueue(e){this.batch.push(e),this.schedule()}schedule(){this.batch.length>0&&!this.timeoutId&&(this.timeoutId=setTimeout(()=>{this.timeoutId=null,this.flush()},this.currentTimeoutMs))}async flush(){if(this.isSending||this.batch.length===0)return;this.isSending=!0;let e=[...this.batch.slice(0,this.batchSize)];this.batch=this.batch.slice(this.batchSize);try{await this.sendFn(e),this.currentTimeoutMs=this.baseTimeoutMs}catch(t){console.error(\"Sender: Failed to send batch\",t),this.batch=[...e,...this.batch],this.currentTimeoutMs=Math.min(this.currentTimeoutMs*2,this.maxTimeoutMs)}finally{this.isSending=!1,this.schedule()}}},FDt=UDt,HDt=class{constructor(e){this.enabled=!1,this.properties={};let t=(0,LDt.default)({baseUrl:e}),n=async r=>{let o=await t.POST(\"/v1/events\",{body:r});if(o.response.status!==200)throw new Error(o.error)};this.sender=new FDt({batchSize:100,baseTimeoutMs:200,sendFn:n})}enable(){this.enabled=!0}setGlobalProperty(e,t){this.properties[e]=t}track(e,t){if(!this.enabled)return;let n={name:e,...this.properties,...t};this.sender.enqueue(n)}},zDt=HDt,gye,yJe;typeof process<\"u\"&&process.env&&(gye=(yJe=process.env.METAMASK_ANALYTICS_ENDPOINT)!=null?yJe:process.env.NEXT_PUBLIC_METAMASK_ANALYTICS_ENDPOINT);var jDt=gye??\"https://mm-sdk-analytics.api.cx.metamask.io/\",WDt=new zDt(jDt),VDt=WDt});var SJe=me((EJe,AJe)=>{f();(function(e){var t=Object.hasOwnProperty,n=Array.isArray?Array.isArray:function(L){return Object.prototype.toString.call(L)===\"[object Array]\"},r=10,o=typeof process==\"object\"&&typeof process.nextTick==\"function\",i=typeof Symbol==\"function\",a=typeof Reflect==\"object\",c=typeof setImmediate==\"function\",l=c?setImmediate:setTimeout,d=i?a&&typeof Reflect.ownKeys==\"function\"?Reflect.ownKeys:function(P){var L=Object.getOwnPropertyNames(P);return L.push.apply(L,Object.getOwnPropertySymbols(P)),L}:Object.keys;function m(){this._events={},this._conf&&h.call(this,this._conf)}function h(P){P&&(this._conf=P,P.delimiter&&(this.delimiter=P.delimiter),P.maxListeners!==e&&(this._maxListeners=P.maxListeners),P.wildcard&&(this.wildcard=P.wildcard),P.newListener&&(this._newListener=P.newListener),P.removeListener&&(this._removeListener=P.removeListener),P.verboseMemoryLeak&&(this.verboseMemoryLeak=P.verboseMemoryLeak),P.ignoreErrors&&(this.ignoreErrors=P.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function g(P,L){var W=\"(node) warning: possible EventEmitter memory leak detected. \"+P+\" listeners added. Use emitter.setMaxListeners() to increase limit.\";if(this.verboseMemoryLeak&&(W+=\" Event name: \"+L+\".\"),typeof process<\"u\"&&process.emitWarning){var q=new Error(W);q.name=\"MaxListenersExceededWarning\",q.emitter=this,q.count=P,process.emitWarning(q)}else console.error(W),console.trace&&console.trace()}var y=function(P,L,W){var q=arguments.length;switch(q){case 0:return[];case 1:return[P];case 2:return[P,L];case 3:return[P,L,W];default:for(var H=new Array(q);q--;)H[q]=arguments[q];return H}};function w(P,L){for(var W={},q,H=P.length,k=L?L.length:0,V=0;V<H;V++)q=P[V],W[q]=V<k?L[V]:e;return W}function x(P,L,W){this._emitter=P,this._target=L,this._listeners={},this._listenersCount=0;var q,H;if((W.on||W.off)&&(q=W.on,H=W.off),L.addEventListener?(q=L.addEventListener,H=L.removeEventListener):L.addListener?(q=L.addListener,H=L.removeListener):L.on&&(q=L.on,H=L.off),!q&&!H)throw Error(\"target does not implement any known event API\");if(typeof q!=\"function\")throw TypeError(\"on method must be a function\");if(typeof H!=\"function\")throw TypeError(\"off method must be a function\");this._on=q,this._off=H;var k=P._observers;k?k.push(this):P._observers=[this]}Object.assign(x.prototype,{subscribe:function(P,L,W){var q=this,H=this._target,k=this._emitter,V=this._listeners,oe=function(){var se=y.apply(null,arguments),ue={data:se,name:L,original:P};if(W){var he=W.call(H,ue);he!==!1&&k.emit.apply(k,[ue.name].concat(se));return}k.emit.apply(k,[L].concat(se))};if(V[P])throw Error(\"Event \\'\"+P+\"\\' is already listening\");this._listenersCount++,k._newListener&&k._removeListener&&!q._onNewListener?(this._onNewListener=function(se){se===L&&V[P]===null&&(V[P]=oe,q._on.call(H,P,oe))},k.on(\"newListener\",this._onNewListener),this._onRemoveListener=function(se){se===L&&!k.hasListeners(se)&&V[P]&&(V[P]=null,q._off.call(H,P,oe))},V[P]=null,k.on(\"removeListener\",this._onRemoveListener)):(V[P]=oe,q._on.call(H,P,oe))},unsubscribe:function(P){var L=this,W=this._listeners,q=this._emitter,H,k,V=this._off,oe=this._target,se;if(P&&typeof P!=\"string\")throw TypeError(\"event must be a string\");function ue(){L._onNewListener&&(q.off(\"newListener\",L._onNewListener),q.off(\"removeListener\",L._onRemoveListener),L._onNewListener=null,L._onRemoveListener=null);var he=J.call(q,L);q._observers.splice(he,1)}if(P){if(H=W[P],!H)return;V.call(oe,P,H),delete W[P],--this._listenersCount||ue()}else{for(k=d(W),se=k.length;se-- >0;)P=k[se],V.call(oe,P,W[P]);this._listeners={},this._listenersCount=0,ue()}}});function I(P,L,W,q){var H=Object.assign({},L);if(!P)return H;if(typeof P!=\"object\")throw TypeError(\"options must be an object\");var k=Object.keys(P),V=k.length,oe,se,ue;function he(we){throw Error(\\'Invalid \"\\'+oe+\\'\" option value\\'+(we?\". Reason: \"+we:\"\"))}for(var be=0;be<V;be++){if(oe=k[be],!q&&!t.call(L,oe))throw Error(\\'Unknown \"\\'+oe+\\'\" option\\');se=P[oe],se!==e&&(ue=W[oe],H[oe]=ue?ue(se,he):se)}return H}function C(P,L){return(typeof P!=\"function\"||!P.hasOwnProperty(\"prototype\"))&&L(\"value must be a constructor\"),P}function M(P){var L=\"value must be type of \"+P.join(\"|\"),W=P.length,q=P[0],H=P[1];return W===1?function(k,V){if(typeof k===q)return k;V(L)}:W===2?function(k,V){var oe=typeof k;if(oe===q||oe===H)return k;V(L)}:function(k,V){for(var oe=typeof k,se=W;se-- >0;)if(oe===P[se])return k;V(L)}}var B=M([\"function\"]),z=M([\"object\",\"function\"]);function G(P,L,W){var q,H,k=0,V,oe=new P(function(se,ue,he){W=I(W,{timeout:0,overload:!1},{timeout:function(_e,Ve){return _e*=1,(typeof _e!=\"number\"||_e<0||!Number.isFinite(_e))&&Ve(\"timeout must be a positive number\"),_e}}),q=!W.overload&&typeof P.prototype.cancel==\"function\"&&typeof he==\"function\";function be(){H&&(H=null),k&&(clearTimeout(k),k=0)}var we=function(_e){be(),se(_e)},Ie=function(_e){be(),ue(_e)};q?L(we,Ie,he):(H=[function(_e){Ie(_e||Error(\"canceled\"))}],L(we,Ie,function(_e){if(V)throw Error(\"Unable to subscribe on cancel event asynchronously\");if(typeof _e!=\"function\")throw TypeError(\"onCancel callback must be a function\");H.push(_e)}),V=!0),W.timeout>0&&(k=setTimeout(function(){var _e=Error(\"timeout\");_e.code=\"ETIMEDOUT\",k=0,oe.cancel(_e),ue(_e)},W.timeout))});return q||(oe.cancel=function(se){if(H){for(var ue=H.length,he=1;he<ue;he++)H[he](se);H[0](se),H=null}}),oe}function J(P){var L=this._observers;if(!L)return-1;for(var W=L.length,q=0;q<W;q++)if(L[q]._target===P)return q;return-1}function ne(P,L,W,q,H){if(!W)return null;if(q===0){var k=typeof L;if(k===\"string\"){var V,oe,se=0,ue=0,he=this.delimiter,be=he.length;if((oe=L.indexOf(he))!==-1){V=new Array(5);do V[se++]=L.slice(ue,oe),ue=oe+be;while((oe=L.indexOf(he,ue))!==-1);V[se++]=L.slice(ue),L=V,H=se}else L=[L],H=1}else k===\"object\"?H=L.length:(L=[L],H=1)}var we=null,Ie,_e,Ve,Et,qe,Xe=L[q],rt=L[q+1],wt,ot;if(q===H)W._listeners&&(typeof W._listeners==\"function\"?(P&&P.push(W._listeners),we=[W]):(P&&P.push.apply(P,W._listeners),we=[W]));else if(Xe===\"*\"){for(wt=d(W),oe=wt.length;oe-- >0;)Ie=wt[oe],Ie!==\"_listeners\"&&(ot=ne(P,L,W[Ie],q+1,H),ot&&(we?we.push.apply(we,ot):we=ot));return we}else if(Xe===\"**\"){for(qe=q+1===H||q+2===H&&rt===\"*\",qe&&W._listeners&&(we=ne(P,L,W,H,H)),wt=d(W),oe=wt.length;oe-- >0;)Ie=wt[oe],Ie!==\"_listeners\"&&(Ie===\"*\"||Ie===\"**\"?(W[Ie]._listeners&&!qe&&(ot=ne(P,L,W[Ie],H,H),ot&&(we?we.push.apply(we,ot):we=ot)),ot=ne(P,L,W[Ie],q,H)):Ie===rt?ot=ne(P,L,W[Ie],q+2,H):ot=ne(P,L,W[Ie],q,H),ot&&(we?we.push.apply(we,ot):we=ot));return we}else W[Xe]&&(we=ne(P,L,W[Xe],q+1,H));if(_e=W[\"*\"],_e&&ne(P,L,_e,q+1,H),Ve=W[\"**\"],Ve)if(q<H)for(Ve._listeners&&ne(P,L,Ve,H,H),wt=d(Ve),oe=wt.length;oe-- >0;)Ie=wt[oe],Ie!==\"_listeners\"&&(Ie===rt?ne(P,L,Ve[Ie],q+2,H):Ie===Xe?ne(P,L,Ve[Ie],q+1,H):(Et={},Et[Ie]=Ve[Ie],ne(P,L,{\"**\":Et},q+1,H)));else Ve._listeners?ne(P,L,Ve,H,H):Ve[\"*\"]&&Ve[\"*\"]._listeners&&ne(P,L,Ve[\"*\"],H,H);return we}function ie(P,L,W){var q=0,H=0,k,V=this.delimiter,oe=V.length,se;if(typeof P==\"string\")if((k=P.indexOf(V))!==-1){se=new Array(5);do se[q++]=P.slice(H,k),H=k+oe;while((k=P.indexOf(V,H))!==-1);se[q++]=P.slice(H)}else se=[P],q=1;else se=P,q=P.length;if(q>1){for(k=0;k+1<q;k++)if(se[k]===\"**\"&&se[k+1]===\"**\")return}var ue=this.listenerTree,he;for(k=0;k<q;k++)if(he=se[k],ue=ue[he]||(ue[he]={}),k===q-1)return ue._listeners?(typeof ue._listeners==\"function\"&&(ue._listeners=[ue._listeners]),W?ue._listeners.unshift(L):ue._listeners.push(L),!ue._listeners.warned&&this._maxListeners>0&&ue._listeners.length>this._maxListeners&&(ue._listeners.warned=!0,g.call(this,ue._listeners.length,he))):ue._listeners=L,!0;return!0}function ae(P,L,W,q){for(var H=d(P),k=H.length,V,oe,se,ue=P._listeners,he;k-- >0;)oe=H[k],V=P[oe],oe===\"_listeners\"?se=W:se=W?W.concat(oe):[oe],he=q||typeof oe==\"symbol\",ue&&L.push(he?se:se.join(this.delimiter)),typeof V==\"object\"&&ae.call(this,V,L,se,he);return L}function te(P){for(var L=d(P),W=L.length,q,H,k;W-- >0;)H=L[W],q=P[H],q&&(k=!0,H!==\"_listeners\"&&!te(q)&&delete P[H]);return k}function Z(P,L,W){this.emitter=P,this.event=L,this.listener=W}Z.prototype.off=function(){return this.emitter.off(this.event,this.listener),this};function X(P,L,W){if(W===!0)H=!0;else if(W===!1)q=!0;else{if(!W||typeof W!=\"object\")throw TypeError(\"options should be an object or true\");var q=W.async,H=W.promisify,k=W.nextTick,V=W.objectify}if(q||k||H){var oe=L,se=L._origin||L;if(k&&!o)throw Error(\"process.nextTick is not supported\");H===e&&(H=L.constructor.name===\"AsyncFunction\"),L=function(){var ue=arguments,he=this,be=this.event;return H?k?Promise.resolve():new Promise(function(we){l(we)}).then(function(){return he.event=be,oe.apply(he,ue)}):(k?process.nextTick:l)(function(){he.event=be,oe.apply(he,ue)})},L._async=!0,L._origin=se}return[L,V?new Z(this,P,L):this]}function F(P){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,h.call(this,P)}F.EventEmitter2=F,F.prototype.listenTo=function(P,L,W){if(typeof P!=\"object\")throw TypeError(\"target musts be an object\");var q=this;W=I(W,{on:e,off:e,reducers:e},{on:B,off:B,reducers:z});function H(k){if(typeof k!=\"object\")throw TypeError(\"events must be an object\");var V=W.reducers,oe=J.call(q,P),se;oe===-1?se=new x(q,P,W):se=q._observers[oe];for(var ue=d(k),he=ue.length,be,we=typeof V==\"function\",Ie=0;Ie<he;Ie++)be=ue[Ie],se.subscribe(be,k[be]||be,we?V:V&&V[be])}return n(L)?H(w(L)):H(typeof L==\"string\"?w(L.split(/\\\\s+/)):L),this},F.prototype.stopListeningTo=function(P,L){var W=this._observers;if(!W)return!1;var q=W.length,H,k=!1;if(P&&typeof P!=\"object\")throw TypeError(\"target should be an object\");for(;q-- >0;)H=W[q],(!P||H._target===P)&&(H.unsubscribe(L),k=!0);return k},F.prototype.delimiter=\".\",F.prototype.setMaxListeners=function(P){P!==e&&(this._maxListeners=P,this._conf||(this._conf={}),this._conf.maxListeners=P)},F.prototype.getMaxListeners=function(){return this._maxListeners},F.prototype.event=\"\",F.prototype.once=function(P,L,W){return this._once(P,L,!1,W)},F.prototype.prependOnceListener=function(P,L,W){return this._once(P,L,!0,W)},F.prototype._once=function(P,L,W,q){return this._many(P,1,L,W,q)},F.prototype.many=function(P,L,W,q){return this._many(P,L,W,!1,q)},F.prototype.prependMany=function(P,L,W,q){return this._many(P,L,W,!0,q)},F.prototype._many=function(P,L,W,q,H){var k=this;if(typeof W!=\"function\")throw new Error(\"many only accepts instances of Function\");function V(){return--L===0&&k.off(P,V),W.apply(this,arguments)}return V._origin=W,this._on(P,V,q,H)},F.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||m.call(this);var P=arguments[0],L,W=this.wildcard,q,H,k,V,oe;if(P===\"newListener\"&&!this._newListener&&!this._events.newListener)return!1;if(W&&(L=P,P!==\"newListener\"&&P!==\"removeListener\"&&typeof P==\"object\")){if(H=P.length,i){for(k=0;k<H;k++)if(typeof P[k]==\"symbol\"){oe=!0;break}}oe||(P=P.join(this.delimiter))}var se=arguments.length,ue;if(this._all&&this._all.length)for(ue=this._all.slice(),k=0,H=ue.length;k<H;k++)switch(this.event=P,se){case 1:ue[k].call(this,P);break;case 2:ue[k].call(this,P,arguments[1]);break;case 3:ue[k].call(this,P,arguments[1],arguments[2]);break;default:ue[k].apply(this,arguments)}if(W)ue=[],ne.call(this,ue,L,this.listenerTree,0,H);else if(ue=this._events[P],typeof ue==\"function\"){switch(this.event=P,se){case 1:ue.call(this);break;case 2:ue.call(this,arguments[1]);break;case 3:ue.call(this,arguments[1],arguments[2]);break;default:for(q=new Array(se-1),V=1;V<se;V++)q[V-1]=arguments[V];ue.apply(this,q)}return!0}else ue&&(ue=ue.slice());if(ue&&ue.length){if(se>3)for(q=new Array(se-1),V=1;V<se;V++)q[V-1]=arguments[V];for(k=0,H=ue.length;k<H;k++)switch(this.event=P,se){case 1:ue[k].call(this);break;case 2:ue[k].call(this,arguments[1]);break;case 3:ue[k].call(this,arguments[1],arguments[2]);break;default:ue[k].apply(this,q)}return!0}else if(!this.ignoreErrors&&!this._all&&P===\"error\")throw arguments[1]instanceof Error?arguments[1]:new Error(\"Uncaught, unspecified \\'error\\' event.\");return!!this._all},F.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||m.call(this);var P=arguments[0],L=this.wildcard,W,q,H,k,V,oe;if(P===\"newListener\"&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(L&&(W=P,P!==\"newListener\"&&P!==\"removeListener\"&&typeof P==\"object\")){if(k=P.length,i){for(V=0;V<k;V++)if(typeof P[V]==\"symbol\"){q=!0;break}}q||(P=P.join(this.delimiter))}var se=[],ue=arguments.length,he;if(this._all)for(V=0,k=this._all.length;V<k;V++)switch(this.event=P,ue){case 1:se.push(this._all[V].call(this,P));break;case 2:se.push(this._all[V].call(this,P,arguments[1]));break;case 3:se.push(this._all[V].call(this,P,arguments[1],arguments[2]));break;default:se.push(this._all[V].apply(this,arguments))}if(L?(he=[],ne.call(this,he,W,this.listenerTree,0)):he=this._events[P],typeof he==\"function\")switch(this.event=P,ue){case 1:se.push(he.call(this));break;case 2:se.push(he.call(this,arguments[1]));break;case 3:se.push(he.call(this,arguments[1],arguments[2]));break;default:for(H=new Array(ue-1),oe=1;oe<ue;oe++)H[oe-1]=arguments[oe];se.push(he.apply(this,H))}else if(he&&he.length){if(he=he.slice(),ue>3)for(H=new Array(ue-1),oe=1;oe<ue;oe++)H[oe-1]=arguments[oe];for(V=0,k=he.length;V<k;V++)switch(this.event=P,ue){case 1:se.push(he[V].call(this));break;case 2:se.push(he[V].call(this,arguments[1]));break;case 3:se.push(he[V].call(this,arguments[1],arguments[2]));break;default:se.push(he[V].apply(this,H))}}else if(!this.ignoreErrors&&!this._all&&P===\"error\")return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject(\"Uncaught, unspecified \\'error\\' event.\");return Promise.all(se)},F.prototype.on=function(P,L,W){return this._on(P,L,!1,W)},F.prototype.prependListener=function(P,L,W){return this._on(P,L,!0,W)},F.prototype.onAny=function(P){return this._onAny(P,!1)},F.prototype.prependAny=function(P){return this._onAny(P,!0)},F.prototype.addListener=F.prototype.on,F.prototype._onAny=function(P,L){if(typeof P!=\"function\")throw new Error(\"onAny only accepts instances of Function\");return this._all||(this._all=[]),L?this._all.unshift(P):this._all.push(P),this},F.prototype._on=function(P,L,W,q){if(typeof P==\"function\")return this._onAny(P,L),this;if(typeof L!=\"function\")throw new Error(\"on only accepts instances of Function\");this._events||m.call(this);var H=this,k;return q!==e&&(k=X.call(this,P,L,q),L=k[0],H=k[1]),this._newListener&&this.emit(\"newListener\",P,L),this.wildcard?(ie.call(this,P,L,W),H):(this._events[P]?(typeof this._events[P]==\"function\"&&(this._events[P]=[this._events[P]]),W?this._events[P].unshift(L):this._events[P].push(L),!this._events[P].warned&&this._maxListeners>0&&this._events[P].length>this._maxListeners&&(this._events[P].warned=!0,g.call(this,this._events[P].length,P))):this._events[P]=L,H)},F.prototype.off=function(P,L){if(typeof L!=\"function\")throw new Error(\"removeListener only takes instances of Function\");var W,q=[];if(this.wildcard){var H=typeof P==\"string\"?P.split(this.delimiter):P.slice();if(q=ne.call(this,null,H,this.listenerTree,0),!q)return this}else{if(!this._events[P])return this;W=this._events[P],q.push({_listeners:W})}for(var k=0;k<q.length;k++){var V=q[k];if(W=V._listeners,n(W)){for(var oe=-1,se=0,ue=W.length;se<ue;se++)if(W[se]===L||W[se].listener&&W[se].listener===L||W[se]._origin&&W[se]._origin===L){oe=se;break}if(oe<0)continue;return this.wildcard?V._listeners.splice(oe,1):this._events[P].splice(oe,1),W.length===0&&(this.wildcard?delete V._listeners:delete this._events[P]),this._removeListener&&this.emit(\"removeListener\",P,L),this}else(W===L||W.listener&&W.listener===L||W._origin&&W._origin===L)&&(this.wildcard?delete V._listeners:delete this._events[P],this._removeListener&&this.emit(\"removeListener\",P,L))}return this.listenerTree&&te(this.listenerTree),this},F.prototype.offAny=function(P){var L=0,W=0,q;if(P&&this._all&&this._all.length>0){for(q=this._all,L=0,W=q.length;L<W;L++)if(P===q[L])return q.splice(L,1),this._removeListener&&this.emit(\"removeListenerAny\",P),this}else{if(q=this._all,this._removeListener)for(L=0,W=q.length;L<W;L++)this.emit(\"removeListenerAny\",q[L]);this._all=[]}return this},F.prototype.removeListener=F.prototype.off,F.prototype.removeAllListeners=function(P){if(P===e)return!this._events||m.call(this),this;if(this.wildcard){var L=ne.call(this,null,P,this.listenerTree,0),W,q;if(!L)return this;for(q=0;q<L.length;q++)W=L[q],W._listeners=null;this.listenerTree&&te(this.listenerTree)}else this._events&&(this._events[P]=null);return this},F.prototype.listeners=function(P){var L=this._events,W,q,H,k,V;if(P===e){if(this.wildcard)throw Error(\"event name required for wildcard emitter\");if(!L)return[];for(W=d(L),k=W.length,H=[];k-- >0;)q=L[W[k]],typeof q==\"function\"?H.push(q):H.push.apply(H,q);return H}else{if(this.wildcard){if(V=this.listenerTree,!V)return[];var oe=[],se=typeof P==\"string\"?P.split(this.delimiter):P.slice();return ne.call(this,oe,se,V,0),oe}return L?(q=L[P],q?typeof q==\"function\"?[q]:q:[]):[]}},F.prototype.eventNames=function(P){var L=this._events;return this.wildcard?ae.call(this,this.listenerTree,[],null,P):L?d(L):[]},F.prototype.listenerCount=function(P){return this.listeners(P).length},F.prototype.hasListeners=function(P){if(this.wildcard){var L=[],W=typeof P==\"string\"?P.split(this.delimiter):P.slice();return ne.call(this,L,W,this.listenerTree,0),L.length>0}var q=this._events,H=this._all;return!!(H&&H.length||q&&(P===e?d(q).length:q[P]))},F.prototype.listenersAny=function(){return this._all?this._all:[]},F.prototype.waitFor=function(P,L){var W=this,q=typeof L;return q===\"number\"?L={timeout:L}:q===\"function\"&&(L={filter:L}),L=I(L,{timeout:0,filter:e,handleError:!1,Promise,overload:!1},{filter:B,Promise:C}),G(L.Promise,function(H,k,V){function oe(){var se=L.filter;if(!(se&&!se.apply(W,arguments)))if(W.off(P,oe),L.handleError){var ue=arguments[0];ue?k(ue):H(y.apply(null,arguments).slice(1))}else H(y.apply(null,arguments))}V(function(){W.off(P,oe)}),W._on(P,oe,!1)},{timeout:L.timeout,overload:L.overload})};function R(P,L,W){W=I(W,{Promise,timeout:0,overload:!1},{Promise:C});var q=W.Promise;return G(q,function(H,k,V){var oe;if(typeof P.addEventListener==\"function\"){oe=function(){H(y.apply(null,arguments))},V(function(){P.removeEventListener(L,oe)}),P.addEventListener(L,oe,{once:!0});return}var se=function(){ue&&P.removeListener(\"error\",ue),H(y.apply(null,arguments))},ue;L!==\"error\"&&(ue=function(he){P.removeListener(L,se),k(he)},P.once(\"error\",ue)),V(function(){ue&&P.removeListener(\"error\",ue),P.removeListener(L,se)}),P.once(L,se)},{timeout:W.timeout,overload:W.overload})}var O=F.prototype;if(Object.defineProperties(F,{defaultMaxListeners:{get:function(){return O._maxListeners},set:function(P){if(typeof P!=\"number\"||P<0||Number.isNaN(P))throw TypeError(\"n must be a non-negative number\");O._maxListeners=P},enumerable:!0},once:{value:R,writable:!0,configurable:!0}}),Object.defineProperties(O,{_maxListeners:{value:r,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),typeof define==\"function\"&&define.amd)define(function(){return F});else if(typeof EJe==\"object\")AJe.exports=F;else{var U=new Function(\"\",\"return this\")();U.EventEmitter2=F}})()});function KF(){if(!G$&&(G$=typeof crypto<\"u\"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<\"u\"&&typeof msCrypto.getRandomValues==\"function\"&&msCrypto.getRandomValues.bind(msCrypto),!G$))throw new Error(\"crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported\");return G$(GDt)}var G$,GDt,yye=$(()=>{f();GDt=new Uint8Array(16)});var _Je,TJe=$(()=>{f();_Je=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function qDt(e){return typeof e==\"string\"&&_Je.test(e)}var m1,YF=$(()=>{f();TJe();m1=qDt});function KDt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(jd[e[t+0]]+jd[e[t+1]]+jd[e[t+2]]+jd[e[t+3]]+\"-\"+jd[e[t+4]]+jd[e[t+5]]+\"-\"+jd[e[t+6]]+jd[e[t+7]]+\"-\"+jd[e[t+8]]+jd[e[t+9]]+\"-\"+jd[e[t+10]]+jd[e[t+11]]+jd[e[t+12]]+jd[e[t+13]]+jd[e[t+14]]+jd[e[t+15]]).toLowerCase();if(!m1(n))throw TypeError(\"Stringified UUID is invalid\");return n}var jd,q$,NT,ZF=$(()=>{f();YF();jd=[];for(q$=0;q$<256;++q$)jd.push((q$+256).toString(16).substr(1));NT=KDt});function YDt(e,t,n){var r=t&&n||0,o=t||new Array(16);e=e||{};var i=e.node||CJe,a=e.clockseq!==void 0?e.clockseq:bye;if(i==null||a==null){var c=e.random||(e.rng||KF)();i==null&&(i=CJe=[c[0]|1,c[1],c[2],c[3],c[4],c[5]]),a==null&&(a=bye=(c[6]<<8|c[7])&16383)}var l=e.msecs!==void 0?e.msecs:Date.now(),d=e.nsecs!==void 0?e.nsecs:wye+1,m=l-vye+(d-wye)/1e4;if(m<0&&e.clockseq===void 0&&(a=a+1&16383),(m<0||l>vye)&&e.nsecs===void 0&&(d=0),d>=1e4)throw new Error(\"uuid.v1(): Can\\'t create more than 10M uuids/sec\");vye=l,wye=d,bye=a,l+=122192928e5;var h=((l&268435455)*1e4+d)%4294967296;o[r++]=h>>>24&255,o[r++]=h>>>16&255,o[r++]=h>>>8&255,o[r++]=h&255;var g=l/4294967296*1e4&268435455;o[r++]=g>>>8&255,o[r++]=g&255,o[r++]=g>>>24&15|16,o[r++]=g>>>16&255,o[r++]=a>>>8|128,o[r++]=a&255;for(var y=0;y<6;++y)o[r+y]=i[y];return t||NT(o)}var CJe,bye,vye,wye,RJe,IJe=$(()=>{f();yye();ZF();vye=0,wye=0;RJe=YDt});function ZDt(e){if(!m1(e))throw TypeError(\"Invalid UUID\");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var K$,xye=$(()=>{f();YF();K$=ZDt});function QDt(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}function Y$(e,t,n){function r(o,i,a,c){if(typeof o==\"string\"&&(o=QDt(o)),typeof i==\"string\"&&(i=K$(i)),i.length!==16)throw TypeError(\"Namespace must be array-like (16 iterable integer values, 0-255)\");var l=new Uint8Array(16+o.length);if(l.set(i),l.set(o,i.length),l=n(l),l[6]=l[6]&15|t,l[8]=l[8]&63|128,a){c=c||0;for(var d=0;d<16;++d)a[c+d]=l[d];return a}return NT(l)}try{r.name=e}catch{}return r.DNS=JDt,r.URL=XDt,r}var JDt,XDt,Eye=$(()=>{f();ZF();xye();JDt=\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\",XDt=\"6ba7b811-9dad-11d1-80b4-00c04fd430c8\"});function $Dt(e){if(typeof e==\"string\"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return e7t(t7t(n7t(e),e.length*8))}function e7t(e){for(var t=[],n=e.length*32,r=\"0123456789abcdef\",o=0;o<n;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(r.charAt(i>>>4&15)+r.charAt(i&15),16);t.push(a)}return t}function kJe(e){return(e+64>>>9<<4)+14+1}function t7t(e,t){e[t>>5]|=128<<t%32,e[kJe(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var c=n,l=r,d=o,m=i;n=Df(n,r,o,i,e[a],7,-680876936),i=Df(i,n,r,o,e[a+1],12,-389564586),o=Df(o,i,n,r,e[a+2],17,606105819),r=Df(r,o,i,n,e[a+3],22,-1044525330),n=Df(n,r,o,i,e[a+4],7,-176418897),i=Df(i,n,r,o,e[a+5],12,1200080426),o=Df(o,i,n,r,e[a+6],17,-1473231341),r=Df(r,o,i,n,e[a+7],22,-45705983),n=Df(n,r,o,i,e[a+8],7,1770035416),i=Df(i,n,r,o,e[a+9],12,-1958414417),o=Df(o,i,n,r,e[a+10],17,-42063),r=Df(r,o,i,n,e[a+11],22,-1990404162),n=Df(n,r,o,i,e[a+12],7,1804603682),i=Df(i,n,r,o,e[a+13],12,-40341101),o=Df(o,i,n,r,e[a+14],17,-1502002290),r=Df(r,o,i,n,e[a+15],22,1236535329),n=Bf(n,r,o,i,e[a+1],5,-165796510),i=Bf(i,n,r,o,e[a+6],9,-1069501632),o=Bf(o,i,n,r,e[a+11],14,643717713),r=Bf(r,o,i,n,e[a],20,-373897302),n=Bf(n,r,o,i,e[a+5],5,-701558691),i=Bf(i,n,r,o,e[a+10],9,38016083),o=Bf(o,i,n,r,e[a+15],14,-660478335),r=Bf(r,o,i,n,e[a+4],20,-405537848),n=Bf(n,r,o,i,e[a+9],5,568446438),i=Bf(i,n,r,o,e[a+14],9,-1019803690),o=Bf(o,i,n,r,e[a+3],14,-187363961),r=Bf(r,o,i,n,e[a+8],20,1163531501),n=Bf(n,r,o,i,e[a+13],5,-1444681467),i=Bf(i,n,r,o,e[a+2],9,-51403784),o=Bf(o,i,n,r,e[a+7],14,1735328473),r=Bf(r,o,i,n,e[a+12],20,-1926607734),n=Lf(n,r,o,i,e[a+5],4,-378558),i=Lf(i,n,r,o,e[a+8],11,-2022574463),o=Lf(o,i,n,r,e[a+11],16,1839030562),r=Lf(r,o,i,n,e[a+14],23,-35309556),n=Lf(n,r,o,i,e[a+1],4,-1530992060),i=Lf(i,n,r,o,e[a+4],11,1272893353),o=Lf(o,i,n,r,e[a+7],16,-155497632),r=Lf(r,o,i,n,e[a+10],23,-1094730640),n=Lf(n,r,o,i,e[a+13],4,681279174),i=Lf(i,n,r,o,e[a],11,-358537222),o=Lf(o,i,n,r,e[a+3],16,-722521979),r=Lf(r,o,i,n,e[a+6],23,76029189),n=Lf(n,r,o,i,e[a+9],4,-640364487),i=Lf(i,n,r,o,e[a+12],11,-421815835),o=Lf(o,i,n,r,e[a+15],16,530742520),r=Lf(r,o,i,n,e[a+2],23,-995338651),n=Uf(n,r,o,i,e[a],6,-198630844),i=Uf(i,n,r,o,e[a+7],10,1126891415),o=Uf(o,i,n,r,e[a+14],15,-1416354905),r=Uf(r,o,i,n,e[a+5],21,-57434055),n=Uf(n,r,o,i,e[a+12],6,1700485571),i=Uf(i,n,r,o,e[a+3],10,-1894986606),o=Uf(o,i,n,r,e[a+10],15,-1051523),r=Uf(r,o,i,n,e[a+1],21,-2054922799),n=Uf(n,r,o,i,e[a+8],6,1873313359),i=Uf(i,n,r,o,e[a+15],10,-30611744),o=Uf(o,i,n,r,e[a+6],15,-1560198380),r=Uf(r,o,i,n,e[a+13],21,1309151649),n=Uf(n,r,o,i,e[a+4],6,-145523070),i=Uf(i,n,r,o,e[a+11],10,-1120210379),o=Uf(o,i,n,r,e[a+2],15,718787259),r=Uf(r,o,i,n,e[a+9],21,-343485551),n=PT(n,c),r=PT(r,l),o=PT(o,d),i=PT(i,m)}return[n,r,o,i]}function n7t(e){if(e.length===0)return[];for(var t=e.length*8,n=new Uint32Array(kJe(t)),r=0;r<t;r+=8)n[r>>5]|=(e[r/8]&255)<<r%32;return n}function PT(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function r7t(e,t){return e<<t|e>>>32-t}function Z$(e,t,n,r,o,i){return PT(r7t(PT(PT(t,e),PT(r,i)),o),n)}function Df(e,t,n,r,o,i,a){return Z$(t&n|~t&r,e,t,o,i,a)}function Bf(e,t,n,r,o,i,a){return Z$(t&r|n&~r,e,t,o,i,a)}function Lf(e,t,n,r,o,i,a){return Z$(t^n^r,e,t,o,i,a)}function Uf(e,t,n,r,o,i,a){return Z$(n^(t|~r),e,t,o,i,a)}var OJe,NJe=$(()=>{f();OJe=$Dt});var o7t,PJe,MJe=$(()=>{f();Eye();NJe();o7t=Y$(\"v3\",48,OJe),PJe=o7t});function i7t(e,t,n){e=e||{};var r=e.random||(e.rng||KF)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return NT(r)}var g1,DJe=$(()=>{f();yye();ZF();g1=i7t});function a7t(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function Aye(e,t){return e<<t|e>>>32-t}function s7t(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e==\"string\"){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),c=new Array(a),l=0;l<a;++l){for(var d=new Uint32Array(16),m=0;m<16;++m)d[m]=e[l*64+m*4]<<24|e[l*64+m*4+1]<<16|e[l*64+m*4+2]<<8|e[l*64+m*4+3];c[l]=d}c[a-1][14]=(e.length-1)*8/Math.pow(2,32),c[a-1][14]=Math.floor(c[a-1][14]),c[a-1][15]=(e.length-1)*8&4294967295;for(var h=0;h<a;++h){for(var g=new Uint32Array(80),y=0;y<16;++y)g[y]=c[h][y];for(var w=16;w<80;++w)g[w]=Aye(g[w-3]^g[w-8]^g[w-14]^g[w-16],1);for(var x=n[0],I=n[1],C=n[2],M=n[3],B=n[4],z=0;z<80;++z){var G=Math.floor(z/20),J=Aye(x,5)+a7t(G,I,C,M)+B+t[G]+g[z]>>>0;B=M,M=C,C=Aye(I,30)>>>0,I=x,x=J}n[0]=n[0]+x>>>0,n[1]=n[1]+I>>>0,n[2]=n[2]+C>>>0,n[3]=n[3]+M>>>0,n[4]=n[4]+B>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var BJe,LJe=$(()=>{f();BJe=s7t});var c7t,UJe,FJe=$(()=>{f();Eye();LJe();c7t=Y$(\"v5\",80,BJe),UJe=c7t});var HJe,zJe=$(()=>{f();HJe=\"00000000-0000-0000-0000-000000000000\"});function u7t(e){if(!m1(e))throw TypeError(\"Invalid UUID\");return parseInt(e.substr(14,1),16)}var jJe,WJe=$(()=>{f();YF();jJe=u7t});var Sye={};as(Sye,{NIL:()=>HJe,parse:()=>K$,stringify:()=>NT,v1:()=>RJe,v3:()=>PJe,v4:()=>g1,v5:()=>UJe,validate:()=>m1,version:()=>jJe});var Q$=$(()=>{f();IJe();MJe();DJe();FJe();zJe();WJe();YF();ZF();xye()});var y1,QF,JF,J$=$(()=>{f();y1=Object.create(null);y1.open=\"0\";y1.close=\"1\";y1.ping=\"2\";y1.pong=\"3\";y1.message=\"4\";y1.upgrade=\"5\";y1.noop=\"6\";QF=Object.create(null);Object.keys(y1).forEach(e=>{QF[y1[e]]=e});JF={type:\"error\",data:\"parser error\"}});function GJe(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function ZJe(e,t){if(qJe&&e.data instanceof Blob)return e.data.arrayBuffer().then(GJe).then(t);if(KJe&&(e.data instanceof ArrayBuffer||YJe(e.data)))return t(GJe(e.data));XF(e,!1,n=>{_ye||(_ye=new TextEncoder),t(_ye.encode(n))})}var qJe,KJe,YJe,XF,VJe,_ye,QJe=$(()=>{f();J$();qJe=typeof Blob==\"function\"||typeof Blob<\"u\"&&Object.prototype.toString.call(Blob)===\"[object BlobConstructor]\",KJe=typeof ArrayBuffer==\"function\",YJe=e=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,XF=({type:e,data:t},n,r)=>qJe&&t instanceof Blob?n?r(t):VJe(t,r):KJe&&(t instanceof ArrayBuffer||YJe(t))?n?r(t):VJe(new Blob([t]),r):r(y1[e]+(t||\"\")),VJe=(e,t)=>{let n=new FileReader;return n.onload=function(){let r=n.result.split(\",\")[1];t(\"b\"+(r||\"\"))},n.readAsDataURL(e)}});var JJe,$F,XJe,$Je=$(()=>{f();JJe=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",$F=typeof Uint8Array>\"u\"?[]:new Uint8Array(256);for(let e=0;e<JJe.length;e++)$F[JJe.charCodeAt(e)]=e;XJe=e=>{let t=e.length*.75,n=e.length,r,o=0,i,a,c,l;e[e.length-1]===\"=\"&&(t--,e[e.length-2]===\"=\"&&t--);let d=new ArrayBuffer(t),m=new Uint8Array(d);for(r=0;r<n;r+=4)i=$F[e.charCodeAt(r)],a=$F[e.charCodeAt(r+1)],c=$F[e.charCodeAt(r+2)],l=$F[e.charCodeAt(r+3)],m[o++]=i<<2|a>>4,m[o++]=(a&15)<<4|c>>2,m[o++]=(c&3)<<6|l&63;return d}});var l7t,eH,d7t,eXe,tXe=$(()=>{f();J$();$Je();l7t=typeof ArrayBuffer==\"function\",eH=(e,t)=>{if(typeof e!=\"string\")return{type:\"message\",data:eXe(e,t)};let n=e.charAt(0);return n===\"b\"?{type:\"message\",data:d7t(e.substring(1),t)}:QF[n]?e.length>1?{type:QF[n],data:e.substring(1)}:{type:QF[n]}:JF},d7t=(e,t)=>{if(l7t){let n=XJe(e);return eXe(n,t)}else return{base64:!0,data:e}},eXe=(e,t)=>{switch(t){case\"blob\":return e instanceof Blob?e:new Blob([e]);case\"arraybuffer\":default:return e instanceof ArrayBuffer?e:e.buffer}}});function iXe(){return new TransformStream({transform(e,t){ZJe(e,n=>{let r=n.length,o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);let i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);let i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!=\"string\"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}function X$(e){return e.reduce((t,n)=>t+n.length,0)}function $$(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function aXe(e,t){Tye||(Tye=new TextDecoder);let n=[],r=0,o=-1,i=!1;return new TransformStream({transform(a,c){for(n.push(a);;){if(r===0){if(X$(n)<1)break;let l=$$(n,1);i=(l[0]&128)===128,o=l[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(X$(n)<2)break;let l=$$(n,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(X$(n)<8)break;let l=$$(n,8),d=new DataView(l.buffer,l.byteOffset,l.length),m=d.getUint32(0);if(m>Math.pow(2,21)-1){c.enqueue(JF);break}o=m*Math.pow(2,32)+d.getUint32(4),r=3}else{if(X$(n)<o)break;let l=$$(n,o);c.enqueue(eH(i?l:Tye.decode(l),t)),r=0}if(o===0||o>e){c.enqueue(JF);break}}}})}var nXe,rXe,oXe,Tye,Cye,GP=$(()=>{f();QJe();tXe();J$();nXe=\"\\u001e\",rXe=(e,t)=>{let n=e.length,r=new Array(n),o=0;e.forEach((i,a)=>{XF(i,!1,c=>{r[a]=c,++o===n&&t(r.join(nXe))})})},oXe=(e,t)=>{let n=e.split(nXe),r=[];for(let o=0;o<n.length;o++){let i=eH(n[o],t);if(r.push(i),i.type===\"error\")break}return r};Cye=4});function Fa(e){if(e)return f7t(e)}function f7t(e){for(var t in Fa.prototype)e[t]=Fa.prototype[t];return e}var jR=$(()=>{f();Fa.prototype.on=Fa.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[\"$\"+e]=this._callbacks[\"$\"+e]||[]).push(t),this};Fa.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Fa.prototype.off=Fa.prototype.removeListener=Fa.prototype.removeAllListeners=Fa.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks[\"$\"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks[\"$\"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks[\"$\"+e],this};Fa.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks[\"$\"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};Fa.prototype.emitReserved=Fa.prototype.emit;Fa.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[\"$\"+e]||[]};Fa.prototype.hasListeners=function(e){return!!this.listeners(e).length}});var jE,nh,sXe,WR=$(()=>{f();jE=typeof Promise==\"function\"&&typeof Promise.resolve==\"function\"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),nh=typeof self<\"u\"?self:typeof window<\"u\"?window:Function(\"return this\")(),sXe=\"arraybuffer\"});function eee(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function WE(e,t){t.useNativeTimers?(e.setTimeoutFn=p7t.bind(nh),e.clearTimeoutFn=h7t.bind(nh)):(e.setTimeoutFn=nh.setTimeout.bind(nh),e.clearTimeoutFn=nh.clearTimeout.bind(nh))}function cXe(e){return typeof e==\"string\"?g7t(e):Math.ceil((e.byteLength||e.size)*m7t)}function g7t(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function tee(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}var p7t,h7t,m7t,VR=$(()=>{f();WR();p7t=nh.setTimeout,h7t=nh.clearTimeout;m7t=1.33});function uXe(e){let t=\"\";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+=\"&\"),t+=encodeURIComponent(n)+\"=\"+encodeURIComponent(e[n]));return t}function lXe(e){let t={},n=e.split(\"&\");for(let r=0,o=n.length;r<o;r++){let i=n[r].split(\"=\");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}var Rye=$(()=>{f()});var nee,VE,tH=$(()=>{f();GP();jR();VR();Rye();nee=class extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type=\"TransportError\"}},VE=class extends Fa{constructor(t){super(),this.writable=!1,WE(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved(\"error\",new nee(t,n,r)),this}open(){return this.readyState=\"opening\",this.doOpen(),this}close(){return(this.readyState===\"opening\"||this.readyState===\"open\")&&(this.doClose(),this.onClose()),this}send(t){this.readyState===\"open\"&&this.write(t)}onOpen(){this.readyState=\"open\",this.writable=!0,super.emitReserved(\"open\")}onData(t){let n=eH(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved(\"packet\",t)}onClose(t){this.readyState=\"closed\",super.emitReserved(\"close\",t)}pause(t){}createUri(t,n={}){return t+\"://\"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){let t=this.opts.hostname;return t.indexOf(\":\")===-1?t:\"[\"+t+\"]\"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?\":\"+this.opts.port:\"\"}_query(t){let n=uXe(t);return n.length?\"?\"+n:\"\"}}});var nH,Iye=$(()=>{f();tH();VR();GP();nH=class extends VE{constructor(){super(...arguments),this._polling=!1}get name(){return\"polling\"}doOpen(){this._poll()}pause(t){this.readyState=\"pausing\";let n=()=>{this.readyState=\"paused\",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once(\"pollComplete\",function(){--r||n()})),this.writable||(r++,this.once(\"drain\",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved(\"poll\")}onData(t){let n=r=>{if(this.readyState===\"opening\"&&r.type===\"open\"&&this.onOpen(),r.type===\"close\")return this.onClose({description:\"transport closed by the server\"}),!1;this.onPacket(r)};oXe(t,this.socket.binaryType).forEach(n),this.readyState!==\"closed\"&&(this._polling=!1,this.emitReserved(\"pollComplete\"),this.readyState===\"open\"&&this._poll())}doClose(){let t=()=>{this.write([{type:\"close\"}])};this.readyState===\"open\"?t():this.once(\"open\",t)}write(t){this.writable=!1,rXe(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved(\"drain\")})})}uri(){let t=this.opts.secure?\"https\":\"http\",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=tee()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}});var dXe,fXe,pXe=$(()=>{f();dXe=!1;try{dXe=typeof XMLHttpRequest<\"u\"&&\"withCredentials\"in new XMLHttpRequest}catch{}fXe=dXe});function y7t(){}function hXe(){for(let e in MT.requests)MT.requests.hasOwnProperty(e)&&MT.requests[e].abort()}function mXe(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<\"u\"&&(!t||fXe))return new XMLHttpRequest}catch{}if(!t)try{return new nh[[\"Active\"].concat(\"Object\").join(\"X\")](\"Microsoft.XMLHTTP\")}catch{}}var kye,MT,b7t,DT,ree=$(()=>{f();Iye();jR();VR();WR();pXe();kye=class extends nH{constructor(t){if(super(t),typeof location<\"u\"){let n=location.protocol===\"https:\",r=location.port;r||(r=n?\"443\":\"80\"),this.xd=typeof location<\"u\"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){let r=this.request({method:\"POST\",data:t});r.on(\"success\",n),r.on(\"error\",(o,i)=>{this.onError(\"xhr post error\",o,i)})}doPoll(){let t=this.request();t.on(\"data\",this.onData.bind(this)),t.on(\"error\",(n,r)=>{this.onError(\"xhr poll error\",n,r)}),this.pollXhr=t}},MT=class e extends Fa{constructor(t,n,r){super(),this.createRequest=t,WE(this,r),this._opts=r,this._method=r.method||\"GET\",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;let n=eee(this._opts,\"agent\",\"pfx\",\"key\",\"passphrase\",\"cert\",\"ca\",\"ciphers\",\"rejectUnauthorized\",\"autoUnref\");n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method===\"POST\")try{r.setRequestHeader(\"Content-type\",\"text/plain;charset=UTF-8\")}catch{}try{r.setRequestHeader(\"Accept\",\"*/*\")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),\"withCredentials\"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader(\"set-cookie\"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status==\"number\"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<\"u\"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved(\"error\",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>\"u\"||this._xhr===null)){if(this._xhr.onreadystatechange=y7t,t)try{this._xhr.abort()}catch{}typeof document<\"u\"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved(\"data\",t),this.emitReserved(\"success\"),this._cleanup())}abort(){this._cleanup()}};MT.requestsCount=0;MT.requests={};if(typeof document<\"u\"){if(typeof attachEvent==\"function\")attachEvent(\"onunload\",hXe);else if(typeof addEventListener==\"function\"){let e=\"onpagehide\"in nh?\"pagehide\":\"unload\";addEventListener(e,hXe,!1)}}b7t=(function(){let e=mXe({xdomain:!1});return e&&e.responseType!==null})(),DT=class extends kye{constructor(t){super(t);let n=t&&t.forceBase64;this.supportsBinary=b7t&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new MT(mXe,this.uri(),t)}}});var gXe,Nye,Oye,BT,oee=$(()=>{f();tH();VR();GP();WR();gXe=typeof navigator<\"u\"&&typeof navigator.product==\"string\"&&navigator.product.toLowerCase()===\"reactnative\",Nye=class extends VE{get name(){return\"websocket\"}doOpen(){let t=this.uri(),n=this.opts.protocols,r=gXe?{}:eee(this.opts,\"agent\",\"perMessageDeflate\",\"pfx\",\"key\",\"passphrase\",\"cert\",\"ca\",\"ciphers\",\"rejectUnauthorized\",\"localAddress\",\"protocolVersion\",\"origin\",\"maxPayload\",\"family\",\"checkServerIdentity\");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(o){return this.emitReserved(\"error\",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:\"websocket connection closed\",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError(\"websocket error\",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){let r=t[n],o=n===t.length-1;XF(r,this.supportsBinary,i=>{try{this.doWrite(r,i)}catch{}o&&jE(()=>{this.writable=!0,this.emitReserved(\"drain\")},this.setTimeoutFn)})}}doClose(){typeof this.ws<\"u\"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?\"wss\":\"ws\",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=tee()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}},Oye=nh.WebSocket||nh.MozWebSocket,BT=class extends Nye{createSocket(t,n,r){return gXe?new Oye(t,n,r):n?new Oye(t,n):new Oye(t)}doWrite(t,n){this.ws.send(n)}}});var qP,Pye=$(()=>{f();tH();WR();GP();qP=class extends VE{get name(){return\"webtransport\"}doOpen(){try{this._transport=new WebTransport(this.createUri(\"https\"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved(\"error\",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError(\"webtransport error\",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let n=aXe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=iXe();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let i=()=>{r.read().then(({done:c,value:l})=>{c||(this.onPacket(l),i())}).catch(c=>{})};i();let a={type:\"open\"};this.query.sid&&(a.data=`{\"sid\":\"${this.query.sid}\"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){let r=t[n],o=n===t.length-1;this._writer.write(r).then(()=>{o&&jE(()=>{this.writable=!0,this.emitReserved(\"drain\")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}});var Mye,Dye=$(()=>{f();ree();oee();Pye();Mye={websocket:BT,webtransport:qP,polling:DT}});function KP(e){if(e.length>8e3)throw\"URI too long\";let t=e,n=e.indexOf(\"[\"),r=e.indexOf(\"]\");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,\";\")+e.substring(r,e.length));let o=v7t.exec(e||\"\"),i={},a=14;for(;a--;)i[w7t[a]]=o[a]||\"\";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,\":\"),i.authority=i.authority.replace(\"[\",\"\").replace(\"]\",\"\").replace(/;/g,\":\"),i.ipv6uri=!0),i.pathNames=x7t(i,i.path),i.queryKey=E7t(i,i.query),i}function x7t(e,t){let n=/\\\\/{2,9}/g,r=t.replace(n,\"/\").split(\"/\");return(t.slice(0,1)==\"/\"||t.length===0)&&r.splice(0,1),t.slice(-1)==\"/\"&&r.splice(r.length-1,1),r}function E7t(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}var v7t,w7t,Bye=$(()=>{f();v7t=/^(?:(?![^:@\\\\/?#]+:[^:@\\\\/]*@)(http|https|ws|wss):\\\\/\\\\/)?((?:(([^:@\\\\/?#]*)(?::([^:@\\\\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\\\\/?#]*)(?::(\\\\d*))?)(((\\\\/(?:[^?#](?![^?#\\\\/]*\\\\.[^?#\\\\/.]+(?:[?#]|$)))*\\\\/?)?([^?#\\\\/]*))(?:\\\\?([^#]*))?(?:#(.*))?)/,w7t=[\"source\",\"protocol\",\"authority\",\"userInfo\",\"user\",\"password\",\"host\",\"port\",\"relative\",\"path\",\"directory\",\"file\",\"query\",\"anchor\"]});var Lye,iee,GR,aee,YP,Uye=$(()=>{f();Dye();VR();Rye();Bye();jR();GP();WR();Lye=typeof addEventListener==\"function\"&&typeof removeEventListener==\"function\",iee=[];Lye&&addEventListener(\"offline\",()=>{iee.forEach(e=>e())},!1);GR=class e extends Fa{constructor(t,n){if(super(),this.binaryType=sXe,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t==\"object\"&&(n=t,t=null),t){let r=KP(t);n.hostname=r.host,n.secure=r.protocol===\"https\"||r.protocol===\"wss\",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=KP(n.host).host);WE(this,n),this.secure=n.secure!=null?n.secure:typeof location<\"u\"&&location.protocol===\"https:\",n.hostname&&!n.port&&(n.port=this.secure?\"443\":\"80\"),this.hostname=n.hostname||(typeof location<\"u\"?location.hostname:\"localhost\"),this.port=n.port||(typeof location<\"u\"&&location.port?location.port:this.secure?\"443\":\"80\"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{let o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:\"/engine.io\",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:\"t\",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\\\\/$/,\"\")+(this.opts.addTrailingSlash?\"/\":\"\"),typeof this.opts.query==\"string\"&&(this.opts.query=lXe(this.opts.query)),Lye&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener(\"beforeunload\",this._beforeunloadEventListener,!1)),this.hostname!==\"localhost\"&&(this._offlineEventListener=()=>{this._onClose(\"transport close\",{description:\"network connection lost\"})},iee.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let n=Object.assign({},this.opts.query);n.EIO=Cye,n.transport=t,this.id&&(n.sid=this.id);let r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved(\"error\",\"No transports available\")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf(\"websocket\")!==-1?\"websocket\":this.transports[0];this.readyState=\"opening\";let n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on(\"drain\",this._onDrain.bind(this)).on(\"packet\",this._onPacket.bind(this)).on(\"error\",this._onError.bind(this)).on(\"close\",n=>this._onClose(\"transport close\",n))}onOpen(){this.readyState=\"open\",e.priorWebsocketSuccess=this.transport.name===\"websocket\",this.emitReserved(\"open\"),this.flush()}_onPacket(t){if(this.readyState===\"opening\"||this.readyState===\"open\"||this.readyState===\"closing\")switch(this.emitReserved(\"packet\",t),this.emitReserved(\"heartbeat\"),t.type){case\"open\":this.onHandshake(JSON.parse(t.data));break;case\"ping\":this._sendPacket(\"pong\"),this.emitReserved(\"ping\"),this.emitReserved(\"pong\"),this._resetPingTimeout();break;case\"error\":let n=new Error(\"server error\");n.code=t.data,this._onError(n);break;case\"message\":this.emitReserved(\"data\",t.data),this.emitReserved(\"message\",t.data);break}}onHandshake(t){this.emitReserved(\"handshake\",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!==\"closed\"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose(\"ping timeout\")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved(\"drain\"):this.flush()}flush(){if(this.readyState!==\"closed\"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved(\"flush\")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name===\"polling\"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){let o=this.writeBuffer[r].data;if(o&&(n+=cXe(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,jE(()=>{this._onClose(\"ping timeout\")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket(\"message\",t,n,r),this}send(t,n,r){return this._sendPacket(\"message\",t,n,r),this}_sendPacket(t,n,r,o){if(typeof n==\"function\"&&(o=n,n=void 0),typeof r==\"function\"&&(o=r,r=null),this.readyState===\"closing\"||this.readyState===\"closed\")return;r=r||{},r.compress=r.compress!==!1;let i={type:t,data:n,options:r};this.emitReserved(\"packetCreate\",i),this.writeBuffer.push(i),o&&this.once(\"flush\",o),this.flush()}close(){let t=()=>{this._onClose(\"forced close\"),this.transport.close()},n=()=>{this.off(\"upgrade\",n),this.off(\"upgradeError\",n),t()},r=()=>{this.once(\"upgrade\",n),this.once(\"upgradeError\",n)};return(this.readyState===\"opening\"||this.readyState===\"open\")&&(this.readyState=\"closing\",this.writeBuffer.length?this.once(\"drain\",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState===\"opening\")return this.transports.shift(),this._open();this.emitReserved(\"error\",t),this._onClose(\"transport error\",t)}_onClose(t,n){if(this.readyState===\"opening\"||this.readyState===\"open\"||this.readyState===\"closing\"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners(\"close\"),this.transport.close(),this.transport.removeAllListeners(),Lye&&(this._beforeunloadEventListener&&removeEventListener(\"beforeunload\",this._beforeunloadEventListener,!1),this._offlineEventListener)){let r=iee.indexOf(this._offlineEventListener);r!==-1&&iee.splice(r,1)}this.readyState=\"closed\",this.id=null,this.emitReserved(\"close\",t,n),this.writeBuffer=[],this._prevBufferLen=0}}};GR.protocol=Cye;aee=class extends GR{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState===\"open\"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;GR.priorWebsocketSuccess=!1;let o=()=>{r||(n.send([{type:\"ping\",data:\"probe\"}]),n.once(\"packet\",h=>{if(!r)if(h.type===\"pong\"&&h.data===\"probe\"){if(this.upgrading=!0,this.emitReserved(\"upgrading\",n),!n)return;GR.priorWebsocketSuccess=n.name===\"websocket\",this.transport.pause(()=>{r||this.readyState!==\"closed\"&&(m(),this.setTransport(n),n.send([{type:\"upgrade\"}]),this.emitReserved(\"upgrade\",n),n=null,this.upgrading=!1,this.flush())})}else{let g=new Error(\"probe error\");g.transport=n.name,this.emitReserved(\"upgradeError\",g)}}))};function i(){r||(r=!0,m(),n.close(),n=null)}let a=h=>{let g=new Error(\"probe error: \"+h);g.transport=n.name,i(),this.emitReserved(\"upgradeError\",g)};function c(){a(\"transport closed\")}function l(){a(\"socket closed\")}function d(h){n&&h.name!==n.name&&i()}let m=()=>{n.removeListener(\"open\",o),n.removeListener(\"error\",a),n.removeListener(\"close\",c),this.off(\"close\",l),this.off(\"upgrading\",d)};n.once(\"open\",o),n.once(\"error\",a),n.once(\"close\",c),this.once(\"close\",l),this.once(\"upgrading\",d),this._upgrades.indexOf(\"webtransport\")!==-1&&t!==\"webtransport\"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}},YP=class extends aee{constructor(t,n={}){let r=typeof t==\"object\"?t:n;(!r.transports||r.transports&&typeof r.transports[0]==\"string\")&&(r.transports=(r.transports||[\"polling\",\"websocket\",\"webtransport\"]).map(o=>Mye[o]).filter(o=>!!o)),super(t,r)}}});var yXe=$(()=>{f();Iye()});var dpr,see=$(()=>{f();Uye();Uye();tH();Dye();VR();Bye();WR();yXe();ree();ree();oee();oee();Pye();dpr=YP.protocol});function bXe(e,t=\"\",n){let r=e;n=n||typeof location<\"u\"&&location,e==null&&(e=n.protocol+\"//\"+n.host),typeof e==\"string\"&&(e.charAt(0)===\"/\"&&(e.charAt(1)===\"/\"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\\\\/\\\\//.test(e)||(typeof n<\"u\"?e=n.protocol+\"//\"+e:e=\"https://\"+e),r=KP(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port=\"80\":/^(http|ws)s$/.test(r.protocol)&&(r.port=\"443\")),r.path=r.path||\"/\";let i=r.host.indexOf(\":\")!==-1?\"[\"+r.host+\"]\":r.host;return r.id=r.protocol+\"://\"+i+\":\"+r.port+t,r.href=r.protocol+\"://\"+i+(n&&n.port===r.port?\"\":\":\"+r.port),r}var vXe=$(()=>{f();see()});function oH(e){return S7t&&(e instanceof ArrayBuffer||_7t(e))||T7t&&e instanceof Blob||C7t&&e instanceof File}function rH(e,t){if(!e||typeof e!=\"object\")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(rH(e[n]))return!0;return!1}if(oH(e))return!0;if(e.toJSON&&typeof e.toJSON==\"function\"&&arguments.length===1)return rH(e.toJSON(),!0);for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&rH(e[n]))return!0;return!1}var S7t,_7t,wXe,T7t,C7t,Fye=$(()=>{f();S7t=typeof ArrayBuffer==\"function\",_7t=e=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,wXe=Object.prototype.toString,T7t=typeof Blob==\"function\"||typeof Blob<\"u\"&&wXe.call(Blob)===\"[object BlobConstructor]\",C7t=typeof File==\"function\"||typeof File<\"u\"&&wXe.call(File)===\"[object FileConstructor]\"});function xXe(e){let t=[],n=e.data,r=e;return r.data=Hye(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Hye(e,t){if(!e)return e;if(oH(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){let n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Hye(e[r],t);return n}else if(typeof e==\"object\"&&!(e instanceof Date)){let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Hye(e[r],t));return n}return e}function EXe(e,t){return e.data=zye(e.data,t),delete e.attachments,e}function zye(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num==\"number\"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error(\"illegal attachments\")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=zye(e[n],t);else if(typeof e==\"object\")for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=zye(e[n],t));return e}var AXe=$(()=>{f();Fye()});var Gye={};as(Gye,{Decoder:()=>Wye,Encoder:()=>jye,PacketType:()=>Oo,protocol:()=>_Xe});function SXe(e){return Object.prototype.toString.call(e)===\"[object Object]\"}var R7t,_Xe,Oo,jye,Wye,Vye,cee=$(()=>{f();jR();AXe();Fye();R7t=[\"connect\",\"connect_error\",\"disconnect\",\"disconnecting\",\"newListener\",\"removeListener\"],_Xe=5;(function(e){e[e.CONNECT=0]=\"CONNECT\",e[e.DISCONNECT=1]=\"DISCONNECT\",e[e.EVENT=2]=\"EVENT\",e[e.ACK=3]=\"ACK\",e[e.CONNECT_ERROR=4]=\"CONNECT_ERROR\",e[e.BINARY_EVENT=5]=\"BINARY_EVENT\",e[e.BINARY_ACK=6]=\"BINARY_ACK\"})(Oo||(Oo={}));jye=class{constructor(t){this.replacer=t}encode(t){return(t.type===Oo.EVENT||t.type===Oo.ACK)&&rH(t)?this.encodeAsBinary({type:t.type===Oo.EVENT?Oo.BINARY_EVENT:Oo.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=\"\"+t.type;return(t.type===Oo.BINARY_EVENT||t.type===Oo.BINARY_ACK)&&(n+=t.attachments+\"-\"),t.nsp&&t.nsp!==\"/\"&&(n+=t.nsp+\",\"),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){let n=xXe(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}};Wye=class e extends Fa{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t==\"string\"){if(this.reconstructor)throw new Error(\"got plaintext data when reconstructing a packet\");n=this.decodeString(t);let r=n.type===Oo.BINARY_EVENT;r||n.type===Oo.BINARY_ACK?(n.type=r?Oo.EVENT:Oo.ACK,this.reconstructor=new Vye(n),n.attachments===0&&super.emitReserved(\"decoded\",n)):super.emitReserved(\"decoded\",n)}else if(oH(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved(\"decoded\",n));else throw new Error(\"got binary data when not reconstructing a packet\");else throw new Error(\"Unknown type: \"+t)}decodeString(t){let n=0,r={type:Number(t.charAt(0))};if(Oo[r.type]===void 0)throw new Error(\"unknown packet type \"+r.type);if(r.type===Oo.BINARY_EVENT||r.type===Oo.BINARY_ACK){let i=n+1;for(;t.charAt(++n)!==\"-\"&&n!=t.length;);let a=t.substring(i,n);if(a!=Number(a)||t.charAt(n)!==\"-\")throw new Error(\"Illegal attachments\");r.attachments=Number(a)}if(t.charAt(n+1)===\"/\"){let i=n+1;for(;++n&&!(t.charAt(n)===\",\"||n===t.length););r.nsp=t.substring(i,n)}else r.nsp=\"/\";let o=t.charAt(n+1);if(o!==\"\"&&Number(o)==o){let i=n+1;for(;++n;){let a=t.charAt(n);if(a==null||Number(a)!=a){--n;break}if(n===t.length)break}r.id=Number(t.substring(i,n+1))}if(t.charAt(++n)){let i=this.tryParse(t.substr(n));if(e.isPayloadValid(r.type,i))r.data=i;else throw new Error(\"invalid payload\")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Oo.CONNECT:return SXe(n);case Oo.DISCONNECT:return n===void 0;case Oo.CONNECT_ERROR:return typeof n==\"string\"||SXe(n);case Oo.EVENT:case Oo.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]==\"number\"||typeof n[0]==\"string\"&&R7t.indexOf(n[0])===-1);case Oo.ACK:case Oo.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Vye=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let n=EXe(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}});function E0(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var qye=$(()=>{f()});var I7t,ZP,Kye=$(()=>{f();cee();qye();jR();I7t=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),ZP=class extends Fa{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[E0(t,\"open\",this.onopen.bind(this)),E0(t,\"packet\",this.onpacket.bind(this)),E0(t,\"error\",this.onerror.bind(this)),E0(t,\"close\",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState===\"open\"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift(\"message\"),this.emit.apply(this,t),this}emit(t,...n){var r,o,i;if(I7t.hasOwnProperty(t))throw new Error(\\'\"\\'+t.toString()+\\'\" is a reserved event name\\');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;let a={type:Oo.EVENT,data:n};if(a.options={},a.options.compress=this.flags.compress!==!1,typeof n[n.length-1]==\"function\"){let m=this.ids++,h=n.pop();this._registerAckCallback(m,h),a.id=m}let c=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,l=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!c||(l?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(t,n){var r;let o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===t&&this.sendBuffer.splice(c,1);n.call(this,new Error(\"operation has timed out\"))},o),a=(...c)=>{this.io.clearTimeoutFn(i),n.apply(this,c)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...n){return new Promise((r,o)=>{let i=(a,c)=>a?o(a):r(c);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]==\"function\"&&(n=t.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth==\"function\"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Oo.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved(\"connect_error\",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved(\"disconnect\",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){let r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error(\"socket has been disconnected\"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Oo.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved(\"connect_error\",new Error(\"It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)\"));break;case Oo.EVENT:case Oo.BINARY_EVENT:this.onevent(t);break;case Oo.ACK:case Oo.BINARY_ACK:this.onack(t);break;case Oo.DISCONNECT:this.ondisconnect();break;case Oo.CONNECT_ERROR:this.destroy();let r=new Error(t.data.message);r.data=t.data.data,this.emitReserved(\"connect_error\",r);break}}onevent(t){let n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let n=this._anyListeners.slice();for(let r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]==\"string\"&&(this._lastOffset=t[t.length-1])}ack(t){let n=this,r=!1;return function(...o){r||(r=!0,n.packet({type:Oo.ACK,id:t,data:o}))}}onack(t){let n=this.acks[t.id];typeof n==\"function\"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved(\"connect\"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose(\"io server disconnect\")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Oo.DISCONNECT}),this.destroy(),this.connected&&this.onclose(\"io client disconnect\"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let n=this._anyOutgoingListeners.slice();for(let r of n)r.apply(this,t.data)}}}});function qR(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}var TXe=$(()=>{f();qR.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};qR.prototype.reset=function(){this.attempts=0};qR.prototype.setMin=function(e){this.ms=e};qR.prototype.setMax=function(e){this.max=e};qR.prototype.setJitter=function(e){this.jitter=e}});var QP,CXe=$(()=>{f();see();Kye();cee();qye();TXe();jR();QP=class extends Fa{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t==\"object\"&&(n=t,t=void 0),n=n||{},n.path=n.path||\"/socket.io\",this.opts=n,WE(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new qR({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState=\"closed\",this.uri=t;let o=n.parser||Gye;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf(\"open\"))return this;this.engine=new YP(this.uri,this.opts);let n=this.engine,r=this;this._readyState=\"opening\",this.skipReconnect=!1;let o=E0(n,\"open\",function(){r.onopen(),t&&t()}),i=c=>{this.cleanup(),this._readyState=\"closed\",this.emitReserved(\"error\",c),t?t(c):this.maybeReconnectOnOpen()},a=E0(n,\"error\",i);if(this._timeout!==!1){let c=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error(\"timeout\")),n.close()},c);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState=\"open\",this.emitReserved(\"open\");let t=this.engine;this.subs.push(E0(t,\"ping\",this.onping.bind(this)),E0(t,\"data\",this.ondata.bind(this)),E0(t,\"error\",this.onerror.bind(this)),E0(t,\"close\",this.onclose.bind(this)),E0(this.decoder,\"decoded\",this.ondecoded.bind(this)))}onping(){this.emitReserved(\"ping\")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose(\"parse error\",n)}}ondecoded(t){jE(()=>{this.emitReserved(\"packet\",t)},this.setTimeoutFn)}onerror(t){this.emitReserved(\"error\",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new ZP(this,t,n),this.nsps[t]=r),r}_destroy(t){let n=Object.keys(this.nsps);for(let r of n)if(this.nsps[r].active)return;this._close()}_packet(t){let n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose(\"forced close\")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState=\"closed\",this.emitReserved(\"close\",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved(\"reconnect_failed\"),this._reconnecting=!1;else{let n=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved(\"reconnect_attempt\",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved(\"reconnect_error\",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved(\"reconnect\",t)}}});function aH(e,t){typeof e==\"object\"&&(t=e,e=void 0),t=t||{};let n=bXe(e,t.path||\"/socket.io\"),r=n.source,o=n.id,i=n.path,a=iH[o]&&i in iH[o].nsps,c=t.forceNew||t[\"force new connection\"]||t.multiplex===!1||a,l;return c?l=new QP(r,t):(iH[o]||(iH[o]=new QP(r,t)),l=iH[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}var iH,RXe=$(()=>{f();vXe();CXe();Kye();cee();see();iH={};Object.assign(aH,{Manager:QP,Socket:ZP,io:aH,connect:aH})});var k7t,Yye=$(()=>{k7t=QTe({})});var Ort={};as(Ort,{CommunicationLayerPreference:()=>oC,ConnectionStatus:()=>rd,DEFAULT_SERVER_URL:()=>rI,EventType:()=>Rt,MessageType:()=>Ds,MetaMaskSDK:()=>v1e,MetaMaskSDKEvent:()=>ah,PROVIDER_UPDATE_TYPE:()=>A1,PlatformType:()=>Gd,SDKProvider:()=>Ate,default:()=>v1e});function pt(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(d){try{l(r.next(d))}catch(m){i(m)}}function c(d){try{l(r.throw(d))}catch(m){i(m)}}function l(d){var m;d.done?o(d.value):(m=d.value,m instanceof n?m:new n((function(h){h(m)}))).then(a,c)}l((r=r.apply(e,t||[])).next())}))}function Wet(){T1e=!0;for(var e=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",t=0;t<64;++t)Vw[t]=e[t],xy[e.charCodeAt(t)]=t;xy[45]=62,xy[95]=63}function N7t(e,t,n){for(var r,o,i=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(Vw[(o=r)>>18&63]+Vw[o>>12&63]+Vw[o>>6&63]+Vw[63&o]);return i.join(\"\")}function IXe(e){var t;T1e||Wet();for(var n=e.length,r=n%3,o=\"\",i=[],a=16383,c=0,l=n-r;c<l;c+=a)i.push(N7t(e,c,c+a>l?l:c+a));return r===1?(t=e[n-1],o+=Vw[t>>2],o+=Vw[t<<4&63],o+=\"==\"):r===2&&(t=(e[n-2]<<8)+e[n-1],o+=Vw[t>>10],o+=Vw[t>>4&63],o+=Vw[t<<2&63],o+=\"=\"),i.push(o),i.join(\"\")}function uee(e,t,n,r,o){var i,a,c=8*o-r-1,l=(1<<c)-1,d=l>>1,m=-7,h=n?o-1:0,g=n?-1:1,y=e[t+h];for(h+=g,i=y&(1<<-m)-1,y>>=-m,m+=c;m>0;i=256*i+e[t+h],h+=g,m-=8);for(a=i&(1<<-m)-1,i>>=-m,m+=r;m>0;a=256*a+e[t+h],h+=g,m-=8);if(i===0)i=1-d;else{if(i===l)return a?NaN:1/0*(y?-1:1);a+=Math.pow(2,r),i-=d}return(y?-1:1)*a*Math.pow(2,i-r)}function Vet(e,t,n,r,o,i){var a,c,l,d=8*i-o-1,m=(1<<d)-1,h=m>>1,g=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=r?0:i-1,w=r?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,a=m):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+h>=1?g/l:g*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=m?(c=0,a=m):a+h>=1?(c=(t*l-1)*Math.pow(2,o),a+=h):(c=t*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;e[n+y]=255&c,y+=w,c/=256,o-=8);for(a=a<<o|c,d+=o;d>0;e[n+y]=255&a,y+=w,a/=256,d-=8);e[n+y-w]|=128*x}function Zee(){return ht.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function JE(e,t){if(Zee()<t)throw new RangeError(\"Invalid typed array length\");return ht.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=ht.prototype:(e===null&&(e=new ht(t)),e.length=t),e}function ht(e,t,n){if(!(ht.TYPED_ARRAY_SUPPORT||this instanceof ht))return new ht(e,t,n);if(typeof e==\"number\"){if(typeof t==\"string\")throw new Error(\"If encoding is specified then the first argument must be a string\");return Pbe(this,e)}return qet(this,e,t,n)}function qet(e,t,n,r){if(typeof t==\"number\")throw new TypeError(\\'\"value\" argument must not be a number\\');return typeof ArrayBuffer<\"u\"&&t instanceof ArrayBuffer?(function(o,i,a,c){if(i.byteLength,a<0||i.byteLength<a)throw new RangeError(\"\\'offset\\' is out of bounds\");if(i.byteLength<a+(c||0))throw new RangeError(\"\\'length\\' is out of bounds\");return i=a===void 0&&c===void 0?new Uint8Array(i):c===void 0?new Uint8Array(i,a):new Uint8Array(i,a,c),ht.TYPED_ARRAY_SUPPORT?(o=i).__proto__=ht.prototype:o=Zye(o,i),o})(e,t,n,r):typeof t==\"string\"?(function(o,i,a){if(typeof a==\"string\"&&a!==\"\"||(a=\"utf8\"),!ht.isEncoding(a))throw new TypeError(\\'\"encoding\" must be a valid string encoding\\');var c=0|Yet(i,a);o=JE(o,c);var l=o.write(i,a);return l!==c&&(o=o.slice(0,l)),o})(e,t,n):(function(o,i){if(Gw(i)){var a=0|C1e(i.length);return(o=JE(o,a)).length===0||i.copy(o,0,0,a),o}if(i){if(typeof ArrayBuffer<\"u\"&&i.buffer instanceof ArrayBuffer||\"length\"in i)return typeof i.length!=\"number\"||(c=i.length)!=c?JE(o,0):Zye(o,i);if(i.type===\"Buffer\"&&Get(i.data))return Zye(o,i.data)}var c;throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")})(e,t)}function Ket(e){if(typeof e!=\"number\")throw new TypeError(\\'\"size\" argument must be a number\\');if(e<0)throw new RangeError(\\'\"size\" argument must not be negative\\')}function Pbe(e,t){if(Ket(t),e=JE(e,t<0?0:0|C1e(t)),!ht.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function Zye(e,t){var n=t.length<0?0:0|C1e(t.length);e=JE(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function C1e(e){if(e>=Zee())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+Zee().toString(16)+\" bytes\");return 0|e}function Gw(e){return!(e==null||!e._isBuffer)}function Yet(e,t){if(Gw(e))return e.length;if(typeof ArrayBuffer<\"u\"&&typeof ArrayBuffer.isView==\"function\"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!=\"string\"&&(e=\"\"+e);var n=e.length;if(n===0)return 0;for(var r=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return n;case\"utf8\":case\"utf-8\":case void 0:return Qee(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*n;case\"hex\":return n>>>1;case\"base64\":return Xet(e).length;default:if(r)return Qee(e).length;t=(\"\"+t).toLowerCase(),r=!0}}function D7t(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return V7t(this,t,n);case\"utf8\":case\"utf-8\":return Qet(this,t,n);case\"ascii\":return j7t(this,t,n);case\"latin1\":case\"binary\":return W7t(this,t,n);case\"base64\":return z7t(this,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return G7t(this,t,n);default:if(r)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),r=!0}}function KR(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function kXe(e,t,n,r,o){if(e.length===0)return-1;if(typeof n==\"string\"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if(typeof t==\"string\"&&(t=ht.from(t,r)),Gw(t))return t.length===0?-1:OXe(e,t,n,r,o);if(typeof t==\"number\")return t&=255,ht.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==\"function\"?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):OXe(e,[t],n,r,o);throw new TypeError(\"val must be string, number or Buffer\")}function OXe(e,t,n,r,o){var i,a=1,c=e.length,l=t.length;if(r!==void 0&&((r=String(r).toLowerCase())===\"ucs2\"||r===\"ucs-2\"||r===\"utf16le\"||r===\"utf-16le\")){if(e.length<2||t.length<2)return-1;a=2,c/=2,l/=2,n/=2}function d(y,w){return a===1?y[w]:y.readUInt16BE(w*a)}if(o){var m=-1;for(i=n;i<c;i++)if(d(e,i)===d(t,m===-1?0:i-m)){if(m===-1&&(m=i),i-m+1===l)return m*a}else m!==-1&&(i-=i-m),m=-1}else for(n+l>c&&(n=c-l),i=n;i>=0;i--){for(var h=!0,g=0;g<l;g++)if(d(e,i+g)!==d(t,g)){h=!1;break}if(h)return i}return-1}function B7t(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError(\"Invalid hex string\");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var c=parseInt(t.substr(2*a,2),16);if(isNaN(c))return a;e[n+a]=c}return a}function L7t(e,t,n,r){return Ite(Qee(t,e.length-n),e,n,r)}function Zet(e,t,n,r){return Ite((function(o){for(var i=[],a=0;a<o.length;++a)i.push(255&o.charCodeAt(a));return i})(t),e,n,r)}function U7t(e,t,n,r){return Zet(e,t,n,r)}function F7t(e,t,n,r){return Ite(Xet(t),e,n,r)}function H7t(e,t,n,r){return Ite((function(o,i){for(var a,c,l,d=[],m=0;m<o.length&&!((i-=2)<0);++m)c=(a=o.charCodeAt(m))>>8,l=a%256,d.push(l),d.push(c);return d})(t,e.length-n),e,n,r)}function z7t(e,t,n){return t===0&&n===e.length?IXe(e):IXe(e.slice(t,n))}function Qet(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,c,l,d=e[o],m=null,h=d>239?4:d>223?3:d>191?2:1;if(o+h<=n)switch(h){case 1:d<128&&(m=d);break;case 2:(192&(i=e[o+1]))==128&&(l=(31&d)<<6|63&i)>127&&(m=l);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(l=(15&d)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(m=l);break;case 4:i=e[o+1],a=e[o+2],c=e[o+3],(192&i)==128&&(192&a)==128&&(192&c)==128&&(l=(15&d)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&l<1114112&&(m=l)}m===null?(m=65533,h=1):m>65535&&(m-=65536,r.push(m>>>10&1023|55296),m=56320|1023&m),r.push(m),o+=h}return(function(g){var y=g.length;if(y<=NXe)return String.fromCharCode.apply(String,g);for(var w=\"\",x=0;x<y;)w+=String.fromCharCode.apply(String,g.slice(x,x+=NXe));return w})(r)}function j7t(e,t,n){var r=\"\";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function W7t(e,t,n){var r=\"\";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function V7t(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o=\"\",i=t;i<n;++i)o+=K7t(e[i]);return o}function G7t(e,t,n){for(var r=e.slice(t,n),o=\"\",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function $l(e,t,n){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(e+t>n)throw new RangeError(\"Trying to access beyond buffer length\")}function lm(e,t,n,r,o,i){if(!Gw(e))throw new TypeError(\\'\"buffer\" argument must be a Buffer instance\\');if(t>o||t<i)throw new RangeError(\\'\"value\" argument is out of bounds\\');if(n+r>e.length)throw new RangeError(\"Index out of range\")}function lee(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function dee(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function Jet(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"Index out of range\")}function PXe(e,t,n,r,o){return o||Jet(e,0,n,4),Vet(e,t,n,r,23,4),n+4}function MXe(e,t,n,r,o){return o||Jet(e,0,n,8),Vet(e,t,n,r,52,8),n+8}function K7t(e){return e<16?\"0\"+e.toString(16):e.toString(16)}function Qee(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function Xet(e){return(function(t){var n,r,o,i,a,c;T1e||Wet();var l=t.length;if(l%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");a=t[l-2]===\"=\"?2:t[l-1]===\"=\"?1:0,c=new O7t(3*l/4-a),o=a>0?l-4:l;var d=0;for(n=0,r=0;n<o;n+=4,r+=3)i=xy[t.charCodeAt(n)]<<18|xy[t.charCodeAt(n+1)]<<12|xy[t.charCodeAt(n+2)]<<6|xy[t.charCodeAt(n+3)],c[d++]=i>>16&255,c[d++]=i>>8&255,c[d++]=255&i;return a===2?(i=xy[t.charCodeAt(n)]<<2|xy[t.charCodeAt(n+1)]>>4,c[d++]=255&i):a===1&&(i=xy[t.charCodeAt(n)]<<10|xy[t.charCodeAt(n+1)]<<4|xy[t.charCodeAt(n+2)]>>2,c[d++]=i>>8&255,c[d++]=255&i),c})((function(t){if((t=(function(n){return n.trim?n.trim():n.replace(/^\\\\s+|\\\\s+$/g,\"\")})(t).replace(q7t,\"\")).length<2)return\"\";for(;t.length%4!=0;)t+=\"=\";return t})(e))}function Ite(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function $et(e){return e!=null&&(!!e._isBuffer||DXe(e)||(function(t){return typeof t.readFloatLE==\"function\"&&typeof t.slice==\"function\"&&DXe(t.slice(0,0))})(e))}function DXe(e){return!!e.constructor&&typeof e.constructor.isBuffer==\"function\"&&e.constructor.isBuffer(e)}function kte(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}function jH(e){if(e.__esModule)return e;var t=e.default;if(typeof t==\"function\"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,\"__esModule\",{value:!0}),Object.keys(e).forEach((function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})})),n}function Jee(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function ett(e){if(typeof e!=\"boolean\")throw new Error(`boolean expected, not ${e}`)}function ttt(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}function R1e(e,...t){if(!ttt(e))throw new Error(\"Uint8Array expected\");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function ntt(e){if(typeof e!=\"function\"||typeof e.create!=\"function\")throw new Error(\"hash must be wrapped by utils.wrapConstructor\");Jee(e.outputLen),Jee(e.blockLen)}function rtt(e,t=!0){if(e.destroyed)throw new Error(\"Hash instance has been destroyed\");if(t&&e.finished)throw new Error(\"Hash#digest() has already been called\")}function ott(e,t){R1e(e);let n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}function $ee(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function stt(e){if(typeof e!=\"boolean\")throw new Error(`boolean expected, not ${e}`)}function ctt(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}function k1e(e,...t){if(!ctt(e))throw new Error(\"Uint8Array expected\");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function utt(e){if(typeof e!=\"function\"||typeof e.create!=\"function\")throw new Error(\"Hash should be wrapped by utils.wrapConstructor\");$ee(e.outputLen),$ee(e.blockLen)}function ltt(e,t=!0){if(e.destroyed)throw new Error(\"Hash instance has been destroyed\");if(t&&e.finished)throw new Error(\"Hash#digest() has already been called\")}function dtt(e,t){k1e(e);let n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}function O1e(e,t=!1){return t?{h:Number(e&hee),l:Number(e>>Mbe&hee)}:{h:0|Number(e>>Mbe&hee),l:0|Number(e&hee)}}function ftt(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:i,l:a}=O1e(e[o],t);[n[o],r[o]]=[i,a]}return[n,r]}function Ttt(e,t,n,r){let o=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:0|o}}function rte(e){return e instanceof Uint8Array||e!=null&&typeof e==\"object\"&&e.constructor.name===\"Uint8Array\"}function ote(e){if(!rte(e))throw new Error(\"Uint8Array expected\")}function Xye(e){ote(e);let t=\"\";for(let n=0;n<e.length;n++)t+=n9t[e[n]];return t}function BXe(e){let t=e.toString(16);return 1&t.length?`0${t}`:t}function $ye(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);return BigInt(e===\"\"?\"0\":`0x${e}`)}function LXe(e){return e>=GE._0&&e<=GE._9?e-GE._0:e>=GE._A&&e<=GE._F?e-(GE._A-10):e>=GE._a&&e<=GE._f?e-(GE._a-10):void 0}function Nee(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);let t=e.length,n=t/2;if(t%2)throw new Error(\"padded hex string expected, got unpadded hex of length \"+t);let r=new Uint8Array(n);for(let o=0,i=0;o<n;o++,i+=2){let a=LXe(e.charCodeAt(i)),c=LXe(e.charCodeAt(i+1));if(a===void 0||c===void 0){let l=e[i]+e[i+1];throw new Error(\\'hex string expected, got non-hex character \"\\'+l+\\'\" at index \\'+i)}r[o]=16*a+c}return r}function UXe(e,t){return Nee(e.toString(16).padStart(2*t,\"0\"))}function FXe(...e){let t=0;for(let r=0;r<e.length;r++){let o=e[r];ote(o),t+=o.length}let n=new Uint8Array(t);for(let r=0,o=0;r<e.length;r++){let i=e[r];n.set(i,o),o+=i.length}return n}function HXe(e,t,n){return ebe(e)&&ebe(t)&&ebe(n)&&t<=e&&e<n}function _0(e,t){let n=e%t;return n>=nd?n:t+n}function Ptt(e,t,n){if(n<=nd||t<nd)throw new Error(\"Expected power/modulo > 0\");if(n===Ha)return nd;let r=Ha;for(;t>nd;)t&Ha&&(r=r*e%n),e=e*e%n,t>>=Ha;return r}function gee(e,t){if(e===nd||t<=nd)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=_0(e,t),r=t,o=nd,i=Ha;for(;n!==nd;){let a=r%n,c=o-i*(r/n);r=n,n=a,o=i,i=c}if(r!==Ha)throw new Error(\"invert: does not exist\");return _0(o,t)}function Mtt(e){let t=(e-Ha)/JT,n,r,o;for(n=e-Ha,r=0;n%JT===nd;n/=JT,r++);for(o=JT;o<e&&Ptt(o,t,e)!==e-Ha;o++);if(r===1){let a=(e+Ha)/Lbe;return function(c,l){let d=c.pow(l,a);if(!c.eql(c.sqr(d),l))throw new Error(\"Cannot find square root\");return d}}let i=(n+Ha)/JT;return function(a,c){if(a.pow(c,t)===a.neg(a.ONE))throw new Error(\"Cannot find square root\");let l=r,d=a.pow(a.mul(a.ONE,o),n),m=a.pow(c,i),h=a.pow(c,n);for(;!a.eql(h,a.ONE);){if(a.eql(h,a.ZERO))return a.ZERO;let g=1;for(let w=a.sqr(h);g<l&&!a.eql(w,a.ONE);g++)w=a.sqr(w);let y=a.pow(d,Ha<<BigInt(l-g-1));d=a.sqr(y),m=a.mul(m,y),h=a.mul(h,d),l=g}return m}}function VXe(e){if(e%Lbe===o9t){let t=(e+Ha)/Lbe;return function(n,r){let o=n.pow(r,t);if(!n.eql(n.sqr(o),r))throw new Error(\"Cannot find square root\");return o}}if(e%WXe===jXe){let t=(e-jXe)/WXe;return function(n,r){let o=n.mul(r,JT),i=n.pow(o,t),a=n.mul(r,i),c=n.mul(n.mul(a,JT),i),l=n.mul(a,n.sub(c,n.ONE));if(!n.eql(n.sqr(l),r))throw new Error(\"Cannot find square root\");return l}}return Mtt(e)}function GXe(e,t,n){if(n<nd)throw new Error(\"Expected power > 0\");if(n===nd)return e.ONE;if(n===Ha)return t;let r=e.ONE,o=t;for(;n>nd;)n&Ha&&(r=e.mul(r,o)),o=e.sqr(o),n>>=Ha;return r}function qXe(e,t){let n=new Array(t.length),r=t.reduce(((i,a,c)=>e.is0(a)?i:(n[c]=i,e.mul(i,a))),e.ONE),o=e.inv(r);return t.reduceRight(((i,a,c)=>e.is0(a)?i:(n[c]=e.mul(i,n[c]),e.mul(i,a))),o),n}function KXe(e){let t=(e-Ha)/JT;return(n,r)=>n.pow(r,t)}function nbe(e,t){let n=t!==void 0?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function Ube(e){if(typeof e!=\"bigint\")throw new Error(\"field order must be bigint\");let t=e.toString(2).length;return Math.ceil(t/8)}function YXe(e){let t=Ube(e);return t+Math.ceil(t/2)}function KT(e,t){if(CH(e),CH(t),e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);let n=Array.from({length:t}).fill(0);for(let r=t-1;r>=0;r--)n[r]=255&e,e>>>=8;return new Uint8Array(n)}function d9t(e,t){let n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e[r]^t[r];return n}function CH(e){if(!Number.isSafeInteger(e))throw new Error(\"number expected\")}function Dtt(e,t,n,r){(0,zf.abytes)(e),(0,zf.abytes)(t),CH(n),t.length>255&&(t=r((0,zf.concatBytes)((0,zf.utf8ToBytes)(\"H2C-OVERSIZE-DST-\"),t)));let{outputLen:o,blockLen:i}=r,a=Math.ceil(n/o);if(n>65535||a>255)throw new Error(\"expand_message_xmd: invalid lenInBytes\");let c=(0,zf.concatBytes)(t,KT(t.length,1)),l=KT(0,i),d=KT(n,2),m=new Array(a),h=r((0,zf.concatBytes)(l,e,d,KT(0,1),c));m[0]=r((0,zf.concatBytes)(h,KT(1,1),c));for(let g=1;g<=a;g++){let y=[d9t(h,m[g-1]),KT(g+1,1),c];m[g]=r((0,zf.concatBytes)(...y))}return(0,zf.concatBytes)(...m).slice(0,n)}function Btt(e,t,n,r,o){if((0,zf.abytes)(e),(0,zf.abytes)(t),CH(n),t.length>255){let i=Math.ceil(2*r/8);t=o.create({dkLen:i}).update((0,zf.utf8ToBytes)(\"H2C-OVERSIZE-DST-\")).update(t).digest()}if(n>65535||t.length>255)throw new Error(\"expand_message_xof: invalid lenInBytes\");return o.create({dkLen:n}).update(e).update(KT(n,2)).update(t).update(KT(t.length,1)).digest()}function abe(e,t,n){(0,zf.validateObject)(n,{DST:\"stringOrUint8Array\",p:\"bigint\",m:\"isSafeInteger\",k:\"isSafeInteger\",hash:\"hash\"});let{p:r,k:o,m:i,hash:a,expand:c,DST:l}=n;(0,zf.abytes)(e),CH(t);let d=typeof l==\"string\"?(0,zf.utf8ToBytes)(l):l,m=r.toString(2).length,h=Math.ceil((m+o)/8),g=t*i*h,y;if(c===\"xmd\")y=Dtt(e,d,g,a);else if(c===\"xof\")y=Btt(e,d,g,o,a);else{if(c!==\"_internal_pass\")throw new Error(\\'expand must be \"xmd\" or \"xof\"\\');y=e}let w=new Array(t);for(let x=0;x<t;x++){let I=new Array(i);for(let C=0;C<i;C++){let M=h*(C+x*i),B=y.subarray(M,M+h);I[C]=(0,u9t.mod)(l9t(B),r)}w[x]=I}return w}function t$e(e){return{hash:e,hmac:(t,...n)=>(0,p9t.hmac)(e,t,(0,e$e.concatBytes)(...n)),randomBytes:e$e.randomBytes}}function Htt(e,t,n){return(0,jbe.hash)(e),n===void 0&&(n=new Uint8Array(e.outputLen)),(0,Ftt.hmac)(e,(0,n$e.toBytes)(n),(0,n$e.toBytes)(t))}function ztt(e,t,n,r=32){if((0,jbe.hash)(e),(0,jbe.number)(r),r>255*e.outputLen)throw new Error(\"Length should be <= 255*HashLen\");let o=Math.ceil(r/e.outputLen);n===void 0&&(n=r$e);let i=new Uint8Array(o*e.outputLen),a=Ftt.hmac.create(e,t),c=a._cloneInto(),l=new Uint8Array(a.outputLen);for(let d=0;d<o;d++)ube[0]=d+1,c.update(d===0?r$e:l).update(n).update(ube).digestInto(l),i.set(l,e.outputLen*d),a._cloneInto(c);return a.destroy(),c.destroy(),l.fill(0),ube.fill(0),i.slice(0,r)}function jtt(e){e.reverse();let t=1&e[15],n=0;for(let r=0;r<e.length;r++){let o=e[r];e[r]=o>>>1|n,n=(1&o)<<7}return e[0]^=225&-t,e}function i$e(e){let t=(r,o)=>e(o,r.length).update((0,oh.toBytes)(r)).digest(),n=e(new Uint8Array(16),0);return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=(r,o)=>e(r,o),t}function D1e(e){return e<<1^m9t&-(e>>7)}function iM(e,t){let n=0;for(;t>0;t>>=1)n^=e&-(1&t),e=D1e(e);return n}function Wtt(e,t){if(e.length!==256)throw new Error(\"Wrong sbox length\");let n=new Uint32Array(256).map(((d,m)=>t(e[m]))),r=n.map(lbe),o=r.map(lbe),i=o.map(lbe),a=new Uint32Array(65536),c=new Uint32Array(65536),l=new Uint16Array(65536);for(let d=0;d<256;d++)for(let m=0;m<256;m++){let h=256*d+m;a[h]=n[d]^r[m],c[h]=o[d]^i[m],l[h]=e[d]<<8|e[m]}return{sbox:e,sbox2:l,T0:n,T1:r,T2:o,T3:i,T01:a,T23:c}}function x1(e){(0,Zo.bytes)(e);let t=e.length;if(![16,24,32].includes(t))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${t}`);let{sbox2:n}=B1e,r=[];(0,Tt.isAligned32)(e)||r.push(e=(0,Tt.copyBytes)(e));let o=(0,Tt.u32)(e),i=o.length,a=l=>Yw(n,l,l,l,l),c=new Uint32Array(t+28);c.set(o);for(let l=i;l<c.length;l++){let d=c[l-1];l%i==0?d=a(y9t(d))^b9t[l/i-1]:i>6&&l%i==4&&(d=a(d)),c[l]=c[l-i]^d}return(0,Tt.clean)(...r),c}function IH(e){let t=x1(e),n=t.slice(),r=t.length,{sbox2:o}=B1e,{T0:i,T1:a,T2:c,T3:l}=Vtt;for(let d=0;d<r;d+=4)for(let m=0;m<4;m++)n[d+m]=t[r-d-4+m];(0,Tt.clean)(t);for(let d=4;d<r-4;d++){let m=n[d],h=Yw(o,m,m,m,m);n[d]=i[255&h]^a[h>>>8&255]^c[h>>>16&255]^l[h>>>24]}return n}function $T(e,t,n,r,o,i){return e[n<<8&65280|r>>>8&255]^t[o>>>8&65280|i>>>24&255]}function Yw(e,t,n,r,o){return e[255&t|65280&n]|e[r>>>16&255|o>>>16&65280]<<16}function ih(e,t,n,r,o){let{sbox2:i,T01:a,T23:c}=B1e,l=0;t^=e[l++],n^=e[l++],r^=e[l++],o^=e[l++];let d=e.length/4-2;for(let m=0;m<d;m++){let h=e[l++]^$T(a,c,t,n,r,o),g=e[l++]^$T(a,c,n,r,o,t),y=e[l++]^$T(a,c,r,o,t,n),w=e[l++]^$T(a,c,o,t,n,r);t=h,n=g,r=y,o=w}return{s0:e[l++]^Yw(i,t,n,r,o),s1:e[l++]^Yw(i,n,r,o,t),s2:e[l++]^Yw(i,r,o,t,n),s3:e[l++]^Yw(i,o,t,n,r)}}function kH(e,t,n,r,o){let{sbox2:i,T01:a,T23:c}=Vtt,l=0;t^=e[l++],n^=e[l++],r^=e[l++],o^=e[l++];let d=e.length/4-2;for(let m=0;m<d;m++){let h=e[l++]^$T(a,c,t,o,r,n),g=e[l++]^$T(a,c,n,t,o,r),y=e[l++]^$T(a,c,r,n,t,o),w=e[l++]^$T(a,c,o,r,n,t);t=h,n=g,r=y,o=w}return{s0:e[l++]^Yw(i,t,o,r,n),s1:e[l++]^Yw(i,n,t,o,r),s2:e[l++]^Yw(i,r,n,t,o),s3:e[l++]^Yw(i,o,r,n,t)}}function dM(e,t){if(t===void 0)return new Uint8Array(e);if((0,Zo.bytes)(t),t.length<e)throw new Error(`aes: wrong destination length, expected at least ${e}, got: ${t.length}`);if(!(0,Tt.isAligned32)(t))throw new Error(\"unaligned dst\");return t}function Gtt(e,t,n,r){(0,Zo.bytes)(t,pm),(0,Zo.bytes)(n);let o=n.length;r=dM(o,r);let i=t,a=(0,Tt.u32)(i),{s0:c,s1:l,s2:d,s3:m}=ih(e,a[0],a[1],a[2],a[3]),h=(0,Tt.u32)(n),g=(0,Tt.u32)(r);for(let w=0;w+4<=h.length;w+=4){g[w+0]=h[w+0]^c,g[w+1]=h[w+1]^l,g[w+2]=h[w+2]^d,g[w+3]=h[w+3]^m;let x=1;for(let I=i.length-1;I>=0;I--)x=x+(255&i[I])|0,i[I]=255&x,x>>>=8;({s0:c,s1:l,s2:d,s3:m}=ih(e,a[0],a[1],a[2],a[3]))}let y=pm*Math.floor(h.length/4);if(y<o){let w=new Uint32Array([c,l,d,m]),x=(0,Tt.u8)(w);for(let I=y,C=0;I<o;I++,C++)r[I]=n[I]^x[C];(0,Tt.clean)(w)}return r}function aM(e,t,n,r,o){(0,Zo.bytes)(n,pm),(0,Zo.bytes)(r),o=dM(r.length,o);let i=n,a=(0,Tt.u32)(i),c=(0,Tt.createView)(i),l=(0,Tt.u32)(r),d=(0,Tt.u32)(o),m=t?0:12,h=r.length,g=c.getUint32(m,t),{s0:y,s1:w,s2:x,s3:I}=ih(e,a[0],a[1],a[2],a[3]);for(let M=0;M+4<=l.length;M+=4)d[M+0]=l[M+0]^y,d[M+1]=l[M+1]^w,d[M+2]=l[M+2]^x,d[M+3]=l[M+3]^I,g=g+1>>>0,c.setUint32(m,g,t),{s0:y,s1:w,s2:x,s3:I}=ih(e,a[0],a[1],a[2],a[3]);let C=pm*Math.floor(l.length/4);if(C<h){let M=new Uint32Array([y,w,x,I]),B=(0,Tt.u8)(M);for(let z=C,G=0;z<h;z++,G++)o[z]=r[z]^B[G];(0,Tt.clean)(M)}return o}function a$e(e){if((0,Zo.bytes)(e),e.length%pm!=0)throw new Error(\"aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size 16\")}function s$e(e,t,n){(0,Zo.bytes)(e);let r=e.length,o=r%pm;if(!t&&o!==0)throw new Error(\"aec/(cbc-ecb): unpadded plaintext with disabled padding\");(0,Tt.isAligned32)(e)||(e=(0,Tt.copyBytes)(e));let i=(0,Tt.u32)(e);if(t){let c=pm-o;c||(c=pm),r+=c}let a=dM(r,n);return{b:i,o:(0,Tt.u32)(a),out:a}}function c$e(e,t){if(!t)return e;let n=e.length;if(!n)throw new Error(\"aes/pcks5: empty ciphertext not allowed\");let r=e[n-1];if(r<=0||r>16)throw new Error(\"aes/pcks5: wrong padding\");let o=e.subarray(0,-r);for(let i=0;i<r;i++)if(e[n-i-1]!==r)throw new Error(\"aes/pcks5: wrong padding\");return o}function u$e(e){let t=new Uint8Array(16),n=(0,Tt.u32)(t);t.set(e);let r=pm-e.length;for(let o=pm-r;o<pm;o++)t[o]=r;return n}function qtt(e,t,n,r,o){let i=o==null?0:o.length,a=e.create(n,r.length+i);o&&a.update(o),a.update(r);let c=new Uint8Array(16),l=(0,Tt.createView)(c);o&&(0,Tt.setBigUint64)(l,0,BigInt(8*i),t),(0,Tt.setBigUint64)(l,8,BigInt(8*r.length),t),a.update(c);let d=a.digest();return(0,Tt.clean)(c),d}function Ktt(e){return e!=null&&typeof e==\"object\"&&(e instanceof Uint32Array||e.constructor.name===\"Uint32Array\")}function Ytt(e,t){if((0,Zo.bytes)(t,16),!Ktt(e))throw new Error(\"_encryptBlock accepts result of expandKeyLE\");let n=(0,Tt.u32)(t),{s0:r,s1:o,s2:i,s3:a}=ih(e,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=o,n[2]=i,n[3]=a,t}function Ztt(e,t){if((0,Zo.bytes)(t,16),!Ktt(e))throw new Error(\"_decryptBlock accepts result of expandKeyLE\");let n=(0,Tt.u32)(t),{s0:r,s1:o,s2:i,s3:a}=kH(e,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=o,n[2]=i,n[3]=a,t}function dbe(e){return e.byteOffset%4==0}function ent(e){let t=(r,o)=>e(o).update((0,fH.toBytes)(r)).digest(),n=e(new Uint8Array(32));return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}function WH(e){return I9t.includes(e)}function int(e){let{context:t}=e;Qe.RemoteCommunication(`[RemoteCommunication: clean()] context=${t}`),e.channelConfig=void 0,e.ready=!1,e.originatorConnectStarted=!1}function ant(e,t){return pt(this,void 0,void 0,(function*(){var n;let r=(n=e.state.keyExchange)===null||n===void 0?void 0:n.encryptMessage(JSON.stringify(t)),o={id:e.state.channelId,context:e.state.context,clientType:e.state.isOriginator?\"dapp\":\"wallet\",message:r,plaintext:e.state.hasPlaintext?JSON.stringify(t):void 0};return Qe.SocketService(`[SocketService: encryptAndSendMessage()] context=${e.state.context}`,o),t.type===Ds.TERMINATE&&(e.state.manualDisconnect=!0),new Promise(((i,a)=>{var c;(c=e.state.socket)===null||c===void 0||c.emit(Rt.MESSAGE,o,((l,d)=>{var m;l&&(Qe.SocketService(`[SocketService: encryptAndSendMessage()] error=${l}`),a(l)),Qe.SocketService(\"[encryptAndSendMessage] response\",d),i((m=d?.success)!==null&&m!==void 0&&m)}))}))}))}function b$e(e,t){Qe.SocketService(`[SocketService: setupChannelListener()] context=${e.state.context} setting socket listeners for channel ${t}...`);let{socket:n}=e.state,{keyExchange:r}=e.state;n&&e.state.isOriginator&&(e.state.debug&&(n?.io.on(\"error\",(o=>{Qe.SocketService(`[SocketService: setupChannelListener()] context=${e.state.context} socket event=error`,o)})),n?.io.on(\"reconnect\",(o=>{Qe.SocketService(`[SocketService: setupChannelListener()] context=${e.state.context} socket event=reconnect`,o),Ybe(e).catch((i=>{}))})),n?.io.on(\"reconnect_error\",(o=>{Qe.SocketService(`[SocketService: setupChannelListener()] context=${e.state.context} socket event=reconnect_error`,o)})),n?.io.on(\"reconnect_failed\",(()=>{Qe.SocketService(`[SocketService: setupChannelListener()] context=${e.state.context} socket event=reconnect_failed`)}))),n?.on(\"disconnect\",(o=>(Qe.SocketService(`[SocketService: setupChannelListener()] on \\'disconnect\\' -- MetaMaskSDK socket disconnected \\'${o}\\' begin recovery...`),(function(i){return a=>{Qe.SocketService(`[SocketService: handleDisconnect()] on \\'disconnect\\' manualDisconnect=${i.state.manualDisconnect}`,a),i.state.manualDisconnect||(i.emit(Rt.SOCKET_DISCONNECTED),Ybe(i).catch((c=>{})))}})(e)(o))))),k9t.forEach((({event:o,handler:i})=>{n?.on(`${o}-${t}`,i(e,t))})),O9t.forEach((({event:o,handler:i})=>{r?.on(o,i(e))})),e.state.setupChannelListeners=!0}function N9t(e){return()=>pt(this,void 0,void 0,(function*(){var t,n,r;let{state:o}=e;if(o.authorized)return;yield pt(this,void 0,void 0,(function*(){for(;!o.walletInfo;)yield fM(500)}));let i=\"7.3\".localeCompare(((t=o.walletInfo)===null||t===void 0?void 0:t.version)||\"\");if(Qe.RemoteCommunication(`[RemoteCommunication: handleAuthorizedEvent()] HACK \\'authorized\\' version=${(n=o.walletInfo)===null||n===void 0?void 0:n.version} compareValue=${i}`),i!==1)return;let a=o.platformType===Gd.MobileWeb||o.platformType===Gd.ReactNative||o.platformType===Gd.MetaMaskMobileWebview;Qe.RemoteCommunication(`[RemoteCommunication: handleAuthorizedEvent()] HACK \\'authorized\\' platform=${o.platformType} secure=${a} channel=${o.channelId} walletVersion=${(r=o.walletInfo)===null||r===void 0?void 0:r.version}`),a&&(o.authorized=!0,e.emit(Rt.AUTHORIZED))}))}function P9t(e){return t=>{let{state:n}=e;Qe.RemoteCommunication(`[RemoteCommunication: handleChannelCreatedEvent()] context=${n.context} on \\'channel_created\\' channelId=${t}`),e.emit(Rt.CHANNEL_CREATED,t)}}function M9t(e,t){return()=>{var n,r,o,i;let{state:a}=e;Qe.RemoteCommunication(`[RemoteCommunication: handleClientsConnectedEvent()] on \\'clients_connected\\' channel=${a.channelId} keysExchanged=${(r=(n=a.communicationLayer)===null||n===void 0?void 0:n.getKeyInfo())===null||r===void 0?void 0:r.keysExchanged}`),a.analytics&&nA(Object.assign(Object.assign({id:(o=a.channelId)!==null&&o!==void 0?o:\"\",event:a.reconnection?ou.RECONNECT:a.isOriginator?ou.REQUEST:ou.REQUEST_MOBILE},a.originatorInfo),{commLayer:t,sdkVersion:a.sdkVersion,walletVersion:(i=a.walletInfo)===null||i===void 0?void 0:i.version,commLayerVersion:rC.version}),a.communicationServerUrl).catch((c=>{})),a.isOriginator&&!a.reconnection&&Oc.analytics.track(\"sdk_connection_established\",{transport_type:\"websocket\"}),a.clientsConnected=!0,a.originatorInfoSent=!1,e.emit(Rt.CLIENTS_CONNECTED)}}function D9t(e){return t=>{let{state:n}=e;Qe.RemoteCommunication(`[RemoteCommunication: handleClientsDisconnectedEvent()] context=${n.context} on \\'clients_disconnected\\' channelId=${t}`),n.relayPersistence||(n.clientsConnected=!1,n.ready=!1,n.authorized=!1),e.emit(Rt.CLIENTS_DISCONNECTED,n.channelId),e.setConnectionStatus(rd.DISCONNECTED)}}function B9t(e){return t=>{var n;let{state:r}=e;if(Qe.RemoteCommunication(`[RemoteCommunication: handleClientsWaitingEvent()] context=${r.context} on \\'clients_waiting\\' numberUsers=${t} ready=${r.ready} autoStarted=${r.originatorConnectStarted}`),e.setConnectionStatus(rd.WAITING),e.emit(Rt.CLIENTS_WAITING,t),r.originatorConnectStarted){Qe.RemoteCommunication(`[RemoteCommunication: handleClientsWaitingEvent()] on \\'clients_waiting\\' watch autoStarted=${r.originatorConnectStarted} timeout`,r.autoConnectOptions);let o=((n=r.autoConnectOptions)===null||n===void 0?void 0:n.timeout)||3e3,i=setTimeout((()=>{Qe.RemoteCommunication(`[RemoteCommunication: handleClientsWaitingEvent()] setTimeout(${o}) terminate channelConfig`,r.autoConnectOptions),r.originatorConnectStarted=!1,r.ready||e.setConnectionStatus(rd.TIMEOUT),clearTimeout(i)}),o)}}}function L9t(e,t){return n=>{var r,o,i,a,c,l,d,m;let{state:h}=e;if(Qe.RemoteCommunication(`[RemoteCommunication: handleKeysExchangedEvent()] context=${h.context} on commLayer.\\'keys_exchanged\\' channel=${h.channelId}`,n),(o=(r=h.communicationLayer)===null||r===void 0?void 0:r.getKeyInfo())===null||o===void 0?void 0:o.keysExchanged){let g=Object.assign(Object.assign({},h.channelConfig),{channelId:(i=h.channelId)!==null&&i!==void 0?i:\"\",validUntil:((a=h.channelConfig)===null||a===void 0?void 0:a.validUntil)||mM,localKey:h.communicationLayer.getKeyInfo().ecies.private,otherKey:h.communicationLayer.getKeyInfo().ecies.otherPubKey});(c=h.storageManager)===null||c===void 0||c.persistChannelConfig(g).catch((y=>{})),e.setConnectionStatus(rd.LINKED)}(function(g,y){var w,x,I,C,M,B,z,G;let{state:J}=g;Qe.RemoteCommunication(`[RemoteCommunication: setLastActiveDate()] channel=${J.channelId}`,y);let ne=Object.assign(Object.assign({},J.channelConfig),{channelId:(w=J.channelId)!==null&&w!==void 0?w:\"\",validUntil:(I=(x=J.channelConfig)===null||x===void 0?void 0:x.validUntil)!==null&&I!==void 0?I:0,relayPersistence:J.relayPersistence,localKey:(M=(C=J.communicationLayer)===null||C===void 0?void 0:C.state.keyExchange)===null||M===void 0?void 0:M.getKeyInfo().ecies.private,otherKey:(z=(B=J.communicationLayer)===null||B===void 0?void 0:B.state.keyExchange)===null||z===void 0?void 0:z.getKeyInfo().ecies.otherPubKey,lastActive:y.getTime()});(G=J.storageManager)===null||G===void 0||G.persistChannelConfig(ne)})(e,new Date),h.analytics&&h.channelId&&nA(Object.assign(Object.assign({id:h.channelId,event:n.isOriginator?ou.CONNECTED:ou.CONNECTED_MOBILE},h.originatorInfo),{sdkVersion:h.sdkVersion,commLayer:t,commLayerVersion:rC.version,walletVersion:(l=h.walletInfo)===null||l===void 0?void 0:l.version}),h.communicationServerUrl).catch((g=>{})),h.isOriginator=n.isOriginator,n.isOriginator||((d=h.communicationLayer)===null||d===void 0||d.sendMessage({type:Ds.READY}),h.ready=!0,h.paused=!1),n.isOriginator&&!h.originatorInfoSent&&((m=h.communicationLayer)===null||m===void 0||m.sendMessage({type:Ds.ORIGINATOR_INFO,originatorInfo:h.originatorInfo,originator:h.originatorInfo}),h.originatorInfoSent=!0)}}function U9t(e){return t=>{let n=t;t.message&&(n=n.message),(function(r,o){let{state:i}=o;if(Qe.RemoteCommunication(`[RemoteCommunication: onCommunicationLayerMessage()] context=${i.context} on \\'message\\' typeof=${typeof r}`,r),o.state.ready=!0,i.isOriginator||r.type!==Ds.ORIGINATOR_INFO)if(i.isOriginator&&r.type===Ds.WALLET_INFO)(function(a,c){let{state:l}=a;l.walletInfo=c.walletInfo,l.paused=!1})(o,r);else{if(i.isOriginator&&r.type===Ds.WALLET_INIT)(function(a,c){return pt(this,void 0,void 0,(function*(){var l,d,m;let{state:h}=a;if(h.isOriginator){let g=c.data||{};if(typeof g==\"object\"&&\"accounts\"in g&&\"chainId\"in g&&\"walletKey\"in g)try{let{channelConfig:y}=a.state;if(Qe.RemoteCommunication(\"WALLET_INIT: channelConfig\",JSON.stringify(y,null,2)),y){let w=g.accounts,x=g.chainId,I=g.walletKey,C,M=!1;\"deeplinkProtocol\"in g&&(M=!!g.deeplinkProtocol,a.state.deeplinkProtocolAvailable=M),\"walletVersion\"in g&&(C=g.walletVersion),yield(l=a.state.storageManager)===null||l===void 0?void 0:l.persistChannelConfig(Object.assign(Object.assign({},y),{otherKey:I,walletVersion:C,deeplinkProtocolAvailable:M,relayPersistence:!0})),yield(d=a.state.storageManager)===null||d===void 0?void 0:d.persistAccounts(w),yield(m=a.state.storageManager)===null||m===void 0?void 0:m.persistChainId(x)}a.emit(Rt.WALLET_INIT,{accounts:g.accounts,chainId:g.chainId})}catch{}}}))})(o,r).catch((a=>{Qe.RemoteCommunication(`[RemoteCommunication: onCommunicationLayerMessage()] error=${a}`)}));else if(r.type===Ds.TERMINATE)(function(a){return pt(this,void 0,void 0,(function*(){let{state:c}=a;c.isOriginator&&(yield cnt({options:{terminate:!0,sendMessage:!1},instance:a}),a.emit(Rt.TERMINATE))}))})(o).catch((a=>{Qe.RemoteCommunication(`[RemoteCommunication: onCommunicationLayerMessage()] error=${a}`)}));else if(r.type===Ds.PAUSE)(function(a){let{state:c}=a;c.paused=!0,a.setConnectionStatus(rd.PAUSED)})(o);else if(r.type===Ds.READY&&i.isOriginator)(function(a){let{state:c}=a;a.setConnectionStatus(rd.LINKED);let l=c.paused;c.paused=!1,a.emit(Rt.CLIENTS_READY,{isOriginator:c.isOriginator,walletInfo:c.walletInfo}),l&&(c.authorized=!0,a.emit(Rt.AUTHORIZED))})(o);else{if(r.type===Ds.OTP&&i.isOriginator)return void(function(a,c){var l;let{state:d}=a;a.emit(Rt.OTP,c.otpAnswer),\"6.6\".localeCompare(((l=d.walletInfo)===null||l===void 0?void 0:l.version)||\"\")===1&&a.emit(Rt.SDK_RPC_CALL,{method:Hf.ETH_REQUESTACCOUNTS,params:[]})})(o,r);r.type===Ds.AUTHORIZED&&i.isOriginator&&(function(a){let{state:c}=a;c.authorized=!0,a.emit(Rt.AUTHORIZED)})(o)}o.emit(Rt.MESSAGE,r)}else(function(a,c){var l;let{state:d}=a;(l=d.communicationLayer)===null||l===void 0||l.sendMessage({type:Ds.WALLET_INFO,walletInfo:d.walletInfo}),d.originatorInfo=c.originatorInfo||c.originator,a.emit(Rt.CLIENTS_READY,{isOriginator:d.isOriginator,originatorInfo:d.originatorInfo}),d.paused=!1})(o,r)})(n,e)}}function F9t(e){return()=>{let{state:t}=e;Qe.RemoteCommunication(\"[RemoteCommunication: handleSocketReconnectEvent()] on \\'socket_reconnect\\' -- reset key exchange status / set ready to false\"),t.ready=!1,t.authorized=!1,int(t),e.emitServiceStatusEvent({context:\"socket_reconnect\"})}}function H9t(e){return()=>{let{state:t}=e;Qe.RemoteCommunication(\"[RemoteCommunication: handleSocketDisconnectedEvent()] on \\'socket_Disconnected\\' set ready to false\"),t.ready=!1}}function z9t(e){return()=>pt(this,void 0,void 0,(function*(){var t,n,r,o,i,a,c;let{state:l}=e;Qe.RemoteCommunication(`[RemoteCommunication: handleFullPersistenceEvent()] context=${l.context}`),e.state.ready=!0,e.state.clientsConnected=!0,e.state.authorized=!0,e.state.relayPersistence=!0,(t=e.state.communicationLayer)===null||t===void 0||t.getKeyExchange().setKeysExchanged(!0),e.emit(Rt.KEYS_EXCHANGED,{keysExchanged:!0,isOriginator:!0}),e.emit(Rt.AUTHORIZED),e.emit(Rt.CLIENTS_READY),e.emit(Rt.CHANNEL_PERSISTENCE);try{l.channelConfig=Object.assign(Object.assign({},l.channelConfig),{localKey:(n=l.communicationLayer)===null||n===void 0?void 0:n.getKeyExchange().getKeyInfo().ecies.private,otherKey:(r=l.communicationLayer)===null||r===void 0?void 0:r.getKeyExchange().getOtherPublicKey(),channelId:(o=l.channelId)!==null&&o!==void 0?o:\"\",validUntil:(a=(i=l.channelConfig)===null||i===void 0?void 0:i.validUntil)!==null&&a!==void 0?a:mM,relayPersistence:!0}),yield(c=l.storageManager)===null||c===void 0?void 0:c.persistChannelConfig(l.channelConfig)}catch{}}))}function w$e({communicationLayerPreference:e,otherPublicKey:t,reconnect:n,ecies:r,communicationServerUrl:o=rI,instance:i}){var a,c,l,d,m,h,g,y,w,x,I;let{state:C}=i;if(Qe.RemoteCommunication(\"[initCommunicationLayer()] \",JSON.stringify(C,null,2)),e!==oC.SOCKET)throw new Error(\"Invalid communication protocol\");C.communicationLayer=new Zbe({communicationLayerPreference:e,otherPublicKey:t,reconnect:n,transports:C.transports,communicationServerUrl:o,context:C.context,ecies:r,logging:C.logging,remote:i});let M=typeof document<\"u\"&&document.URL||\"\",B=typeof document<\"u\"&&document.title||\"\";!((a=C.dappMetadata)===null||a===void 0)&&a.url&&(M=C.dappMetadata.url),!((c=C.dappMetadata)===null||c===void 0)&&c.name&&(B=C.dappMetadata.name);let z=(h=(d=(l=C.dappMetadata)===null||l===void 0?void 0:l.name)!==null&&d!==void 0?d:(m=C.dappMetadata)===null||m===void 0?void 0:m.url)!==null&&h!==void 0?h:\"N/A\",G=typeof window<\"u\"&&window.location!==void 0&&(g=window.location.hostname)!==null&&g!==void 0?g:z,J={url:M,title:B,source:(y=C.dappMetadata)===null||y===void 0?void 0:y.source,dappId:G,anonId:C.anonId,icon:((w=C.dappMetadata)===null||w===void 0?void 0:w.iconUrl)||((x=C.dappMetadata)===null||x===void 0?void 0:x.base64Icon),platform:C.platformType,apiVersion:rC.version,connector:(I=C.dappMetadata)===null||I===void 0?void 0:I.connector};C.originatorInfo=J;let ne={[Rt.AUTHORIZED]:N9t(i),[Rt.MESSAGE]:U9t(i),[Rt.CHANNEL_PERSISTENCE]:z9t(i),[Rt.CLIENTS_CONNECTED]:M9t(i,e),[Rt.KEYS_EXCHANGED]:L9t(i,e),[Rt.SOCKET_DISCONNECTED]:H9t(i),[Rt.SOCKET_RECONNECT]:F9t(i),[Rt.CLIENTS_DISCONNECTED]:D9t(i),[Rt.KEY_INFO]:()=>{},[Rt.CHANNEL_CREATED]:P9t(i),[Rt.CLIENTS_WAITING]:B9t(i),[Rt.RPC_UPDATE]:ie=>{i.emit(Rt.RPC_UPDATE,ie)}};for(let[ie,ae]of Object.entries(ne))try{C.communicationLayer.on(ie,ae)}catch{}}function cnt(e){return pt(this,arguments,void 0,(function*({options:t,instance:n}){let{state:r}=n;return Qe.RemoteCommunication(`[RemoteCommunication: disconnect()] channel=${r.channelId}`,t),new Promise(((o,i)=>{var a,c,l,d,m,h;t?.terminate?(n.state.ready&&nA({id:(a=n.state.channelId)!==null&&a!==void 0?a:\"\",event:ou.TERMINATED},n.state.communicationServerUrl).catch((g=>{})),r.ready=!1,r.paused=!1,(c=r.storageManager)===null||c===void 0||c.terminate((l=r.channelId)!==null&&l!==void 0?l:\"\"),n.state.terminated=!0,t.sendMessage?!((d=r.communicationLayer)===null||d===void 0)&&d.getKeyInfo().keysExchanged&&n.state.communicationLayer&&ant(n.state.communicationLayer,{type:Ds.TERMINATE}).then((()=>{o(!0)})).catch((g=>{i(g)})):o(!0),r.authorized=!1,r.relayPersistence=!1,r.channelId=g1(),t.channelId=r.channelId,r.channelConfig=void 0,r.originatorConnectStarted=!1,(m=r.communicationLayer)===null||m===void 0||m.disconnect(t),n.setConnectionStatus(rd.TERMINATED)):((h=r.communicationLayer)===null||h===void 0||h.disconnect(t),n.setConnectionStatus(rd.DISCONNECTED),o(!0))}))}))}function V9t(e){let t={ethDecryptDeprecation:!1,ethGetEncryptionPublicKeyDeprecation:!1,walletWatchAssetNFTExperimental:!1};return(n,r,o)=>{t.ethDecryptDeprecation||n.method!==\"eth_decrypt\"?t.ethGetEncryptionPublicKeyDeprecation||n.method!==\"eth_getEncryptionPublicKey\"?!t.walletWatchAssetNFTExperimental&&n.method===\"wallet_watchAsset\"&&[j9t,W9t].includes(n.params?.type||\"\")&&(e.warn(kc.warnings.rpc.walletWatchAssetNFTExperimental),t.walletWatchAssetNFTExperimental=!0):(e.warn(kc.warnings.rpc.ethGetEncryptionPublicKeyDeprecation),t.ethGetEncryptionPublicKeyDeprecation=!0):(e.warn(kc.warnings.rpc.ethDecryptDeprecation),t.ethDecryptDeprecation=!0),o()}}function G9t(){return(e,t,n,r)=>{let o=e.id,i=x$e=(x$e+1)%unt;e.id=i,t.id=i,n((a=>{e.id=o,t.id=o,a()}))}}function A$e(e){return!!e&&typeof e==\"object\"&&!Array.isArray(e)}function tA(e){return typeof e==\"object\"&&e!=null}function Xw(e){return typeof e==\"symbol\"?e.toString():typeof e==\"string\"?JSON.stringify(e):`${e}`}function q9t(e,t,n,r){if(e===!0)return;e===!1?e={}:typeof e==\"string\"&&(e={message:e});let{path:o,branch:i}=t,{type:a}=n,{refinement:c,message:l=`Expected a value of type \\\\`${a}\\\\`${c?` with refinement \\\\`${c}\\\\``:\"\"}, but received: \\\\`${Xw(r)}\\\\``}=e;return{value:r,type:a,refinement:c,key:o[o.length-1],path:o,branch:i,...e,message:l}}function*S$e(e,t,n,r){(function(o){return tA(o)&&typeof o[Symbol.iterator]==\"function\"})(e)||(e=[e]);for(let o of e){let i=q9t(o,t,n,r);i&&(yield i)}}function*U1e(e,t,n={}){let{path:r=[],branch:o=[e],coerce:i=!1,mask:a=!1}=n,c={path:r,branch:o};if(i&&(e=t.coercer(e,c),a&&t.type!==\"type\"&&tA(t.schema)&&tA(e)&&!Array.isArray(e)))for(let d in e)t.schema[d]===void 0&&delete e[d];let l=\"valid\";for(let d of t.validator(e,c))d.explanation=n.message,l=\"not_valid\",yield[d,void 0];for(let[d,m,h]of t.entries(e,c)){let g=U1e(m,h,{path:d===void 0?r:[...r,d],branch:d===void 0?o:[...o,m],coerce:i,mask:a,message:n.message});for(let y of g)y[0]?(l=y[0].refinement!=null?\"not_refined\":\"not_valid\",yield[y[0],void 0]):i&&(m=y[1],d===void 0?e=m:e instanceof Map?e.set(d,m):e instanceof Set?e.add(m):tA(e)&&(m!==void 0||d in e)&&(e[d]=m))}if(l!==\"not_valid\")for(let d of t.refiner(e,c))d.explanation=n.message,l=\"not_refined\",yield[d,void 0];l===\"valid\"&&(yield[void 0,e])}function lnt(e,t,n){let r=NH(e,t,{message:n});if(r[0])throw r[0]}function dnt(e,t,n){let r=NH(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function vM(e,t){return!NH(e,t)[0]}function NH(e,t,n={}){let r=U1e(e,t,n),o=(function(i){let{done:a,value:c}=i.next();return a?void 0:c})(r);return o[0]?[new Jbe(o[0],(function*(){for(let a of r)a[0]&&(yield a[0])})),void 0]:[void 0,o[1]]}function iC(e,t){return new R0({type:e,schema:null,validator:t})}function _$e(e){let t;return new R0({type:\"lazy\",schema:null,*entries(n,r){t??(t=e()),yield*t.entries(n,r)},validator:(n,r)=>(t??(t=e()),t.validator(n,r)),coercer:(n,r)=>(t??(t=e()),t.coercer(n,r)),refiner:(n,r)=>(t??(t=e()),t.refiner(n,r))})}function fnt(e){return new R0({type:\"array\",schema:e,*entries(t){if(e&&Array.isArray(t))for(let[n,r]of t.entries())yield[n,r,e]},coercer:t=>Array.isArray(t)?t.slice():t,validator:t=>Array.isArray(t)||`Expected an array value, but received: ${Xw(t)}`})}function pnt(e){let t=Xw(e),n=typeof e;return new R0({type:\"literal\",schema:n===\"string\"||n===\"number\"||n===\"boolean\"?e:null,validator:r=>r===e||`Expected the literal \\\\`${t}\\\\`, but received: ${Xw(r)}`})}function hnt(){return iC(\"number\",(e=>typeof e==\"number\"&&!isNaN(e)||`Expected a number, but received: ${Xw(e)}`))}function mnt(e){let t=e?Object.keys(e):[],n=iC(\"never\",(()=>!1));return new R0({type:\"object\",schema:e||null,*entries(r){if(e&&tA(r)){let o=new Set(Object.keys(r));for(let i of t)o.delete(i),yield[i,r[i],e[i]];for(let i of o)yield[i,r[i],n]}},validator:r=>tA(r)||`Expected an object, but received: ${Xw(r)}`,coercer:r=>tA(r)?{...r}:r})}function T$e(e){return new R0({...e,validator:(t,n)=>t===void 0||e.validator(t,n),refiner:(t,n)=>t===void 0||e.refiner(t,n)})}function gnt(e,t){return new R0({type:\"record\",schema:null,*entries(n){if(tA(n))for(let r in n){let o=n[r];yield[r,r,e],yield[r,o,t]}},validator:n=>tA(n)||`Expected an object, but received: ${Xw(n)}`})}function aC(){return iC(\"string\",(e=>typeof e==\"string\"||`Expected a string, but received: ${Xw(e)}`))}function Nte(e){let t=e.map((n=>n.type)).join(\" | \");return new R0({type:\"union\",schema:null,coercer(n){for(let r of e){let[o,i]=r.validate(n,{coerce:!0});if(!o)return i}return n},validator(n,r){let o=[];for(let i of e){let[...a]=U1e(n,i,r),[c]=a;if(!c[0])return[];for(let[l]of a)l&&o.push(l)}return[`Expected the value to satisfy a union of \\\\`${t}\\\\`, but received: ${Xw(n)}`,...o]}})}function K9t(e){return(function(t){return(function(n){return typeof n==\"object\"&&n!==null&&\"message\"in n})(t)&&typeof t.message==\"string\"?t.message:t==null?\"\":String(t)})(e).replace(/\\\\.$/u,\"\")}function Y9t(e,t){return n=e,typeof n?.prototype?.constructor?.name==\"string\"?new e({message:t}):e({message:t});var n}function ynt(){throw new Error(\"setTimeout has not been defined\")}function bnt(){throw new Error(\"clearTimeout has not been defined\")}function vnt(e){if(jT===setTimeout)return setTimeout(e,0);if((jT===ynt||!jT)&&setTimeout)return jT=setTimeout,setTimeout(e,0);try{return jT(e,0)}catch{try{return jT.call(null,e,0)}catch{return jT.call(this,e,0)}}}function Q9t(){pM&&$R&&(pM=!1,$R.length?eA=$R.concat(eA):Dee=-1,eA.length&&wnt())}function wnt(){if(!pM){var e=vnt(Q9t);pM=!0;for(var t=eA.length;t;){for($R=eA,eA=[];++Dee<t;)$R&&$R[Dee].run();Dee=-1,t=eA.length}$R=null,pM=!1,(function(n){if(WT===clearTimeout)return clearTimeout(n);if((WT===bnt||!WT)&&clearTimeout)return WT=clearTimeout,clearTimeout(n);try{return WT(n)}catch{try{return WT.call(null,n)}catch{return WT.call(this,n)}}})(e)}}function xnt(e,t){this.fun=e,this.array=t}function iI(){}function C$e({path:e,branch:t}){let n=e[e.length-1];return lte(t[t.length-2],n)}function dte(e){return new R0({...e,type:`optional ${e.type}`,validator:(t,n)=>!C$e(n)||e.validator(t,n),refiner:(t,n)=>!C$e(n)||e.refiner(t,n)})}function Xbe(e){try{return(function(t){dnt(t,MH)})(e),!0}catch{return!1}}function k$e(e){return vM(e,aBt)}function O$e(e){return vM(e,$be)}function Ant(e,t=cBt){if((function(n){return Number.isInteger(n)})(e)){let n=e.toString();if(lte(E$e,n))return E$e[n].message;if((function(r){return r>=-32099&&r<=-32e3})(e))return lBt}return t}function P$e(e,{fallbackError:t=uBt,shouldIncludeStack:n=!0}={}){if(!O$e(t))throw new Error(\"Must provide fallback error with integer number code and string message.\");let r=(function(o,i){if(o&&typeof o==\"object\"&&\"serialize\"in o&&typeof o.serialize==\"function\")return o.serialize();if(O$e(o))return o;let a=Snt(o);return{...i,data:{cause:a}}})(e,t);return n||delete r.stack,r}function Snt(e){return Array.isArray(e)?e.map((t=>Xbe(t)?t:A$e(t)?M$e(t):null)):A$e(e)?M$e(e):Xbe(e)?e:null}function M$e(e){return Object.getOwnPropertyNames(e).reduce(((t,n)=>{let r=e[n];return Xbe(r)&&(t[n]=r),t}),{})}function Cnt(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function pH(e,t,n,r){var o;r===void 0&&(r=Cnt()),e1e(e,\"\",0,[],void 0,0,r);try{o=eI.length===0?JSON.stringify(e,t,n):JSON.stringify(e,Rnt(t),n)}catch{return JSON.stringify(\"[unable to serialize, circular reference is too complex to analyze]\")}finally{for(;oI.length!==0;){var i=oI.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return o}function hM(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);o.get!==void 0?o.configurable?(Object.defineProperty(r,n,{value:e}),oI.push([r,n,t,o])):eI.push([t,n,e]):(r[n]=e,oI.push([r,n,t]))}function e1e(e,t,n,r,o,i,a){var c;if(i+=1,typeof e==\"object\"&&e!==null){for(c=0;c<r.length;c++)if(r[c]===e)return void hM(Tnt,e,t,o);if(a.depthLimit!==void 0&&i>a.depthLimit||a.edgesLimit!==void 0&&n+1>a.edgesLimit)return void hM(pte,e,t,o);if(r.push(e),Array.isArray(e))for(c=0;c<e.length;c++)e1e(e[c],c,c,r,e,i,a);else{var l=Object.keys(e);for(c=0;c<l.length;c++){var d=l[c];e1e(e[d],d,c,r,e,i,a)}}r.pop()}}function dBt(e,t){return e<t?-1:e>t?1:0}function D$e(e,t,n,r){r===void 0&&(r=Cnt());var o,i=t1e(e,\"\",0,[],void 0,0,r)||e;try{o=eI.length===0?JSON.stringify(i,t,n):JSON.stringify(i,Rnt(t),n)}catch{return JSON.stringify(\"[unable to serialize, circular reference is too complex to analyze]\")}finally{for(;oI.length!==0;){var a=oI.pop();a.length===4?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return o}function t1e(e,t,n,r,o,i,a){var c;if(i+=1,typeof e==\"object\"&&e!==null){for(c=0;c<r.length;c++)if(r[c]===e)return void hM(Tnt,e,t,o);try{if(typeof e.toJSON==\"function\")return}catch{return}if(a.depthLimit!==void 0&&i>a.depthLimit||a.edgesLimit!==void 0&&n+1>a.edgesLimit)return void hM(pte,e,t,o);if(r.push(e),Array.isArray(e))for(c=0;c<e.length;c++)t1e(e[c],c,c,r,e,i,a);else{var l={},d=Object.keys(e).sort(dBt);for(c=0;c<d.length;c++){var m=d[c];t1e(e[m],m,c,r,e,i,a),l[m]=e[m]}if(o===void 0)return l;oI.push([o,t,e]),o[t]=l}r.pop()}}function Rnt(e){return e=e!==void 0?e:function(t,n){return n},function(t,n){if(eI.length>0)for(var r=0;r<eI.length;r++){var o=eI[r];if(o[1]===t&&o[0]===n){n=o[2],eI.splice(r,1);break}}return e.call(this,t,n)}}function pBt(e,t){if(t!==\"[Circular]\")return t}function hBt(e,t){let[n,r]=(function(o){if(o){if(typeof o==\"string\")return[o];if(typeof o==\"object\"&&!Array.isArray(o)){let{message:i,data:a}=o;if(i&&typeof i!=\"string\")throw new Error(\"Must specify string message.\");return[i??void 0,a]}}return[]})(t);return new YE(e,n??Ant(e),r)}function VT(){}function Ni(){Ni.init.call(this)}function knt(e){return e._maxListeners===void 0?Ni.defaultMaxListeners:e._maxListeners}function B$e(e,t,n,r){var o,i,a;if(typeof n!=\"function\")throw new TypeError(\\'\"listener\" argument must be a function\\');if((i=e._events)?(i.newListener&&(e.emit(\"newListener\",t,n.listener?n.listener:n),i=e._events),a=i[t]):(i=e._events=new VT,e._eventsCount=0),a){if(typeof a==\"function\"?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(o=knt(e))&&o>0&&a.length>o){a.warned=!0;var c=new Error(\"Possible EventEmitter memory leak detected. \"+a.length+\" \"+t+\" listeners added. Use emitter.setMaxListeners() to increase limit\");c.name=\"MaxListenersExceededWarning\",c.emitter=e,c.type=t,c.count=a.length,(function(l){typeof console.warn==\"function\"?console.warn(l):console.log(l)})(c)}}else a=i[t]=n,++e._eventsCount;return e}function L$e(e,t,n){var r=!1;function o(){e.removeListener(t,o),r||(r=!0,n.apply(e,arguments))}return o.listener=n,o}function U$e(e){var t=this._events;if(t){var n=t[e];if(typeof n==\"function\")return 1;if(n)return n.length}return 0}function lH(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}function F$e(e,t,n){try{Reflect.apply(e,t,n)}catch(r){setTimeout((()=>{throw r}))}}function gbe(e){return JSON.stringify(e,null,2)}function vBt(e){return(t,n,r)=>{typeof t.method==\"string\"&&t.method||(n.error=vH({message:\"The request \\'method\\' must be a non-empty string.\",data:t})),r((o=>{let{error:i}=n;return i&&e.error(`MetaMask - RPC Error: ${i.message}`,i),o()}))}}async function W$e(e,t){try{let n=await(async function(){return{name:wBt(window),icon:await xBt(window)}})();e.handle({jsonrpc:\"2.0\",id:1,method:\"metamask_sendDomainMetadata\",params:n},Mnt)}catch(n){t.error({message:kc.errors.sendSiteMetadata(),originalError:n})}}function wBt(e){let{document:t}=e,n=t.querySelector(\\'head > meta[property=\"og:site_name\"]\\');if(n)return n.content;let r=t.querySelector(\\'head > meta[name=\"title\"]\\');return r?r.content:t.title&&t.title.length>0?t.title:window.location.hostname}async function xBt(e){let{document:t}=e,n=t.querySelectorAll(\\'head > link[rel~=\"icon\"]\\');for(let r of Array.from(n))if(r&&await EBt(r.href))return r.href;return null}async function EBt(e){return new Promise(((t,n)=>{try{let r=document.createElement(\"img\");r.onload=()=>t(!0),r.onerror=()=>t(!1),r.src=e}catch(r){n(r)}}))}function V$e(e,t,n){try{Reflect.apply(e,t,n)}catch(r){setTimeout((()=>{throw r}))}}function Pte(e){if(!DH(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(Jw(arguments[n]));return t.join(\" \")}n=1;for(var r=arguments,o=r.length,i=String(e).replace(TBt,(function(c){if(c===\"%%\")return\"%\";if(n>=o)return c;switch(c){case\"%s\":return String(r[n++]);case\"%d\":return Number(r[n++]);case\"%j\":try{return JSON.stringify(r[n++])}catch{return\"[Circular]\"}default:return c}})),a=r[n];n<o;a=r[++n])VH(a)||!aI(a)?i+=\" \"+a:i+=\" \"+Jw(a);return i}function j1e(e,t){if(Zw(sh.process))return function(){return j1e(e,t).apply(this,arguments)};if(li.noDeprecation===!0)return e;var n=!1;return function(){if(!n){if(li.throwDeprecation)throw new Error(t);li.traceDeprecation?console.trace(t):console.error(t),n=!0}return e.apply(this,arguments)}}function Hnt(e){return Zw(ybe)&&(ybe=li.env.NODE_DEBUG||\"\"),e=e.toUpperCase(),!Tee[e]&&(new RegExp(\"\\\\\\\\b\"+e+\"\\\\\\\\b\",\"i\").test(ybe)?Tee[e]=function(){var t=Pte.apply(null,arguments);console.error(\"%s %d: %s\",e,0,t)}:Tee[e]=function(){}),Tee[e]}function Jw(e,t){var n={seen:[],stylize:RBt};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Mte(t)?n.showHidden=t:t&&q1e(n,t),Zw(n.showHidden)&&(n.showHidden=!1),Zw(n.depth)&&(n.depth=2),Zw(n.colors)&&(n.colors=!1),Zw(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=CBt),gte(n,e,n.depth)}function CBt(e,t){var n=Jw.styles[t];return n?\"\\\\x1B[\"+Jw.colors[n][0]+\"m\"+e+\"\\\\x1B[\"+Jw.colors[n][1]+\"m\":e}function RBt(e,t){return e}function gte(e,t,n){if(e.customInspect&&t&&AH(t.inspect)&&t.inspect!==Jw&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return DH(r)||(r=gte(e,r,n)),r}var o=(function(g,y){if(Zw(y))return g.stylize(\"undefined\",\"undefined\");if(DH(y)){var w=\"\\'\"+JSON.stringify(y).replace(/^\"|\"$/g,\"\").replace(/\\'/g,\"\\\\\\\\\\'\").replace(/\\\\\\\\\"/g,\\'\"\\')+\"\\'\";return g.stylize(w,\"string\")}if(V1e(y))return g.stylize(\"\"+y,\"number\");if(Mte(y))return g.stylize(\"\"+y,\"boolean\");if(VH(y))return g.stylize(\"null\",\"null\")})(e,t);if(o)return o;var i=Object.keys(t),a=(function(g){var y={};return g.forEach((function(w,x){y[w]=!0})),y})(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),EH(t)&&(i.indexOf(\"message\")>=0||i.indexOf(\"description\")>=0))return bbe(t);if(i.length===0){if(AH(t)){var c=t.name?\": \"+t.name:\"\";return e.stylize(\"[Function\"+c+\"]\",\"special\")}if(xH(t))return e.stylize(RegExp.prototype.toString.call(t),\"regexp\");if(yte(t))return e.stylize(Date.prototype.toString.call(t),\"date\");if(EH(t))return bbe(t)}var l,d=\"\",m=!1,h=[\"{\",\"}\"];return W1e(t)&&(m=!0,h=[\"[\",\"]\"]),AH(t)&&(d=\" [Function\"+(t.name?\": \"+t.name:\"\")+\"]\"),xH(t)&&(d=\" \"+RegExp.prototype.toString.call(t)),yte(t)&&(d=\" \"+Date.prototype.toUTCString.call(t)),EH(t)&&(d=\" \"+bbe(t)),i.length!==0||m&&t.length!=0?n<0?xH(t)?e.stylize(RegExp.prototype.toString.call(t),\"regexp\"):e.stylize(\"[Object]\",\"special\"):(e.seen.push(t),l=m?(function(g,y,w,x,I){for(var C=[],M=0,B=y.length;M<B;++M)qnt(y,String(M))?C.push(vbe(g,y,w,x,String(M),!0)):C.push(\"\");return I.forEach((function(z){z.match(/^\\\\d+$/)||C.push(vbe(g,y,w,x,z,!0))})),C})(e,t,n,a,i):i.map((function(g){return vbe(e,t,n,a,g,m)})),e.seen.pop(),(function(g,y,w){var x=g.reduce((function(I,C){return C.indexOf(`\\n`),I+C.replace(/\\\\u001b\\\\[\\\\d\\\\d?m/g,\"\").length+1}),0);return x>60?w[0]+(y===\"\"?\"\":y+`\\n `)+\" \"+g.join(`,\\n  `)+\" \"+w[1]:w[0]+y+\" \"+g.join(\", \")+\" \"+w[1]})(l,d,h)):h[0]+d+h[1]}function bbe(e){return\"[\"+Error.prototype.toString.call(e)+\"]\"}function vbe(e,t,n,r,o,i){var a,c,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?c=l.set?e.stylize(\"[Getter/Setter]\",\"special\"):e.stylize(\"[Getter]\",\"special\"):l.set&&(c=e.stylize(\"[Setter]\",\"special\")),qnt(r,o)||(a=\"[\"+o+\"]\"),c||(e.seen.indexOf(l.value)<0?(c=VH(n)?gte(e,l.value,null):gte(e,l.value,n-1)).indexOf(`\\n`)>-1&&(c=i?c.split(`\\n`).map((function(d){return\"  \"+d})).join(`\\n`).substr(2):`\\n`+c.split(`\\n`).map((function(d){return\"   \"+d})).join(`\\n`)):c=e.stylize(\"[Circular]\",\"special\")),Zw(a)){if(i&&o.match(/^\\\\d+$/))return c;(a=JSON.stringify(\"\"+o)).match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,\"name\")):(a=a.replace(/\\'/g,\"\\\\\\\\\\'\").replace(/\\\\\\\\\"/g,\\'\"\\').replace(/(^\"|\"$)/g,\"\\'\"),a=e.stylize(a,\"string\"))}return a+\": \"+c}function W1e(e){return Array.isArray(e)}function Mte(e){return typeof e==\"boolean\"}function VH(e){return e===null}function znt(e){return e==null}function V1e(e){return typeof e==\"number\"}function DH(e){return typeof e==\"string\"}function jnt(e){return typeof e==\"symbol\"}function Zw(e){return e===void 0}function xH(e){return aI(e)&&G1e(e)===\"[object RegExp]\"}function aI(e){return typeof e==\"object\"&&e!==null}function yte(e){return aI(e)&&G1e(e)===\"[object Date]\"}function EH(e){return aI(e)&&(G1e(e)===\"[object Error]\"||e instanceof Error)}function AH(e){return typeof e==\"function\"}function Wnt(e){return e===null||typeof e==\"boolean\"||typeof e==\"number\"||typeof e==\"string\"||typeof e==\"symbol\"||e===void 0}function Vnt(e){return ht.isBuffer(e)}function G1e(e){return Object.prototype.toString.call(e)}function wbe(e){return e<10?\"0\"+e.toString(10):e.toString(10)}function Gnt(){var e,t;console.log(\"%s - %s\",(e=new Date,t=[wbe(e.getHours()),wbe(e.getMinutes()),wbe(e.getSeconds())].join(\":\"),[e.getDate(),IBt[e.getMonth()],t].join(\" \")),Pte.apply(null,arguments))}function q1e(e,t){if(!t||!aI(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function qnt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function K1e(e){if(typeof e!=\"function\")throw new TypeError(\\'The \"original\" argument must be of type Function\\');if(QR&&e[QR]){var t;if(typeof(t=e[QR])!=\"function\")throw new TypeError(\\'The \"util.promisify.custom\" argument must be of type Function\\');return Object.defineProperty(t,QR,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var n,r,o=new Promise((function(c,l){n=c,r=l})),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push((function(c,l){c?r(c):n(l)}));try{e.apply(this,i)}catch(c){r(c)}return o}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),QR&&Object.defineProperty(t,QR,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,Fnt(e))}function kBt(e,t){if(!e){var n=new Error(\"Promise was rejected with a falsy value\");n.reason=e,e=n}return t(e)}function Knt(e){if(typeof e!=\"function\")throw new TypeError(\\'The \"original\" argument must be of type Function\\');function t(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var o=n.pop();if(typeof o!=\"function\")throw new TypeError(\"The last argument must be of type Function\");var i=this,a=function(){return o.apply(i,arguments)};e.apply(this,n).then((function(c){li.nextTick(a.bind(null,null,c))}),(function(c){li.nextTick(kBt.bind(null,c,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,Fnt(e)),t}function NBt(){if(G$e)return xbe;function e(l,d){var m=Object.keys(l);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(l);d&&(h=h.filter((function(g){return Object.getOwnPropertyDescriptor(l,g).enumerable}))),m.push.apply(m,h)}return m}function t(l){for(var d=1;d<arguments.length;d++){var m=arguments[d]!=null?arguments[d]:{};d%2?e(Object(m),!0).forEach((function(h){n(l,h,m[h])})):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(m)):e(Object(m)).forEach((function(h){Object.defineProperty(l,h,Object.getOwnPropertyDescriptor(m,h))}))}return l}function n(l,d,m){return(d=o(d))in l?Object.defineProperty(l,d,{value:m,enumerable:!0,configurable:!0,writable:!0}):l[d]=m,l}function r(l,d,m){return d&&(function(h,g){for(var y=0;y<g.length;y++){var w=g[y];w.enumerable=w.enumerable||!1,w.configurable=!0,\"value\"in w&&(w.writable=!0),Object.defineProperty(h,o(w.key),w)}})(l.prototype,d),Object.defineProperty(l,\"prototype\",{writable:!1}),l}function o(l){var d=(function(m,h){if(typeof m!=\"object\"||m===null)return m;var g=m[Symbol.toPrimitive];if(g!==void 0){var y=g.call(m,h||\"default\");if(typeof y!=\"object\")return y;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(h===\"string\"?String:Number)(m)})(l,\"string\");return typeof d==\"symbol\"?d:String(d)}G$e=1;var i=z1e.Buffer,a=Ynt.inspect,c=a&&a.custom||\"inspect\";return xbe=(function(){function l(){(function(d,m){if(!(d instanceof m))throw new TypeError(\"Cannot call a class as a function\")})(this,l),this.head=null,this.tail=null,this.length=0}return r(l,[{key:\"push\",value:function(d){var m={data:d,next:null};this.length>0?this.tail.next=m:this.head=m,this.tail=m,++this.length}},{key:\"unshift\",value:function(d){var m={data:d,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length}},{key:\"shift\",value:function(){if(this.length!==0){var d=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,d}}},{key:\"clear\",value:function(){this.head=this.tail=null,this.length=0}},{key:\"join\",value:function(d){if(this.length===0)return\"\";for(var m=this.head,h=\"\"+m.data;m=m.next;)h+=d+m.data;return h}},{key:\"concat\",value:function(d){if(this.length===0)return i.alloc(0);for(var m,h,g,y=i.allocUnsafe(d>>>0),w=this.head,x=0;w;)m=w.data,h=y,g=x,i.prototype.copy.call(m,h,g),x+=w.data.length,w=w.next;return y}},{key:\"consume\",value:function(d,m){var h;return d<this.head.data.length?(h=this.head.data.slice(0,d),this.head.data=this.head.data.slice(d)):h=d===this.head.data.length?this.shift():m?this._getString(d):this._getBuffer(d),h}},{key:\"first\",value:function(){return this.head.data}},{key:\"_getString\",value:function(d){var m=this.head,h=1,g=m.data;for(d-=g.length;m=m.next;){var y=m.data,w=d>y.length?y.length:d;if(w===y.length?g+=y:g+=y.slice(0,d),(d-=w)===0){w===y.length?(++h,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=y.slice(w));break}++h}return this.length-=h,g}},{key:\"_getBuffer\",value:function(d){var m=i.allocUnsafe(d),h=this.head,g=1;for(h.data.copy(m),d-=h.data.length;h=h.next;){var y=h.data,w=d>y.length?y.length:d;if(y.copy(m,m.length-d,0,w),(d-=w)===0){w===y.length?(++g,h.next?this.head=h.next:this.head=this.tail=null):(this.head=h,h.data=y.slice(w));break}++g}return this.length-=g,m}},{key:c,value:function(d,m){return a(this,t(t({},m),{},{depth:0,customInspect:!1}))}}]),l})(),xbe}function q$e(e,t){c1e(e,t),Wee(e)}function Wee(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(\"close\")}function c1e(e,t){e.emit(\"error\",t)}function yy(e,t,n){n||(n=Error);var r=(function(o){var i,a;function c(l,d,m){return o.call(this,(function(h,g,y){return typeof t==\"string\"?t:t(h,g,y)})(l,d,m))||this}return a=o,(i=c).prototype=Object.create(a.prototype),i.prototype.constructor=i,i.__proto__=a,c})(n);r.prototype.name=n.name,r.prototype.code=e,Qnt[e]=r}function K$e(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(r){return String(r)})),n>2?\"one of \".concat(t,\" \").concat(e.slice(0,n-1).join(\", \"),\", or \")+e[n-1]:n===2?\"one of \".concat(t,\" \").concat(e[0],\" or \").concat(e[1]):\"of \".concat(t,\" \").concat(e[0])}return\"of \".concat(t,\" \").concat(String(e))}function Sbe(e){try{if(!Sy.localStorage)return!1}catch{return!1}var t=Sy.localStorage[e];return t!=null&&String(t).toLowerCase()===\"true\"}function Xnt(){if(Y$e)return Ebe;function e(X){var F=this;this.next=null,this.entry=null,this.finish=function(){(function(R,O,U){var P=R.entry;for(R.entry=null;P;){var L=P.callback;O.pendingcb--,L(U),P=P.next}O.corkedRequestsFree.next=R})(F,X)}}var t;Y$e=1,Ebe=G,G.WritableState=z;var n={deprecate:DBt},r=Unt,o=z1e.Buffer,i=(Sy!==void 0?Sy:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){},a,c=Znt,l=Jnt.getHighWaterMark,d=sI.codes,m=d.ERR_INVALID_ARG_TYPE,h=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,y=d.ERR_STREAM_CANNOT_PIPE,w=d.ERR_STREAM_DESTROYED,x=d.ERR_STREAM_NULL_VALUES,I=d.ERR_STREAM_WRITE_AFTER_END,C=d.ERR_UNKNOWN_ENCODING,M=c.errorOrDestroy;function B(){}function z(X,F,R){t=t||gM(),X=X||{},typeof R!=\"boolean\"&&(R=F instanceof t),this.objectMode=!!X.objectMode,R&&(this.objectMode=this.objectMode||!!X.writableObjectMode),this.highWaterMark=l(this,X,\"writableHighWaterMark\",R),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var O=X.decodeStrings===!1;this.decodeStrings=!O,this.defaultEncoding=X.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(U){(function(P,L){var W=P._writableState,q=W.sync,H=W.writecb;if(typeof H!=\"function\")throw new g;if((function(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0})(W),L)(function(V,oe,se,ue,he){--oe.pendingcb,se?(li.nextTick(he,ue),li.nextTick(Z,V,oe),V._writableState.errorEmitted=!0,M(V,ue)):(he(ue),V._writableState.errorEmitted=!0,M(V,ue),Z(V,oe))})(P,W,q,L,H);else{var k=ae(W)||P.destroyed;k||W.corked||W.bufferProcessing||!W.bufferedRequest||ie(P,W),q?li.nextTick(ne,P,W,k,H):ne(P,W,k,H)}})(F,U)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=X.emitClose!==!1,this.autoDestroy=!!X.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function G(X){var F=this instanceof(t=t||gM());if(!F&&!a.call(G,this))return new G(X);this._writableState=new z(X,this,F),this.writable=!0,X&&(typeof X.write==\"function\"&&(this._write=X.write),typeof X.writev==\"function\"&&(this._writev=X.writev),typeof X.destroy==\"function\"&&(this._destroy=X.destroy),typeof X.final==\"function\"&&(this._final=X.final)),r.call(this)}function J(X,F,R,O,U,P,L){F.writelen=O,F.writecb=L,F.writing=!0,F.sync=!0,F.destroyed?F.onwrite(new w(\"write\")):R?X._writev(U,F.onwrite):X._write(U,P,F.onwrite),F.sync=!1}function ne(X,F,R,O){R||(function(U,P){P.length===0&&P.needDrain&&(P.needDrain=!1,U.emit(\"drain\"))})(X,F),F.pendingcb--,O(),Z(X,F)}function ie(X,F){F.bufferProcessing=!0;var R=F.bufferedRequest;if(X._writev&&R&&R.next){var O=F.bufferedRequestCount,U=new Array(O),P=F.corkedRequestsFree;P.entry=R;for(var L=0,W=!0;R;)U[L]=R,R.isBuf||(W=!1),R=R.next,L+=1;U.allBuffers=W,J(X,F,!0,F.length,U,\"\",P.finish),F.pendingcb++,F.lastBufferedRequest=null,P.next?(F.corkedRequestsFree=P.next,P.next=null):F.corkedRequestsFree=new e(F),F.bufferedRequestCount=0}else{for(;R;){var q=R.chunk,H=R.encoding,k=R.callback;if(J(X,F,!1,F.objectMode?1:q.length,q,H,k),R=R.next,F.bufferedRequestCount--,F.writing)break}R===null&&(F.lastBufferedRequest=null)}F.bufferedRequest=R,F.bufferProcessing=!1}function ae(X){return X.ending&&X.length===0&&X.bufferedRequest===null&&!X.finished&&!X.writing}function te(X,F){X._final((function(R){F.pendingcb--,R&&M(X,R),F.prefinished=!0,X.emit(\"prefinish\"),Z(X,F)}))}function Z(X,F){var R=ae(F);if(R&&((function(U,P){P.prefinished||P.finalCalled||(typeof U._final!=\"function\"||P.destroyed?(P.prefinished=!0,U.emit(\"prefinish\")):(P.pendingcb++,P.finalCalled=!0,li.nextTick(te,U,P)))})(X,F),F.pendingcb===0&&(F.finished=!0,X.emit(\"finish\"),F.autoDestroy))){var O=X._readableState;(!O||O.autoDestroy&&O.endEmitted)&&X.destroy()}return R}return GH(G,r),z.prototype.getBuffer=function(){for(var X=this.bufferedRequest,F=[];X;)F.push(X),X=X.next;return F},(function(){try{Object.defineProperty(z.prototype,\"buffer\",{get:n.deprecate((function(){return this.getBuffer()}),\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch{}})(),typeof Symbol==\"function\"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==\"function\"?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(G,Symbol.hasInstance,{value:function(X){return!!a.call(this,X)||this===G&&X&&X._writableState instanceof z}})):a=function(X){return X instanceof this},G.prototype.pipe=function(){M(this,new y)},G.prototype.write=function(X,F,R){var O,U=this._writableState,P=!1,L=!U.objectMode&&(O=X,o.isBuffer(O)||O instanceof i);return L&&!o.isBuffer(X)&&(X=(function(W){return o.from(W)})(X)),typeof F==\"function\"&&(R=F,F=null),L?F=\"buffer\":F||(F=U.defaultEncoding),typeof R!=\"function\"&&(R=B),U.ending?(function(W,q){var H=new I;M(W,H),li.nextTick(q,H)})(this,R):(L||(function(W,q,H,k){var V;return H===null?V=new x:typeof H==\"string\"||q.objectMode||(V=new m(\"chunk\",[\"string\",\"Buffer\"],H)),!V||(M(W,V),li.nextTick(k,V),!1)})(this,U,X,R))&&(U.pendingcb++,P=(function(W,q,H,k,V,oe){if(!H){var se=(function(we,Ie,_e){return we.objectMode||we.decodeStrings===!1||typeof Ie!=\"string\"||(Ie=o.from(Ie,_e)),Ie})(q,k,V);k!==se&&(H=!0,V=\"buffer\",k=se)}var ue=q.objectMode?1:k.length;q.length+=ue;var he=q.length<q.highWaterMark;if(he||(q.needDrain=!0),q.writing||q.corked){var be=q.lastBufferedRequest;q.lastBufferedRequest={chunk:k,encoding:V,isBuf:H,callback:oe,next:null},be?be.next=q.lastBufferedRequest:q.bufferedRequest=q.lastBufferedRequest,q.bufferedRequestCount+=1}else J(W,q,!1,ue,k,V,oe);return he})(this,U,L,X,F,R)),P},G.prototype.cork=function(){this._writableState.corked++},G.prototype.uncork=function(){var X=this._writableState;X.corked&&(X.corked--,X.writing||X.corked||X.bufferProcessing||!X.bufferedRequest||ie(this,X))},G.prototype.setDefaultEncoding=function(X){if(typeof X==\"string\"&&(X=X.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((X+\"\").toLowerCase())>-1))throw new C(X);return this._writableState.defaultEncoding=X,this},Object.defineProperty(G.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(G.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),G.prototype._write=function(X,F,R){R(new h(\"_write()\"))},G.prototype._writev=null,G.prototype.end=function(X,F,R){var O=this._writableState;return typeof X==\"function\"?(R=X,X=null,F=null):typeof F==\"function\"&&(R=F,F=null),X!=null&&this.write(X,F),O.corked&&(O.corked=1,this.uncork()),O.ending||(function(U,P,L){P.ending=!0,Z(U,P),L&&(P.finished?li.nextTick(L):U.once(\"finish\",L)),P.ended=!0,U.writable=!1})(this,O,R),this},Object.defineProperty(G.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(G.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(X){this._writableState&&(this._writableState.destroyed=X)}}),G.prototype.destroy=c.destroy,G.prototype._undestroy=c.undestroy,G.prototype._destroy=function(X,F){F(X)},Ebe}function gM(){if(Z$e)return Abe;Z$e=1;var e=Object.keys||function(d){var m=[];for(var h in d)m.push(h);return m};Abe=a;var t=$nt(),n=Xnt();GH(a,t);for(var r=e(n.prototype),o=0;o<r.length;o++){var i=r[o];a.prototype[i]||(a.prototype[i]=n.prototype[i])}function a(d){if(!(this instanceof a))return new a(d);t.call(this,d),n.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once(\"end\",c)))}function c(){this._writableState.ended||li.nextTick(l,this)}function l(d){d.end()}return Object.defineProperty(a.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(a.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(d){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=d,this._writableState.destroyed=d)}}),Abe}function Vee(e){switch(this.encoding=(e||\"utf8\").toLowerCase().replace(/[-_]/,\"\"),(function(t){if(t&&!BBt(t))throw new Error(\"Unknown encoding: \"+t)})(e),this.encoding){case\"utf8\":this.surrogateSize=3;break;case\"ucs2\":case\"utf16le\":this.surrogateSize=2,this.detectIncompleteChar=UBt;break;case\"base64\":this.surrogateSize=3,this.detectIncompleteChar=FBt;break;default:return void(this.write=LBt)}this.charBuffer=new ht(6),this.charReceived=0,this.charLength=0}function LBt(e){return e.toString(this.encoding)}function UBt(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function FBt(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}function HBt(){}function zBt(){if(X$e)return _be;var e;function t(x,I,C){return(I=(function(M){var B=(function(z,G){if(typeof z!=\"object\"||z===null)return z;var J=z[Symbol.toPrimitive];if(J!==void 0){var ne=J.call(z,G||\"default\");if(typeof ne!=\"object\")return ne;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(G===\"string\"?String:Number)(z)})(M,\"string\");return typeof B==\"symbol\"?B:String(B)})(I))in x?Object.defineProperty(x,I,{value:C,enumerable:!0,configurable:!0,writable:!0}):x[I]=C,x}X$e=1;var n=Y1e,r=Symbol(\"lastResolve\"),o=Symbol(\"lastReject\"),i=Symbol(\"error\"),a=Symbol(\"ended\"),c=Symbol(\"lastPromise\"),l=Symbol(\"handlePromise\"),d=Symbol(\"stream\");function m(x,I){return{value:x,done:I}}function h(x){var I=x[r];if(I!==null){var C=x[d].read();C!==null&&(x[c]=null,x[r]=null,x[o]=null,I(m(C,!1)))}}function g(x){li.nextTick(h,x)}var y=Object.getPrototypeOf((function(){})),w=Object.setPrototypeOf((t(e={get stream(){return this[d]},next:function(){var x=this,I=this[i];if(I!==null)return Promise.reject(I);if(this[a])return Promise.resolve(m(void 0,!0));if(this[d].destroyed)return new Promise((function(z,G){li.nextTick((function(){x[i]?G(x[i]):z(m(void 0,!0))}))}));var C,M=this[c];if(M)C=new Promise((function(z,G){return function(J,ne){z.then((function(){G[a]?J(m(void 0,!0)):G[l](J,ne)}),ne)}})(M,this));else{var B=this[d].read();if(B!==null)return Promise.resolve(m(B,!1));C=new Promise(this[l])}return this[c]=C,C}},Symbol.asyncIterator,(function(){return this})),t(e,\"return\",(function(){var x=this;return new Promise((function(I,C){x[d].destroy(null,(function(M){M?C(M):I(m(void 0,!0))}))}))})),e),y);return _be=function(x){var I,C=Object.create(w,(t(I={},d,{value:x,writable:!0}),t(I,r,{value:null,writable:!0}),t(I,o,{value:null,writable:!0}),t(I,i,{value:null,writable:!0}),t(I,a,{value:x._readableState.endEmitted,writable:!0}),t(I,l,{value:function(M,B){var z=C[d].read();z?(C[c]=null,C[r]=null,C[o]=null,M(m(z,!1))):(C[r]=M,C[o]=B)},writable:!0}),I));return C[c]=null,n(x,(function(M){if(M&&M.code!==\"ERR_STREAM_PREMATURE_CLOSE\"){var B=C[o];return B!==null&&(C[c]=null,C[r]=null,C[o]=null,B(M)),void(C[i]=M)}var z=C[r];z!==null&&(C[c]=null,C[r]=null,C[o]=null,z(m(void 0,!0))),C[a]=!0})),x.on(\"readable\",g.bind(null,C)),C},_be}function $nt(){if(tet)return Tbe;var e;tet=1,Tbe=G,G.ReadableState=z,F1e.EventEmitter;var t=function(k,V){return k.listeners(V).length},n=Unt,r=z1e.Buffer,o=(Sy!==void 0?Sy:typeof window<\"u\"?window:typeof self<\"u\"?self:{}).Uint8Array||function(){},i,a=Ynt;i=a&&a.debuglog?a.debuglog(\"stream\"):function(){};var c,l,d,m=NBt(),h=Znt,g=Jnt.getHighWaterMark,y=sI.codes,w=y.ERR_INVALID_ARG_TYPE,x=y.ERR_STREAM_PUSH_AFTER_EOF,I=y.ERR_METHOD_NOT_IMPLEMENTED,C=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;GH(G,n);var M=h.errorOrDestroy,B=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function z(k,V,oe){e=e||gM(),k=k||{},typeof oe!=\"boolean\"&&(oe=V instanceof e),this.objectMode=!!k.objectMode,oe&&(this.objectMode=this.objectMode||!!k.readableObjectMode),this.highWaterMark=g(this,k,\"readableHighWaterMark\",oe),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=k.emitClose!==!1,this.autoDestroy=!!k.autoDestroy,this.destroyed=!1,this.defaultEncoding=k.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,k.encoding&&(c||(c=Q$e.StringDecoder),this.decoder=new c(k.encoding),this.encoding=k.encoding)}function G(k){if(e=e||gM(),!(this instanceof G))return new G(k);var V=this instanceof e;this._readableState=new z(k,this,V),this.readable=!0,k&&(typeof k.read==\"function\"&&(this._read=k.read),typeof k.destroy==\"function\"&&(this._destroy=k.destroy)),n.call(this)}function J(k,V,oe,se,ue){i(\"readableAddChunk\",V);var he,be=k._readableState;if(V===null)be.reading=!1,(function(we,Ie){if(i(\"onEofChunk\"),!Ie.ended){if(Ie.decoder){var _e=Ie.decoder.end();_e&&_e.length&&(Ie.buffer.push(_e),Ie.length+=Ie.objectMode?1:_e.length)}Ie.ended=!0,Ie.sync?te(we):(Ie.needReadable=!1,Ie.emittedReadable||(Ie.emittedReadable=!0,Z(we)))}})(k,be);else if(ue||(he=(function(we,Ie){var _e;Ve=Ie,r.isBuffer(Ve)||Ve instanceof o||typeof Ie==\"string\"||Ie===void 0||we.objectMode||(_e=new w(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],Ie));var Ve;return _e})(be,V)),he)M(k,he);else if(be.objectMode||V&&V.length>0)if(typeof V==\"string\"||be.objectMode||Object.getPrototypeOf(V)===r.prototype||(V=(function(we){return r.from(we)})(V)),se)be.endEmitted?M(k,new C):ne(k,be,V,!0);else if(be.ended)M(k,new x);else{if(be.destroyed)return!1;be.reading=!1,be.decoder&&!oe?(V=be.decoder.write(V),be.objectMode||V.length!==0?ne(k,be,V,!1):X(k,be)):ne(k,be,V,!1)}else se||(be.reading=!1,X(k,be));return!be.ended&&(be.length<be.highWaterMark||be.length===0)}function ne(k,V,oe,se){V.flowing&&V.length===0&&!V.sync?(V.awaitDrain=0,k.emit(\"data\",oe)):(V.length+=V.objectMode?1:oe.length,se?V.buffer.unshift(oe):V.buffer.push(oe),V.needReadable&&te(k)),X(k,V)}Object.defineProperty(G.prototype,\"destroyed\",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(k){this._readableState&&(this._readableState.destroyed=k)}}),G.prototype.destroy=h.destroy,G.prototype._undestroy=h.undestroy,G.prototype._destroy=function(k,V){V(k)},G.prototype.push=function(k,V){var oe,se=this._readableState;return se.objectMode?oe=!0:typeof k==\"string\"&&((V=V||se.defaultEncoding)!==se.encoding&&(k=r.from(k,V),V=\"\"),oe=!0),J(this,k,V,!1,oe)},G.prototype.unshift=function(k){return J(this,k,null,!0,!1)},G.prototype.isPaused=function(){return this._readableState.flowing===!1},G.prototype.setEncoding=function(k){c||(c=Q$e.StringDecoder);var V=new c(k);this._readableState.decoder=V,this._readableState.encoding=this._readableState.decoder.encoding;for(var oe=this._readableState.buffer.head,se=\"\";oe!==null;)se+=V.write(oe.data),oe=oe.next;return this._readableState.buffer.clear(),se!==\"\"&&this._readableState.buffer.push(se),this._readableState.length=se.length,this};var ie=1073741824;function ae(k,V){return k<=0||V.length===0&&V.ended?0:V.objectMode?1:k!=k?V.flowing&&V.length?V.buffer.head.data.length:V.length:(k>V.highWaterMark&&(V.highWaterMark=(function(oe){return oe>=ie?oe=ie:(oe--,oe|=oe>>>1,oe|=oe>>>2,oe|=oe>>>4,oe|=oe>>>8,oe|=oe>>>16,oe++),oe})(k)),k<=V.length?k:V.ended?V.length:(V.needReadable=!0,0))}function te(k){var V=k._readableState;i(\"emitReadable\",V.needReadable,V.emittedReadable),V.needReadable=!1,V.emittedReadable||(i(\"emitReadable\",V.flowing),V.emittedReadable=!0,li.nextTick(Z,k))}function Z(k){var V=k._readableState;i(\"emitReadable_\",V.destroyed,V.length,V.ended),V.destroyed||!V.length&&!V.ended||(k.emit(\"readable\"),V.emittedReadable=!1),V.needReadable=!V.flowing&&!V.ended&&V.length<=V.highWaterMark,P(k)}function X(k,V){V.readingMore||(V.readingMore=!0,li.nextTick(F,k,V))}function F(k,V){for(;!V.reading&&!V.ended&&(V.length<V.highWaterMark||V.flowing&&V.length===0);){var oe=V.length;if(i(\"maybeReadMore read 0\"),k.read(0),oe===V.length)break}V.readingMore=!1}function R(k){var V=k._readableState;V.readableListening=k.listenerCount(\"readable\")>0,V.resumeScheduled&&!V.paused?V.flowing=!0:k.listenerCount(\"data\")>0&&k.resume()}function O(k){i(\"readable nexttick read 0\"),k.read(0)}function U(k,V){i(\"resume\",V.reading),V.reading||k.read(0),V.resumeScheduled=!1,k.emit(\"resume\"),P(k),V.flowing&&!V.reading&&k.read(0)}function P(k){var V=k._readableState;for(i(\"flow\",V.flowing);V.flowing&&k.read()!==null;);}function L(k,V){return V.length===0?null:(V.objectMode?oe=V.buffer.shift():!k||k>=V.length?(oe=V.decoder?V.buffer.join(\"\"):V.buffer.length===1?V.buffer.first():V.buffer.concat(V.length),V.buffer.clear()):oe=V.buffer.consume(k,V.decoder),oe);var oe}function W(k){var V=k._readableState;i(\"endReadable\",V.endEmitted),V.endEmitted||(V.ended=!0,li.nextTick(q,V,k))}function q(k,V){if(i(\"endReadableNT\",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,V.readable=!1,V.emit(\"end\"),k.autoDestroy)){var oe=V._writableState;(!oe||oe.autoDestroy&&oe.finished)&&V.destroy()}}function H(k,V){for(var oe=0,se=k.length;oe<se;oe++)if(k[oe]===V)return oe;return-1}return G.prototype.read=function(k){i(\"read\",k),k=parseInt(k,10);var V=this._readableState,oe=k;if(k!==0&&(V.emittedReadable=!1),k===0&&V.needReadable&&((V.highWaterMark!==0?V.length>=V.highWaterMark:V.length>0)||V.ended))return i(\"read: emitReadable\",V.length,V.ended),V.length===0&&V.ended?W(this):te(this),null;if((k=ae(k,V))===0&&V.ended)return V.length===0&&W(this),null;var se,ue=V.needReadable;return i(\"need readable\",ue),(V.length===0||V.length-k<V.highWaterMark)&&i(\"length less than watermark\",ue=!0),V.ended||V.reading?i(\"reading or ended\",ue=!1):ue&&(i(\"do read\"),V.reading=!0,V.sync=!0,V.length===0&&(V.needReadable=!0),this._read(V.highWaterMark),V.sync=!1,V.reading||(k=ae(oe,V))),(se=k>0?L(k,V):null)===null?(V.needReadable=V.length<=V.highWaterMark,k=0):(V.length-=k,V.awaitDrain=0),V.length===0&&(V.ended||(V.needReadable=!0),oe!==k&&V.ended&&W(this)),se!==null&&this.emit(\"data\",se),se},G.prototype._read=function(k){M(this,new I(\"_read()\"))},G.prototype.pipe=function(k,V){var oe=this,se=this._readableState;switch(se.pipesCount){case 0:se.pipes=k;break;case 1:se.pipes=[se.pipes,k];break;default:se.pipes.push(k)}se.pipesCount+=1,i(\"pipe count=%d opts=%j\",se.pipesCount,V);var ue=(!V||V.end!==!1)&&k!==li.stdout&&k!==li.stderr?be:Xe;function he(rt,wt){i(\"onunpipe\"),rt===oe&&wt&&wt.hasUnpiped===!1&&(wt.hasUnpiped=!0,i(\"cleanup\"),k.removeListener(\"close\",Et),k.removeListener(\"finish\",qe),k.removeListener(\"drain\",we),k.removeListener(\"error\",Ve),k.removeListener(\"unpipe\",he),oe.removeListener(\"end\",be),oe.removeListener(\"end\",Xe),oe.removeListener(\"data\",_e),Ie=!0,!se.awaitDrain||k._writableState&&!k._writableState.needDrain||we())}function be(){i(\"onend\"),k.end()}se.endEmitted?li.nextTick(ue):oe.once(\"end\",ue),k.on(\"unpipe\",he);var we=(function(rt){return function(){var wt=rt._readableState;i(\"pipeOnDrain\",wt.awaitDrain),wt.awaitDrain&&wt.awaitDrain--,wt.awaitDrain===0&&t(rt,\"data\")&&(wt.flowing=!0,P(rt))}})(oe);k.on(\"drain\",we);var Ie=!1;function _e(rt){i(\"ondata\");var wt=k.write(rt);i(\"dest.write\",wt),wt===!1&&((se.pipesCount===1&&se.pipes===k||se.pipesCount>1&&H(se.pipes,k)!==-1)&&!Ie&&(i(\"false write response, pause\",se.awaitDrain),se.awaitDrain++),oe.pause())}function Ve(rt){i(\"onerror\",rt),Xe(),k.removeListener(\"error\",Ve),t(k,\"error\")===0&&M(k,rt)}function Et(){k.removeListener(\"finish\",qe),Xe()}function qe(){i(\"onfinish\"),k.removeListener(\"close\",Et),Xe()}function Xe(){i(\"unpipe\"),oe.unpipe(k)}return oe.on(\"data\",_e),(function(rt,wt,ot){if(typeof rt.prependListener==\"function\")return rt.prependListener(wt,ot);rt._events&&rt._events[wt]?Array.isArray(rt._events[wt])?rt._events[wt].unshift(ot):rt._events[wt]=[ot,rt._events[wt]]:rt.on(wt,ot)})(k,\"error\",Ve),k.once(\"close\",Et),k.once(\"finish\",qe),k.emit(\"pipe\",oe),se.flowing||(i(\"pipe resume\"),oe.resume()),k},G.prototype.unpipe=function(k){var V=this._readableState,oe={hasUnpiped:!1};if(V.pipesCount===0)return this;if(V.pipesCount===1)return k&&k!==V.pipes||(k||(k=V.pipes),V.pipes=null,V.pipesCount=0,V.flowing=!1,k&&k.emit(\"unpipe\",this,oe)),this;if(!k){var se=V.pipes,ue=V.pipesCount;V.pipes=null,V.pipesCount=0,V.flowing=!1;for(var he=0;he<ue;he++)se[he].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var be=H(V.pipes,k);return be===-1||(V.pipes.splice(be,1),V.pipesCount-=1,V.pipesCount===1&&(V.pipes=V.pipes[0]),k.emit(\"unpipe\",this,oe)),this},G.prototype.on=function(k,V){var oe=n.prototype.on.call(this,k,V),se=this._readableState;return k===\"data\"?(se.readableListening=this.listenerCount(\"readable\")>0,se.flowing!==!1&&this.resume()):k===\"readable\"&&(se.endEmitted||se.readableListening||(se.readableListening=se.needReadable=!0,se.flowing=!1,se.emittedReadable=!1,i(\"on readable\",se.length,se.reading),se.length?te(this):se.reading||li.nextTick(O,this))),oe},G.prototype.addListener=G.prototype.on,G.prototype.removeListener=function(k,V){var oe=n.prototype.removeListener.call(this,k,V);return k===\"readable\"&&li.nextTick(R,this),oe},G.prototype.removeAllListeners=function(k){var V=n.prototype.removeAllListeners.apply(this,arguments);return k!==\"readable\"&&k!==void 0||li.nextTick(R,this),V},G.prototype.resume=function(){var k=this._readableState;return k.flowing||(i(\"resume\"),k.flowing=!k.readableListening,(function(V,oe){oe.resumeScheduled||(oe.resumeScheduled=!0,li.nextTick(U,V,oe))})(this,k)),k.paused=!1,this},G.prototype.pause=function(){return i(\"call pause flowing=%j\",this._readableState.flowing),this._readableState.flowing!==!1&&(i(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this._readableState.paused=!0,this},G.prototype.wrap=function(k){var V=this,oe=this._readableState,se=!1;for(var ue in k.on(\"end\",(function(){if(i(\"wrapped end\"),oe.decoder&&!oe.ended){var be=oe.decoder.end();be&&be.length&&V.push(be)}V.push(null)})),k.on(\"data\",(function(be){i(\"wrapped data\"),oe.decoder&&(be=oe.decoder.write(be)),oe.objectMode&&be==null||(oe.objectMode||be&&be.length)&&(V.push(be)||(se=!0,k.pause()))})),k)this[ue]===void 0&&typeof k[ue]==\"function\"&&(this[ue]=(function(be){return function(){return k[be].apply(k,arguments)}})(ue));for(var he=0;he<B.length;he++)k.on(B[he],this.emit.bind(this,B[he]));return this._read=function(be){i(\"wrapped _read\",be),se&&(se=!1,k.resume())},this},typeof Symbol==\"function\"&&(G.prototype[Symbol.asyncIterator]=function(){return l===void 0&&(l=zBt()),l(this)}),Object.defineProperty(G.prototype,\"readableHighWaterMark\",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(G.prototype,\"readableBuffer\",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(G.prototype,\"readableFlowing\",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(k){this._readableState&&(this._readableState.flowing=k)}}),G._fromList=L,Object.defineProperty(G.prototype,\"readableLength\",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol==\"function\"&&(G.from=function(k,V){return d===void 0&&(d=eet?$$e:(eet=1,$$e=function(){throw new Error(\"Readable.from is not available in the browser\")})),d(G,k,V)}),Tbe}function qBt(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(\"error\",new WBt);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function QE(e){if(!(this instanceof QE))return new QE(e);Gee.call(this,e),this._transformState={afterTransform:qBt.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==\"function\"&&(this._transform=e.transform),typeof e.flush==\"function\"&&(this._flush=e.flush)),this.on(\"prefinish\",KBt)}function KBt(){var e=this;typeof this._flush!=\"function\"||this._readableState.destroyed?net(this,null,null):this._flush((function(t,n){net(e,t,n)}))}function net(e,t,n){if(t)return e.emit(\"error\",t);if(n!=null&&e.push(n),e._writableState.length)throw new GBt;if(e._transformState.transforming)throw new VBt;return e.push(null)}function BH(e){if(!(this instanceof BH))return new BH(e);trt.call(this,e)}function ret(e){if(e)throw e}function oet(e){e()}function JBt(e,t){return e.pipe(t)}function $Bt(e={}){let t={},n=new yM.Duplex({objectMode:!0,read:()=>{},write:function(i,a,c){let l=null;try{i.id?(function(d){let{id:m}=d;if(m===null)return;let h=t[m];if(!h)return void console.warn(`StreamMiddleware - Unknown response id \"${m}\"`);delete t[m],Object.assign(h.res,d),setTimeout(h.end)})(i):(function(d){e?.retryOnMessage&&d.method===e.retryOnMessage&&Object.values(t).forEach((({req:m,retryCount:h=0})=>{if(!m.id)return;if(h>=3)throw new Error(`StreamMiddleware - Retry limit exceeded for request id \"${m.id}\"`);let g=t[m.id];g&&(g.retryCount=h+1),o(m)})),r.emit(\"notification\",d)})(i)}catch(d){l=d}c(l)}}),r=new Ont;return{events:r,middleware:(i,a,c,l)=>{t[i.id]={req:i,res:a,next:c,end:l},o(i)},stream:n};function o(i){n.push(i)}}function Cee(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function aet(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||\"Function wrapped with `once`\";return t.onceError=n+\" shouldn\\'t be called more than once\",t.called=!1,t}function fLt(e,t){if(t!==\"[Circular]\")return t}function by(e,t){let[n,r]=irt(t);return new Q1e.EthereumRpcError(e,n||ort.getMessageFromCode(e),r)}function dH(e,t){let[n,r]=irt(t);return new Q1e.EthereumProviderError(e,n||ort.getMessageFromCode(e),r)}function irt(e){if(e){if(typeof e==\"string\")return[e];if(typeof e==\"object\"&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&typeof t!=\"string\")throw new Error(\"Must specify string message.\");return[t||void 0,n]}}return[]}function yLt({instance:e,msg:t}){return pt(this,void 0,void 0,(function*(){if(e._initialized||(nt(\"[MetaMaskSDK: connectAndSign()] provider not ready -- wait for init()\"),yield e.init()),nt(`[MetaMaskSDK: connectAndSign()] activeProvider=${e.activeProvider}`),!e.activeProvider)throw new Error(\"SDK state invalid -- undefined provider\");let n=/^0x([0-9A-Fa-f]{2})*$/u.test(t)?t:(function(r){let o;if(ht!==void 0)o=ht.from(r,\"utf8\").toString(\"hex\");else if(typeof TextEncoder<\"u\"){let i=new TextEncoder().encode(r);o=Array.from(i).map((a=>a.toString(16).padStart(2,\"0\"))).join(\"\")}else{if(typeof sh!=\"object\"||!(\"Buffer\"in sh))throw new Error(\"Unable to convert string to hex: No available method.\");o=sh.Buffer.from(r,\"utf8\").toString(\"hex\")}return`0x${o}`})(t);return e.activeProvider.request({method:kn.METAMASK_CONNECTWITH,params:[{method:kn.PERSONAL_SIGN,params:[n]}]})}))}function fet(e){var t,n;return pt(this,void 0,void 0,(function*(){nt(\"[MetaMaskSDK: connectWithExtensionProvider()] \",e),e.sdkProvider=e.activeProvider,e.activeProvider=window.extension,window.ethereum=window.extension;try{let r=yield(t=window.extension)===null||t===void 0?void 0:t.request({method:\"eth_requestAccounts\"});nt(`[MetaMaskSDK: connectWithExtensionProvider()] accounts=${r}`)}catch(r){return void console.warn(\"[MetaMaskSDK: connectWithExtensionProvider()] can\\'t request accounts error\",r)}localStorage.setItem(Ste,\"extension\"),e.extensionActive=!0,e.emit(ah.ProviderUpdate,A1.EXTENSION),e.options.enableAnalytics&&((n=e.analytics)===null||n===void 0||n.send({event:ou.SDK_USE_EXTENSION}))}))}function _te(e){let t;if(ht!==void 0)t=ht.from(e,\"utf8\").toString(\"base64\");else if(typeof btoa==\"function\")t=btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/gu,((n,r)=>String.fromCharCode(parseInt(r,16)))));else{if(typeof sh!=\"object\"||!(\"Buffer\"in sh))throw new Error(\"Unable to base64 encode: No available method.\");t=sh.Buffer.from(e,\"utf8\").toString(\"base64\")}return t}function bLt(e,t,n,r){var o,i,a,c,l,d,m,h,g,y,w,x,I,C,M,B,z,G,J,ne;return pt(this,void 0,void 0,(function*(){let ie=(o=e.state.remote)===null||o===void 0?void 0:o.isReady(),ae=(i=e.state.remote)===null||i===void 0?void 0:i.isConnected(),te=(a=e.state.remote)===null||a===void 0?void 0:a.isPaused(),Z=E1.getProvider(),X=(c=e.state.remote)===null||c===void 0?void 0:c.getChannelId(),F=(l=e.state.remote)===null||l===void 0?void 0:l.isAuthorized(),{deeplinkProtocol:R}=e.state,{method:O,data:U,triggeredInstaller:P}=(H=>{var k,V,oe,se;let ue;ht.isBuffer(H)?(ue=H.toJSON(),ue._isBuffer=!0):ue=H;let he=(k=ue?.data)===null||k===void 0?void 0:k.method,be=!1;return typeof((V=ue?.data)===null||V===void 0?void 0:V.params)==\"object\"&&((se=(oe=ue?.data)===null||oe===void 0?void 0:oe.params)===null||se===void 0?void 0:se.__triggeredInstaller)===!0&&(be=!0,ue.data.params=ue.data.params.wrappedParams),{method:he,data:ue,triggeredInstaller:be}})(t);if(nt(`[RCPMS: write()] method=\\'${O}\\' isRemoteReady=${ie} channelId=${X} isSocketConnected=${ae} isRemotePaused=${te} providerConnected=${Z.isConnected()}`,t),!X)return O!==kn.METAMASK_GETPROVIDERSTATE&&nt(`[RCPMS: write()] ${O} --> channelId is undefined`),r(new Error(\"disconnected\"));nt(`[RCPMS: write()] remote.isPaused()=${(d=e.state.remote)===null||d===void 0?void 0:d.isPaused()} authorized=${F} ready=${ie} socketConnected=${ae}`,t);let L=(m=e.state.platformManager)===null||m===void 0?void 0:m.isSecure(),W=(g=(h=e.state.platformManager)===null||h===void 0?void 0:h.isMobileWeb())!==null&&g!==void 0&&g,q=(w=(y=e.state.remote)===null||y===void 0?void 0:y.hasDeeplinkProtocol())!==null&&w!==void 0&&w&&W&&F;try{if(!P){let V=JSON.stringify(U?.data);if(V.length>mLt)return r(new Error(`Message size ${V.length} exceeds maximum allowed size of 1000000 bytes`));(x=e.state.remote)===null||x===void 0||x.sendMessage(U?.data).then((()=>{nt(`[RCPMS: _write()] ${O} sent successfully`)})).catch((oe=>{nt(\"[RCPMS: _write()] error sending message\",oe)}))}if(!L)return nt(`[RCPMS: _write()] unsecure platform for method ${O} -- return callback`),r();if(P)return nt(\"[RCPMS: _write()] prevent deeplink -- installation completed separately.\"),r();let H=(M=(C=(I=e.state.remote)===null||I===void 0?void 0:I.getKeyInfo())===null||C===void 0?void 0:C.ecies.public)!==null&&M!==void 0?M:\"\",k=encodeURI(`channelId=${X}&pubkey=${H}&comm=socket&t=d&v=2`);if(q){let V=JSON.stringify(U?.data),oe=(B=e.state.remote)===null||B===void 0?void 0:B.encrypt(V);if(!oe)return nt(\"[RCPMS: _write()] error encrypting message\"),r(new Error(\"RemoteCommunicationPostMessageStream - disconnected\"));k+=`&scheme=${R}&rpc=${_te(oe)}`}if(!(!((z=e.state.platformManager)===null||z===void 0)&&z.isMetaMaskInstalled()))return nt(\"[RCPMS: _write()] prevent deeplink until installation is completed.\"),r();HH[O]?(nt(`[RCPMS: _write()] redirect link for \\'${O}\\' socketConnected=${ae} connect?${k}`),(G=e.state.platformManager)===null||G===void 0||G.openDeeplink(`${UH}?${k}`,`${FH}?${k}`,\"_self\")):!((J=e.state.remote)===null||J===void 0)&&J.isPaused()?(nt(`[RCPMS: _write()] MM is PAUSED! deeplink with connect! targetMethod=${O}`),(ne=e.state.platformManager)===null||ne===void 0||ne.openDeeplink(`${UH}?redirect=true&${k}`,`${FH}?redirect=true&${k}`,\"_self\")):nt(`[RCPMS: _write()] method ${O} doesn\\'t need redirect.`)}catch(H){return nt(\"[RCPMS: _write()] error sending message\",H),r(new Error(\"RemoteCommunicationPostMessageStream - disconnected\"))}return r()}))}function wLt(e){var t,n,r,o;return pt(this,void 0,void 0,(function*(){let{options:i}=e,a={communicationLayerPreference:(t=i.communicationLayerPreference)!==null&&t!==void 0?t:oC.SOCKET,platformManager:e.platformManager,sdk:e,checkInstallationOnAllCalls:i.checkInstallationOnAllCalls,injectProvider:(n=i.injectProvider)===null||n===void 0||n,shouldShimWeb3:(r=i.shouldShimWeb3)===null||r===void 0||r,extensionOnly:(o=i.extensionOnly)===null||o===void 0||o,installer:e.installer,remoteConnection:e.remoteConnection,debug:e.debug},c=yield vLt(a);e.activeProvider=c,(function(l){var d,m,h,g;(m=(d=l.remoteConnection)===null||d===void 0?void 0:d.getConnector())===null||m===void 0||m.on(ah.ConnectionStatus,(y=>{l.emit(ah.ConnectionStatus,y)})),(g=(h=l.remoteConnection)===null||h===void 0?void 0:h.getConnector())===null||g===void 0||g.on(ah.ServiceStatus,(y=>{l.emit(ah.ServiceStatus,y)}))})(e)}))}function het(e){var t,n,r;let{dappMetadata:o}=e,i=(function({url:m,name:h}){var g;let y=m+h,w=_te(y);if(!localStorage)return\"\";let x=(g=localStorage.getItem(w))!==null&&g!==void 0?g:\"\";if(!x){x=g1();try{localStorage.setItem(w,x)}catch{return\"\"}}return x})({url:(t=o?.url)!==null&&t!==void 0?t:\"no_url\",name:(n=o?.name)!==null&&n!==void 0?n:\"no_name\"}),a=(r=e.platformManager)===null||r===void 0?void 0:r.getPlatformType(),c=a===Gd.DesktopWeb,l=a===Gd.MetaMaskMobileWebview,d=\"N/A\";return c?d=\"extension\":l&&(d=\"mobile\"),{id:i,from:d}}function SLt({mustBeMetaMask:e,sdkInstance:t}){return pt(this,void 0,void 0,(function*(){if(typeof window>\"u\")throw new Error(\"window not available\");try{let n=yield new Promise(((r,o)=>{let i=setTimeout((()=>{o(new Error(\"eip6963RequestProvider timed out\"))}),500);window.addEventListener(Tte.Announce,(a=>{let c=a,{detail:{info:l,provider:d}={}}=c,{name:m,rdns:h,uuid:g}=l??{};pLt.test(g)&&m.startsWith(det.NAME)&&det.RDNS.includes(h)&&(clearTimeout(i),r(d))})),window.dispatchEvent(new Event(Tte.Request))}));return m1e({provider:n,sdkInstance:t})}catch{if(!e&&window.ethereum)return m1e({provider:window.ethereum,sdkInstance:t});throw new Error(\"Provider not found\")}}))}function CLt(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(d){try{l(r.next(d))}catch(m){i(m)}}function c(d){try{l(r.throw(d))}catch(m){i(m)}}function l(d){var m;d.done?o(d.value):(m=d.value,m instanceof n?m:new n((function(h){h(m)}))).then(a,c)}l((r=r.apply(e,[])).next())}))}function RLt(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol==\"function\"&&(i[Symbol.iterator]=function(){return this}),i;function c(l){return function(d){return(function(m){if(n)throw new TypeError(\"Generator is already executing.\");for(;a;)try{if(n=1,r&&(o=2&m[0]?r.return:m[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,m[1])).done)return o;switch(r=0,o&&(m=[2&m[0],o.value]),m[0]){case 0:case 1:o=m;break;case 4:return a.label++,{value:m[1],done:!1};case 5:a.label++,r=m[1],m=[0];continue;case 7:m=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||m[0]!==6&&m[0]!==2)){a=0;continue}if(m[0]===3&&(!o||m[1]>o[0]&&m[1]<o[3])){a.label=m[1];break}if(m[0]===6&&a.label<o[1]){a.label=o[1],o=m;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(m);break}o[2]&&a.ops.pop(),a.trys.pop();continue}m=t.call(e,a)}catch(h){m=[6,h],r=0}finally{n=o=0}if(5&m[0])throw m[1];return{value:m[0]?m[1]:void 0,done:!0}})([l,d])}}}function kLt(e,{wait:t=!1}){return pt(this,void 0,void 0,(function*(){return nt(`[MetamaskInstaller: startInstaller()] wait=${t}`),t&&(yield lrt(1e3)),yield e.checkInstallation()}))}function drt(e,t){var n,r,o,i;e.connector||(nt(\"[RemoteConnection: initializeConnector()] initialize connector\"),e.connector=new Qbe({anonId:t.anonId,platformType:t.platformManager.getPlatformType(),communicationLayerPreference:t.communicationLayerPreference,transports:t.transports,dappMetadata:Object.assign(Object.assign({},t.dappMetadata),{source:t._source}),analytics:t.enableAnalytics,communicationServerUrl:t.communicationServerUrl,sdkVersion:cI.version,context:\"dapp\",ecies:t.ecies,storage:t.storage,logging:t.logging}),t.timer&&(nt(\"[RemoteConnection: initializeConnector()] reset background timer\",t.timer),(r=(n=t.timer)===null||n===void 0?void 0:n.stopBackgroundTimer)===null||r===void 0||r.call(n),(i=(o=t.timer)===null||o===void 0?void 0:o.runBackgroundTimer)===null||i===void 0||i.call(o,(()=>!1),1e4)))}function y1e(e){e.listeners.forEach((({event:t,handler:n})=>{var r;(r=e.connector)===null||r===void 0||r.off(t,n)})),e.listeners=[]}function PLt(e,t,n){return pt(this,void 0,void 0,(function*(){let r=setTimeout((()=>{Oc.analytics.track(\"sdk_connection_failed\",{transport_type:\"websocket\"})}),6e4);return new Promise(((o,i)=>{if(!e.connector)return void i(new Error(\"No connector available\"));nt(\"[RemoteConnection: connectWithModalInstaller()]\",{state:e,options:t,linkParams:n});let a=`${e.useDeeplink?FH:UH}?${n}`;(function(c,l,d){var m,h,g,y;c.installModal=(h=(m=l.modals).install)===null||h===void 0?void 0:h.call(m,{link:d,preferDesktop:c.preferDesktop,installer:l.getMetaMaskInstaller(),terminate:()=>{nt(\"[RemoteConnection: showInstallModal() => terminate()] terminate connection\"),l.sdk.terminate().catch((w=>{console.warn(\"[MMSDK] failed to terminate connection\",w)}))},debug:c.developerMode,connectWithExtension:()=>{var w;return(w=l.connectWithExtensionProvider)===null||w===void 0||w.call(l),!1},onAnalyticsEvent:({event:w,params:x})=>{var I,C,M;let B=Object.assign(Object.assign({},x),{sdkVersion:l.sdk.getVersion(),dappId:(I=l.dappMetadata)===null||I===void 0?void 0:I.name,source:l._source,url:(C=l.dappMetadata)===null||C===void 0?void 0:C.url});(M=c.analytics)===null||M===void 0||M.send({event:w,params:B})}}),(y=(g=c.installModal)===null||g===void 0?void 0:g.mount)===null||y===void 0||y.call(g,d)})(e,t,a),t.sdk.once(Rt.PROVIDER_UPDATE,(c=>pt(this,void 0,void 0,(function*(){if(nt(\"[RemoteConnection: connectWithModalInstaller()] once provider_update -- resolving startConnection promise\"),c===A1.TERMINATE){let l={code:4001,message:\"User rejected the request.\"};return clearTimeout(r),void i(l)}i(c)})))),e.connector.once(Rt.AUTHORIZED,(()=>{clearTimeout(r),o()})),e.connector.once(Rt.REJECTED,(()=>{clearTimeout(r),i(Rt.REJECTED)})),e.connector.once(Rt.CLIENTS_READY,(()=>pt(this,void 0,void 0,(function*(){nt(\"[RemoteConnection: connectWithModalInstaller()] once clients_ready -- resolving startConnection promise\"),clearTimeout(r),o()}))))}))}))}function frt(e,t){function n(r,o){var i;(i=e.connector)===null||i===void 0||i.on(r,o),e.listeners.push({event:r,handler:o})}e.connector&&(y1e(e),n(Rt.WALLET_INIT,(({accounts:r,chainId:o})=>pt(this,void 0,void 0,(function*(){nt(`[RemoteConnection: setupListeners() => EventType.WALLET_INIT] \\'wallet_init\\' accounts=${r} chainId=${o}`);let i=E1.getProvider();i._setConnected();let a={accounts:r,chainId:o,isUnlocked:!1};i._initializeState(a),i.emit(\"chainChanged\",o),i.emit(\"accountsChanged\",r)})))),n(Rt.AUTHORIZED,(()=>pt(this,void 0,void 0,(function*(){var r,o,i,a;try{nt(\"[RemoteConnection: setupListeners() => EventType.AUTHORIZED] \\'authorized\\' closing modals\",e.pendingModal,e.installModal);let c=E1.getProvider();c._setConnected(),(o=(r=e.pendingModal)===null||r===void 0?void 0:r.unmount)===null||o===void 0||o.call(r),(a=(i=e.installModal)===null||i===void 0?void 0:i.unmount)===null||a===void 0||a.call(i,!1),e.otpAnswer=void 0,e.authorized=!0,nt(\"[RemoteConnection: setupListeners() => EventType.AUTHORIZED] \\'authorized\\' provider.state\",c.getState()),yield c.forceInitializeState()}catch{}})))),n(Rt.TERMINATE,(()=>{var r,o,i,a,c;(o=(r=e.pendingModal)===null||r===void 0?void 0:r.unmount)===null||o===void 0||o.call(r),(a=(i=e.installModal)===null||i===void 0?void 0:i.unmount)===null||a===void 0||a.call(i,!0),e.pendingModal=void 0,e.installModal=void 0,e.otpAnswer=void 0,(c=e.connector)===null||c===void 0||c.disconnect({terminate:!0}),e.authorized=!1,E1.getProvider().handleDisconnect({terminate:!0}),y1e(e),nt(\"[RemoteConnection: setupListeners()] All listeners cleaned up\")})))}function MLt(e,t,{initialCheck:n,connectWith:r}={}){var o,i,a,c,l,d,m,h,g,y,w,x,I,C,M,B,z,G,J;return pt(this,void 0,void 0,(function*(){try{if(drt(e,t),!e.connector)throw new Error(\"no connector defined\");frt(e);let ne=E1.getProvider();e.authorized=!1,ne.emit(\"connecting\");let ie=yield(o=e.connector)===null||o===void 0?void 0:o.originatorSessionConnect();nt(`[RemoteConnection: startConnection()] after originatorSessionConnect initialCheck=${n}`,ie);let ae=(i=ie?.channelId)!==null&&i!==void 0?i:\"\",te=(c=(a=e.connector.getKeyInfo())===null||a===void 0?void 0:a.ecies.public)!==null&&c!==void 0?c:\"\",Z=(d=(l=e.connector.getKeyInfo())===null||l===void 0?void 0:l.ecies.private)!==null&&d!==void 0?d:\"\";if(n&&!ie)return Promise.resolve();if(!ie&&!n){let se=yield e.connector.generateChannelIdConnect();ae=(m=se.channelId)!==null&&m!==void 0?m:\"\",te=(h=se.pubKey)!==null&&h!==void 0?h:\"\",Z=(g=se.privKey)!==null&&g!==void 0?g:\"\";let ue=Date.now();(y=e.connector.state.storageManager)===null||y===void 0||y.persistChannelConfig({channelId:ae,localKey:Z,lastActive:ue,validUntil:ue+mM})}if(n&&ie?.channelId)return!((w=e.connector)===null||w===void 0)&&w.isConnected()||(nt(`[RemoteConnection: startConnection()] reconnecting to channel initialCheck=${n}`,ie),yield(x=e.connector)===null||x===void 0?void 0:x.connectToChannel({channelId:ae})),Promise.resolve();ie&&!(!((I=e.connector)===null||I===void 0)&&I.isConnected())&&(nt(\"[RemoteConnection: startConnection()] reconnecting to channel\",ie),yield(C=e.connector)===null||C===void 0?void 0:C.connectToChannel({channelId:ae}));let X=!((M=e.platformManager)===null||M===void 0)&&M.isSecure()?\"\":\"&t=q\",F=cI.version,{iconUrl:R,name:O,url:U,scheme:P}=t.dappMetadata||{},L=(B=e.platformManager)===null||B===void 0?void 0:B.getPlatformType(),W=\"N/A\";typeof window<\"u\"&&window.location&&window.location.hostname?W=window.location.hostname:O!==void 0?W=O:U!==void 0&&(W=U);let q={url:U??\"\",title:O??\"\",icon:R,scheme:P??\"\",apiVersion:F,dappId:W||U||\"N/A\",anonId:t.anonId,platform:L??\"\",source:(z=t._source)!==null&&z!==void 0?z:\"\"},H=_te(JSON.stringify(q)),k=`channelId=${ae}&v=2&comm=${(G=e.communicationLayerPreference)!==null&&G!==void 0?G:\"\"}&pubkey=${te}${X}&originatorInfo=${H}`;if(r){k+=`&rpc=${_te(JSON.stringify(r))}`;let se=e.connector.getRPCMethodTracker();se&&(se[`${r.id}`]=Object.assign(Object.assign({},r),{id:`${r.id}`,timestamp:Date.now()}))}let V=encodeURI(k),oe=`${e.useDeeplink?FH:UH}?${k}`;if(e.qrcodeLink=oe,e.developerMode&&nt(`[RemoteConnection: startConnection()] qrcodeLink=${V}`),ne.emit(\"display_uri\",oe),Oc.analytics.track(\"sdk_connection_initiated\",{transport_type:\"websocket\"}),(J=e.platformManager)===null||J===void 0?void 0:J.isSecure()){let se=setTimeout((()=>{Oc.analytics.track(\"sdk_connection_failed\",{transport_type:\"websocket\"})}),6e4);return yield(function(ue,he){var be,we;return pt(this,void 0,void 0,(function*(){let Ie=`${UH}?${he}`,_e=`${FH}?${he}`;(we=(be=ue.platformManager)===null||be===void 0?void 0:be.openDeeplink)===null||we===void 0||we.call(be,Ie,_e,\"_self\")}))})(e,V),new Promise(((ue,he)=>{var be,we,Ie;if(!((be=e.connector)===null||be===void 0)&&be.isAuthorized())return clearTimeout(se),void ue();(we=e.connector)===null||we===void 0||we.once(Rt.AUTHORIZED,(()=>{clearTimeout(se),ue()})),(Ie=e.connector)===null||Ie===void 0||Ie.once(Rt.REJECTED,(()=>{clearTimeout(se),he(Rt.REJECTED)}))}))}return PLt(e,t,V)}catch(ne){throw console.error(\"[startConnection] error\",ne),ne}}))}function DLt(e){var t,n,r,o,i,a,c,l,d,m,h;return pt(this,void 0,void 0,(function*(){let{options:g}=e;if(g.logging=(t=g.logging)!==null&&t!==void 0?t:{},g.communicationLayerPreference=(n=g.communicationLayerPreference)!==null&&n!==void 0?n:oC.SOCKET,g.enableDebug!==void 0&&(Vf.default.enable(\"MM_SDK\"),console.warn(\"enableDebug is removed. Please use enableAnalytics instead.\")),g.enableAnalytics=(r=g.enableAnalytics)===null||r===void 0||r,g.injectProvider=(o=g.injectProvider)===null||o===void 0||o,g.shouldShimWeb3=(i=g.shouldShimWeb3)===null||i===void 0||i,g.extensionOnly=(a=g.extensionOnly)===null||a===void 0||a,g.useDeeplink=(c=g.useDeeplink)===null||c===void 0||c,g.storage=(l=g.storage)!==null&&l!==void 0?l:{enabled:!0},g.headless){(0,Vf.default)(\"[MetaMaskSDK: performSDKInitialization()] headless mode enabled\");let M=()=>{},B={install:()=>({mount:M,unmount:M})},z={installer:M};g.modals=B,g.ui=z}let y=((d=g.logging)===null||d===void 0?void 0:d.developerMode)===!0;e.debug=((m=g.logging)===null||m===void 0?void 0:m.sdk)||y,nt(\"[MetaMaskSDK: performSDKInitialization()] options\",e.options);let w=Object.assign({},g.logging);y&&(w.sdk=!0,w.eciesLayer=!0,w.keyExchangeLayer=!0,w.remoteLayer=!0,w.serviceLayer=!0,w.plaintext=!0),yield(function(M){var B;return pt(this,void 0,void 0,(function*(){let{options:z}=M;M.platformManager=new Ete({useDeepLink:(B=z.useDeeplink)!==null&&B!==void 0&&B,preferredOpenLink:z.openDeeplink,debug:M.debug})}))})(e),yield(function(M){var B,z,G,J,ne;return pt(this,void 0,void 0,(function*(){let{options:ie}=M,ae=(B=M.platformManager)===null||B===void 0?void 0:B.getPlatformType();M.analytics=new h1e({serverUrl:(z=ie.communicationServerUrl)!==null&&z!==void 0?z:rI,enabled:ie.enableAnalytics,originatorInfo:{url:(G=ie.dappMetadata.url)!==null&&G!==void 0?G:\"\",title:(J=ie.dappMetadata.name)!==null&&J!==void 0?J:\"\",dappId:M.getDappId(),platform:ae??\"\",source:(ne=ie._source)!==null&&ne!==void 0?ne:\"\",anonId:\"\"}})}))})(e),yield(function(M){var B,z,G;return pt(this,void 0,void 0,(function*(){if(!M.options.enableAnalytics||!(!((B=M.platformManager)===null||B===void 0)&&B.isBrowser())&&!(!((z=M.platformManager)===null||z===void 0)&&z.isReactNative()))return;let J=M.getVersion(),ne=M.getDappId(),ie=yield M.getAnonId(),ae=(G=M.platformManager)===null||G===void 0?void 0:G.getPlatformType(),te=M.options._source;Oc.analytics.setGlobalProperty(\"sdk_version\",J),Oc.analytics.setGlobalProperty(\"dapp_id\",ne),Oc.analytics.setGlobalProperty(\"anon_id\",ie),Oc.analytics.setGlobalProperty(\"platform\",ae),Oc.analytics.setGlobalProperty(\"integration_type\",te),Oc.analytics.enable(),Oc.analytics.track(\"sdk_initialized\",{})}))})(e),yield(function(M){var B;return pt(this,void 0,void 0,(function*(){let{options:z}=M;((B=z.storage)===null||B===void 0?void 0:B.enabled)!==!0||z.storage.storageManager||(z.storage.storageManager=yield crt(z.storage))}))})(e),yield(function(M){return pt(this,void 0,void 0,(function*(){let{options:B}=M,z=/^(http|https):\\\\/\\\\/[^\\\\s]*$/;if(B.dappMetadata){B.dappMetadata.iconUrl&&!z.test(B.dappMetadata.iconUrl)&&(console.warn(\"Invalid dappMetadata.iconUrl: URL must start with http:// or https://\"),B.dappMetadata.iconUrl=void 0),B.dappMetadata.base64Icon&&B.dappMetadata.base64Icon.length>ALt&&(console.warn(\"Invalid dappMetadata.base64Icon: Base64-encoded icon string length must be less than 163400 characters\"),B.dappMetadata.base64Icon=void 0),B.dappMetadata.url&&!z.test(B.dappMetadata.url)&&console.warn(\"Invalid dappMetadata.url: URL must start with http:// or https://\");let G=ELt();if(G&&!B.dappMetadata.iconUrl&&!B.dappMetadata.base64Icon){let J=`${window.location.protocol}//${window.location.host}${G}`;B.dappMetadata.iconUrl=J}}M.dappMetadata=B.dappMetadata}))})(e),yield _Lt(e),yield TLt(e);let{metamaskBrowserExtension:x,preferExtension:I,shouldReturn:C}=yield(function(M){var B,z,G,J;return pt(this,void 0,void 0,(function*(){let{options:ne}=M,ie,ae=!1,te=!1;if(typeof window<\"u\"&&window.ethereum&&!(!((B=M.platformManager)===null||B===void 0)&&B.isMetaMaskMobileWebView())){ae=localStorage.getItem(Ste)===\"extension\";try{ie=yield SLt({mustBeMetaMask:!0,sdkInstance:M}),window.extension=ie,ie.on(zw.CHAIN_CHANGED,(Z=>{nt(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE chainChanged chainId=${Z}`),M.sdkProvider&&M.getMobileProvider().emit(zw.CHAIN_CHANGED,Z)})),ie.on(zw.ACCOUNTS_CHANGED,(Z=>pt(this,void 0,void 0,(function*(){var X;nt(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE accountsChanged accounts=${Z}`);let F=!!M.sdkProvider,R=!!M.extensionActive;if(F&&M.getMobileProvider().emit(zw.ACCOUNTS_CHANGED,Z),R&&Z?.length===0&&(yield(X=M.getProvider())===null||X===void 0?void 0:X.request({method:kn.WALLET_GETPERMISSIONS,params:[]})).length===0)try{yield M.terminate()}catch(O){nt(\"[MetaMaskSDK: setupExtensionPreferences()] error terminating on permissions revoked\",O)}})))),ie.on(zw.DISCONNECT,(Z=>{nt(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE disconnect error=${Z}`),M.sdkProvider&&M.getMobileProvider().emit(zw.DISCONNECT,Z)})),ie.on(zw.CONNECT,(Z=>{nt(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE connect args=${Z}`),M.sdkProvider&&M.getMobileProvider().emit(zw.CONNECT,Z)})),ie.on(zw.CONNECTED,(Z=>{nt(\"[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE connected\",Z),M.sdkProvider&&M.getMobileProvider().emit(zw.CONNECTED,Z)}))}catch{window.extension=void 0}}else!((z=M.platformManager)===null||z===void 0)&&z.isMetaMaskMobileWebView()&&((G=M.analytics)===null||G===void 0||G.send({event:ou.SDK_USE_INAPP_BROWSER}),M.activeProvider=m1e({provider:window.ethereum,sdkInstance:M}),M._initialized=!0,te=!0);return ie&&ne.extensionOnly&&(nt(\"[MetaMaskSDK: setupExtensionPreferences()] EXTENSION ONLY --- prevent sdk initialization\"),(J=M.analytics)===null||J===void 0||J.send({event:ou.SDK_USE_EXTENSION}),M.activeProvider=ie,M.extensionActive=!0,M.extension=ie,M._initialized=!0,te=!0),{preferExtension:ae,shouldReturn:te,metamaskBrowserExtension:ie}}))})(e);if(C)nt(\"[MetaMaskSDK: performSDKInitialization()] shouldReturn=true --- prevent sdk initialization\");else{yield(function(M,B){var z,G,J,ne,ie;return pt(this,void 0,void 0,(function*(){let{options:ae}=M,te=Object.assign({},ae.logging);M.remoteConnection=new b1e({anonId:yield M.getAnonId(),preferDesktop:(z=ae.preferDesktop)!==null&&z!==void 0&&z,communicationLayerPreference:(G=ae.communicationLayerPreference)!==null&&G!==void 0?G:oC.SOCKET,analytics:M.analytics,dappMetadata:ae.dappMetadata,_source:ae._source,enableAnalytics:(J=ae.enableAnalytics)===null||J===void 0||J,timer:ae.timer,sdk:M,platformManager:M.platformManager,transports:ae.transports,communicationServerUrl:ae.communicationServerUrl,storage:(ne=ae.storage)!==null&&ne!==void 0?ne:{enabled:!0},getMetaMaskInstaller:()=>{if(!M.installer)throw new Error(\"Invalid SDK status -- installer not initialized\");return M.installer},logging:te,connectWithExtensionProvider:B===void 0?void 0:()=>fet(M),modals:Object.assign(Object.assign({},ae.modals),{onPendingModalDisconnect:M.terminate.bind(M)})}),yield M.remoteConnection.initRemoteCommunication({sdkInstance:M}),M.installer=new g1e({remote:M.remoteConnection,preferDesktop:(ie=ae.preferDesktop)!==null&&ie!==void 0&&ie,platformManager:M.platformManager,debug:M.debug})}))})(e,x),yield wLt(e),yield(function(M,B){var z,G;return pt(this,void 0,void 0,(function*(){let{options:J}=M;B?(nt(\"[MetaMaskSDK: handleAutoAndExtensionConnections()] preferExtension is detected -- connect with it.\"),(z=M.analytics)===null||z===void 0||z.send({event:ou.SDK_EXTENSION_UTILIZED}),fet(M).catch((ne=>{console.warn(\"Can\\'t connect with MetaMask extension...\",ne),localStorage.removeItem(Ste)}))):J.checkInstallationImmediately&&(!((G=M.platformManager)===null||G===void 0)&&G.isDesktopWeb()?(nt(\"[MetaMaskSDK: handleAutoAndExtensionConnections()] checkInstallationImmediately\"),M.connect().catch((ne=>{nt(`[MetaMaskSDK: handleAutoAndExtensionConnections()] checkInstallationImmediately --- IGNORED --- error on autoconnect _err=${ne}`)}))):console.warn(\"[handleAutoAndExtensionConnections()] checkInstallationImmediately --- IGNORED --- only for web desktop\")),M._initialized=!0}))})(e,I);try{yield(h=e.remoteConnection)===null||h===void 0?void 0:h.startConnection({initialCheck:!0})}catch(M){console.error(\"[MetaMaskSDK: setupRemoteConnectionAndInstaller()] Error while checking installation\",M)}e.emit(ah.ProviderUpdate,A1.INITIALIZED)}}))}function grt(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector(\\'meta[name=\"csp-nonce\"]\\'))==null?void 0:n.getAttribute(\"content\"))!=null?r:void 0}function VLt(e,t){if(e.isOk){let n=t(e.value);return n instanceof Promise?n.then((r=>E1e(r))):E1e(n)}if(e.isErr){let n=e.value;return yrt(n)}throw\"should never get here\"}function Oet(e){return e.includes(\"ref\")?[...e.filter((t=>t!==\"ref\")),\"ref\"]:e}function ave({version:e}){return ct(\"div\",{style:{textAlign:\"center\",color:\"#BBC0C5\",fontSize:\"12\"}},\"SDK Version \",e?`v${e}`:\"unknown\")}function YR(e,t){return e.toString(2).padStart(t,\"0\")}function Det(e,t){let n=e%t;return n>=0?n:t+n}function C0(e,t){return new Array(e).fill(t)}function Bet(...e){let t=0;for(let r of e)t=Math.max(t,r.length);let n=[];for(let r=0;r<t;r++)for(let o of e)r>=o.length||n.push(o[r]);return new Uint8Array(n)}function Let(e,t,n){if(n<0||n+t.length>e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[n+r])return!1;return!0}function Uet(e){return{has:t=>e.includes(t),decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!=\"string\")throw new Error(\"alphabet.decode input should be array of strings\");return t.map((n=>{if(typeof n!=\"string\")throw new Error(`alphabet.decode: not string element=${n}`);let r=e.indexOf(n);if(r===-1)throw new Error(`Unknown letter: \"${n}\". Allowed: ${e}`);return r}))},encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!=\"number\")throw new Error(\"alphabet.encode input should be an array of numbers\");return t.map((n=>{if((function(r){if(!Number.isSafeInteger(r))throw new Error(`Wrong integer: ${r}`)})(n),n<0||n>=e.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${e.length})`);return e[n]}))}}}function bUt(e,t){let{words:n,shortBlocks:r,numBlocks:o,blockLen:i,total:a}=Wf.capacity(e,t),c=(l=n,{encode(d){let m=un.divisorPoly(l),h=Array.from(d);return h.push(...m.slice(0,-1).fill(0)),Uint8Array.from(un.remainderPoly(h,m))},decode(d){let m=d.slice(),h=un.polynomial(Array.from(d)),g=C0(l,0),y=!1;for(let B=0;B<l;B++){let z=un.evalPoly(h,un.exp(B));g[g.length-1-B]=z,z!==0&&(y=!0)}if(!y)return m;g=un.polynomial(g);let w=un.monomial(l,1),[x,I]=un.euclidian(w,g,l),C=C0(un.degree(x),0),M=0;for(let B=1;B<256&&M<C.length;B++)un.evalPoly(x,B)===0&&(C[M++]=un.inv(B));if(M!==C.length)throw new Error(\"RS.decode: wrong errors number\");for(let B=0;B<C.length;B++){let z=m.length-1-un.log(C[B]);if(z<0)throw new Error(\"RS.decode: wrong error location\");let G=un.inv(C[B]),J=1;for(let ne=0;ne<C.length;ne++)B!==ne&&(J=un.mul(J,un.add(1,un.mul(C[ne],G))));m[z]=un.add(m[z],un.mul(un.evalPoly(I,G),un.inv(J)))}return m}});var l;return{encode(d){let m=[],h=[];for(let x=0;x<o;x++){let I=i+(x<r?0:1);m.push(d.subarray(0,I)),h.push(c.encode(d.subarray(0,I))),d=d.subarray(I)}let g=Bet(...m),y=Bet(...h),w=new Uint8Array(g.length+y.length);return w.set(g),w.set(y,g.length),w},decode(d){if(d.length!==a)throw new Error(`interleave.decode: len(data)=${d.length}, total=${a}`);let m=[];for(let y=0;y<o;y++){let w=y<r;m.push(new Uint8Array(n+i+(w?0:1)))}let h=0;for(let y=0;y<i;y++)for(let w=0;w<o;w++)m[w][y]=d[h++];for(let y=r;y<o;y++)m[y][i]=d[h++];for(let y=i;y<i+n;y++)for(let w=0;w<o;w++){let x=w<r;m[w][y+(x?0:1)]=d[h++]}let g=[];for(let y of m)g.push(...Array.from(c.decode(y)).slice(0,-n));return Uint8Array.from(g)}}}function zet(e,t,n,r){let o=\"\",i=n.length;if(r===\"numeric\"){let h=Wf.alphabet.numeric.decode(n.split(\"\")),g=h.length;for(let y=0;y<g-2;y+=3)o+=YR(100*h[y]+10*h[y+1]+h[y+2],10);g%3==1?o+=YR(h[g-1],4):g%3==2&&(o+=YR(10*h[g-2]+h[g-1],7))}else if(r===\"alphanumeric\"){let h=Wf.alphabet.alphanumerc.decode(n.split(\"\")),g=h.length;for(let y=0;y<g-1;y+=2)o+=YR(45*h[y]+h[y+1],11);g%2==1&&(o+=YR(h[g-1],6))}else{if(r!==\"byte\")throw new Error(\"encode: unsupported type\");{let h=(function(g){if(typeof g!=\"string\")throw new Error(\"utf8ToBytes expected string, got \"+typeof g);return new Uint8Array(new TextEncoder().encode(g))})(n);i=h.length,o=Array.from(h).map((g=>YR(g,8))).join(\"\")}}let{capacity:a}=Wf.capacity(e,t),c=YR(i,Wf.lengthBits(e,r)),l=Wf.modeBits[r]+c+o;if(l.length>a)throw new Error(\"Capacity overflow\");l+=\"0\".repeat(Math.min(4,Math.max(0,a-l.length))),l.length%8&&(l+=\"0\".repeat(8-l.length%8));let d=\"1110110000010001\";for(let h=0;l.length!==a;h++)l+=d[h%16];let m=Uint8Array.from(l.match(/(.{8})/g).map((h=>+`0b${h}`)));return bUt(e,t).encode(m)}function jet(e,t,n,r,o=!1){let i=(function(l,d,m,h=!1){let g=Wf.size.encode(l),y=new SH(g+2),w=new SH(3).rect(0,3,!0).border(1,!1).border(1,!0).border(1,!1);y=y.embed(0,w).embed({x:-w.width,y:0},w).embed({x:0,y:-w.height},w),y=y.rectSlice(1,g);let x=new SH(1).rect(0,1,!0).border(1,!1).border(1,!0),I=Wf.alignmentPatterns(l);for(let C of I)for(let M of I)y.data[C][M]===void 0&&y.embed({x:M-2,y:C-2},x);y=y.hLine({x:0,y:6},1/0,(({x:C},M)=>M===void 0?C%2==0:M)).vLine({x:6,y:0},1/0,(({y:C},M)=>M===void 0?C%2==0:M));{let C=Wf.formatBits(d,m),M=B=>!h&&(C>>B&1)==1;for(let B=0;B<6;B++)y.data[B][8]=M(B);for(let B=6;B<8;B++)y.data[B+1][8]=M(B);for(let B=8;B<15;B++)y.data[g-15+B][8]=M(B);for(let B=0;B<8;B++)y.data[8][g-B-1]=M(B);for(let B=8;B<9;B++)y.data[8][15-B-1+1]=M(B);for(let B=9;B<15;B++)y.data[8][15-B-1]=M(B);y.data[g-8][8]=!h}if(l>=7){let C=Wf.versionBits(l);for(let M=0;M<18;M+=1){let B=!h&&(C>>M&1)==1,z=Math.floor(M/3),G=M%3+g-8-3;y.data[z][G]=B,y.data[G][z]=B}}return y})(e,t,r,o),a=0,c=8*n.length;if((function(l,d,m){let h=l.height,g=S1e[d],y=-1,w=h-1;for(let x=h-1;x>0;x-=2){for(x==6&&(x=5);;w+=y){for(let I=0;I<2;I+=1){let C=x-I;l.data[w][C]===void 0&&m(C,w,g(C,w))}if(w+y<0||w+y>=h)break}y=-y}})(i,r,((l,d,m)=>{let h=!1;a<c&&(h=(n[a>>>3]>>(7-a&7)&1)!=0,a++),i.data[d][l]=h!==m})),a!==c)throw new Error(\"QR: bytes left after draw\");return i}function vUt(e){let t=e.inverse(),n=y=>{let w=0;for(let x,I=0,C=1;I<y.length;I++)x===y[I]&&(C++,I!==y.length-1)||(C>=5&&(w+=C-5+3),x=y[I],C=1);return w},r=0;e.data.forEach((y=>r+=n(y))),t.data.forEach((y=>r+=n(y)));let o=0,i=e.data,a=e.width-1,c=e.height-1;for(let y=0;y<a;y++)for(let w=0;w<c;w++){let x=y+1,I=w+1;i[y][w]===i[x][w]&&i[x][w]===i[y][I]&&i[x][w]===i[x][I]&&(o+=3)}let l=y=>{let w=[!0,!1,!0,!0,!0,!1,!0],x=[!1,!1,!1,!1],I=[...w,...x],C=[...x,...w],M=0;for(let B=0;B<y.length;B++)Let(y,I,B)&&(M+=40),Let(y,C,B)&&(M+=40);return M},d=0;for(let y of e.data)d+=l(y);for(let y of t.data)d+=l(y);let m=0;e.rectRead(0,1/0,((y,w)=>m+=w?1:0));let h=m/(e.height*e.width)*100,g=10*Math.floor(Math.abs(h-50)/5);return r+o+d+g}function Crt(e,t=\"raw\",n={}){let r=n.ecc!==void 0?n.ecc:\"medium\";(function(m){if(!Fet.includes(m))throw new Error(`Invalid error correction mode=${m}. Expected: ${Fet}`)})(r);let o=n.encoding!==void 0?n.encoding:(function(m){let h=\"numeric\";for(let g of m)if(!Wf.alphabet.numeric.has(g)&&(h=\"alphanumeric\",!Wf.alphabet.alphanumerc.has(g)))return\"byte\";return h})(e);(function(m){if(!Het.includes(m))throw new Error(`Encoding: invalid mode=${m}. Expected: ${Het}`);if(m===\"kanji\"||m===\"eci\")throw new Error(`Encoding: ${m} is not supported (yet?).`)})(o),n.mask!==void 0&&(function(m){if(![0,1,2,3,4,5,6,7].includes(m)||!S1e[m])throw new Error(`Invalid mask=${m}. Expected number [0..7]`)})(n.mask);let i,a=n.version,c=new Error(\"Unknown error\");if(a!==void 0)(function(m){if(!Number.isSafeInteger(m)||m<1||m>40)throw new Error(`Invalid version=${m}. Expected number [1..40]`)})(a),i=zet(a,r,e,o);else for(let m=1;m<=40;m++)try{i=zet(m,r,e,o),a=m;break}catch(h){c=h}if(!a||!i)throw c;let l=(function(m,h,g,y){if(y===void 0){let w=(function(){let x,I=1/0;return{add(C,M){C>=I||(x=M,I=C)},get:()=>x,score:()=>I}})();for(let x=0;x<S1e.length;x++)w.add(vUt(jet(m,h,g,x,!0)),x);y=w.get()}if(y===void 0)throw new Error(\"Cannot find mask\");return jet(m,h,g,y)})(a,r,i,n.mask);l.assertDrawn();let d=n.border===void 0?2:n.border;if(!Number.isSafeInteger(d))throw new Error(\"Wrong border type=\"+typeof d);if(l=l.border(d,!1),n.scale!==void 0&&(l=l.scale(n.scale)),t===\"raw\")return l.data;if(t===\"ascii\")return l.toASCII();if(t===\"svg\")return l.toSVG();if(t===\"gif\")return l.toGIF();if(t===\"term\")return l.toTerm();throw new Error(`Unknown output: ${t}`)}var _1e,Vf,Oc,bM,sh,Vw,xy,O7t,T1e,P7t,Get,M7t,NXe,q7t,Y7t,Sy,tM,I0,jf,Z7t,TH,ed,Qye,Xee,Ote,itt,I1e,fee,att,td,XE,T0,Q7t,rA,pee,Jye,sH,gr,hee,Mbe,ptt,htt,mtt,gtt,ytt,btt,vtt,wtt,xtt,Ett,Att,Stt,_tt,Ctt,Rtt,Itt,ktt,Ott,Ntt,J7t,X7t,Gr,mee,$7t,e9t,LT,UT,nI,ete,tte,nte,Dbe,rM,Mi,Xr,Bbe,Oee,t9t,n9t,GE,ebe,tbe,zXe,r9t,A0,nd,Ha,JT,o9t,Lbe,jXe,WXe,i9t,ZXe,QXe,a9t,rbe,obe,JXe,ibe,XXe,dm,S0,b1,fm,yee,s9t,c9t,qT,u9t,zf,l9t,Fbe,$Xe,FT,JP,sbe,Ltt,$E,cbe,vy,f9t,HT,zT,RH,Hbe,Pee,N1e,P1e,p9t,e$e,h9t,zbe,Utt,oM,jbe,n$e,Ftt,ube,r$e,o$e,lM,Ic,JR,XR,oh,KE,M1e,qw,Ey,ite,Wbe,Zo,Vbe,Tt,pm,bee,m9t,Gbe,g9t,y9t,lbe,ate,B1e,Vtt,b9t,vee,ste,l$e,d$e,Qtt,cte,Jtt,sM,qE,wy,Xtt,v9t,w9t,x9t,$tt,wee,E9t,f$e,p$e,gH,xee,fH,Wd,qbe,XP,h$e,cH,A9t,OH,m$e,Eee,S9t,g$e,$P,_9t,T9t,tnt,nnt,rnt,ont,Qe,uH,Aee,fbe,nA,yH,rC,rI,C9t,mM,R9t,Hf,I9t,rd,Rt,ute,Pi,Ds,ou,eM,Kbe,Mee,fM,y$e,Ybe,cM,snt,k9t,O9t,Zbe,oC,Gd,v$e,Qbe,j9t,W9t,kc,unt,x$e,L1e,XT,w1,See,rh,YT,E$e,lte,Jbe,R0,Z9t,jT,WT,$R,eA,pM,Dee,J9t,X9t,$9t,eBt,tBt,nBt,rBt,nM,oBt,iBt,li,PH,_ee,R$e,I$e,fte,MH,bH,Bee,$be,Ent,aBt,sBt,N$e,cBt,uBt,lBt,_nt,pte,Tnt,oI,eI,fBt,YE,vH,Int,F1e,mBt,gBt,hte,ZT,uM,hH,Lee,Uee,n1e,Fee,r1e,pbe,H$e,Hee,o1e,hbe,z$e,wH,mte,mbe,j$e,Ont,v1,yBt,Nnt,bBt,jee,Pnt,Mnt,Dnt,Kw,i1e,ZE,a1e,GT,ZR,ABt,SBt,Bnt,H1e,_Bt,s1e,Unt,z1e,Fnt,TBt,ybe,Tee,IBt,QR,xbe,G$e,OBt,Ynt,Znt,sI,Qnt,PBt,Ebe,Y$e,Abe,Z$e,Jnt,MBt,GH,DBt,BBt,Q$e,J$e,_be,X$e,$$e,eet,Tbe,tet,Y1e,ert,Dte,jBt,WBt,VBt,GBt,Gee,Cbe,YBt,trt,nrt,ZBt,QBt,XBt,yM,bte,u1e,eLt,iet,tLt,vte,nLt,l1e,rLt,Rbe,oLt,iLt,set,aLt,sLt,jw,Ww,cLt,uLt,lLt,nt,cet,rrt,tC,dLt,wte,Z1e,QT,xte,Q1e,ort,Ff,art,srt,ah,E1,Ete,crt,Ate,LH,cI,uet,UH,FH,det,pLt,kn,HH,hLt,urt,Ibe,Ste,d1e,f1e,zw,mLt,A1,gLt,p1e,pet,lrt,vLt,xLt,h1e,ELt,ALt,Ree,m1e,Tte,_Lt,TLt,met,get,yet,bet,vet,wet,Iee,xet,ILt,g1e,Cte,OLt,NLt,b1e,v1e,BLt,LLt,ULt,FLt,HLt,zLt,J1e,eC,X1e,Eet,tI,kbe,qee,prt,Bte,Qw,Vd,hrt,w1e,Aet,mrt,jLt,_et,x1e,$1e,WLt,Tet,eve,E1e,yrt,Kee,tve,GLt,qLt,ct,Rte,KLt,YLt,Cet,ZLt,Lte,nC,brt,Ret,QLt,vrt,Iet,JLt,ket,wrt,XLt,xrt,Ert,Ay,nve,Net,Pet,kee,mH,Yee,$Lt,Art,rve,eUt,tUt,nUt,rUt,oUt,iUt,Srt,ove,_rt,aUt,Trt,sUt,A1e,Met,cUt,uUt,lUt,ive,Obe,dUt,fUt,pUt,hUt,sve,cve,SH,Fet,Het,mUt,gUt,yUt,Wf,S1e,un,Nbe,zH,_H,Rrt,Irt,wUt,xUt,krt,EUt,Nrt=$(()=>{f();_1e=ge(nJe()),Vf=ge(sJe()),Oc=ge(xJe()),bM=ge(SJe());Q$();RXe();Yye();sh=typeof globalThis<\"u\"?globalThis:typeof self<\"u\"?self:typeof window<\"u\"?window:{},Vw=[],xy=[],O7t=typeof Uint8Array<\"u\"?Uint8Array:Array,T1e=!1;P7t={}.toString,Get=Array.isArray||function(e){return P7t.call(e)==\"[object Array]\"};ht.TYPED_ARRAY_SUPPORT=sh.TYPED_ARRAY_SUPPORT===void 0||sh.TYPED_ARRAY_SUPPORT;M7t=Zee();ht.poolSize=8192,ht._augment=function(e){return e.__proto__=ht.prototype,e},ht.from=function(e,t,n){return qet(null,e,t,n)},ht.TYPED_ARRAY_SUPPORT&&(ht.prototype.__proto__=Uint8Array.prototype,ht.__proto__=Uint8Array,typeof Symbol<\"u\"&&Symbol.species&&ht[Symbol.species]),ht.alloc=function(e,t,n){return(function(r,o,i,a){return Ket(o),o<=0?JE(r,o):i!==void 0?typeof a==\"string\"?JE(r,o).fill(i,a):JE(r,o).fill(i):JE(r,o)})(null,e,t,n)},ht.allocUnsafe=function(e){return Pbe(null,e)},ht.allocUnsafeSlow=function(e){return Pbe(null,e)},ht.isBuffer=$et,ht.compare=function(e,t){if(!Gw(e)||!Gw(t))throw new TypeError(\"Arguments must be Buffers\");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},ht.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},ht.concat=function(e,t){if(!Get(e))throw new TypeError(\\'\"list\" argument must be an Array of Buffers\\');if(e.length===0)return ht.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=ht.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(!Gw(i))throw new TypeError(\\'\"list\" argument must be an Array of Buffers\\');i.copy(r,o),o+=i.length}return r},ht.byteLength=Yet,ht.prototype._isBuffer=!0,ht.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)KR(this,t,t+1);return this},ht.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)KR(this,t,t+3),KR(this,t+1,t+2);return this},ht.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)KR(this,t,t+7),KR(this,t+1,t+6),KR(this,t+2,t+5),KR(this,t+3,t+4);return this},ht.prototype.toString=function(){var e=0|this.length;return e===0?\"\":arguments.length===0?Qet(this,0,e):D7t.apply(this,arguments)},ht.prototype.equals=function(e){if(!Gw(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||ht.compare(this,e)===0},ht.prototype.inspect=function(){var e=\"\";return this.length>0&&(e=this.toString(\"hex\",0,50).match(/.{2}/g).join(\" \"),this.length>50&&(e+=\" ... \")),\"<Buffer \"+e+\">\"},ht.prototype.compare=function(e,t,n,r,o){if(!Gw(e))throw new TypeError(\"Argument must be a Buffer\");if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),o===void 0&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError(\"out of range index\");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),c=Math.min(i,a),l=this.slice(r,o),d=e.slice(t,n),m=0;m<c;++m)if(l[m]!==d[m]){i=l[m],a=d[m];break}return i<a?-1:a<i?1:0},ht.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},ht.prototype.indexOf=function(e,t,n){return kXe(this,e,t,n,!0)},ht.prototype.lastIndexOf=function(e,t,n){return kXe(this,e,t,n,!1)},ht.prototype.write=function(e,t,n,r){if(t===void 0)r=\"utf8\",n=this.length,t=0;else if(n===void 0&&typeof t==\"string\")r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t|=0,isFinite(n)?(n|=0,r===void 0&&(r=\"utf8\")):(r=n,n=void 0)}var o=this.length-t;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");r||(r=\"utf8\");for(var i=!1;;)switch(r){case\"hex\":return B7t(this,e,t,n);case\"utf8\":case\"utf-8\":return L7t(this,e,t,n);case\"ascii\":return Zet(this,e,t,n);case\"latin1\":case\"binary\":return U7t(this,e,t,n);case\"base64\":return F7t(this,e,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return H7t(this,e,t,n);default:if(i)throw new TypeError(\"Unknown encoding: \"+r);r=(\"\"+r).toLowerCase(),i=!0}},ht.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};NXe=4096;ht.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=t===void 0?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),ht.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=ht.prototype;else{var o=t-e;n=new ht(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},ht.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||$l(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},ht.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||$l(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},ht.prototype.readUInt8=function(e,t){return t||$l(e,1,this.length),this[e]},ht.prototype.readUInt16LE=function(e,t){return t||$l(e,2,this.length),this[e]|this[e+1]<<8},ht.prototype.readUInt16BE=function(e,t){return t||$l(e,2,this.length),this[e]<<8|this[e+1]},ht.prototype.readUInt32LE=function(e,t){return t||$l(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ht.prototype.readUInt32BE=function(e,t){return t||$l(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ht.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||$l(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},ht.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||$l(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},ht.prototype.readInt8=function(e,t){return t||$l(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ht.prototype.readInt16LE=function(e,t){t||$l(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},ht.prototype.readInt16BE=function(e,t){t||$l(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},ht.prototype.readInt32LE=function(e,t){return t||$l(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ht.prototype.readInt32BE=function(e,t){return t||$l(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ht.prototype.readFloatLE=function(e,t){return t||$l(e,4,this.length),uee(this,e,!0,23,4)},ht.prototype.readFloatBE=function(e,t){return t||$l(e,4,this.length),uee(this,e,!1,23,4)},ht.prototype.readDoubleLE=function(e,t){return t||$l(e,8,this.length),uee(this,e,!0,52,8)},ht.prototype.readDoubleBE=function(e,t){return t||$l(e,8,this.length),uee(this,e,!1,52,8)},ht.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||lm(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},ht.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||lm(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},ht.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||lm(this,e,t,1,255,0),ht.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ht.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||lm(this,e,t,2,65535,0),ht.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):lee(this,e,t,!0),t+2},ht.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||lm(this,e,t,2,65535,0),ht.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):lee(this,e,t,!1),t+2},ht.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||lm(this,e,t,4,4294967295,0),ht.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):dee(this,e,t,!0),t+4},ht.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||lm(this,e,t,4,4294967295,0),ht.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):dee(this,e,t,!1),t+4},ht.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);lm(this,e,t,n,o-1,-o)}var i=0,a=1,c=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&c===0&&this[t+i-1]!==0&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},ht.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);lm(this,e,t,n,o-1,-o)}var i=n-1,a=1,c=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&c===0&&this[t+i+1]!==0&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},ht.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||lm(this,e,t,1,127,-128),ht.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ht.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||lm(this,e,t,2,32767,-32768),ht.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):lee(this,e,t,!0),t+2},ht.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||lm(this,e,t,2,32767,-32768),ht.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):lee(this,e,t,!1),t+2},ht.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||lm(this,e,t,4,2147483647,-2147483648),ht.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):dee(this,e,t,!0),t+4},ht.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||lm(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ht.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):dee(this,e,t,!1),t+4},ht.prototype.writeFloatLE=function(e,t,n){return PXe(this,e,t,!0,n)},ht.prototype.writeFloatBE=function(e,t,n){return PXe(this,e,t,!1,n)},ht.prototype.writeDoubleLE=function(e,t,n){return MXe(this,e,t,!0,n)},ht.prototype.writeDoubleBE=function(e,t,n){return MXe(this,e,t,!1,n)},ht.prototype.copy=function(e,t,n,r){if(n||(n=0),r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(n<0||n>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(r<0)throw new RangeError(\"sourceEnd out of bounds\");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!ht.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},ht.prototype.fill=function(e,t,n,r){if(typeof e==\"string\"){if(typeof t==\"string\"?(r=t,t=0,n=this.length):typeof n==\"string\"&&(r=n,n=this.length),e.length===1){var o=e.charCodeAt(0);o<256&&(e=o)}if(r!==void 0&&typeof r!=\"string\")throw new TypeError(\"encoding must be a string\");if(typeof r==\"string\"&&!ht.isEncoding(r))throw new TypeError(\"Unknown encoding: \"+r)}else typeof e==\"number\"&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError(\"Out of range index\");if(n<=t)return this;var i;if(t>>>=0,n=n===void 0?this.length:n>>>0,e||(e=0),typeof e==\"number\")for(i=t;i<n;++i)this[i]=e;else{var a=Gw(e)?e:Qee(new ht(e,r).toString()),c=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%c]}return this};q7t=/[^+\\\\/0-9A-Za-z-_]/g;Y7t=Object.freeze({__proto__:null,Buffer:ht,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),ht.alloc(+e)},isBuffer:$et,kMaxLength:M7t}),Sy=typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof globalThis<\"u\"?globalThis:typeof self<\"u\"?self:{};tM={},I0={},jf={};Object.defineProperty(jf,\"__esModule\",{value:!0}),jf.isBytes=ttt,jf.number=Jee,jf.bool=ett,jf.bytes=R1e,jf.hash=ntt,jf.exists=rtt,jf.output=ott;Z7t={number:Jee,bool:ett,bytes:R1e,hash:ntt,exists:rtt,output:ott};jf.default=Z7t,(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.wrapCipher=e.Hash=e.nextTick=e.isLE=e.createView=e.u32=e.u16=e.u8=void 0,e.bytesToHex=r,e.hexToBytes=a,e.hexToNumber=c,e.bytesToNumberBE=function(h){return c(r(h))},e.numberToBytesBE=function(h,g){return a(h.toString(16).padStart(2*g,\"0\"))},e.asyncLoop=async function(h,g,y){let w=Date.now();for(let x=0;x<h;x++){y(x);let I=Date.now()-w;I>=0&&I<g||(await(0,e.nextTick)(),w+=I)}},e.utf8ToBytes=l,e.bytesToUtf8=function(h){return new TextDecoder().decode(h)},e.toBytes=function(h){if(typeof h==\"string\")h=l(h);else{if(!(0,t.isBytes)(h))throw new Error(\"Uint8Array expected, got \"+typeof h);h=m(h)}return h},e.concatBytes=function(...h){let g=0;for(let w=0;w<h.length;w++){let x=h[w];(0,t.bytes)(x),g+=x.length}let y=new Uint8Array(g);for(let w=0,x=0;w<h.length;w++){let I=h[w];y.set(I,x),x+=I.length}return y},e.checkOpts=function(h,g){if(g==null||typeof g!=\"object\")throw new Error(\"options must be defined\");return Object.assign(h,g)},e.equalBytes=function(h,g){if(h.length!==g.length)return!1;let y=0;for(let w=0;w<h.length;w++)y|=h[w]^g[w];return y===0},e.setBigUint64=d,e.u64Lengths=function(h,g){let y=new Uint8Array(16),w=(0,e.createView)(y);return d(w,0,BigInt(g?g.length:0),!0),d(w,8,BigInt(h.length),!0),y},e.isAligned32=function(h){return h.byteOffset%4==0},e.copyBytes=m,e.clean=function(...h){for(let g=0;g<h.length;g++)h[g].fill(0)};let t=jf;if(e.u8=h=>new Uint8Array(h.buffer,h.byteOffset,h.byteLength),e.u16=h=>new Uint16Array(h.buffer,h.byteOffset,Math.floor(h.byteLength/2)),e.u32=h=>new Uint32Array(h.buffer,h.byteOffset,Math.floor(h.byteLength/4)),e.createView=h=>new DataView(h.buffer,h.byteOffset,h.byteLength),e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!e.isLE)throw new Error(\"Non little-endian hardware is not supported\");let n=Array.from({length:256},((h,g)=>g.toString(16).padStart(2,\"0\")));function r(h){(0,t.bytes)(h);let g=\"\";for(let y=0;y<h.length;y++)g+=n[h[y]];return g}let o={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function i(h){return h>=o._0&&h<=o._9?h-o._0:h>=o._A&&h<=o._F?h-(o._A-10):h>=o._a&&h<=o._f?h-(o._a-10):void 0}function a(h){if(typeof h!=\"string\")throw new Error(\"hex string expected, got \"+typeof h);let g=h.length,y=g/2;if(g%2)throw new Error(\"padded hex string expected, got unpadded hex of length \"+g);let w=new Uint8Array(y);for(let x=0,I=0;x<y;x++,I+=2){let C=i(h.charCodeAt(I)),M=i(h.charCodeAt(I+1));if(C===void 0||M===void 0){let B=h[I]+h[I+1];throw new Error(\\'hex string expected, got non-hex character \"\\'+B+\\'\" at index \\'+I)}w[x]=16*C+M}return w}function c(h){if(typeof h!=\"string\")throw new Error(\"hex string expected, got \"+typeof h);return BigInt(h===\"\"?\"0\":`0x${h}`)}function l(h){if(typeof h!=\"string\")throw new Error(\"string expected, got \"+typeof h);return new Uint8Array(new TextEncoder().encode(h))}e.nextTick=async()=>{},e.Hash=class{};function d(h,g,y,w){if(typeof h.setBigUint64==\"function\")return h.setBigUint64(g,y,w);let x=BigInt(32),I=BigInt(4294967295),C=Number(y>>x&I),M=Number(y&I),B=w?4:0,z=w?0:4;h.setUint32(g+B,C,w),h.setUint32(g+z,M,w)}function m(h){return Uint8Array.from(h)}e.wrapCipher=(h,g)=>(Object.assign(g,h),g)})(I0);TH={},ed={};Object.defineProperty(ed,\"__esModule\",{value:!0}),ed.AEAD_TAG_LENGTH=ed.XCHACHA20_NONCE_LENGTH=ed.CURVE25519_PUBLIC_KEY_SIZE=ed.ETH_PUBLIC_KEY_SIZE=ed.UNCOMPRESSED_PUBLIC_KEY_SIZE=ed.COMPRESSED_PUBLIC_KEY_SIZE=ed.SECRET_KEY_LENGTH=void 0,ed.SECRET_KEY_LENGTH=32,ed.COMPRESSED_PUBLIC_KEY_SIZE=33,ed.UNCOMPRESSED_PUBLIC_KEY_SIZE=65,ed.ETH_PUBLIC_KEY_SIZE=64,ed.CURVE25519_PUBLIC_KEY_SIZE=32,ed.XCHACHA20_NONCE_LENGTH=24,ed.AEAD_TAG_LENGTH=16,(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.ephemeralKeySize=e.symmetricNonceLength=e.symmetricAlgorithm=e.isHkdfKeyCompressed=e.isEphemeralKeyCompressed=e.ellipticCurve=e.ECIES_CONFIG=void 0;var t=ed,n=function(){this.ellipticCurve=\"secp256k1\",this.isEphemeralKeyCompressed=!1,this.isHkdfKeyCompressed=!1,this.symmetricAlgorithm=\"aes-256-gcm\",this.symmetricNonceLength=16};e.ECIES_CONFIG=new n,e.ellipticCurve=function(){return e.ECIES_CONFIG.ellipticCurve},e.isEphemeralKeyCompressed=function(){return e.ECIES_CONFIG.isEphemeralKeyCompressed},e.isHkdfKeyCompressed=function(){return e.ECIES_CONFIG.isHkdfKeyCompressed},e.symmetricAlgorithm=function(){return e.ECIES_CONFIG.symmetricAlgorithm},e.symmetricNonceLength=function(){return e.ECIES_CONFIG.symmetricNonceLength},e.ephemeralKeySize=function(){var r={secp256k1:e.ECIES_CONFIG.isEphemeralKeyCompressed?t.COMPRESSED_PUBLIC_KEY_SIZE:t.UNCOMPRESSED_PUBLIC_KEY_SIZE,x25519:t.CURVE25519_PUBLIC_KEY_SIZE,ed25519:t.CURVE25519_PUBLIC_KEY_SIZE};if(e.ECIES_CONFIG.ellipticCurve in r)return r[e.ECIES_CONFIG.ellipticCurve];throw new Error(\"Not implemented\")}})(TH);Qye={},Xee={},Ote={},itt={},I1e={},fee={};Object.defineProperty(fee,\"__esModule\",{value:!0}),fee.crypto=void 0,fee.crypto=typeof globalThis==\"object\"&&\"crypto\"in globalThis?globalThis.crypto:void 0,(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.gcm=e.ctr=e.cbc=e.utils=void 0,e.randomBytes=o,e.getWebcryptoSubtle=i,e.managedNonce=function(l){return(0,n.number)(l.nonceLength),(d,...m)=>({encrypt(h,...g){let{nonceLength:y}=l,w=o(y),x=l(d,w,...m).encrypt(h,...g),I=(0,r.concatBytes)(w,x);return x.fill(0),I},decrypt(h,...g){let{nonceLength:y}=l,w=h.subarray(0,y),x=h.subarray(y);return l(d,w,...m).decrypt(x,...g)}})};let t=fee,n=jf,r=I0;function o(l=32){if(t.crypto&&typeof t.crypto.getRandomValues==\"function\")return t.crypto.getRandomValues(new Uint8Array(l));if(t.crypto&&typeof t.crypto.randomBytes==\"function\")return t.crypto.randomBytes(l);throw new Error(\"crypto.getRandomValues must be defined\")}function i(){if(t.crypto&&typeof t.crypto.subtle==\"object\"&&t.crypto.subtle!=null)return t.crypto.subtle;throw new Error(\"crypto.subtle must be defined\")}e.utils={async encrypt(l,d,m,h){let g=i(),y=await g.importKey(\"raw\",l,d,!0,[\"encrypt\"]),w=await g.encrypt(m,y,h);return new Uint8Array(w)},async decrypt(l,d,m,h){let g=i(),y=await g.importKey(\"raw\",l,d,!0,[\"decrypt\"]),w=await g.decrypt(m,y,h);return new Uint8Array(w)}};let a={CBC:\"AES-CBC\",CTR:\"AES-CTR\",GCM:\"AES-GCM\"};function c(l){return(d,m,h)=>{(0,n.bytes)(d),(0,n.bytes)(m);let g={name:l,length:8*d.length},y=(function(w,x,I){if(w===a.CBC)return{name:a.CBC,iv:x};if(w===a.CTR)return{name:a.CTR,counter:x,length:64};if(w===a.GCM)return I?{name:a.GCM,iv:x,additionalData:I}:{name:a.GCM,iv:x};throw new Error(\"unknown aes block mode\")})(l,m,h);return{encrypt:w=>((0,n.bytes)(w),e.utils.encrypt(d,g,y,w)),decrypt:w=>((0,n.bytes)(w),e.utils.decrypt(d,g,y,w))}}}e.cbc=c(a.CBC),e.ctr=c(a.CTR),e.gcm=c(a.GCM)})(I1e);att={},td={},XE={},T0={};Object.defineProperty(T0,\"__esModule\",{value:!0}),T0.isBytes=ctt,T0.number=$ee,T0.bool=stt,T0.bytes=k1e,T0.hash=utt,T0.exists=ltt,T0.output=dtt;Q7t={number:$ee,bool:stt,bytes:k1e,hash:utt,exists:ltt,output:dtt};T0.default=Q7t;rA={},pee={};Object.defineProperty(pee,\"__esModule\",{value:!0}),pee.crypto=void 0,pee.crypto=typeof globalThis==\"object\"&&\"crypto\"in globalThis?globalThis.crypto:void 0,(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.Hash=e.nextTick=e.byteSwapIfBE=e.byteSwap=e.isLE=e.rotl=e.rotr=e.createView=e.u32=e.u8=void 0,e.isBytes=function(d){return d instanceof Uint8Array||d!=null&&typeof d==\"object\"&&d.constructor.name===\"Uint8Array\"},e.byteSwap32=function(d){for(let m=0;m<d.length;m++)d[m]=(0,e.byteSwap)(d[m])},e.bytesToHex=function(d){(0,n.bytes)(d);let m=\"\";for(let h=0;h<d.length;h++)m+=r[d[h]];return m},e.hexToBytes=function(d){if(typeof d!=\"string\")throw new Error(\"hex string expected, got \"+typeof d);let m=d.length,h=m/2;if(m%2)throw new Error(\"padded hex string expected, got unpadded hex of length \"+m);let g=new Uint8Array(h);for(let y=0,w=0;y<h;y++,w+=2){let x=i(d.charCodeAt(w)),I=i(d.charCodeAt(w+1));if(x===void 0||I===void 0){let C=d[w]+d[w+1];throw new Error(\\'hex string expected, got non-hex character \"\\'+C+\\'\" at index \\'+w)}g[y]=16*x+I}return g},e.asyncLoop=async function(d,m,h){let g=Date.now();for(let y=0;y<d;y++){h(y);let w=Date.now()-g;w>=0&&w<m||(await(0,e.nextTick)(),g+=w)}},e.utf8ToBytes=a,e.toBytes=c,e.concatBytes=function(...d){let m=0;for(let g=0;g<d.length;g++){let y=d[g];(0,n.bytes)(y),m+=y.length}let h=new Uint8Array(m);for(let g=0,y=0;g<d.length;g++){let w=d[g];h.set(w,y),y+=w.length}return h},e.checkOpts=function(d,m){if(m!==void 0&&l.call(m)!==\"[object Object]\")throw new Error(\"Options should be object or undefined\");return Object.assign(d,m)},e.wrapConstructor=function(d){let m=g=>d().update(c(g)).digest(),h=d();return m.outputLen=h.outputLen,m.blockLen=h.blockLen,m.create=()=>d(),m},e.wrapConstructorWithOpts=function(d){let m=(g,y)=>d(y).update(c(g)).digest(),h=d({});return m.outputLen=h.outputLen,m.blockLen=h.blockLen,m.create=g=>d(g),m},e.wrapXOFConstructorWithOpts=function(d){let m=(g,y)=>d(y).update(c(g)).digest(),h=d({});return m.outputLen=h.outputLen,m.blockLen=h.blockLen,m.create=g=>d(g),m},e.randomBytes=function(d=32){if(t.crypto&&typeof t.crypto.getRandomValues==\"function\")return t.crypto.getRandomValues(new Uint8Array(d));if(t.crypto&&typeof t.crypto.randomBytes==\"function\")return t.crypto.randomBytes(d);throw new Error(\"crypto.getRandomValues must be defined\")};let t=pee,n=T0;e.u8=d=>new Uint8Array(d.buffer,d.byteOffset,d.byteLength),e.u32=d=>new Uint32Array(d.buffer,d.byteOffset,Math.floor(d.byteLength/4)),e.createView=d=>new DataView(d.buffer,d.byteOffset,d.byteLength),e.rotr=(d,m)=>d<<32-m|d>>>m,e.rotl=(d,m)=>d<<m|d>>>32-m>>>0,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,e.byteSwap=d=>d<<24&4278190080|d<<8&16711680|d>>>8&65280|d>>>24&255,e.byteSwapIfBE=e.isLE?d=>d:d=>(0,e.byteSwap)(d);let r=Array.from({length:256},((d,m)=>m.toString(16).padStart(2,\"0\"))),o={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function i(d){return d>=o._0&&d<=o._9?d-o._0:d>=o._A&&d<=o._F?d-(o._A-10):d>=o._a&&d<=o._f?d-(o._a-10):void 0}function a(d){if(typeof d!=\"string\")throw new Error(\"utf8ToBytes expected string, got \"+typeof d);return new Uint8Array(new TextEncoder().encode(d))}function c(d){return typeof d==\"string\"&&(d=a(d)),(0,n.bytes)(d),d}e.nextTick=async()=>{},e.Hash=class{clone(){return this._cloneInto()}};let l={}.toString})(rA),Object.defineProperty(XE,\"__esModule\",{value:!0}),XE.HashMD=XE.Maj=XE.Chi=void 0;Jye=T0,sH=rA;XE.Chi=(e,t,n)=>e&t^~e&n;XE.Maj=(e,t,n)=>e&t^e&n^t&n;XE.HashMD=class extends sH.Hash{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,sH.createView)(this.buffer)}update(e){(0,Jye.exists)(this);let{view:t,buffer:n,blockLen:r}=this,o=(e=(0,sH.toBytes)(e)).length;for(let i=0;i<o;){let a=Math.min(r-this.pos,o-i);if(a!==r)n.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===r&&(this.process(t,0),this.pos=0);else{let c=(0,sH.createView)(e);for(;r<=o-i;i+=r)this.process(c,i)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,Jye.exists)(this),(0,Jye.output)(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:r,isLE:o}=this,{pos:i}=this;t[i++]=128,this.buffer.subarray(i).fill(0),this.padOffset>r-i&&(this.process(n,0),i=0);for(let m=i;m<r;m++)t[m]=0;(function(m,h,g,y){if(typeof m.setBigUint64==\"function\")return m.setBigUint64(h,g,y);let w=BigInt(32),x=BigInt(4294967295),I=Number(g>>w&x),C=Number(g&x),M=y?4:0,B=y?0:4;m.setUint32(h+M,I,y),m.setUint32(h+B,C,y)})(n,r-8,BigInt(8*this.length),o),this.process(n,0);let a=(0,sH.createView)(e),c=this.outputLen;if(c%4)throw new Error(\"_sha2: outputLen should be aligned to 32bit\");let l=c/4,d=this.get();if(l>d.length)throw new Error(\"_sha2: outputLen bigger than state\");for(let m=0;m<l;m++)a.setUint32(4*m,d[m],o)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:o,destroyed:i,pos:a}=this;return e.length=r,e.pos=a,e.finished=o,e.destroyed=i,r%t&&e.buffer.set(n),e}};gr={};Object.defineProperty(gr,\"__esModule\",{value:!0}),gr.add5L=gr.add5H=gr.add4H=gr.add4L=gr.add3H=gr.add3L=gr.rotlBL=gr.rotlBH=gr.rotlSL=gr.rotlSH=gr.rotr32L=gr.rotr32H=gr.rotrBL=gr.rotrBH=gr.rotrSL=gr.rotrSH=gr.shrSL=gr.shrSH=gr.toBig=void 0,gr.fromBig=O1e,gr.split=ftt,gr.add=Ttt;hee=BigInt(2**32-1),Mbe=BigInt(32);ptt=(e,t)=>BigInt(e>>>0)<<Mbe|BigInt(t>>>0);gr.toBig=ptt;htt=(e,t,n)=>e>>>n;gr.shrSH=htt;mtt=(e,t,n)=>e<<32-n|t>>>n;gr.shrSL=mtt;gtt=(e,t,n)=>e>>>n|t<<32-n;gr.rotrSH=gtt;ytt=(e,t,n)=>e<<32-n|t>>>n;gr.rotrSL=ytt;btt=(e,t,n)=>e<<64-n|t>>>n-32;gr.rotrBH=btt;vtt=(e,t,n)=>e>>>n-32|t<<64-n;gr.rotrBL=vtt;wtt=(e,t)=>t;gr.rotr32H=wtt;xtt=(e,t)=>e;gr.rotr32L=xtt;Ett=(e,t,n)=>e<<n|t>>>32-n;gr.rotlSH=Ett;Att=(e,t,n)=>t<<n|e>>>32-n;gr.rotlSL=Att;Stt=(e,t,n)=>t<<n-32|e>>>64-n;gr.rotlBH=Stt;_tt=(e,t,n)=>e<<n-32|t>>>64-n;gr.rotlBL=_tt;Ctt=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);gr.add3L=Ctt;Rtt=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;gr.add3H=Rtt;Itt=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);gr.add4L=Itt;ktt=(e,t,n,r,o)=>t+n+r+o+(e/2**32|0)|0;gr.add4H=ktt;Ott=(e,t,n,r,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(o>>>0);gr.add5L=Ott;Ntt=(e,t,n,r,o,i)=>t+n+r+o+i+(e/2**32|0)|0;gr.add5H=Ntt;J7t={fromBig:O1e,split:ftt,toBig:ptt,shrSH:htt,shrSL:mtt,rotrSH:gtt,rotrSL:ytt,rotrBH:btt,rotrBL:vtt,rotr32H:wtt,rotr32L:xtt,rotlSH:Ett,rotlSL:Att,rotlBH:Stt,rotlBL:_tt,add:Ttt,add3L:Ctt,add3H:Rtt,add4L:Itt,add4H:ktt,add5H:Ntt,add5L:Ott};gr.default=J7t,Object.defineProperty(td,\"__esModule\",{value:!0}),td.sha384=td.sha512_256=td.sha512_224=td.sha512=td.SHA384=td.SHA512_256=td.SHA512_224=td.SHA512=void 0;X7t=XE,Gr=gr,mee=rA,[$7t,e9t]=Gr.default.split([\"0x428a2f98d728ae22\",\"0x7137449123ef65cd\",\"0xb5c0fbcfec4d3b2f\",\"0xe9b5dba58189dbbc\",\"0x3956c25bf348b538\",\"0x59f111f1b605d019\",\"0x923f82a4af194f9b\",\"0xab1c5ed5da6d8118\",\"0xd807aa98a3030242\",\"0x12835b0145706fbe\",\"0x243185be4ee4b28c\",\"0x550c7dc3d5ffb4e2\",\"0x72be5d74f27b896f\",\"0x80deb1fe3b1696b1\",\"0x9bdc06a725c71235\",\"0xc19bf174cf692694\",\"0xe49b69c19ef14ad2\",\"0xefbe4786384f25e3\",\"0x0fc19dc68b8cd5b5\",\"0x240ca1cc77ac9c65\",\"0x2de92c6f592b0275\",\"0x4a7484aa6ea6e483\",\"0x5cb0a9dcbd41fbd4\",\"0x76f988da831153b5\",\"0x983e5152ee66dfab\",\"0xa831c66d2db43210\",\"0xb00327c898fb213f\",\"0xbf597fc7beef0ee4\",\"0xc6e00bf33da88fc2\",\"0xd5a79147930aa725\",\"0x06ca6351e003826f\",\"0x142929670a0e6e70\",\"0x27b70a8546d22ffc\",\"0x2e1b21385c26c926\",\"0x4d2c6dfc5ac42aed\",\"0x53380d139d95b3df\",\"0x650a73548baf63de\",\"0x766a0abb3c77b2a8\",\"0x81c2c92e47edaee6\",\"0x92722c851482353b\",\"0xa2bfe8a14cf10364\",\"0xa81a664bbc423001\",\"0xc24b8b70d0f89791\",\"0xc76c51a30654be30\",\"0xd192e819d6ef5218\",\"0xd69906245565a910\",\"0xf40e35855771202a\",\"0x106aa07032bbd1b8\",\"0x19a4c116b8d2d0c8\",\"0x1e376c085141ab53\",\"0x2748774cdf8eeb99\",\"0x34b0bcb5e19b48a8\",\"0x391c0cb3c5c95a63\",\"0x4ed8aa4ae3418acb\",\"0x5b9cca4f7763e373\",\"0x682e6ff3d6b2b8a3\",\"0x748f82ee5defb2fc\",\"0x78a5636f43172f60\",\"0x84c87814a1f0ab72\",\"0x8cc702081a6439ec\",\"0x90befffa23631e28\",\"0xa4506cebde82bde9\",\"0xbef9a3f7b2c67915\",\"0xc67178f2e372532b\",\"0xca273eceea26619c\",\"0xd186b8c721c0c207\",\"0xeada7dd6cde0eb1e\",\"0xf57d4f7fee6ed178\",\"0x06f067aa72176fba\",\"0x0a637dc5a2c898a6\",\"0x113f9804bef90dae\",\"0x1b710b35131c471b\",\"0x28db77f523047d84\",\"0x32caab7b40c72493\",\"0x3c9ebe0a15c9bebc\",\"0x431d67c49c100d4c\",\"0x4cc5d4becb3e42b6\",\"0x597f299cfc657e2a\",\"0x5fcb6fab3ad6faec\",\"0x6c44198c4a475817\"].map((e=>BigInt(e)))),LT=new Uint32Array(80),UT=new Uint32Array(80),nI=class extends X7t.HashMD{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){let{Ah:t,Al:n,Bh:r,Bl:o,Ch:i,Cl:a,Dh:c,Dl:l,Eh:d,El:m,Fh:h,Fl:g,Gh:y,Gl:w,Hh:x,Hl:I}=this;return[t,n,r,o,i,a,c,l,d,m,h,g,y,w,x,I]}set(t,n,r,o,i,a,c,l,d,m,h,g,y,w,x,I){this.Ah=0|t,this.Al=0|n,this.Bh=0|r,this.Bl=0|o,this.Ch=0|i,this.Cl=0|a,this.Dh=0|c,this.Dl=0|l,this.Eh=0|d,this.El=0|m,this.Fh=0|h,this.Fl=0|g,this.Gh=0|y,this.Gl=0|w,this.Hh=0|x,this.Hl=0|I}process(t,n){for(let B=0;B<16;B++,n+=4)LT[B]=t.getUint32(n),UT[B]=t.getUint32(n+=4);for(let B=16;B<80;B++){let z=0|LT[B-15],G=0|UT[B-15],J=Gr.default.rotrSH(z,G,1)^Gr.default.rotrSH(z,G,8)^Gr.default.shrSH(z,G,7),ne=Gr.default.rotrSL(z,G,1)^Gr.default.rotrSL(z,G,8)^Gr.default.shrSL(z,G,7),ie=0|LT[B-2],ae=0|UT[B-2],te=Gr.default.rotrSH(ie,ae,19)^Gr.default.rotrBH(ie,ae,61)^Gr.default.shrSH(ie,ae,6),Z=Gr.default.rotrSL(ie,ae,19)^Gr.default.rotrBL(ie,ae,61)^Gr.default.shrSL(ie,ae,6),X=Gr.default.add4L(ne,Z,UT[B-7],UT[B-16]),F=Gr.default.add4H(X,J,te,LT[B-7],LT[B-16]);LT[B]=0|F,UT[B]=0|X}let{Ah:r,Al:o,Bh:i,Bl:a,Ch:c,Cl:l,Dh:d,Dl:m,Eh:h,El:g,Fh:y,Fl:w,Gh:x,Gl:I,Hh:C,Hl:M}=this;for(let B=0;B<80;B++){let z=Gr.default.rotrSH(h,g,14)^Gr.default.rotrSH(h,g,18)^Gr.default.rotrBH(h,g,41),G=Gr.default.rotrSL(h,g,14)^Gr.default.rotrSL(h,g,18)^Gr.default.rotrBL(h,g,41),J=h&y^~h&x,ne=g&w^~g&I,ie=Gr.default.add5L(M,G,ne,e9t[B],UT[B]),ae=Gr.default.add5H(ie,C,z,J,$7t[B],LT[B]),te=0|ie,Z=Gr.default.rotrSH(r,o,28)^Gr.default.rotrBH(r,o,34)^Gr.default.rotrBH(r,o,39),X=Gr.default.rotrSL(r,o,28)^Gr.default.rotrBL(r,o,34)^Gr.default.rotrBL(r,o,39),F=r&i^r&c^i&c,R=o&a^o&l^a&l;C=0|x,M=0|I,x=0|y,I=0|w,y=0|h,w=0|g,{h,l:g}=Gr.default.add(0|d,0|m,0|ae,0|te),d=0|c,m=0|l,c=0|i,l=0|a,i=0|r,a=0|o;let O=Gr.default.add3L(te,X,R);r=Gr.default.add3H(O,ae,Z,F),o=0|O}({h:r,l:o}=Gr.default.add(0|this.Ah,0|this.Al,0|r,0|o)),{h:i,l:a}=Gr.default.add(0|this.Bh,0|this.Bl,0|i,0|a),{h:c,l}=Gr.default.add(0|this.Ch,0|this.Cl,0|c,0|l),{h:d,l:m}=Gr.default.add(0|this.Dh,0|this.Dl,0|d,0|m),{h,l:g}=Gr.default.add(0|this.Eh,0|this.El,0|h,0|g),{h:y,l:w}=Gr.default.add(0|this.Fh,0|this.Fl,0|y,0|w),{h:x,l:I}=Gr.default.add(0|this.Gh,0|this.Gl,0|x,0|I),{h:C,l:M}=Gr.default.add(0|this.Hh,0|this.Hl,0|C,0|M),this.set(r,o,i,a,c,l,d,m,h,g,y,w,x,I,C,M)}roundClean(){LT.fill(0),UT.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}};td.SHA512=nI;ete=class extends nI{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}};td.SHA512_224=ete;tte=class extends nI{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}};td.SHA512_256=tte;nte=class extends nI{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}};td.SHA384=nte,td.sha512=(0,mee.wrapConstructor)((()=>new nI)),td.sha512_224=(0,mee.wrapConstructor)((()=>new ete)),td.sha512_256=(0,mee.wrapConstructor)((()=>new tte)),td.sha384=(0,mee.wrapConstructor)((()=>new nte));Dbe={},rM={},Mi={},Xr={};Object.defineProperty(Xr,\"__esModule\",{value:!0}),Xr.notImplemented=Xr.bitMask=void 0,Xr.isBytes=rte,Xr.abytes=ote,Xr.abool=function(e,t){if(typeof t!=\"boolean\")throw new Error(`${e} must be valid boolean, got \"${t}\".`)},Xr.bytesToHex=Xye,Xr.numberToHexUnpadded=BXe,Xr.hexToNumber=$ye,Xr.hexToBytes=Nee,Xr.bytesToNumberBE=function(e){return $ye(Xye(e))},Xr.bytesToNumberLE=function(e){return ote(e),$ye(Xye(Uint8Array.from(e).reverse()))},Xr.numberToBytesBE=UXe,Xr.numberToBytesLE=function(e,t){return UXe(e,t).reverse()},Xr.numberToVarBytesBE=function(e){return Nee(BXe(e))},Xr.ensureBytes=function(e,t,n){let r;if(typeof t==\"string\")try{r=Nee(t)}catch(i){throw new Error(`${e} must be valid hex string, got \"${t}\". Cause: ${i}`)}else{if(!rte(t))throw new Error(`${e} must be hex string or Uint8Array`);r=Uint8Array.from(t)}let o=r.length;if(typeof n==\"number\"&&o!==n)throw new Error(`${e} expected ${n} bytes, got ${o}`);return r},Xr.concatBytes=FXe,Xr.equalBytes=function(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return n===0},Xr.utf8ToBytes=function(e){if(typeof e!=\"string\")throw new Error(\"utf8ToBytes expected string, got \"+typeof e);return new Uint8Array(new TextEncoder().encode(e))},Xr.inRange=HXe,Xr.aInRange=function(e,t,n,r){if(!HXe(t,n,r))throw new Error(`expected valid ${e}: ${n} <= n < ${r}, got ${typeof t} ${t}`)},Xr.bitLen=function(e){let t;for(t=0;e>Bbe;e>>=Oee,t+=1);return t},Xr.bitGet=function(e,t){return e>>BigInt(t)&Oee},Xr.bitSet=function(e,t,n){return e|(n?Oee:Bbe)<<BigInt(t)},Xr.createHmacDrbg=function(e,t,n){if(typeof e!=\"number\"||e<2)throw new Error(\"hashLen must be a number\");if(typeof t!=\"number\"||t<2)throw new Error(\"qByteLen must be a number\");if(typeof n!=\"function\")throw new Error(\"hmacFn must be a function\");let r=tbe(e),o=tbe(e),i=0,a=()=>{r.fill(1),o.fill(0),i=0},c=(...m)=>n(o,r,...m),l=(m=tbe())=>{o=c(zXe([0]),m),r=c(),m.length!==0&&(o=c(zXe([1]),m),r=c())},d=()=>{if(i++>=1e3)throw new Error(\"drbg: tried 1000 values\");let m=0,h=[];for(;m<t;){r=c();let g=r.slice();h.push(g),m+=r.length}return FXe(...h)};return(m,h)=>{let g;for(a(),l(m);!(g=h(d()));)l();return a(),g}},Xr.validateObject=function(e,t,n={}){let r=(o,i,a)=>{let c=r9t[i];if(typeof c!=\"function\")throw new Error(`Invalid validator \"${i}\", expected function`);let l=e[o];if(!(a&&l===void 0||c(l,e)))throw new Error(`Invalid param ${String(o)}=${l} (${typeof l}), expected ${i}`)};for(let[o,i]of Object.entries(t))r(o,i,!1);for(let[o,i]of Object.entries(n))r(o,i,!0);return e},Xr.memoized=function(e){let t=new WeakMap;return(n,...r)=>{let o=t.get(n);if(o!==void 0)return o;let i=e(n,...r);return t.set(n,i),i}};Bbe=BigInt(0),Oee=BigInt(1),t9t=BigInt(2);n9t=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,\"0\")));GE={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};ebe=e=>typeof e==\"bigint\"&&Bbe<=e;Xr.bitMask=e=>(t9t<<BigInt(e-1))-Oee;tbe=e=>new Uint8Array(e),zXe=e=>Uint8Array.from(e),r9t={bigint:e=>typeof e==\"bigint\",function:e=>typeof e==\"function\",boolean:e=>typeof e==\"boolean\",string:e=>typeof e==\"string\",stringOrUint8Array:e=>typeof e==\"string\"||rte(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e==\"function\"&&Number.isSafeInteger(e.outputLen)};Xr.notImplemented=()=>{throw new Error(\"not implemented\")},Object.defineProperty(Mi,\"__esModule\",{value:!0}),Mi.isNegativeLE=void 0,Mi.mod=_0,Mi.pow=Ptt,Mi.pow2=function(e,t,n){let r=e;for(;t-- >nd;)r*=r,r%=n;return r},Mi.invert=gee,Mi.tonelliShanks=Mtt,Mi.FpSqrt=VXe,Mi.validateField=function(e){let t=i9t.reduce(((n,r)=>(n[r]=\"function\",n)),{ORDER:\"bigint\",MASK:\"bigint\",BYTES:\"isSafeInteger\",BITS:\"isSafeInteger\"});return(0,A0.validateObject)(e,t)},Mi.FpPow=GXe,Mi.FpInvertBatch=qXe,Mi.FpDiv=function(e,t,n){return e.mul(t,typeof n==\"bigint\"?gee(n,e.ORDER):e.inv(n))},Mi.FpLegendre=KXe,Mi.FpIsSquare=function(e){let t=KXe(e.ORDER);return n=>{let r=t(e,n);return e.eql(r,e.ZERO)||e.eql(r,e.ONE)}},Mi.nLength=nbe,Mi.Field=function(e,t,n=!1,r={}){if(e<=nd)throw new Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:o,nByteLength:i}=nbe(e,t);if(i>2048)throw new Error(\"Field lengths over 2048 bytes are not supported\");let a=VXe(e),c=Object.freeze({ORDER:e,BITS:o,BYTES:i,MASK:(0,A0.bitMask)(o),ZERO:nd,ONE:Ha,create:l=>_0(l,e),isValid:l=>{if(typeof l!=\"bigint\")throw new Error(\"Invalid field element: expected bigint, got \"+typeof l);return nd<=l&&l<e},is0:l=>l===nd,isOdd:l=>(l&Ha)===Ha,neg:l=>_0(-l,e),eql:(l,d)=>l===d,sqr:l=>_0(l*l,e),add:(l,d)=>_0(l+d,e),sub:(l,d)=>_0(l-d,e),mul:(l,d)=>_0(l*d,e),pow:(l,d)=>GXe(c,l,d),div:(l,d)=>_0(l*gee(d,e),e),sqrN:l=>l*l,addN:(l,d)=>l+d,subN:(l,d)=>l-d,mulN:(l,d)=>l*d,inv:l=>gee(l,e),sqrt:r.sqrt||(l=>a(c,l)),invertBatch:l=>qXe(c,l),cmov:(l,d,m)=>m?d:l,toBytes:l=>n?(0,A0.numberToBytesLE)(l,i):(0,A0.numberToBytesBE)(l,i),fromBytes:l=>{if(l.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${l.length}`);return n?(0,A0.bytesToNumberLE)(l):(0,A0.bytesToNumberBE)(l)}});return Object.freeze(c)},Mi.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error(\"Field doesn\\'t have isOdd\");let n=e.sqrt(t);return e.isOdd(n)?n:e.neg(n)},Mi.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error(\"Field doesn\\'t have isOdd\");let n=e.sqrt(t);return e.isOdd(n)?e.neg(n):n},Mi.hashToPrivateScalar=function(e,t,n=!1){e=(0,A0.ensureBytes)(\"privateHash\",e);let r=e.length,o=nbe(t).nByteLength+8;if(o<24||r<o||r>1024)throw new Error(`hashToPrivateScalar: expected ${o}-1024 bytes of input, got ${r}`);let i=n?(0,A0.bytesToNumberLE)(e):(0,A0.bytesToNumberBE)(e);return _0(i,t-Ha)+Ha},Mi.getFieldBytesLength=Ube,Mi.getMinHashLength=YXe,Mi.mapHashToField=function(e,t,n=!1){let r=e.length,o=Ube(t),i=YXe(t);if(r<16||r<i||r>1024)throw new Error(`expected ${i}-1024 bytes of input, got ${r}`);let a=_0(n?(0,A0.bytesToNumberBE)(e):(0,A0.bytesToNumberLE)(e),t-Ha)+Ha;return n?(0,A0.numberToBytesLE)(a,o):(0,A0.numberToBytesBE)(a,o)};A0=Xr,nd=BigInt(0),Ha=BigInt(1),JT=BigInt(2),o9t=BigInt(3),Lbe=BigInt(4),jXe=BigInt(5),WXe=BigInt(8);BigInt(9),BigInt(16);Mi.isNegativeLE=(e,t)=>(_0(e,t)&Ha)===Ha;i9t=[\"create\",\"isValid\",\"is0\",\"neg\",\"inv\",\"sqrt\",\"sqr\",\"eql\",\"add\",\"sub\",\"mul\",\"pow\",\"div\",\"addN\",\"subN\",\"mulN\",\"sqrN\"];Object.defineProperty(rM,\"__esModule\",{value:!0}),rM.wNAF=function(e,t){let n=(i,a)=>{let c=a.negate();return i?c:a},r=i=>{if(!Number.isSafeInteger(i)||i<=0||i>t)throw new Error(`Wrong window size=${i}, should be [1..${t}]`)},o=i=>(r(i),{windows:Math.ceil(t/i)+1,windowSize:2**(i-1)});return{constTimeNegate:n,unsafeLadder(i,a){let c=e.ZERO,l=i;for(;a>a9t;)a&rbe&&(c=c.add(l)),l=l.double(),a>>=rbe;return c},precomputeWindow(i,a){let{windows:c,windowSize:l}=o(a),d=[],m=i,h=m;for(let g=0;g<c;g++){h=m,d.push(h);for(let y=1;y<l;y++)h=h.add(m),d.push(h);m=h.double()}return d},wNAF(i,a,c){let{windows:l,windowSize:d}=o(i),m=e.ZERO,h=e.BASE,g=BigInt(2**i-1),y=2**i,w=BigInt(i);for(let x=0;x<l;x++){let I=x*d,C=Number(c&g);c>>=w,C>d&&(C-=y,c+=rbe);let M=I,B=I+Math.abs(C)-1,z=x%2!=0,G=C<0;C===0?h=h.add(n(z,a[M])):m=m.add(n(G,a[B]))}return{p:m,f:h}},wNAFCached(i,a,c){let l=JXe.get(i)||1,d=obe.get(i);return d||(d=this.precomputeWindow(i,l),l!==1&&obe.set(i,c(d))),this.wNAF(l,d,a)},setWindowSize(i,a){r(a),JXe.set(i,a),obe.delete(i)}}},rM.pippenger=function(e,t,n,r){if(!Array.isArray(n)||!Array.isArray(r)||r.length!==n.length)throw new Error(\"arrays of points and scalars must have equal length\");r.forEach(((m,h)=>{if(!t.isValid(m))throw new Error(`wrong scalar at index ${h}`)})),n.forEach(((m,h)=>{if(!(m instanceof e))throw new Error(`wrong point at index ${h}`)}));let o=(0,QXe.bitLen)(BigInt(n.length)),i=o>12?o-3:o>4?o-2:o?2:1,a=(1<<i)-1,c=new Array(a+1).fill(e.ZERO),l=Math.floor((t.BITS-1)/i)*i,d=e.ZERO;for(let m=l;m>=0;m-=i){c.fill(e.ZERO);for(let g=0;g<r.length;g++){let y=r[g],w=Number(y>>BigInt(m)&BigInt(a));c[w]=c[w].add(n[g])}let h=e.ZERO;for(let g=c.length-1,y=e.ZERO;g>0;g--)y=y.add(c[g]),h=h.add(y);if(d=d.add(h),m!==0)for(let g=0;g<i;g++)d=d.double()}return d},rM.validateBasic=function(e){return(0,ZXe.validateField)(e.Fp),(0,QXe.validateObject)(e,{n:\"bigint\",h:\"bigint\",Gx:\"field\",Gy:\"field\"},{nBitLength:\"isSafeInteger\",nByteLength:\"isSafeInteger\"}),Object.freeze({...(0,ZXe.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})};ZXe=Mi,QXe=Xr,a9t=BigInt(0),rbe=BigInt(1),obe=new WeakMap,JXe=new WeakMap;Object.defineProperty(Dbe,\"__esModule\",{value:!0}),Dbe.twistedEdwards=function(e){let t=(function(F){let R=(0,ibe.validateBasic)(F);return dm.validateObject(F,{hash:\"function\",a:\"bigint\",d:\"bigint\",randomBytes:\"function\"},{adjustScalarBytes:\"function\",domain:\"function\",uvRatio:\"function\",mapToCurve:\"function\"}),Object.freeze({...R})})(e),{Fp:n,n:r,prehash:o,hash:i,randomBytes:a,nByteLength:c,h:l}=t,d=yee<<BigInt(8*c)-fm,m=n.create,h=(0,XXe.Field)(t.n,t.nBitLength),g=t.uvRatio||((F,R)=>{try{return{isValid:!0,value:n.sqrt(F*n.inv(R))}}catch{return{isValid:!1,value:b1}}}),y=t.adjustScalarBytes||(F=>F),w=t.domain||((F,R,O)=>{if((0,S0.abool)(\"phflag\",O),R.length||O)throw new Error(\"Contexts/pre-hash are not supported\");return F});function x(F,R){dm.aInRange(\"coordinate \"+F,R,b1,d)}function I(F){if(!(F instanceof B))throw new Error(\"ExtendedPoint expected\")}let C=(0,S0.memoized)(((F,R)=>{let{ex:O,ey:U,ez:P}=F,L=F.is0();R==null&&(R=L?s9t:n.inv(P));let W=m(O*R),q=m(U*R),H=m(P*R);if(L)return{x:b1,y:fm};if(H!==fm)throw new Error(\"invZ was invalid\");return{x:W,y:q}})),M=(0,S0.memoized)((F=>{let{a:R,d:O}=t;if(F.is0())throw new Error(\"bad point: ZERO\");let{ex:U,ey:P,ez:L,et:W}=F,q=m(U*U),H=m(P*P),k=m(L*L),V=m(k*k),oe=m(q*R);if(m(k*m(oe+H))!==m(V+m(O*m(q*H))))throw new Error(\"bad point: equation left != right (1)\");if(m(U*P)!==m(L*W))throw new Error(\"bad point: equation left != right (2)\");return!0}));class B{constructor(R,O,U,P){this.ex=R,this.ey=O,this.ez=U,this.et=P,x(\"x\",R),x(\"y\",O),x(\"z\",U),x(\"t\",P),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(R){if(R instanceof B)throw new Error(\"extended point not allowed\");let{x:O,y:U}=R||{};return x(\"x\",O),x(\"y\",U),new B(O,U,fm,m(O*U))}static normalizeZ(R){let O=n.invertBatch(R.map((U=>U.ez)));return R.map(((U,P)=>U.toAffine(O[P]))).map(B.fromAffine)}static msm(R,O){return(0,ibe.pippenger)(B,h,R,O)}_setWindowSize(R){J.setWindowSize(this,R)}assertValidity(){M(this)}equals(R){I(R);let{ex:O,ey:U,ez:P}=this,{ex:L,ey:W,ez:q}=R,H=m(O*q),k=m(L*P),V=m(U*q),oe=m(W*P);return H===k&&V===oe}is0(){return this.equals(B.ZERO)}negate(){return new B(m(-this.ex),this.ey,this.ez,m(-this.et))}double(){let{a:R}=t,{ex:O,ey:U,ez:P}=this,L=m(O*O),W=m(U*U),q=m(yee*m(P*P)),H=m(R*L),k=O+U,V=m(m(k*k)-L-W),oe=H+W,se=oe-q,ue=H-W,he=m(V*se),be=m(oe*ue),we=m(V*ue),Ie=m(se*oe);return new B(he,be,Ie,we)}add(R){I(R);let{a:O,d:U}=t,{ex:P,ey:L,ez:W,et:q}=this,{ex:H,ey:k,ez:V,et:oe}=R;if(O===BigInt(-1)){let wt=m((L-P)*(k+H)),ot=m((L+P)*(k-H)),mn=m(ot-wt);if(mn===b1)return this.double();let St=m(W*yee*oe),rn=m(q*yee*V),$t=rn+St,Kt=ot+wt,en=rn-St,Ho=m($t*mn),Fn=m(Kt*en),fn=m($t*en),Hs=m(mn*Kt);return new B(Ho,Fn,Hs,fn)}let se=m(P*H),ue=m(L*k),he=m(q*U*oe),be=m(W*V),we=m((P+L)*(H+k)-se-ue),Ie=be-he,_e=be+he,Ve=m(ue-O*se),Et=m(we*Ie),qe=m(_e*Ve),Xe=m(we*Ve),rt=m(Ie*_e);return new B(Et,qe,rt,Xe)}subtract(R){return this.add(R.negate())}wNAF(R){return J.wNAFCached(this,R,B.normalizeZ)}multiply(R){let O=R;dm.aInRange(\"scalar\",O,fm,r);let{p:U,f:P}=this.wNAF(O);return B.normalizeZ([U,P])[0]}multiplyUnsafe(R){let O=R;return dm.aInRange(\"scalar\",O,b1,r),O===b1?G:this.equals(G)||O===fm?this:this.equals(z)?this.wNAF(O).p:J.unsafeLadder(this,O)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}isTorsionFree(){return J.unsafeLadder(this,r).is0()}toAffine(R){return C(this,R)}clearCofactor(){let{h:R}=t;return R===fm?this:this.multiplyUnsafe(R)}static fromHex(R,O=!1){let{d:U,a:P}=t,L=n.BYTES;R=(0,S0.ensureBytes)(\"pointHex\",R,L),(0,S0.abool)(\"zip215\",O);let W=R.slice(),q=R[L-1];W[L-1]=-129&q;let H=dm.bytesToNumberLE(W),k=O?d:n.ORDER;dm.aInRange(\"pointHex.y\",H,b1,k);let V=m(H*H),oe=m(V-fm),se=m(U*V-P),{isValid:ue,value:he}=g(oe,se);if(!ue)throw new Error(\"Point.fromHex: invalid y coordinate\");let be=(he&fm)===fm,we=(128&q)!=0;if(!O&&he===b1&&we)throw new Error(\"Point.fromHex: x=0 and x_0=1\");return we!==be&&(he=m(-he)),B.fromAffine({x:he,y:H})}static fromPrivateKey(R){return ae(R).point}toRawBytes(){let{x:R,y:O}=this.toAffine(),U=dm.numberToBytesLE(O,n.BYTES);return U[U.length-1]|=R&fm?128:0,U}toHex(){return dm.bytesToHex(this.toRawBytes())}}B.BASE=new B(t.Gx,t.Gy,fm,m(t.Gx*t.Gy)),B.ZERO=new B(b1,fm,fm,b1);let{BASE:z,ZERO:G}=B,J=(0,ibe.wNAF)(B,8*c);function ne(F){return(0,XXe.mod)(F,r)}function ie(F){return ne(dm.bytesToNumberLE(F))}function ae(F){let R=c;F=(0,S0.ensureBytes)(\"private key\",F,R);let O=(0,S0.ensureBytes)(\"hashed private key\",i(F),2*R),U=y(O.slice(0,R)),P=O.slice(R,2*R),L=ie(U),W=z.multiply(L),q=W.toRawBytes();return{head:U,prefix:P,scalar:L,point:W,pointBytes:q}}function te(F=new Uint8Array,...R){let O=dm.concatBytes(...R);return ie(i(w(O,(0,S0.ensureBytes)(\"context\",F),!!o)))}let Z=c9t;return z._setWindowSize(8),{CURVE:t,getPublicKey:function(F){return ae(F).pointBytes},sign:function(F,R,O={}){F=(0,S0.ensureBytes)(\"message\",F),o&&(F=o(F));let{prefix:U,scalar:P,pointBytes:L}=ae(R),W=te(O.context,U,F),q=z.multiply(W).toRawBytes(),H=ne(W+te(O.context,q,L,F)*P);dm.aInRange(\"signature.s\",H,b1,r);let k=dm.concatBytes(q,dm.numberToBytesLE(H,n.BYTES));return(0,S0.ensureBytes)(\"result\",k,2*c)},verify:function(F,R,O,U=Z){let{context:P,zip215:L}=U,W=n.BYTES;F=(0,S0.ensureBytes)(\"signature\",F,2*W),R=(0,S0.ensureBytes)(\"message\",R),L!==void 0&&(0,S0.abool)(\"zip215\",L),o&&(R=o(R));let q=dm.bytesToNumberLE(F.slice(W,2*W)),H,k,V;try{H=B.fromHex(O,L),k=B.fromHex(F.slice(0,W),L),V=z.multiplyUnsafe(q)}catch{return!1}if(!L&&H.isSmallOrder())return!1;let oe=te(P,k.toRawBytes(),H.toRawBytes(),R);return k.add(H.multiplyUnsafe(oe)).subtract(V).clearCofactor().equals(B.ZERO)},ExtendedPoint:B,utils:{getExtendedPublicKey:ae,randomPrivateKey:()=>a(n.BYTES),precompute:(F=8,R=B.BASE)=>(R._setWindowSize(F),R.multiply(BigInt(3)),R)}}};ibe=rM,XXe=Mi,dm=Xr,S0=Xr,b1=BigInt(0),fm=BigInt(1),yee=BigInt(2),s9t=BigInt(8),c9t={zip215:!0},qT={};Object.defineProperty(qT,\"__esModule\",{value:!0}),qT.expand_message_xmd=Dtt,qT.expand_message_xof=Btt,qT.hash_to_field=abe,qT.isogenyMap=function(e,t){let n=t.map((r=>Array.from(r).reverse()));return(r,o)=>{let[i,a,c,l]=n.map((d=>d.reduce(((m,h)=>e.add(e.mul(m,r),h)))));return r=e.div(i,a),o=e.mul(o,e.div(c,l)),{x:r,y:o}}},qT.createHasher=function(e,t,n){if(typeof t!=\"function\")throw new Error(\"mapToCurve() must be defined\");return{hashToCurve(r,o){let i=abe(r,2,{...n,DST:n.DST,...o}),a=e.fromAffine(t(i[0])),c=e.fromAffine(t(i[1])),l=a.add(c).clearCofactor();return l.assertValidity(),l},encodeToCurve(r,o){let i=abe(r,1,{...n,DST:n.encodeDST,...o}),a=e.fromAffine(t(i[0])).clearCofactor();return a.assertValidity(),a},mapToCurve(r){if(!Array.isArray(r))throw new Error(\"mapToCurve: expected array of bigints\");for(let i of r)if(typeof i!=\"bigint\")throw new Error(`mapToCurve: expected array of bigints, got ${i} in array`);let o=e.fromAffine(t(r)).clearCofactor();return o.assertValidity(),o}}};u9t=Mi,zf=Xr,l9t=zf.bytesToNumberBE;Fbe={};Object.defineProperty(Fbe,\"__esModule\",{value:!0}),Fbe.montgomery=function(e){let t=(function(x){return(0,FT.validateObject)(x,{a:\"bigint\"},{montgomeryBits:\"isSafeInteger\",nByteLength:\"isSafeInteger\",adjustScalarBytes:\"function\",domain:\"function\",powPminus2:\"function\",Gu:\"bigint\"}),Object.freeze({...x})})(e),{P:n}=t,r=x=>(0,$Xe.mod)(x,n),o=t.montgomeryBits,i=Math.ceil(o/8),a=t.nByteLength,c=t.adjustScalarBytes||(x=>x),l=t.powPminus2||(x=>(0,$Xe.pow)(x,n-BigInt(2),n));function d(x,I,C){let M=r(x*(I-C));return[I=r(I-M),C=r(C+M)]}let m=(t.a-BigInt(2))/BigInt(4);function h(x){return(0,FT.numberToBytesLE)(r(x),i)}function g(x,I){let C=(function(z){let G=(0,FT.ensureBytes)(\"u coordinate\",z,i);return a===32&&(G[31]&=127),(0,FT.bytesToNumberLE)(G)})(I),M=(function(z){let G=(0,FT.ensureBytes)(\"scalar\",z),J=G.length;if(J!==i&&J!==a)throw new Error(`Expected ${i} or ${a} bytes, got ${J}`);return(0,FT.bytesToNumberLE)(c(G))})(x),B=(function(z,G){(0,FT.aInRange)(\"u\",z,JP,n),(0,FT.aInRange)(\"scalar\",G,JP,n);let J=G,ne=z,ie,ae=sbe,te=JP,Z=z,X=sbe,F=JP;for(let O=BigInt(o-1);O>=JP;O--){let U=J>>O&sbe;F^=U,ie=d(F,ae,Z),ae=ie[0],Z=ie[1],ie=d(F,te,X),te=ie[0],X=ie[1],F=U;let P=ae+te,L=r(P*P),W=ae-te,q=r(W*W),H=L-q,k=Z+X,V=r((Z-X)*P),oe=r(k*W),se=V+oe,ue=V-oe;Z=r(se*se),X=r(ne*r(ue*ue)),ae=r(L*q),te=r(H*(L+r(m*H)))}ie=d(F,ae,Z),ae=ie[0],Z=ie[1],ie=d(F,te,X),te=ie[0],X=ie[1];let R=l(te);return r(ae*R)})(C,M);if(B===JP)throw new Error(\"Invalid private or public key received\");return h(B)}let y=h(t.Gu);function w(x){return g(x,y)}return{scalarMult:g,scalarMultBase:w,getSharedSecret:(x,I)=>g(x,I),getPublicKey:x=>w(x),utils:{randomPrivateKey:()=>t.randomBytes(t.nByteLength)},GuBytes:y}};$Xe=Mi,FT=Xr,JP=BigInt(0),sbe=BigInt(1);(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.hash_to_ristretto255=e.hashToRistretto255=e.RistrettoPoint=e.encodeToCurve=e.hashToCurve=e.edwardsToMontgomery=e.x25519=e.ed25519ph=e.ed25519ctx=e.ed25519=e.ED25519_TORSION_SUBGROUP=void 0,e.edwardsToMontgomeryPub=J,e.edwardsToMontgomeryPriv=function(oe){let se=z.hash(oe.subarray(0,32));return z.adjustScalarBytes(se).subarray(0,32)};let t=td,n=rA,r=Dbe,o=qT,i=Mi,a=Fbe,c=Xr,l=BigInt(\"57896044618658097711785492504343953926634992332820282019728792003956564819949\"),d=BigInt(\"19681161376707505956807079304988542015446066515923890162744021073123829784752\"),m=BigInt(0),h=BigInt(1),g=BigInt(2),y=BigInt(3),w=BigInt(5),x=BigInt(8);function I(oe){let se=BigInt(10),ue=BigInt(20),he=BigInt(40),be=BigInt(80),we=l,Ie=oe*oe%we*oe%we,_e=(0,i.pow2)(Ie,g,we)*Ie%we,Ve=(0,i.pow2)(_e,h,we)*oe%we,Et=(0,i.pow2)(Ve,w,we)*Ve%we,qe=(0,i.pow2)(Et,se,we)*Et%we,Xe=(0,i.pow2)(qe,ue,we)*qe%we,rt=(0,i.pow2)(Xe,he,we)*Xe%we,wt=(0,i.pow2)(rt,be,we)*rt%we,ot=(0,i.pow2)(wt,be,we)*rt%we,mn=(0,i.pow2)(ot,se,we)*Et%we;return{pow_p_5_8:(0,i.pow2)(mn,g,we)*oe%we,b2:Ie}}function C(oe){return oe[0]&=248,oe[31]&=127,oe[31]|=64,oe}function M(oe,se){let ue=l,he=(0,i.mod)(se*se*se,ue),be=I(oe*(0,i.mod)(he*he*se,ue)).pow_p_5_8,we=(0,i.mod)(oe*he*be,ue),Ie=(0,i.mod)(se*we*we,ue),_e=we,Ve=(0,i.mod)(we*d,ue),Et=Ie===oe,qe=Ie===(0,i.mod)(-oe,ue),Xe=Ie===(0,i.mod)(-oe*d,ue);return Et&&(we=_e),(qe||Xe)&&(we=Ve),(0,i.isNegativeLE)(we,ue)&&(we=(0,i.mod)(-we,ue)),{isValid:Et||qe,value:we}}e.ED25519_TORSION_SUBGROUP=[\"0100000000000000000000000000000000000000000000000000000000000000\",\"c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a\",\"0000000000000000000000000000000000000000000000000000000000000080\",\"26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05\",\"ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f\",\"26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85\",\"0000000000000000000000000000000000000000000000000000000000000000\",\"c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa\"];let B=(0,i.Field)(l,void 0,!0),z={a:BigInt(-1),d:BigInt(\"37095705934669439343138083508754565189542113879843219016388785533085940283555\"),Fp:B,n:BigInt(\"7237005577332262213973186563042994240857116359379907606001950938285454250989\"),h:x,Gx:BigInt(\"15112221349535400772501151409588531511454012693041857206046113283949847762202\"),Gy:BigInt(\"46316835694926478169428394003475163141307993866256225615783033603165251855960\"),hash:t.sha512,randomBytes:n.randomBytes,adjustScalarBytes:C,uvRatio:M};function G(oe,se,ue){if(se.length>255)throw new Error(\"Context is too big\");return(0,n.concatBytes)((0,n.utf8ToBytes)(\"SigEd25519 no Ed25519 collisions\"),new Uint8Array([ue?1:0,se.length]),se,oe)}function J(oe){let{y:se}=e.ed25519.ExtendedPoint.fromHex(oe),ue=BigInt(1);return B.toBytes(B.create((ue+se)*B.inv(ue-se)))}e.ed25519=(0,r.twistedEdwards)(z),e.ed25519ctx=(0,r.twistedEdwards)({...z,domain:G}),e.ed25519ph=(0,r.twistedEdwards)(Object.assign({},z,{domain:G,prehash:t.sha512})),e.x25519=(0,a.montgomery)({P:l,a:BigInt(486662),montgomeryBits:255,nByteLength:32,Gu:BigInt(9),powPminus2:oe=>{let se=l,{pow_p_5_8:ue,b2:he}=I(oe);return(0,i.mod)((0,i.pow2)(ue,y,se)*he,se)},adjustScalarBytes:C,randomBytes:n.randomBytes}),e.edwardsToMontgomery=J;let ne=(B.ORDER+y)/x,ie=B.pow(g,ne),ae=B.sqrt(B.neg(B.ONE)),te=(0,i.FpSqrtEven)(B,B.neg(BigInt(486664)));function Z(oe){let{xMn:se,xMd:ue,yMn:he,yMd:be}=(function(rt){let wt=(B.ORDER-w)/x,ot=BigInt(486662),mn=B.sqr(rt);mn=B.mul(mn,g);let St=B.add(mn,B.ONE),rn=B.neg(ot),$t=B.sqr(St),Kt=B.mul($t,St),en=B.mul(mn,ot);en=B.mul(en,rn),en=B.add(en,$t),en=B.mul(en,rn);let Ho=B.sqr(Kt);$t=B.sqr(Ho),Ho=B.mul(Ho,Kt),Ho=B.mul(Ho,en),$t=B.mul($t,Ho);let Fn=B.pow($t,wt);Fn=B.mul(Fn,Ho);let fn=B.mul(Fn,ae);$t=B.sqr(Fn),$t=B.mul($t,Kt);let Hs=B.eql($t,en),Ar=B.cmov(fn,Fn,Hs),Kr=B.mul(rn,mn),Ka=B.mul(Fn,rt);Ka=B.mul(Ka,ie);let Sr=B.mul(Ka,ae),$r=B.mul(en,mn);$t=B.sqr(Ka),$t=B.mul($t,Kt);let yl=B.eql($t,$r),lr=B.cmov(Sr,Ka,yl);$t=B.sqr(Ar),$t=B.mul($t,Kt);let de=B.eql($t,en),Le=B.cmov(Kr,rn,de),it=B.cmov(lr,Ar,de),bt=B.isOdd(it);return it=B.cmov(it,B.neg(it),de!==bt),{xMn:Le,xMd:St,yMn:it,yMd:h}})(oe),we=B.mul(se,be);we=B.mul(we,te);let Ie=B.mul(ue,he),_e=B.sub(se,ue),Ve=B.add(se,ue),Et=B.mul(Ie,Ve),qe=B.eql(Et,B.ZERO);we=B.cmov(we,B.ZERO,qe),Ie=B.cmov(Ie,B.ONE,qe),_e=B.cmov(_e,B.ONE,qe),Ve=B.cmov(Ve,B.ONE,qe);let Xe=B.invertBatch([Ie,Ve]);return{x:B.mul(we,Xe[0]),y:B.mul(_e,Xe[1])}}let X=(0,o.createHasher)(e.ed25519.ExtendedPoint,(oe=>Z(oe[0])),{DST:\"edwards25519_XMD:SHA-512_ELL2_RO_\",encodeDST:\"edwards25519_XMD:SHA-512_ELL2_NU_\",p:B.ORDER,m:1,k:128,expand:\"xmd\",hash:t.sha512});function F(oe){if(!(oe instanceof V))throw new Error(\"RistrettoPoint expected\")}e.hashToCurve=X.hashToCurve,e.encodeToCurve=X.encodeToCurve;let R=d,O=BigInt(\"25063068953384623474111414158702152701244531502492656460079210482610430750235\"),U=BigInt(\"54469307008909316920995813868745141605393597292927456921205312896311721017578\"),P=BigInt(\"1159843021668779879193775521855586647937357759715417654439879720876111806838\"),L=BigInt(\"40440834346308536858101042469323190826248399146238708352240133220865137265952\"),W=oe=>M(h,oe),q=BigInt(\"0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\"),H=oe=>e.ed25519.CURVE.Fp.create((0,c.bytesToNumberLE)(oe)&q);function k(oe){let{d:se}=e.ed25519.CURVE,ue=e.ed25519.CURVE.Fp.ORDER,he=e.ed25519.CURVE.Fp.create,be=he(R*oe*oe),we=he((be+h)*P),Ie=BigInt(-1),_e=he((Ie-se*be)*he(be+se)),{isValid:Ve,value:Et}=M(we,_e),qe=he(Et*oe);(0,i.isNegativeLE)(qe,ue)||(qe=he(-qe)),Ve||(Et=qe),Ve||(Ie=be);let Xe=he(Ie*(be-h)*L-_e),rt=Et*Et,wt=he((Et+Et)*_e),ot=he(Xe*O),mn=he(h-rt),St=he(h+rt);return new e.ed25519.ExtendedPoint(he(wt*St),he(mn*ot),he(ot*St),he(wt*mn))}class V{constructor(se){this.ep=se}static fromAffine(se){return new V(e.ed25519.ExtendedPoint.fromAffine(se))}static hashToCurve(se){se=(0,c.ensureBytes)(\"ristrettoHash\",se,64);let ue=k(H(se.slice(0,32))),he=k(H(se.slice(32,64)));return new V(ue.add(he))}static fromHex(se){se=(0,c.ensureBytes)(\"ristrettoHex\",se,32);let{a:ue,d:he}=e.ed25519.CURVE,be=e.ed25519.CURVE.Fp.ORDER,we=e.ed25519.CURVE.Fp.create,Ie=\"RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint\",_e=H(se);if(!(0,c.equalBytes)((0,c.numberToBytesLE)(_e,32),se)||(0,i.isNegativeLE)(_e,be))throw new Error(Ie);let Ve=we(_e*_e),Et=we(h+ue*Ve),qe=we(h-ue*Ve),Xe=we(Et*Et),rt=we(qe*qe),wt=we(ue*he*Xe-rt),{isValid:ot,value:mn}=W(we(wt*rt)),St=we(mn*qe),rn=we(mn*St*wt),$t=we((_e+_e)*St);(0,i.isNegativeLE)($t,be)&&($t=we(-$t));let Kt=we(Et*rn),en=we($t*Kt);if(!ot||(0,i.isNegativeLE)(en,be)||Kt===m)throw new Error(Ie);return new V(new e.ed25519.ExtendedPoint($t,Kt,h,en))}toRawBytes(){let{ex:se,ey:ue,ez:he,et:be}=this.ep,we=e.ed25519.CURVE.Fp.ORDER,Ie=e.ed25519.CURVE.Fp.create,_e=Ie(Ie(he+ue)*Ie(he-ue)),Ve=Ie(se*ue),Et=Ie(Ve*Ve),{value:qe}=W(Ie(_e*Et)),Xe=Ie(qe*_e),rt=Ie(qe*Ve),wt=Ie(Xe*rt*be),ot;if((0,i.isNegativeLE)(be*wt,we)){let St=Ie(ue*R),rn=Ie(se*R);se=St,ue=rn,ot=Ie(Xe*U)}else ot=rt;(0,i.isNegativeLE)(se*wt,we)&&(ue=Ie(-ue));let mn=Ie((he-ue)*ot);return(0,i.isNegativeLE)(mn,we)&&(mn=Ie(-mn)),(0,c.numberToBytesLE)(mn,32)}toHex(){return(0,c.bytesToHex)(this.toRawBytes())}toString(){return this.toHex()}equals(se){F(se);let{ex:ue,ey:he}=this.ep,{ex:be,ey:we}=se.ep,Ie=e.ed25519.CURVE.Fp.create,_e=Ie(ue*we)===Ie(he*be),Ve=Ie(he*we)===Ie(ue*be);return _e||Ve}add(se){return F(se),new V(this.ep.add(se.ep))}subtract(se){return F(se),new V(this.ep.subtract(se.ep))}multiply(se){return new V(this.ep.multiply(se))}multiplyUnsafe(se){return new V(this.ep.multiplyUnsafe(se))}double(){return new V(this.ep.double())}negate(){return new V(this.ep.negate())}}e.RistrettoPoint=(V.BASE||(V.BASE=new V(e.ed25519.ExtendedPoint.BASE)),V.ZERO||(V.ZERO=new V(e.ed25519.ExtendedPoint.ZERO)),V),e.hashToRistretto255=(oe,se)=>{let ue=se.DST,he=typeof ue==\"string\"?(0,n.utf8ToBytes)(ue):ue,be=(0,o.expand_message_xmd)(oe,he,64,t.sha512);return V.hashToCurve(be)},e.hash_to_ristretto255=e.hashToRistretto255})(att);Ltt={},$E={};Object.defineProperty($E,\"__esModule\",{value:!0}),$E.sha224=$E.sha256=$E.SHA256=void 0;cbe=XE,vy=rA,f9t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),HT=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),zT=new Uint32Array(64),RH=class extends cbe.HashMD{constructor(){super(64,32,8,!1),this.A=0|HT[0],this.B=0|HT[1],this.C=0|HT[2],this.D=0|HT[3],this.E=0|HT[4],this.F=0|HT[5],this.G=0|HT[6],this.H=0|HT[7]}get(){let{A:t,B:n,C:r,D:o,E:i,F:a,G:c,H:l}=this;return[t,n,r,o,i,a,c,l]}set(t,n,r,o,i,a,c,l){this.A=0|t,this.B=0|n,this.C=0|r,this.D=0|o,this.E=0|i,this.F=0|a,this.G=0|c,this.H=0|l}process(t,n){for(let h=0;h<16;h++,n+=4)zT[h]=t.getUint32(n,!1);for(let h=16;h<64;h++){let g=zT[h-15],y=zT[h-2],w=(0,vy.rotr)(g,7)^(0,vy.rotr)(g,18)^g>>>3,x=(0,vy.rotr)(y,17)^(0,vy.rotr)(y,19)^y>>>10;zT[h]=x+zT[h-7]+w+zT[h-16]|0}let{A:r,B:o,C:i,D:a,E:c,F:l,G:d,H:m}=this;for(let h=0;h<64;h++){let g=m+((0,vy.rotr)(c,6)^(0,vy.rotr)(c,11)^(0,vy.rotr)(c,25))+(0,cbe.Chi)(c,l,d)+f9t[h]+zT[h]|0,y=((0,vy.rotr)(r,2)^(0,vy.rotr)(r,13)^(0,vy.rotr)(r,22))+(0,cbe.Maj)(r,o,i)|0;m=d,d=l,l=c,c=a+g|0,a=i,i=o,o=r,r=g+y|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,a=a+this.D|0,c=c+this.E|0,l=l+this.F|0,d=d+this.G|0,m=m+this.H|0,this.set(r,o,i,a,c,l,d,m)}roundClean(){zT.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};$E.SHA256=RH;Hbe=class extends RH{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}};$E.sha256=(0,vy.wrapConstructor)((()=>new RH)),$E.sha224=(0,vy.wrapConstructor)((()=>new Hbe));Pee={},N1e={};(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.hmac=e.HMAC=void 0;let t=T0,n=rA;class r extends n.Hash{constructor(i,a){super(),this.finished=!1,this.destroyed=!1,(0,t.hash)(i);let c=(0,n.toBytes)(a);if(this.iHash=i.create(),typeof this.iHash.update!=\"function\")throw new Error(\"Expected instance of class which extends utils.Hash\");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let l=this.blockLen,d=new Uint8Array(l);d.set(c.length>l?i.create().update(c).digest():c);for(let m=0;m<d.length;m++)d[m]^=54;this.iHash.update(d),this.oHash=i.create();for(let m=0;m<d.length;m++)d[m]^=106;this.oHash.update(d),d.fill(0)}update(i){return(0,t.exists)(this),this.iHash.update(i),this}digestInto(i){(0,t.exists)(this),(0,t.bytes)(i,this.outputLen),this.finished=!0,this.iHash.digestInto(i),this.oHash.update(i),this.oHash.digestInto(i),this.destroy()}digest(){let i=new Uint8Array(this.oHash.outputLen);return this.digestInto(i),i}_cloneInto(i){i||(i=Object.create(Object.getPrototypeOf(this),{}));let{oHash:a,iHash:c,finished:l,destroyed:d,blockLen:m,outputLen:h}=this;return i.finished=l,i.destroyed=d,i.blockLen=m,i.outputLen=h,i.oHash=a._cloneInto(i.oHash),i.iHash=c._cloneInto(i.iHash),i}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=r,e.hmac=(o,i,a)=>new r(o,i).update(a).digest(),e.hmac.create=(o,i)=>new r(o,i)})(N1e);P1e={};(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.DER=void 0,e.weierstrassPoints=y,e.weierstrass=function(x){let I=(function(oe){let se=(0,t.validateBasic)(oe);return r.validateObject(se,{hash:\"hash\",hmac:\"function\",randomBytes:\"function\"},{bits2int:\"function\",bits2int_modN:\"function\",lowS:\"boolean\"}),Object.freeze({lowS:!0,...se})})(x),{Fp:C,n:M}=I,B=C.BYTES+1,z=2*C.BYTES+1;function G(oe){return n.mod(oe,M)}function J(oe){return n.invert(oe,M)}let{ProjectivePoint:ne,normPrivateKeyToScalar:ie,weierstrassEquation:ae,isWithinCurveOrder:te}=y({...I,toBytes(oe,se,ue){let he=se.toAffine(),be=C.toBytes(he.x),we=r.concatBytes;return(0,o.abool)(\"isCompressed\",ue),ue?we(Uint8Array.from([se.hasEvenY()?2:3]),be):we(Uint8Array.from([4]),be,C.toBytes(he.y))},fromBytes(oe){let se=oe.length,ue=oe[0],he=oe.subarray(1);if(se!==B||ue!==2&&ue!==3){if(se===z&&ue===4)return{x:C.fromBytes(he.subarray(0,C.BYTES)),y:C.fromBytes(he.subarray(C.BYTES,2*C.BYTES))};throw new Error(`Point of length ${se} was invalid. Expected ${B} compressed bytes or ${z} uncompressed bytes`)}{let be=r.bytesToNumberBE(he);if(!r.inRange(be,d,C.ORDER))throw new Error(\"Point is not on curve\");let we=ae(be),Ie;try{Ie=C.sqrt(we)}catch(_e){let Ve=_e instanceof Error?\": \"+_e.message:\"\";throw new Error(\"Point is not on curve\"+Ve)}return(1&ue)==1!=((Ie&d)===d)&&(Ie=C.neg(Ie)),{x:be,y:Ie}}}}),Z=oe=>r.bytesToHex(r.numberToBytesBE(oe,I.nByteLength));function X(oe){return oe>M>>d}let F=(oe,se,ue)=>r.bytesToNumberBE(oe.slice(se,ue));class R{constructor(se,ue,he){this.r=se,this.s=ue,this.recovery=he,this.assertValidity()}static fromCompact(se){let ue=I.nByteLength;return se=(0,o.ensureBytes)(\"compactSignature\",se,2*ue),new R(F(se,0,ue),F(se,ue,2*ue))}static fromDER(se){let{r:ue,s:he}=e.DER.toSig((0,o.ensureBytes)(\"DER\",se));return new R(ue,he)}assertValidity(){r.aInRange(\"r\",this.r,d,M),r.aInRange(\"s\",this.s,d,M)}addRecoveryBit(se){return new R(this.r,this.s,se)}recoverPublicKey(se){let{r:ue,s:he,recovery:be}=this,we=L((0,o.ensureBytes)(\"msgHash\",se));if(be==null||![0,1,2,3].includes(be))throw new Error(\"recovery id invalid\");let Ie=be===2||be===3?ue+I.n:ue;if(Ie>=C.ORDER)throw new Error(\"recovery id 2 or 3 invalid\");let _e=(1&be)==0?\"02\":\"03\",Ve=ne.fromHex(_e+Z(Ie)),Et=J(Ie),qe=G(-we*Et),Xe=G(he*Et),rt=ne.BASE.multiplyAndAddUnsafe(Ve,qe,Xe);if(!rt)throw new Error(\"point at infinify\");return rt.assertValidity(),rt}hasHighS(){return X(this.s)}normalizeS(){return this.hasHighS()?new R(this.r,G(-this.s),this.recovery):this}toDERRawBytes(){return r.hexToBytes(this.toDERHex())}toDERHex(){return e.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return r.hexToBytes(this.toCompactHex())}toCompactHex(){return Z(this.r)+Z(this.s)}}let O={isValidPrivateKey(oe){try{return ie(oe),!0}catch{return!1}},normPrivateKeyToScalar:ie,randomPrivateKey:()=>{let oe=n.getMinHashLength(I.n);return n.mapHashToField(I.randomBytes(oe),I.n)},precompute:(oe=8,se=ne.BASE)=>(se._setWindowSize(oe),se.multiply(BigInt(3)),se)};function U(oe){let se=r.isBytes(oe),ue=typeof oe==\"string\",he=(se||ue)&&oe.length;return se?he===B||he===z:ue?he===2*B||he===2*z:oe instanceof ne}let P=I.bits2int||function(oe){let se=r.bytesToNumberBE(oe),ue=8*oe.length-I.nBitLength;return ue>0?se>>BigInt(ue):se},L=I.bits2int_modN||function(oe){return G(P(oe))},W=r.bitMask(I.nBitLength);function q(oe){return r.aInRange(`num < 2^${I.nBitLength}`,oe,l,W),r.numberToBytesBE(oe,I.nByteLength)}function H(oe,se,ue=k){if([\"recovered\",\"canonical\"].some((wt=>wt in ue)))throw new Error(\"sign() legacy options not supported\");let{hash:he,randomBytes:be}=I,{lowS:we,prehash:Ie,extraEntropy:_e}=ue;we==null&&(we=!0),oe=(0,o.ensureBytes)(\"msgHash\",oe),i(ue),Ie&&(oe=(0,o.ensureBytes)(\"prehashed msgHash\",he(oe)));let Ve=L(oe),Et=ie(se),qe=[q(Et),q(Ve)];if(_e!=null&&_e!==!1){let wt=_e===!0?be(C.BYTES):_e;qe.push((0,o.ensureBytes)(\"extraEntropy\",wt))}let Xe=r.concatBytes(...qe),rt=Ve;return{seed:Xe,k2sig:function(wt){let ot=P(wt);if(!te(ot))return;let mn=J(ot),St=ne.BASE.multiply(ot).toAffine(),rn=G(St.x);if(rn===l)return;let $t=G(mn*G(rt+rn*Et));if($t===l)return;let Kt=(St.x===rn?0:2)|Number(St.y&d),en=$t;return we&&X($t)&&(en=(function(Ho){return X(Ho)?G(-Ho):Ho})($t),Kt^=1),new R(rn,en,Kt)}}}let k={lowS:I.lowS,prehash:!1},V={lowS:I.lowS,prehash:!1};return ne.BASE._setWindowSize(8),{CURVE:I,getPublicKey:function(oe,se=!0){return ne.fromPrivateKey(oe).toRawBytes(se)},getSharedSecret:function(oe,se,ue=!0){if(U(oe))throw new Error(\"first arg must be private key\");if(!U(se))throw new Error(\"second arg must be public key\");return ne.fromHex(se).multiply(ie(oe)).toRawBytes(ue)},sign:function(oe,se,ue=k){let{seed:he,k2sig:be}=H(oe,se,ue),we=I;return r.createHmacDrbg(we.hash.outputLen,we.nByteLength,we.hmac)(he,be)},verify:function(oe,se,ue,he=V){let be=oe;if(se=(0,o.ensureBytes)(\"msgHash\",se),ue=(0,o.ensureBytes)(\"publicKey\",ue),\"strict\"in he)throw new Error(\"options.strict was renamed to lowS\");i(he);let{lowS:we,prehash:Ie}=he,_e,Ve;try{if(typeof be==\"string\"||r.isBytes(be))try{_e=R.fromDER(be)}catch(rn){if(!(rn instanceof e.DER.Err))throw rn;_e=R.fromCompact(be)}else{if(typeof be!=\"object\"||typeof be.r!=\"bigint\"||typeof be.s!=\"bigint\")throw new Error(\"PARSE\");{let{r:rn,s:$t}=be;_e=new R(rn,$t)}}Ve=ne.fromHex(ue)}catch(rn){if(rn.message===\"PARSE\")throw new Error(\"signature must be Signature instance, Uint8Array or hex string\");return!1}if(we&&_e.hasHighS())return!1;Ie&&(se=I.hash(se));let{r:Et,s:qe}=_e,Xe=L(se),rt=J(qe),wt=G(Xe*rt),ot=G(Et*rt),mn=ne.BASE.multiplyAndAddUnsafe(Ve,wt,ot)?.toAffine();return mn?G(mn.x)===Et:!1},ProjectivePoint:ne,Signature:R,utils:O}},e.SWUFpSqrtRatio=w,e.mapToCurveSimpleSWU=function(x,I){if(n.validateField(x),!x.isValid(I.A)||!x.isValid(I.B)||!x.isValid(I.Z))throw new Error(\"mapToCurveSimpleSWU: invalid opts\");let C=w(x,I.Z);if(!x.isOdd)throw new Error(\"Fp.isOdd is not implemented!\");return M=>{let B,z,G,J,ne,ie,ae,te;B=x.sqr(M),B=x.mul(B,I.Z),z=x.sqr(B),z=x.add(z,B),G=x.add(z,x.ONE),G=x.mul(G,I.B),J=x.cmov(I.Z,x.neg(z),!x.eql(z,x.ZERO)),J=x.mul(J,I.A),z=x.sqr(G),ie=x.sqr(J),ne=x.mul(ie,I.A),z=x.add(z,ne),z=x.mul(z,G),ie=x.mul(ie,J),ne=x.mul(ie,I.B),z=x.add(z,ne),ae=x.mul(B,G);let{isValid:Z,value:X}=C(z,ie);te=x.mul(B,M),te=x.mul(te,X),ae=x.cmov(ae,G,Z),te=x.cmov(te,X,Z);let F=x.isOdd(M)===x.isOdd(te);return te=x.cmov(x.neg(te),te,F),ae=x.div(ae,J),{x:ae,y:te}}};let t=rM,n=Mi,r=Xr,o=Xr;function i(x){x.lowS!==void 0&&(0,o.abool)(\"lowS\",x.lowS),x.prehash!==void 0&&(0,o.abool)(\"prehash\",x.prehash)}let{bytesToNumberBE:a,hexToBytes:c}=r;e.DER={Err:class extends Error{constructor(x=\"\"){super(x)}},_tlv:{encode:(x,I)=>{let{Err:C}=e.DER;if(x<0||x>256)throw new C(\"tlv.encode: wrong tag\");if(1&I.length)throw new C(\"tlv.encode: unpadded data\");let M=I.length/2,B=r.numberToHexUnpadded(M);if(B.length/2&128)throw new C(\"tlv.encode: long form length too big\");let z=M>127?r.numberToHexUnpadded(B.length/2|128):\"\";return`${r.numberToHexUnpadded(x)}${z}${B}${I}`},decode(x,I){let{Err:C}=e.DER,M=0;if(x<0||x>256)throw new C(\"tlv.encode: wrong tag\");if(I.length<2||I[M++]!==x)throw new C(\"tlv.decode: wrong tlv\");let B=I[M++],z=0;if(128&B){let J=127&B;if(!J)throw new C(\"tlv.decode(long): indefinite length not supported\");if(J>4)throw new C(\"tlv.decode(long): byte length is too big\");let ne=I.subarray(M,M+J);if(ne.length!==J)throw new C(\"tlv.decode: length bytes not complete\");if(ne[0]===0)throw new C(\"tlv.decode(long): zero leftmost byte\");for(let ie of ne)z=z<<8|ie;if(M+=J,z<128)throw new C(\"tlv.decode(long): not minimal encoding\")}else z=B;let G=I.subarray(M,M+z);if(G.length!==z)throw new C(\"tlv.decode: wrong value length\");return{v:G,l:I.subarray(M+z)}}},_int:{encode(x){let{Err:I}=e.DER;if(x<l)throw new I(\"integer: negative integers are not allowed\");let C=r.numberToHexUnpadded(x);if(8&Number.parseInt(C[0],16)&&(C=\"00\"+C),1&C.length)throw new I(\"unexpected assertion\");return C},decode(x){let{Err:I}=e.DER;if(128&x[0])throw new I(\"Invalid signature integer: negative\");if(x[0]===0&&!(128&x[1]))throw new I(\"Invalid signature integer: unnecessary leading zero\");return a(x)}},toSig(x){let{Err:I,_int:C,_tlv:M}=e.DER,B=typeof x==\"string\"?c(x):x;r.abytes(B);let{v:z,l:G}=M.decode(48,B);if(G.length)throw new I(\"Invalid signature: left bytes after parsing\");let{v:J,l:ne}=M.decode(2,z),{v:ie,l:ae}=M.decode(2,ne);if(ae.length)throw new I(\"Invalid signature: left bytes after parsing\");return{r:C.decode(J),s:C.decode(ie)}},hexFromSig(x){let{_tlv:I,_int:C}=e.DER,M=`${I.encode(2,C.encode(x.r))}${I.encode(2,C.encode(x.s))}`;return I.encode(48,M)}};let l=BigInt(0),d=BigInt(1),m=BigInt(2),h=BigInt(3),g=BigInt(4);function y(x){let I=(function(F){let R=(0,t.validateBasic)(F);r.validateObject(R,{a:\"field\",b:\"field\"},{allowedPrivateKeyLengths:\"array\",wrapPrivateKey:\"boolean\",isTorsionFree:\"function\",clearCofactor:\"function\",allowInfinityPoint:\"boolean\",fromBytes:\"function\",toBytes:\"function\"});let{endo:O,Fp:U,a:P}=R;if(O){if(!U.eql(P,U.ZERO))throw new Error(\"Endomorphism can only be defined for Koblitz curves that have a=0\");if(typeof O!=\"object\"||typeof O.beta!=\"bigint\"||typeof O.splitScalar!=\"function\")throw new Error(\"Expected endomorphism with beta: bigint and splitScalar: function\")}return Object.freeze({...R})})(x),{Fp:C}=I,M=n.Field(I.n,I.nBitLength),B=I.toBytes||((F,R,O)=>{let U=R.toAffine();return r.concatBytes(Uint8Array.from([4]),C.toBytes(U.x),C.toBytes(U.y))}),z=I.fromBytes||(F=>{let R=F.subarray(1);return{x:C.fromBytes(R.subarray(0,C.BYTES)),y:C.fromBytes(R.subarray(C.BYTES,2*C.BYTES))}});function G(F){let{a:R,b:O}=I,U=C.sqr(F),P=C.mul(U,F);return C.add(C.add(P,C.mul(F,R)),O)}if(!C.eql(C.sqr(I.Gy),G(I.Gx)))throw new Error(\"bad generator point: equation left != right\");function J(F){let{allowedPrivateKeyLengths:R,nByteLength:O,wrapPrivateKey:U,n:P}=I;if(R&&typeof F!=\"bigint\"){if(r.isBytes(F)&&(F=r.bytesToHex(F)),typeof F!=\"string\"||!R.includes(F.length))throw new Error(\"Invalid key\");F=F.padStart(2*O,\"0\")}let L;try{L=typeof F==\"bigint\"?F:r.bytesToNumberBE((0,o.ensureBytes)(\"private key\",F,O))}catch{throw new Error(`private key must be ${O} bytes, hex or bigint, not ${typeof F}`)}return U&&(L=n.mod(L,P)),r.aInRange(\"private key\",L,d,P),L}function ne(F){if(!(F instanceof te))throw new Error(\"ProjectivePoint expected\")}let ie=(0,o.memoized)(((F,R)=>{let{px:O,py:U,pz:P}=F;if(C.eql(P,C.ONE))return{x:O,y:U};let L=F.is0();R==null&&(R=L?C.ONE:C.inv(P));let W=C.mul(O,R),q=C.mul(U,R),H=C.mul(P,R);if(L)return{x:C.ZERO,y:C.ZERO};if(!C.eql(H,C.ONE))throw new Error(\"invZ was invalid\");return{x:W,y:q}})),ae=(0,o.memoized)((F=>{if(F.is0()){if(I.allowInfinityPoint&&!C.is0(F.py))return;throw new Error(\"bad point: ZERO\")}let{x:R,y:O}=F.toAffine();if(!C.isValid(R)||!C.isValid(O))throw new Error(\"bad point: x or y not FE\");let U=C.sqr(O),P=G(R);if(!C.eql(U,P))throw new Error(\"bad point: equation left != right\");if(!F.isTorsionFree())throw new Error(\"bad point: not in prime-order subgroup\");return!0}));class te{constructor(R,O,U){if(this.px=R,this.py=O,this.pz=U,R==null||!C.isValid(R))throw new Error(\"x required\");if(O==null||!C.isValid(O))throw new Error(\"y required\");if(U==null||!C.isValid(U))throw new Error(\"z required\");Object.freeze(this)}static fromAffine(R){let{x:O,y:U}=R||{};if(!R||!C.isValid(O)||!C.isValid(U))throw new Error(\"invalid affine point\");if(R instanceof te)throw new Error(\"projective point not allowed\");let P=L=>C.eql(L,C.ZERO);return P(O)&&P(U)?te.ZERO:new te(O,U,C.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(R){let O=C.invertBatch(R.map((U=>U.pz)));return R.map(((U,P)=>U.toAffine(O[P]))).map(te.fromAffine)}static fromHex(R){let O=te.fromAffine(z((0,o.ensureBytes)(\"pointHex\",R)));return O.assertValidity(),O}static fromPrivateKey(R){return te.BASE.multiply(J(R))}static msm(R,O){return(0,t.pippenger)(te,M,R,O)}_setWindowSize(R){X.setWindowSize(this,R)}assertValidity(){ae(this)}hasEvenY(){let{y:R}=this.toAffine();if(C.isOdd)return!C.isOdd(R);throw new Error(\"Field doesn\\'t support isOdd\")}equals(R){ne(R);let{px:O,py:U,pz:P}=this,{px:L,py:W,pz:q}=R,H=C.eql(C.mul(O,q),C.mul(L,P)),k=C.eql(C.mul(U,q),C.mul(W,P));return H&&k}negate(){return new te(this.px,C.neg(this.py),this.pz)}double(){let{a:R,b:O}=I,U=C.mul(O,h),{px:P,py:L,pz:W}=this,q=C.ZERO,H=C.ZERO,k=C.ZERO,V=C.mul(P,P),oe=C.mul(L,L),se=C.mul(W,W),ue=C.mul(P,L);return ue=C.add(ue,ue),k=C.mul(P,W),k=C.add(k,k),q=C.mul(R,k),H=C.mul(U,se),H=C.add(q,H),q=C.sub(oe,H),H=C.add(oe,H),H=C.mul(q,H),q=C.mul(ue,q),k=C.mul(U,k),se=C.mul(R,se),ue=C.sub(V,se),ue=C.mul(R,ue),ue=C.add(ue,k),k=C.add(V,V),V=C.add(k,V),V=C.add(V,se),V=C.mul(V,ue),H=C.add(H,V),se=C.mul(L,W),se=C.add(se,se),V=C.mul(se,ue),q=C.sub(q,V),k=C.mul(se,oe),k=C.add(k,k),k=C.add(k,k),new te(q,H,k)}add(R){ne(R);let{px:O,py:U,pz:P}=this,{px:L,py:W,pz:q}=R,H=C.ZERO,k=C.ZERO,V=C.ZERO,oe=I.a,se=C.mul(I.b,h),ue=C.mul(O,L),he=C.mul(U,W),be=C.mul(P,q),we=C.add(O,U),Ie=C.add(L,W);we=C.mul(we,Ie),Ie=C.add(ue,he),we=C.sub(we,Ie),Ie=C.add(O,P);let _e=C.add(L,q);return Ie=C.mul(Ie,_e),_e=C.add(ue,be),Ie=C.sub(Ie,_e),_e=C.add(U,P),H=C.add(W,q),_e=C.mul(_e,H),H=C.add(he,be),_e=C.sub(_e,H),V=C.mul(oe,Ie),H=C.mul(se,be),V=C.add(H,V),H=C.sub(he,V),V=C.add(he,V),k=C.mul(H,V),he=C.add(ue,ue),he=C.add(he,ue),be=C.mul(oe,be),Ie=C.mul(se,Ie),he=C.add(he,be),be=C.sub(ue,be),be=C.mul(oe,be),Ie=C.add(Ie,be),ue=C.mul(he,Ie),k=C.add(k,ue),ue=C.mul(_e,Ie),H=C.mul(we,H),H=C.sub(H,ue),ue=C.mul(we,he),V=C.mul(_e,V),V=C.add(V,ue),new te(H,k,V)}subtract(R){return this.add(R.negate())}is0(){return this.equals(te.ZERO)}wNAF(R){return X.wNAFCached(this,R,te.normalizeZ)}multiplyUnsafe(R){r.aInRange(\"scalar\",R,l,I.n);let O=te.ZERO;if(R===l)return O;if(R===d)return this;let{endo:U}=I;if(!U)return X.unsafeLadder(this,R);let{k1neg:P,k1:L,k2neg:W,k2:q}=U.splitScalar(R),H=O,k=O,V=this;for(;L>l||q>l;)L&d&&(H=H.add(V)),q&d&&(k=k.add(V)),V=V.double(),L>>=d,q>>=d;return P&&(H=H.negate()),W&&(k=k.negate()),k=new te(C.mul(k.px,U.beta),k.py,k.pz),H.add(k)}multiply(R){let{endo:O,n:U}=I,P,L;if(r.aInRange(\"scalar\",R,d,U),O){let{k1neg:W,k1:q,k2neg:H,k2:k}=O.splitScalar(R),{p:V,f:oe}=this.wNAF(q),{p:se,f:ue}=this.wNAF(k);V=X.constTimeNegate(W,V),se=X.constTimeNegate(H,se),se=new te(C.mul(se.px,O.beta),se.py,se.pz),P=V.add(se),L=oe.add(ue)}else{let{p:W,f:q}=this.wNAF(R);P=W,L=q}return te.normalizeZ([P,L])[0]}multiplyAndAddUnsafe(R,O,U){let P=te.BASE,L=(q,H)=>H!==l&&H!==d&&q.equals(P)?q.multiply(H):q.multiplyUnsafe(H),W=L(this,O).add(L(R,U));return W.is0()?void 0:W}toAffine(R){return ie(this,R)}isTorsionFree(){let{h:R,isTorsionFree:O}=I;if(R===d)return!0;if(O)return O(te,this);throw new Error(\"isTorsionFree() has not been declared for the elliptic curve\")}clearCofactor(){let{h:R,clearCofactor:O}=I;return R===d?this:O?O(te,this):this.multiplyUnsafe(I.h)}toRawBytes(R=!0){return(0,o.abool)(\"isCompressed\",R),this.assertValidity(),B(te,this,R)}toHex(R=!0){return(0,o.abool)(\"isCompressed\",R),r.bytesToHex(this.toRawBytes(R))}}te.BASE=new te(I.Gx,I.Gy,C.ONE),te.ZERO=new te(C.ZERO,C.ONE,C.ZERO);let Z=I.nBitLength,X=(0,t.wNAF)(te,I.endo?Math.ceil(Z/2):Z);return{CURVE:I,ProjectivePoint:te,normPrivateKeyToScalar:J,weierstrassEquation:G,isWithinCurveOrder:function(F){return r.inRange(F,d,I.n)}}}function w(x,I){let C=x.ORDER,M=l;for(let F=C-d;F%m===l;F/=m)M+=d;let B=M,z=m<<B-d-d,G=z*m,J=(C-d)/G,ne=(J-d)/m,ie=G-d,ae=z,te=x.pow(I,J),Z=x.pow(I,(J+d)/m),X=(F,R)=>{let O=te,U=x.pow(R,ie),P=x.sqr(U);P=x.mul(P,R);let L=x.mul(F,P);L=x.pow(L,ne),L=x.mul(L,U),U=x.mul(L,R),P=x.mul(L,F);let W=x.mul(P,U);L=x.pow(W,ae);let q=x.eql(L,x.ONE);U=x.mul(P,Z),L=x.mul(W,O),P=x.cmov(U,P,q),W=x.cmov(L,W,q);for(let H=B;H>d;H--){let k=H-m;k=m<<k-d;let V=x.pow(W,k),oe=x.eql(V,x.ONE);U=x.mul(P,O),O=x.mul(O,O),V=x.mul(W,O),P=x.cmov(U,P,oe),W=x.cmov(V,W,oe)}return{isValid:q,value:P}};if(x.ORDER%g===h){let F=(x.ORDER-h)/g,R=x.sqrt(x.neg(I));X=(O,U)=>{let P=x.sqr(U),L=x.mul(O,U);P=x.mul(P,L);let W=x.pow(P,F);W=x.mul(W,L);let q=x.mul(W,R),H=x.mul(x.sqr(W),U),k=x.eql(H,O);return{isValid:k,value:x.cmov(q,W,k)}}}return X}})(P1e),Object.defineProperty(Pee,\"__esModule\",{value:!0}),Pee.getHash=t$e,Pee.createCurve=function(e,t){let n=r=>(0,h9t.weierstrass)({...e,...t$e(r)});return Object.freeze({...n(t),create:n})};p9t=N1e,e$e=rA,h9t=P1e;(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.encodeToCurve=e.hashToCurve=e.schnorr=e.secp256k1=void 0;let t=$E,n=rA,r=Pee,o=qT,i=Mi,a=Xr,c=P1e,l=BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f\"),d=BigInt(\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\"),m=BigInt(1),h=BigInt(2),g=(L,W)=>(L+W/h)/W;function y(L){let W=l,q=BigInt(3),H=BigInt(6),k=BigInt(11),V=BigInt(22),oe=BigInt(23),se=BigInt(44),ue=BigInt(88),he=L*L*L%W,be=he*he*L%W,we=(0,i.pow2)(be,q,W)*be%W,Ie=(0,i.pow2)(we,q,W)*be%W,_e=(0,i.pow2)(Ie,h,W)*he%W,Ve=(0,i.pow2)(_e,k,W)*_e%W,Et=(0,i.pow2)(Ve,V,W)*Ve%W,qe=(0,i.pow2)(Et,se,W)*Et%W,Xe=(0,i.pow2)(qe,ue,W)*qe%W,rt=(0,i.pow2)(Xe,se,W)*Et%W,wt=(0,i.pow2)(rt,q,W)*be%W,ot=(0,i.pow2)(wt,oe,W)*Ve%W,mn=(0,i.pow2)(ot,H,W)*he%W,St=(0,i.pow2)(mn,h,W);if(!w.eql(w.sqr(St),L))throw new Error(\"Cannot find square root\");return St}let w=(0,i.Field)(l,void 0,void 0,{sqrt:y});e.secp256k1=(0,r.createCurve)({a:BigInt(0),b:BigInt(7),Fp:w,n:d,Gx:BigInt(\"55066263022277343669578718895168534326250603453777594175500187360389116729240\"),Gy:BigInt(\"32670510020758816978083085130507043184471273380659243275938904335757337482424\"),h:BigInt(1),lowS:!0,endo:{beta:BigInt(\"0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\"),splitScalar:L=>{let W=d,q=BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\"),H=-m*BigInt(\"0xe4437ed6010e88286f547fa90abfe4c3\"),k=BigInt(\"0x114ca50f7a8e2f3f657c1108d9d44cfd8\"),V=q,oe=BigInt(\"0x100000000000000000000000000000000\"),se=g(V*L,W),ue=g(-H*L,W),he=(0,i.mod)(L-se*q-ue*k,W),be=(0,i.mod)(-se*H-ue*V,W),we=he>oe,Ie=be>oe;if(we&&(he=W-he),Ie&&(be=W-be),he>oe||be>oe)throw new Error(\"splitScalar: Endomorphism failed, k=\"+L);return{k1neg:we,k1:he,k2neg:Ie,k2:be}}}},t.sha256);let x=BigInt(0),I={};function C(L,...W){let q=I[L];if(q===void 0){let H=(0,t.sha256)(Uint8Array.from(L,(k=>k.charCodeAt(0))));q=(0,a.concatBytes)(H,H),I[L]=q}return(0,t.sha256)((0,a.concatBytes)(q,...W))}let M=L=>L.toRawBytes(!0).slice(1),B=L=>(0,a.numberToBytesBE)(L,32),z=L=>(0,i.mod)(L,l),G=L=>(0,i.mod)(L,d),J=e.secp256k1.ProjectivePoint,ne=(L,W,q)=>J.BASE.multiplyAndAddUnsafe(L,W,q);function ie(L){let W=e.secp256k1.utils.normPrivateKeyToScalar(L),q=J.fromPrivateKey(W);return{scalar:q.hasEvenY()?W:G(-W),bytes:M(q)}}function ae(L){(0,a.aInRange)(\"x\",L,m,l);let W=z(L*L),q=y(z(W*L+BigInt(7)));q%h!==x&&(q=z(-q));let H=new J(L,q,m);return H.assertValidity(),H}let te=a.bytesToNumberBE;function Z(...L){return G(te(C(\"BIP0340/challenge\",...L)))}function X(L){return ie(L).bytes}function F(L,W,q=(0,n.randomBytes)(32)){let H=(0,a.ensureBytes)(\"message\",L),{bytes:k,scalar:V}=ie(W),oe=(0,a.ensureBytes)(\"auxRand\",q,32),se=B(V^te(C(\"BIP0340/aux\",oe))),ue=C(\"BIP0340/nonce\",se,k,H),he=G(te(ue));if(he===x)throw new Error(\"sign failed: k is zero\");let{bytes:be,scalar:we}=ie(he),Ie=Z(be,k,H),_e=new Uint8Array(64);if(_e.set(be,0),_e.set(B(G(we+Ie*V)),32),!R(_e,H,k))throw new Error(\"sign: Invalid signature produced\");return _e}function R(L,W,q){let H=(0,a.ensureBytes)(\"signature\",L,64),k=(0,a.ensureBytes)(\"message\",W),V=(0,a.ensureBytes)(\"publicKey\",q,32);try{let oe=ae(te(V)),se=te(H.subarray(0,32));if(!(0,a.inRange)(se,m,l))return!1;let ue=te(H.subarray(32,64));if(!(0,a.inRange)(ue,m,d))return!1;let he=Z(B(se),M(oe),k),be=ne(oe,ue,G(-he));return!(!be||!be.hasEvenY()||be.toAffine().x!==se)}catch{return!1}}e.schnorr={getPublicKey:X,sign:F,verify:R,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:ae,pointToBytes:M,numberToBytesBE:a.numberToBytesBE,bytesToNumberBE:a.bytesToNumberBE,taggedHash:C,mod:i.mod}};let O=(0,o.isogenyMap)(w,[[\"0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7\",\"0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581\",\"0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262\",\"0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c\"],[\"0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b\",\"0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14\",\"0x0000000000000000000000000000000000000000000000000000000000000001\"],[\"0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c\",\"0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3\",\"0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931\",\"0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84\"],[\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b\",\"0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573\",\"0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f\",\"0x0000000000000000000000000000000000000000000000000000000000000001\"]].map((L=>L.map((W=>BigInt(W)))))),U=(0,c.mapToCurveSimpleSWU)(w,{A:BigInt(\"0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533\"),B:BigInt(\"1771\"),Z:w.create(BigInt(\"-11\"))}),P=(0,o.createHasher)(e.secp256k1.ProjectivePoint,(L=>{let{x:W,y:q}=U(w.create(L[0]));return O(W,q)}),{DST:\"secp256k1_XMD:SHA-256_SSWU_RO_\",encodeDST:\"secp256k1_XMD:SHA-256_SSWU_NU_\",p:w.ORDER,m:1,k:128,expand:\"xmd\",hash:t.sha256});e.hashToCurve=P.hashToCurve,e.encodeToCurve=P.encodeToCurve})(Ltt);zbe={};(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.decodeHex=e.remove0x=void 0;var t=I0;e.remove0x=function(n){return n.startsWith(\"0x\")||n.startsWith(\"0X\")?n.slice(2):n},e.decodeHex=function(n){return(0,t.hexToBytes)((0,e.remove0x)(n))}})(zbe),(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.hexToPublicKey=e.convertPublicKeyFormat=e.getSharedPoint=e.getPublicKey=e.isValidPrivateKey=e.getValidSecret=void 0;var t=I1e,n=att,r=Ltt,o=TH,i=ed,a=zbe;e.getValidSecret=function(){var m;do m=(0,t.randomBytes)(i.SECRET_KEY_LENGTH);while(!(0,e.isValidPrivateKey)(m));return m},e.isValidPrivateKey=function(m){return c((0,o.ellipticCurve)(),(function(h){return h.utils.isValidPrivateKey(m)}),(function(){return!0}),(function(){return!0}))},e.getPublicKey=function(m){return c((0,o.ellipticCurve)(),(function(h){return h.getPublicKey(m)}),(function(h){return h.getPublicKey(m)}),(function(h){return h.getPublicKey(m)}))},e.getSharedPoint=function(m,h,g){return c((0,o.ellipticCurve)(),(function(y){return y.getSharedSecret(m,h,g)}),(function(y){return y.getSharedSecret(m,h)}),(function(y){return d(y,m,h)}))},e.convertPublicKeyFormat=function(m,h){return c((0,o.ellipticCurve)(),(function(g){return g.getSharedSecret(BigInt(1),m,h)}),(function(){return m}),(function(){return m}))};function c(m,h,g,y){if(m===\"secp256k1\")return h(r.secp256k1);if(m===\"x25519\")return g(n.x25519);if(m===\"ed25519\")return y(n.ed25519);throw new Error(\"Not implemented\")}e.hexToPublicKey=function(m){var h=(0,a.decodeHex)(m);return c((0,o.ellipticCurve)(),(function(){return l(h)}),(function(){return h}),(function(){return h}))};var l=function(m){if(m.length===i.ETH_PUBLIC_KEY_SIZE){var h=new Uint8Array(1+m.length);return h.set([4]),h.set(m,1),h}return m},d=function(m,h,g){var y=m.utils.getExtendedPublicKey(h).scalar;return m.ExtendedPoint.fromHex(g).multiply(y).toRawBytes()}})(itt);Utt={},oM={};Object.defineProperty(oM,\"__esModule\",{value:!0}),oM.hkdf=void 0,oM.extract=Htt,oM.expand=ztt;jbe=T0,n$e=rA,Ftt=N1e;ube=new Uint8Array([0]),r$e=new Uint8Array;oM.hkdf=(e,t,n,r,o)=>ztt(e,Htt(e,t,n),r,o),(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.getSharedKey=e.deriveKey=void 0;var t=I0,n=oM,r=$E;e.deriveKey=function(o,i,a){return(0,n.hkdf)(r.sha256,o,i,a,32)},e.getSharedKey=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return(0,e.deriveKey)(t.concatBytes.apply(void 0,o))}})(Utt);o$e={},lM={},Ic={},JR={};Object.defineProperty(JR,\"__esModule\",{value:!0}),JR.polyval=JR.ghash=void 0,JR._toGHASHKey=jtt;XR=jf,oh=I0,KE=16,M1e=new Uint8Array(16),qw=(0,oh.u32)(M1e),Ey=e=>(e>>>0&255)<<24|(e>>>8&255)<<16|(e>>>16&255)<<8|e>>>24&255|0;ite=class{constructor(t,n){this.blockLen=KE,this.outputLen=KE,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,t=(0,oh.toBytes)(t),(0,XR.bytes)(t,16);let r=(0,oh.createView)(t),o=r.getUint32(0,!1),i=r.getUint32(4,!1),a=r.getUint32(8,!1),c=r.getUint32(12,!1),l=[];for(let C=0;C<128;C++)l.push({s0:Ey(o),s1:Ey(i),s2:Ey(a),s3:Ey(c)}),{s0:o,s1:i,s2:a,s3:c}={s3:(h=a)<<31|(g=c)>>>1,s2:(m=i)<<31|h>>>1,s1:(d=o)<<31|m>>>1,s0:d>>>1^225<<24&-(1&g)};var d,m,h,g;let y=(C=>C>65536?8:C>1024?4:2)(n||1024);if(![1,2,4,8].includes(y))throw new Error(`ghash: wrong window size=${y}, should be 2, 4 or 8`);this.W=y;let w=128/y,x=this.windowSize=2**y,I=[];for(let C=0;C<w;C++)for(let M=0;M<x;M++){let B=0,z=0,G=0,J=0;for(let ne=0;ne<y;ne++){if(!(M>>>y-ne-1&1))continue;let{s0:ie,s1:ae,s2:te,s3:Z}=l[y*C+ne];B^=ie,z^=ae,G^=te,J^=Z}I.push({s0:B,s1:z,s2:G,s3:J})}this.t=I}_updateBlock(t,n,r,o){t^=this.s0,n^=this.s1,r^=this.s2,o^=this.s3;let{W:i,t:a,windowSize:c}=this,l=0,d=0,m=0,h=0,g=(1<<i)-1,y=0;for(let w of[t,n,r,o])for(let x=0;x<4;x++){let I=w>>>8*x&255;for(let C=8/i-1;C>=0;C--){let M=I>>>i*C&g,{s0:B,s1:z,s2:G,s3:J}=a[y*c+M];l^=B,d^=z,m^=G,h^=J,y+=1}}this.s0=l,this.s1=d,this.s2=m,this.s3=h}update(t){t=(0,oh.toBytes)(t),(0,XR.exists)(this);let n=(0,oh.u32)(t),r=Math.floor(t.length/KE),o=t.length%KE;for(let i=0;i<r;i++)this._updateBlock(n[4*i+0],n[4*i+1],n[4*i+2],n[4*i+3]);return o&&(M1e.set(t.subarray(r*KE)),this._updateBlock(qw[0],qw[1],qw[2],qw[3]),(0,oh.clean)(qw)),this}destroy(){let{t}=this;for(let n of t)n.s0=0,n.s1=0,n.s2=0,n.s3=0}digestInto(t){(0,XR.exists)(this),(0,XR.output)(t,this),this.finished=!0;let{s0:n,s1:r,s2:o,s3:i}=this,a=(0,oh.u32)(t);return a[0]=n,a[1]=r,a[2]=o,a[3]=i,t}digest(){let t=new Uint8Array(KE);return this.digestInto(t),this.destroy(),t}},Wbe=class extends ite{constructor(t,n){t=(0,oh.toBytes)(t);let r=jtt((0,oh.copyBytes)(t));super(r,n),(0,oh.clean)(r)}update(t){t=(0,oh.toBytes)(t),(0,XR.exists)(this);let n=(0,oh.u32)(t),r=t.length%KE,o=Math.floor(t.length/KE);for(let i=0;i<o;i++)this._updateBlock(Ey(n[4*i+3]),Ey(n[4*i+2]),Ey(n[4*i+1]),Ey(n[4*i+0]));return r&&(M1e.set(t.subarray(o*KE)),this._updateBlock(Ey(qw[3]),Ey(qw[2]),Ey(qw[1]),Ey(qw[0])),(0,oh.clean)(qw)),this}digestInto(t){(0,XR.exists)(this),(0,XR.output)(t,this),this.finished=!0;let{s0:n,s1:r,s2:o,s3:i}=this,a=(0,oh.u32)(t);return a[0]=n,a[1]=r,a[2]=o,a[3]=i,t.reverse()}};JR.ghash=i$e(((e,t)=>new ite(e,t))),JR.polyval=i$e(((e,t)=>new Wbe(e,t))),Object.defineProperty(Ic,\"__esModule\",{value:!0}),Ic.unsafe=Ic.aeskwp=Ic.aeskw=Ic.siv=Ic.gcm=Ic.cfb=Ic.cbc=Ic.ecb=Ic.ctr=void 0,Ic.expandKeyLE=x1,Ic.expandKeyDecLE=IH;Zo=jf,Vbe=JR,Tt=I0,pm=16,bee=new Uint8Array(pm),m9t=283;Gbe=(()=>{let e=new Uint8Array(256);for(let n=0,r=1;n<256;n++,r^=D1e(r))e[n]=r;let t=new Uint8Array(256);t[0]=99;for(let n=0;n<255;n++){let r=e[255-n];r|=r<<8,t[e[n]]=255&(r^r>>4^r>>5^r>>6^r>>7^99)}return(0,Tt.clean)(e),t})(),g9t=Gbe.map(((e,t)=>Gbe.indexOf(t))),y9t=e=>e<<24|e>>>8,lbe=e=>e<<8|e>>>24,ate=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;B1e=Wtt(Gbe,(e=>iM(e,3)<<24|e<<16|e<<8|iM(e,2))),Vtt=Wtt(g9t,(e=>iM(e,11)<<24|iM(e,13)<<16|iM(e,9)<<8|iM(e,14))),b9t=(()=>{let e=new Uint8Array(16);for(let t=0,n=1;t<16;t++,n=D1e(n))e[t]=n;return e})();Ic.ctr=(0,Tt.wrapCipher)({blockSize:16,nonceLength:16},(function(e,t){function n(r,o){if((0,Zo.bytes)(r),o!==void 0&&((0,Zo.bytes)(o),!(0,Tt.isAligned32)(o)))throw new Error(\"unaligned destination\");let i=x1(e),a=(0,Tt.copyBytes)(t),c=[i,a];(0,Tt.isAligned32)(r)||c.push(r=(0,Tt.copyBytes)(r));let l=Gtt(i,a,r,o);return(0,Tt.clean)(...c),l}return(0,Zo.bytes)(e),(0,Zo.bytes)(t,pm),{encrypt:(r,o)=>n(r,o),decrypt:(r,o)=>n(r,o)}})),Ic.ecb=(0,Tt.wrapCipher)({blockSize:16},(function(e,t={}){(0,Zo.bytes)(e);let n=!t.disablePadding;return{encrypt(r,o){let{b:i,o:a,out:c}=s$e(r,n,o),l=x1(e),d=0;for(;d+4<=i.length;){let{s0:m,s1:h,s2:g,s3:y}=ih(l,i[d+0],i[d+1],i[d+2],i[d+3]);a[d++]=m,a[d++]=h,a[d++]=g,a[d++]=y}if(n){let m=u$e(r.subarray(4*d)),{s0:h,s1:g,s2:y,s3:w}=ih(l,m[0],m[1],m[2],m[3]);a[d++]=h,a[d++]=g,a[d++]=y,a[d++]=w}return(0,Tt.clean)(l),c},decrypt(r,o){a$e(r);let i=IH(e),a=dM(r.length,o),c=[i];(0,Tt.isAligned32)(r)||c.push(r=(0,Tt.copyBytes)(r));let l=(0,Tt.u32)(r),d=(0,Tt.u32)(a);for(let m=0;m+4<=l.length;){let{s0:h,s1:g,s2:y,s3:w}=kH(i,l[m+0],l[m+1],l[m+2],l[m+3]);d[m++]=h,d[m++]=g,d[m++]=y,d[m++]=w}return(0,Tt.clean)(...c),c$e(a,n)}}})),Ic.cbc=(0,Tt.wrapCipher)({blockSize:16,nonceLength:16},(function(e,t,n={}){(0,Zo.bytes)(e),(0,Zo.bytes)(t,16);let r=!n.disablePadding;return{encrypt(o,i){let a=x1(e),{b:c,o:l,out:d}=s$e(o,r,i),m=t,h=[a];(0,Tt.isAligned32)(m)||h.push(m=(0,Tt.copyBytes)(m));let g=(0,Tt.u32)(m),y=g[0],w=g[1],x=g[2],I=g[3],C=0;for(;C+4<=c.length;)y^=c[C+0],w^=c[C+1],x^=c[C+2],I^=c[C+3],{s0:y,s1:w,s2:x,s3:I}=ih(a,y,w,x,I),l[C++]=y,l[C++]=w,l[C++]=x,l[C++]=I;if(r){let M=u$e(o.subarray(4*C));y^=M[0],w^=M[1],x^=M[2],I^=M[3],{s0:y,s1:w,s2:x,s3:I}=ih(a,y,w,x,I),l[C++]=y,l[C++]=w,l[C++]=x,l[C++]=I}return(0,Tt.clean)(...h),d},decrypt(o,i){a$e(o);let a=IH(e),c=t,l=[a];(0,Tt.isAligned32)(c)||l.push(c=(0,Tt.copyBytes)(c));let d=(0,Tt.u32)(c),m=dM(o.length,i);(0,Tt.isAligned32)(o)||l.push(o=(0,Tt.copyBytes)(o));let h=(0,Tt.u32)(o),g=(0,Tt.u32)(m),y=d[0],w=d[1],x=d[2],I=d[3];for(let C=0;C+4<=h.length;){let M=y,B=w,z=x,G=I;y=h[C+0],w=h[C+1],x=h[C+2],I=h[C+3];let{s0:J,s1:ne,s2:ie,s3:ae}=kH(a,y,w,x,I);g[C++]=J^M,g[C++]=ne^B,g[C++]=ie^z,g[C++]=ae^G}return(0,Tt.clean)(...l),c$e(m,r)}}})),Ic.cfb=(0,Tt.wrapCipher)({blockSize:16,nonceLength:16},(function(e,t){function n(r,o,i){(0,Zo.bytes)(r);let a=r.length;i=dM(a,i);let c=x1(e),l=t,d=[c];(0,Tt.isAligned32)(l)||d.push(l=(0,Tt.copyBytes)(l)),(0,Tt.isAligned32)(r)||d.push(r=(0,Tt.copyBytes)(r));let m=(0,Tt.u32)(r),h=(0,Tt.u32)(i),g=o?h:m,y=(0,Tt.u32)(l),w=y[0],x=y[1],I=y[2],C=y[3];for(let B=0;B+4<=m.length;){let{s0:z,s1:G,s2:J,s3:ne}=ih(c,w,x,I,C);h[B+0]=m[B+0]^z,h[B+1]=m[B+1]^G,h[B+2]=m[B+2]^J,h[B+3]=m[B+3]^ne,w=g[B++],x=g[B++],I=g[B++],C=g[B++]}let M=pm*Math.floor(m.length/4);if(M<a){({s0:w,s1:x,s2:I,s3:C}=ih(c,w,x,I,C));let B=(0,Tt.u8)(new Uint32Array([w,x,I,C]));for(let z=M,G=0;z<a;z++,G++)i[z]=r[z]^B[G];(0,Tt.clean)(B)}return(0,Tt.clean)(...d),i}return(0,Zo.bytes)(e),(0,Zo.bytes)(t,16),{encrypt:(r,o)=>n(r,!0,o),decrypt:(r,o)=>n(r,!1,o)}})),Ic.gcm=(0,Tt.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16},(function(e,t,n){if((0,Zo.bytes)(e),(0,Zo.bytes)(t),n!==void 0&&(0,Zo.bytes)(n),t.length<8)throw new Error(\"aes/gcm: invalid nonce length\");let r=16;function o(a,c,l){let d=qtt(Vbe.ghash,!1,a,l,n);for(let m=0;m<c.length;m++)d[m]^=c[m];return d}function i(){let a=x1(e),c=bee.slice(),l=bee.slice();if(aM(a,!1,l,l,c),t.length===12)l.set(t);else{let d=bee.slice(),m=(0,Tt.createView)(d);(0,Tt.setBigUint64)(m,8,BigInt(8*t.length),!1);let h=Vbe.ghash.create(c).update(t).update(d);h.digestInto(l),h.destroy()}return{xk:a,authKey:c,counter:l,tagMask:aM(a,!1,l,bee)}}return{encrypt(a){(0,Zo.bytes)(a);let{xk:c,authKey:l,counter:d,tagMask:m}=i(),h=new Uint8Array(a.length+r),g=[c,l,d,m];(0,Tt.isAligned32)(a)||g.push(a=(0,Tt.copyBytes)(a)),aM(c,!1,d,a,h);let y=o(l,m,h.subarray(0,h.length-r));return g.push(y),h.set(y,a.length),(0,Tt.clean)(...g),h},decrypt(a){if((0,Zo.bytes)(a),a.length<r)throw new Error(\"aes/gcm: ciphertext less than tagLen (16)\");let{xk:c,authKey:l,counter:d,tagMask:m}=i(),h=[c,l,m,d];(0,Tt.isAligned32)(a)||h.push(a=(0,Tt.copyBytes)(a));let g=a.subarray(0,-16),y=a.subarray(-16),w=o(l,m,g);if(h.push(w),!(0,Tt.equalBytes)(w,y))throw new Error(\"aes/gcm: invalid ghash tag\");let x=aM(c,!1,d,g);return(0,Tt.clean)(...h),x}}}));vee=(e,t,n)=>r=>{if(!Number.isSafeInteger(r)||t>r||r>n)throw new Error(`${e}: invalid value=${r}, must be [${t}..${n}]`)};Ic.siv=(0,Tt.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16},(function(e,t,n){let r=vee(\"AAD\",0,68719476736),o=vee(\"plaintext\",0,2**36),i=vee(\"nonce\",12,12),a=vee(\"ciphertext\",16,2**36+16);function c(){let m=x1(e),h=new Uint8Array(e.length),g=new Uint8Array(16),y=[m,h],w=t;(0,Tt.isAligned32)(w)||y.push(w=(0,Tt.copyBytes)(w));let x=(0,Tt.u32)(w),I=0,C=x[0],M=x[1],B=x[2],z=0;for(let J of[g,h].map(Tt.u32)){let ne=(0,Tt.u32)(J);for(let ie=0;ie<ne.length;ie+=2){let{s0:ae,s1:te}=ih(m,I,C,M,B);ne[ie+0]=ae,ne[ie+1]=te,I=++z}}let G={authKey:g,encKey:x1(h)};return(0,Tt.clean)(...y),G}function l(m,h,g){let y=qtt(Vbe.polyval,!0,h,g,n);for(let B=0;B<12;B++)y[B]^=t[B];y[15]&=127;let w=(0,Tt.u32)(y),x=w[0],I=w[1],C=w[2],M=w[3];return{s0:x,s1:I,s2:C,s3:M}=ih(m,x,I,C,M),w[0]=x,w[1]=I,w[2]=C,w[3]=M,y}function d(m,h,g){let y=(0,Tt.copyBytes)(h);y[15]|=128;let w=aM(m,!0,y,g);return(0,Tt.clean)(y),w}return(0,Zo.bytes)(e,16,24,32),(0,Zo.bytes)(t),i(t.length),n!==void 0&&((0,Zo.bytes)(n),r(n.length)),{encrypt(m){(0,Zo.bytes)(m),o(m.length);let{encKey:h,authKey:g}=c(),y=l(h,g,m),w=[h,g,y];(0,Tt.isAligned32)(m)||w.push(m=(0,Tt.copyBytes)(m));let x=new Uint8Array(m.length+16);return x.set(y,m.length),x.set(d(h,y,m)),(0,Tt.clean)(...w),x},decrypt(m){(0,Zo.bytes)(m),a(m.length);let h=m.subarray(-16),{encKey:g,authKey:y}=c(),w=[g,y];(0,Tt.isAligned32)(m)||w.push(m=(0,Tt.copyBytes)(m));let x=d(g,h,m.subarray(0,-16)),I=l(g,y,x);if(w.push(I),!(0,Tt.equalBytes)(h,I))throw(0,Tt.clean)(...w),new Error(\"invalid polyval tag\");return(0,Tt.clean)(...w),x}}}));ste={encrypt(e,t){if(t.length>=2**32)throw new Error(\"plaintext should be less than 4gb\");let n=x1(e);if(t.length===16)Ytt(n,t);else{let r=(0,Tt.u32)(t),o=r[0],i=r[1];for(let a=0,c=1;a<6;a++)for(let l=2;l<r.length;l+=2,c++){let{s0:d,s1:m,s2:h,s3:g}=ih(n,o,i,r[l],r[l+1]);o=d,i=m^ate(c),r[l]=h,r[l+1]=g}r[0]=o,r[1]=i}n.fill(0)},decrypt(e,t){if(t.length-8>=2**32)throw new Error(\"ciphertext should be less than 4gb\");let n=IH(e),r=t.length/8-1;if(r===1)Ztt(n,t);else{let o=(0,Tt.u32)(t),i=o[0],a=o[1];for(let c=0,l=6*r;c<6;c++)for(let d=2*r;d>=1;d-=2,l--){a^=ate(l);let{s0:m,s1:h,s2:g,s3:y}=kH(n,i,a,o[d],o[d+1]);i=m,a=h,o[d]=g,o[d+1]=y}o[0]=i,o[1]=a}n.fill(0)}},l$e=new Uint8Array(8).fill(166);Ic.aeskw=(0,Tt.wrapCipher)({blockSize:8},(e=>({encrypt(t){if((0,Zo.bytes)(t),!t.length||t.length%8!=0)throw new Error(\"invalid plaintext length\");if(t.length===8)throw new Error(\"8-byte keys not allowed in AESKW, use AESKWP instead\");let n=(0,Tt.concatBytes)(l$e,t);return ste.encrypt(e,n),n},decrypt(t){if((0,Zo.bytes)(t),t.length%8!=0||t.length<24)throw new Error(\"invalid ciphertext length\");let n=(0,Tt.copyBytes)(t);if(ste.decrypt(e,n),!(0,Tt.equalBytes)(n.subarray(0,8),l$e))throw new Error(\"integrity check failed\");return n.subarray(0,8).fill(0),n.subarray(8)}})));d$e=2790873510;Ic.aeskwp=(0,Tt.wrapCipher)({blockSize:8},(e=>({encrypt(t){if((0,Zo.bytes)(t),!t.length)throw new Error(\"invalid plaintext length\");let n=8*Math.ceil(t.length/8),r=new Uint8Array(8+n);r.set(t,8);let o=(0,Tt.u32)(r);return o[0]=d$e,o[1]=ate(t.length),ste.encrypt(e,r),r},decrypt(t){if((0,Zo.bytes)(t),t.length<16)throw new Error(\"invalid ciphertext length\");let n=(0,Tt.copyBytes)(t),r=(0,Tt.u32)(n);ste.decrypt(e,n);let o=ate(r[1])>>>0,i=8*Math.ceil(o/8);if(r[0]!==d$e||n.length-8!==i)throw new Error(\"integrity check failed\");for(let a=o;a<i;a++)if(n[8+a]!==0)throw new Error(\"integrity check failed\");return n.subarray(0,8).fill(0),n.subarray(8,8+o)}}))),Ic.unsafe={expandKeyLE:x1,expandKeyDecLE:IH,encrypt:ih,decrypt:kH,encryptBlock:Ytt,decryptBlock:Ztt,ctrCounter:Gtt,ctr32:aM},Object.defineProperty(lM,\"__esModule\",{value:!0}),lM.aes256cbc=lM.aes256gcm=void 0;Qtt=Ic;lM.aes256gcm=function(e,t,n){return(0,Qtt.gcm)(e,t,n)};lM.aes256cbc=function(e,t,n){return(0,Qtt.cbc)(e,t)};cte={},Jtt={},sM={};Object.defineProperty(sM,\"__esModule\",{value:!0}),sM.sigma=void 0,sM.rotl=function(e,t){return e<<t|e>>>32-t},sM.createCipher=function(e,t){let{allowShortKeys:n,extendNonceFn:r,counterLength:o,counterRight:i,rounds:a}=(0,wy.checkOpts)({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},t);if(typeof e!=\"function\")throw new Error(\"core must be a function\");return(0,qE.number)(o),(0,qE.number)(a),(0,qE.bool)(i),(0,qE.bool)(n),(c,l,d,m,h=0)=>{(0,qE.bytes)(c),(0,qE.bytes)(l),(0,qE.bytes)(d);let g=d.length;if(m===void 0&&(m=new Uint8Array(g)),(0,qE.bytes)(m),(0,qE.number)(h),h<0||h>=f$e)throw new Error(\"arx: counter overflow\");if(m.length<g)throw new Error(`arx: output (${m.length}) is shorter than data (${g})`);let y=[],w,x,I=c.length;if(I===32)y.push(w=(0,wy.copyBytes)(c)),x=$tt;else{if(I!==16||!n)throw new Error(`arx: invalid 32-byte key, got length=${I}`);w=new Uint8Array(32),w.set(c),w.set(c,16),x=x9t,y.push(w)}dbe(l)||y.push(l=(0,wy.copyBytes)(l));let C=(0,wy.u32)(w);if(r){if(l.length!==24)throw new Error(\"arx: extended nonce must be 24 bytes\");r(x,C,(0,wy.u32)(l.subarray(0,16)),C),l=l.subarray(16)}let M=16-o;if(M!==l.length)throw new Error(`arx: nonce must be ${M} or 16 bytes`);if(M!==12){let z=new Uint8Array(12);z.set(l,i?0:12-l.length),l=z,y.push(l)}let B=(0,wy.u32)(l);return(function(z,G,J,ne,ie,ae,te,Z){let X=ie.length,F=new Uint8Array(wee),R=(0,wy.u32)(F),O=dbe(ie)&&dbe(ae),U=O?(0,wy.u32)(ie):p$e,P=O?(0,wy.u32)(ae):p$e;for(let L=0;L<X;te++){if(z(G,J,ne,R,te,Z),te>=f$e)throw new Error(\"arx: counter overflow\");let W=Math.min(wee,X-L);if(O&&W===wee){let q=L/4;if(L%4!=0)throw new Error(\"arx: invalid block position\");for(let H,k=0;k<E9t;k++)H=q+k,P[H]=U[H]^R[k];L+=wee}else{for(let q,H=0;H<W;H++)q=L+H,ae[q]=ie[q]^F[H];L+=W}}})(e,x,C,B,d,m,h,a),(0,wy.clean)(...y),m}};qE=jf,wy=I0,Xtt=e=>Uint8Array.from(e.split(\"\").map((t=>t.charCodeAt(0)))),v9t=Xtt(\"expand 16-byte k\"),w9t=Xtt(\"expand 32-byte k\"),x9t=(0,wy.u32)(v9t),$tt=(0,wy.u32)(w9t);sM.sigma=$tt.slice();wee=64,E9t=16,f$e=2**32-1,p$e=new Uint32Array,gH={};Object.defineProperty(gH,\"__esModule\",{value:!0}),gH.poly1305=void 0,gH.wrapConstructorWithKey=ent;xee=jf,fH=I0,Wd=(e,t)=>255&e[t++]|(255&e[t++])<<8,qbe=class{constructor(t){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,t=(0,fH.toBytes)(t),(0,xee.bytes)(t,32);let n=Wd(t,0),r=Wd(t,2),o=Wd(t,4),i=Wd(t,6),a=Wd(t,8),c=Wd(t,10),l=Wd(t,12),d=Wd(t,14);this.r[0]=8191&n,this.r[1]=8191&(n>>>13|r<<3),this.r[2]=7939&(r>>>10|o<<6),this.r[3]=8191&(o>>>7|i<<9),this.r[4]=255&(i>>>4|a<<12),this.r[5]=a>>>1&8190,this.r[6]=8191&(a>>>14|c<<2),this.r[7]=8065&(c>>>11|l<<5),this.r[8]=8191&(l>>>8|d<<8),this.r[9]=d>>>5&127;for(let m=0;m<8;m++)this.pad[m]=Wd(t,16+2*m)}process(t,n,r=!1){let o=r?0:2048,{h:i,r:a}=this,c=a[0],l=a[1],d=a[2],m=a[3],h=a[4],g=a[5],y=a[6],w=a[7],x=a[8],I=a[9],C=Wd(t,n+0),M=Wd(t,n+2),B=Wd(t,n+4),z=Wd(t,n+6),G=Wd(t,n+8),J=Wd(t,n+10),ne=Wd(t,n+12),ie=Wd(t,n+14),ae=i[0]+(8191&C),te=i[1]+(8191&(C>>>13|M<<3)),Z=i[2]+(8191&(M>>>10|B<<6)),X=i[3]+(8191&(B>>>7|z<<9)),F=i[4]+(8191&(z>>>4|G<<12)),R=i[5]+(G>>>1&8191),O=i[6]+(8191&(G>>>14|J<<2)),U=i[7]+(8191&(J>>>11|ne<<5)),P=i[8]+(8191&(ne>>>8|ie<<8)),L=i[9]+(ie>>>5|o),W=0,q=W+ae*c+te*(5*I)+Z*(5*x)+X*(5*w)+F*(5*y);W=q>>>13,q&=8191,q+=R*(5*g)+O*(5*h)+U*(5*m)+P*(5*d)+L*(5*l),W+=q>>>13,q&=8191;let H=W+ae*l+te*c+Z*(5*I)+X*(5*x)+F*(5*w);W=H>>>13,H&=8191,H+=R*(5*y)+O*(5*g)+U*(5*h)+P*(5*m)+L*(5*d),W+=H>>>13,H&=8191;let k=W+ae*d+te*l+Z*c+X*(5*I)+F*(5*x);W=k>>>13,k&=8191,k+=R*(5*w)+O*(5*y)+U*(5*g)+P*(5*h)+L*(5*m),W+=k>>>13,k&=8191;let V=W+ae*m+te*d+Z*l+X*c+F*(5*I);W=V>>>13,V&=8191,V+=R*(5*x)+O*(5*w)+U*(5*y)+P*(5*g)+L*(5*h),W+=V>>>13,V&=8191;let oe=W+ae*h+te*m+Z*d+X*l+F*c;W=oe>>>13,oe&=8191,oe+=R*(5*I)+O*(5*x)+U*(5*w)+P*(5*y)+L*(5*g),W+=oe>>>13,oe&=8191;let se=W+ae*g+te*h+Z*m+X*d+F*l;W=se>>>13,se&=8191,se+=R*c+O*(5*I)+U*(5*x)+P*(5*w)+L*(5*y),W+=se>>>13,se&=8191;let ue=W+ae*y+te*g+Z*h+X*m+F*d;W=ue>>>13,ue&=8191,ue+=R*l+O*c+U*(5*I)+P*(5*x)+L*(5*w),W+=ue>>>13,ue&=8191;let he=W+ae*w+te*y+Z*g+X*h+F*m;W=he>>>13,he&=8191,he+=R*d+O*l+U*c+P*(5*I)+L*(5*x),W+=he>>>13,he&=8191;let be=W+ae*x+te*w+Z*y+X*g+F*h;W=be>>>13,be&=8191,be+=R*m+O*d+U*l+P*c+L*(5*I),W+=be>>>13,be&=8191;let we=W+ae*I+te*x+Z*w+X*y+F*g;W=we>>>13,we&=8191,we+=R*h+O*m+U*d+P*l+L*c,W+=we>>>13,we&=8191,W=(W<<2)+W|0,W=W+q|0,q=8191&W,W>>>=13,H+=W,i[0]=q,i[1]=H,i[2]=k,i[3]=V,i[4]=oe,i[5]=se,i[6]=ue,i[7]=he,i[8]=be,i[9]=we}finalize(){let{h:t,pad:n}=this,r=new Uint16Array(10),o=t[1]>>>13;t[1]&=8191;for(let c=2;c<10;c++)t[c]+=o,o=t[c]>>>13,t[c]&=8191;t[0]+=5*o,o=t[0]>>>13,t[0]&=8191,t[1]+=o,o=t[1]>>>13,t[1]&=8191,t[2]+=o,r[0]=t[0]+5,o=r[0]>>>13,r[0]&=8191;for(let c=1;c<10;c++)r[c]=t[c]+o,o=r[c]>>>13,r[c]&=8191;r[9]-=8192;let i=(1^o)-1;for(let c=0;c<10;c++)r[c]&=i;i=~i;for(let c=0;c<10;c++)t[c]=t[c]&i|r[c];t[0]=65535&(t[0]|t[1]<<13),t[1]=65535&(t[1]>>>3|t[2]<<10),t[2]=65535&(t[2]>>>6|t[3]<<7),t[3]=65535&(t[3]>>>9|t[4]<<4),t[4]=65535&(t[4]>>>12|t[5]<<1|t[6]<<14),t[5]=65535&(t[6]>>>2|t[7]<<11),t[6]=65535&(t[7]>>>5|t[8]<<8),t[7]=65535&(t[8]>>>8|t[9]<<5);let a=t[0]+n[0];t[0]=65535&a;for(let c=1;c<8;c++)a=(t[c]+n[c]|0)+(a>>>16)|0,t[c]=65535&a;(0,fH.clean)(r)}update(t){(0,xee.exists)(this);let{buffer:n,blockLen:r}=this,o=(t=(0,fH.toBytes)(t)).length;for(let i=0;i<o;){let a=Math.min(r-this.pos,o-i);if(a!==r)n.set(t.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===r&&(this.process(n,0,!1),this.pos=0);else for(;r<=o-i;i+=r)this.process(t,i)}return this}destroy(){(0,fH.clean)(this.h,this.r,this.buffer,this.pad)}digestInto(t){(0,xee.exists)(this),(0,xee.output)(t,this),this.finished=!0;let{buffer:n,h:r}=this,{pos:o}=this;if(o){for(n[o++]=1;o<16;o++)n[o]=0;this.process(n,0,!0)}this.finalize();let i=0;for(let a=0;a<8;a++)t[i++]=r[a]>>>0,t[i++]=r[a]>>>8;return t}digest(){let{buffer:t,outputLen:n}=this;this.digestInto(t);let r=t.slice(0,n);return this.destroy(),r}};gH.poly1305=ent((e=>new qbe(e))),(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.xchacha20poly1305=e.chacha20poly1305=e._poly1305_aead=e.chacha12=e.chacha8=e.xchacha20=e.chacha20=e.chacha20orig=void 0,e.hchacha=a;let t=sM,n=jf,r=gH,o=I0;function i(h,g,y,w,x,I=20){let C=h[0],M=h[1],B=h[2],z=h[3],G=g[0],J=g[1],ne=g[2],ie=g[3],ae=g[4],te=g[5],Z=g[6],X=g[7],F=x,R=y[0],O=y[1],U=y[2],P=C,L=M,W=B,q=z,H=G,k=J,V=ne,oe=ie,se=ae,ue=te,he=Z,be=X,we=F,Ie=R,_e=O,Ve=U;for(let qe=0;qe<I;qe+=2)P=P+H|0,we=(0,t.rotl)(we^P,16),se=se+we|0,H=(0,t.rotl)(H^se,12),P=P+H|0,we=(0,t.rotl)(we^P,8),se=se+we|0,H=(0,t.rotl)(H^se,7),L=L+k|0,Ie=(0,t.rotl)(Ie^L,16),ue=ue+Ie|0,k=(0,t.rotl)(k^ue,12),L=L+k|0,Ie=(0,t.rotl)(Ie^L,8),ue=ue+Ie|0,k=(0,t.rotl)(k^ue,7),W=W+V|0,_e=(0,t.rotl)(_e^W,16),he=he+_e|0,V=(0,t.rotl)(V^he,12),W=W+V|0,_e=(0,t.rotl)(_e^W,8),he=he+_e|0,V=(0,t.rotl)(V^he,7),q=q+oe|0,Ve=(0,t.rotl)(Ve^q,16),be=be+Ve|0,oe=(0,t.rotl)(oe^be,12),q=q+oe|0,Ve=(0,t.rotl)(Ve^q,8),be=be+Ve|0,oe=(0,t.rotl)(oe^be,7),P=P+k|0,Ve=(0,t.rotl)(Ve^P,16),he=he+Ve|0,k=(0,t.rotl)(k^he,12),P=P+k|0,Ve=(0,t.rotl)(Ve^P,8),he=he+Ve|0,k=(0,t.rotl)(k^he,7),L=L+V|0,we=(0,t.rotl)(we^L,16),be=be+we|0,V=(0,t.rotl)(V^be,12),L=L+V|0,we=(0,t.rotl)(we^L,8),be=be+we|0,V=(0,t.rotl)(V^be,7),W=W+oe|0,Ie=(0,t.rotl)(Ie^W,16),se=se+Ie|0,oe=(0,t.rotl)(oe^se,12),W=W+oe|0,Ie=(0,t.rotl)(Ie^W,8),se=se+Ie|0,oe=(0,t.rotl)(oe^se,7),q=q+H|0,_e=(0,t.rotl)(_e^q,16),ue=ue+_e|0,H=(0,t.rotl)(H^ue,12),q=q+H|0,_e=(0,t.rotl)(_e^q,8),ue=ue+_e|0,H=(0,t.rotl)(H^ue,7);let Et=0;w[Et++]=C+P|0,w[Et++]=M+L|0,w[Et++]=B+W|0,w[Et++]=z+q|0,w[Et++]=G+H|0,w[Et++]=J+k|0,w[Et++]=ne+V|0,w[Et++]=ie+oe|0,w[Et++]=ae+se|0,w[Et++]=te+ue|0,w[Et++]=Z+he|0,w[Et++]=X+be|0,w[Et++]=F+we|0,w[Et++]=R+Ie|0,w[Et++]=O+_e|0,w[Et++]=U+Ve|0}function a(h,g,y,w){let x=h[0],I=h[1],C=h[2],M=h[3],B=g[0],z=g[1],G=g[2],J=g[3],ne=g[4],ie=g[5],ae=g[6],te=g[7],Z=y[0],X=y[1],F=y[2],R=y[3];for(let U=0;U<20;U+=2)x=x+B|0,Z=(0,t.rotl)(Z^x,16),ne=ne+Z|0,B=(0,t.rotl)(B^ne,12),x=x+B|0,Z=(0,t.rotl)(Z^x,8),ne=ne+Z|0,B=(0,t.rotl)(B^ne,7),I=I+z|0,X=(0,t.rotl)(X^I,16),ie=ie+X|0,z=(0,t.rotl)(z^ie,12),I=I+z|0,X=(0,t.rotl)(X^I,8),ie=ie+X|0,z=(0,t.rotl)(z^ie,7),C=C+G|0,F=(0,t.rotl)(F^C,16),ae=ae+F|0,G=(0,t.rotl)(G^ae,12),C=C+G|0,F=(0,t.rotl)(F^C,8),ae=ae+F|0,G=(0,t.rotl)(G^ae,7),M=M+J|0,R=(0,t.rotl)(R^M,16),te=te+R|0,J=(0,t.rotl)(J^te,12),M=M+J|0,R=(0,t.rotl)(R^M,8),te=te+R|0,J=(0,t.rotl)(J^te,7),x=x+z|0,R=(0,t.rotl)(R^x,16),ae=ae+R|0,z=(0,t.rotl)(z^ae,12),x=x+z|0,R=(0,t.rotl)(R^x,8),ae=ae+R|0,z=(0,t.rotl)(z^ae,7),I=I+G|0,Z=(0,t.rotl)(Z^I,16),te=te+Z|0,G=(0,t.rotl)(G^te,12),I=I+G|0,Z=(0,t.rotl)(Z^I,8),te=te+Z|0,G=(0,t.rotl)(G^te,7),C=C+J|0,X=(0,t.rotl)(X^C,16),ne=ne+X|0,J=(0,t.rotl)(J^ne,12),C=C+J|0,X=(0,t.rotl)(X^C,8),ne=ne+X|0,J=(0,t.rotl)(J^ne,7),M=M+B|0,F=(0,t.rotl)(F^M,16),ie=ie+F|0,B=(0,t.rotl)(B^ie,12),M=M+B|0,F=(0,t.rotl)(F^M,8),ie=ie+F|0,B=(0,t.rotl)(B^ie,7);let O=0;w[O++]=x,w[O++]=I,w[O++]=C,w[O++]=M,w[O++]=Z,w[O++]=X,w[O++]=F,w[O++]=R}e.chacha20orig=(0,t.createCipher)(i,{counterRight:!1,counterLength:8,allowShortKeys:!0}),e.chacha20=(0,t.createCipher)(i,{counterRight:!1,counterLength:4,allowShortKeys:!1}),e.xchacha20=(0,t.createCipher)(i,{counterRight:!1,counterLength:8,extendNonceFn:a,allowShortKeys:!1}),e.chacha8=(0,t.createCipher)(i,{counterRight:!1,counterLength:4,rounds:8}),e.chacha12=(0,t.createCipher)(i,{counterRight:!1,counterLength:4,rounds:12});let c=new Uint8Array(16),l=(h,g)=>{h.update(g);let y=g.length%16;y&&h.update(c.subarray(y))},d=new Uint8Array(32);function m(h,g,y,w,x){let I=h(g,y,d),C=r.poly1305.create(I);x&&l(C,x),l(C,w);let M=new Uint8Array(16),B=(0,o.createView)(M);(0,o.setBigUint64)(B,0,BigInt(x?x.length:0),!0),(0,o.setBigUint64)(B,8,BigInt(w.length),!0),C.update(M);let z=C.digest();return(0,o.clean)(I,M),z}e._poly1305_aead=h=>(g,y,w)=>((0,n.bytes)(g,32),(0,n.bytes)(y),{encrypt(I,C){let M=I.length,B=M+16;C?(0,n.bytes)(C,B):C=new Uint8Array(B),h(g,y,I,C,1);let z=m(h,g,y,C.subarray(0,-16),w);return C.set(z,M),(0,o.clean)(z),C},decrypt(I,C){let M=I.length,B=M-16;if(M<16)throw new Error(\"encrypted data must be at least 16 bytes\");C?(0,n.bytes)(C,B):C=new Uint8Array(B);let z=I.subarray(0,-16),G=I.subarray(-16),J=m(h,g,y,z,w);if(!(0,o.equalBytes)(G,J))throw new Error(\"invalid tag\");return h(g,y,z,C,1),(0,o.clean)(J),C}}),e.chacha20poly1305=(0,o.wrapCipher)({blockSize:64,nonceLength:12,tagLength:16},(0,e._poly1305_aead)(e.chacha20)),e.xchacha20poly1305=(0,o.wrapCipher)({blockSize:64,nonceLength:24,tagLength:16},(0,e._poly1305_aead)(e.xchacha20))})(Jtt),Object.defineProperty(cte,\"__esModule\",{value:!0}),cte.xchacha20=void 0;A9t=Jtt;cte.xchacha20=function(e,t,n){return(0,A9t.xchacha20poly1305)(e,t,n)},(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.aesDecrypt=e.aesEncrypt=e.symDecrypt=e.symEncrypt=void 0;var t=I0,n=I1e,r=lM,o=cte,i=TH,a=ed;e.symEncrypt=function(m,h,g){return c(l,m,h,g)};function c(m,h,g,y){var w=(0,i.symmetricAlgorithm)();if(w===\"aes-256-gcm\")return m(r.aes256gcm,h,g,(0,i.symmetricNonceLength)(),a.AEAD_TAG_LENGTH,y);if(w===\"xchacha20\")return m(o.xchacha20,h,g,a.XCHACHA20_NONCE_LENGTH,a.AEAD_TAG_LENGTH,y);if(w===\"aes-256-cbc\")return m(r.aes256cbc,h,g,16,0);throw new Error(\"Not implemented\")}function l(m,h,g,y,w,x){var I=(0,n.randomBytes)(y),C=m(h,I,x).encrypt(g);if(w===0)return(0,t.concatBytes)(I,C);var M=C.length-w,B=C.subarray(0,M),z=C.subarray(M);return(0,t.concatBytes)(I,z,B)}function d(m,h,g,y,w,x){var I=g.subarray(0,y),C=m(h,Uint8Array.from(I),x),M=g.subarray(y);if(w===0)return C.decrypt(M);var B=M.subarray(0,w),z=M.subarray(w);return C.decrypt((0,t.concatBytes)(z,B))}e.symDecrypt=function(m,h,g){return c(d,m,h,g)},e.aesEncrypt=e.symEncrypt,e.aesDecrypt=e.symDecrypt})(o$e),XP=Ote,h$e=Sy&&Sy.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!(\"get\"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),cH=Sy&&Sy.__exportStar||function(e,t){for(var n in e)n===\"default\"||Object.prototype.hasOwnProperty.call(t,n)||h$e(t,e,n)},Object.defineProperty(XP,\"__esModule\",{value:!0}),cH(itt,XP),cH(Utt,XP),cH(zbe,XP),cH(o$e,XP);OH={};Object.defineProperty(OH,\"__esModule\",{value:!0}),OH.PublicKey=void 0;m$e=I0,Eee=Ote,S9t=(function(){function e(t){this.data=(0,Eee.convertPublicKeyFormat)(t,!0)}return e.fromHex=function(t){return new e((0,Eee.hexToPublicKey)(t))},Object.defineProperty(e.prototype,\"uncompressed\",{get:function(){return ht.from((0,Eee.convertPublicKeyFormat)(this.data,!1))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"compressed\",{get:function(){return ht.from(this.data)},enumerable:!1,configurable:!0}),e.prototype.toHex=function(t){return t===void 0&&(t=!0),(0,m$e.bytesToHex)(t?this.data:this.uncompressed)},e.prototype.decapsulate=function(t,n){n===void 0&&(n=!1);var r=n?this.data:this.uncompressed,o=t.multiply(this,n);return(0,Eee.getSharedKey)(r,o)},e.prototype.equals=function(t){return(0,m$e.equalBytes)(this.data,t.data)},e})();OH.PublicKey=S9t,Object.defineProperty(Xee,\"__esModule\",{value:!0}),Xee.PrivateKey=void 0;g$e=I0,$P=Ote,_9t=OH,T9t=(function(){function e(t){if(t===void 0)this.data=(0,$P.getValidSecret)();else{if(!(0,$P.isValidPrivateKey)(t))throw new Error(\"Invalid private key\");this.data=t}this.publicKey=new _9t.PublicKey((0,$P.getPublicKey)(this.data))}return e.fromHex=function(t){return new e((0,$P.decodeHex)(t))},Object.defineProperty(e.prototype,\"secret\",{get:function(){return ht.from(this.data)},enumerable:!1,configurable:!0}),e.prototype.toHex=function(){return(0,g$e.bytesToHex)(this.data)},e.prototype.encapsulate=function(t,n){n===void 0&&(n=!1);var r=n?this.publicKey.compressed:this.publicKey.uncompressed,o=this.multiply(t,n);return(0,$P.getSharedKey)(r,o)},e.prototype.multiply=function(t,n){return n===void 0&&(n=!1),(0,$P.getSharedPoint)(this.data,t.compressed,n)},e.prototype.equals=function(t){return(0,g$e.equalBytes)(this.data,t.data)},e})();Xee.PrivateKey=T9t,(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.PublicKey=e.PrivateKey=void 0;var t=Xee;Object.defineProperty(e,\"PrivateKey\",{enumerable:!0,get:function(){return t.PrivateKey}});var n=OH;Object.defineProperty(e,\"PublicKey\",{enumerable:!0,get:function(){return n.PublicKey}})})(Qye),(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.utils=e.PublicKey=e.PrivateKey=e.ECIES_CONFIG=void 0,e.encrypt=function(c,l){var d=new r.PrivateKey,m=c instanceof Uint8Array?new r.PublicKey(c):r.PublicKey.fromHex(c),h=d.encapsulate(m,(0,n.isHkdfKeyCompressed)()),g=(0,n.isEphemeralKeyCompressed)()?d.publicKey.compressed:d.publicKey.uncompressed,y=(0,o.symEncrypt)(h,l);return ht.from((0,t.concatBytes)(g,y))},e.decrypt=function(c,l){var d=c instanceof Uint8Array?new r.PrivateKey(c):r.PrivateKey.fromHex(c),m=(0,n.ephemeralKeySize)(),h=new r.PublicKey(l.subarray(0,m)),g=l.subarray(m),y=h.decapsulate(d,(0,n.isHkdfKeyCompressed)());return ht.from((0,o.symDecrypt)(y,g))};var t=I0,n=TH,r=Qye,o=Ote,i=TH;Object.defineProperty(e,\"ECIES_CONFIG\",{enumerable:!0,get:function(){return i.ECIES_CONFIG}});var a=Qye;Object.defineProperty(e,\"PrivateKey\",{enumerable:!0,get:function(){return a.PrivateKey}}),Object.defineProperty(e,\"PublicKey\",{enumerable:!0,get:function(){return a.PublicKey}}),e.utils={aesEncrypt:o.aesEncrypt,aesDecrypt:o.aesDecrypt,symEncrypt:o.symEncrypt,symDecrypt:o.symDecrypt,decodeHex:o.decodeHex,getValidSecret:o.getValidSecret,remove0x:o.remove0x}})(tM);tnt=(0,Vf.default)(\"KeyExchange:Layer\"),nnt=(0,Vf.default)(\"SocketService:Layer\"),rnt=(0,Vf.default)(\"Ecies:Layer\"),ont=(0,Vf.default)(\"RemoteCommunication:Layer\");tnt.color=\"##95c44e\",nnt.color=\"#f638d7\",rnt.color=\"#465b9c\",ont.color=\"#47a2be\";Qe={KeyExchange:tnt,SocketService:nnt,Ecies:rnt,RemoteCommunication:ont},Aee=[],fbe=[],nA=(e,t)=>pt(void 0,void 0,void 0,(function*(){uH=t,fbe.push(e),(function(n){return pt(this,void 0,void 0,(function*(){if(!uH||!n)return;(function(){let a=fbe;fbe=Aee,Aee=a})();let r=uH.endsWith(\"/\")?`${uH}evt`:`${uH}/evt`,o=Object.assign({},n);if(delete o.params,n.params)for(let[a,c]of Object.entries(n.params))o[a]=c;let i=JSON.stringify(o);Qe.RemoteCommunication(`[sendBufferedEvents] Sending ${Aee.length} analytics events to ${r}`);try{let a=yield(0,_1e.default)(r,{method:\"POST\",headers:{Accept:\"application/json\",\"Content-Type\":\"application/json\"},body:i}),c=yield a.text();Qe.RemoteCommunication(`[sendBufferedEvents] Response: ${c}`),Aee.length=0}catch{}}))})(e).catch((()=>{}))})),yH=class{constructor(t){this.enabled=!0,t?.debug&&Vf.default.enable(\"Ecies:Layer\"),this.ecies=t?.privateKey?tM.PrivateKey.fromHex(t.privateKey):new tM.PrivateKey,Qe.Ecies(\"[ECIES constructor()] initialized secret: \",this.ecies.toHex()),Qe.Ecies(\"[ECIES constructor()] initialized public: \",this.ecies.publicKey.toHex()),Qe.Ecies(\"[ECIES constructor()] init with\",this)}generateECIES(){this.ecies=new tM.PrivateKey}getPublicKey(){return this.ecies.publicKey.toHex()}encrypt(t,n){let r=t;if(this.enabled)try{Qe.Ecies(\"[ECIES: encrypt()] using otherPublicKey\",n);let o=ht.from(t),i=tM.encrypt(n,o);r=ht.from(i).toString(\"base64\")}catch(o){throw Qe.Ecies(\"[ECIES: encrypt()] error encrypt:\",o),Qe.Ecies(\"[ECIES: encrypt()] private: \",this.ecies.toHex()),Qe.Ecies(\"[ECIES: encrypt()] data: \",t),Qe.Ecies(\"[ECIES: encrypt()] otherkey: \",n),o}return r}decrypt(t){let n=t;if(this.enabled)try{Qe.Ecies(\"[ECIES: decrypt()] using privateKey\",this.ecies.toHex());let r=ht.from(t.toString(),\"base64\");n=tM.decrypt(this.ecies.toHex(),r).toString()}catch(r){throw Qe.Ecies(\"[ECIES: decrypt()] error decrypt\",r),Qe.Ecies(\"[ECIES: decrypt()] private: \",this.ecies.toHex()),Qe.Ecies(\"[ECIES: decrypt()] encryptedData: \",t),r}return n}getKeyInfo(){return{private:this.ecies.toHex(),public:this.ecies.publicKey.toHex()}}toString(){Qe.Ecies(\"[ECIES: toString()]\",this.getKeyInfo())}},rC={name:\"@metamask/sdk-communication-layer\",version:\"0.33.1\",description:\"\",homepage:\"https://github.com/MetaMask/metamask-sdk#readme\",bugs:{url:\"https://github.com/MetaMask/metamask-sdk/issues\"},repository:{type:\"git\",url:\"https://github.com/MetaMask/metamask-sdk.git\",directory:\"packages/sdk-communication-layer\"},main:\"dist/node/cjs/metamask-sdk-communication-layer.js\",unpkg:\"dist/browser/umd/metamask-sdk-communication-layer.js\",module:\"dist/node/es/metamask-sdk-communication-layer.js\",browser:\"dist/browser/es/metamask-sdk-communication-layer.js\",\"react-native\":\"dist/react-native/es/metamask-sdk-communication-layer.js\",types:\"dist/types/src/index.d.ts\",files:[\"/dist\"],scripts:{\"build:types\":\"tsc --project tsconfig.build.json --emitDeclarationOnly --outDir dist/types\",\"build:clean\":\"yarn clean && yarn build\",build:\"yarn build:types && rollup -c --bundleConfigAsCjs\",\"build:dev\":\"yarn build:types && NODE_ENV=dev rollup -c --bundleConfigAsCjs\",dev:\\'concurrently \"tsc --watch\" \"rollup -c --bundleConfigAsCjs -w\"\\',\"build:post-tsc\":\"echo \\'N/A\\'\",\"build:pre-tsc\":\"echo \\'N/A\\'\",size:\"size-limit\",clean:\"rimraf ./dist\",lint:\"yarn lint:eslint && yarn lint:misc --check\",\"lint:changelog\":\"../../scripts/validate-changelog.sh @metamask/sdk-communication-layer\",\"lint:eslint\":\"eslint . --cache --ext js,ts\",\"lint:fix\":\"yarn lint:eslint --fix && yarn lint:misc --write\",\"lint:misc\":\"prettier \\'**/*.json\\' \\'**/*.md\\' \\'!CHANGELOG.md\\' --ignore-path ../../.gitignore\",\"publish:preview\":\"yarn npm publish --tag preview\",prepack:\"../../scripts/prepack.sh\",reset:\"yarn clean && rimraf ./node_modules/\",test:\\'jest --testPathIgnorePatterns \"/e2e/\"\\',\"test:e2e\":\\'jest --testPathPattern \"/e2e/\"\\',\"test:coverage\":\"jest --coverage\",\"test:ci\":\\'jest --coverage --passWithNoTests --setupFilesAfterEnv ./jest-preload.js --testPathIgnorePatterns \"/e2e/\"\\',\"test:dev\":\"jest\",watch:\"rollup -c --bundleConfigAsCjs -w\"},dependencies:{\"@metamask/sdk-analytics\":\"workspace:*\",bufferutil:\"^4.0.8\",\"date-fns\":\"^2.29.3\",debug:\"4.3.4\",\"utf-8-validate\":\"^5.0.2\",uuid:\"^8.3.2\"},devDependencies:{\"@jest/globals\":\"^29.3.1\",\"@lavamoat/allow-scripts\":\"^2.3.1\",\"@metamask/auto-changelog\":\"3.1.0\",\"@metamask/eslint-config\":\"^6.0.0\",\"@metamask/eslint-config-nodejs\":\"^6.0.0\",\"@metamask/eslint-config-typescript\":\"^6.0.0\",\"@rollup/plugin-commonjs\":\"^25.0.0\",\"@rollup/plugin-json\":\"^6.0.0\",\"@rollup/plugin-node-resolve\":\"^15.0.2\",\"@rollup/plugin-replace\":\"^6.0.1\",\"@rollup/plugin-terser\":\"^0.4.4\",\"@size-limit/preset-big-lib\":\"^11.0.2\",\"@types/jest\":\"^29.2.4\",\"@types/node\":\"^20.1.3\",\"@types/uuid\":\"^9.0.0\",\"@typescript-eslint/eslint-plugin\":\"^4.26.0\",\"@typescript-eslint/parser\":\"^4.26.0\",concurrently:\"^9.1.2\",\"cross-fetch\":\"^4.0.0\",eciesjs:\"^0.4.11\",eslint:\"^7.30.0\",\"eslint-config-prettier\":\"^8.3.0\",\"eslint-plugin-import\":\"^2.23.4\",\"eslint-plugin-jest\":\"^24.4.0\",\"eslint-plugin-jsdoc\":\"^36.1.0\",\"eslint-plugin-node\":\"^11.1.0\",\"eslint-plugin-prettier\":\"^3.4.0\",eventemitter2:\"^6.4.9\",jest:\"^29.3.1\",prettier:\"^2.3.0\",rimraf:\"^3.0.2\",rollup:\"^4.26.0\",\"rollup-plugin-jscc\":\"^2.0.0\",\"rollup-plugin-natives\":\"^0.7.5\",\"rollup-plugin-node-builtins\":\"^2.1.2\",\"rollup-plugin-node-globals\":\"^1.4.0\",\"rollup-plugin-peer-deps-external\":\"^2.2.4\",\"rollup-plugin-polyfill-node\":\"^0.13.0\",\"rollup-plugin-sizes\":\"^1.0.6\",\"rollup-plugin-typescript2\":\"^0.31.2\",\"rollup-plugin-visualizer\":\"^5.12.0\",\"size-limit\":\"^11.1.6\",\"socket.io-client\":\"^4.5.1\",\"stream-browserify\":\"^3.0.0\",\"ts-jest\":\"^29.0.3\",\"ts-node\":\"^10.9.1\",typescript:\"^5.6.3\"},peerDependencies:{\"cross-fetch\":\"^4.0.0\",eciesjs:\"*\",eventemitter2:\"^6.4.9\",\"readable-stream\":\"^3.6.2\",\"socket.io-client\":\"^4.5.1\"},publishConfig:{access:\"public\",registry:\"https://registry.npmjs.org/\"},lavamoat:{allowScripts:{\"@lavamoat/preinstall-always-fail\":!1,canvas:!0,\"eciesjs>secp256k1\":!1,\"socket.io-client>engine.io-client>ws>bufferutil\":!1,\"socket.io-client>engine.io-client>ws>utf-8-validate\":!1,bufferutil:!1,\"utf-8-validate\":!1}}},rI=\"https://metamask-sdk.api.cx.metamask.io/\",C9t=[\"websocket\"],mM=6048e5,R9t=3e3,Hf={METAMASK_GETPROVIDERSTATE:\"metamask_getProviderState\",METAMASK_CONNECTSIGN:\"metamask_connectSign\",METAMASK_CONNECTWITH:\"metamask_connectWith\",METAMASK_OPEN:\"metamask_open\",METAMASK_BATCH:\"metamask_batch\",PERSONAL_SIGN:\"personal_sign\",WALLET_REQUESTPERMISSIONS:\"wallet_requestPermissions\",WALLET_REVOKEPERMISSIONS:\"wallet_revokePermissions\",WALLET_GETPERMISSIONS:\"wallet_getPermissions\",WALLET_WATCHASSET:\"wallet_watchAsset\",WALLET_SWITCHETHEREUMCHAIN:\"wallet_switchEthereumChain\",WALLET_ADDETHEREUMCHAIN:\"wallet_addEthereumChain\",ETH_REQUESTACCOUNTS:\"eth_requestAccounts\",ETH_ACCOUNTS:\"eth_accounts\",ETH_CHAINID:\"eth_chainId\",ETH_SENDTRANSACTION:\"eth_sendTransaction\",ETH_SIGNTYPEDDATA:\"eth_signTypedData\",ETH_SIGNTYPEDDATA_V3:\"eth_signTypedData_v3\",ETH_SIGNTYPEDDATA_V4:\"eth_signTypedData_v4\",ETH_SIGNTRANSACTION:\"eth_signTransaction\",ETH_SIGN:\"eth_sign\",PERSONAL_EC_RECOVER:\"personal_ecRecover\"},I9t=[Hf.METAMASK_CONNECTSIGN,Hf.METAMASK_CONNECTWITH,Hf.METAMASK_OPEN,Hf.METAMASK_BATCH,Hf.PERSONAL_SIGN,Hf.WALLET_REQUESTPERMISSIONS,Hf.WALLET_REVOKEPERMISSIONS,Hf.WALLET_WATCHASSET,Hf.ETH_SENDTRANSACTION,Hf.ETH_SIGNTYPEDDATA,Hf.ETH_SIGNTYPEDDATA_V3,Hf.ETH_SIGNTYPEDDATA_V4,Hf.ETH_SIGNTRANSACTION,Hf.ETH_SIGN,Hf.PERSONAL_EC_RECOVER];(eM=rd||(rd={})).DISCONNECTED=\"disconnected\",eM.WAITING=\"waiting\",eM.TIMEOUT=\"timeout\",eM.LINKED=\"linked\",eM.PAUSED=\"paused\",eM.TERMINATED=\"terminated\",(function(e){e.KEY_INFO=\"key_info\",e.SERVICE_STATUS=\"service_status\",e.PROVIDER_UPDATE=\"provider_update\",e.RPC_UPDATE=\"rpc_update\",e.KEYS_EXCHANGED=\"keys_exchanged\",e.JOIN_CHANNEL=\"join_channel\",e.PUBLIC_KEY=\"public_key\",e.CHANNEL_CREATED=\"channel_created\",e.CLIENTS_CONNECTED=\"clients_connected\",e.CLIENTS_DISCONNECTED=\"clients_disconnected\",e.CLIENTS_WAITING=\"clients_waiting\",e.CLIENTS_READY=\"clients_ready\",e.REJECTED=\"rejected\",e.WALLET_INIT=\"wallet_init\",e.CHANNEL_PERSISTENCE=\"channel_persistence\",e.CONFIG=\"config\",e.MESSAGE_ACK=\"ack\",e.SOCKET_DISCONNECTED=\"socket_disconnected\",e.SOCKET_RECONNECT=\"socket_reconnect\",e.OTP=\"otp\",e.SDK_RPC_CALL=\"sdk_rpc_call\",e.AUTHORIZED=\"authorized\",e.CONNECTION_STATUS=\"connection_status\",e.MESSAGE=\"message\",e.TERMINATE=\"terminate\"})(Rt||(Rt={})),(ute||(ute={})).KEY_EXCHANGE=\"key_exchange\",(function(e){e.KEY_HANDSHAKE_START=\"key_handshake_start\",e.KEY_HANDSHAKE_CHECK=\"key_handshake_check\",e.KEY_HANDSHAKE_SYN=\"key_handshake_SYN\",e.KEY_HANDSHAKE_SYNACK=\"key_handshake_SYNACK\",e.KEY_HANDSHAKE_ACK=\"key_handshake_ACK\",e.KEY_HANDSHAKE_WALLET=\"key_handshake_wallet\",e.KEY_HANDSHAKE_NONE=\"none\"})(Pi||(Pi={}));Kbe=class extends bM.EventEmitter2{constructor({communicationLayer:t,otherPublicKey:n,context:r,ecies:o,logging:i}){super(),this.keysExchanged=!1,this.step=Pi.KEY_HANDSHAKE_NONE,this.debug=!1,this.context=r,this.communicationLayer=t,o?.privateKey&&n&&(Qe.KeyExchange(`[KeyExchange: constructor()] otherPubKey=${n} set keysExchanged to true!`,o),this.keysExchanged=!0),this.myECIES=new yH(Object.assign(Object.assign({},o),{debug:i?.eciesLayer})),this.communicationLayer.state.eciesInstance=this.myECIES,this.myPublicKey=this.myECIES.getPublicKey(),this.debug=i?.keyExchangeLayer===!0,n&&this.setOtherPublicKey(n),this.communicationLayer.on(ute.KEY_EXCHANGE,this.onKeyExchangeMessage.bind(this))}onKeyExchangeMessage(t){let{relayPersistence:n}=this.communicationLayer.remote.state;if(Qe.KeyExchange(`[KeyExchange: onKeyExchangeMessage()] context=${this.context} keysExchanged=${this.keysExchanged} relayPersistence=${n}`,t),n)return void Qe.KeyExchange(\"[KeyExchange: onKeyExchangeMessage()] Ignoring key exchange message because relay persistence is activated\");let{message:r}=t;this.keysExchanged&&Qe.KeyExchange(`[KeyExchange: onKeyExchangeMessage()] context=${this.context} received handshake while already exchanged. step=${this.step} otherPubKey=${this.otherPublicKey}`),this.emit(Rt.KEY_INFO,r.type),r.type===Pi.KEY_HANDSHAKE_SYN?(this.checkStep([Pi.KEY_HANDSHAKE_NONE,Pi.KEY_HANDSHAKE_ACK]),Qe.KeyExchange(\"[KeyExchange: onKeyExchangeMessage()] KEY_HANDSHAKE_SYN\",r),r.pubkey&&this.setOtherPublicKey(r.pubkey),this.communicationLayer.sendMessage({type:Pi.KEY_HANDSHAKE_SYNACK,pubkey:this.myPublicKey}).catch((o=>{Qe.KeyExchange(\"[KeyExchange: onKeyExchangeMessage()] Error sending KEY_HANDSHAKE_SYNACK\",o)})),this.setStep(Pi.KEY_HANDSHAKE_ACK)):r.type===Pi.KEY_HANDSHAKE_SYNACK?(this.checkStep([Pi.KEY_HANDSHAKE_SYNACK,Pi.KEY_HANDSHAKE_ACK,Pi.KEY_HANDSHAKE_NONE]),Qe.KeyExchange(\"[KeyExchange: onKeyExchangeMessage()] KEY_HANDSHAKE_SYNACK\"),r.pubkey&&this.setOtherPublicKey(r.pubkey),this.communicationLayer.sendMessage({type:Pi.KEY_HANDSHAKE_ACK}).catch((o=>{Qe.KeyExchange(\"[KeyExchange: onKeyExchangeMessage()] Error sending KEY_HANDSHAKE_ACK\",o)})),this.keysExchanged=!0,this.setStep(Pi.KEY_HANDSHAKE_ACK),this.emit(Rt.KEYS_EXCHANGED)):r.type===Pi.KEY_HANDSHAKE_ACK&&(Qe.KeyExchange(\"[KeyExchange: onKeyExchangeMessage()] KEY_HANDSHAKE_ACK set keysExchanged to true!\"),this.checkStep([Pi.KEY_HANDSHAKE_ACK,Pi.KEY_HANDSHAKE_NONE]),this.keysExchanged=!0,this.setStep(Pi.KEY_HANDSHAKE_ACK),this.emit(Rt.KEYS_EXCHANGED))}resetKeys(t){this.clean(),this.myECIES=new yH(t)}clean(){Qe.KeyExchange(`[KeyExchange: clean()] context=${this.context} reset handshake state`),this.setStep(Pi.KEY_HANDSHAKE_NONE),this.emit(Rt.KEY_INFO,this.step),this.keysExchanged=!1}start({isOriginator:t,force:n}){let{relayPersistence:r,protocolVersion:o}=this.communicationLayer.remote.state,i=o>=2;r?Qe.KeyExchange(\"[KeyExchange: start()] Ignoring key exchange message because relay persistence is activated\"):(Qe.KeyExchange(`[KeyExchange: start()] context=${this.context} protocolVersion=${o} isOriginator=${t} step=${this.step} force=${n} relayPersistence=${r} keysExchanged=${this.keysExchanged}`),t?!(this.keysExchanged||this.step!==Pi.KEY_HANDSHAKE_NONE&&this.step!==Pi.KEY_HANDSHAKE_SYNACK)||n?(Qe.KeyExchange(`[KeyExchange: start()] context=${this.context} -- start key exchange (force=${n}) -- step=${this.step}`,this.step),this.clean(),this.setStep(Pi.KEY_HANDSHAKE_SYNACK),this.communicationLayer.sendMessage({type:Pi.KEY_HANDSHAKE_SYN,pubkey:this.myPublicKey,v:2}).catch((a=>{Qe.KeyExchange(\"[KeyExchange: start()] Error sending KEY_HANDSHAKE_SYN\",a)}))):Qe.KeyExchange(`[KeyExchange: start()] context=${this.context} -- key exchange already ${this.keysExchanged?\"done\":\"in progress\"} -- aborted.`,this.step):this.keysExchanged&&n!==!0?Qe.KeyExchange(\"[KeyExchange: start()] don\\'t send KEY_HANDSHAKE_START -- exchange already done.\"):i?this.communicationLayer.sendMessage({type:Pi.KEY_HANDSHAKE_SYNACK,pubkey:this.myPublicKey,v:2}).catch((a=>{Qe.KeyExchange(\"[KeyExchange: start()] Error sending KEY_HANDSHAKE_SYNACK\",a)})):(this.communicationLayer.sendMessage({type:Pi.KEY_HANDSHAKE_START}).catch((a=>{Qe.KeyExchange(\"[KeyExchange: start()] Error sending KEY_HANDSHAKE_START\",a)})),this.clean()))}setStep(t){this.step=t,this.emit(Rt.KEY_INFO,t)}checkStep(t){t.length>0&&t.indexOf(this.step.toString())}setRelayPersistence({localKey:t,otherKey:n}){this.otherPublicKey=n,this.myECIES=new yH({privateKey:t,debug:this.debug}),this.keysExchanged=!0}setKeysExchanged(t){this.keysExchanged=t}areKeysExchanged(){return this.keysExchanged}getMyPublicKey(){return this.myPublicKey}getOtherPublicKey(){return this.otherPublicKey}setOtherPublicKey(t){Qe.KeyExchange(\"[KeyExchange: setOtherPubKey()]\",t),this.otherPublicKey=t}encryptMessage(t){if(!this.otherPublicKey)throw new Error(\"encryptMessage: Keys not exchanged - missing otherPubKey\");return this.myECIES.encrypt(t,this.otherPublicKey)}decryptMessage(t){if(!this.otherPublicKey)throw new Error(\"decryptMessage: Keys not exchanged - missing otherPubKey\");return this.myECIES.decrypt(t)}getKeyInfo(){return{ecies:Object.assign(Object.assign({},this.myECIES.getKeyInfo()),{otherPubKey:this.otherPublicKey}),step:this.step,keysExchanged:this.areKeysExchanged()}}toString(){let t={keyInfo:this.getKeyInfo(),keysExchanged:this.keysExchanged,step:this.step};return JSON.stringify(t)}};(function(e){e.TERMINATE=\"terminate\",e.ANSWER=\"answer\",e.OFFER=\"offer\",e.CANDIDATE=\"candidate\",e.JSONRPC=\"jsonrpc\",e.WALLET_INFO=\"wallet_info\",e.WALLET_INIT=\"wallet_init\",e.ORIGINATOR_INFO=\"originator_info\",e.PAUSE=\"pause\",e.OTP=\"otp\",e.AUTHORIZED=\"authorized\",e.PING=\"ping\",e.READY=\"ready\"})(Ds||(Ds={})),(function(e){e.REQUEST=\"sdk_connect_request_started\",e.REQUEST_MOBILE=\"sdk_connect_request_started_mobile\",e.RECONNECT=\"sdk_reconnect_request_started\",e.CONNECTED=\"sdk_connection_established\",e.CONNECTED_MOBILE=\"sdk_connection_established_mobile\",e.AUTHORIZED=\"sdk_connection_authorized\",e.REJECTED=\"sdk_connection_rejected\",e.TERMINATED=\"sdk_connection_terminated\",e.DISCONNECTED=\"sdk_disconnected\",e.SDK_USE_EXTENSION=\"sdk_use_extension\",e.SDK_RPC_REQUEST=\"sdk_rpc_request\",e.SDK_RPC_REQUEST_RECEIVED=\"sdk_rpc_request_received\",e.SDK_RPC_REQUEST_DONE=\"sdk_rpc_request_done\",e.SDK_EXTENSION_UTILIZED=\"sdk_extension_utilized\",e.SDK_USE_INAPP_BROWSER=\"sdk_use_inapp_browser\"})(ou||(ou={}));Mee=(e,t,n)=>pt(void 0,void 0,void 0,(function*(){var r,o,i,a,c,l;let{remote:d,state:m}=e,{channelId:h,isOriginator:g}=m;if(t===\"error_terminated\")return Qe.SocketService(`handleJoinChannelResults: Channel ${h} terminated`),void e.emit(Rt.TERMINATE);if(!n)return void Qe.SocketService(`handleJoinChannelResults: No result for channel ${h}`);let{persistence:y,walletKey:w,rejected:x}=n;if(Qe.SocketService(`handleJoinChannelResults: Channel ${h} persistence=${y} walletKey=${w} rejected=${x}`),x)return Qe.SocketService(`handleJoinChannelResults: Channel ${h} rejected`),yield e.remote.disconnect({terminate:!0}),e.remote.emit(Rt.REJECTED,{channelId:h}),void e.remote.emitServiceStatusEvent();if(w&&!(!((r=d.state.channelConfig)===null||r===void 0)&&r.otherKey)){e.getKeyExchange().setOtherPublicKey(w),(o=e.state.keyExchange)===null||o===void 0||o.setKeysExchanged(!0),d.state.ready=!0,d.state.authorized=!0,d.emit(Rt.AUTHORIZED);let{communicationLayer:I,storageManager:C}=d.state,M=Object.assign(Object.assign({},d.state.channelConfig),{channelId:(i=d.state.channelId)!==null&&i!==void 0?i:\"\",validUntil:Date.now()+mM,localKey:I?.getKeyInfo().ecies.private,otherKey:w});e.sendMessage({type:Pi.KEY_HANDSHAKE_ACK}).catch((B=>{})),(a=e.state.socket)===null||a===void 0||a.emit(Ds.PING,{id:h,clientType:g?\"dapp\":\"wallet\",context:\"on_channel_reconnect\",message:\"\"}),yield C?.persistChannelConfig(M),d.emitServiceStatusEvent(),d.setConnectionStatus(rd.LINKED)}y&&(e.emit(Rt.CHANNEL_PERSISTENCE),(c=e.state.keyExchange)===null||c===void 0||c.setKeysExchanged(!0),d.state.ready=!0,d.state.authorized=!0,d.emit(Rt.AUTHORIZED),nA(Object.assign(Object.assign({id:h??\"\",event:g?ou.CONNECTED:ou.CONNECTED_MOBILE},e.remote.state.originatorInfo),{sdkVersion:e.remote.state.sdkVersion,commLayer:e.state.communicationLayerPreference,commLayerVersion:rC.version,walletVersion:(l=e.remote.state.walletInfo)===null||l===void 0?void 0:l.version}),m.communicationServerUrl).catch((I=>{})))})),fM=e=>new Promise((t=>{setTimeout(t,e)})),y$e=(e,t,...n)=>pt(void 0,[e,t,...n],void 0,(function*(r,o,i=200){let a,c=Date.now(),l=!1;for(;!l;){if(l=Date.now()-c>3e5,a=o[r],a.elapsedTime!==void 0)return a;yield fM(i)}throw new Error(`RPC ${r} timed out`)})),Ybe=e=>pt(void 0,void 0,void 0,(function*(){let{state:t}=e,{socket:n,channelId:r,context:o,isOriginator:i,isReconnecting:a}=t;if(a)return Qe.SocketService(\"[SocketService: reconnectSocket()] Reconnection already in progress, skipping\",e),!1;if(!n)return Qe.SocketService(\"[SocketService: reconnectSocket()] socket is not defined\",e),!1;if(!r)return!1;let{connected:c}=n;t.isReconnecting=!0,t.reconnectionAttempts=0,Qe.SocketService(`[SocketService: reconnectSocket()] connected=${c} trying to reconnect after socketio disconnection`,e);try{for(;3>t.reconnectionAttempts;){if(Qe.SocketService(`[SocketService: reconnectSocket()] Attempt ${t.reconnectionAttempts+1} of 3`,e),yield fM(200),n.connected)return Qe.SocketService(\"Socket already connected --- ping to retrieve messages\"),n.emit(Ds.PING,{id:r,clientType:i?\"dapp\":\"wallet\",context:\"on_channel_config\",message:\"\"}),!0;t.resumed=!0,n.connect(),e.emit(Rt.SOCKET_RECONNECT);try{if(yield new Promise(((l,d)=>{n.emit(Rt.JOIN_CHANNEL,{channelId:r,context:`${o}connect_again`,clientType:i?\"dapp\":\"wallet\"},((m,h)=>pt(void 0,void 0,void 0,(function*(){try{yield Mee(e,m,h),l()}catch(g){d(g)}}))))})),yield fM(100),n.connected)return Qe.SocketService(`Reconnection successful on attempt ${t.reconnectionAttempts+1}`),!0}catch(l){Qe.SocketService(`Error during reconnection attempt ${t.reconnectionAttempts+1}:`,l)}t.reconnectionAttempts+=1,3>t.reconnectionAttempts&&(yield fM(200))}return Qe.SocketService(\"Failed to reconnect after 3 attempts\"),!1}finally{t.isReconnecting=!1,t.reconnectionAttempts=0}}));(function(e){e.RPC_CHECK=\"rpcCheck\",e.SKIPPED_RPC=\"skippedRpc\"})(cM||(cM={}));snt=[\"eth_sendTransaction\",\"eth_signTypedData\",\"eth_signTransaction\",\"personal_sign\",\"wallet_requestPermissions\",\"wallet_switchEthereumChain\",\"eth_signTypedData_v3\",\"eth_signTypedData_v4\",\"metamask_connectSign\",\"metamask_connectWith\",\"metamask_batch\"].map((e=>e.toLowerCase())),k9t=[{event:Rt.CLIENTS_CONNECTED,handler:function(e,t){return n=>pt(this,void 0,void 0,(function*(){var r,o,i,a,c,l,d,m,h,g,y;let w=(o=(r=e.remote.state.channelConfig)===null||r===void 0?void 0:r.relayPersistence)!==null&&o!==void 0&&o;if(Qe.SocketService(`[SocketService: handleClientsConnected()] context=${e.state.context} on \\'clients_connected-${t}\\' relayPersistence=${w} resumed=${e.state.resumed}  clientsPaused=${e.state.clientsPaused} keysExchanged=${(i=e.state.keyExchange)===null||i===void 0?void 0:i.areKeysExchanged()} isOriginator=${e.state.isOriginator}`),e.emit(Rt.CLIENTS_CONNECTED,{isOriginator:e.state.isOriginator,keysExchanged:(a=e.state.keyExchange)===null||a===void 0?void 0:a.areKeysExchanged(),context:e.state.context}),e.state.resumed)e.state.isOriginator||(Qe.SocketService(`[SocketService: handleClientsConnected()] context=${e.state.context} \\'clients_connected\\' / keysExchanged=${(c=e.state.keyExchange)===null||c===void 0?void 0:c.areKeysExchanged()} -- backward compatibility`),(l=e.state.keyExchange)===null||l===void 0||l.start({isOriginator:(d=e.state.isOriginator)!==null&&d!==void 0&&d})),e.state.resumed=!1;else if(e.state.clientsPaused)Qe.SocketService(\"[SocketService: handleClientsConnected()] \\'clients_connected\\' skip sending originatorInfo on pause\");else if(!e.state.isOriginator){let x=!w;Qe.SocketService(`[SocketService: handleClientsConnected()] context=${e.state.context} on \\'clients_connected\\' / keysExchanged=${(m=e.state.keyExchange)===null||m===void 0?void 0:m.areKeysExchanged()} -- force=${x} -- backward compatibility`),Qe.SocketService(`[SocketService: handleClientsConnected()] context=${e.state.context} on \\'clients_connected\\' / keysExchanged=${(h=e.state.keyExchange)===null||h===void 0?void 0:h.areKeysExchanged()} -- force=${x} -- backward compatibility`),(g=e.state.keyExchange)===null||g===void 0||g.start({isOriginator:(y=e.state.isOriginator)!==null&&y!==void 0&&y,force:x})}e.state.clientsConnected=!0,e.state.clientsPaused=!1}))}},{event:Rt.CHANNEL_CREATED,handler:function(e,t){return n=>{Qe.SocketService(`[SocketService: handleChannelCreated()] context=${e.state.context} on \\'channel_created-${t}\\'`,n),e.emit(Rt.CHANNEL_CREATED,n)}}},{event:Rt.CLIENTS_DISCONNECTED,handler:function(e,t){return()=>{var n;e.state.clientsConnected=!1,Qe.SocketService(`[SocketService: handlesClientsDisconnected()] context=${e.state.context} on \\'clients_disconnected-${t}\\'`),e.remote.state.relayPersistence?Qe.SocketService(`[SocketService: handlesClientsDisconnected()] context=${e.state.context} on \\'clients_disconnected-${t}\\' - relayPersistence enabled, skipping key exchange cleanup.`):(e.state.isOriginator&&!e.state.clientsPaused&&((n=e.state.keyExchange)===null||n===void 0||n.clean()),e.emit(Rt.CLIENTS_DISCONNECTED,t))}}},{event:Rt.CONFIG,handler:function(e,t){return n=>pt(this,void 0,void 0,(function*(){var r,o,i;Qe.SocketService(`[SocketService: handleChannelConfig()] update relayPersistence on \\'config-${t}\\'`,n);let{persistence:a,walletKey:c}=n;e.state.isOriginator&&e.remote.state.channelConfig?(n.walletKey&&!e.remote.state.channelConfig.otherKey&&(Qe.SocketService(`Setting wallet key ${c}`),e.remote.state.channelConfig.otherKey=c,e.getKeyExchange().setOtherPublicKey(n.walletKey),(r=e.state.keyExchange)===null||r===void 0||r.setKeysExchanged(!0),yield e.remote.sendMessage({type:Pi.KEY_HANDSHAKE_ACK}),yield e.remote.sendMessage({type:Ds.PING}),yield(o=e.remote.state.storageManager)===null||o===void 0?void 0:o.persistChannelConfig(e.remote.state.channelConfig)),a!==!0||e.remote.state.channelConfig.relayPersistence||(Qe.SocketService(`Setting relay persistence ${a}`),e.remote.state.channelConfig.relayPersistence=a,e.remote.state.relayPersistence=!0,e.remote.emit(Rt.CHANNEL_PERSISTENCE),e.remote.state.authorized=!0,e.remote.state.ready=!0,e.remote.emit(Rt.AUTHORIZED),yield(i=e.remote.state.storageManager)===null||i===void 0?void 0:i.persistChannelConfig(e.remote.state.channelConfig))):e.state.isOriginator||n.persistence&&(e.remote.state.relayPersistence=!0,e.remote.emit(Rt.CHANNEL_PERSISTENCE))}))}},{event:Rt.MESSAGE,handler:function(e,t){return n=>{var r,o,i,a,c,l,d,m,h,g,y,w,x,I,C,M,B,z;let{ackId:G,message:J,error:ne}=n,ie=(r=e.remote.state.relayPersistence)!==null&&r!==void 0&&r;if(Qe.SocketService(`[SocketService handleMessage()]  relayPersistence=${ie}  context=${e.state.context} on \\'message\\' ${t} keysExchanged=${(o=e.state.keyExchange)===null||o===void 0?void 0:o.areKeysExchanged()}`,n),ne)throw Qe.SocketService(`\\n      [SocketService handleMessage()] context=${e.state.context}::on \\'message\\' error=${ne}`),new Error(ne);let ae=typeof J==\"string\";if(!ae&&J?.type===Pi.KEY_HANDSHAKE_START)return ie?void 0:(Qe.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on \\'message\\' received HANDSHAKE_START isOriginator=${e.state.isOriginator}`,J),void((i=e.state.keyExchange)===null||i===void 0||i.start({isOriginator:(a=e.state.isOriginator)!==null&&a!==void 0&&a,force:!0})));if(!ae&&(!((c=J?.type)===null||c===void 0)&&c.startsWith(\"key_handshake\")))return ie?void 0:(Qe.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on \\'message\\' emit KEY_EXCHANGE`,J),void e.emit(ute.KEY_EXCHANGE,{message:J,context:e.state.context}));if(ae&&!(!((l=e.state.keyExchange)===null||l===void 0)&&l.areKeysExchanged())){let X=!1;try{Qe.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on \\'message\\' trying to decrypt message`),(d=e.state.keyExchange)===null||d===void 0||d.decryptMessage(J),X=!0}catch(F){Qe.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on \\'message\\' error`,F)}if(!X)return e.state.isOriginator?(h=e.state.keyExchange)===null||h===void 0||h.start({isOriginator:(g=e.state.isOriginator)!==null&&g!==void 0&&g}):e.sendMessage({type:Pi.KEY_HANDSHAKE_START}).catch((F=>{})),void Qe.SocketService(`Message ignored because invalid key exchange status. step=${(y=e.state.keyExchange)===null||y===void 0?void 0:y.getKeyInfo().step}`,(w=e.state.keyExchange)===null||w===void 0?void 0:w.getKeyInfo(),J);Qe.SocketService(\"Invalid key exchange status detected --- updating it.\"),(m=e.state.keyExchange)===null||m===void 0||m.setKeysExchanged(!0)}else if(!ae&&J?.type)return void e.emit(Rt.MESSAGE,J);if(!ae)return void e.emit(Rt.MESSAGE,J);let te=(x=e.state.keyExchange)===null||x===void 0?void 0:x.decryptMessage(J),Z=JSON.parse(te??\"{}\");if(G&&G?.length>0&&(Qe.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on \\'message\\' ackid=${G} channelId=${t}`),(I=e.state.socket)===null||I===void 0||I.emit(Rt.MESSAGE_ACK,{ackId:G,channelId:t,clientType:e.state.isOriginator?\"dapp\":\"wallet\"})),e.state.clientsPaused=Z?.type===Ds.PAUSE,e.state.isOriginator&&Z.data){let X=Z.data,F=e.state.rpcMethodTracker[X.id];if(F){let R=Date.now()-F.timestamp;Qe.SocketService(`[SocketService handleMessage()] context=${e.state.context}::on \\'message\\' received answer for id=${X.id} method=${F.method} responseTime=${R}`,Z),e.remote.state.analytics&&snt.includes(F.method.toLowerCase())&&nA(Object.assign(Object.assign({id:(C=e.remote.state.channelId)!==null&&C!==void 0?C:\"\",event:ou.SDK_RPC_REQUEST_DONE,sdkVersion:e.remote.state.sdkVersion,commLayerVersion:rC.version},e.remote.state.originatorInfo),{walletVersion:(M=e.remote.state.walletInfo)===null||M===void 0?void 0:M.version,params:{method:F.method,from:\"mobile\"}}),e.remote.state.communicationServerUrl).catch((U=>{})),WH(F.method)&&Oc.analytics.track(X.error?X.error.code===4001?\"sdk_action_rejected\":\"sdk_action_failed\":\"sdk_action_succeeded\",{action:F.method});let O=Object.assign(Object.assign({},F),{result:X.result,error:X.error?{code:(B=X.error)===null||B===void 0?void 0:B.code,message:(z=X.error)===null||z===void 0?void 0:z.message}:void 0,elapsedTime:R});e.state.rpcMethodTracker[X.id]=O,e.emit(Rt.RPC_UPDATE,O)}}e.emit(Rt.MESSAGE,{message:Z})}}},{event:Rt.REJECTED,handler:function(e,t){return n=>pt(this,void 0,void 0,(function*(){var r;e.state.isOriginator&&!e.remote.state.ready?(Qe.SocketService(`[SocketService: handleChannelRejected()] context=${e.state.context} channelId=${t} isOriginator=${e.state.isOriginator} ready=${e.remote.state.ready}`,e.remote.state.originatorInfo),nA(Object.assign(Object.assign({id:t,event:ou.REJECTED},e.remote.state.originatorInfo),{sdkVersion:e.remote.state.sdkVersion,commLayer:e.state.communicationLayerPreference,commLayerVersion:rC.version,walletVersion:(r=e.remote.state.walletInfo)===null||r===void 0?void 0:r.version}),e.remote.state.communicationServerUrl).catch((o=>{})),Oc.analytics.track(\"sdk_connection_rejected\",{transport_type:\"websocket\"}),yield e.remote.disconnect({terminate:!0}),e.remote.emit(Rt.REJECTED,{channelId:t}),e.remote.setConnectionStatus(rd.DISCONNECTED)):Qe.SocketService(`[SocketService: handleChannelRejected()] SKIP -- channelId=${t} isOriginator=${e.state.isOriginator} ready=${e.remote.state.ready}`)}))}},{event:\"clients_waiting_to_join\",handler:function(e,t){return n=>{Qe.SocketService(`[SocketService: handleClientsWaitingToJoin()] context=${e.state.context} on \\'clients_waiting_to_join-${t}\\'`,n),e.emit(Rt.CLIENTS_WAITING,n)}}}],O9t=[{event:Rt.KEY_INFO,handler:function(e){return t=>{Qe.SocketService(\"[SocketService: handleKeyInfo()] on \\'KEY_INFO\\'\",t),e.emit(Rt.KEY_INFO,t)}}},{event:Rt.KEYS_EXCHANGED,handler:function(e){return()=>{var t,n,r;Qe.SocketService(`[SocketService: handleKeysExchanged()] on \\'keys_exchanged\\' keyschanged=${(t=e.state.keyExchange)===null||t===void 0?void 0:t.areKeysExchanged()}`);let{channelConfig:o}=e.remote.state;if(o){let a=e.getKeyExchange().getKeyInfo().ecies;o.localKey=a.private,o.otherKey=a.otherPubKey,e.remote.state.channelConfig=o,(n=e.remote.state.storageManager)===null||n===void 0||n.persistChannelConfig(o).catch((c=>{}))}e.emit(Rt.KEYS_EXCHANGED,{keysExchanged:(r=e.state.keyExchange)===null||r===void 0?void 0:r.areKeysExchanged(),isOriginator:e.state.isOriginator});let i={keyInfo:e.getKeyInfo()};e.emit(Rt.SERVICE_STATUS,i)}}}];Zbe=class extends bM.EventEmitter2{constructor(t){super(),this.state={clientsConnected:!1,clientsPaused:!1,manualDisconnect:!1,lastRpcId:void 0,rpcMethodTracker:{},hasPlaintext:!1,communicationServerUrl:\"\",focusListenerAdded:!1,removeFocusListener:void 0,isReconnecting:!1,reconnectionAttempts:0},this.options=t;let{reconnect:n,communicationLayerPreference:r,communicationServerUrl:o,context:i,remote:a,logging:c}=t;this.state.resumed=n,this.state.context=i,this.state.isOriginator=a.state.isOriginator,this.state.communicationLayerPreference=r,this.state.debug=c?.serviceLayer===!0,this.remote=a,c?.serviceLayer===!0&&Vf.default.enable(\"SocketService:Layer\"),this.state.communicationServerUrl=o,this.state.hasPlaintext=this.state.communicationServerUrl!==rI&&c?.plaintext===!0,Qe.SocketService(`[SocketService: constructor()] Socket IO url: ${this.state.communicationServerUrl}`),this.initSocket()}initSocket(){var t;let{otherPublicKey:n,ecies:r,logging:o}=this.options,i={autoConnect:!1,transports:C9t,withCredentials:!0},a=this.state.communicationServerUrl;Qe.SocketService(`[SocketService: initSocket()] Socket IO url: ${a}`),this.state.socket=aH(a,i),(function(l){if(typeof window<\"u\"&&typeof document<\"u\"&&(Qe.SocketService(`[SocketService: setupSocketFocusListener()] hasFocus=${document.hasFocus()}`,l),!l.state.focusListenerAdded)){let d=()=>{Qe.SocketService(\"Document has focus --- reconnecting socket\"),Ybe(l).catch((m=>{}))};window.addEventListener(\"focus\",d),l.state.focusListenerAdded=!0,l.state.removeFocusListener=()=>{window.removeEventListener(\"focus\",d),l.state.focusListenerAdded=!1}}})(this);let c={communicationLayer:this,otherPublicKey:n,sendPublicKey:!1,context:(t=this.state.context)!==null&&t!==void 0?t:\"\",ecies:r,logging:o};this.state.keyExchange=new Kbe(c)}resetKeys(){return Qe.SocketService(\"[SocketService: resetKeys()] Resetting keys.\"),void((t=this.state.keyExchange)===null||t===void 0||t.resetKeys());var t}createChannel(){return pt(this,void 0,void 0,(function*(){return(function(t){return pt(this,void 0,void 0,(function*(){var n,r,o;if(Qe.SocketService(`[SocketService: createChannel()] context=${t.state.context}`),t.state.socket||t.initSocket(),(n=t.state.socket)===null||n===void 0?void 0:n.connected)throw new Error(\"socket already connected\");(r=t.state.socket)===null||r===void 0||r.connect(),t.state.manualDisconnect=!1,t.state.isOriginator=!0;let i=g1();t.state.channelId=i,b$e(t,i),yield new Promise(((c,l)=>{var d;(d=t.state.socket)===null||d===void 0||d.emit(Rt.JOIN_CHANNEL,{channelId:i,context:`${t.state.context}createChannel`,clientType:\"dapp\"},((m,h)=>pt(this,void 0,void 0,(function*(){try{yield Mee(t,m,h),c()}catch(g){l(g)}}))))}));let a=(o=t.state.keyExchange)===null||o===void 0?void 0:o.getKeyInfo();return{channelId:i,pubKey:a?.ecies.public||\"\",privKey:a?.ecies.private||\"\"}}))})(this)}))}connectToChannel({channelId:t,withKeyExchange:n=!1,authorized:r}){return(function(o){return pt(this,arguments,void 0,(function*({options:i,instance:a}){let{channelId:c,authorized:l,withKeyExchange:d}=i,{state:m,remote:h}=a,{isOriginator:g=!1,socket:y,keyExchange:w}=m,{channelConfig:x}=h.state;if(y?.connected)throw new Error(\"socket already connected\");if(g&&x?.relayPersistence){let{localKey:I,otherKey:C}=x;I&&C&&w?.setRelayPersistence({localKey:I,otherKey:C})}return Object.assign(m,{manualDisconnect:!1,withKeyExchange:d,isOriginator:g,channelId:c}),y?.connect(),b$e(a,c),!g&&l&&(w?.setKeysExchanged(!0),Object.assign(h.state,{ready:!0,authorized:!0})),new Promise((I=>{var C;let M=(C=w?.getKeyInfo())===null||C===void 0?void 0:C.ecies.public;y?.emit(Rt.JOIN_CHANNEL,{channelId:c,context:`${m.context}_connectToChannel`,clientType:g?\"dapp\":\"wallet\",publicKey:l&&!g?M:void 0},((B,z)=>pt(this,void 0,void 0,(function*(){yield Mee(a,B,z),I()}))))}))}))})({options:{channelId:t,withKeyExchange:n,authorized:r},instance:this})}getKeyInfo(){return this.state.keyExchange.getKeyInfo()}keyCheck(){var t,n;(n=(t=this).state.socket)===null||n===void 0||n.emit(Rt.MESSAGE,{id:t.state.channelId,context:t.state.context,message:{type:Pi.KEY_HANDSHAKE_CHECK,pubkey:t.getKeyInfo().ecies.otherPubKey}})}getKeyExchange(){return this.state.keyExchange}sendMessage(t){return pt(this,void 0,void 0,(function*(){return(function(n,r){return pt(this,void 0,void 0,(function*(){var o,i,a;if(!n.state.channelId)throw Qe.SocketService(\"handleSendMessage: no channelId - Create a channel first\"),new Error(\"Create a channel first\");if(Qe.SocketService(`[SocketService: handleSendMessage()] context=${n.state.context} areKeysExchanged=${(o=n.state.keyExchange)===null||o===void 0?void 0:o.areKeysExchanged()}`,r),(i=r?.type)===null||i===void 0?void 0:i.startsWith(\"key_handshake\"))return(function(l,d){var m;Qe.SocketService(`[SocketService: handleKeyHandshake()] context=${l.state.context}`,d),(m=l.state.socket)===null||m===void 0||m.emit(Rt.MESSAGE,{id:l.state.channelId,context:l.state.context,clientType:l.state.isOriginator?\"dapp\":\"wallet\",message:d})})(n,r),!0;(function(l,d){var m;if(!(!((m=l.state.keyExchange)===null||m===void 0)&&m.areKeysExchanged())&&!l.remote.state.relayPersistence)throw Qe.SocketService(`[SocketService: validateKeyExchange()] context=${l.state.context} ERROR keys not exchanged`,d),new Error(\"Keys not exchanged BBB\")})(n,r),(function(l,d){var m;let h=(m=d?.method)!==null&&m!==void 0?m:\"\",g=d?.id;l.state.isOriginator&&g&&(l.state.rpcMethodTracker[g]={id:g,timestamp:Date.now(),method:h},l.emit(Rt.RPC_UPDATE,l.state.rpcMethodTracker[g]))})(n,r);let c=yield ant(n,r);return n.remote.state.analytics&&n.remote.state.isOriginator&&r.method&&snt.includes(r.method.toLowerCase())&&nA({id:(a=n.remote.state.channelId)!==null&&a!==void 0?a:\"\",event:ou.SDK_RPC_REQUEST,params:{method:r.method,from:\"mobile\"}},n.remote.state.communicationServerUrl).catch((l=>{})),n.remote.state.isOriginator&&r.method&&WH(r.method)&&Oc.analytics.track(\"sdk_action_requested\",{action:r.method}),(function(l,d){return pt(this,void 0,void 0,(function*(){var m;let h=d?.id,g=(m=d?.method)!==null&&m!==void 0?m:\"\";if(l.state.isOriginator&&h)try{let y=y$e(h,l.state.rpcMethodTracker,200).then((I=>({type:cM.RPC_CHECK,result:I}))),w=pt(this,void 0,void 0,(function*(){let I=yield(M=>pt(void 0,[M],void 0,(function*({rpcId:B,instance:z}){for(;z.state.lastRpcId===B||z.state.lastRpcId===void 0;)yield fM(200);return z.state.lastRpcId})))({instance:l,rpcId:h}),C=yield y$e(I,l.state.rpcMethodTracker,200);return{type:cM.SKIPPED_RPC,result:C}})),x=yield Promise.race([y,w]);if(x.type===cM.RPC_CHECK){let I=x.result;Qe.SocketService(`[SocketService:handleRpcReplies()] id=${d.id} ${g} ( ${I.elapsedTime} ms)`,I.result)}else{if(x.type!==cM.SKIPPED_RPC)throw new Error(`Error handling RPC replies for ${h}`);{let I=Object.assign(Object.assign({},l.state.rpcMethodTracker[h]),{error:new Error(\"SDK_CONNECTION_ISSUE\")});l.emit(Rt.RPC_UPDATE,I);let C={data:Object.assign(Object.assign({},I),{jsonrpc:\"2.0\"}),name:\"metamask-provider\"};l.emit(Rt.MESSAGE,{message:C})}}}catch(y){throw y}}))})(n,r).catch((l=>{})),c}))})(this,t)}))}ping(){return(function(t){return pt(this,void 0,void 0,(function*(){var n,r;Qe.SocketService(`[SocketService: ping()] context=${t.state.context} originator=${t.state.isOriginator} keysExchanged=${(n=t.state.keyExchange)===null||n===void 0?void 0:n.areKeysExchanged()}`),(r=t.state.socket)===null||r===void 0||r.emit(Ds.PING,{id:t.state.channelId,context:\"ping\",clientType:t.remote.state.isOriginator?\"dapp\":\"wallet\",message:\"\"})}))})(this)}pause(){return(function(t){return pt(this,void 0,void 0,(function*(){var n,r;Qe.SocketService(`[SocketService: pause()] context=${t.state.context}`),t.state.manualDisconnect=!0,!((n=t.state.keyExchange)===null||n===void 0)&&n.areKeysExchanged()&&(yield t.sendMessage({type:Ds.PAUSE})),(r=t.state.socket)===null||r===void 0||r.disconnect()}))})(this)}isConnected(){var t;return(t=this.state.socket)===null||t===void 0?void 0:t.connected}resume(){return(function(t){return pt(this,void 0,void 0,(function*(){let{state:n,remote:r}=t,{socket:o,channelId:i,context:a,keyExchange:c,isOriginator:l}=n,{isOriginator:d}=r.state;if(Qe.SocketService(`[SocketService: resume()] channelId=${i} context=${a} connected=${o?.connected} manualDisconnect=${n.manualDisconnect} resumed=${n.resumed} keysExchanged=${c?.areKeysExchanged()}`),!i)throw Qe.SocketService(\"[SocketService: resume()] channelId is not defined\"),new Error(\"ChannelId is not defined\");o?.connected?(Qe.SocketService(\"[SocketService: resume()] already connected.\"),o.emit(Ds.PING,{id:i,clientType:d?\"dapp\":\"wallet\",context:\"on_channel_config\",message:\"\"}),r.hasRelayPersistence()||c?.areKeysExchanged()||(l?yield t.sendMessage({type:Ds.READY}):c?.start({isOriginator:!1}))):(o?.connect(),Qe.SocketService(`[SocketService: resume()] after connecting socket --> connected=${o?.connected}`),o?.emit(Rt.JOIN_CHANNEL,{channelId:i,context:`${a}_resume`,clientType:d?\"dapp\":\"wallet\"},((m,h)=>pt(this,void 0,void 0,(function*(){try{yield Mee(t,m,h)}catch{}}))))),n.manualDisconnect=!1,n.resumed=!0}))})(this)}getRPCMethodTracker(){return this.state.rpcMethodTracker}disconnect(t){return(function(n,r){var o,i,a,c,l;Qe.SocketService(`[SocketService: disconnect()] context=${n.state.context}`,r),r?.terminate&&((i=(o=n.state).removeFocusListener)===null||i===void 0||i.call(o),n.state.channelId=r.channelId,(a=n.state.socket)===null||a===void 0||a.removeAllListeners(),(c=n.state.keyExchange)===null||c===void 0||c.clean(),n.remote.state.ready=!1,n.state.socket=void 0,n.state.rpcMethodTracker={}),n.state.manualDisconnect=!0,(l=n.state.socket)===null||l===void 0||l.disconnect()})(this,t)}};(oC||(oC={})).SOCKET=\"socket\",(function(e){e.NonBrowser=\"nodejs\",e.MetaMaskMobileWebview=\"in-app-browser\",e.DesktopWeb=\"web-desktop\",e.MobileWeb=\"web-mobile\",e.ReactNative=\"react-native\"})(Gd||(Gd={}));Qbe=class extends bM.EventEmitter2{constructor(t){super(),this.state={ready:!1,anonId:\"\",authorized:!1,isOriginator:!1,terminated:!1,protocolVersion:1,paused:!1,deeplinkProtocolAvailable:!1,platformType:\"metamask-mobile\",analytics:!1,reconnection:!1,originatorInfoSent:!1,communicationServerUrl:rI,context:\"\",persist:!1,clientsConnected:!1,sessionDuration:mM,originatorConnectStarted:!1,debug:!1,_connectionStatus:rd.DISCONNECTED},this._options=t;let{anonId:n,platformType:r,communicationLayerPreference:o,otherPublicKey:i,reconnect:a,walletInfo:c,dappMetadata:l,protocolVersion:d,transports:m,context:h,relayPersistence:g,ecies:y,analytics:w=!1,storage:x,sdkVersion:I,communicationServerUrl:C=rI,logging:M,autoConnect:B={timeout:R9t}}=t;this.state.anonId=n,this.state.otherPublicKey=i,this.state.dappMetadata=l,this.state.walletInfo=c,this.state.transports=m,this.state.platformType=r,this.state.analytics=w,this.state.protocolVersion=d??1,this.state.isOriginator=!i,this.state.relayPersistence=g,this.state.communicationServerUrl=C,this.state.context=h,this.state.terminated=!1,this.state.sdkVersion=I,this.setMaxListeners(50),this.setConnectionStatus(rd.DISCONNECTED),x?.duration&&(this.state.sessionDuration=mM),this.state.storageOptions=x,this.state.autoConnectOptions=B,this.state.debug=M?.remoteLayer===!0,M?.remoteLayer===!0&&Vf.default.enable(\"RemoteCommunication:Layer\"),M?.serviceLayer===!0&&Vf.default.enable(\"SocketService:Layer\"),M?.eciesLayer===!0&&Vf.default.enable(\"ECIES:Layer\"),M?.keyExchangeLayer===!0&&Vf.default.enable(\"KeyExchange:Layer\"),this.state.logging=M,x?.storageManager&&(this.state.storageManager=x.storageManager),Qe.RemoteCommunication(`[RemoteCommunication: constructor()] protocolVersion=${d} relayPersistence=${g} isOriginator=${this.state.isOriginator} communicationLayerPreference=${o} otherPublicKey=${i} reconnect=${a}`),this.state.isOriginator||w$e({communicationLayerPreference:o,otherPublicKey:i,reconnect:a,ecies:y,communicationServerUrl:C,instance:this}),this.emitServiceStatusEvent({context:\"constructor\"})}initFromDappStorage(){return pt(this,void 0,void 0,(function*(){var t;if(this.state.storageManager){let n=yield this.state.storageManager.getPersistedChannelConfig({});n&&(this.state.channelConfig=n,this.state.channelId=n.channelId,this.state.deeplinkProtocolAvailable=(t=n.deeplinkProtocolAvailable)!==null&&t!==void 0&&t,n.relayPersistence&&(this.state.authorized=!0,this.state.ready=!0,this.setConnectionStatus(rd.LINKED),yield this.connectToChannel({channelId:n.channelId})))}w$e({communicationLayerPreference:oC.SOCKET,otherPublicKey:this.state.otherPublicKey,reconnect:this._options.reconnect,ecies:this._options.ecies,communicationServerUrl:this.state.communicationServerUrl,instance:this})}))}originatorSessionConnect(){return pt(this,void 0,void 0,(function*(){return yield(function(t){return pt(this,void 0,void 0,(function*(){var n;let{state:r}=t;if(!r.storageManager)return void Qe.RemoteCommunication(\"[RemoteCommunication: originatorSessionConnect()] no storage manager defined - skip\");let o=yield r.storageManager.getPersistedChannelConfig({});if(Qe.RemoteCommunication(`[RemoteCommunication: originatorSessionConnect()] autoStarted=${r.originatorConnectStarted} channelConfig`,o),(n=r.communicationLayer)===null||n===void 0?void 0:n.isConnected())return Qe.RemoteCommunication(\"[RemoteCommunication: originatorSessionConnect()] socket already connected - skip\"),o;if(o){if(o.validUntil>Date.now())return r.channelConfig=o,r.originatorConnectStarted=!0,r.channelId=o?.channelId,r.reconnection=!0,o;Qe.RemoteCommunication(\"[RemoteCommunication: autoConnect()] Session has expired\")}r.originatorConnectStarted=!1}))})(this)}))}generateChannelIdConnect(){return pt(this,void 0,void 0,(function*(){return(function(t){return pt(this,void 0,void 0,(function*(){var n,r,o,i,a,c;if(!t.communicationLayer)throw new Error(\"communication layer not initialized\");if(t.ready)throw new Error(\"Channel already connected\");if(t.channelId&&(!((n=t.communicationLayer)===null||n===void 0)&&n.isConnected()))return t.channelConfig=Object.assign(Object.assign({},t.channelConfig),{channelId:t.channelId,validUntil:Date.now()+t.sessionDuration}),(r=t.storageManager)===null||r===void 0||r.persistChannelConfig(t.channelConfig),{channelId:t.channelId,privKey:(i=(o=t.communicationLayer)===null||o===void 0?void 0:o.getKeyInfo())===null||i===void 0?void 0:i.ecies.private,pubKey:(c=(a=t.communicationLayer)===null||a===void 0?void 0:a.getKeyInfo())===null||c===void 0?void 0:c.ecies.public};Qe.RemoteCommunication(\"[RemoteCommunication: generateChannelId()]\");let l=yield t.communicationLayer.createChannel();Qe.RemoteCommunication(\"[RemoteCommunication: generateChannelId()] channel created\",l);let d=Object.assign(Object.assign({},t.channelConfig),{channelId:l.channelId,localKey:l.privKey,validUntil:Date.now()+t.sessionDuration});return t.channelId=l.channelId,t.channelConfig=d,{channelId:t.channelId,pubKey:l.pubKey,privKey:l.privKey}}))})(this.state)}))}clean(){return int(this.state)}connectToChannel({channelId:t,withKeyExchange:n,authorized:r}){return(function(o){return pt(this,arguments,void 0,(function*({channelId:i,withKeyExchange:a,authorized:c,state:l}){var d,m,h;if(!m1(i))throw Qe.RemoteCommunication(`[RemoteCommunication: connectToChannel()] context=${l.context} invalid channel channelId=${i}`),new Error(`Invalid channel ${i}`);if(Qe.RemoteCommunication(`[RemoteCommunication: connectToChannel()] context=${l.context} channelId=${i} withKeyExchange=${a}`),(d=l.communicationLayer)===null||d===void 0?void 0:d.isConnected())return void Qe.RemoteCommunication(`[RemoteCommunication: connectToChannel()] context=${l.context} already connected - interrupt connection.`);l.channelId=i,yield(m=l.communicationLayer)===null||m===void 0?void 0:m.connectToChannel({channelId:i,authorized:c,withKeyExchange:a});let g=Object.assign(Object.assign({},l.channelConfig),{channelId:i,validUntil:Date.now()+l.sessionDuration});l.channelConfig=g,(h=l.storageManager)===null||h===void 0||h.persistChannelConfig(g)}))})({channelId:t,authorized:r,withKeyExchange:n,state:this.state})}sendMessage(t){return pt(this,void 0,void 0,(function*(){let n=this.state.isOriginator&&t.method&&WH(t.method);n&&Oc.analytics.track(\"sdk_action_requested\",{action:t.method});try{return yield(function(r,o){return pt(this,void 0,void 0,(function*(){var i,a;let{state:c}=r;Qe.RemoteCommunication(`[RemoteCommunication: sendMessage()] context=${c.context} paused=${c.paused} ready=${c.ready} relayPersistence=${c.relayPersistence} authorized=${c.authorized} socket=${(i=c.communicationLayer)===null||i===void 0?void 0:i.isConnected()} clientsConnected=${c.clientsConnected} status=${c._connectionStatus}`,o),c.relayPersistence||c.ready&&(!((a=c.communicationLayer)===null||a===void 0)&&a.isConnected())&&c.clientsConnected||(Qe.RemoteCommunication(`[RemoteCommunication: sendMessage()] context=${c.context}  SKIP message waiting for MM mobile readiness.`),yield new Promise((l=>{r.once(Rt.CLIENTS_READY,l)})),Qe.RemoteCommunication(`[RemoteCommunication: sendMessage()] context=${c.context}  AFTER SKIP / READY -- sending pending message`));try{return yield(function(d,m){return pt(this,void 0,void 0,(function*(){return new Promise((h=>{var g;let{state:y}=d;Qe.RemoteCommunication(`[RemoteCommunication: handleAuthorization()] context=${y.context} ready=${y.ready} authorized=${y.authorized} method=${m.method}`),!y.isOriginator||y.authorized||y.relayPersistence?(g=y.communicationLayer)===null||g===void 0||g.sendMessage(m).then((w=>{h(w)})).catch((w=>{h(!1)})):d.once(Rt.AUTHORIZED,(()=>{var w;Qe.RemoteCommunication(`[RemoteCommunication: handleAuthorization()] context=${y.context}  AFTER SKIP / AUTHORIZED -- sending pending message`),(w=y.communicationLayer)===null||w===void 0||w.sendMessage(m).then((x=>{h(x)})).catch((x=>{h(!1)}))}))}))}))})(r,o)}catch(l){throw l}}))})(this,t)}catch(r){throw n&&Oc.analytics.track(\"sdk_action_failed\",{action:t.method}),r}}))}testStorage(){return pt(this,void 0,void 0,(function*(){return(function(t){return pt(this,void 0,void 0,(function*(){var n;let r=yield(n=t.storageManager)===null||n===void 0?void 0:n.getPersistedChannelConfig();Qe.RemoteCommunication(\"[RemoteCommunication: testStorage()] res\",r)}))})(this.state)}))}hasDeeplinkProtocol(){return this.state.deeplinkProtocolAvailable}getChannelConfig(){return this.state.channelConfig}isReady(){return this.state.ready}isConnected(){var t;return(t=this.state.communicationLayer)===null||t===void 0?void 0:t.isConnected()}isAuthorized(){return this.state.authorized}isPaused(){return this.state.paused}getCommunicationLayer(){return this.state.communicationLayer}ping(){return pt(this,void 0,void 0,(function*(){var t;Qe.RemoteCommunication(`[RemoteCommunication: ping()] channel=${this.state.channelId}`),yield(t=this.state.communicationLayer)===null||t===void 0?void 0:t.ping()}))}testLogger(){Qe.RemoteCommunication(`testLogger() channel=${this.state.channelId}`),Qe.SocketService(`testLogger() channel=${this.state.channelId}`),Qe.Ecies(`testLogger() channel=${this.state.channelId}`),Qe.KeyExchange(`testLogger() channel=${this.state.channelId}`)}keyCheck(){var t;Qe.RemoteCommunication(`[RemoteCommunication: keyCheck()] channel=${this.state.channelId}`),(t=this.state.communicationLayer)===null||t===void 0||t.keyCheck()}setConnectionStatus(t){this.state._connectionStatus!==t&&(this.state._connectionStatus=t,this.emit(Rt.CONNECTION_STATUS,t),this.emitServiceStatusEvent({context:\"setConnectionStatus\"}))}emitServiceStatusEvent(t={}){this.emit(Rt.SERVICE_STATUS,this.getServiceStatus())}getConnectionStatus(){return this.state._connectionStatus}getServiceStatus(){return{originatorInfo:this.state.originatorInfo,keyInfo:this.getKeyInfo(),connectionStatus:this.state._connectionStatus,channelConfig:this.state.channelConfig,channelId:this.state.channelId}}getKeyInfo(){var t;return(t=this.state.communicationLayer)===null||t===void 0?void 0:t.getKeyInfo()}resetKeys(){var t;(t=this.state.communicationLayer)===null||t===void 0||t.resetKeys()}setOtherPublicKey(t){var n;let r=(n=this.state.communicationLayer)===null||n===void 0?void 0:n.getKeyExchange();if(!r)throw new Error(\"KeyExchange is not initialized.\");r.getOtherPublicKey()!==t&&r.setOtherPublicKey(t)}pause(){return pt(this,void 0,void 0,(function*(){var t;Qe.RemoteCommunication(`[RemoteCommunication: pause()] channel=${this.state.channelId}`),yield(t=this.state.communicationLayer)===null||t===void 0?void 0:t.pause(),this.setConnectionStatus(rd.PAUSED)}))}getVersion(){return rC.version}hasRelayPersistence(){var t;return(t=this.state.relayPersistence)!==null&&t!==void 0&&t}resume(){return pt(this,void 0,void 0,(function*(){return(function(t){return pt(this,void 0,void 0,(function*(){var n;let{state:r}=t;Qe.RemoteCommunication(`[RemoteCommunication: resume()] channel=${r.channelId}`),yield(n=r.communicationLayer)===null||n===void 0?void 0:n.resume(),t.setConnectionStatus(rd.LINKED)}))})(this)}))}encrypt(t){var n,r,o;let i=(n=this.state.communicationLayer)===null||n===void 0?void 0:n.getKeyExchange(),a=i?.getOtherPublicKey();if(!a)throw new Error(\"KeyExchange not completed\");return(o=(r=this.state.communicationLayer)===null||r===void 0?void 0:r.state.eciesInstance)===null||o===void 0?void 0:o.encrypt(t,a)}decrypt(t){var n,r,o;if(!(!((n=this.state.communicationLayer)===null||n===void 0)&&n.state.eciesInstance))throw new Error(\"ECIES instance is not initialized\");return(o=(r=this.state.communicationLayer)===null||r===void 0?void 0:r.state.eciesInstance)===null||o===void 0?void 0:o.decrypt(t)}getChannelId(){return this.state.channelId}getRPCMethodTracker(){var t;return(t=this.state.communicationLayer)===null||t===void 0?void 0:t.getRPCMethodTracker()}reject({channelId:t}){return(function(n){return pt(this,arguments,void 0,(function*({channelId:r,state:o}){var i,a,c;if(!m1(r))throw Qe.RemoteCommunication(`[RemoteCommunication: connectToChannel()] context=${o.context} invalid channel channelId=${r}`),new Error(`Invalid channel ${r}`);if(o.isOriginator)return void Qe.RemoteCommunication(`[RemoteCommunication: reject()] context=${o.context} isOriginator=${o.isOriginator} channelId=${r}`);let{socket:l}=(a=(i=o.communicationLayer)===null||i===void 0?void 0:i.state)!==null&&a!==void 0?a:{};l?.connected||(Qe.RemoteCommunication(`[RemoteCommunication: reject()] context=${o.context} socket already connected`),l?.connect()),nA(Object.assign(Object.assign({id:r,event:ou.REJECTED},o.originatorInfo),{sdkVersion:o.sdkVersion,commLayerVersion:rC.version,walletVersion:(c=o.walletInfo)===null||c===void 0?void 0:c.version}),o.communicationServerUrl).catch((d=>{})),yield new Promise(((d,m)=>{l?.emit(Rt.REJECTED,{channelId:r},((h,g)=>{Qe.RemoteCommunication(`[RemoteCommunication: reject()] context=${o.context} socket=${l?.id}`,{error:h,response:g}),h?m(h):d(g)}))}))}))})({channelId:t,state:this.state})}disconnect(t){return pt(this,void 0,void 0,(function*(){return cnt({options:t,instance:this})}))}};(function(e){e.RENEW=\"renew\",e.LINK=\"link\"})(v$e||(v$e={}));j9t=\"ERC721\",W9t=\"ERC1155\",kc={errors:{disconnected:()=>\"MetaMask: Disconnected from chain. Attempting to connect.\",permanentlyDisconnected:()=>\"MetaMask: Disconnected from MetaMask background. Page reload required.\",sendSiteMetadata:()=>\"MetaMask: Failed to send site metadata. This is an internal error, please report this bug.\",unsupportedSync:e=>`MetaMask: The MetaMask Ethereum provider does not support synchronous methods like ${e} without a callback parameter.`,invalidDuplexStream:()=>\"Must provide a Node.js-style duplex stream.\",invalidNetworkParams:()=>\"MetaMask: Received invalid network parameters. Please report this bug.\",invalidRequestArgs:()=>\"Expected a single, non-array, object argument.\",invalidRequestMethod:()=>\"\\'args.method\\' must be a non-empty string.\",invalidRequestParams:()=>\"\\'args.params\\' must be an object or array if provided.\",invalidLoggerObject:()=>\"\\'args.logger\\' must be an object if provided.\",invalidLoggerMethod:e=>`\\'args.logger\\' must include required method \\'${e}\\'.`},info:{connected:e=>`MetaMask: Connected to chain with ID \"${e}\".`},warnings:{chainIdDeprecation:`MetaMask: \\'ethereum.chainId\\' is deprecated and may be removed in the future. Please use the \\'eth_chainId\\' RPC method instead.\\nFor more information, see: https://github.com/MetaMask/metamask-improvement-proposals/discussions/23`,networkVersionDeprecation:`MetaMask: \\'ethereum.networkVersion\\' is deprecated and may be removed in the future. Please use the \\'net_version\\' RPC method instead.\\nFor more information, see: https://github.com/MetaMask/metamask-improvement-proposals/discussions/23`,selectedAddressDeprecation:`MetaMask: \\'ethereum.selectedAddress\\' is deprecated and may be removed in the future. Please use the \\'eth_accounts\\' RPC method instead.\\nFor more information, see: https://github.com/MetaMask/metamask-improvement-proposals/discussions/23`,enableDeprecation:`MetaMask: \\'ethereum.enable()\\' is deprecated and may be removed in the future. Please use the \\'eth_requestAccounts\\' RPC method instead.\\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1102`,sendDeprecation:`MetaMask: \\'ethereum.send(...)\\' is deprecated and may be removed in the future. Please use \\'ethereum.sendAsync(...)\\' or \\'ethereum.request(...)\\' instead.\\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193`,events:{close:`MetaMask: The event \\'close\\' is deprecated and may be removed in the future. Please use \\'disconnect\\' instead.\\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#disconnect`,data:`MetaMask: The event \\'data\\' is deprecated and will be removed in the future. Use \\'message\\' instead.\\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#message`,networkChanged:`MetaMask: The event \\'networkChanged\\' is deprecated and may be removed in the future. Use \\'chainChanged\\' instead.\\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#chainchanged`,notification:`MetaMask: The event \\'notification\\' is deprecated and may be removed in the future. Use \\'message\\' instead.\\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#message`},rpc:{ethDecryptDeprecation:`MetaMask: The RPC method \\'eth_decrypt\\' is deprecated and may be removed in the future.\\nFor more information, see: https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686`,ethGetEncryptionPublicKeyDeprecation:`MetaMask: The RPC method \\'eth_getEncryptionPublicKey\\' is deprecated and may be removed in the future.\\nFor more information, see: https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686`,walletWatchAssetNFTExperimental:`MetaMask: The RPC method \\'wallet_watchAsset\\' is experimental for ERC721/ERC1155 assets and may change in the future.\\nFor more information, see: https://github.com/MetaMask/metamask-improvement-proposals/blob/main/MIPs/mip-1.md and https://github.com/MetaMask/metamask-improvement-proposals/blob/main/PROCESS-GUIDE.md#proposal-lifecycle`},experimentalMethods:\"MetaMask: \\'ethereum._metamask\\' exposes non-standard, experimental methods. They may be removed or changed without warning.\"}};unt=4294967295,x$e=Math.floor(Math.random()*unt);L1e=(e,t,n)=>{if(!t.has(e))throw TypeError(\"Cannot \"+n)},XT=(e,t,n)=>(L1e(e,t,\"read from private field\"),n?n.call(e):t.get(e)),w1=(e,t,n)=>{if(t.has(e))throw TypeError(\"Cannot add the same private member more than once\");t instanceof WeakSet?t.add(e):t.set(e,n)},See=(e,t,n,r)=>(L1e(e,t,\"write to private field\"),t.set(e,n),n),rh=(e,t,n)=>(L1e(e,t,\"access private method\"),n),YT={invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},E$e={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"}};lte=(e,t)=>Object.hasOwnProperty.call(e,t),Jbe=class extends TypeError{constructor(t,n){let r,{message:o,explanation:i,...a}=t,{path:c}=t,l=c.length===0?o:`At path: ${c.join(\".\")} -- ${o}`;super(i??l),i!=null&&(this.cause=l),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>r??(r=[t,...n()])}};R0=class{constructor(t){let{type:n,schema:r,validator:o,refiner:i,coercer:a=(l=>l),entries:c=function*(){}}=t;this.type=n,this.schema=r,this.entries=c,this.coercer=a,this.validator=o?(l,d)=>S$e(o(l,d),d,this,l):()=>[],this.refiner=i?(l,d)=>S$e(i(l,d),d,this,l):()=>[]}assert(t,n){return lnt(t,this,n)}create(t,n){return dnt(t,this,n)}is(t){return vM(t,this)}mask(t,n){return(function(r,o,i){let a=NH(r,o,{coerce:!0,mask:!0,message:i});if(a[0])throw a[0];return a[1]})(t,this,n)}validate(t,n={}){return NH(t,this,n)}};Z9t=class extends Error{constructor(e){super(e.message),this.code=\"ERR_ASSERTION\"}};jT=ynt,WT=bnt;typeof sh.setTimeout==\"function\"&&(jT=setTimeout),typeof sh.clearTimeout==\"function\"&&(WT=clearTimeout);eA=[],pM=!1,Dee=-1;xnt.prototype.run=function(){this.fun.apply(null,this.array)};J9t=iI,X9t=iI,$9t=iI,eBt=iI,tBt=iI,nBt=iI,rBt=iI,nM=sh.performance||{},oBt=nM.now||nM.mozNow||nM.msNow||nM.oNow||nM.webkitNow||function(){return new Date().getTime()},iBt=new Date,li={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];eA.push(new xnt(e,t)),eA.length!==1||pM||vnt(wnt)},title:\"browser\",browser:!0,env:{},argv:[],version:\"\",versions:{},on:J9t,addListener:X9t,once:$9t,off:eBt,removeListener:tBt,removeAllListeners:nBt,emit:rBt,binding:function(e){throw new Error(\"process.binding is not supported\")},cwd:function(){return\"/\"},chdir:function(e){throw new Error(\"process.chdir is not supported\")},umask:function(){return 0},hrtime:function(e){var t=.001*oBt.call(nM),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:\"browser\",release:{},config:{},uptime:function(){return(new Date-iBt)/1e3}},PH=e=>mnt(e);fte=Nte([pnt(null),iC(\"boolean\",(e=>typeof e==\"boolean\")),iC(\"finite number\",(e=>vM(e,hnt())&&Number.isFinite(e))),aC(),fnt(_$e((()=>fte))),gnt(aC(),_$e((()=>fte)))]),MH=(_ee=fte,R$e=iC(\"any\",(()=>!0)),I$e=e=>((function(t,n,r=\"Assertion failed\",o=Z9t){try{lnt(t,n)}catch(i){throw Y9t(o,`${r}: ${K9t(i)}.`)}})(e,fte),JSON.parse(JSON.stringify(e,((t,n)=>{if(t!==\"__proto__\"&&t!==\"constructor\")return n})))),new R0({..._ee,coercer:(e,t)=>vM(e,R$e)?_ee.coercer(I$e(e,t),t):_ee.coercer(e,t)}));bH=pnt(\"2.0\"),Bee=(function(e){return new R0({...e,validator:(t,n)=>t===null||e.validator(t,n),refiner:(t,n)=>t===null||e.refiner(t,n)})})(Nte([hnt(),aC()])),$be=PH({code:iC(\"integer\",(e=>typeof e==\"number\"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${Xw(e)}`)),message:aC(),data:dte(MH),stack:dte(aC())}),Ent=Nte([gnt(aC(),MH),fnt(MH)]),aBt=PH({id:Bee,jsonrpc:bH,method:aC(),params:dte(Ent)}),sBt=PH({jsonrpc:bH,method:aC(),params:dte(Ent)});mnt({id:Bee,jsonrpc:bH,result:T$e(iC(\"unknown\",(()=>!0))),error:T$e($be)}),Nte([PH({id:Bee,jsonrpc:bH,result:MH}),PH({id:Bee,jsonrpc:bH,error:$be})]);N$e=YT.internal,cBt=\"Unspecified error message. This is a bug, please report it.\",uBt={code:N$e,message:Ant(N$e)},lBt=\"Unspecified server error.\";_nt=pH;pH.default=pH,pH.stable=D$e,pH.stableStringify=D$e;pte=\"[...]\",Tnt=\"[Circular]\",oI=[],eI=[];fBt=kte(_nt),YE=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error(\\'\"code\" must be an integer.\\');if(!t||typeof t!=\"string\")throw new Error(\\'\"message\" must be a non-empty string.\\');super(t),this.code=e,n!==void 0&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data,(function(t){if(typeof t!=\"object\"||t===null)return!1;try{let n=t;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(t)===n}catch{return!1}})(this.data)&&(e.data.cause=Snt(this.data.cause))),this.stack&&(e.stack=this.stack),e}toString(){return fBt(this.serialize(),pBt,2)}};vH=e=>hBt(YT.invalidRequest,e);Int={};VT.prototype=Object.create(null),Ni.EventEmitter=Ni,Ni.usingDomains=!1,Ni.prototype.domain=void 0,Ni.prototype._events=void 0,Ni.prototype._maxListeners=void 0,Ni.defaultMaxListeners=10,Ni.init=function(){this.domain=null,Ni.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new VT,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Ni.prototype.setMaxListeners=function(e){if(typeof e!=\"number\"||e<0||isNaN(e))throw new TypeError(\\'\"n\" argument must be a positive number\\');return this._maxListeners=e,this},Ni.prototype.getMaxListeners=function(){return knt(this)},Ni.prototype.emit=function(e){var t,n,r,o,i,a,c,l=e===\"error\";if(a=this._events)l=l&&a.error==null;else if(!l)return!1;if(c=this.domain,l){if(t=arguments[1],!c){if(t instanceof Error)throw t;var d=new Error(\\'Uncaught, unspecified \"error\" event. (\\'+t+\")\");throw d.context=t,d}return t||(t=new Error(\\'Uncaught, unspecified \"error\" event\\')),t.domainEmitter=this,t.domain=c,t.domainThrown=!1,c.emit(\"error\",t),!1}if(!(n=a[e]))return!1;var m=typeof n==\"function\";switch(r=arguments.length){case 1:(function(h,g,y){if(g)h.call(y);else for(var w=h.length,x=lH(h,w),I=0;I<w;++I)x[I].call(y)})(n,m,this);break;case 2:(function(h,g,y,w){if(g)h.call(y,w);else for(var x=h.length,I=lH(h,x),C=0;C<x;++C)I[C].call(y,w)})(n,m,this,arguments[1]);break;case 3:(function(h,g,y,w,x){if(g)h.call(y,w,x);else for(var I=h.length,C=lH(h,I),M=0;M<I;++M)C[M].call(y,w,x)})(n,m,this,arguments[1],arguments[2]);break;case 4:(function(h,g,y,w,x,I){if(g)h.call(y,w,x,I);else for(var C=h.length,M=lH(h,C),B=0;B<C;++B)M[B].call(y,w,x,I)})(n,m,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];(function(h,g,y,w){if(g)h.apply(y,w);else for(var x=h.length,I=lH(h,x),C=0;C<x;++C)I[C].apply(y,w)})(n,m,this,o)}return!0},Ni.prototype.addListener=function(e,t){return B$e(this,e,t,!1)},Ni.prototype.on=Ni.prototype.addListener,Ni.prototype.prependListener=function(e,t){return B$e(this,e,t,!0)},Ni.prototype.once=function(e,t){if(typeof t!=\"function\")throw new TypeError(\\'\"listener\" argument must be a function\\');return this.on(e,L$e(this,e,t)),this},Ni.prototype.prependOnceListener=function(e,t){if(typeof t!=\"function\")throw new TypeError(\\'\"listener\" argument must be a function\\');return this.prependListener(e,L$e(this,e,t)),this},Ni.prototype.removeListener=function(e,t){var n,r,o,i,a;if(typeof t!=\"function\")throw new TypeError(\\'\"listener\" argument must be a function\\');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)--this._eventsCount==0?this._events=new VT:(delete r[e],r.removeListener&&this.emit(\"removeListener\",e,n.listener||t));else if(typeof n!=\"function\"){for(o=-1,i=n.length;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;if(n.length===1){if(n[0]=void 0,--this._eventsCount==0)return this._events=new VT,this;delete r[e]}else(function(c,l){for(var d=l,m=d+1,h=c.length;m<h;d+=1,m+=1)c[d]=c[m];c.pop()})(n,o);r.removeListener&&this.emit(\"removeListener\",e,a||t)}return this},Ni.prototype.off=function(e,t){return this.removeListener(e,t)},Ni.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return arguments.length===0?(this._events=new VT,this._eventsCount=0):n[e]&&(--this._eventsCount==0?this._events=new VT:delete n[e]),this;if(arguments.length===0){for(var r,o=Object.keys(n),i=0;i<o.length;++i)(r=o[i])!==\"removeListener\"&&this.removeAllListeners(r);return this.removeAllListeners(\"removeListener\"),this._events=new VT,this._eventsCount=0,this}if(typeof(t=n[e])==\"function\")this.removeListener(e,t);else if(t)do this.removeListener(e,t[t.length-1]);while(t[0]);return this},Ni.prototype.listeners=function(e){var t,n,r=this._events;return n=r&&(t=r[e])?typeof t==\"function\"?[t.listener||t]:(function(o){for(var i=new Array(o.length),a=0;a<i.length;++a)i[a]=o[a].listener||o[a];return i})(t):[],n},Ni.listenerCount=function(e,t){return typeof e.listenerCount==\"function\"?e.listenerCount(t):U$e.call(e,t)},Ni.prototype.listenerCount=U$e,Ni.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};F1e=jH(Object.freeze({__proto__:null,EventEmitter:Ni,default:Ni}));Object.defineProperty(Int,\"__esModule\",{value:!0});mBt=F1e;gBt=class extends mBt.EventEmitter{emit(e,...t){let n=e===\"error\",r=this._events;if(r!==void 0)n=n&&r.error===void 0;else if(!n)return!1;if(n){let i;if(t.length>0&&([i]=t),i instanceof Error)throw i;let a=new Error(\"Unhandled error.\"+(i?` (${i.message})`:\"\"));throw a.context=i,a}let o=r[e];if(o===void 0)return!1;if(typeof o==\"function\")F$e(o,this,t);else{let i=o.length,a=(function(c){let l=c.length,d=new Array(l);for(let m=0;m<l;m+=1)d[m]=c[m];return d})(o);for(let c=0;c<i;c+=1)F$e(a[c],this,t)}return!0}},Ont=Int.default=gBt,v1=class zee extends Ont{constructor({notificationHandler:t}={}){super(),w1(this,hH),w1(this,Uee),w1(this,Fee),w1(this,hte,!1),w1(this,ZT,void 0),w1(this,uM,void 0),See(this,ZT,[]),See(this,uM,t)}destroy(){XT(this,ZT).forEach((t=>{\"destroy\"in t&&typeof t.destroy==\"function\"&&t.destroy()})),See(this,ZT,[]),See(this,hte,!0)}push(t){rh(this,hH,Lee).call(this),XT(this,ZT).push(t)}handle(t,n){if(rh(this,hH,Lee).call(this),n&&typeof n!=\"function\")throw new Error(\\'\"callback\" must be a function if provided.\\');return Array.isArray(t)?n?rh(this,Uee,n1e).call(this,t,n):rh(this,Uee,n1e).call(this,t):n?rh(this,Fee,r1e).call(this,t,n):this._promiseHandle(t)}asMiddleware(){return rh(this,hH,Lee).call(this),async(t,n,r,o)=>{var i,a;try{let[c,l,d]=await rh(i=zee,Hee,o1e).call(i,t,n,XT(this,ZT));return l?(await rh(a=zee,wH,mte).call(a,d),o(c)):r((async m=>{var h;try{await rh(h=zee,wH,mte).call(h,d)}catch(g){return m(g)}return m()}))}catch(c){return o(c)}}}async _promiseHandle(t){return new Promise(((n,r)=>{rh(this,Fee,r1e).call(this,t,((o,i)=>{o&&i===void 0?r(o):n(i)})).catch(r)}))}};hte=new WeakMap,ZT=new WeakMap,uM=new WeakMap,hH=new WeakSet,Lee=function(){if(XT(this,hte))throw new Error(\"This engine is destroyed and can no longer be used.\")},Uee=new WeakSet,n1e=async function(e,t){try{if(e.length===0){let r=[{id:null,jsonrpc:\"2.0\",error:new YE(YT.invalidRequest,\"Request batch must contain plain objects. Received an empty array\")}];return t?t(null,r):r}let n=(await Promise.all(e.map(this._promiseHandle.bind(this)))).filter((r=>r!==void 0));return t?t(null,n):n}catch(n){if(t)return t(n);throw n}},Fee=new WeakSet,r1e=async function(e,t){var n;if(!e||Array.isArray(e)||typeof e!=\"object\"){let a=new YE(YT.invalidRequest,\"Requests must be plain objects. Received: \"+typeof e,{request:e});return t(a,{id:null,jsonrpc:\"2.0\",error:a})}if(typeof e.method!=\"string\"){let a=new YE(YT.invalidRequest,\"Must specify a string method. Received: \"+typeof e.method,{request:e});return XT(this,uM)&&!k$e(e)?t(null):t(a,{id:e.id??null,jsonrpc:\"2.0\",error:a})}if(XT(this,uM)&&vM(e,sBt)&&!k$e(e)){try{await XT(this,uM).call(this,e)}catch(a){return t(a)}return t(null)}let r=null,o={...e},i={id:o.id,jsonrpc:o.jsonrpc};try{await rh(n=v1,pbe,H$e).call(n,o,i,XT(this,ZT))}catch(a){r=a}return r&&(delete i.result,i.error||(i.error=P$e(r))),t(r,i)},pbe=new WeakSet,H$e=async function(e,t,n){var r,o,i;let[a,c,l]=await rh(r=v1,Hee,o1e).call(r,e,t,n);if(rh(o=v1,mbe,j$e).call(o,e,t,c),await rh(i=v1,wH,mte).call(i,l),a)throw a},Hee=new WeakSet,o1e=async function(e,t,n){var r;let o=[],i=null,a=!1;for(let c of n)if([i,a]=await rh(r=v1,hbe,z$e).call(r,e,t,c,o),a)break;return[i,a,o.reverse()]},hbe=new WeakSet,z$e=async function(e,t,n,r){return new Promise((o=>{let i=c=>{let l=c||t.error;l&&(t.error=P$e(l)),o([l,!0])},a=c=>{t.error?i(t.error):(c&&(typeof c!=\"function\"&&i(new YE(YT.internal,`JsonRpcEngine: \"next\" return handlers must be functions. Received \"${typeof c}\" for request:\\n${gbe(e)}`,{request:e})),r.push(c)),o([null,!1]))};try{n(e,t,a,i)}catch(c){i(c)}}))},wH=new WeakSet,mte=async function(e){for(let t of e)await new Promise(((n,r)=>{t((o=>o?r(o):n()))}))},mbe=new WeakSet,j$e=function(e,t,n){if(!lte(t,\"result\")&&!lte(t,\"error\"))throw new YE(YT.internal,`JsonRpcEngine: Response has no error or result for request:\\n${gbe(e)}`,{request:e});if(!n)throw new YE(YT.internal,`JsonRpcEngine: Nothing ended request:\\n${gbe(e)}`,{request:e})},w1(v1,pbe),w1(v1,Hee),w1(v1,hbe),w1(v1,wH),w1(v1,mbe);yBt=v1;Nnt=Object.freeze([\"eth_subscription\"]),bBt=(e=console)=>[G9t(),vBt(e),V9t(e)];jee=(e,t,n=!0)=>(r,o)=>{r||o.error?t(r||o.error):!n||Array.isArray(o)?e(o):e(o.result)},Pnt=e=>!!e&&typeof e==\"string\"&&e.startsWith(\"0x\"),Mnt=()=>{};Dnt=(e,t,n)=>{if(!t.has(e))throw TypeError(\"Cannot \"+n)},Kw=(e,t,n)=>(Dnt(e,t,\"read from private field\"),n?n.call(e):t.get(e)),i1e=(e,t,n)=>{if(t.has(e))throw TypeError(\"Cannot add the same private member more than once\");t instanceof WeakSet?t.add(e):t.set(e,n)},ZE=(e,t,n,r)=>(Dnt(e,t,\"write to private field\"),t.set(e,n),n);a1e=class extends Ni{emit(t,...n){let r=t===\"error\",o=this._events;if(o!==void 0)r=r&&o.error===void 0;else if(!r)return!1;if(r){let a;if(n.length>0&&([a]=n),a instanceof Error)throw a;let c=new Error(\"Unhandled error.\"+(a?` (${a.message})`:\"\"));throw c.context=a,c}let i=o[t];if(i===void 0)return!1;if(typeof i==\"function\")V$e(i,this,n);else{let a=i.length,c=(function(l){let d=l.length,m=new Array(d);for(let h=0;h<d;h+=1)m[h]=l[h];return m})(i);for(let l=0;l<a;l+=1)V$e(c[l],this,n)}return!0}},ABt=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==\"object\"&&typeof n==\"object\"){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;o--!=0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;o--!=0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!=0;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n},SBt=kte(ABt),Bnt=class Lnt extends a1e{constructor({logger:t=console,maxEventListeners:n=100,rpcMiddleware:r=[]}={}){super(),i1e(this,GT,void 0),i1e(this,ZR,void 0),this._log=t,this.setMaxListeners(n),this._state={...Lnt._defaultState},ZE(this,ZR,null),ZE(this,GT,null),this._handleAccountsChanged=this._handleAccountsChanged.bind(this),this._handleConnect=this._handleConnect.bind(this),this._handleChainChanged=this._handleChainChanged.bind(this),this._handleDisconnect=this._handleDisconnect.bind(this),this._handleUnlockStateChanged=this._handleUnlockStateChanged.bind(this),this._rpcRequest=this._rpcRequest.bind(this),this.request=this.request.bind(this);let o=new yBt;r.forEach((i=>o.push(i))),this._rpcEngine=o}get chainId(){return Kw(this,GT)}get selectedAddress(){return Kw(this,ZR)}isConnected(){return this._state.isConnected}async request(t){if(!t||typeof t!=\"object\"||Array.isArray(t))throw vH({message:kc.errors.invalidRequestArgs(),data:t});let{method:n,params:r}=t;if(typeof n!=\"string\"||n.length===0)throw vH({message:kc.errors.invalidRequestMethod(),data:t});if(r!==void 0&&!Array.isArray(r)&&(typeof r!=\"object\"||r===null))throw vH({message:kc.errors.invalidRequestParams(),data:t});let o=r==null?{method:n}:{method:n,params:r};return new Promise(((i,a)=>{this._rpcRequest(o,jee(i,a))}))}_initializeState(t){if(this._state.initialized)throw new Error(\"Provider already initialized.\");if(t){let{accounts:n,chainId:r,isUnlocked:o,networkVersion:i}=t;this._handleConnect(r),this._handleChainChanged({chainId:r,networkVersion:i}),this._handleUnlockStateChanged({accounts:n,isUnlocked:o}),this._handleAccountsChanged(n)}this._state.initialized=!0,this.emit(\"_initialized\")}_rpcRequest(t,n){let r=n;return Array.isArray(t)||(t.jsonrpc||(t.jsonrpc=\"2.0\"),t.method!==\"eth_accounts\"&&t.method!==\"eth_requestAccounts\"||(r=(o,i)=>{this._handleAccountsChanged(i.result??[],t.method===\"eth_accounts\"),n(o,i)})),this._rpcEngine.handle(t,r)}_handleConnect(t){this._state.isConnected||(this._state.isConnected=!0,this.emit(\"connect\",{chainId:t}),this._log.debug(kc.info.connected(t)))}_handleDisconnect(t,n){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!t){let r;this._state.isConnected=!1,t?(r=new YE(1013,n??kc.errors.disconnected()),this._log.debug(r)):(r=new YE(1011,n??kc.errors.permanentlyDisconnected()),this._log.error(r),ZE(this,GT,null),this._state.accounts=null,ZE(this,ZR,null),this._state.isUnlocked=!1,this._state.isPermanentlyDisconnected=!0),this.emit(\"disconnect\",r)}}_handleChainChanged({chainId:t}={}){Pnt(t)?(this._handleConnect(t),t!==Kw(this,GT)&&(ZE(this,GT,t),this._state.initialized&&this.emit(\"chainChanged\",Kw(this,GT)))):this._log.error(kc.errors.invalidNetworkParams(),{chainId:t})}_handleAccountsChanged(t,n=!1){let r=t;Array.isArray(t)||(this._log.error(\"MetaMask: Received invalid accounts parameter. Please report this bug.\",t),r=[]);for(let o of t)if(typeof o!=\"string\"){this._log.error(\"MetaMask: Received non-string account. Please report this bug.\",t),r=[];break}if(!SBt(this._state.accounts,r)&&(n&&this._state.accounts!==null&&this._log.error(\"MetaMask: \\'eth_accounts\\' unexpectedly updated accounts. Please report this bug.\",r),this._state.accounts=r,Kw(this,ZR)!==r[0]&&ZE(this,ZR,r[0]||null),this._state.initialized)){let o=[...r];this.emit(\"accountsChanged\",o)}}_handleUnlockStateChanged({accounts:t,isUnlocked:n}={}){typeof n==\"boolean\"?n!==this._state.isUnlocked&&(this._state.isUnlocked=n,this._handleAccountsChanged(t??[])):this._log.error(\"MetaMask: Received invalid isUnlocked parameter. Please report this bug.\")}};GT=new WeakMap,ZR=new WeakMap,Bnt._defaultState={accounts:null,isConnected:!1,isUnlocked:!1,initialized:!1,isPermanentlyDisconnected:!1};_Bt=Bnt,s1e={exports:{}},Unt=F1e.EventEmitter,z1e=jH(Y7t);H1e=typeof Object.create==\"function\"?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e};Fnt=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},TBt=/%[sdj%]/g;Tee={};Jw.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Jw.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"};IBt=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];QR=typeof Symbol<\"u\"?Symbol(\"util.promisify.custom\"):void 0;K1e.custom=QR;OBt={inherits:H1e,_extend:q1e,log:Gnt,isBuffer:Vnt,isPrimitive:Wnt,isFunction:AH,isError:EH,isDate:yte,isObject:aI,isRegExp:xH,isUndefined:Zw,isSymbol:jnt,isString:DH,isNumber:V1e,isNullOrUndefined:znt,isNull:VH,isBoolean:Mte,isArray:W1e,inspect:Jw,deprecate:j1e,format:Pte,debuglog:Hnt,promisify:K1e,callbackify:Knt},Ynt=jH(Object.freeze({__proto__:null,_extend:q1e,callbackify:Knt,debuglog:Hnt,default:OBt,deprecate:j1e,format:Pte,inherits:H1e,inspect:Jw,isArray:W1e,isBoolean:Mte,isBuffer:Vnt,isDate:yte,isError:EH,isFunction:AH,isNull:VH,isNullOrUndefined:znt,isNumber:V1e,isObject:aI,isPrimitive:Wnt,isRegExp:xH,isString:DH,isSymbol:jnt,isUndefined:Zw,log:Gnt,promisify:K1e}));Znt={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return r||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,li.nextTick(c1e,this,e)):li.nextTick(c1e,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(i){!t&&i?n._writableState?n._writableState.errorEmitted?li.nextTick(Wee,n):(n._writableState.errorEmitted=!0,li.nextTick(q$e,n,i)):li.nextTick(q$e,n,i):t?(li.nextTick(Wee,n),t(i)):li.nextTick(Wee,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(\"error\",t)}},sI={},Qnt={};yy(\"ERR_INVALID_OPT_VALUE\",(function(e,t){return\\'The value \"\\'+t+\\'\" is invalid for option \"\\'+e+\\'\"\\'}),TypeError),yy(\"ERR_INVALID_ARG_TYPE\",(function(e,t,n){var r,o,i;if(typeof t==\"string\"&&(o=\"not \",t.substr(0,o.length)===o)?(r=\"must not be\",t=t.replace(/^not /,\"\")):r=\"must be\",(function(c,l,d){return(d===void 0||d>c.length)&&(d=c.length),c.substring(d-l.length,d)===l})(e,\" argument\"))i=\"The \".concat(e,\" \").concat(r,\" \").concat(K$e(t,\"type\"));else{var a=(function(c,l,d){return typeof d!=\"number\"&&(d=0),!(d+l.length>c.length)&&c.indexOf(l,d)!==-1})(e,\".\")?\"property\":\"argument\";i=\\'The \"\\'.concat(e,\\'\" \\').concat(a,\" \").concat(r,\" \").concat(K$e(t,\"type\"))}return i+=\". Received type \".concat(typeof n)}),TypeError),yy(\"ERR_STREAM_PUSH_AFTER_EOF\",\"stream.push() after EOF\"),yy(\"ERR_METHOD_NOT_IMPLEMENTED\",(function(e){return\"The \"+e+\" method is not implemented\"})),yy(\"ERR_STREAM_PREMATURE_CLOSE\",\"Premature close\"),yy(\"ERR_STREAM_DESTROYED\",(function(e){return\"Cannot call \"+e+\" after a stream was destroyed\"})),yy(\"ERR_MULTIPLE_CALLBACK\",\"Callback called multiple times\"),yy(\"ERR_STREAM_CANNOT_PIPE\",\"Cannot pipe, not readable\"),yy(\"ERR_STREAM_WRITE_AFTER_END\",\"write after end\"),yy(\"ERR_STREAM_NULL_VALUES\",\"May not write null values to stream\",TypeError),yy(\"ERR_UNKNOWN_ENCODING\",(function(e){return\"Unknown encoding: \"+e}),TypeError),yy(\"ERR_STREAM_UNSHIFT_AFTER_END_EVENT\",\"stream.unshift() after end event\"),sI.codes=Qnt;PBt=sI.codes.ERR_INVALID_OPT_VALUE,Jnt={getHighWaterMark:function(e,t,n,r){var o=(function(i,a,c){return i.highWaterMark!=null?i.highWaterMark:a?i[c]:null})(t,r,n);if(o!=null){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new PBt(r?n:\"highWaterMark\",o);return Math.floor(o)}return e.objectMode?16:16384}},MBt=typeof Object.create==\"function\"?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},GH=jH(Object.freeze({__proto__:null,default:MBt})),DBt=function(e,t){if(Sbe(\"noDeprecation\"))return e;var n=!1;return function(){if(!n){if(Sbe(\"throwDeprecation\"))throw new Error(t);Sbe(\"traceDeprecation\")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};BBt=ht.isEncoding||function(e){switch(e&&e.toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":case\"raw\":return!0;default:return!1}};Vee.prototype.write=function(e){for(var t=\"\";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return\"\";if(e=e.slice(n,e.length),!((o=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&o<=56319)){if(this.charReceived=this.charLength=0,e.length===0)return t;break}this.charLength+=this.surrogateSize,t=\"\"}this.detectIncompleteChar(e);var r=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,r),r-=this.charReceived);var o;if(r=(t+=e.toString(this.encoding,0,r)).length-1,(o=t.charCodeAt(r))>=55296&&o<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),e.copy(this.charBuffer,0,0,i),t.substring(0,r)}return t},Vee.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(t==1&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},Vee.prototype.end=function(e){var t=\"\";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,o=this.encoding;t+=r.slice(0,n).toString(o)}return t};Q$e=jH(Object.freeze({__proto__:null,StringDecoder:Vee})),J$e=sI.codes.ERR_STREAM_PREMATURE_CLOSE;Y1e=function e(t,n,r){if(typeof n==\"function\")return e(t,null,n);n||(n={}),r=(function(w){var x=!1;return function(){if(!x){x=!0;for(var I=arguments.length,C=new Array(I),M=0;M<I;M++)C[M]=arguments[M];w.apply(this,C)}}})(r||HBt);var o=n.readable||n.readable!==!1&&t.readable,i=n.writable||n.writable!==!1&&t.writable,a=function(){t.writable||l()},c=t._writableState&&t._writableState.finished,l=function(){i=!1,c=!0,o||r.call(t)},d=t._readableState&&t._readableState.endEmitted,m=function(){o=!1,d=!0,i||r.call(t)},h=function(w){r.call(t,w)},g=function(){var w;return o&&!d?(t._readableState&&t._readableState.ended||(w=new J$e),r.call(t,w)):i&&!c?(t._writableState&&t._writableState.ended||(w=new J$e),r.call(t,w)):void 0},y=function(){t.req.on(\"finish\",l)};return(function(w){return w.setHeader&&typeof w.abort==\"function\"})(t)?(t.on(\"complete\",l),t.on(\"abort\",g),t.req?y():t.on(\"request\",y)):i&&!t._writableState&&(t.on(\"end\",a),t.on(\"close\",a)),t.on(\"end\",m),t.on(\"finish\",l),n.error!==!1&&t.on(\"error\",h),t.on(\"close\",g),function(){t.removeListener(\"complete\",l),t.removeListener(\"abort\",g),t.removeListener(\"request\",y),t.req&&t.req.removeListener(\"finish\",l),t.removeListener(\"end\",a),t.removeListener(\"close\",a),t.removeListener(\"finish\",l),t.removeListener(\"end\",m),t.removeListener(\"error\",h),t.removeListener(\"close\",g)}};ert=QE,Dte=sI.codes,jBt=Dte.ERR_METHOD_NOT_IMPLEMENTED,WBt=Dte.ERR_MULTIPLE_CALLBACK,VBt=Dte.ERR_TRANSFORM_ALREADY_TRANSFORMING,GBt=Dte.ERR_TRANSFORM_WITH_LENGTH_0,Gee=gM();GH(QE,Gee),QE.prototype.push=function(e,t){return this._transformState.needTransform=!1,Gee.prototype.push.call(this,e,t)},QE.prototype._transform=function(e,t,n){n(new jBt(\"_transform()\"))},QE.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},QE.prototype._read=function(e){var t=this._transformState;t.writechunk===null||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},QE.prototype._destroy=function(e,t){Gee.prototype._destroy.call(this,e,(function(n){t(n)}))};YBt=BH,trt=ert;GH(BH,trt),BH.prototype._transform=function(e,t,n){n(null,e)};nrt=sI.codes,ZBt=nrt.ERR_MISSING_ARGS,QBt=nrt.ERR_STREAM_DESTROYED;XBt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=(function(a){return a.length?typeof a[a.length-1]!=\"function\"?ret:a.pop():ret})(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new ZBt(\"streams\");var i=t.map((function(a,c){var l=c<t.length-1;return(function(d,m,h,g){g=(function(x){var I=!1;return function(){I||(I=!0,x.apply(void 0,arguments))}})(g);var y=!1;d.on(\"close\",(function(){y=!0})),Cbe===void 0&&(Cbe=Y1e),Cbe(d,{readable:m,writable:h},(function(x){if(x)return g(x);y=!0,g()}));var w=!1;return function(x){if(!y&&!w)return w=!0,(function(I){return I.setHeader&&typeof I.abort==\"function\"})(d)?d.abort():typeof d.destroy==\"function\"?d.destroy():void g(x||new QBt(\"pipe\"))}})(a,l,c>0,(function(d){r||(r=d),d&&i.forEach(oet),l||(i.forEach(oet),o(r))}))}));return t.reduce(JBt)};(function(e,t){(t=s1e.exports=$nt()).Stream=t,t.Readable=t,t.Writable=Xnt(),t.Duplex=gM(),t.Transform=ert,t.PassThrough=YBt,t.finished=Y1e,t.pipeline=XBt})(0,s1e.exports);yM=s1e.exports;bte={},u1e={exports:{}},eLt=function e(t,n){if(t&&n)return e(t)(n);if(typeof t!=\"function\")throw new TypeError(\"need wrapper function\");return Object.keys(t).forEach((function(o){r[o]=t[o]})),r;function r(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];var a=t.apply(this,o),c=o[o.length-1];return typeof a==\"function\"&&a!==c&&Object.keys(c).forEach((function(l){a[l]=c[l]})),a}},iet=eLt;u1e.exports=iet(Cee),u1e.exports.strict=iet(aet),Cee.proto=Cee((function(){Object.defineProperty(Function.prototype,\"once\",{value:function(){return Cee(this)},configurable:!0}),Object.defineProperty(Function.prototype,\"onceStrict\",{value:function(){return aet(this)},configurable:!0})}));tLt=u1e.exports,vte={};Object.defineProperty(vte,\"__esModule\",{value:!0}),vte.Substream=void 0;nLt=yM,l1e=class extends nLt.Duplex{constructor({parent:t,name:n}){super({objectMode:!0}),this._parent=t,this._name=n}_read(){}_write(t,n,r){this._parent.push({name:this._name,data:t}),r()}};vte.Substream=l1e;rLt=Sy&&Sy.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bte,\"__esModule\",{value:!0}),bte.ObjectMultiplex=void 0;Rbe=yM,oLt=rLt(tLt),iLt=vte,set=Symbol(\"IGNORE_SUBSTREAM\"),aLt=class extends Rbe.Duplex{constructor(e={}){super(Object.assign(Object.assign({},e),{objectMode:!0})),this._substreams={}}createStream(e){if(this.destroyed)throw new Error(`ObjectMultiplex - parent stream for name \"${e}\" already destroyed`);if(this._readableState.ended||this._writableState.ended)throw new Error(`ObjectMultiplex - parent stream for name \"${e}\" already ended`);if(!e)throw new Error(\"ObjectMultiplex - name must not be empty\");if(this._substreams[e])throw new Error(`ObjectMultiplex - Substream for name \"${e}\" already exists`);let t=new iLt.Substream({parent:this,name:e});return this._substreams[e]=t,(function(n,r){let o=(0,oLt.default)(r);(0,Rbe.finished)(n,{readable:!1},o),(0,Rbe.finished)(n,{writable:!1},o)})(this,(n=>t.destroy(n||void 0))),t}ignoreStream(e){if(!e)throw new Error(\"ObjectMultiplex - name must not be empty\");if(this._substreams[e])throw new Error(`ObjectMultiplex - Substream for name \"${e}\" already exists`);this._substreams[e]=set}_read(){}_write(e,t,n){let{name:r,data:o}=e;if(!r)return console.warn(`ObjectMultiplex - malformed chunk without name \"${e}\"`),n();let i=this._substreams[r];return i?(i!==set&&i.push(o),n()):(console.warn(`ObjectMultiplex - orphaned data for stream \"${r}\"`),n())}};bte.ObjectMultiplex=aLt;sLt=kte(bte.ObjectMultiplex),jw=e=>e!==null&&typeof e==\"object\"&&typeof e.pipe==\"function\";jw.writable=e=>jw(e)&&e.writable!==!1&&typeof e._write==\"function\"&&typeof e._writableState==\"object\",jw.readable=e=>jw(e)&&e.readable!==!1&&typeof e._read==\"function\"&&typeof e._readableState==\"object\",jw.duplex=e=>jw.writable(e)&&jw.readable(e),jw.transform=e=>jw.duplex(e)&&typeof e._transform==\"function\";cLt=jw,uLt=class extends _Bt{constructor(e,{jsonRpcStreamName:t,logger:n=console,maxEventListeners:r=100,rpcMiddleware:o=[]}){if(super({logger:n,maxEventListeners:r,rpcMiddleware:o}),!cLt.duplex(e))throw new Error(kc.errors.invalidDuplexStream());this._handleStreamDisconnect=this._handleStreamDisconnect.bind(this);let i=new sLt;yM.pipeline(e,i,e,this._handleStreamDisconnect.bind(this,\"MetaMask\")),this._jsonRpcConnection=$Bt({retryOnMessage:\"METAMASK_EXTENSION_CONNECT_CAN_RETRY\"}),yM.pipeline(this._jsonRpcConnection.stream,i.createStream(t),this._jsonRpcConnection.stream,this._handleStreamDisconnect.bind(this,\"MetaMask RpcProvider\")),this._rpcEngine.push(this._jsonRpcConnection.middleware),this._jsonRpcConnection.events.on(\"notification\",(a=>{let{method:c,params:l}=a;c===\"metamask_accountsChanged\"?this._handleAccountsChanged(l):c===\"metamask_unlockStateChanged\"?this._handleUnlockStateChanged(l):c===\"metamask_chainChanged\"?this._handleChainChanged(l):Nnt.includes(c)?this.emit(\"message\",{type:c,data:l}):c===\"METAMASK_STREAM_FAILURE\"&&e.destroy(new Error(kc.errors.permanentlyDisconnected()))}))}async _initializeStateAsync(){let e;try{e=await this.request({method:\"metamask_getProviderState\"})}catch(t){this._log.error(\"MetaMask: Failed to get initial state. Please report this bug.\",t)}this._initializeState(e)}_handleStreamDisconnect(e,t){let n=`MetaMask: Lost connection to \"${e}\".`;t?.stack&&(n+=`\\n${t.stack}`),this._log.warn(n),this.listenerCount(\"error\")>0&&this.emit(\"error\",n),this._handleDisconnect(!1,t?t.message:void 0)}_handleChainChanged({chainId:e,networkVersion:t}={}){Pnt(e)&&(n=>!!n&&typeof n==\"string\")(t)?t===\"loading\"?this._handleDisconnect(!0):super._handleChainChanged({chainId:e}):this._log.error(kc.errors.invalidNetworkParams(),{chainId:e,networkVersion:t})}},lLt=class extends uLt{constructor(e,{jsonRpcStreamName:t=\"metamask-provider\",logger:n=console,maxEventListeners:r=100,shouldSendMetadata:o}={}){if(super(e,{jsonRpcStreamName:t,logger:n,maxEventListeners:r,rpcMiddleware:bBt(n)}),this._sentWarnings={chainId:!1,networkVersion:!1,selectedAddress:!1,enable:!1,experimentalMethods:!1,send:!1,events:{close:!1,data:!1,networkChanged:!1,notification:!1}},i1e(this,Ww,void 0),this._initializeStateAsync(),ZE(this,Ww,null),this.isMetaMask=!0,this._sendSync=this._sendSync.bind(this),this.enable=this.enable.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this._warnOfDeprecation=this._warnOfDeprecation.bind(this),this._metamask=this._getExperimentalApi(),this._jsonRpcConnection.events.on(\"notification\",(i=>{let{method:a}=i;Nnt.includes(a)&&(this.emit(\"data\",i),this.emit(\"notification\",i.params.result))})),o)if(document.readyState===\"complete\")W$e(this._rpcEngine,this._log);else{let i=()=>{W$e(this._rpcEngine,this._log),window.removeEventListener(\"DOMContentLoaded\",i)};window.addEventListener(\"DOMContentLoaded\",i)}}get chainId(){return this._sentWarnings.chainId||(this._log.warn(kc.warnings.chainIdDeprecation),this._sentWarnings.chainId=!0),super.chainId}get networkVersion(){return this._sentWarnings.networkVersion||(this._log.warn(kc.warnings.networkVersionDeprecation),this._sentWarnings.networkVersion=!0),Kw(this,Ww)}get selectedAddress(){return this._sentWarnings.selectedAddress||(this._log.warn(kc.warnings.selectedAddressDeprecation),this._sentWarnings.selectedAddress=!0),super.selectedAddress}sendAsync(e,t){this._rpcRequest(e,t)}addListener(e,t){return this._warnOfDeprecation(e),super.addListener(e,t)}on(e,t){return this._warnOfDeprecation(e),super.on(e,t)}once(e,t){return this._warnOfDeprecation(e),super.once(e,t)}prependListener(e,t){return this._warnOfDeprecation(e),super.prependListener(e,t)}prependOnceListener(e,t){return this._warnOfDeprecation(e),super.prependOnceListener(e,t)}_handleDisconnect(e,t){super._handleDisconnect(e,t),Kw(this,Ww)&&!e&&ZE(this,Ww,null)}_warnOfDeprecation(e){this._sentWarnings?.events[e]===!1&&(this._log.warn(kc.warnings.events[e]),this._sentWarnings.events[e]=!0)}async enable(){return this._sentWarnings.enable||(this._log.warn(kc.warnings.enableDeprecation),this._sentWarnings.enable=!0),new Promise(((e,t)=>{try{this._rpcRequest({method:\"eth_requestAccounts\",params:[]},jee(e,t))}catch(n){t(n)}}))}send(e,t){return this._sentWarnings.send||(this._log.warn(kc.warnings.sendDeprecation),this._sentWarnings.send=!0),typeof e!=\"string\"||t&&!Array.isArray(t)?e&&typeof e==\"object\"&&typeof t==\"function\"?this._rpcRequest(e,t):this._sendSync(e):new Promise(((n,r)=>{try{this._rpcRequest({method:e,params:t},jee(n,r,!1))}catch(o){r(o)}}))}_sendSync(e){let t;switch(e.method){case\"eth_accounts\":t=this.selectedAddress?[this.selectedAddress]:[];break;case\"eth_coinbase\":t=this.selectedAddress??null;break;case\"eth_uninstallFilter\":this._rpcRequest(e,Mnt),t=!0;break;case\"net_version\":t=Kw(this,Ww)??null;break;default:throw new Error(kc.errors.unsupportedSync(e.method))}return{id:e.id,jsonrpc:e.jsonrpc,result:t}}_getExperimentalApi(){return new Proxy({isUnlocked:async()=>(this._state.initialized||await new Promise((e=>{this.on(\"_initialized\",(()=>e()))})),this._state.isUnlocked),requestBatch:async e=>{if(!Array.isArray(e))throw vH({message:\"Batch requests must be made with an array of request objects.\",data:e});return new Promise(((t,n)=>{this._rpcRequest(e,jee(t,n))}))}},{get:(e,t,...n)=>(this._sentWarnings.experimentalMethods||(this._log.warn(kc.warnings.experimentalMethods),this._sentWarnings.experimentalMethods=!0),Reflect.get(e,t,...n))})}_handleChainChanged({chainId:e,networkVersion:t}={}){super._handleChainChanged({chainId:e,networkVersion:t}),this._state.isConnected&&t!==Kw(this,Ww)&&(ZE(this,Ww,t),this._state.initialized&&this.emit(\"networkChanged\",Kw(this,Ww)))}};Ww=new WeakMap;nt=(0,Vf.default)(\"MM_SDK\");nt.color=\"#FFAC1C\";rrt={},tC={};Object.defineProperty(tC,\"__esModule\",{value:!0}),tC.EthereumProviderError=tC.EthereumRpcError=void 0;dLt=_nt,wte=class extends Error{constructor(t,n,r){if(!Number.isInteger(t))throw new Error(\\'\"code\" must be an integer.\\');if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string.\\');super(n),this.code=t,r!==void 0&&(this.data=r)}serialize(){let t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return dLt.default(this.serialize(),fLt,2)}};tC.EthereumRpcError=wte;tC.EthereumProviderError=class extends wte{constructor(e,t,n){if(!(function(r){return Number.isInteger(r)&&r>=1e3&&r<=4999})(e))throw new Error(\\'\"code\" must be an integer such that: 1000 <= code <= 4999\\');super(e,t,n)}};Z1e={},QT={};Object.defineProperty(QT,\"__esModule\",{value:!0}),QT.errorValues=QT.errorCodes=void 0,QT.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},QT.errorValues={\"-32700\":{standard:\"JSON RPC 2.0\",message:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"},\"-32600\":{standard:\"JSON RPC 2.0\",message:\"The JSON sent is not a valid Request object.\"},\"-32601\":{standard:\"JSON RPC 2.0\",message:\"The method does not exist / is not available.\"},\"-32602\":{standard:\"JSON RPC 2.0\",message:\"Invalid method parameter(s).\"},\"-32603\":{standard:\"JSON RPC 2.0\",message:\"Internal JSON-RPC error.\"},\"-32000\":{standard:\"EIP-1474\",message:\"Invalid input.\"},\"-32001\":{standard:\"EIP-1474\",message:\"Resource not found.\"},\"-32002\":{standard:\"EIP-1474\",message:\"Resource unavailable.\"},\"-32003\":{standard:\"EIP-1474\",message:\"Transaction rejected.\"},\"-32004\":{standard:\"EIP-1474\",message:\"Method not supported.\"},\"-32005\":{standard:\"EIP-1474\",message:\"Request limit exceeded.\"},4001:{standard:\"EIP-1193\",message:\"User rejected the request.\"},4100:{standard:\"EIP-1193\",message:\"The requested account and/or method has not been authorized by the user.\"},4200:{standard:\"EIP-1193\",message:\"The requested method is not supported by this Ethereum provider.\"},4900:{standard:\"EIP-1193\",message:\"The provider is disconnected from all chains.\"},4901:{standard:\"EIP-1193\",message:\"The provider is disconnected from the specified chain.\"}},(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let t=QT,n=tC,r=t.errorCodes.rpc.internal,o=\"Unspecified error message. This is a bug, please report it.\",i={code:r,message:a(r)};function a(h,g=o){if(Number.isInteger(h)){let y=h.toString();if(m(t.errorValues,y))return t.errorValues[y].message;if(l(h))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return g}function c(h){if(!Number.isInteger(h))return!1;let g=h.toString();return!!t.errorValues[g]||!!l(h)}function l(h){return h>=-32099&&h<=-32e3}function d(h){return h&&typeof h==\"object\"&&!Array.isArray(h)?Object.assign({},h):h}function m(h,g){return Object.prototype.hasOwnProperty.call(h,g)}e.JSON_RPC_SERVER_ERROR_MESSAGE=\"Unspecified server error.\",e.getMessageFromCode=a,e.isValidCode=c,e.serializeError=function(h,{fallbackError:g=i,shouldIncludeStack:y=!1}={}){var w,x;if(!g||!Number.isInteger(g.code)||typeof g.message!=\"string\")throw new Error(\"Must provide fallback error with integer number code and string message.\");if(h instanceof n.EthereumRpcError)return h.serialize();let I={};if(h&&typeof h==\"object\"&&!Array.isArray(h)&&m(h,\"code\")&&c(h.code)){let M=h;I.code=M.code,M.message&&typeof M.message==\"string\"?(I.message=M.message,m(M,\"data\")&&(I.data=M.data)):(I.message=a(I.code),I.data={originalError:d(h)})}else{I.code=g.code;let M=(w=h)===null||w===void 0?void 0:w.message;I.message=M&&typeof M==\"string\"?M:g.message,I.data={originalError:d(h)}}let C=(x=h)===null||x===void 0?void 0:x.stack;return y&&h&&C&&typeof C==\"string\"&&(I.stack=C),I}})(Z1e);xte={};Object.defineProperty(xte,\"__esModule\",{value:!0}),xte.ethErrors=void 0;Q1e=tC,ort=Z1e,Ff=QT;xte.ethErrors={rpc:{parse:e=>by(Ff.errorCodes.rpc.parse,e),invalidRequest:e=>by(Ff.errorCodes.rpc.invalidRequest,e),invalidParams:e=>by(Ff.errorCodes.rpc.invalidParams,e),methodNotFound:e=>by(Ff.errorCodes.rpc.methodNotFound,e),internal:e=>by(Ff.errorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum RPC Server errors must provide single object argument.\");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error(\\'\"code\" must be an integer such that: -32099 <= code <= -32005\\');return by(t,e)},invalidInput:e=>by(Ff.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>by(Ff.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>by(Ff.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>by(Ff.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>by(Ff.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>by(Ff.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>dH(Ff.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>dH(Ff.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>dH(Ff.errorCodes.provider.unsupportedMethod,e),disconnected:e=>dH(Ff.errorCodes.provider.disconnected,e),chainDisconnected:e=>dH(Ff.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||typeof e!=\"object\"||Array.isArray(e))throw new Error(\"Ethereum Provider custom errors must provide single object argument.\");let{code:t,message:n,data:r}=e;if(!n||typeof n!=\"string\")throw new Error(\\'\"message\" must be a nonempty string\\');return new Q1e.EthereumProviderError(t,n,r)}}},(function(e){Object.defineProperty(e,\"__esModule\",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;let t=tC;Object.defineProperty(e,\"EthereumRpcError\",{enumerable:!0,get:function(){return t.EthereumRpcError}}),Object.defineProperty(e,\"EthereumProviderError\",{enumerable:!0,get:function(){return t.EthereumProviderError}});let n=Z1e;Object.defineProperty(e,\"serializeError\",{enumerable:!0,get:function(){return n.serializeError}}),Object.defineProperty(e,\"getMessageFromCode\",{enumerable:!0,get:function(){return n.getMessageFromCode}});let r=xte;Object.defineProperty(e,\"ethErrors\",{enumerable:!0,get:function(){return r.ethErrors}});let o=QT;Object.defineProperty(e,\"errorCodes\",{enumerable:!0,get:function(){return o.errorCodes}})})(rrt);art={exports:{}};art.exports=(function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(r,o,i){n.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:i})},n.r=function(r){typeof Symbol<\"u\"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(r,\"__esModule\",{value:!0})},n.t=function(r,o){if(1&o&&(r=n(r)),8&o||4&o&&typeof r==\"object\"&&r&&r.__esModule)return r;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:r}),2&o&&typeof r!=\"string\")for(var a in r)n.d(i,a,function(c){return r[c]}.bind(null,a));return i},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,\"a\",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p=\"\",n(n.s=90)})({17:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=n(18),o=(function(){function i(){}return i.getFirstMatch=function(a,c){var l=c.match(a);return l&&l.length>0&&l[1]||\"\"},i.getSecondMatch=function(a,c){var l=c.match(a);return l&&l.length>1&&l[2]||\"\"},i.matchAndReturnConst=function(a,c,l){if(a.test(c))return l},i.getWindowsVersionName=function(a){switch(a){case\"NT\":return\"NT\";case\"XP\":case\"NT 5.1\":return\"XP\";case\"NT 5.0\":return\"2000\";case\"NT 5.2\":return\"2003\";case\"NT 6.0\":return\"Vista\";case\"NT 6.1\":return\"7\";case\"NT 6.2\":return\"8\";case\"NT 6.3\":return\"8.1\";case\"NT 10.0\":return\"10\";default:return}},i.getMacOSVersionName=function(a){var c=a.split(\".\").splice(0,2).map((function(l){return parseInt(l,10)||0}));if(c.push(0),c[0]===10)switch(c[1]){case 5:return\"Leopard\";case 6:return\"Snow Leopard\";case 7:return\"Lion\";case 8:return\"Mountain Lion\";case 9:return\"Mavericks\";case 10:return\"Yosemite\";case 11:return\"El Capitan\";case 12:return\"Sierra\";case 13:return\"High Sierra\";case 14:return\"Mojave\";case 15:return\"Catalina\";default:return}},i.getAndroidVersionName=function(a){var c=a.split(\".\").splice(0,2).map((function(l){return parseInt(l,10)||0}));if(c.push(0),!(c[0]===1&&c[1]<5))return c[0]===1&&c[1]<6?\"Cupcake\":c[0]===1&&c[1]>=6?\"Donut\":c[0]===2&&c[1]<2?\"Eclair\":c[0]===2&&c[1]===2?\"Froyo\":c[0]===2&&c[1]>2?\"Gingerbread\":c[0]===3?\"Honeycomb\":c[0]===4&&c[1]<1?\"Ice Cream Sandwich\":c[0]===4&&c[1]<4?\"Jelly Bean\":c[0]===4&&c[1]>=4?\"KitKat\":c[0]===5?\"Lollipop\":c[0]===6?\"Marshmallow\":c[0]===7?\"Nougat\":c[0]===8?\"Oreo\":c[0]===9?\"Pie\":void 0},i.getVersionPrecision=function(a){return a.split(\".\").length},i.compareVersions=function(a,c,l){l===void 0&&(l=!1);var d=i.getVersionPrecision(a),m=i.getVersionPrecision(c),h=Math.max(d,m),g=0,y=i.map([a,c],(function(w){var x=h-i.getVersionPrecision(w),I=w+new Array(x+1).join(\".0\");return i.map(I.split(\".\"),(function(C){return new Array(20-C.length).join(\"0\")+C})).reverse()}));for(l&&(g=h-Math.min(d,m)),h-=1;h>=g;){if(y[0][h]>y[1][h])return 1;if(y[0][h]===y[1][h]){if(h===g)return 0;h-=1}else if(y[0][h]<y[1][h])return-1}},i.map=function(a,c){var l,d=[];if(Array.prototype.map)return Array.prototype.map.call(a,c);for(l=0;l<a.length;l+=1)d.push(c(a[l]));return d},i.find=function(a,c){var l,d;if(Array.prototype.find)return Array.prototype.find.call(a,c);for(l=0,d=a.length;l<d;l+=1){var m=a[l];if(c(m,l))return m}},i.assign=function(a){for(var c,l,d=a,m=arguments.length,h=new Array(m>1?m-1:0),g=1;g<m;g++)h[g-1]=arguments[g];if(Object.assign)return Object.assign.apply(Object,[a].concat(h));var y=function(){var w=h[c];typeof w==\"object\"&&w!==null&&Object.keys(w).forEach((function(x){d[x]=w[x]}))};for(c=0,l=h.length;c<l;c+=1)y();return a},i.getBrowserAlias=function(a){return r.BROWSER_ALIASES_MAP[a]},i.getBrowserTypeByAlias=function(a){return r.BROWSER_MAP[a]||\"\"},i})();t.default=o,e.exports=t.default},18:function(e,t,n){t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={\"Amazon Silk\":\"amazon_silk\",\"Android Browser\":\"android\",Bada:\"bada\",BlackBerry:\"blackberry\",Chrome:\"chrome\",Chromium:\"chromium\",Electron:\"electron\",Epiphany:\"epiphany\",Firefox:\"firefox\",Focus:\"focus\",Generic:\"generic\",\"Google Search\":\"google_search\",Googlebot:\"googlebot\",\"Internet Explorer\":\"ie\",\"K-Meleon\":\"k_meleon\",Maxthon:\"maxthon\",\"Microsoft Edge\":\"edge\",\"MZ Browser\":\"mz\",\"NAVER Whale Browser\":\"naver\",Opera:\"opera\",\"Opera Coast\":\"opera_coast\",PhantomJS:\"phantomjs\",Puffin:\"puffin\",QupZilla:\"qupzilla\",QQ:\"qq\",QQLite:\"qqlite\",Safari:\"safari\",Sailfish:\"sailfish\",\"Samsung Internet for Android\":\"samsung_internet\",SeaMonkey:\"seamonkey\",Sleipnir:\"sleipnir\",Swing:\"swing\",Tizen:\"tizen\",\"UC Browser\":\"uc\",Vivaldi:\"vivaldi\",\"WebOS Browser\":\"webos\",WeChat:\"wechat\",\"Yandex Browser\":\"yandex\",Roku:\"roku\"},t.BROWSER_MAP={amazon_silk:\"Amazon Silk\",android:\"Android Browser\",bada:\"Bada\",blackberry:\"BlackBerry\",chrome:\"Chrome\",chromium:\"Chromium\",electron:\"Electron\",epiphany:\"Epiphany\",firefox:\"Firefox\",focus:\"Focus\",generic:\"Generic\",googlebot:\"Googlebot\",google_search:\"Google Search\",ie:\"Internet Explorer\",k_meleon:\"K-Meleon\",maxthon:\"Maxthon\",edge:\"Microsoft Edge\",mz:\"MZ Browser\",naver:\"NAVER Whale Browser\",opera:\"Opera\",opera_coast:\"Opera Coast\",phantomjs:\"PhantomJS\",puffin:\"Puffin\",qupzilla:\"QupZilla\",qq:\"QQ Browser\",qqlite:\"QQ Browser Lite\",safari:\"Safari\",sailfish:\"Sailfish\",samsung_internet:\"Samsung Internet for Android\",seamonkey:\"SeaMonkey\",sleipnir:\"Sleipnir\",swing:\"Swing\",tizen:\"Tizen\",uc:\"UC Browser\",vivaldi:\"Vivaldi\",webos:\"WebOS Browser\",wechat:\"WeChat\",yandex:\"Yandex Browser\"},t.PLATFORMS_MAP={tablet:\"tablet\",mobile:\"mobile\",desktop:\"desktop\",tv:\"tv\"},t.OS_MAP={WindowsPhone:\"Windows Phone\",Windows:\"Windows\",MacOS:\"macOS\",iOS:\"iOS\",Android:\"Android\",WebOS:\"WebOS\",BlackBerry:\"BlackBerry\",Bada:\"Bada\",Tizen:\"Tizen\",Linux:\"Linux\",ChromeOS:\"Chrome OS\",PlayStation4:\"PlayStation 4\",Roku:\"Roku\"},t.ENGINE_MAP={EdgeHTML:\"EdgeHTML\",Blink:\"Blink\",Trident:\"Trident\",Presto:\"Presto\",Gecko:\"Gecko\",WebKit:\"WebKit\"}},90:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(91))&&r.__esModule?r:{default:r},i=n(18);function a(l,d){for(var m=0;m<d.length;m++){var h=d[m];h.enumerable=h.enumerable||!1,h.configurable=!0,\"value\"in h&&(h.writable=!0),Object.defineProperty(l,h.key,h)}}var c=(function(){function l(){}var d,m,h;return l.getParser=function(g,y){if(y===void 0&&(y=!1),typeof g!=\"string\")throw new Error(\"UserAgent should be a string\");return new o.default(g,y)},l.parse=function(g){return new o.default(g).getResult()},d=l,h=[{key:\"BROWSER_MAP\",get:function(){return i.BROWSER_MAP}},{key:\"ENGINE_MAP\",get:function(){return i.ENGINE_MAP}},{key:\"OS_MAP\",get:function(){return i.OS_MAP}},{key:\"PLATFORMS_MAP\",get:function(){return i.PLATFORMS_MAP}}],(m=null)&&a(d.prototype,m),h&&a(d,h),l})();t.default=c,e.exports=t.default},91:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=l(n(92)),o=l(n(93)),i=l(n(94)),a=l(n(95)),c=l(n(17));function l(m){return m&&m.__esModule?m:{default:m}}var d=(function(){function m(g,y){if(y===void 0&&(y=!1),g==null||g===\"\")throw new Error(\"UserAgent parameter can\\'t be empty\");this._ua=g,this.parsedResult={},y!==!0&&this.parse()}var h=m.prototype;return h.getUA=function(){return this._ua},h.test=function(g){return g.test(this._ua)},h.parseBrowser=function(){var g=this;this.parsedResult.browser={};var y=c.default.find(r.default,(function(w){if(typeof w.test==\"function\")return w.test(g);if(w.test instanceof Array)return w.test.some((function(x){return g.test(x)}));throw new Error(\"Browser\\'s test function is not valid\")}));return y&&(this.parsedResult.browser=y.describe(this.getUA())),this.parsedResult.browser},h.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},h.getBrowserName=function(g){return g?String(this.getBrowser().name).toLowerCase()||\"\":this.getBrowser().name||\"\"},h.getBrowserVersion=function(){return this.getBrowser().version},h.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},h.parseOS=function(){var g=this;this.parsedResult.os={};var y=c.default.find(o.default,(function(w){if(typeof w.test==\"function\")return w.test(g);if(w.test instanceof Array)return w.test.some((function(x){return g.test(x)}));throw new Error(\"Browser\\'s test function is not valid\")}));return y&&(this.parsedResult.os=y.describe(this.getUA())),this.parsedResult.os},h.getOSName=function(g){var y=this.getOS().name;return g?String(y).toLowerCase()||\"\":y||\"\"},h.getOSVersion=function(){return this.getOS().version},h.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},h.getPlatformType=function(g){g===void 0&&(g=!1);var y=this.getPlatform().type;return g?String(y).toLowerCase()||\"\":y||\"\"},h.parsePlatform=function(){var g=this;this.parsedResult.platform={};var y=c.default.find(i.default,(function(w){if(typeof w.test==\"function\")return w.test(g);if(w.test instanceof Array)return w.test.some((function(x){return g.test(x)}));throw new Error(\"Browser\\'s test function is not valid\")}));return y&&(this.parsedResult.platform=y.describe(this.getUA())),this.parsedResult.platform},h.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},h.getEngineName=function(g){return g?String(this.getEngine().name).toLowerCase()||\"\":this.getEngine().name||\"\"},h.parseEngine=function(){var g=this;this.parsedResult.engine={};var y=c.default.find(a.default,(function(w){if(typeof w.test==\"function\")return w.test(g);if(w.test instanceof Array)return w.test.some((function(x){return g.test(x)}));throw new Error(\"Browser\\'s test function is not valid\")}));return y&&(this.parsedResult.engine=y.describe(this.getUA())),this.parsedResult.engine},h.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},h.getResult=function(){return c.default.assign({},this.parsedResult)},h.satisfies=function(g){var y=this,w={},x=0,I={},C=0;if(Object.keys(g).forEach((function(ae){var te=g[ae];typeof te==\"string\"?(I[ae]=te,C+=1):typeof te==\"object\"&&(w[ae]=te,x+=1)})),x>0){var M=Object.keys(w),B=c.default.find(M,(function(ae){return y.isOS(ae)}));if(B){var z=this.satisfies(w[B]);if(z!==void 0)return z}var G=c.default.find(M,(function(ae){return y.isPlatform(ae)}));if(G){var J=this.satisfies(w[G]);if(J!==void 0)return J}}if(C>0){var ne=Object.keys(I),ie=c.default.find(ne,(function(ae){return y.isBrowser(ae,!0)}));if(ie!==void 0)return this.compareVersion(I[ie])}},h.isBrowser=function(g,y){y===void 0&&(y=!1);var w=this.getBrowserName().toLowerCase(),x=g.toLowerCase(),I=c.default.getBrowserTypeByAlias(x);return y&&I&&(x=I.toLowerCase()),x===w},h.compareVersion=function(g){var y=[0],w=g,x=!1,I=this.getBrowserVersion();if(typeof I==\"string\")return g[0]===\">\"||g[0]===\"<\"?(w=g.substr(1),g[1]===\"=\"?(x=!0,w=g.substr(2)):y=[],g[0]===\">\"?y.push(1):y.push(-1)):g[0]===\"=\"?w=g.substr(1):g[0]===\"~\"&&(x=!0,w=g.substr(1)),y.indexOf(c.default.compareVersions(I,w,x))>-1},h.isOS=function(g){return this.getOSName(!0)===String(g).toLowerCase()},h.isPlatform=function(g){return this.getPlatformType(!0)===String(g).toLowerCase()},h.isEngine=function(g){return this.getEngineName(!0)===String(g).toLowerCase()},h.is=function(g,y){return y===void 0&&(y=!1),this.isBrowser(g,y)||this.isOS(g)||this.isPlatform(g)},h.some=function(g){var y=this;return g===void 0&&(g=[]),g.some((function(w){return y.is(w)}))},m})();t.default=d,e.exports=t.default},92:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=/version\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,a=[{test:[/googlebot/i],describe:function(c){var l={name:\"Googlebot\"},d=o.default.getFirstMatch(/googlebot\\\\/(\\\\d+(\\\\.\\\\d+))/i,c)||o.default.getFirstMatch(i,c);return d&&(l.version=d),l}},{test:[/opera/i],describe:function(c){var l={name:\"Opera\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:opera)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/opr\\\\/|opios/i],describe:function(c){var l={name:\"Opera\"},d=o.default.getFirstMatch(/(?:opr|opios)[\\\\s/](\\\\S+)/i,c)||o.default.getFirstMatch(i,c);return d&&(l.version=d),l}},{test:[/SamsungBrowser/i],describe:function(c){var l={name:\"Samsung Internet for Android\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:SamsungBrowser)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/Whale/i],describe:function(c){var l={name:\"NAVER Whale Browser\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:whale)[\\\\s/](\\\\d+(?:\\\\.\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/MZBrowser/i],describe:function(c){var l={name:\"MZ Browser\"},d=o.default.getFirstMatch(/(?:MZBrowser)[\\\\s/](\\\\d+(?:\\\\.\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(l.version=d),l}},{test:[/focus/i],describe:function(c){var l={name:\"Focus\"},d=o.default.getFirstMatch(/(?:focus)[\\\\s/](\\\\d+(?:\\\\.\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(l.version=d),l}},{test:[/swing/i],describe:function(c){var l={name:\"Swing\"},d=o.default.getFirstMatch(/(?:swing)[\\\\s/](\\\\d+(?:\\\\.\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(l.version=d),l}},{test:[/coast/i],describe:function(c){var l={name:\"Opera Coast\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:coast)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/opt\\\\/\\\\d+(?:.?_?\\\\d+)+/i],describe:function(c){var l={name:\"Opera Touch\"},d=o.default.getFirstMatch(/(?:opt)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(l.version=d),l}},{test:[/yabrowser/i],describe:function(c){var l={name:\"Yandex Browser\"},d=o.default.getFirstMatch(/(?:yabrowser)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(l.version=d),l}},{test:[/ucbrowser/i],describe:function(c){var l={name:\"UC Browser\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:ucbrowser)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/Maxthon|mxios/i],describe:function(c){var l={name:\"Maxthon\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/epiphany/i],describe:function(c){var l={name:\"Epiphany\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:epiphany)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/puffin/i],describe:function(c){var l={name:\"Puffin\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:puffin)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/sleipnir/i],describe:function(c){var l={name:\"Sleipnir\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:sleipnir)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/k-meleon/i],describe:function(c){var l={name:\"K-Meleon\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/(?:k-meleon)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/micromessenger/i],describe:function(c){var l={name:\"WeChat\"},d=o.default.getFirstMatch(/(?:micromessenger)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(l.version=d),l}},{test:[/qqbrowser/i],describe:function(c){var l={name:/qqbrowserlite/i.test(c)?\"QQ Browser Lite\":\"QQ Browser\"},d=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(l.version=d),l}},{test:[/msie|trident/i],describe:function(c){var l={name:\"Internet Explorer\"},d=o.default.getFirstMatch(/(?:msie |rv:)(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/\\\\sedg\\\\//i],describe:function(c){var l={name:\"Microsoft Edge\"},d=o.default.getFirstMatch(/\\\\sedg\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/edg([ea]|ios)/i],describe:function(c){var l={name:\"Microsoft Edge\"},d=o.default.getSecondMatch(/edg([ea]|ios)\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/vivaldi/i],describe:function(c){var l={name:\"Vivaldi\"},d=o.default.getFirstMatch(/vivaldi\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/seamonkey/i],describe:function(c){var l={name:\"SeaMonkey\"},d=o.default.getFirstMatch(/seamonkey\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/sailfish/i],describe:function(c){var l={name:\"Sailfish\"},d=o.default.getFirstMatch(/sailfish\\\\s?browser\\\\/(\\\\d+(\\\\.\\\\d+)?)/i,c);return d&&(l.version=d),l}},{test:[/silk/i],describe:function(c){var l={name:\"Amazon Silk\"},d=o.default.getFirstMatch(/silk\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/phantom/i],describe:function(c){var l={name:\"PhantomJS\"},d=o.default.getFirstMatch(/phantomjs\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/slimerjs/i],describe:function(c){var l={name:\"SlimerJS\"},d=o.default.getFirstMatch(/slimerjs\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/blackberry|\\\\bbb\\\\d+/i,/rim\\\\stablet/i],describe:function(c){var l={name:\"BlackBerry\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/blackberry[\\\\d]+\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/(web|hpw)[o0]s/i],describe:function(c){var l={name:\"WebOS Browser\"},d=o.default.getFirstMatch(i,c)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/bada/i],describe:function(c){var l={name:\"Bada\"},d=o.default.getFirstMatch(/dolfin\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/tizen/i],describe:function(c){var l={name:\"Tizen\"},d=o.default.getFirstMatch(/(?:tizen\\\\s?)?browser\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(l.version=d),l}},{test:[/qupzilla/i],describe:function(c){var l={name:\"QupZilla\"},d=o.default.getFirstMatch(/(?:qupzilla)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(l.version=d),l}},{test:[/firefox|iceweasel|fxios/i],describe:function(c){var l={name:\"Firefox\"},d=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/electron/i],describe:function(c){var l={name:\"Electron\"},d=o.default.getFirstMatch(/(?:electron)\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/MiuiBrowser/i],describe:function(c){var l={name:\"Miui\"},d=o.default.getFirstMatch(/(?:MiuiBrowser)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/chromium/i],describe:function(c){var l={name:\"Chromium\"},d=o.default.getFirstMatch(/(?:chromium)[\\\\s/](\\\\d+(\\\\.?_?\\\\d+)+)/i,c)||o.default.getFirstMatch(i,c);return d&&(l.version=d),l}},{test:[/chrome|crios|crmo/i],describe:function(c){var l={name:\"Chrome\"},d=o.default.getFirstMatch(/(?:chrome|crios|crmo)\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/GSA/i],describe:function(c){var l={name:\"Google Search\"},d=o.default.getFirstMatch(/(?:GSA)\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:function(c){var l=!c.test(/like android/i),d=c.test(/android/i);return l&&d},describe:function(c){var l={name:\"Android Browser\"},d=o.default.getFirstMatch(i,c);return d&&(l.version=d),l}},{test:[/playstation 4/i],describe:function(c){var l={name:\"PlayStation 4\"},d=o.default.getFirstMatch(i,c);return d&&(l.version=d),l}},{test:[/safari|applewebkit/i],describe:function(c){var l={name:\"Safari\"},d=o.default.getFirstMatch(i,c);return d&&(l.version=d),l}},{test:[/.*/i],describe:function(c){var l=c.search(\"\\\\\\\\(\")!==-1?/^(.*)\\\\/(.*)[ \\\\t]\\\\((.*)/:/^(.*)\\\\/(.*) /;return{name:o.default.getFirstMatch(l,c),version:o.default.getSecondMatch(l,c)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/Roku\\\\/DVP/],describe:function(c){var l=o.default.getFirstMatch(/Roku\\\\/DVP-(\\\\d+\\\\.\\\\d+)/i,c);return{name:i.OS_MAP.Roku,version:l}}},{test:[/windows phone/i],describe:function(c){var l=o.default.getFirstMatch(/windows phone (?:os)?\\\\s?(\\\\d+(\\\\.\\\\d+)*)/i,c);return{name:i.OS_MAP.WindowsPhone,version:l}}},{test:[/windows /i],describe:function(c){var l=o.default.getFirstMatch(/Windows ((NT|XP)( \\\\d\\\\d?.\\\\d)?)/i,c),d=o.default.getWindowsVersionName(l);return{name:i.OS_MAP.Windows,version:l,versionName:d}}},{test:[/Macintosh(.*?) FxiOS(.*?)\\\\//],describe:function(c){var l={name:i.OS_MAP.iOS},d=o.default.getSecondMatch(/(Version\\\\/)(\\\\d[\\\\d.]+)/,c);return d&&(l.version=d),l}},{test:[/macintosh/i],describe:function(c){var l=o.default.getFirstMatch(/mac os x (\\\\d+(\\\\.?_?\\\\d+)+)/i,c).replace(/[_\\\\s]/g,\".\"),d=o.default.getMacOSVersionName(l),m={name:i.OS_MAP.MacOS,version:l};return d&&(m.versionName=d),m}},{test:[/(ipod|iphone|ipad)/i],describe:function(c){var l=o.default.getFirstMatch(/os (\\\\d+([_\\\\s]\\\\d+)*) like mac os x/i,c).replace(/[_\\\\s]/g,\".\");return{name:i.OS_MAP.iOS,version:l}}},{test:function(c){var l=!c.test(/like android/i),d=c.test(/android/i);return l&&d},describe:function(c){var l=o.default.getFirstMatch(/android[\\\\s/-](\\\\d+(\\\\.\\\\d+)*)/i,c),d=o.default.getAndroidVersionName(l),m={name:i.OS_MAP.Android,version:l};return d&&(m.versionName=d),m}},{test:[/(web|hpw)[o0]s/i],describe:function(c){var l=o.default.getFirstMatch(/(?:web|hpw)[o0]s\\\\/(\\\\d+(\\\\.\\\\d+)*)/i,c),d={name:i.OS_MAP.WebOS};return l&&l.length&&(d.version=l),d}},{test:[/blackberry|\\\\bbb\\\\d+/i,/rim\\\\stablet/i],describe:function(c){var l=o.default.getFirstMatch(/rim\\\\stablet\\\\sos\\\\s(\\\\d+(\\\\.\\\\d+)*)/i,c)||o.default.getFirstMatch(/blackberry\\\\d+\\\\/(\\\\d+([_\\\\s]\\\\d+)*)/i,c)||o.default.getFirstMatch(/\\\\bbb(\\\\d+)/i,c);return{name:i.OS_MAP.BlackBerry,version:l}}},{test:[/bada/i],describe:function(c){var l=o.default.getFirstMatch(/bada\\\\/(\\\\d+(\\\\.\\\\d+)*)/i,c);return{name:i.OS_MAP.Bada,version:l}}},{test:[/tizen/i],describe:function(c){var l=o.default.getFirstMatch(/tizen[/\\\\s](\\\\d+(\\\\.\\\\d+)*)/i,c);return{name:i.OS_MAP.Tizen,version:l}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(c){var l=o.default.getFirstMatch(/PlayStation 4[/\\\\s](\\\\d+(\\\\.\\\\d+)*)/i,c);return{name:i.OS_MAP.PlayStation4,version:l}}}];t.default=a,e.exports=t.default},94:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:\"bot\",vendor:\"Google\"}}},{test:[/huawei/i],describe:function(c){var l=o.default.getFirstMatch(/(can-l01)/i,c)&&\"Nova\",d={type:i.PLATFORMS_MAP.mobile,vendor:\"Huawei\"};return l&&(d.model=l),d}},{test:[/nexus\\\\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:\"Nexus\"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:\"Apple\",model:\"iPad\"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\\\\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:\"Apple\",model:\"iPad\"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:\"Amazon\",model:\"Kindle Fire HD 7\"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:\"Amazon\"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(c){var l=c.test(/ipod|iphone/i),d=c.test(/like (ipod|iphone)/i);return l&&!d},describe:function(c){var l=o.default.getFirstMatch(/(ipod|iphone)/i,c);return{type:i.PLATFORMS_MAP.mobile,vendor:\"Apple\",model:l}}},{test:[/nexus\\\\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:\"Nexus\"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(c){return c.getBrowserName(!0)===\"blackberry\"},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:\"BlackBerry\"}}},{test:function(c){return c.getBrowserName(!0)===\"bada\"},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(c){return c.getBrowserName()===\"windows phone\"},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:\"Microsoft\"}}},{test:function(c){var l=Number(String(c.getOSVersion()).split(\".\")[0]);return c.getOSName(!0)===\"android\"&&l>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(c){return c.getOSName(!0)===\"android\"},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(c){return c.getOSName(!0)===\"macos\"},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:\"Apple\"}}},{test:function(c){return c.getOSName(!0)===\"windows\"},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(c){return c.getOSName(!0)===\"linux\"},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(c){return c.getOSName(!0)===\"playstation 4\"},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(c){return c.getOSName(!0)===\"roku\"},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:function(c){return c.getBrowserName(!0)===\"microsoft edge\"},describe:function(c){if(/\\\\sedg\\\\//i.test(c))return{name:i.ENGINE_MAP.Blink};var l=o.default.getFirstMatch(/edge\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return{name:i.ENGINE_MAP.EdgeHTML,version:l}}},{test:[/trident/i],describe:function(c){var l={name:i.ENGINE_MAP.Trident},d=o.default.getFirstMatch(/trident\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:function(c){return c.test(/presto/i)},describe:function(c){var l={name:i.ENGINE_MAP.Presto},d=o.default.getFirstMatch(/presto\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:function(c){var l=c.test(/gecko/i),d=c.test(/like gecko/i);return l&&!d},describe:function(c){var l={name:i.ENGINE_MAP.Gecko},d=o.default.getFirstMatch(/gecko\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}},{test:[/(apple)?webkit\\\\/537\\\\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(c){var l={name:i.ENGINE_MAP.WebKit},d=o.default.getFirstMatch(/webkit\\\\/(\\\\d+(\\\\.?_?\\\\d+)+)/i,c);return d&&(l.version=d),l}}];t.default=a,e.exports=t.default}});srt=kte(art.exports),ah={Initialized:\"initialized\",DisplayURI:\"display_uri\",ProviderUpdate:\"provider_update\",ConnectWithResponse:\"connectWithResponse\",ConnectionStatus:\"connection_status\",ServiceStatus:\"service_status\"},E1=class e{constructor({shouldSetOnWindow:t,connectionStream:n,shouldSendMetadata:r=!1,shouldShimWeb3:o,sdkInstance:i}){let a=new Ate({connectionStream:n,shouldSendMetadata:r,shouldSetOnWindow:t,shouldShimWeb3:o,autoRequestAccounts:!1}),c=new Proxy(a,{deleteProperty:()=>!0});if(this.provider=c,this.sdkInstance=i,t&&typeof window<\"u\")try{l=a,window.ethereum=l,window.dispatchEvent(new Event(\"ethereum#initialized\"))}catch(d){nt(\"[Ethereum] Unable to set global provider - window.ethereum may be read-only\",d)}var l;if(o&&typeof window<\"u\")try{(function(d,m=console){let h=!1,g=!1;if(!window.web3){let y=\"__isMetaMaskShim__\",w={currentProvider:d};Object.defineProperty(w,y,{value:!0,enumerable:!0,configurable:!1,writable:!1}),w=new Proxy(w,{get:(x,I,...C)=>(I!==\"currentProvider\"||h?I===\"currentProvider\"||I===y||g||(g=!0,m.error(\"MetaMask no longer injects web3. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3\"),d.request({method:\"metamask_logWeb3ShimUsage\"}).catch((M=>{m.debug(\"MetaMask: Failed to log web3 shim usage.\",M)}))):(h=!0,m.warn(\"You are accessing the MetaMask window.web3.currentProvider shim. This property is deprecated; use window.ethereum instead. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3\")),Reflect.get(x,I,...C)),set:(...x)=>(m.warn(\"You are accessing the MetaMask window.web3 shim. This object is deprecated; use window.ethereum instead. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3\"),Reflect.set(...x))}),Object.defineProperty(window,\"web3\",{value:w,enumerable:!1,configurable:!0,writable:!0})}})(this.provider)}catch(d){nt(\"[Ethereum] Unable to shim web3 - window.web3 may be read-only\",d)}this.provider.on(\"display_uri\",(d=>{this.sdkInstance.emit(ah.DisplayURI,d)})),this.provider.on(\"_initialized\",(()=>{let d={chainId:this.provider.getChainId(),isConnected:this.provider.isConnected(),isMetaMask:this.provider.isMetaMask,selectedAddress:this.provider.getSelectedAddress(),networkVersion:this.provider.getNetworkVersion()};this.sdkInstance.emit(ah.Initialized,d),nt(\"[Ethereum: constructor()] provider initialized\",d)}))}static init(t){var n;return nt(\"[Ethereum: init()] Initializing Ethereum service\"),this.instance=new e(t),(n=this.instance)===null||n===void 0?void 0:n.provider}static destroy(){}static getInstance(){var t;if(!(!((t=this.instance)===null||t===void 0)&&t.provider))throw new Error(\"Ethereum instance not intiialized - call Ethereum.factory first.\");return this.instance}static getProvider(){var t;if(!(!((t=this.instance)===null||t===void 0)&&t.provider))throw new Error(\"Ethereum instance not intiialized - call Ethereum.factory first.\");return this.instance.provider}},Ete=class e{constructor({useDeepLink:t,preferredOpenLink:n,debug:r=!1}){this.state={platformType:void 0,useDeeplink:!1,preferredOpenLink:void 0,debug:!1},this.state.platformType=this.getPlatformType(),this.state.useDeeplink=t,this.state.preferredOpenLink=n,this.state.debug=r}openDeeplink(t,n,r){return(function(o,i,a,c){let{state:l}=o;nt(`[PlatfformManager: openDeeplink()] universalLink --> ${i}`),nt(`[PlatfformManager: openDeeplink()] deepLink --> ${a}`);try{if(l.preferredOpenLink)return void l.preferredOpenLink(l.useDeeplink?a:i,c);if(nt(`[PlatfformManager: openDeeplink()] open link now useDeepLink=${l.useDeeplink} link=${l.useDeeplink?a:i}`),l.useDeeplink)typeof window<\"u\"&&(window.location.href=a);else if(typeof document<\"u\"){let d=document.createElement(\"a\");d.href=i,d.target=\"_self\",d.rel=\"noreferrer noopener\",d.click()}}catch(d){console.log(\"[PlatfformManager: openDeeplink()] can\\'t open link\",d)}})(this,t,n,r)}isReactNative(){var t;return this.isNotBrowser()&&typeof window<\"u\"&&window?.navigator&&((t=window.navigator)===null||t===void 0?void 0:t.product)===\"ReactNative\"}isMetaMaskInstalled(){return(function(){let t=E1.getProvider()||window?.ethereum;return nt(`[PlatfformManager: isMetaMaskInstalled()] isMetaMask=${t?.isMetaMask} isConnected=${t?.isConnected()}`),t?.isMetaMask&&t?.isConnected()})()}isDesktopWeb(){return this.isBrowser()&&!this.isMobileWeb()}isMobile(){var t,n;let r=srt.parse(window.navigator.userAgent);return((t=r?.platform)===null||t===void 0?void 0:t.type)===\"mobile\"||((n=r?.platform)===null||n===void 0?void 0:n.type)===\"tablet\"}isSecure(){return this.isReactNative()||this.isMobileWeb()}isMetaMaskMobileWebView(){return typeof window<\"u\"&&!!window.ReactNativeWebView&&!!navigator.userAgent.endsWith(\"MetaMaskMobile\")}isMobileWeb(){return this.state.platformType===Gd.MobileWeb}static isNotBrowser(){var t;return typeof window>\"u\"||!window?.navigator||sh!==void 0&&((t=sh?.navigator)===null||t===void 0?void 0:t.product)===\"ReactNative\"||navigator?.product===\"ReactNative\"}isNotBrowser(){return e.isNotBrowser()}static isBrowser(){return!this.isNotBrowser()}isBrowser(){return e.isBrowser()}isNodeJS(){return this.isNotBrowser()&&!this.isReactNative()}isUseDeepLink(){return this.state.useDeeplink}getPlatformType(){return(function(t){let{state:n}=t;return n.platformType?n.platformType:t.isReactNative()?Gd.ReactNative:t.isNotBrowser()?Gd.NonBrowser:t.isMetaMaskMobileWebView()?Gd.MetaMaskMobileWebview:t.isMobile()?Gd.MobileWeb:Gd.DesktopWeb})(this)}},crt=e=>pt(void 0,void 0,void 0,(function*(){if(Ete.isBrowser()){let{StorageManagerWeb:n}=yield Promise.resolve().then((function(){return BLt}));return new n(e)}let t={persistChannelConfig:()=>pt(void 0,void 0,void 0,(function*(){})),getPersistedChannelConfig:()=>pt(void 0,void 0,void 0,(function*(){})),persistAccounts:()=>pt(void 0,void 0,void 0,(function*(){})),getCachedAccounts:()=>pt(void 0,void 0,void 0,(function*(){return[]})),persistChainId:()=>pt(void 0,void 0,void 0,(function*(){})),getCachedChainId:()=>pt(void 0,void 0,void 0,(function*(){})),terminate:()=>pt(void 0,void 0,void 0,(function*(){}))};return Promise.resolve(t)})),Ate=class extends lLt{constructor({connectionStream:t,shouldSendMetadata:n,autoRequestAccounts:r=!1}){super(t,{logger:console,maxEventListeners:100,shouldSendMetadata:n}),this.state={accounts:null,autoRequestAccounts:!1,providerStateRequested:!1,chainId:\"\",networkVersion:\"\"},nt(`[SDKProvider: constructor()] autoRequestAccounts=${r}`),this.state.autoRequestAccounts=r}forceInitializeState(){return pt(this,void 0,void 0,(function*(){return nt(`[SDKProvider: forceInitializeState()] autoRequestAccounts=${this.state.autoRequestAccounts}`),this._initializeStateAsync()}))}_setConnected(){nt(\"[SDKProvider: _setConnected()] Setting connected state\"),this._state.isConnected=!0}getState(){return this._state}getSDKProviderState(){return this.state}getSelectedAddress(){var t;let{accounts:n}=this._state;return n&&n.length!==0?((t=n[0])===null||t===void 0?void 0:t.toLowerCase())||\"\":(nt(\"[SDKProvider: getSelectedAddress] No accounts found\"),null)}getChainId(){return this.state.chainId}getNetworkVersion(){return this.state.networkVersion}setSDKProviderState(t){this.state=Object.assign(Object.assign({},this.state),t)}handleAccountsChanged(t,n){return this._handleAccountsChanged(t,n)}handleDisconnect({terminate:t=!1}){(function({terminate:n=!1,instance:r}){let{state:o}=r;nt(`[SDKProvider: handleDisconnect()] cleaning up provider state terminate=${n}`,r),n&&(r._state.accounts=null,r._state.isUnlocked=!1,r._state.isPermanentlyDisconnected=!0,r._state.initialized=!1),r._handleAccountsChanged([]),r._state.isConnected=!1,r.emit(\"disconnect\",rrt.ethErrors.provider.disconnected()),o.providerStateRequested=!1})({terminate:t,instance:this})}_initializeStateAsync(){return pt(this,void 0,void 0,(function*(){return(function(t){var n,r;return pt(this,void 0,void 0,(function*(){t.state===void 0&&(t.state={accounts:null,autoRequestAccounts:!1,providerStateRequested:!1,chainId:\"\"});let{state:o}=t,i;if(o.providerStateRequested)nt(\"[SDKProvider: initializeStateAsync()] initialization already in progress\");else{let a;o.providerStateRequested=!0;let c=null,l=!1,d=!1,m=yield crt({enabled:!0});if(m){let h=yield m.getPersistedChannelConfig({});l=(n=h?.relayPersistence)!==null&&n!==void 0&&n,a=yield m.getCachedChainId();let g=yield m.getCachedAccounts();g.length>0&&(c=g[0])}if(nt(`[SDKProvider: initializeStateAsync()] relayPersistence=${l}`,{relayPersistence:l,cachedChainId:a,cachedSelectedAddress:c}),l)if(a&&c)i={accounts:[c],chainId:a,isUnlocked:!1},d=!0;else try{i=yield t.request({method:\"metamask_getProviderState\"})}catch(h){return t._log.error(\"MetaMask: Failed to get initial state. Please report this bug.\",h),void(o.providerStateRequested=!1)}if(((r=i?.accounts)===null||r===void 0?void 0:r.length)===0)if(t.getSelectedAddress())i.accounts=[t.getSelectedAddress()];else{nt(\"[SDKProvider: initializeStateAsync()] Fetch accounts remotely.\");let h=yield t.request({method:\"eth_requestAccounts\",params:[]});i.accounts=h}t._initializeState(i),o.providerStateRequested=!1,d&&(t._state.isConnected=!0,t.emit(\"connect\",{chainId:i?.chainId}))}}))})(this)}))}_initializeState(t){return nt(\"[SDKProvider: _initializeState()]\",t),(function(n,r,o){return nt(\"[SDKProvider: initializeState()] set state._initialized to false\"),n._state.initialized=!1,r(o)})(this,super._initializeState.bind(this),t)}_handleChainChanged({chainId:t,networkVersion:n}={}){this.state.chainId=t,this.state.networkVersion=n,(function({instance:r,chainId:o,networkVersion:i,superHandleChainChanged:a}){nt(`[SDKProvider: handleChainChanged()] chainId=${o} networkVersion=${i}`);let c=i;i||(nt(\"[SDKProvider: handleChainChanged()] forced network version to prevent provider error\"),c=\"1\"),o!==cet&&(Oc.analytics.track(\"sdk_used_chain\",{caip_chain_id:`eip155:${parseInt(o??\"0x1\",16)}`}),cet=o),r._state.isConnected=!0,r.emit(\"connect\",{chainId:o}),a({chainId:o,networkVersion:c})})({instance:this,chainId:t,networkVersion:n,superHandleChainChanged:super._handleChainChanged.bind(this)})}},cI={name:\"@metamask/sdk\",version:\"0.33.1\",description:\"\",homepage:\"https://github.com/MetaMask/metamask-sdk#readme\",bugs:{url:\"https://github.com/MetaMask/metamask-sdk/issues\"},repository:{type:\"git\",url:\"https://github.com/MetaMask/metamask-sdk\",directory:\"packages/sdk\"},main:\"dist/node/cjs/metamask-sdk.js\",module:\"dist/browser/es/metamask-sdk.js\",browser:\"dist/browser/es/metamask-sdk.js\",unpkg:\"dist/browser/umd/metamask-sdk.js\",\"react-native\":\"dist/react-native/es/metamask-sdk.js\",types:\"dist/types/src/index.d.ts\",sideEffects:!1,files:[\"/dist\"],scripts:{\"build:types\":\"tsc --project tsconfig.build.json --emitDeclarationOnly --outDir dist/types\",build:\"yarn build:types && rollup -c --bundleConfigAsCjs\",\"build:clean\":\"yarn clean && yarn build\",\"build:post-tsc\":\"echo \\'N/A\\'\",\"build:pre-tsc\":\"echo \\'N/A\\'\",typecheck:\"tsc --noEmit\",clean:\"rimraf ./dist\",size:\"node bundle-size && size-limit\",lint:\"yarn lint:eslint && yarn lint:misc --check\",\"lint:changelog\":\"../../scripts/validate-changelog.sh @metamask/sdk\",\"lint:eslint\":\"eslint . --cache --ext js,ts\",\"lint:fix\":\"yarn lint:eslint --fix && yarn lint:misc --write\",\"lint:misc\":\"prettier \\'**/*.json\\' \\'**/*.md\\' \\'!CHANGELOG.md\\' --ignore-path ../../.gitignore\",prepack:\"../../scripts/prepack.sh\",\"publish:preview\":\"yarn npm publish --tag preview\",reset:\"yarn clean && rimraf ./node_modules/\",test:\\'jest --testPathIgnorePatterns \"/e2e/\"\\',\"test:coverage\":\\'jest --coverage --testPathIgnorePatterns \"/e2e/\"\\',\"test:e2e\":\\'jest --testPathPattern \"/e2e/\"\\',\"test:ci\":\\'jest --coverage --passWithNoTests --setupFilesAfterEnv ./jest-preload.js --testPathIgnorePatterns \"/e2e/\"\\',\"test:dev\":\\'jest -c ./jest.config.ts --detectOpenHandles  --testPathIgnorePatterns \"/e2e/\"\\',watch:\"rollup -c -w\",dev:\\'concurrently \"tsc --watch\" \"rollup -c -w --bundleConfigAsCjs\"\\',\"build:dev\":\"yarn build:types && NODE_ENV=dev rollup -c --bundleConfigAsCjs\"},dependencies:{\"@babel/runtime\":\"^7.26.0\",\"@metamask/onboarding\":\"^1.0.1\",\"@metamask/providers\":\"16.1.0\",\"@metamask/sdk-analytics\":\"workspace:*\",\"@metamask/sdk-communication-layer\":\"workspace:*\",\"@metamask/sdk-install-modal-web\":\"workspace:*\",\"@paulmillr/qr\":\"^0.2.1\",bowser:\"^2.9.0\",\"cross-fetch\":\"^4.0.0\",debug:\"4.3.4\",eciesjs:\"^0.4.11\",\"eth-rpc-errors\":\"^4.0.3\",eventemitter2:\"^6.4.9\",\"obj-multiplex\":\"^1.0.0\",pump:\"^3.0.0\",\"readable-stream\":\"^3.6.2\",\"socket.io-client\":\"^4.5.1\",tslib:\"^2.6.0\",util:\"^0.12.4\",uuid:\"^8.3.2\"},devDependencies:{\"@jest/globals\":\"^29.3.1\",\"@lavamoat/allow-scripts\":\"^2.3.1\",\"@metamask/auto-changelog\":\"3.1.0\",\"@metamask/eslint-config\":\"^6.0.0\",\"@metamask/eslint-config-nodejs\":\"^6.0.0\",\"@metamask/eslint-config-typescript\":\"^6.0.0\",\"@react-native-async-storage/async-storage\":\"^1.19.6\",\"@rollup/plugin-alias\":\"^5.1.1\",\"@rollup/plugin-commonjs\":\"^25.0.7\",\"@rollup/plugin-json\":\"^6.0.0\",\"@rollup/plugin-node-resolve\":\"^15.0.2\",\"@rollup/plugin-replace\":\"^6.0.1\",\"@rollup/plugin-terser\":\"^0.4.1\",\"@size-limit/preset-big-lib\":\"^11.0.2\",\"@types/dom-screen-wake-lock\":\"^1.0.2\",\"@types/node\":\"^20.1.3\",\"@types/pump\":\"^1.1.1\",\"@types/qrcode-terminal\":\"^0.12.0\",\"@types/uuid\":\"^10.0.0\",\"@typescript-eslint/eslint-plugin\":\"^4.26.0\",\"@typescript-eslint/parser\":\"^4.26.0\",\"browserify-zlib\":\"^0.2.0\",buffer:\"^6.0.3\",concurrently:\"^9.1.2\",\"crypto-browserify\":\"^3.12.0\",eslint:\"^7.30.0\",\"eslint-config-prettier\":\"^8.3.0\",\"eslint-plugin-import\":\"^2.23.4\",\"eslint-plugin-jest\":\"^24.4.0\",\"eslint-plugin-jsdoc\":\"^36.1.0\",\"eslint-plugin-node\":\"^11.1.0\",\"eslint-plugin-prettier\":\"^3.4.0\",\"https-browserify\":\"^1.0.0\",jest:\"^29.3.1\",\"jest-environment-jsdom\":\"^29.3.1\",prettier:\"^2.3.0\",process:\"^0.11.10\",rimraf:\"^4.4.0\",rollup:\"^4.26.0\",\"rollup-plugin-analyzer\":\"^4.0.0\",\"rollup-plugin-jscc\":\"^2.0.0\",\"rollup-plugin-natives\":\"^0.7.5\",\"rollup-plugin-node-builtins\":\"^2.1.2\",\"rollup-plugin-polyfill-node\":\"^0.13.0\",\"rollup-plugin-sizes\":\"^1.0.6\",\"rollup-plugin-typescript2\":\"^0.31.2\",\"rollup-plugin-visualizer\":\"^5.12.0\",\"size-limit\":\"^11.0.2\",\"stream-browserify\":\"^3.0.0\",\"stream-http\":\"^3.2.0\",\"ts-jest\":\"^29.0.3\",\"ts-node\":\"^10.9.1\",typescript:\"^4.3.2\",url:\"^0.11.0\",webpack:\"^5.0.0\"},publishConfig:{access:\"public\",registry:\"https://registry.npmjs.org/\"},lavamoat:{allowScripts:{\"eciesjs>secp256k1\":!1,\"socket.io-client>engine.io-client>ws>bufferutil\":!1,\"socket.io-client>engine.io-client>ws>utf-8-validate\":!1,\"@metamask/sdk-communication-layer>bufferutil\":!1,\"@metamask/sdk-communication-layer>eciesjs>secp256k1\":!1,\"@metamask/sdk-communication-layer>utf-8-validate\":!1}}};(function(e){e.INPAGE=\"metamask-inpage\",e.CONTENT_SCRIPT=\"metamask-contentscript\",e.PROVIDER=\"metamask-provider\"})(LH||(LH={}));uet=\"direct\",UH=\"https://metamask.app.link/connect\",FH=\"metamask://connect\",det={NAME:\"MetaMask\",RDNS:[\"io.metamask\",\"io.metamask.flask\"]},pLt=/(?:^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u,kn={METAMASK_GETPROVIDERSTATE:\"metamask_getProviderState\",METAMASK_CONNECTSIGN:\"metamask_connectSign\",METAMASK_CONNECTWITH:\"metamask_connectWith\",METAMASK_OPEN:\"metamask_open\",METAMASK_BATCH:\"metamask_batch\",PERSONAL_SIGN:\"personal_sign\",WALLET_REQUESTPERMISSIONS:\"wallet_requestPermissions\",WALLET_REVOKEPERMISSIONS:\"wallet_revokePermissions\",WALLET_GETPERMISSIONS:\"wallet_getPermissions\",WALLET_WATCHASSET:\"wallet_watchAsset\",WALLET_ADDETHEREUMCHAIN:\"wallet_addEthereumChain\",WALLET_SWITCHETHETHEREUMCHAIN:\"wallet_switchEthereumChain\",ETH_REQUESTACCOUNTS:\"eth_requestAccounts\",ETH_ACCOUNTS:\"eth_accounts\",ETH_CHAINID:\"eth_chainId\",ETH_SENDTRANSACTION:\"eth_sendTransaction\",ETH_SIGNTYPEDDATA:\"eth_signTypedData\",ETH_SIGNTYPEDDATA_V3:\"eth_signTypedData_v3\",ETH_SIGNTYPEDDATA_V4:\"eth_signTypedData_v4\",ETH_SIGNTRANSACTION:\"eth_signTransaction\",ETH_SIGN:\"eth_sign\",PERSONAL_EC_RECOVER:\"personal_ecRecover\"},HH={[kn.ETH_REQUESTACCOUNTS]:!0,[kn.ETH_SENDTRANSACTION]:!0,[kn.ETH_SIGNTRANSACTION]:!0,[kn.ETH_SIGN]:!0,[kn.PERSONAL_SIGN]:!0,[kn.ETH_ACCOUNTS]:!1,[kn.ETH_CHAINID]:!1,[kn.PERSONAL_SIGN]:!0,[kn.ETH_SIGNTYPEDDATA]:!0,[kn.ETH_SIGNTYPEDDATA_V3]:!0,[kn.ETH_SIGNTYPEDDATA_V4]:!0,[kn.WALLET_REQUESTPERMISSIONS]:!0,[kn.WALLET_GETPERMISSIONS]:!0,[kn.WALLET_WATCHASSET]:!0,[kn.WALLET_ADDETHEREUMCHAIN]:!0,[kn.WALLET_SWITCHETHETHEREUMCHAIN]:!0,[kn.METAMASK_CONNECTSIGN]:!0,[kn.METAMASK_CONNECTWITH]:!0,[kn.PERSONAL_EC_RECOVER]:!0,[kn.METAMASK_BATCH]:!0,[kn.METAMASK_OPEN]:!0},hLt=Object.keys(HH).filter((e=>HH[e]===!0)).map((e=>e.toLowerCase())),urt=[\"eth_signTypedData\",\"eth_signTypedData_v3\",\"eth_signTypedData_v4\",\"eth_sign\"].map((e=>e.toLowerCase())),Ibe=\".sdk-comm\",Ste=\"providerType\",d1e=\".MMSDK_cached_address\",f1e=\".MMSDK_cached_chainId\",zw={CHAIN_CHANGED:\"chainChanged\",ACCOUNTS_CHANGED:\"accountsChanged\",DISCONNECT:\"disconnect\",CONNECT:\"connect\",CONNECTED:\"connected\"},mLt=1e6;(function(e){e.TERMINATE=\"terminate\",e.EXTENSION=\"extension\",e.INITIALIZED=\"initialized\"})(A1||(A1={}));gLt=typeof window<\"u\"&&window.localStorage;p1e=class extends yM.Duplex{constructor({name:t,remote:n,deeplinkProtocol:r,platformManager:o}){super({objectMode:!0}),this.state={_name:null,remote:null,deeplinkProtocol:!1,platformManager:null},this.state._name=t,this.state.remote=n,this.state.deeplinkProtocol=r,this.state.platformManager=o,this._onMessage=this._onMessage.bind(this),this.state.remote.on(Rt.MESSAGE,this._onMessage)}_write(t,n,r){return pt(this,void 0,void 0,(function*(){return bLt(this,t,0,r)}))}_read(){}_onMessage(t){return(function(n,r){try{if(nt(\"[RCPMS: onMessage()] message\",r),!r||typeof r!=\"object\"||typeof r?.data!=\"object\")return;if(!r?.name)return void nt(\"[RCPMS: onMessage()] ignore message without name\",r);if(r?.name!==LH.PROVIDER)return void nt(`[RCPMS: onMessage()] ignore message with wrong name message=${r}`);if(ht.isBuffer(r)){let o=ht.from(r);n.push(o)}else n.push(r)}catch(o){nt(`[RCPMS: onMessage()] ignore message error err=${o}`)}})(this,t)}start(){}},pet=1,lrt=e=>new Promise((t=>{setTimeout((()=>{t(!0)}),e)})),vLt=({checkInstallationOnAllCalls:e=!1,communicationLayerPreference:t,injectProvider:n,shouldShimWeb3:r,platformManager:o,installer:i,sdk:a,remoteConnection:c,debug:l})=>pt(void 0,void 0,void 0,(function*(){var d,m;let h=(({name:te,remoteConnection:Z})=>{if(!Z||!Z?.getConnector())throw new Error(\"Missing remote connection parameter\");return new p1e({name:te,remote:Z?.getConnector(),deeplinkProtocol:Z?.state.deeplinkProtocol,platformManager:Z?.getPlatformManager()})})({name:LH.INPAGE,target:LH.CONTENT_SCRIPT,platformManager:o,communicationLayerPreference:t,remoteConnection:c}),g=o.getPlatformType(),y=a.options.dappMetadata,w=`Sdk/Javascript SdkVersion/${cI.version} Platform/${g} dApp/${(d=y.url)!==null&&d!==void 0?d:y.name} dAppTitle/${y.name}`,x=null,I=null,C=(m=a.options.storage)===null||m===void 0?void 0:m.storageManager;if(C){try{let te=yield C.getCachedAccounts();te.length>0&&(x=te[0])}catch(te){console.error(`[initializeMobileProvider] failed to get cached addresses: ${te}`)}try{let te=yield C.getCachedChainId();te&&(I=te)}catch(te){console.error(`[initializeMobileProvider] failed to parse cached chainId: ${te}`)}}nt(`[initializeMobileProvider] cachedAccountAddress: ${x}, cachedChainId: ${I}`);let M=!(!n||g===Gd.NonBrowser||g===Gd.ReactNative),B=E1.init({shouldSetOnWindow:M,connectionStream:h,shouldShimWeb3:r,sdkInstance:a}),z=!1,G=te=>{z=te},J=()=>z,ne=(te,Z,X,F)=>pt(void 0,void 0,void 0,(function*(){var R,O,U,P,L,W,q,H,k;let V=E1.getProvider();if(z){V.emit(\"display_uri\",c?.state.qrcodeLink||\"\"),c?.showActiveModal();let Ve=J();for(;Ve;){let Et=J(),qe=c?.isAuthorized();Ve=Et&&!qe,nt(`[initializeMobileProvider: sendRequest()] waiting for initialization to complete - initializing: ${Et} authorized: ${qe}`),yield lrt(1e3)}return nt(\"[initializeMobileProvider: sendRequest()] initial method completed -- prevent installation and call provider\"),X(...Z)}let oe=o.isMetaMaskInstalled(),se=c?.isConnected(),ue=null,he=null,be=null;if(ue=(R=V.getSelectedAddress())!==null&&R!==void 0?R:x,be=V.getChainId()||I,ue&&C&&ue!==x&&C.persistAccounts([ue]).catch((Ve=>{console.error(`[initializeMobileProvider] failed to persist account: ${Ve}`)})),be&&(I=be,C&&C.persistChainId(be).catch((Ve=>{console.error(`[initializeMobileProvider] failed to persist chainId: ${Ve}`)}))),nt(\"[initializeMobileProvider: sendRequest()]\",{selectedAddress:ue,chainId:be}),F&&nt(`[initializeMobileProvider: sendRequest()] method=${te} ongoing=${z} selectedAddress=${ue} isInstalled=${oe} checkInstallationOnAllCalls=${e} socketConnected=${se}`),ue&&te.toLowerCase()===kn.ETH_ACCOUNTS.toLowerCase())return[ue];if(be&&te.toLowerCase()===kn.ETH_CHAINID.toLowerCase())return be;let we=[kn.ETH_REQUESTACCOUNTS,kn.WALLET_REQUESTPERMISSIONS,kn.METAMASK_CONNECTSIGN,kn.METAMASK_CONNECTWITH],Ie=!HH[te],_e=(O=a.options.readonlyRPCMap)===null||O===void 0?void 0:O[be];if(_e&&Ie)try{let Ve=(U=Z?.[0])===null||U===void 0?void 0:U.params,Et=yield(({rpcEndpoint:qe,method:Xe,sdkInfo:rt,params:wt})=>pt(void 0,void 0,void 0,(function*(){let ot=JSON.stringify({jsonrpc:\"2.0\",method:Xe,params:wt,id:(pet+=1,pet)}),mn={Accept:\"application/json\",\"Content-Type\":\"application/json\"},St;qe.includes(\"infura\")&&(mn[\"Metamask-Sdk-Info\"]=rt);try{St=yield(0,_1e.default)(qe,{method:\"POST\",headers:mn,body:ot})}catch(rn){throw rn instanceof Error?new Error(`Failed to fetch from RPC: ${rn.message}`):new Error(`Failed to fetch from RPC: ${rn}`)}if(!St.ok)throw new Error(`Server responded with a status of ${St.status}`);return(yield St.json()).result})))({rpcEndpoint:_e,sdkInfo:w,method:te,params:Ve||[]});return F&&nt(`initializeProvider::ReadOnlyRPCResponse ${Et}`),Et}catch(Ve){console.warn(`[initializeMobileProvider: sendRequest()] method=${te} readOnlyRPCRequest failed:`,Ve)}if((!oe||oe&&!se)&&te!==kn.METAMASK_GETPROVIDERSTATE){let Ve=((P=Z?.[0])===null||P===void 0?void 0:P.params)||[];if(we.indexOf(te)!==-1||e){G(!0);let Et=te===kn.METAMASK_CONNECTWITH,qe=`${Date.now()}`;try{yield i.start({wait:!1,connectWith:Et?{method:te,id:qe,params:Ve}:void 0}),yield new Promise(((Xe,rt)=>{c?.isAuthorized()&&(nt(\"[initializeMobileProvider: sendRequest()] already authorized\"),Xe(!0)),c?.getConnector().once(Rt.AUTHORIZED,(()=>{Xe(!0)})),a.once(Rt.PROVIDER_UPDATE,(wt=>{nt(`[initializeMobileProvider: sendRequest()] PROVIDER_UPDATE --- remote provider request interupted type=${wt}`),wt===A1.EXTENSION?rt(Rt.PROVIDER_UPDATE):rt(new Error(\"Connection Terminated\"))}))}))}catch(Xe){if(A1.EXTENSION===Xe){if(nt(`[initializeMobileProvider: sendRequest()] extension provider detect: re-create ${te} on the active provider`),te.toLowerCase()===kn.METAMASK_CONNECTSIGN.toLowerCase()){let rt=yield(L=a.getProvider())===null||L===void 0?void 0:L.request({method:kn.ETH_REQUESTACCOUNTS,params:[]});if(!rt.length)throw new Error(\"SDK state invalid -- undefined accounts\");let wt=yield(W=a.getProvider())===null||W===void 0?void 0:W.request({method:kn.PERSONAL_SIGN,params:[Ve[0],rt[0]]});return a.emit(ah.ConnectWithResponse,wt),wt}if(te.toLowerCase()===kn.METAMASK_CONNECTWITH.toLowerCase()){let[rt]=Ve,wt=yield(({method:ot,sdk:mn,params:St})=>pt(void 0,void 0,void 0,(function*(){var rn,$t,Kt,en;if(!mn.isExtensionActive())throw new Error(\"SDK state invalid -- extension is not active\");nt(\"[MetaMaskProvider: extensionConnectWithOverwrite()] Overwriting request method\",ot,St);let Ho=yield(rn=mn.getProvider())===null||rn===void 0?void 0:rn.request({method:kn.ETH_REQUESTACCOUNTS,params:[]});if(!Ho.length)throw new Error(\"SDK state invalid -- undefined accounts\");if(ot?.toLowerCase()===kn.PERSONAL_SIGN.toLowerCase()){let Fn={method:ot,params:[St[0],Ho[0]]};return yield($t=mn.getProvider())===null||$t===void 0?void 0:$t.request(Fn)}if(ot?.toLowerCase()===kn.ETH_SENDTRANSACTION.toLowerCase()){let Fn={method:ot,params:[Object.assign(Object.assign({},St[0]),{from:Ho[0]})]};return yield(Kt=mn.getProvider())===null||Kt===void 0?void 0:Kt.request(Fn)}return urt.includes(ot.toLowerCase())?(console.warn(`MetaMaskSDK connectWith method=${ot} -- not handled by the extension -- call separately`),Ho):yield(en=mn.getProvider())===null||en===void 0?void 0:en.request({method:ot,params:St})})))({method:rt.method,sdk:a,params:rt.params});return a.emit(ah.ConnectWithResponse,wt),wt}return nt(`[initializeMobileProvider: sendRequest()] sending \\'${te}\\' on active provider`,Ve),yield(q=a.getProvider())===null||q===void 0?void 0:q.request({method:te,params:Ve})}throw Xe===Rt.REJECTED?(c?.closeModal(),(H=a.getProvider())===null||H===void 0||H.handleDisconnect({terminate:!1}),Object.assign(new Error(\"User rejected connection\"),{code:4001})):(nt(`[initializeMobileProvider: sendRequest()] failed to start installer: ${Xe}`),Xe)}finally{G(!1)}if(te===kn.ETH_REQUESTACCOUNTS)return he=yield new Promise((Xe=>{let rt=setInterval((()=>{let{accounts:wt}=V.getState();wt&&(clearInterval(rt),Xe(wt))}),100)})),nt(`[initializeMobileProvider: sendRequest()] selectedAddress: ${ue} --- SKIP rpc call`),he;if(te===kn.METAMASK_CONNECTWITH)try{let Xe=0,rt=5,wt=({resolve:rn,reject:$t})=>{Xe+=1;let Kt=c?.getConnector().getRPCMethodTracker(),en=Kt?.[qe];return nt(`TRACKER: update method ${qe}`,en),en?.result?(nt(\"[initializeMobileProvider: sendRequest()] found result\",en.result),a.emit(ah.ConnectWithResponse,en.result),void rn(en.result)):en?.error?(nt(\"[initializeMobileProvider: sendRequest()] found error\",en.error),void $t(en.error)):Xe>=rt?(nt(\"[initializeMobileProvider: sendRequest()] max message count reached without result\"),void $t(new Error(\"Max message count reached without result\"))):void nt(\"[initializeMobileProvider: sendRequest()] not found yet, need to wait for next update\")},ot,mn,St=yield new Promise(((rn,$t)=>{let Kt=c?.getConnector().getRPCMethodTracker();nt(`TRACKER: method ${qe}`,Kt),Kt?.[qe].result?(nt(\"[initializeMobileProvider: sendRequest()] found result\",Kt?.[qe].result),rn(Kt?.[qe].result)):Kt?.[qe].error&&(nt(\"[initializeMobileProvider: sendRequest()] found error\",Kt?.[qe].error),$t(Kt?.[qe].error)),mn=()=>wt({resolve:rn,reject:$t}),ot=c?.getConnector().on(Rt.RPC_UPDATE,mn)}));return mn&&ot?.off(Rt.RPC_UPDATE,mn),nt(\"TRACKER: result\",St),St}catch(Xe){throw nt(\"[initializeMobileProvider: sendRequest()] error:\",Xe),Xe}return Z[0]&&typeof Z[0]==\"object\"&&(Z[0].params={__triggeredInstaller:!0,wrappedParams:Z[0].params}),X(...Z)}if(o.isSecure()&&HH[te])return X(...Z);if(a.isExtensionActive())return nt(`[initializeMobileProvider: sendRequest()] EXTENSION active - redirect request \\'${te}\\' to it`,Z,Ve),yield(k=a.getProvider())===null||k===void 0?void 0:k.request({method:te,params:Ve});throw nt(`[initializeMobileProvider: sendRequest()] method=${te} --- skip --- not connected/installed`),new Error(\"MetaMask is not connected/installed, please call eth_requestAccounts to connect first.\")}try{let Ve=yield X(...Z);if(nt(`[initializeMobileProvider: sendRequest()] method=${te} rpcResponse`,Ve),te===kn.WALLET_REQUESTPERMISSIONS){let Et=Ve.reduce(((qe,Xe)=>{var rt;if(Xe.parentCapability===\"eth_accounts\"){let wt=(rt=Xe.caveats.find((ot=>ot.type===\"restrictReturnedAccounts\")))===null||rt===void 0?void 0:rt.value;wt&&qe.push(...wt)}return qe}),[]);nt(\"[initializeMobileProvider: sendRequest()] accountsToPersist:\",Et),Et.length>0&&(V.handleAccountsChanged(Et,!1),C?.persistAccounts(Et))}return Ve}catch(Ve){throw console.error(\"[initializeMobileProvider: sendRequest()] error:\",Ve),Ve}})),{request:ie}=B;B.request=(...te)=>pt(void 0,void 0,void 0,(function*(){return ne(te?.[0].method,te,ie,l)}));let{send:ae}=B;return B.send=(...te)=>pt(void 0,void 0,void 0,(function*(){return ne(te?.[0],te,ae,l)})),nt(\"[initializeMobileProvider: sendRequest()] metamaskStream.start()\"),h.start(),B}));xLt=\"sdk\",h1e=class{constructor({serverUrl:t,enabled:n,originatorInfo:r}){this.serverURL=rI,this.serverURL=t,this.originatorInfo=r,this.enabled=n==null||n}send({event:t,params:n}){if(!this.enabled)return;let r=Object.assign(Object.assign({id:xLt,event:t,sdkVersion:cI.version},this.originatorInfo),{params:n});nt(`[Analytics: send()] event: ${t}`,r),nA(r,this.serverURL).catch((o=>{nt(`[Analytics: send()] error: ${o}`)}))}},ELt=()=>{if(typeof document>\"u\")return;let e,t=document.getElementsByTagName(\"link\");for(let n=0;n<t.length;n++)t[n].getAttribute(\"rel\")!==\"icon\"&&t[n].getAttribute(\"rel\")!==\"shortcut icon\"||(e=t[n].getAttribute(\"href\"));return e},ALt=163400;Ree=(e,t,n)=>{if(WH(e))if(n||t&&typeof t==\"object\"&&t!==null&&\"error\"in t){let r=n||t?.error;r&&r.code===4001?Oc.analytics.track(\"sdk_action_rejected\",{action:e}):Oc.analytics.track(\"sdk_action_failed\",{action:e})}else Oc.analytics.track(\"sdk_action_succeeded\",{action:e})},m1e=({provider:e,sdkInstance:t})=>{if(\"state\"in e)throw new Error(\"INVALID EXTENSION PROVIDER\");return new Proxy(e,{get:(n,r)=>r===\"request\"?function(o){var i,a;return pt(this,void 0,void 0,(function*(){nt(\"[wrapExtensionProvider()] Overwriting request method\",o);let{method:c,params:l}=o,d=hLt.includes(c.toLowerCase()),{id:m,from:h}=het(t);if(d&&((i=t.analytics)===null||i===void 0||i.send({event:ou.SDK_RPC_REQUEST,params:{method:c,from:h,id:m}})),WH(c)&&Oc.analytics.track(\"sdk_action_requested\",{action:c}),c===kn.METAMASK_BATCH&&Array.isArray(l))return(({target:w,args:x,trackEvent:I,sdkInstance:C})=>pt(void 0,void 0,void 0,(function*(){var M,B;if(x.method!==\"metamask_batch\")throw new Error(\"Invalid usage\");let z=[],G=(M=x?.params)!==null&&M!==void 0?M:[];for(let ie of G){let ae=yield w?.request({method:ie.method,params:ie.params});z.push(ae)}let{id:J,from:ne}=het(C);I&&((B=C.analytics)===null||B===void 0||B.send({event:ou.SDK_RPC_REQUEST_DONE,params:{method:x.method,from:ne,id:J}}));for(let ie of z)Ree(x.method,ie,null);return z})))({target:n,args:o,trackEvent:d,sdkInstance:t});if(c.toLowerCase()===kn.METAMASK_CONNECTSIGN.toLowerCase()&&Array.isArray(l))return(({target:w,params:x})=>pt(void 0,void 0,void 0,(function*(){let I,C=null;try{let M=yield w.request({method:kn.ETH_REQUESTACCOUNTS,params:[]});if(!M.length)throw new Error(\"SDK state invalid -- undefined accounts\");return I=yield w.request({method:kn.PERSONAL_SIGN,params:[x[0],M[0]]}),I}catch(M){throw C=M,M}finally{Ree(kn.PERSONAL_SIGN,I,C)}})))({target:n,params:l});if(c.toLowerCase()===kn.METAMASK_CONNECTWITH.toLowerCase()&&Array.isArray(l))return(({target:w,params:x})=>pt(void 0,void 0,void 0,(function*(){let[I]=x,C=I.method,M=I.params,B,z=null;try{let G=yield w.request({method:kn.ETH_REQUESTACCOUNTS,params:[]});if(!Array.isArray(G)||!G.length)throw new Error(\"SDK state invalid -- undefined accounts\");return C?.toLowerCase()===kn.PERSONAL_SIGN.toLowerCase()?(B=yield w.request({method:C,params:[M[0],G[0]]}),B):C?.toLowerCase()===kn.ETH_SENDTRANSACTION.toLowerCase()?(B=yield w.request({method:C,params:[Object.assign(Object.assign({},M[0]),{from:G[0]})]}),B):urt.includes(C.toLowerCase())?(console.warn(`MetaMaskSDK connectWith method=${C} -- not handled by the extension -- call separately`),B=G,B):(B=yield w.request({method:C,params:M}),B)}catch(G){throw z=G,G}finally{Ree(C,B,z)}})))({target:n,params:l});let g,y=null;try{return g=yield n.request(o),g}catch(w){throw y=w,w}finally{d&&((a=t.analytics)===null||a===void 0||a.send({event:ou.SDK_RPC_REQUEST_DONE,params:{method:c,from:h,id:m}})),Ree(c,g,y)}}))}:r===\"getChainId\"?function(){return e.chainId}:r===\"getNetworkVersion\"?function(){return e.networkVersion}:r===\"getSelectedAddress\"?function(){return e.selectedAddress}:r===\"isConnected\"?function(){return e._state.isConnected}:n[r]})};(function(e){e.Announce=\"eip6963:announceProvider\",e.Request=\"eip6963:requestProvider\"})(Tte||(Tte={}));_Lt=e=>pt(void 0,void 0,void 0,(function*(){let{options:t}=e,{infuraAPIKey:n}=t;if(!n)return;let r={\"0x1\":`https://mainnet.infura.io/v3/${n}`,\"0x5\":`https://goerli.infura.io/v3/${n}`,\"0xaa36a7\":`https://sepolia.infura.io/v3/${n}`,\"0xe708\":`https://linea-mainnet.infura.io/v3/${n}`,\"0xe704\":`https://linea-goerli.infura.io/v3/${n}`,\"0x89\":`https://polygon-mainnet.infura.io/v3/${n}`,\"0x13881\":`https://polygon-mumbai.infura.io/v3/${n}`,\"0x45\":`https://optimism-mainnet.infura.io/v3/${n}`,\"0x1a4\":`https://optimism-goerli.infura.io/v3/${n}`,\"0xa4b1\":`https://arbitrum-mainnet.infura.io/v3/${n}`,\"0x66eed\":`https://arbitrum-goerli.infura.io/v3/${n}`,\"0x2a15c308d\":`https://palm-mainnet.infura.io/v3/${n}`,\"0x2a15c3083\":`https://palm-testnet.infura.io/v3/${n}`,\"0xa86a\":`https://avalanche-mainnet.infura.io/v3/${n}`,\"0xa869\":`https://avalanche-fuji.infura.io/v3/${n}`,\"0x4e454152\":`https://aurora-mainnet.infura.io/v3/${n}`,\"0x4e454153\":`https://aurora-testnet.infura.io/v3/${n}`,\"0x534e5f4d41494e\":`https://starknet-mainnet.infura.io/v3/${n}`,\"0x534e5f474f45524c49\":`https://starknet-goerli.infura.io/v3/${n}`,\"0x534e5f474f45524c4932\":`https://starknet-goerli2.infura.io/v3/${n}`,\"0xa4ec\":`https://celo-mainnet.infura.io/v3/${n}`,\"0xaef3\":`https://celo-alfajores.infura.io/v3/${n}`};e.options.readonlyRPCMap?e.options.readonlyRPCMap=Object.assign(Object.assign({},e.options.readonlyRPCMap),r):e.options.readonlyRPCMap=r})),TLt=e=>pt(void 0,void 0,void 0,(function*(){let{options:t}=e,{readonlyRPCMap:n}=t;if(n)try{nt(\"[MetaMaskSDK: setupReadOnlyRPCProviders()] Setting up Readonly RPC Providers\",n),e.setReadOnlyRPCCalls(!0)}catch{throw new Error(\"Invalid Infura Settings\")}}));met=\"INSTALLED\",get=\"NOT_INSTALLED\",yet=\"REGISTERED\",bet=\"REGISTERING\",vet=\"RELOADING\",wet={CHROME:\"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn\",FIREFOX:\"https://addons.mozilla.org/firefox/addon/ether-metamask/\",DEFAULT:\"https://metamask.io\"},Iee=\"REGISTRATION_IN_PROGRESS\",xet=\"FORWARDER_ID\",ILt=(function(){function e(t){var n=t===void 0?{}:t,r=n.forwarderOrigin,o=r===void 0?\"https://fwd.metamask.io\":r,i=n.forwarderMode,a=i===void 0?e.FORWARDER_MODE.INJECT:i;this.forwarderOrigin=o,this.forwarderMode=a,this.state=e.isMetaMaskInstalled()?met:get;var c=e._detectBrowser();this.downloadUrl=c?wet[c]:wet.DEFAULT,this._onMessage=this._onMessage.bind(this),this._onMessageFromForwarder=this._onMessageFromForwarder.bind(this),this._openForwarder=this._openForwarder.bind(this),this._openDownloadPage=this._openDownloadPage.bind(this),this.startOnboarding=this.startOnboarding.bind(this),this.stopOnboarding=this.stopOnboarding.bind(this),window.addEventListener(\"message\",this._onMessage),a===e.FORWARDER_MODE.INJECT&&sessionStorage.getItem(Iee)===\"true\"&&e._injectForwarder(this.forwarderOrigin)}return e.prototype._onMessage=function(t){if(t.origin===this.forwarderOrigin)return t.data.type===\"metamask:reload\"?this._onMessageFromForwarder(t):void console.debug(\"Unknown message from \\'\"+t.origin+\"\\' with data \"+JSON.stringify(t.data))},e.prototype._onMessageUnknownStateError=function(t){throw new Error(\"Unknown state: \\'\"+t+\"\\'\")},e.prototype._onMessageFromForwarder=function(t){return CLt(this,0,void 0,(function(){return RLt(this,(function(n){switch(n.label){case 0:switch(this.state){case vet:return[3,1];case get:return[3,2];case met:return[3,3];case bet:return[3,5];case yet:return[3,6]}return[3,7];case 1:return console.debug(\"Ignoring message while reloading\"),[3,8];case 2:return console.debug(\"Reloading now to register with MetaMask\"),this.state=vet,location.reload(),[3,8];case 3:return console.debug(\"Registering with MetaMask\"),this.state=bet,[4,e._register()];case 4:return n.sent(),this.state=yet,t.source.postMessage({type:\"metamask:registrationCompleted\"},t.origin),this.stopOnboarding(),[3,8];case 5:return console.debug(\"Already registering - ignoring reload message\"),[3,8];case 6:return console.debug(\"Already registered - ignoring reload message\"),[3,8];case 7:this._onMessageUnknownStateError(this.state),n.label=8;case 8:return[2]}}))}))},e.prototype.startOnboarding=function(){sessionStorage.setItem(Iee,\"true\"),this._openDownloadPage(),this._openForwarder()},e.prototype.stopOnboarding=function(){sessionStorage.getItem(Iee)===\"true\"&&(this.forwarderMode===e.FORWARDER_MODE.INJECT&&(console.debug(\"Removing forwarder\"),e._removeForwarder()),sessionStorage.setItem(Iee,\"false\"))},e.prototype._openForwarder=function(){this.forwarderMode===e.FORWARDER_MODE.OPEN_TAB?window.open(this.forwarderOrigin,\"_blank\"):e._injectForwarder(this.forwarderOrigin)},e.prototype._openDownloadPage=function(){window.open(this.downloadUrl,\"_blank\")},e.isMetaMaskInstalled=function(){return!!(window.ethereum&&window.ethereum.isMetaMask)},e._register=function(){return window.ethereum.request({method:\"wallet_registerOnboarding\"})},e._injectForwarder=function(t){var n=document.body,r=document.createElement(\"iframe\");r.setAttribute(\"height\",\"0\"),r.setAttribute(\"width\",\"0\"),r.setAttribute(\"style\",\"display: none;\"),r.setAttribute(\"src\",t),r.setAttribute(\"id\",xet),n.insertBefore(r,n.children[0])},e._removeForwarder=function(){var t;(t=document.getElementById(xet))===null||t===void 0||t.remove()},e._detectBrowser=function(){var t=srt.parse(window.navigator.userAgent);return t.browser.name===\"Firefox\"?\"FIREFOX\":[\"Chrome\",\"Chromium\"].includes(t.browser.name||\"\")?\"CHROME\":null},e.FORWARDER_MODE={INJECT:\"INJECT\",OPEN_TAB:\"OPEN_TAB\"},e})();g1e=class{constructor({remote:t,preferDesktop:n,platformManager:r,debug:o=!1}){this.state={isInstalling:!1,hasInstalled:!1,resendRequest:null,preferDesktop:!1,platformManager:null,remote:null,debug:!1,connectWith:void 0},this.state.remote=t,this.state.preferDesktop=n,this.state.platformManager=r,this.state.debug=o}startDesktopOnboarding(){return(function(){return pt(this,void 0,void 0,(function*(){nt(\"[MetamaskInstaller: startDesktopOnboarding() starting desktop onboarding\"),window.ethereum&&(window.ethereum=void 0),new ILt().startOnboarding()}))})()}redirectToProperInstall(){return pt(this,void 0,void 0,(function*(){return(function(t){var n,r;return pt(this,void 0,void 0,(function*(){let{state:o}=t,i=(n=o.platformManager)===null||n===void 0?void 0:n.getPlatformType();if(nt(`[MetamaskInstaller: redirectToProperInstall()] platform=${i}`),i===Gd.MetaMaskMobileWebview)return!1;o.isInstalling=!0;try{yield(r=o.remote)===null||r===void 0?void 0:r.startConnection({connectWith:o.connectWith}),o.isInstalling=!1,o.hasInstalled=!0}catch(a){throw o.isInstalling=!1,a}return!0}))})(this)}))}checkInstallation(){return pt(this,void 0,void 0,(function*(){return(function(t){var n;return pt(this,void 0,void 0,(function*(){let{state:r}=t,o=(n=r.platformManager)===null||n===void 0?void 0:n.isMetaMaskInstalled();return nt(`[MetamaskInstaller: checkInstallation()] isInstalled=${o}`),!!o||(yield t.redirectToProperInstall())}))})(this)}))}start({wait:t=!1,connectWith:n}){return pt(this,void 0,void 0,(function*(){this.state.connectWith=n,nt(`[MetaMaskInstaller: start()] wait=${t}`,n),yield kLt(this,{wait:t})}))}},Cte=class{constructor({debug:t,sdkVersion:n}){this.containers={install:void 0,pending:void 0,select:void 0},this.defined={install:!1,pending:!1,select:!1},this.debug=t!=null&&t,this.sdkVersion=n}loadComponent(t){return pt(this,void 0,void 0,(function*(){if(!this.defined[t]){this.defined[t]=!0;try{let n=yield Promise.resolve().then((function(){return uUt}));console.log(\"loader\",n),n.defineCustomElements()}catch(n){console.error(`Failed to load ${t} modal:`,n)}}}))}renderInstallModal(t){var n;return pt(this,void 0,void 0,(function*(){this.debug&&console.debug(\"ModalLoader: renderInstallModal\",t),this.containers.install=t.parentElement,yield this.loadComponent(\"install\");let r=document.createElement(\"mm-install-modal\");r.link=t.link,r.preferDesktop=t.preferDesktop,r.sdkVersion=(n=t.sdkVersion)!==null&&n!==void 0?n:this.sdkVersion,r.addEventListener(\"close\",(({detail:{shouldTerminate:o}})=>t.onClose(o))),r.addEventListener(\"startDesktopOnboarding\",t.metaMaskInstaller.startDesktopOnboarding),r.addEventListener(\"trackAnalytics\",(o=>{var i;return(i=t.onAnalyticsEvent)===null||i===void 0?void 0:i.call(t,o.detail)})),t.parentElement.appendChild(r)}))}renderSelectModal(t){var n;return pt(this,void 0,void 0,(function*(){this.containers.select=t.parentElement,yield this.loadComponent(\"select\");let r=document.createElement(\"mm-select-modal\");r.link=t.link,r.sdkVersion=(n=t.sdkVersion)!==null&&n!==void 0?n:this.sdkVersion,r.preferDesktop=t.preferDesktop,r.addEventListener(\"close\",(({detail:{shouldTerminate:o}})=>t.onClose(o))),r.addEventListener(\"connectWithExtension\",t.connectWithExtension),t.parentElement.appendChild(r),setTimeout((()=>this.updateQRCode(t.link)),100)}))}renderPendingModal(t){var n;return pt(this,void 0,void 0,(function*(){this.containers.pending=t.parentElement,yield this.loadComponent(\"pending\");let r=document.createElement(\"mm-pending-modal\");r.sdkVersion=(n=t.sdkVersion)!==null&&n!==void 0?n:this.sdkVersion,r.displayOTP=t.displayOTP,r.addEventListener(\"close\",t.onClose),r.addEventListener(\"updateOTPValue\",(({detail:{otpValue:o}})=>t.updateOTPValue(o))),t.onDisconnect&&r.addEventListener(\"disconnect\",t.onDisconnect),t.parentElement.appendChild(r)}))}updateOTPValue(t){let n=()=>{var r;let o=(r=this.containers.pending)===null||r===void 0?void 0:r.querySelector(\"mm-pending-modal\");return!!o&&(o.otpCode=t,!0)};setTimeout((()=>{n()}),800)}updateQRCode(t){var n,r;let o=(n=this.containers.install)===null||n===void 0?void 0:n.querySelector(\"mm-install-modal\");if(o)o.link=t;else{let i=(r=this.containers.select)===null||r===void 0?void 0:r.querySelector(\"mm-select-modal\");i&&(i.link=t)}}unmount(){Object.entries(this.containers).forEach((([t,n])=>{var r;(r=n?.parentNode)===null||r===void 0||r.removeChild(n),this.containers[t]=void 0}))}},OLt=({link:e,debug:t,installer:n,terminate:r,connectWithExtension:o,preferDesktop:i,onAnalyticsEvent:a})=>{let c=null,l=null;nt(\"[UI: InstallModal-web: sdkWebInstallModal()] ################## Installing Modal #################\"),nt(`[UI: InstallModal-web: sdkWebInstallModal()] link=${e}`),nt(`[UI: InstallModal-web: sdkWebInstallModal()] npx uri-scheme open \"${e}\" --ios`),nt(`[UI: InstallModal-web: sdkWebInstallModal()] npx uri-scheme open \"${e}\" --android`),nt(`[UI: InstallModal-web: sdkWebInstallModal()] adb shell am start -a android.intent.action.VIEW -d \"${e}\"`);let d=m=>{var h;nt(\"[UI: InstallModal-web: sdkWebInstallModal()] installModal-web unmounting install modal -- shouldTerminate:\",m,l),l?.parentNode&&((h=l.parentNode)===null||h===void 0||h.removeChild(l)),l=null,c=null,m===!0&&r?.()};return{mount:m=>{if(nt(\"[UI: InstallModal-web: sdkWebInstallModal()] installModal-web mounting install modal\",l),l)return l.style.display=\"block\",void(c==null||c.updateQRCode(m));c=new Cte({debug:t,sdkVersion:cI.version}),l=document.createElement(\"div\"),document.body.appendChild(l),window.extension?c.renderSelectModal({parentElement:l,connectWithExtension:()=>{d(),o?.()},onClose:d,link:e,preferDesktop:i!=null&&i}).catch((h=>{console.error(h)})):c.renderInstallModal({parentElement:l,preferDesktop:i!=null&&i,link:e,metaMaskInstaller:n,onClose:d,onAnalyticsEvent:a}).catch((h=>{console.error(\"[UI: InstallModal-web: sdkWebInstallModal()]\",h)}))},unmount:d}},NLt=({onDisconnect:e,debug:t})=>{let n=null,r=null,o=()=>{nt(\"[UI: pendingModal-web: sdkWebPendingModal()] pendingModal-web unmount\",n),n?.parentNode&&n.parentNode.removeChild(n),n=null,r=null},i=c=>{nt(\"[UI: pendingModal-web: sdkWebPendingModal()] pendingModal-web updateOTPValue\",c),r&&r.updateOTPValue(c)},a=({displayOTP:c}={displayOTP:!0})=>{nt(\"[UI: pendingModal-web: sdkWebPendingModal()] pendingModal-web mount\",n),n?n.style.display=\"block\":(r=new Cte({debug:t,sdkVersion:cI.version}),n=document.createElement(\"div\"),document.body.appendChild(n),r.renderPendingModal({parentElement:n,onClose:o,onDisconnect:e,updateOTPValue:i,displayOTP:c}).catch((l=>{console.error(\"[UI: pendingModal-web: sdkWebPendingModal()]\",l)})))};return a(),{mount:a,unmount:o,updateOTPValue:i}};b1e=class{constructor(t){var n,r,o;this.state={connector:void 0,qrcodeLink:void 0,analytics:void 0,developerMode:!1,authorized:!1,reconnection:!1,preferDesktop:!1,deeplinkProtocol:!1,listeners:[],communicationLayerPreference:void 0,platformManager:void 0,pendingModal:void 0,installModal:void 0,otpAnswer:void 0},this.options=t;let i=((n=t.logging)===null||n===void 0?void 0:n.developerMode)===!0||((r=t.logging)===null||r===void 0?void 0:r.sdk)===!0;this.state.developerMode=i,this.state.analytics=t.analytics,this.state.preferDesktop=(o=t.preferDesktop)!==null&&o!==void 0&&o,this.state.useDeeplink=t.sdk.options.useDeeplink,this.state.communicationLayerPreference=t.communicationLayerPreference,this.state.platformManager=t.platformManager,t.modals.install||(t.modals.install=OLt),t.modals.otp||(t.modals.otp=NLt)}startConnection(t){return pt(this,void 0,void 0,(function*(){return MLt(this.state,this.options,t)}))}initRemoteCommunication({sdkInstance:t}){var n,r,o;return pt(this,void 0,void 0,(function*(){let i=yield(r=(n=t.options.storage)===null||n===void 0?void 0:n.storageManager)===null||r===void 0?void 0:r.getPersistedChannelConfig();if(!this.options.ecies){let a={privateKey:i?.localKey};this.options.ecies=a}drt(this.state,this.options),yield(o=this.getConnector())===null||o===void 0?void 0:o.initFromDappStorage(),frt(this.state,this.options)}))}showActiveModal(){return(function(t){var n,r,o,i;t.authorized?nt(\"[RemoteConnection: showActiveModal()] already authorized\"):t.pendingModal?(r=(n=t.pendingModal).mount)===null||r===void 0||r.call(n):t.installModal&&((i=(o=t.installModal).mount)===null||i===void 0||i.call(o,t.qrcodeLink||\"\"))})(this.state)}closeModal(){var t,n,r,o;(n=(t=this.state.pendingModal)===null||t===void 0?void 0:t.unmount)===null||n===void 0||n.call(t),(o=(r=this.state.installModal)===null||r===void 0?void 0:r.unmount)===null||o===void 0||o.call(r,!1)}getUniversalLink(){if(!this.state.qrcodeLink)throw new Error(\"connection not started. run startConnection() first.\");return this.state.qrcodeLink}getChannelConfig(){var t;return(t=this.state.connector)===null||t===void 0?void 0:t.getChannelConfig()}getKeyInfo(){var t;return(t=this.state.connector)===null||t===void 0?void 0:t.getKeyInfo()}getConnector(){if(!this.state.connector)throw new Error(\"invalid remote connector\");return this.state.connector}getPlatformManager(){if(!this.state.platformManager)throw new Error(\"PlatformManager not available\");return this.state.platformManager}isConnected(){var t;return((t=this.state.connector)===null||t===void 0?void 0:t.isReady())||!1}isAuthorized(){var t;return((t=this.state.connector)===null||t===void 0?void 0:t.isAuthorized())||!1}isPaused(){var t;return(t=this.state.connector)===null||t===void 0?void 0:t.isPaused()}disconnect(t){var n,r,o;nt(\"[RemoteConnection: disconnect()]\",t),t?.terminate&&(E1.getProvider().handleDisconnect({terminate:!0}),(r=(n=this.state.pendingModal)===null||n===void 0?void 0:n.unmount)===null||r===void 0||r.call(n),this.state.otpAnswer=void 0),(o=this.state.connector)===null||o===void 0||o.disconnect(t),(function(i){nt(\"[RemoteConnection: cleanupConnector()] cleaning up connector\"),i.connector&&(y1e(i),i.connector.disconnect({terminate:!0}).catch((a=>{nt(\"[RemoteConnection: cleanupConnector()] error disconnecting connector\",a)})))})(this.state)}};v1e=class extends bM.default{constructor(t={storage:{enabled:!0},injectProvider:!0,forceInjectProvider:!1,enableAnalytics:!0,shouldShimWeb3:!0,useDeeplink:!0,extensionOnly:!0,headless:!1,dappMetadata:{name:\"\",url:\"\",iconUrl:\"\"},_source:uet,i18nOptions:{enabled:!1}}){var n,r,o;super(),this.extensionActive=!1,this._initialized=!1,this.sdkInitPromise=void 0,this.debug=!1,this.readonlyRPCCalls=!1,this.availableLanguages=[\"en\"],this.ANON_ID_STORAGE_KEY=\"mm-sdk-anon-id\",Vf.default.disable();let i=((n=t.logging)===null||n===void 0?void 0:n.developerMode)===!0;if((!((r=t.logging)===null||r===void 0)&&r.sdk||i)&&Vf.default.enable(\"MM_SDK\"),nt(\"[MetaMaskSDK: constructor()]: begin.\"),this.setMaxListeners(50),!(!((o=t.dappMetadata)===null||o===void 0)&&o.url)){if(typeof window>\"u\"||typeof document>\"u\")throw new Error(\"You must provide dAppMetadata url\");t.dappMetadata=Object.assign(Object.assign({},t.dappMetadata),{url:`${window.location.protocol}//${window.location.host}`})}this.options=t,this.options._source||(t._source=uet),this.init().then((()=>{nt(\"[MetaMaskSDK: constructor()]: initialized successfully.\"),typeof window<\"u\"&&(window.mmsdk=this)})).catch((a=>{console.error(\"[MetaMaskSDK: constructor()] error during initialization\",a)}))}init(){return pt(this,void 0,void 0,(function*(){return(function(t){var n;return pt(this,void 0,void 0,(function*(){if(typeof window<\"u\"&&(!((n=window.mmsdk)===null||n===void 0)&&n.isInitialized()))return nt(\"[MetaMaskSDK: initializeMetaMaskSDK()] already initialized\"),Promise.resolve(window.mmsdk);if(t._initialized)return nt(\"[MetaMaskSDK: initializeMetaMaskSDK()] already initialized\"),t.sdkInitPromise;if(t.sdkInitPromise)return nt(\"[MetaMaskSDK: initializeMetaMaskSDK()] already initializing\"),t.sdkInitPromise;try{t.sdkInitPromise=DLt(t),yield t.sdkInitPromise}catch(r){throw console.error(r),r}return t.sdkInitPromise}))})(this)}))}isExtensionActive(){return this.extensionActive}checkExtensionAvailability(){var t;return typeof window<\"u\"&&!!(!((t=window.ethereum)===null||t===void 0)&&t.isMetaMask)}connect(){return pt(this,void 0,void 0,(function*(){return(function(t){return pt(this,void 0,void 0,(function*(){if(t._initialized||(nt(\"[MetaMaskSDK: connect()] provider not ready -- wait for init()\"),yield t.init()),nt(`[MetaMaskSDK: connect()] isExtensionActive=${t.isExtensionActive()} activeProvider`,t.activeProvider),!t.activeProvider)throw new Error(\"SDK state invalid -- undefined provider\");let n=t.activeProvider.getSelectedAddress();return n?[n]:t.activeProvider.request({method:kn.ETH_REQUESTACCOUNTS,params:[]})}))})(this)}))}connectAndSign({msg:t}){return pt(this,void 0,void 0,(function*(){return yLt({instance:this,msg:t})}))}connectWith(t){return pt(this,void 0,void 0,(function*(){return(function({instance:n,rpc:r}){return pt(this,void 0,void 0,(function*(){if(n._initialized||(nt(\"[MetaMaskSDK: connectWith()] provider not ready -- wait for init()\"),yield n.init()),nt(`[MetaMaskSDK: connectWith()] method: ${r.method} rpc=${r}`),!n.activeProvider)throw new Error(\"SDK state invalid -- undefined provider\");return n.activeProvider.request({method:kn.METAMASK_CONNECTWITH,params:[r]})}))})({instance:this,rpc:t})}))}resume(){return(function(t){var n,r,o;return pt(this,void 0,void 0,(function*(){if(!(!((r=(n=t.remoteConnection)===null||n===void 0?void 0:n.getConnector())===null||r===void 0)&&r.isReady()))return nt(\"[MetaMaskSDK: resume()] channel is not ready -- starting connection\"),void((o=t.remoteConnection)===null||o===void 0||o.startConnection());nt(\"[MetaMaskSDK: resume()] channel is ready\")}))})(this)}disconnect(){return console.warn(\"MetaMaskSDK.disconnect() is deprecated, use terminate()\"),this.terminate()}isAuthorized(){var t;(t=this.remoteConnection)===null||t===void 0||t.isAuthorized()}terminate(){return(function(t){var n,r,o;return pt(this,void 0,void 0,(function*(){if(!(!((n=t.platformManager)===null||n===void 0)&&n.isMetaMaskMobileWebView())){if(gLt&&(window.localStorage.removeItem(Ste),window.localStorage.removeItem(f1e),window.localStorage.removeItem(d1e)),t.extensionActive){try{yield(r=t.activeProvider)===null||r===void 0?void 0:r.request({method:kn.WALLET_REVOKEPERMISSIONS,params:[{eth_accounts:{}}]})}catch(i){nt(\"[MetaMaskSDK: terminate()] error revoking permissions\",i)}return t.options.extensionOnly?(t.emit(ah.ProviderUpdate,A1.TERMINATE),void nt(\"[MetaMaskSDK: terminate()] extensionOnly --- prevent switching providers\")):(t.activeProvider=t.sdkProvider,window.ethereum=t.activeProvider,t.extensionActive=!1,void t.emit(ah.ProviderUpdate,A1.TERMINATE))}t.emit(ah.ProviderUpdate,A1.TERMINATE),nt(`[MetaMaskSDK: terminate()] remoteConnection=${t.remoteConnection}`),(o=t.remoteConnection)===null||o===void 0||o.disconnect({terminate:!0,sendMessage:!0})}}))})(this)}isInitialized(){return this._initialized}setReadOnlyRPCCalls(t){this.readonlyRPCCalls=t}hasReadOnlyRPCCalls(){return this.readonlyRPCCalls}getProvider(){if(this.activeProvider)return this.activeProvider;console.warn(\"MetaMaskSDK: No active provider found\")}getMobileProvider(){if(!this.sdkProvider)throw new Error(\"SDK state invalid -- undefined mobile provider\");return this.sdkProvider}getUniversalLink(){var t;let n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getUniversalLink();if(!n)throw new Error(\"No Universal Link available, please call eth_requestAccounts first.\");return n}getChannelId(){var t,n;return(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getChannelConfig())===null||n===void 0?void 0:n.channelId}getRPCHistory(){var t,n;return(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0?void 0:n.getRPCMethodTracker()}getVersion(){return cI.version}getDappId(){var t,n,r,o;return typeof window>\"u\"||window.location===void 0?(o=(n=(t=this.options.dappMetadata)===null||t===void 0?void 0:t.name)!==null&&n!==void 0?n:(r=this.options.dappMetadata)===null||r===void 0?void 0:r.url)!==null&&o!==void 0?o:\"N/A\":window.location.hostname}getAnonId(){var t,n;return pt(this,void 0,void 0,(function*(){if(this._anonId)return this._anonId;let r;return r=!((t=this.platformManager)===null||t===void 0)&&t.isBrowser()?this.getBrowserAnonId():!((n=this.platformManager)===null||n===void 0)&&n.isReactNative()?yield this.getReactNativeAnonId():g1(),this._anonId=r,r}))}getBrowserAnonId(){let t=this.ANON_ID_STORAGE_KEY;try{let n=localStorage.getItem(t);if(n)return n;let r=g1();return localStorage.setItem(t,r),r}catch(n){return console.error(\"[MetaMaskSDK: getBrowserAnonId()] LocalStorage access error:\",n),g1()}}getReactNativeAnonId(){return pt(this,void 0,void 0,(function*(){let t=this.ANON_ID_STORAGE_KEY;try{let n=ZTe(\"@react-native-async-storage/async-storage\").default,r=yield n.getItem(t);if(r)return r;let o=g1();return yield n.setItem(t,o),o}catch(n){return console.error(\"[MetaMaskSDK: getReactNativeAnonId()] Error accessing AsyncStorage:\",n),g1()}}))}getWalletStatus(){var t,n;return(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0?void 0:n.getConnectionStatus()}_getChannelConfig(){var t;return(t=this.remoteConnection)===null||t===void 0?void 0:t.getChannelConfig()}_ping(){var t,n;(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0||n.ping()}_keyCheck(){var t,n;(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0||n.keyCheck()}_getServiceStatus(){var t,n;return(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0?void 0:n.getServiceStatus()}_getRemoteConnection(){return this.remoteConnection}_getDappMetadata(){return this.dappMetadata}_getKeyInfo(){var t;return(t=this.remoteConnection)===null||t===void 0?void 0:t.getKeyInfo()}_resetKeys(){var t,n;(n=(t=this.remoteConnection)===null||t===void 0?void 0:t.getConnector())===null||n===void 0||n.resetKeys()}_getConnection(){return this.remoteConnection}emit(t,n){return super.emit(t,n)}on(t,n){return super.on(t,n)}},BLt=Object.freeze({__proto__:null,StorageManagerWeb:class{constructor({enabled:e}={enabled:!1}){this.enabled=!1,this.enabled=e}persistChannelConfig(e){return pt(this,void 0,void 0,(function*(){let t=JSON.stringify(e);nt(`[StorageManagerWeb: persistChannelConfig()] enabled=${this.enabled}`,e),localStorage.setItem(Ibe,t)}))}getPersistedChannelConfig(){return pt(this,void 0,void 0,(function*(){let e;try{if(nt(`[StorageManagerWeb: getPersistedChannelConfig()] enabled=${this.enabled}`),e=localStorage.getItem(Ibe),nt(\"[StorageManagerWeb: getPersistedChannelConfig()]\",e),!e)return;let t=JSON.parse(e);return nt(\"[StorageManagerWeb: getPersistedChannelConfig()] channelConfig\",t),t}catch(t){return void console.error(\"[StorageManagerWeb: getPersistedChannelConfig()] Can\\'t find existing channel config\",t)}}))}persistAccounts(e){return pt(this,void 0,void 0,(function*(){nt(`[StorageManagerWeb: persistAccounts()] enabled=${this.enabled}`,e);let t=JSON.stringify(e);localStorage.setItem(d1e,t)}))}getCachedAccounts(){return pt(this,void 0,void 0,(function*(){try{let e=localStorage.getItem(d1e);return e?JSON.parse(e):[]}catch(e){throw console.error(\"[StorageManagerWeb: getCachedAccounts()] Error reading cached accounts\",e),e}}))}persistChainId(e){return pt(this,void 0,void 0,(function*(){nt(`[StorageManagerWeb: persistChainId()] enabled=${this.enabled}`,e),localStorage.setItem(f1e,e)}))}getCachedChainId(){return pt(this,void 0,void 0,(function*(){try{let e=localStorage.getItem(f1e);return e??void 0}catch(e){throw console.error(\"[StorageManagerWeb: getCachedChainId()] Error reading cached chainId\",e),e}}))}terminate(){return pt(this,void 0,void 0,(function*(){nt(`[StorageManagerWeb: terminate()] enabled=${this.enabled}`),localStorage.removeItem(Ibe)}))}}}),LLt=\"hydrated\",ULt=!1,FLt=!1,HLt=!0,zLt=Object.defineProperty,J1e=new WeakMap,eC=e=>J1e.get(e),X1e=(e,t)=>J1e.set(t.$lazyInstance$=e,t),Eet=(e,t)=>t in e,tI=(e,t)=>(0,console.error)(e,t),kbe=new Map,qee=new Map,prt=\"slot-fb{display:contents}slot-fb[hidden]{display:none}\",Bte=typeof window<\"u\"?window:{},Qw=Bte.document||{head:{}},Vd={$flags$:0,$resourcesUrl$:\"\",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)},hrt=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync==\"function\"}catch{}return!1})(),w1e=!1,Aet=[],mrt=[],jLt=(e,t)=>n=>{e.push(n),w1e||(w1e=!0,4&Vd.$flags$?$1e(x1e):Vd.raf(x1e))},_et=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){tI(n)}e.length=0},x1e=()=>{_et(Aet),_et(mrt),(w1e=Aet.length>0)&&Vd.raf(x1e)},$1e=e=>(t=>Promise.resolve(t))().then(e),WLt=jLt(mrt),Tet={},eve=e=>(e=typeof e)==\"object\"||e===\"function\";((e,t)=>{for(var n in t)zLt(e,n,{get:t[n],enumerable:!0})})({},{err:()=>yrt,map:()=>VLt,ok:()=>E1e,unwrap:()=>GLt,unwrapErr:()=>qLt});E1e=e=>({isOk:!0,isErr:!1,value:e}),yrt=e=>({isOk:!1,isErr:!0,value:e});GLt=e=>{if(e.isOk)return e.value;throw e.value},qLt=e=>{if(e.isErr)return e.value;throw e.value},ct=(e,t,...n)=>{let r=null,o=!1,i=!1,a=[],c=d=>{for(let m=0;m<d.length;m++)r=d[m],Array.isArray(r)?c(r):r!=null&&typeof r!=\"boolean\"&&((o=typeof e!=\"function\"&&!eve(r))&&(r=String(r)),o&&i?a[a.length-1].$text$+=r:a.push(o?Rte(null,r):r),i=o)};if(c(n),t){let d=t.className||t.class;d&&(t.class=typeof d!=\"object\"?d:Object.keys(d).filter((m=>d[m])).join(\" \"))}if(typeof e==\"function\")return e(t===null?{}:t,a,YLt);let l=Rte(e,null);return l.$attrs$=t,a.length>0&&(l.$children$=a),l},Rte=(e,t)=>({$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null}),KLt={},YLt={forEach:(e,t)=>e.map(Cet).forEach(t),map:(e,t)=>e.map(Cet).map(t).map(ZLt)},Cet=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),ZLt=e=>{if(typeof e.vtag==\"function\"){let n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),ct(e.vtag,n,...e.vchildren||[])}let t=Rte(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Lte=e=>eC(e).$hostElement$,nC=(e,t,n)=>{let r=Lte(e);return{emit:o=>brt(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:o})}},brt=(e,t,n)=>{let r=Vd.ce(t,n);return e.dispatchEvent(r),r},Ret=new WeakMap,QLt=e=>{let t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,o=(t.$tagName$,()=>{}),i=((a,c,l)=>{var d;let m=vrt(c),h=qee.get(m);if(a=a.nodeType===11?a:Qw,h)if(typeof h==\"string\"){a=a.head||a;let g,y=Ret.get(a);if(y||Ret.set(a,y=new Set),!y.has(m)){{g=Qw.createElement(\"style\"),g.innerHTML=h;let w=(d=Vd.$nonce$)!=null?d:grt(Qw);if(w!=null&&g.setAttribute(\"nonce\",w),!(1&c.$flags$))if(a.nodeName===\"HEAD\"){let x=a.querySelectorAll(\"link[rel=preconnect]\"),I=x.length>0?x[x.length-1].nextSibling:a.querySelector(\"style\");a.insertBefore(g,I)}else if(\"host\"in a)if(hrt){let x=new CSSStyleSheet;x.replaceSync(h),a.adoptedStyleSheets=[x,...a.adoptedStyleSheets]}else{let x=a.querySelector(\"style\");x?x.innerHTML=h+x.innerHTML:a.prepend(g)}else a.append(g);1&c.$flags$&&a.nodeName!==\"HEAD\"&&a.insertBefore(g,null)}4&c.$flags$&&(g.innerHTML+=prt),y&&y.add(m)}}else a.adoptedStyleSheets.includes(h)||(a.adoptedStyleSheets=[...a.adoptedStyleSheets,h]);return m})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&r&&2&r&&(n[\"s-sc\"]=i,n.classList.add(i+\"-h\")),o()},vrt=(e,t)=>\"sc-\"+e.$tagName$,Iet=(e,t,n,r,o,i)=>{if(n!==r){let a=Eet(e,t),c=t.toLowerCase();if(t===\"class\"){let l=e.classList,d=ket(n),m=ket(r);l.remove(...d.filter((h=>h&&!m.includes(h)))),l.add(...m.filter((h=>h&&!d.includes(h))))}else if(t===\"style\"){for(let l in n)r&&r[l]!=null||(l.includes(\"-\")?e.style.removeProperty(l):e.style[l]=\"\");for(let l in r)n&&r[l]===n[l]||(l.includes(\"-\")?e.style.setProperty(l,r[l]):e.style[l]=r[l])}else if(a||t[0]!==\"o\"||t[1]!==\"n\"){let l=eve(r);if((a||l&&r!==null)&&!o)try{if(e.tagName.includes(\"-\"))e[t]=r;else{let d=r??\"\";t===\"list\"?a=!1:n!=null&&e[t]==d||(typeof e.__lookupSetter__(t)==\"function\"?e[t]=d:e.setAttribute(t,d))}}catch{}r==null||r===!1?r===!1&&e.getAttribute(t)!==\"\"||e.removeAttribute(t):(!a||4&i||o)&&!l&&(r=r===!0?\"\":r,e.setAttribute(t,r))}else if(t=t[2]===\"-\"?t.slice(3):Eet(Bte,c)?c.slice(2):c[2]+t.slice(3),n||r){let l=t.endsWith(wrt);t=t.replace(XLt,\"\"),n&&Vd.rel(e,t,n,l),r&&Vd.ael(e,t,r,l)}}},JLt=/\\\\s/,ket=e=>e?e.split(JLt):[],wrt=\"Capture\",XLt=new RegExp(wrt+\"$\"),xrt=(e,t,n)=>{let r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||Tet,i=t.$attrs$||Tet;for(let a of Oet(Object.keys(o)))a in i||Iet(r,a,o[a],void 0,n,t.$flags$);for(let a of Oet(Object.keys(i)))Iet(r,a,o[a],i[a],n,t.$flags$)};Ert=!1,Ay=!1,nve=(e,t,n,r)=>{let o=t.$children$[n],i,a,c=0;if(o.$text$!==null)i=o.$elm$=Qw.createTextNode(o.$text$);else{if(Ay||(Ay=o.$tag$===\"svg\"),i=o.$elm$=Qw.createElementNS(Ay?\"http://www.w3.org/2000/svg\":\"http://www.w3.org/1999/xhtml\",!Ert&&FLt&&2&o.$flags$?\"slot-fb\":o.$tag$),Ay&&o.$tag$===\"foreignObject\"&&(Ay=!1),xrt(null,o,Ay),i.getRootNode().querySelector(\"body\")&&ULt&&(l=>l!=null)(Kee)&&i[\"s-si\"]!==Kee&&i.classList.add(i[\"s-si\"]=Kee),o.$children$)for(c=0;c<o.$children$.length;++c)a=nve(e,o,c),a&&i.appendChild(a);o.$tag$===\"svg\"?Ay=!1:i.tagName===\"foreignObject\"&&(Ay=!0)}return i[\"s-hn\"]=tve,i},Net=(e,t,n,r,o,i)=>{let a,c=e;for(c.shadowRoot&&c.tagName===tve&&(c=c.shadowRoot);o<=i;++o)r[o]&&(a=nve(null,n,o),a&&(r[o].$elm$=a,Yee(c,a,t)))},Pet=(e,t,n)=>{for(let r=t;r<=n;++r){let o=e[r];if(o){let i=o.$elm$;i&&i.remove()}}},kee=(e,t,n=!1)=>e.$tag$===t.$tag$,mH=(e,t,n=!1)=>{let r=t.$elm$=e.$elm$,o=e.$children$,i=t.$children$,a=t.$tag$,c=t.$text$;c===null?(xrt(e,t,Ay=a===\"svg\"||a!==\"foreignObject\"&&Ay),o!==null&&i!==null?((l,d,m,h,g=!1)=>{let y,w=0,x=0,I=d.length-1,C=d[0],M=d[I],B=h.length-1,z=h[0],G=h[B];for(;w<=I&&x<=B;)C==null?C=d[++w]:M==null?M=d[--I]:z==null?z=h[++x]:G==null?G=h[--B]:kee(C,z,g)?(mH(C,z,g),C=d[++w],z=h[++x]):kee(M,G,g)?(mH(M,G,g),M=d[--I],G=h[--B]):kee(C,G,g)?(mH(C,G,g),Yee(l,C.$elm$,M.$elm$.nextSibling),C=d[++w],G=h[--B]):kee(M,z,g)?(mH(M,z,g),Yee(l,M.$elm$,C.$elm$),M=d[--I],z=h[++x]):(y=nve(d&&d[x],m,x),z=h[++x],y&&Yee(C.$elm$.parentNode,y,C.$elm$));w>I?Net(l,h[B+1]==null?null:h[B+1].$elm$,m,h,x,B):x>B&&Pet(d,w,I)})(r,o,t,i,n):i!==null?(e.$text$!==null&&(r.textContent=\"\"),Net(r,null,t,i,0,i.length-1)):!n&&HLt&&o!==null&&Pet(o,0,o.length-1),Ay&&a===\"svg\"&&(Ay=!1)):e.$text$!==c&&(r.data=c)},Yee=(e,t,n)=>e?.insertBefore(t,n),$Lt=(e,t,n=!1)=>{let r=e.$hostElement$,o=e.$cmpMeta$,i=e.$vnode$||Rte(null,null),a=(c=t)&&c.$tag$===KLt?t:ct(null,null,t);var c;if(tve=r.tagName,n&&a.$attrs$)for(let l of Object.keys(a.$attrs$))r.hasAttribute(l)&&![\"key\",\"ref\",\"style\",\"class\"].includes(l)&&(a.$attrs$[l]=r[l]);a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=i.$elm$=r.shadowRoot||r,Kee=r[\"s-sc\"],Ert=(1&o.$flags$)!=0,mH(i,a,n)},Art=(e,t)=>{t&&!e.$onRenderResolve$&&t[\"s-p\"]&&t[\"s-p\"].push(new Promise((n=>e.$onRenderResolve$=n)))},rve=(e,t)=>(e.$flags$|=16,4&e.$flags$?void(e.$flags$|=512):(Art(e,e.$ancestorComponent$),WLt((()=>eUt(e,t))))),eUt=(e,t)=>{let n=e.$hostElement$,r=(e.$cmpMeta$.$tagName$,()=>{}),o=e.$lazyInstance$;if(!o)throw new Error(`Can\\'t render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \\\\`externalRuntime: true\\\\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return r(),tUt(void 0,(()=>rUt(e,o,t)))},tUt=(e,t)=>nUt(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),nUt=e=>e instanceof Promise||e&&e.then&&typeof e.then==\"function\",rUt=async(e,t,n)=>{var r;let o=e.$hostElement$,i=(e.$cmpMeta$.$tagName$,()=>{}),a=o[\"s-rc\"];n&&QLt(e);let c=(e.$cmpMeta$.$tagName$,()=>{});oUt(e,t,o,n),a&&(a.map((l=>l())),o[\"s-rc\"]=void 0),c(),i();{let l=(r=o[\"s-p\"])!=null?r:[],d=()=>iUt(e);l.length===0?d():(Promise.all(l).then(d),e.$flags$|=4,l.length=0)}},oUt=(e,t,n,r)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,$Lt(e,t,r)}catch(o){tI(o,e.$hostElement$)}return null},iUt=e=>{e.$cmpMeta$.$tagName$;let t=e.$hostElement$,n=()=>{},r=e.$lazyInstance$,o=e.$ancestorComponent$;64&e.$flags$?n():(e.$flags$|=64,_rt(t),ove(r,\"componentDidLoad\"),n(),e.$onReadyResolve$(t),o||Srt()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&$1e((()=>rve(e,!1))),e.$flags$&=-517},Srt=e=>{_rt(Qw.documentElement),$1e((()=>brt(Bte,\"appload\",{detail:{namespace:\"sdk-install-modal-web\"}})))},ove=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(r){tI(r)}},_rt=e=>{var t;return e.classList.add((t=LLt)!=null?t:\"hydrated\")},aUt=(e,t,n,r)=>{let o=eC(e);if(!o)throw new Error(`Couldn\\'t find host element for \"${r.$tagName$}\" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);let i=o.$hostElement$,a=o.$instanceValues$.get(t),c=o.$flags$,l=o.$lazyInstance$;var d,m;d=n,m=r.$members$[t][0],n=d==null||eve(d)?d:4&m?d!==\"false\"&&(d===\"\"||!!d):1&m?String(d):d;let h=Number.isNaN(a)&&Number.isNaN(n);if((!(8&c)||a===void 0)&&n!==a&&!h&&(o.$instanceValues$.set(t,n),l)){if(r.$watchers$&&128&c){let g=r.$watchers$[t];g&&g.map((y=>{try{l[y](n,a,t)}catch(w){tI(w,i)}}))}(18&c)==2&&rve(o,!1)}},Trt=(e,t,n)=>{var r,o;let i=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);let a=Object.entries((r=t.$members$)!=null?r:{});if(a.map((([c,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(i,c,{get(){return d=c,eC(this).$instanceValues$.get(d);var d},set(d){aUt(this,c,d,t)},configurable:!0,enumerable:!0})})),1&n){let c=new Map;i.attributeChangedCallback=function(l,d,m){Vd.jmp((()=>{var h;let g=c.get(l);if(this.hasOwnProperty(g))m=this[g],delete this[g];else{if(i.hasOwnProperty(g)&&typeof this[g]==\"number\"&&this[g]==m)return;if(g==null){let y=eC(this),w=y?.$flags$;if(w&&!(8&w)&&128&w&&m!==d){let x=y.$lazyInstance$,I=(h=t.$watchers$)==null?void 0:h[l];I?.forEach((C=>{x[C]!=null&&x[C].call(x,m,d,l)}))}return}}this[g]=(m!==null||typeof this[g]!=\"boolean\")&&m}))},e.observedAttributes=Array.from(new Set([...Object.keys((o=t.$watchers$)!=null?o:{}),...a.filter((([l,d])=>15&d[0])).map((([l,d])=>{let m=d[1]||l;return c.set(m,l),m}))]))}}return e},sUt=async(e,t,n,r)=>{let o;if((32&t.$flags$)==0){if(t.$flags$|=32,n.$lazyBundleId$){let c=((d,m,h)=>{let g=d.$tagName$.replace(/-/g,\"_\"),y=d.$lazyBundleId$;if(!y)return;let w=kbe.get(y);if(w)return w[g];{let x=I=>(kbe.set(y,I),I[g]);if(y===\"mm-install-modal_3\")return Promise.resolve().then((function(){return EUt})).then(x,tI)}return k7t(`./${y}.entry.js`).then((x=>(kbe.set(y,x),x[g])),tI)})(n);if(c&&\"then\"in c){let d=()=>{};o=await c,d()}else o=c;if(!o)throw new Error(`Constructor for \"${n.$tagName$}#${t.$modeName$}\" was not found`);o.isProxied||(n.$watchers$=o.watchers,Trt(o,n,2),o.isProxied=!0);let l=(n.$tagName$,()=>{});t.$flags$|=8;try{new o(t)}catch(d){tI(d)}t.$flags$&=-9,t.$flags$|=128,l(),A1e(t.$lazyInstance$)}else{o=e.constructor;let c=e.localName;customElements.whenDefined(c).then((()=>t.$flags$|=128))}if(o&&o.style){let c;typeof o.style==\"string\"&&(c=o.style);let l=vrt(n);if(!qee.has(l)){let d=(n.$tagName$,()=>{});((m,h,g)=>{let y=qee.get(m);hrt&&g?(y=y||new CSSStyleSheet,typeof y==\"string\"?y=h:y.replaceSync(h)):y=h,qee.set(m,y)})(l,c,!!(1&n.$flags$)),d()}}}let i=t.$ancestorComponent$,a=()=>rve(t,!0);i&&i[\"s-rc\"]?i[\"s-rc\"].push(a):a()},A1e=e=>{ove(e,\"connectedCallback\")},Met=e=>{ove(e,\"disconnectedCallback\")},cUt=(e,t={})=>{var n;let r=()=>{},o=[],i=t.exclude||[],a=Bte.customElements,c=Qw.head,l=c.querySelector(\"meta[charset]\"),d=Qw.createElement(\"style\"),m=[],h,g=!0;Object.assign(Vd,t),Vd.$resourcesUrl$=new URL(t.resourcesUrl||\"./\",Qw.baseURI).href;let y=!1;if(e.map((w=>{w[1].map((x=>{var I;let C={$flags$:x[0],$tagName$:x[1],$members$:x[2],$listeners$:x[3]};4&C.$flags$&&(y=!0),C.$members$=x[2],C.$watchers$=(I=x[4])!=null?I:{};let M=C.$tagName$,B=class extends HTMLElement{constructor(z){if(super(z),this.hasRegisteredEventListeners=!1,((G,J)=>{let ne={$flags$:0,$hostElement$:G,$cmpMeta$:J,$instanceValues$:new Map};ne.$onReadyPromise$=new Promise((ie=>ne.$onReadyResolve$=ie)),G[\"s-p\"]=[],G[\"s-rc\"]=[],J1e.set(G,ne)})(z=this,C),1&C.$flags$)if(z.shadowRoot){if(z.shadowRoot.mode!==\"open\")throw new Error(`Unable to re-use existing shadow root for ${C.$tagName$}! Mode is set to ${z.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else z.attachShadow({mode:\"open\"})}connectedCallback(){eC(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),h&&(clearTimeout(h),h=null),g?m.push(this):Vd.jmp((()=>(z=>{if((1&Vd.$flags$)==0){let G=eC(z),J=G.$cmpMeta$,ne=(J.$tagName$,()=>{});if(1&G.$flags$)G?.$lazyInstance$?A1e(G.$lazyInstance$):G?.$onReadyPromise$&&G.$onReadyPromise$.then((()=>A1e(G.$lazyInstance$)));else{G.$flags$|=1;{let ie=z;for(;ie=ie.parentNode||ie.host;)if(ie[\"s-p\"]){Art(G,G.$ancestorComponent$=ie);break}}J.$members$&&Object.entries(J.$members$).map((([ie,[ae]])=>{if(31&ae&&z.hasOwnProperty(ie)){let te=z[ie];delete z[ie],z[ie]=te}})),sUt(z,G,J)}ne()}})(this)))}disconnectedCallback(){Vd.jmp((()=>(async z=>{if((1&Vd.$flags$)==0){let G=eC(z);G?.$lazyInstance$?Met(G.$lazyInstance$):G?.$onReadyPromise$&&G.$onReadyPromise$.then((()=>Met(G.$lazyInstance$)))}})(this)))}componentOnReady(){return eC(this).$onReadyPromise$}};C.$lazyBundleId$=w[0],i.includes(M)||a.get(M)||(o.push(M),a.define(M,Trt(B,C,1)))}))})),o.length>0&&(y&&(d.textContent+=prt),d.textContent+=o.sort()+\"{visibility:hidden}.hydrated{visibility:inherit}\",d.innerHTML.length)){d.setAttribute(\"data-styles\",\"\");let w=(n=Vd.$nonce$)!=null?n:grt(Qw);w!=null&&d.setAttribute(\"nonce\",w),c.insertBefore(d,l?l.nextSibling:c.firstChild)}g=!1,m.length?m.map((w=>w.connectedCallback())):Vd.jmp((()=>h=setTimeout(Srt,30))),r()};(function(){if(typeof window<\"u\"&&window.Reflect!==void 0&&window.customElements!==void 0){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}})();uUt=Object.freeze({__proto__:null,defineCustomElements:async(e,t)=>{if(typeof window<\"u\")return await void 0,cUt([[\"mm-install-modal_3\",[[1,\"mm-install-modal\",{link:[1],sdkVersion:[1,\"sdk-version\"],preferDesktop:[4,\"prefer-desktop\"],tab:[32],isDefaultTab:[32],translationsLoaded:[32]},null,{preferDesktop:[\"updatePreferDesktop\"]}],[1,\"mm-pending-modal\",{displayOTP:[4,\"display-o-t-p\"],sdkVersion:[1,\"sdk-version\"],otpCode:[1,\"otp-code\"],translationsLoaded:[32]}],[1,\"mm-select-modal\",{link:[1],sdkVersion:[1,\"sdk-version\"],preferDesktop:[4,\"prefer-desktop\"],tab:[32],isDefaultTab:[32],translationsLoaded:[32]},null,{preferDesktop:[\"updatePreferDesktop\"]}]]]],t)},setNonce:e=>Vd.$nonce$=e}),lUt={fontFamily:\"Roboto, sans-serif\"},ive=({className:e},t)=>ct(\"div\",{style:lUt,class:e},t),Obe=({Icon:e,text:t})=>ct(\"div\",{class:\"flexContainer\",style:{padding:\"6\",flexDirection:\"row\"}},ct(\"div\",{class:\"flexItem1\"},ct(e,null)),ct(\"div\",{class:\"flexItem11\"},ct(\"span\",{style:{lineHeight:\"2\",color:\"black\"}},t))),dUt=()=>ct(\"svg\",{width:\"20\",height:\"18\",viewBox:\"0 0 20 18\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},ct(\"path\",{d:\"M20.0002 7.9702V10.0302C20.0002 10.5802 19.5602 11.0302 19.0002 11.0502H17.0402C15.9602 11.0502 14.9702 10.2602 14.8802 9.1802C14.8202 8.5502 15.0602 7.9602 15.4802 7.5502C15.8502 7.1702 16.3602 6.9502 16.9202 6.9502H19.0002C19.5602 6.9702 20.0002 7.4202 20.0002 7.9702Z\",fill:\"#037DD6\"}),ct(\"path\",{d:\"M18.47 12.55H17.04C15.14 12.55 13.54 11.12 13.38 9.3C13.29 8.26 13.67 7.22 14.43 6.48C15.07 5.82 15.96 5.45 16.92 5.45H18.47C18.76 5.45 19 5.21 18.97 4.92C18.75 2.49 17.14 0.83 14.75 0.55C14.51 0.51 14.26 0.5 14 0.5H5C4.72 0.5 4.45 0.52 4.19 0.56C1.64 0.88 0 2.78 0 5.5V12.5C0 15.26 2.24 17.5 5 17.5H14C16.8 17.5 18.73 15.75 18.97 13.08C19 12.79 18.76 12.55 18.47 12.55ZM11 6.75H5C4.59 6.75 4.25 6.41 4.25 6C4.25 5.59 4.59 5.25 5 5.25H11C11.41 5.25 11.75 5.59 11.75 6C11.75 6.41 11.41 6.75 11 6.75Z\",fill:\"#037DD6\"})),fUt=()=>ct(\"svg\",{width:\"20\",height:\"18\",viewBox:\"0 0 20 18\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},ct(\"path\",{d:\"M14.44 0.0999756C12.63 0.0999756 11.01 0.979976 10 2.32998C8.99 0.979976 7.37 0.0999756 5.56 0.0999756C2.49 0.0999756 0 2.59998 0 5.68998C0 6.87998 0.19 7.97998 0.52 8.99998C2.1 14 6.97 16.99 9.38 17.81C9.72 17.93 10.28 17.93 10.62 17.81C13.03 16.99 17.9 14 19.48 8.99998C19.81 7.97998 20 6.87998 20 5.68998C20 2.59998 17.51 0.0999756 14.44 0.0999756Z\",fill:\"#037DD6\"})),pUt=()=>ct(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},ct(\"path\",{d:\"M16.28 7.53V6.28C16.28 3.58 15.63 0 10 0C4.37 0 3.72 3.58 3.72 6.28V7.53C0.92 7.88 0 9.3 0 12.79V14.65C0 18.75 1.25 20 5.35 20H14.65C18.75 20 20 18.75 20 14.65V12.79C20 9.3 19.08 7.88 16.28 7.53ZM10 16.74C8.33 16.74 6.98 15.38 6.98 13.72C6.98 12.05 8.34 10.7 10 10.7C11.66 10.7 13.02 12.06 13.02 13.72C13.02 15.39 11.67 16.74 10 16.74ZM5.35 7.44C5.27 7.44 5.2 7.44 5.12 7.44V6.28C5.12 3.35 5.95 1.4 10 1.4C14.05 1.4 14.88 3.35 14.88 6.28V7.45C14.8 7.45 14.73 7.45 14.65 7.45H5.35V7.44Z\",fill:\"#037DD6\"})),hUt=()=>ct(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},ct(\"path\",{d:\"M16.4405 8.8999C20.0405 9.2099 21.5105 11.0599 21.5105 15.1099V15.2399C21.5105 19.7099 19.7205 21.4999 15.2505 21.4999H8.74047C4.27047 21.4999 2.48047 19.7099 2.48047 15.2399V15.1099C2.48047 11.0899 3.93047 9.2399 7.47047 8.9099\",stroke:\"white\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),ct(\"path\",{d:\"M12 2V14.88\",stroke:\"white\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),ct(\"path\",{d:\"M15.3504 12.6499L12.0004 15.9999L8.65039 12.6499\",stroke:\"white\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}));sve=()=>ct(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},ct(\"rect\",{width:\"16\",height:\"16\",fill:\"white\"}),ct(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M2.40554 2.40554C2.94627 1.86482 3.82296 1.86482 4.36369 2.40554L8 6.04186L11.6363 2.40554C12.177 1.86482 13.0537 1.86482 13.5945 2.40554C14.1352 2.94627 14.1352 3.82296 13.5945 4.36369L9.95814 8L13.5945 11.6363C14.1352 12.177 14.1352 13.0537 13.5945 13.5945C13.0537 14.1352 12.177 14.1352 11.6363 13.5945L8 9.95814L4.36369 13.5945C3.82296 14.1352 2.94627 14.1352 2.40554 13.5945C1.86482 13.0537 1.86482 12.177 2.40554 11.6363L6.04186 8L2.40554 4.36369C1.86482 3.82296 1.86482 2.94627 2.40554 2.40554Z\",fill:\"#BBC0C5\"})),cve=()=>ct(\"svg\",{width:\"120\",xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 127 63\"},ct(\"path\",{fill:\"currentColor\",d:\"M71.554 48.607v13.81h-7.072v-9.568l-8.059.945c-1.77.205-2.548.79-2.548 1.864 0 1.575 1.478 2.239 4.648 2.239 1.932 0 4.073-.29 5.963-.79l-3.66 5.225c-1.479.332-2.92.496-4.44.496-6.414 0-10.074-2.57-10.074-7.132 0-4.023 2.877-6.136 9.416-6.884l8.638-1.012c-.467-2.532-2.362-3.633-6.13-3.633-3.537 0-7.443.912-10.937 2.613l1.111-6.18c3.248-1.369 6.95-2.074 10.69-2.074 8.226 0 12.461 3.444 12.461 10.075l-.008.005ZM7.938 31.315.208 62.416h7.73l3.836-15.628 6.65 8.039h8.06l6.65-8.039 3.836 15.628h7.73l-7.73-31.105-14.518 17.388L7.934 31.311l.004.004ZM36.97.21 22.452 17.598 7.938.21.208 31.315h7.73l3.836-15.628 6.65 8.039h8.06l6.65-8.039 3.836 15.628h7.73L36.97.21Zm53.17 48.107-6.25-.912c-1.562-.247-2.178-.747-2.178-1.617 0-1.41 1.52-2.032 4.647-2.032 3.62 0 6.868.747 10.283 2.364l-.862-6.094c-2.757-.995-5.922-1.491-9.212-1.491-7.688 0-11.886 2.696-11.886 7.547 0 3.776 2.303 5.889 7.196 6.636l6.335.954c1.603.248 2.261.87 2.261 1.865 0 1.41-1.478 2.074-4.481 2.074-3.948 0-8.225-.953-11.72-2.654l.7 6.094c3.003 1.122 6.91 1.785 10.57 1.785 7.896 0 12.007-2.78 12.007-7.715 0-3.94-2.303-6.057-7.4-6.8l-.01-.004ZM100.3 34.09v28.325h7.071V34.091H100.3Zm15.334 15.595 9.833-10.744h-8.8l-9.296 11.114 9.912 12.356h8.925l-10.574-12.73v.004Zm-16.321-25.09c0 4.56 3.66 7.13 10.074 7.13 1.52 0 2.961-.167 4.44-.495l3.66-5.225c-1.89.496-4.031.79-5.963.79-3.166 0-4.648-.664-4.648-2.239 0-1.079.783-1.659 2.549-1.864l8.058-.945v9.567h7.072v-13.81c0-6.635-4.236-10.075-12.461-10.075-3.744 0-7.442.705-10.691 2.075l-1.112 6.178c3.495-1.701 7.401-2.613 10.937-2.613 3.769 0 5.664 1.1 6.13 3.633l-8.637 1.013c-6.539.747-9.417 2.86-9.417 6.883l.009-.004Zm-19.779-1.492c0 5.725 3.29 8.627 9.787 8.627 2.59 0 4.732-.416 6.785-1.37l.903-6.261c-1.974 1.2-3.99 1.822-6.005 1.822-3.044 0-4.402-1.243-4.402-4.023v-8.295h10.732V7.84H86.601V2.948l-13.448 7.174v3.482h6.372V23.1l.008.004Zm-6.95-2.612v1.411H53.47c.862 2.873 3.423 4.187 7.97 4.187 3.62 0 6.993-.747 9.992-2.196l-.862 6.056c-2.757 1.16-6.251 1.785-9.829 1.785-9.5 0-14.68-4.23-14.68-12.066 0-7.838 5.264-12.235 13.406-12.235s13.119 4.771 13.119 13.062l-.005-.004ZM53.378 17.09h12.086c-.637-2.751-2.732-4.188-6.08-4.188-3.349 0-5.335 1.399-6.006 4.188Z\"}));SH=class e{static size(t,n){if(typeof t==\"number\"&&(t={height:t,width:t}),!Number.isSafeInteger(t.height)&&t.height!==1/0)throw new Error(`Bitmap: wrong height=${t.height} (${typeof t.height})`);if(!Number.isSafeInteger(t.width)&&t.width!==1/0)throw new Error(`Bitmap: wrong width=${t.width} (${typeof t.width})`);return n!==void 0&&(t={width:Math.min(t.width,n.width),height:Math.min(t.height,n.height)}),t}static fromString(t){let n=(t=t.replace(/^\\\\n+/g,\"\").replace(/\\\\n+$/g,\"\")).split(`\\n`),r=n.length,o=new Array(r),i;for(let a of n){let c=a.split(\"\").map((l=>{if(l===\"X\")return!0;if(l===\" \")return!1;if(l!==\"?\")throw new Error(`Bitmap.fromString: unknown symbol=${l}`)}));if(i&&c.length!==i)throw new Error(`Bitmap.fromString different row sizes: width=${i} cur=${c.length}`);i=c.length,o.push(c)}return i||(i=0),new e({height:r,width:i},o)}constructor(t,n){let{height:r,width:o}=e.size(t);this.data=n||Array.from({length:r},(()=>C0(o,void 0))),this.height=r,this.width=o}point(t){return this.data[t.y][t.x]}isInside(t){return 0<=t.x&&t.x<this.width&&0<=t.y&&t.y<this.height}size(t){if(!t)return{height:this.height,width:this.width};let{x:n,y:r}=this.xy(t);return{height:this.height-r,width:this.width-n}}xy(t){if(typeof t==\"number\"&&(t={x:t,y:t}),!Number.isSafeInteger(t.x))throw new Error(`Bitmap: wrong x=${t.x}`);if(!Number.isSafeInteger(t.y))throw new Error(`Bitmap: wrong y=${t.y}`);return t.x=Det(t.x,this.width),t.y=Det(t.y,this.height),t}rect(t,n,r){let{x:o,y:i}=this.xy(t),{height:a,width:c}=e.size(n,this.size({x:o,y:i}));for(let l=0;l<a;l++)for(let d=0;d<c;d++)this.data[i+l][o+d]=typeof r==\"function\"?r({x:d,y:l},this.data[i+l][o+d]):r;return this}rectRead(t,n,r){return this.rect(t,n,((o,i)=>(r(o,i),i)))}hLine(t,n,r){return this.rect(t,{width:n,height:1},r)}vLine(t,n,r){return this.rect(t,{width:1,height:n},r)}border(t=2,n){let r=this.height+2*t,o=this.width+2*t,i=C0(t,n),a=Array.from({length:t},(()=>C0(o,n)));return new e({height:r,width:o},[...a,...this.data.map((c=>[...i,...c,...i])),...a])}embed(t,n){return this.rect(t,n.size(),(({x:r,y:o})=>n.data[o][r]))}rectSlice(t,n=this.size()){let r=new e(e.size(n,this.size(this.xy(t))));return this.rect(t,n,(({x:o,y:i},a)=>r.data[i][o]=a)),r}inverse(){let{height:t,width:n}=this;return new e({height:n,width:t}).rect({x:0,y:0},1/0,(({x:r,y:o})=>this.data[r][o]))}scale(t){if(!Number.isSafeInteger(t)||t>1024)throw new Error(`Wrong scale factor: ${t}`);let{height:n,width:r}=this;return new e({height:t*n,width:t*r}).rect({x:0,y:0},1/0,(({x:o,y:i})=>this.data[Math.floor(i/t)][Math.floor(o/t)]))}clone(){return new e(this.size()).rect({x:0,y:0},this.size(),(({x:t,y:n})=>this.data[n][t]))}assertDrawn(){this.rectRead(0,1/0,((t,n)=>{if(typeof n!=\"boolean\")throw new Error(\"Invalid color type=\"+typeof n)}))}toString(){return this.data.map((t=>t.map((n=>n===void 0?\"?\":n?\"X\":\" \")).join(\"\"))).join(`\\n`)}toASCII(){let{height:t,width:n,data:r}=this,o=\"\";for(let i=0;i<t;i+=2){for(let a=0;a<n;a++){let c=r[i][a],l=i+1>=t||r[i+1][a];c||l?!c&&l?o+=\"\\\\u2580\":c&&!l?o+=\"\\\\u2584\":c&&l&&(o+=\" \"):o+=\"\\\\u2588\"}o+=`\\n`}return o}toTerm(){let t=\"\\\\x1B[0m\",n=`\\\\x1B[1;47m  ${t}`,r=`\\\\x1B[40m  ${t}`;return this.data.map((o=>o.map((i=>i?r:n)).join(\"\"))).join(`\\n`)}toSVG(){let t=`<svg xmlns:svg=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 ${this.width} ${this.height}\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">`;return this.rectRead(0,1/0,(({x:n,y:r},o)=>{o&&(t+=`<rect x=\"${n}\" y=\"${r}\" width=\"1\" height=\"1\" />`)})),t+=\"</svg>\",t}toGIF(){let t=c=>[255&c,c>>>8&255],n=[...t(this.width),...t(this.height)],r=[];this.rectRead(0,1/0,((c,l)=>r.push(+(l===!0))));let o=126,i=[71,73,70,56,55,97,...n,246,0,0,255,255,255,...C0(381,0),44,0,0,0,0,...n,0,7],a=Math.floor(r.length/o);for(let c=0;c<a;c++)i.push(127,128,...r.slice(o*c,o*(c+1)).map((l=>+l)));return i.push(r.length%o+1,128,...r.slice(a*o).map((c=>+c))),i.push(1,129,0,59),new Uint8Array(i)}toImage(t=!1){let{height:n,width:r}=this.size(),o=new Uint8Array(n*r*(t?3:4)),i=0;for(let a=0;a<n;a++)for(let c=0;c<r;c++){let l=this.data[a][c]?0:255;o[i++]=l,o[i++]=l,o[i++]=l,t||(o[i++]=255)}return{height:n,width:r,data:o}}},Fet=[\"low\",\"medium\",\"quartile\",\"high\"],Het=[\"numeric\",\"alphanumeric\",\"byte\",\"kanji\",\"eci\"],mUt=[26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706],gUt={low:[7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],medium:[10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],quartile:[13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],high:[17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]},yUt={low:[1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],medium:[1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],quartile:[1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],high:[1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]},Wf={size:{encode:e=>21+4*(e-1),decode:e=>(e-17)/4},sizeType:e=>Math.floor((e+7)/17),alignmentPatterns(e){if(e===1)return[];let t=Wf.size.encode(e)-6-1,n=t-6,r=Math.ceil(n/28),o=Math.floor(n/r);o%2?o+=1:n%r*2>=r&&(o+=2);let i=[6];for(let a=1;a<r;a++)i.push(t-(r-a)*o);return i.push(t),i},ECCode:{low:1,medium:0,quartile:3,high:2},formatMask:21522,formatBits(e,t){let n=Wf.ECCode[e]<<3|t,r=n;for(let o=0;o<10;o++)r=r<<1^1335*(r>>9);return(n<<10|r)^Wf.formatMask},versionBits(e){let t=e;for(let n=0;n<12;n++)t=t<<1^7973*(t>>11);return e<<12|t},alphabet:{numeric:Uet(\"0123456789\"),alphanumerc:Uet(\"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:\")},lengthBits:(e,t)=>({numeric:[10,12,14],alphanumeric:[9,11,13],byte:[8,16,16],kanji:[8,10,12],eci:[0,0,0]})[t][Wf.sizeType(e)],modeBits:{numeric:\"0001\",alphanumeric:\"0010\",byte:\"0100\",kanji:\"1000\",eci:\"0111\"},capacity(e,t){let n=mUt[e-1],r=gUt[t][e-1],o=yUt[t][e-1],i=Math.floor(n/o)-r,a=o-n%o;return{words:r,numBlocks:o,shortBlocks:a,blockLen:i,capacity:8*(n-r*o),total:(r+i)*o+o-a}}},S1e=[(e,t)=>(e+t)%2==0,(e,t)=>t%2==0,(e,t)=>e%3==0,(e,t)=>(e+t)%3==0,(e,t)=>(Math.floor(t/2)+Math.floor(e/3))%2==0,(e,t)=>e*t%2+e*t%3==0,(e,t)=>(e*t%2+e*t%3)%2==0,(e,t)=>((e+t)%2+e*t%3)%2==0],un={tables:(e=>{let t=C0(256,0),n=C0(256,0);for(let r=0,o=1;r<256;r++)t[r]=o,n[o]=r,o<<=1,256&o&&(o^=285);return{exp:t,log:n}})(),exp:e=>un.tables.exp[e],log(e){if(e===0)throw new Error(`GF.log: wrong arg=${e}`);return un.tables.log[e]%255},mul:(e,t)=>e===0||t===0?0:un.tables.exp[(un.tables.log[e]+un.tables.log[t])%255],add:(e,t)=>e^t,pow:(e,t)=>un.tables.exp[un.tables.log[e]*t%255],inv(e){if(e===0)throw new Error(`GF.inverse: wrong arg=${e}`);return un.tables.exp[255-un.tables.log[e]]},polynomial(e){if(e.length==0)throw new Error(\"GF.polymomial: wrong length\");if(e[0]!==0)return e;let t=0;for(;t<e.length-1&&e[t]==0;t++);return e.slice(t)},monomial(e,t){if(e<0)throw new Error(`GF.monomial: wrong degree=${e}`);if(t==0)return[0];let n=C0(e+1,0);return n[0]=t,un.polynomial(n)},degree:e=>e.length-1,coefficient:(e,t)=>e[un.degree(e)-t],mulPoly(e,t){if(e[0]===0||t[0]===0)return[0];let n=C0(e.length+t.length-1,0);for(let r=0;r<e.length;r++)for(let o=0;o<t.length;o++)n[r+o]=un.add(n[r+o],un.mul(e[r],t[o]));return un.polynomial(n)},mulPolyScalar(e,t){if(t==0)return[0];if(t==1)return e;let n=C0(e.length,0);for(let r=0;r<e.length;r++)n[r]=un.mul(e[r],t);return un.polynomial(n)},mulPolyMonomial(e,t,n){if(t<0)throw new Error(\"GF.mulPolyMonomial: wrong degree\");if(n==0)return[0];let r=C0(e.length+t,0);for(let o=0;o<e.length;o++)r[o]=un.mul(e[o],n);return un.polynomial(r)},addPoly(e,t){if(e[0]===0)return t;if(t[0]===0)return e;let n=e,r=t;n.length>r.length&&([n,r]=[r,n]);let o=C0(r.length,0),i=r.length-n.length,a=r.slice(0,i);for(let c=0;c<a.length;c++)o[c]=a[c];for(let c=i;c<r.length;c++)o[c]=un.add(n[c-i],r[c]);return un.polynomial(o)},remainderPoly(e,t){let n=Array.from(e);for(let r=0;r<e.length-t.length+1;r++){let o=n[r];if(o!==0)for(let i=1;i<t.length;i++)t[i]!==0&&(n[r+i]=un.add(n[r+i],un.mul(t[i],o)))}return n.slice(e.length-t.length+1,n.length)},divisorPoly(e){let t=[1];for(let n=0;n<e;n++)t=un.mulPoly(t,[1,un.pow(2,n)]);return t},evalPoly(e,t){if(t==0)return un.coefficient(e,0);let n=e[0];for(let r=1;r<e.length;r++)n=un.add(un.mul(t,n),e[r]);return n},euclidian(e,t,n){un.degree(e)<un.degree(t)&&([e,t]=[t,e]);let r=e,o=t,i=[0],a=[1];for(;2*un.degree(o)>=n;){let d=r,m=i;if(r=o,i=a,r[0]===0)throw new Error(\"rLast[0] === 0\");o=d;let h=[0],g=un.inv(r[0]);for(;un.degree(o)>=un.degree(r)&&o[0]!==0;){let y=un.degree(o)-un.degree(r),w=un.mul(o[0],g);h=un.addPoly(h,un.monomial(y,w)),o=un.addPoly(o,un.mulPolyMonomial(r,y,w))}if(h=un.mulPoly(h,i),a=un.addPoly(h,m),un.degree(o)>=un.degree(r))throw new Error(`Division failed r: ${o}, rLast: ${r}`)}let c=un.coefficient(a,0);if(c==0)throw new Error(\"sigmaTilde(0) was zero\");let l=un.inv(c);return[un.mulPolyScalar(a,l),un.mulPolyScalar(o,l)]}};Nbe={DESKTOP:\"Desktop\",MOBILE:\"Mobile\",META_MASK_MOBILE_APP:\"MetaMask mobile app\",SCAN_TO_CONNECT:\"Scan to connect and sign with\",CONNECT_WITH_EXTENSION:\"Connect With MetaMask Extension\",INSTALL_MODAL:{TRUSTED_BY_USERS:\"Trusted by over 30 million users to buy, store, send and swap crypto securely\",LEADING_CRYPTO_WALLET:\"The leading crypto wallet & gateway to blockchain apps built on Ethereum Mainnet, Polygon, Optimism, and many other networks\",CONTROL_DIGITAL_INTERACTIONS:\"Puts you in control of your digital interactions by making power of cryptography more accessible\",INSTALL_META_MASK_EXTENSION:\"Install MetaMask Extension\"},PENDING_MODAL:{OPEN_META_MASK_SELECT_CODE:\"Please open the MetaMask wallet app and select the code on the screen OR disconnect\",OPEN_META_MASK_CONTINUE:\"Open the MetaMask app to continue with your session.\",NUMBER_AFTER_OPEN_NOTICE:\"If a number doesn\\'t appear after opening MetaMask, please click disconnect and re-scan the QRCode.\",DISCONNECT:\"Disconnect\"},SELECT_MODAL:{CRYPTO_TAKE_CONTROL_TEXT:\"Take control of your crypto and explore the blockchain with the wallet trusted by over 30 million people worldwide\"},META_MASK_MODAL:{ADDRESS_COPIED:\"Address copied to clipboard!\",DISCONNECT:\"Disconnect\",ACTIVE_NETWORK:\"Active Network\"}},zH=class{constructor(t){var n;this.translations=Nbe,this.supportedLocales=[\"es\",\"fr\",\"he\",\"it\",\"pt\",\"tr\"],this.baseUrl=(n=t?.baseUrl)!==null&&n!==void 0?n:\"https://raw.githubusercontent.com/MetaMask/metamask-sdk/refs/heads/gh-pages/locales\"}getBrowserLanguage(){if((navigator.languages||[navigator.language]).some((n=>n.toLowerCase().startsWith(\"en\"))))return\"en\";let t=navigator.language.toLowerCase().split(\"-\")[0];return this.supportedLocales.includes(t)?t:\"en\"}async init(t){let n=this.getBrowserLanguage()||t.fallbackLng;await this.loadTranslations(n)}async loadTranslations(t){let n=t.split(\"-\")[0];if(n!==\"en\"&&this.supportedLocales.includes(n))try{let r=`${this.baseUrl}/${n}.json`,o=await fetch(r);if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);this.translations=await o.json()}catch(r){console.warn(`\\\\u274C Failed to load ${n} translations, falling back to English:`,r),this.translations=Nbe}else this.translations=Nbe}t(t){return this.getNestedTranslation(t,this.translations)||t}getNestedTranslation(t,n){let r=t.split(\".\"),o=n;for(let i of r){if(typeof o!=\"object\")return\"\";o=o[i]}return typeof o==\"string\"?o:\"\"}};(function(e){e.SDK_MODAL_VIEWED=\"sdk_modal_viewed\",e.SDK_MODAL_BUTTON_CLICKED=\"sdk_modal_button_clicked\",e.SDK_MODAL_TOGGLE_CHANGED=\"sdk_modal_toggle_changed\"})(_H||(_H={}));Rrt=class{constructor(e){X1e(this,e),this.close=nC(this,\"close\",7),this.startDesktopOnboarding=nC(this,\"startDesktopOnboarding\",7),this.trackAnalytics=nC(this,\"trackAnalytics\",7),this.link=void 0,this.sdkVersion=void 0,this.preferDesktop=void 0,this.tab=1,this.isDefaultTab=!0,this.translationsLoaded=!1,this.onClose=this.onClose.bind(this),this.onStartDesktopOnboardingHandler=this.onStartDesktopOnboardingHandler.bind(this),this.setTab=this.setTab.bind(this),this.render=this.render.bind(this),this.setTab(this.preferDesktop?1:2),this.i18nInstance=new zH}componentDidLoad(){this.trackAnalytics.emit({event:_H.SDK_MODAL_VIEWED,params:{extensionInstalled:!1,tab:this.tab===1?\"desktop\":\"mobile\"}})}async connectedCallback(){await this.i18nInstance.init({fallbackLng:\"en\"}),this.translationsLoaded=!0}updatePreferDesktop(e){e?this.setTab(1):this.setTab(2)}onClose(e=!1){this.close.emit({shouldTerminate:e})}onStartDesktopOnboardingHandler(){this.trackAnalytics.emit({event:_H.SDK_MODAL_BUTTON_CLICKED,params:{button_type:\"install_extension\",tab:\"desktop\"}}),this.startDesktopOnboarding.emit()}setTab(e,t=!1){t&&this.trackAnalytics.emit({event:_H.SDK_MODAL_TOGGLE_CHANGED,params:{toggle:this.tab===1?\"desktop_to_mobile\":\"mobile_to_desktop\"}}),this.tab=e,this.isDefaultTab=!1}render(){if(!this.translationsLoaded)return null;let e=r=>this.i18nInstance.t(r),t=this.isDefaultTab?this.preferDesktop?1:2:this.tab,n=Crt(this.link,\"svg\",{ecc:\"medium\",scale:2});return ct(ive,{className:\"install-model\"},ct(\"div\",{class:\"backdrop\",onClick:()=>this.onClose(!0)}),ct(\"div\",{class:\"modal\"},ct(\"div\",{class:\"closeButtonContainer\"},ct(\"div\",{class:\"right\"},ct(\"span\",{class:\"closeButton\",onClick:()=>this.onClose(!0)},ct(sve,null)))),ct(\"div\",{class:\"logoContainer\"},ct(cve,null)),ct(\"div\",null,ct(\"div\",{class:\"tabcontainer\"},ct(\"div\",{class:\"flexContainer\"},ct(\"div\",{onClick:()=>this.setTab(1,!0),class:\"tab flexItem \"+(t===1?\"tabactive\":\"\")},e(\"DESKTOP\")),ct(\"div\",{onClick:()=>this.setTab(2,!0),class:\"tab flexItem \"+(t===2?\"tabactive\":\"\")},e(\"MOBILE\")))),ct(\"div\",{style:{display:t===1?\"none\":\"block\"}},ct(\"div\",{class:\"flexContainer\"},ct(\"div\",{class:\"flexItem\",style:{textAlign:\"center\",marginTop:\"4\"}},n&&ct(\"div\",{id:\"sdk-mm-qrcode\",class:\"center\",innerHTML:n}),ct(\"div\",{class:\"connectMobileText\"},e(\"SCAN_TO_CONNECT\"),\" \",ct(\"br\",null),ct(\"span\",{class:\"blue\"},ct(\"b\",null,e(\"META_MASK_MOBILE_APP\"))))))),ct(\"div\",{style:{display:t===2?\"none\":\"block\"}},ct(\"div\",{class:\"item\"},ct(Obe,{Icon:fUt,text:e(\"INSTALL_MODAL.TRUSTED_BY_USERS\")})),ct(\"div\",{class:\"item\"},ct(Obe,{Icon:dUt,text:e(\"INSTALL_MODAL.LEADING_CRYPTO_WALLET\")})),ct(\"div\",{class:\"item\"},ct(Obe,{Icon:pUt,text:e(\"INSTALL_MODAL.CONTROL_DIGITAL_INTERACTIONS\")})),ct(\"button\",{class:\"button\",onClick:()=>this.onStartDesktopOnboardingHandler()},ct(hUt,null),ct(\"span\",{class:\"installExtensionText\"},e(\"INSTALL_MODAL.INSTALL_META_MASK_EXTENSION\"))))),ct(ave,{version:this.sdkVersion})))}get el(){return Lte(this)}static get watchers(){return{preferDesktop:[\"updatePreferDesktop\"]}}};Rrt.style=`.flexContainer {\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n    flex-direction: row;\\n}\\n\\n.flexItem {\\n    flex: 1;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.flexItem11 {\\n    flex: 11;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.flexItem1 {\\n    flex: 1;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.tab {\\n    padding: 8px;\\n    cursor: pointer;\\n    background-color: #F2F4F6;\\n    font-size: 12px;\\n    text-align: center;\\n    color: #24292E;\\n}\\n\\n.tabcontainer {\\n    padding: 4px;\\n    background-color: #F2F4F6;\\n    border-radius: 8px;\\n    margin-bottom: 30px;\\n    margin-top: 30px;\\n}\\n\\n.tabactive {\\n    background-color: white;\\n    -webkit-transition: background-color 300ms linear;\\n    -ms-transition: background-color 300ms linear;\\n    transition: background-color 300ms linear;\\n    border-radius: 8px;\\n}\\n\\n.item {\\n    font-size: 12px;\\n    margin-bottom: 16px;\\n    border-radius: 8px;\\n    padding: 10px;\\n    border: 2px #F2F4F6 solid;\\n    color: #24292E;\\n}\\n\\n.extensionLabel {\\n    font-style: normal;\\n    font-weight: bold;\\n    font-size: 14px;\\n    text-align: cetner;\\n    color: #24272A;\\n}\\n\\n.notice {\\n    font-size: 12px;\\n    margin-left: 10px;\\n    margin-right: 10px;\\n    color: grey;\\n}\\n\\n.button {\\n    margin-top: 41.5px;\\n    margin-bottom: 20px;\\n    width: 100%;\\n    display: flex;\\n    flex-direction: row;\\n    justify-content: center;\\n    align-items: center;\\n    padding: 12px 20px;\\n    background: #037DD6;\\n    border-radius: 32px;\\n    color: white;\\n    border: 0;\\n    font-size: 14px;\\n    cursor: pointer;\\n}\\n\\n.backdrop {\\n    visibility: visible;\\n    position: fixed;\\n    top: 0;\\n    left: 0;\\n    right: 0;\\n    bottom: 0;\\n    width: 100%;\\n    z-index: 99998;\\n    background: rgba(0, 0, 0, 0.87);\\n    opacity: 0.3;\\n}\\n\\n.modal {\\n    visibility: visible;\\n    position: fixed;\\n    left: 50%;\\n    transform: translate(-50%, -50%);\\n    z-index: 99999;\\n    background: white;\\n    padding: 20px;\\n    border-radius: 8px;\\n    top: 50%;\\n    max-width: 100%;\\n    width: 460px;\\n    min-width: 300px;\\n    box-shadow: rgba(0, 0, 0, 0.2) 0px 11px 15px -7px, rgba(0, 0, 0, 0.14) 0px 24px 38px 3px, rgba(0, 0, 0, 0.12) 0px 9px 46px 8px;\\n    -webkit-font-smoothing: antialiased;\\n}\\n\\n.closeButton {\\n    color: #BBC0C5;\\n    cursor: pointer;\\n}\\n\\n.logoContainer {\\n    margin-left: 24px;\\n    margin-right: 24px;\\n    margin-top: 24px;\\n    display: flex;\\n    align-items: center;\\n    justify-content: center;\\n}\\n\\n.connectMobileText {\\n    font-size: 14px;\\n    color: black;\\n    margin-top: 28px;\\n    margin-bottom: 28px;\\n    line-height: 2;\\n}\\n\\n.blue {\\n    color: #037DD6;\\n    font-weight: 700;\\n}\\n\\n.installExtensionText {\\n    margin-left: 10px;\\n}\\n\\n.center {\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.right {\\n    display: flex;\\n    align-items: center;\\n    justify-content: right;\\n}\\n\\n#sdk-mm-qrcode {\\n    svg {\\n        width: 50%;\\n    }\\n}`;Irt=class{constructor(e){X1e(this,e),this.close=nC(this,\"close\",7),this.disconnect=nC(this,\"disconnect\",7),this.updateOTPValue=nC(this,\"updateOTPValue\",7),this.displayOTP=void 0,this.sdkVersion=void 0,this.otpCode=void 0,this.translationsLoaded=!1,this.i18nInstance=new zH}async connectedCallback(){await this.i18nInstance.init({fallbackLng:\"en\"}),this.translationsLoaded=!0}onClose(){this.close.emit()}onDisconnect(){this.disconnect.emit()}onUpdateOTPValueHandler(e){this.updateOTPValue.emit({otpValue:e})}disconnectedCallback(){this.onClose()}render(){var e;if(!this.translationsLoaded)return null;let t=(e=this.displayOTP)===null||e===void 0||e,n=this.sdkVersion,r=o=>this.i18nInstance.t(o);return ct(ive,{className:\"pending-modal\"},ct(\"div\",{class:\"backdrop\",onClick:()=>this.onClose()}),ct(\"div\",{class:\"modal\"},ct(\"div\",{class:\"closeButtonContainer\"},ct(\"div\",{class:\"right\"},ct(\"span\",{class:\"closeButton\",onClick:()=>this.onClose()},ct(sve,null)))),ct(\"div\",{class:\"logoContainer\"},ct(cve,null)),ct(\"div\",null,ct(\"div\",{class:\"flexContainer\",style:{flexDirection:\"column\",color:\"black\"}},ct(\"div\",{class:\"flexItem\",style:{textAlign:\"center\",marginTop:\"30px\",marginBottom:\"30px\",fontSize:\"16px\"}},r(t?\"PENDING_MODAL.OPEN_META_MASK_SELECT_CODE\":\"PENDING_MODAL.OPEN_META_MASK_CONTINUE\")),ct(\"div\",{id:\"sdk-mm-otp-value\",style:{padding:\"10px\",fontSize:\"32px\",display:this.otpCode?\"block\":\"none\"}},this.otpCode),t&&ct(\"div\",{class:\"notice\"},\"* \",r(\"PENDING_MODAL.NUMBER_AFTER_OPEN_NOTICE\"))),ct(\"div\",{style:{marginTop:\"20px\"}},ct(\"button\",{class:\"button blue\",style:{marginTop:\"5px\",color:\"#0376C9\",borderColor:\"#0376C9\",borderWidth:\"1px\",borderStyle:\"solid\",backgroundColor:\"white\"},onClick:()=>this.onDisconnect()},r(\"PENDING_MODAL.DISCONNECT\")))),ct(ave,{version:n})))}get el(){return Lte(this)}};Irt.style=`.flexContainer {\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n    flex-direction: row;\\n}\\n\\n.flexItem {\\n    flex: 1;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.flexItem11 {\\n    flex: 11;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.flexItem1 {\\n    flex: 1;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.tab {\\n    padding: 8px;\\n    cursor: pointer;\\n    background-color: #F2F4F6;\\n    font-size: 12px;\\n    text-align: center;\\n    color: #24292E;\\n}\\n\\n.tabcontainer {\\n    padding: 4px;\\n    background-color: #F2F4F6;\\n    border-radius: 8px;\\n    margin-bottom: 30px;\\n    margin-top: 30px;\\n}\\n\\n.tabactive {\\n    background-color: white;\\n    -webkit-transition: background-color 300ms linear;\\n    -ms-transition: background-color 300ms linear;\\n    transition: background-color 300ms linear;\\n    border-radius: 8px;\\n}\\n\\n.item {\\n    font-size: 12px;\\n    margin-bottom: 16px;\\n    border-radius: 8px;\\n    padding: 10px;\\n    border: 2px #F2F4F6 solid;\\n    color: #24292E;\\n}\\n\\n.extensionLabel {\\n    font-style: normal;\\n    font-weight: bold;\\n    font-size: 14px;\\n    text-align: cetner;\\n    color: #24272A;\\n}\\n\\n.notice {\\n    font-size: 12px;\\n    margin-left: 10px;\\n    margin-right: 10px;\\n    color: grey;\\n}\\n\\n.button {\\n    margin-top: 41.5px;\\n    margin-bottom: 20px;\\n    width: 100%;\\n    display: flex;\\n    flex-direction: row;\\n    justify-content: center;\\n    align-items: center;\\n    padding: 12px 20px;\\n    background: #037DD6;\\n    border-radius: 32px;\\n    color: white;\\n    border: 0;\\n    font-size: 14px;\\n    cursor: pointer;\\n}\\n\\n.backdrop {\\n    visibility: visible;\\n    position: fixed;\\n    top: 0;\\n    left: 0;\\n    right: 0;\\n    bottom: 0;\\n    width: 100%;\\n    z-index: 99998;\\n    background: rgba(0, 0, 0, 0.87);\\n    opacity: 0.3;\\n}\\n\\n.modal {\\n    visibility: visible;\\n    position: fixed;\\n    left: 50%;\\n    transform: translate(-50%, -50%);\\n    z-index: 99999;\\n    background: white;\\n    padding: 20px;\\n    border-radius: 8px;\\n    top: 50%;\\n    max-width: 100%;\\n    width: 460px;\\n    min-width: 300px;\\n    box-shadow: rgba(0, 0, 0, 0.2) 0px 11px 15px -7px, rgba(0, 0, 0, 0.14) 0px 24px 38px 3px, rgba(0, 0, 0, 0.12) 0px 9px 46px 8px;\\n    -webkit-font-smoothing: antialiased;\\n}\\n\\n.closeButton {\\n    color: #BBC0C5;\\n    cursor: pointer;\\n}\\n\\n.logoContainer {\\n    margin-left: 24px;\\n    margin-right: 24px;\\n    margin-top: 24px;\\n    display: flex;\\n    align-items: center;\\n    justify-content: center;\\n}\\n\\n.connectMobileText {\\n    font-size: 14px;\\n    color: black;\\n    margin-top: 28px;\\n    margin-bottom: 28px;\\n    line-height: 2;\\n}\\n\\n.blue {\\n    color: #037DD6;\\n    font-weight: 700;\\n}\\n\\n.installExtensionText {\\n    margin-left: 10px;\\n}\\n\\n.center {\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.right {\\n    display: flex;\\n    align-items: center;\\n    justify-content: right;\\n}\\n\\n#sdk-mm-qrcode {\\n    svg {\\n        width: 50%;\\n    }\\n}`;wUt=()=>ct(\"svg\",{width:\"21\",height:\"15\",viewBox:\"0 0 21 15\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},ct(\"path\",{d:\"M14.1364 14.9851C13.5909 14.9851 13.2273 14.5851 13.2273 13.9851C13.2273 13.3851 13.5909 12.9851 14.1364 12.9851C16.6818 12.9851 18.6818 10.7851 18.6818 7.98508C18.6818 5.18508 16.6818 2.98508 14.1364 2.98508C11.5909 2.98508 9.59091 5.18508 9.59091 7.98508C9.59091 8.58508 9.22727 8.98508 8.68182 8.98508C8.13636 8.98508 7.77273 8.58508 7.77273 7.98508C7.77273 4.08508 10.5909 0.985077 14.1364 0.985077C17.6818 0.985077 20.5 4.08508 20.5 7.98508C20.5 11.8851 17.6818 14.9851 14.1364 14.9851ZM6.68182 14.7851C3.22727 14.7851 0.5 11.6851 0.5 7.98508C0.5 4.28508 3.22727 1.18508 6.68182 1.18508C7.22727 1.18508 7.59091 1.58508 7.59091 2.18508C7.59091 2.78508 7.22727 3.18508 6.68182 3.18508C4.22727 3.18508 2.31818 5.38508 2.31818 7.98508C2.31818 10.5851 4.22727 12.7851 6.68182 12.7851C9.13636 12.7851 11.0455 10.6851 11.0455 7.98508C11.0455 7.38508 11.4091 6.98508 11.9545 6.98508C12.5 6.98508 12.8636 7.38508 12.8636 7.98508C12.7727 11.6851 10.0455 14.7851 6.68182 14.7851Z\",fill:\"white\"})),xUt=()=>ct(\"svg\",{width:\"400\",height:\"300\",viewBox:\"0 0 400 300\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},ct(\"rect\",{width:\"400\",height:\"300\",fill:\"white\"}),ct(\"path\",{d:\"M300.116 242.46L250.485 227.681L213.057 250.055L186.944 250.045L149.493 227.681L99.8843 242.46L84.7939 191.518L99.8843 134.979L84.7939 87.1777L99.8843 27.9336L177.402 74.2466H222.598L300.116 27.9336L315.206 87.1777L300.116 134.979L315.206 191.518L300.116 242.46Z\",fill:\"#FF5C16\"}),ct(\"path\",{d:\"M99.8955 27.9336L177.414 74.2792L174.331 106.085L99.8955 27.9336Z\",fill:\"#FF5C16\"}),ct(\"path\",{d:\"M149.505 191.539L183.612 217.521L149.505 227.681V191.539Z\",fill:\"#FF5C16\"}),ct(\"path\",{d:\"M180.886 148.585L174.33 106.107L132.369 134.991L132.348 134.98V135.001L132.477 164.732L149.493 148.585H149.504H180.886Z\",fill:\"#FF5C16\"}),ct(\"path\",{d:\"M300.116 27.9336L222.598 74.2792L225.67 106.085L300.116 27.9336Z\",fill:\"#FF5C16\"}),ct(\"path\",{d:\"M250.508 191.539L216.4 217.521L250.508 227.681V191.539Z\",fill:\"#FF5C16\"}),ct(\"path\",{d:\"M267.652 135.001H267.663H267.652V134.98L267.641 134.991L225.68 106.107L219.125 148.585H250.507L267.533 164.732L267.652 135.001Z\",fill:\"#FF5C16\"}),ct(\"path\",{d:\"M149.493 227.681L99.8843 242.46L84.7939 191.54H149.493V227.681Z\",fill:\"#E34807\"}),ct(\"path\",{d:\"M180.875 148.574L190.351 209.98L177.219 175.838L132.456 164.732L149.483 148.574H180.864H180.875Z\",fill:\"#E34807\"}),ct(\"path\",{d:\"M250.507 227.681L300.116 242.46L315.206 191.54H250.507V227.681Z\",fill:\"#E34807\"}),ct(\"path\",{d:\"M219.126 148.574L209.649 209.98L222.782 175.838L267.545 164.732L250.507 148.574H219.126Z\",fill:\"#E34807\"}),ct(\"path\",{d:\"M84.7939 191.517L99.8843 134.979H132.337L132.456 164.721L177.219 175.826L190.351 209.969L183.601 217.488L149.493 191.506H84.7939V191.517Z\",fill:\"#FF8D5D\"}),ct(\"path\",{d:\"M315.206 191.517L300.116 134.979H267.664L267.545 164.721L222.782 175.826L209.649 209.969L216.4 217.488L250.507 191.506H315.206V191.517Z\",fill:\"#FF8D5D\"}),ct(\"path\",{d:\"M222.598 74.2466H200H177.402L174.33 106.053L190.351 209.936H209.649L225.681 106.053L222.598 74.2466Z\",fill:\"#FF8D5D\"}),ct(\"path\",{d:\"M99.8843 27.9336L84.7939 87.1777L99.8843 134.979H132.337L174.319 106.085L99.8843 27.9336Z\",fill:\"#661800\"}),ct(\"path\",{d:\"M171.496 160.906H156.795L148.79 168.752L177.229 175.804L171.496 160.896V160.906Z\",fill:\"#661800\"}),ct(\"path\",{d:\"M300.116 27.9336L315.206 87.1777L300.116 134.979H267.663L225.681 106.085L300.116 27.9336Z\",fill:\"#661800\"}),ct(\"path\",{d:\"M228.525 160.906H243.248L251.253 168.763L222.781 175.826L228.525 160.896V160.906Z\",fill:\"#661800\"}),ct(\"path\",{d:\"M213.046 229.789L216.399 217.51L209.649 209.991H190.34L183.59 217.51L186.943 229.789\",fill:\"#661800\"}),ct(\"path\",{d:\"M213.047 229.789V250.066H186.944V229.789H213.047Z\",fill:\"#C0C4CD\"}),ct(\"path\",{d:\"M149.504 227.66L186.965 250.056V229.779L183.611 217.5L149.504 227.66Z\",fill:\"#E7EBF6\"}),ct(\"path\",{d:\"M250.506 227.66L213.045 250.056V229.779L216.398 217.5L250.506 227.66Z\",fill:\"#E7EBF6\"})),krt=class{constructor(e){X1e(this,e),this.close=nC(this,\"close\",7),this.connectWithExtension=nC(this,\"connectWithExtension\",7),this.link=void 0,this.sdkVersion=void 0,this.preferDesktop=void 0,this.tab=1,this.isDefaultTab=!0,this.translationsLoaded=!1,this.i18nInstance=new zH,this.setTab(this.preferDesktop?1:2)}async connectedCallback(){await this.i18nInstance.init({fallbackLng:\"en\"}),this.translationsLoaded=!0}onClose(e=!1){this.close.emit({shouldTerminate:e})}connectWithExtensionHandler(){this.connectWithExtension.emit()}setTab(e){this.tab=e,this.isDefaultTab=!1}disconnectedCallback(){this.onClose()}updatePreferDesktop(e){e?this.setTab(1):this.setTab(2)}render(){if(!this.translationsLoaded)return null;let e=o=>this.i18nInstance.t(o),t=this.sdkVersion,n=this.isDefaultTab?this.preferDesktop?1:2:this.tab,r=Crt(this.link,\"svg\",{ecc:\"medium\",scale:2});return ct(ive,{className:\"select-modal\"},ct(\"div\",{class:\"backdrop\",onClick:()=>this.onClose(!0)}),ct(\"div\",{class:\"modal\"},ct(\"div\",{class:\"closeButtonContainer\"},ct(\"div\",{class:\"right\"},ct(\"span\",{class:\"closeButton\",onClick:()=>this.onClose(!0)},ct(sve,null)))),ct(\"div\",{class:\"logoContainer\"},ct(cve,null)),ct(\"div\",null,ct(\"div\",{class:\"tabcontainer\"},ct(\"div\",{class:\"flexContainer\"},ct(\"div\",{onClick:()=>this.setTab(1),class:\"tab flexItem \"+(n===1?\"tabactive\":\"\")},e(\"DESKTOP\")),ct(\"div\",{onClick:()=>this.setTab(2),class:\"tab flexItem \"+(n===2?\"tabactive\":\"\")},e(\"MOBILE\")))),ct(\"div\",{style:{display:n===1?\"none\":\"block\"}},ct(\"div\",{class:\"flexContainer\"},ct(\"div\",{class:\"flexItem\",style:{textAlign:\"center\",marginTop:\"4\"}},ct(\"div\",{class:\"center\",id:\"sdk-mm-qrcode\",innerHTML:r}),ct(\"div\",{class:\"connectMobileText\"},e(\"SCAN_TO_CONNECT\"),ct(\"br\",null),ct(\"span\",{class:\"blue\"},ct(\"b\",null,e(\"META_MASK_MOBILE_APP\"))))))),ct(\"div\",{style:{display:n===2?\"none\":\"block\"}},ct(\"div\",{style:{display:\"flex\",justifyContent:\"center\",height:\"300\",marginTop:\"-20\"}},ct(xUt,null)),ct(\"div\",{class:\"extensionLabel\"},e(\"SELECT_MODAL.CRYPTO_TAKE_CONTROL_TEXT\")),ct(\"button\",{class:\"button\",onClick:()=>this.connectWithExtensionHandler()},ct(wUt,null),ct(\"span\",{class:\"installExtensionText\"},e(\"CONNECT_WITH_EXTENSION\"))))),ct(ave,{version:t})))}get el(){return Lte(this)}static get watchers(){return{preferDesktop:[\"updatePreferDesktop\"]}}};krt.style=`.flexContainer {\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n    flex-direction: row;\\n}\\n\\n.flexItem {\\n    flex: 1;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.flexItem11 {\\n    flex: 11;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.flexItem1 {\\n    flex: 1;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.tab {\\n    padding: 8px;\\n    cursor: pointer;\\n    background-color: #F2F4F6;\\n    font-size: 12px;\\n    text-align: center;\\n    color: #24292E;\\n}\\n\\n.tabcontainer {\\n    padding: 4px;\\n    background-color: #F2F4F6;\\n    border-radius: 8px;\\n    margin-bottom: 30px;\\n    margin-top: 30px;\\n}\\n\\n.tabactive {\\n    background-color: white;\\n    -webkit-transition: background-color 300ms linear;\\n    -ms-transition: background-color 300ms linear;\\n    transition: background-color 300ms linear;\\n    border-radius: 8px;\\n}\\n\\n.item {\\n    font-size: 12px;\\n    margin-bottom: 16px;\\n    border-radius: 8px;\\n    padding: 10px;\\n    border: 2px #F2F4F6 solid;\\n    color: #24292E;\\n}\\n\\n.extensionLabel {\\n    font-style: normal;\\n    font-weight: bold;\\n    font-size: 14px;\\n    text-align: cetner;\\n    color: #24272A;\\n}\\n\\n.notice {\\n    font-size: 12px;\\n    margin-left: 10px;\\n    margin-right: 10px;\\n    color: grey;\\n}\\n\\n.button {\\n    margin-top: 41.5px;\\n    margin-bottom: 20px;\\n    width: 100%;\\n    display: flex;\\n    flex-direction: row;\\n    justify-content: center;\\n    align-items: center;\\n    padding: 12px 20px;\\n    background: #037DD6;\\n    border-radius: 32px;\\n    color: white;\\n    border: 0;\\n    font-size: 14px;\\n    cursor: pointer;\\n}\\n\\n.backdrop {\\n    visibility: visible;\\n    position: fixed;\\n    top: 0;\\n    left: 0;\\n    right: 0;\\n    bottom: 0;\\n    width: 100%;\\n    z-index: 99998;\\n    background: rgba(0, 0, 0, 0.87);\\n    opacity: 0.3;\\n}\\n\\n.modal {\\n    visibility: visible;\\n    position: fixed;\\n    left: 50%;\\n    transform: translate(-50%, -50%);\\n    z-index: 99999;\\n    background: white;\\n    padding: 20px;\\n    border-radius: 8px;\\n    top: 50%;\\n    max-width: 100%;\\n    width: 460px;\\n    min-width: 300px;\\n    box-shadow: rgba(0, 0, 0, 0.2) 0px 11px 15px -7px, rgba(0, 0, 0, 0.14) 0px 24px 38px 3px, rgba(0, 0, 0, 0.12) 0px 9px 46px 8px;\\n    -webkit-font-smoothing: antialiased;\\n}\\n\\n.closeButton {\\n    color: #BBC0C5;\\n    cursor: pointer;\\n}\\n\\n.logoContainer {\\n    margin-left: 24px;\\n    margin-right: 24px;\\n    margin-top: 24px;\\n    display: flex;\\n    align-items: center;\\n    justify-content: center;\\n}\\n\\n.connectMobileText {\\n    font-size: 14px;\\n    color: black;\\n    margin-top: 28px;\\n    margin-bottom: 28px;\\n    line-height: 2;\\n}\\n\\n.blue {\\n    color: #037DD6;\\n    font-weight: 700;\\n}\\n\\n.installExtensionText {\\n    margin-left: 10px;\\n}\\n\\n.center {\\n    display: flex;\\n    justify-content: center;\\n    align-items: center;\\n}\\n\\n.right {\\n    display: flex;\\n    align-items: center;\\n    justify-content: right;\\n}\\n\\n#sdk-mm-qrcode {\\n    svg {\\n        width: 50%;\\n    }\\n}`;EUt=Object.freeze({__proto__:null,mm_install_modal:Rrt,mm_pending_modal:Irt,mm_select_modal:krt})});var sot=me((wgr,aot)=>{\"use strict\";f();var Kte=l1().Buffer;function OHt(e){if(e.length>=255)throw new TypeError(\"Alphabet too long\");for(var t=new Uint8Array(256),n=0;n<t.length;n++)t[n]=255;for(var r=0;r<e.length;r++){var o=e.charAt(r),i=o.charCodeAt(0);if(t[i]!==255)throw new TypeError(o+\" is ambiguous\");t[i]=r}var a=e.length,c=e.charAt(0),l=Math.log(a)/Math.log(256),d=Math.log(256)/Math.log(a);function m(y){if((Array.isArray(y)||y instanceof Uint8Array)&&(y=Kte.from(y)),!Kte.isBuffer(y))throw new TypeError(\"Expected Buffer\");if(y.length===0)return\"\";for(var w=0,x=0,I=0,C=y.length;I!==C&&y[I]===0;)I++,w++;for(var M=(C-I)*d+1>>>0,B=new Uint8Array(M);I!==C;){for(var z=y[I],G=0,J=M-1;(z!==0||G<x)&&J!==-1;J--,G++)z+=256*B[J]>>>0,B[J]=z%a>>>0,z=z/a>>>0;if(z!==0)throw new Error(\"Non-zero carry\");x=G,I++}for(var ne=M-x;ne!==M&&B[ne]===0;)ne++;for(var ie=c.repeat(w);ne<M;++ne)ie+=e.charAt(B[ne]);return ie}function h(y){if(typeof y!=\"string\")throw new TypeError(\"Expected String\");if(y.length===0)return Kte.alloc(0);for(var w=0,x=0,I=0;y[w]===c;)x++,w++;for(var C=(y.length-w)*l+1>>>0,M=new Uint8Array(C);w<y.length;){var B=y.charCodeAt(w);if(B>255)return;var z=t[B];if(z===255)return;for(var G=0,J=C-1;(z!==0||G<I)&&J!==-1;J--,G++)z+=a*M[J]>>>0,M[J]=z%256>>>0,z=z/256>>>0;if(z!==0)throw new Error(\"Non-zero carry\");I=G,w++}for(var ne=C-I;ne!==C&&M[ne]===0;)ne++;var ie=Kte.allocUnsafe(x+(C-ne));ie.fill(0,0,x);for(var ae=x;ne!==C;)ie[ae++]=M[ne++];return ie}function g(y){var w=h(y);if(w)return w;throw new Error(\"Non-base\"+a+\" character\")}return{encode:m,decodeUnsafe:h,decode:g}}aot.exports=OHt});var _ve=me((Egr,cot)=>{f();var NHt=sot(),PHt=\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\";cot.exports=NHt(PHt)});var uot=me(Rve=>{\"use strict\";f();function lA(e,t,n){return t<=e&&e<=n}function Xte(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError(\"Could not convert argument to dictionary\")}function MHt(e){for(var t=String(e),n=t.length,r=0,o=[];r<n;){var i=t.charCodeAt(r);if(i<55296||i>57343)o.push(i);else if(56320<=i&&i<=57343)o.push(65533);else if(55296<=i&&i<=56319)if(r===n-1)o.push(65533);else{var a=e.charCodeAt(r+1);if(56320<=a&&a<=57343){var c=i&1023,l=a&1023;o.push(65536+(c<<10)+l),r+=1}else o.push(65533)}r+=1}return o}function DHt(e){for(var t=\"\",n=0;n<e.length;++n){var r=e[n];r<=65535?t+=String.fromCharCode(r):(r-=65536,t+=String.fromCharCode((r>>10)+55296,(r&1023)+56320))}return t}var Yte=-1;function Cve(e){this.tokens=[].slice.call(e)}Cve.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():Yte},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var OM=-1;function Tve(e,t){if(e)throw TypeError(\"Decoder error\");return t||65533}var Zte=\"utf-8\";function Qte(e,t){if(!(this instanceof Qte))return new Qte(e,t);if(e=e!==void 0?String(e).toLowerCase():Zte,e!==Zte)throw new Error(\"Encoding not supported. Only utf-8 is supported\");t=Xte(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!t.fatal,this._ignoreBOM=!!t.ignoreBOM,Object.defineProperty(this,\"encoding\",{value:\"utf-8\"}),Object.defineProperty(this,\"fatal\",{value:this._fatal}),Object.defineProperty(this,\"ignoreBOM\",{value:this._ignoreBOM})}Qte.prototype={decode:function(t,n){var r;typeof t==\"object\"&&t instanceof ArrayBuffer?r=new Uint8Array(t):typeof t==\"object\"&&\"buffer\"in t&&t.buffer instanceof ArrayBuffer?r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):r=new Uint8Array(0),n=Xte(n),this._streaming||(this._decoder=new BHt({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!n.stream;for(var o=new Cve(r),i=[],a;!o.endOfStream()&&(a=this._decoder.handler(o,o.read()),a!==OM);)a!==null&&(Array.isArray(a)?i.push.apply(i,a):i.push(a));if(!this._streaming){do{if(a=this._decoder.handler(o,o.read()),a===OM)break;a!==null&&(Array.isArray(a)?i.push.apply(i,a):i.push(a))}while(!o.endOfStream());this._decoder=null}return i.length&&[\"utf-8\"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(i[0]===65279?(this._BOMseen=!0,i.shift()):this._BOMseen=!0),DHt(i)}};function Jte(e,t){if(!(this instanceof Jte))return new Jte(e,t);if(e=e!==void 0?String(e).toLowerCase():Zte,e!==Zte)throw new Error(\"Encoding not supported. Only utf-8 is supported\");t=Xte(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,\"encoding\",{value:\"utf-8\"})}Jte.prototype={encode:function(t,n){t=t?String(t):\"\",n=Xte(n),this._streaming||(this._encoder=new LHt(this._options)),this._streaming=!!n.stream;for(var r=[],o=new Cve(MHt(t)),i;!o.endOfStream()&&(i=this._encoder.handler(o,o.read()),i!==OM);)Array.isArray(i)?r.push.apply(r,i):r.push(i);if(!this._streaming){for(;i=this._encoder.handler(o,o.read()),i!==OM;)Array.isArray(i)?r.push.apply(r,i):r.push(i);this._encoder=null}return new Uint8Array(r)}};function BHt(e){var t=e.fatal,n=0,r=0,o=0,i=128,a=191;this.handler=function(c,l){if(l===Yte&&o!==0)return o=0,Tve(t);if(l===Yte)return OM;if(o===0){if(lA(l,0,127))return l;if(lA(l,194,223))o=1,n=l-192;else if(lA(l,224,239))l===224&&(i=160),l===237&&(a=159),o=2,n=l-224;else if(lA(l,240,244))l===240&&(i=144),l===244&&(a=143),o=3,n=l-240;else return Tve(t);return n=n<<6*o,null}if(!lA(l,i,a))return n=o=r=0,i=128,a=191,c.prepend(l),Tve(t);if(i=128,a=191,r+=1,n+=l-128<<6*(o-r),r!==o)return null;var d=n;return n=o=r=0,d}}function LHt(e){var t=e.fatal;this.handler=function(n,r){if(r===Yte)return OM;if(lA(r,0,127))return r;var o,i;lA(r,128,2047)?(o=1,i=192):lA(r,2048,65535)?(o=2,i=224):lA(r,65536,1114111)&&(o=3,i=240);for(var a=[(r>>6*o)+i];o>0;){var c=r>>6*(o-1);a.push(128|c&63),o-=1}return a}}Rve.TextEncoder=Jte;Rve.TextDecoder=Qte});var hot=me(ca=>{\"use strict\";f();var UHt=ca&&ca.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),FHt=ca&&ca.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}):function(e,t){e.default=t}),rx=ca&&ca.__decorate||function(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect==\"object\"&&typeof Reflect.decorate==\"function\")i=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(i=(o<3?a(i):o>3?a(t,n,i):a(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i},HHt=ca&&ca.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!==\"default\"&&Object.hasOwnProperty.call(e,n)&&UHt(t,e,n);return FHt(t,e),t},lot=ca&&ca.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ca,\"__esModule\",{value:!0});ca.deserializeUnchecked=ca.deserialize=ca.serialize=ca.BinaryReader=ca.BinaryWriter=ca.BorshError=ca.baseDecode=ca.baseEncode=void 0;var pC=lot(pR()),dot=lot(_ve()),zHt=HHt(uot()),jHt=typeof TextDecoder!=\"function\"?zHt.TextDecoder:TextDecoder,WHt=new jHt(\"utf-8\",{fatal:!0});function VHt(e){return typeof e==\"string\"&&(e=globalThis.Buffer.from(e,\"utf8\")),dot.default.encode(globalThis.Buffer.from(e))}ca.baseEncode=VHt;function GHt(e){return globalThis.Buffer.from(dot.default.decode(e))}ca.baseDecode=GHt;var Ive=1024,Kd=class extends Error{constructor(t){super(t),this.fieldPath=[],this.originalMessage=t}addToFieldPath(t){this.fieldPath.splice(0,0,t),this.message=this.originalMessage+\": \"+this.fieldPath.join(\".\")}};ca.BorshError=Kd;var $te=class{constructor(){this.buf=globalThis.Buffer.alloc(Ive),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=globalThis.Buffer.concat([this.buf,globalThis.Buffer.alloc(Ive)]))}writeU8(t){this.maybeResize(),this.buf.writeUInt8(t,this.length),this.length+=1}writeU16(t){this.maybeResize(),this.buf.writeUInt16LE(t,this.length),this.length+=2}writeU32(t){this.maybeResize(),this.buf.writeUInt32LE(t,this.length),this.length+=4}writeU64(t){this.maybeResize(),this.writeBuffer(globalThis.Buffer.from(new pC.default(t).toArray(\"le\",8)))}writeU128(t){this.maybeResize(),this.writeBuffer(globalThis.Buffer.from(new pC.default(t).toArray(\"le\",16)))}writeU256(t){this.maybeResize(),this.writeBuffer(globalThis.Buffer.from(new pC.default(t).toArray(\"le\",32)))}writeU512(t){this.maybeResize(),this.writeBuffer(globalThis.Buffer.from(new pC.default(t).toArray(\"le\",64)))}writeBuffer(t){this.buf=globalThis.Buffer.concat([globalThis.Buffer.from(this.buf.subarray(0,this.length)),t,globalThis.Buffer.alloc(Ive)]),this.length+=t.length}writeString(t){this.maybeResize();let n=globalThis.Buffer.from(t,\"utf8\");this.writeU32(n.length),this.writeBuffer(n)}writeFixedArray(t){this.writeBuffer(globalThis.Buffer.from(t))}writeArray(t,n){this.maybeResize(),this.writeU32(t.length);for(let r of t)this.maybeResize(),n(r)}toArray(){return this.buf.subarray(0,this.length)}};ca.BinaryWriter=$te;function ox(e,t,n){let r=n.value;n.value=function(...o){try{return r.apply(this,o)}catch(i){if(i instanceof RangeError){let a=i.code;if([\"ERR_BUFFER_OUT_OF_BOUNDS\",\"ERR_OUT_OF_RANGE\"].indexOf(a)>=0)throw new Kd(\"Reached the end of buffer when deserializing\")}throw i}}}var ch=class{constructor(t){this.buf=t,this.offset=0}readU8(){let t=this.buf.readUInt8(this.offset);return this.offset+=1,t}readU16(){let t=this.buf.readUInt16LE(this.offset);return this.offset+=2,t}readU32(){let t=this.buf.readUInt32LE(this.offset);return this.offset+=4,t}readU64(){let t=this.readBuffer(8);return new pC.default(t,\"le\")}readU128(){let t=this.readBuffer(16);return new pC.default(t,\"le\")}readU256(){let t=this.readBuffer(32);return new pC.default(t,\"le\")}readU512(){let t=this.readBuffer(64);return new pC.default(t,\"le\")}readBuffer(t){if(this.offset+t>this.buf.length)throw new Kd(`Expected buffer length ${t} isn\\'t within bounds`);let n=this.buf.slice(this.offset,this.offset+t);return this.offset+=t,n}readString(){let t=this.readU32(),n=this.readBuffer(t);try{return WHt.decode(n)}catch(r){throw new Kd(`Error decoding UTF-8 string: ${r}`)}}readFixedArray(t){return new Uint8Array(this.readBuffer(t))}readArray(t){let n=this.readU32(),r=Array();for(let o=0;o<n;++o)r.push(t());return r}};rx([ox],ch.prototype,\"readU8\",null);rx([ox],ch.prototype,\"readU16\",null);rx([ox],ch.prototype,\"readU32\",null);rx([ox],ch.prototype,\"readU64\",null);rx([ox],ch.prototype,\"readU128\",null);rx([ox],ch.prototype,\"readU256\",null);rx([ox],ch.prototype,\"readU512\",null);rx([ox],ch.prototype,\"readString\",null);rx([ox],ch.prototype,\"readFixedArray\",null);rx([ox],ch.prototype,\"readArray\",null);ca.BinaryReader=ch;function fot(e){return e.charAt(0).toUpperCase()+e.slice(1)}function TI(e,t,n,r,o){try{if(typeof r==\"string\")o[`write${fot(r)}`](n);else if(r instanceof Array)if(typeof r[0]==\"number\"){if(n.length!==r[0])throw new Kd(`Expecting byte array of length ${r[0]}, but got ${n.length} bytes`);o.writeFixedArray(n)}else if(r.length===2&&typeof r[1]==\"number\"){if(n.length!==r[1])throw new Kd(`Expecting byte array of length ${r[1]}, but got ${n.length} bytes`);for(let i=0;i<r[1];i++)TI(e,null,n[i],r[0],o)}else o.writeArray(n,i=>{TI(e,t,i,r[0],o)});else if(r.kind!==void 0)switch(r.kind){case\"option\":{n==null?o.writeU8(0):(o.writeU8(1),TI(e,t,n,r.type,o));break}case\"map\":{o.writeU32(n.size),n.forEach((i,a)=>{TI(e,t,a,r.key,o),TI(e,t,i,r.value,o)});break}default:throw new Kd(`FieldType ${r} unrecognized`)}else pot(e,n,o)}catch(i){throw i instanceof Kd&&i.addToFieldPath(t),i}}function pot(e,t,n){if(typeof t.borshSerialize==\"function\"){t.borshSerialize(n);return}let r=e.get(t.constructor);if(!r)throw new Kd(`Class ${t.constructor.name} is missing in schema`);if(r.kind===\"struct\")r.fields.map(([o,i])=>{TI(e,o,t[o],i,n)});else if(r.kind===\"enum\"){let o=t[r.field];for(let i=0;i<r.values.length;++i){let[a,c]=r.values[i];if(a===o){n.writeU8(i),TI(e,a,t[a],c,n);break}}}else throw new Kd(`Unexpected schema kind: ${r.kind} for ${t.constructor.name}`)}function qHt(e,t,n=$te){let r=new n;return pot(e,t,r),r.toArray()}ca.serialize=qHt;function CI(e,t,n,r){try{if(typeof n==\"string\")return r[`read${fot(n)}`]();if(n instanceof Array){if(typeof n[0]==\"number\")return r.readFixedArray(n[0]);if(typeof n[1]==\"number\"){let o=[];for(let i=0;i<n[1];i++)o.push(CI(e,null,n[0],r));return o}else return r.readArray(()=>CI(e,t,n[0],r))}if(n.kind===\"option\")return r.readU8()?CI(e,t,n.type,r):void 0;if(n.kind===\"map\"){let o=new Map,i=r.readU32();for(let a=0;a<i;a++){let c=CI(e,t,n.key,r),l=CI(e,t,n.value,r);o.set(c,l)}return o}return kve(e,n,r)}catch(o){throw o instanceof Kd&&o.addToFieldPath(t),o}}function kve(e,t,n){if(typeof t.borshDeserialize==\"function\")return t.borshDeserialize(n);let r=e.get(t);if(!r)throw new Kd(`Class ${t.name} is missing in schema`);if(r.kind===\"struct\"){let o={};for(let[i,a]of e.get(t).fields)o[i]=CI(e,i,a,n);return new t(o)}if(r.kind===\"enum\"){let o=n.readU8();if(o>=r.values.length)throw new Kd(`Enum index: ${o} is out of range`);let[i,a]=r.values[o],c=CI(e,i,a,n);return new t({[i]:c})}throw new Kd(`Unexpected schema kind: ${r.kind} for ${t.constructor.name}`)}function KHt(e,t,n,r=ch){let o=new r(n),i=kve(e,t,o);if(o.offset<n.length)throw new Kd(`Unexpected ${n.length-o.offset} bytes after deserialized data`);return i}ca.deserialize=KHt;function YHt(e,t,n,r=ch){let o=new r(n);return kve(e,t,o)}ca.deserializeUnchecked=YHt});var Mve=me(Ze=>{\"use strict\";f();Object.defineProperty(Ze,\"__esModule\",{value:!0});Ze.s16=Ze.s8=Ze.nu64be=Ze.u48be=Ze.u40be=Ze.u32be=Ze.u24be=Ze.u16be=Ze.nu64=Ze.u48=Ze.u40=Ze.u32=Ze.u24=Ze.u16=Ze.u8=Ze.offset=Ze.greedy=Ze.Constant=Ze.UTF8=Ze.CString=Ze.Blob=Ze.Boolean=Ze.BitField=Ze.BitStructure=Ze.VariantLayout=Ze.Union=Ze.UnionLayoutDiscriminator=Ze.UnionDiscriminator=Ze.Structure=Ze.Sequence=Ze.DoubleBE=Ze.Double=Ze.FloatBE=Ze.Float=Ze.NearInt64BE=Ze.NearInt64=Ze.NearUInt64BE=Ze.NearUInt64=Ze.IntBE=Ze.Int=Ze.UIntBE=Ze.UInt=Ze.OffsetLayout=Ze.GreedyCount=Ze.ExternalLayout=Ze.bindConstructorLayout=Ze.nameWithProperty=Ze.Layout=Ze.uint8ArrayToBuffer=Ze.checkUint8Array=void 0;Ze.constant=Ze.utf8=Ze.cstr=Ze.blob=Ze.unionLayoutDiscriminator=Ze.union=Ze.seq=Ze.bits=Ze.struct=Ze.f64be=Ze.f64=Ze.f32be=Ze.f32=Ze.ns64be=Ze.s48be=Ze.s40be=Ze.s32be=Ze.s24be=Ze.s16be=Ze.ns64=Ze.s48=Ze.s40=Ze.s32=Ze.s24=void 0;var Nve=P2();function MM(e){if(!(e instanceof Uint8Array))throw new TypeError(\"b must be a Uint8Array\")}Ze.checkUint8Array=MM;function bi(e){return MM(e),Nve.Buffer.from(e.buffer,e.byteOffset,e.length)}Ze.uint8ArrayToBuffer=bi;var Ti=class{constructor(t,n){if(!Number.isInteger(t))throw new TypeError(\"span must be an integer\");this.span=t,this.property=n}makeDestinationObject(){return{}}getSpan(t,n){if(0>this.span)throw new RangeError(\"indeterminate span\");return this.span}replicate(t){let n=Object.create(this.constructor.prototype);return Object.assign(n,this),n.property=t,n}fromArray(t){}};Ze.Layout=Ti;function Pve(e,t){return t.property?e+\"[\"+t.property+\"]\":e}Ze.nameWithProperty=Pve;function ZHt(e,t){if(typeof e!=\"function\")throw new TypeError(\"Class must be constructor\");if(Object.prototype.hasOwnProperty.call(e,\"layout_\"))throw new Error(\"Class is already bound to a layout\");if(!(t&&t instanceof Ti))throw new TypeError(\"layout must be a Layout\");if(Object.prototype.hasOwnProperty.call(t,\"boundConstructor_\"))throw new Error(\"layout is already bound to a constructor\");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=(()=>new e),Object.defineProperty(e.prototype,\"encode\",{value(n,r){return t.encode(this,n,r)},writable:!0}),Object.defineProperty(e,\"decode\",{value(n,r){return t.decode(n,r)},writable:!0})}Ze.bindConstructorLayout=ZHt;var qf=class extends Ti{isCount(){throw new Error(\"ExternalLayout is abstract\")}};Ze.ExternalLayout=qf;var ene=class extends qf{constructor(t=1,n){if(!Number.isInteger(t)||0>=t)throw new TypeError(\"elementSpan must be a (positive) integer\");super(-1,n),this.elementSpan=t}isCount(){return!0}decode(t,n=0){MM(t);let r=t.length-n;return Math.floor(r/this.elementSpan)}encode(t,n,r){return 0}};Ze.GreedyCount=ene;var tz=class extends qf{constructor(t,n=0,r){if(!(t instanceof Ti))throw new TypeError(\"layout must be a Layout\");if(!Number.isInteger(n))throw new TypeError(\"offset must be integer or undefined\");super(t.span,r||t.property),this.layout=t,this.offset=n}isCount(){return this.layout instanceof ym||this.layout instanceof k0}decode(t,n=0){return this.layout.decode(t,n+this.offset)}encode(t,n,r=0){return this.layout.encode(t,n,r+this.offset)}};Ze.OffsetLayout=tz;var ym=class extends Ti{constructor(t,n){if(super(t,n),6<this.span)throw new RangeError(\"span must not exceed 6 bytes\")}decode(t,n=0){return bi(t).readUIntLE(n,this.span)}encode(t,n,r=0){return bi(n).writeUIntLE(t,r,this.span),this.span}};Ze.UInt=ym;var k0=class extends Ti{constructor(t,n){if(super(t,n),6<this.span)throw new RangeError(\"span must not exceed 6 bytes\")}decode(t,n=0){return bi(t).readUIntBE(n,this.span)}encode(t,n,r=0){return bi(n).writeUIntBE(t,r,this.span),this.span}};Ze.UIntBE=k0;var dA=class extends Ti{constructor(t,n){if(super(t,n),6<this.span)throw new RangeError(\"span must not exceed 6 bytes\")}decode(t,n=0){return bi(t).readIntLE(n,this.span)}encode(t,n,r=0){return bi(n).writeIntLE(t,r,this.span),this.span}};Ze.Int=dA;var hC=class extends Ti{constructor(t,n){if(super(t,n),6<this.span)throw new RangeError(\"span must not exceed 6 bytes\")}decode(t,n=0){return bi(t).readIntBE(n,this.span)}encode(t,n,r=0){return bi(n).writeIntBE(t,r,this.span),this.span}};Ze.IntBE=hC;var Ove=Math.pow(2,32);function yne(e){let t=Math.floor(e/Ove),n=e-t*Ove;return{hi32:t,lo32:n}}function bne(e,t){return e*Ove+t}var tne=class extends Ti{constructor(t){super(8,t)}decode(t,n=0){let r=bi(t),o=r.readUInt32LE(n),i=r.readUInt32LE(n+4);return bne(i,o)}encode(t,n,r=0){let o=yne(t),i=bi(n);return i.writeUInt32LE(o.lo32,r),i.writeUInt32LE(o.hi32,r+4),8}};Ze.NearUInt64=tne;var nne=class extends Ti{constructor(t){super(8,t)}decode(t,n=0){let r=bi(t),o=r.readUInt32BE(n),i=r.readUInt32BE(n+4);return bne(o,i)}encode(t,n,r=0){let o=yne(t),i=bi(n);return i.writeUInt32BE(o.hi32,r),i.writeUInt32BE(o.lo32,r+4),8}};Ze.NearUInt64BE=nne;var rne=class extends Ti{constructor(t){super(8,t)}decode(t,n=0){let r=bi(t),o=r.readUInt32LE(n),i=r.readInt32LE(n+4);return bne(i,o)}encode(t,n,r=0){let o=yne(t),i=bi(n);return i.writeUInt32LE(o.lo32,r),i.writeInt32LE(o.hi32,r+4),8}};Ze.NearInt64=rne;var one=class extends Ti{constructor(t){super(8,t)}decode(t,n=0){let r=bi(t),o=r.readInt32BE(n),i=r.readUInt32BE(n+4);return bne(o,i)}encode(t,n,r=0){let o=yne(t),i=bi(n);return i.writeInt32BE(o.hi32,r),i.writeUInt32BE(o.lo32,r+4),8}};Ze.NearInt64BE=one;var ine=class extends Ti{constructor(t){super(4,t)}decode(t,n=0){return bi(t).readFloatLE(n)}encode(t,n,r=0){return bi(n).writeFloatLE(t,r),4}};Ze.Float=ine;var ane=class extends Ti{constructor(t){super(4,t)}decode(t,n=0){return bi(t).readFloatBE(n)}encode(t,n,r=0){return bi(n).writeFloatBE(t,r),4}};Ze.FloatBE=ane;var sne=class extends Ti{constructor(t){super(8,t)}decode(t,n=0){return bi(t).readDoubleLE(n)}encode(t,n,r=0){return bi(n).writeDoubleLE(t,r),8}};Ze.Double=sne;var cne=class extends Ti{constructor(t){super(8,t)}decode(t,n=0){return bi(t).readDoubleBE(n)}encode(t,n,r=0){return bi(n).writeDoubleBE(t,r),8}};Ze.DoubleBE=cne;var une=class extends Ti{constructor(t,n,r){if(!(t instanceof Ti))throw new TypeError(\"elementLayout must be a Layout\");if(!(n instanceof qf&&n.isCount()||Number.isInteger(n)&&0<=n))throw new TypeError(\"count must be non-negative integer or an unsigned integer ExternalLayout\");let o=-1;!(n instanceof qf)&&0<t.span&&(o=n*t.span),super(o,r),this.elementLayout=t,this.count=n}getSpan(t,n=0){if(0<=this.span)return this.span;let r=0,o=this.count;if(o instanceof qf&&(o=o.decode(t,n)),0<this.elementLayout.span)r=o*this.elementLayout.span;else{let i=0;for(;i<o;)r+=this.elementLayout.getSpan(t,n+r),++i}return r}decode(t,n=0){let r=[],o=0,i=this.count;for(i instanceof qf&&(i=i.decode(t,n));o<i;)r.push(this.elementLayout.decode(t,n)),n+=this.elementLayout.getSpan(t,n),o+=1;return r}encode(t,n,r=0){let o=this.elementLayout,i=t.reduce((a,c)=>a+o.encode(c,n,r+a),0);return this.count instanceof qf&&this.count.encode(t.length,n,r),i}};Ze.Sequence=une;var lne=class extends Ti{constructor(t,n,r){if(!(Array.isArray(t)&&t.reduce((i,a)=>i&&a instanceof Ti,!0)))throw new TypeError(\"fields must be array of Layout instances\");typeof n==\"boolean\"&&r===void 0&&(r=n,n=void 0);for(let i of t)if(0>i.span&&i.property===void 0)throw new Error(\"fields cannot contain unnamed variable-length layout\");let o=-1;try{o=t.reduce((i,a)=>i+a.getSpan(),0)}catch{}super(o,n),this.fields=t,this.decodePrefixes=!!r}getSpan(t,n=0){if(0<=this.span)return this.span;let r=0;try{r=this.fields.reduce((o,i)=>{let a=i.getSpan(t,n);return n+=a,o+a},0)}catch{throw new RangeError(\"indeterminate span\")}return r}decode(t,n=0){MM(t);let r=this.makeDestinationObject();for(let o of this.fields)if(o.property!==void 0&&(r[o.property]=o.decode(t,n)),n+=o.getSpan(t,n),this.decodePrefixes&&t.length===n)break;return r}encode(t,n,r=0){let o=r,i=0,a=0;for(let c of this.fields){let l=c.span;if(a=0<l?l:0,c.property!==void 0){let d=t[c.property];d!==void 0&&(a=c.encode(d,n,r),0>l&&(l=c.getSpan(n,r)))}i=r,r+=l}return i+a-o}fromArray(t){let n=this.makeDestinationObject();for(let r of this.fields)r.property!==void 0&&0<t.length&&(n[r.property]=t.shift());return n}layoutFor(t){if(typeof t!=\"string\")throw new TypeError(\"property must be string\");for(let n of this.fields)if(n.property===t)return n}offsetOf(t){if(typeof t!=\"string\")throw new TypeError(\"property must be string\");let n=0;for(let r of this.fields){if(r.property===t)return n;0>r.span?n=-1:0<=n&&(n+=r.span)}}};Ze.Structure=lne;var nz=class{constructor(t){this.property=t}decode(t,n){throw new Error(\"UnionDiscriminator is abstract\")}encode(t,n,r){throw new Error(\"UnionDiscriminator is abstract\")}};Ze.UnionDiscriminator=nz;var PM=class extends nz{constructor(t,n){if(!(t instanceof qf&&t.isCount()))throw new TypeError(\"layout must be an unsigned integer ExternalLayout\");super(n||t.property||\"variant\"),this.layout=t}decode(t,n){return this.layout.decode(t,n)}encode(t,n,r){return this.layout.encode(t,n,r)}};Ze.UnionLayoutDiscriminator=PM;var rz=class extends Ti{constructor(t,n,r){let o;if(t instanceof ym||t instanceof k0)o=new PM(new tz(t));else if(t instanceof qf&&t.isCount())o=new PM(t);else if(t instanceof nz)o=t;else throw new TypeError(\"discr must be a UnionDiscriminator or an unsigned integer layout\");if(n===void 0&&(n=null),!(n===null||n instanceof Ti))throw new TypeError(\"defaultLayout must be null or a Layout\");if(n!==null){if(0>n.span)throw new Error(\"defaultLayout must have constant span\");n.property===void 0&&(n=n.replicate(\"content\"))}let i=-1;n&&(i=n.span,0<=i&&(t instanceof ym||t instanceof k0)&&(i+=o.layout.span)),super(i,r),this.discriminator=o,this.usesPrefixDiscriminator=t instanceof ym||t instanceof k0,this.defaultLayout=n,this.registry={};let a=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(c){return a(c)},this.configGetSourceVariant=function(c){a=c.bind(this)}}getSpan(t,n=0){if(0<=this.span)return this.span;let r=this.getVariant(t,n);if(!r)throw new Error(\"unable to determine span for unrecognized variant\");return r.getSpan(t,n)}defaultGetSourceVariant(t){if(Object.prototype.hasOwnProperty.call(t,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(t,this.defaultLayout.property))return;let n=this.registry[t[this.discriminator.property]];if(n&&(!n.layout||n.property&&Object.prototype.hasOwnProperty.call(t,n.property)))return n}else for(let n in this.registry){let r=this.registry[n];if(r.property&&Object.prototype.hasOwnProperty.call(t,r.property))return r}throw new Error(\"unable to infer src variant\")}decode(t,n=0){let r,o=this.discriminator,i=o.decode(t,n),a=this.registry[i];if(a===void 0){let c=this.defaultLayout,l=0;this.usesPrefixDiscriminator&&(l=o.layout.span),r=this.makeDestinationObject(),r[o.property]=i,r[c.property]=c.decode(t,n+l)}else r=a.decode(t,n);return r}encode(t,n,r=0){let o=this.getSourceVariant(t);if(o===void 0){let i=this.discriminator,a=this.defaultLayout,c=0;return this.usesPrefixDiscriminator&&(c=i.layout.span),i.encode(t[i.property],n,r),c+a.encode(t[a.property],n,r+c)}return o.encode(t,n,r)}addVariant(t,n,r){let o=new dne(this,t,n,r);return this.registry[t]=o,o}getVariant(t,n=0){let r;return t instanceof Uint8Array?r=this.discriminator.decode(t,n):r=t,this.registry[r]}};Ze.Union=rz;var dne=class extends Ti{constructor(t,n,r,o){if(!(t instanceof rz))throw new TypeError(\"union must be a Union\");if(!Number.isInteger(n)||0>n)throw new TypeError(\"variant must be a (non-negative) integer\");if(typeof r==\"string\"&&o===void 0&&(o=r,r=null),r){if(!(r instanceof Ti))throw new TypeError(\"layout must be a Layout\");if(t.defaultLayout!==null&&0<=r.span&&r.span>t.defaultLayout.span)throw new Error(\"variant span exceeds span of containing union\");if(typeof o!=\"string\")throw new TypeError(\"variant must have a String property\")}let i=t.span;0>t.span&&(i=r?r.span:0,0<=i&&t.usesPrefixDiscriminator&&(i+=t.discriminator.layout.span)),super(i,o),this.union=t,this.variant=n,this.layout=r||null}getSpan(t,n=0){if(0<=this.span)return this.span;let r=0;this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span);let o=0;return this.layout&&(o=this.layout.getSpan(t,n+r)),r+o}decode(t,n=0){let r=this.makeDestinationObject();if(this!==this.union.getVariant(t,n))throw new Error(\"variant mismatch\");let o=0;return this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout?r[this.property]=this.layout.decode(t,n+o):this.property?r[this.property]=!0:this.union.usesPrefixDiscriminator&&(r[this.union.discriminator.property]=this.variant),r}encode(t,n,r=0){let o=0;if(this.union.usesPrefixDiscriminator&&(o=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(t,this.property))throw new TypeError(\"variant lacks property \"+this.property);this.union.discriminator.encode(this.variant,n,r);let i=o;if(this.layout&&(this.layout.encode(t[this.property],n,r+o),i+=this.layout.getSpan(n,r+o),0<=this.union.span&&i>this.union.span))throw new Error(\"encoded variant overruns containing union\");return i}fromArray(t){if(this.layout)return this.layout.fromArray(t)}};Ze.VariantLayout=dne;function NM(e){return 0>e&&(e+=4294967296),e}var oz=class extends Ti{constructor(t,n,r){if(!(t instanceof ym||t instanceof k0))throw new TypeError(\"word must be a UInt or UIntBE layout\");if(typeof n==\"string\"&&r===void 0&&(r=n,n=!1),4<t.span)throw new RangeError(\"word cannot exceed 32 bits\");super(t.span,r),this.word=t,this.msb=!!n,this.fields=[];let o=0;this._packedSetValue=function(i){return o=NM(i),this},this._packedGetValue=function(){return o}}decode(t,n=0){let r=this.makeDestinationObject(),o=this.word.decode(t,n);this._packedSetValue(o);for(let i of this.fields)i.property!==void 0&&(r[i.property]=i.decode(t));return r}encode(t,n,r=0){let o=this.word.decode(n,r);this._packedSetValue(o);for(let i of this.fields)if(i.property!==void 0){let a=t[i.property];a!==void 0&&i.encode(a)}return this.word.encode(this._packedGetValue(),n,r)}addField(t,n){let r=new iz(this,t,n);return this.fields.push(r),r}addBoolean(t){let n=new fne(this,t);return this.fields.push(n),n}fieldFor(t){if(typeof t!=\"string\")throw new TypeError(\"property must be string\");for(let n of this.fields)if(n.property===t)return n}};Ze.BitStructure=oz;var iz=class{constructor(t,n,r){if(!(t instanceof oz))throw new TypeError(\"container must be a BitStructure\");if(!Number.isInteger(n)||0>=n)throw new TypeError(\"bits must be positive integer\");let o=8*t.span,i=t.fields.reduce((a,c)=>a+c.bits,0);if(n+i>o)throw new Error(\"bits too long for span remainder (\"+(o-i)+\" of \"+o+\" remain)\");this.container=t,this.bits=n,this.valueMask=(1<<n)-1,n===32&&(this.valueMask=4294967295),this.start=i,this.container.msb&&(this.start=o-i-n),this.wordMask=NM(this.valueMask<<this.start),this.property=r}decode(t,n){let r=this.container._packedGetValue();return NM(r&this.wordMask)>>>this.start}encode(t){if(typeof t!=\"number\"||!Number.isInteger(t)||t!==NM(t&this.valueMask))throw new TypeError(Pve(\"BitField.encode\",this)+\" value must be integer not exceeding \"+this.valueMask);let n=this.container._packedGetValue(),r=NM(t<<this.start);this.container._packedSetValue(NM(n&~this.wordMask)|r)}};Ze.BitField=iz;var fne=class extends iz{constructor(t,n){super(t,1,n)}decode(t,n){return!!super.decode(t,n)}encode(t){typeof t==\"boolean\"&&(t=+t),super.encode(t)}};Ze.Boolean=fne;var pne=class extends Ti{constructor(t,n){if(!(t instanceof qf&&t.isCount()||Number.isInteger(t)&&0<=t))throw new TypeError(\"length must be positive integer or an unsigned integer ExternalLayout\");let r=-1;t instanceof qf||(r=t),super(r,n),this.length=t}getSpan(t,n){let r=this.span;return 0>r&&(r=this.length.decode(t,n)),r}decode(t,n=0){let r=this.span;return 0>r&&(r=this.length.decode(t,n)),bi(t).slice(n,n+r)}encode(t,n,r){let o=this.length;if(this.length instanceof qf&&(o=t.length),!(t instanceof Uint8Array&&o===t.length))throw new TypeError(Pve(\"Blob.encode\",this)+\" requires (length \"+o+\") Uint8Array as src\");if(r+o>n.length)throw new RangeError(\"encoding overruns Uint8Array\");let i=bi(t);return bi(n).write(i.toString(\"hex\"),r,o,\"hex\"),this.length instanceof qf&&this.length.encode(o,n,r),o}};Ze.Blob=pne;var hne=class extends Ti{constructor(t){super(-1,t)}getSpan(t,n=0){MM(t);let r=n;for(;r<t.length&&t[r]!==0;)r+=1;return 1+r-n}decode(t,n=0){let r=this.getSpan(t,n);return bi(t).slice(n,n+r-1).toString(\"utf-8\")}encode(t,n,r=0){typeof t!=\"string\"&&(t=String(t));let o=Nve.Buffer.from(t,\"utf8\"),i=o.length;if(r+i>n.length)throw new RangeError(\"encoding overruns Buffer\");let a=bi(n);return o.copy(a,r),a[r+i]=0,i+1}};Ze.CString=hne;var mne=class extends Ti{constructor(t,n){if(typeof t==\"string\"&&n===void 0&&(n=t,t=void 0),t===void 0)t=-1;else if(!Number.isInteger(t))throw new TypeError(\"maxSpan must be an integer\");super(-1,n),this.maxSpan=t}getSpan(t,n=0){return MM(t),t.length-n}decode(t,n=0){let r=this.getSpan(t,n);if(0<=this.maxSpan&&this.maxSpan<r)throw new RangeError(\"text length exceeds maxSpan\");return bi(t).slice(n,n+r).toString(\"utf-8\")}encode(t,n,r=0){typeof t!=\"string\"&&(t=String(t));let o=Nve.Buffer.from(t,\"utf8\"),i=o.length;if(0<=this.maxSpan&&this.maxSpan<i)throw new RangeError(\"text length exceeds maxSpan\");if(r+i>n.length)throw new RangeError(\"encoding overruns Buffer\");return o.copy(bi(n),r),i}};Ze.UTF8=mne;var gne=class extends Ti{constructor(t,n){super(0,n),this.value=t}decode(t,n){return this.value}encode(t,n,r){return 0}};Ze.Constant=gne;Ze.greedy=((e,t)=>new ene(e,t));Ze.offset=((e,t,n)=>new tz(e,t,n));Ze.u8=(e=>new ym(1,e));Ze.u16=(e=>new ym(2,e));Ze.u24=(e=>new ym(3,e));Ze.u32=(e=>new ym(4,e));Ze.u40=(e=>new ym(5,e));Ze.u48=(e=>new ym(6,e));Ze.nu64=(e=>new tne(e));Ze.u16be=(e=>new k0(2,e));Ze.u24be=(e=>new k0(3,e));Ze.u32be=(e=>new k0(4,e));Ze.u40be=(e=>new k0(5,e));Ze.u48be=(e=>new k0(6,e));Ze.nu64be=(e=>new nne(e));Ze.s8=(e=>new dA(1,e));Ze.s16=(e=>new dA(2,e));Ze.s24=(e=>new dA(3,e));Ze.s32=(e=>new dA(4,e));Ze.s40=(e=>new dA(5,e));Ze.s48=(e=>new dA(6,e));Ze.ns64=(e=>new rne(e));Ze.s16be=(e=>new hC(2,e));Ze.s24be=(e=>new hC(3,e));Ze.s32be=(e=>new hC(4,e));Ze.s40be=(e=>new hC(5,e));Ze.s48be=(e=>new hC(6,e));Ze.ns64be=(e=>new one(e));Ze.f32=(e=>new ine(e));Ze.f32be=(e=>new ane(e));Ze.f64=(e=>new sne(e));Ze.f64be=(e=>new cne(e));Ze.struct=((e,t,n)=>new lne(e,t,n));Ze.bits=((e,t,n)=>new oz(e,t,n));Ze.seq=((e,t,n)=>new une(e,t,n));Ze.union=((e,t,n)=>new rz(e,t,n));Ze.unionLayoutDiscriminator=((e,t)=>new PM(e,t));Ze.blob=((e,t)=>new pne(e,t));Ze.cstr=(e=>new hne(e));Ze.utf8=((e,t)=>new mne(e,t));Ze.constant=((e,t)=>new gne(e,t))});var Mit=me((Wgr,Pit)=>{\"use strict\";f();var fWt=(Q$(),hi(Sye)).v4,pWt=function(e,t,n,r){if(typeof e!=\"string\")throw new TypeError(e+\" must be a string\");r=r||{};let o=typeof r.version==\"number\"?r.version:2;if(o!==1&&o!==2)throw new TypeError(o+\" must be 1 or 2\");let i={method:e};if(o===2&&(i.jsonrpc=\"2.0\"),t){if(typeof t!=\"object\"&&!Array.isArray(t))throw new TypeError(t+\" must be an object, array or omitted\");i.params=t}if(typeof n>\"u\"){let a=typeof r.generator==\"function\"?r.generator:function(){return fWt()};i.id=a(i,r)}else o===2&&n===null?r.notificationIdNull&&(i.id=null):i.id=n;return i};Pit.exports=pWt});var Bit=me((Ggr,Dit)=>{\"use strict\";f();var hWt=(Q$(),hi(Sye)).v4,mWt=Mit(),pz=function(e,t){if(!(this instanceof pz))return new pz(e,t);t||(t={}),this.options={reviver:typeof t.reviver<\"u\"?t.reviver:null,replacer:typeof t.replacer<\"u\"?t.replacer:null,generator:typeof t.generator<\"u\"?t.generator:function(){return hWt()},version:typeof t.version<\"u\"?t.version:2,notificationIdNull:typeof t.notificationIdNull==\"boolean\"?t.notificationIdNull:!1},this.callServer=e};Dit.exports=pz;pz.prototype.request=function(e,t,n,r){let o=this,i=null,a=Array.isArray(e)&&typeof t==\"function\";if(this.options.version===1&&a)throw new TypeError(\"JSON-RPC 1.0 does not support batching\");if(a||!a&&e&&typeof e==\"object\"&&typeof t==\"function\")r=t,i=e;else{typeof n==\"function\"&&(r=n,n=void 0);let d=typeof r==\"function\";try{i=mWt(e,t,n,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(m){if(d)return r(m);throw m}if(!d)return i}let l;try{l=JSON.stringify(i,this.options.replacer)}catch(d){return r(d)}return this.callServer(l,function(d,m){o._parseResponse(d,m,r)}),i};pz.prototype._parseResponse=function(e,t,n){if(e){n(e);return}if(!t)return n();let r;try{r=JSON.parse(t,this.options.reviver)}catch(o){return n(o)}if(n.length===3)if(Array.isArray(r)){let o=function(a){return typeof a.error<\"u\"},i=function(a){return!o(a)};return n(null,r.filter(o),r.filter(i))}else return n(null,r.error,r.result);n(null,r)}});var $ut=me((RC,Xut)=>{f();var noe=typeof globalThis<\"u\"&&globalThis||typeof self<\"u\"&&self||typeof globalThis<\"u\"&&globalThis,roe=(function(){function e(){this.fetch=!1,this.DOMException=noe.DOMException}return e.prototype=noe,new e})();(function(e){var t=(function(n){var r=typeof e<\"u\"&&e||typeof self<\"u\"&&self||typeof e<\"u\"&&e||{},o={searchParams:\"URLSearchParams\"in r,iterable:\"Symbol\"in r&&\"iterator\"in Symbol,blob:\"FileReader\"in r&&\"Blob\"in r&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:\"FormData\"in r,arrayBuffer:\"ArrayBuffer\"in r};function i(Z){return Z&&DataView.prototype.isPrototypeOf(Z)}if(o.arrayBuffer)var a=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],c=ArrayBuffer.isView||function(Z){return Z&&a.indexOf(Object.prototype.toString.call(Z))>-1};function l(Z){if(typeof Z!=\"string\"&&(Z=String(Z)),/[^a-z0-9\\\\-#$%&\\'*+.^_`|~!]/i.test(Z)||Z===\"\")throw new TypeError(\\'Invalid character in header field name: \"\\'+Z+\\'\"\\');return Z.toLowerCase()}function d(Z){return typeof Z!=\"string\"&&(Z=String(Z)),Z}function m(Z){var X={next:function(){var F=Z.shift();return{done:F===void 0,value:F}}};return o.iterable&&(X[Symbol.iterator]=function(){return X}),X}function h(Z){this.map={},Z instanceof h?Z.forEach(function(X,F){this.append(F,X)},this):Array.isArray(Z)?Z.forEach(function(X){if(X.length!=2)throw new TypeError(\"Headers constructor: expected name/value pair to be length 2, found\"+X.length);this.append(X[0],X[1])},this):Z&&Object.getOwnPropertyNames(Z).forEach(function(X){this.append(X,Z[X])},this)}h.prototype.append=function(Z,X){Z=l(Z),X=d(X);var F=this.map[Z];this.map[Z]=F?F+\", \"+X:X},h.prototype.delete=function(Z){delete this.map[l(Z)]},h.prototype.get=function(Z){return Z=l(Z),this.has(Z)?this.map[Z]:null},h.prototype.has=function(Z){return this.map.hasOwnProperty(l(Z))},h.prototype.set=function(Z,X){this.map[l(Z)]=d(X)},h.prototype.forEach=function(Z,X){for(var F in this.map)this.map.hasOwnProperty(F)&&Z.call(X,this.map[F],F,this)},h.prototype.keys=function(){var Z=[];return this.forEach(function(X,F){Z.push(F)}),m(Z)},h.prototype.values=function(){var Z=[];return this.forEach(function(X){Z.push(X)}),m(Z)},h.prototype.entries=function(){var Z=[];return this.forEach(function(X,F){Z.push([F,X])}),m(Z)},o.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function g(Z){if(!Z._noBody){if(Z.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));Z.bodyUsed=!0}}function y(Z){return new Promise(function(X,F){Z.onload=function(){X(Z.result)},Z.onerror=function(){F(Z.error)}})}function w(Z){var X=new FileReader,F=y(X);return X.readAsArrayBuffer(Z),F}function x(Z){var X=new FileReader,F=y(X),R=/charset=([A-Za-z0-9_-]+)/.exec(Z.type),O=R?R[1]:\"utf-8\";return X.readAsText(Z,O),F}function I(Z){for(var X=new Uint8Array(Z),F=new Array(X.length),R=0;R<X.length;R++)F[R]=String.fromCharCode(X[R]);return F.join(\"\")}function C(Z){if(Z.slice)return Z.slice(0);var X=new Uint8Array(Z.byteLength);return X.set(new Uint8Array(Z)),X.buffer}function M(){return this.bodyUsed=!1,this._initBody=function(Z){this.bodyUsed=this.bodyUsed,this._bodyInit=Z,Z?typeof Z==\"string\"?this._bodyText=Z:o.blob&&Blob.prototype.isPrototypeOf(Z)?this._bodyBlob=Z:o.formData&&FormData.prototype.isPrototypeOf(Z)?this._bodyFormData=Z:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(Z)?this._bodyText=Z.toString():o.arrayBuffer&&o.blob&&i(Z)?(this._bodyArrayBuffer=C(Z.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(Z)||c(Z))?this._bodyArrayBuffer=C(Z):this._bodyText=Z=Object.prototype.toString.call(Z):(this._noBody=!0,this._bodyText=\"\"),this.headers.get(\"content-type\")||(typeof Z==\"string\"?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(Z)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},o.blob&&(this.blob=function(){var Z=g(this);if(Z)return Z;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var Z=g(this);return Z||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(o.blob)return this.blob().then(w);throw new Error(\"could not read as ArrayBuffer\")}},this.text=function(){var Z=g(this);if(Z)return Z;if(this._bodyBlob)return x(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(I(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var B=[\"CONNECT\",\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"PATCH\",\"POST\",\"PUT\",\"TRACE\"];function z(Z){var X=Z.toUpperCase();return B.indexOf(X)>-1?X:Z}function G(Z,X){if(!(this instanceof G))throw new TypeError(\\'Please use the \"new\" operator, this DOM object constructor cannot be called as a function.\\');X=X||{};var F=X.body;if(Z instanceof G){if(Z.bodyUsed)throw new TypeError(\"Already read\");this.url=Z.url,this.credentials=Z.credentials,X.headers||(this.headers=new h(Z.headers)),this.method=Z.method,this.mode=Z.mode,this.signal=Z.signal,!F&&Z._bodyInit!=null&&(F=Z._bodyInit,Z.bodyUsed=!0)}else this.url=String(Z);if(this.credentials=X.credentials||this.credentials||\"same-origin\",(X.headers||!this.headers)&&(this.headers=new h(X.headers)),this.method=z(X.method||this.method||\"GET\"),this.mode=X.mode||this.mode||null,this.signal=X.signal||this.signal||(function(){if(\"AbortController\"in r){var U=new AbortController;return U.signal}})(),this.referrer=null,(this.method===\"GET\"||this.method===\"HEAD\")&&F)throw new TypeError(\"Body not allowed for GET or HEAD requests\");if(this._initBody(F),(this.method===\"GET\"||this.method===\"HEAD\")&&(X.cache===\"no-store\"||X.cache===\"no-cache\")){var R=/([?&])_=[^&]*/;if(R.test(this.url))this.url=this.url.replace(R,\"$1_=\"+new Date().getTime());else{var O=/\\\\?/;this.url+=(O.test(this.url)?\"&\":\"?\")+\"_=\"+new Date().getTime()}}}G.prototype.clone=function(){return new G(this,{body:this._bodyInit})};function J(Z){var X=new FormData;return Z.trim().split(\"&\").forEach(function(F){if(F){var R=F.split(\"=\"),O=R.shift().replace(/\\\\+/g,\" \"),U=R.join(\"=\").replace(/\\\\+/g,\" \");X.append(decodeURIComponent(O),decodeURIComponent(U))}}),X}function ne(Z){var X=new h,F=Z.replace(/\\\\r?\\\\n[\\\\t ]+/g,\" \");return F.split(\"\\\\r\").map(function(R){return R.indexOf(`\\n`)===0?R.substr(1,R.length):R}).forEach(function(R){var O=R.split(\":\"),U=O.shift().trim();if(U){var P=O.join(\":\").trim();try{X.append(U,P)}catch(L){console.warn(\"Response \"+L.message)}}}),X}M.call(G.prototype);function ie(Z,X){if(!(this instanceof ie))throw new TypeError(\\'Please use the \"new\" operator, this DOM object constructor cannot be called as a function.\\');if(X||(X={}),this.type=\"default\",this.status=X.status===void 0?200:X.status,this.status<200||this.status>599)throw new RangeError(\"Failed to construct \\'Response\\': The status provided (0) is outside the range [200, 599].\");this.ok=this.status>=200&&this.status<300,this.statusText=X.statusText===void 0?\"\":\"\"+X.statusText,this.headers=new h(X.headers),this.url=X.url||\"\",this._initBody(Z)}M.call(ie.prototype),ie.prototype.clone=function(){return new ie(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},ie.error=function(){var Z=new ie(null,{status:200,statusText:\"\"});return Z.ok=!1,Z.status=0,Z.type=\"error\",Z};var ae=[301,302,303,307,308];ie.redirect=function(Z,X){if(ae.indexOf(X)===-1)throw new RangeError(\"Invalid status code\");return new ie(null,{status:X,headers:{location:Z}})},n.DOMException=r.DOMException;try{new n.DOMException}catch{n.DOMException=function(X,F){this.message=X,this.name=F;var R=Error(X);this.stack=R.stack},n.DOMException.prototype=Object.create(Error.prototype),n.DOMException.prototype.constructor=n.DOMException}function te(Z,X){return new Promise(function(F,R){var O=new G(Z,X);if(O.signal&&O.signal.aborted)return R(new n.DOMException(\"Aborted\",\"AbortError\"));var U=new XMLHttpRequest;function P(){U.abort()}U.onload=function(){var q={statusText:U.statusText,headers:ne(U.getAllResponseHeaders()||\"\")};O.url.indexOf(\"file://\")===0&&(U.status<200||U.status>599)?q.status=200:q.status=U.status,q.url=\"responseURL\"in U?U.responseURL:q.headers.get(\"X-Request-URL\");var H=\"response\"in U?U.response:U.responseText;setTimeout(function(){F(new ie(H,q))},0)},U.onerror=function(){setTimeout(function(){R(new TypeError(\"Network request failed\"))},0)},U.ontimeout=function(){setTimeout(function(){R(new TypeError(\"Network request timed out\"))},0)},U.onabort=function(){setTimeout(function(){R(new n.DOMException(\"Aborted\",\"AbortError\"))},0)};function L(q){try{return q===\"\"&&r.location.href?r.location.href:q}catch{return q}}if(U.open(O.method,L(O.url),!0),O.credentials===\"include\"?U.withCredentials=!0:O.credentials===\"omit\"&&(U.withCredentials=!1),\"responseType\"in U&&(o.blob?U.responseType=\"blob\":o.arrayBuffer&&(U.responseType=\"arraybuffer\")),X&&typeof X.headers==\"object\"&&!(X.headers instanceof h||r.Headers&&X.headers instanceof r.Headers)){var W=[];Object.getOwnPropertyNames(X.headers).forEach(function(q){W.push(l(q)),U.setRequestHeader(q,d(X.headers[q]))}),O.headers.forEach(function(q,H){W.indexOf(H)===-1&&U.setRequestHeader(H,q)})}else O.headers.forEach(function(q,H){U.setRequestHeader(H,q)});O.signal&&(O.signal.addEventListener(\"abort\",P),U.onreadystatechange=function(){U.readyState===4&&O.signal.removeEventListener(\"abort\",P)}),U.send(typeof O._bodyInit>\"u\"?null:O._bodyInit)})}return te.polyfill=!0,r.fetch||(r.fetch=te,r.Headers=h,r.Request=G,r.Response=ie),n.Headers=h,n.Request=G,n.Response=ie,n.fetch=te,Object.defineProperty(n,\"__esModule\",{value:!0}),n})({})})(roe);roe.fetch.ponyfill=!0;delete roe.fetch.polyfill;var xD=noe.fetch?noe:roe;RC=xD.fetch;RC.default=xD.fetch;RC.fetch=xD.fetch;RC.Headers=xD.Headers;RC.Request=xD.Request;RC.Response=xD.Response;Xut.exports=RC});var Aft=me(qoe=>{\"use strict\";f();(function(){function e(A,_,D,Q){return\"\"+_+(D===\"s\"?\"\\\\\\\\73 \":\"\\\\\\\\53 \")+Q}function t(A,_,D,Q){return\"\"+_+(D===\"s\"?\"\\\\\\\\u0073\":\"\\\\\\\\u0053\")+Q}function n(A){return A===null||typeof A!=\"object\"?null:(A=Fx&&A[Fx]||A[\"@@iterator\"],typeof A==\"function\"?A:null)}function r(A){return A=Object.prototype.toString.call(A),A.slice(8,A.length-1)}function o(A){var _=JSON.stringify(A);return\\'\"\\'+A+\\'\"\\'===_?A:_}function i(A){switch(typeof A){case\"string\":return JSON.stringify(10>=A.length?A:A.slice(0,10)+\"...\");case\"object\":return Eh(A)?\"[...]\":A!==null&&A.$$typeof===eb?\"client\":(A=r(A),A===\"Object\"?\"{...}\":A);case\"function\":return A.$$typeof===eb?\"client\":(A=A.displayName||A.name)?\"function \"+A:\"function\";default:return String(A)}}function a(A){if(typeof A==\"string\")return A;switch(A){case tl:return\"Suspense\";case xh:return\"SuspenseList\"}if(typeof A==\"object\")switch(A.$$typeof){case Y0:return a(A.render);case hc:return a(A.type);case up:var _=A._payload;A=A._init;try{return a(A(_))}catch{}}return\"\"}function c(A,_){var D=r(A);if(D!==\"Object\"&&D!==\"Array\")return D;var Q=-1,re=0;if(Eh(A))if(s6.has(A)){var pe=s6.get(A);D=\"<\"+a(pe)+\">\";for(var xe=0;xe<A.length;xe++){var ke=A[xe];ke=typeof ke==\"string\"?ke:typeof ke==\"object\"&&ke!==null?\"{\"+c(ke)+\"}\":\"{\"+i(ke)+\"}\",\"\"+xe===_?(Q=D.length,re=ke.length,D+=ke):D=15>ke.length&&40>D.length+ke.length?D+ke:D+\"{...}\"}D+=\"</\"+a(pe)+\">\"}else{for(D=\"[\",pe=0;pe<A.length;pe++)0<pe&&(D+=\", \"),xe=A[pe],xe=typeof xe==\"object\"&&xe!==null?c(xe):i(xe),\"\"+pe===_?(Q=D.length,re=xe.length,D+=xe):D=10>xe.length&&40>D.length+xe.length?D+xe:D+\"...\";D+=\"]\"}else if(A.$$typeof===Hc)D=\"<\"+a(A.type)+\"/>\";else{if(A.$$typeof===eb)return\"client\";if(KA.has(A)){for(D=KA.get(A),D=\"<\"+(a(D)||\"...\"),pe=Object.keys(A),xe=0;xe<pe.length;xe++){D+=\" \",ke=pe[xe],D+=o(ke)+\"=\";var st=A[ke],Ue=ke===_&&typeof st==\"object\"&&st!==null?c(st):i(st);typeof st!=\"string\"&&(Ue=\"{\"+Ue+\"}\"),ke===_?(Q=D.length,re=Ue.length,D+=Ue):D=10>Ue.length&&40>D.length+Ue.length?D+Ue:D+\"...\"}D+=\">\"}else{for(D=\"{\",pe=Object.keys(A),xe=0;xe<pe.length;xe++)0<xe&&(D+=\", \"),ke=pe[xe],D+=o(ke)+\": \",st=A[ke],st=typeof st==\"object\"&&st!==null?c(st):i(st),ke===_?(Q=D.length,re=st.length,D+=st):D=10>st.length&&40>D.length+st.length?D+st:D+\"...\";D+=\"}\"}}return _===void 0?D:-1<Q&&0<re?(A=\" \".repeat(Q)+\"^\".repeat(re),`\\n  `+D+`\\n  `+A):`\\n  `+D}function l(A,_){var D=A.length&3,Q=A.length-D,re=_;for(_=0;_<Q;){var pe=A.charCodeAt(_)&255|(A.charCodeAt(++_)&255)<<8|(A.charCodeAt(++_)&255)<<16|(A.charCodeAt(++_)&255)<<24;++_,pe=3432918353*(pe&65535)+((3432918353*(pe>>>16)&65535)<<16)&4294967295,pe=pe<<15|pe>>>17,pe=461845907*(pe&65535)+((461845907*(pe>>>16)&65535)<<16)&4294967295,re^=pe,re=re<<13|re>>>19,re=5*(re&65535)+((5*(re>>>16)&65535)<<16)&4294967295,re=(re&65535)+27492+(((re>>>16)+58964&65535)<<16)}switch(pe=0,D){case 3:pe^=(A.charCodeAt(_+2)&255)<<16;case 2:pe^=(A.charCodeAt(_+1)&255)<<8;case 1:pe^=A.charCodeAt(_)&255,pe=3432918353*(pe&65535)+((3432918353*(pe>>>16)&65535)<<16)&4294967295,pe=pe<<15|pe>>>17,re^=461845907*(pe&65535)+((461845907*(pe>>>16)&65535)<<16)&4294967295}return re^=A.length,re^=re>>>16,re=2246822507*(re&65535)+((2246822507*(re>>>16)&65535)<<16)&4294967295,re^=re>>>13,re=3266489909*(re&65535)+((3266489909*(re>>>16)&65535)<<16)&4294967295,(re^re>>>16)>>>0}function d(A){return typeof Symbol==\"function\"&&Symbol.toStringTag&&A[Symbol.toStringTag]||A.constructor.name||\"Object\"}function m(A){try{return h(A),!1}catch{return!0}}function h(A){return\"\"+A}function g(A,_){if(m(A))return console.error(\"The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.\",_,d(A)),h(A)}function y(A,_){if(m(A))return console.error(\"The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.\",_,d(A)),h(A)}function w(A){if(m(A))return console.error(\"The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.\",d(A)),h(A)}function x(A){return Ao.call(lp,A)?!0:Ao.call(Z0,A)?!1:tb.test(A)?lp[A]=!0:(Z0[A]=!0,console.error(\"Invalid attribute name: `%s`\",A),!1)}function I(A,_){YA[_.type]||_.onChange||_.onInput||_.readOnly||_.disabled||_.value==null||console.error(A===\"select\"?\"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.\":\"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.\"),_.onChange||_.readOnly||_.disabled||_.checked==null||console.error(\"You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.\")}function C(A,_){if(Ao.call(xl,_)&&xl[_])return!0;if(ZA.test(_)){if(A=\"aria-\"+_.slice(4).toLowerCase(),A=wl.hasOwnProperty(A)?A:null,A==null)return console.error(\"Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.\",_),xl[_]=!0;if(_!==A)return console.error(\"Invalid ARIA attribute `%s`. Did you mean `%s`?\",_,A),xl[_]=!0}if(h4.test(_)){if(A=_.toLowerCase(),A=wl.hasOwnProperty(A)?A:null,A==null)return xl[_]=!0,!1;_!==A&&(console.error(\"Unknown ARIA attribute `%s`. Did you mean `%s`?\",_,A),xl[_]=!0)}return!0}function M(A,_){var D=[],Q;for(Q in _)C(A,Q)||D.push(Q);_=D.map(function(re){return\"`\"+re+\"`\"}).join(\", \"),D.length===1?console.error(\"Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props\",_,A):1<D.length&&console.error(\"Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props\",_,A)}function B(A,_,D,Q){if(Ao.call(jc,_)&&jc[_])return!0;var re=_.toLowerCase();if(re===\"onfocusin\"||re===\"onfocusout\")return console.error(\"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.\"),jc[_]=!0;if(typeof D==\"function\"&&(A===\"form\"&&_===\"action\"||A===\"input\"&&_===\"formAction\"||A===\"button\"&&_===\"formAction\"))return!0;if(Q!=null){if(A=Q.possibleRegistrationNames,Q.registrationNameDependencies.hasOwnProperty(_))return!0;if(Q=A.hasOwnProperty(re)?A[re]:null,Q!=null)return console.error(\"Invalid event handler property `%s`. Did you mean `%s`?\",_,Q),jc[_]=!0;if(fp.test(_))return console.error(\"Unknown event handler property `%s`. It will be ignored.\",_),jc[_]=!0}else if(fp.test(_))return J0.test(_)&&console.error(\"Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.\",_),jc[_]=!0;if(c6.test(_)||JA.test(_))return!0;if(re===\"innerhtml\")return console.error(\"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`.\"),jc[_]=!0;if(re===\"aria\")return console.error(\"The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead.\"),jc[_]=!0;if(re===\"is\"&&D!==null&&D!==void 0&&typeof D!=\"string\")return console.error(\"Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.\",typeof D),jc[_]=!0;if(typeof D==\"number\"&&isNaN(D))return console.error(\"Received NaN for the `%s` attribute. If this is expected, cast the value to a string.\",_),jc[_]=!0;if(QA.hasOwnProperty(re)){if(re=QA[re],re!==_)return console.error(\"Invalid DOM property `%s`. Did you mean `%s`?\",_,re),jc[_]=!0}else if(_!==re)return console.error(\"React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.\",_,re),jc[_]=!0;switch(_){case\"dangerouslySetInnerHTML\":case\"children\":case\"style\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":return!0;case\"innerText\":case\"textContent\":return!0}switch(typeof D){case\"boolean\":switch(_){case\"autoFocus\":case\"checked\":case\"multiple\":case\"muted\":case\"selected\":case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":case\"capture\":case\"download\":case\"inert\":return!0;default:return re=_.toLowerCase().slice(0,5),re===\"data-\"||re===\"aria-\"?!0:(D?console.error(\\'Received `%s` for a non-boolean attribute `%s`.\\\\n\\\\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\\',D,_,_,D,_):console.error(\\'Received `%s` for a non-boolean attribute `%s`.\\\\n\\\\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\\\\n\\\\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.\\',D,_,_,D,_,_,_),jc[_]=!0)}case\"function\":case\"symbol\":return jc[_]=!0,!1;case\"string\":if(D===\"false\"||D===\"true\"){switch(_){case\"checked\":case\"selected\":case\"multiple\":case\"muted\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":case\"inert\":break;default:return!0}console.error(\"Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?\",D,_,D===\"false\"?\"The browser will interpret it as a truthy value.\":\\'Although this works, it will not work as expected if you pass the string \"false\".\\',_,D),jc[_]=!0}}return!0}function z(A,_,D){var Q=[],re;for(re in _)B(A,re,_[re],D)||Q.push(re);_=Q.map(function(pe){return\"`\"+pe+\"`\"}).join(\", \"),Q.length===1?console.error(\"Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior \",_,A):1<Q.length&&console.error(\"Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior \",_,A)}function G(A){return A.replace(Al,function(_,D){return D.toUpperCase()})}function J(A){if(typeof A==\"boolean\"||typeof A==\"number\"||typeof A==\"bigint\")return\"\"+A;w(A),A=\"\"+A;var _=zx.exec(A);if(_){var D=\"\",Q,re=0;for(Q=_.index;Q<A.length;Q++){switch(A.charCodeAt(Q)){case 34:_=\"&quot;\";break;case 38:_=\"&amp;\";break;case 39:_=\"&#x27;\";break;case 60:_=\"&lt;\";break;case 62:_=\"&gt;\";break;default:continue}re!==Q&&(D+=A.slice(re,Q)),re=Q+1,D+=_}A=re!==Q?D+A.slice(re,Q):D}return A}function ne(A){return u6.test(\"\"+A)?\"javascript:throw new Error(\\'React has blocked a javascript: URL as a security precaution.\\')\":A}function ie(A){return w(A),(\"\"+A).replace(Fm,t)}function ae(A,_,D,Q,re){return{idPrefix:A===void 0?\"\":A,nextFormID:0,streamingFormat:0,bootstrapScriptContent:D,bootstrapScripts:Q,bootstrapModules:re,instructions:Hr,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function te(A,_,D,Q){return{insertionMode:A,selectedValue:_,tagScope:D,viewTransition:Q}}function Z(A,_,D){var Q=A.tagScope&-25;switch(_){case\"noscript\":return te(gs,null,Q|1,null);case\"select\":return te(gs,D.value!=null?D.value:D.defaultValue,Q,null);case\"svg\":return te(gc,null,Q,null);case\"picture\":return te(gs,null,Q|2,null);case\"math\":return te(J1,null,Q,null);case\"foreignObject\":return te(gs,null,Q,null);case\"table\":return te($a,null,Q,null);case\"thead\":case\"tbody\":case\"tfoot\":return te(jx,null,Q,null);case\"colgroup\":return te(cf,null,Q,null);case\"tr\":return te(sf,null,Q,null);case\"head\":if(A.insertionMode<gs)return te(hd,null,Q,null);break;case\"html\":if(A.insertionMode===Gs)return te(rl,null,Q,null)}return A.insertionMode>=$a||A.insertionMode<gs?te(gs,null,Q,null):A.tagScope!==Q?te(A.insertionMode,A.selectedValue,Q,null):A}function X(A){return A===null?null:{update:A.update,enter:\"none\",exit:\"none\",share:A.update,name:A.autoName,autoName:A.autoName,nameIdx:0}}function F(A,_){return _.tagScope&32&&(A.instructions|=128),te(_.insertionMode,_.selectedValue,_.tagScope|12,X(_.viewTransition))}function R(A,_){A=X(_.viewTransition);var D=_.tagScope|16;return A!==null&&A.share!==\"none\"&&(D|=64),te(_.insertionMode,_.selectedValue,D,A)}function O(A,_){if(typeof _!=\"object\")throw Error(\"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \\'em\\'}} when using JSX.\");var D=!0,Q;for(Q in _)if(Ao.call(_,Q)){var re=_[Q];if(re!=null&&typeof re!=\"boolean\"&&re!==\"\"){if(Q.indexOf(\"--\")===0){var pe=J(Q);y(re,Q),re=J((\"\"+re).trim())}else{pe=Q;var xe=re;if(-1<pe.indexOf(\"-\")){var ke=pe;So.hasOwnProperty(ke)&&So[ke]||(So[ke]=!0,console.error(\"Unsupported style property %s. Did you mean %s?\",ke,G(ke.replace(El,\"ms-\"))))}else if(Mm.test(pe))ke=pe,So.hasOwnProperty(ke)&&So[ke]||(So[ke]=!0,console.error(\"Unsupported vendor-prefixed style property %s. Did you mean %s?\",ke,ke.charAt(0).toUpperCase()+ke.slice(1)));else if(X0.test(xe)){ke=pe;var st=xe;_o.hasOwnProperty(st)&&_o[st]||(_o[st]=!0,console.error(`Style property values shouldn\\'t contain a semicolon. Try \"%s: %s\" instead.`,ke,st.replace(X0,\"\")))}typeof xe==\"number\"&&(isNaN(xe)?Z1||(Z1=!0,console.error(\"`NaN` is an invalid value for the `%s` css style property.\",pe)):isFinite(xe)||Hx||(Hx=!0,console.error(\"`Infinity` is an invalid value for the `%s` css style property.\",pe))),pe=Q,xe=Ra.get(pe),xe!==void 0||(xe=J(pe.replace($0,\"-$1\").toLowerCase().replace(Dm,\"-ms-\")),Ra.set(pe,xe)),pe=xe,typeof re==\"number\"?re=re===0||Q0.has(Q)?\"\"+re:re+\"px\":(y(re,Q),re=J((\"\"+re).trim()))}D?(D=!1,A.push(X1,pe,Wx,re)):A.push(Vx,pe,Wx,re)}}D||A.push(Ui)}function U(A,_,D){D&&typeof D!=\"function\"&&typeof D!=\"symbol\"&&A.push(fu,_,es)}function P(A,_,D){typeof D!=\"function\"&&typeof D!=\"symbol\"&&typeof D!=\"boolean\"&&A.push(fu,_,yc,J(D),Ui)}function L(A,_){this.push(\\'<input type=\"hidden\"\\'),W(A),P(this,\"name\",_),P(this,\"value\",A),this.push($1)}function W(A){if(typeof A!=\"string\")throw Error(\"File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration.\")}function q(A,_){if(typeof _.$$FORM_ACTION==\"function\"){var D=A.nextFormID++;A=A.idPrefix+D;try{var Q=_.$$FORM_ACTION(A);if(Q){var re=Q.data;re?.forEach(W)}return Q}catch(pe){if(typeof pe==\"object\"&&pe!==null&&typeof pe.then==\"function\")throw pe;console.error(`Failed to serialize an action for progressive enhancement:\\n%s`,pe)}}return null}function H(A,_,D,Q,re,pe,xe,ke){var st=null;if(typeof Q==\"function\"){ke===null||f6||(f6=!0,console.error(\\'Cannot specify a \"name\" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.\\')),re===null&&pe===null||qx||(qx=!0,console.error(\"Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.\")),xe===null||rb||(rb=!0,console.error(\"Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.\"));var Ue=q(_,Q);Ue!==null?(ke=Ue.name,Q=Ue.action||\"\",re=Ue.encType,pe=Ue.method,xe=Ue.target,st=Ue.data):(A.push(fu,\"formAction\",yc,ol,Ui),xe=pe=re=Q=ke=null,ue(_,D))}return ke!=null&&k(A,\"name\",ke),Q!=null&&k(A,\"formAction\",Q),re!=null&&k(A,\"formEncType\",re),pe!=null&&k(A,\"formMethod\",pe),xe!=null&&k(A,\"formTarget\",xe),st}function k(A,_,D){switch(_){case\"className\":P(A,\"class\",D);break;case\"tabIndex\":P(A,\"tabindex\",D);break;case\"dir\":case\"role\":case\"viewBox\":case\"width\":case\"height\":P(A,_,D);break;case\"style\":O(A,D);break;case\"src\":case\"href\":if(D===\"\"){console.error(_===\"src\"?\\'An empty string (\"\") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\':\\'An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\',_,_);break}case\"action\":case\"formAction\":if(D==null||typeof D==\"function\"||typeof D==\"symbol\"||typeof D==\"boolean\")break;g(D,_),D=ne(\"\"+D),A.push(fu,_,yc,J(D),Ui);break;case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"ref\":break;case\"autoFocus\":case\"multiple\":case\"muted\":U(A,_.toLowerCase(),D);break;case\"xlinkHref\":if(typeof D==\"function\"||typeof D==\"symbol\"||typeof D==\"boolean\")break;g(D,_),D=ne(\"\"+D),A.push(fu,\"xlink:href\",yc,J(D),Ui);break;case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":typeof D!=\"function\"&&typeof D!=\"symbol\"&&A.push(fu,_,yc,J(D),Ui);break;case\"inert\":D!==\"\"||du[_]||(du[_]=!0,console.error(\"Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.\",_));case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":D&&typeof D!=\"function\"&&typeof D!=\"symbol\"&&A.push(fu,_,es);break;case\"capture\":case\"download\":D===!0?A.push(fu,_,es):D!==!1&&typeof D!=\"function\"&&typeof D!=\"symbol\"&&A.push(fu,_,yc,J(D),Ui);break;case\"cols\":case\"rows\":case\"size\":case\"span\":typeof D!=\"function\"&&typeof D!=\"symbol\"&&!isNaN(D)&&1<=D&&A.push(fu,_,yc,J(D),Ui);break;case\"rowSpan\":case\"start\":typeof D==\"function\"||typeof D==\"symbol\"||isNaN(D)||A.push(fu,_,yc,J(D),Ui);break;case\"xlinkActuate\":P(A,\"xlink:actuate\",D);break;case\"xlinkArcrole\":P(A,\"xlink:arcrole\",D);break;case\"xlinkRole\":P(A,\"xlink:role\",D);break;case\"xlinkShow\":P(A,\"xlink:show\",D);break;case\"xlinkTitle\":P(A,\"xlink:title\",D);break;case\"xlinkType\":P(A,\"xlink:type\",D);break;case\"xmlBase\":P(A,\"xml:base\",D);break;case\"xmlLang\":P(A,\"xml:lang\",D);break;case\"xmlSpace\":P(A,\"xml:space\",D);break;default:if((!(2<_.length)||_[0]!==\"o\"&&_[0]!==\"O\"||_[1]!==\"n\"&&_[1]!==\"N\")&&(_=p4.get(_)||_,x(_))){switch(typeof D){case\"function\":case\"symbol\":return;case\"boolean\":var Q=_.toLowerCase().slice(0,5);if(Q!==\"data-\"&&Q!==\"aria-\")return}A.push(fu,_,yc,J(D),Ui)}}}function V(A,_,D){if(_!=null){if(D!=null)throw Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");if(typeof _!=\"object\"||!(\"__html\"in _))throw Error(\"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.\");_=_.__html,_!=null&&(w(_),A.push(\"\"+_))}}function oe(A,_){var D=A[_];D!=null&&(D=Eh(D),A.multiple&&!D?console.error(\"The `%s` prop supplied to <select> must be an array if `multiple` is true.\",_):!A.multiple&&D&&console.error(\"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.\",_))}function se(A){var _=\"\";return Jy.Children.forEach(A,function(D){D!=null&&(_+=D,Gx||typeof D==\"string\"||typeof D==\"number\"||typeof D==\"bigint\"||(Gx=!0,console.error(\"Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.\")))}),_}function ue(A,_){if((A.instructions&16)===Hr){A.instructions|=16;var D=_.preamble,Q=_.bootstrapChunks;(D.htmlChunks||D.headChunks)&&Q.length===0?(Q.push(_.startInlineScript),Sr(Q,A),Q.push($o,nv,Um)):Q.unshift(_.startInlineScript,$o,nv,Um)}}function he(A,_){A.push(qe(\"link\"));for(var D in _)if(Ao.call(_,D)){var Q=_[D];if(Q!=null)switch(D){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(\"link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:k(A,D,Q)}}return A.push($1),null}function be(A){return w(A),(\"\"+A).replace(ob,e)}function we(A,_,D){A.push(qe(D));for(var Q in _)if(Ao.call(_,Q)){var re=_[Q];if(re!=null)switch(Q){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(D+\" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:k(A,Q,re)}}return A.push($1),null}function Ie(A,_){A.push(qe(\"title\"));var D=null,Q=null,re;for(re in _)if(Ao.call(_,re)){var pe=_[re];if(pe!=null)switch(re){case\"children\":D=pe;break;case\"dangerouslySetInnerHTML\":Q=pe;break;default:k(A,re,pe)}}return A.push($o),_=Array.isArray(D)?2>D.length?D[0]:null:D,typeof _!=\"function\"&&typeof _!=\"symbol\"&&_!==null&&_!==void 0&&A.push(J(\"\"+_)),V(A,Q,D),A.push(rt(\"title\")),null}function _e(A,_){A.push(qe(\"script\"));var D=null,Q=null,re;for(re in _)if(Ao.call(_,re)){var pe=_[re];if(pe!=null)switch(re){case\"children\":D=pe;break;case\"dangerouslySetInnerHTML\":Q=pe;break;default:k(A,re,pe)}}return A.push($o),D!=null&&typeof D!=\"string\"&&(_=typeof D==\"number\"?\"a number for children\":Array.isArray(D)?\"an array for children\":\"something unexpected for children\",console.error(\"A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.\",_)),V(A,Q,D),typeof D==\"string\"&&A.push(ie(D)),A.push(rt(\"script\")),null}function Ve(A,_,D){A.push(qe(D));var Q=D=null,re;for(re in _)if(Ao.call(_,re)){var pe=_[re];if(pe!=null)switch(re){case\"children\":D=pe;break;case\"dangerouslySetInnerHTML\":Q=pe;break;default:k(A,re,pe)}}return A.push($o),V(A,Q,D),D}function Et(A,_,D){A.push(qe(D));var Q=D=null,re;for(re in _)if(Ao.call(_,re)){var pe=_[re];if(pe!=null)switch(re){case\"children\":D=pe;break;case\"dangerouslySetInnerHTML\":Q=pe;break;default:k(A,re,pe)}}return A.push($o),V(A,Q,D),typeof D==\"string\"?(A.push(J(D)),null):D}function qe(A){var _=rv.get(A);if(_===void 0){if(!Sl.test(A))throw Error(\"Invalid tag: \"+A);_=\"<\"+A,rv.set(A,_)}return _}function Xe(A,_,D,Q,re,pe,xe,ke,st){M(_,D),_!==\"input\"&&_!==\"textarea\"&&_!==\"select\"||D==null||D.value!==null||dp||(dp=!0,_===\"select\"&&D.multiple?console.error(\"`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.\",_):console.error(\"`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.\",_));e:if(_.indexOf(\"-\")===-1)var Ue=!1;else switch(_){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":Ue=!1;break e;default:Ue=!0}switch(Ue||typeof D.is==\"string\"||z(_,D,null),!D.suppressContentEditableWarning&&D.contentEditable&&D.children!=null&&console.error(\"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.\"),ke.insertionMode!==gc&&ke.insertionMode!==J1&&_.indexOf(\"-\")===-1&&_.toLowerCase()!==_&&console.error(\"<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.\",_),_){case\"div\":case\"span\":case\"svg\":case\"path\":break;case\"a\":A.push(qe(\"a\"));var et=null,Mt=null,Ft;for(Ft in D)if(Ao.call(D,Ft)){var Lt=D[Ft];if(Lt!=null)switch(Ft){case\"children\":et=Lt;break;case\"dangerouslySetInnerHTML\":Mt=Lt;break;case\"href\":Lt===\"\"?P(A,\"href\",\"\"):k(A,Ft,Lt);break;default:k(A,Ft,Lt)}}if(A.push($o),V(A,Mt,et),typeof et==\"string\"){A.push(J(et));var gt=null}else gt=et;return gt;case\"g\":case\"p\":case\"li\":break;case\"select\":I(\"select\",D),oe(D,\"value\"),oe(D,\"defaultValue\"),D.value===void 0||D.defaultValue===void 0||d6||(console.error(\"Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components\"),d6=!0),A.push(qe(\"select\"));var Qn=null,ni=null,Nn;for(Nn in D)if(Ao.call(D,Nn)){var to=D[Nn];if(to!=null)switch(Nn){case\"children\":Qn=to;break;case\"dangerouslySetInnerHTML\":ni=to;break;case\"defaultValue\":case\"value\":break;default:k(A,Nn,to)}}return A.push($o),V(A,ni,Qn),Qn;case\"option\":var Ys=ke.selectedValue;A.push(qe(\"option\"));var gu=null,zr=null,pa=null,vs=null,cl;for(cl in D)if(Ao.call(D,cl)){var hn=D[cl];if(hn!=null)switch(cl){case\"children\":gu=hn;break;case\"selected\":pa=hn,tv||(console.error(\"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.\"),tv=!0);break;case\"dangerouslySetInnerHTML\":vs=hn;break;case\"value\":zr=hn;default:k(A,cl,hn)}}if(Ys!=null){if(zr!==null){g(zr,\"value\");var Go=\"\"+zr}else vs===null||ev||(ev=!0,console.error(\"Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.\")),Go=se(gu);if(Eh(Ys)){for(var qo=0;qo<Ys.length;qo++)if(g(Ys[qo],\"value\"),\"\"+Ys[qo]===Go){A.push(\\' selected=\"\"\\');break}}else g(Ys,\"select.value\"),\"\"+Ys===Go&&A.push(\\' selected=\"\"\\')}else pa&&A.push(\\' selected=\"\"\\');return A.push($o),V(A,vs,gu),gu;case\"textarea\":I(\"textarea\",D),D.value===void 0||D.defaultValue===void 0||qs||(console.error(\"Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components\"),qs=!0),A.push(qe(\"textarea\"));var ri=null,sr=null,Ji=null,nr;for(nr in D)if(Ao.call(D,nr)){var Zs=D[nr];if(Zs!=null)switch(nr){case\"children\":Ji=Zs;break;case\"value\":ri=Zs;break;case\"defaultValue\":sr=Zs;break;case\"dangerouslySetInnerHTML\":throw Error(\"`dangerouslySetInnerHTML` does not make sense on <textarea>.\");default:k(A,nr,Zs)}}if(ri===null&&sr!==null&&(ri=sr),A.push($o),Ji!=null){if(console.error(\"Use the `defaultValue` or `value` props instead of setting children on <textarea>.\"),ri!=null)throw Error(\"If you supply `defaultValue` on a <textarea>, do not pass children.\");if(Eh(Ji)){if(1<Ji.length)throw Error(\"<textarea> can only have at most one child.\");w(Ji[0]),ri=\"\"+Ji[0]}w(Ji),ri=\"\"+Ji}return typeof ri==\"string\"&&ri[0]===`\\n`&&A.push(Ah),ri!==null&&(g(ri,\"value\"),A.push(J(\"\"+ri))),null;case\"input\":I(\"input\",D),A.push(qe(\"input\"));var Nr=null,Qs=null,oi=null,yu=null,Vc=null,wd=null,xd=null,ts=null,Ed=null,Xi;for(Xi in D)if(Ao.call(D,Xi)){var v=D[Xi];if(v!=null)switch(Xi){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(\"input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");case\"name\":Nr=v;break;case\"formAction\":Qs=v;break;case\"formEncType\":oi=v;break;case\"formMethod\":yu=v;break;case\"formTarget\":Vc=v;break;case\"defaultChecked\":Ed=v;break;case\"defaultValue\":xd=v;break;case\"checked\":ts=v;break;case\"value\":wd=v;break;default:k(A,Xi,v)}}Qs===null||D.type===\"image\"||D.type===\"submit\"||tg||(tg=!0,console.error(\\'An input can only specify a formAction along with type=\"submit\" or type=\"image\".\\'));var E=H(A,Q,re,Qs,oi,yu,Vc,Nr);return ts===null||Ed===null||l6||(console.error(\"%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components\",\"A component\",D.type),l6=!0),wd===null||xd===null||uf||(console.error(\"%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components\",\"A component\",D.type),uf=!0),ts!==null?U(A,\"checked\",ts):Ed!==null&&U(A,\"checked\",Ed),wd!==null?k(A,\"value\",wd):xd!==null&&k(A,\"value\",xd),A.push($1),E?.forEach(L,A),null;case\"button\":A.push(qe(\"button\"));var N=null,K=null,ee=null,le=null,ye=null,Ae=null,Ye=null,Me;for(Me in D)if(Ao.call(D,Me)){var Fe=D[Me];if(Fe!=null)switch(Me){case\"children\":N=Fe;break;case\"dangerouslySetInnerHTML\":K=Fe;break;case\"name\":ee=Fe;break;case\"formAction\":le=Fe;break;case\"formEncType\":ye=Fe;break;case\"formMethod\":Ae=Fe;break;case\"formTarget\":Ye=Fe;break;default:k(A,Me,Fe)}}le===null||D.type==null||D.type===\"submit\"||tg||(tg=!0,console.error(\\'A button can only specify a formAction along with type=\"submit\" or no type.\\'));var vt=H(A,Q,re,le,ye,Ae,Ye,ee);if(A.push($o),vt?.forEach(L,A),V(A,K,N),typeof N==\"string\"){A.push(J(N));var mt=null}else mt=N;return mt;case\"form\":A.push(qe(\"form\"));var At=null,$e=null,En=null,Yr=null,wn=null,Pn=null,po;for(po in D)if(Ao.call(D,po)){var pi=D[po];if(pi!=null)switch(po){case\"children\":At=pi;break;case\"dangerouslySetInnerHTML\":$e=pi;break;case\"action\":En=pi;break;case\"encType\":Yr=pi;break;case\"method\":wn=pi;break;case\"target\":Pn=pi;break;default:k(A,po,pi)}}var qn=null,dn=null;if(typeof En==\"function\"){Yr===null&&wn===null||qx||(qx=!0,console.error(\"Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.\")),Pn===null||rb||(rb=!0,console.error(\"Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.\"));var wi=q(Q,En);wi!==null?(En=wi.action||\"\",Yr=wi.encType,wn=wi.method,Pn=wi.target,qn=wi.data,dn=wi.name):(A.push(fu,\"action\",yc,ol,Ui),Pn=wn=Yr=En=null,ue(Q,re))}if(En!=null&&k(A,\"action\",En),Yr!=null&&k(A,\"encType\",Yr),wn!=null&&k(A,\"method\",wn),Pn!=null&&k(A,\"target\",Pn),A.push($o),dn!==null&&(A.push(\\'<input type=\"hidden\"\\'),P(A,\"name\",dn),A.push($1),qn?.forEach(L,A)),V(A,$e,At),typeof At==\"string\"){A.push(J(At));var Ia=null}else Ia=At;return Ia;case\"menuitem\":A.push(qe(\"menuitem\"));for(var Zr in D)if(Ao.call(D,Zr)){var Ro=D[Zr];if(Ro!=null)switch(Zr){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(\"menuitems cannot have `children` nor `dangerouslySetInnerHTML`.\");default:k(A,Zr,Ro)}}return A.push($o),null;case\"object\":A.push(qe(\"object\"));var ka=null,zi=null,Ci;for(Ci in D)if(Ao.call(D,Ci)){var Io=D[Ci];if(Io!=null)switch(Ci){case\"children\":ka=Io;break;case\"dangerouslySetInnerHTML\":zi=Io;break;case\"data\":g(Io,\"data\");var ji=ne(\"\"+Io);if(ji===\"\"){console.error(\\'An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\',Ci,Ci);break}A.push(fu,\"data\",yc,J(ji),Ui);break;default:k(A,Ci,Io)}}if(A.push($o),V(A,zi,ka),typeof ka==\"string\"){A.push(J(ka));var Js=null}else Js=ka;return Js;case\"title\":var Xs=ke.tagScope&1,Wi=ke.tagScope&4;if(Ao.call(D,\"children\")){var Ko=D.children,Ri=Array.isArray(Ko)?2>Ko.length?Ko[0]:null:Ko;Array.isArray(Ko)&&1<Ko.length?console.error(\"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.\",Ko.length):typeof Ri==\"function\"||typeof Ri==\"symbol\"?console.error(\"React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.\",typeof Ri==\"function\"?\"a Function\":\"a Sybmol\"):Ri&&Ri.toString==={}.toString&&(Ri.$$typeof!=null?console.error(\"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML.\"):console.error(\"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>.\"))}if(ke.insertionMode===gc||Xs||D.itemProp!=null)var Oa=Ie(A,D);else Wi?Oa=null:(Ie(re.hoistableChunks,D),Oa=void 0);return Oa;case\"link\":var Na=ke.tagScope&1,bu=ke.tagScope&4,ws=D.rel,xi=D.href,vc=D.precedence;if(ke.insertionMode===gc||Na||D.itemProp!=null||typeof ws!=\"string\"||typeof xi!=\"string\"||xi===\"\"){ws===\"stylesheet\"&&typeof D.precedence==\"string\"&&(typeof xi==\"string\"&&xi||console.error(\\'React encountered a `<link rel=\"stylesheet\" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.\\',xi===null?\"`null`\":xi===void 0?\"`undefined`\":xi===\"\"?\"an empty string\":\\'something with type \"\\'+typeof xi+\\'\"\\')),he(A,D);var ha=null}else if(D.rel===\"stylesheet\")if(typeof vc!=\"string\"||D.disabled!=null||D.onLoad||D.onError){if(typeof vc==\"string\"){if(D.disabled!=null)console.error(\\'React encountered a `<link rel=\"stylesheet\" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.\\');else if(D.onLoad||D.onError){var jm=D.onLoad&&D.onError?\"`onLoad` and `onError` props\":D.onLoad?\"`onLoad` prop\":\"`onError` prop\";console.error(\\'React encountered a `<link rel=\"stylesheet\" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.\\',jm,jm)}}ha=he(A,D)}else{var $s=re.styles.get(vc),ii=Q.styleResources.hasOwnProperty(xi)?Q.styleResources[xi]:void 0;if(ii!==mc){Q.styleResources[xi]=mc,$s||($s={precedence:J(vc),rules:[],hrefs:[],sheets:new Map},re.styles.set(vc,$s));var wc={state:w6,props:fo({},D,{\"data-precedence\":D.precedence,precedence:null})};if(ii){ii.length===2&&Le(wc.props,ii);var In=re.preloads.stylesheets.get(xi);In&&0<In.length?In.length=0:wc.state=t2}$s.sheets.set(xi,wc),xe&&xe.stylesheets.add(wc)}else if($s){var pf=$s.sheets.get(xi);pf&&xe&&xe.stylesheets.add(pf)}st&&A.push(\"<!-- -->\"),ha=null}else D.onLoad||D.onError?ha=he(A,D):(st&&A.push(\"<!-- -->\"),ha=bu?null:he(re.hoistableChunks,D));return ha;case\"script\":var wp=ke.tagScope&1,Gc=D.async;if(typeof D.src!=\"string\"||!D.src||!Gc||typeof Gc==\"function\"||typeof Gc==\"symbol\"||D.onLoad||D.onError||ke.insertionMode===gc||wp||D.itemProp!=null)var xp=_e(A,D);else{var ec=D.src;if(D.type===\"module\")var hf=Q.moduleScriptResources,Wm=re.preloads.moduleScripts;else hf=Q.scriptResources,Wm=re.preloads.scripts;var xc=hf.hasOwnProperty(ec)?hf[ec]:void 0;if(xc!==mc){hf[ec]=mc;var Ep=D;if(xc){xc.length===2&&(Ep=fo({},D),Le(Ep,xc));var Vi=Wm.get(ec);Vi&&(Vi.length=0)}var Ap=[];re.scripts.add(Ap),_e(Ap,Ep)}st&&A.push(\"<!-- -->\"),xp=null}return xp;case\"style\":var mf=ke.tagScope&1;if(Ao.call(D,\"children\")){var Pa=D.children,ns=Array.isArray(Pa)?2>Pa.length?Pa[0]:null:Pa;(typeof ns==\"function\"||typeof ns==\"symbol\"||Array.isArray(ns))&&console.error(\"React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.\",typeof ns==\"function\"?\"a Function\":typeof ns==\"symbol\"?\"a Sybmol\":\"an Array\")}var qc=D.precedence,Kc=D.href,xs=D.nonce;if(ke.insertionMode===gc||mf||D.itemProp!=null||typeof qc!=\"string\"||typeof Kc!=\"string\"||Kc===\"\"){A.push(qe(\"style\"));var ma=null,kl=null,Yc;for(Yc in D)if(Ao.call(D,Yc)){var Ad=D[Yc];if(Ad!=null)switch(Yc){case\"children\":ma=Ad;break;case\"dangerouslySetInnerHTML\":kl=Ad;break;default:k(A,Yc,Ad)}}A.push($o);var vu=Array.isArray(ma)?2>ma.length?ma[0]:null:ma;typeof vu!=\"function\"&&typeof vu!=\"symbol\"&&vu!==null&&vu!==void 0&&A.push(be(vu)),V(A,kl,ma),A.push(rt(\"style\"));var cg=null}else{Kc.includes(\" \")&&console.error(\\'React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is \"%s\".\\',Kc);var rs=re.styles.get(qc),wu=Q.styleResources.hasOwnProperty(Kc)?Q.styleResources[Kc]:void 0;if(wu!==mc){Q.styleResources[Kc]=mc,wu&&console.error(\\'React encountered a hoistable style tag for the same href as a preload: \"%s\". When using a style tag to inline styles you should not also preload it as a stylsheet.\\',Kc),rs||(rs={precedence:J(qc),rules:[],hrefs:[],sheets:new Map},re.styles.set(qc,rs));var Sd=re.nonce.style;if(Sd&&Sd!==xs)console.error(\\'React encountered a style tag with `precedence` \"%s\" and `nonce` \"%s\". When React manages style rules using `precedence` it will only include rules if the nonce matches the style nonce \"%s\" that was included with this render.\\',qc,xs,Sd);else{!Sd&&xs&&console.error(\\'React encountered a style tag with `precedence` \"%s\" and `nonce` \"%s\". When React manages style rules using `precedence` it will only include a nonce attributes if you also provide the same style nonce value as a render option.\\',qc,xs),rs.hrefs.push(J(Kc));var Rh=rs.rules,Wn=null,Sv=null,Ol;for(Ol in D)if(Ao.call(D,Ol)){var gf=D[Ol];if(gf!=null)switch(Ol){case\"children\":Wn=gf;break;case\"dangerouslySetInnerHTML\":Sv=gf}}var Nl=Array.isArray(Wn)?2>Wn.length?Wn[0]:null:Wn;typeof Nl!=\"function\"&&typeof Nl!=\"symbol\"&&Nl!==null&&Nl!==void 0&&Rh.push(be(Nl)),V(Rh,Sv,Wn)}}rs&&xe&&xe.styles.add(rs),st&&A.push(\"<!-- -->\"),cg=void 0}return cg;case\"meta\":var _d=ke.tagScope&1,ug=ke.tagScope&4;if(ke.insertionMode===gc||_d||D.itemProp!=null)var _v=we(A,D,\"meta\");else st&&A.push(\"<!-- -->\"),_v=ug?null:typeof D.charSet==\"string\"?we(re.charsetChunks,D,\"meta\"):D.name===\"viewport\"?we(re.viewportChunks,D,\"meta\"):we(re.hoistableChunks,D,\"meta\");return _v;case\"listing\":case\"pre\":A.push(qe(_));var os=null,Zc=null,ai;for(ai in D)if(Ao.call(D,ai)){var lg=D[ai];if(lg!=null)switch(ai){case\"children\":os=lg;break;case\"dangerouslySetInnerHTML\":Zc=lg;break;default:k(A,ai,lg)}}if(A.push($o),Zc!=null){if(os!=null)throw Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");if(typeof Zc!=\"object\"||!(\"__html\"in Zc))throw Error(\"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.\");var Ii=Zc.__html;Ii!=null&&(typeof Ii==\"string\"&&0<Ii.length&&Ii[0]===`\\n`?A.push(Ah,Ii):(w(Ii),A.push(\"\"+Ii)))}return typeof os==\"string\"&&os[0]===`\\n`&&A.push(Ah),os;case\"img\":var Ei=ke.tagScope&3,Pr=D.src,ho=D.srcSet;if(!(D.loading===\"lazy\"||!Pr&&!ho||typeof Pr!=\"string\"&&Pr!=null||typeof ho!=\"string\"&&ho!=null||D.fetchPriority===\"low\"||Ei)&&(typeof Pr!=\"string\"||Pr[4]!==\":\"||Pr[0]!==\"d\"&&Pr[0]!==\"D\"||Pr[1]!==\"a\"&&Pr[1]!==\"A\"||Pr[2]!==\"t\"&&Pr[2]!==\"T\"||Pr[3]!==\"a\"&&Pr[3]!==\"A\")&&(typeof ho!=\"string\"||ho[4]!==\":\"||ho[0]!==\"d\"&&ho[0]!==\"D\"||ho[1]!==\"a\"&&ho[1]!==\"A\"||ho[2]!==\"t\"&&ho[2]!==\"T\"||ho[3]!==\"a\"&&ho[3]!==\"A\")){xe!==null&&ke.tagScope&64&&(xe.suspenseyImages=!0);var mo=typeof D.sizes==\"string\"?D.sizes:void 0,Td=ho?ho+`\\n`+(mo||\"\"):Pr,$i=re.preloads.images,Sp=$i.get(Td);if(Sp)(D.fetchPriority===\"high\"||10>re.highImagePreloads.size)&&($i.delete(Td),re.highImagePreloads.add(Sp));else if(!Q.imageResources.hasOwnProperty(Td)){Q.imageResources[Td]=Xa;var _p=D.crossOrigin,Ih=typeof _p==\"string\"?_p===\"use-credentials\"?_p:\"\":void 0,Tp=re.headers,Es;Tp&&0<Tp.remainingCapacity&&typeof D.srcSet!=\"string\"&&(D.fetchPriority===\"high\"||500>Tp.highImagePreloads.length)&&(Es=it(Pr,\"image\",{imageSrcSet:D.srcSet,imageSizes:D.sizes,crossOrigin:Ih,integrity:D.integrity,nonce:D.nonce,type:D.type,fetchPriority:D.fetchPriority,referrerPolicy:D.refererPolicy}),0<=(Tp.remainingCapacity-=Es.length+2))?(re.resets.image[Td]=Xa,Tp.highImagePreloads&&(Tp.highImagePreloads+=\", \"),Tp.highImagePreloads+=Es):(Sp=[],he(Sp,{rel:\"preload\",as:\"image\",href:ho?void 0:Pr,imageSrcSet:ho,imageSizes:mo,crossOrigin:Ih,integrity:D.integrity,type:D.type,fetchPriority:D.fetchPriority,referrerPolicy:D.referrerPolicy}),D.fetchPriority===\"high\"||10>re.highImagePreloads.size?re.highImagePreloads.add(Sp):(re.bulkPreloads.add(Sp),$i.set(Td,Sp)))}}return we(A,D,\"img\");case\"base\":case\"area\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"keygen\":case\"param\":case\"source\":case\"track\":case\"wbr\":return we(A,D,_);case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":break;case\"head\":if(ke.insertionMode<gs){var kh=pe||re.preamble;if(kh.headChunks)throw Error(\"The `<head>` tag may only be rendered once.\");pe!==null&&A.push(\"<!--head-->\"),kh.headChunks=[];var Vm=Ve(kh.headChunks,D,\"head\")}else Vm=Et(A,D,\"head\");return Vm;case\"body\":if(ke.insertionMode<gs){var yb=pe||re.preamble;if(yb.bodyChunks)throw Error(\"The `<body>` tag may only be rendered once.\");pe!==null&&A.push(\"<!--body-->\"),yb.bodyChunks=[];var bb=Ve(yb.bodyChunks,D,\"body\")}else bb=Et(A,D,\"body\");return bb;case\"html\":if(ke.insertionMode===Gs){var Gm=pe||re.preamble;if(Gm.htmlChunks)throw Error(\"The `<html>` tag may only be rendered once.\");pe!==null&&A.push(\"<!--html-->\"),Gm.htmlChunks=[fS];var dg=Ve(Gm.htmlChunks,D,\"html\")}else dg=Et(A,D,\"html\");return dg;default:if(_.indexOf(\"-\")!==-1){A.push(qe(_));var Cp=null,yf=null,xu;for(xu in D)if(Ao.call(D,xu)){var As=D[xu];if(As!=null){var Oh=xu;switch(xu){case\"children\":Cp=As;break;case\"dangerouslySetInnerHTML\":yf=As;break;case\"style\":O(A,As);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"ref\":break;case\"className\":Oh=\"class\";default:if(x(xu)&&typeof As!=\"function\"&&typeof As!=\"symbol\"&&As!==!1){if(As===!0)As=\"\";else if(typeof As==\"object\")continue;A.push(fu,Oh,yc,J(As),Ui)}}}}return A.push($o),V(A,yf,Cp),Cp}}return Et(A,D,_)}function rt(A){var _=md.get(A);return _===void 0&&(_=\"</\"+A+\">\",md.set(A,_)),_}function wt(A,_){A=A.preamble,A.htmlChunks===null&&_.htmlChunks&&(A.htmlChunks=_.htmlChunks),A.headChunks===null&&_.headChunks&&(A.headChunks=_.headChunks),A.bodyChunks===null&&_.bodyChunks&&(A.bodyChunks=_.bodyChunks)}function ot(A,_){_=_.bootstrapChunks;for(var D=0;D<_.length-1;D++)A.push(_[D]);return D<_.length?(D=_[D],_.length=0,A.push(D)):!0}function mn(A,_,D){if(A.push(ov),D===null)throw Error(\"An ID must have been assigned before we can complete the boundary.\");return A.push(_.boundaryPrefix),_=D.toString(16),A.push(_),A.push(il)}function St(A,_,D,Q){switch(D.insertionMode){case Gs:case rl:case hd:case gs:return A.push(p6),A.push(_.segmentPrefix),_=Q.toString(16),A.push(_),A.push(Wo);case gc:return A.push(Zx),A.push(_.segmentPrefix),_=Q.toString(16),A.push(_),A.push(ar);case J1:return A.push(sb),A.push(_.segmentPrefix),_=Q.toString(16),A.push(_),A.push(Qx);case $a:return A.push(eS),A.push(_.segmentPrefix),_=Q.toString(16),A.push(_),A.push(av);case jx:return A.push(sv),A.push(_.segmentPrefix),_=Q.toString(16),A.push(_),A.push(tS);case sf:return A.push(nS),A.push(_.segmentPrefix),_=Q.toString(16),A.push(_),A.push(m6);case cf:return A.push(Vo),A.push(_.segmentPrefix),_=Q.toString(16),A.push(_),A.push(rS);default:throw Error(\"Unknown insertion mode. This is a bug in React.\")}}function rn(A,_){switch(_.insertionMode){case Gs:case rl:case hd:case gs:return A.push(Wc);case gc:return A.push(_t);case J1:return A.push(fa);case $a:return A.push(h6);case jx:return A.push(Jx);case sf:return A.push(al);case cf:return A.push(Xx);default:throw Error(\"Unknown insertion mode. This is a bug in React.\")}}function $t(A){return JSON.stringify(A).replace(x4,function(_){switch(_){case\"<\":return\"\\\\\\\\u003c\";case\"\\\\u2028\":return\"\\\\\\\\u2028\";case\"\\\\u2029\":return\"\\\\\\\\u2029\";default:throw Error(\"escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}})}function Kt(A){return JSON.stringify(A).replace(E4,function(_){switch(_){case\"&\":return\"\\\\\\\\u0026\";case\">\":return\"\\\\\\\\u003e\";case\"<\":return\"\\\\\\\\u003c\";case\"\\\\u2028\":return\"\\\\\\\\u2028\";case\"\\\\u2029\":return\"\\\\\\\\u2029\";default:throw Error(\"escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}})}function en(A){var _=A.rules,D=A.hrefs;0<_.length&&D.length===0&&console.error(\"React expected to have at least one href for an a hoistable style but found none. This is a bug in React.\");var Q=0;if(D.length){for(this.push(Lm.startInlineStyle),this.push(s7),this.push(A.precedence),this.push(A4);Q<D.length-1;Q++)this.push(D[Q]),this.push(v6);for(this.push(D[Q]),this.push(S4),Q=0;Q<_.length;Q++)this.push(_[Q]);sS=this.push(_4),uv=!0,_.length=0,D.length=0}}function Ho(A){return A.state!==fv?uv=!0:!1}function Fn(A,_,D){return uv=!1,sS=!0,Lm=D,_.styles.forEach(en,A),Lm=null,_.stylesheets.forEach(Ho),uv&&(D.stylesToHoist=!0),sS}function fn(A){for(var _=0;_<A.length;_++)this.push(A[_]);A.length=0}function Hs(A){he(zm,A.props);for(var _=0;_<zm.length;_++)this.push(zm[_]);zm.length=0,A.state=fv}function Ar(A){var _=0<A.sheets.size;A.sheets.forEach(Hs,this),A.sheets.clear();var D=A.rules,Q=A.hrefs;if(!_||Q.length){if(this.push(Lm.startInlineStyle),this.push(lv),this.push(A.precedence),A=0,Q.length){for(this.push(cS);A<Q.length-1;A++)this.push(Q[A]),this.push(v6);this.push(Q[A])}for(this.push(c7),A=0;A<D.length;A++)this.push(D[A]);this.push(uS),D.length=0,Q.length=0}}function Kr(A){if(A.state===w6){A.state=t2;var _=A.props;for(he(zm,{rel:\"preload\",as:\"style\",href:A.props.href,crossOrigin:_.crossOrigin,fetchPriority:_.fetchPriority,integrity:_.integrity,media:_.media,hrefLang:_.hrefLang,referrerPolicy:_.referrerPolicy}),A=0;A<zm.length;A++)this.push(zm[A]);zm.length=0}}function Ka(A){A.sheets.forEach(Kr,this),A.sheets.clear()}function Sr(A,_){(_.instructions&Bm)===Hr&&(_.instructions|=Bm,A.push(ub,J(\"_\"+_.idPrefix+\"R_\"),Ui))}function $r(A,_){A.push(lS);var D=lS;_.stylesheets.forEach(function(Q){if(Q.state!==fv)if(Q.state===dS)A.push(D),Q=Q.props.href,g(Q,\"href\"),Q=Kt(\"\"+Q),A.push(Q),A.push(dv),D=rg;else{A.push(D);var re=Q.props[\"data-precedence\"],pe=Q.props,xe=ne(\"\"+Q.props.href);xe=Kt(xe),A.push(xe),g(re,\"precedence\"),re=\"\"+re,A.push(hu),re=Kt(re),A.push(re);for(var ke in pe)if(Ao.call(pe,ke)&&(re=pe[ke],re!=null))switch(ke){case\"href\":case\"rel\":case\"precedence\":case\"data-precedence\":break;case\"children\":case\"dangerouslySetInnerHTML\":throw Error(\"link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:yl(A,ke,re)}A.push(dv),D=rg,Q.state=dS}}),A.push(dv)}function yl(A,_,D){var Q=_.toLowerCase();switch(typeof D){case\"function\":case\"symbol\":return}switch(_){case\"innerHTML\":case\"dangerouslySetInnerHTML\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"style\":case\"ref\":return;case\"className\":Q=\"class\",g(D,Q),_=\"\"+D;break;case\"hidden\":if(D===!1)return;_=\"\";break;case\"src\":case\"href\":D=ne(D),g(D,Q),_=\"\"+D;break;default:if(2<_.length&&(_[0]===\"o\"||_[0]===\"O\")&&(_[1]===\"n\"||_[1]===\"N\")||!x(_))return;g(D,Q),_=\"\"+D}A.push(hu),Q=Kt(Q),A.push(Q),A.push(hu),Q=Kt(_),A.push(Q)}function lr(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function de(A,_,D,Q){(A.scriptResources.hasOwnProperty(D)||A.moduleScriptResources.hasOwnProperty(D))&&console.error(\\'Internal React Error: React expected bootstrap script or module with src \"%s\" to not have been preloaded already. please file an issue\\',D),A.scriptResources[D]=mc,A.moduleScriptResources[D]=mc,A=[],he(A,Q),_.bootstrapScripts.add(A)}function Le(A,_){A.crossOrigin==null&&(A.crossOrigin=_[0]),A.integrity==null&&(A.integrity=_[1])}function it(A,_,D){A=bt(A),_=Yt(_,\"as\"),_=\"<\"+A+\\'>; rel=preload; as=\"\\'+_+\\'\"\\';for(var Q in D)Ao.call(D,Q)&&(A=D[Q],typeof A==\"string\"&&(_+=\"; \"+Q.toLowerCase()+\\'=\"\\'+Yt(A,Q)+\\'\"\\'));return _}function bt(A){return g(A,\"href\"),(\"\"+A).replace(T4,jt)}function jt(A){switch(A){case\"<\":return\"%3C\";case\">\":return\"%3E\";case`\\n`:return\"%0A\";case\"\\\\r\":return\"%0D\";default:throw Error(\"escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}}function Yt(A,_){return m(A)&&(console.error(\"The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here.\",_,d(A)),h(A)),(\"\"+A).replace(x6,Qt)}function Qt(A){switch(A){case\\'\"\\':return\"%22\";case\"\\'\":return\"%27\";case\";\":return\"%3B\";case\",\":return\"%2C\";case`\\n`:return\"%0A\";case\"\\\\r\":return\"%0D\";default:throw Error(\"escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}}function ir(A){this.styles.add(A)}function zt(A){this.stylesheets.add(A)}function Mn(A,_){_.styles.forEach(ir,A),_.stylesheets.forEach(zt,A),_.suspenseyImages&&(A.suspenseyImages=!0)}function hs(A,_){var D=A.idPrefix,Q=[],re=A.bootstrapScriptContent,pe=A.bootstrapScripts,xe=A.bootstrapModules;if(re!==void 0&&(Q.push(\"<script\"),Sr(Q,A),Q.push($o,ie(re),Um)),D={placeholderPrefix:D+\"P:\",segmentPrefix:D+\"S:\",boundaryPrefix:D+\"B:\",startInlineScript:\"<script\",startInlineStyle:\"<style\",preamble:{htmlChunks:null,headChunks:null,bodyChunks:null},externalRuntimeScript:null,bootstrapChunks:Q,importMapChunks:[],onHeaders:void 0,headers:null,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:{script:void 0,style:void 0},hoistableState:null,stylesToHoist:!1},pe!==void 0)for(re=0;re<pe.length;re++){var ke=pe[re],st,Ue=void 0,et=void 0,Mt={rel:\"preload\",as:\"script\",fetchPriority:\"low\",nonce:void 0};typeof ke==\"string\"?Mt.href=st=ke:(Mt.href=st=ke.src,Mt.integrity=et=typeof ke.integrity==\"string\"?ke.integrity:void 0,Mt.crossOrigin=Ue=typeof ke==\"string\"||ke.crossOrigin==null?void 0:ke.crossOrigin===\"use-credentials\"?\"use-credentials\":\"\"),de(A,D,st,Mt),Q.push(\\'<script src=\"\\',J(st),Ui),typeof et==\"string\"&&Q.push(\\' integrity=\"\\',J(et),Ui),typeof Ue==\"string\"&&Q.push(\\' crossorigin=\"\\',J(Ue),Ui),Sr(Q,A),Q.push(\\' async=\"\"><\\\\/script>\\')}if(xe!==void 0)for(pe=0;pe<xe.length;pe++)re=xe[pe],Ue=st=void 0,et={rel:\"modulepreload\",fetchPriority:\"low\",nonce:void 0},typeof re==\"string\"?et.href=ke=re:(et.href=ke=re.src,et.integrity=Ue=typeof re.integrity==\"string\"?re.integrity:void 0,et.crossOrigin=st=typeof re==\"string\"||re.crossOrigin==null?void 0:re.crossOrigin===\"use-credentials\"?\"use-credentials\":\"\"),de(A,D,ke,et),Q.push(\\'<script type=\"module\" src=\"\\',J(ke),Ui),typeof Ue==\"string\"&&Q.push(\\' integrity=\"\\',J(Ue),Ui),typeof st==\"string\"&&Q.push(\\' crossorigin=\"\\',J(st),Ui),Sr(Q,A),Q.push(\\' async=\"\"><\\\\/script>\\');return{placeholderPrefix:D.placeholderPrefix,segmentPrefix:D.segmentPrefix,boundaryPrefix:D.boundaryPrefix,startInlineScript:D.startInlineScript,startInlineStyle:D.startInlineStyle,preamble:D.preamble,externalRuntimeScript:D.externalRuntimeScript,bootstrapChunks:D.bootstrapChunks,importMapChunks:D.importMapChunks,onHeaders:D.onHeaders,headers:D.headers,resets:D.resets,charsetChunks:D.charsetChunks,viewportChunks:D.viewportChunks,hoistableChunks:D.hoistableChunks,preconnects:D.preconnects,fontPreloads:D.fontPreloads,highImagePreloads:D.highImagePreloads,styles:D.styles,bootstrapScripts:D.bootstrapScripts,scripts:D.scripts,bulkPreloads:D.bulkPreloads,preloads:D.preloads,nonce:D.nonce,stylesToHoist:D.stylesToHoist,generateStaticMarkup:_}}function eo(A,_,D,Q){return D.generateStaticMarkup?(A.push(J(_)),!1):(_===\"\"?A=Q:(Q&&A.push(\"<!-- -->\"),A.push(J(_)),A=!0),A)}function Ur(A,_,D,Q){_.generateStaticMarkup||D&&Q&&A.push(\"<!-- -->\")}function Eo(A){if(A==null)return null;if(typeof A==\"function\")return A.$$typeof===pS?null:A.displayName||A.name||null;if(typeof A==\"string\")return A;switch(A){case Xy:return\"Fragment\";case a6:return\"Profiler\";case Ux:return\"StrictMode\";case tl:return\"Suspense\";case xh:return\"SuspenseList\";case qA:return\"Activity\"}if(typeof A==\"object\")switch(typeof A.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),A.$$typeof){case G1:return\"Portal\";case K0:return A.displayName||\"Context\";case q1:return(A._context.displayName||\"Context\")+\".Consumer\";case Y0:var _=A.render;return A=A.displayName,A||(A=_.displayName||_.name||\"\",A=A!==\"\"?\"ForwardRef(\"+A+\")\":\"ForwardRef\"),A;case hc:return _=A.displayName||null,_!==null?_:Eo(A.type)||\"Memo\";case up:_=A._payload,A=A._init;try{return Eo(A(_))}catch{}}return null}function Fr(A,_){if(A!==_){A.context._currentValue2=A.parentValue,A=A.parent;var D=_.parent;if(A===null){if(D!==null)throw Error(\"The stacks must reach the root at the same time. This is a bug in React.\")}else{if(D===null)throw Error(\"The stacks must reach the root at the same time. This is a bug in React.\");Fr(A,D)}_.context._currentValue2=_.value}}function lo(A){A.context._currentValue2=A.parentValue,A=A.parent,A!==null&&lo(A)}function zs(A){var _=A.parent;_!==null&&zs(_),A.context._currentValue2=A.value}function _r(A,_){if(A.context._currentValue2=A.parentValue,A=A.parent,A===null)throw Error(\"The depth must equal at least at zero before reaching the root. This is a bug in React.\");A.depth===_.depth?Fr(A,_):_r(A,_)}function zo(A,_){var D=_.parent;if(D===null)throw Error(\"The depth must equal at least at zero before reaching the root. This is a bug in React.\");A.depth===D.depth?Fr(A,D):zo(A,D),_.context._currentValue2=_.value}function Qu(A){var _=Th;_!==A&&(_===null?zs(A):A===null?lo(_):_.depth===A.depth?Fr(_,A):_.depth>A.depth?_r(_,A):zo(_,A),Th=A)}function jo(A){if(A!==null&&typeof A!=\"function\"){var _=String(A);I6.has(_)||(I6.add(_),console.error(\"Expected the last optional `callback` argument to be a function. Instead received: %s.\",A))}}function fi(A,_){A=(A=A.constructor)&&Eo(A)||\"ReactClass\";var D=A+\".\"+_;A6[D]||(console.error(`Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.\\n\\nPlease check the code for the %s component.`,_,A),A6[D]=!0)}function _a(A,_,D){var Q=A.id;A=A.overflow;var re=32-hv(Q)-1;Q&=~(1<<re),D+=1;var pe=32-hv(_)+re;if(30<pe){var xe=re-re%5;return pe=(Q&(1<<xe)-1).toString(32),Q>>=xe,re-=xe,{id:1<<32-hv(_)+re|D<<re|Q,overflow:pe+A}}return{id:1<<pe|D<<re|Q,overflow:A}}function Tr(A){return A>>>=0,A===0?32:31-(k6(A)/u7|0)|0}function ln(){}function ld(A,_,D){switch(D=A[D],D===void 0?A.push(_):D!==_&&(_.then(ln,ln),_=D),_.status){case\"fulfilled\":return _.value;case\"rejected\":throw _.reason;default:switch(typeof _.status==\"string\"?_.then(ln,ln):(A=_,A.status=\"pending\",A.then(function(Q){if(_.status===\"pending\"){var re=_;re.status=\"fulfilled\",re.value=Q}},function(Q){if(_.status===\"pending\"){var re=_;re.status=\"rejected\",re.reason=Q}})),_.status){case\"fulfilled\":return _.value;case\"rejected\":throw _.reason}throw r2=_,gd}}function Mo(){if(r2===null)throw Error(\"Expected a suspended thenable. This is a bug in React. Please file an issue.\");var A=r2;return r2=null,A}function Xo(A,_){return A===_&&(A!==0||1/A===1/_)||A!==A&&_!==_}function js(){if(Tl===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Cl&&console.error(\"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks\"),Tl}function tf(){if(0<ig)throw Error(\"Rendered more hooks than during the previous render\");return{memoizedState:null,queue:null,next:null}}function da(){return ei===null?mv===null?(gv=!1,mv=ei=tf()):(gv=!0,ei=mv):ei.next===null?(gv=!1,ei=ei.next=tf()):(gv=!0,ei=ei.next),ei}function Dc(){var A=bp;return bp=null,A}function Ju(){Cl=!1,yS=yp=og=Tl=null,i2=!1,mv=null,ig=0,ei=vp=null}function Bc(A){return Cl&&console.error(\"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\"),A._currentValue2}function nf(A,_){return typeof _==\"function\"?_(A):_}function Li(A,_,D){if(A!==nf&&(ag=\"useReducer\"),Tl=js(),ei=da(),gv){if(D=ei.queue,_=D.dispatch,vp!==null){var Q=vp.get(D);if(Q!==void 0){vp.delete(D),D=ei.memoizedState;do{var re=Q.action;Cl=!0,D=A(D,re),Cl=!1,Q=Q.next}while(Q!==null);return ei.memoizedState=D,[D,_]}}return[ei.memoizedState,_]}return Cl=!0,A=A===nf?typeof _==\"function\"?_():_:D!==void 0?D(_):_,Cl=!1,ei.memoizedState=A,A=ei.queue={last:null,dispatch:null},A=A.dispatch=Lc.bind(null,Tl,A),[ei.memoizedState,A]}function Ta(A,_){if(Tl=js(),ei=da(),_=_===void 0?null:_,ei!==null){var D=ei.memoizedState;if(D!==null&&_!==null){e:{var Q=D[1];if(Q===null)console.error(\"%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.\",ag),Q=!1;else{_.length!==Q.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\\n\\nPrevious: %s\\nIncoming: %s`,ag,\"[\"+_.join(\", \")+\"]\",\"[\"+Q.join(\", \")+\"]\");for(var re=0;re<Q.length&&re<_.length;re++)if(!o2(_[re],Q[re])){Q=!1;break e}Q=!0}}if(Q)return D[0]}}return Cl=!0,A=A(),Cl=!1,ei.memoizedState=[A,_],A}function Lc(A,_,D){if(25<=ig)throw Error(\"Too many re-renders. React limits the number of renders to prevent an infinite loop.\");if(A===Tl)if(i2=!0,A={action:D,next:null},vp===null&&(vp=new Map),D=vp.get(_),D===void 0)vp.set(_,A);else{for(_=D;_.next!==null;)_=_.next;_.next=A}}function Xu(){throw Error(\"A function wrapped in useEffectEvent can\\'t be called during rendering.\")}function pc(){throw Error(\"startTransition cannot be called during server rendering.\")}function bl(){throw Error(\"Cannot update optimistic state while rendering.\")}function $u(A,_,D){js();var Q=fb++,re=yp;if(typeof A.$$FORM_ACTION==\"function\"){var pe=null,xe=yS;re=re.formState;var ke=A.$$IS_SIGNATURE_EQUAL;if(re!==null&&typeof ke==\"function\"){var st=re[1];ke.call(A,re[2],re[3])&&(pe=D!==void 0?\"p\"+D:\"k\"+l(JSON.stringify([xe,null,Q]),0),st===pe&&(pb=Q,_=re[0]))}var Ue=A.bind(null,_);return A=function(Mt){Ue(Mt)},typeof Ue.$$FORM_ACTION==\"function\"&&(A.$$FORM_ACTION=function(Mt){Mt=Ue.$$FORM_ACTION(Mt),D!==void 0&&(g(D,\"target\"),D+=\"\",Mt.action=D);var Ft=Mt.data;return Ft&&(pe===null&&(pe=D!==void 0?\"p\"+D:\"k\"+l(JSON.stringify([xe,null,Q]),0)),Ft.append(\"$ACTION_KEY\",pe)),Mt}),[_,A,!1]}var et=A.bind(null,_);return[_,function(Mt){et(Mt)},!1]}function dd(A){var _=hb;return hb+=1,bp===null&&(bp=[]),ld(bp,A,_)}function fd(){throw Error(\"Cache cannot be refreshed during server rendering.\")}function rf(){}function Im(){if(mu===0){yv=console.log,df=console.info,bS=console.warn,bv=console.error,vS=console.group,O6=console.groupCollapsed,vv=console.groupEnd;var A={configurable:!0,enumerable:!0,value:rf,writable:!0};Object.defineProperties(console,{info:A,log:A,warn:A,error:A,group:A,groupCollapsed:A,groupEnd:A})}mu++}function L1(){if(mu--,mu===0){var A={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:fo({},A,{value:yv}),info:fo({},A,{value:df}),warn:fo({},A,{value:bS}),error:fo({},A,{value:bv}),group:fo({},A,{value:vS}),groupCollapsed:fo({},A,{value:O6}),groupEnd:fo({},A,{value:vv})})}0>mu&&console.error(\"disabledDepth fell below zero. This is a bug in React. Please file an issue.\")}function FA(A){var _=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,A=A.stack,Error.prepareStackTrace=_,A.startsWith(`Error: react-stack-top-frame\\n`)&&(A=A.slice(29)),_=A.indexOf(`\\n`),_!==-1&&(A=A.slice(_+1)),_=A.indexOf(\"react_stack_bottom_frame\"),_!==-1&&(_=A.lastIndexOf(`\\n`,_)),_!==-1)A=A.slice(0,_);else return\"\";return A}function km(A){if(wv===void 0)try{throw Error()}catch(D){var _=D.stack.trim().match(/\\\\n( *(at )?)/);wv=_&&_[1]||\"\",wS=-1<D.stack.indexOf(`\\n    at`)?\" (<anonymous>)\":-1<D.stack.indexOf(\"@\")?\"@unknown:0:0\":\"\"}return`\\n`+wv+A+wS}function U1(A,_){if(!A||a2)return\"\";var D=s2.get(A);if(D!==void 0)return D;a2=!0,D=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var Q=null;Q=Ws.H,Ws.H=null,Im();try{var re={DetermineComponentFrameRoot:function(){try{if(_){var Ft=function(){throw Error()};if(Object.defineProperty(Ft.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==\"object\"&&Reflect.construct){try{Reflect.construct(Ft,[])}catch(gt){var Lt=gt}Reflect.construct(A,[],Ft)}else{try{Ft.call()}catch(gt){Lt=gt}A.call(Ft.prototype)}}else{try{throw Error()}catch(gt){Lt=gt}(Ft=A())&&typeof Ft.catch==\"function\"&&Ft.catch(function(){})}}catch(gt){if(gt&&Lt&&typeof gt.stack==\"string\")return[gt.stack,Lt.stack]}return[null,null]}};re.DetermineComponentFrameRoot.displayName=\"DetermineComponentFrameRoot\";var pe=Object.getOwnPropertyDescriptor(re.DetermineComponentFrameRoot,\"name\");pe&&pe.configurable&&Object.defineProperty(re.DetermineComponentFrameRoot,\"name\",{value:\"DetermineComponentFrameRoot\"});var xe=re.DetermineComponentFrameRoot(),ke=xe[0],st=xe[1];if(ke&&st){var Ue=ke.split(`\\n`),et=st.split(`\\n`);for(xe=pe=0;pe<Ue.length&&!Ue[pe].includes(\"DetermineComponentFrameRoot\");)pe++;for(;xe<et.length&&!et[xe].includes(\"DetermineComponentFrameRoot\");)xe++;if(pe===Ue.length||xe===et.length)for(pe=Ue.length-1,xe=et.length-1;1<=pe&&0<=xe&&Ue[pe]!==et[xe];)xe--;for(;1<=pe&&0<=xe;pe--,xe--)if(Ue[pe]!==et[xe]){if(pe!==1||xe!==1)do if(pe--,xe--,0>xe||Ue[pe]!==et[xe]){var Mt=`\\n`+Ue[pe].replace(\" at new \",\" at \");return A.displayName&&Mt.includes(\"<anonymous>\")&&(Mt=Mt.replace(\"<anonymous>\",A.displayName)),typeof A==\"function\"&&s2.set(A,Mt),Mt}while(1<=pe&&0<=xe);break}}}finally{a2=!1,Ws.H=Q,L1(),Error.prepareStackTrace=D}return Ue=(Ue=A?A.displayName||A.name:\"\")?km(Ue):\"\",typeof A==\"function\"&&s2.set(A,Ue),Ue}function Px(A){if(typeof A==\"string\")return km(A);if(typeof A==\"function\")return A.prototype&&A.prototype.isReactComponent?U1(A,!0):U1(A,!1);if(typeof A==\"object\"&&A!==null){switch(A.$$typeof){case Y0:return U1(A.render,!1);case hc:return U1(A.type,!1);case up:var _=A,D=_._payload;_=_._init;try{A=_(D)}catch{return km(\"Lazy\")}return Px(A)}if(typeof A.name==\"string\"){e:{if(D=A.name,_=A.env,A=A.debugLocation,A!=null){A=FA(A);var Q=A.lastIndexOf(`\\n`);if(A=Q===-1?A:A.slice(Q+1),A.indexOf(D)!==-1){D=`\\n`+A;break e}}D=km(D+(_?\" [\"+_+\"]\":\"\"))}return D}}switch(A){case xh:return km(\"SuspenseList\");case tl:return km(\"Suspense\")}return\"\"}function Wy(A,_){return(500<_.byteSize||!1)&&_.contentPreamble===null}function e6(A){if(typeof A==\"object\"&&A!==null&&typeof A.environmentName==\"string\"){var _=A.environmentName;A=[A].slice(0),typeof A[0]==\"string\"?A.splice(0,1,\"[%s] \"+A[0],\" \"+_+\" \"):A.splice(0,0,\"[%s]\",\" \"+_+\" \"),A.unshift(console),_=E6.apply(console.error,A),_()}else console.error(A);return null}function t6(A,_,D,Q,re,pe,xe,ke,st,Ue,et){var Mt=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=A,this.renderState=_,this.rootFormatContext=D,this.progressiveChunkSize=Q===void 0?12800:Q,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=Mt,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=re===void 0?e6:re,this.onPostpone=Ue===void 0?ln:Ue,this.onAllReady=pe===void 0?ln:pe,this.onShellReady=xe===void 0?ln:xe,this.onShellError=ke===void 0?ln:ke,this.onFatalError=st===void 0?ln:st,this.formState=et===void 0?null:et,this.didWarnForKey=null}function a7(A,_,D,Q,re,pe,xe,ke,st,Ue,et,Mt){var Ft=gb();return 1e3<Ft-AS&&(Ws.recentlyCreatedOwnerStacks=0,AS=Ft),_=new t6(_,D,Q,re,pe,xe,ke,st,Ue,et,Mt),D=vl(_,0,null,Q,!1,!1),D.parentFlushed=!0,A=Vy(_,null,A,-1,null,D,null,null,_.abortableTasks,null,Q,null,db,null,null,gp,null),ap(A),_.pingedTasks.push(A),_}function HA(A,_){A.pingedTasks.push(_),A.pingedTasks.length===1&&(A.flushScheduled=A.destination!==null,W0(A))}function Mx(A,_,D,Q,re){return D={status:Il,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:_,completedSegments:[],byteSize:0,fallbackAbortableTasks:D,errorDigest:null,contentState:lr(),fallbackState:lr(),contentPreamble:Q,fallbackPreamble:re,trackedContentKeyPath:null,trackedFallbackNode:null,errorMessage:null,errorStack:null,errorComponentStack:null},_!==null&&(_.pendingTasks++,Q=_.boundaries,Q!==null&&(A.allPendingTasks++,D.pendingTasks++,Q.push(D)),A=_.inheritedHoistables,A!==null&&Mn(D.contentState,A)),D}function Vy(A,_,D,Q,re,pe,xe,ke,st,Ue,et,Mt,Ft,Lt,gt,Qn,ni){A.allPendingTasks++,re===null?A.pendingRootTasks++:re.pendingTasks++,Lt!==null&&Lt.pendingTasks++;var Nn={replay:null,node:D,childIndex:Q,ping:function(){return HA(A,Nn)},blockedBoundary:re,blockedSegment:pe,blockedPreamble:xe,hoistableState:ke,abortSet:st,keyPath:Ue,formatContext:et,context:Mt,treeContext:Ft,row:Lt,componentStack:gt,thenableState:_};return Nn.debugTask=ni,st.add(Nn),Nn}function F0(A,_,D,Q,re,pe,xe,ke,st,Ue,et,Mt,Ft,Lt,gt,Qn){A.allPendingTasks++,pe===null?A.pendingRootTasks++:pe.pendingTasks++,Ft!==null&&Ft.pendingTasks++,D.pendingTasks++;var ni={replay:D,node:Q,childIndex:re,ping:function(){return HA(A,ni)},blockedBoundary:pe,blockedSegment:null,blockedPreamble:null,hoistableState:xe,abortSet:ke,keyPath:st,formatContext:Ue,context:et,treeContext:Mt,row:Ft,componentStack:Lt,thenableState:_};return ni.debugTask=Qn,ke.add(ni),ni}function vl(A,_,D,Q,re,pe){return{status:Il,parentFlushed:!1,id:-1,index:_,chunks:[],children:[],preambleChildren:[],parentFormatContext:Q,boundary:D,lastPushedText:re,textEmbedded:pe}}function F1(){if(sl===null||sl.componentStack===null)return\"\";var A=sl.componentStack;try{var _=\"\";if(typeof A.type==\"string\")_+=km(A.type);else if(typeof A.type==\"function\"){if(!A.owner){var D=_,Q=A.type,re=Q?Q.displayName||Q.name:\"\",pe=re?km(re):\"\";_=D+pe}}else A.owner||(_+=Px(A.type));for(;A;)D=null,A.debugStack!=null?D=FA(A.debugStack):(pe=A,pe.stack!=null&&(D=typeof pe.stack!=\"string\"?pe.stack=FA(pe.stack):pe.stack)),(A=A.owner)&&D&&(_+=`\\n`+D);var xe=_}catch(ke){xe=`\\nError generating stack: `+ke.message+`\\n`+ke.stack}return xe}function zA(A,_){if(_!=null)for(var D=_.length-1;0<=D;D--){var Q=_[D];if(typeof Q.name==\"string\"||typeof Q.time==\"number\")break;if(Q.awaited!=null){var re=Q.debugStack==null?Q.awaited:Q;if(re.debugStack!==void 0){A.componentStack={parent:A.componentStack,type:Q,owner:re.owner,stack:re.debugStack},A.debugTask=re.debugTask;break}}}}function gh(A,_){if(_!=null)for(var D=0;D<_.length;D++){var Q=_[D];typeof Q.name==\"string\"&&Q.debugStack!==void 0&&(A.componentStack={parent:A.componentStack,type:Q,owner:Q.owner,stack:Q.debugStack},A.debugTask=Q.debugTask)}}function ap(A){var _=A.node;if(typeof _==\"object\"&&_!==null)switch(_.$$typeof){case Hc:var D=_.type,Q=_._owner,re=_._debugStack;gh(A,_._debugInfo),A.debugTask=_._debugTask,A.componentStack={parent:A.componentStack,type:D,owner:Q,stack:re};break;case up:gh(A,_._debugInfo);break;default:typeof _.then==\"function\"&&gh(A,_._debugInfo)}}function n6(A){return A===null?null:{parent:A.parent,type:\"Suspense Fallback\",owner:A.owner,stack:A.stack}}function Om(A){var _={};return A&&Object.defineProperty(_,\"componentStack\",{configurable:!0,enumerable:!0,get:function(){try{var D=\"\",Q=A;do D+=Px(Q.type),Q=Q.parent;while(Q);var re=D}catch(pe){re=`\\nError generating stack: `+pe.message+`\\n`+pe.stack}return Object.defineProperty(_,\"componentStack\",{value:re}),re}}),_}function Gy(A,_,D,Q,re){A.errorDigest=_,D instanceof Error?(_=String(D.message),D=String(D.stack)):(_=typeof D==\"object\"&&D!==null?c(D):String(D),D=null),re=re?`Switched to client rendering because the server rendering aborted due to:\\n\\n`:`Switched to client rendering because the server rendering errored:\\n\\n`,A.errorMessage=re+_,A.errorStack=D!==null?re+D:null,A.errorComponentStack=Q.componentStack}function uu(A,_,D,Q){if(A=A.onError,_=Q?Q.run(A.bind(null,_,D)):A(_,D),_!=null&&typeof _!=\"string\")console.error(\\'onError returned something with a type other than \"string\". onError should return a string and may return null or undefined but must not return anything else. It received something of type \"%s\" instead\\',typeof _);else return _}function yh(A,_,D,Q){D=A.onShellError;var re=A.onFatalError;Q?(Q.run(D.bind(null,_)),Q.run(re.bind(null,_))):(D(_),re(_)),A.destination!==null?(A.status=ff,A.destination.destroy(_)):(A.status=13,A.fatalError=_)}function Qi(A,_){H1(A,_.next,_.hoistables)}function H1(A,_,D){for(;_!==null;){D!==null&&(Mn(_.hoistables,D),_.inheritedHoistables=D);var Q=_.boundaries;if(Q!==null){_.boundaries=null;for(var re=0;re<Q.length;re++){var pe=Q[re];D!==null&&Mn(pe.contentState,D),sp(A,pe,null,null)}}if(_.pendingTasks--,0<_.pendingTasks)break;D=_.hoistables,_=_.next}}function H0(A,_){var D=_.boundaries;if(D!==null&&_.pendingTasks===D.length){for(var Q=!0,re=0;re<D.length;re++){var pe=D[re];if(pe.pendingTasks!==1||pe.parentFlushed||Wy(A,pe)){Q=!1;break}}Q&&H1(A,_,_.hoistables)}}function bh(A){var _={pendingTasks:1,boundaries:null,hoistables:lr(),inheritedHoistables:null,together:!1,next:null};return A!==null&&0<A.pendingTasks&&(_.pendingTasks++,_.boundaries=[],A.next=_),_}function z0(A,_,D,Q,re){var pe=_.keyPath,xe=_.treeContext,ke=_.row,st=_.componentStack,Ue=_.debugTask;gh(_,_.node.props.children._debugInfo),_.keyPath=D,D=Q.length;var et=null;if(_.replay!==null){var Mt=_.replay.slots;if(Mt!==null&&typeof Mt==\"object\")for(var Ft=0;Ft<D;Ft++){var Lt=re!==\"backwards\"&&re!==\"unstable_legacy-backwards\"?Ft:D-1-Ft,gt=Q[Lt];_.row=et=bh(et),_.treeContext=_a(xe,D,Lt);var Qn=Mt[Lt];typeof Qn==\"number\"?(Nm(A,_,Qn,gt,Lt),delete Mt[Lt]):Ca(A,_,gt,Lt),--et.pendingTasks===0&&Qi(A,et)}else for(Mt=0;Mt<D;Mt++)Ft=re!==\"backwards\"&&re!==\"unstable_legacy-backwards\"?Mt:D-1-Mt,Lt=Q[Ft],ms(A,_,Lt),_.row=et=bh(et),_.treeContext=_a(xe,D,Ft),Ca(A,_,Lt,Ft),--et.pendingTasks===0&&Qi(A,et)}else if(re!==\"backwards\"&&re!==\"unstable_legacy-backwards\")for(re=0;re<D;re++)Mt=Q[re],ms(A,_,Mt),_.row=et=bh(et),_.treeContext=_a(xe,D,re),Ca(A,_,Mt,re),--et.pendingTasks===0&&Qi(A,et);else{for(re=_.blockedSegment,Mt=re.children.length,Ft=re.chunks.length,Lt=D-1;0<=Lt;Lt--){gt=Q[Lt],_.row=et=bh(et),_.treeContext=_a(xe,D,Lt),Qn=vl(A,Ft,null,_.formatContext,Lt===0?re.lastPushedText:!0,!0),re.children.splice(Mt,0,Qn),_.blockedSegment=Qn,ms(A,_,gt);try{Ca(A,_,gt,Lt),Ur(Qn.chunks,A.renderState,Qn.lastPushedText,Qn.textEmbedded),Qn.status=Ks,--et.pendingTasks===0&&Qi(A,et)}catch(ni){throw Qn.status=A.status===12?bs:To,ni}}_.blockedSegment=re,re.lastPushedText=!1}ke!==null&&et!==null&&0<et.pendingTasks&&(ke.pendingTasks++,et.next=ke),_.treeContext=xe,_.row=ke,_.keyPath=pe,_.componentStack=st,_.debugTask=Ue}function vh(A,_,D,Q,re,pe){var xe=_.thenableState;for(_.thenableState=null,Tl={},og=_,yp=A,yS=D,Cl=!1,fb=lf=0,pb=-1,hb=0,bp=xe,A=xS(Q,re,pe);i2;)i2=!1,fb=lf=0,pb=-1,hb=0,ig+=1,ei=null,A=Q(re,pe);return Ju(),A}function z1(A,_,D,Q,re,pe,xe){var ke=!1;if(pe!==0&&A.formState!==null){var st=_.blockedSegment;if(st!==null){ke=!0,st=st.chunks;for(var Ue=0;Ue<pe;Ue++)Ue===xe?st.push(\"<!--F!-->\"):st.push(\"<!--F-->\")}}pe=_.keyPath,_.keyPath=D,re?(D=_.treeContext,_.treeContext=_a(D,1,0),Ca(A,_,Q,-1),_.treeContext=D):ke?Ca(A,_,Q,-1):Za(A,_,Q,-1),_.keyPath=pe}function j0(A,_,D,Q,re,pe){if(typeof Q==\"function\")if(Q.prototype&&Q.prototype.isReactComponent){var xe=re;if(\"ref\"in re){xe={};for(var ke in re)ke!==\"ref\"&&(xe[ke]=re[ke])}var st=Q.defaultProps;if(st){xe===re&&(xe=fo({},xe,re));for(var Ue in st)xe[Ue]===void 0&&(xe[Ue]=st[Ue])}var et=xe,Mt=gp,Ft=Q.contextType;if(\"contextType\"in Q&&Ft!==null&&(Ft===void 0||Ft.$$typeof!==K0)&&!gS.has(Q)){gS.add(Q);var Lt=Ft===void 0?\" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.\":typeof Ft!=\"object\"?\" However, it is set to a \"+typeof Ft+\".\":Ft.$$typeof===q1?\" Did you accidentally pass the Context.Consumer instead?\":\" However, it is set to an object with keys {\"+Object.keys(Ft).join(\", \")+\"}.\";console.error(\"%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s\",Eo(Q)||\"Component\",Lt)}typeof Ft==\"object\"&&Ft!==null&&(Mt=Ft._currentValue2);var gt=new Q(et,Mt);if(typeof Q.getDerivedStateFromProps==\"function\"&&(gt.state===null||gt.state===void 0)){var Qn=Eo(Q)||\"Component\";hS.has(Qn)||(hS.add(Qn),console.error(\"`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.\",Qn,gt.state===null?\"null\":\"undefined\",Qn))}if(typeof Q.getDerivedStateFromProps==\"function\"||typeof gt.getSnapshotBeforeUpdate==\"function\"){var ni=null,Nn=null,to=null;if(typeof gt.componentWillMount==\"function\"&&gt.componentWillMount.__suppressDeprecationWarning!==!0?ni=\"componentWillMount\":typeof gt.UNSAFE_componentWillMount==\"function\"&&(ni=\"UNSAFE_componentWillMount\"),typeof gt.componentWillReceiveProps==\"function\"&&gt.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Nn=\"componentWillReceiveProps\":typeof gt.UNSAFE_componentWillReceiveProps==\"function\"&&(Nn=\"UNSAFE_componentWillReceiveProps\"),typeof gt.componentWillUpdate==\"function\"&&gt.componentWillUpdate.__suppressDeprecationWarning!==!0?to=\"componentWillUpdate\":typeof gt.UNSAFE_componentWillUpdate==\"function\"&&(to=\"UNSAFE_componentWillUpdate\"),ni!==null||Nn!==null||to!==null){var Ys=Eo(Q)||\"Component\",gu=typeof Q.getDerivedStateFromProps==\"function\"?\"getDerivedStateFromProps()\":\"getSnapshotBeforeUpdate()\";n2.has(Ys)||(n2.add(Ys),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\nhttps://react.dev/link/unsafe-component-lifecycles`,Ys,gu,ni!==null?`\\n  `+ni:\"\",Nn!==null?`\\n  `+Nn:\"\",to!==null?`\\n  `+to:\"\"))}}var zr=Eo(Q)||\"Component\";gt.render||(Q.prototype&&typeof Q.prototype.render==\"function\"?console.error(\"No `render` method found on the %s instance: did you accidentally return an object from the constructor?\",zr):console.error(\"No `render` method found on the %s instance: you may have forgotten to define `render`.\",zr)),!gt.getInitialState||gt.getInitialState.isReactClassApproved||gt.state||console.error(\"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?\",zr),gt.getDefaultProps&&!gt.getDefaultProps.isReactClassApproved&&console.error(\"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.\",zr),gt.contextType&&console.error(\"contextType was defined as an instance property on %s. Use a static property to define contextType instead.\",zr),Q.childContextTypes&&!R6.has(Q)&&(R6.add(Q),console.error(\"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)\",zr)),Q.contextTypes&&!C6.has(Q)&&(C6.add(Q),console.error(\"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)\",zr)),typeof gt.componentShouldUpdate==\"function\"&&console.error(\"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.\",zr),Q.prototype&&Q.prototype.isPureReactComponent&&typeof gt.shouldComponentUpdate<\"u\"&&console.error(\"%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.\",Eo(Q)||\"A pure component\"),typeof gt.componentDidUnmount==\"function\"&&console.error(\"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?\",zr),typeof gt.componentDidReceiveProps==\"function\"&&console.error(\"%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().\",zr),typeof gt.componentWillRecieveProps==\"function\"&&console.error(\"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?\",zr),typeof gt.UNSAFE_componentWillRecieveProps==\"function\"&&console.error(\"%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?\",zr);var pa=gt.props!==et;gt.props!==void 0&&pa&&console.error(\"When calling super() in `%s`, make sure to pass up the same props that your component\\'s constructor was passed.\",zr),gt.defaultProps&&console.error(\"Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.\",zr,zr),typeof gt.getSnapshotBeforeUpdate!=\"function\"||typeof gt.componentDidUpdate==\"function\"||_6.has(Q)||(_6.add(Q),console.error(\"%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.\",Eo(Q))),typeof gt.getDerivedStateFromProps==\"function\"&&console.error(\"%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.\",zr),typeof gt.getDerivedStateFromError==\"function\"&&console.error(\"%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.\",zr),typeof Q.getSnapshotBeforeUpdate==\"function\"&&console.error(\"%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.\",zr);var vs=gt.state;vs&&(typeof vs!=\"object\"||Eh(vs))&&console.error(\"%s.state: must be set to an object or null\",zr),typeof gt.getChildContext==\"function\"&&typeof Q.childContextTypes!=\"object\"&&console.error(\"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().\",zr);var cl=gt.state!==void 0?gt.state:null;gt.updater=pv,gt.props=et,gt.state=cl;var hn={queue:[],replace:!1};gt._reactInternals=hn;var Go=Q.contextType;if(gt.context=typeof Go==\"object\"&&Go!==null?Go._currentValue2:gp,gt.state===et){var qo=Eo(Q)||\"Component\";T6.has(qo)||(T6.add(qo),console.error(\"%s: It is not recommended to assign props directly to state because updates to props won\\'t be reflected in state. In most cases, it is better to use props directly.\",qo))}var ri=Q.getDerivedStateFromProps;if(typeof ri==\"function\"){var sr=ri(et,cl);if(sr===void 0){var Ji=Eo(Q)||\"Component\";mS.has(Ji)||(mS.add(Ji),console.error(\"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.\",Ji))}var nr=sr==null?cl:fo({},cl,sr);gt.state=nr}if(typeof Q.getDerivedStateFromProps!=\"function\"&&typeof gt.getSnapshotBeforeUpdate!=\"function\"&&(typeof gt.UNSAFE_componentWillMount==\"function\"||typeof gt.componentWillMount==\"function\")){var Zs=gt.state;if(typeof gt.componentWillMount==\"function\"){if(gt.componentWillMount.__suppressDeprecationWarning!==!0){var Nr=Eo(Q)||\"Unknown\";S6[Nr]||(console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.\\n\\nPlease update the following components: %s`,Nr),S6[Nr]=!0)}gt.componentWillMount()}if(typeof gt.UNSAFE_componentWillMount==\"function\"&&gt.UNSAFE_componentWillMount(),Zs!==gt.state&&(console.error(\"%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component\\'s constructor). Use setState instead.\",Eo(Q)||\"Component\"),pv.enqueueReplaceState(gt,gt.state,null)),hn.queue!==null&&0<hn.queue.length){var Qs=hn.queue,oi=hn.replace;if(hn.queue=null,hn.replace=!1,oi&&Qs.length===1)gt.state=Qs[0];else{for(var yu=oi?Qs[0]:gt.state,Vc=!0,wd=oi?1:0;wd<Qs.length;wd++){var xd=Qs[wd],ts=typeof xd==\"function\"?xd.call(gt,yu,et,void 0):xd;ts!=null&&(Vc?(Vc=!1,yu=fo({},yu,ts)):fo(yu,ts))}gt.state=yu}}else hn.queue=null}var Ed=ES(gt);if(A.status===12)throw null;gt.props!==et&&(bc||console.error(\"It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.\",Eo(Q)||\"a component\"),bc=!0);var Xi=_.keyPath;_.keyPath=D,Za(A,_,Ed,-1),_.keyPath=Xi}else{if(Q.prototype&&typeof Q.prototype.render==\"function\"){var v=Eo(Q)||\"Unknown\";Co[v]||(console.error(\"The <%s /> component appears to have a render method, but doesn\\'t extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.\",v,v),Co[v]=!0)}var E=vh(A,_,D,Q,re,void 0);if(A.status===12)throw null;var N=lf!==0,K=fb,ee=pb;if(Q.contextTypes){var le=Eo(Q)||\"Unknown\";Ev[le]||(Ev[le]=!0,console.error(\"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)\",le))}if(Q&&Q.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.\\n  %s.childContextTypes = ...`,Q.displayName||Q.name||\"Component\"),typeof Q.getDerivedStateFromProps==\"function\"){var ye=Eo(Q)||\"Unknown\";sg[ye]||(console.error(\"%s: Function components do not support getDerivedStateFromProps.\",ye),sg[ye]=!0)}if(typeof Q.contextType==\"object\"&&Q.contextType!==null){var Ae=Eo(Q)||\"Unknown\";d2[Ae]||(console.error(\"%s: Function components do not support contextType.\",Ae),d2[Ae]=!0)}z1(A,_,D,E,N,K,ee)}else if(typeof Q==\"string\"){var Ye=_.blockedSegment;if(Ye===null){var Me=re.children,Fe=_.formatContext,vt=_.keyPath;_.formatContext=Z(Fe,Q,re),_.keyPath=D,Ca(A,_,Me,-1),_.formatContext=Fe,_.keyPath=vt}else{var mt=Xe(Ye.chunks,Q,re,A.resumableState,A.renderState,_.blockedPreamble,_.hoistableState,_.formatContext,Ye.lastPushedText);Ye.lastPushedText=!1;var At=_.formatContext,$e=_.keyPath;if(_.keyPath=D,(_.formatContext=Z(At,Q,re)).insertionMode===hd){var En=vl(A,0,null,_.formatContext,!1,!1);Ye.preambleChildren.push(En),_.blockedSegment=En;try{En.status=6,Ca(A,_,mt,-1),Ur(En.chunks,A.renderState,En.lastPushedText,En.textEmbedded),En.status=Ks}finally{_.blockedSegment=Ye}}else Ca(A,_,mt,-1);_.formatContext=At,_.keyPath=$e;e:{var Yr=Ye.chunks,wn=A.resumableState;switch(Q){case\"title\":case\"style\":case\"script\":case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"img\":case\"input\":case\"keygen\":case\"link\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":break e;case\"body\":if(At.insertionMode<=rl){wn.hasBody=!0;break e}break;case\"html\":if(At.insertionMode===Gs){wn.hasHtml=!0;break e}break;case\"head\":if(At.insertionMode<=rl)break e}Yr.push(rt(Q))}Ye.lastPushedText=!1}}else{switch(Q){case K1:case Ux:case a6:case Xy:var Pn=_.keyPath;_.keyPath=D,Za(A,_,re.children,-1),_.keyPath=Pn;return;case qA:var po=_.blockedSegment;if(po===null){if(re.mode!==\"hidden\"){var pi=_.keyPath;_.keyPath=D,Ca(A,_,re.children,-1),_.keyPath=pi}}else if(re.mode!==\"hidden\"){A.renderState.generateStaticMarkup||po.chunks.push(\"<!--&-->\"),po.lastPushedText=!1;var qn=_.keyPath;_.keyPath=D,Ca(A,_,re.children,-1),_.keyPath=qn,A.renderState.generateStaticMarkup||po.chunks.push(\"<!--/&-->\"),po.lastPushedText=!1}return;case xh:e:{var dn=re.children,wi=re.revealOrder;if(wi===\"forwards\"||wi===\"backwards\"||wi===\"unstable_legacy-backwards\"){if(Eh(dn)){z0(A,_,D,dn,wi);break e}var Ia=n(dn);if(Ia){var Zr=Ia.call(dn);if(Zr){jA(_,dn,-1,Zr,Ia);var Ro=Zr.next();if(!Ro.done){var ka=[];do ka.push(Ro.value),Ro=Zr.next();while(!Ro.done);z0(A,_,D,dn,wi)}break e}}}if(wi===\"together\"){var zi=_.keyPath,Ci=_.row,Io=_.row=bh(null);Io.boundaries=[],Io.together=!0,_.keyPath=D,Za(A,_,dn,-1),--Io.pendingTasks===0&&Qi(A,Io),_.keyPath=zi,_.row=Ci,Ci!==null&&0<Io.pendingTasks&&(Ci.pendingTasks++,Io.next=Ci)}else{var ji=_.keyPath;_.keyPath=D,Za(A,_,dn,-1),_.keyPath=ji}}return;case Y1:case zc:throw Error(\"ReactDOMServer does not yet support scope components.\");case tl:e:if(_.replay!==null){var Js=_.keyPath,Xs=_.formatContext,Wi=_.row;_.keyPath=D,_.formatContext=R(A.resumableState,Xs),_.row=null;var Ko=re.children;try{Ca(A,_,Ko,-1)}finally{_.keyPath=Js,_.formatContext=Xs,_.row=Wi}}else{var Ri=_.keyPath,Oa=_.formatContext,Na=_.row,bu=_.blockedBoundary,ws=_.blockedPreamble,xi=_.hoistableState,vc=_.blockedSegment,ha=re.fallback,jm=re.children,$s=new Set,ii=Mx(A,_.row,$s,null,null);A.trackedPostpones!==null&&(ii.trackedContentKeyPath=D);var wc=vl(A,vc.chunks.length,ii,_.formatContext,!1,!1);vc.children.push(wc),vc.lastPushedText=!1;var In=vl(A,0,null,_.formatContext,!1,!1);if(In.parentFlushed=!0,A.trackedPostpones!==null){var pf=_.componentStack,wp=[D[0],\"Suspense Fallback\",D[2]],Gc=[wp[1],wp[2],[],null];A.trackedPostpones.workingMap.set(wp,Gc),ii.trackedFallbackNode=Gc,_.blockedSegment=wc,_.blockedPreamble=ii.fallbackPreamble,_.keyPath=wp,_.formatContext=F(A.resumableState,Oa),_.componentStack=n6(pf),wc.status=6;try{Ca(A,_,ha,-1),Ur(wc.chunks,A.renderState,wc.lastPushedText,wc.textEmbedded),wc.status=Ks}catch(Rh){throw wc.status=A.status===12?bs:To,Rh}finally{_.blockedSegment=vc,_.blockedPreamble=ws,_.keyPath=Ri,_.formatContext=Oa}var xp=Vy(A,null,jm,-1,ii,In,ii.contentPreamble,ii.contentState,_.abortSet,D,R(A.resumableState,_.formatContext),_.context,_.treeContext,null,pf,gp,_.debugTask);ap(xp),A.pingedTasks.push(xp)}else{_.blockedBoundary=ii,_.blockedPreamble=ii.contentPreamble,_.hoistableState=ii.contentState,_.blockedSegment=In,_.keyPath=D,_.formatContext=R(A.resumableState,Oa),_.row=null,In.status=6;try{if(Ca(A,_,jm,-1),Ur(In.chunks,A.renderState,In.lastPushedText,In.textEmbedded),In.status=Ks,Zy(ii,In),ii.pendingTasks===0&&ii.status===Il){if(ii.status=Ks,!Wy(A,ii)){Na!==null&&--Na.pendingTasks===0&&Qi(A,Na),A.pendingRootTasks===0&&_.blockedPreamble&&V0(A);break e}}else Na!==null&&Na.together&&H0(A,Na)}catch(Rh){if(ii.status=ti,A.status===12){In.status=bs;var ec=A.fatalError}else In.status=To,ec=Rh;var hf=Om(_.componentStack),Wm=uu(A,ec,hf,_.debugTask);Gy(ii,Wm,ec,hf,!1),Dx(A,ii)}finally{_.blockedBoundary=bu,_.blockedPreamble=ws,_.hoistableState=xi,_.blockedSegment=vc,_.keyPath=Ri,_.formatContext=Oa,_.row=Na}var xc=Vy(A,null,ha,-1,bu,wc,ii.fallbackPreamble,ii.fallbackState,$s,[D[0],\"Suspense Fallback\",D[2]],F(A.resumableState,_.formatContext),_.context,_.treeContext,_.row,n6(_.componentStack),gp,_.debugTask);ap(xc),A.pingedTasks.push(xc)}}return}if(typeof Q==\"object\"&&Q!==null)switch(Q.$$typeof){case Y0:if(\"ref\"in re){var Ep={};for(var Vi in re)Vi!==\"ref\"&&(Ep[Vi]=re[Vi])}else Ep=re;var Ap=vh(A,_,D,Q.render,Ep,pe);z1(A,_,D,Ap,lf!==0,fb,pb);return;case hc:j0(A,_,D,Q.type,re,pe);return;case K0:var mf=re.value,Pa=re.children,ns=_.context,qc=_.keyPath,Kc=Q._currentValue2;Q._currentValue2=mf,Q._currentRenderer2!==void 0&&Q._currentRenderer2!==null&&Q._currentRenderer2!==lb&&console.error(\"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.\"),Q._currentRenderer2=lb;var xs=Th,ma={parent:xs,depth:xs===null?0:xs.depth+1,context:Q,parentValue:Kc,value:mf};Th=ma,_.context=ma,_.keyPath=D,Za(A,_,Pa,-1);var kl=Th;if(kl===null)throw Error(\"Tried to pop a Context at the root of the app. This is a bug in React.\");kl.context!==Q&&console.error(\"The parent context is not the expected context. This is probably a bug in React.\"),kl.context._currentValue2=kl.parentValue,Q._currentRenderer2!==void 0&&Q._currentRenderer2!==null&&Q._currentRenderer2!==lb&&console.error(\"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.\"),Q._currentRenderer2=lb;var Yc=Th=kl.parent;_.context=Yc,_.keyPath=qc,ns!==_.context&&console.error(\"Popping the context provider did not return back to the original snapshot. This is a bug in React.\");return;case q1:var Ad=Q._context,vu=re.children;typeof vu!=\"function\"&&console.error(\"A context consumer was rendered with multiple children, or a child that isn\\'t a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.\");var cg=vu(Ad._currentValue2),rs=_.keyPath;_.keyPath=D,Za(A,_,cg,-1),_.keyPath=rs;return;case up:var wu=l2(Q);if(A.status===12)throw null;j0(A,_,D,wu,re,pe);return}var Sd=\"\";throw(Q===void 0||typeof Q==\"object\"&&Q!==null&&Object.keys(Q).length===0)&&(Sd+=\" You likely forgot to export your component from the file it\\'s defined in, or you might have mixed up default and named imports.\"),Error(\"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: \"+((Q==null?Q:typeof Q)+\".\"+Sd))}}function Nm(A,_,D,Q,re){var pe=_.replay,xe=_.blockedBoundary,ke=vl(A,0,null,_.formatContext,!1,!1);ke.id=D,ke.parentFlushed=!0;try{_.replay=null,_.blockedSegment=ke,Ca(A,_,Q,re),ke.status=Ks,xe===null?A.completedRootSegment=ke:(Zy(xe,ke),xe.parentFlushed&&A.partialBoundaries.push(xe))}finally{_.replay=pe,_.blockedSegment=null}}function Ya(A,_,D,Q,re,pe,xe,ke,st,Ue){pe=Ue.nodes;for(var et=0;et<pe.length;et++){var Mt=pe[et];if(re===Mt[1]){if(Mt.length===4){if(Q!==null&&Q!==Mt[0])throw Error(\"Expected the resume to render <\"+Mt[0]+\"> in this slot but instead it rendered <\"+Q+\">. The tree doesn\\'t match so React will fallback to client rendering.\");var Ft=Mt[2];Q=Mt[3],re=_.node,_.replay={nodes:Ft,slots:Q,pendingTasks:1};try{if(j0(A,_,D,xe,ke,st),_.replay.pendingTasks===1&&0<_.replay.nodes.length)throw Error(\"Couldn\\'t find all resumable slots by key/index during replaying. The tree doesn\\'t match so React will fallback to client rendering.\");_.replay.pendingTasks--}catch(pa){if(typeof pa==\"object\"&&pa!==null&&(pa===gd||typeof pa.then==\"function\"))throw _.node===re?_.replay=Ue:pe.splice(et,1),pa;_.replay.pendingTasks--,xe=Om(_.componentStack),ke=A,A=_.blockedBoundary,D=pa,st=Q,Q=uu(ke,D,xe,_.debugTask),wh(ke,A,Ft,st,D,Q,xe,!1)}_.replay=Ue}else{if(xe!==tl)throw Error(\"Expected the resume to render <Suspense> in this slot but instead it rendered <\"+(Eo(xe)||\"Unknown\")+\">. The tree doesn\\'t match so React will fallback to client rendering.\");e:{Ue=void 0,Q=Mt[5],xe=Mt[2],st=Mt[3],re=Mt[4]===null?[]:Mt[4][2],Mt=Mt[4]===null?null:Mt[4][3];var Lt=_.keyPath,gt=_.formatContext,Qn=_.row,ni=_.replay,Nn=_.blockedBoundary,to=_.hoistableState,Ys=ke.children,gu=ke.fallback,zr=new Set;ke=Mx(A,_.row,zr,null,null),ke.parentFlushed=!0,ke.rootSegmentID=Q,_.blockedBoundary=ke,_.hoistableState=ke.contentState,_.keyPath=D,_.formatContext=R(A.resumableState,gt),_.row=null,_.replay={nodes:xe,slots:st,pendingTasks:1};try{if(Ca(A,_,Ys,-1),_.replay.pendingTasks===1&&0<_.replay.nodes.length)throw Error(\"Couldn\\'t find all resumable slots by key/index during replaying. The tree doesn\\'t match so React will fallback to client rendering.\");if(_.replay.pendingTasks--,ke.pendingTasks===0&&ke.status===Il){ke.status=Ks,A.completedBoundaries.push(ke);break e}}catch(pa){ke.status=ti,Ft=Om(_.componentStack),Ue=uu(A,pa,Ft,_.debugTask),Gy(ke,Ue,pa,Ft,!1),_.replay.pendingTasks--,A.clientRenderedBoundaries.push(ke)}finally{_.blockedBoundary=Nn,_.hoistableState=to,_.replay=ni,_.keyPath=Lt,_.formatContext=gt,_.row=Qn}ke=F0(A,null,{nodes:re,slots:Mt,pendingTasks:0},gu,-1,Nn,ke.fallbackState,zr,[D[0],\"Suspense Fallback\",D[2]],F(A.resumableState,_.formatContext),_.context,_.treeContext,_.row,n6(_.componentStack),gp,_.debugTask),ap(ke),A.pingedTasks.push(ke)}}pe.splice(et,1);break}}}function jA(A,_,D,Q,re){Q===_?(D!==-1||A.componentStack===null||typeof A.componentStack.type!=\"function\"||Object.prototype.toString.call(A.componentStack.type)!==\"[object GeneratorFunction]\"||Object.prototype.toString.call(Q)!==\"[object Generator]\")&&(Av||console.error(\"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items.\"),Av=!0):_.entries!==re||bd||(console.error(\"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"),bd=!0)}function Za(A,_,D,Q){_.replay!==null&&typeof _.replay.slots==\"number\"?Nm(A,_,_.replay.slots,D,Q):(_.node=D,_.childIndex=Q,D=_.componentStack,Q=_.debugTask,ap(_),Pm(A,_),_.componentStack=D,_.debugTask=Q)}function Pm(A,_){var D=_.node,Q=_.childIndex;if(D!==null){if(typeof D==\"object\"){switch(D.$$typeof){case Hc:var re=D.type,pe=D.key;D=D.props;var xe=D.ref;xe=xe!==void 0?xe:null;var ke=_.debugTask,st=Eo(re);pe=pe??(Q===-1?0:Q);var Ue=[_.keyPath,st,pe];_.replay!==null?ke?ke.run(Ya.bind(null,A,_,Ue,st,pe,Q,re,D,xe,_.replay)):Ya(A,_,Ue,st,pe,Q,re,D,xe,_.replay):ke?ke.run(j0.bind(null,A,_,Ue,re,D,xe)):j0(A,_,Ue,re,D,xe);return;case G1:throw Error(\"Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.\");case up:if(re=l2(D),A.status===12)throw null;Za(A,_,re,Q);return}if(Eh(D)){qy(A,_,D,Q);return}if((pe=n(D))&&(re=pe.call(D))){if(jA(_,D,Q,re,pe),D=re.next(),!D.done){pe=[];do pe.push(D.value),D=re.next();while(!D.done);qy(A,_,pe,Q)}return}if(typeof D.then==\"function\")return _.thenableState=null,Za(A,_,dd(D),Q);if(D.$$typeof===K0)return Za(A,_,D._currentValue2,Q);throw A=Object.prototype.toString.call(D),Error(\"Objects are not valid as a React child (found: \"+(A===\"[object Object]\"?\"object with keys {\"+Object.keys(D).join(\", \")+\"}\":A)+\"). If you meant to render a collection of children, use an array instead.\")}typeof D==\"string\"?(_=_.blockedSegment,_!==null&&(_.lastPushedText=eo(_.chunks,D,A.renderState,_.lastPushedText))):typeof D==\"number\"||typeof D==\"bigint\"?(_=_.blockedSegment,_!==null&&(_.lastPushedText=eo(_.chunks,\"\"+D,A.renderState,_.lastPushedText))):(typeof D==\"function\"&&(A=D.displayName||D.name||\"Component\",console.error(\"Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\",A,A)),typeof D==\"symbol\"&&console.error(`Symbols are not valid as a React child.\\n  %s`,String(D)))}}function ms(A,_,D){if(D!==null&&typeof D==\"object\"&&(D.$$typeof===Hc||D.$$typeof===G1)&&D._store&&(!D._store.validated&&D.key==null||D._store.validated===2)){if(typeof D._store!=\"object\")throw Error(\"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.\");D._store.validated=1;var Q=A.didWarnForKey;if(Q==null&&(Q=A.didWarnForKey=new WeakSet),A=_.componentStack,A!==null&&!Q.has(A)){Q.add(A);var re=Eo(D.type);Q=D._owner;var pe=A.owner;if(A=\"\",pe&&typeof pe.type<\"u\"){var xe=Eo(pe.type);xe&&(A=`\\n\\nCheck the render method of \\\\``+xe+\"`.\")}A||re&&(A=`\\n\\nCheck the top-level render call using <`+re+\">.\"),re=\"\",Q!=null&&pe!==Q&&(pe=null,typeof Q.type<\"u\"?pe=Eo(Q.type):typeof Q.name==\"string\"&&(pe=Q.name),pe&&(re=\" It was passed a child from \"+pe+\".\")),Q=_.componentStack,_.componentStack={parent:_.componentStack,type:D.type,owner:D._owner,stack:D._debugStack},console.error(\\'Each child in a list should have a unique \"key\" prop.%s%s See https://react.dev/link/warning-keys for more information.\\',A,re),_.componentStack=Q}}}function qy(A,_,D,Q){var re=_.keyPath,pe=_.componentStack,xe=_.debugTask;if(gh(_,_.node._debugInfo),Q!==-1&&(_.keyPath=[_.keyPath,\"Fragment\",Q],_.replay!==null)){for(var ke=_.replay,st=ke.nodes,Ue=0;Ue<st.length;Ue++){var et=st[Ue];if(et[1]===Q){Q=et[2],et=et[3],_.replay={nodes:Q,slots:et,pendingTasks:1};try{if(qy(A,_,D,-1),_.replay.pendingTasks===1&&0<_.replay.nodes.length)throw Error(\"Couldn\\'t find all resumable slots by key/index during replaying. The tree doesn\\'t match so React will fallback to client rendering.\");_.replay.pendingTasks--}catch(gt){if(typeof gt==\"object\"&&gt!==null&&(gt===gd||typeof gt.then==\"function\"))throw gt;_.replay.pendingTasks--;var Mt=Om(_.componentStack);D=_.blockedBoundary;var Ft=gt,Lt=et;et=uu(A,Ft,Mt,_.debugTask),wh(A,D,Q,Lt,Ft,et,Mt,!1)}_.replay=ke,st.splice(Ue,1);break}}_.keyPath=re,_.componentStack=pe,_.debugTask=xe;return}if(ke=_.treeContext,st=D.length,_.replay!==null&&(Ue=_.replay.slots,Ue!==null&&typeof Ue==\"object\")){for(Q=0;Q<st;Q++)et=D[Q],_.treeContext=_a(ke,st,Q),Ft=Ue[Q],typeof Ft==\"number\"?(Nm(A,_,Ft,et,Q),delete Ue[Q]):Ca(A,_,et,Q);_.treeContext=ke,_.keyPath=re,_.componentStack=pe,_.debugTask=xe;return}for(Ue=0;Ue<st;Ue++)Q=D[Ue],ms(A,_,Q),_.treeContext=_a(ke,st,Ue),Ca(A,_,Q,Ue);_.treeContext=ke,_.keyPath=re,_.componentStack=pe,_.debugTask=xe}function Uc(A,_,D){if(D.status=yd,D.rootSegmentID=A.nextSegmentId++,A=D.trackedContentKeyPath,A===null)throw Error(\"It should not be possible to postpone at the root. This is a bug in React.\");var Q=D.trackedFallbackNode,re=[],pe=_.workingMap.get(A);return pe===void 0?(D=[A[1],A[2],re,null,Q,D.rootSegmentID],_.workingMap.set(A,D),Ja(D,A[0],_),D):(pe[4]=Q,pe[5]=D.rootSegmentID,pe)}function j1(A,_,D,Q){Q.status=yd;var re=D.keyPath,pe=D.blockedBoundary;if(pe===null)Q.id=A.nextSegmentId++,_.rootSlots=Q.id,A.completedRootSegment!==null&&(A.completedRootSegment.status=yd);else{if(pe!==null&&pe.status===Il){var xe=Uc(A,_,pe);if(pe.trackedContentKeyPath===re&&D.childIndex===-1){Q.id===-1&&(Q.id=Q.parentFlushed?pe.rootSegmentID:A.nextSegmentId++),xe[3]=Q.id;return}}if(Q.id===-1&&(Q.id=Q.parentFlushed&&pe!==null?pe.rootSegmentID:A.nextSegmentId++),D.childIndex===-1)re===null?_.rootSlots=Q.id:(D=_.workingMap.get(re),D===void 0?(D=[re[1],re[2],[],Q.id],Ja(D,re[0],_)):D[3]=Q.id);else{if(re===null){if(A=_.rootSlots,A===null)A=_.rootSlots={};else if(typeof A==\"number\")throw Error(\"It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React.\")}else if(pe=_.workingMap,xe=pe.get(re),xe===void 0)A={},xe=[re[1],re[2],[],A],pe.set(re,xe),Ja(xe,re[0],_);else if(A=xe[3],A===null)A=xe[3]={};else if(typeof A==\"number\")throw Error(\"It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React.\");A[D.childIndex]=Q.id}}}function Dx(A,_){A=A.trackedPostpones,A!==null&&(_=_.trackedContentKeyPath,_!==null&&(_=A.workingMap.get(_),_!==void 0&&(_.length=4,_[2]=[],_[3]=null)))}function Ky(A,_,D){return F0(A,D,_.replay,_.node,_.childIndex,_.blockedBoundary,_.hoistableState,_.abortSet,_.keyPath,_.formatContext,_.context,_.treeContext,_.row,_.componentStack,gp,_.debugTask)}function r6(A,_,D){var Q=_.blockedSegment,re=vl(A,Q.chunks.length,null,_.formatContext,Q.lastPushedText,!0);return Q.children.push(re),Q.lastPushedText=!1,Vy(A,D,_.node,_.childIndex,_.blockedBoundary,re,_.blockedPreamble,_.hoistableState,_.abortSet,_.keyPath,_.formatContext,_.context,_.treeContext,_.row,_.componentStack,gp,_.debugTask)}function Ca(A,_,D,Q){var re=_.formatContext,pe=_.context,xe=_.keyPath,ke=_.treeContext,st=_.componentStack,Ue=_.debugTask,et=_.blockedSegment;if(et===null){et=_.replay;try{return Za(A,_,D,Q)}catch(Lt){if(Ju(),D=Lt===gd?Mo():Lt,A.status!==12&&typeof D==\"object\"&&D!==null){if(typeof D.then==\"function\"){Q=Lt===gd?Dc():null,A=Ky(A,_,Q).ping,D.then(A,A),_.formatContext=re,_.context=pe,_.keyPath=xe,_.treeContext=ke,_.componentStack=st,_.replay=et,_.debugTask=Ue,Qu(pe);return}if(D.message===\"Maximum call stack size exceeded\"){D=Lt===gd?Dc():null,D=Ky(A,_,D),A.pingedTasks.push(D),_.formatContext=re,_.context=pe,_.keyPath=xe,_.treeContext=ke,_.componentStack=st,_.replay=et,_.debugTask=Ue,Qu(pe);return}}}}else{var Mt=et.children.length,Ft=et.chunks.length;try{return Za(A,_,D,Q)}catch(Lt){if(Ju(),et.children.length=Mt,et.chunks.length=Ft,D=Lt===gd?Mo():Lt,A.status!==12&&typeof D==\"object\"&&D!==null){if(typeof D.then==\"function\"){et=D,D=Lt===gd?Dc():null,A=r6(A,_,D).ping,et.then(A,A),_.formatContext=re,_.context=pe,_.keyPath=xe,_.treeContext=ke,_.componentStack=st,_.debugTask=Ue,Qu(pe);return}if(D.message===\"Maximum call stack size exceeded\"){et=Lt===gd?Dc():null,et=r6(A,_,et),A.pingedTasks.push(et),_.formatContext=re,_.context=pe,_.keyPath=xe,_.treeContext=ke,_.componentStack=st,_.debugTask=Ue,Qu(pe);return}}}}throw _.formatContext=re,_.context=pe,_.keyPath=xe,_.treeContext=ke,Qu(pe),D}function o6(A){var _=A.blockedBoundary,D=A.blockedSegment;D!==null&&(D.status=bs,sp(this,_,A.row,D))}function wh(A,_,D,Q,re,pe,xe,ke){for(var st=0;st<D.length;st++){var Ue=D[st];if(Ue.length===4)wh(A,_,Ue[2],Ue[3],re,pe,xe,ke);else{var et=A;Ue=Ue[5];var Mt=re,Ft=pe,Lt=xe,gt=ke,Qn=Mx(et,null,new Set,null,null);Qn.parentFlushed=!0,Qn.rootSegmentID=Ue,Qn.status=ti,Gy(Qn,Ft,Mt,Lt,gt),Qn.parentFlushed&&et.clientRenderedBoundaries.push(Qn)}}if(D.length=0,Q!==null){if(_===null)throw Error(\"We should not have any resumable nodes in the shell. This is a bug in React.\");if(_.status!==ti&&(_.status=ti,Gy(_,pe,re,xe,ke),_.parentFlushed&&A.clientRenderedBoundaries.push(_)),typeof Q==\"object\")for(var ni in Q)delete Q[ni]}}function Yy(A,_,D){var Q=A.blockedBoundary,re=A.blockedSegment;if(re!==null){if(re.status===6)return;re.status=bs}var pe=Om(A.componentStack),xe=A.node;if(xe!==null&&typeof xe==\"object\"&&zA(A,xe._debugInfo),Q===null){if(_.status!==13&&_.status!==ff){if(Q=A.replay,Q===null){_.trackedPostpones!==null&&re!==null?(Q=_.trackedPostpones,uu(_,D,pe,A.debugTask),j1(_,Q,A,re),sp(_,null,A.row,re)):(uu(_,D,pe,A.debugTask),yh(_,D,pe,A.debugTask));return}Q.pendingTasks--,Q.pendingTasks===0&&0<Q.nodes.length&&(re=uu(_,D,pe,null),wh(_,null,Q.nodes,Q.slots,D,re,pe,!0)),_.pendingRootTasks--,_.pendingRootTasks===0&&VA(_)}}else{if(xe=_.trackedPostpones,Q.status!==ti){if(xe!==null&&re!==null)return uu(_,D,pe,A.debugTask),j1(_,xe,A,re),Q.fallbackAbortableTasks.forEach(function(ke){return Yy(ke,_,D)}),Q.fallbackAbortableTasks.clear(),sp(_,Q,A.row,re);Q.status=ti,re=uu(_,D,pe,A.debugTask),Q.status=ti,Gy(Q,re,D,pe,!0),Dx(_,Q),Q.parentFlushed&&_.clientRenderedBoundaries.push(Q)}Q.pendingTasks--,pe=Q.row,pe!==null&&--pe.pendingTasks===0&&Qi(_,pe),Q.fallbackAbortableTasks.forEach(function(ke){return Yy(ke,_,D)}),Q.fallbackAbortableTasks.clear()}A=A.row,A!==null&&--A.pendingTasks===0&&Qi(_,A),_.allPendingTasks--,_.allPendingTasks===0&&el(_)}function WA(A,_){try{var D=A.renderState,Q=D.onHeaders;if(Q){var re=D.headers;if(re){D.headers=null;var pe=re.preconnects;if(re.fontPreloads&&(pe&&(pe+=\", \"),pe+=re.fontPreloads),re.highImagePreloads&&(pe&&(pe+=\", \"),pe+=re.highImagePreloads),!_){var xe=D.styles.values(),ke=xe.next();e:for(;0<re.remainingCapacity&&!ke.done;ke=xe.next())for(var st=ke.value.sheets.values(),Ue=st.next();0<re.remainingCapacity&&!Ue.done;Ue=st.next()){var et=Ue.value,Mt=et.props,Ft=Mt.href,Lt=et.props,gt=it(Lt.href,\"style\",{crossOrigin:Lt.crossOrigin,integrity:Lt.integrity,nonce:Lt.nonce,type:Lt.type,fetchPriority:Lt.fetchPriority,referrerPolicy:Lt.referrerPolicy,media:Lt.media});if(0<=(re.remainingCapacity-=gt.length+2))D.resets.style[Ft]=Xa,pe&&(pe+=\", \"),pe+=gt,D.resets.style[Ft]=typeof Mt.crossOrigin==\"string\"||typeof Mt.integrity==\"string\"?[Mt.crossOrigin,Mt.integrity]:Xa;else break e}}Q(pe?{Link:pe}:{})}}}catch(Qn){uu(A,Qn,{},null)}}function VA(A){A.trackedPostpones===null&&WA(A,!0),A.trackedPostpones===null&&V0(A),A.onShellError=ln,A=A.onShellReady,A()}function el(A){WA(A,A.trackedPostpones===null?!0:A.completedRootSegment===null||A.completedRootSegment.status!==yd),V0(A),A=A.onAllReady,A()}function Zy(A,_){if(_.chunks.length===0&&_.children.length===1&&_.children[0].boundary===null&&_.children[0].id===-1){var D=_.children[0];D.id=_.id,D.parentFlushed=!0,D.status!==Ks&&D.status!==bs&&D.status!==To||Zy(A,D)}else A.completedSegments.push(_)}function sp(A,_,D,Q){if(D!==null&&(--D.pendingTasks===0?Qi(A,D):D.together&&H0(A,D)),A.allPendingTasks--,_===null){if(Q!==null&&Q.parentFlushed){if(A.completedRootSegment!==null)throw Error(\"There can only be one root segment. This is a bug in React.\");A.completedRootSegment=Q}A.pendingRootTasks--,A.pendingRootTasks===0&&VA(A)}else if(_.pendingTasks--,_.status!==ti)if(_.pendingTasks===0){if(_.status===Il&&(_.status=Ks),Q!==null&&Q.parentFlushed&&(Q.status===Ks||Q.status===bs)&&Zy(_,Q),_.parentFlushed&&A.completedBoundaries.push(_),_.status===Ks)D=_.row,D!==null&&Mn(D.hoistables,_.contentState),Wy(A,_)||(_.fallbackAbortableTasks.forEach(o6,A),_.fallbackAbortableTasks.clear(),D!==null&&--D.pendingTasks===0&&Qi(A,D)),A.pendingRootTasks===0&&A.trackedPostpones===null&&_.contentPreamble!==null&&V0(A);else if(_.status===yd&&(_=_.row,_!==null)){if(A.trackedPostpones!==null){D=A.trackedPostpones;var re=_.next;if(re!==null&&(Q=re.boundaries,Q!==null))for(re.boundaries=null,re=0;re<Q.length;re++){var pe=Q[re];Uc(A,D,pe),sp(A,pe,null,null)}}--_.pendingTasks===0&&Qi(A,_)}}else Q===null||!Q.parentFlushed||Q.status!==Ks&&Q.status!==bs||(Zy(_,Q),_.completedSegments.length===1&&_.parentFlushed&&A.partialBoundaries.push(_)),_=_.row,_!==null&&_.together&&H0(A,_);A.allPendingTasks===0&&el(A)}function W0(A){if(A.status!==ff&&A.status!==13){var _=Th,D=Ws.H;Ws.H=C4;var Q=Ws.A;Ws.A=R4;var re=Hi;Hi=A;var pe=Ws.getCurrentStack;Ws.getCurrentStack=F1;var xe=ys;ys=A.resumableState;try{var ke=A.pingedTasks,st;for(st=0;st<ke.length;st++){var Ue=A,et=ke[st],Mt=et.blockedSegment;if(Mt===null){var Ft=void 0,Lt=Ue;if(Ue=et,Ue.replay.pendingTasks!==0){Qu(Ue.context),Ft=sl,sl=Ue;try{if(typeof Ue.replay.slots==\"number\"?Nm(Lt,Ue,Ue.replay.slots,Ue.node,Ue.childIndex):Pm(Lt,Ue),Ue.replay.pendingTasks===1&&0<Ue.replay.nodes.length)throw Error(\"Couldn\\'t find all resumable slots by key/index during replaying. The tree doesn\\'t match so React will fallback to client rendering.\");Ue.replay.pendingTasks--,Ue.abortSet.delete(Ue),sp(Lt,Ue.blockedBoundary,Ue.row,null)}catch(oi){Ju();var gt=oi===gd?Mo():oi;if(typeof gt==\"object\"&&gt!==null&&typeof gt.then==\"function\"){var Qn=Ue.ping;gt.then(Qn,Qn),Ue.thenableState=oi===gd?Dc():null}else{Ue.replay.pendingTasks--,Ue.abortSet.delete(Ue);var ni=Om(Ue.componentStack),Nn=void 0,to=Lt,Ys=Ue.blockedBoundary,gu=Lt.status===12?Lt.fatalError:gt,zr=ni,pa=Ue.replay.nodes,vs=Ue.replay.slots;Nn=uu(to,gu,zr,Ue.debugTask),wh(to,Ys,pa,vs,gu,Nn,zr,!1),Lt.pendingRootTasks--,Lt.pendingRootTasks===0&&VA(Lt),Lt.allPendingTasks--,Lt.allPendingTasks===0&&el(Lt)}}finally{sl=Ft}}}else if(Lt=Ft=void 0,Nn=et,to=Mt,to.status===Il){to.status=6,Qu(Nn.context),Lt=sl,sl=Nn;var cl=to.children.length,hn=to.chunks.length;try{Pm(Ue,Nn),Ur(to.chunks,Ue.renderState,to.lastPushedText,to.textEmbedded),Nn.abortSet.delete(Nn),to.status=Ks,sp(Ue,Nn.blockedBoundary,Nn.row,to)}catch(oi){Ju(),to.children.length=cl,to.chunks.length=hn;var Go=oi===gd?Mo():Ue.status===12?Ue.fatalError:oi;if(Ue.status===12&&Ue.trackedPostpones!==null){var qo=Ue.trackedPostpones,ri=Om(Nn.componentStack);Nn.abortSet.delete(Nn),uu(Ue,Go,ri,Nn.debugTask),j1(Ue,qo,Nn,to),sp(Ue,Nn.blockedBoundary,Nn.row,to)}else if(typeof Go==\"object\"&&Go!==null&&typeof Go.then==\"function\"){to.status=Il,Nn.thenableState=oi===gd?Dc():null;var sr=Nn.ping;Go.then(sr,sr)}else{var Ji=Om(Nn.componentStack);Nn.abortSet.delete(Nn),to.status=To;var nr=Nn.blockedBoundary,Zs=Nn.row,Nr=Nn.debugTask;if(Zs!==null&&--Zs.pendingTasks===0&&Qi(Ue,Zs),Ue.allPendingTasks--,Ft=uu(Ue,Go,Ji,Nr),nr===null)yh(Ue,Go,Ji,Nr);else if(nr.pendingTasks--,nr.status!==ti){nr.status=ti,Gy(nr,Ft,Go,Ji,!1),Dx(Ue,nr);var Qs=nr.row;Qs!==null&&--Qs.pendingTasks===0&&Qi(Ue,Qs),nr.parentFlushed&&Ue.clientRenderedBoundaries.push(nr),Ue.pendingRootTasks===0&&Ue.trackedPostpones===null&&nr.contentPreamble!==null&&V0(Ue)}Ue.allPendingTasks===0&&el(Ue)}}finally{sl=Lt}}}ke.splice(0,st),A.destination!==null&&lu(A,A.destination)}catch(oi){ke={},uu(A,oi,ke,null),yh(A,oi,ke,null)}finally{ys=xe,Ws.H=D,Ws.A=Q,Ws.getCurrentStack=pe,D===C4&&Qu(_),Hi=re}}}function Bx(A,_,D){_.preambleChildren.length&&D.push(_.preambleChildren);for(var Q=!1,re=0;re<_.children.length;re++)Q=Lx(A,_.children[re],D)||Q;return Q}function Lx(A,_,D){var Q=_.boundary;if(Q===null)return Bx(A,_,D);var re=Q.contentPreamble,pe=Q.fallbackPreamble;if(re===null||pe===null)return!1;switch(Q.status){case Ks:if(wt(A.renderState,re),A.byteSize+=Q.byteSize,_=Q.completedSegments[0],!_)throw Error(\"A previously unvisited boundary must have exactly one root segment. This is a bug in React.\");return Bx(A,_,D);case yd:if(A.trackedPostpones!==null)return!0;case ti:if(_.status===Ks)return wt(A.renderState,pe),Bx(A,_,D);default:return!0}}function V0(A){if(A.completedRootSegment&&A.completedPreambleSegments===null){var _=[],D=A.byteSize,Q=Lx(A,A.completedRootSegment,_),re=A.renderState.preamble;Q===!1||re.headChunks&&re.bodyChunks?A.completedPreambleSegments=_:A.byteSize=D}}function W1(A,_,D,Q){switch(D.parentFlushed=!0,D.status){case Il:D.id=A.nextSegmentId++;case yd:return Q=D.id,D.lastPushedText=!1,D.textEmbedded=!1,A=A.renderState,_.push(hp),_.push(A.placeholderPrefix),A=Q.toString(16),_.push(A),_.push(Sh);case Ks:D.status=xv;var re=!0,pe=D.chunks,xe=0;D=D.children;for(var ke=0;ke<D.length;ke++){for(re=D[ke];xe<re.index;xe++)_.push(pe[xe]);re=G0(A,_,re,Q)}for(;xe<pe.length-1;xe++)_.push(pe[xe]);return xe<pe.length&&(re=_.push(pe[xe])),re;case bs:return!0;default:throw Error(\"Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.\")}}function G0(A,_,D,Q){var re=D.boundary;if(re===null)return W1(A,_,D,Q);if(re.parentFlushed=!0,re.status===ti){var pe=re.row;if(pe!==null&&--pe.pendingTasks===0&&Qi(A,pe),!A.renderState.generateStaticMarkup){var xe=re.errorDigest,ke=re.errorMessage;pe=re.errorStack,re=re.errorComponentStack,_.push(iv),_.push(m4),xe&&(_.push(pu),xe=J(xe),_.push(xe),_.push(Yx)),ke&&(_.push(_l),ke=J(ke),_.push(ke),_.push(Yx)),pe&&(_.push(Fi),pe=J(pe),_.push(pe),_.push(Yx)),re&&(_.push(_h),pe=J(re),_.push(pe),_.push(Yx)),_.push($A)}return W1(A,_,D,Q),A=A.renderState.generateStaticMarkup?!0:_.push(Kx),A}if(re.status!==Ks)return re.status===Il&&(re.rootSegmentID=A.nextSegmentId++),0<re.completedSegments.length&&A.partialBoundaries.push(re),mn(_,A.renderState,re.rootSegmentID),Q&&Mn(Q,re.fallbackState),W1(A,_,D,Q),_.push(Kx);if(!Ch&&Wy(A,re)&&vd+re.byteSize>A.progressiveChunkSize)return re.rootSegmentID=A.nextSegmentId++,A.completedBoundaries.push(re),mn(_,A.renderState,re.rootSegmentID),W1(A,_,D,Q),_.push(Kx);if(vd+=re.byteSize,Q&&Mn(Q,re.contentState),D=re.row,D!==null&&Wy(A,re)&&--D.pendingTasks===0&&Qi(A,D),A.renderState.generateStaticMarkup||_.push(ab),D=re.completedSegments,D.length!==1)throw Error(\"A previously unvisited boundary must have exactly one root segment. This is a bug in React.\");return G0(A,_,D[0],Q),A=A.renderState.generateStaticMarkup?!0:_.push(Kx),A}function Qa(A,_,D,Q){return St(_,A.renderState,D.parentFormatContext,D.id),G0(A,_,D,Q),rn(_,D.parentFormatContext)}function q0(A,_,D){vd=D.byteSize;for(var Q=D.completedSegments,re=0;re<Q.length;re++)of(A,_,D,Q[re]);Q.length=0,Q=D.row,Q!==null&&Wy(A,D)&&--Q.pendingTasks===0&&Qi(A,Q),Fn(_,D.contentState,A.renderState),Q=A.resumableState,A=A.renderState,re=D.rootSegmentID,D=D.contentState;var pe=A.stylesToHoist;return A.stylesToHoist=!1,_.push(A.startInlineScript),_.push($o),pe?((Q.instructions&nb)===Hr&&(Q.instructions|=nb,_.push(v4)),(Q.instructions&Vs)===Hr&&(Q.instructions|=Vs,_.push(cb)),(Q.instructions&eg)===Hr?(Q.instructions|=eg,_.push($x)):_.push(g6)):((Q.instructions&Vs)===Hr&&(Q.instructions|=Vs,_.push(cb)),_.push(iS)),Q=re.toString(16),_.push(A.boundaryPrefix),_.push(Q),_.push(aS),_.push(A.segmentPrefix),_.push(Q),pe?(_.push(g4),$r(_,D)):_.push(y4),D=_.push(b4),ot(_,A)&&D}function of(A,_,D,Q){if(Q.status===xv)return!0;var re=D.contentState,pe=Q.id;if(pe===-1){if((Q.id=D.rootSegmentID)===-1)throw Error(\"A root segment ID must have been assigned by now. This is a bug in React.\");return Qa(A,_,Q,re)}return pe===D.rootSegmentID?Qa(A,_,Q,re):(Qa(A,_,Q,re),D=A.resumableState,A=A.renderState,_.push(A.startInlineScript),_.push($o),(D.instructions&Q1)===Hr?(D.instructions|=Q1,_.push(ng)):_.push(Hm),_.push(A.segmentPrefix),pe=pe.toString(16),_.push(pe),_.push(mp),_.push(A.placeholderPrefix),_.push(pe),_=_.push(oS),_)}function lu(A,_){try{if(!(0<A.pendingRootTasks)){var D,Q=A.completedRootSegment;if(Q!==null){if(Q.status===yd)return;var re=A.completedPreambleSegments;if(re===null)return;vd=A.byteSize;var pe=A.resumableState,xe=A.renderState,ke=xe.preamble,st=ke.htmlChunks,Ue=ke.headChunks,et;if(st){for(et=0;et<st.length;et++)_.push(st[et]);if(Ue)for(et=0;et<Ue.length;et++)_.push(Ue[et]);else{var Mt=qe(\"head\");_.push(Mt),_.push($o)}}else if(Ue)for(et=0;et<Ue.length;et++)_.push(Ue[et]);var Ft=xe.charsetChunks;for(et=0;et<Ft.length;et++)_.push(Ft[et]);Ft.length=0,xe.preconnects.forEach(fn,_),xe.preconnects.clear();var Lt=xe.viewportChunks;for(et=0;et<Lt.length;et++)_.push(Lt[et]);Lt.length=0,xe.fontPreloads.forEach(fn,_),xe.fontPreloads.clear(),xe.highImagePreloads.forEach(fn,_),xe.highImagePreloads.clear(),Lm=xe,xe.styles.forEach(Ar,_),Lm=null;var gt=xe.importMapChunks;for(et=0;et<gt.length;et++)_.push(gt[et]);gt.length=0,xe.bootstrapScripts.forEach(fn,_),xe.scripts.forEach(fn,_),xe.scripts.clear(),xe.bulkPreloads.forEach(fn,_),xe.bulkPreloads.clear(),pe.instructions|=Bm;var Qn=xe.hoistableChunks;for(et=0;et<Qn.length;et++)_.push(Qn[et]);for(pe=Qn.length=0;pe<re.length;pe++){var ni=re[pe];for(xe=0;xe<ni.length;xe++)G0(A,_,ni[xe],null)}var Nn=A.renderState.preamble,to=Nn.headChunks;if(Nn.htmlChunks||to){var Ys=rt(\"head\");_.push(Ys)}var gu=Nn.bodyChunks;if(gu)for(re=0;re<gu.length;re++)_.push(gu[re]);G0(A,_,Q,null),A.completedRootSegment=null;var zr=A.renderState;if(A.allPendingTasks!==0||A.clientRenderedBoundaries.length!==0||A.completedBoundaries.length!==0||A.trackedPostpones!==null&&(A.trackedPostpones.rootNodes.length!==0||A.trackedPostpones.rootSlots!==null)){var pa=A.resumableState;if((pa.instructions&pp)===Hr){if(pa.instructions|=pp,_.push(zr.startInlineScript),(pa.instructions&Bm)===Hr){pa.instructions|=Bm;var vs=\"_\"+pa.idPrefix+\"R_\";_.push(ub);var cl=J(vs);_.push(cl),_.push(Ui)}_.push($o),_.push(ib),_.push(Um)}}ot(_,zr)}var hn=A.renderState;Q=0;var Go=hn.viewportChunks;for(Q=0;Q<Go.length;Q++)_.push(Go[Q]);Go.length=0,hn.preconnects.forEach(fn,_),hn.preconnects.clear(),hn.fontPreloads.forEach(fn,_),hn.fontPreloads.clear(),hn.highImagePreloads.forEach(fn,_),hn.highImagePreloads.clear(),hn.styles.forEach(Ka,_),hn.scripts.forEach(fn,_),hn.scripts.clear(),hn.bulkPreloads.forEach(fn,_),hn.bulkPreloads.clear();var qo=hn.hoistableChunks;for(Q=0;Q<qo.length;Q++)_.push(qo[Q]);qo.length=0;var ri=A.clientRenderedBoundaries;for(D=0;D<ri.length;D++){var sr=ri[D];hn=_;var Ji=A.resumableState,nr=A.renderState,Zs=sr.rootSegmentID,Nr=sr.errorDigest,Qs=sr.errorMessage,oi=sr.errorStack,yu=sr.errorComponentStack;hn.push(nr.startInlineScript),hn.push($o),(Ji.instructions&nb)===Hr?(Ji.instructions|=nb,hn.push(w4)):hn.push(y6),hn.push(nr.boundaryPrefix);var Vc=Zs.toString(16);if(hn.push(Vc),hn.push(b6),Nr||Qs||oi||yu){hn.push(cv);var wd=$t(Nr||\"\");hn.push(wd)}if(Qs||oi||yu){hn.push(cv);var xd=$t(Qs||\"\");hn.push(xd)}if(oi||yu){hn.push(cv);var ts=$t(oi||\"\");hn.push(ts)}if(yu){hn.push(cv);var Ed=$t(yu);hn.push(Ed)}var Xi=hn.push(e2);if(!Xi){A.destination=null,D++,ri.splice(0,D);return}}ri.splice(0,D);var v=A.completedBoundaries;for(D=0;D<v.length;D++)if(!q0(A,_,v[D])){A.destination=null,D++,v.splice(0,D);return}v.splice(0,D),Ch=!0;var E=A.partialBoundaries;for(D=0;D<E.length;D++){e:{ri=A,sr=_;var N=E[D];vd=N.byteSize;var K=N.completedSegments;for(Xi=0;Xi<K.length;Xi++)if(!of(ri,sr,N,K[Xi])){Xi++,K.splice(0,Xi);var ee=!1;break e}K.splice(0,Xi);var le=N.row;le!==null&&le.together&&N.pendingTasks===1&&(le.pendingTasks===1?H1(ri,le,le.hoistables):le.pendingTasks--),ee=Fn(sr,N.contentState,ri.renderState)}if(!ee){A.destination=null,D++,E.splice(0,D);return}}E.splice(0,D),Ch=!1;var ye=A.completedBoundaries;for(D=0;D<ye.length;D++)if(!q0(A,_,ye[D])){A.destination=null,D++,ye.splice(0,D);return}ye.splice(0,D)}}finally{Ch=!1,A.allPendingTasks===0&&A.clientRenderedBoundaries.length===0&&A.completedBoundaries.length===0&&(A.flushScheduled=!1,D=A.resumableState,D.hasBody&&(E=rt(\"body\"),_.push(E)),D.hasHtml&&(D=rt(\"html\"),_.push(D)),A.abortableTasks.size!==0&&console.error(\"There was still abortable task at the root when we closed. This is a bug in React.\"),A.status=ff,_.push(null),A.destination=null)}}function i6(A){A.flushScheduled=A.destination!==null,W0(A),A.status===10&&(A.status=11),A.trackedPostpones===null&&WA(A,A.pendingRootTasks===0)}function cp(A){if(A.flushScheduled===!1&&A.pingedTasks.length===0&&A.destination!==null){A.flushScheduled=!0;var _=A.destination;_?lu(A,_):A.flushScheduled=!1}}function pd(A,_){if(A.status===13)A.status=ff,_.destroy(A.fatalError);else if(A.status!==ff&&A.destination===null){A.destination=_;try{lu(A,_)}catch(D){_={},uu(A,D,_,null),yh(A,D,_,null)}}}function V1(A,_){(A.status===11||A.status===10)&&(A.status=12);try{var D=A.abortableTasks;if(0<D.size){var Q=_===void 0?Error(\"The render was aborted by the server without a reason.\"):typeof _==\"object\"&&_!==null&&typeof _.then==\"function\"?Error(\"The render was aborted by the server with a promise.\"):_;A.fatalError=Q,D.forEach(function(re){var pe=sl,xe=Ws.getCurrentStack;sl=re,Ws.getCurrentStack=F1;try{Yy(re,A,Q)}finally{sl=pe,Ws.getCurrentStack=xe}}),D.clear()}A.destination!==null&&lu(A,A.destination)}catch(re){_={},uu(A,re,_,null),yh(A,re,_,null)}}function Ja(A,_,D){if(_===null)D.rootNodes.push(A);else{var Q=D.workingMap,re=Q.get(_);re===void 0&&(re=[_[1],_[2],[],null],Q.set(_,re),Ja(re,_[0],D)),re[2].push(A)}}function Fc(){}function Qy(A,_,D,Q){var re=!1,pe=null,xe=\"\",ke=!1;if(_=ae(_?_.identifierPrefix:void 0),A=a7(A,_,hs(_,D),te(Gs,null,0,null),1/0,Fc,void 0,function(){ke=!0},void 0,void 0,void 0),i6(A),V1(A,Q),pd(A,{push:function(st){return st!==null&&(xe+=st),!0},destroy:function(st){re=!0,pe=st}}),re&&pe!==Q)throw pe;if(!ke)throw Error(\"A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.\");return xe}var Jy=at(),GA=Ob(),Hc=Symbol.for(\"react.transitional.element\"),G1=Symbol.for(\"react.portal\"),Xy=Symbol.for(\"react.fragment\"),Ux=Symbol.for(\"react.strict_mode\"),a6=Symbol.for(\"react.profiler\"),q1=Symbol.for(\"react.consumer\"),K0=Symbol.for(\"react.context\"),Y0=Symbol.for(\"react.forward_ref\"),tl=Symbol.for(\"react.suspense\"),xh=Symbol.for(\"react.suspense_list\"),hc=Symbol.for(\"react.memo\"),up=Symbol.for(\"react.lazy\"),zc=Symbol.for(\"react.scope\"),qA=Symbol.for(\"react.activity\"),K1=Symbol.for(\"react.legacy_hidden\"),$y=Symbol.for(\"react.memo_cache_sentinel\"),Y1=Symbol.for(\"react.view_transition\"),Fx=Symbol.iterator,Eh=Array.isArray,KA=new WeakMap,s6=new WeakMap,eb=Symbol.for(\"react.client.reference\"),fo=Object.assign,Ao=Object.prototype.hasOwnProperty,tb=RegExp(\"^[: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][: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]*$\"),Z0={},lp={},Q0=new Set(\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\".split(\" \")),p4=new Map([[\"acceptCharset\",\"accept-charset\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"],[\"crossOrigin\",\"crossorigin\"],[\"accentHeight\",\"accent-height\"],[\"alignmentBaseline\",\"alignment-baseline\"],[\"arabicForm\",\"arabic-form\"],[\"baselineShift\",\"baseline-shift\"],[\"capHeight\",\"cap-height\"],[\"clipPath\",\"clip-path\"],[\"clipRule\",\"clip-rule\"],[\"colorInterpolation\",\"color-interpolation\"],[\"colorInterpolationFilters\",\"color-interpolation-filters\"],[\"colorProfile\",\"color-profile\"],[\"colorRendering\",\"color-rendering\"],[\"dominantBaseline\",\"dominant-baseline\"],[\"enableBackground\",\"enable-background\"],[\"fillOpacity\",\"fill-opacity\"],[\"fillRule\",\"fill-rule\"],[\"floodColor\",\"flood-color\"],[\"floodOpacity\",\"flood-opacity\"],[\"fontFamily\",\"font-family\"],[\"fontSize\",\"font-size\"],[\"fontSizeAdjust\",\"font-size-adjust\"],[\"fontStretch\",\"font-stretch\"],[\"fontStyle\",\"font-style\"],[\"fontVariant\",\"font-variant\"],[\"fontWeight\",\"font-weight\"],[\"glyphName\",\"glyph-name\"],[\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\"],[\"glyphOrientationVertical\",\"glyph-orientation-vertical\"],[\"horizAdvX\",\"horiz-adv-x\"],[\"horizOriginX\",\"horiz-origin-x\"],[\"imageRendering\",\"image-rendering\"],[\"letterSpacing\",\"letter-spacing\"],[\"lightingColor\",\"lighting-color\"],[\"markerEnd\",\"marker-end\"],[\"markerMid\",\"marker-mid\"],[\"markerStart\",\"marker-start\"],[\"overlinePosition\",\"overline-position\"],[\"overlineThickness\",\"overline-thickness\"],[\"paintOrder\",\"paint-order\"],[\"panose-1\",\"panose-1\"],[\"pointerEvents\",\"pointer-events\"],[\"renderingIntent\",\"rendering-intent\"],[\"shapeRendering\",\"shape-rendering\"],[\"stopColor\",\"stop-color\"],[\"stopOpacity\",\"stop-opacity\"],[\"strikethroughPosition\",\"strikethrough-position\"],[\"strikethroughThickness\",\"strikethrough-thickness\"],[\"strokeDasharray\",\"stroke-dasharray\"],[\"strokeDashoffset\",\"stroke-dashoffset\"],[\"strokeLinecap\",\"stroke-linecap\"],[\"strokeLinejoin\",\"stroke-linejoin\"],[\"strokeMiterlimit\",\"stroke-miterlimit\"],[\"strokeOpacity\",\"stroke-opacity\"],[\"strokeWidth\",\"stroke-width\"],[\"textAnchor\",\"text-anchor\"],[\"textDecoration\",\"text-decoration\"],[\"textRendering\",\"text-rendering\"],[\"transformOrigin\",\"transform-origin\"],[\"underlinePosition\",\"underline-position\"],[\"underlineThickness\",\"underline-thickness\"],[\"unicodeBidi\",\"unicode-bidi\"],[\"unicodeRange\",\"unicode-range\"],[\"unitsPerEm\",\"units-per-em\"],[\"vAlphabetic\",\"v-alphabetic\"],[\"vHanging\",\"v-hanging\"],[\"vIdeographic\",\"v-ideographic\"],[\"vMathematical\",\"v-mathematical\"],[\"vectorEffect\",\"vector-effect\"],[\"vertAdvY\",\"vert-adv-y\"],[\"vertOriginX\",\"vert-origin-x\"],[\"vertOriginY\",\"vert-origin-y\"],[\"wordSpacing\",\"word-spacing\"],[\"writingMode\",\"writing-mode\"],[\"xmlnsXlink\",\"xmlns:xlink\"],[\"xHeight\",\"x-height\"]]),YA={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},wl={\"aria-current\":0,\"aria-description\":0,\"aria-details\":0,\"aria-disabled\":0,\"aria-hidden\":0,\"aria-invalid\":0,\"aria-keyshortcuts\":0,\"aria-label\":0,\"aria-roledescription\":0,\"aria-autocomplete\":0,\"aria-checked\":0,\"aria-expanded\":0,\"aria-haspopup\":0,\"aria-level\":0,\"aria-modal\":0,\"aria-multiline\":0,\"aria-multiselectable\":0,\"aria-orientation\":0,\"aria-placeholder\":0,\"aria-pressed\":0,\"aria-readonly\":0,\"aria-required\":0,\"aria-selected\":0,\"aria-sort\":0,\"aria-valuemax\":0,\"aria-valuemin\":0,\"aria-valuenow\":0,\"aria-valuetext\":0,\"aria-atomic\":0,\"aria-busy\":0,\"aria-live\":0,\"aria-relevant\":0,\"aria-dropeffect\":0,\"aria-grabbed\":0,\"aria-activedescendant\":0,\"aria-colcount\":0,\"aria-colindex\":0,\"aria-colspan\":0,\"aria-controls\":0,\"aria-describedby\":0,\"aria-errormessage\":0,\"aria-flowto\":0,\"aria-labelledby\":0,\"aria-owns\":0,\"aria-posinset\":0,\"aria-rowcount\":0,\"aria-rowindex\":0,\"aria-rowspan\":0,\"aria-setsize\":0,\"aria-braillelabel\":0,\"aria-brailleroledescription\":0,\"aria-colindextext\":0,\"aria-rowindextext\":0},xl={},h4=RegExp(\"^(aria)-[: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]*$\"),ZA=RegExp(\"^(aria)[A-Z][: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]*$\"),dp=!1,QA={accept:\"accept\",acceptcharset:\"acceptCharset\",\"accept-charset\":\"acceptCharset\",accesskey:\"accessKey\",action:\"action\",allowfullscreen:\"allowFullScreen\",alt:\"alt\",as:\"as\",async:\"async\",autocapitalize:\"autoCapitalize\",autocomplete:\"autoComplete\",autocorrect:\"autoCorrect\",autofocus:\"autoFocus\",autoplay:\"autoPlay\",autosave:\"autoSave\",capture:\"capture\",cellpadding:\"cellPadding\",cellspacing:\"cellSpacing\",challenge:\"challenge\",charset:\"charSet\",checked:\"checked\",children:\"children\",cite:\"cite\",class:\"className\",classid:\"classID\",classname:\"className\",cols:\"cols\",colspan:\"colSpan\",content:\"content\",contenteditable:\"contentEditable\",contextmenu:\"contextMenu\",controls:\"controls\",controlslist:\"controlsList\",coords:\"coords\",crossorigin:\"crossOrigin\",dangerouslysetinnerhtml:\"dangerouslySetInnerHTML\",data:\"data\",datetime:\"dateTime\",default:\"default\",defaultchecked:\"defaultChecked\",defaultvalue:\"defaultValue\",defer:\"defer\",dir:\"dir\",disabled:\"disabled\",disablepictureinpicture:\"disablePictureInPicture\",disableremoteplayback:\"disableRemotePlayback\",download:\"download\",draggable:\"draggable\",enctype:\"encType\",enterkeyhint:\"enterKeyHint\",fetchpriority:\"fetchPriority\",for:\"htmlFor\",form:\"form\",formmethod:\"formMethod\",formaction:\"formAction\",formenctype:\"formEncType\",formnovalidate:\"formNoValidate\",formtarget:\"formTarget\",frameborder:\"frameBorder\",headers:\"headers\",height:\"height\",hidden:\"hidden\",high:\"high\",href:\"href\",hreflang:\"hrefLang\",htmlfor:\"htmlFor\",httpequiv:\"httpEquiv\",\"http-equiv\":\"httpEquiv\",icon:\"icon\",id:\"id\",imagesizes:\"imageSizes\",imagesrcset:\"imageSrcSet\",inert:\"inert\",innerhtml:\"innerHTML\",inputmode:\"inputMode\",integrity:\"integrity\",is:\"is\",itemid:\"itemID\",itemprop:\"itemProp\",itemref:\"itemRef\",itemscope:\"itemScope\",itemtype:\"itemType\",keyparams:\"keyParams\",keytype:\"keyType\",kind:\"kind\",label:\"label\",lang:\"lang\",list:\"list\",loop:\"loop\",low:\"low\",manifest:\"manifest\",marginwidth:\"marginWidth\",marginheight:\"marginHeight\",max:\"max\",maxlength:\"maxLength\",media:\"media\",mediagroup:\"mediaGroup\",method:\"method\",min:\"min\",minlength:\"minLength\",multiple:\"multiple\",muted:\"muted\",name:\"name\",nomodule:\"noModule\",nonce:\"nonce\",novalidate:\"noValidate\",open:\"open\",optimum:\"optimum\",pattern:\"pattern\",placeholder:\"placeholder\",playsinline:\"playsInline\",poster:\"poster\",preload:\"preload\",profile:\"profile\",radiogroup:\"radioGroup\",readonly:\"readOnly\",referrerpolicy:\"referrerPolicy\",rel:\"rel\",required:\"required\",reversed:\"reversed\",role:\"role\",rows:\"rows\",rowspan:\"rowSpan\",sandbox:\"sandbox\",scope:\"scope\",scoped:\"scoped\",scrolling:\"scrolling\",seamless:\"seamless\",selected:\"selected\",shape:\"shape\",size:\"size\",sizes:\"sizes\",span:\"span\",spellcheck:\"spellCheck\",src:\"src\",srcdoc:\"srcDoc\",srclang:\"srcLang\",srcset:\"srcSet\",start:\"start\",step:\"step\",style:\"style\",summary:\"summary\",tabindex:\"tabIndex\",target:\"target\",title:\"title\",type:\"type\",usemap:\"useMap\",value:\"value\",width:\"width\",wmode:\"wmode\",wrap:\"wrap\",about:\"about\",accentheight:\"accentHeight\",\"accent-height\":\"accentHeight\",accumulate:\"accumulate\",additive:\"additive\",alignmentbaseline:\"alignmentBaseline\",\"alignment-baseline\":\"alignmentBaseline\",allowreorder:\"allowReorder\",alphabetic:\"alphabetic\",amplitude:\"amplitude\",arabicform:\"arabicForm\",\"arabic-form\":\"arabicForm\",ascent:\"ascent\",attributename:\"attributeName\",attributetype:\"attributeType\",autoreverse:\"autoReverse\",azimuth:\"azimuth\",basefrequency:\"baseFrequency\",baselineshift:\"baselineShift\",\"baseline-shift\":\"baselineShift\",baseprofile:\"baseProfile\",bbox:\"bbox\",begin:\"begin\",bias:\"bias\",by:\"by\",calcmode:\"calcMode\",capheight:\"capHeight\",\"cap-height\":\"capHeight\",clip:\"clip\",clippath:\"clipPath\",\"clip-path\":\"clipPath\",clippathunits:\"clipPathUnits\",cliprule:\"clipRule\",\"clip-rule\":\"clipRule\",color:\"color\",colorinterpolation:\"colorInterpolation\",\"color-interpolation\":\"colorInterpolation\",colorinterpolationfilters:\"colorInterpolationFilters\",\"color-interpolation-filters\":\"colorInterpolationFilters\",colorprofile:\"colorProfile\",\"color-profile\":\"colorProfile\",colorrendering:\"colorRendering\",\"color-rendering\":\"colorRendering\",contentscripttype:\"contentScriptType\",contentstyletype:\"contentStyleType\",cursor:\"cursor\",cx:\"cx\",cy:\"cy\",d:\"d\",datatype:\"datatype\",decelerate:\"decelerate\",descent:\"descent\",diffuseconstant:\"diffuseConstant\",direction:\"direction\",display:\"display\",divisor:\"divisor\",dominantbaseline:\"dominantBaseline\",\"dominant-baseline\":\"dominantBaseline\",dur:\"dur\",dx:\"dx\",dy:\"dy\",edgemode:\"edgeMode\",elevation:\"elevation\",enablebackground:\"enableBackground\",\"enable-background\":\"enableBackground\",end:\"end\",exponent:\"exponent\",externalresourcesrequired:\"externalResourcesRequired\",fill:\"fill\",fillopacity:\"fillOpacity\",\"fill-opacity\":\"fillOpacity\",fillrule:\"fillRule\",\"fill-rule\":\"fillRule\",filter:\"filter\",filterres:\"filterRes\",filterunits:\"filterUnits\",floodopacity:\"floodOpacity\",\"flood-opacity\":\"floodOpacity\",floodcolor:\"floodColor\",\"flood-color\":\"floodColor\",focusable:\"focusable\",fontfamily:\"fontFamily\",\"font-family\":\"fontFamily\",fontsize:\"fontSize\",\"font-size\":\"fontSize\",fontsizeadjust:\"fontSizeAdjust\",\"font-size-adjust\":\"fontSizeAdjust\",fontstretch:\"fontStretch\",\"font-stretch\":\"fontStretch\",fontstyle:\"fontStyle\",\"font-style\":\"fontStyle\",fontvariant:\"fontVariant\",\"font-variant\":\"fontVariant\",fontweight:\"fontWeight\",\"font-weight\":\"fontWeight\",format:\"format\",from:\"from\",fx:\"fx\",fy:\"fy\",g1:\"g1\",g2:\"g2\",glyphname:\"glyphName\",\"glyph-name\":\"glyphName\",glyphorientationhorizontal:\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\":\"glyphOrientationHorizontal\",glyphorientationvertical:\"glyphOrientationVertical\",\"glyph-orientation-vertical\":\"glyphOrientationVertical\",glyphref:\"glyphRef\",gradienttransform:\"gradientTransform\",gradientunits:\"gradientUnits\",hanging:\"hanging\",horizadvx:\"horizAdvX\",\"horiz-adv-x\":\"horizAdvX\",horizoriginx:\"horizOriginX\",\"horiz-origin-x\":\"horizOriginX\",ideographic:\"ideographic\",imagerendering:\"imageRendering\",\"image-rendering\":\"imageRendering\",in2:\"in2\",in:\"in\",inlist:\"inlist\",intercept:\"intercept\",k1:\"k1\",k2:\"k2\",k3:\"k3\",k4:\"k4\",k:\"k\",kernelmatrix:\"kernelMatrix\",kernelunitlength:\"kernelUnitLength\",kerning:\"kerning\",keypoints:\"keyPoints\",keysplines:\"keySplines\",keytimes:\"keyTimes\",lengthadjust:\"lengthAdjust\",letterspacing:\"letterSpacing\",\"letter-spacing\":\"letterSpacing\",lightingcolor:\"lightingColor\",\"lighting-color\":\"lightingColor\",limitingconeangle:\"limitingConeAngle\",local:\"local\",markerend:\"markerEnd\",\"marker-end\":\"markerEnd\",markerheight:\"markerHeight\",markermid:\"markerMid\",\"marker-mid\":\"markerMid\",markerstart:\"markerStart\",\"marker-start\":\"markerStart\",markerunits:\"markerUnits\",markerwidth:\"markerWidth\",mask:\"mask\",maskcontentunits:\"maskContentUnits\",maskunits:\"maskUnits\",mathematical:\"mathematical\",mode:\"mode\",numoctaves:\"numOctaves\",offset:\"offset\",opacity:\"opacity\",operator:\"operator\",order:\"order\",orient:\"orient\",orientation:\"orientation\",origin:\"origin\",overflow:\"overflow\",overlineposition:\"overlinePosition\",\"overline-position\":\"overlinePosition\",overlinethickness:\"overlineThickness\",\"overline-thickness\":\"overlineThickness\",paintorder:\"paintOrder\",\"paint-order\":\"paintOrder\",panose1:\"panose1\",\"panose-1\":\"panose1\",pathlength:\"pathLength\",patterncontentunits:\"patternContentUnits\",patterntransform:\"patternTransform\",patternunits:\"patternUnits\",pointerevents:\"pointerEvents\",\"pointer-events\":\"pointerEvents\",points:\"points\",pointsatx:\"pointsAtX\",pointsaty:\"pointsAtY\",pointsatz:\"pointsAtZ\",popover:\"popover\",popovertarget:\"popoverTarget\",popovertargetaction:\"popoverTargetAction\",prefix:\"prefix\",preservealpha:\"preserveAlpha\",preserveaspectratio:\"preserveAspectRatio\",primitiveunits:\"primitiveUnits\",property:\"property\",r:\"r\",radius:\"radius\",refx:\"refX\",refy:\"refY\",renderingintent:\"renderingIntent\",\"rendering-intent\":\"renderingIntent\",repeatcount:\"repeatCount\",repeatdur:\"repeatDur\",requiredextensions:\"requiredExtensions\",requiredfeatures:\"requiredFeatures\",resource:\"resource\",restart:\"restart\",result:\"result\",results:\"results\",rotate:\"rotate\",rx:\"rx\",ry:\"ry\",scale:\"scale\",security:\"security\",seed:\"seed\",shaperendering:\"shapeRendering\",\"shape-rendering\":\"shapeRendering\",slope:\"slope\",spacing:\"spacing\",specularconstant:\"specularConstant\",specularexponent:\"specularExponent\",speed:\"speed\",spreadmethod:\"spreadMethod\",startoffset:\"startOffset\",stddeviation:\"stdDeviation\",stemh:\"stemh\",stemv:\"stemv\",stitchtiles:\"stitchTiles\",stopcolor:\"stopColor\",\"stop-color\":\"stopColor\",stopopacity:\"stopOpacity\",\"stop-opacity\":\"stopOpacity\",strikethroughposition:\"strikethroughPosition\",\"strikethrough-position\":\"strikethroughPosition\",strikethroughthickness:\"strikethroughThickness\",\"strikethrough-thickness\":\"strikethroughThickness\",string:\"string\",stroke:\"stroke\",strokedasharray:\"strokeDasharray\",\"stroke-dasharray\":\"strokeDasharray\",strokedashoffset:\"strokeDashoffset\",\"stroke-dashoffset\":\"strokeDashoffset\",strokelinecap:\"strokeLinecap\",\"stroke-linecap\":\"strokeLinecap\",strokelinejoin:\"strokeLinejoin\",\"stroke-linejoin\":\"strokeLinejoin\",strokemiterlimit:\"strokeMiterlimit\",\"stroke-miterlimit\":\"strokeMiterlimit\",strokewidth:\"strokeWidth\",\"stroke-width\":\"strokeWidth\",strokeopacity:\"strokeOpacity\",\"stroke-opacity\":\"strokeOpacity\",suppresscontenteditablewarning:\"suppressContentEditableWarning\",suppresshydrationwarning:\"suppressHydrationWarning\",surfacescale:\"surfaceScale\",systemlanguage:\"systemLanguage\",tablevalues:\"tableValues\",targetx:\"targetX\",targety:\"targetY\",textanchor:\"textAnchor\",\"text-anchor\":\"textAnchor\",textdecoration:\"textDecoration\",\"text-decoration\":\"textDecoration\",textlength:\"textLength\",textrendering:\"textRendering\",\"text-rendering\":\"textRendering\",to:\"to\",transform:\"transform\",transformorigin:\"transformOrigin\",\"transform-origin\":\"transformOrigin\",typeof:\"typeof\",u1:\"u1\",u2:\"u2\",underlineposition:\"underlinePosition\",\"underline-position\":\"underlinePosition\",underlinethickness:\"underlineThickness\",\"underline-thickness\":\"underlineThickness\",unicode:\"unicode\",unicodebidi:\"unicodeBidi\",\"unicode-bidi\":\"unicodeBidi\",unicoderange:\"unicodeRange\",\"unicode-range\":\"unicodeRange\",unitsperem:\"unitsPerEm\",\"units-per-em\":\"unitsPerEm\",unselectable:\"unselectable\",valphabetic:\"vAlphabetic\",\"v-alphabetic\":\"vAlphabetic\",values:\"values\",vectoreffect:\"vectorEffect\",\"vector-effect\":\"vectorEffect\",version:\"version\",vertadvy:\"vertAdvY\",\"vert-adv-y\":\"vertAdvY\",vertoriginx:\"vertOriginX\",\"vert-origin-x\":\"vertOriginX\",vertoriginy:\"vertOriginY\",\"vert-origin-y\":\"vertOriginY\",vhanging:\"vHanging\",\"v-hanging\":\"vHanging\",videographic:\"vIdeographic\",\"v-ideographic\":\"vIdeographic\",viewbox:\"viewBox\",viewtarget:\"viewTarget\",visibility:\"visibility\",vmathematical:\"vMathematical\",\"v-mathematical\":\"vMathematical\",vocab:\"vocab\",widths:\"widths\",wordspacing:\"wordSpacing\",\"word-spacing\":\"wordSpacing\",writingmode:\"writingMode\",\"writing-mode\":\"writingMode\",x1:\"x1\",x2:\"x2\",x:\"x\",xchannelselector:\"xChannelSelector\",xheight:\"xHeight\",\"x-height\":\"xHeight\",xlinkactuate:\"xlinkActuate\",\"xlink:actuate\":\"xlinkActuate\",xlinkarcrole:\"xlinkArcrole\",\"xlink:arcrole\":\"xlinkArcrole\",xlinkhref:\"xlinkHref\",\"xlink:href\":\"xlinkHref\",xlinkrole:\"xlinkRole\",\"xlink:role\":\"xlinkRole\",xlinkshow:\"xlinkShow\",\"xlink:show\":\"xlinkShow\",xlinktitle:\"xlinkTitle\",\"xlink:title\":\"xlinkTitle\",xlinktype:\"xlinkType\",\"xlink:type\":\"xlinkType\",xmlbase:\"xmlBase\",\"xml:base\":\"xmlBase\",xmllang:\"xmlLang\",\"xml:lang\":\"xmlLang\",xmlns:\"xmlns\",\"xml:space\":\"xmlSpace\",xmlnsxlink:\"xmlnsXlink\",\"xmlns:xlink\":\"xmlnsXlink\",xmlspace:\"xmlSpace\",y1:\"y1\",y2:\"y2\",y:\"y\",ychannelselector:\"yChannelSelector\",z:\"z\",zoomandpan:\"zoomAndPan\"},jc={},fp=/^on./,J0=/^on[^A-Z]/,c6=RegExp(\"^(aria)-[: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]*$\"),JA=RegExp(\"^(aria)[A-Z][: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]*$\"),Mm=/^(?:webkit|moz|o)[A-Z]/,El=/^-ms-/,Al=/-(.)/g,X0=/;\\\\s*$/,So={},_o={},Z1=!1,Hx=!1,zx=/[\"\\'&<>]/,$0=/([A-Z])/g,Dm=/^ms-/,u6=/^[\\\\u0000-\\\\u001F ]*j[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*v[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*s[\\\\r\\\\n\\\\t]*c[\\\\r\\\\n\\\\t]*r[\\\\r\\\\n\\\\t]*i[\\\\r\\\\n\\\\t]*p[\\\\r\\\\n\\\\t]*t[\\\\r\\\\n\\\\t]*:/i,Ws=Jy.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,af=GA.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,XA=Object.freeze({pending:!1,data:null,method:null,action:null}),nl=af.d;af.d={f:nl.f,r:nl.r,D:function(A){var _=Hi||null;if(_){var D=_.resumableState,Q=_.renderState;if(typeof A==\"string\"&&A){if(!D.dnsResources.hasOwnProperty(A)){D.dnsResources[A]=mc,D=Q.headers;var re,pe;(pe=D&&0<D.remainingCapacity)&&(pe=(re=\"<\"+bt(A)+\">; rel=dns-prefetch\",0<=(D.remainingCapacity-=re.length+2))),pe?(Q.resets.dns[A]=mc,D.preconnects&&(D.preconnects+=\", \"),D.preconnects+=re):(re=[],he(re,{href:A,rel:\"dns-prefetch\"}),Q.preconnects.add(re))}cp(_)}}else nl.D(A)},C:function(A,_){var D=Hi||null;if(D){var Q=D.resumableState,re=D.renderState;if(typeof A==\"string\"&&A){var pe=_===\"use-credentials\"?\"credentials\":typeof _==\"string\"?\"anonymous\":\"default\";if(!Q.connectResources[pe].hasOwnProperty(A)){Q.connectResources[pe][A]=mc,Q=re.headers;var xe,ke;if(ke=Q&&0<Q.remainingCapacity){if(ke=\"<\"+bt(A)+\">; rel=preconnect\",typeof _==\"string\"){var st=Yt(_,\"crossOrigin\");ke+=\\'; crossorigin=\"\\'+st+\\'\"\\'}ke=(xe=ke,0<=(Q.remainingCapacity-=xe.length+2))}ke?(re.resets.connect[pe][A]=mc,Q.preconnects&&(Q.preconnects+=\", \"),Q.preconnects+=xe):(pe=[],he(pe,{rel:\"preconnect\",href:A,crossOrigin:_}),re.preconnects.add(pe))}cp(D)}}else nl.C(A,_)},L:function(A,_,D){var Q=Hi||null;if(Q){var re=Q.resumableState,pe=Q.renderState;if(_&&A){switch(_){case\"image\":if(D)var xe=D.imageSrcSet,ke=D.imageSizes,st=D.fetchPriority;var Ue=xe?xe+`\\n`+(ke||\"\"):A;if(re.imageResources.hasOwnProperty(Ue))return;re.imageResources[Ue]=Xa,re=pe.headers;var et;re&&0<re.remainingCapacity&&typeof xe!=\"string\"&&st===\"high\"&&(et=it(A,_,D),0<=(re.remainingCapacity-=et.length+2))?(pe.resets.image[Ue]=Xa,re.highImagePreloads&&(re.highImagePreloads+=\", \"),re.highImagePreloads+=et):(re=[],he(re,fo({rel:\"preload\",href:xe?void 0:A,as:_},D)),st===\"high\"?pe.highImagePreloads.add(re):(pe.bulkPreloads.add(re),pe.preloads.images.set(Ue,re)));break;case\"style\":if(re.styleResources.hasOwnProperty(A))return;xe=[],he(xe,fo({rel:\"preload\",href:A,as:_},D)),re.styleResources[A]=!D||typeof D.crossOrigin!=\"string\"&&typeof D.integrity!=\"string\"?Xa:[D.crossOrigin,D.integrity],pe.preloads.stylesheets.set(A,xe),pe.bulkPreloads.add(xe);break;case\"script\":if(re.scriptResources.hasOwnProperty(A))return;xe=[],pe.preloads.scripts.set(A,xe),pe.bulkPreloads.add(xe),he(xe,fo({rel:\"preload\",href:A,as:_},D)),re.scriptResources[A]=!D||typeof D.crossOrigin!=\"string\"&&typeof D.integrity!=\"string\"?Xa:[D.crossOrigin,D.integrity];break;default:if(re.unknownResources.hasOwnProperty(_)){if(xe=re.unknownResources[_],xe.hasOwnProperty(A))return}else xe={},re.unknownResources[_]=xe;if(xe[A]=Xa,(re=pe.headers)&&0<re.remainingCapacity&&_===\"font\"&&(Ue=it(A,_,D),0<=(re.remainingCapacity-=Ue.length+2)))pe.resets.font[A]=Xa,re.fontPreloads&&(re.fontPreloads+=\", \"),re.fontPreloads+=Ue;else switch(re=[],A=fo({rel:\"preload\",href:A,as:_},D),he(re,A),_){case\"font\":pe.fontPreloads.add(re);break;default:pe.bulkPreloads.add(re)}}cp(Q)}}else nl.L(A,_,D)},m:function(A,_){var D=Hi||null;if(D){var Q=D.resumableState,re=D.renderState;if(A){var pe=_&&typeof _.as==\"string\"?_.as:\"script\";switch(pe){case\"script\":if(Q.moduleScriptResources.hasOwnProperty(A))return;pe=[],Q.moduleScriptResources[A]=!_||typeof _.crossOrigin!=\"string\"&&typeof _.integrity!=\"string\"?Xa:[_.crossOrigin,_.integrity],re.preloads.moduleScripts.set(A,pe);break;default:if(Q.moduleUnknownResources.hasOwnProperty(pe)){var xe=Q.unknownResources[pe];if(xe.hasOwnProperty(A))return}else xe={},Q.moduleUnknownResources[pe]=xe;pe=[],xe[A]=Xa}he(pe,fo({rel:\"modulepreload\",href:A},_)),re.bulkPreloads.add(pe),cp(D)}}else nl.m(A,_)},X:function(A,_){var D=Hi||null;if(D){var Q=D.resumableState,re=D.renderState;if(A){var pe=Q.scriptResources.hasOwnProperty(A)?Q.scriptResources[A]:void 0;pe!==mc&&(Q.scriptResources[A]=mc,_=fo({src:A,async:!0},_),pe&&(pe.length===2&&Le(_,pe),A=re.preloads.scripts.get(A))&&(A.length=0),A=[],re.scripts.add(A),_e(A,_),cp(D))}}else nl.X(A,_)},S:function(A,_,D){var Q=Hi||null;if(Q){var re=Q.resumableState,pe=Q.renderState;if(A){_=_||\"default\";var xe=pe.styles.get(_),ke=re.styleResources.hasOwnProperty(A)?re.styleResources[A]:void 0;ke!==mc&&(re.styleResources[A]=mc,xe||(xe={precedence:J(_),rules:[],hrefs:[],sheets:new Map},pe.styles.set(_,xe)),_={state:w6,props:fo({rel:\"stylesheet\",href:A,\"data-precedence\":_},D)},ke&&(ke.length===2&&Le(_.props,ke),(pe=pe.preloads.stylesheets.get(A))&&0<pe.length?pe.length=0:_.state=t2),xe.sheets.set(A,_),cp(Q))}}else nl.S(A,_,D)},M:function(A,_){var D=Hi||null;if(D){var Q=D.resumableState,re=D.renderState;if(A){var pe=Q.moduleScriptResources.hasOwnProperty(A)?Q.moduleScriptResources[A]:void 0;pe!==mc&&(Q.moduleScriptResources[A]=mc,_=fo({src:A,type:\"module\",async:!0},_),pe&&(pe.length===2&&Le(_,pe),A=re.preloads.moduleScripts.get(A))&&(A.length=0),A=[],re.scripts.add(A),_e(A,_),cp(D))}}else nl.M(A,_)}};var Hr=0,Q1=1,Vs=2,nb=4,eg=8,Bm=32,pp=64,mc=null,Xa=[];Object.freeze(Xa);var Lm=null,Um=\"<\\\\/script>\",Fm=/(<\\\\/|<)(s)(cript)/gi,du={},Gs=0,rl=1,gs=2,hd=3,gc=4,J1=5,$a=6,jx=7,sf=8,cf=9,Ra=new Map,X1=\\' style=\"\\',Wx=\":\",Vx=\";\",fu=\" \",yc=\\'=\"\\',Ui=\\'\"\\',es=\\'=\"\"\\',ol=J(\"javascript:throw new Error(\\'React form unexpectedly submitted.\\')\"),$o=\">\",$1=\"/>\",uf=!1,l6=!1,d6=!1,qs=!1,Gx=!1,ev=!1,tv=!1,tg=!1,f6=!1,rb=!1,qx=!1,nv=`addEventListener(\"submit\",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute(\"formAction\");null!=f&&(e=f,b=null)}\"javascript:throw new Error(\\'React form unexpectedly submitted.\\')\"===e&&(a.preventDefault(),b?(a=document.createElement(\"input\"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,ob=/(<\\\\/|<)(s)(tyle)/gi,Ah=`\\n`,Sl=/^[a-zA-Z][a-zA-Z:_\\\\.\\\\-\\\\d]*$/,rv=new Map,md=new Map,ib=\"requestAnimationFrame(function(){$RT=performance.now()});\",hp=\\'<template id=\"\\',Sh=\\'\"></template>\\',ab=\"<!--$-->\",ov=\\'<!--$?--><template id=\"\\',il=\\'\"></template>\\',iv=\"<!--$!-->\",Kx=\"<!--/$-->\",m4=\"<template\",Yx=\\'\"\\',pu=\\' data-dgst=\"\\',_l=\\' data-msg=\"\\',Fi=\\' data-stck=\"\\',_h=\\' data-cstck=\"\\',$A=\"></template>\",p6=\\'<div hidden id=\"\\',Wo=\\'\">\\',Wc=\"</div>\",Zx=\\'<svg aria-hidden=\"true\" style=\"display:none\" id=\"\\',ar=\\'\">\\',_t=\"</svg>\",sb=\\'<math aria-hidden=\"true\" style=\"display:none\" id=\"\\',Qx=\\'\">\\',fa=\"</math>\",eS=\\'<table hidden id=\"\\',av=\\'\">\\',h6=\"</table>\",sv=\\'<table hidden><tbody id=\"\\',tS=\\'\">\\',Jx=\"</tbody></table>\",nS=\\'<table hidden><tr id=\"\\',m6=\\'\">\\',al=\"</tr></table>\",Vo=\\'<table hidden><colgroup id=\"\\',rS=\\'\">\\',Xx=\"</colgroup></table>\",ng=\\'$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS(\"\\',Hm=\\'$RS(\"\\',mp=\\'\",\"\\',oS=\\'\")<\\\\/script>\\',cb=`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if(\"/$\"===d||\"/&\"===d)if(0===h)break;else h--;else\"$\"!==d&&\"$?\"!==d&&\"$~\"!==d&&\"$!\"!==d&&\"&\"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data=\"$\";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data=\"$~\",$RB.push(a,b),2===$RB.length&&(\"number\"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`,iS=\\'$RC(\"\\',$x=`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),v=[],k=0;b=e[k++];)\"not all\"===b.getAttribute(\"media\")?v.push(b):(\"LINK\"===b.tagName&&$RM.set(b.getAttribute(\"href\"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement(\"link\");a.href=d;a.rel=\\n\"stylesheet\";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute(\"media\");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute(\"data-precedence\");a.removeAttribute(\"media\")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\\n\"$~\";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,\"CSS failed to load\"))};$RR(\"`,g6=\\'$RR(\"\\',aS=\\'\",\"\\',g4=\\'\",\\',y4=\\'\"\\',b4=\")<\\\\/script>\",v4=\\'$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data=\"$!\",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};\\',w4=\\'$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data=\"$!\",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX(\"\\',y6=\\'$RX(\"\\',b6=\\'\"\\',cv=\",\",e2=\")<\\\\/script>\",x4=/[<\\\\u2028\\\\u2029]/g,E4=/[&><\\\\u2028\\\\u2029]/g,s7=\\' media=\"not all\" data-precedence=\"\\',A4=\\'\" data-href=\"\\',S4=\\'\">\\',_4=\"</style>\",uv=!1,sS=!0,zm=[],lv=\\' data-precedence=\"\\',cS=\\'\" data-href=\"\\',v6=\" \",c7=\\'\">\\',uS=\"</style>\",ub=\\' id=\"\\',lS=\"[\",rg=\",[\",hu=\",\",dv=\"]\",w6=0,t2=1,fv=2,dS=3,T4=/[<>\\\\r\\\\n]/g,x6=/[\"\\';,\\\\r\\\\n]/g,fS=\"\",E6=Function.prototype.bind,pS=Symbol.for(\"react.client.reference\"),gp={};Object.freeze(gp);var lb={},Th=null,A6={},S6={},hS=new Set,_6=new Set,n2=new Set,T6=new Set,mS=new Set,C6=new Set,R6=new Set,gS=new Set,I6=new Set,pv={enqueueSetState:function(A,_,D){var Q=A._reactInternals;Q.queue===null?fi(A,\"setState\"):(Q.queue.push(_),D!=null&&jo(D))},enqueueReplaceState:function(A,_,D){A=A._reactInternals,A.replace=!0,A.queue=[_],D!=null&&jo(D)},enqueueForceUpdate:function(A,_){A._reactInternals.queue===null?fi(A,\"forceUpdate\"):_!=null&&jo(_)}},db={id:1,overflow:\"\"},hv=Math.clz32?Math.clz32:Tr,k6=Math.log,u7=Math.LN2,gd=Error(\"Suspense Exception: This is not a real error! It\\'s an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\\\\n\\\\nTo handle async errors, wrap your component in an error boundary, or call the promise\\'s `.catch` method and pass the result to `use`.\"),r2=null,o2=typeof Object.is==\"function\"?Object.is:Xo,Tl=null,og=null,yp=null,yS=null,mv=null,ei=null,gv=!1,i2=!1,lf=0,fb=0,pb=-1,hb=0,bp=null,vp=null,ig=0,Cl=!1,ag,C4={readContext:Bc,use:function(A){if(A!==null&&typeof A==\"object\"){if(typeof A.then==\"function\")return dd(A);if(A.$$typeof===K0)return Bc(A)}throw Error(\"An unsupported type was passed to use(): \"+String(A))},useContext:function(A){return ag=\"useContext\",js(),A._currentValue2},useMemo:Ta,useReducer:Li,useRef:function(A){Tl=js(),ei=da();var _=ei.memoizedState;return _===null?(A={current:A},Object.seal(A),ei.memoizedState=A):_},useState:function(A){return ag=\"useState\",Li(nf,A)},useInsertionEffect:ln,useLayoutEffect:ln,useCallback:function(A,_){return Ta(function(){return A},_)},useImperativeHandle:ln,useEffect:ln,useDebugValue:ln,useDeferredValue:function(A,_){return js(),_!==void 0?_:A},useTransition:function(){return js(),[!1,pc]},useId:function(){var A=og.treeContext,_=A.overflow;A=A.id,A=(A&~(1<<32-hv(A)-1)).toString(32)+_;var D=ys;if(D===null)throw Error(\"Invalid hook call. Hooks can only be called inside of the body of a function component.\");return _=lf++,A=\"_\"+D.idPrefix+\"R_\"+A,0<_&&(A+=\"H\"+_.toString(32)),A+\"_\"},useSyncExternalStore:function(A,_,D){if(D===void 0)throw Error(\"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.\");return D()},useOptimistic:function(A){return js(),[A,bl]},useActionState:$u,useFormState:$u,useHostTransitionStatus:function(){return js(),XA},useMemoCache:function(A){for(var _=Array(A),D=0;D<A;D++)_[D]=$y;return _},useCacheRefresh:function(){return fd},useEffectEvent:function(){return Xu}},ys=null,sl=null,R4={getCacheForType:function(){throw Error(\"Not implemented.\")},cacheSignal:function(){throw Error(\"Not implemented.\")},getOwner:function(){return sl===null?null:sl.componentStack}},mu=0,yv,df,bS,bv,vS,O6,vv;rf.__reactDisabledLog=!0;var wv,wS,a2=!1,s2=new(typeof WeakMap==\"function\"?WeakMap:Map),c2={react_stack_bottom_frame:function(A,_,D){return A(_,D)}},xS=c2.react_stack_bottom_frame.bind(c2),u2={react_stack_bottom_frame:function(A){return A.render()}},ES=u2.react_stack_bottom_frame.bind(u2),mb={react_stack_bottom_frame:function(A){var _=A._init;return _(A._payload)}},l2=mb.react_stack_bottom_frame.bind(mb),AS=0;if(typeof performance==\"object\"&&typeof performance.now==\"function\")var Rl=performance,gb=function(){return Rl.now()};else{var I4=Date;gb=function(){return I4.now()}}var ti=4,Il=0,Ks=1,xv=2,bs=3,To=4,yd=5,ff=14,Hi=null,Co={},Ev={},d2={},sg={},bc=!1,Av=!1,bd=!1,vd=0,Ch=!1;qoe.renderToStaticMarkup=function(A,_){return Qy(A,_,!0,\\'The server used \"renderToStaticMarkup\" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to \"renderToReadableStream\" which supports Suspense on the server\\')},qoe.renderToString=function(A,_){return Qy(A,_,!1,\\'The server used \"renderToString\" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to \"renderToReadableStream\" which supports Suspense on the server\\')},qoe.version=\"19.2.0\"})()});var Sft=me(GD=>{\"use strict\";f();(function(){function e(v,E,N,K){return\"\"+E+(N===\"s\"?\"\\\\\\\\73 \":\"\\\\\\\\53 \")+K}function t(v,E,N,K){return\"\"+E+(N===\"s\"?\"\\\\\\\\u0073\":\"\\\\\\\\u0053\")+K}function n(v){return v===null||typeof v!=\"object\"?null:(v=ZA&&v[ZA]||v[\"@@iterator\"],typeof v==\"function\"?v:null)}function r(v){return v=Object.prototype.toString.call(v),v.slice(8,v.length-1)}function o(v){var E=JSON.stringify(v);return\\'\"\\'+v+\\'\"\\'===E?v:E}function i(v){switch(typeof v){case\"string\":return JSON.stringify(10>=v.length?v:v.slice(0,10)+\"...\");case\"object\":return dp(v)?\"[...]\":v!==null&&v.$$typeof===fp?\"client\":(v=r(v),v===\"Object\"?\"{...}\":v);case\"function\":return v.$$typeof===fp?\"client\":(v=v.displayName||v.name)?\"function \"+v:\"function\";default:return String(v)}}function a(v){if(typeof v==\"string\")return v;switch(v){case tb:return\"Suspense\";case Z0:return\"SuspenseList\"}if(typeof v==\"object\")switch(v.$$typeof){case Ao:return a(v.render);case lp:return a(v.type);case Q0:var E=v._payload;v=v._init;try{return a(v(E))}catch{}}return\"\"}function c(v,E){var N=r(v);if(N!==\"Object\"&&N!==\"Array\")return N;var K=-1,ee=0;if(dp(v))if(jc.has(v)){var le=jc.get(v);N=\"<\"+a(le)+\">\";for(var ye=0;ye<v.length;ye++){var Ae=v[ye];Ae=typeof Ae==\"string\"?Ae:typeof Ae==\"object\"&&Ae!==null?\"{\"+c(Ae)+\"}\":\"{\"+i(Ae)+\"}\",\"\"+ye===E?(K=N.length,ee=Ae.length,N+=Ae):N=15>Ae.length&&40>N.length+Ae.length?N+Ae:N+\"{...}\"}N+=\"</\"+a(le)+\">\"}else{for(N=\"[\",le=0;le<v.length;le++)0<le&&(N+=\", \"),ye=v[le],ye=typeof ye==\"object\"&&ye!==null?c(ye):i(ye),\"\"+le===E?(K=N.length,ee=ye.length,N+=ye):N=10>ye.length&&40>N.length+ye.length?N+ye:N+\"...\";N+=\"]\"}else if(v.$$typeof===Y1)N=\"<\"+a(v.type)+\"/>\";else{if(v.$$typeof===fp)return\"client\";if(QA.has(v)){for(N=QA.get(v),N=\"<\"+(a(N)||\"...\"),le=Object.keys(v),ye=0;ye<le.length;ye++){N+=\" \",Ae=le[ye],N+=o(Ae)+\"=\";var Ye=v[Ae],Me=Ae===E&&typeof Ye==\"object\"&&Ye!==null?c(Ye):i(Ye);typeof Ye!=\"string\"&&(Me=\"{\"+Me+\"}\"),Ae===E?(K=N.length,ee=Me.length,N+=Me):N=10>Me.length&&40>N.length+Me.length?N+Me:N+\"...\"}N+=\">\"}else{for(N=\"{\",le=Object.keys(v),ye=0;ye<le.length;ye++)0<ye&&(N+=\", \"),Ae=le[ye],N+=o(Ae)+\": \",Ye=v[Ae],Ye=typeof Ye==\"object\"&&Ye!==null?c(Ye):i(Ye),Ae===E?(K=N.length,ee=Ye.length,N+=Ye):N=10>Ye.length&&40>N.length+Ye.length?N+Ye:N+\"...\";N+=\"}\"}}return E===void 0?N:-1<K&&0<ee?(v=\" \".repeat(K)+\"^\".repeat(ee),`\\n  `+N+`\\n  `+v):`\\n  `+N}function l(v,E){var N=v.length&3,K=v.length-N,ee=E;for(E=0;E<K;){var le=v.charCodeAt(E)&255|(v.charCodeAt(++E)&255)<<8|(v.charCodeAt(++E)&255)<<16|(v.charCodeAt(++E)&255)<<24;++E,le=3432918353*(le&65535)+((3432918353*(le>>>16)&65535)<<16)&4294967295,le=le<<15|le>>>17,le=461845907*(le&65535)+((461845907*(le>>>16)&65535)<<16)&4294967295,ee^=le,ee=ee<<13|ee>>>19,ee=5*(ee&65535)+((5*(ee>>>16)&65535)<<16)&4294967295,ee=(ee&65535)+27492+(((ee>>>16)+58964&65535)<<16)}switch(le=0,N){case 3:le^=(v.charCodeAt(E+2)&255)<<16;case 2:le^=(v.charCodeAt(E+1)&255)<<8;case 1:le^=v.charCodeAt(E)&255,le=3432918353*(le&65535)+((3432918353*(le>>>16)&65535)<<16)&4294967295,le=le<<15|le>>>17,ee^=461845907*(le&65535)+((461845907*(le>>>16)&65535)<<16)&4294967295}return ee^=v.length,ee^=ee>>>16,ee=2246822507*(ee&65535)+((2246822507*(ee>>>16)&65535)<<16)&4294967295,ee^=ee>>>13,ee=3266489909*(ee&65535)+((3266489909*(ee>>>16)&65535)<<16)&4294967295,(ee^ee>>>16)>>>0}function d(v){c6.push(v),J0.port2.postMessage(null)}function m(v){setTimeout(function(){throw v})}function h(v,E){if(E.byteLength!==0)if(2048<E.byteLength)0<Al&&(v.enqueue(new Uint8Array(El.buffer,0,Al)),El=new Uint8Array(2048),Al=0),v.enqueue(E);else{var N=El.length-Al;N<E.byteLength&&(N===0?v.enqueue(El):(El.set(E.subarray(0,N),Al),v.enqueue(El),E=E.subarray(N)),El=new Uint8Array(2048),Al=0),El.set(E,Al),Al+=E.byteLength}}function g(v,E){return h(v,E),!0}function y(v){El&&0<Al&&(v.enqueue(new Uint8Array(El.buffer,0,Al)),El=null,Al=0)}function w(v){return X0.encode(v)}function x(v){return v=X0.encode(v),2048<v.byteLength&&console.error(\"precomputed chunks must be smaller than the view size configured for this host. This is a bug in React.\"),v}function I(v){return v.byteLength}function C(v,E){typeof v.error==\"function\"?v.error(E):v.close()}function M(v){return typeof Symbol==\"function\"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||\"Object\"}function B(v){try{return z(v),!1}catch{return!0}}function z(v){return\"\"+v}function G(v,E){if(B(v))return console.error(\"The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.\",E,M(v)),z(v)}function J(v,E){if(B(v))return console.error(\"The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.\",E,M(v)),z(v)}function ne(v){if(B(v))return console.error(\"The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.\",M(v)),z(v)}function ie(v){return _o.call(zx,v)?!0:_o.call(Hx,v)?!1:Z1.test(v)?zx[v]=!0:(Hx[v]=!0,console.error(\"Invalid attribute name: `%s`\",v),!1)}function ae(v,E){u6[E.type]||E.onChange||E.onInput||E.readOnly||E.disabled||E.value==null||console.error(v===\"select\"?\"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.\":\"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.\"),E.onChange||E.readOnly||E.disabled||E.checked==null||console.error(\"You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.\")}function te(v,E){if(_o.call(af,E)&&af[E])return!0;if(nl.test(E)){if(v=\"aria-\"+E.slice(4).toLowerCase(),v=Ws.hasOwnProperty(v)?v:null,v==null)return console.error(\"Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.\",E),af[E]=!0;if(E!==v)return console.error(\"Invalid ARIA attribute `%s`. Did you mean `%s`?\",E,v),af[E]=!0}if(XA.test(E)){if(v=E.toLowerCase(),v=Ws.hasOwnProperty(v)?v:null,v==null)return af[E]=!0,!1;E!==v&&(console.error(\"Unknown ARIA attribute `%s`. Did you mean `%s`?\",E,v),af[E]=!0)}return!0}function Z(v,E){var N=[],K;for(K in E)te(v,K)||N.push(K);E=N.map(function(ee){return\"`\"+ee+\"`\"}).join(\", \"),N.length===1?console.error(\"Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props\",E,v):1<N.length&&console.error(\"Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props\",E,v)}function X(v,E,N,K){if(_o.call(Vs,E)&&Vs[E])return!0;var ee=E.toLowerCase();if(ee===\"onfocusin\"||ee===\"onfocusout\")return console.error(\"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.\"),Vs[E]=!0;if(typeof N==\"function\"&&(v===\"form\"&&E===\"action\"||v===\"input\"&&E===\"formAction\"||v===\"button\"&&E===\"formAction\"))return!0;if(K!=null){if(v=K.possibleRegistrationNames,K.registrationNameDependencies.hasOwnProperty(E))return!0;if(K=v.hasOwnProperty(ee)?v[ee]:null,K!=null)return console.error(\"Invalid event handler property `%s`. Did you mean `%s`?\",E,K),Vs[E]=!0;if(nb.test(E))return console.error(\"Unknown event handler property `%s`. It will be ignored.\",E),Vs[E]=!0}else if(nb.test(E))return eg.test(E)&&console.error(\"Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.\",E),Vs[E]=!0;if(Bm.test(E)||pp.test(E))return!0;if(ee===\"innerhtml\")return console.error(\"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`.\"),Vs[E]=!0;if(ee===\"aria\")return console.error(\"The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead.\"),Vs[E]=!0;if(ee===\"is\"&&N!==null&&N!==void 0&&typeof N!=\"string\")return console.error(\"Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.\",typeof N),Vs[E]=!0;if(typeof N==\"number\"&&isNaN(N))return console.error(\"Received NaN for the `%s` attribute. If this is expected, cast the value to a string.\",E),Vs[E]=!0;if(Q1.hasOwnProperty(ee)){if(ee=Q1[ee],ee!==E)return console.error(\"Invalid DOM property `%s`. Did you mean `%s`?\",E,ee),Vs[E]=!0}else if(E!==ee)return console.error(\"React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.\",E,ee),Vs[E]=!0;switch(E){case\"dangerouslySetInnerHTML\":case\"children\":case\"style\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":return!0;case\"innerText\":case\"textContent\":return!0}switch(typeof N){case\"boolean\":switch(E){case\"autoFocus\":case\"checked\":case\"multiple\":case\"muted\":case\"selected\":case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":case\"capture\":case\"download\":case\"inert\":return!0;default:return ee=E.toLowerCase().slice(0,5),ee===\"data-\"||ee===\"aria-\"?!0:(N?console.error(\\'Received `%s` for a non-boolean attribute `%s`.\\\\n\\\\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\\',N,E,E,N,E):console.error(\\'Received `%s` for a non-boolean attribute `%s`.\\\\n\\\\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\\\\n\\\\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.\\',N,E,E,N,E,E,E),Vs[E]=!0)}case\"function\":case\"symbol\":return Vs[E]=!0,!1;case\"string\":if(N===\"false\"||N===\"true\"){switch(E){case\"checked\":case\"selected\":case\"multiple\":case\"muted\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":case\"inert\":break;default:return!0}console.error(\"Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?\",N,E,N===\"false\"?\"The browser will interpret it as a truthy value.\":\\'Although this works, it will not work as expected if you pass the string \"false\".\\',E,N),Vs[E]=!0}}return!0}function F(v,E,N){var K=[],ee;for(ee in E)X(v,ee,E[ee],N)||K.push(ee);E=K.map(function(le){return\"`\"+le+\"`\"}).join(\", \"),K.length===1?console.error(\"Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior \",E,v):1<K.length&&console.error(\"Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior \",E,v)}function R(v){return v.replace(Lm,function(E,N){return N.toUpperCase()})}function O(v){if(typeof v==\"boolean\"||typeof v==\"number\"||typeof v==\"bigint\")return\"\"+v;ne(v),v=\"\"+v;var E=gs.exec(v);if(E){var N=\"\",K,ee=0;for(K=E.index;K<v.length;K++){switch(v.charCodeAt(K)){case 34:E=\"&quot;\";break;case 38:E=\"&amp;\";break;case 39:E=\"&#x27;\";break;case 60:E=\"&lt;\";break;case 62:E=\"&gt;\";break;default:continue}ee!==K&&(N+=v.slice(ee,K)),ee=K+1,N+=E}v=ee!==K?N+v.slice(ee,K):N}return v}function U(v){return J1.test(\"\"+v)?\"javascript:throw new Error(\\'React has blocked a javascript: URL as a security precaution.\\')\":v}function P(v){return ne(v),(\"\"+v).replace(f6,t)}function L(v,E,N,K,ee,le){N=typeof E==\"string\"?E:E&&E.script;var ye=N===void 0?$1:x(\\'<script nonce=\"\\'+O(N)+\\'\"\\'),Ae=typeof E==\"string\"?void 0:E&&E.style,Ye=Ae===void 0?tg:x(\\'<style nonce=\"\\'+O(Ae)+\\'\"\\'),Me=v.idPrefix,Fe=[],vt=v.bootstrapScriptContent,mt=v.bootstrapScripts,At=v.bootstrapModules;if(vt!==void 0&&(Fe.push(ye),Mn(Fe,v),Fe.push(Wo,w(P(vt)),uf)),vt=[],K!==void 0&&(vt.push(rb),vt.push(w(P(JSON.stringify(K)))),vt.push(qx)),ee&&typeof le==\"number\"&&0>=le&&console.error(\"React expected a positive non-zero `maxHeadersLength` option but found %s instead. When using the `onHeaders` option you may supply an optional `maxHeadersLength` option as well however, when setting this value to zero or less no headers will be captured.\",le===0?\"zero\":le),K=ee?{preconnects:\"\",fontPreloads:\"\",highImagePreloads:\"\",remainingCapacity:2+(typeof le==\"number\"?le:2e3)}:null,ee={placeholderPrefix:x(Me+\"P:\"),segmentPrefix:x(Me+\"S:\"),boundaryPrefix:x(Me+\"B:\"),startInlineScript:ye,startInlineStyle:Ye,preamble:q(),externalRuntimeScript:null,bootstrapChunks:Fe,importMapChunks:vt,onHeaders:ee,headers:K,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:{script:N,style:Ae},hoistableState:null,stylesToHoist:!1},mt!==void 0)for(K=0;K<mt.length;K++)le=mt[K],Ye=Ae=void 0,Me={rel:\"preload\",as:\"script\",fetchPriority:\"low\",nonce:E},typeof le==\"string\"?Me.href=ye=le:(Me.href=ye=le.src,Me.integrity=Ye=typeof le.integrity==\"string\"?le.integrity:void 0,Me.crossOrigin=Ae=typeof le==\"string\"||le.crossOrigin==null?void 0:le.crossOrigin===\"use-credentials\"?\"use-credentials\":\"\"),Eo(v,ee,ye,Me),Fe.push(l6,w(O(ye)),Fi),N&&Fe.push(qs,w(O(N)),Fi),typeof Ye==\"string\"&&Fe.push(Gx,w(O(Ye)),Fi),typeof Ae==\"string\"&&Fe.push(ev,w(O(Ae)),Fi),Mn(Fe,v),Fe.push(tv);if(At!==void 0)for(E=0;E<At.length;E++)mt=At[E],ye=le=void 0,Ae={rel:\"modulepreload\",fetchPriority:\"low\",nonce:N},typeof mt==\"string\"?Ae.href=K=mt:(Ae.href=K=mt.src,Ae.integrity=ye=typeof mt.integrity==\"string\"?mt.integrity:void 0,Ae.crossOrigin=le=typeof mt==\"string\"||mt.crossOrigin==null?void 0:mt.crossOrigin===\"use-credentials\"?\"use-credentials\":\"\"),Eo(v,ee,K,Ae),Fe.push(d6,w(O(K)),Fi),N&&Fe.push(qs,w(O(N)),Fi),typeof ye==\"string\"&&Fe.push(Gx,w(O(ye)),Fi),typeof le==\"string\"&&Fe.push(ev,w(O(le)),Fi),Mn(Fe,v),Fe.push(tv);return ee}function W(v,E,N,K,ee){return{idPrefix:v===void 0?\"\":v,nextFormID:0,streamingFormat:0,bootstrapScriptContent:N,bootstrapScripts:K,bootstrapModules:ee,instructions:Ra,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function q(){return{htmlChunks:null,headChunks:null,bodyChunks:null}}function H(v,E,N,K){return{insertionMode:v,selectedValue:E,tagScope:N,viewTransition:K}}function k(v){return H(v===\"http://www.w3.org/2000/svg\"?md:v===\"http://www.w3.org/1998/Math/MathML\"?ib:ob,null,0,null)}function V(v,E,N){var K=v.tagScope&-25;switch(E){case\"noscript\":return H(Sl,null,K|1,null);case\"select\":return H(Sl,N.value!=null?N.value:N.defaultValue,K,null);case\"svg\":return H(md,null,K,null);case\"picture\":return H(Sl,null,K|2,null);case\"math\":return H(ib,null,K,null);case\"foreignObject\":return H(Sl,null,K,null);case\"table\":return H(hp,null,K,null);case\"thead\":case\"tbody\":case\"tfoot\":return H(Sh,null,K,null);case\"colgroup\":return H(ov,null,K,null);case\"tr\":return H(ab,null,K,null);case\"head\":if(v.insertionMode<Sl)return H(rv,null,K,null);break;case\"html\":if(v.insertionMode===ob)return H(Ah,null,K,null)}return v.insertionMode>=hp||v.insertionMode<Sl?H(Sl,null,K,null):v.tagScope!==K?H(v.insertionMode,v.selectedValue,K,null):v}function oe(v){return v===null?null:{update:v.update,enter:\"none\",exit:\"none\",share:v.update,name:v.autoName,autoName:v.autoName,nameIdx:0}}function se(v,E){return E.tagScope&32&&(v.instructions|=128),H(E.insertionMode,E.selectedValue,E.tagScope|12,oe(E.viewTransition))}function ue(v,E){v=oe(E.viewTransition);var N=E.tagScope|16;return v!==null&&v.share!==\"none\"&&(N|=64),H(E.insertionMode,E.selectedValue,N,v)}function he(v,E,N,K){return E===\"\"?K:(K&&v.push(il),v.push(w(O(E))),!0)}function be(v,E){if(typeof E!=\"object\")throw Error(\"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \\'em\\'}} when using JSX.\");var N=!0,K;for(K in E)if(_o.call(E,K)){var ee=E[K];if(ee!=null&&typeof ee!=\"boolean\"&&ee!==\"\"){if(K.indexOf(\"--\")===0){var le=w(O(K));J(ee,K),ee=w(O((\"\"+ee).trim()))}else{le=K;var ye=ee;if(-1<le.indexOf(\"-\")){var Ae=le;Fm.hasOwnProperty(Ae)&&Fm[Ae]||(Fm[Ae]=!0,console.error(\"Unsupported style property %s. Did you mean %s?\",Ae,R(Ae.replace(Xa,\"ms-\"))))}else if(mc.test(le))Ae=le,Fm.hasOwnProperty(Ae)&&Fm[Ae]||(Fm[Ae]=!0,console.error(\"Unsupported vendor-prefixed style property %s. Did you mean %s?\",Ae,Ae.charAt(0).toUpperCase()+Ae.slice(1)));else if(Um.test(ye)){Ae=le;var Ye=ye;du.hasOwnProperty(Ye)&&du[Ye]||(du[Ye]=!0,console.error(`Style property values shouldn\\'t contain a semicolon. Try \"%s: %s\" instead.`,Ae,Ye.replace(Um,\"\")))}typeof ye==\"number\"&&(isNaN(ye)?Gs||(Gs=!0,console.error(\"`NaN` is an invalid value for the `%s` css style property.\",le)):isFinite(ye)||rl||(rl=!0,console.error(\"`Infinity` is an invalid value for the `%s` css style property.\",le))),le=K,ye=iv.get(le),ye!==void 0||(ye=x(O(le.replace(hd,\"-$1\").toLowerCase().replace(gc,\"-ms-\"))),iv.set(le,ye)),le=ye,typeof ee==\"number\"?ee=ee===0||$0.has(K)?w(\"\"+ee):w(ee+\"px\"):(J(ee,K),ee=w(O((\"\"+ee).trim())))}N?(N=!1,v.push(Kx,le,m4,ee)):v.push(Yx,le,m4,ee)}}N||v.push(Fi)}function we(v,E,N){N&&typeof N!=\"function\"&&typeof N!=\"symbol\"&&v.push(pu,w(E),_h)}function Ie(v,E,N){typeof N!=\"function\"&&typeof N!=\"symbol\"&&typeof N!=\"boolean\"&&v.push(pu,w(E),_l,w(O(N)),Fi)}function _e(v,E){this.push(p6),Ve(v),Ie(this,\"name\",E),Ie(this,\"value\",v),this.push(Wc)}function Ve(v){if(typeof v!=\"string\")throw Error(\"File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration.\")}function Et(v,E){if(typeof E.$$FORM_ACTION==\"function\"){var N=v.nextFormID++;v=v.idPrefix+N;try{var K=E.$$FORM_ACTION(v);if(K){var ee=K.data;ee?.forEach(Ve)}return K}catch(le){if(typeof le==\"object\"&&le!==null&&typeof le.then==\"function\")throw le;console.error(`Failed to serialize an action for progressive enhancement:\\n%s`,le)}}return null}function qe(v,E,N,K,ee,le,ye,Ae){var Ye=null;if(typeof K==\"function\"){Ae===null||h6||(h6=!0,console.error(\\'Cannot specify a \"name\" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.\\')),ee===null&&le===null||tS||(tS=!0,console.error(\"Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.\")),ye===null||sv||(sv=!0,console.error(\"Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.\"));var Me=Et(E,K);Me!==null?(Ae=Me.name,K=Me.action||\"\",ee=Me.encType,le=Me.method,ye=Me.target,Ye=Me.data):(v.push(pu,w(\"formAction\"),_l,$A,Fi),ye=le=ee=K=Ae=null,mn(E,N))}return Ae!=null&&Xe(v,\"name\",Ae),K!=null&&Xe(v,\"formAction\",K),ee!=null&&Xe(v,\"formEncType\",ee),le!=null&&Xe(v,\"formMethod\",le),ye!=null&&Xe(v,\"formTarget\",ye),Ye}function Xe(v,E,N){switch(E){case\"className\":Ie(v,\"class\",N);break;case\"tabIndex\":Ie(v,\"tabindex\",N);break;case\"dir\":case\"role\":case\"viewBox\":case\"width\":case\"height\":Ie(v,E,N);break;case\"style\":be(v,N);break;case\"src\":case\"href\":if(N===\"\"){console.error(E===\"src\"?\\'An empty string (\"\") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\':\\'An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\',E,E);break}case\"action\":case\"formAction\":if(N==null||typeof N==\"function\"||typeof N==\"symbol\"||typeof N==\"boolean\")break;G(N,E),N=U(\"\"+N),v.push(pu,w(E),_l,w(O(N)),Fi);break;case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"ref\":break;case\"autoFocus\":case\"multiple\":case\"muted\":we(v,E.toLowerCase(),N);break;case\"xlinkHref\":if(typeof N==\"function\"||typeof N==\"symbol\"||typeof N==\"boolean\")break;G(N,E),N=U(\"\"+N),v.push(pu,w(\"xlink:href\"),_l,w(O(N)),Fi);break;case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":typeof N!=\"function\"&&typeof N!=\"symbol\"&&v.push(pu,w(E),_l,w(O(N)),Fi);break;case\"inert\":N!==\"\"||nv[E]||(nv[E]=!0,console.error(\"Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.\",E));case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":N&&typeof N!=\"function\"&&typeof N!=\"symbol\"&&v.push(pu,w(E),_h);break;case\"capture\":case\"download\":N===!0?v.push(pu,w(E),_h):N!==!1&&typeof N!=\"function\"&&typeof N!=\"symbol\"&&v.push(pu,w(E),_l,w(O(N)),Fi);break;case\"cols\":case\"rows\":case\"size\":case\"span\":typeof N!=\"function\"&&typeof N!=\"symbol\"&&!isNaN(N)&&1<=N&&v.push(pu,w(E),_l,w(O(N)),Fi);break;case\"rowSpan\":case\"start\":typeof N==\"function\"||typeof N==\"symbol\"||isNaN(N)||v.push(pu,w(E),_l,w(O(N)),Fi);break;case\"xlinkActuate\":Ie(v,\"xlink:actuate\",N);break;case\"xlinkArcrole\":Ie(v,\"xlink:arcrole\",N);break;case\"xlinkRole\":Ie(v,\"xlink:role\",N);break;case\"xlinkShow\":Ie(v,\"xlink:show\",N);break;case\"xlinkTitle\":Ie(v,\"xlink:title\",N);break;case\"xlinkType\":Ie(v,\"xlink:type\",N);break;case\"xmlBase\":Ie(v,\"xml:base\",N);break;case\"xmlLang\":Ie(v,\"xml:lang\",N);break;case\"xmlSpace\":Ie(v,\"xml:space\",N);break;default:if((!(2<E.length)||E[0]!==\"o\"&&E[0]!==\"O\"||E[1]!==\"n\"&&E[1]!==\"N\")&&(E=Dm.get(E)||E,ie(E))){switch(typeof N){case\"function\":case\"symbol\":return;case\"boolean\":var K=E.toLowerCase().slice(0,5);if(K!==\"data-\"&&K!==\"aria-\")return}v.push(pu,w(E),_l,w(O(N)),Fi)}}}function rt(v,E,N){if(E!=null){if(N!=null)throw Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");if(typeof E!=\"object\"||!(\"__html\"in E))throw Error(\"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.\");E=E.__html,E!=null&&(ne(E),v.push(w(\"\"+E)))}}function wt(v,E){var N=v[E];N!=null&&(N=dp(N),v.multiple&&!N?console.error(\"The `%s` prop supplied to <select> must be an array if `multiple` is true.\",E):!v.multiple&&N&&console.error(\"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.\",E))}function ot(v){var E=\"\";return K1.Children.forEach(v,function(N){N!=null&&(E+=N,Qx||typeof N==\"string\"||typeof N==\"number\"||typeof N==\"bigint\"||(Qx=!0,console.error(\"Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.\")))}),E}function mn(v,E){if((v.instructions&16)===Ra){v.instructions|=16;var N=E.preamble,K=E.bootstrapChunks;(N.htmlChunks||N.headChunks)&&K.length===0?(K.push(E.startInlineScript),Mn(K,v),K.push(Wo,nS,uf)):K.unshift(E.startInlineScript,Wo,nS,uf)}}function St(v,E){v.push(fn(\"link\"));for(var N in E)if(_o.call(E,N)){var K=E[N];if(K!=null)switch(N){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(\"link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:Xe(v,N,K)}}return v.push(Wc),null}function rn(v){return ne(v),(\"\"+v).replace(Vo,e)}function $t(v,E,N){v.push(fn(N));for(var K in E)if(_o.call(E,K)){var ee=E[K];if(ee!=null)switch(K){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(N+\" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:Xe(v,K,ee)}}return v.push(Wc),null}function Kt(v,E){v.push(fn(\"title\"));var N=null,K=null,ee;for(ee in E)if(_o.call(E,ee)){var le=E[ee];if(le!=null)switch(ee){case\"children\":N=le;break;case\"dangerouslySetInnerHTML\":K=le;break;default:Xe(v,ee,le)}}return v.push(Wo),E=Array.isArray(N)?2>N.length?N[0]:null:N,typeof E!=\"function\"&&typeof E!=\"symbol\"&&E!==null&&E!==void 0&&v.push(w(O(\"\"+E))),rt(v,K,N),v.push(Ar(\"title\")),null}function en(v,E){v.push(fn(\"script\"));var N=null,K=null,ee;for(ee in E)if(_o.call(E,ee)){var le=E[ee];if(le!=null)switch(ee){case\"children\":N=le;break;case\"dangerouslySetInnerHTML\":K=le;break;default:Xe(v,ee,le)}}return v.push(Wo),N!=null&&typeof N!=\"string\"&&(E=typeof N==\"number\"?\"a number for children\":Array.isArray(N)?\"an array for children\":\"something unexpected for children\",console.error(\"A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.\",E)),rt(v,K,N),typeof N==\"string\"&&v.push(w(P(N))),v.push(Ar(\"script\")),null}function Ho(v,E,N){v.push(fn(N));var K=N=null,ee;for(ee in E)if(_o.call(E,ee)){var le=E[ee];if(le!=null)switch(ee){case\"children\":N=le;break;case\"dangerouslySetInnerHTML\":K=le;break;default:Xe(v,ee,le)}}return v.push(Wo),rt(v,K,N),N}function Fn(v,E,N){v.push(fn(N));var K=N=null,ee;for(ee in E)if(_o.call(E,ee)){var le=E[ee];if(le!=null)switch(ee){case\"children\":N=le;break;case\"dangerouslySetInnerHTML\":K=le;break;default:Xe(v,ee,le)}}return v.push(Wo),rt(v,K,N),typeof N==\"string\"?(v.push(w(O(N))),null):N}function fn(v){var E=oS.get(v);if(E===void 0){if(!mp.test(v))throw Error(\"Invalid tag: \"+v);E=x(\"<\"+v),oS.set(v,E)}return E}function Hs(v,E,N,K,ee,le,ye,Ae,Ye){Z(E,N),E!==\"input\"&&E!==\"textarea\"&&E!==\"select\"||N==null||N.value!==null||Hr||(Hr=!0,E===\"select\"&&N.multiple?console.error(\"`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.\",E):console.error(\"`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.\",E));e:if(E.indexOf(\"-\")===-1)var Me=!1;else switch(E){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":Me=!1;break e;default:Me=!0}switch(Me||typeof N.is==\"string\"||F(E,N,null),!N.suppressContentEditableWarning&&N.contentEditable&&N.children!=null&&console.error(\"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.\"),Ae.insertionMode!==md&&Ae.insertionMode!==ib&&E.indexOf(\"-\")===-1&&E.toLowerCase()!==E&&console.error(\"<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.\",E),E){case\"div\":case\"span\":case\"svg\":case\"path\":break;case\"a\":v.push(fn(\"a\"));var Fe=null,vt=null,mt;for(mt in N)if(_o.call(N,mt)){var At=N[mt];if(At!=null)switch(mt){case\"children\":Fe=At;break;case\"dangerouslySetInnerHTML\":vt=At;break;case\"href\":At===\"\"?Ie(v,\"href\",\"\"):Xe(v,mt,At);break;default:Xe(v,mt,At)}}if(v.push(Wo),rt(v,vt,Fe),typeof Fe==\"string\"){v.push(w(O(Fe)));var $e=null}else $e=Fe;return $e;case\"g\":case\"p\":case\"li\":break;case\"select\":ae(\"select\",N),wt(N,\"value\"),wt(N,\"defaultValue\"),N.value===void 0||N.defaultValue===void 0||_t||(console.error(\"Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components\"),_t=!0),v.push(fn(\"select\"));var En=null,Yr=null,wn;for(wn in N)if(_o.call(N,wn)){var Pn=N[wn];if(Pn!=null)switch(wn){case\"children\":En=Pn;break;case\"dangerouslySetInnerHTML\":Yr=Pn;break;case\"defaultValue\":case\"value\":break;default:Xe(v,wn,Pn)}}return v.push(Wo),rt(v,Yr,En),En;case\"option\":var po=Ae.selectedValue;v.push(fn(\"option\"));var pi=null,qn=null,dn=null,wi=null,Ia;for(Ia in N)if(_o.call(N,Ia)){var Zr=N[Ia];if(Zr!=null)switch(Ia){case\"children\":pi=Zr;break;case\"selected\":dn=Zr,eS||(console.error(\"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.\"),eS=!0);break;case\"dangerouslySetInnerHTML\":wi=Zr;break;case\"value\":qn=Zr;default:Xe(v,Ia,Zr)}}if(po!=null){if(qn!==null){G(qn,\"value\");var Ro=\"\"+qn}else wi===null||fa||(fa=!0,console.error(\"Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.\")),Ro=ot(pi);if(dp(po)){for(var ka=0;ka<po.length;ka++)if(G(po[ka],\"value\"),\"\"+po[ka]===Ro){v.push(Jx);break}}else G(po,\"select.value\"),\"\"+po===Ro&&v.push(Jx)}else dn&&v.push(Jx);return v.push(Wo),rt(v,wi,pi),pi;case\"textarea\":ae(\"textarea\",N),N.value===void 0||N.defaultValue===void 0||sb||(console.error(\"Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components\"),sb=!0),v.push(fn(\"textarea\"));var zi=null,Ci=null,Io=null,ji;for(ji in N)if(_o.call(N,ji)){var Js=N[ji];if(Js!=null)switch(ji){case\"children\":Io=Js;break;case\"value\":zi=Js;break;case\"defaultValue\":Ci=Js;break;case\"dangerouslySetInnerHTML\":throw Error(\"`dangerouslySetInnerHTML` does not make sense on <textarea>.\");default:Xe(v,ji,Js)}}if(zi===null&&Ci!==null&&(zi=Ci),v.push(Wo),Io!=null){if(console.error(\"Use the `defaultValue` or `value` props instead of setting children on <textarea>.\"),zi!=null)throw Error(\"If you supply `defaultValue` on a <textarea>, do not pass children.\");if(dp(Io)){if(1<Io.length)throw Error(\"<textarea> can only have at most one child.\");ne(Io[0]),zi=\"\"+Io[0]}ne(Io),zi=\"\"+Io}return typeof zi==\"string\"&&zi[0]===`\\n`&&v.push(Hm),zi!==null&&(G(zi,\"value\"),v.push(w(O(\"\"+zi)))),null;case\"input\":ae(\"input\",N),v.push(fn(\"input\"));var Xs=null,Wi=null,Ko=null,Ri=null,Oa=null,Na=null,bu=null,ws=null,xi=null,vc;for(vc in N)if(_o.call(N,vc)){var ha=N[vc];if(ha!=null)switch(vc){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(\"input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");case\"name\":Xs=ha;break;case\"formAction\":Wi=ha;break;case\"formEncType\":Ko=ha;break;case\"formMethod\":Ri=ha;break;case\"formTarget\":Oa=ha;break;case\"defaultChecked\":xi=ha;break;case\"defaultValue\":bu=ha;break;case\"checked\":ws=ha;break;case\"value\":Na=ha;break;default:Xe(v,vc,ha)}}Wi===null||N.type===\"image\"||N.type===\"submit\"||av||(av=!0,console.error(\\'An input can only specify a formAction along with type=\"submit\" or type=\"image\".\\'));var jm=qe(v,K,ee,Wi,Ko,Ri,Oa,Xs);return ws===null||xi===null||ar||(console.error(\"%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components\",\"A component\",N.type),ar=!0),Na===null||bu===null||Zx||(console.error(\"%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components\",\"A component\",N.type),Zx=!0),ws!==null?we(v,\"checked\",ws):xi!==null&&we(v,\"checked\",xi),Na!==null?Xe(v,\"value\",Na):bu!==null&&Xe(v,\"value\",bu),v.push(Wc),jm?.forEach(_e,v),null;case\"button\":v.push(fn(\"button\"));var $s=null,ii=null,wc=null,In=null,pf=null,wp=null,Gc=null,xp;for(xp in N)if(_o.call(N,xp)){var ec=N[xp];if(ec!=null)switch(xp){case\"children\":$s=ec;break;case\"dangerouslySetInnerHTML\":ii=ec;break;case\"name\":wc=ec;break;case\"formAction\":In=ec;break;case\"formEncType\":pf=ec;break;case\"formMethod\":wp=ec;break;case\"formTarget\":Gc=ec;break;default:Xe(v,xp,ec)}}In===null||N.type==null||N.type===\"submit\"||av||(av=!0,console.error(\\'A button can only specify a formAction along with type=\"submit\" or no type.\\'));var hf=qe(v,K,ee,In,pf,wp,Gc,wc);if(v.push(Wo),hf?.forEach(_e,v),rt(v,ii,$s),typeof $s==\"string\"){v.push(w(O($s)));var Wm=null}else Wm=$s;return Wm;case\"form\":v.push(fn(\"form\"));var xc=null,Ep=null,Vi=null,Ap=null,mf=null,Pa=null,ns;for(ns in N)if(_o.call(N,ns)){var qc=N[ns];if(qc!=null)switch(ns){case\"children\":xc=qc;break;case\"dangerouslySetInnerHTML\":Ep=qc;break;case\"action\":Vi=qc;break;case\"encType\":Ap=qc;break;case\"method\":mf=qc;break;case\"target\":Pa=qc;break;default:Xe(v,ns,qc)}}var Kc=null,xs=null;if(typeof Vi==\"function\"){Ap===null&&mf===null||tS||(tS=!0,console.error(\"Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.\")),Pa===null||sv||(sv=!0,console.error(\"Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.\"));var ma=Et(K,Vi);ma!==null?(Vi=ma.action||\"\",Ap=ma.encType,mf=ma.method,Pa=ma.target,Kc=ma.data,xs=ma.name):(v.push(pu,w(\"action\"),_l,$A,Fi),Pa=mf=Ap=Vi=null,mn(K,ee))}if(Vi!=null&&Xe(v,\"action\",Vi),Ap!=null&&Xe(v,\"encType\",Ap),mf!=null&&Xe(v,\"method\",mf),Pa!=null&&Xe(v,\"target\",Pa),v.push(Wo),xs!==null&&(v.push(p6),Ie(v,\"name\",xs),v.push(Wc),Kc?.forEach(_e,v)),rt(v,Ep,xc),typeof xc==\"string\"){v.push(w(O(xc)));var kl=null}else kl=xc;return kl;case\"menuitem\":v.push(fn(\"menuitem\"));for(var Yc in N)if(_o.call(N,Yc)){var Ad=N[Yc];if(Ad!=null)switch(Yc){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(\"menuitems cannot have `children` nor `dangerouslySetInnerHTML`.\");default:Xe(v,Yc,Ad)}}return v.push(Wo),null;case\"object\":v.push(fn(\"object\"));var vu=null,cg=null,rs;for(rs in N)if(_o.call(N,rs)){var wu=N[rs];if(wu!=null)switch(rs){case\"children\":vu=wu;break;case\"dangerouslySetInnerHTML\":cg=wu;break;case\"data\":G(wu,\"data\");var Sd=U(\"\"+wu);if(Sd===\"\"){console.error(\\'An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.\\',rs,rs);break}v.push(pu,w(\"data\"),_l,w(O(Sd)),Fi);break;default:Xe(v,rs,wu)}}if(v.push(Wo),rt(v,cg,vu),typeof vu==\"string\"){v.push(w(O(vu)));var Rh=null}else Rh=vu;return Rh;case\"title\":var Wn=Ae.tagScope&1,Sv=Ae.tagScope&4;if(_o.call(N,\"children\")){var Ol=N.children,gf=Array.isArray(Ol)?2>Ol.length?Ol[0]:null:Ol;Array.isArray(Ol)&&1<Ol.length?console.error(\"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.\",Ol.length):typeof gf==\"function\"||typeof gf==\"symbol\"?console.error(\"React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.\",typeof gf==\"function\"?\"a Function\":\"a Sybmol\"):gf&&gf.toString==={}.toString&&(gf.$$typeof!=null?console.error(\"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML.\"):console.error(\"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>.\"))}if(Ae.insertionMode===md||Wn||N.itemProp!=null)var Nl=Kt(v,N);else Sv?Nl=null:(Kt(ee.hoistableChunks,N),Nl=void 0);return Nl;case\"link\":var _d=Ae.tagScope&1,ug=Ae.tagScope&4,_v=N.rel,os=N.href,Zc=N.precedence;if(Ae.insertionMode===md||_d||N.itemProp!=null||typeof _v!=\"string\"||typeof os!=\"string\"||os===\"\"){_v===\"stylesheet\"&&typeof N.precedence==\"string\"&&(typeof os==\"string\"&&os||console.error(\\'React encountered a `<link rel=\"stylesheet\" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.\\',os===null?\"`null`\":os===void 0?\"`undefined`\":os===\"\"?\"an empty string\":\\'something with type \"\\'+typeof os+\\'\"\\')),St(v,N);var ai=null}else if(N.rel===\"stylesheet\")if(typeof Zc!=\"string\"||N.disabled!=null||N.onLoad||N.onError){if(typeof Zc==\"string\"){if(N.disabled!=null)console.error(\\'React encountered a `<link rel=\"stylesheet\" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.\\');else if(N.onLoad||N.onError){var lg=N.onLoad&&N.onError?\"`onLoad` and `onError` props\":N.onLoad?\"`onLoad` prop\":\"`onError` prop\";console.error(\\'React encountered a `<link rel=\"stylesheet\" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.\\',lg,lg)}}ai=St(v,N)}else{var Ii=ee.styles.get(Zc),Ei=K.styleResources.hasOwnProperty(os)?K.styleResources[os]:void 0;if(Ei!==es){K.styleResources[os]=es,Ii||(Ii={precedence:w(O(Zc)),rules:[],hrefs:[],sheets:new Map},ee.styles.set(Zc,Ii));var Pr={state:vp,props:So({},N,{\"data-precedence\":N.precedence,precedence:null})};if(Ei){Ei.length===2&&Fr(Pr.props,Ei);var ho=ee.preloads.stylesheets.get(os);ho&&0<ho.length?ho.length=0:Pr.state=ig}Ii.sheets.set(os,Pr),ye&&ye.stylesheets.add(Pr)}else if(Ii){var mo=Ii.sheets.get(os);mo&&ye&&ye.stylesheets.add(mo)}Ye&&v.push(il),ai=null}else N.onLoad||N.onError?ai=St(v,N):(Ye&&v.push(il),ai=ug?null:St(ee.hoistableChunks,N));return ai;case\"script\":var Td=Ae.tagScope&1,$i=N.async;if(typeof N.src!=\"string\"||!N.src||!$i||typeof $i==\"function\"||typeof $i==\"symbol\"||N.onLoad||N.onError||Ae.insertionMode===md||Td||N.itemProp!=null)var Sp=en(v,N);else{var _p=N.src;if(N.type===\"module\")var Ih=K.moduleScriptResources,Tp=ee.preloads.moduleScripts;else Ih=K.scriptResources,Tp=ee.preloads.scripts;var Es=Ih.hasOwnProperty(_p)?Ih[_p]:void 0;if(Es!==es){Ih[_p]=es;var kh=N;if(Es){Es.length===2&&(kh=So({},N),Fr(kh,Es));var Vm=Tp.get(_p);Vm&&(Vm.length=0)}var yb=[];ee.scripts.add(yb),en(yb,kh)}Ye&&v.push(il),Sp=null}return Sp;case\"style\":var bb=Ae.tagScope&1;if(_o.call(N,\"children\")){var Gm=N.children,dg=Array.isArray(Gm)?2>Gm.length?Gm[0]:null:Gm;(typeof dg==\"function\"||typeof dg==\"symbol\"||Array.isArray(dg))&&console.error(\"React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.\",typeof dg==\"function\"?\"a Function\":typeof dg==\"symbol\"?\"a Sybmol\":\"an Array\")}var Cp=N.precedence,yf=N.href,xu=N.nonce;if(Ae.insertionMode===md||bb||N.itemProp!=null||typeof Cp!=\"string\"||typeof yf!=\"string\"||yf===\"\"){v.push(fn(\"style\"));var As=null,Oh=null,vb;for(vb in N)if(_o.call(N,vb)){var SS=N[vb];if(SS!=null)switch(vb){case\"children\":As=SS;break;case\"dangerouslySetInnerHTML\":Oh=SS;break;default:Xe(v,vb,SS)}}v.push(Wo);var Nh=Array.isArray(As)?2>As.length?As[0]:null:As;typeof Nh!=\"function\"&&typeof Nh!=\"symbol\"&&Nh!==null&&Nh!==void 0&&v.push(w(rn(Nh))),rt(v,Oh,As),v.push(Ar(\"style\"));var Tv=null}else{yf.includes(\" \")&&console.error(\\'React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is \"%s\".\\',yf);var wb=ee.styles.get(Cp),k4=K.styleResources.hasOwnProperty(yf)?K.styleResources[yf]:void 0;if(k4!==es){K.styleResources[yf]=es,k4&&console.error(\\'React encountered a hoistable style tag for the same href as a preload: \"%s\". When using a style tag to inline styles you should not also preload it as a stylsheet.\\',yf),wb||(wb={precedence:w(O(Cp)),rules:[],hrefs:[],sheets:new Map},ee.styles.set(Cp,wb));var f2=ee.nonce.style;if(f2&&f2!==xu)console.error(\\'React encountered a style tag with `precedence` \"%s\" and `nonce` \"%s\". When React manages style rules using `precedence` it will only include rules if the nonce matches the style nonce \"%s\" that was included with this render.\\',Cp,xu,f2);else{!f2&&xu&&console.error(\\'React encountered a style tag with `precedence` \"%s\" and `nonce` \"%s\". When React manages style rules using `precedence` it will only include a nonce attributes if you also provide the same style nonce value as a render option.\\',Cp,xu),wb.hrefs.push(w(O(yf)));var _S=wb.rules,p2=null,lW=null,N6;for(N6 in N)if(_o.call(N,N6)){var fg=N[N6];if(fg!=null)switch(N6){case\"children\":p2=fg;break;case\"dangerouslySetInnerHTML\":lW=fg}}var P6=Array.isArray(p2)?2>p2.length?p2[0]:null:p2;typeof P6!=\"function\"&&typeof P6!=\"symbol\"&&P6!==null&&P6!==void 0&&_S.push(w(rn(P6))),rt(_S,lW,p2)}}wb&&ye&&ye.styles.add(wb),Ye&&v.push(il),Tv=void 0}return Tv;case\"meta\":var Pie=Ae.tagScope&1,dW=Ae.tagScope&4;if(Ae.insertionMode===md||Pie||N.itemProp!=null)var l7=$t(v,N,\"meta\");else Ye&&v.push(il),l7=dW?null:typeof N.charSet==\"string\"?$t(ee.charsetChunks,N,\"meta\"):N.name===\"viewport\"?$t(ee.viewportChunks,N,\"meta\"):$t(ee.hoistableChunks,N,\"meta\");return l7;case\"listing\":case\"pre\":v.push(fn(E));var M6=null,D6=null,B6;for(B6 in N)if(_o.call(N,B6)){var O4=N[B6];if(O4!=null)switch(B6){case\"children\":M6=O4;break;case\"dangerouslySetInnerHTML\":D6=O4;break;default:Xe(v,B6,O4)}}if(v.push(Wo),D6!=null){if(M6!=null)throw Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");if(typeof D6!=\"object\"||!(\"__html\"in D6))throw Error(\"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.\");var Cv=D6.__html;Cv!=null&&(typeof Cv==\"string\"&&0<Cv.length&&Cv[0]===`\\n`?v.push(Hm,w(Cv)):(ne(Cv),v.push(w(\"\"+Cv))))}return typeof M6==\"string\"&&M6[0]===`\\n`&&v.push(Hm),M6;case\"img\":var Mie=Ae.tagScope&3,Eu=N.src,ul=N.srcSet;if(!(N.loading===\"lazy\"||!Eu&&!ul||typeof Eu!=\"string\"&&Eu!=null||typeof ul!=\"string\"&&ul!=null||N.fetchPriority===\"low\"||Mie)&&(typeof Eu!=\"string\"||Eu[4]!==\":\"||Eu[0]!==\"d\"&&Eu[0]!==\"D\"||Eu[1]!==\"a\"&&Eu[1]!==\"A\"||Eu[2]!==\"t\"&&Eu[2]!==\"T\"||Eu[3]!==\"a\"&&Eu[3]!==\"A\")&&(typeof ul!=\"string\"||ul[4]!==\":\"||ul[0]!==\"d\"&&ul[0]!==\"D\"||ul[1]!==\"a\"&&ul[1]!==\"A\"||ul[2]!==\"t\"&&ul[2]!==\"T\"||ul[3]!==\"a\"&&ul[3]!==\"A\")){ye!==null&&Ae.tagScope&64&&(ye.suspenseyImages=!0);var fW=typeof N.sizes==\"string\"?N.sizes:void 0,h2=ul?ul+`\\n`+(fW||\"\"):Eu,L6=ee.preloads.images,xb=L6.get(h2);if(xb)(N.fetchPriority===\"high\"||10>ee.highImagePreloads.size)&&(L6.delete(h2),ee.highImagePreloads.add(xb));else if(!K.imageResources.hasOwnProperty(h2)){K.imageResources[h2]=ol;var d7=N.crossOrigin,bf=typeof d7==\"string\"?d7===\"use-credentials\"?d7:\"\":void 0,Rv=ee.headers,N4;Rv&&0<Rv.remainingCapacity&&typeof N.srcSet!=\"string\"&&(N.fetchPriority===\"high\"||500>Rv.highImagePreloads.length)&&(N4=lo(Eu,\"image\",{imageSrcSet:N.srcSet,imageSizes:N.sizes,crossOrigin:bf,integrity:N.integrity,nonce:N.nonce,type:N.type,fetchPriority:N.fetchPriority,referrerPolicy:N.refererPolicy}),0<=(Rv.remainingCapacity-=N4.length+2))?(ee.resets.image[h2]=ol,Rv.highImagePreloads&&(Rv.highImagePreloads+=\", \"),Rv.highImagePreloads+=N4):(xb=[],St(xb,{rel:\"preload\",as:\"image\",href:ul?void 0:Eu,imageSrcSet:ul,imageSizes:fW,crossOrigin:bf,integrity:N.integrity,type:N.type,fetchPriority:N.fetchPriority,referrerPolicy:N.referrerPolicy}),N.fetchPriority===\"high\"||10>ee.highImagePreloads.size?ee.highImagePreloads.add(xb):(ee.bulkPreloads.add(xb),L6.set(h2,xb)))}}return $t(v,N,\"img\");case\"base\":case\"area\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"keygen\":case\"param\":case\"source\":case\"track\":case\"wbr\":return $t(v,N,E);case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":break;case\"head\":if(Ae.insertionMode<Sl){var U6=le||ee.preamble;if(U6.headChunks)throw Error(\"The `<head>` tag may only be rendered once.\");le!==null&&v.push(rS),U6.headChunks=[];var f7=Ho(U6.headChunks,N,\"head\")}else f7=Fn(v,N,\"head\");return f7;case\"body\":if(Ae.insertionMode<Sl){var p7=le||ee.preamble;if(p7.bodyChunks)throw Error(\"The `<body>` tag may only be rendered once.\");le!==null&&v.push(Xx),p7.bodyChunks=[];var pW=Ho(p7.bodyChunks,N,\"body\")}else pW=Fn(v,N,\"body\");return pW;case\"html\":if(Ae.insertionMode===ob){var h7=le||ee.preamble;if(h7.htmlChunks)throw Error(\"The `<html>` tag may only be rendered once.\");le!==null&&v.push(ng),h7.htmlChunks=[cb];var m7=Ho(h7.htmlChunks,N,\"html\")}else m7=Fn(v,N,\"html\");return m7;default:if(E.indexOf(\"-\")!==-1){v.push(fn(E));var g7=null,TS=null,Eb;for(Eb in N)if(_o.call(N,Eb)){var Ph=N[Eb];if(Ph!=null){var y7=Eb;switch(Eb){case\"children\":g7=Ph;break;case\"dangerouslySetInnerHTML\":TS=Ph;break;case\"style\":be(v,Ph);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"ref\":break;case\"className\":y7=\"class\";default:if(ie(Eb)&&typeof Ph!=\"function\"&&typeof Ph!=\"symbol\"&&Ph!==!1){if(Ph===!0)Ph=\"\";else if(typeof Ph==\"object\")continue;v.push(pu,w(y7),_l,w(O(Ph)),Fi)}}}}return v.push(Wo),rt(v,TS,g7),g7}}return Fn(v,N,E)}function Ar(v){var E=iS.get(v);return E===void 0&&(E=x(\"</\"+v+\">\"),iS.set(v,E)),E}function Kr(v,E){v=v.preamble,v.htmlChunks===null&&E.htmlChunks&&(v.htmlChunks=E.htmlChunks),v.headChunks===null&&E.headChunks&&(v.headChunks=E.headChunks),v.bodyChunks===null&&E.bodyChunks&&(v.bodyChunks=E.bodyChunks)}function Ka(v,E){E=E.bootstrapChunks;for(var N=0;N<E.length-1;N++)h(v,E[N]);return N<E.length?(N=E[N],E.length=0,g(v,N)):!0}function Sr(v,E,N){if(h(v,v4),N===null)throw Error(\"An ID must have been assigned before we can complete the boundary.\");return h(v,E.boundaryPrefix),h(v,w(N.toString(16))),g(v,w4)}function $r(v,E,N,K){switch(N.insertionMode){case ob:case Ah:case rv:case Sl:return h(v,_4),h(v,E.segmentPrefix),h(v,w(K.toString(16))),g(v,uv);case md:return h(v,zm),h(v,E.segmentPrefix),h(v,w(K.toString(16))),g(v,lv);case ib:return h(v,v6),h(v,E.segmentPrefix),h(v,w(K.toString(16))),g(v,c7);case hp:return h(v,ub),h(v,E.segmentPrefix),h(v,w(K.toString(16))),g(v,lS);case Sh:return h(v,hu),h(v,E.segmentPrefix),h(v,w(K.toString(16))),g(v,dv);case ab:return h(v,t2),h(v,E.segmentPrefix),h(v,w(K.toString(16))),g(v,fv);case ov:return h(v,T4),h(v,E.segmentPrefix),h(v,w(K.toString(16))),g(v,x6);default:throw Error(\"Unknown insertion mode. This is a bug in React.\")}}function yl(v,E){switch(E.insertionMode){case ob:case Ah:case rv:case Sl:return g(v,sS);case md:return g(v,cS);case ib:return g(v,uS);case hp:return g(v,rg);case Sh:return g(v,w6);case ab:return g(v,dS);case ov:return g(v,fS);default:throw Error(\"Unknown insertion mode. This is a bug in React.\")}}function lr(v){return JSON.stringify(v).replace(hv,function(E){switch(E){case\"<\":return\"\\\\\\\\u003c\";case\"\\\\u2028\":return\"\\\\\\\\u2028\";case\"\\\\u2029\":return\"\\\\\\\\u2029\";default:throw Error(\"escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}})}function de(v){return JSON.stringify(v).replace(k6,function(E){switch(E){case\"&\":return\"\\\\\\\\u0026\";case\">\":return\"\\\\\\\\u003e\";case\"<\":return\"\\\\\\\\u003c\";case\"\\\\u2028\":return\"\\\\\\\\u2028\";case\"\\\\u2029\":return\"\\\\\\\\u2029\";default:throw Error(\"escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}})}function Le(v){var E=v.rules,N=v.hrefs;0<E.length&&N.length===0&&console.error(\"React expected to have at least one href for an a hoistable style but found none. This is a bug in React.\");var K=0;if(N.length){for(h(this,$o.startInlineStyle),h(this,u7),h(this,v.precedence),h(this,gd);K<N.length-1;K++)h(this,N[K]),h(this,ei);for(h(this,N[K]),h(this,r2),K=0;K<E.length;K++)h(this,E[K]);og=g(this,o2),Tl=!0,E.length=0,N.length=0}}function it(v){return v.state!==Cl?Tl=!0:!1}function bt(v,E,N){return Tl=!1,og=!0,$o=N,E.styles.forEach(Le,v),$o=null,E.stylesheets.forEach(it),Tl&&(N.stylesToHoist=!0),og}function jt(v){for(var E=0;E<v.length;E++)h(this,v[E]);v.length=0}function Yt(v){St(yp,v.props);for(var E=0;E<yp.length;E++)h(this,yp[E]);yp.length=0,v.state=Cl}function Qt(v){var E=0<v.sheets.size;v.sheets.forEach(Yt,this),v.sheets.clear();var N=v.rules,K=v.hrefs;if(!E||K.length){if(h(this,$o.startInlineStyle),h(this,yS),h(this,v.precedence),v=0,K.length){for(h(this,mv);v<K.length-1;v++)h(this,K[v]),h(this,ei);h(this,K[v])}for(h(this,gv),v=0;v<N.length;v++)h(this,N[v]);h(this,i2),N.length=0,K.length=0}}function ir(v){if(v.state===vp){v.state=ig;var E=v.props;for(St(yp,{rel:\"preload\",as:\"style\",href:v.props.href,crossOrigin:E.crossOrigin,fetchPriority:E.fetchPriority,integrity:E.integrity,media:E.media,hrefLang:E.hrefLang,referrerPolicy:E.referrerPolicy}),v=0;v<yp.length;v++)h(this,yp[v]);yp.length=0}}function zt(v){v.sheets.forEach(ir,this),v.sheets.clear()}function Mn(v,E){(E.instructions&yc)===Ra&&(E.instructions|=yc,v.push(lf,w(O(\"_\"+E.idPrefix+\"R_\")),Fi))}function hs(v,E){h(v,fb);var N=fb;E.stylesheets.forEach(function(K){if(K.state!==Cl)if(K.state===ag)h(v,N),K=K.props.href,G(K,\"href\"),h(v,w(de(\"\"+K))),h(v,bp),N=pb;else{h(v,N);var ee=K.props[\"data-precedence\"],le=K.props,ye=U(\"\"+K.props.href);h(v,w(de(ye))),G(ee,\"precedence\"),ee=\"\"+ee,h(v,hb),h(v,w(de(ee)));for(var Ae in le)if(_o.call(le,Ae)&&(ee=le[Ae],ee!=null))switch(Ae){case\"href\":case\"rel\":case\"precedence\":case\"data-precedence\":break;case\"children\":case\"dangerouslySetInnerHTML\":throw Error(\"link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\");default:eo(v,Ae,ee)}h(v,bp),N=pb,K.state=ag}}),h(v,bp)}function eo(v,E,N){var K=E.toLowerCase();switch(typeof N){case\"function\":case\"symbol\":return}switch(E){case\"innerHTML\":case\"dangerouslySetInnerHTML\":case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"style\":case\"ref\":return;case\"className\":K=\"class\",G(N,K),E=\"\"+N;break;case\"hidden\":if(N===!1)return;E=\"\";break;case\"src\":case\"href\":N=U(N),G(N,K),E=\"\"+N;break;default:if(2<E.length&&(E[0]===\"o\"||E[0]===\"O\")&&(E[1]===\"n\"||E[1]===\"N\")||!ie(E))return;G(N,K),E=\"\"+N}h(v,hb),h(v,w(de(K))),h(v,hb),h(v,w(de(E)))}function Ur(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function Eo(v,E,N,K){(v.scriptResources.hasOwnProperty(N)||v.moduleScriptResources.hasOwnProperty(N))&&console.error(\\'Internal React Error: React expected bootstrap script or module with src \"%s\" to not have been preloaded already. please file an issue\\',N),v.scriptResources[N]=es,v.moduleScriptResources[N]=es,v=[],St(v,K),E.bootstrapScripts.add(v)}function Fr(v,E){v.crossOrigin==null&&(v.crossOrigin=E[0]),v.integrity==null&&(v.integrity=E[1])}function lo(v,E,N){v=zs(v),E=zo(E,\"as\"),E=\"<\"+v+\\'>; rel=preload; as=\"\\'+E+\\'\"\\';for(var K in N)_o.call(N,K)&&(v=N[K],typeof v==\"string\"&&(E+=\"; \"+K.toLowerCase()+\\'=\"\\'+zo(v,K)+\\'\"\\'));return E}function zs(v){return G(v,\"href\"),(\"\"+v).replace(C4,_r)}function _r(v){switch(v){case\"<\":return\"%3C\";case\">\":return\"%3E\";case`\\n`:return\"%0A\";case\"\\\\r\":return\"%0D\";default:throw Error(\"escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}}function zo(v,E){return B(v)&&(console.error(\"The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here.\",E,M(v)),z(v)),(\"\"+v).replace(ys,Qu)}function Qu(v){switch(v){case\\'\"\\':return\"%22\";case\"\\'\":return\"%27\";case\";\":return\"%3B\";case\",\":return\"%2C\";case`\\n`:return\"%0A\";case\"\\\\r\":return\"%0D\";default:throw Error(\"escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React\")}}function jo(v){this.styles.add(v)}function fi(v){this.stylesheets.add(v)}function _a(v,E){E.styles.forEach(jo,v),E.stylesheets.forEach(fi,v),E.suspenseyImages&&(v.suspenseyImages=!0)}function Tr(v){return 0<v.stylesheets.size||v.suspenseyImages}function ln(v){if(v==null)return null;if(typeof v==\"function\")return v.$$typeof===R4?null:v.displayName||v.name||null;if(typeof v==\"string\")return v;switch(v){case Eh:return\"Fragment\";case s6:return\"Profiler\";case KA:return\"StrictMode\";case tb:return\"Suspense\";case Z0:return\"SuspenseList\";case YA:return\"Activity\"}if(typeof v==\"object\")switch(typeof v.tag==\"number\"&&console.error(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),v.$$typeof){case Fx:return\"Portal\";case fo:return v.displayName||\"Context\";case eb:return(v._context.displayName||\"Context\")+\".Consumer\";case Ao:var E=v.render;return v=v.displayName,v||(v=E.displayName||E.name||\"\",v=v!==\"\"?\"ForwardRef(\"+v+\")\":\"ForwardRef\"),v;case lp:return E=v.displayName||null,E!==null?E:ln(v.type)||\"Memo\";case Q0:E=v._payload,v=v._init;try{return ln(v(E))}catch{}}return null}function ld(v,E){if(v!==E){v.context._currentValue=v.parentValue,v=v.parent;var N=E.parent;if(v===null){if(N!==null)throw Error(\"The stacks must reach the root at the same time. This is a bug in React.\")}else{if(N===null)throw Error(\"The stacks must reach the root at the same time. This is a bug in React.\");ld(v,N)}E.context._currentValue=E.value}}function Mo(v){v.context._currentValue=v.parentValue,v=v.parent,v!==null&&Mo(v)}function Xo(v){var E=v.parent;E!==null&&Xo(E),v.context._currentValue=v.value}function js(v,E){if(v.context._currentValue=v.parentValue,v=v.parent,v===null)throw Error(\"The depth must equal at least at zero before reaching the root. This is a bug in React.\");v.depth===E.depth?ld(v,E):js(v,E)}function tf(v,E){var N=E.parent;if(N===null)throw Error(\"The depth must equal at least at zero before reaching the root. This is a bug in React.\");v.depth===N.depth?ld(v,N):tf(v,N),E.context._currentValue=E.value}function da(v){var E=df;E!==v&&(E===null?Xo(v):v===null?Mo(E):E.depth===v.depth?ld(E,v):E.depth>v.depth?js(E,v):tf(E,v),df=v)}function Dc(v){if(v!==null&&typeof v!=\"function\"){var E=String(v);xS.has(E)||(xS.add(E),console.error(\"Expected the last optional `callback` argument to be a function. Instead received: %s.\",v))}}function Ju(v,E){v=(v=v.constructor)&&ln(v)||\"ReactClass\";var N=v+\".\"+E;bS[N]||(console.error(`Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.\\n\\nPlease check the code for the %s component.`,E,v),bS[N]=!0)}function Bc(v,E,N){var K=v.id;v=v.overflow;var ee=32-mb(K)-1;K&=~(1<<ee),N+=1;var le=32-mb(E)+ee;if(30<le){var ye=ee-ee%5;return le=(K&(1<<ye)-1).toString(32),K>>=ye,ee-=ye,{id:1<<32-mb(E)+ee|N<<ee|K,overflow:le+v}}return{id:1<<le|N<<ee|K,overflow:v}}function nf(v){return v>>>=0,v===0?32:31-(l2(v)/AS|0)|0}function Li(){}function Ta(v,E,N){switch(N=v[N],N===void 0?v.push(E):N!==E&&(E.then(Li,Li),E=N),E.status){case\"fulfilled\":return E.value;case\"rejected\":throw E.reason;default:switch(typeof E.status==\"string\"?E.then(Li,Li):(v=E,v.status=\"pending\",v.then(function(K){if(E.status===\"pending\"){var ee=E;ee.status=\"fulfilled\",ee.value=K}},function(K){if(E.status===\"pending\"){var ee=E;ee.status=\"rejected\",ee.reason=K}})),E.status){case\"fulfilled\":return E.value;case\"rejected\":throw E.reason}throw gb=E,Rl}}function Lc(){if(gb===null)throw Error(\"Expected a suspended thenable. This is a bug in React. Please file an issue.\");var v=gb;return gb=null,v}function Xu(v,E){return v===E&&(v!==0||1/v===1/E)||v!==v&&E!==E}function pc(){if(ti===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`);return bd&&console.error(\"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks\"),ti}function bl(){if(0<Av)throw Error(\"Rendered more hooks than during the previous render\");return{memoizedState:null,queue:null,next:null}}function $u(){return To===null?bs===null?(yd=!1,bs=To=bl()):(yd=!0,To=bs):To.next===null?(yd=!1,To=To.next=bl()):(yd=!0,To=To.next),To}function dd(){var v=sg;return sg=null,v}function fd(){bd=!1,xv=Ks=Il=ti=null,ff=!1,bs=null,Av=0,To=bc=null}function rf(v){return bd&&console.error(\"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\"),v._currentValue}function Im(v,E){return typeof E==\"function\"?E(v):E}function L1(v,E,N){if(v!==Im&&(vd=\"useReducer\"),ti=pc(),To=$u(),yd){if(N=To.queue,E=N.dispatch,bc!==null){var K=bc.get(N);if(K!==void 0){bc.delete(N),N=To.memoizedState;do{var ee=K.action;bd=!0,N=v(N,ee),bd=!1,K=K.next}while(K!==null);return To.memoizedState=N,[N,E]}}return[To.memoizedState,E]}return bd=!0,v=v===Im?typeof E==\"function\"?E():E:N!==void 0?N(E):E,bd=!1,To.memoizedState=v,v=To.queue={last:null,dispatch:null},v=v.dispatch=km.bind(null,ti,v),[To.memoizedState,v]}function FA(v,E){if(ti=pc(),To=$u(),E=E===void 0?null:E,To!==null){var N=To.memoizedState;if(N!==null&&E!==null){e:{var K=N[1];if(K===null)console.error(\"%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.\",vd),K=!1;else{E.length!==K.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\\n\\nPrevious: %s\\nIncoming: %s`,vd,\"[\"+E.join(\", \")+\"]\",\"[\"+K.join(\", \")+\"]\");for(var ee=0;ee<K.length&&ee<E.length;ee++)if(!I4(E[ee],K[ee])){K=!1;break e}K=!0}}if(K)return N[0]}}return bd=!0,v=v(),bd=!1,To.memoizedState=[v,E],v}function km(v,E,N){if(25<=Av)throw Error(\"Too many re-renders. React limits the number of renders to prevent an infinite loop.\");if(v===ti)if(ff=!0,v={action:N,next:null},bc===null&&(bc=new Map),N=bc.get(E),N===void 0)bc.set(E,v);else{for(E=N;E.next!==null;)E=E.next;E.next=v}}function U1(){throw Error(\"A function wrapped in useEffectEvent can\\'t be called during rendering.\")}function Px(){throw Error(\"startTransition cannot be called during server rendering.\")}function Wy(){throw Error(\"Cannot update optimistic state while rendering.\")}function e6(v,E,N){pc();var K=Co++,ee=Ks;if(typeof v.$$FORM_ACTION==\"function\"){var le=null,ye=xv;ee=ee.formState;var Ae=v.$$IS_SIGNATURE_EQUAL;if(ee!==null&&typeof Ae==\"function\"){var Ye=ee[1];Ae.call(v,ee[2],ee[3])&&(le=N!==void 0?\"p\"+N:\"k\"+l(JSON.stringify([ye,null,K]),0),Ye===le&&(Ev=K,E=ee[0]))}var Me=v.bind(null,E);return v=function(vt){Me(vt)},typeof Me.$$FORM_ACTION==\"function\"&&(v.$$FORM_ACTION=function(vt){vt=Me.$$FORM_ACTION(vt),N!==void 0&&(G(N,\"target\"),N+=\"\",vt.action=N);var mt=vt.data;return mt&&(le===null&&(le=N!==void 0?\"p\"+N:\"k\"+l(JSON.stringify([ye,null,K]),0)),mt.append(\"$ACTION_KEY\",le)),vt}),[E,v,!1]}var Fe=v.bind(null,E);return[E,function(vt){Fe(vt)},!1]}function t6(v){var E=d2;return d2+=1,sg===null&&(sg=[]),Ta(sg,v,E)}function a7(){throw Error(\"Cache cannot be refreshed during server rendering.\")}function HA(){}function Mx(){if(Q===0){re=console.log,pe=console.info,xe=console.warn,ke=console.error,st=console.group,Ue=console.groupCollapsed,et=console.groupEnd;var v={configurable:!0,enumerable:!0,value:HA,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}Q++}function Vy(){if(Q--,Q===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:So({},v,{value:re}),info:So({},v,{value:pe}),warn:So({},v,{value:xe}),error:So({},v,{value:ke}),group:So({},v,{value:st}),groupCollapsed:So({},v,{value:Ue}),groupEnd:So({},v,{value:et})})}0>Q&&console.error(\"disabledDepth fell below zero. This is a bug in React. Please file an issue.\")}function F0(v){var E=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,v=v.stack,Error.prepareStackTrace=E,v.startsWith(`Error: react-stack-top-frame\\n`)&&(v=v.slice(29)),E=v.indexOf(`\\n`),E!==-1&&(v=v.slice(E+1)),E=v.indexOf(\"react_stack_bottom_frame\"),E!==-1&&(E=v.lastIndexOf(`\\n`,E)),E!==-1)v=v.slice(0,E);else return\"\";return v}function vl(v){if(Mt===void 0)try{throw Error()}catch(N){var E=N.stack.trim().match(/\\\\n( *(at )?)/);Mt=E&&E[1]||\"\",Ft=-1<N.stack.indexOf(`\\n    at`)?\" (<anonymous>)\":-1<N.stack.indexOf(\"@\")?\"@unknown:0:0\":\"\"}return`\\n`+Mt+v+Ft}function F1(v,E){if(!v||Lt)return\"\";var N=gt.get(v);if(N!==void 0)return N;Lt=!0,N=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var K=null;K=$a.H,$a.H=null,Mx();try{var ee={DetermineComponentFrameRoot:function(){try{if(E){var mt=function(){throw Error()};if(Object.defineProperty(mt.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==\"object\"&&Reflect.construct){try{Reflect.construct(mt,[])}catch($e){var At=$e}Reflect.construct(v,[],mt)}else{try{mt.call()}catch($e){At=$e}v.call(mt.prototype)}}else{try{throw Error()}catch($e){At=$e}(mt=v())&&typeof mt.catch==\"function\"&&mt.catch(function(){})}}catch($e){if($e&&At&&typeof $e.stack==\"string\")return[$e.stack,At.stack]}return[null,null]}};ee.DetermineComponentFrameRoot.displayName=\"DetermineComponentFrameRoot\";var le=Object.getOwnPropertyDescriptor(ee.DetermineComponentFrameRoot,\"name\");le&&le.configurable&&Object.defineProperty(ee.DetermineComponentFrameRoot,\"name\",{value:\"DetermineComponentFrameRoot\"});var ye=ee.DetermineComponentFrameRoot(),Ae=ye[0],Ye=ye[1];if(Ae&&Ye){var Me=Ae.split(`\\n`),Fe=Ye.split(`\\n`);for(ye=le=0;le<Me.length&&!Me[le].includes(\"DetermineComponentFrameRoot\");)le++;for(;ye<Fe.length&&!Fe[ye].includes(\"DetermineComponentFrameRoot\");)ye++;if(le===Me.length||ye===Fe.length)for(le=Me.length-1,ye=Fe.length-1;1<=le&&0<=ye&&Me[le]!==Fe[ye];)ye--;for(;1<=le&&0<=ye;le--,ye--)if(Me[le]!==Fe[ye]){if(le!==1||ye!==1)do if(le--,ye--,0>ye||Me[le]!==Fe[ye]){var vt=`\\n`+Me[le].replace(\" at new \",\" at \");return v.displayName&&vt.includes(\"<anonymous>\")&&(vt=vt.replace(\"<anonymous>\",v.displayName)),typeof v==\"function\"&&gt.set(v,vt),vt}while(1<=le&&0<=ye);break}}}finally{Lt=!1,$a.H=K,Vy(),Error.prepareStackTrace=N}return Me=(Me=v?v.displayName||v.name:\"\")?vl(Me):\"\",typeof v==\"function\"&&gt.set(v,Me),Me}function zA(v){if(typeof v==\"string\")return vl(v);if(typeof v==\"function\")return v.prototype&&v.prototype.isReactComponent?F1(v,!0):F1(v,!1);if(typeof v==\"object\"&&v!==null){switch(v.$$typeof){case Ao:return F1(v.render,!1);case lp:return F1(v.type,!1);case Q0:var E=v,N=E._payload;E=E._init;try{v=E(N)}catch{return vl(\"Lazy\")}return zA(v)}if(typeof v.name==\"string\"){e:{if(N=v.name,E=v.env,v=v.debugLocation,v!=null){v=F0(v);var K=v.lastIndexOf(`\\n`);if(v=K===-1?v:v.slice(K+1),v.indexOf(N)!==-1){N=`\\n`+v;break e}}N=vl(N+(E?\" [\"+E+\"]\":\"\"))}return N}}switch(v){case Z0:return vl(\"SuspenseList\");case tb:return vl(\"Suspense\")}return\"\"}function gh(){var v=vs();1e3<v-zr&&($a.recentlyCreatedOwnerStacks=0,zr=v)}function ap(v,E){return(500<E.byteSize||Tr(E.contentState))&&E.contentPreamble===null}function n6(v){if(typeof v==\"object\"&&v!==null&&typeof v.environmentName==\"string\"){var E=v.environmentName;v=[v].slice(0),typeof v[0]==\"string\"?v.splice(0,1,\"%c%s%c \"+v[0],\"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px\",\" \"+E+\" \",\"\"):v.splice(0,0,\"%c%s%c\",\"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px\",\" \"+E+\" \",\"\"),v.unshift(console),E=sl.apply(console.error,v),E()}else console.error(v);return null}function Om(v,E,N,K,ee,le,ye,Ae,Ye,Me,Fe){var vt=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=v,this.renderState=E,this.rootFormatContext=N,this.progressiveChunkSize=K===void 0?12800:K,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=vt,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=ee===void 0?n6:ee,this.onPostpone=Me===void 0?Li:Me,this.onAllReady=le===void 0?Li:le,this.onShellReady=ye===void 0?Li:ye,this.onShellError=Ae===void 0?Li:Ae,this.onFatalError=Ye===void 0?Li:Ye,this.formState=Fe===void 0?null:Fe,this.didWarnForKey=null}function Gy(v,E,N,K,ee,le,ye,Ae,Ye,Me,Fe,vt){return gh(),E=new Om(E,N,K,ee,le,ye,Ae,Ye,Me,Fe,vt),N=vh(E,0,null,K,!1,!1),N.parentFlushed=!0,v=bh(E,null,v,-1,null,N,null,null,E.abortableTasks,null,K,null,ES,null,null,mu,null),Ya(v),E.pingedTasks.push(v),E}function uu(v,E,N,K,ee,le,ye,Ae,Ye,Me,Fe){return v=Gy(v,E,N,K,ee,le,ye,Ae,Ye,Me,Fe,void 0),v.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},v}function yh(v,E,N,K,ee,le,ye,Ae,Ye){return gh(),N=new Om(E.resumableState,N,E.rootFormatContext,E.progressiveChunkSize,K,ee,le,ye,Ae,Ye,null),N.nextSegmentId=E.nextSegmentId,typeof E.replaySlots==\"number\"?(K=vh(N,0,null,E.rootFormatContext,!1,!1),K.parentFlushed=!0,v=bh(N,null,v,-1,null,K,null,null,N.abortableTasks,null,E.rootFormatContext,null,ES,null,null,mu,null),Ya(v),N.pingedTasks.push(v),N):(v=z0(N,null,{nodes:E.replayNodes,slots:E.replaySlots,pendingTasks:0},v,-1,null,null,N.abortableTasks,null,E.rootFormatContext,null,ES,null,null,mu,null),Ya(v),N.pingedTasks.push(v),N)}function Qi(v,E,N,K,ee,le,ye,Ae,Ye){return v=yh(v,E,N,K,ee,le,ye,Ae,Ye),v.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},v}function H1(v,E){v.pingedTasks.push(E),v.pingedTasks.length===1&&(v.flushScheduled=v.destination!==null,v.trackedPostpones!==null||v.status===10?Mm(function(){return Qy(v)}):d(function(){return Qy(v)}))}function H0(v,E,N,K,ee){return N={status:Go,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:E,completedSegments:[],byteSize:0,fallbackAbortableTasks:N,errorDigest:null,contentState:Ur(),fallbackState:Ur(),contentPreamble:K,fallbackPreamble:ee,trackedContentKeyPath:null,trackedFallbackNode:null,errorMessage:null,errorStack:null,errorComponentStack:null},E!==null&&(E.pendingTasks++,K=E.boundaries,K!==null&&(v.allPendingTasks++,N.pendingTasks++,K.push(N)),v=E.inheritedHoistables,v!==null&&_a(N.contentState,v)),N}function bh(v,E,N,K,ee,le,ye,Ae,Ye,Me,Fe,vt,mt,At,$e,En,Yr){v.allPendingTasks++,ee===null?v.pendingRootTasks++:ee.pendingTasks++,At!==null&&At.pendingTasks++;var wn={replay:null,node:N,childIndex:K,ping:function(){return H1(v,wn)},blockedBoundary:ee,blockedSegment:le,blockedPreamble:ye,hoistableState:Ae,abortSet:Ye,keyPath:Me,formatContext:Fe,context:vt,treeContext:mt,row:At,componentStack:$e,thenableState:E};return wn.debugTask=Yr,Ye.add(wn),wn}function z0(v,E,N,K,ee,le,ye,Ae,Ye,Me,Fe,vt,mt,At,$e,En){v.allPendingTasks++,le===null?v.pendingRootTasks++:le.pendingTasks++,mt!==null&&mt.pendingTasks++,N.pendingTasks++;var Yr={replay:N,node:K,childIndex:ee,ping:function(){return H1(v,Yr)},blockedBoundary:le,blockedSegment:null,blockedPreamble:null,hoistableState:ye,abortSet:Ae,keyPath:Ye,formatContext:Me,context:Fe,treeContext:vt,row:mt,componentStack:At,thenableState:E};return Yr.debugTask=En,Ae.add(Yr),Yr}function vh(v,E,N,K,ee,le){return{status:Go,parentFlushed:!1,id:-1,index:E,chunks:[],children:[],preambleChildren:[],parentFormatContext:K,boundary:N,lastPushedText:ee,textEmbedded:le}}function z1(){if(_===null||_.componentStack===null)return\"\";var v=_.componentStack;try{var E=\"\";if(typeof v.type==\"string\")E+=vl(v.type);else if(typeof v.type==\"function\"){if(!v.owner){var N=E,K=v.type,ee=K?K.displayName||K.name:\"\",le=ee?vl(ee):\"\";E=N+le}}else v.owner||(E+=zA(v.type));for(;v;)N=null,v.debugStack!=null?N=F0(v.debugStack):(le=v,le.stack!=null&&(N=typeof le.stack!=\"string\"?le.stack=F0(le.stack):le.stack)),(v=v.owner)&&N&&(E+=`\\n`+N);var ye=E}catch(Ae){ye=`\\nError generating stack: `+Ae.message+`\\n`+Ae.stack}return ye}function j0(v,E){if(E!=null)for(var N=E.length-1;0<=N;N--){var K=E[N];if(typeof K.name==\"string\"||typeof K.time==\"number\")break;if(K.awaited!=null){var ee=K.debugStack==null?K.awaited:K;if(ee.debugStack!==void 0){v.componentStack={parent:v.componentStack,type:K,owner:ee.owner,stack:ee.debugStack},v.debugTask=ee.debugTask;break}}}}function Nm(v,E){if(E!=null)for(var N=0;N<E.length;N++){var K=E[N];typeof K.name==\"string\"&&K.debugStack!==void 0&&(v.componentStack={parent:v.componentStack,type:K,owner:K.owner,stack:K.debugStack},v.debugTask=K.debugTask)}}function Ya(v){var E=v.node;if(typeof E==\"object\"&&E!==null)switch(E.$$typeof){case Y1:var N=E.type,K=E._owner,ee=E._debugStack;Nm(v,E._debugInfo),v.debugTask=E._debugTask,v.componentStack={parent:v.componentStack,type:N,owner:K,stack:ee};break;case Q0:Nm(v,E._debugInfo);break;default:typeof E.then==\"function\"&&Nm(v,E._debugInfo)}}function jA(v){return v===null?null:{parent:v.parent,type:\"Suspense Fallback\",owner:v.owner,stack:v.stack}}function Za(v){var E={};return v&&Object.defineProperty(E,\"componentStack\",{configurable:!0,enumerable:!0,get:function(){try{var N=\"\",K=v;do N+=zA(K.type),K=K.parent;while(K);var ee=N}catch(le){ee=`\\nError generating stack: `+le.message+`\\n`+le.stack}return Object.defineProperty(E,\"componentStack\",{value:ee}),ee}}),E}function Pm(v,E,N,K,ee){v.errorDigest=E,N instanceof Error?(E=String(N.message),N=String(N.stack)):(E=typeof N==\"object\"&&N!==null?c(N):String(N),N=null),ee=ee?`Switched to client rendering because the server rendering aborted due to:\\n\\n`:`Switched to client rendering because the server rendering errored:\\n\\n`,v.errorMessage=ee+E,v.errorStack=N!==null?ee+N:null,v.errorComponentStack=K.componentStack}function ms(v,E,N,K){if(v=v.onError,E=K?K.run(v.bind(null,E,N)):v(E,N),E!=null&&typeof E!=\"string\")console.error(\\'onError returned something with a type other than \"string\". onError should return a string and may return null or undefined but must not return anything else. It received something of type \"%s\" instead\\',typeof E);else return E}function qy(v,E,N,K){N=v.onShellError;var ee=v.onFatalError;K?(K.run(N.bind(null,E)),K.run(ee.bind(null,E))):(N(E),ee(E)),v.destination!==null?(v.status=Zs,C(v.destination,E)):(v.status=13,v.fatalError=E)}function Uc(v,E){j1(v,E.next,E.hoistables)}function j1(v,E,N){for(;E!==null;){N!==null&&(_a(E.hoistables,N),E.inheritedHoistables=N);var K=E.boundaries;if(K!==null){E.boundaries=null;for(var ee=0;ee<K.length;ee++){var le=K[ee];N!==null&&_a(le.contentState,N),Fc(v,le,null,null)}}if(E.pendingTasks--,0<E.pendingTasks)break;N=E.hoistables,E=E.next}}function Dx(v,E){var N=E.boundaries;if(N!==null&&E.pendingTasks===N.length){for(var K=!0,ee=0;ee<N.length;ee++){var le=N[ee];if(le.pendingTasks!==1||le.parentFlushed||ap(v,le)){K=!1;break}}K&&j1(v,E,E.hoistables)}}function Ky(v){var E={pendingTasks:1,boundaries:null,hoistables:Ur(),inheritedHoistables:null,together:!1,next:null};return v!==null&&0<v.pendingTasks&&(E.pendingTasks++,E.boundaries=[],v.next=E),E}function r6(v,E,N,K,ee){var le=E.keyPath,ye=E.treeContext,Ae=E.row,Ye=E.componentStack,Me=E.debugTask;Nm(E,E.node.props.children._debugInfo),E.keyPath=N,N=K.length;var Fe=null;if(E.replay!==null){var vt=E.replay.slots;if(vt!==null&&typeof vt==\"object\")for(var mt=0;mt<N;mt++){var At=ee!==\"backwards\"&&ee!==\"unstable_legacy-backwards\"?mt:N-1-mt,$e=K[At];E.row=Fe=Ky(Fe),E.treeContext=Bc(ye,N,At);var En=vt[At];typeof En==\"number\"?(Yy(v,E,En,$e,At),delete vt[At]):Qa(v,E,$e,At),--Fe.pendingTasks===0&&Uc(v,Fe)}else for(vt=0;vt<N;vt++)mt=ee!==\"backwards\"&&ee!==\"unstable_legacy-backwards\"?vt:N-1-vt,At=K[mt],sp(v,E,At),E.row=Fe=Ky(Fe),E.treeContext=Bc(ye,N,mt),Qa(v,E,At,mt),--Fe.pendingTasks===0&&Uc(v,Fe)}else if(ee!==\"backwards\"&&ee!==\"unstable_legacy-backwards\")for(ee=0;ee<N;ee++)vt=K[ee],sp(v,E,vt),E.row=Fe=Ky(Fe),E.treeContext=Bc(ye,N,ee),Qa(v,E,vt,ee),--Fe.pendingTasks===0&&Uc(v,Fe);else{for(ee=E.blockedSegment,vt=ee.children.length,mt=ee.chunks.length,At=N-1;0<=At;At--){$e=K[At],E.row=Fe=Ky(Fe),E.treeContext=Bc(ye,N,At),En=vh(v,mt,null,E.formatContext,At===0?ee.lastPushedText:!0,!0),ee.children.splice(vt,0,En),E.blockedSegment=En,sp(v,E,$e);try{Qa(v,E,$e,At),En.lastPushedText&&En.textEmbedded&&En.chunks.push(il),En.status=qo,Ja(v,E.blockedBoundary,En),--Fe.pendingTasks===0&&Uc(v,Fe)}catch(Yr){throw En.status=v.status===12?sr:Ji,Yr}}E.blockedSegment=ee,ee.lastPushedText=!1}Ae!==null&&Fe!==null&&0<Fe.pendingTasks&&(Ae.pendingTasks++,Fe.next=Ae),E.treeContext=ye,E.row=Ae,E.keyPath=le,E.componentStack=Ye,E.debugTask=Me}function Ca(v,E,N,K,ee,le){var ye=E.thenableState;for(E.thenableState=null,ti={},Il=E,Ks=v,xv=N,bd=!1,Co=Hi=0,Ev=-1,d2=0,sg=ye,v=ni(K,ee,le);ff;)ff=!1,Co=Hi=0,Ev=-1,d2=0,Av+=1,To=null,v=K(ee,le);return fd(),v}function o6(v,E,N,K,ee,le,ye){var Ae=!1;if(le!==0&&v.formState!==null){var Ye=E.blockedSegment;if(Ye!==null){Ae=!0,Ye=Ye.chunks;for(var Me=0;Me<le;Me++)Me===ye?Ye.push(m6):Ye.push(al)}}le=E.keyPath,E.keyPath=N,ee?(N=E.treeContext,E.treeContext=Bc(N,1,0),Qa(v,E,K,-1),E.treeContext=N):Ae?Qa(v,E,K,-1):el(v,E,K,-1),E.keyPath=le}function wh(v,E,N,K,ee,le){if(typeof K==\"function\")if(K.prototype&&K.prototype.isReactComponent){var ye=ee;if(\"ref\"in ee){ye={};for(var Ae in ee)Ae!==\"ref\"&&(ye[Ae]=ee[Ae])}var Ye=K.defaultProps;if(Ye){ye===ee&&(ye=So({},ye,ee));for(var Me in Ye)ye[Me]===void 0&&(ye[Me]=Ye[Me])}var Fe=ye,vt=mu,mt=K.contextType;if(\"contextType\"in K&&mt!==null&&(mt===void 0||mt.$$typeof!==fo)&&!c2.has(K)){c2.add(K);var At=mt===void 0?\" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.\":typeof mt!=\"object\"?\" However, it is set to a \"+typeof mt+\".\":mt.$$typeof===eb?\" Did you accidentally pass the Context.Consumer instead?\":\" However, it is set to an object with keys {\"+Object.keys(mt).join(\", \")+\"}.\";console.error(\"%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s\",ln(K)||\"Component\",At)}typeof mt==\"object\"&&mt!==null&&(vt=mt._currentValue);var $e=new K(Fe,vt);if(typeof K.getDerivedStateFromProps==\"function\"&&($e.state===null||$e.state===void 0)){var En=ln(K)||\"Component\";vS.has(En)||(vS.add(En),console.error(\"`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.\",En,$e.state===null?\"null\":\"undefined\",En))}if(typeof K.getDerivedStateFromProps==\"function\"||typeof $e.getSnapshotBeforeUpdate==\"function\"){var Yr=null,wn=null,Pn=null;if(typeof $e.componentWillMount==\"function\"&&$e.componentWillMount.__suppressDeprecationWarning!==!0?Yr=\"componentWillMount\":typeof $e.UNSAFE_componentWillMount==\"function\"&&(Yr=\"UNSAFE_componentWillMount\"),typeof $e.componentWillReceiveProps==\"function\"&&$e.componentWillReceiveProps.__suppressDeprecationWarning!==!0?wn=\"componentWillReceiveProps\":typeof $e.UNSAFE_componentWillReceiveProps==\"function\"&&(wn=\"UNSAFE_componentWillReceiveProps\"),typeof $e.componentWillUpdate==\"function\"&&$e.componentWillUpdate.__suppressDeprecationWarning!==!0?Pn=\"componentWillUpdate\":typeof $e.UNSAFE_componentWillUpdate==\"function\"&&(Pn=\"UNSAFE_componentWillUpdate\"),Yr!==null||wn!==null||Pn!==null){var po=ln(K)||\"Component\",pi=typeof K.getDerivedStateFromProps==\"function\"?\"getDerivedStateFromProps()\":\"getSnapshotBeforeUpdate()\";vv.has(po)||(vv.add(po),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\nhttps://react.dev/link/unsafe-component-lifecycles`,po,pi,Yr!==null?`\\n  `+Yr:\"\",wn!==null?`\\n  `+wn:\"\",Pn!==null?`\\n  `+Pn:\"\"))}}var qn=ln(K)||\"Component\";$e.render||(K.prototype&&typeof K.prototype.render==\"function\"?console.error(\"No `render` method found on the %s instance: did you accidentally return an object from the constructor?\",qn):console.error(\"No `render` method found on the %s instance: you may have forgotten to define `render`.\",qn)),!$e.getInitialState||$e.getInitialState.isReactClassApproved||$e.state||console.error(\"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?\",qn),$e.getDefaultProps&&!$e.getDefaultProps.isReactClassApproved&&console.error(\"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.\",qn),$e.contextType&&console.error(\"contextType was defined as an instance property on %s. Use a static property to define contextType instead.\",qn),K.childContextTypes&&!s2.has(K)&&(s2.add(K),console.error(\"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)\",qn)),K.contextTypes&&!a2.has(K)&&(a2.add(K),console.error(\"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)\",qn)),typeof $e.componentShouldUpdate==\"function\"&&console.error(\"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.\",qn),K.prototype&&K.prototype.isPureReactComponent&&typeof $e.shouldComponentUpdate<\"u\"&&console.error(\"%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.\",ln(K)||\"A pure component\"),typeof $e.componentDidUnmount==\"function\"&&console.error(\"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?\",qn),typeof $e.componentDidReceiveProps==\"function\"&&console.error(\"%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().\",qn),typeof $e.componentWillRecieveProps==\"function\"&&console.error(\"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?\",qn),typeof $e.UNSAFE_componentWillRecieveProps==\"function\"&&console.error(\"%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?\",qn);var dn=$e.props!==Fe;$e.props!==void 0&&dn&&console.error(\"When calling super() in `%s`, make sure to pass up the same props that your component\\'s constructor was passed.\",qn),$e.defaultProps&&console.error(\"Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.\",qn,qn),typeof $e.getSnapshotBeforeUpdate!=\"function\"||typeof $e.componentDidUpdate==\"function\"||O6.has(K)||(O6.add(K),console.error(\"%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.\",ln(K))),typeof $e.getDerivedStateFromProps==\"function\"&&console.error(\"%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.\",qn),typeof $e.getDerivedStateFromError==\"function\"&&console.error(\"%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.\",qn),typeof K.getSnapshotBeforeUpdate==\"function\"&&console.error(\"%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.\",qn);var wi=$e.state;wi&&(typeof wi!=\"object\"||dp(wi))&&console.error(\"%s.state: must be set to an object or null\",qn),typeof $e.getChildContext==\"function\"&&typeof K.childContextTypes!=\"object\"&&console.error(\"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().\",qn);var Ia=$e.state!==void 0?$e.state:null;$e.updater=u2,$e.props=Fe,$e.state=Ia;var Zr={queue:[],replace:!1};$e._reactInternals=Zr;var Ro=K.contextType;if($e.context=typeof Ro==\"object\"&&Ro!==null?Ro._currentValue:mu,$e.state===Fe){var ka=ln(K)||\"Component\";wv.has(ka)||(wv.add(ka),console.error(\"%s: It is not recommended to assign props directly to state because updates to props won\\'t be reflected in state. In most cases, it is better to use props directly.\",ka))}var zi=K.getDerivedStateFromProps;if(typeof zi==\"function\"){var Ci=zi(Fe,Ia);if(Ci===void 0){var Io=ln(K)||\"Component\";wS.has(Io)||(wS.add(Io),console.error(\"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.\",Io))}var ji=Ci==null?Ia:So({},Ia,Ci);$e.state=ji}if(typeof K.getDerivedStateFromProps!=\"function\"&&typeof $e.getSnapshotBeforeUpdate!=\"function\"&&(typeof $e.UNSAFE_componentWillMount==\"function\"||typeof $e.componentWillMount==\"function\")){var Js=$e.state;if(typeof $e.componentWillMount==\"function\"){if($e.componentWillMount.__suppressDeprecationWarning!==!0){var Xs=ln(K)||\"Unknown\";bv[Xs]||(console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\\n\\n* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.\\n\\nPlease update the following components: %s`,Xs),bv[Xs]=!0)}$e.componentWillMount()}if(typeof $e.UNSAFE_componentWillMount==\"function\"&&$e.UNSAFE_componentWillMount(),Js!==$e.state&&(console.error(\"%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component\\'s constructor). Use setState instead.\",ln(K)||\"Component\"),u2.enqueueReplaceState($e,$e.state,null)),Zr.queue!==null&&0<Zr.queue.length){var Wi=Zr.queue,Ko=Zr.replace;if(Zr.queue=null,Zr.replace=!1,Ko&&Wi.length===1)$e.state=Wi[0];else{for(var Ri=Ko?Wi[0]:$e.state,Oa=!0,Na=Ko?1:0;Na<Wi.length;Na++){var bu=Wi[Na],ws=typeof bu==\"function\"?bu.call($e,Ri,Fe,void 0):bu;ws!=null&&(Oa?(Oa=!1,Ri=So({},Ri,ws)):So(Ri,ws))}$e.state=Ri}}else Zr.queue=null}var xi=to($e);if(v.status===12)throw null;$e.props!==Fe&&(wd||console.error(\"It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.\",ln(K)||\"a component\"),wd=!0);var vc=E.keyPath;E.keyPath=N,el(v,E,xi,-1),E.keyPath=vc}else{if(K.prototype&&typeof K.prototype.render==\"function\"){var ha=ln(K)||\"Unknown\";Qs[ha]||(console.error(\"The <%s /> component appears to have a render method, but doesn\\'t extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.\",ha,ha),Qs[ha]=!0)}var jm=Ca(v,E,N,K,ee,void 0);if(v.status===12)throw null;var $s=Hi!==0,ii=Co,wc=Ev;if(K.contextTypes){var In=ln(K)||\"Unknown\";oi[In]||(oi[In]=!0,console.error(\"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)\",In))}if(K&&K.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.\\n  %s.childContextTypes = ...`,K.displayName||K.name||\"Component\"),typeof K.getDerivedStateFromProps==\"function\"){var pf=ln(K)||\"Unknown\";Vc[pf]||(console.error(\"%s: Function components do not support getDerivedStateFromProps.\",pf),Vc[pf]=!0)}if(typeof K.contextType==\"object\"&&K.contextType!==null){var wp=ln(K)||\"Unknown\";yu[wp]||(console.error(\"%s: Function components do not support contextType.\",wp),yu[wp]=!0)}o6(v,E,N,jm,$s,ii,wc)}else if(typeof K==\"string\"){var Gc=E.blockedSegment;if(Gc===null){var xp=ee.children,ec=E.formatContext,hf=E.keyPath;E.formatContext=V(ec,K,ee),E.keyPath=N,Qa(v,E,xp,-1),E.formatContext=ec,E.keyPath=hf}else{var Wm=Hs(Gc.chunks,K,ee,v.resumableState,v.renderState,E.blockedPreamble,E.hoistableState,E.formatContext,Gc.lastPushedText);Gc.lastPushedText=!1;var xc=E.formatContext,Ep=E.keyPath;if(E.keyPath=N,(E.formatContext=V(xc,K,ee)).insertionMode===rv){var Vi=vh(v,0,null,E.formatContext,!1,!1);Gc.preambleChildren.push(Vi),E.blockedSegment=Vi;try{Vi.status=6,Qa(v,E,Wm,-1),Vi.lastPushedText&&Vi.textEmbedded&&Vi.chunks.push(il),Vi.status=qo,Ja(v,E.blockedBoundary,Vi)}finally{E.blockedSegment=Gc}}else Qa(v,E,Wm,-1);E.formatContext=xc,E.keyPath=Ep;e:{var Ap=Gc.chunks,mf=v.resumableState;switch(K){case\"title\":case\"style\":case\"script\":case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"img\":case\"input\":case\"keygen\":case\"link\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":break e;case\"body\":if(xc.insertionMode<=Ah){mf.hasBody=!0;break e}break;case\"html\":if(xc.insertionMode===ob){mf.hasHtml=!0;break e}break;case\"head\":if(xc.insertionMode<=Ah)break e}Ap.push(Ar(K))}Gc.lastPushedText=!1}}else{switch(K){case wl:case KA:case s6:case Eh:var Pa=E.keyPath;E.keyPath=N,el(v,E,ee.children,-1),E.keyPath=Pa;return;case YA:var ns=E.blockedSegment;if(ns===null){if(ee.mode!==\"hidden\"){var qc=E.keyPath;E.keyPath=N,Qa(v,E,ee.children,-1),E.keyPath=qc}}else if(ee.mode!==\"hidden\"){ns.chunks.push(g4),ns.lastPushedText=!1;var Kc=E.keyPath;E.keyPath=N,Qa(v,E,ee.children,-1),E.keyPath=Kc,ns.chunks.push(y4),ns.lastPushedText=!1}return;case Z0:e:{var xs=ee.children,ma=ee.revealOrder;if(ma===\"forwards\"||ma===\"backwards\"||ma===\"unstable_legacy-backwards\"){if(dp(xs)){r6(v,E,N,xs,ma);break e}var kl=n(xs);if(kl){var Yc=kl.call(xs);if(Yc){VA(E,xs,-1,Yc,kl);var Ad=Yc.next();if(!Ad.done){var vu=[];do vu.push(Ad.value),Ad=Yc.next();while(!Ad.done);r6(v,E,N,xs,ma)}break e}}}if(ma===\"together\"){var cg=E.keyPath,rs=E.row,wu=E.row=Ky(null);wu.boundaries=[],wu.together=!0,E.keyPath=N,el(v,E,xs,-1),--wu.pendingTasks===0&&Uc(v,wu),E.keyPath=cg,E.row=rs,rs!==null&&0<wu.pendingTasks&&(rs.pendingTasks++,wu.next=rs)}else{var Sd=E.keyPath;E.keyPath=N,el(v,E,xs,-1),E.keyPath=Sd}}return;case h4:case p4:throw Error(\"ReactDOMServer does not yet support scope components.\");case tb:e:if(E.replay!==null){var Rh=E.keyPath,Wn=E.formatContext,Sv=E.row;E.keyPath=N,E.formatContext=ue(v.resumableState,Wn),E.row=null;var Ol=ee.children;try{Qa(v,E,Ol,-1)}finally{E.keyPath=Rh,E.formatContext=Wn,E.row=Sv}}else{var gf=E.keyPath,Nl=E.formatContext,_d=E.row,ug=E.blockedBoundary,_v=E.blockedPreamble,os=E.hoistableState,Zc=E.blockedSegment,ai=ee.fallback,lg=ee.children,Ii=new Set,Ei=E.formatContext.insertionMode<Sl?H0(v,E.row,Ii,q(),q()):H0(v,E.row,Ii,null,null);v.trackedPostpones!==null&&(Ei.trackedContentKeyPath=N);var Pr=vh(v,Zc.chunks.length,Ei,E.formatContext,!1,!1);Zc.children.push(Pr),Zc.lastPushedText=!1;var ho=vh(v,0,null,E.formatContext,!1,!1);if(ho.parentFlushed=!0,v.trackedPostpones!==null){var mo=E.componentStack,Td=[N[0],\"Suspense Fallback\",N[2]],$i=[Td[1],Td[2],[],null];v.trackedPostpones.workingMap.set(Td,$i),Ei.trackedFallbackNode=$i,E.blockedSegment=Pr,E.blockedPreamble=Ei.fallbackPreamble,E.keyPath=Td,E.formatContext=se(v.resumableState,Nl),E.componentStack=jA(mo),Pr.status=6;try{Qa(v,E,ai,-1),Pr.lastPushedText&&Pr.textEmbedded&&Pr.chunks.push(il),Pr.status=qo,Ja(v,ug,Pr)}catch(_S){throw Pr.status=v.status===12?sr:Ji,_S}finally{E.blockedSegment=Zc,E.blockedPreamble=_v,E.keyPath=gf,E.formatContext=Nl}var Sp=bh(v,null,lg,-1,Ei,ho,Ei.contentPreamble,Ei.contentState,E.abortSet,N,ue(v.resumableState,E.formatContext),E.context,E.treeContext,null,mo,mu,E.debugTask);Ya(Sp),v.pingedTasks.push(Sp)}else{E.blockedBoundary=Ei,E.blockedPreamble=Ei.contentPreamble,E.hoistableState=Ei.contentState,E.blockedSegment=ho,E.keyPath=N,E.formatContext=ue(v.resumableState,Nl),E.row=null,ho.status=6;try{if(Qa(v,E,lg,-1),ho.lastPushedText&&ho.textEmbedded&&ho.chunks.push(il),ho.status=qo,Ja(v,Ei,ho),V1(Ei,ho),Ei.pendingTasks===0&&Ei.status===Go){if(Ei.status=qo,!ap(v,Ei)){_d!==null&&--_d.pendingTasks===0&&Uc(v,_d),v.pendingRootTasks===0&&E.blockedPreamble&&Hc(v);break e}}else _d!==null&&_d.together&&Dx(v,_d)}catch(_S){if(Ei.status=hn,v.status===12){ho.status=sr;var _p=v.fatalError}else ho.status=Ji,_p=_S;var Ih=Za(E.componentStack),Tp=ms(v,_p,Ih,E.debugTask);Pm(Ei,Tp,_p,Ih,!1),V0(v,Ei)}finally{E.blockedBoundary=ug,E.blockedPreamble=_v,E.hoistableState=os,E.blockedSegment=Zc,E.keyPath=gf,E.formatContext=Nl,E.row=_d}var Es=bh(v,null,ai,-1,ug,Pr,Ei.fallbackPreamble,Ei.fallbackState,Ii,[N[0],\"Suspense Fallback\",N[2]],se(v.resumableState,E.formatContext),E.context,E.treeContext,E.row,jA(E.componentStack),mu,E.debugTask);Ya(Es),v.pingedTasks.push(Es)}}return}if(typeof K==\"object\"&&K!==null)switch(K.$$typeof){case Ao:if(\"ref\"in ee){var kh={};for(var Vm in ee)Vm!==\"ref\"&&(kh[Vm]=ee[Vm])}else kh=ee;var yb=Ca(v,E,N,K.render,kh,le);o6(v,E,N,yb,Hi!==0,Co,Ev);return;case lp:wh(v,E,N,K.type,ee,le);return;case fo:var bb=ee.value,Gm=ee.children,dg=E.context,Cp=E.keyPath,yf=K._currentValue;K._currentValue=bb,K._currentRenderer!==void 0&&K._currentRenderer!==null&&K._currentRenderer!==yv&&console.error(\"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.\"),K._currentRenderer=yv;var xu=df,As={parent:xu,depth:xu===null?0:xu.depth+1,context:K,parentValue:yf,value:bb};df=As,E.context=As,E.keyPath=N,el(v,E,Gm,-1);var Oh=df;if(Oh===null)throw Error(\"Tried to pop a Context at the root of the app. This is a bug in React.\");Oh.context!==K&&console.error(\"The parent context is not the expected context. This is probably a bug in React.\"),Oh.context._currentValue=Oh.parentValue,K._currentRenderer!==void 0&&K._currentRenderer!==null&&K._currentRenderer!==yv&&console.error(\"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.\"),K._currentRenderer=yv;var vb=df=Oh.parent;E.context=vb,E.keyPath=Cp,dg!==E.context&&console.error(\"Popping the context provider did not return back to the original snapshot. This is a bug in React.\");return;case eb:var SS=K._context,Nh=ee.children;typeof Nh!=\"function\"&&console.error(\"A context consumer was rendered with multiple children, or a child that isn\\'t a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.\");var Tv=Nh(SS._currentValue),wb=E.keyPath;E.keyPath=N,el(v,E,Tv,-1),E.keyPath=wb;return;case Q0:var k4=gu(K);if(v.status===12)throw null;wh(v,E,N,k4,ee,le);return}var f2=\"\";throw(K===void 0||typeof K==\"object\"&&K!==null&&Object.keys(K).length===0)&&(f2+=\" You likely forgot to export your component from the file it\\'s defined in, or you might have mixed up default and named imports.\"),Error(\"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: \"+((K==null?K:typeof K)+\".\"+f2))}}function Yy(v,E,N,K,ee){var le=E.replay,ye=E.blockedBoundary,Ae=vh(v,0,null,E.formatContext,!1,!1);Ae.id=N,Ae.parentFlushed=!0;try{E.replay=null,E.blockedSegment=Ae,Qa(v,E,K,ee),Ae.status=qo,Ja(v,ye,Ae),ye===null?v.completedRootSegment=Ae:(V1(ye,Ae),ye.parentFlushed&&v.partialBoundaries.push(ye))}finally{E.replay=le,E.blockedSegment=null}}function WA(v,E,N,K,ee,le,ye,Ae,Ye,Me){le=Me.nodes;for(var Fe=0;Fe<le.length;Fe++){var vt=le[Fe];if(ee===vt[1]){if(vt.length===4){if(K!==null&&K!==vt[0])throw Error(\"Expected the resume to render <\"+vt[0]+\"> in this slot but instead it rendered <\"+K+\">. The tree doesn\\'t match so React will fallback to client rendering.\");var mt=vt[2];K=vt[3],ee=E.node,E.replay={nodes:mt,slots:K,pendingTasks:1};try{if(wh(v,E,N,ye,Ae,Ye),E.replay.pendingTasks===1&&0<E.replay.nodes.length)throw Error(\"Couldn\\'t find all resumable slots by key/index during replaying. The tree doesn\\'t match so React will fallback to client rendering.\");E.replay.pendingTasks--}catch(dn){if(typeof dn==\"object\"&&dn!==null&&(dn===Rl||typeof dn.then==\"function\"))throw E.node===ee?E.replay=Me:le.splice(Fe,1),dn;E.replay.pendingTasks--,ye=Za(E.componentStack),Ae=v,v=E.blockedBoundary,N=dn,Ye=K,K=ms(Ae,N,ye,E.debugTask),of(Ae,v,mt,Ye,N,K,ye,!1)}E.replay=Me}else{if(ye!==tb)throw Error(\"Expected the resume to render <Suspense> in this slot but instead it rendered <\"+(ln(ye)||\"Unknown\")+\">. The tree doesn\\'t match so React will fallback to client rendering.\");e:{Me=void 0,K=vt[5],ye=vt[2],Ye=vt[3],ee=vt[4]===null?[]:vt[4][2],vt=vt[4]===null?null:vt[4][3];var At=E.keyPath,$e=E.formatContext,En=E.row,Yr=E.replay,wn=E.blockedBoundary,Pn=E.hoistableState,po=Ae.children,pi=Ae.fallback,qn=new Set;Ae=E.formatContext.insertionMode<Sl?H0(v,E.row,qn,q(),q()):H0(v,E.row,qn,null,null),Ae.parentFlushed=!0,Ae.rootSegmentID=K,E.blockedBoundary=Ae,E.hoistableState=Ae.contentState,E.keyPath=N,E.formatContext=ue(v.resumableState,$e),E.row=null,E.replay={nodes:ye,slots:Ye,pendingTasks:1};try{if(Qa(v,E,po,-1),E.replay.pendingTasks===1&&0<E.replay.nodes.length)throw Error(\"Couldn\\'t find all resumable slots by key/index during replaying. The tree doesn\\'t match so React will fallback to client rendering.\");if(E.replay.pendingTasks--,Ae.pendingTasks===0&&Ae.status===Go){Ae.status=qo,v.completedBoundaries.push(Ae);break e}}catch(dn){Ae.status=hn,mt=Za(E.componentStack),Me=ms(v,dn,mt,E.debugTask),Pm(Ae,Me,dn,mt,!1),E.replay.pendingTasks--,v.clientRenderedBoundaries.push(Ae)}finally{E.blockedBoundary=wn,E.hoistableState=Pn,E.replay=Yr,E.keyPath=At,E.formatContext=$e,E.row=En}Ae=z0(v,null,{nodes:ee,slots:vt,pendingTasks:0},pi,-1,wn,Ae.fallbackState,qn,[N[0],\"Suspense Fallback\",N[2]],se(v.resumableState,E.formatContext),E.context,E.treeContext,E.row,jA(E.componentStack),mu,E.debugTask),Ya(Ae),v.pingedTasks.push(Ae)}}le.splice(Fe,1);break}}}function VA(v,E,N,K,ee){K===E?(N!==-1||v.componentStack===null||typeof v.componentStack.type!=\"function\"||Object.prototype.toString.call(v.componentStack.type)!==\"[object GeneratorFunction]\"||Object.prototype.toString.call(K)!==\"[object Generator]\")&&(xd||console.error(\"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items.\"),xd=!0):E.entries!==ee||ts||(console.error(\"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"),ts=!0)}function el(v,E,N,K){E.replay!==null&&typeof E.replay.slots==\"number\"?Yy(v,E,E.replay.slots,N,K):(E.node=N,E.childIndex=K,N=E.componentStack,K=E.debugTask,Ya(E),Zy(v,E),E.componentStack=N,E.debugTask=K)}function Zy(v,E){var N=E.node,K=E.childIndex;if(N!==null){if(typeof N==\"object\"){switch(N.$$typeof){case Y1:var ee=N.type,le=N.key;N=N.props;var ye=N.ref;ye=ye!==void 0?ye:null;var Ae=E.debugTask,Ye=ln(ee);le=le??(K===-1?0:K);var Me=[E.keyPath,Ye,le];E.replay!==null?Ae?Ae.run(WA.bind(null,v,E,Me,Ye,le,K,ee,N,ye,E.replay)):WA(v,E,Me,Ye,le,K,ee,N,ye,E.replay):Ae?Ae.run(wh.bind(null,v,E,Me,ee,N,ye)):wh(v,E,Me,ee,N,ye);return;case Fx:throw Error(\"Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.\");case Q0:if(ee=gu(N),v.status===12)throw null;el(v,E,ee,K);return}if(dp(N)){W0(v,E,N,K);return}if((le=n(N))&&(ee=le.call(N))){if(VA(E,N,K,ee,le),N=ee.next(),!N.done){le=[];do le.push(N.value),N=ee.next();while(!N.done);W0(v,E,le,K)}return}if(typeof N.then==\"function\")return E.thenableState=null,el(v,E,t6(N),K);if(N.$$typeof===fo)return el(v,E,N._currentValue,K);throw v=Object.prototype.toString.call(N),Error(\"Objects are not valid as a React child (found: \"+(v===\"[object Object]\"?\"object with keys {\"+Object.keys(N).join(\", \")+\"}\":v)+\"). If you meant to render a collection of children, use an array instead.\")}typeof N==\"string\"?(E=E.blockedSegment,E!==null&&(E.lastPushedText=he(E.chunks,N,v.renderState,E.lastPushedText))):typeof N==\"number\"||typeof N==\"bigint\"?(E=E.blockedSegment,E!==null&&(E.lastPushedText=he(E.chunks,\"\"+N,v.renderState,E.lastPushedText))):(typeof N==\"function\"&&(v=N.displayName||N.name||\"Component\",console.error(\"Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\",v,v)),typeof N==\"symbol\"&&console.error(`Symbols are not valid as a React child.\\n  %s`,String(N)))}}function sp(v,E,N){if(N!==null&&typeof N==\"object\"&&(N.$$typeof===Y1||N.$$typeof===Fx)&&N._store&&(!N._store.validated&&N.key==null||N._store.validated===2)){if(typeof N._store!=\"object\")throw Error(\"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.\");N._store.validated=1;var K=v.didWarnForKey;if(K==null&&(K=v.didWarnForKey=new WeakSet),v=E.componentStack,v!==null&&!K.has(v)){K.add(v);var ee=ln(N.type);K=N._owner;var le=v.owner;if(v=\"\",le&&typeof le.type<\"u\"){var ye=ln(le.type);ye&&(v=`\\n\\nCheck the render method of \\\\``+ye+\"`.\")}v||ee&&(v=`\\n\\nCheck the top-level render call using <`+ee+\">.\"),ee=\"\",K!=null&&le!==K&&(le=null,typeof K.type<\"u\"?le=ln(K.type):typeof K.name==\"string\"&&(le=K.name),le&&(ee=\" It was passed a child from \"+le+\".\")),K=E.componentStack,E.componentStack={parent:E.componentStack,type:N.type,owner:N._owner,stack:N._debugStack},console.error(\\'Each child in a list should have a unique \"key\" prop.%s%s See https://react.dev/link/warning-keys for more information.\\',v,ee),E.componentStack=K}}}function W0(v,E,N,K){var ee=E.keyPath,le=E.componentStack,ye=E.debugTask;if(Nm(E,E.node._debugInfo),K!==-1&&(E.keyPath=[E.keyPath,\"Fragment\",K],E.replay!==null)){for(var Ae=E.replay,Ye=Ae.nodes,Me=0;Me<Ye.length;Me++){var Fe=Ye[Me];if(Fe[1]===K){K=Fe[2],Fe=Fe[3],E.replay={nodes:K,slots:Fe,pendingTasks:1};try{if(W0(v,E,N,-1),E.replay.pendingTasks===1&&0<E.replay.nodes.length)throw Error(\"Couldn\\'t find all resumable slots by key/index during replaying. The tree doesn\\'t match so React will fallback to client rendering.\");E.replay.pendingTasks--}catch($e){if(typeof $e==\"object\"&&$e!==null&&($e===Rl||typeof $e.then==\"function\"))throw $e;E.replay.pendingTasks--;var vt=Za(E.componentStack);N=E.blockedBoundary;var mt=$e,At=Fe;Fe=ms(v,mt,vt,E.debugTask),of(v,N,K,At,mt,Fe,vt,!1)}E.replay=Ae,Ye.splice(Me,1);break}}E.keyPath=ee,E.componentStack=le,E.debugTask=ye;return}if(Ae=E.treeContext,Ye=N.length,E.replay!==null&&(Me=E.replay.slots,Me!==null&&typeof Me==\"object\")){for(K=0;K<Ye;K++)Fe=N[K],E.treeContext=Bc(Ae,Ye,K),mt=Me[K],typeof mt==\"number\"?(Yy(v,E,mt,Fe,K),delete Me[K]):Qa(v,E,Fe,K);E.treeContext=Ae,E.keyPath=ee,E.componentStack=le,E.debugTask=ye;return}for(Me=0;Me<Ye;Me++)K=N[Me],sp(v,E,K),E.treeContext=Bc(Ae,Ye,Me),Qa(v,E,K,Me);E.treeContext=Ae,E.keyPath=ee,E.componentStack=le,E.debugTask=ye}function Bx(v,E,N){if(N.status=nr,N.rootSegmentID=v.nextSegmentId++,v=N.trackedContentKeyPath,v===null)throw Error(\"It should not be possible to postpone at the root. This is a bug in React.\");var K=N.trackedFallbackNode,ee=[],le=E.workingMap.get(v);return le===void 0?(N=[v[1],v[2],ee,null,K,N.rootSegmentID],E.workingMap.set(v,N),up(N,v[0],E),N):(le[4]=K,le[5]=N.rootSegmentID,le)}function Lx(v,E,N,K){K.status=nr;var ee=N.keyPath,le=N.blockedBoundary;if(le===null)K.id=v.nextSegmentId++,E.rootSlots=K.id,v.completedRootSegment!==null&&(v.completedRootSegment.status=nr);else{if(le!==null&&le.status===Go){var ye=Bx(v,E,le);if(le.trackedContentKeyPath===ee&&N.childIndex===-1){K.id===-1&&(K.id=K.parentFlushed?le.rootSegmentID:v.nextSegmentId++),ye[3]=K.id;return}}if(K.id===-1&&(K.id=K.parentFlushed&&le!==null?le.rootSegmentID:v.nextSegmentId++),N.childIndex===-1)ee===null?E.rootSlots=K.id:(N=E.workingMap.get(ee),N===void 0?(N=[ee[1],ee[2],[],K.id],up(N,ee[0],E)):N[3]=K.id);else{if(ee===null){if(v=E.rootSlots,v===null)v=E.rootSlots={};else if(typeof v==\"number\")throw Error(\"It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React.\")}else if(le=E.workingMap,ye=le.get(ee),ye===void 0)v={},ye=[ee[1],ee[2],[],v],le.set(ee,ye),up(ye,ee[0],E);else if(v=ye[3],v===null)v=ye[3]={};else if(typeof v==\"number\")throw Error(\"It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React.\");v[N.childIndex]=K.id}}}function V0(v,E){v=v.trackedPostpones,v!==null&&(E=E.trackedContentKeyPath,E!==null&&(E=v.workingMap.get(E),E!==void 0&&(E.length=4,E[2]=[],E[3]=null)))}function W1(v,E,N){return z0(v,N,E.replay,E.node,E.childIndex,E.blockedBoundary,E.hoistableState,E.abortSet,E.keyPath,E.formatContext,E.context,E.treeContext,E.row,E.componentStack,mu,E.debugTask)}function G0(v,E,N){var K=E.blockedSegment,ee=vh(v,K.chunks.length,null,E.formatContext,K.lastPushedText,!0);return K.children.push(ee),K.lastPushedText=!1,bh(v,N,E.node,E.childIndex,E.blockedBoundary,ee,E.blockedPreamble,E.hoistableState,E.abortSet,E.keyPath,E.formatContext,E.context,E.treeContext,E.row,E.componentStack,mu,E.debugTask)}function Qa(v,E,N,K){var ee=E.formatContext,le=E.context,ye=E.keyPath,Ae=E.treeContext,Ye=E.componentStack,Me=E.debugTask,Fe=E.blockedSegment;if(Fe===null){Fe=E.replay;try{return el(v,E,N,K)}catch(At){if(fd(),N=At===Rl?Lc():At,v.status!==12&&typeof N==\"object\"&&N!==null){if(typeof N.then==\"function\"){K=At===Rl?dd():null,v=W1(v,E,K).ping,N.then(v,v),E.formatContext=ee,E.context=le,E.keyPath=ye,E.treeContext=Ae,E.componentStack=Ye,E.replay=Fe,E.debugTask=Me,da(le);return}if(N.message===\"Maximum call stack size exceeded\"){N=At===Rl?dd():null,N=W1(v,E,N),v.pingedTasks.push(N),E.formatContext=ee,E.context=le,E.keyPath=ye,E.treeContext=Ae,E.componentStack=Ye,E.replay=Fe,E.debugTask=Me,da(le);return}}}}else{var vt=Fe.children.length,mt=Fe.chunks.length;try{return el(v,E,N,K)}catch(At){if(fd(),Fe.children.length=vt,Fe.chunks.length=mt,N=At===Rl?Lc():At,v.status!==12&&typeof N==\"object\"&&N!==null){if(typeof N.then==\"function\"){Fe=N,N=At===Rl?dd():null,v=G0(v,E,N).ping,Fe.then(v,v),E.formatContext=ee,E.context=le,E.keyPath=ye,E.treeContext=Ae,E.componentStack=Ye,E.debugTask=Me,da(le);return}if(N.message===\"Maximum call stack size exceeded\"){Fe=At===Rl?dd():null,Fe=G0(v,E,Fe),v.pingedTasks.push(Fe),E.formatContext=ee,E.context=le,E.keyPath=ye,E.treeContext=Ae,E.componentStack=Ye,E.debugTask=Me,da(le);return}}}}throw E.formatContext=ee,E.context=le,E.keyPath=ye,E.treeContext=Ae,da(le),N}function q0(v){var E=v.blockedBoundary,N=v.blockedSegment;N!==null&&(N.status=sr,Fc(this,E,v.row,N))}function of(v,E,N,K,ee,le,ye,Ae){for(var Ye=0;Ye<N.length;Ye++){var Me=N[Ye];if(Me.length===4)of(v,E,Me[2],Me[3],ee,le,ye,Ae);else{var Fe=v;Me=Me[5];var vt=ee,mt=le,At=ye,$e=Ae,En=H0(Fe,null,new Set,null,null);En.parentFlushed=!0,En.rootSegmentID=Me,En.status=hn,Pm(En,mt,vt,At,$e),En.parentFlushed&&Fe.clientRenderedBoundaries.push(En)}}if(N.length=0,K!==null){if(E===null)throw Error(\"We should not have any resumable nodes in the shell. This is a bug in React.\");if(E.status!==hn&&(E.status=hn,Pm(E,le,ee,ye,Ae),E.parentFlushed&&v.clientRenderedBoundaries.push(E)),typeof K==\"object\")for(var Yr in K)delete K[Yr]}}function lu(v,E,N){var K=v.blockedBoundary,ee=v.blockedSegment;if(ee!==null){if(ee.status===6)return;ee.status=sr}var le=Za(v.componentStack),ye=v.node;if(ye!==null&&typeof ye==\"object\"&&j0(v,ye._debugInfo),K===null){if(E.status!==13&&E.status!==Zs){if(K=v.replay,K===null){E.trackedPostpones!==null&&ee!==null?(K=E.trackedPostpones,ms(E,N,le,v.debugTask),Lx(E,K,v,ee),Fc(E,null,v.row,ee)):(ms(E,N,le,v.debugTask),qy(E,N,le,v.debugTask));return}K.pendingTasks--,K.pendingTasks===0&&0<K.nodes.length&&(ee=ms(E,N,le,null),of(E,null,K.nodes,K.slots,N,ee,le,!0)),E.pendingRootTasks--,E.pendingRootTasks===0&&cp(E)}}else{if(ye=E.trackedPostpones,K.status!==hn){if(ye!==null&&ee!==null)return ms(E,N,le,v.debugTask),Lx(E,ye,v,ee),K.fallbackAbortableTasks.forEach(function(Ae){return lu(Ae,E,N)}),K.fallbackAbortableTasks.clear(),Fc(E,K,v.row,ee);K.status=hn,ee=ms(E,N,le,v.debugTask),K.status=hn,Pm(K,ee,N,le,!0),V0(E,K),K.parentFlushed&&E.clientRenderedBoundaries.push(K)}K.pendingTasks--,le=K.row,le!==null&&--le.pendingTasks===0&&Uc(E,le),K.fallbackAbortableTasks.forEach(function(Ae){return lu(Ae,E,N)}),K.fallbackAbortableTasks.clear()}v=v.row,v!==null&&--v.pendingTasks===0&&Uc(E,v),E.allPendingTasks--,E.allPendingTasks===0&&pd(E)}function i6(v,E){try{var N=v.renderState,K=N.onHeaders;if(K){var ee=N.headers;if(ee){N.headers=null;var le=ee.preconnects;if(ee.fontPreloads&&(le&&(le+=\", \"),le+=ee.fontPreloads),ee.highImagePreloads&&(le&&(le+=\", \"),le+=ee.highImagePreloads),!E){var ye=N.styles.values(),Ae=ye.next();e:for(;0<ee.remainingCapacity&&!Ae.done;Ae=ye.next())for(var Ye=Ae.value.sheets.values(),Me=Ye.next();0<ee.remainingCapacity&&!Me.done;Me=Ye.next()){var Fe=Me.value,vt=Fe.props,mt=vt.href,At=Fe.props,$e=lo(At.href,\"style\",{crossOrigin:At.crossOrigin,integrity:At.integrity,nonce:At.nonce,type:At.type,fetchPriority:At.fetchPriority,referrerPolicy:At.referrerPolicy,media:At.media});if(0<=(ee.remainingCapacity-=$e.length+2))N.resets.style[mt]=ol,le&&(le+=\", \"),le+=$e,N.resets.style[mt]=typeof vt.crossOrigin==\"string\"||typeof vt.integrity==\"string\"?[vt.crossOrigin,vt.integrity]:ol;else break e}}K(le?{Link:le}:{})}}}catch(En){ms(v,En,{},null)}}function cp(v){v.trackedPostpones===null&&i6(v,!0),v.trackedPostpones===null&&Hc(v),v.onShellError=Li,v=v.onShellReady,v()}function pd(v){i6(v,v.trackedPostpones===null?!0:v.completedRootSegment===null||v.completedRootSegment.status!==nr),Hc(v),v=v.onAllReady,v()}function V1(v,E){if(E.chunks.length===0&&E.children.length===1&&E.children[0].boundary===null&&E.children[0].id===-1){var N=E.children[0];N.id=E.id,N.parentFlushed=!0,N.status!==qo&&N.status!==sr&&N.status!==Ji||V1(v,N)}else v.completedSegments.push(E)}function Ja(v,E,N){if(I!==null){N=N.chunks;for(var K=0,ee=0;ee<N.length;ee++)K+=N[ee].byteLength;E===null?v.byteSize+=K:E.byteSize+=K}}function Fc(v,E,N,K){if(N!==null&&(--N.pendingTasks===0?Uc(v,N):N.together&&Dx(v,N)),v.allPendingTasks--,E===null){if(K!==null&&K.parentFlushed){if(v.completedRootSegment!==null)throw Error(\"There can only be one root segment. This is a bug in React.\");v.completedRootSegment=K}v.pendingRootTasks--,v.pendingRootTasks===0&&cp(v)}else if(E.pendingTasks--,E.status!==hn)if(E.pendingTasks===0){if(E.status===Go&&(E.status=qo),K!==null&&K.parentFlushed&&(K.status===qo||K.status===sr)&&V1(E,K),E.parentFlushed&&v.completedBoundaries.push(E),E.status===qo)N=E.row,N!==null&&_a(N.hoistables,E.contentState),ap(v,E)||(E.fallbackAbortableTasks.forEach(q0,v),E.fallbackAbortableTasks.clear(),N!==null&&--N.pendingTasks===0&&Uc(v,N)),v.pendingRootTasks===0&&v.trackedPostpones===null&&E.contentPreamble!==null&&Hc(v);else if(E.status===nr&&(E=E.row,E!==null)){if(v.trackedPostpones!==null){N=v.trackedPostpones;var ee=E.next;if(ee!==null&&(K=ee.boundaries,K!==null))for(ee.boundaries=null,ee=0;ee<K.length;ee++){var le=K[ee];Bx(v,N,le),Fc(v,le,null,null)}}--E.pendingTasks===0&&Uc(v,E)}}else K===null||!K.parentFlushed||K.status!==qo&&K.status!==sr||(V1(E,K),E.completedSegments.length===1&&E.parentFlushed&&v.partialBoundaries.push(E)),E=E.row,E!==null&&E.together&&Dx(v,E);v.allPendingTasks===0&&pd(v)}function Qy(v){if(v.status!==Zs&&v.status!==13){var E=df,N=$a.H;$a.H=Ch;var K=$a.A;$a.A=D;var ee=Nr;Nr=v;var le=$a.getCurrentStack;$a.getCurrentStack=z1;var ye=A;A=v.resumableState;try{var Ae=v.pingedTasks,Ye;for(Ye=0;Ye<Ae.length;Ye++){var Me=v,Fe=Ae[Ye],vt=Fe.blockedSegment;if(vt===null){var mt=void 0,At=Me;if(Me=Fe,Me.replay.pendingTasks!==0){da(Me.context),mt=_,_=Me;try{if(typeof Me.replay.slots==\"number\"?Yy(At,Me,Me.replay.slots,Me.node,Me.childIndex):Zy(At,Me),Me.replay.pendingTasks===1&&0<Me.replay.nodes.length)throw Error(\"Couldn\\'t find all resumable slots by key/index during replaying. The tree doesn\\'t match so React will fallback to client rendering.\");Me.replay.pendingTasks--,Me.abortSet.delete(Me),Fc(At,Me.blockedBoundary,Me.row,null)}catch(Ko){fd();var $e=Ko===Rl?Lc():Ko;if(typeof $e==\"object\"&&$e!==null&&typeof $e.then==\"function\"){var En=Me.ping;$e.then(En,En),Me.thenableState=Ko===Rl?dd():null}else{Me.replay.pendingTasks--,Me.abortSet.delete(Me);var Yr=Za(Me.componentStack),wn=void 0,Pn=At,po=Me.blockedBoundary,pi=At.status===12?At.fatalError:$e,qn=Yr,dn=Me.replay.nodes,wi=Me.replay.slots;wn=ms(Pn,pi,qn,Me.debugTask),of(Pn,po,dn,wi,pi,wn,qn,!1),At.pendingRootTasks--,At.pendingRootTasks===0&&cp(At),At.allPendingTasks--,At.allPendingTasks===0&&pd(At)}}finally{_=mt}}}else if(At=mt=void 0,wn=Fe,Pn=vt,Pn.status===Go){Pn.status=6,da(wn.context),At=_,_=wn;var Ia=Pn.children.length,Zr=Pn.chunks.length;try{Zy(Me,wn),Pn.lastPushedText&&Pn.textEmbedded&&Pn.chunks.push(il),wn.abortSet.delete(wn),Pn.status=qo,Ja(Me,wn.blockedBoundary,Pn),Fc(Me,wn.blockedBoundary,wn.row,Pn)}catch(Ko){fd(),Pn.children.length=Ia,Pn.chunks.length=Zr;var Ro=Ko===Rl?Lc():Me.status===12?Me.fatalError:Ko;if(Me.status===12&&Me.trackedPostpones!==null){var ka=Me.trackedPostpones,zi=Za(wn.componentStack);wn.abortSet.delete(wn),ms(Me,Ro,zi,wn.debugTask),Lx(Me,ka,wn,Pn),Fc(Me,wn.blockedBoundary,wn.row,Pn)}else if(typeof Ro==\"object\"&&Ro!==null&&typeof Ro.then==\"function\"){Pn.status=Go,wn.thenableState=Ko===Rl?dd():null;var Ci=wn.ping;Ro.then(Ci,Ci)}else{var Io=Za(wn.componentStack);wn.abortSet.delete(wn),Pn.status=Ji;var ji=wn.blockedBoundary,Js=wn.row,Xs=wn.debugTask;if(Js!==null&&--Js.pendingTasks===0&&Uc(Me,Js),Me.allPendingTasks--,mt=ms(Me,Ro,Io,Xs),ji===null)qy(Me,Ro,Io,Xs);else if(ji.pendingTasks--,ji.status!==hn){ji.status=hn,Pm(ji,mt,Ro,Io,!1),V0(Me,ji);var Wi=ji.row;Wi!==null&&--Wi.pendingTasks===0&&Uc(Me,Wi),ji.parentFlushed&&Me.clientRenderedBoundaries.push(ji),Me.pendingRootTasks===0&&Me.trackedPostpones===null&&ji.contentPreamble!==null&&Hc(Me)}Me.allPendingTasks===0&&pd(Me)}}finally{_=At}}}Ae.splice(0,Ye),v.destination!==null&&K0(v,v.destination)}catch(Ko){Ae={},ms(v,Ko,Ae,null),qy(v,Ko,Ae,null)}finally{A=ye,$a.H=N,$a.A=K,$a.getCurrentStack=le,N===Ch&&da(E),Nr=ee}}}function Jy(v,E,N){E.preambleChildren.length&&N.push(E.preambleChildren);for(var K=!1,ee=0;ee<E.children.length;ee++)K=GA(v,E.children[ee],N)||K;return K}function GA(v,E,N){var K=E.boundary;if(K===null)return Jy(v,E,N);var ee=K.contentPreamble,le=K.fallbackPreamble;if(ee===null||le===null)return!1;switch(K.status){case qo:if(Kr(v.renderState,ee),v.byteSize+=K.byteSize,E=K.completedSegments[0],!E)throw Error(\"A previously unvisited boundary must have exactly one root segment. This is a bug in React.\");return Jy(v,E,N);case nr:if(v.trackedPostpones!==null)return!0;case hn:if(E.status===qo)return Kr(v.renderState,le),Jy(v,E,N);default:return!0}}function Hc(v){if(v.completedRootSegment&&v.completedPreambleSegments===null){var E=[],N=v.byteSize,K=GA(v,v.completedRootSegment,E),ee=v.renderState.preamble;K===!1||ee.headChunks&&ee.bodyChunks?v.completedPreambleSegments=E:v.byteSize=N}}function G1(v,E,N,K){switch(N.parentFlushed=!0,N.status){case Go:N.id=v.nextSegmentId++;case nr:return K=N.id,N.lastPushedText=!1,N.textEmbedded=!1,v=v.renderState,h(E,g6),h(E,v.placeholderPrefix),v=w(K.toString(16)),h(E,v),g(E,aS);case qo:N.status=ri;var ee=!0,le=N.chunks,ye=0;N=N.children;for(var Ae=0;Ae<N.length;Ae++){for(ee=N[Ae];ye<ee.index;ye++)h(E,le[ye]);ee=Xy(v,E,ee,K)}for(;ye<le.length-1;ye++)h(E,le[ye]);return ye<le.length&&(ee=g(E,le[ye])),ee;case sr:return!0;default:throw Error(\"Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.\")}}function Xy(v,E,N,K){var ee=N.boundary;if(ee===null)return G1(v,E,N,K);if(ee.parentFlushed=!0,ee.status===hn){var le=ee.row;le!==null&&--le.pendingTasks===0&&Uc(v,le),le=ee.errorDigest;var ye=ee.errorMessage,Ae=ee.errorStack;ee=ee.errorComponentStack,g(E,y6),h(E,cv),le&&(h(E,x4),h(E,w(O(le))),h(E,e2)),ye&&(h(E,E4),h(E,w(O(ye))),h(E,e2)),Ae&&(h(E,s7),h(E,w(O(Ae))),h(E,e2)),ee&&(h(E,A4),h(E,w(O(ee))),h(E,e2)),g(E,S4),G1(v,E,N,K)}else if(ee.status!==qo)ee.status===Go&&(ee.rootSegmentID=v.nextSegmentId++),0<ee.completedSegments.length&&v.partialBoundaries.push(ee),Sr(E,v.renderState,ee.rootSegmentID),K&&_a(K,ee.fallbackState),G1(v,E,N,K);else if(!Xi&&ap(v,ee)&&(Ed+ee.byteSize>v.progressiveChunkSize||Tr(ee.contentState)))ee.rootSegmentID=v.nextSegmentId++,v.completedBoundaries.push(ee),Sr(E,v.renderState,ee.rootSegmentID),G1(v,E,N,K);else{if(Ed+=ee.byteSize,K&&_a(K,ee.contentState),N=ee.row,N!==null&&ap(v,ee)&&--N.pendingTasks===0&&Uc(v,N),g(E,b4),N=ee.completedSegments,N.length!==1)throw Error(\"A previously unvisited boundary must have exactly one root segment. This is a bug in React.\");Xy(v,E,N[0],K)}return g(E,b6)}function Ux(v,E,N,K){return $r(E,v.renderState,N.parentFormatContext,N.id),Xy(v,E,N,K),yl(E,N.parentFormatContext)}function a6(v,E,N){Ed=N.byteSize;for(var K=N.completedSegments,ee=0;ee<K.length;ee++)q1(v,E,N,K[ee]);K.length=0,K=N.row,K!==null&&ap(v,N)&&--K.pendingTasks===0&&Uc(v,K),bt(E,N.contentState,v.renderState),K=v.resumableState,v=v.renderState,ee=N.rootSegmentID,N=N.contentState;var le=v.stylesToHoist;return v.stylesToHoist=!1,h(E,v.startInlineScript),h(E,Wo),le?((K.instructions&Vx)===Ra&&(K.instructions|=Vx,h(E,C6)),(K.instructions&Wx)===Ra&&(K.instructions|=Wx,h(E,Th)),(K.instructions&fu)===Ra?(K.instructions|=fu,h(E,S6)):h(E,hS)):((K.instructions&Wx)===Ra&&(K.instructions|=Wx,h(E,Th)),h(E,A6)),K=w(ee.toString(16)),h(E,v.boundaryPrefix),h(E,K),h(E,_6),h(E,v.segmentPrefix),h(E,K),le?(h(E,n2),hs(E,N)):h(E,T6),N=g(E,mS),Ka(E,v)&&N}function q1(v,E,N,K){if(K.status===ri)return!0;var ee=N.contentState,le=K.id;if(le===-1){if((K.id=N.rootSegmentID)===-1)throw Error(\"A root segment ID must have been assigned by now. This is a bug in React.\");return Ux(v,E,K,ee)}return le===N.rootSegmentID?Ux(v,E,K,ee):(Ux(v,E,K,ee),N=v.resumableState,v=v.renderState,h(E,v.startInlineScript),h(E,Wo),(N.instructions&X1)===Ra?(N.instructions|=X1,h(E,E6)):h(E,pS),h(E,v.segmentPrefix),le=w(le.toString(16)),h(E,le),h(E,gp),h(E,v.placeholderPrefix),h(E,le),E=g(E,lb),E)}function K0(v,E){El=new Uint8Array(2048),Al=0;try{if(!(0<v.pendingRootTasks)){var N,K=v.completedRootSegment;if(K!==null){if(K.status===nr)return;var ee=v.completedPreambleSegments;if(ee===null)return;Ed=v.byteSize;var le=v.resumableState,ye=v.renderState,Ae=ye.preamble,Ye=Ae.htmlChunks,Me=Ae.headChunks,Fe;if(Ye){for(Fe=0;Fe<Ye.length;Fe++)h(E,Ye[Fe]);if(Me)for(Fe=0;Fe<Me.length;Fe++)h(E,Me[Fe]);else h(E,fn(\"head\")),h(E,Wo)}else if(Me)for(Fe=0;Fe<Me.length;Fe++)h(E,Me[Fe]);var vt=ye.charsetChunks;for(Fe=0;Fe<vt.length;Fe++)h(E,vt[Fe]);vt.length=0,ye.preconnects.forEach(jt,E),ye.preconnects.clear();var mt=ye.viewportChunks;for(Fe=0;Fe<mt.length;Fe++)h(E,mt[Fe]);mt.length=0,ye.fontPreloads.forEach(jt,E),ye.fontPreloads.clear(),ye.highImagePreloads.forEach(jt,E),ye.highImagePreloads.clear(),$o=ye,ye.styles.forEach(Qt,E),$o=null;var At=ye.importMapChunks;for(Fe=0;Fe<At.length;Fe++)h(E,At[Fe]);At.length=0,ye.bootstrapScripts.forEach(jt,E),ye.scripts.forEach(jt,E),ye.scripts.clear(),ye.bulkPreloads.forEach(jt,E),ye.bulkPreloads.clear(),Ye||Me||(le.instructions|=yc);var $e=ye.hoistableChunks;for(Fe=0;Fe<$e.length;Fe++)h(E,$e[Fe]);for(le=$e.length=0;le<ee.length;le++){var En=ee[le];for(ye=0;ye<En.length;ye++)Xy(v,E,En[ye],null)}var Yr=v.renderState.preamble,wn=Yr.headChunks;(Yr.htmlChunks||wn)&&h(E,Ar(\"head\"));var Pn=Yr.bodyChunks;if(Pn)for(ee=0;ee<Pn.length;ee++)h(E,Pn[ee]);Xy(v,E,K,null),v.completedRootSegment=null;var po=v.renderState;if(v.allPendingTasks!==0||v.clientRenderedBoundaries.length!==0||v.completedBoundaries.length!==0||v.trackedPostpones!==null&&(v.trackedPostpones.rootNodes.length!==0||v.trackedPostpones.rootSlots!==null)){var pi=v.resumableState;if((pi.instructions&Ui)===Ra){if(pi.instructions|=Ui,h(E,po.startInlineScript),(pi.instructions&yc)===Ra){pi.instructions|=yc;var qn=\"_\"+pi.idPrefix+\"R_\";h(E,lf),h(E,w(O(qn))),h(E,Fi)}h(E,Wo),h(E,$x),g(E,uf)}}Ka(E,po)}var dn=v.renderState;K=0;var wi=dn.viewportChunks;for(K=0;K<wi.length;K++)h(E,wi[K]);wi.length=0,dn.preconnects.forEach(jt,E),dn.preconnects.clear(),dn.fontPreloads.forEach(jt,E),dn.fontPreloads.clear(),dn.highImagePreloads.forEach(jt,E),dn.highImagePreloads.clear(),dn.styles.forEach(zt,E),dn.scripts.forEach(jt,E),dn.scripts.clear(),dn.bulkPreloads.forEach(jt,E),dn.bulkPreloads.clear();var Ia=dn.hoistableChunks;for(K=0;K<Ia.length;K++)h(E,Ia[K]);Ia.length=0;var Zr=v.clientRenderedBoundaries;for(N=0;N<Zr.length;N++){var Ro=Zr[N];dn=E;var ka=v.resumableState,zi=v.renderState,Ci=Ro.rootSegmentID,Io=Ro.errorDigest,ji=Ro.errorMessage,Js=Ro.errorStack,Xs=Ro.errorComponentStack;h(dn,zi.startInlineScript),h(dn,Wo),(ka.instructions&Vx)===Ra?(ka.instructions|=Vx,h(dn,R6)):h(dn,gS),h(dn,zi.boundaryPrefix),h(dn,w(Ci.toString(16))),h(dn,I6),(Io||ji||Js||Xs)&&(h(dn,pv),h(dn,w(lr(Io||\"\")))),(ji||Js||Xs)&&(h(dn,pv),h(dn,w(lr(ji||\"\")))),(Js||Xs)&&(h(dn,pv),h(dn,w(lr(Js||\"\")))),Xs&&(h(dn,pv),h(dn,w(lr(Xs))));var Wi=g(dn,db);if(!Wi){v.destination=null,N++,Zr.splice(0,N);return}}Zr.splice(0,N);var Ko=v.completedBoundaries;for(N=0;N<Ko.length;N++)if(!a6(v,E,Ko[N])){v.destination=null,N++,Ko.splice(0,N);return}Ko.splice(0,N),y(E),El=new Uint8Array(2048),Al=0,Xi=!0;var Ri=v.partialBoundaries;for(N=0;N<Ri.length;N++){e:{Zr=v,Ro=E;var Oa=Ri[N];Ed=Oa.byteSize;var Na=Oa.completedSegments;for(Wi=0;Wi<Na.length;Wi++)if(!q1(Zr,Ro,Oa,Na[Wi])){Wi++,Na.splice(0,Wi);var bu=!1;break e}Na.splice(0,Wi);var ws=Oa.row;ws!==null&&ws.together&&Oa.pendingTasks===1&&(ws.pendingTasks===1?j1(Zr,ws,ws.hoistables):ws.pendingTasks--),bu=bt(Ro,Oa.contentState,Zr.renderState)}if(!bu){v.destination=null,N++,Ri.splice(0,N);return}}Ri.splice(0,N),Xi=!1;var xi=v.completedBoundaries;for(N=0;N<xi.length;N++)if(!a6(v,E,xi[N])){v.destination=null,N++,xi.splice(0,N);return}xi.splice(0,N)}}finally{Xi=!1,v.allPendingTasks===0&&v.clientRenderedBoundaries.length===0&&v.completedBoundaries.length===0?(v.flushScheduled=!1,N=v.resumableState,N.hasBody&&h(E,Ar(\"body\")),N.hasHtml&&h(E,Ar(\"html\")),y(E),v.abortableTasks.size!==0&&console.error(\"There was still abortable task at the root when we closed. This is a bug in React.\"),v.status=Zs,E.close(),v.destination=null):y(E)}}function Y0(v){v.flushScheduled=v.destination!==null,Mm(function(){return Qy(v)}),d(function(){v.status===10&&(v.status=11),v.trackedPostpones===null&&i6(v,v.pendingRootTasks===0)})}function tl(v){v.flushScheduled===!1&&v.pingedTasks.length===0&&v.destination!==null&&(v.flushScheduled=!0,d(function(){var E=v.destination;E?K0(v,E):v.flushScheduled=!1}))}function xh(v,E){if(v.status===13)v.status=Zs,C(E,v.fatalError);else if(v.status!==Zs&&v.destination===null){v.destination=E;try{K0(v,E)}catch(N){E={},ms(v,N,E,null),qy(v,N,E,null)}}}function hc(v,E){(v.status===11||v.status===10)&&(v.status=12);try{var N=v.abortableTasks;if(0<N.size){var K=E===void 0?Error(\"The render was aborted by the server without a reason.\"):typeof E==\"object\"&&E!==null&&typeof E.then==\"function\"?Error(\"The render was aborted by the server with a promise.\"):E;v.fatalError=K,N.forEach(function(ee){var le=_,ye=$a.getCurrentStack;_=ee,$a.getCurrentStack=z1;try{lu(ee,v,K)}finally{_=le,$a.getCurrentStack=ye}}),N.clear()}v.destination!==null&&K0(v,v.destination)}catch(ee){E={},ms(v,ee,E,null),qy(v,ee,E,null)}}function up(v,E,N){if(E===null)N.rootNodes.push(v);else{var K=N.workingMap,ee=K.get(E);ee===void 0&&(ee=[E[1],E[2],[],null],K.set(E,ee),up(ee,E[0],N)),ee[2].push(v)}}function zc(v){var E=v.trackedPostpones;if(E===null||E.rootNodes.length===0&&E.rootSlots===null)return v.trackedPostpones=null;if(v.completedRootSegment===null||v.completedRootSegment.status!==nr&&v.completedPreambleSegments!==null){var N=v.nextSegmentId,K=E.rootSlots,ee=v.resumableState;ee.bootstrapScriptContent=void 0,ee.bootstrapScripts=void 0,ee.bootstrapModules=void 0}else{N=0,K=-1,ee=v.resumableState;var le=v.renderState;ee.nextFormID=0,ee.hasBody=!1,ee.hasHtml=!1,ee.unknownResources={font:le.resets.font},ee.dnsResources=le.resets.dns,ee.connectResources=le.resets.connect,ee.imageResources=le.resets.image,ee.styleResources=le.resets.style,ee.scriptResources={},ee.moduleUnknownResources={},ee.moduleScriptResources={},ee.instructions=Ra}return{nextSegmentId:N,rootFormatContext:v.rootFormatContext,progressiveChunkSize:v.progressiveChunkSize,resumableState:v.resumableState,replayNodes:E.rootNodes,replaySlots:K}}function qA(){var v=K1.version;if(v!==\"19.2.0\")throw Error(`Incompatible React versions: The \"react\" and \"react-dom\" packages must have the exact same version. Instead got:\\n  - react:      `+(v+`\\n  - react-dom:  19.2.0\\nLearn more: https://react.dev/warnings/version-mismatch`))}var K1=at(),$y=Ob(),Y1=Symbol.for(\"react.transitional.element\"),Fx=Symbol.for(\"react.portal\"),Eh=Symbol.for(\"react.fragment\"),KA=Symbol.for(\"react.strict_mode\"),s6=Symbol.for(\"react.profiler\"),eb=Symbol.for(\"react.consumer\"),fo=Symbol.for(\"react.context\"),Ao=Symbol.for(\"react.forward_ref\"),tb=Symbol.for(\"react.suspense\"),Z0=Symbol.for(\"react.suspense_list\"),lp=Symbol.for(\"react.memo\"),Q0=Symbol.for(\"react.lazy\"),p4=Symbol.for(\"react.scope\"),YA=Symbol.for(\"react.activity\"),wl=Symbol.for(\"react.legacy_hidden\"),xl=Symbol.for(\"react.memo_cache_sentinel\"),h4=Symbol.for(\"react.view_transition\"),ZA=Symbol.iterator,dp=Array.isArray,QA=new WeakMap,jc=new WeakMap,fp=Symbol.for(\"react.client.reference\"),J0=new MessageChannel,c6=[];J0.port1.onmessage=function(){var v=c6.shift();v&&v()};var JA=Promise,Mm=typeof queueMicrotask==\"function\"?queueMicrotask:function(v){JA.resolve(null).then(v).catch(m)},El=null,Al=0,X0=new TextEncoder,So=Object.assign,_o=Object.prototype.hasOwnProperty,Z1=RegExp(\"^[: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][: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]*$\"),Hx={},zx={},$0=new Set(\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\".split(\" \")),Dm=new Map([[\"acceptCharset\",\"accept-charset\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"],[\"crossOrigin\",\"crossorigin\"],[\"accentHeight\",\"accent-height\"],[\"alignmentBaseline\",\"alignment-baseline\"],[\"arabicForm\",\"arabic-form\"],[\"baselineShift\",\"baseline-shift\"],[\"capHeight\",\"cap-height\"],[\"clipPath\",\"clip-path\"],[\"clipRule\",\"clip-rule\"],[\"colorInterpolation\",\"color-interpolation\"],[\"colorInterpolationFilters\",\"color-interpolation-filters\"],[\"colorProfile\",\"color-profile\"],[\"colorRendering\",\"color-rendering\"],[\"dominantBaseline\",\"dominant-baseline\"],[\"enableBackground\",\"enable-background\"],[\"fillOpacity\",\"fill-opacity\"],[\"fillRule\",\"fill-rule\"],[\"floodColor\",\"flood-color\"],[\"floodOpacity\",\"flood-opacity\"],[\"fontFamily\",\"font-family\"],[\"fontSize\",\"font-size\"],[\"fontSizeAdjust\",\"font-size-adjust\"],[\"fontStretch\",\"font-stretch\"],[\"fontStyle\",\"font-style\"],[\"fontVariant\",\"font-variant\"],[\"fontWeight\",\"font-weight\"],[\"glyphName\",\"glyph-name\"],[\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\"],[\"glyphOrientationVertical\",\"glyph-orientation-vertical\"],[\"horizAdvX\",\"horiz-adv-x\"],[\"horizOriginX\",\"horiz-origin-x\"],[\"imageRendering\",\"image-rendering\"],[\"letterSpacing\",\"letter-spacing\"],[\"lightingColor\",\"lighting-color\"],[\"markerEnd\",\"marker-end\"],[\"markerMid\",\"marker-mid\"],[\"markerStart\",\"marker-start\"],[\"overlinePosition\",\"overline-position\"],[\"overlineThickness\",\"overline-thickness\"],[\"paintOrder\",\"paint-order\"],[\"panose-1\",\"panose-1\"],[\"pointerEvents\",\"pointer-events\"],[\"renderingIntent\",\"rendering-intent\"],[\"shapeRendering\",\"shape-rendering\"],[\"stopColor\",\"stop-color\"],[\"stopOpacity\",\"stop-opacity\"],[\"strikethroughPosition\",\"strikethrough-position\"],[\"strikethroughThickness\",\"strikethrough-thickness\"],[\"strokeDasharray\",\"stroke-dasharray\"],[\"strokeDashoffset\",\"stroke-dashoffset\"],[\"strokeLinecap\",\"stroke-linecap\"],[\"strokeLinejoin\",\"stroke-linejoin\"],[\"strokeMiterlimit\",\"stroke-miterlimit\"],[\"strokeOpacity\",\"stroke-opacity\"],[\"strokeWidth\",\"stroke-width\"],[\"textAnchor\",\"text-anchor\"],[\"textDecoration\",\"text-decoration\"],[\"textRendering\",\"text-rendering\"],[\"transformOrigin\",\"transform-origin\"],[\"underlinePosition\",\"underline-position\"],[\"underlineThickness\",\"underline-thickness\"],[\"unicodeBidi\",\"unicode-bidi\"],[\"unicodeRange\",\"unicode-range\"],[\"unitsPerEm\",\"units-per-em\"],[\"vAlphabetic\",\"v-alphabetic\"],[\"vHanging\",\"v-hanging\"],[\"vIdeographic\",\"v-ideographic\"],[\"vMathematical\",\"v-mathematical\"],[\"vectorEffect\",\"vector-effect\"],[\"vertAdvY\",\"vert-adv-y\"],[\"vertOriginX\",\"vert-origin-x\"],[\"vertOriginY\",\"vert-origin-y\"],[\"wordSpacing\",\"word-spacing\"],[\"writingMode\",\"writing-mode\"],[\"xmlnsXlink\",\"xmlns:xlink\"],[\"xHeight\",\"x-height\"]]),u6={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Ws={\"aria-current\":0,\"aria-description\":0,\"aria-details\":0,\"aria-disabled\":0,\"aria-hidden\":0,\"aria-invalid\":0,\"aria-keyshortcuts\":0,\"aria-label\":0,\"aria-roledescription\":0,\"aria-autocomplete\":0,\"aria-checked\":0,\"aria-expanded\":0,\"aria-haspopup\":0,\"aria-level\":0,\"aria-modal\":0,\"aria-multiline\":0,\"aria-multiselectable\":0,\"aria-orientation\":0,\"aria-placeholder\":0,\"aria-pressed\":0,\"aria-readonly\":0,\"aria-required\":0,\"aria-selected\":0,\"aria-sort\":0,\"aria-valuemax\":0,\"aria-valuemin\":0,\"aria-valuenow\":0,\"aria-valuetext\":0,\"aria-atomic\":0,\"aria-busy\":0,\"aria-live\":0,\"aria-relevant\":0,\"aria-dropeffect\":0,\"aria-grabbed\":0,\"aria-activedescendant\":0,\"aria-colcount\":0,\"aria-colindex\":0,\"aria-colspan\":0,\"aria-controls\":0,\"aria-describedby\":0,\"aria-errormessage\":0,\"aria-flowto\":0,\"aria-labelledby\":0,\"aria-owns\":0,\"aria-posinset\":0,\"aria-rowcount\":0,\"aria-rowindex\":0,\"aria-rowspan\":0,\"aria-setsize\":0,\"aria-braillelabel\":0,\"aria-brailleroledescription\":0,\"aria-colindextext\":0,\"aria-rowindextext\":0},af={},XA=RegExp(\"^(aria)-[: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]*$\"),nl=RegExp(\"^(aria)[A-Z][: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]*$\"),Hr=!1,Q1={accept:\"accept\",acceptcharset:\"acceptCharset\",\"accept-charset\":\"acceptCharset\",accesskey:\"accessKey\",action:\"action\",allowfullscreen:\"allowFullScreen\",alt:\"alt\",as:\"as\",async:\"async\",autocapitalize:\"autoCapitalize\",autocomplete:\"autoComplete\",autocorrect:\"autoCorrect\",autofocus:\"autoFocus\",autoplay:\"autoPlay\",autosave:\"autoSave\",capture:\"capture\",cellpadding:\"cellPadding\",cellspacing:\"cellSpacing\",challenge:\"challenge\",charset:\"charSet\",checked:\"checked\",children:\"children\",cite:\"cite\",class:\"className\",classid:\"classID\",classname:\"className\",cols:\"cols\",colspan:\"colSpan\",content:\"content\",contenteditable:\"contentEditable\",contextmenu:\"contextMenu\",controls:\"controls\",controlslist:\"controlsList\",coords:\"coords\",crossorigin:\"crossOrigin\",dangerouslysetinnerhtml:\"dangerouslySetInnerHTML\",data:\"data\",datetime:\"dateTime\",default:\"default\",defaultchecked:\"defaultChecked\",defaultvalue:\"defaultValue\",defer:\"defer\",dir:\"dir\",disabled:\"disabled\",disablepictureinpicture:\"disablePictureInPicture\",disableremoteplayback:\"disableRemotePlayback\",download:\"download\",draggable:\"draggable\",enctype:\"encType\",enterkeyhint:\"enterKeyHint\",fetchpriority:\"fetchPriority\",for:\"htmlFor\",form:\"form\",formmethod:\"formMethod\",formaction:\"formAction\",formenctype:\"formEncType\",formnovalidate:\"formNoValidate\",formtarget:\"formTarget\",frameborder:\"frameBorder\",headers:\"headers\",height:\"height\",hidden:\"hidden\",high:\"high\",href:\"href\",hreflang:\"hrefLang\",htmlfor:\"htmlFor\",httpequiv:\"httpEquiv\",\"http-equiv\":\"httpEquiv\",icon:\"icon\",id:\"id\",imagesizes:\"imageSizes\",imagesrcset:\"imageSrcSet\",inert:\"inert\",innerhtml:\"innerHTML\",inputmode:\"inputMode\",integrity:\"integrity\",is:\"is\",itemid:\"itemID\",itemprop:\"itemProp\",itemref:\"itemRef\",itemscope:\"itemScope\",itemtype:\"itemType\",keyparams:\"keyParams\",keytype:\"keyType\",kind:\"kind\",label:\"label\",lang:\"lang\",list:\"list\",loop:\"loop\",low:\"low\",manifest:\"manifest\",marginwidth:\"marginWidth\",marginheight:\"marginHeight\",max:\"max\",maxlength:\"maxLength\",media:\"media\",mediagroup:\"mediaGroup\",method:\"method\",min:\"min\",minlength:\"minLength\",multiple:\"multiple\",muted:\"muted\",name:\"name\",nomodule:\"noModule\",nonce:\"nonce\",novalidate:\"noValidate\",open:\"open\",optimum:\"optimum\",pattern:\"pattern\",placeholder:\"placeholder\",playsinline:\"playsInline\",poster:\"poster\",preload:\"preload\",profile:\"profile\",radiogroup:\"radioGroup\",readonly:\"readOnly\",referrerpolicy:\"referrerPolicy\",rel:\"rel\",required:\"required\",reversed:\"reversed\",role:\"role\",rows:\"rows\",rowspan:\"rowSpan\",sandbox:\"sandbox\",scope:\"scope\",scoped:\"scoped\",scrolling:\"scrolling\",seamless:\"seamless\",selected:\"selected\",shape:\"shape\",size:\"size\",sizes:\"sizes\",span:\"span\",spellcheck:\"spellCheck\",src:\"src\",srcdoc:\"srcDoc\",srclang:\"srcLang\",srcset:\"srcSet\",start:\"start\",step:\"step\",style:\"style\",summary:\"summary\",tabindex:\"tabIndex\",target:\"target\",title:\"title\",type:\"type\",usemap:\"useMap\",value:\"value\",width:\"width\",wmode:\"wmode\",wrap:\"wrap\",about:\"about\",accentheight:\"accentHeight\",\"accent-height\":\"accentHeight\",accumulate:\"accumulate\",additive:\"additive\",alignmentbaseline:\"alignmentBaseline\",\"alignment-baseline\":\"alignmentBaseline\",allowreorder:\"allowReorder\",alphabetic:\"alphabetic\",amplitude:\"amplitude\",arabicform:\"arabicForm\",\"arabic-form\":\"arabicForm\",ascent:\"ascent\",attributename:\"attributeName\",attributetype:\"attributeType\",autoreverse:\"autoReverse\",azimuth:\"azimuth\",basefrequency:\"baseFrequency\",baselineshift:\"baselineShift\",\"baseline-shift\":\"baselineShift\",baseprofile:\"baseProfile\",bbox:\"bbox\",begin:\"begin\",bias:\"bias\",by:\"by\",calcmode:\"calcMode\",capheight:\"capHeight\",\"cap-height\":\"capHeight\",clip:\"clip\",clippath:\"clipPath\",\"clip-path\":\"clipPath\",clippathunits:\"clipPathUnits\",cliprule:\"clipRule\",\"clip-rule\":\"clipRule\",color:\"color\",colorinterpolation:\"colorInterpolation\",\"color-interpolation\":\"colorInterpolation\",colorinterpolationfilters:\"colorInterpolationFilters\",\"color-interpolation-filters\":\"colorInterpolationFilters\",colorprofile:\"colorProfile\",\"color-profile\":\"colorProfile\",colorrendering:\"colorRendering\",\"color-rendering\":\"colorRendering\",contentscripttype:\"contentScriptType\",contentstyletype:\"contentStyleType\",cursor:\"cursor\",cx:\"cx\",cy:\"cy\",d:\"d\",datatype:\"datatype\",decelerate:\"decelerate\",descent:\"descent\",diffuseconstant:\"diffuseConstant\",direction:\"direction\",display:\"display\",divisor:\"divisor\",dominantbaseline:\"dominantBaseline\",\"dominant-baseline\":\"dominantBaseline\",dur:\"dur\",dx:\"dx\",dy:\"dy\",edgemode:\"edgeMode\",elevation:\"elevation\",enablebackground:\"enableBackground\",\"enable-background\":\"enableBackground\",end:\"end\",exponent:\"exponent\",externalresourcesrequired:\"externalResourcesRequired\",fill:\"fill\",fillopacity:\"fillOpacity\",\"fill-opacity\":\"fillOpacity\",fillrule:\"fillRule\",\"fill-rule\":\"fillRule\",filter:\"filter\",filterres:\"filterRes\",filterunits:\"filterUnits\",floodopacity:\"floodOpacity\",\"flood-opacity\":\"floodOpacity\",floodcolor:\"floodColor\",\"flood-color\":\"floodColor\",focusable:\"focusable\",fontfamily:\"fontFamily\",\"font-family\":\"fontFamily\",fontsize:\"fontSize\",\"font-size\":\"fontSize\",fontsizeadjust:\"fontSizeAdjust\",\"font-size-adjust\":\"fontSizeAdjust\",fontstretch:\"fontStretch\",\"font-stretch\":\"fontStretch\",fontstyle:\"fontStyle\",\"font-style\":\"fontStyle\",fontvariant:\"fontVariant\",\"font-variant\":\"fontVariant\",fontweight:\"fontWeight\",\"font-weight\":\"fontWeight\",format:\"format\",from:\"from\",fx:\"fx\",fy:\"fy\",g1:\"g1\",g2:\"g2\",glyphname:\"glyphName\",\"glyph-name\":\"glyphName\",glyphorientationhorizontal:\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\":\"glyphOrientationHorizontal\",glyphorientationvertical:\"glyphOrientationVertical\",\"glyph-orientation-vertical\":\"glyphOrientationVertical\",glyphref:\"glyphRef\",gradienttransform:\"gradientTransform\",gradientunits:\"gradientUnits\",hanging:\"hanging\",horizadvx:\"horizAdvX\",\"horiz-adv-x\":\"horizAdvX\",horizoriginx:\"horizOriginX\",\"horiz-origin-x\":\"horizOriginX\",ideographic:\"ideographic\",imagerendering:\"imageRendering\",\"image-rendering\":\"imageRendering\",in2:\"in2\",in:\"in\",inlist:\"inlist\",intercept:\"intercept\",k1:\"k1\",k2:\"k2\",k3:\"k3\",k4:\"k4\",k:\"k\",kernelmatrix:\"kernelMatrix\",kernelunitlength:\"kernelUnitLength\",kerning:\"kerning\",keypoints:\"keyPoints\",keysplines:\"keySplines\",keytimes:\"keyTimes\",lengthadjust:\"lengthAdjust\",letterspacing:\"letterSpacing\",\"letter-spacing\":\"letterSpacing\",lightingcolor:\"lightingColor\",\"lighting-color\":\"lightingColor\",limitingconeangle:\"limitingConeAngle\",local:\"local\",markerend:\"markerEnd\",\"marker-end\":\"markerEnd\",markerheight:\"markerHeight\",markermid:\"markerMid\",\"marker-mid\":\"markerMid\",markerstart:\"markerStart\",\"marker-start\":\"markerStart\",markerunits:\"markerUnits\",markerwidth:\"markerWidth\",mask:\"mask\",maskcontentunits:\"maskContentUnits\",maskunits:\"maskUnits\",mathematical:\"mathematical\",mode:\"mode\",numoctaves:\"numOctaves\",offset:\"offset\",opacity:\"opacity\",operator:\"operator\",order:\"order\",orient:\"orient\",orientation:\"orientation\",origin:\"origin\",overflow:\"overflow\",overlineposition:\"overlinePosition\",\"overline-position\":\"overlinePosition\",overlinethickness:\"overlineThickness\",\"overline-thickness\":\"overlineThickness\",paintorder:\"paintOrder\",\"paint-order\":\"paintOrder\",panose1:\"panose1\",\"panose-1\":\"panose1\",pathlength:\"pathLength\",patterncontentunits:\"patternContentUnits\",patterntransform:\"patternTransform\",patternunits:\"patternUnits\",pointerevents:\"pointerEvents\",\"pointer-events\":\"pointerEvents\",points:\"points\",pointsatx:\"pointsAtX\",pointsaty:\"pointsAtY\",pointsatz:\"pointsAtZ\",popover:\"popover\",popovertarget:\"popoverTarget\",popovertargetaction:\"popoverTargetAction\",prefix:\"prefix\",preservealpha:\"preserveAlpha\",preserveaspectratio:\"preserveAspectRatio\",primitiveunits:\"primitiveUnits\",property:\"property\",r:\"r\",radius:\"radius\",refx:\"refX\",refy:\"refY\",renderingintent:\"renderingIntent\",\"rendering-intent\":\"renderingIntent\",repeatcount:\"repeatCount\",repeatdur:\"repeatDur\",requiredextensions:\"requiredExtensions\",requiredfeatures:\"requiredFeatures\",resource:\"resource\",restart:\"restart\",result:\"result\",results:\"results\",rotate:\"rotate\",rx:\"rx\",ry:\"ry\",scale:\"scale\",security:\"security\",seed:\"seed\",shaperendering:\"shapeRendering\",\"shape-rendering\":\"shapeRendering\",slope:\"slope\",spacing:\"spacing\",specularconstant:\"specularConstant\",specularexponent:\"specularExponent\",speed:\"speed\",spreadmethod:\"spreadMethod\",startoffset:\"startOffset\",stddeviation:\"stdDeviation\",stemh:\"stemh\",stemv:\"stemv\",stitchtiles:\"stitchTiles\",stopcolor:\"stopColor\",\"stop-color\":\"stopColor\",stopopacity:\"stopOpacity\",\"stop-opacity\":\"stopOpacity\",strikethroughposition:\"strikethroughPosition\",\"strikethrough-position\":\"strikethroughPosition\",strikethroughthickness:\"strikethroughThickness\",\"strikethrough-thickness\":\"strikethroughThickness\",string:\"string\",stroke:\"stroke\",strokedasharray:\"strokeDasharray\",\"stroke-dasharray\":\"strokeDasharray\",strokedashoffset:\"strokeDashoffset\",\"stroke-dashoffset\":\"strokeDashoffset\",strokelinecap:\"strokeLinecap\",\"stroke-linecap\":\"strokeLinecap\",strokelinejoin:\"strokeLinejoin\",\"stroke-linejoin\":\"strokeLinejoin\",strokemiterlimit:\"strokeMiterlimit\",\"stroke-miterlimit\":\"strokeMiterlimit\",strokewidth:\"strokeWidth\",\"stroke-width\":\"strokeWidth\",strokeopacity:\"strokeOpacity\",\"stroke-opacity\":\"strokeOpacity\",suppresscontenteditablewarning:\"suppressContentEditableWarning\",suppresshydrationwarning:\"suppressHydrationWarning\",surfacescale:\"surfaceScale\",systemlanguage:\"systemLanguage\",tablevalues:\"tableValues\",targetx:\"targetX\",targety:\"targetY\",textanchor:\"textAnchor\",\"text-anchor\":\"textAnchor\",textdecoration:\"textDecoration\",\"text-decoration\":\"textDecoration\",textlength:\"textLength\",textrendering:\"textRendering\",\"text-rendering\":\"textRendering\",to:\"to\",transform:\"transform\",transformorigin:\"transformOrigin\",\"transform-origin\":\"transformOrigin\",typeof:\"typeof\",u1:\"u1\",u2:\"u2\",underlineposition:\"underlinePosition\",\"underline-position\":\"underlinePosition\",underlinethickness:\"underlineThickness\",\"underline-thickness\":\"underlineThickness\",unicode:\"unicode\",unicodebidi:\"unicodeBidi\",\"unicode-bidi\":\"unicodeBidi\",unicoderange:\"unicodeRange\",\"unicode-range\":\"unicodeRange\",unitsperem:\"unitsPerEm\",\"units-per-em\":\"unitsPerEm\",unselectable:\"unselectable\",valphabetic:\"vAlphabetic\",\"v-alphabetic\":\"vAlphabetic\",values:\"values\",vectoreffect:\"vectorEffect\",\"vector-effect\":\"vectorEffect\",version:\"version\",vertadvy:\"vertAdvY\",\"vert-adv-y\":\"vertAdvY\",vertoriginx:\"vertOriginX\",\"vert-origin-x\":\"vertOriginX\",vertoriginy:\"vertOriginY\",\"vert-origin-y\":\"vertOriginY\",vhanging:\"vHanging\",\"v-hanging\":\"vHanging\",videographic:\"vIdeographic\",\"v-ideographic\":\"vIdeographic\",viewbox:\"viewBox\",viewtarget:\"viewTarget\",visibility:\"visibility\",vmathematical:\"vMathematical\",\"v-mathematical\":\"vMathematical\",vocab:\"vocab\",widths:\"widths\",wordspacing:\"wordSpacing\",\"word-spacing\":\"wordSpacing\",writingmode:\"writingMode\",\"writing-mode\":\"writingMode\",x1:\"x1\",x2:\"x2\",x:\"x\",xchannelselector:\"xChannelSelector\",xheight:\"xHeight\",\"x-height\":\"xHeight\",xlinkactuate:\"xlinkActuate\",\"xlink:actuate\":\"xlinkActuate\",xlinkarcrole:\"xlinkArcrole\",\"xlink:arcrole\":\"xlinkArcrole\",xlinkhref:\"xlinkHref\",\"xlink:href\":\"xlinkHref\",xlinkrole:\"xlinkRole\",\"xlink:role\":\"xlinkRole\",xlinkshow:\"xlinkShow\",\"xlink:show\":\"xlinkShow\",xlinktitle:\"xlinkTitle\",\"xlink:title\":\"xlinkTitle\",xlinktype:\"xlinkType\",\"xlink:type\":\"xlinkType\",xmlbase:\"xmlBase\",\"xml:base\":\"xmlBase\",xmllang:\"xmlLang\",\"xml:lang\":\"xmlLang\",xmlns:\"xmlns\",\"xml:space\":\"xmlSpace\",xmlnsxlink:\"xmlnsXlink\",\"xmlns:xlink\":\"xmlnsXlink\",xmlspace:\"xmlSpace\",y1:\"y1\",y2:\"y2\",y:\"y\",ychannelselector:\"yChannelSelector\",z:\"z\",zoomandpan:\"zoomAndPan\"},Vs={},nb=/^on./,eg=/^on[^A-Z]/,Bm=RegExp(\"^(aria)-[: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]*$\"),pp=RegExp(\"^(aria)[A-Z][: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]*$\"),mc=/^(?:webkit|moz|o)[A-Z]/,Xa=/^-ms-/,Lm=/-(.)/g,Um=/;\\\\s*$/,Fm={},du={},Gs=!1,rl=!1,gs=/[\"\\'&<>]/,hd=/([A-Z])/g,gc=/^ms-/,J1=/^[\\\\u0000-\\\\u001F ]*j[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*v[\\\\r\\\\n\\\\t]*a[\\\\r\\\\n\\\\t]*s[\\\\r\\\\n\\\\t]*c[\\\\r\\\\n\\\\t]*r[\\\\r\\\\n\\\\t]*i[\\\\r\\\\n\\\\t]*p[\\\\r\\\\n\\\\t]*t[\\\\r\\\\n\\\\t]*:/i,$a=K1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,jx=$y.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,sf=Object.freeze({pending:!1,data:null,method:null,action:null}),cf=jx.d;jx.d={f:cf.f,r:cf.r,D:function(v){var E=Nr||null;if(E){var N=E.resumableState,K=E.renderState;if(typeof v==\"string\"&&v){if(!N.dnsResources.hasOwnProperty(v)){N.dnsResources[v]=es,N=K.headers;var ee,le;(le=N&&0<N.remainingCapacity)&&(le=(ee=\"<\"+zs(v)+\">; rel=dns-prefetch\",0<=(N.remainingCapacity-=ee.length+2))),le?(K.resets.dns[v]=es,N.preconnects&&(N.preconnects+=\", \"),N.preconnects+=ee):(ee=[],St(ee,{href:v,rel:\"dns-prefetch\"}),K.preconnects.add(ee))}tl(E)}}else cf.D(v)},C:function(v,E){var N=Nr||null;if(N){var K=N.resumableState,ee=N.renderState;if(typeof v==\"string\"&&v){var le=E===\"use-credentials\"?\"credentials\":typeof E==\"string\"?\"anonymous\":\"default\";if(!K.connectResources[le].hasOwnProperty(v)){K.connectResources[le][v]=es,K=ee.headers;var ye,Ae;if(Ae=K&&0<K.remainingCapacity){if(Ae=\"<\"+zs(v)+\">; rel=preconnect\",typeof E==\"string\"){var Ye=zo(E,\"crossOrigin\");Ae+=\\'; crossorigin=\"\\'+Ye+\\'\"\\'}Ae=(ye=Ae,0<=(K.remainingCapacity-=ye.length+2))}Ae?(ee.resets.connect[le][v]=es,K.preconnects&&(K.preconnects+=\", \"),K.preconnects+=ye):(le=[],St(le,{rel:\"preconnect\",href:v,crossOrigin:E}),ee.preconnects.add(le))}tl(N)}}else cf.C(v,E)},L:function(v,E,N){var K=Nr||null;if(K){var ee=K.resumableState,le=K.renderState;if(E&&v){switch(E){case\"image\":if(N)var ye=N.imageSrcSet,Ae=N.imageSizes,Ye=N.fetchPriority;var Me=ye?ye+`\\n`+(Ae||\"\"):v;if(ee.imageResources.hasOwnProperty(Me))return;ee.imageResources[Me]=ol,ee=le.headers;var Fe;ee&&0<ee.remainingCapacity&&typeof ye!=\"string\"&&Ye===\"high\"&&(Fe=lo(v,E,N),0<=(ee.remainingCapacity-=Fe.length+2))?(le.resets.image[Me]=ol,ee.highImagePreloads&&(ee.highImagePreloads+=\", \"),ee.highImagePreloads+=Fe):(ee=[],St(ee,So({rel:\"preload\",href:ye?void 0:v,as:E},N)),Ye===\"high\"?le.highImagePreloads.add(ee):(le.bulkPreloads.add(ee),le.preloads.images.set(Me,ee)));break;case\"style\":if(ee.styleResources.hasOwnProperty(v))return;ye=[],St(ye,So({rel:\"preload\",href:v,as:E},N)),ee.styleResources[v]=!N||typeof N.crossOrigin!=\"string\"&&typeof N.integrity!=\"string\"?ol:[N.crossOrigin,N.integrity],le.preloads.stylesheets.set(v,ye),le.bulkPreloads.add(ye);break;case\"script\":if(ee.scriptResources.hasOwnProperty(v))return;ye=[],le.preloads.scripts.set(v,ye),le.bulkPreloads.add(ye),St(ye,So({rel:\"preload\",href:v,as:E},N)),ee.scriptResources[v]=!N||typeof N.crossOrigin!=\"string\"&&typeof N.integrity!=\"string\"?ol:[N.crossOrigin,N.integrity];break;default:if(ee.unknownResources.hasOwnProperty(E)){if(ye=ee.unknownResources[E],ye.hasOwnProperty(v))return}else ye={},ee.unknownResources[E]=ye;if(ye[v]=ol,(ee=le.headers)&&0<ee.remainingCapacity&&E===\"font\"&&(Me=lo(v,E,N),0<=(ee.remainingCapacity-=Me.length+2)))le.resets.font[v]=ol,ee.fontPreloads&&(ee.fontPreloads+=\", \"),ee.fontPreloads+=Me;else switch(ee=[],v=So({rel:\"preload\",href:v,as:E},N),St(ee,v),E){case\"font\":le.fontPreloads.add(ee);break;default:le.bulkPreloads.add(ee)}}tl(K)}}else cf.L(v,E,N)},m:function(v,E){var N=Nr||null;if(N){var K=N.resumableState,ee=N.renderState;if(v){var le=E&&typeof E.as==\"string\"?E.as:\"script\";switch(le){case\"script\":if(K.moduleScriptResources.hasOwnProperty(v))return;le=[],K.moduleScriptResources[v]=!E||typeof E.crossOrigin!=\"string\"&&typeof E.integrity!=\"string\"?ol:[E.crossOrigin,E.integrity],ee.preloads.moduleScripts.set(v,le);break;default:if(K.moduleUnknownResources.hasOwnProperty(le)){var ye=K.unknownResources[le];if(ye.hasOwnProperty(v))return}else ye={},K.moduleUnknownResources[le]=ye;le=[],ye[v]=ol}St(le,So({rel:\"modulepreload\",href:v},E)),ee.bulkPreloads.add(le),tl(N)}}else cf.m(v,E)},X:function(v,E){var N=Nr||null;if(N){var K=N.resumableState,ee=N.renderState;if(v){var le=K.scriptResources.hasOwnProperty(v)?K.scriptResources[v]:void 0;le!==es&&(K.scriptResources[v]=es,E=So({src:v,async:!0},E),le&&(le.length===2&&Fr(E,le),v=ee.preloads.scripts.get(v))&&(v.length=0),v=[],ee.scripts.add(v),en(v,E),tl(N))}}else cf.X(v,E)},S:function(v,E,N){var K=Nr||null;if(K){var ee=K.resumableState,le=K.renderState;if(v){E=E||\"default\";var ye=le.styles.get(E),Ae=ee.styleResources.hasOwnProperty(v)?ee.styleResources[v]:void 0;Ae!==es&&(ee.styleResources[v]=es,ye||(ye={precedence:w(O(E)),rules:[],hrefs:[],sheets:new Map},le.styles.set(E,ye)),E={state:vp,props:So({rel:\"stylesheet\",href:v,\"data-precedence\":E},N)},Ae&&(Ae.length===2&&Fr(E.props,Ae),(le=le.preloads.stylesheets.get(v))&&0<le.length?le.length=0:E.state=ig),ye.sheets.set(v,E),tl(K))}}else cf.S(v,E,N)},M:function(v,E){var N=Nr||null;if(N){var K=N.resumableState,ee=N.renderState;if(v){var le=K.moduleScriptResources.hasOwnProperty(v)?K.moduleScriptResources[v]:void 0;le!==es&&(K.moduleScriptResources[v]=es,E=So({src:v,type:\"module\",async:!0},E),le&&(le.length===2&&Fr(E,le),v=ee.preloads.moduleScripts.get(v))&&(v.length=0),v=[],ee.scripts.add(v),en(v,E),tl(N))}}else cf.M(v,E)}};var Ra=0,X1=1,Wx=2,Vx=4,fu=8,yc=32,Ui=64,es=null,ol=[];Object.freeze(ol);var $o=null;x(\\'\"></template>\\');var $1=x(\"<script\"),uf=x(\"<\\\\/script>\"),l6=x(\\'<script src=\"\\'),d6=x(\\'<script type=\"module\" src=\"\\'),qs=x(\\' nonce=\"\\'),Gx=x(\\' integrity=\"\\'),ev=x(\\' crossorigin=\"\\'),tv=x(\\' async=\"\"><\\\\/script>\\'),tg=x(\"<style\"),f6=/(<\\\\/|<)(s)(cript)/gi,rb=x(\\'<script type=\"importmap\">\\'),qx=x(\"<\\\\/script>\"),nv={},ob=0,Ah=1,Sl=2,rv=3,md=4,ib=5,hp=6,Sh=7,ab=8,ov=9,il=x(\"<!-- -->\"),iv=new Map,Kx=x(\\' style=\"\\'),m4=x(\":\"),Yx=x(\";\"),pu=x(\" \"),_l=x(\\'=\"\\'),Fi=x(\\'\"\\'),_h=x(\\'=\"\"\\'),$A=x(O(\"javascript:throw new Error(\\'React form unexpectedly submitted.\\')\")),p6=x(\\'<input type=\"hidden\"\\'),Wo=x(\">\"),Wc=x(\"/>\"),Zx=!1,ar=!1,_t=!1,sb=!1,Qx=!1,fa=!1,eS=!1,av=!1,h6=!1,sv=!1,tS=!1,Jx=x(\\' selected=\"\"\\'),nS=x(`addEventListener(\"submit\",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute(\"formAction\");null!=f&&(e=f,b=null)}\"javascript:throw new Error(\\'React form unexpectedly submitted.\\')\"===e&&(a.preventDefault(),b?(a=document.createElement(\"input\"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`),m6=x(\"<!--F!-->\"),al=x(\"<!--F-->\"),Vo=/(<\\\\/|<)(s)(tyle)/gi,rS=x(\"<!--head-->\"),Xx=x(\"<!--body-->\"),ng=x(\"<!--html-->\"),Hm=x(`\\n`),mp=/^[a-zA-Z][a-zA-Z:_\\\\.\\\\-\\\\d]*$/,oS=new Map,cb=x(\"<!DOCTYPE html>\"),iS=new Map,$x=x(\"requestAnimationFrame(function(){$RT=performance.now()});\"),g6=x(\\'<template id=\"\\'),aS=x(\\'\"></template>\\'),g4=x(\"<!--&-->\"),y4=x(\"<!--/&-->\"),b4=x(\"<!--$-->\"),v4=x(\\'<!--$?--><template id=\"\\'),w4=x(\\'\"></template>\\'),y6=x(\"<!--$!-->\"),b6=x(\"<!--/$-->\"),cv=x(\"<template\"),e2=x(\\'\"\\'),x4=x(\\' data-dgst=\"\\'),E4=x(\\' data-msg=\"\\'),s7=x(\\' data-stck=\"\\'),A4=x(\\' data-cstck=\"\\'),S4=x(\"></template>\"),_4=x(\\'<div hidden id=\"\\'),uv=x(\\'\">\\'),sS=x(\"</div>\"),zm=x(\\'<svg aria-hidden=\"true\" style=\"display:none\" id=\"\\'),lv=x(\\'\">\\'),cS=x(\"</svg>\"),v6=x(\\'<math aria-hidden=\"true\" style=\"display:none\" id=\"\\'),c7=x(\\'\">\\'),uS=x(\"</math>\"),ub=x(\\'<table hidden id=\"\\'),lS=x(\\'\">\\'),rg=x(\"</table>\"),hu=x(\\'<table hidden><tbody id=\"\\'),dv=x(\\'\">\\'),w6=x(\"</tbody></table>\"),t2=x(\\'<table hidden><tr id=\"\\'),fv=x(\\'\">\\'),dS=x(\"</tr></table>\"),T4=x(\\'<table hidden><colgroup id=\"\\'),x6=x(\\'\">\\'),fS=x(\"</colgroup></table>\"),E6=x(\\'$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS(\"\\'),pS=x(\\'$RS(\"\\'),gp=x(\\'\",\"\\'),lb=x(\\'\")<\\\\/script>\\');x(\\'<template data-rsi=\"\" data-sid=\"\\'),x(\\'\" data-pid=\"\\');var Th=x(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if(\"/$\"===d||\"/&\"===d)if(0===h)break;else h--;else\"$\"!==d&&\"$?\"!==d&&\"$~\"!==d&&\"$!\"!==d&&\"&\"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data=\"$\";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data=\"$~\",$RB.push(a,b),2===$RB.length&&(\"number\"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`);w(`$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),\"auto\"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute(\"vt-name\"))||(a=\"_T_\"+K++ +\"_\"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll(\"[vt-share]\"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute(\"vt-name\"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if(\"/$\"===r)if(0===f)break;else f--;else\"$\"!==r&&\"$?\"!==r&&\"$~\"!==r&&\"$!\"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute(\"vt-name\"),y=m.get(D);k(d,y?\"vt-share\":\"vt-exit\");y&&(k(y,\"vt-share\"),m.set(D,null));var E=d.querySelectorAll(\"[vt-share]\");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute(\"vt-name\"),\\nH=m.get(G);H&&(k(F,\"vt-share\"),k(H,\"vt-share\"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute(\"vt-name\"))&&k(t,\"vt-enter\"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute(\"vt-update\");J&&\"none\"!==J&&!l.includes(n)&&k(n,\"vt-update\");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&\"none\"!==c.getAttribute(\"vt-update\"));u.push.apply(u,I.querySelectorAll(\\'img[src]:not([loading=\"lazy\"])\\'))}}}if(B){var z=\\ndocument.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener(\"load\",q);w.g.addEventListener(\"error\",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=\\nperformance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];\"\"===b.getAttribute(\"style\")&&b.removeAttribute(\"style\")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);`);var A6=x(\\'$RC(\"\\'),S6=x(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),v=[],k=0;b=e[k++];)\"not all\"===b.getAttribute(\"media\")?v.push(b):(\"LINK\"===b.tagName&&$RM.set(b.getAttribute(\"href\"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement(\"link\");a.href=d;a.rel=\\n\"stylesheet\";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute(\"media\");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute(\"data-precedence\");a.removeAttribute(\"media\")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\\n\"$~\";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,\"CSS failed to load\"))};$RR(\"`),hS=x(\\'$RR(\"\\'),_6=x(\\'\",\"\\'),n2=x(\\'\",\\'),T6=x(\\'\"\\'),mS=x(\")<\\\\/script>\");x(\\'<template data-rci=\"\" data-bid=\"\\'),x(\\'<template data-rri=\"\" data-bid=\"\\'),x(\\'\" data-sid=\"\\'),x(\\'\" data-sty=\"\\');var C6=x(\\'$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data=\"$!\",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};\\'),R6=x(\\'$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data=\"$!\",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX(\"\\'),gS=x(\\'$RX(\"\\'),I6=x(\\'\"\\'),pv=x(\",\"),db=x(\")<\\\\/script>\");x(\\'<template data-rxi=\"\" data-bid=\"\\'),x(\\'\" data-dgst=\"\\'),x(\\'\" data-msg=\"\\'),x(\\'\" data-stck=\"\\'),x(\\'\" data-cstck=\"\\');var hv=/[<\\\\u2028\\\\u2029]/g,k6=/[&><\\\\u2028\\\\u2029]/g,u7=x(\\' media=\"not all\" data-precedence=\"\\'),gd=x(\\'\" data-href=\"\\'),r2=x(\\'\">\\'),o2=x(\"</style>\"),Tl=!1,og=!0,yp=[],yS=x(\\' data-precedence=\"\\'),mv=x(\\'\" data-href=\"\\'),ei=x(\" \"),gv=x(\\'\">\\'),i2=x(\"</style>\");x(\\'<link rel=\"expect\" href=\"#\\'),x(\\'\" blocking=\"render\"/>\\');var lf=x(\\' id=\"\\'),fb=x(\"[\"),pb=x(\",[\"),hb=x(\",\"),bp=x(\"]\"),vp=0,ig=1,Cl=2,ag=3,C4=/[<>\\\\r\\\\n]/g,ys=/[\"\\';,\\\\r\\\\n]/g,sl=Function.prototype.bind,R4=Symbol.for(\"react.client.reference\"),mu={};Object.freeze(mu);var yv={},df=null,bS={},bv={},vS=new Set,O6=new Set,vv=new Set,wv=new Set,wS=new Set,a2=new Set,s2=new Set,c2=new Set,xS=new Set,u2={enqueueSetState:function(v,E,N){var K=v._reactInternals;K.queue===null?Ju(v,\"setState\"):(K.queue.push(E),N!=null&&Dc(N))},enqueueReplaceState:function(v,E,N){v=v._reactInternals,v.replace=!0,v.queue=[E],N!=null&&Dc(N)},enqueueForceUpdate:function(v,E){v._reactInternals.queue===null?Ju(v,\"forceUpdate\"):E!=null&&Dc(E)}},ES={id:1,overflow:\"\"},mb=Math.clz32?Math.clz32:nf,l2=Math.log,AS=Math.LN2,Rl=Error(\"Suspense Exception: This is not a real error! It\\'s an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\\\\n\\\\nTo handle async errors, wrap your component in an error boundary, or call the promise\\'s `.catch` method and pass the result to `use`.\"),gb=null,I4=typeof Object.is==\"function\"?Object.is:Xu,ti=null,Il=null,Ks=null,xv=null,bs=null,To=null,yd=!1,ff=!1,Hi=0,Co=0,Ev=-1,d2=0,sg=null,bc=null,Av=0,bd=!1,vd,Ch={readContext:rf,use:function(v){if(v!==null&&typeof v==\"object\"){if(typeof v.then==\"function\")return t6(v);if(v.$$typeof===fo)return rf(v)}throw Error(\"An unsupported type was passed to use(): \"+String(v))},useContext:function(v){return vd=\"useContext\",pc(),v._currentValue},useMemo:FA,useReducer:L1,useRef:function(v){ti=pc(),To=$u();var E=To.memoizedState;return E===null?(v={current:v},Object.seal(v),To.memoizedState=v):E},useState:function(v){return vd=\"useState\",L1(Im,v)},useInsertionEffect:Li,useLayoutEffect:Li,useCallback:function(v,E){return FA(function(){return v},E)},useImperativeHandle:Li,useEffect:Li,useDebugValue:Li,useDeferredValue:function(v,E){return pc(),E!==void 0?E:v},useTransition:function(){return pc(),[!1,Px]},useId:function(){var v=Il.treeContext,E=v.overflow;v=v.id,v=(v&~(1<<32-mb(v)-1)).toString(32)+E;var N=A;if(N===null)throw Error(\"Invalid hook call. Hooks can only be called inside of the body of a function component.\");return E=Hi++,v=\"_\"+N.idPrefix+\"R_\"+v,0<E&&(v+=\"H\"+E.toString(32)),v+\"_\"},useSyncExternalStore:function(v,E,N){if(N===void 0)throw Error(\"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.\");return N()},useOptimistic:function(v){return pc(),[v,Wy]},useActionState:e6,useFormState:e6,useHostTransitionStatus:function(){return pc(),sf},useMemoCache:function(v){for(var E=Array(v),N=0;N<v;N++)E[N]=xl;return E},useCacheRefresh:function(){return a7},useEffectEvent:function(){return U1}},A=null,_=null,D={getCacheForType:function(){throw Error(\"Not implemented.\")},cacheSignal:function(){throw Error(\"Not implemented.\")},getOwner:function(){return _===null?null:_.componentStack}},Q=0,re,pe,xe,ke,st,Ue,et;HA.__reactDisabledLog=!0;var Mt,Ft,Lt=!1,gt=new(typeof WeakMap==\"function\"?WeakMap:Map),Qn={react_stack_bottom_frame:function(v,E,N){return v(E,N)}},ni=Qn.react_stack_bottom_frame.bind(Qn),Nn={react_stack_bottom_frame:function(v){return v.render()}},to=Nn.react_stack_bottom_frame.bind(Nn),Ys={react_stack_bottom_frame:function(v){var E=v._init;return E(v._payload)}},gu=Ys.react_stack_bottom_frame.bind(Ys),zr=0;if(typeof performance==\"object\"&&typeof performance.now==\"function\")var pa=performance,vs=function(){return pa.now()};else{var cl=Date;vs=function(){return cl.now()}}var hn=4,Go=0,qo=1,ri=2,sr=3,Ji=4,nr=5,Zs=14,Nr=null,Qs={},oi={},yu={},Vc={},wd=!1,xd=!1,ts=!1,Ed=0,Xi=!1;qA(),qA(),GD.prerender=function(v,E){return new Promise(function(N,K){var ee=E?E.onHeaders:void 0,le;ee&&(le=function(Fe){ee(new Headers(Fe))});var ye=W(E?E.identifierPrefix:void 0,E?E.unstable_externalRuntimeSrc:void 0,E?E.bootstrapScriptContent:void 0,E?E.bootstrapScripts:void 0,E?E.bootstrapModules:void 0),Ae=uu(v,ye,L(ye,void 0,E?E.unstable_externalRuntimeSrc:void 0,E?E.importMap:void 0,le,E?E.maxHeadersLength:void 0),k(E?E.namespaceURI:void 0),E?E.progressiveChunkSize:void 0,E?E.onError:void 0,function(){var Fe=new ReadableStream({type:\"bytes\",pull:function(vt){xh(Ae,vt)},cancel:function(vt){Ae.destination=null,hc(Ae,vt)}},{highWaterMark:0});Fe={postponed:zc(Ae),prelude:Fe},N(Fe)},void 0,void 0,K,E?E.onPostpone:void 0);if(E&&E.signal){var Ye=E.signal;if(Ye.aborted)hc(Ae,Ye.reason);else{var Me=function(){hc(Ae,Ye.reason),Ye.removeEventListener(\"abort\",Me)};Ye.addEventListener(\"abort\",Me)}}Y0(Ae)})},GD.renderToReadableStream=function(v,E){return new Promise(function(N,K){var ee,le,ye=new Promise(function(At,$e){le=At,ee=$e}),Ae=E?E.onHeaders:void 0,Ye;Ae&&(Ye=function(At){Ae(new Headers(At))});var Me=W(E?E.identifierPrefix:void 0,E?E.unstable_externalRuntimeSrc:void 0,E?E.bootstrapScriptContent:void 0,E?E.bootstrapScripts:void 0,E?E.bootstrapModules:void 0),Fe=Gy(v,Me,L(Me,E?E.nonce:void 0,E?E.unstable_externalRuntimeSrc:void 0,E?E.importMap:void 0,Ye,E?E.maxHeadersLength:void 0),k(E?E.namespaceURI:void 0),E?E.progressiveChunkSize:void 0,E?E.onError:void 0,le,function(){var At=new ReadableStream({type:\"bytes\",pull:function($e){xh(Fe,$e)},cancel:function($e){Fe.destination=null,hc(Fe,$e)}},{highWaterMark:0});At.allReady=ye,N(At)},function(At){ye.catch(function(){}),K(At)},ee,E?E.onPostpone:void 0,E?E.formState:void 0);if(E&&E.signal){var vt=E.signal;if(vt.aborted)hc(Fe,vt.reason);else{var mt=function(){hc(Fe,vt.reason),vt.removeEventListener(\"abort\",mt)};vt.addEventListener(\"abort\",mt)}}Y0(Fe)})},GD.resume=function(v,E,N){return new Promise(function(K,ee){var le,ye,Ae=new Promise(function(vt,mt){ye=vt,le=mt}),Ye=yh(v,E,L(E.resumableState,N?N.nonce:void 0,void 0,void 0,void 0,void 0),N?N.onError:void 0,ye,function(){var vt=new ReadableStream({type:\"bytes\",pull:function(mt){xh(Ye,mt)},cancel:function(mt){Ye.destination=null,hc(Ye,mt)}},{highWaterMark:0});vt.allReady=Ae,K(vt)},function(vt){Ae.catch(function(){}),ee(vt)},le,N?N.onPostpone:void 0);if(N&&N.signal){var Me=N.signal;if(Me.aborted)hc(Ye,Me.reason);else{var Fe=function(){hc(Ye,Me.reason),Me.removeEventListener(\"abort\",Fe)};Me.addEventListener(\"abort\",Fe)}}Y0(Ye)})},GD.resumeAndPrerender=function(v,E,N){return new Promise(function(K,ee){var le=Qi(v,E,L(E.resumableState,void 0,void 0,void 0,void 0,void 0),N?N.onError:void 0,function(){var Ye=new ReadableStream({type:\"bytes\",pull:function(Me){xh(le,Me)},cancel:function(Me){le.destination=null,hc(le,Me)}},{highWaterMark:0});Ye={postponed:zc(le),prelude:Ye},K(Ye)},void 0,void 0,ee,N?N.onPostpone:void 0);if(N&&N.signal){var ye=N.signal;if(ye.aborted)hc(le,ye.reason);else{var Ae=function(){hc(le,ye.reason),ye.removeEventListener(\"abort\",Ae)};ye.addEventListener(\"abort\",Ae)}}Y0(le)})},GD.version=\"19.2.0\"})()});var _ft=me(qD=>{\"use strict\";f();var Koe,qEe;Koe=Aft(),qEe=Sft();qD.version=Koe.version;qD.renderToString=Koe.renderToString;qD.renderToStaticMarkup=Koe.renderToStaticMarkup;qD.renderToReadableStream=qEe.renderToReadableStream;qD.resume=qEe.resume});var Rft=me((MFr,Cft)=>{f();Cft.exports=function(){return typeof Promise==\"function\"&&Promise.prototype&&Promise.prototype.then}});var jC=me(n4=>{f();var YEe,aXt=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];n4.getSymbolSize=function(t){if(!t)throw new Error(\\'\"version\" cannot be null or undefined\\');if(t<1||t>40)throw new Error(\\'\"version\" should be in range from 1 to 40\\');return t*4+17};n4.getSymbolTotalCodewords=function(t){return aXt[t]};n4.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};n4.setToSJISFunction=function(t){if(typeof t!=\"function\")throw new Error(\\'\"toSJISFunc\" is not a valid function.\\');YEe=t};n4.isKanjiModeEnabled=function(){return typeof YEe<\"u\"};n4.toSJIS=function(t){return YEe(t)}});var Zoe=me(Fy=>{f();Fy.L={bit:1};Fy.M={bit:0};Fy.Q={bit:3};Fy.H={bit:2};function sXt(e){if(typeof e!=\"string\")throw new Error(\"Param is not a string\");switch(e.toLowerCase()){case\"l\":case\"low\":return Fy.L;case\"m\":case\"medium\":return Fy.M;case\"q\":case\"quartile\":return Fy.Q;case\"h\":case\"high\":return Fy.H;default:throw new Error(\"Unknown EC Level: \"+e)}}Fy.isValid=function(t){return t&&typeof t.bit<\"u\"&&t.bit>=0&&t.bit<4};Fy.from=function(t,n){if(Fy.isValid(t))return t;try{return sXt(t)}catch{return n}}});var Oft=me((HFr,kft)=>{f();function Ift(){this.buffer=[],this.length=0}Ift.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};kft.exports=Ift});var Pft=me((jFr,Nft)=>{f();function Hj(e){if(!e||e<1)throw new Error(\"BitMatrix size must be defined and greater than 0\");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Hj.prototype.set=function(e,t,n,r){let o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)};Hj.prototype.get=function(e,t){return this.data[e*this.size+t]};Hj.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Hj.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};Nft.exports=Hj});var Mft=me(Qoe=>{f();var cXt=jC().getSymbolSize;Qoe.getRowColCoords=function(t){if(t===1)return[];let n=Math.floor(t/7)+2,r=cXt(t),o=r===145?26:Math.ceil((r-13)/(2*n-2))*2,i=[r-7];for(let a=1;a<n-1;a++)i[a]=i[a-1]-o;return i.push(6),i.reverse()};Qoe.getPositions=function(t){let n=[],r=Qoe.getRowColCoords(t),o=r.length;for(let i=0;i<o;i++)for(let a=0;a<o;a++)i===0&&a===0||i===0&&a===o-1||i===o-1&&a===0||n.push([r[i],r[a]]);return n}});var Lft=me(Bft=>{f();var uXt=jC().getSymbolSize,Dft=7;Bft.getPositions=function(t){let n=uXt(t);return[[0,0],[n-Dft,0],[0,n-Dft]]}});var Uft=me(qa=>{f();qa.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var r4={N1:3,N2:3,N3:40,N4:10};qa.isValid=function(t){return t!=null&&t!==\"\"&&!isNaN(t)&&t>=0&&t<=7};qa.from=function(t){return qa.isValid(t)?parseInt(t,10):void 0};qa.getPenaltyN1=function(t){let n=t.size,r=0,o=0,i=0,a=null,c=null;for(let l=0;l<n;l++){o=i=0,a=c=null;for(let d=0;d<n;d++){let m=t.get(l,d);m===a?o++:(o>=5&&(r+=r4.N1+(o-5)),a=m,o=1),m=t.get(d,l),m===c?i++:(i>=5&&(r+=r4.N1+(i-5)),c=m,i=1)}o>=5&&(r+=r4.N1+(o-5)),i>=5&&(r+=r4.N1+(i-5))}return r};qa.getPenaltyN2=function(t){let n=t.size,r=0;for(let o=0;o<n-1;o++)for(let i=0;i<n-1;i++){let a=t.get(o,i)+t.get(o,i+1)+t.get(o+1,i)+t.get(o+1,i+1);(a===4||a===0)&&r++}return r*r4.N2};qa.getPenaltyN3=function(t){let n=t.size,r=0,o=0,i=0;for(let a=0;a<n;a++){o=i=0;for(let c=0;c<n;c++)o=o<<1&2047|t.get(a,c),c>=10&&(o===1488||o===93)&&r++,i=i<<1&2047|t.get(c,a),c>=10&&(i===1488||i===93)&&r++}return r*r4.N3};qa.getPenaltyN4=function(t){let n=0,r=t.data.length;for(let i=0;i<r;i++)n+=t.data[i];return Math.abs(Math.ceil(n*100/r/5)-10)*r4.N4};function lXt(e,t,n){switch(e){case qa.Patterns.PATTERN000:return(t+n)%2===0;case qa.Patterns.PATTERN001:return t%2===0;case qa.Patterns.PATTERN010:return n%3===0;case qa.Patterns.PATTERN011:return(t+n)%3===0;case qa.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2===0;case qa.Patterns.PATTERN101:return t*n%2+t*n%3===0;case qa.Patterns.PATTERN110:return(t*n%2+t*n%3)%2===0;case qa.Patterns.PATTERN111:return(t*n%3+(t+n)%2)%2===0;default:throw new Error(\"bad maskPattern:\"+e)}}qa.applyMask=function(t,n){let r=n.size;for(let o=0;o<r;o++)for(let i=0;i<r;i++)n.isReserved(i,o)||n.xor(i,o,lXt(t,i,o))};qa.getBestMask=function(t,n){let r=Object.keys(qa.Patterns).length,o=0,i=1/0;for(let a=0;a<r;a++){n(a),qa.applyMask(a,t);let c=qa.getPenaltyN1(t)+qa.getPenaltyN2(t)+qa.getPenaltyN3(t)+qa.getPenaltyN4(t);qa.applyMask(a,t),c<i&&(i=c,o=a)}return o}});var QEe=me(ZEe=>{f();var WC=Zoe(),Joe=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Xoe=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ZEe.getBlocksCount=function(t,n){switch(n){case WC.L:return Joe[(t-1)*4+0];case WC.M:return Joe[(t-1)*4+1];case WC.Q:return Joe[(t-1)*4+2];case WC.H:return Joe[(t-1)*4+3];default:return}};ZEe.getTotalCodewordsCount=function(t,n){switch(n){case WC.L:return Xoe[(t-1)*4+0];case WC.M:return Xoe[(t-1)*4+1];case WC.Q:return Xoe[(t-1)*4+2];case WC.H:return Xoe[(t-1)*4+3];default:return}}});var Fft=me(eie=>{f();var zj=new Uint8Array(512),$oe=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)zj[n]=t,$oe[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)zj[n]=zj[n-255]})();eie.log=function(t){if(t<1)throw new Error(\"log(\"+t+\")\");return $oe[t]};eie.exp=function(t){return zj[t]};eie.mul=function(t,n){return t===0||n===0?0:zj[$oe[t]+$oe[n]]}});var Hft=me(jj=>{f();var JEe=Fft();jj.mul=function(t,n){let r=new Uint8Array(t.length+n.length-1);for(let o=0;o<t.length;o++)for(let i=0;i<n.length;i++)r[o+i]^=JEe.mul(t[o],n[i]);return r};jj.mod=function(t,n){let r=new Uint8Array(t);for(;r.length-n.length>=0;){let o=r[0];for(let a=0;a<n.length;a++)r[a]^=JEe.mul(n[a],o);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r};jj.generateECPolynomial=function(t){let n=new Uint8Array([1]);for(let r=0;r<t;r++)n=jj.mul(n,new Uint8Array([1,JEe.exp(r)]));return n}});var Wft=me((nHr,jft)=>{f();var zft=Hft();function XEe(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}XEe.prototype.initialize=function(t){this.degree=t,this.genPoly=zft.generateECPolynomial(this.degree)};XEe.prototype.encode=function(t){if(!this.genPoly)throw new Error(\"Encoder not initialized\");let n=new Uint8Array(t.length+this.degree);n.set(t);let r=zft.mod(n,this.genPoly),o=this.degree-r.length;if(o>0){let i=new Uint8Array(this.degree);return i.set(r,o),i}return r};jft.exports=XEe});var $Ee=me(Vft=>{f();Vft.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var eAe=me(kA=>{f();var Gft=\"[0-9]+\",dXt=\"[A-Z $%*+\\\\\\\\-./:]+\",Wj=\"(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+\";Wj=Wj.replace(/u/g,\"\\\\\\\\u\");var fXt=\"(?:(?![A-Z0-9 $%*+\\\\\\\\-./:]|\"+Wj+`)(?:.|[\\\\r\\n]))+`;kA.KANJI=new RegExp(Wj,\"g\");kA.BYTE_KANJI=new RegExp(\"[^A-Z0-9 $%*+\\\\\\\\-./:]+\",\"g\");kA.BYTE=new RegExp(fXt,\"g\");kA.NUMERIC=new RegExp(Gft,\"g\");kA.ALPHANUMERIC=new RegExp(dXt,\"g\");var pXt=new RegExp(\"^\"+Wj+\"$\"),hXt=new RegExp(\"^\"+Gft+\"$\"),mXt=new RegExp(\"^[A-Z0-9 $%*+\\\\\\\\-./:]+$\");kA.testKanji=function(t){return pXt.test(t)};kA.testNumeric=function(t){return hXt.test(t)};kA.testAlphanumeric=function(t){return mXt.test(t)}});var VC=me(Yu=>{f();var gXt=$Ee(),tAe=eAe();Yu.NUMERIC={id:\"Numeric\",bit:1,ccBits:[10,12,14]};Yu.ALPHANUMERIC={id:\"Alphanumeric\",bit:2,ccBits:[9,11,13]};Yu.BYTE={id:\"Byte\",bit:4,ccBits:[8,16,16]};Yu.KANJI={id:\"Kanji\",bit:8,ccBits:[8,10,12]};Yu.MIXED={bit:-1};Yu.getCharCountIndicator=function(t,n){if(!t.ccBits)throw new Error(\"Invalid mode: \"+t);if(!gXt.isValid(n))throw new Error(\"Invalid version: \"+n);return n>=1&&n<10?t.ccBits[0]:n<27?t.ccBits[1]:t.ccBits[2]};Yu.getBestModeForData=function(t){return tAe.testNumeric(t)?Yu.NUMERIC:tAe.testAlphanumeric(t)?Yu.ALPHANUMERIC:tAe.testKanji(t)?Yu.KANJI:Yu.BYTE};Yu.toString=function(t){if(t&&t.id)return t.id;throw new Error(\"Invalid mode\")};Yu.isValid=function(t){return t&&t.bit&&t.ccBits};function yXt(e){if(typeof e!=\"string\")throw new Error(\"Param is not a string\");switch(e.toLowerCase()){case\"numeric\":return Yu.NUMERIC;case\"alphanumeric\":return Yu.ALPHANUMERIC;case\"kanji\":return Yu.KANJI;case\"byte\":return Yu.BYTE;default:throw new Error(\"Unknown mode: \"+e)}}Yu.from=function(t,n){if(Yu.isValid(t))return t;try{return yXt(t)}catch{return n}}});var Qft=me(o4=>{f();var tie=jC(),bXt=QEe(),qft=Zoe(),GC=VC(),nAe=$Ee(),Yft=7973,Kft=tie.getBCHDigit(Yft);function vXt(e,t,n){for(let r=1;r<=40;r++)if(t<=o4.getCapacity(r,n,e))return r}function Zft(e,t){return GC.getCharCountIndicator(e,t)+4}function wXt(e,t){let n=0;return e.forEach(function(r){let o=Zft(r.mode,t);n+=o+r.getBitsLength()}),n}function xXt(e,t){for(let n=1;n<=40;n++)if(wXt(e,n)<=o4.getCapacity(n,t,GC.MIXED))return n}o4.from=function(t,n){return nAe.isValid(t)?parseInt(t,10):n};o4.getCapacity=function(t,n,r){if(!nAe.isValid(t))throw new Error(\"Invalid QR Code version\");typeof r>\"u\"&&(r=GC.BYTE);let o=tie.getSymbolTotalCodewords(t),i=bXt.getTotalCodewordsCount(t,n),a=(o-i)*8;if(r===GC.MIXED)return a;let c=a-Zft(r,t);switch(r){case GC.NUMERIC:return Math.floor(c/10*3);case GC.ALPHANUMERIC:return Math.floor(c/11*2);case GC.KANJI:return Math.floor(c/13);case GC.BYTE:default:return Math.floor(c/8)}};o4.getBestVersionForData=function(t,n){let r,o=qft.from(n,qft.M);if(Array.isArray(t)){if(t.length>1)return xXt(t,o);if(t.length===0)return 1;r=t[0]}else r=t;return vXt(r.mode,r.getLength(),o)};o4.getEncodedBits=function(t){if(!nAe.isValid(t)||t<7)throw new Error(\"Invalid QR Code version\");let n=t<<12;for(;tie.getBCHDigit(n)-Kft>=0;)n^=Yft<<tie.getBCHDigit(n)-Kft;return t<<12|n}});var ept=me($ft=>{f();var rAe=jC(),Xft=1335,EXt=21522,Jft=rAe.getBCHDigit(Xft);$ft.getEncodedBits=function(t,n){let r=t.bit<<3|n,o=r<<10;for(;rAe.getBCHDigit(o)-Jft>=0;)o^=Xft<<rAe.getBCHDigit(o)-Jft;return(r<<10|o)^EXt}});var npt=me((hHr,tpt)=>{f();var AXt=VC();function KD(e){this.mode=AXt.NUMERIC,this.data=e.toString()}KD.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};KD.prototype.getLength=function(){return this.data.length};KD.prototype.getBitsLength=function(){return KD.getBitsLength(this.data.length)};KD.prototype.write=function(t){let n,r,o;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),o=parseInt(r,10),t.put(o,10);let i=this.data.length-n;i>0&&(r=this.data.substr(n),o=parseInt(r,10),t.put(o,i*3+1))};tpt.exports=KD});var opt=me((gHr,rpt)=>{f();var SXt=VC(),oAe=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\" \",\"$\",\"%\",\"*\",\"+\",\"-\",\".\",\"/\",\":\"];function YD(e){this.mode=SXt.ALPHANUMERIC,this.data=e}YD.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};YD.prototype.getLength=function(){return this.data.length};YD.prototype.getBitsLength=function(){return YD.getBitsLength(this.data.length)};YD.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=oAe.indexOf(this.data[n])*45;r+=oAe.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(oAe.indexOf(this.data[n]),6)};rpt.exports=YD});var apt=me((bHr,ipt)=>{f();var _Xt=VC();function ZD(e){this.mode=_Xt.BYTE,typeof e==\"string\"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}ZD.getBitsLength=function(t){return t*8};ZD.prototype.getLength=function(){return this.data.length};ZD.prototype.getBitsLength=function(){return ZD.getBitsLength(this.data.length)};ZD.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};ipt.exports=ZD});var cpt=me((wHr,spt)=>{f();var TXt=VC(),CXt=jC();function QD(e){this.mode=TXt.KANJI,this.data=e}QD.getBitsLength=function(t){return t*13};QD.prototype.getLength=function(){return this.data.length};QD.prototype.getBitsLength=function(){return QD.getBitsLength(this.data.length)};QD.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=CXt.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error(\"Invalid SJIS character: \"+this.data[t]+`\\nMake sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};spt.exports=QD});var upt=me((EHr,iAe)=>{\"use strict\";f();var Vj={single_source_shortest_paths:function(e,t,n){var r={},o={};o[t]=0;var i=Vj.PriorityQueue.make();i.push(t,0);for(var a,c,l,d,m,h,g,y,w;!i.empty();){a=i.pop(),c=a.value,d=a.cost,m=e[c]||{};for(l in m)m.hasOwnProperty(l)&&(h=m[l],g=d+h,y=o[l],w=typeof o[l]>\"u\",(w||y>g)&&(o[l]=g,i.push(l,g),r[l]=c))}if(typeof n<\"u\"&&typeof o[n]>\"u\"){var x=[\"Could not find a path from \",t,\" to \",n,\".\"].join(\"\");throw new Error(x)}return r},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t,o;r;)n.push(r),o=e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,n){var r=Vj.single_source_shortest_paths(e,t,n);return Vj.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(e){var t=Vj.PriorityQueue,n={},r;e=e||{};for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n.queue=[],n.sorter=e.sorter||t.default_sorter,n},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof iAe<\"u\"&&(iAe.exports=Vj)});var ypt=me(JD=>{f();var Bi=VC(),fpt=npt(),ppt=opt(),hpt=apt(),mpt=cpt(),Gj=eAe(),nie=jC(),RXt=upt();function lpt(e){return unescape(encodeURIComponent(e)).length}function qj(e,t,n){let r=[],o;for(;(o=e.exec(n))!==null;)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function gpt(e){let t=qj(Gj.NUMERIC,Bi.NUMERIC,e),n=qj(Gj.ALPHANUMERIC,Bi.ALPHANUMERIC,e),r,o;return nie.isKanjiModeEnabled()?(r=qj(Gj.BYTE,Bi.BYTE,e),o=qj(Gj.KANJI,Bi.KANJI,e)):(r=qj(Gj.BYTE_KANJI,Bi.BYTE,e),o=[]),t.concat(n,r,o).sort(function(a,c){return a.index-c.index}).map(function(a){return{data:a.data,mode:a.mode,length:a.length}})}function aAe(e,t){switch(t){case Bi.NUMERIC:return fpt.getBitsLength(e);case Bi.ALPHANUMERIC:return ppt.getBitsLength(e);case Bi.KANJI:return mpt.getBitsLength(e);case Bi.BYTE:return hpt.getBitsLength(e)}}function IXt(e){return e.reduce(function(t,n){let r=t.length-1>=0?t[t.length-1]:null;return r&&r.mode===n.mode?(t[t.length-1].data+=n.data,t):(t.push(n),t)},[])}function kXt(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];switch(r.mode){case Bi.NUMERIC:t.push([r,{data:r.data,mode:Bi.ALPHANUMERIC,length:r.length},{data:r.data,mode:Bi.BYTE,length:r.length}]);break;case Bi.ALPHANUMERIC:t.push([r,{data:r.data,mode:Bi.BYTE,length:r.length}]);break;case Bi.KANJI:t.push([r,{data:r.data,mode:Bi.BYTE,length:lpt(r.data)}]);break;case Bi.BYTE:t.push([{data:r.data,mode:Bi.BYTE,length:lpt(r.data)}])}}return t}function OXt(e,t){let n={},r={start:{}},o=[\"start\"];for(let i=0;i<e.length;i++){let a=e[i],c=[];for(let l=0;l<a.length;l++){let d=a[l],m=\"\"+i+l;c.push(m),n[m]={node:d,lastCount:0},r[m]={};for(let h=0;h<o.length;h++){let g=o[h];n[g]&&n[g].node.mode===d.mode?(r[g][m]=aAe(n[g].lastCount+d.length,d.mode)-aAe(n[g].lastCount,d.mode),n[g].lastCount+=d.length):(n[g]&&(n[g].lastCount=d.length),r[g][m]=aAe(d.length,d.mode)+4+Bi.getCharCountIndicator(d.mode,t))}}o=c}for(let i=0;i<o.length;i++)r[o[i]].end=0;return{map:r,table:n}}function dpt(e,t){let n,r=Bi.getBestModeForData(e);if(n=Bi.from(t,r),n!==Bi.BYTE&&n.bit<r.bit)throw new Error(\\'\"\\'+e+\\'\" cannot be encoded with mode \\'+Bi.toString(n)+`.\\n Suggested mode is: `+Bi.toString(r));switch(n===Bi.KANJI&&!nie.isKanjiModeEnabled()&&(n=Bi.BYTE),n){case Bi.NUMERIC:return new fpt(e);case Bi.ALPHANUMERIC:return new ppt(e);case Bi.KANJI:return new mpt(e);case Bi.BYTE:return new hpt(e)}}JD.fromArray=function(t){return t.reduce(function(n,r){return typeof r==\"string\"?n.push(dpt(r,null)):r.data&&n.push(dpt(r.data,r.mode)),n},[])};JD.fromString=function(t,n){let r=gpt(t,nie.isKanjiModeEnabled()),o=kXt(r),i=OXt(o,n),a=RXt.find_path(i.map,\"start\",\"end\"),c=[];for(let l=1;l<a.length-1;l++)c.push(i.table[a[l]].node);return JD.fromArray(IXt(c))};JD.rawSplit=function(t){return JD.fromArray(gpt(t,nie.isKanjiModeEnabled()))}});var vpt=me(bpt=>{f();var oie=jC(),sAe=Zoe(),NXt=Oft(),PXt=Pft(),MXt=Mft(),DXt=Lft(),lAe=Uft(),dAe=QEe(),BXt=Wft(),rie=Qft(),LXt=ept(),UXt=VC(),cAe=ypt();function FXt(e,t){let n=e.size,r=DXt.getPositions(t);for(let o=0;o<r.length;o++){let i=r[o][0],a=r[o][1];for(let c=-1;c<=7;c++)if(!(i+c<=-1||n<=i+c))for(let l=-1;l<=7;l++)a+l<=-1||n<=a+l||(c>=0&&c<=6&&(l===0||l===6)||l>=0&&l<=6&&(c===0||c===6)||c>=2&&c<=4&&l>=2&&l<=4?e.set(i+c,a+l,!0,!0):e.set(i+c,a+l,!1,!0))}}function HXt(e){let t=e.size;for(let n=8;n<t-8;n++){let r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function zXt(e,t){let n=MXt.getPositions(t);for(let r=0;r<n.length;r++){let o=n[r][0],i=n[r][1];for(let a=-2;a<=2;a++)for(let c=-2;c<=2;c++)a===-2||a===2||c===-2||c===2||a===0&&c===0?e.set(o+a,i+c,!0,!0):e.set(o+a,i+c,!1,!0)}}function jXt(e,t){let n=e.size,r=rie.getEncodedBits(t),o,i,a;for(let c=0;c<18;c++)o=Math.floor(c/3),i=c%3+n-8-3,a=(r>>c&1)===1,e.set(o,i,a,!0),e.set(i,o,a,!0)}function uAe(e,t,n){let r=e.size,o=LXt.getEncodedBits(t,n),i,a;for(i=0;i<15;i++)a=(o>>i&1)===1,i<6?e.set(i,8,a,!0):i<8?e.set(i+1,8,a,!0):e.set(r-15+i,8,a,!0),i<8?e.set(8,r-i-1,a,!0):i<9?e.set(8,15-i-1+1,a,!0):e.set(8,15-i-1,a,!0);e.set(r-8,8,1,!0)}function WXt(e,t){let n=e.size,r=-1,o=n-1,i=7,a=0;for(let c=n-1;c>0;c-=2)for(c===6&&c--;;){for(let l=0;l<2;l++)if(!e.isReserved(o,c-l)){let d=!1;a<t.length&&(d=(t[a]>>>i&1)===1),e.set(o,c-l,d),i--,i===-1&&(a++,i=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}function VXt(e,t,n){let r=new NXt;n.forEach(function(l){r.put(l.mode.bit,4),r.put(l.getLength(),UXt.getCharCountIndicator(l.mode,e)),l.write(r)});let o=oie.getSymbolTotalCodewords(e),i=dAe.getTotalCodewordsCount(e,t),a=(o-i)*8;for(r.getLengthInBits()+4<=a&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);let c=(a-r.getLengthInBits())/8;for(let l=0;l<c;l++)r.put(l%2?17:236,8);return GXt(r,e,t)}function GXt(e,t,n){let r=oie.getSymbolTotalCodewords(t),o=dAe.getTotalCodewordsCount(t,n),i=r-o,a=dAe.getBlocksCount(t,n),c=r%a,l=a-c,d=Math.floor(r/a),m=Math.floor(i/a),h=m+1,g=d-m,y=new BXt(g),w=0,x=new Array(a),I=new Array(a),C=0,M=new Uint8Array(e.buffer);for(let ne=0;ne<a;ne++){let ie=ne<l?m:h;x[ne]=M.slice(w,w+ie),I[ne]=y.encode(x[ne]),w+=ie,C=Math.max(C,ie)}let B=new Uint8Array(r),z=0,G,J;for(G=0;G<C;G++)for(J=0;J<a;J++)G<x[J].length&&(B[z++]=x[J][G]);for(G=0;G<g;G++)for(J=0;J<a;J++)B[z++]=I[J][G];return B}function qXt(e,t,n,r){let o;if(Array.isArray(e))o=cAe.fromArray(e);else if(typeof e==\"string\"){let d=t;if(!d){let m=cAe.rawSplit(e);d=rie.getBestVersionForData(m,n)}o=cAe.fromString(e,d||40)}else throw new Error(\"Invalid data\");let i=rie.getBestVersionForData(o,n);if(!i)throw new Error(\"The amount of data is too big to be stored in a QR Code\");if(!t)t=i;else if(t<i)throw new Error(`\\nThe chosen QR Code version cannot contain this amount of data.\\nMinimum version required to store current data is: `+i+`.\\n`);let a=VXt(t,n,o),c=oie.getSymbolSize(t),l=new PXt(c);return FXt(l,t),HXt(l),zXt(l,t),uAe(l,n,0),t>=7&&jXt(l,t),WXt(l,a),isNaN(r)&&(r=lAe.getBestMask(l,uAe.bind(null,l,n))),lAe.applyMask(r,l),uAe(l,n,r),{modules:l,version:t,errorCorrectionLevel:n,maskPattern:r,segments:o}}bpt.create=function(t,n){if(typeof t>\"u\"||t===\"\")throw new Error(\"No input text\");let r=sAe.M,o,i;return typeof n<\"u\"&&(r=sAe.from(n.errorCorrectionLevel,sAe.M),o=rie.from(n.version),i=lAe.from(n.maskPattern),n.toSJISFunc&&oie.setToSJISFunction(n.toSJISFunc)),qXt(t,o,r,i)}});var fAe=me(i4=>{f();function wpt(e){if(typeof e==\"number\"&&(e=e.toString()),typeof e!=\"string\")throw new Error(\"Color should be defined as hex string\");let t=e.slice().replace(\"#\",\"\").split(\"\");if(t.length<3||t.length===5||t.length>8)throw new Error(\"Invalid hex color: \"+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(r){return[r,r]}))),t.length===6&&t.push(\"F\",\"F\");let n=parseInt(t.join(\"\"),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:\"#\"+t.slice(0,6).join(\"\")}}i4.getOptions=function(t){t||(t={}),t.color||(t.color={});let n=typeof t.margin>\"u\"||t.margin===null||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:r,scale:r?4:o,margin:n,color:{dark:wpt(t.color.dark||\"#000000ff\"),light:wpt(t.color.light||\"#ffffffff\")},type:t.type,rendererOpts:t.rendererOpts||{}}};i4.getScale=function(t,n){return n.width&&n.width>=t+n.margin*2?n.width/(t+n.margin*2):n.scale};i4.getImageWidth=function(t,n){let r=i4.getScale(t,n);return Math.floor((t+n.margin*2)*r)};i4.qrToImageData=function(t,n,r){let o=n.modules.size,i=n.modules.data,a=i4.getScale(o,r),c=Math.floor((o+r.margin*2)*a),l=r.margin*a,d=[r.color.light,r.color.dark];for(let m=0;m<c;m++)for(let h=0;h<c;h++){let g=(m*c+h)*4,y=r.color.light;if(m>=l&&h>=l&&m<c-l&&h<c-l){let w=Math.floor((m-l)/a),x=Math.floor((h-l)/a);y=d[i[w*o+x]?1:0]}t[g++]=y.r,t[g++]=y.g,t[g++]=y.b,t[g]=y.a}}});var xpt=me(iie=>{f();var pAe=fAe();function KXt(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+\"px\",t.style.width=n+\"px\"}function YXt(){try{return document.createElement(\"canvas\")}catch{throw new Error(\"You need to specify a canvas element\")}}iie.render=function(t,n,r){let o=r,i=n;typeof o>\"u\"&&(!n||!n.getContext)&&(o=n,n=void 0),n||(i=YXt()),o=pAe.getOptions(o);let a=pAe.getImageWidth(t.modules.size,o),c=i.getContext(\"2d\"),l=c.createImageData(a,a);return pAe.qrToImageData(l.data,t,o),KXt(c,i,a),c.putImageData(l,0,0),i};iie.renderToDataURL=function(t,n,r){let o=r;typeof o>\"u\"&&(!n||!n.getContext)&&(o=n,n=void 0),o||(o={});let i=iie.render(t,n,o),a=o.type||\"image/png\",c=o.rendererOpts||{};return i.toDataURL(a,c.quality)}});var Spt=me(Apt=>{f();var ZXt=fAe();function Ept(e,t){let n=e.a/255,r=t+\\'=\"\\'+e.hex+\\'\"\\';return n<1?r+\" \"+t+\\'-opacity=\"\\'+n.toFixed(2).slice(1)+\\'\"\\':r}function hAe(e,t,n){let r=e+t;return typeof n<\"u\"&&(r+=\" \"+n),r}function QXt(e,t,n){let r=\"\",o=0,i=!1,a=0;for(let c=0;c<e.length;c++){let l=Math.floor(c%t),d=Math.floor(c/t);!l&&!i&&(i=!0),e[c]?(a++,c>0&&l>0&&e[c-1]||(r+=i?hAe(\"M\",l+n,.5+d+n):hAe(\"m\",o,0),o=0,i=!1),l+1<t&&e[c+1]||(r+=hAe(\"h\",a),a=0)):o++}return r}Apt.render=function(t,n,r){let o=ZXt.getOptions(n),i=t.modules.size,a=t.modules.data,c=i+o.margin*2,l=o.color.light.a?\"<path \"+Ept(o.color.light,\"fill\")+\\' d=\"M0 0h\\'+c+\"v\"+c+\\'H0z\"/>\\':\"\",d=\"<path \"+Ept(o.color.dark,\"stroke\")+\\' d=\"\\'+QXt(a,i,o.margin)+\\'\"/>\\',m=\\'viewBox=\"0 0 \\'+c+\" \"+c+\\'\"\\',g=\\'<svg xmlns=\"http://www.w3.org/2000/svg\" \\'+(o.width?\\'width=\"\\'+o.width+\\'\" height=\"\\'+o.width+\\'\" \\':\"\")+m+\\' shape-rendering=\"crispEdges\">\\'+l+d+`</svg>\\n`;return typeof r==\"function\"&&r(null,g),g}});var Tpt=me(Kj=>{f();var JXt=Rft(),mAe=vpt(),_pt=xpt(),XXt=Spt();function gAe(e,t,n,r,o){let i=[].slice.call(arguments,1),a=i.length,c=typeof i[a-1]==\"function\";if(!c&&!JXt())throw new Error(\"Callback required as last argument\");if(c){if(a<2)throw new Error(\"Too few arguments provided\");a===2?(o=n,n=t,t=r=void 0):a===3&&(t.getContext&&typeof o>\"u\"?(o=r,r=void 0):(o=r,r=n,n=t,t=void 0))}else{if(a<1)throw new Error(\"Too few arguments provided\");return a===1?(n=t,t=r=void 0):a===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(l,d){try{let m=mAe.create(n,r);l(e(m,t,r))}catch(m){d(m)}})}try{let l=mAe.create(n,r);o(null,e(l,t,r))}catch(l){o(l)}}Kj.create=mAe.create;Kj.toCanvas=gAe.bind(null,_pt.render);Kj.toDataURL=gAe.bind(null,_pt.renderToDataURL);Kj.toString=gAe.bind(null,function(e,t,n){return XXt.render(e,n)})});f();var Ymt=ge(RCe());f();f();f();va();function Y5({chainId:e,isMainnetOnly:t=!1}){return!!(t&&e===fr.id||!t&&(e===Cs.id||e===fr.id))}f();va();function Z5({chainId:e,isMainnetOnly:t=!1}){return!!(t&&e===ia.id||!t&&(e===hB.id||e===ia.id))}f();va();var a0={address:null,apiKey:null,chain:Cs,config:{analytics:!0,analyticsUrl:null,appearance:{name:null,logo:null,mode:null,theme:null},paymaster:null,wallet:{display:null,termsUrl:null,privacyUrl:null,supportedWallets:{rabby:!1,trust:!1,frame:!1}}},rpcUrl:null,schemaId:null,projectId:null,sessionId:null},y_=e=>a0[e],bce=e=>(Object.assign(a0,e),y_);f();var ore=ge(We(),1);var k1=ge(at(),1);f();var KH=ge(We(),1);f();f();f();f();var Fg=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};f();f();var r1t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},nw,Q5,j5e,o1t=(j5e=class{constructor(){pn(this,nw,r1t);pn(this,Q5,!1)}setTimeoutProvider(e){Ce(this,Q5)&&e!==Ce(this,nw)&&console.error(\"[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.\",{previous:Ce(this,nw),provider:e}),Ht(this,nw,e),Ht(this,Q5,!1)}setTimeout(e,t){return Ht(this,Q5,!0),Ce(this,nw).setTimeout(e,t)}clearTimeout(e){Ce(this,nw).clearTimeout(e)}setInterval(e,t){return Ht(this,Q5,!0),Ce(this,nw).setInterval(e,t)}clearInterval(e){Ce(this,nw).clearInterval(e)}},nw=new WeakMap,Q5=new WeakMap,j5e),rw=new o1t;function W5e(e){setTimeout(e,0)}var Gh=typeof window>\"u\"||\"Deno\"in globalThis;function Sc(){}function q5e(e,t){return typeof e==\"function\"?e(t):e}function mB(e){return typeof e==\"number\"&&e>=0&&e!==1/0}function JG(e,t){return Math.max(e+(t||0)-Date.now(),0)}function qb(e,t){return typeof e==\"function\"?e(t):e}function qh(e,t){return typeof e==\"function\"?e(t):e}function XG(e,t){let{type:n=\"all\",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:c}=e;if(a){if(r){if(t.queryHash!==gB(a,t.options))return!1}else if(!X5(t.queryKey,a))return!1}if(n!==\"all\"){let l=t.isActive();if(n===\"active\"&&!l||n===\"inactive\"&&l)return!1}return!(typeof c==\"boolean\"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||i&&!i(t))}function $G(e,t){let{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ow(t.options.mutationKey)!==ow(i))return!1}else if(!X5(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function gB(e,t){return(t?.queryKeyHashFn||ow)(e)}function ow(e){return JSON.stringify(e,(t,n)=>vce(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function X5(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e==\"object\"&&typeof t==\"object\"?Object.keys(t).every(n=>X5(e[n],t[n])):!1}var i1t=Object.prototype.hasOwnProperty;function lk(e,t){if(e===t)return e;let n=V5e(e)&&V5e(t);if(!n&&!(vce(e)&&vce(t)))return t;let o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),a=i.length,c=n?new Array(a):{},l=0;for(let d=0;d<a;d++){let m=n?d:i[d],h=e[m],g=t[m];if(h===g){c[m]=h,(n?d<o:i1t.call(e,m))&&l++;continue}if(h===null||g===null||typeof h!=\"object\"||typeof g!=\"object\"){c[m]=g;continue}let y=lk(h,g);c[m]=y,y===h&&l++}return o===a&&l===o?e:c}function dk(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function V5e(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function vce(e){if(!G5e(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!G5e(n)||!n.hasOwnProperty(\"isPrototypeOf\")||Object.getPrototypeOf(e)!==Object.prototype)}function G5e(e){return Object.prototype.toString.call(e)===\"[object Object]\"}function K5e(e){return new Promise(t=>{rw.setTimeout(t,e)})}function yB(e,t,n){if(typeof n.structuralSharing==\"function\")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return lk(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return lk(e,t)}return t}function Y5e(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Z5e(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var J5=Symbol();function eq(e,t){return e.queryFn===J5&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: \\'${e.queryHash}\\'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===J5?()=>Promise.reject(new Error(`Missing queryFn: \\'${e.queryHash}\\'`)):e.queryFn}function bB(e,t){return typeof e==\"function\"?e(...t):!!e}var $5,b_,fk,Q5e,a1t=(Q5e=class extends Fg{constructor(){super();pn(this,$5);pn(this,b_);pn(this,fk);Ht(this,fk,t=>{if(!Gh&&window.addEventListener){let n=()=>t();return window.addEventListener(\"visibilitychange\",n,!1),()=>{window.removeEventListener(\"visibilitychange\",n)}}})}onSubscribe(){Ce(this,b_)||this.setEventListener(Ce(this,fk))}onUnsubscribe(){var t;this.hasListeners()||((t=Ce(this,b_))==null||t.call(this),Ht(this,b_,void 0))}setEventListener(t){var n;Ht(this,fk,t),(n=Ce(this,b_))==null||n.call(this),Ht(this,b_,t(r=>{typeof r==\"boolean\"?this.setFocused(r):this.onFocus()}))}setFocused(t){Ce(this,$5)!==t&&(Ht(this,$5,t),this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){return typeof Ce(this,$5)==\"boolean\"?Ce(this,$5):globalThis.document?.visibilityState!==\"hidden\"}},$5=new WeakMap,b_=new WeakMap,fk=new WeakMap,Q5e),pk=new a1t;f();function vB(){let e,t,n=new Promise((o,i)=>{e=o,t=i});n.status=\"pending\",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:\"fulfilled\",value:o}),e(o)},n.reject=o=>{r({status:\"rejected\",reason:o}),t(o)},n}f();f();var J5e=W5e;function s1t(){let e=[],t=0,n=c=>{c()},r=c=>{c()},o=J5e,i=c=>{t?e.push(c):o(()=>{n(c)})},a=()=>{let c=e;e=[],c.length&&o(()=>{r(()=>{c.forEach(l=>{n(l)})})})};return{batch:c=>{let l;t++;try{l=c()}finally{t--,t||a()}return l},batchCalls:c=>(...l)=>{i(()=>{c(...l)})},schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{o=c}}}var Ki=s1t();f();f();f();var hk,v_,mk,X5e,c1t=(X5e=class extends Fg{constructor(){super();pn(this,hk,!0);pn(this,v_);pn(this,mk);Ht(this,mk,t=>{if(!Gh&&window.addEventListener){let n=()=>t(!0),r=()=>t(!1);return window.addEventListener(\"online\",n,!1),window.addEventListener(\"offline\",r,!1),()=>{window.removeEventListener(\"online\",n),window.removeEventListener(\"offline\",r)}}})}onSubscribe(){Ce(this,v_)||this.setEventListener(Ce(this,mk))}onUnsubscribe(){var t;this.hasListeners()||((t=Ce(this,v_))==null||t.call(this),Ht(this,v_,void 0))}setEventListener(t){var n;Ht(this,mk,t),(n=Ce(this,v_))==null||n.call(this),Ht(this,v_,t(this.setOnline.bind(this)))}setOnline(t){Ce(this,hk)!==t&&(Ht(this,hk,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Ce(this,hk)}},hk=new WeakMap,v_=new WeakMap,mk=new WeakMap,X5e),gk=new c1t;function u1t(e){return Math.min(1e3*2**e,3e4)}function wce(e){return(e??\"online\")===\"online\"?gk.isOnline():!0}var tq=class extends Error{constructor(e){super(\"CancelledError\"),this.revert=e?.revert,this.silent=e?.silent}};function nq(e){let t=!1,n=0,r,o=vB(),i=()=>o.status!==\"pending\",a=x=>{if(!i()){let I=new tq(x);g(I),e.onCancel?.(I)}},c=()=>{t=!0},l=()=>{t=!1},d=()=>pk.isFocused()&&(e.networkMode===\"always\"||gk.isOnline())&&e.canRun(),m=()=>wce(e.networkMode)&&e.canRun(),h=x=>{i()||(r?.(),o.resolve(x))},g=x=>{i()||(r?.(),o.reject(x))},y=()=>new Promise(x=>{r=I=>{(i()||d())&&x(I)},e.onPause?.()}).then(()=>{r=void 0,i()||e.onContinue?.()}),w=()=>{if(i())return;let x,I=n===0?e.initialPromise:void 0;try{x=I??e.fn()}catch(C){x=Promise.reject(C)}Promise.resolve(x).then(h).catch(C=>{if(i())return;let M=e.retry??(Gh?0:3),B=e.retryDelay??u1t,z=typeof B==\"function\"?B(n,C):B,G=M===!0||typeof M==\"number\"&&n<M||typeof M==\"function\"&&M(n,C);if(t||!G){g(C);return}n++,e.onFail?.(n,C),K5e(z).then(()=>d()?void 0:y()).then(()=>{t?g(C):w()})})};return{promise:o,status:()=>o.status,cancel:a,continue:()=>(r?.(),o),cancelRetry:c,continueRetry:l,canStart:m,start:()=>(m()?w():y().then(w),o)}}f();var e3,$5e,rq=($5e=class{constructor(){pn(this,e3)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mB(this.gcTime)&&Ht(this,e3,rw.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Gh?1/0:300*1e3))}clearGcTimeout(){Ce(this,e3)&&(rw.clearTimeout(Ce(this,e3)),Ht(this,e3,void 0))}},e3=new WeakMap,$5e);var t3,yk,Hg,n3,Wl,wB,r3,Kb,Z2,t3e,n3e=(t3e=class extends rq{constructor(t){super();pn(this,Kb);pn(this,t3);pn(this,yk);pn(this,Hg);pn(this,n3);pn(this,Wl);pn(this,wB);pn(this,r3);Ht(this,r3,!1),Ht(this,wB,t.defaultOptions),this.setOptions(t.options),this.observers=[],Ht(this,n3,t.client),Ht(this,Hg,Ce(this,n3).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ht(this,t3,e3e(this.options)),this.state=t.state??Ce(this,t3),this.scheduleGc()}get meta(){return this.options.meta}get promise(){return Ce(this,Wl)?.promise}setOptions(t){if(this.options={...Ce(this,wB),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let n=e3e(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),Ht(this,t3,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===\"idle\"&&Ce(this,Hg).remove(this)}setData(t,n){let r=yB(this.state.data,t,this.options);return vr(this,Kb,Z2).call(this,{data:r,type:\"success\",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),r}setState(t,n){vr(this,Kb,Z2).call(this,{type:\"setState\",state:t,setStateOptions:n})}cancel(t){let n=Ce(this,Wl)?.promise;return Ce(this,Wl)?.cancel(t),n?n.then(Sc).catch(Sc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Ce(this,t3))}isActive(){return this.observers.some(t=>qh(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===J5||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>qb(t.options.staleTime,this)===\"static\"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t===\"static\"?!1:this.state.isInvalidated?!0:!JG(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),Ce(this,Wl)?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),Ce(this,Wl)?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Ce(this,Hg).notify({type:\"observerAdded\",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Ce(this,Wl)&&(Ce(this,r3)?Ce(this,Wl).cancel({revert:!0}):Ce(this,Wl).cancelRetry()),this.scheduleGc()),Ce(this,Hg).notify({type:\"observerRemoved\",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||vr(this,Kb,Z2).call(this,{type:\"invalidate\"})}async fetch(t,n){if(this.state.fetchStatus!==\"idle\"&&Ce(this,Wl)?.status()!==\"rejected\"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(Ce(this,Wl))return Ce(this,Wl).continueRetry(),Ce(this,Wl).promise}if(t&&this.setOptions(t),!this.options.queryFn){let l=this.observers.find(d=>d.options.queryFn);l&&this.setOptions(l.options)}Array.isArray(this.options.queryKey)||console.error(\"As of v4, queryKey needs to be an Array. If you are using a string like \\'repoData\\', please change it to an Array, e.g. [\\'repoData\\']\");let r=new AbortController,o=l=>{Object.defineProperty(l,\"signal\",{enumerable:!0,get:()=>(Ht(this,r3,!0),r.signal)})},i=()=>{let l=eq(this.options,n),m=(()=>{let h={client:Ce(this,n3),queryKey:this.queryKey,meta:this.meta};return o(h),h})();return Ht(this,r3,!1),this.options.persister?this.options.persister(l,m,this):l(m)},c=(()=>{let l={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:Ce(this,n3),state:this.state,fetchFn:i};return o(l),l})();this.options.behavior?.onFetch(c,this),Ht(this,yk,this.state),(this.state.fetchStatus===\"idle\"||this.state.fetchMeta!==c.fetchOptions?.meta)&&vr(this,Kb,Z2).call(this,{type:\"fetch\",meta:c.fetchOptions?.meta}),Ht(this,Wl,nq({initialPromise:n?.initialPromise,fn:c.fetchFn,onCancel:l=>{l instanceof tq&&l.revert&&this.setState({...Ce(this,yk),fetchStatus:\"idle\"}),r.abort()},onFail:(l,d)=>{vr(this,Kb,Z2).call(this,{type:\"failed\",failureCount:l,error:d})},onPause:()=>{vr(this,Kb,Z2).call(this,{type:\"pause\"})},onContinue:()=>{vr(this,Kb,Z2).call(this,{type:\"continue\"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{let l=await Ce(this,Wl).start();if(l===void 0)throw console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(l),Ce(this,Hg).config.onSuccess?.(l,this),Ce(this,Hg).config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof tq){if(l.silent)return Ce(this,Wl).promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw vr(this,Kb,Z2).call(this,{type:\"error\",error:l}),Ce(this,Hg).config.onError?.(l,this),Ce(this,Hg).config.onSettled?.(this.state.data,l,this),l}finally{this.scheduleGc()}}},t3=new WeakMap,yk=new WeakMap,Hg=new WeakMap,n3=new WeakMap,Wl=new WeakMap,wB=new WeakMap,r3=new WeakMap,Kb=new WeakSet,Z2=function(t){let n=r=>{switch(t.type){case\"failed\":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case\"pause\":return{...r,fetchStatus:\"paused\"};case\"continue\":return{...r,fetchStatus:\"fetching\"};case\"fetch\":return{...r,...xce(r.data,this.options),fetchMeta:t.meta??null};case\"success\":let o={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:\"success\",...!t.manual&&{fetchStatus:\"idle\",fetchFailureCount:0,fetchFailureReason:null}};return Ht(this,yk,t.manual?o:void 0),o;case\"error\":let i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:\"idle\",status:\"error\"};case\"invalidate\":return{...r,isInvalidated:!0};case\"setState\":return{...r,...t.state}}};this.state=n(this.state),Ki.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Ce(this,Hg).notify({query:this,type:\"updated\",action:t})})},t3e);function xce(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wce(t.networkMode)?\"fetching\":\"paused\",...e===void 0&&{error:null,status:\"pending\"}}}function e3e(e){let t=typeof e.initialData==\"function\"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==\"function\"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?\"success\":\"pending\",fetchStatus:\"idle\"}}var Kh,Uo,EB,Up,o3,bk,Q2,w_,AB,vk,wk,i3,a3,x_,xk,Oi,xB,Ece,Ace,Sce,_ce,Tce,Cce,Rce,a3e,i3e,kce=(i3e=class extends Fg{constructor(t,n){super();pn(this,Oi);pn(this,Kh);pn(this,Uo);pn(this,EB);pn(this,Up);pn(this,o3);pn(this,bk);pn(this,Q2);pn(this,w_);pn(this,AB);pn(this,vk);pn(this,wk);pn(this,i3);pn(this,a3);pn(this,x_);pn(this,xk,new Set);this.options=n,Ht(this,Kh,t),Ht(this,w_,null),Ht(this,Q2,vB()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Ce(this,Uo).addObserver(this),r3e(Ce(this,Uo),this.options)?vr(this,Oi,xB).call(this):this.updateResult(),vr(this,Oi,_ce).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ice(Ce(this,Uo),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ice(Ce(this,Uo),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,vr(this,Oi,Tce).call(this),vr(this,Oi,Cce).call(this),Ce(this,Uo).removeObserver(this)}setOptions(t){let n=this.options,r=Ce(this,Uo);if(this.options=Ce(this,Kh).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!=\"boolean\"&&typeof this.options.enabled!=\"function\"&&typeof qh(this.options.enabled,Ce(this,Uo))!=\"boolean\")throw new Error(\"Expected enabled to be a boolean or a callback that returns a boolean\");vr(this,Oi,Rce).call(this),Ce(this,Uo).setOptions(this.options),n._defaulted&&!dk(this.options,n)&&Ce(this,Kh).getQueryCache().notify({type:\"observerOptionsUpdated\",query:Ce(this,Uo),observer:this});let o=this.hasListeners();o&&o3e(Ce(this,Uo),r,this.options,n)&&vr(this,Oi,xB).call(this),this.updateResult(),o&&(Ce(this,Uo)!==r||qh(this.options.enabled,Ce(this,Uo))!==qh(n.enabled,Ce(this,Uo))||qb(this.options.staleTime,Ce(this,Uo))!==qb(n.staleTime,Ce(this,Uo)))&&vr(this,Oi,Ece).call(this);let i=vr(this,Oi,Ace).call(this);o&&(Ce(this,Uo)!==r||qh(this.options.enabled,Ce(this,Uo))!==qh(n.enabled,Ce(this,Uo))||i!==Ce(this,x_))&&vr(this,Oi,Sce).call(this,i)}getOptimisticResult(t){let n=Ce(this,Kh).getQueryCache().build(Ce(this,Kh),t),r=this.createResult(n,t);return d1t(this,r)&&(Ht(this,Up,r),Ht(this,bk,this.options),Ht(this,o3,Ce(this,Uo).state)),r}getCurrentResult(){return Ce(this,Up)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n?.(o),o===\"promise\"&&(this.trackProp(\"data\"),!this.options.experimental_prefetchInRender&&Ce(this,Q2).status===\"pending\"&&Ce(this,Q2).reject(new Error(\"experimental_prefetchInRender feature flag is not enabled\"))),Reflect.get(r,o))})}trackProp(t){Ce(this,xk).add(t)}getCurrentQuery(){return Ce(this,Uo)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let n=Ce(this,Kh).defaultQueryOptions(t),r=Ce(this,Kh).getQueryCache().build(Ce(this,Kh),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return vr(this,Oi,xB).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Ce(this,Up)))}createResult(t,n){let r=Ce(this,Uo),o=this.options,i=Ce(this,Up),a=Ce(this,o3),c=Ce(this,bk),d=t!==r?t.state:Ce(this,EB),{state:m}=t,h={...m},g=!1,y;if(n._optimisticResults){let ae=this.hasListeners(),te=!ae&&r3e(t,n),Z=ae&&o3e(t,r,n,o);(te||Z)&&(h={...h,...xce(m.data,t.options)}),n._optimisticResults===\"isRestoring\"&&(h.fetchStatus=\"idle\")}let{error:w,errorUpdatedAt:x,status:I}=h;y=h.data;let C=!1;if(n.placeholderData!==void 0&&y===void 0&&I===\"pending\"){let ae;i?.isPlaceholderData&&n.placeholderData===c?.placeholderData?(ae=i.data,C=!0):ae=typeof n.placeholderData==\"function\"?n.placeholderData(Ce(this,wk)?.state.data,Ce(this,wk)):n.placeholderData,ae!==void 0&&(I=\"success\",y=yB(i?.data,ae,n),g=!0)}if(n.select&&y!==void 0&&!C)if(i&&y===a?.data&&n.select===Ce(this,AB))y=Ce(this,vk);else try{Ht(this,AB,n.select),y=n.select(y),y=yB(i?.data,y,n),Ht(this,vk,y),Ht(this,w_,null)}catch(ae){Ht(this,w_,ae)}Ce(this,w_)&&(w=Ce(this,w_),y=Ce(this,vk),x=Date.now(),I=\"error\");let M=h.fetchStatus===\"fetching\",B=I===\"pending\",z=I===\"error\",G=B&&M,J=y!==void 0,ie={status:I,fetchStatus:h.fetchStatus,isPending:B,isSuccess:I===\"success\",isError:z,isInitialLoading:G,isLoading:G,data:y,dataUpdatedAt:h.dataUpdatedAt,error:w,errorUpdatedAt:x,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>d.dataUpdateCount||h.errorUpdateCount>d.errorUpdateCount,isFetching:M,isRefetching:M&&!B,isLoadingError:z&&!J,isPaused:h.fetchStatus===\"paused\",isPlaceholderData:g,isRefetchError:z&&J,isStale:Oce(t,n),refetch:this.refetch,promise:Ce(this,Q2),isEnabled:qh(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){let ae=X=>{ie.status===\"error\"?X.reject(ie.error):ie.data!==void 0&&X.resolve(ie.data)},te=()=>{let X=Ht(this,Q2,ie.promise=vB());ae(X)},Z=Ce(this,Q2);switch(Z.status){case\"pending\":t.queryHash===r.queryHash&&ae(Z);break;case\"fulfilled\":(ie.status===\"error\"||ie.data!==Z.value)&&te();break;case\"rejected\":(ie.status!==\"error\"||ie.error!==Z.reason)&&te();break}}return ie}updateResult(){let t=Ce(this,Up),n=this.createResult(Ce(this,Uo),this.options);if(Ht(this,o3,Ce(this,Uo).state),Ht(this,bk,this.options),Ce(this,o3).data!==void 0&&Ht(this,wk,Ce(this,Uo)),dk(n,t))return;Ht(this,Up,n);let r=()=>{if(!t)return!0;let{notifyOnChangeProps:o}=this.options,i=typeof o==\"function\"?o():o;if(i===\"all\"||!i&&!Ce(this,xk).size)return!0;let a=new Set(i??Ce(this,xk));return this.options.throwOnError&&a.add(\"error\"),Object.keys(Ce(this,Up)).some(c=>{let l=c;return Ce(this,Up)[l]!==t[l]&&a.has(l)})};vr(this,Oi,a3e).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&vr(this,Oi,_ce).call(this)}},Kh=new WeakMap,Uo=new WeakMap,EB=new WeakMap,Up=new WeakMap,o3=new WeakMap,bk=new WeakMap,Q2=new WeakMap,w_=new WeakMap,AB=new WeakMap,vk=new WeakMap,wk=new WeakMap,i3=new WeakMap,a3=new WeakMap,x_=new WeakMap,xk=new WeakMap,Oi=new WeakSet,xB=function(t){vr(this,Oi,Rce).call(this);let n=Ce(this,Uo).fetch(this.options,t);return t?.throwOnError||(n=n.catch(Sc)),n},Ece=function(){vr(this,Oi,Tce).call(this);let t=qb(this.options.staleTime,Ce(this,Uo));if(Gh||Ce(this,Up).isStale||!mB(t))return;let r=JG(Ce(this,Up).dataUpdatedAt,t)+1;Ht(this,i3,rw.setTimeout(()=>{Ce(this,Up).isStale||this.updateResult()},r))},Ace=function(){return(typeof this.options.refetchInterval==\"function\"?this.options.refetchInterval(Ce(this,Uo)):this.options.refetchInterval)??!1},Sce=function(t){vr(this,Oi,Cce).call(this),Ht(this,x_,t),!(Gh||qh(this.options.enabled,Ce(this,Uo))===!1||!mB(Ce(this,x_))||Ce(this,x_)===0)&&Ht(this,a3,rw.setInterval(()=>{(this.options.refetchIntervalInBackground||pk.isFocused())&&vr(this,Oi,xB).call(this)},Ce(this,x_)))},_ce=function(){vr(this,Oi,Ece).call(this),vr(this,Oi,Sce).call(this,vr(this,Oi,Ace).call(this))},Tce=function(){Ce(this,i3)&&(rw.clearTimeout(Ce(this,i3)),Ht(this,i3,void 0))},Cce=function(){Ce(this,a3)&&(rw.clearInterval(Ce(this,a3)),Ht(this,a3,void 0))},Rce=function(){let t=Ce(this,Kh).getQueryCache().build(Ce(this,Kh),this.options);if(t===Ce(this,Uo))return;let n=Ce(this,Uo);Ht(this,Uo,t),Ht(this,EB,t.state),this.hasListeners()&&(n?.removeObserver(this),t.addObserver(this))},a3e=function(t){Ki.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Ce(this,Up))}),Ce(this,Kh).getQueryCache().notify({query:Ce(this,Uo),type:\"observerResultsUpdated\"})})},i3e);function l1t(e,t){return qh(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===\"error\"&&t.retryOnMount===!1)}function r3e(e,t){return l1t(e,t)||e.state.data!==void 0&&Ice(e,t,t.refetchOnMount)}function Ice(e,t,n){if(qh(t.enabled,e)!==!1&&qb(t.staleTime,e)!==\"static\"){let r=typeof n==\"function\"?n(e):n;return r===\"always\"||r!==!1&&Oce(e,t)}return!1}function o3e(e,t,n,r){return(e!==t||qh(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==\"error\")&&Oce(e,n)}function Oce(e,t){return qh(t.enabled,e)!==!1&&e.isStaleByTime(qb(t.staleTime,e))}function d1t(e,t){return!dk(e.getCurrentResult(),t)}f();function Nce(e){return{onFetch:(t,n)=>{let r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],a=t.state.data?.pageParams||[],c={pages:[],pageParams:[]},l=0,d=async()=>{let m=!1,h=w=>{Object.defineProperty(w,\"signal\",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener(\"abort\",()=>{m=!0}),t.signal)})},g=eq(t.options,t.fetchOptions),y=async(w,x,I)=>{if(m)return Promise.reject();if(x==null&&w.pages.length)return Promise.resolve(w);let M=(()=>{let J={client:t.client,queryKey:t.queryKey,pageParam:x,direction:I?\"backward\":\"forward\",meta:t.options.meta};return h(J),J})(),B=await g(M),{maxPages:z}=t.options,G=I?Z5e:Y5e;return{pages:G(w.pages,B,z),pageParams:G(w.pageParams,x,z)}};if(o&&i.length){let w=o===\"backward\",x=w?f1t:s3e,I={pages:i,pageParams:a},C=x(r,I);c=await y(I,C,w)}else{let w=e??i.length;do{let x=l===0?a[0]??r.initialPageParam:s3e(r,c);if(l>0&&x==null)break;c=await y(c,x),l++}while(l<w)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function s3e(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function f1t(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}f();f();var SB,iw,Fp,s3,aw,E_,c3e,u3e=(c3e=class extends rq{constructor(t){super();pn(this,aw);pn(this,SB);pn(this,iw);pn(this,Fp);pn(this,s3);Ht(this,SB,t.client),this.mutationId=t.mutationId,Ht(this,Fp,t.mutationCache),Ht(this,iw,[]),this.state=t.state||Pce(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Ce(this,iw).includes(t)||(Ce(this,iw).push(t),this.clearGcTimeout(),Ce(this,Fp).notify({type:\"observerAdded\",mutation:this,observer:t}))}removeObserver(t){Ht(this,iw,Ce(this,iw).filter(n=>n!==t)),this.scheduleGc(),Ce(this,Fp).notify({type:\"observerRemoved\",mutation:this,observer:t})}optionalRemove(){Ce(this,iw).length||(this.state.status===\"pending\"?this.scheduleGc():Ce(this,Fp).remove(this))}continue(){return Ce(this,s3)?.continue()??this.execute(this.state.variables)}async execute(t){let n=()=>{vr(this,aw,E_).call(this,{type:\"continue\"})},r={client:Ce(this,SB),meta:this.options.meta,mutationKey:this.options.mutationKey};Ht(this,s3,nq({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error(\"No mutationFn found\")),onFail:(a,c)=>{vr(this,aw,E_).call(this,{type:\"failed\",failureCount:a,error:c})},onPause:()=>{vr(this,aw,E_).call(this,{type:\"pause\"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Ce(this,Fp).canRun(this)}));let o=this.state.status===\"pending\",i=!Ce(this,s3).canStart();try{if(o)n();else{vr(this,aw,E_).call(this,{type:\"pending\",variables:t,isPaused:i}),await Ce(this,Fp).config.onMutate?.(t,this,r);let c=await this.options.onMutate?.(t,r);c!==this.state.context&&vr(this,aw,E_).call(this,{type:\"pending\",context:c,variables:t,isPaused:i})}let a=await Ce(this,s3).start();return await Ce(this,Fp).config.onSuccess?.(a,t,this.state.context,this,r),await this.options.onSuccess?.(a,t,this.state.context,r),await Ce(this,Fp).config.onSettled?.(a,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(a,null,t,this.state.context,r),vr(this,aw,E_).call(this,{type:\"success\",data:a}),a}catch(a){try{throw await Ce(this,Fp).config.onError?.(a,t,this.state.context,this,r),await this.options.onError?.(a,t,this.state.context,r),await Ce(this,Fp).config.onSettled?.(void 0,a,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,a,t,this.state.context,r),a}finally{vr(this,aw,E_).call(this,{type:\"error\",error:a})}}finally{Ce(this,Fp).runNext(this)}}},SB=new WeakMap,iw=new WeakMap,Fp=new WeakMap,s3=new WeakMap,aw=new WeakSet,E_=function(t){let n=r=>{switch(t.type){case\"failed\":return{...r,failureCount:t.failureCount,failureReason:t.error};case\"pause\":return{...r,isPaused:!0};case\"continue\":return{...r,isPaused:!1};case\"pending\":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:\"pending\",variables:t.variables,submittedAt:Date.now()};case\"success\":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:\"success\",isPaused:!1};case\"error\":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:\"error\"}}};this.state=n(this.state),Ki.batch(()=>{Ce(this,iw).forEach(r=>{r.onMutationUpdate(t)}),Ce(this,Fp).notify({mutation:this,type:\"updated\",action:t})})},c3e);function Pce(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:\"idle\",variables:void 0,submittedAt:0}}var J2,Yb,_B,l3e,d3e=(l3e=class extends Fg{constructor(t={}){super();pn(this,J2);pn(this,Yb);pn(this,_B);this.config=t,Ht(this,J2,new Set),Ht(this,Yb,new Map),Ht(this,_B,0)}build(t,n,r){let o=new u3e({client:t,mutationCache:this,mutationId:++y9(this,_B)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){Ce(this,J2).add(t);let n=oq(t);if(typeof n==\"string\"){let r=Ce(this,Yb).get(n);r?r.push(t):Ce(this,Yb).set(n,[t])}this.notify({type:\"added\",mutation:t})}remove(t){if(Ce(this,J2).delete(t)){let n=oq(t);if(typeof n==\"string\"){let r=Ce(this,Yb).get(n);if(r)if(r.length>1){let o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&Ce(this,Yb).delete(n)}}this.notify({type:\"removed\",mutation:t})}canRun(t){let n=oq(t);if(typeof n==\"string\"){let o=Ce(this,Yb).get(n)?.find(i=>i.state.status===\"pending\");return!o||o===t}else return!0}runNext(t){let n=oq(t);return typeof n==\"string\"?Ce(this,Yb).get(n)?.find(o=>o!==t&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ki.batch(()=>{Ce(this,J2).forEach(t=>{this.notify({type:\"removed\",mutation:t})}),Ce(this,J2).clear(),Ce(this,Yb).clear()})}getAll(){return Array.from(Ce(this,J2))}find(t){let n={exact:!0,...t};return this.getAll().find(r=>$G(n,r))}findAll(t={}){return this.getAll().filter(n=>$G(t,n))}notify(t){Ki.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){let t=this.getAll().filter(n=>n.state.isPaused);return Ki.batch(()=>Promise.all(t.map(n=>n.continue().catch(Sc))))}},J2=new WeakMap,Yb=new WeakMap,_B=new WeakMap,l3e);function oq(e){return e.options.scope?.id}f();var X2,A_,Yh,$2,eE,iq,Mce,f3e,Dce=(f3e=class extends Fg{constructor(t,n){super();pn(this,eE);pn(this,X2);pn(this,A_);pn(this,Yh);pn(this,$2);Ht(this,X2,t),this.setOptions(n),this.bindMethods(),vr(this,eE,iq).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let n=this.options;this.options=Ce(this,X2).defaultMutationOptions(t),dk(this.options,n)||Ce(this,X2).getMutationCache().notify({type:\"observerOptionsUpdated\",mutation:Ce(this,Yh),observer:this}),n?.mutationKey&&this.options.mutationKey&&ow(n.mutationKey)!==ow(this.options.mutationKey)?this.reset():Ce(this,Yh)?.state.status===\"pending\"&&Ce(this,Yh).setOptions(this.options)}onUnsubscribe(){this.hasListeners()||Ce(this,Yh)?.removeObserver(this)}onMutationUpdate(t){vr(this,eE,iq).call(this),vr(this,eE,Mce).call(this,t)}getCurrentResult(){return Ce(this,A_)}reset(){Ce(this,Yh)?.removeObserver(this),Ht(this,Yh,void 0),vr(this,eE,iq).call(this),vr(this,eE,Mce).call(this)}mutate(t,n){return Ht(this,$2,n),Ce(this,Yh)?.removeObserver(this),Ht(this,Yh,Ce(this,X2).getMutationCache().build(Ce(this,X2),this.options)),Ce(this,Yh).addObserver(this),Ce(this,Yh).execute(t)}},X2=new WeakMap,A_=new WeakMap,Yh=new WeakMap,$2=new WeakMap,eE=new WeakSet,iq=function(){let t=Ce(this,Yh)?.state??Pce();Ht(this,A_,{...t,isPending:t.status===\"pending\",isSuccess:t.status===\"success\",isError:t.status===\"error\",isIdle:t.status===\"idle\",mutate:this.mutate,reset:this.reset})},Mce=function(t){Ki.batch(()=>{if(Ce(this,$2)&&this.hasListeners()){let n=Ce(this,A_).variables,r=Ce(this,A_).context,o={client:Ce(this,X2),meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type===\"success\"?(Ce(this,$2).onSuccess?.(t.data,n,r,o),Ce(this,$2).onSettled?.(t.data,null,n,r,o)):t?.type===\"error\"&&(Ce(this,$2).onError?.(t.error,n,r,o),Ce(this,$2).onSettled?.(void 0,t.error,n,r,o))}this.listeners.forEach(n=>{n(Ce(this,A_))})})},f3e);f();var sw,p3e,h3e=(p3e=class extends Fg{constructor(t={}){super();pn(this,sw);this.config=t,Ht(this,sw,new Map)}build(t,n,r){let o=n.queryKey,i=n.queryHash??gB(o,n),a=this.get(i);return a||(a=new n3e({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){Ce(this,sw).has(t.queryHash)||(Ce(this,sw).set(t.queryHash,t),this.notify({type:\"added\",query:t}))}remove(t){let n=Ce(this,sw).get(t.queryHash);n&&(t.destroy(),n===t&&Ce(this,sw).delete(t.queryHash),this.notify({type:\"removed\",query:t}))}clear(){Ki.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Ce(this,sw).get(t)}getAll(){return[...Ce(this,sw).values()]}find(t){let n={exact:!0,...t};return this.getAll().find(r=>XG(n,r))}findAll(t={}){let n=this.getAll();return Object.keys(t).length>0?n.filter(r=>XG(t,r)):n}notify(t){Ki.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ki.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ki.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},sw=new WeakMap,p3e);f();var _c,S_,__,Ek,Ak,T_,Sk,_k,m3e,Bce=(m3e=class{constructor(e={}){pn(this,_c);pn(this,S_);pn(this,__);pn(this,Ek);pn(this,Ak);pn(this,T_);pn(this,Sk);pn(this,_k);Ht(this,_c,e.queryCache||new h3e),Ht(this,S_,e.mutationCache||new d3e),Ht(this,__,e.defaultOptions||{}),Ht(this,Ek,new Map),Ht(this,Ak,new Map),Ht(this,T_,0)}mount(){y9(this,T_)._++,Ce(this,T_)===1&&(Ht(this,Sk,pk.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ce(this,_c).onFocus())})),Ht(this,_k,gk.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ce(this,_c).onOnline())})))}unmount(){var e,t;y9(this,T_)._--,Ce(this,T_)===0&&((e=Ce(this,Sk))==null||e.call(this),Ht(this,Sk,void 0),(t=Ce(this,_k))==null||t.call(this),Ht(this,_k,void 0))}isFetching(e){return Ce(this,_c).findAll({...e,fetchStatus:\"fetching\"}).length}isMutating(e){return Ce(this,S_).findAll({...e,status:\"pending\"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return Ce(this,_c).get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=Ce(this,_c).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(qb(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return Ce(this,_c).findAll(e).map(({queryKey:t,state:n})=>{let r=n.data;return[t,r]})}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=Ce(this,_c).get(r.queryHash)?.state.data,a=q5e(t,i);if(a!==void 0)return Ce(this,_c).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Ki.batch(()=>Ce(this,_c).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return Ce(this,_c).get(t.queryHash)?.state}removeQueries(e){let t=Ce(this,_c);Ki.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){let n=Ce(this,_c);return Ki.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:\"active\",...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Ki.batch(()=>Ce(this,_c).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Sc).catch(Sc)}invalidateQueries(e,t={}){return Ki.batch(()=>(Ce(this,_c).findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType===\"none\"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??\"active\"},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ki.batch(()=>Ce(this,_c).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Sc)),o.state.fetchStatus===\"paused\"?Promise.resolve():i}));return Promise.all(r).then(Sc)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=Ce(this,_c).build(this,t);return n.isStaleByTime(qb(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Sc).catch(Sc)}fetchInfiniteQuery(e){return e.behavior=Nce(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Sc).catch(Sc)}ensureInfiniteQueryData(e){return e.behavior=Nce(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return gk.isOnline()?Ce(this,S_).resumePausedMutations():Promise.resolve()}getQueryCache(){return Ce(this,_c)}getMutationCache(){return Ce(this,S_)}getDefaultOptions(){return Ce(this,__)}setDefaultOptions(e){Ht(this,__,e)}setQueryDefaults(e,t){Ce(this,Ek).set(ow(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...Ce(this,Ek).values()],n={};return t.forEach(r=>{X5(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){Ce(this,Ak).set(ow(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...Ce(this,Ak).values()],n={};return t.forEach(r=>{X5(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...Ce(this,__).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=gB(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==\"always\"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=\"offlineFirst\"),t.queryFn===J5&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...Ce(this,__).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Ce(this,_c).clear(),Ce(this,S_).clear()}},_c=new WeakMap,S_=new WeakMap,__=new WeakMap,Ek=new WeakMap,Ak=new WeakMap,T_=new WeakMap,Sk=new WeakMap,_k=new WeakMap,m3e);f();var Tk=ge(at(),1),g3e=ge(We(),1),Lce=Tk.createContext(void 0),tE=e=>{let t=Tk.useContext(Lce);if(e)return e;if(!t)throw new Error(\"No QueryClient set, use QueryClientProvider to set one\");return t},Uce=({client:e,children:t})=>(Tk.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,g3e.jsx)(Lce.Provider,{value:e,children:t}));f();var aq=ge(at(),1),y3e=aq.createContext(!1),b3e=()=>aq.useContext(y3e),zpn=y3e.Provider;f();var TB=ge(at(),1),p1t=ge(We(),1);function h1t(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var m1t=TB.createContext(h1t()),v3e=()=>TB.useContext(m1t);f();var w3e=ge(at(),1);var x3e=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},E3e=e=>{w3e.useEffect(()=>{e.clearReset()},[e])},A3e=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||bB(n,[e.error,r]));f();var S3e=e=>{if(e.suspense){let n=o=>o===\"static\"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r==\"function\"?(...o)=>n(r(...o)):n(r),typeof e.gcTime==\"number\"&&(e.gcTime=Math.max(e.gcTime,1e3))}},_3e=(e,t)=>e.isLoading&&e.isFetching&&!t,T3e=(e,t)=>e?.suspense&&t.isPending,Fce=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});f();f();var C_=ge(at(),1);function C3e(e,t,n){if(typeof e!=\"object\"||Array.isArray(e))throw new Error(\\'Bad argument type. Starting with v5, only the \"Object\" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object\\');let r=b3e(),o=v3e(),i=tE(n),a=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a.queryFn||console.error(`[${a.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),a._optimisticResults=r?\"isRestoring\":\"optimistic\",S3e(a),x3e(a,o),E3e(o);let c=!i.getQueryCache().get(a.queryHash),[l]=C_.useState(()=>new t(i,a)),d=l.getOptimisticResult(a),m=!r&&e.subscribed!==!1;if(C_.useSyncExternalStore(C_.useCallback(h=>{let g=m?l.subscribe(Ki.batchCalls(h)):Sc;return l.updateResult(),g},[l,m]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),C_.useEffect(()=>{l.setOptions(a)},[a,l]),T3e(a,d))throw Fce(a,l,o);if(A3e({result:d,errorResetBoundary:o,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw d.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(a,d),a.experimental_prefetchInRender&&!Gh&&_3e(d,r)&&(c?Fce(a,l,o):i.getQueryCache().get(a.queryHash)?.promise)?.catch(Sc).finally(()=>{l.updateResult()}),a.notifyOnChangeProps?d:l.trackResult(d)}function Hp(e,t){return C3e(e,kce,t)}f();var nE=ge(at(),1);function Zh(e,t){let n=tE(t),[r]=nE.useState(()=>new Dce(n,e));nE.useEffect(()=>{r.setOptions(e)},[r,e]);let o=nE.useSyncExternalStore(nE.useCallback(a=>r.subscribe(Ki.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=nE.useCallback((a,c)=>{r.mutate(a,c).catch(Sc)},[r]);if(o.error&&bB(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}var $w=ge(at(),1);f();f();var _L=ge(at(),1);f();f();f();function _f(e,t,n){let r=e[t.name];if(typeof r==\"function\")return r;let o=e[n];return typeof o==\"function\"?o:i=>t(e,i)}f();f();f();f();f();var sO=\"2.22.1\";var bke=()=>`@wagmi/core@${sO}`;var vke=function(e,t,n,r){if(n===\"a\"&&!r)throw new TypeError(\"Private accessor was defined without a getter\");if(typeof t==\"function\"?e!==t||!r:!t.has(e))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return n===\"m\"?r:n===\"a\"?r.call(e):r?r.value:t.get(e)},YK,wke,Gp=class e extends Error{get docsBaseUrl(){return\"https://wagmi.sh/core\"}get version(){return bke()}constructor(t,n={}){super(),YK.add(this),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WagmiCoreError\"});let r=n.cause instanceof e?n.cause.details:n.cause?.message?n.cause.message:n.details,o=n.cause instanceof e&&n.cause.docsPath||n.docsPath;this.message=[t||\"An error occurred.\",\"\",...n.metaMessages?[...n.metaMessages,\"\"]:[],...o?[`Docs: ${this.docsBaseUrl}${o}.html${n.docsSlug?`#${n.docsSlug}`:\"\"}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join(`\\n`),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return vke(this,YK,\"m\",wke).call(this,this,t)}};YK=new WeakSet,wke=function e(t,n){return n?.(t)?t:t.cause?vke(this,YK,\"m\",e).call(this,t.cause,n):t};var Du=class extends Gp{constructor(){super(\"Chain not configured.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ChainNotConfiguredError\"})}},cO=class extends Gp{constructor(){super(\"Connector already connected.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ConnectorAlreadyConnectedError\"})}},yE=class extends Gp{constructor(){super(\"Connector not connected.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ConnectorNotConnectedError\"})}};var uO=class extends Gp{constructor({address:t,connector:n}){super(`Account \"${t}\" not found for connector \"${n.name}\".`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ConnectorAccountNotFoundError\"})}},lO=class extends Gp{constructor({connectionChainId:t,connectorChainId:n}){super(`The current chain of the connector (id: ${n}) does not match the connection\\'s chain (id: ${t}).`,{metaMessages:[`Current Chain ID:  ${n}`,`Expected Chain ID: ${t}`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ConnectorChainMismatchError\"})}},dO=class extends Gp{constructor({connector:t}){super(`Connector \"${t.name}\" unavailable while reconnecting.`,{details:[\"During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`.\",\"All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored.\",\"This error commonly occurs for connectors that asynchronously inject after reconnection has already started.\"].join(\" \")}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ConnectorUnavailableReconnectingError\"})}};async function xke(e,t){let n;if(typeof t.connector==\"function\"?n=e._internal.connectors.setup(t.connector):n=t.connector,n.uid===e.state.current)throw new cO;try{e.setState(a=>({...a,status:\"connecting\"})),n.emitter.emit(\"message\",{type:\"connecting\"});let{connector:r,...o}=t,i=await n.connect(o);return n.emitter.off(\"connect\",e._internal.events.connect),n.emitter.on(\"change\",e._internal.events.change),n.emitter.on(\"disconnect\",e._internal.events.disconnect),await e.storage?.setItem(\"recentConnectorId\",n.id),e.setState(a=>({...a,connections:new Map(a.connections).set(n.uid,{accounts:o.withCapabilities?i.accounts.map(c=>typeof c==\"object\"?c.address:c):i.accounts,chainId:i.chainId,connector:n}),current:n.uid,status:\"connected\"})),{accounts:o.withCapabilities?i.accounts.map(a=>typeof a==\"object\"?a:{address:a,capabilities:{}}):i.accounts,chainId:i.chainId}}catch(r){throw e.setState(o=>({...o,status:o.current?\"connected\":\"disconnected\"})),r}}f();gn();q_();async function Wg(e,t={}){let{assertChainId:n=!0}=t,r;if(t.connector){let{connector:m}=t;if(e.state.status===\"reconnecting\"&&!m.getAccounts&&!m.getChainId)throw new dO({connector:m});let[h,g]=await Promise.all([m.getAccounts().catch(y=>{if(t.account===null)return[];throw y}),m.getChainId()]);r={accounts:h,chainId:g,connector:m}}else r=e.state.connections.get(e.state.current);if(!r)throw new yE;let o=t.chainId??r.chainId,i=await r.connector.getChainId();if(n&&i!==o)throw new lO({connectionChainId:o,connectorChainId:i});let a=r.connector;if(a.getClient)return a.getClient({chainId:o});let c=Bn(t.account??r.accounts[0]);if(c&&(c.address=rr(c.address)),t.account&&!r.accounts.some(m=>m.toLowerCase()===c.address.toLowerCase()))throw new uO({address:c.address,connector:a});let l=e.chains.find(m=>m.id===o),d=await r.connector.getProvider({chainId:o});return bE({account:c,chain:l,name:\"Connector Client\",transport:m=>EL(d)({...m,retryCount:0})})}f();async function Mke(e,t={}){let n;if(t.connector)n=t.connector;else{let{connections:o,current:i}=e.state;n=o.get(i)?.connector}let r=e.state.connections;n&&(await n.disconnect(),n.emitter.off(\"change\",e._internal.events.change),n.emitter.off(\"disconnect\",e._internal.events.disconnect),n.emitter.on(\"connect\",e._internal.events.connect),r.delete(n.uid)),e.setState(o=>{if(r.size===0)return{...o,connections:new Map,current:null,status:\"disconnected\"};let i=r.values().next().value;return{...o,connections:new Map(r),current:i.connector.uid}});{let o=e.state.current;if(!o)return;let i=e.state.connections.get(o)?.connector;if(!i)return;await e.storage?.setItem(\"recentConnectorId\",i.id)}}f();gn();function nde(e){return typeof e==\"number\"?e:e===\"wei\"?0:Math.abs(Use[e])}f();function AL(e){let t=e.state.current,n=e.state.connections.get(t),r=n?.accounts,o=r?.[0],i=e.chains.find(c=>c.id===n?.chainId),a=e.state.status;switch(a){case\"connected\":return{address:o,addresses:r,chain:i,chainId:n?.chainId,connector:n?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:a};case\"reconnecting\":return{address:o,addresses:r,chain:i,chainId:n?.chainId,connector:n?.connector,isConnected:!!o,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:a};case\"connecting\":return{address:o,addresses:r,chain:i,chainId:n?.chainId,connector:n?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:a};case\"disconnected\":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:a}}}f();gn();tm();f();gn();f();tm();async function Dke(e,t){let{allowFailure:n=!0,chainId:r,contracts:o,...i}=t,a=e.getClient({chainId:r});return _f(a,fL,\"multicall\")({allowFailure:n,contracts:o,...i})}f();tm();function tY(e,t){let{chainId:n,...r}=t,o=e.getClient({chainId:n});return _f(o,_i,\"readContract\")(r)}async function Bke(e,t){let{allowFailure:n=!0,blockNumber:r,blockTag:o,...i}=t,a=t.contracts;try{let c={};for(let[h,g]of a.entries()){let y=g.chainId??e.state.chainId;c[y]||(c[y]=[]),c[y]?.push({contract:g,index:h})}let l=()=>Object.entries(c).map(([h,g])=>Dke(e,{...i,allowFailure:n,blockNumber:r,blockTag:o,chainId:Number.parseInt(h,10),contracts:g.map(({contract:y})=>y)})),d=(await Promise.all(l())).flat(),m=Object.values(c).flatMap(h=>h.map(({index:g})=>g));return d.reduce((h,g,y)=>(h&&(h[m[y]]=g),h),[])}catch(c){if(c instanceof Wb)throw c;let l=()=>a.map(d=>tY(e,{...d,blockNumber:r,blockTag:o}));return n?(await Promise.allSettled(l())).map(d=>d.status===\"fulfilled\"?{result:d.value,status:\"success\"}:{error:d.reason,result:void 0,status:\"failure\"}):await Promise.all(l())}}async function Uke(e,t){let{address:n,blockNumber:r,blockTag:o,chainId:i,token:a,unit:c=\"ether\"}=t;if(a)try{return await Lke(e,{balanceAddress:n,chainId:i,symbolType:\"string\",tokenAddress:a})}catch(g){if(g.name===\"ContractFunctionExecutionError\"){let y=await Lke(e,{balanceAddress:n,chainId:i,symbolType:\"bytes32\",tokenAddress:a}),w=n0(na(y.symbol,{dir:\"right\"}));return{...y,symbol:w}}throw g}let l=e.getClient({chainId:i}),m=await _f(l,JB,\"getBalance\")(r?{address:n,blockNumber:r}:{address:n,blockTag:o}),h=e.chains.find(g=>g.id===i)??l.chain;return{decimals:h.nativeCurrency.decimals,formatted:ba(m,nde(c)),symbol:h.nativeCurrency.symbol,value:m}}async function Lke(e,t){let{balanceAddress:n,chainId:r,symbolType:o,tokenAddress:i,unit:a}=t,c={abi:[{type:\"function\",name:\"balanceOf\",stateMutability:\"view\",inputs:[{type:\"address\"}],outputs:[{type:\"uint256\"}]},{type:\"function\",name:\"decimals\",stateMutability:\"view\",inputs:[],outputs:[{type:\"uint8\"}]},{type:\"function\",name:\"symbol\",stateMutability:\"view\",inputs:[],outputs:[{type:o}]}],address:i},[l,d,m]=await Bke(e,{allowFailure:!1,contracts:[{...c,functionName:\"balanceOf\",args:[n],chainId:r},{...c,functionName:\"decimals\",chainId:r},{...c,functionName:\"symbol\",chainId:r}]}),h=ba(l??\"0\",nde(a??d));return{decimals:d,formatted:h,symbol:m,value:l}}f();tm();async function Fke(e,t){let{connector:n,id:r}=t,o=await Wg(e,{connector:n});return _f(o,S3,\"getCallsStatus\")({id:r})}f();tm();async function Hke(e,t={}){let{account:n,chainId:r,connector:o}=t,i=await Wg(e,{account:n,connector:o});return vL(i,{account:n,chainId:r})}f();function nY(e){return e.state.chainId}f();f();function nm(e,t){if(e===t)return!0;if(e&&t&&typeof e==\"object\"&&typeof t==\"object\"){if(e.constructor!==t.constructor)return!1;let n,r;if(Array.isArray(e)&&Array.isArray(t)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!nm(e[r],t[r]))return!1;return!0}if(typeof e.valueOf==\"function\"&&e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(typeof e.toString==\"function\"&&e.toString!==Object.prototype.toString)return e.toString()===t.toString();let o=Object.keys(e);if(n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.hasOwn(t,o[r]))return!1;for(r=n;r--!==0;){let i=o[r];if(i&&!nm(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}var rde=[];function rY(e){let t=e.chains;return nm(rde,t)?rde:(rde=t,t)}f();var oY=[];function hO(e){let t=[...e.state.connections.values()];return e.state.status===\"reconnecting\"||nm(oY,t)?oY:(oY=t,t)}f();var iY=[];function aY(e){let t=e.connectors;return iY.length===t.length&&iY.every((n,r)=>n===t[r])?iY:(iY=t,t)}f();gn();async function zke(e,t={}){return(await Wg(e,t)).extend(ede)}f();var ode=!1;async function jke(e,t={}){if(ode)return[];ode=!0,e.setState(d=>({...d,status:d.current?\"reconnecting\":\"connecting\"}));let n=[];if(t.connectors?.length)for(let d of t.connectors){let m;typeof d==\"function\"?m=e._internal.connectors.setup(d):m=d,n.push(m)}else n.push(...e.connectors);let r;try{r=await e.storage?.getItem(\"recentConnectorId\")}catch{}let o={};for(let[,d]of e.state.connections)o[d.connector.id]=1;r&&(o[r]=0);let i=Object.keys(o).length>0?[...n].sort((d,m)=>(o[d.id]??10)-(o[m.id]??10)):n,a=!1,c=[],l=[];for(let d of i){let m=await d.getProvider().catch(()=>{});if(!m||l.some(y=>y===m)||!await d.isAuthorized())continue;let g=await d.connect({isReconnecting:!0}).catch(()=>null);g&&(d.emitter.off(\"connect\",e._internal.events.connect),d.emitter.on(\"change\",e._internal.events.change),d.emitter.on(\"disconnect\",e._internal.events.disconnect),e.setState(y=>{let w=new Map(a?y.connections:new Map).set(d.uid,{accounts:g.accounts,chainId:g.chainId,connector:d});return{...y,current:a?y.current:d.uid,connections:w}}),c.push({accounts:g.accounts,chainId:g.chainId,connector:d}),l.push(m),a=!0)}return(e.state.status===\"reconnecting\"||e.state.status===\"connecting\")&&(a?e.setState(d=>({...d,status:\"connected\"})):e.setState(d=>({...d,connections:new Map,current:null,status:\"disconnected\"}))),ode=!1,c}f();tm();async function Wke(e,t){let{account:n,chainId:r,connector:o,calls:i,...a}=t,c=await Wg(e,{account:n,assertChainId:!1,chainId:r,connector:o});return _f(c,A3,\"sendCalls\")({...a,...typeof n<\"u\"?{account:n}:{},calls:i,chain:r?{id:r}:void 0})}f();tm();async function Vke(e,t){let{account:n,chainId:r,connector:o,...i}=t,a;return typeof n==\"object\"&&n?.type===\"local\"?a=e.getClient({chainId:r}):a=await Wg(e,{account:n??void 0,assertChainId:!1,chainId:r,connector:o}),await _f(a,$b,\"sendTransaction\")({...i,...n?{account:n}:{},chain:r?{id:r}:null,gas:i.gas??void 0})}f();tm();async function Gke(e,t){let{connector:n,id:r}=t,o=await Wg(e,{connector:n});return xL(o,{id:r})}f();f();var h0=class extends Gp{constructor(){super(\"Provider not found.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ProviderNotFoundError\"})}},mO=class extends Gp{constructor({connector:t}){super(`\"${t.name}\" does not support programmatic chain switching.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SwitchChainNotSupportedError\"})}};async function qke(e,t){let{addEthereumChainParameter:n,chainId:r}=t,o=e.state.connections.get(t.connector?.uid??e.state.current);if(o){let a=o.connector;if(!a.switchChain)throw new mO({connector:a});return await a.switchChain({addEthereumChainParameter:n,chainId:r})}let i=e.chains.find(a=>a.id===r);if(!i)throw new Du;return e.setState(a=>({...a,chainId:r})),i}f();gn();tm();async function Vg(e,t){let{chainId:n,timeout:r=0,...o}=t,i=e.getClient({chainId:n}),c=await _f(i,E3,\"waitForTransactionReceipt\")({...o,timeout:r});if(c.status===\"reverted\"){let l=_f(i,hE,\"getTransaction\"),{from:d,...m}=await l({hash:c.transactionHash}),g=await _f(i,u0,\"call\")({...m,account:d,data:m.input,gasPrice:m.type!==\"eip1559\"?m.gasPrice:void 0,maxFeePerGas:m.type===\"eip1559\"?m.maxFeePerGas:void 0,maxPriorityFeePerGas:m.type===\"eip1559\"?m.maxPriorityFeePerGas:void 0}),y=g?.data?n0(`0x${g.data.substring(138)}`):\"unknown reason\";throw new Error(y)}return{...c,chainId:i.chain.id}}f();function ide(e,t){let{onChange:n}=t;return e.subscribe(()=>AL(e),n,{equalityFn(r,o){let{connector:i,...a}=r,{connector:c,...l}=o;return nm(a,l)&&i?.id===c?.id&&i?.uid===c?.uid}})}f();function ade(e,t){let{onChange:n}=t;return e.subscribe(r=>r.chainId,n)}f();function sde(e,t){let{onChange:n}=t;return e.subscribe(()=>hO(e),n,{equalityFn:nm})}f();function cde(e,t){let{onChange:n}=t;return e._internal.connectors.subscribe((r,o)=>{n(Object.values(r),o)})}f();gn();Gg.type=\"injected\";function Gg(e={}){let{shimDisconnect:t=!0,unstable_shimAsyncInject:n}=e;function r(){let l=e.target;if(typeof l==\"function\"){let d=l();if(d)return d}return typeof l==\"object\"?l:typeof l==\"string\"?{...kwt[l]??{id:l,name:`${l[0].toUpperCase()}${l.slice(1)}`,provider:`is${l[0].toUpperCase()}${l.slice(1)}`}}:{id:\"injected\",name:\"Injected\",provider(d){return d?.ethereum}}}let o,i,a,c;return l=>({get icon(){return r().icon},get id(){return r().id},get name(){return r().name},get supportsSimulation(){return!0},type:Gg.type,async setup(){let d=await this.getProvider();d?.on&&e.target&&(a||(a=this.onConnect.bind(this),d.on(\"connect\",a)),o||(o=this.onAccountsChanged.bind(this),d.on(\"accountsChanged\",o)))},async connect({chainId:d,isReconnecting:m,withCapabilities:h}={}){let g=await this.getProvider();if(!g)throw new h0;let y=[];if(m)y=await this.getAccounts().catch(()=>[]);else if(t)try{y=(await g.request({method:\"wallet_requestPermissions\",params:[{eth_accounts:{}}]}))[0]?.caveats?.[0]?.value?.map(x=>rr(x)),y.length>0&&(y=await this.getAccounts())}catch(w){let x=w;if(x.code===yo.code)throw new yo(x);if(x.code===Vh.code)throw x}try{!y?.length&&!m&&(y=(await g.request({method:\"eth_requestAccounts\"})).map(I=>rr(I))),a&&(g.removeListener(\"connect\",a),a=void 0),o||(o=this.onAccountsChanged.bind(this),g.on(\"accountsChanged\",o)),i||(i=this.onChainChanged.bind(this),g.on(\"chainChanged\",i)),c||(c=this.onDisconnect.bind(this),g.on(\"disconnect\",c));let w=await this.getChainId();return d&&w!==d&&(w=(await this.switchChain({chainId:d}).catch(I=>{if(I.code===yo.code)throw I;return{id:w}}))?.id??w),t&&await l.storage?.removeItem(`${this.id}.disconnected`),e.target||await l.storage?.setItem(\"injected.connected\",!0),{accounts:h?y.map(x=>({address:x,capabilities:{}})):y,chainId:w}}catch(w){let x=w;throw x.code===yo.code?new yo(x):x.code===Vh.code?new Vh(x):x}},async disconnect(){let d=await this.getProvider();if(!d)throw new h0;i&&(d.removeListener(\"chainChanged\",i),i=void 0),c&&(d.removeListener(\"disconnect\",c),c=void 0),a||(a=this.onConnect.bind(this),d.on(\"connect\",a));try{await y3(()=>d.request({method:\"wallet_revokePermissions\",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}t&&await l.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await l.storage?.removeItem(\"injected.connected\")},async getAccounts(){let d=await this.getProvider();if(!d)throw new h0;return(await d.request({method:\"eth_accounts\"})).map(h=>rr(h))},async getChainId(){let d=await this.getProvider();if(!d)throw new h0;let m=await d.request({method:\"eth_chainId\"});return Number(m)},async getProvider(){if(typeof window>\"u\")return;let d,m=r();return typeof m.provider==\"function\"?d=m.provider(window):typeof m.provider==\"string\"?d=sY(window,m.provider):d=m.provider,d&&!d.removeListener&&(\"off\"in d&&typeof d.off==\"function\"?d.removeListener=d.off:d.removeListener=()=>{}),d},async isAuthorized(){try{if(t&&await l.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await l.storage?.getItem(\"injected.connected\"))return!1;if(!await this.getProvider()){if(n!==void 0&&n!==!1){let g=async()=>(typeof window<\"u\"&&window.removeEventListener(\"ethereum#initialized\",g),!!await this.getProvider()),y=typeof n==\"number\"?n:1e3;if(await Promise.race([...typeof window<\"u\"?[new Promise(x=>window.addEventListener(\"ethereum#initialized\",()=>x(g()),{once:!0}))]:[],new Promise(x=>setTimeout(()=>x(g()),y))]))return!0}throw new h0}return!!(await f0(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:d,chainId:m}){let h=await this.getProvider();if(!h)throw new h0;let g=l.chains.find(w=>w.id===m);if(!g)throw new Is(new Du);let y=new Promise(w=>{let x=(I=>{\"chainId\"in I&&I.chainId===m&&(l.emitter.off(\"change\",x),w())});l.emitter.on(\"change\",x)});try{return await Promise.all([h.request({method:\"wallet_switchEthereumChain\",params:[{chainId:Pe(m)}]}).then(async()=>{await this.getChainId()===m&&l.emitter.emit(\"change\",{chainId:m})}),y]),g}catch(w){let x=w;if(x.code===4902||x?.data?.originalError?.code===4902)try{let{default:I,...C}=g.blockExplorers??{},M;d?.blockExplorerUrls?M=d.blockExplorerUrls:I&&(M=[I.url,...Object.values(C).map(G=>G.url)]);let B;d?.rpcUrls?.length?B=d.rpcUrls:B=[g.rpcUrls.default?.http[0]??\"\"];let z={blockExplorerUrls:M,chainId:Pe(m),chainName:d?.chainName??g.name,iconUrls:d?.iconUrls,nativeCurrency:d?.nativeCurrency??g.nativeCurrency,rpcUrls:B};return await Promise.all([h.request({method:\"wallet_addEthereumChain\",params:[z]}).then(async()=>{if(await this.getChainId()===m)l.emitter.emit(\"change\",{chainId:m});else throw new yo(new Error(\"User rejected switch after adding network.\"))}),y]),g}catch(I){throw new yo(I)}throw x.code===yo.code?new yo(x):new Is(x)}},async onAccountsChanged(d){if(d.length===0)this.onDisconnect();else if(l.emitter.listenerCount(\"connect\")){let m=(await this.getChainId()).toString();this.onConnect({chainId:m}),t&&await l.storage?.removeItem(`${this.id}.disconnected`)}else l.emitter.emit(\"change\",{accounts:d.map(m=>rr(m))})},onChainChanged(d){let m=Number(d);l.emitter.emit(\"change\",{chainId:m})},async onConnect(d){let m=await this.getAccounts();if(m.length===0)return;let h=Number(d.chainId);l.emitter.emit(\"connect\",{accounts:m,chainId:h});let g=await this.getProvider();g&&(a&&(g.removeListener(\"connect\",a),a=void 0),o||(o=this.onAccountsChanged.bind(this),g.on(\"accountsChanged\",o)),i||(i=this.onChainChanged.bind(this),g.on(\"chainChanged\",i)),c||(c=this.onDisconnect.bind(this),g.on(\"disconnect\",c)))},async onDisconnect(d){let m=await this.getProvider();d&&d.code===1013&&m&&(await this.getAccounts()).length||(l.emitter.emit(\"disconnect\"),m&&(i&&(m.removeListener(\"chainChanged\",i),i=void 0),c&&(m.removeListener(\"disconnect\",c),c=void 0),a||(a=this.onConnect.bind(this),m.on(\"connect\",a))))}})}var kwt={coinbaseWallet:{id:\"coinbaseWallet\",name:\"Coinbase Wallet\",provider(e){return e?.coinbaseWalletExtension?e.coinbaseWalletExtension:sY(e,\"isCoinbaseWallet\")}},metaMask:{id:\"metaMask\",name:\"MetaMask\",provider(e){return sY(e,t=>{if(!t.isMetaMask||t.isBraveWallet&&!t._events&&!t._state)return!1;let n=[\"isApexWallet\",\"isAvalanche\",\"isBitKeep\",\"isBlockWallet\",\"isKuCoinWallet\",\"isMathWallet\",\"isOkxWallet\",\"isOKExWallet\",\"isOneInchIOSWallet\",\"isOneInchAndroidWallet\",\"isOpera\",\"isPhantom\",\"isPortal\",\"isRabby\",\"isTokenPocket\",\"isTokenary\",\"isUniswapWallet\",\"isZerion\"];for(let r of n)if(t[r])return!1;return!0})}},phantom:{id:\"phantom\",name:\"Phantom\",provider(e){return e?.phantom?.ethereum?e.phantom?.ethereum:sY(e,\"isPhantom\")}}};function sY(e,t){function n(o){return typeof t==\"function\"?t(o):typeof t==\"string\"?o[t]:!0}let r=e.ethereum;if(r?.providers)return r.providers.find(o=>n(o));if(r&&n(r))return r}f();Qke();gn();f();var Owt=e=>(t,n,r)=>{let o=r.subscribe;return r.subscribe=(a,c,l)=>{let d=a;if(c){let m=l?.equalityFn||Object.is,h=a(r.getState());d=g=>{let y=a(g);if(!m(h,y)){let w=h;c(h=y,w)}},l?.fireImmediately&&c(h,h)}return o(d)},e(t,n,r)},Jke=Owt;function Nwt(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var i;let a=l=>l===null?null:JSON.parse(l,t?.reviver),c=(i=n.getItem(o))!=null?i:null;return c instanceof Promise?c.then(a):a(c)},setItem:(o,i)=>n.setItem(o,JSON.stringify(i,t?.replacer)),removeItem:o=>n.removeItem(o)}}var lde=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(r){return lde(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return lde(r)(n)}}}},Pwt=(e,t)=>(n,r,o)=>{let i={storage:Nwt(()=>localStorage),partialize:x=>x,version:0,merge:(x,I)=>({...I,...x}),...t},a=!1,c=new Set,l=new Set,d=i.storage;if(!d)return e((...x)=>{console.warn(`[zustand persist middleware] Unable to update item \\'${i.name}\\', the given storage is currently unavailable.`),n(...x)},r,o);let m=()=>{let x=i.partialize({...r()});return d.setItem(i.name,{state:x,version:i.version})},h=o.setState;o.setState=(x,I)=>{h(x,I),m()};let g=e((...x)=>{n(...x),m()},r,o);o.getInitialState=()=>g;let y,w=()=>{var x,I;if(!d)return;a=!1,c.forEach(M=>{var B;return M((B=r())!=null?B:g)});let C=((I=i.onRehydrateStorage)==null?void 0:I.call(i,(x=r())!=null?x:g))||void 0;return lde(d.getItem.bind(d))(i.name).then(M=>{if(M)if(typeof M.version==\"number\"&&M.version!==i.version){if(i.migrate)return[!0,i.migrate(M.state,M.version)];console.error(\"State loaded from storage couldn\\'t be migrated since no migrate function was provided\")}else return[!1,M.state];return[!1,void 0]}).then(M=>{var B;let[z,G]=M;if(y=i.merge(G,(B=r())!=null?B:g),n(y,!0),z)return m()}).then(()=>{C?.(y,void 0),y=r(),a=!0,l.forEach(M=>M(y))}).catch(M=>{C?.(void 0,M)})};return o.persist={setOptions:x=>{i={...i,...x},x.storage&&(d=x.storage)},clearStorage:()=>{d?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>w(),hasHydrated:()=>a,onHydrate:x=>(c.add(x),()=>{c.delete(x)}),onFinishHydration:x=>(l.add(x),()=>{l.delete(x)})},i.skipHydration||w(),y||g},Xke=Pwt;f();var $ke=e=>{let t,n=new Set,r=(d,m)=>{let h=typeof d==\"function\"?d(t):d;if(!Object.is(h,t)){let g=t;t=m??(typeof h!=\"object\"||h===null)?h:Object.assign({},t,h),n.forEach(y=>y(t,g))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>l,subscribe:d=>(n.add(d),()=>n.delete(d))},l=t=e(r,o,c);return c},cY=e=>e?$ke(e):$ke;f();J_();var pde=class{constructor(t){Object.defineProperty(this,\"uid\",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,\"_emitter\",{enumerable:!0,configurable:!0,writable:!0,value:new qg.default})}on(t,n){this._emitter.on(t,n)}once(t,n){this._emitter.once(t,n)}off(t,n){this._emitter.off(t,n)}emit(t,...n){let r=n[0];this._emitter.emit(t,{uid:this.uid,...r})}listenerCount(t){return this._emitter.listenerCount(t)}};function nOe(e){return new pde(e)}f();f();function hde(e,t){return JSON.parse(e,(n,r)=>{let o=r;return o?.__type===\"bigint\"&&(o=BigInt(o.value)),o?.__type===\"Map\"&&(o=new Map(o.value)),t?.(n,o)??o})}f();function rOe(e,t){return e.slice(0,t).join(\".\")||\".\"}function oOe(e,t){let{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function Bwt(e,t){let n=typeof e==\"function\",r=typeof t==\"function\",o=[],i=[];return function(c,l){if(typeof l==\"object\")if(o.length){let d=oOe(o,this);d===0?o[o.length]=this:(o.splice(d),i.splice(d)),i[i.length]=c;let m=oOe(o,l);if(m!==0)return r?t.call(this,c,l,rOe(i,m)):`[ref=${rOe(i,m)}]`}else o[0]=l,i[0]=c;return n?e.call(this,c,l):l}}function mde(e,t,n,r){return JSON.stringify(e,Bwt((o,i)=>{let a=i;return typeof a==\"bigint\"&&(a={__type:\"bigint\",value:i.toString()}),a instanceof Map&&(a={__type:\"Map\",value:Array.from(i.entries())}),t?.(o,a)??a},r),n??void 0)}function gO(e){let{deserialize:t=hde,key:n=\"wagmi\",serialize:r=mde,storage:o=lY}=e;function i(a){return a instanceof Promise?a.then(c=>c).catch(()=>null):a}return{...o,key:n,async getItem(a,c){let l=o.getItem(`${n}.${a}`),d=await i(l);return d?t(d)??null:c??null},async setItem(a,c){let l=`${n}.${a}`;c===null?await i(o.removeItem(l)):await i(o.setItem(l,r(c)))},async removeItem(a){await i(o.removeItem(`${n}.${a}`))}}}var lY={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function iOe(){let e=typeof window<\"u\"&&window.localStorage?window.localStorage:lY;return{getItem(t){return e.getItem(t)},removeItem(t){e.removeItem(t)},setItem(t,n){try{e.setItem(t,n)}catch{}}}}f();var dY=256,fY;function aOe(e=11){if(!fY||dY+e>256*2){fY=\"\",dY=0;for(let t=0;t<256;t++)fY+=(256+Math.random()*256|0).toString(16).substring(1)}return fY.substring(dY,dY+++e)}function pY(e){let{multiInjectedProviderDiscovery:t=!0,storage:n=gO({storage:iOe()}),syncConnectedChain:r=!0,ssr:o=!1,...i}=e,a=typeof window<\"u\"&&t?ude():void 0,c=cY(()=>i.chains),l=cY(()=>{let G=[],J=new Set;for(let ne of i.connectors??[]){let ie=d(ne);if(G.push(ie),!o&&ie.rdns){let ae=typeof ie.rdns==\"string\"?[ie.rdns]:ie.rdns;for(let te of ae)J.add(te)}}if(!o&&a){let ne=a.getProviders();for(let ie of ne)J.has(ie.info.rdns)||G.push(d(m(ie)))}return G});function d(G){let J=nOe(aOe()),ne={...G({emitter:J,chains:c.getState(),storage:n,transports:i.transports}),emitter:J,uid:J.uid};return J.on(\"connect\",B),ne.setup?.(),ne}function m(G){let{info:J}=G,ne=G.provider;return Gg({target:{...J,id:J.rdns,provider:ne}})}let h=new Map;function g(G={}){let J=G.chainId??I.getState().chainId,ne=c.getState().find(ae=>ae.id===J);if(G.chainId&&!ne)throw new Du;{let ae=h.get(I.getState().chainId);if(ae&&!ne)return ae;if(!ne)throw new Du}{let ae=h.get(J);if(ae)return ae}let ie;if(i.client)ie=i.client({chain:ne});else{let ae=ne.id,te=c.getState().map(F=>F.id),Z={},X=Object.entries(i);for(let[F,R]of X)if(!(F===\"chains\"||F===\"client\"||F===\"connectors\"||F===\"transports\"))if(typeof R==\"object\")if(ae in R)Z[F]=R[ae];else{if(te.some(U=>U in R))continue;Z[F]=R}else Z[F]=R;ie=bE({...Z,chain:ne,batch:Z.batch??{multicall:!0},transport:F=>i.transports[ae]({...F,connectors:l})})}return h.set(J,ie),ie}function y(){return{chainId:c.getState()[0].id,connections:new Map,current:null,status:\"disconnected\"}}let w,x=\"0.0.0-canary-\";sO.startsWith(x)?w=Number.parseInt(sO.replace(x,\"\"),10):w=Number.parseInt(sO.split(\".\")[0]??\"0\",10);let I=cY(Jke(n?Xke(y,{migrate(G,J){if(J===w)return G;let ne=y(),ie=C(G,ne.chainId);return{...ne,chainId:ie}},name:\"store\",partialize(G){return{connections:{__type:\"Map\",value:Array.from(G.connections.entries()).map(([J,ne])=>{let{id:ie,name:ae,type:te,uid:Z}=ne.connector;return[J,{...ne,connector:{id:ie,name:ae,type:te,uid:Z}}]})},chainId:G.chainId,current:G.current}},merge(G,J){typeof G==\"object\"&&G&&\"status\"in G&&delete G.status;let ne=C(G,J.chainId);return{...J,...G,chainId:ne}},skipHydration:o,storage:n,version:w}):y));I.setState(y());function C(G,J){return G&&typeof G==\"object\"&&\"chainId\"in G&&typeof G.chainId==\"number\"&&c.getState().some(ne=>ne.id===G.chainId)?G.chainId:J}r&&I.subscribe(({connections:G,current:J})=>J?G.get(J)?.chainId:void 0,G=>{if(c.getState().some(ne=>ne.id===G))return I.setState(ne=>({...ne,chainId:G??ne.chainId}))}),a?.subscribe(G=>{let J=new Set,ne=new Set;for(let ae of l.getState())if(J.add(ae.id),ae.rdns){let te=typeof ae.rdns==\"string\"?[ae.rdns]:ae.rdns;for(let Z of te)ne.add(Z)}let ie=[];for(let ae of G){if(ne.has(ae.info.rdns))continue;let te=d(m(ae));J.has(te.id)||ie.push(te)}n&&!I.persist.hasHydrated()||l.setState(ae=>[...ae,...ie],!0)});function M(G){I.setState(J=>{let ne=J.connections.get(G.uid);return ne?{...J,connections:new Map(J.connections).set(G.uid,{accounts:G.accounts??ne.accounts,chainId:G.chainId??ne.chainId,connector:ne.connector})}:J})}function B(G){I.getState().status===\"connecting\"||I.getState().status===\"reconnecting\"||I.setState(J=>{let ne=l.getState().find(ie=>ie.uid===G.uid);return ne?(ne.emitter.listenerCount(\"connect\")&&ne.emitter.off(\"connect\",M),ne.emitter.listenerCount(\"change\")||ne.emitter.on(\"change\",M),ne.emitter.listenerCount(\"disconnect\")||ne.emitter.on(\"disconnect\",z),{...J,connections:new Map(J.connections).set(G.uid,{accounts:G.accounts,chainId:G.chainId,connector:ne}),current:G.uid,status:\"connected\"}):J})}function z(G){I.setState(J=>{let ne=J.connections.get(G.uid);if(ne){let ae=ne.connector;ae.emitter.listenerCount(\"change\")&&ne.connector.emitter.off(\"change\",M),ae.emitter.listenerCount(\"disconnect\")&&ne.connector.emitter.off(\"disconnect\",z),ae.emitter.listenerCount(\"connect\")||ne.connector.emitter.on(\"connect\",B)}if(J.connections.delete(G.uid),J.connections.size===0)return{...J,connections:new Map,current:null,status:\"disconnected\"};let ie=J.connections.values().next().value;return{...J,connections:new Map(J.connections),current:ie.connector.uid}})}return{get chains(){return c.getState()},get connectors(){return l.getState()},storage:n,getClient:g,get state(){return I.getState()},setState(G){let J;typeof G==\"function\"?J=G(I.getState()):J=G;let ne=y();typeof J!=\"object\"&&(J=ne),Object.keys(ne).some(ae=>!(ae in J))&&(J=ne),I.setState(J,!0)},subscribe(G,J,ne){return I.subscribe(G,J,ne?{...ne,fireImmediately:ne.emitImmediately}:void 0)},_internal:{mipd:a,async revalidate(){let G=I.getState(),J=G.connections,ne=G.current;for(let[,ie]of J){let ae=ie.connector;ae.isAuthorized&&await ae.isAuthorized()||(J.delete(ae.uid),ne===ae.uid&&(ne=null))}I.setState(ie=>({...ie,connections:J,current:ne}))},store:I,ssr:!!o,syncConnectedChain:r,transports:i.transports,chains:{setState(G){let J=typeof G==\"function\"?G(c.getState()):G;if(J.length!==0)return c.setState(J,!0)},subscribe(G){return c.subscribe(G)}},connectors:{providerDetailToConnector:m,setup:d,setState(G){return l.setState(typeof G==\"function\"?G(l.getState()):G,!0)},subscribe(G){return l.subscribe(G)}},events:{change:M,connect:B,disconnect:z}}}}f();function gde(e,t){let{initialState:n,reconnectOnMount:r}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,chainId:e.chains.some(o=>o.id===n.chainId)?n.chainId:e.chains[0].id,connections:r?n.connections:new Map,status:r?\"reconnecting\":\"disconnected\"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(o=>{let i=new Set;for(let l of o??[])if(l.rdns){let d=Array.isArray(l.rdns)?l.rdns:[l.rdns];for(let m of d)i.add(m)}let a=[],c=e._internal.mipd?.getProviders()??[];for(let l of c){if(i.has(l.info.rdns))continue;let d=e._internal.connectors.providerDetailToConnector(l),m=e._internal.connectors.setup(d);a.push(m)}return[...o,...a]})),r?jke(e):e.storage&&e.setState(o=>({...o,connections:new Map}))}}}gn();f();var hY={getItem(e){return typeof window>\"u\"?null:yde(document.cookie,e)??null},setItem(e,t){typeof window>\"u\"||(document.cookie=`${e}=${t};path=/;samesite=Lax`)},removeItem(e){typeof window>\"u\"||(document.cookie=`${e}=;max-age=-1;path=/`)}};function yde(e,t){let n=e.split(\"; \").find(r=>r.startsWith(`${t}=`));if(n)return n.substring(t.length+1)}f();function bde(e){let{chain:t}=e,n=t.rpcUrls.default.http[0];if(!e.transports)return[n];let r=e.transports?.[t.id]?.({chain:t});return(r?.value?.transports||[r]).map(({value:i})=>i?.url||n)}var mY=ge(at(),1);function sOe(e){let{children:t,config:n,initialState:r,reconnectOnMount:o=!0}=e,{onMount:i}=gde(n,{initialState:r,reconnectOnMount:o});n._internal.ssr||i();let a=(0,mY.useRef)(!0);return(0,mY.useEffect)(()=>{if(a.current&&n._internal.ssr)return i(),()=>{a.current=!1}},[]),t}var TL=(0,_L.createContext)(void 0);function gY(e){let{children:t,config:n}=e,r={value:n};return(0,_L.createElement)(sOe,e,(0,_L.createElement)(TL.Provider,r,t))}f();f();f();var cOe=\"2.18.2\";var uOe=()=>`wagmi@${cOe}`;var yY=class extends Gp{constructor(){super(...arguments),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WagmiError\"})}get docsBaseUrl(){return\"https://wagmi.sh/react\"}get version(){return uOe()}};f();var C3=class extends yY{constructor(){super(\"`useConfig` must be used within `WagmiProvider`.\",{docsPath:\"/api/WagmiProvider\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WagmiProviderNotFoundError\"})}};f();f();var lOe=ge(at(),1);function wr(e={}){let t=e.config??(0,lOe.useContext)(TL);if(!t)throw new C3;return t}f();f();f();function vde(e,t){let{onChange:n}=t;return e._internal.chains.subscribe((r,o)=>{n(r,o)})}var bY=ge(at(),1),vOe=ge(bOe(),1),wde=e=>typeof e==\"object\"&&!Array.isArray(e);function wOe(e,t,n=t,r=nm){let o=(0,bY.useRef)([]),i=(0,vOe.useSyncExternalStoreWithSelector)(e,t,n,a=>a,(a,c)=>{if(wde(a)&&wde(c)&&o.current.length){for(let l of o.current)if(!r(a[l],c[l]))return!1;return!0}return r(a,c)});return(0,bY.useMemo)(()=>{if(wde(i)){let a={...i},c={};for(let[l,d]of Object.entries(a))c={...c,[l]:{configurable:!1,enumerable:!0,get:()=>(o.current.includes(l)||o.current.push(l),d)}};return Object.defineProperties(a,c),a}return i},[i])}function xr(e={}){let t=wr(e);return wOe(n=>ide(t,{onChange:n}),()=>AL(t))}f();f();f();function xde(e,t){return lk(e,t)}function Ede(e){return JSON.stringify(e,(t,n)=>Hwt(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):typeof n==\"bigint\"?n.toString():n)}function Hwt(e){if(!xOe(e))return!1;let t=e.constructor;if(typeof t>\"u\")return!0;let n=t.prototype;return!(!xOe(n)||!n.hasOwnProperty(\"isPrototypeOf\"))}function xOe(e){return Object.prototype.toString.call(e)===\"[object Object]\"}function Kg(e){let{_defaulted:t,behavior:n,gcTime:r,initialData:o,initialDataUpdatedAt:i,maxPages:a,meta:c,networkMode:l,queryFn:d,queryHash:m,queryKey:h,queryKeyHashFn:g,retry:y,retryDelay:w,structuralSharing:x,getPreviousPageParam:I,getNextPageParam:C,initialPageParam:M,_optimisticResults:B,enabled:z,notifyOnChangeProps:G,placeholderData:J,refetchInterval:ne,refetchIntervalInBackground:ie,refetchOnMount:ae,refetchOnReconnect:te,refetchOnWindowFocus:Z,retryOnMount:X,select:F,staleTime:R,suspense:O,throwOnError:U,config:P,connector:L,query:W,...q}=e;return q}f();function Ade(e){return{mutationFn(t){return xke(e,t)},mutationKey:[\"connect\"]}}f();function Sde(e){return{mutationFn(t){return Mke(e,t)},mutationKey:[\"disconnect\"]}}f();function _de(e,t={}){return{async queryFn({queryKey:n}){let{address:r,scopeKey:o,...i}=n[1];if(!r)throw new Error(\"address is required\");return await Uke(e,{...i,address:r})??null},queryKey:EOe(t)}}function EOe(e={}){return[\"balance\",Kg(e)]}f();function Tde(e,t){return{async queryFn({queryKey:n}){let{scopeKey:r,...o}=n[1];return await Fke(e,o)},queryKey:AOe(t),retry(n,r){return r instanceof yE?!1:n<3}}}function AOe(e){return[\"callsStatus\",Kg(e)]}f();function Cde(e,t={}){return{async queryFn({queryKey:n}){let{scopeKey:r,...o}=n[1];return await Hke(e,o)},queryKey:SOe(t),retry(n,r){return r instanceof yE?!1:n<3}}}function SOe(e={}){return[\"capabilities\",Kg(e)]}f();function Rde(e,t={}){return{gcTime:0,async queryFn({queryKey:n}){let{connector:r}=t,{connectorUid:o,scopeKey:i,...a}=n[1];return zke(e,{...a,connector:r})},queryKey:_Oe(t)}}function _Oe(e={}){let{connector:t,...n}=e;return[\"walletClient\",{...Kg(n),connectorUid:t?.uid}]}f();function Ide(e,t={}){return{async queryFn({queryKey:n}){let r=t.abi;if(!r)throw new Error(\"abi is required\");let{functionName:o,scopeKey:i,...a}=n[1],c=(()=>{let l=n[1];if(l.address)return{address:l.address};if(l.code)return{code:l.code};throw new Error(\"address or code is required\")})();if(!o)throw new Error(\"functionName is required\");return tY(e,{abi:r,functionName:o,args:a.args,...c,...a})},queryKey:TOe(t)}}function TOe(e={}){let{abi:t,...n}=e;return[\"readContract\",Kg(n)]}f();function kde(e){return{mutationFn(t){return Wke(e,t)},mutationKey:[\"sendCalls\"]}}f();function Ode(e){return{mutationFn(t){return Vke(e,t)},mutationKey:[\"sendTransaction\"]}}f();function Nde(e){return{mutationFn(t){return Gke(e,t)},mutationKey:[\"showCallsStatus\"]}}f();function Pde(e){return{mutationFn(t){return qke(e,t)},mutationKey:[\"switchChain\"]}}f();function Mde(e,t={}){return{async queryFn({queryKey:n}){let{hash:r,...o}=n[1];if(!r)throw new Error(\"hash is required\");return Vg(e,{...o,onReplaced:t.onReplaced,hash:r})},queryKey:COe(t)}}function COe(e={}){let{onReplaced:t,...n}=e;return[\"waitForTransactionReceipt\",Kg(n)]}f();function Yg(e){let t=Hp({...e,queryKeyHashFn:Ede});return t.queryKey=e.queryKey,t}f();var ROe=ge(at(),1);function Bd(e={}){let t=wr(e);return(0,ROe.useSyncExternalStore)(n=>ade(t,{onChange:n}),()=>nY(t),()=>nY(t))}function Dde(e={}){let{address:t,query:n={}}=e,r=wr(e),o=Bd({config:r}),i=_de(r,{...e,chainId:e.chainId??o}),a=!!(t&&(n.enabled??!0));return Yg({...n,...i,enabled:a})}f();function CL(e){let{query:t={}}=e,n=wr(e),r=Tde(n,e);return Yg({...t,...r})}f();function Bde(e={}){let{account:t,query:n={}}=e,{address:r}=xr(),o=wr(e),i=Cde(o,{...e,account:t??r});return Yg({...n,...i})}f();var IOe=ge(at(),1);function kOe(e={}){let t=wr(e);return(0,IOe.useSyncExternalStore)(n=>vde(t,{onChange:n}),()=>rY(t),()=>rY(t))}f();var POe=ge(at(),1);f();var OOe=ge(at(),1);function NOe(e={}){let t=wr(e);return(0,OOe.useSyncExternalStore)(n=>cde(t,{onChange:n}),()=>aY(t),()=>aY(t))}function RL(e={}){let{mutation:t}=e,n=wr(e),r=Ade(n),{mutate:o,mutateAsync:i,...a}=Zh({...t,...r});return(0,POe.useEffect)(()=>n.subscribe(({status:c})=>c,(c,l)=>{l===\"connected\"&&c===\"disconnected\"&&a.reset()}),[n,a.reset]),{...a,connect:o,connectAsync:i,connectors:NOe({config:n})}}f();var MOe=ge(at(),1);function DOe(e={}){let t=wr(e);return(0,MOe.useSyncExternalStore)(n=>sde(t,{onChange:n}),()=>hO(t),()=>hO(t))}f();function IL(e={}){let{mutation:t}=e,n=wr(e),r=Sde(n),{mutate:o,mutateAsync:i,...a}=Zh({...t,...r});return{...a,connectors:DOe({config:n}).map(c=>c.connector),disconnect:o,disconnectAsync:i}}f();function vY(e={}){let{abi:t,address:n,functionName:r,query:o={}}=e,i=e.code,a=wr(e),c=Bd({config:a}),l=Ide(a,{...e,chainId:e.chainId??c}),d=!!((n||i)&&t&&r&&(o.enabled??!0));return Yg({...o,...l,enabled:d,structuralSharing:o.structuralSharing??xde})}f();function kL(e={}){let{mutation:t}=e,n=wr(e),r=kde(n),{mutate:o,mutateAsync:i,...a}=Zh({...t,...r});return{...a,sendCalls:o,sendCallsAsync:i}}f();function OL(e={}){let{mutation:t}=e,n=wr(e),r=Ode(n),{mutate:o,mutateAsync:i,...a}=Zh({...t,...r});return{...a,sendTransaction:o,sendTransactionAsync:i}}f();function NL(e={}){let{mutation:t}=e,n=wr(e),r=Nde(n),{mutate:o,mutateAsync:i,...a}=Zh({...t,...r});return{...a,showCallsStatus:o,showCallsStatusAsync:i}}f();function R3(e={}){let{mutation:t}=e,n=wr(e),r=Pde(n),{mutate:o,mutateAsync:i,...a}=Zh({...t,...r});return{...a,chains:kOe({config:n}),switchChain:o,switchChainAsync:i}}f();function Lde(e={}){let{hash:t,query:n={}}=e,r=wr(e),o=Bd({config:r}),i=Mde(r,{...e,chainId:e.chainId??o}),a=!!(t&&(n.enabled??!0));return Yg({...n,...i,enabled:a})}f();var wY=ge(at(),1);function Ude(e={}){let{query:t={},...n}=e,r=wr(n),o=tE(),{address:i,connector:a,status:c}=xr({config:r}),l=Bd({config:r}),d=e.connector??a,{queryKey:m,...h}=Rde(r,{...e,chainId:e.chainId??l,connector:e.connector??a}),g=!!((c===\"connected\"||c===\"reconnecting\"&&d?.getProvider)&&(t.enabled??!0)),y=(0,wY.useRef)(i);return(0,wY.useEffect)(()=>{let w=y.current;!i&&w?(o.removeQueries({queryKey:m}),y.current=void 0):i!==w&&(o.invalidateQueries({queryKey:m}),y.current=i)},[i,o]),Yg({...t,...h,queryKey:m,enabled:g,staleTime:Number.POSITIVE_INFINITY})}f();f();gn();function RU(e={}){let t,n,r,o;return i=>({id:\"baseAccount\",name:\"Base Account\",rdns:\"app.base.account\",type:\"baseAccount\",async connect({chainId:a,withCapabilities:c}={}){try{let l=await this.getProvider(),d=(await l.request({method:\"eth_requestAccounts\",params:[]})).map(h=>rr(h));n||(n=this.onAccountsChanged.bind(this),l.on(\"accountsChanged\",n)),r||(r=this.onChainChanged.bind(this),l.on(\"chainChanged\",r)),o||(o=this.onDisconnect.bind(this),l.on(\"disconnect\",o));let m=await this.getChainId();return a&&m!==a&&(m=(await this.switchChain({chainId:a}).catch(g=>{if(g.code===yo.code)throw g;return{id:m}}))?.id??m),{accounts:c?d.map(h=>({address:h,capabilities:{}})):d,chainId:m}}catch(l){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(l.message)?new yo(l):l}},async disconnect(){let a=await this.getProvider();n&&(a.removeListener(\"accountsChanged\",n),n=void 0),r&&(a.removeListener(\"chainChanged\",r),r=void 0),o&&(a.removeListener(\"disconnect\",o),o=void 0),a.disconnect()},async getAccounts(){return(await(await this.getProvider()).request({method:\"eth_accounts\"})).map(c=>rr(c))},async getChainId(){let c=await(await this.getProvider()).request({method:\"eth_chainId\"});return Number(c)},async getProvider(){if(!t){let a=typeof e.preference==\"string\"?{options:e.preference}:{...e.preference,options:e.preference?.options??\"all\"},{createBaseAccountSDK:c}=await Promise.resolve().then(()=>($9e(),X9e));t=c({...e,appChainIds:i.chains.map(d=>d.id),preference:a}).getProvider()}return t},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:a,chainId:c}){let l=i.chains.find(m=>m.id===c);if(!l)throw new Is(new Du);let d=await this.getProvider();try{return await d.request({method:\"wallet_switchEthereumChain\",params:[{chainId:Pe(l.id)}]}),l}catch(m){if(m.code===4902)try{let h;a?.blockExplorerUrls?h=a.blockExplorerUrls:h=l.blockExplorers?.default.url?[l.blockExplorers?.default.url]:[];let g;a?.rpcUrls?.length?g=a.rpcUrls:g=[l.rpcUrls.default?.http[0]??\"\"];let y={blockExplorerUrls:h,chainId:Pe(c),chainName:a?.chainName??l.name,iconUrls:a?.iconUrls,nativeCurrency:a?.nativeCurrency??l.nativeCurrency,rpcUrls:g};return await d.request({method:\"wallet_addEthereumChain\",params:[y]}),l}catch(h){throw new yo(h)}throw new Is(m)}},onAccountsChanged(a){a.length===0?this.onDisconnect():i.emitter.emit(\"change\",{accounts:a.map(c=>rr(c))})},onChainChanged(a){let c=Number(a);i.emitter.emit(\"change\",{chainId:c})},async onDisconnect(a){i.emitter.emit(\"disconnect\");let c=await this.getProvider();n&&(c.removeListener(\"accountsChanged\",n),n=void 0),r&&(c.removeListener(\"chainChanged\",r),r=void 0),o&&(c.removeListener(\"disconnect\",o),o=void 0)}})}f();gn();kT.type=\"coinbaseWallet\";function kT(e={}){return e.version===\"3\"||e.headlessMode?iDt(e):oDt(e)}function oDt(e){let t,n,r,o;return i=>({id:\"coinbaseWalletSDK\",name:\"Coinbase Wallet\",rdns:\"com.coinbase.wallet\",type:kT.type,async connect({chainId:a,withCapabilities:c,...l}={}){try{let d=await this.getProvider(),m=(await d.request({method:\"eth_requestAccounts\",params:\"instantOnboarding\"in l&&l.instantOnboarding?[{onboarding:\"instant\"}]:[]})).map(g=>rr(g));n||(n=this.onAccountsChanged.bind(this),d.on(\"accountsChanged\",n)),r||(r=this.onChainChanged.bind(this),d.on(\"chainChanged\",r)),o||(o=this.onDisconnect.bind(this),d.on(\"disconnect\",o));let h=await this.getChainId();return a&&h!==a&&(h=(await this.switchChain({chainId:a}).catch(y=>{if(y.code===yo.code)throw y;return{id:h}}))?.id??h),{accounts:c?m.map(g=>({address:g,capabilities:{}})):m,chainId:h}}catch(d){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(d.message)?new yo(d):d}},async disconnect(){let a=await this.getProvider();n&&(a.removeListener(\"accountsChanged\",n),n=void 0),r&&(a.removeListener(\"chainChanged\",r),r=void 0),o&&(a.removeListener(\"disconnect\",o),o=void 0),a.disconnect(),a.close?.()},async getAccounts(){return(await(await this.getProvider()).request({method:\"eth_accounts\"})).map(c=>rr(c))},async getChainId(){let c=await(await this.getProvider()).request({method:\"eth_chainId\"});return Number(c)},async getProvider(){if(!t){let a=typeof e.preference==\"string\"?{options:e.preference}:{...e.preference,options:e.preference?.options??\"all\"},{createCoinbaseWalletSDK:c}=await Promise.resolve().then(()=>(KFe(),qFe));t=c({...e,appChainIds:i.chains.map(d=>d.id),preference:a}).getProvider()}return t},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:a,chainId:c}){let l=i.chains.find(m=>m.id===c);if(!l)throw new Is(new Du);let d=await this.getProvider();try{return await d.request({method:\"wallet_switchEthereumChain\",params:[{chainId:Pe(l.id)}]}),l}catch(m){if(m.code===4902)try{let h;a?.blockExplorerUrls?h=a.blockExplorerUrls:h=l.blockExplorers?.default.url?[l.blockExplorers?.default.url]:[];let g;a?.rpcUrls?.length?g=a.rpcUrls:g=[l.rpcUrls.default?.http[0]??\"\"];let y={blockExplorerUrls:h,chainId:Pe(c),chainName:a?.chainName??l.name,iconUrls:a?.iconUrls,nativeCurrency:a?.nativeCurrency??l.nativeCurrency,rpcUrls:g};return await d.request({method:\"wallet_addEthereumChain\",params:[y]}),l}catch(h){throw new yo(h)}throw new Is(m)}},onAccountsChanged(a){a.length===0?this.onDisconnect():i.emitter.emit(\"change\",{accounts:a.map(c=>rr(c))})},onChainChanged(a){let c=Number(a);i.emitter.emit(\"change\",{chainId:c})},async onDisconnect(a){i.emitter.emit(\"disconnect\");let c=await this.getProvider();n&&(c.removeListener(\"accountsChanged\",n),n=void 0),r&&(c.removeListener(\"chainChanged\",r),r=void 0),o&&(c.removeListener(\"disconnect\",o),o=void 0)}})}function iDt(e){let n,r,o,i,a;return c=>({id:\"coinbaseWalletSDK\",name:\"Coinbase Wallet\",rdns:\"com.coinbase.wallet\",type:kT.type,async connect({chainId:l,withCapabilities:d}={}){try{let m=await this.getProvider(),h=(await m.request({method:\"eth_requestAccounts\"})).map(y=>rr(y));o||(o=this.onAccountsChanged.bind(this),m.on(\"accountsChanged\",o)),i||(i=this.onChainChanged.bind(this),m.on(\"chainChanged\",i)),a||(a=this.onDisconnect.bind(this),m.on(\"disconnect\",a));let g=await this.getChainId();return l&&g!==l&&(g=(await this.switchChain({chainId:l}).catch(w=>{if(w.code===yo.code)throw w;return{id:g}}))?.id??g),{accounts:d?h.map(y=>({address:y,capabilities:{}})):h,chainId:g}}catch(m){throw/(user closed modal|accounts received is empty|user denied account)/i.test(m.message)?new yo(m):m}},async disconnect(){let l=await this.getProvider();o&&(l.removeListener(\"accountsChanged\",o),o=void 0),i&&(l.removeListener(\"chainChanged\",i),i=void 0),a&&(l.removeListener(\"disconnect\",a),a=void 0),l.disconnect(),l.close()},async getAccounts(){return(await(await this.getProvider()).request({method:\"eth_accounts\"})).map(d=>rr(d))},async getChainId(){let d=await(await this.getProvider()).request({method:\"eth_chainId\"});return Number(d)},async getProvider(){if(!r){let l=await(async()=>{let{default:y}=await Promise.resolve().then(()=>ge(eJe(),1));return typeof y!=\"function\"&&typeof y.default==\"function\"?y.default:y})();n=new l({...e,reloadOnDisconnect:!1});let d=n.walletExtension?.getChainId(),m=c.chains.find(y=>e.chainId?y.id===e.chainId:y.id===d)||c.chains[0],h=e.chainId||m?.id,g=e.jsonRpcUrl||m?.rpcUrls.default.http[0];r=n.makeWeb3Provider(g,h)}return r},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:l,chainId:d}){let m=c.chains.find(g=>g.id===d);if(!m)throw new Is(new Du);let h=await this.getProvider();try{return await h.request({method:\"wallet_switchEthereumChain\",params:[{chainId:Pe(m.id)}]}),m}catch(g){if(g.code===4902)try{let y;l?.blockExplorerUrls?y=l.blockExplorerUrls:y=m.blockExplorers?.default.url?[m.blockExplorers?.default.url]:[];let w;l?.rpcUrls?.length?w=l.rpcUrls:w=[m.rpcUrls.default?.http[0]??\"\"];let x={blockExplorerUrls:y,chainId:Pe(d),chainName:l?.chainName??m.name,iconUrls:l?.iconUrls,nativeCurrency:l?.nativeCurrency??m.nativeCurrency,rpcUrls:w};return await h.request({method:\"wallet_addEthereumChain\",params:[x]}),m}catch(y){throw new yo(y)}throw new Is(g)}},onAccountsChanged(l){l.length===0?this.onDisconnect():c.emitter.emit(\"change\",{accounts:l.map(d=>rr(d))})},onChainChanged(l){let d=Number(l);c.emitter.emit(\"change\",{chainId:d})},async onDisconnect(l){c.emitter.emit(\"disconnect\");let d=await this.getProvider();o&&(d.removeListener(\"accountsChanged\",o),o=void 0),i&&(d.removeListener(\"chainChanged\",i),i=void 0),a&&(d.removeListener(\"disconnect\",a),a=void 0)}})}f();gn();qH.type=\"metaMask\";function qH(e={}){let t,n,r,o,i,a,c,l;return d=>({id:\"metaMaskSDK\",name:\"MetaMask\",rdns:[\"io.metamask\",\"io.metamask.mobile\"],type:qH.type,async setup(){let m=await this.getProvider();m?.on&&(a||(a=this.onConnect.bind(this),m.on(\"connect\",a)),o||(o=this.onAccountsChanged.bind(this),m.on(\"accountsChanged\",o)))},async connect({chainId:m,isReconnecting:h,withCapabilities:g}={}){let y=await this.getProvider();c||(c=this.onDisplayUri,y.on(\"display_uri\",c));let w=[];h&&(w=await this.getAccounts().catch(()=>[]));try{let x,I;w?.length||(e.connectAndSign||e.connectWith?(e.connectAndSign?x=await t.connectAndSign({msg:e.connectAndSign}):e.connectWith&&(I=await t.connectWith({method:e.connectWith.method,params:e.connectWith.params})),w=await this.getAccounts()):w=(await t.connect()).map(B=>rr(B)));let C=await this.getChainId();return m&&C!==m&&(C=(await this.switchChain({chainId:m}).catch(B=>{if(B.code===yo.code)throw B;return{id:C}}))?.id??C),c&&(y.removeListener(\"display_uri\",c),c=void 0),x?y.emit(\"connectAndSign\",{accounts:w,chainId:C,signResponse:x}):I&&y.emit(\"connectWith\",{accounts:w,chainId:C,connectWithResponse:I}),a&&(y.removeListener(\"connect\",a),a=void 0),o||(o=this.onAccountsChanged.bind(this),y.on(\"accountsChanged\",o)),i||(i=this.onChainChanged.bind(this),y.on(\"chainChanged\",i)),l||(l=this.onDisconnect.bind(this),y.on(\"disconnect\",l)),{accounts:g?w.map(M=>({address:M,capabilities:{}})):w,chainId:C}}catch(x){let I=x;throw I.code===yo.code?new yo(I):I.code===Vh.code?new Vh(I):I}},async disconnect(){let m=await this.getProvider();i&&(m.removeListener(\"chainChanged\",i),i=void 0),l&&(m.removeListener(\"disconnect\",l),l=void 0),a||(a=this.onConnect.bind(this),m.on(\"connect\",a)),await t.terminate()},async getAccounts(){return(await(await this.getProvider()).request({method:\"eth_accounts\"})).map(g=>rr(g))},async getChainId(){let m=await this.getProvider(),h=m.getChainId()||await m?.request({method:\"eth_chainId\"});return Number(h)},async getProvider(){async function m(){let h=await(async()=>{let{default:x}=await Promise.resolve().then(()=>(Nrt(),Ort));return typeof x!=\"function\"&&typeof x.default==\"function\"?x.default:x})(),g={};for(let x of d.chains)g[Pe(x.id)]=bde({chain:x,transports:d.transports})?.[0];t=new h({_source:\"wagmi\",forceDeleteProvider:!1,forceInjectProvider:!1,injectProvider:!1,...e,readonlyRPCMap:g,dappMetadata:{...e.dappMetadata,name:e.dappMetadata?.name?e.dappMetadata?.name:\"wagmi\",url:e.dappMetadata?.url?e.dappMetadata?.url:typeof window<\"u\"?window.location.origin:\"https://wagmi.sh\"},useDeeplink:e.useDeeplink??!0});let y=await t.init(),w=y?.activeProvider?y.activeProvider:t.getProvider();if(!w)throw new h0;return w}return n||(r||(r=m()),n=await r),n},async isAuthorized(){try{return!!(await f0(()=>y3(()=>this.getAccounts(),{timeout:200}),{delay:201,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:m,chainId:h}){let g=await this.getProvider(),y=d.chains.find(I=>I.id===h);if(!y)throw new Is(new Du);try{return await g.request({method:\"wallet_switchEthereumChain\",params:[{chainId:Pe(h)}]}),await w(),await x(h),y}catch(I){let C=I;if(C.code===yo.code)throw new yo(C);if(C.code===4902||C?.data?.originalError?.code===4902)try{return await g.request({method:\"wallet_addEthereumChain\",params:[{blockExplorerUrls:(()=>{let{default:M,...B}=y.blockExplorers??{};if(m?.blockExplorerUrls)return m.blockExplorerUrls;if(M)return[M.url,...Object.values(B).map(z=>z.url)]})(),chainId:Pe(h),chainName:m?.chainName??y.name,iconUrls:m?.iconUrls,nativeCurrency:m?.nativeCurrency??y.nativeCurrency,rpcUrls:m?.rpcUrls?.length?m.rpcUrls:[y.rpcUrls.default?.http[0]??\"\"]}]}),await w(),await x(h),y}catch(M){let B=M;throw B.code===yo.code?new yo(B):new Is(B)}throw new Is(C)}async function w(){await f0(async()=>{let I=Lo(await g.request({method:\"eth_chainId\"}));if(I!==h)throw new Error(\"User rejected switch after adding network.\");return I},{delay:50,retryCount:20})}async function x(I){await new Promise(C=>{let M=(B=>{\"chainId\"in B&&B.chainId===I&&(d.emitter.off(\"change\",M),C())});d.emitter.on(\"change\",M),d.emitter.emit(\"change\",{chainId:I})})}},async onAccountsChanged(m){if(m.length===0)if(t.isExtensionActive())this.onDisconnect();else return;else if(d.emitter.listenerCount(\"connect\")){let h=(await this.getChainId()).toString();this.onConnect({chainId:h})}else d.emitter.emit(\"change\",{accounts:m.map(h=>rr(h))})},onChainChanged(m){let h=Number(m);d.emitter.emit(\"change\",{chainId:h})},async onConnect(m){let h=await this.getAccounts();if(h.length===0)return;let g=Number(m.chainId);d.emitter.emit(\"connect\",{accounts:h,chainId:g});let y=await this.getProvider();a&&(y.removeListener(\"connect\",a),a=void 0),o||(o=this.onAccountsChanged.bind(this),y.on(\"accountsChanged\",o)),i||(i=this.onChainChanged.bind(this),y.on(\"chainChanged\",i)),l||(l=this.onDisconnect.bind(this),y.on(\"disconnect\",l))},async onDisconnect(m){let h=await this.getProvider();m&&m.code===1013&&h&&(await this.getAccounts()).length||(d.emitter.emit(\"disconnect\"),i&&(h.removeListener(\"chainChanged\",i),i=void 0),l&&(h.removeListener(\"disconnect\",l),l=void 0),a||(a=this.onConnect.bind(this),h.on(\"connect\",a)))},onDisplayUri(m){d.emitter.emit(\"message\",{type:\"display_uri\",data:m})}})}f();var Prt=({apiKey:e,appName:t,appLogoUrl:n,connectors:r=[kT({appName:t,appLogoUrl:n,preference:\"all\"})]})=>pY({chains:[fr,Cs],connectors:r,storage:gO({storage:hY}),ssr:!0,transports:{[fr.id]:e?hl(`https://api.developer.coinbase.com/rpc/v1/base/${e}`):hl(),[Cs.id]:e?hl(`https://api.developer.coinbase.com/rpc/v1/base-sepolia/${e}`):hl()}});f();var Mrt=ge(at(),1);function Drt(){let e=null,t=null;try{e=wr()}catch(n){n instanceof C3||console.error(\"Error fetching WagmiProvider, using default:\",n)}try{t=tE()}catch(n){n.message!==\"No QueryClient set, use QueryClientProvider to set one\"&&console.error(\"Error fetching QueryClient, using default:\",n)}return(0,Mrt.useMemo)(()=>({providedWagmiConfig:e,providedQueryClient:t}),[e,t])}f();var Ute=ge(at(),1);var uve=(0,Ute.createContext)(a0);function Fo(){return(0,Ute.useContext)(uve)}function Brt({children:e,connectors:t}){let{providedWagmiConfig:n,providedQueryClient:r}=Drt();return(0,KH.jsx)(AUt,{providedWagmiConfig:n,connectors:t,children:(0,KH.jsx)(SUt,{providedQueryClient:r,children:e})})}function AUt({children:e,providedWagmiConfig:t,connectors:n}){let r=Fo(),o=(0,$w.useRef)(n),i=(0,$w.useCallback)(()=>{var l,d,m,h;if(t)return t;let g=((d=(l=r.config)==null?void 0:l.appearance)==null?void 0:d.name)??void 0,y=((h=(m=r.config)==null?void 0:m.appearance)==null?void 0:h.logo)??void 0;return Prt({apiKey:r.apiKey??void 0,appName:g,appLogoUrl:y,connectors:n??[RU({appName:g,appLogoUrl:y})]})},[r.apiKey,r.config,n,t]),[a,c]=(0,$w.useState)(()=>i());return(0,$w.useEffect)(()=>{o.current!==n&&(c(i()),o.current=n)},[n,i]),t?e:(0,KH.jsx)(gY,{config:a,children:e})}function SUt({children:e,providedQueryClient:t}){let n=(0,$w.useMemo)(()=>t||new Bce,[t]);return t?e:(0,KH.jsx)(Uce,{client:n,children:e})}f();var Dxe=ge(We(),1),Qat=ge(at(),1);f();f();var Lrt=\"https://api.developer.coinbase.com/analytics\";f();f();f();f();f();f();var YH={};as(YH,{InvalidDomainManifest:()=>lve,RejectedByUser:()=>dve});f();f();var S1=class extends Error{constructor(n,r={}){super(n,r.cause?{cause:r.cause}:void 0);ss(this,\"name\",\"BaseError\");ss(this,\"cause\");this.cause=r.cause}};var lve=class extends S1{constructor(){super(\"Invalid domain manifest\");ss(this,\"name\",\"AddMiniApp.InvalidDomainManifest\")}},dve=class extends S1{constructor(){super(\"Add miniapp rejected by user\");ss(this,\"name\",\"AddMiniApp.RejectedByUser\")}};f();f();f();f();f();f();var wM={};as(wM,{RejectedByUser:()=>fve});f();var fve=class extends S1{constructor(){super(\"Sign in rejected by user\");ss(this,\"name\",\"SignIn.RejectedByUser\")}};var xM={};as(xM,{GenericError:()=>mve,InvalidDomain:()=>hve,RejectedByUser:()=>pve});f();var pve=class extends S1{constructor(){super(\"Sign manifest rejected by user\");ss(this,\"name\",\"SignManifest.RejectedByUser\")}},hve=class extends S1{constructor(){super(\"Invalid domain provided\");ss(this,\"name\",\"SignManifest.InvalidDomain\")}},mve=class extends S1{constructor(n=\"Manifest signing failed\"){super(n);ss(this,\"name\",\"SignManifest.GenericError\")}};f();f();f();f();f();f();f();f();f();f();var He={};as(He,{BRAND:()=>$Ut,DIRTY:()=>uI,EMPTY_PATH:()=>OUt,INVALID:()=>zn,NEVER:()=>LFt,OK:()=>Gf,ParseStatus:()=>qd,Schema:()=>qr,ZodAny:()=>uC,ZodArray:()=>sA,ZodBigInt:()=>dI,ZodBoolean:()=>fI,ZodBranded:()=>QH,ZodCatch:()=>AI,ZodDate:()=>pI,ZodDefault:()=>EI,ZodDiscriminatedUnion:()=>jte,ZodEffects:()=>Cy,ZodEnum:()=>wI,ZodError:()=>hm,ZodFirstPartyTypeKind:()=>Vn,ZodFunction:()=>Vte,ZodIntersection:()=>yI,ZodIssueCode:()=>Nt,ZodLazy:()=>bI,ZodLiteral:()=>vI,ZodMap:()=>CM,ZodNaN:()=>IM,ZodNativeEnum:()=>xI,ZodNever:()=>_1,ZodNull:()=>mI,ZodNullable:()=>nx,ZodNumber:()=>lI,ZodObject:()=>mm,ZodOptional:()=>_y,ZodParsedType:()=>tn,ZodPipeline:()=>JH,ZodPromise:()=>lC,ZodReadonly:()=>SI,ZodRecord:()=>Wte,ZodSchema:()=>qr,ZodSet:()=>RM,ZodString:()=>cC,ZodSymbol:()=>_M,ZodTransformer:()=>Cy,ZodTuple:()=>tx,ZodType:()=>qr,ZodUndefined:()=>hI,ZodUnion:()=>gI,ZodUnknown:()=>aA,ZodVoid:()=>TM,addIssueToContext:()=>Zt,any:()=>cFt,array:()=>fFt,bigint:()=>rFt,boolean:()=>Yrt,coerce:()=>BFt,custom:()=>Grt,date:()=>oFt,datetimeRegex:()=>Wrt,defaultErrorMap:()=>oA,discriminatedUnion:()=>gFt,effect:()=>RFt,enum:()=>_Ft,function:()=>EFt,getErrorMap:()=>EM,getParsedType:()=>ex,instanceof:()=>tFt,intersection:()=>yFt,isAborted:()=>Hte,isAsync:()=>AM,isDirty:()=>zte,isValid:()=>sC,late:()=>eFt,lazy:()=>AFt,literal:()=>SFt,makeIssue:()=>ZH,map:()=>wFt,nan:()=>nFt,nativeEnum:()=>TFt,never:()=>lFt,null:()=>sFt,nullable:()=>kFt,number:()=>Krt,object:()=>pFt,objectUtil:()=>gve,oboolean:()=>DFt,onumber:()=>MFt,optional:()=>IFt,ostring:()=>PFt,pipeline:()=>NFt,preprocess:()=>OFt,promise:()=>CFt,quotelessJson:()=>RUt,record:()=>vFt,set:()=>xFt,setErrorMap:()=>kUt,strictObject:()=>hFt,string:()=>qrt,symbol:()=>iFt,transformer:()=>RFt,tuple:()=>bFt,undefined:()=>aFt,union:()=>mFt,unknown:()=>uFt,util:()=>vo,void:()=>dFt});f();f();f();f();f();var vo;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{let i={};for(let a of o)i[a]=a;return i},e.getValidEnumValues=o=>{let i=e.objectKeys(o).filter(c=>typeof o[o[c]]!=\"number\"),a={};for(let c of i)a[c]=o[c];return e.objectValues(a)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys==\"function\"?o=>Object.keys(o):o=>{let i=[];for(let a in o)Object.prototype.hasOwnProperty.call(o,a)&&i.push(a);return i},e.find=(o,i)=>{for(let a of o)if(i(a))return a},e.isInteger=typeof Number.isInteger==\"function\"?o=>Number.isInteger(o):o=>typeof o==\"number\"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,i=\" | \"){return o.map(a=>typeof a==\"string\"?`\\'${a}\\'`:a).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(o,i)=>typeof i==\"bigint\"?i.toString():i})(vo||(vo={}));var gve;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(gve||(gve={}));var tn=vo.arrayToEnum([\"string\",\"nan\",\"number\",\"integer\",\"float\",\"boolean\",\"date\",\"bigint\",\"symbol\",\"function\",\"undefined\",\"null\",\"array\",\"object\",\"unknown\",\"promise\",\"void\",\"never\",\"map\",\"set\"]),ex=e=>{switch(typeof e){case\"undefined\":return tn.undefined;case\"string\":return tn.string;case\"number\":return Number.isNaN(e)?tn.nan:tn.number;case\"boolean\":return tn.boolean;case\"function\":return tn.function;case\"bigint\":return tn.bigint;case\"symbol\":return tn.symbol;case\"object\":return Array.isArray(e)?tn.array:e===null?tn.null:e.then&&typeof e.then==\"function\"&&e.catch&&typeof e.catch==\"function\"?tn.promise:typeof Map<\"u\"&&e instanceof Map?tn.map:typeof Set<\"u\"&&e instanceof Set?tn.set:typeof Date<\"u\"&&e instanceof Date?tn.date:tn.object;default:return tn.unknown}};var Nt=vo.arrayToEnum([\"invalid_type\",\"invalid_literal\",\"custom\",\"invalid_union\",\"invalid_union_discriminator\",\"invalid_enum_value\",\"unrecognized_keys\",\"invalid_arguments\",\"invalid_return_type\",\"invalid_date\",\"invalid_string\",\"too_small\",\"too_big\",\"invalid_intersection_types\",\"not_multiple_of\",\"not_finite\"]),RUt=e=>JSON.stringify(e,null,2).replace(/\"([^\"]+)\":/g,\"$1:\"),hm=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name=\"ZodError\",this.issues=t}format(t){let n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(let a of i.issues)if(a.code===\"invalid_union\")a.unionErrors.map(o);else if(a.code===\"invalid_return_type\")o(a.returnTypeError);else if(a.code===\"invalid_arguments\")o(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let c=r,l=0;for(;l<a.path.length;){let d=a.path[l];l===a.path.length-1?(c[d]=c[d]||{_errors:[]},c[d]._errors.push(n(a))):c[d]=c[d]||{_errors:[]},c=c[d],l++}}};return o(this),r}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,vo.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},r=[];for(let o of this.issues)if(o.path.length>0){let i=o.path[0];n[i]=n[i]||[],n[i].push(t(o))}else r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};hm.create=e=>new hm(e);var IUt=(e,t)=>{let n;switch(e.code){case Nt.invalid_type:e.received===tn.undefined?n=\"Required\":n=`Expected ${e.expected}, received ${e.received}`;break;case Nt.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,vo.jsonStringifyReplacer)}`;break;case Nt.unrecognized_keys:n=`Unrecognized key(s) in object: ${vo.joinValues(e.keys,\", \")}`;break;case Nt.invalid_union:n=\"Invalid input\";break;case Nt.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${vo.joinValues(e.options)}`;break;case Nt.invalid_enum_value:n=`Invalid enum value. Expected ${vo.joinValues(e.options)}, received \\'${e.received}\\'`;break;case Nt.invalid_arguments:n=\"Invalid function arguments\";break;case Nt.invalid_return_type:n=\"Invalid function return type\";break;case Nt.invalid_date:n=\"Invalid date\";break;case Nt.invalid_string:typeof e.validation==\"object\"?\"includes\"in e.validation?(n=`Invalid input: must include \"${e.validation.includes}\"`,typeof e.validation.position==\"number\"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):\"startsWith\"in e.validation?n=`Invalid input: must start with \"${e.validation.startsWith}\"`:\"endsWith\"in e.validation?n=`Invalid input: must end with \"${e.validation.endsWith}\"`:vo.assertNever(e.validation):e.validation!==\"regex\"?n=`Invalid ${e.validation}`:n=\"Invalid\";break;case Nt.too_small:e.type===\"array\"?n=`Array must contain ${e.exact?\"exactly\":e.inclusive?\"at least\":\"more than\"} ${e.minimum} element(s)`:e.type===\"string\"?n=`String must contain ${e.exact?\"exactly\":e.inclusive?\"at least\":\"over\"} ${e.minimum} character(s)`:e.type===\"number\"?n=`Number must be ${e.exact?\"exactly equal to \":e.inclusive?\"greater than or equal to \":\"greater than \"}${e.minimum}`:e.type===\"bigint\"?n=`Number must be ${e.exact?\"exactly equal to \":e.inclusive?\"greater than or equal to \":\"greater than \"}${e.minimum}`:e.type===\"date\"?n=`Date must be ${e.exact?\"exactly equal to \":e.inclusive?\"greater than or equal to \":\"greater than \"}${new Date(Number(e.minimum))}`:n=\"Invalid input\";break;case Nt.too_big:e.type===\"array\"?n=`Array must contain ${e.exact?\"exactly\":e.inclusive?\"at most\":\"less than\"} ${e.maximum} element(s)`:e.type===\"string\"?n=`String must contain ${e.exact?\"exactly\":e.inclusive?\"at most\":\"under\"} ${e.maximum} character(s)`:e.type===\"number\"?n=`Number must be ${e.exact?\"exactly\":e.inclusive?\"less than or equal to\":\"less than\"} ${e.maximum}`:e.type===\"bigint\"?n=`BigInt must be ${e.exact?\"exactly\":e.inclusive?\"less than or equal to\":\"less than\"} ${e.maximum}`:e.type===\"date\"?n=`Date must be ${e.exact?\"exactly\":e.inclusive?\"smaller than or equal to\":\"smaller than\"} ${new Date(Number(e.maximum))}`:n=\"Invalid input\";break;case Nt.custom:n=\"Invalid input\";break;case Nt.invalid_intersection_types:n=\"Intersection results could not be merged\";break;case Nt.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Nt.not_finite:n=\"Number must be finite\";break;default:n=t.defaultError,vo.assertNever(e)}return{message:n}},oA=IUt;var Urt=oA;function kUt(e){Urt=e}function EM(){return Urt}f();var ZH=e=>{let{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],a={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let c=\"\",l=r.filter(d=>!!d).slice().reverse();for(let d of l)c=d(a,{data:t,defaultError:c}).message;return{...o,path:i,message:c}},OUt=[];function Zt(e,t){let n=EM(),r=ZH({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===oA?void 0:oA].filter(o=>!!o)});e.common.issues.push(r)}var qd=class e{constructor(){this.value=\"valid\"}dirty(){this.value===\"valid\"&&(this.value=\"dirty\")}abort(){this.value!==\"aborted\"&&(this.value=\"aborted\")}static mergeArray(t,n){let r=[];for(let o of n){if(o.status===\"aborted\")return zn;o.status===\"dirty\"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){let r=[];for(let o of n){let i=await o.key,a=await o.value;r.push({key:i,value:a})}return e.mergeObjectSync(t,r)}static mergeObjectSync(t,n){let r={};for(let o of n){let{key:i,value:a}=o;if(i.status===\"aborted\"||a.status===\"aborted\")return zn;i.status===\"dirty\"&&t.dirty(),a.status===\"dirty\"&&t.dirty(),i.value!==\"__proto__\"&&(typeof a.value<\"u\"||o.alwaysSet)&&(r[i.value]=a.value)}return{status:t.value,value:r}}},zn=Object.freeze({status:\"aborted\"}),uI=e=>({status:\"dirty\",value:e}),Gf=e=>({status:\"valid\",value:e}),Hte=e=>e.status===\"aborted\",zte=e=>e.status===\"dirty\",sC=e=>e.status===\"valid\",AM=e=>typeof Promise<\"u\"&&e instanceof Promise;f();f();var vn;(function(e){e.errToObj=t=>typeof t==\"string\"?{message:t}:t||{},e.toString=t=>typeof t==\"string\"?t:t?.message})(vn||(vn={}));var Ty=class{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Frt=(e,t)=>{if(sC(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error(\"Validation failed but no issues detected.\");return{success:!1,get error(){if(this._error)return this._error;let n=new hm(e.common.issues);return this._error=n,this._error}}};function Or(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can\\'t use \"invalid_type_error\" or \"required_error\" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(a,c)=>{let{message:l}=e;return a.code===\"invalid_enum_value\"?{message:l??c.defaultError}:typeof c.data>\"u\"?{message:l??r??c.defaultError}:a.code!==\"invalid_type\"?{message:c.defaultError}:{message:l??n??c.defaultError}},description:o}}var qr=class{get description(){return this._def.description}_getType(t){return ex(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ex(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new qd,ctx:{common:t.parent.common,data:t.data,parsedType:ex(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(AM(n))throw new Error(\"Synchronous parse encountered promise.\");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){let r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ex(t)},o=this._parseSync({data:t,path:r.path,parent:r});return Frt(r,o)}\"~validate\"(t){let n={common:{issues:[],async:!!this[\"~standard\"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ex(t)};if(!this[\"~standard\"].async)try{let r=this._parseSync({data:t,path:[],parent:n});return sC(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes(\"encountered\")&&(this[\"~standard\"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>sC(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){let r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ex(t)},o=this._parse({data:t,path:r.path,parent:r}),i=await(AM(o)?o:Promise.resolve(o));return Frt(r,i)}refine(t,n){let r=o=>typeof n==\"string\"||typeof n>\"u\"?{message:n}:typeof n==\"function\"?n(o):n;return this._refinement((o,i)=>{let a=t(o),c=()=>i.addIssue({code:Nt.custom,...r(o)});return typeof Promise<\"u\"&&a instanceof Promise?a.then(l=>l?!0:(c(),!1)):a?!0:(c(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n==\"function\"?n(r,o):n),!1))}_refinement(t){return new Cy({schema:this,typeName:Vn.ZodEffects,effect:{type:\"refinement\",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[\"~standard\"]={version:1,vendor:\"zod\",validate:n=>this[\"~validate\"](n)}}optional(){return _y.create(this,this._def)}nullable(){return nx.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return sA.create(this)}promise(){return lC.create(this,this._def)}or(t){return gI.create([this,t],this._def)}and(t){return yI.create(this,t,this._def)}transform(t){return new Cy({...Or(this._def),schema:this,typeName:Vn.ZodEffects,effect:{type:\"transform\",transform:t}})}default(t){let n=typeof t==\"function\"?t:()=>t;return new EI({...Or(this._def),innerType:this,defaultValue:n,typeName:Vn.ZodDefault})}brand(){return new QH({typeName:Vn.ZodBranded,type:this,...Or(this._def)})}catch(t){let n=typeof t==\"function\"?t:()=>t;return new AI({...Or(this._def),innerType:this,catchValue:n,typeName:Vn.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return JH.create(this,t)}readonly(){return SI.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},NUt=/^c[^\\\\s-]{8,}$/i,PUt=/^[0-9a-z]+$/,MUt=/^[0-9A-HJKMNP-TV-Z]{26}$/i,DUt=/^[0-9a-fA-F]{8}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{4}\\\\b-[0-9a-fA-F]{12}$/i,BUt=/^[a-z0-9_-]{21}$/i,LUt=/^[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]+\\\\.[A-Za-z0-9-_]*$/,UUt=/^[-+]?P(?!$)(?:(?:[-+]?\\\\d+Y)|(?:[-+]?\\\\d+[.,]\\\\d+Y$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:(?:[-+]?\\\\d+W)|(?:[-+]?\\\\d+[.,]\\\\d+W$))?(?:(?:[-+]?\\\\d+D)|(?:[-+]?\\\\d+[.,]\\\\d+D$))?(?:T(?=[\\\\d+-])(?:(?:[-+]?\\\\d+H)|(?:[-+]?\\\\d+[.,]\\\\d+H$))?(?:(?:[-+]?\\\\d+M)|(?:[-+]?\\\\d+[.,]\\\\d+M$))?(?:[-+]?\\\\d+(?:[.,]\\\\d+)?S)?)??$/,FUt=/^(?!\\\\.)(?!.*\\\\.\\\\.)([A-Z0-9_\\'+\\\\-\\\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\\\-]*\\\\.)+[A-Z]{2,}$/i,HUt=\"^(\\\\\\\\p{Extended_Pictographic}|\\\\\\\\p{Emoji_Component})+$\",yve,zUt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,jUt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\/(3[0-2]|[12]?[0-9])$/,WUt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,VUt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,GUt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,qUt=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,zrt=\"((\\\\\\\\d\\\\\\\\d[2468][048]|\\\\\\\\d\\\\\\\\d[13579][26]|\\\\\\\\d\\\\\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\\\\\d|30)|(02)-(0[1-9]|1\\\\\\\\d|2[0-8])))\",KUt=new RegExp(`^${zrt}$`);function jrt(e){let t=\"[0-5]\\\\\\\\d\";e.precision?t=`${t}\\\\\\\\.\\\\\\\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\\\\\\\.\\\\\\\\d+)?`);let n=e.precision?\"+\":\"?\";return`([01]\\\\\\\\d|2[0-3]):[0-5]\\\\\\\\d(:${t})${n}`}function YUt(e){return new RegExp(`^${jrt(e)}$`)}function Wrt(e){let t=`${zrt}T${jrt(e)}`,n=[];return n.push(e.local?\"Z?\":\"Z\"),e.offset&&n.push(\"([+-]\\\\\\\\d{2}:?\\\\\\\\d{2})\"),t=`${t}(${n.join(\"|\")})`,new RegExp(`^${t}$`)}function ZUt(e,t){return!!((t===\"v4\"||!t)&&zUt.test(e)||(t===\"v6\"||!t)&&WUt.test(e))}function QUt(e,t){if(!LUt.test(e))return!1;try{let[n]=e.split(\".\");if(!n)return!1;let r=n.replace(/-/g,\"+\").replace(/_/g,\"/\").padEnd(n.length+(4-n.length%4)%4,\"=\"),o=JSON.parse(atob(r));return!(typeof o!=\"object\"||o===null||\"typ\"in o&&o?.typ!==\"JWT\"||!o.alg||t&&o.alg!==t)}catch{return!1}}function JUt(e,t){return!!((t===\"v4\"||!t)&&jUt.test(e)||(t===\"v6\"||!t)&&VUt.test(e))}var cC=class e extends qr{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==tn.string){let i=this._getOrReturnCtx(t);return Zt(i,{code:Nt.invalid_type,expected:tn.string,received:i.parsedType}),zn}let r=new qd,o;for(let i of this._def.checks)if(i.kind===\"min\")t.data.length<i.value&&(o=this._getOrReturnCtx(t,o),Zt(o,{code:Nt.too_small,minimum:i.value,type:\"string\",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind===\"max\")t.data.length>i.value&&(o=this._getOrReturnCtx(t,o),Zt(o,{code:Nt.too_big,maximum:i.value,type:\"string\",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind===\"length\"){let a=t.data.length>i.value,c=t.data.length<i.value;(a||c)&&(o=this._getOrReturnCtx(t,o),a?Zt(o,{code:Nt.too_big,maximum:i.value,type:\"string\",inclusive:!0,exact:!0,message:i.message}):c&&Zt(o,{code:Nt.too_small,minimum:i.value,type:\"string\",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind===\"email\")FUt.test(t.data)||(o=this._getOrReturnCtx(t,o),Zt(o,{validation:\"email\",code:Nt.invalid_string,message:i.message}),r.dirty());else if(i.kind===\"emoji\")yve||(yve=new RegExp(HUt,\"u\")),yve.test(t.data)||(o=this._getOrReturnCtx(t,o),Zt(o,{validation:\"emoji\",code:Nt.invalid_string,message:i.message}),r.dirty());else if(i.kind===\"uuid\")DUt.test(t.data)||(o=this._getOrReturnCtx(t,o),Zt(o,{validation:\"uuid\",code:Nt.invalid_string,message:i.message}),r.dirty());else if(i.kind===\"nanoid\")BUt.test(t.data)||(o=this._getOrReturnCtx(t,o),Zt(o,{validation:\"nanoid\",code:Nt.invalid_string,message:i.message}),r.dirty());else if(i.kind===\"cuid\")NUt.test(t.data)||(o=this._getOrReturnCtx(t,o),Zt(o,{validation:\"cuid\",code:Nt.invalid_string,message:i.message}),r.dirty());else if(i.kind===\"cuid2\")PUt.test(t.data)||(o=this._getOrReturnCtx(t,o),Zt(o,{validation:\"cuid2\",code:Nt.invalid_string,message:i.message}),r.dirty());else if(i.kind===\"ulid\")MUt.test(t.data)||(o=this._getOrReturnCtx(t,o),Zt(o,{validation:\"ulid\",code:Nt.invalid_string,message:i.message}),r.dirty());else if(i.kind===\"url\")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),Zt(o,{validation:\"url\",code:Nt.invalid_string,message:i.message}),r.dirty()}else i.kind===\"regex\"?(i.regex.lastIndex=0,i.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),Zt(o,{validation:\"regex\",code:Nt.invalid_string,message:i.message}),r.dirty())):i.kind===\"trim\"?t.data=t.data.trim():i.kind===\"includes\"?t.data.includes(i.value,i.position)||(o=this._getOrReturnCtx(t,o),Zt(o,{code:Nt.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind===\"toLowerCase\"?t.data=t.data.toLowerCase():i.kind===\"toUpperCase\"?t.data=t.data.toUpperCase():i.kind===\"startsWith\"?t.data.startsWith(i.value)||(o=this._getOrReturnCtx(t,o),Zt(o,{code:Nt.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind===\"endsWith\"?t.data.endsWith(i.value)||(o=this._getOrReturnCtx(t,o),Zt(o,{code:Nt.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind===\"datetime\"?Wrt(i).test(t.data)||(o=this._getOrReturnCtx(t,o),Zt(o,{code:Nt.invalid_string,validation:\"datetime\",message:i.message}),r.dirty()):i.kind===\"date\"?KUt.test(t.data)||(o=this._getOrReturnCtx(t,o),Zt(o,{code:Nt.invalid_string,validation:\"date\",message:i.message}),r.dirty()):i.kind===\"time\"?YUt(i).test(t.data)||(o=this._getOrReturnCtx(t,o),Zt(o,{code:Nt.invalid_string,validation:\"time\",message:i.message}),r.dirty()):i.kind===\"duration\"?UUt.test(t.data)||(o=this._getOrReturnCtx(t,o),Zt(o,{validation:\"duration\",code:Nt.invalid_string,message:i.message}),r.dirty()):i.kind===\"ip\"?ZUt(t.data,i.version)||(o=this._getOrReturnCtx(t,o),Zt(o,{validation:\"ip\",code:Nt.invalid_string,message:i.message}),r.dirty()):i.kind===\"jwt\"?QUt(t.data,i.alg)||(o=this._getOrReturnCtx(t,o),Zt(o,{validation:\"jwt\",code:Nt.invalid_string,message:i.message}),r.dirty()):i.kind===\"cidr\"?JUt(t.data,i.version)||(o=this._getOrReturnCtx(t,o),Zt(o,{validation:\"cidr\",code:Nt.invalid_string,message:i.message}),r.dirty()):i.kind===\"base64\"?GUt.test(t.data)||(o=this._getOrReturnCtx(t,o),Zt(o,{validation:\"base64\",code:Nt.invalid_string,message:i.message}),r.dirty()):i.kind===\"base64url\"?qUt.test(t.data)||(o=this._getOrReturnCtx(t,o),Zt(o,{validation:\"base64url\",code:Nt.invalid_string,message:i.message}),r.dirty()):vo.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:Nt.invalid_string,...vn.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:\"email\",...vn.errToObj(t)})}url(t){return this._addCheck({kind:\"url\",...vn.errToObj(t)})}emoji(t){return this._addCheck({kind:\"emoji\",...vn.errToObj(t)})}uuid(t){return this._addCheck({kind:\"uuid\",...vn.errToObj(t)})}nanoid(t){return this._addCheck({kind:\"nanoid\",...vn.errToObj(t)})}cuid(t){return this._addCheck({kind:\"cuid\",...vn.errToObj(t)})}cuid2(t){return this._addCheck({kind:\"cuid2\",...vn.errToObj(t)})}ulid(t){return this._addCheck({kind:\"ulid\",...vn.errToObj(t)})}base64(t){return this._addCheck({kind:\"base64\",...vn.errToObj(t)})}base64url(t){return this._addCheck({kind:\"base64url\",...vn.errToObj(t)})}jwt(t){return this._addCheck({kind:\"jwt\",...vn.errToObj(t)})}ip(t){return this._addCheck({kind:\"ip\",...vn.errToObj(t)})}cidr(t){return this._addCheck({kind:\"cidr\",...vn.errToObj(t)})}datetime(t){return typeof t==\"string\"?this._addCheck({kind:\"datetime\",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:\"datetime\",precision:typeof t?.precision>\"u\"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...vn.errToObj(t?.message)})}date(t){return this._addCheck({kind:\"date\",message:t})}time(t){return typeof t==\"string\"?this._addCheck({kind:\"time\",precision:null,message:t}):this._addCheck({kind:\"time\",precision:typeof t?.precision>\"u\"?null:t?.precision,...vn.errToObj(t?.message)})}duration(t){return this._addCheck({kind:\"duration\",...vn.errToObj(t)})}regex(t,n){return this._addCheck({kind:\"regex\",regex:t,...vn.errToObj(n)})}includes(t,n){return this._addCheck({kind:\"includes\",value:t,position:n?.position,...vn.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:\"startsWith\",value:t,...vn.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:\"endsWith\",value:t,...vn.errToObj(n)})}min(t,n){return this._addCheck({kind:\"min\",value:t,...vn.errToObj(n)})}max(t,n){return this._addCheck({kind:\"max\",value:t,...vn.errToObj(n)})}length(t,n){return this._addCheck({kind:\"length\",value:t,...vn.errToObj(n)})}nonempty(t){return this.min(1,vn.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:\"trim\"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:\"toLowerCase\"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:\"toUpperCase\"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind===\"datetime\")}get isDate(){return!!this._def.checks.find(t=>t.kind===\"date\")}get isTime(){return!!this._def.checks.find(t=>t.kind===\"time\")}get isDuration(){return!!this._def.checks.find(t=>t.kind===\"duration\")}get isEmail(){return!!this._def.checks.find(t=>t.kind===\"email\")}get isURL(){return!!this._def.checks.find(t=>t.kind===\"url\")}get isEmoji(){return!!this._def.checks.find(t=>t.kind===\"emoji\")}get isUUID(){return!!this._def.checks.find(t=>t.kind===\"uuid\")}get isNANOID(){return!!this._def.checks.find(t=>t.kind===\"nanoid\")}get isCUID(){return!!this._def.checks.find(t=>t.kind===\"cuid\")}get isCUID2(){return!!this._def.checks.find(t=>t.kind===\"cuid2\")}get isULID(){return!!this._def.checks.find(t=>t.kind===\"ulid\")}get isIP(){return!!this._def.checks.find(t=>t.kind===\"ip\")}get isCIDR(){return!!this._def.checks.find(t=>t.kind===\"cidr\")}get isBase64(){return!!this._def.checks.find(t=>t.kind===\"base64\")}get isBase64url(){return!!this._def.checks.find(t=>t.kind===\"base64url\")}get minLength(){let t=null;for(let n of this._def.checks)n.kind===\"min\"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind===\"max\"&&(t===null||n.value<t)&&(t=n.value);return t}};cC.create=e=>new cC({checks:[],typeName:Vn.ZodString,coerce:e?.coerce??!1,...Or(e)});function XUt(e,t){let n=(e.toString().split(\".\")[1]||\"\").length,r=(t.toString().split(\".\")[1]||\"\").length,o=n>r?n:r,i=Number.parseInt(e.toFixed(o).replace(\".\",\"\")),a=Number.parseInt(t.toFixed(o).replace(\".\",\"\"));return i%a/10**o}var lI=class e extends qr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==tn.number){let i=this._getOrReturnCtx(t);return Zt(i,{code:Nt.invalid_type,expected:tn.number,received:i.parsedType}),zn}let r,o=new qd;for(let i of this._def.checks)i.kind===\"int\"?vo.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Zt(r,{code:Nt.invalid_type,expected:\"integer\",received:\"float\",message:i.message}),o.dirty()):i.kind===\"min\"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),Zt(r,{code:Nt.too_small,minimum:i.value,type:\"number\",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind===\"max\"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),Zt(r,{code:Nt.too_big,maximum:i.value,type:\"number\",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind===\"multipleOf\"?XUt(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),Zt(r,{code:Nt.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind===\"finite\"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Zt(r,{code:Nt.not_finite,message:i.message}),o.dirty()):vo.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit(\"min\",t,!0,vn.toString(n))}gt(t,n){return this.setLimit(\"min\",t,!1,vn.toString(n))}lte(t,n){return this.setLimit(\"max\",t,!0,vn.toString(n))}lt(t,n){return this.setLimit(\"max\",t,!1,vn.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:vn.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:\"int\",message:vn.toString(t)})}positive(t){return this._addCheck({kind:\"min\",value:0,inclusive:!1,message:vn.toString(t)})}negative(t){return this._addCheck({kind:\"max\",value:0,inclusive:!1,message:vn.toString(t)})}nonpositive(t){return this._addCheck({kind:\"max\",value:0,inclusive:!0,message:vn.toString(t)})}nonnegative(t){return this._addCheck({kind:\"min\",value:0,inclusive:!0,message:vn.toString(t)})}multipleOf(t,n){return this._addCheck({kind:\"multipleOf\",value:t,message:vn.toString(n)})}finite(t){return this._addCheck({kind:\"finite\",message:vn.toString(t)})}safe(t){return this._addCheck({kind:\"min\",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:vn.toString(t)})._addCheck({kind:\"max\",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:vn.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind===\"min\"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind===\"max\"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind===\"int\"||t.kind===\"multipleOf\"&&vo.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let r of this._def.checks){if(r.kind===\"finite\"||r.kind===\"int\"||r.kind===\"multipleOf\")return!0;r.kind===\"min\"?(n===null||r.value>n)&&(n=r.value):r.kind===\"max\"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}};lI.create=e=>new lI({checks:[],typeName:Vn.ZodNumber,coerce:e?.coerce||!1,...Or(e)});var dI=class e extends qr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==tn.bigint)return this._getInvalidInput(t);let r,o=new qd;for(let i of this._def.checks)i.kind===\"min\"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),Zt(r,{code:Nt.too_small,type:\"bigint\",minimum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind===\"max\"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),Zt(r,{code:Nt.too_big,type:\"bigint\",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind===\"multipleOf\"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Zt(r,{code:Nt.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):vo.assertNever(i);return{status:o.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return Zt(n,{code:Nt.invalid_type,expected:tn.bigint,received:n.parsedType}),zn}gte(t,n){return this.setLimit(\"min\",t,!0,vn.toString(n))}gt(t,n){return this.setLimit(\"min\",t,!1,vn.toString(n))}lte(t,n){return this.setLimit(\"max\",t,!0,vn.toString(n))}lt(t,n){return this.setLimit(\"max\",t,!1,vn.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:vn.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:\"min\",value:BigInt(0),inclusive:!1,message:vn.toString(t)})}negative(t){return this._addCheck({kind:\"max\",value:BigInt(0),inclusive:!1,message:vn.toString(t)})}nonpositive(t){return this._addCheck({kind:\"max\",value:BigInt(0),inclusive:!0,message:vn.toString(t)})}nonnegative(t){return this._addCheck({kind:\"min\",value:BigInt(0),inclusive:!0,message:vn.toString(t)})}multipleOf(t,n){return this._addCheck({kind:\"multipleOf\",value:t,message:vn.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind===\"min\"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind===\"max\"&&(t===null||n.value<t)&&(t=n.value);return t}};dI.create=e=>new dI({checks:[],typeName:Vn.ZodBigInt,coerce:e?.coerce??!1,...Or(e)});var fI=class extends qr{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==tn.boolean){let r=this._getOrReturnCtx(t);return Zt(r,{code:Nt.invalid_type,expected:tn.boolean,received:r.parsedType}),zn}return Gf(t.data)}};fI.create=e=>new fI({typeName:Vn.ZodBoolean,coerce:e?.coerce||!1,...Or(e)});var pI=class e extends qr{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==tn.date){let i=this._getOrReturnCtx(t);return Zt(i,{code:Nt.invalid_type,expected:tn.date,received:i.parsedType}),zn}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return Zt(i,{code:Nt.invalid_date}),zn}let r=new qd,o;for(let i of this._def.checks)i.kind===\"min\"?t.data.getTime()<i.value&&(o=this._getOrReturnCtx(t,o),Zt(o,{code:Nt.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:\"date\"}),r.dirty()):i.kind===\"max\"?t.data.getTime()>i.value&&(o=this._getOrReturnCtx(t,o),Zt(o,{code:Nt.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:\"date\"}),r.dirty()):vo.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:\"min\",value:t.getTime(),message:vn.toString(n)})}max(t,n){return this._addCheck({kind:\"max\",value:t.getTime(),message:vn.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind===\"min\"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind===\"max\"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};pI.create=e=>new pI({checks:[],coerce:e?.coerce||!1,typeName:Vn.ZodDate,...Or(e)});var _M=class extends qr{_parse(t){if(this._getType(t)!==tn.symbol){let r=this._getOrReturnCtx(t);return Zt(r,{code:Nt.invalid_type,expected:tn.symbol,received:r.parsedType}),zn}return Gf(t.data)}};_M.create=e=>new _M({typeName:Vn.ZodSymbol,...Or(e)});var hI=class extends qr{_parse(t){if(this._getType(t)!==tn.undefined){let r=this._getOrReturnCtx(t);return Zt(r,{code:Nt.invalid_type,expected:tn.undefined,received:r.parsedType}),zn}return Gf(t.data)}};hI.create=e=>new hI({typeName:Vn.ZodUndefined,...Or(e)});var mI=class extends qr{_parse(t){if(this._getType(t)!==tn.null){let r=this._getOrReturnCtx(t);return Zt(r,{code:Nt.invalid_type,expected:tn.null,received:r.parsedType}),zn}return Gf(t.data)}};mI.create=e=>new mI({typeName:Vn.ZodNull,...Or(e)});var uC=class extends qr{constructor(){super(...arguments),this._any=!0}_parse(t){return Gf(t.data)}};uC.create=e=>new uC({typeName:Vn.ZodAny,...Or(e)});var aA=class extends qr{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Gf(t.data)}};aA.create=e=>new aA({typeName:Vn.ZodUnknown,...Or(e)});var _1=class extends qr{_parse(t){let n=this._getOrReturnCtx(t);return Zt(n,{code:Nt.invalid_type,expected:tn.never,received:n.parsedType}),zn}};_1.create=e=>new _1({typeName:Vn.ZodNever,...Or(e)});var TM=class extends qr{_parse(t){if(this._getType(t)!==tn.undefined){let r=this._getOrReturnCtx(t);return Zt(r,{code:Nt.invalid_type,expected:tn.void,received:r.parsedType}),zn}return Gf(t.data)}};TM.create=e=>new TM({typeName:Vn.ZodVoid,...Or(e)});var sA=class e extends qr{_parse(t){let{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==tn.array)return Zt(n,{code:Nt.invalid_type,expected:tn.array,received:n.parsedType}),zn;if(o.exactLength!==null){let a=n.data.length>o.exactLength.value,c=n.data.length<o.exactLength.value;(a||c)&&(Zt(n,{code:a?Nt.too_big:Nt.too_small,minimum:c?o.exactLength.value:void 0,maximum:a?o.exactLength.value:void 0,type:\"array\",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(Zt(n,{code:Nt.too_small,minimum:o.minLength.value,type:\"array\",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(Zt(n,{code:Nt.too_big,maximum:o.maxLength.value,type:\"array\",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,c)=>o.type._parseAsync(new Ty(n,a,n.path,c)))).then(a=>qd.mergeArray(r,a));let i=[...n.data].map((a,c)=>o.type._parseSync(new Ty(n,a,n.path,c)));return qd.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:vn.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:vn.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:vn.toString(n)}})}nonempty(t){return this.min(1,t)}};sA.create=(e,t)=>new sA({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Vn.ZodArray,...Or(t)});function SM(e){if(e instanceof mm){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=_y.create(SM(r))}return new mm({...e._def,shape:()=>t})}else return e instanceof sA?new sA({...e._def,type:SM(e.element)}):e instanceof _y?_y.create(SM(e.unwrap())):e instanceof nx?nx.create(SM(e.unwrap())):e instanceof tx?tx.create(e.items.map(t=>SM(t))):e}var mm=class e extends qr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=vo.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==tn.object){let d=this._getOrReturnCtx(t);return Zt(d,{code:Nt.invalid_type,expected:tn.object,received:d.parsedType}),zn}let{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:a}=this._getCached(),c=[];if(!(this._def.catchall instanceof _1&&this._def.unknownKeys===\"strip\"))for(let d in o.data)a.includes(d)||c.push(d);let l=[];for(let d of a){let m=i[d],h=o.data[d];l.push({key:{status:\"valid\",value:d},value:m._parse(new Ty(o,h,o.path,d)),alwaysSet:d in o.data})}if(this._def.catchall instanceof _1){let d=this._def.unknownKeys;if(d===\"passthrough\")for(let m of c)l.push({key:{status:\"valid\",value:m},value:{status:\"valid\",value:o.data[m]}});else if(d===\"strict\")c.length>0&&(Zt(o,{code:Nt.unrecognized_keys,keys:c}),r.dirty());else if(d!==\"strip\")throw new Error(\"Internal ZodObject error: invalid unknownKeys value.\")}else{let d=this._def.catchall;for(let m of c){let h=o.data[m];l.push({key:{status:\"valid\",value:m},value:d._parse(new Ty(o,h,o.path,m)),alwaysSet:m in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let d=[];for(let m of l){let h=await m.key,g=await m.value;d.push({key:h,value:g,alwaysSet:m.alwaysSet})}return d}).then(d=>qd.mergeObjectSync(r,d)):qd.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return vn.errToObj,new e({...this._def,unknownKeys:\"strict\",...t!==void 0?{errorMap:(n,r)=>{let o=this._def.errorMap?.(n,r).message??r.defaultError;return n.code===\"unrecognized_keys\"?{message:vn.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:\"strip\"})}passthrough(){return new e({...this._def,unknownKeys:\"passthrough\"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Vn.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let r of vo.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let r of vo.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}deepPartial(){return SM(this)}partial(t){let n={};for(let r of vo.objectKeys(this.shape)){let o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let r of vo.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof _y;)i=i._def.innerType;n[r]=i}return new e({...this._def,shape:()=>n})}keyof(){return Vrt(vo.objectKeys(this.shape))}};mm.create=(e,t)=>new mm({shape:()=>e,unknownKeys:\"strip\",catchall:_1.create(),typeName:Vn.ZodObject,...Or(t)});mm.strictCreate=(e,t)=>new mm({shape:()=>e,unknownKeys:\"strict\",catchall:_1.create(),typeName:Vn.ZodObject,...Or(t)});mm.lazycreate=(e,t)=>new mm({shape:e,unknownKeys:\"strip\",catchall:_1.create(),typeName:Vn.ZodObject,...Or(t)});var gI=class extends qr{_parse(t){let{ctx:n}=this._processInputParams(t),r=this._def.options;function o(i){for(let c of i)if(c.result.status===\"valid\")return c.result;for(let c of i)if(c.result.status===\"dirty\")return n.common.issues.push(...c.ctx.common.issues),c.result;let a=i.map(c=>new hm(c.ctx.common.issues));return Zt(n,{code:Nt.invalid_union,unionErrors:a}),zn}if(n.common.async)return Promise.all(r.map(async i=>{let a={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(o);{let i,a=[];for(let l of r){let d={...n,common:{...n.common,issues:[]},parent:null},m=l._parseSync({data:n.data,path:n.path,parent:d});if(m.status===\"valid\")return m;m.status===\"dirty\"&&!i&&(i={result:m,ctx:d}),d.common.issues.length&&a.push(d.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;let c=a.map(l=>new hm(l));return Zt(n,{code:Nt.invalid_union,unionErrors:c}),zn}}get options(){return this._def.options}};gI.create=(e,t)=>new gI({options:e,typeName:Vn.ZodUnion,...Or(t)});var iA=e=>e instanceof bI?iA(e.schema):e instanceof Cy?iA(e.innerType()):e instanceof vI?[e.value]:e instanceof wI?e.options:e instanceof xI?vo.objectValues(e.enum):e instanceof EI?iA(e._def.innerType):e instanceof hI?[void 0]:e instanceof mI?[null]:e instanceof _y?[void 0,...iA(e.unwrap())]:e instanceof nx?[null,...iA(e.unwrap())]:e instanceof QH||e instanceof SI?iA(e.unwrap()):e instanceof AI?iA(e._def.innerType):[],jte=class e extends qr{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==tn.object)return Zt(n,{code:Nt.invalid_type,expected:tn.object,received:n.parsedType}),zn;let r=this.discriminator,o=n.data[r],i=this.optionsMap.get(o);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(Zt(n,{code:Nt.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),zn)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let o=new Map;for(let i of n){let a=iA(i.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \\\\`${t}\\\\` could not be extracted from all schema options`);for(let c of a){if(o.has(c))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(c)}`);o.set(c,i)}}return new e({typeName:Vn.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...Or(r)})}};function bve(e,t){let n=ex(e),r=ex(t);if(e===t)return{valid:!0,data:e};if(n===tn.object&&r===tn.object){let o=vo.objectKeys(t),i=vo.objectKeys(e).filter(c=>o.indexOf(c)!==-1),a={...e,...t};for(let c of i){let l=bve(e[c],t[c]);if(!l.valid)return{valid:!1};a[c]=l.data}return{valid:!0,data:a}}else if(n===tn.array&&r===tn.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i<e.length;i++){let a=e[i],c=t[i],l=bve(a,c);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return n===tn.date&&r===tn.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var yI=class extends qr{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=(i,a)=>{if(Hte(i)||Hte(a))return zn;let c=bve(i.value,a.value);return c.valid?((zte(i)||zte(a))&&n.dirty(),{status:n.value,value:c.data}):(Zt(r,{code:Nt.invalid_intersection_types}),zn)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,a])=>o(i,a)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};yI.create=(e,t,n)=>new yI({left:e,right:t,typeName:Vn.ZodIntersection,...Or(n)});var tx=class e extends qr{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==tn.array)return Zt(r,{code:Nt.invalid_type,expected:tn.array,received:r.parsedType}),zn;if(r.data.length<this._def.items.length)return Zt(r,{code:Nt.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:\"array\"}),zn;!this._def.rest&&r.data.length>this._def.items.length&&(Zt(r,{code:Nt.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:\"array\"}),n.dirty());let i=[...r.data].map((a,c)=>{let l=this._def.items[c]||this._def.rest;return l?l._parse(new Ty(r,a,r.path,c)):null}).filter(a=>!!a);return r.common.async?Promise.all(i).then(a=>qd.mergeArray(n,a)):qd.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};tx.create=(e,t)=>{if(!Array.isArray(e))throw new Error(\"You must pass an array of schemas to z.tuple([ ... ])\");return new tx({items:e,typeName:Vn.ZodTuple,rest:null,...Or(t)})};var Wte=class e extends qr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==tn.object)return Zt(r,{code:Nt.invalid_type,expected:tn.object,received:r.parsedType}),zn;let o=[],i=this._def.keyType,a=this._def.valueType;for(let c in r.data)o.push({key:i._parse(new Ty(r,c,r.path,c)),value:a._parse(new Ty(r,r.data[c],r.path,c)),alwaysSet:c in r.data});return r.common.async?qd.mergeObjectAsync(n,o):qd.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof qr?new e({keyType:t,valueType:n,typeName:Vn.ZodRecord,...Or(r)}):new e({keyType:cC.create(),valueType:t,typeName:Vn.ZodRecord,...Or(n)})}},CM=class extends qr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==tn.map)return Zt(r,{code:Nt.invalid_type,expected:tn.map,received:r.parsedType}),zn;let o=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([c,l],d)=>({key:o._parse(new Ty(r,c,r.path,[d,\"key\"])),value:i._parse(new Ty(r,l,r.path,[d,\"value\"]))}));if(r.common.async){let c=new Map;return Promise.resolve().then(async()=>{for(let l of a){let d=await l.key,m=await l.value;if(d.status===\"aborted\"||m.status===\"aborted\")return zn;(d.status===\"dirty\"||m.status===\"dirty\")&&n.dirty(),c.set(d.value,m.value)}return{status:n.value,value:c}})}else{let c=new Map;for(let l of a){let d=l.key,m=l.value;if(d.status===\"aborted\"||m.status===\"aborted\")return zn;(d.status===\"dirty\"||m.status===\"dirty\")&&n.dirty(),c.set(d.value,m.value)}return{status:n.value,value:c}}}};CM.create=(e,t,n)=>new CM({valueType:t,keyType:e,typeName:Vn.ZodMap,...Or(n)});var RM=class e extends qr{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==tn.set)return Zt(r,{code:Nt.invalid_type,expected:tn.set,received:r.parsedType}),zn;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(Zt(r,{code:Nt.too_small,minimum:o.minSize.value,type:\"set\",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(Zt(r,{code:Nt.too_big,maximum:o.maxSize.value,type:\"set\",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());let i=this._def.valueType;function a(l){let d=new Set;for(let m of l){if(m.status===\"aborted\")return zn;m.status===\"dirty\"&&n.dirty(),d.add(m.value)}return{status:n.value,value:d}}let c=[...r.data.values()].map((l,d)=>i._parse(new Ty(r,l,r.path,d)));return r.common.async?Promise.all(c).then(l=>a(l)):a(c)}min(t,n){return new e({...this._def,minSize:{value:t,message:vn.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:vn.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};RM.create=(e,t)=>new RM({valueType:e,minSize:null,maxSize:null,typeName:Vn.ZodSet,...Or(t)});var Vte=class e extends qr{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==tn.function)return Zt(n,{code:Nt.invalid_type,expected:tn.function,received:n.parsedType}),zn;function r(c,l){return ZH({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,EM(),oA].filter(d=>!!d),issueData:{code:Nt.invalid_arguments,argumentsError:l}})}function o(c,l){return ZH({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,EM(),oA].filter(d=>!!d),issueData:{code:Nt.invalid_return_type,returnTypeError:l}})}let i={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof lC){let c=this;return Gf(async function(...l){let d=new hm([]),m=await c._def.args.parseAsync(l,i).catch(y=>{throw d.addIssue(r(l,y)),d}),h=await Reflect.apply(a,this,m);return await c._def.returns._def.type.parseAsync(h,i).catch(y=>{throw d.addIssue(o(h,y)),d})})}else{let c=this;return Gf(function(...l){let d=c._def.args.safeParse(l,i);if(!d.success)throw new hm([r(l,d.error)]);let m=Reflect.apply(a,this,d.data),h=c._def.returns.safeParse(m,i);if(!h.success)throw new hm([o(m,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:tx.create(t).rest(aA.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new e({args:t||tx.create([]).rest(aA.create()),returns:n||aA.create(),typeName:Vn.ZodFunction,...Or(r)})}},bI=class extends qr{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};bI.create=(e,t)=>new bI({getter:e,typeName:Vn.ZodLazy,...Or(t)});var vI=class extends qr{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return Zt(n,{received:n.data,code:Nt.invalid_literal,expected:this._def.value}),zn}return{status:\"valid\",value:t.data}}get value(){return this._def.value}};vI.create=(e,t)=>new vI({value:e,typeName:Vn.ZodLiteral,...Or(t)});function Vrt(e,t){return new wI({values:e,typeName:Vn.ZodEnum,...Or(t)})}var wI=class e extends qr{_parse(t){if(typeof t.data!=\"string\"){let n=this._getOrReturnCtx(t),r=this._def.values;return Zt(n,{expected:vo.joinValues(r),received:n.parsedType,code:Nt.invalid_type}),zn}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),r=this._def.values;return Zt(n,{received:n.data,code:Nt.invalid_enum_value,options:r}),zn}return Gf(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}};wI.create=Vrt;var xI=class extends qr{_parse(t){let n=vo.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==tn.string&&r.parsedType!==tn.number){let o=vo.objectValues(n);return Zt(r,{expected:vo.joinValues(o),received:r.parsedType,code:Nt.invalid_type}),zn}if(this._cache||(this._cache=new Set(vo.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=vo.objectValues(n);return Zt(r,{received:r.data,code:Nt.invalid_enum_value,options:o}),zn}return Gf(t.data)}get enum(){return this._def.values}};xI.create=(e,t)=>new xI({values:e,typeName:Vn.ZodNativeEnum,...Or(t)});var lC=class extends qr{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==tn.promise&&n.common.async===!1)return Zt(n,{code:Nt.invalid_type,expected:tn.promise,received:n.parsedType}),zn;let r=n.parsedType===tn.promise?n.data:Promise.resolve(n.data);return Gf(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}};lC.create=(e,t)=>new lC({type:e,typeName:Vn.ZodPromise,...Or(t)});var Cy=class extends qr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Vn.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:a=>{Zt(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),o.type===\"preprocess\"){let a=o.transform(r.data,i);if(r.common.async)return Promise.resolve(a).then(async c=>{if(n.value===\"aborted\")return zn;let l=await this._def.schema._parseAsync({data:c,path:r.path,parent:r});return l.status===\"aborted\"?zn:l.status===\"dirty\"?uI(l.value):n.value===\"dirty\"?uI(l.value):l});{if(n.value===\"aborted\")return zn;let c=this._def.schema._parseSync({data:a,path:r.path,parent:r});return c.status===\"aborted\"?zn:c.status===\"dirty\"?uI(c.value):n.value===\"dirty\"?uI(c.value):c}}if(o.type===\"refinement\"){let a=c=>{let l=o.refinement(c,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error(\"Async refinement encountered during synchronous parse operation. Use .parseAsync instead.\");return c};if(r.common.async===!1){let c=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return c.status===\"aborted\"?zn:(c.status===\"dirty\"&&n.dirty(),a(c.value),{status:n.value,value:c.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(c=>c.status===\"aborted\"?zn:(c.status===\"dirty\"&&n.dirty(),a(c.value).then(()=>({status:n.value,value:c.value}))))}if(o.type===\"transform\")if(r.common.async===!1){let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!sC(a))return zn;let c=o.transform(a.value,i);if(c instanceof Promise)throw new Error(\"Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.\");return{status:n.value,value:c}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>sC(a)?Promise.resolve(o.transform(a.value,i)).then(c=>({status:n.value,value:c})):zn);vo.assertNever(o)}};Cy.create=(e,t,n)=>new Cy({schema:e,typeName:Vn.ZodEffects,effect:t,...Or(n)});Cy.createWithPreprocess=(e,t,n)=>new Cy({schema:t,effect:{type:\"preprocess\",transform:e},typeName:Vn.ZodEffects,...Or(n)});var _y=class extends qr{_parse(t){return this._getType(t)===tn.undefined?Gf(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};_y.create=(e,t)=>new _y({innerType:e,typeName:Vn.ZodOptional,...Or(t)});var nx=class extends qr{_parse(t){return this._getType(t)===tn.null?Gf(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};nx.create=(e,t)=>new nx({innerType:e,typeName:Vn.ZodNullable,...Or(t)});var EI=class extends qr{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return n.parsedType===tn.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};EI.create=(e,t)=>new EI({innerType:e,typeName:Vn.ZodDefault,defaultValue:typeof t.default==\"function\"?t.default:()=>t.default,...Or(t)});var AI=class extends qr{_parse(t){let{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return AM(o)?o.then(i=>({status:\"valid\",value:i.status===\"valid\"?i.value:this._def.catchValue({get error(){return new hm(r.common.issues)},input:r.data})})):{status:\"valid\",value:o.status===\"valid\"?o.value:this._def.catchValue({get error(){return new hm(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};AI.create=(e,t)=>new AI({innerType:e,typeName:Vn.ZodCatch,catchValue:typeof t.catch==\"function\"?t.catch:()=>t.catch,...Or(t)});var IM=class extends qr{_parse(t){if(this._getType(t)!==tn.nan){let r=this._getOrReturnCtx(t);return Zt(r,{code:Nt.invalid_type,expected:tn.nan,received:r.parsedType}),zn}return{status:\"valid\",value:t.data}}};IM.create=e=>new IM({typeName:Vn.ZodNaN,...Or(e)});var $Ut=Symbol(\"zod_brand\"),QH=class extends qr{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},JH=class e extends qr{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status===\"aborted\"?zn:i.status===\"dirty\"?(n.dirty(),uI(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{let o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status===\"aborted\"?zn:o.status===\"dirty\"?(n.dirty(),{status:\"dirty\",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new e({in:t,out:n,typeName:Vn.ZodPipeline})}},SI=class extends qr{_parse(t){let n=this._def.innerType._parse(t),r=o=>(sC(o)&&(o.value=Object.freeze(o.value)),o);return AM(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}};SI.create=(e,t)=>new SI({innerType:e,typeName:Vn.ZodReadonly,...Or(t)});function Hrt(e,t){let n=typeof e==\"function\"?e(t):typeof e==\"string\"?{message:e}:e;return typeof n==\"string\"?{message:n}:n}function Grt(e,t={},n){return e?uC.create().superRefine((r,o)=>{let i=e(r);if(i instanceof Promise)return i.then(a=>{if(!a){let c=Hrt(t,r),l=c.fatal??n??!0;o.addIssue({code:\"custom\",...c,fatal:l})}});if(!i){let a=Hrt(t,r),c=a.fatal??n??!0;o.addIssue({code:\"custom\",...a,fatal:c})}}):uC.create()}var eFt={object:mm.lazycreate},Vn;(function(e){e.ZodString=\"ZodString\",e.ZodNumber=\"ZodNumber\",e.ZodNaN=\"ZodNaN\",e.ZodBigInt=\"ZodBigInt\",e.ZodBoolean=\"ZodBoolean\",e.ZodDate=\"ZodDate\",e.ZodSymbol=\"ZodSymbol\",e.ZodUndefined=\"ZodUndefined\",e.ZodNull=\"ZodNull\",e.ZodAny=\"ZodAny\",e.ZodUnknown=\"ZodUnknown\",e.ZodNever=\"ZodNever\",e.ZodVoid=\"ZodVoid\",e.ZodArray=\"ZodArray\",e.ZodObject=\"ZodObject\",e.ZodUnion=\"ZodUnion\",e.ZodDiscriminatedUnion=\"ZodDiscriminatedUnion\",e.ZodIntersection=\"ZodIntersection\",e.ZodTuple=\"ZodTuple\",e.ZodRecord=\"ZodRecord\",e.ZodMap=\"ZodMap\",e.ZodSet=\"ZodSet\",e.ZodFunction=\"ZodFunction\",e.ZodLazy=\"ZodLazy\",e.ZodLiteral=\"ZodLiteral\",e.ZodEnum=\"ZodEnum\",e.ZodEffects=\"ZodEffects\",e.ZodNativeEnum=\"ZodNativeEnum\",e.ZodOptional=\"ZodOptional\",e.ZodNullable=\"ZodNullable\",e.ZodDefault=\"ZodDefault\",e.ZodCatch=\"ZodCatch\",e.ZodPromise=\"ZodPromise\",e.ZodBranded=\"ZodBranded\",e.ZodPipeline=\"ZodPipeline\",e.ZodReadonly=\"ZodReadonly\"})(Vn||(Vn={}));var tFt=(e,t={message:`Input not instance of ${e.name}`})=>Grt(n=>n instanceof e,t),qrt=cC.create,Krt=lI.create,nFt=IM.create,rFt=dI.create,Yrt=fI.create,oFt=pI.create,iFt=_M.create,aFt=hI.create,sFt=mI.create,cFt=uC.create,uFt=aA.create,lFt=_1.create,dFt=TM.create,fFt=sA.create,pFt=mm.create,hFt=mm.strictCreate,mFt=gI.create,gFt=jte.create,yFt=yI.create,bFt=tx.create,vFt=Wte.create,wFt=CM.create,xFt=RM.create,EFt=Vte.create,AFt=bI.create,SFt=vI.create,_Ft=wI.create,TFt=xI.create,CFt=lC.create,RFt=Cy.create,IFt=_y.create,kFt=nx.create,OFt=Cy.createWithPreprocess,NFt=JH.create,PFt=()=>qrt().optional(),MFt=()=>Krt().optional(),DFt=()=>Yrt().optional(),BFt={string:(e=>cC.create({...e,coerce:!0})),number:(e=>lI.create({...e,coerce:!0})),boolean:(e=>fI.create({...e,coerce:!0})),bigint:(e=>dI.create({...e,coerce:!0})),date:(e=>pI.create({...e,coerce:!0}))};var LFt=zn;f();var UFt=/[@#$%^&*+=/\\\\\\\\|~«»]/,FFt=/(!{2,}|\\\\?{2,}|-{2,})/,HFt=/[\\\\u{1F300}-\\\\u{1F9FF}]|[\\\\u{2702}-\\\\u{27B0}]|[\\\\u{2600}-\\\\u{26FF}]|[\\\\u{2B00}-\\\\u{2BFF}]/u,_I=({max:e,noSpaces:t}={})=>(t?He.string().max(e??Number.POSITIVE_INFINITY).regex(/^\\\\S*$/,\"Spaces are not allowed\"):He.string().max(e??Number.POSITIVE_INFINITY)).refine(r=>!HFt.test(r),{message:\"Emojis and symbols are not allowed\"}).refine(r=>!UFt.test(r),{message:\"Special characters (@, #, $, %, ^, &, *, +, =, /, \\\\\\\\, |, ~, \\\\xAB, \\\\xBB) are not allowed\"}).refine(r=>!FFt.test(r),{message:\"Repeated punctuations (!!, ??, --) are not allowed\"}),od=He.string().url().startsWith(\"https://\",{message:\"Must be an https url\"}).max(1024).refine(e=>!e.includes(\" \"),{message:\"URL must not contain spaces\"}).refine(e=>{try{let t=new URL(e).hostname;return!(t===\"localhost\"||t.endsWith(\".localhost\")||/^(\\\\d{1,3}\\\\.){3}\\\\d{1,3}$/.test(t)||t.startsWith(\"[\")&&t.endsWith(\"]\"))}catch{return!1}},{message:\"URL must not use IP addresses or localhost\"}),XH=He.string().max(32),Gte=He.string().max(32),zFt=/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\\\\/(?:[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}(?:\\\\/[-.%a-zA-Z0-9]{1,78})?|native)$/,Zrt=He.string().regex(zFt,{message:\"Invalid CAIP-19 asset ID\"}),$H=He.string().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,{message:\"Invalid hex color code. It should be in the format #RRGGBB or #RGB.\"}),jFt=/^(?!.*\\\\.\\\\.)([a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?\\\\.)+[a-zA-Z]{2,}$/,Qrt=He.string().max(1024).regex(jFt,{message:\"Must be a valid domain name (e.g., example.com, sub.example.com)\"}).refine(e=>!e.includes(\"://\"),{message:\"Domain must not include protocol (http://, https://, etc.)\"}).refine(e=>!e.includes(\"/\"),{message:\"Domain must not include path separators\"}).refine(e=>!e.includes(\"@\"),{message:\"Domain must not include @ symbol\"}).refine(e=>!e.includes(\":\"),{message:\"Domain must not include port numbers\"}),Jrt=He.union([He.literal(\"1:1\"),He.literal(\"3:2\")]),Xrt=He.object({header:He.string(),payload:He.string(),signature:He.string()}),x0r=He.object({fid:He.number(),type:He.literal(\"app_key\"),key:He.string().startsWith(\"0x\")});var WFt=He.object({type:He.literal(\"launch_frame\"),name:XH,url:od.optional(),splashImageUrl:od.optional(),splashBackgroundColor:$H.optional()}),VFt=He.object({type:He.literal(\"launch_miniapp\"),name:XH,url:od.optional(),splashImageUrl:od.optional(),splashBackgroundColor:$H.optional()}),GFt=He.object({type:He.literal(\"view_token\"),token:Zrt}),qFt=He.discriminatedUnion(\"type\",[VFt,GFt,WFt]),KFt=He.object({title:Gte,action:qFt}),T0r=He.object({version:He.union([He.string(),He.number()]).transform(e=>String(e)).pipe(He.union([He.literal(\"next\"),He.literal(\"1\")])),imageUrl:od,aspectRatio:Jrt.optional(),button:KFt});f();f();var vve=He.object({url:He.string(),token:He.string()}),O0r=He.object({notificationId:He.string().max(128),title:He.string().max(32),body:He.string().max(128),targetUrl:od,tokens:He.string().array().max(100)}),N0r=He.object({result:He.object({successfulTokens:He.array(He.string()),invalidTokens:He.array(He.string()),rateLimitedTokens:He.array(He.string())})});var YFt=He.object({event:He.literal(\"miniapp_added\"),notificationDetails:vve.optional()}),ZFt=He.object({event:He.literal(\"miniapp_removed\")}),QFt=He.object({event:He.literal(\"notifications_enabled\"),notificationDetails:vve.required()}),JFt=He.object({event:He.literal(\"notifications_disabled\")}),L0r=He.discriminatedUnion(\"event\",[YFt,ZFt,QFt,JFt]);f();f();f();var $rt=[\"wallet.getEthereumProvider\",\"wallet.getSolanaProvider\",\"actions.ready\",\"actions.openUrl\",\"actions.close\",\"actions.setPrimaryButton\",\"actions.addMiniApp\",\"actions.signIn\",\"actions.viewCast\",\"actions.viewProfile\",\"actions.composeCast\",\"actions.viewToken\",\"actions.sendToken\",\"actions.swapToken\",\"actions.openMiniApp\",\"actions.requestCameraAndMicrophoneAccess\",\"experimental.signManifest\",\"haptics.impactOccurred\",\"haptics.notificationOccurred\",\"haptics.selectionChanged\",\"back\"];var XFt=[\"games\",\"social\",\"finance\",\"utility\",\"productivity\",\"health-fitness\",\"news-media\",\"music\",\"shopping\",\"education\",\"developer-tools\",\"entertainment\",\"art-creativity\"],$Ft=He.enum(XFt),eHt=He.union([He.literal(\"0.0.0\"),He.literal(\"0.0.1\"),He.literal(\"1\"),He.literal(\"next\")]),tHt=_I({max:30}),nHt=_I({max:170}),rHt=He.array(od).max(3),oHt=He.array(_I({max:20,noSpaces:!0})).max(5),iHt=_I({max:30}),aHt=_I({max:30}),sHt=_I({max:100}),cHt=He.boolean(),uHt=[\"eip155:1\",\"eip155:8453\",\"eip155:42161\",\"eip155:421614\",\"eip155:84532\",\"eip155:666666666\",\"eip155:100\",\"eip155:10\",\"eip155:11155420\",\"eip155:137\",\"eip155:11155111\",\"eip155:7777777\",\"eip155:130\",\"eip155:10143\",\"eip155:42220\",\"eip155:999\",\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\"];function tot(e){let t=new Set(e);return Array.from(t)}var lHt=He.array(He.enum(uHt)).transform(tot),dHt=He.array(He.enum($rt)).transform(tot),eot=He.object({version:eHt,name:XH,iconUrl:od,homeUrl:od,imageUrl:od.optional(),buttonTitle:Gte.optional(),splashImageUrl:od.optional(),splashBackgroundColor:$H.optional(),webhookUrl:od.optional(),subtitle:tHt.optional(),description:nHt.optional(),screenshotUrls:rHt.optional(),primaryCategory:$Ft.optional(),tags:oHt.optional(),heroImageUrl:od.optional(),tagline:iHt.optional(),ogTitle:aHt.optional(),ogDescription:sHt.optional(),ogImageUrl:od.optional(),noindex:cHt.optional(),requiredChains:lHt.optional(),requiredCapabilities:dHt.optional(),castShareUrl:od.optional(),canonicalDomain:Qrt.optional()}).refine(e=>{if(e.castShareUrl===void 0)return!0;try{let t=new URL(e.homeUrl).hostname,n=new URL(e.castShareUrl).hostname;return t===n}catch{return!1}},{message:\"castShareUrl must have the same domain as homeUrl\",path:[\"castShareUrl\"]}),Z0r=He.object({accountAssociation:Xrt,miniapp:eot.optional(),frame:eot.optional()}).refine(e=>e.frame&&e.miniapp?JSON.stringify(e.frame)===JSON.stringify(e.miniapp):!0,{message:\\'If both \"frame\" and \"miniapp\" are provided, they must be identical\\',path:[\"frame\",\"miniapp\"]}).transform(e=>({...e,frame:e.frame??e.miniapp}));f();f();var tr=ge(P2());f();L8();Ig();OZ();f();V3();OZ();Z3();var dC=BigInt(0),id=BigInt(1),wve=BigInt(2),fHt=BigInt(8);function pHt(e,t,n,r){let o=e.sqr(n),i=e.sqr(r),a=e.add(e.mul(t.a,o),i),c=e.add(e.ONE,e.mul(t.d,e.mul(o,i)));return e.eql(a,c)}function hHt(e,t={}){let n=kZ(\"edwards\",e,t,t.FpFnLE),{Fp:r,Fn:o}=n,i=n.CURVE,{h:a}=i;rT(t,{},{uvRatio:\"function\"});let c=wve<<BigInt(o.BYTES*8)-id,l=I=>r.create(I),d=t.uvRatio||((I,C)=>{try{return{isValid:!0,value:r.sqrt(r.div(I,C))}}catch{return{isValid:!1,value:dC}}});if(!pHt(r,i,i.Gx,i.Gy))throw new Error(\"bad curve params: generator point\");function m(I,C,M=!1){let B=M?id:dC;return $O(\"coordinate \"+I,C,B,c),C}function h(I){if(!(I instanceof w))throw new Error(\"ExtendedPoint expected\")}let g=W3((I,C)=>{let{X:M,Y:B,Z:z}=I,G=I.is0();C==null&&(C=G?fHt:r.inv(z));let J=l(M*C),ne=l(B*C),ie=r.mul(z,C);if(G)return{x:dC,y:id};if(ie!==id)throw new Error(\"invZ was invalid\");return{x:J,y:ne}}),y=W3(I=>{let{a:C,d:M}=i;if(I.is0())throw new Error(\"bad point: ZERO\");let{X:B,Y:z,Z:G,T:J}=I,ne=l(B*B),ie=l(z*z),ae=l(G*G),te=l(ae*ae),Z=l(ne*C),X=l(ae*l(Z+ie)),F=l(te+l(M*l(ne*ie)));if(X!==F)throw new Error(\"bad point: equation left != right (1)\");let R=l(B*z),O=l(G*J);if(R!==O)throw new Error(\"bad point: equation left != right (2)\");return!0});class w{constructor(C,M,B,z){this.X=m(\"x\",C),this.Y=m(\"y\",M),this.Z=m(\"z\",B,!0),this.T=m(\"t\",z),Object.freeze(this)}static CURVE(){return i}static fromAffine(C){if(C instanceof w)throw new Error(\"extended point not allowed\");let{x:M,y:B}=C||{};return m(\"x\",M),m(\"y\",B),new w(M,B,id,l(M*B))}static fromBytes(C,M=!1){let B=r.BYTES,{a:z,d:G}=i;C=sZ(g0(C,B,\"point\")),AE(M,\"zip215\");let J=sZ(C),ne=C[B-1];J[B-1]=ne&-129;let ie=ww(J),ae=M?c:r.ORDER;$O(\"point.y\",ie,dC,ae);let te=l(ie*ie),Z=l(te-id),X=l(G*te-z),{isValid:F,value:R}=d(Z,X);if(!F)throw new Error(\"bad point: invalid y coordinate\");let O=(R&id)===id,U=(ne&128)!==0;if(!M&&R===dC&&U)throw new Error(\"bad point: x=0 and x_0=1\");return U!==O&&(R=l(-R)),w.fromAffine({x:R,y:ie})}static fromHex(C,M=!1){return w.fromBytes(Zi(\"point\",C),M)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(C=8,M=!0){return x.createCache(this,C),M||this.multiply(wve),this}assertValidity(){y(this)}equals(C){h(C);let{X:M,Y:B,Z:z}=this,{X:G,Y:J,Z:ne}=C,ie=l(M*ne),ae=l(G*z),te=l(B*ne),Z=l(J*z);return ie===ae&&te===Z}is0(){return this.equals(w.ZERO)}negate(){return new w(l(-this.X),this.Y,this.Z,l(-this.T))}double(){let{a:C}=i,{X:M,Y:B,Z:z}=this,G=l(M*M),J=l(B*B),ne=l(wve*l(z*z)),ie=l(C*G),ae=M+B,te=l(l(ae*ae)-G-J),Z=ie+J,X=Z-ne,F=ie-J,R=l(te*X),O=l(Z*F),U=l(te*F),P=l(X*Z);return new w(R,O,P,U)}add(C){h(C);let{a:M,d:B}=i,{X:z,Y:G,Z:J,T:ne}=this,{X:ie,Y:ae,Z:te,T:Z}=C,X=l(z*ie),F=l(G*ae),R=l(ne*B*Z),O=l(J*te),U=l((z+G)*(ie+ae)-X-F),P=O-R,L=O+R,W=l(F-M*X),q=l(U*P),H=l(L*W),k=l(U*W),V=l(P*L);return new w(q,H,V,k)}subtract(C){return this.add(C.negate())}multiply(C){if(!o.isValidNot0(C))throw new Error(\"invalid scalar: expected 1 <= sc < curve.n\");let{p:M,f:B}=x.cached(this,C,z=>CE(w,z));return CE(w,[M,B])[0]}multiplyUnsafe(C,M=w.ZERO){if(!o.isValid(C))throw new Error(\"invalid scalar: expected 0 <= sc < curve.n\");return C===dC?w.ZERO:this.is0()||C===id?this:x.unsafe(this,C,B=>CE(w,B),M)}isSmallOrder(){return this.multiplyUnsafe(a).is0()}isTorsionFree(){return x.unsafe(this,i.n).is0()}toAffine(C){return g(this,C)}clearCofactor(){return a===id?this:this.multiplyUnsafe(a)}toBytes(){let{x:C,y:M}=this.toAffine(),B=r.toBytes(M);return B[B.length-1]|=C&id?128:0,B}toHex(){return r0(this.toBytes())}toString(){return`<Point ${this.is0()?\"ZERO\":this.toHex()}>`}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(C){return CE(w,C)}static msm(C,M){return dN(w,o,C,M)}_setWindowSize(C){this.precompute(C)}toRawBytes(){return this.toBytes()}}w.BASE=new w(i.Gx,i.Gy,id,l(i.Gx*i.Gy)),w.ZERO=new w(dC,id,id,dC),w.Fp=r,w.Fn=o;let x=new lN(w,o.BITS);return w.BASE.precompute(8),w}var qte=class{constructor(t){this.ep=t}static fromBytes(t){cZ()}static fromHex(t){cZ()}get x(){return this.toAffine().x}get y(){return this.toAffine().y}clearCofactor(){return this}assertValidity(){this.ep.assertValidity()}toAffine(t){return this.ep.toAffine(t)}toHex(){return r0(this.toBytes())}toString(){return this.toHex()}isTorsionFree(){return!0}isSmallOrder(){return!1}add(t){return this.assertSame(t),this.init(this.ep.add(t.ep))}subtract(t){return this.assertSame(t),this.init(this.ep.subtract(t.ep))}multiply(t){return this.init(this.ep.multiply(t))}multiplyUnsafe(t){return this.init(this.ep.multiplyUnsafe(t))}double(){return this.init(this.ep.double())}negate(){return this.init(this.ep.negate())}precompute(t,n){return this.init(this.ep.precompute(t,n))}toRawBytes(){return this.toBytes()}};function mHt(e,t,n={}){if(typeof t!=\"function\")throw new Error(\\'\"hash\" function param is required\\');rT(n,{},{adjustScalarBytes:\"function\",randomBytes:\"function\",domain:\"function\",prehash:\"function\",mapToCurve:\"function\"});let{prehash:r}=n,{BASE:o,Fp:i,Fn:a}=e,c=n.randomBytes||Bb,l=n.adjustScalarBytes||(ae=>ae),d=n.domain||((ae,te,Z)=>{if(AE(Z,\"phflag\"),te.length||Z)throw new Error(\"Contexts/pre-hash are not supported\");return ae});function m(ae){return a.create(ww(ae))}function h(ae){let te=B.secretKey;ae=Zi(\"private key\",ae,te);let Z=Zi(\"hashed private key\",t(ae),2*te),X=l(Z.slice(0,te)),F=Z.slice(te,2*te),R=m(X);return{head:X,prefix:F,scalar:R}}function g(ae){let{head:te,prefix:Z,scalar:X}=h(ae),F=o.multiply(X),R=F.toBytes();return{head:te,prefix:Z,scalar:X,point:F,pointBytes:R}}function y(ae){return g(ae).pointBytes}function w(ae=Uint8Array.of(),...te){let Z=jl(...te);return m(t(d(Z,Zi(\"context\",ae),!!r)))}function x(ae,te,Z={}){ae=Zi(\"message\",ae),r&&(ae=r(ae));let{prefix:X,scalar:F,pointBytes:R}=g(te),O=w(Z.context,X,ae),U=o.multiply(O).toBytes(),P=w(Z.context,U,R,ae),L=a.create(O+P*F);if(!a.isValid(L))throw new Error(\"sign failed: invalid s\");let W=jl(U,a.toBytes(L));return g0(W,B.signature,\"result\")}let I={zip215:!0};function C(ae,te,Z,X=I){let{context:F,zip215:R}=X,O=B.signature;ae=Zi(\"signature\",ae,O),te=Zi(\"message\",te),Z=Zi(\"publicKey\",Z,B.publicKey),R!==void 0&&AE(R,\"zip215\"),r&&(te=r(te));let U=O/2,P=ae.subarray(0,U),L=ww(ae.subarray(U,O)),W,q,H;try{W=e.fromBytes(Z,R),q=e.fromBytes(P,R),H=o.multiplyUnsafe(L)}catch{return!1}if(!R&&W.isSmallOrder())return!1;let k=w(F,q.toBytes(),W.toBytes(),te);return q.add(W.multiplyUnsafe(k)).subtract(H).clearCofactor().is0()}let M=i.BYTES,B={secretKey:M,publicKey:M,signature:2*M,seed:M};function z(ae=c(B.seed)){return g0(ae,B.seed,\"seed\")}function G(ae){let te=ie.randomSecretKey(ae);return{secretKey:te,publicKey:y(te)}}function J(ae){return Wv(ae)&&ae.length===a.BYTES}function ne(ae,te){try{return!!e.fromBytes(ae,te)}catch{return!1}}let ie={getExtendedPublicKey:g,randomSecretKey:z,isValidSecretKey:J,isValidPublicKey:ne,toMontgomery(ae){let{y:te}=e.fromBytes(ae),Z=B.publicKey,X=Z===32;if(!X&&Z!==57)throw new Error(\"only defined for 25519 and 448\");let F=X?i.div(id+te,id-te):i.div(te-id,te+id);return i.toBytes(F)},toMontgomerySecret(ae){let te=B.secretKey;g0(ae,te);let Z=t(ae.subarray(0,te));return l(Z).subarray(0,te)},randomPrivateKey:z,precompute(ae=8,te=e.BASE){return te.precompute(ae,!1)}};return Object.freeze({keygen:G,getPublicKey:y,sign:x,verify:C,utils:ie,Point:e,lengths:B})}function gHt(e){let t={a:e.a,d:e.d,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp,r=Ud(t.n,e.nBitLength,!0),o={Fp:n,Fn:r,uvRatio:e.uvRatio},i={randomBytes:e.randomBytes,adjustScalarBytes:e.adjustScalarBytes,domain:e.domain,prehash:e.prehash,mapToCurve:e.mapToCurve};return{CURVE:t,curveOpts:o,hash:e.hash,eddsaOpts:i}}function yHt(e,t){let n=t.Point;return Object.assign({},t,{ExtendedPoint:n,CURVE:e,nBitLength:n.Fn.BITS,nByteLength:n.Fn.BYTES})}function not(e){let{CURVE:t,curveOpts:n,hash:r,eddsaOpts:o}=gHt(e),i=hHt(t,n),a=mHt(i,r,o);return yHt(e,a)}Z3();V3();var bHt=BigInt(0),cA=BigInt(1),rot=BigInt(2),ygr=BigInt(3),vHt=BigInt(5),wHt=BigInt(8),kM=BigInt(\"0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed\"),ez={p:kM,n:BigInt(\"0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed\"),h:wHt,a:BigInt(\"0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec\"),d:BigInt(\"0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3\"),Gx:BigInt(\"0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a\"),Gy:BigInt(\"0x6666666666666666666666666666666666666666666666666666666666666658\")};function xHt(e){let t=BigInt(10),n=BigInt(20),r=BigInt(40),o=BigInt(80),i=kM,c=e*e%i*e%i,l=Ns(c,rot,i)*c%i,d=Ns(l,cA,i)*e%i,m=Ns(d,vHt,i)*d%i,h=Ns(m,t,i)*m%i,g=Ns(h,n,i)*h%i,y=Ns(g,r,i)*g%i,w=Ns(y,o,i)*y%i,x=Ns(w,o,i)*y%i,I=Ns(x,t,i)*m%i;return{pow_p_5_8:Ns(I,rot,i)*e%i,b2:c}}function EHt(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}var xve=BigInt(\"19681161376707505956807079304988542015446066515923890162744021073123829784752\");function Sve(e,t){let n=kM,r=Cc(t*t*t,n),o=Cc(r*r*t,n),i=xHt(e*o).pow_p_5_8,a=Cc(e*r*i,n),c=Cc(t*a*a,n),l=a,d=Cc(a*xve,n),m=c===e,h=c===Cc(-e,n),g=c===Cc(-e*xve,n);return m&&(a=l),(h||g)&&(a=d),TE(a,n)&&(a=Cc(-a,n)),{isValid:m||h,value:a}}var fC=Ud(ez.p,{isLE:!0}),AHt=Ud(ez.n,{isLE:!0}),SHt={...ez,Fp:fC,hash:sG,adjustScalarBytes:EHt,uvRatio:Sve},gm=not(SHt);var Eve=xve,_Ht=BigInt(\"25063068953384623474111414158702152701244531502492656460079210482610430750235\"),THt=BigInt(\"54469307008909316920995813868745141605393597292927456921205312896311721017578\"),CHt=BigInt(\"1159843021668779879193775521855586647937357759715417654439879720876111806838\"),RHt=BigInt(\"40440834346308536858101042469323190826248399146238708352240133220865137265952\"),oot=e=>Sve(cA,e),IHt=BigInt(\"0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\"),Ave=e=>gm.Point.Fp.create(ww(e)&IHt);function iot(e){let{d:t}=ez,n=kM,r=C=>fC.create(C),o=r(Eve*e*e),i=r((o+cA)*CHt),a=BigInt(-1),c=r((a-t*o)*r(o+t)),{isValid:l,value:d}=Sve(i,c),m=r(d*e);TE(m,n)||(m=r(-m)),l||(d=m),l||(a=o);let h=r(a*(o-cA)*RHt-c),g=d*d,y=r((d+d)*c),w=r(h*_Ht),x=r(cA-g),I=r(cA+g);return new gm.Point(r(y*I),r(x*w),r(w*I),r(y*x))}function kHt(e){zl(e,64);let t=Ave(e.subarray(0,32)),n=iot(t),r=Ave(e.subarray(32,64)),o=iot(r);return new uA(n.add(o))}var uA=class e extends qte{constructor(t){super(t)}static fromAffine(t){return new e(gm.Point.fromAffine(t))}assertSame(t){if(!(t instanceof e))throw new Error(\"RistrettoPoint expected\")}init(t){return new e(t)}static hashToCurve(t){return kHt(Zi(\"ristrettoHash\",t,64))}static fromBytes(t){zl(t,32);let{a:n,d:r}=ez,o=kM,i=z=>fC.create(z),a=Ave(t);if(!aZ(fC.toBytes(a),t)||TE(a,o))throw new Error(\"invalid ristretto255 encoding 1\");let c=i(a*a),l=i(cA+n*c),d=i(cA-n*c),m=i(l*l),h=i(d*d),g=i(n*r*m-h),{isValid:y,value:w}=oot(i(g*h)),x=i(w*d),I=i(w*x*g),C=i((a+a)*x);TE(C,o)&&(C=i(-C));let M=i(l*I),B=i(C*M);if(!y||TE(B,o)||M===bHt)throw new Error(\"invalid ristretto255 encoding 2\");return new e(new gm.Point(C,M,cA,B))}static fromHex(t){return e.fromBytes(Zi(\"ristrettoHex\",t,32))}static msm(t,n){return dN(e,gm.Point.Fn,t,n)}toBytes(){let{X:t,Y:n,Z:r,T:o}=this.ep,i=kM,a=I=>fC.create(I),c=a(a(r+n)*a(r-n)),l=a(t*n),d=a(l*l),{value:m}=oot(a(c*d)),h=a(m*c),g=a(m*l),y=a(h*g*o),w;if(TE(o*y,i)){let I=a(n*Eve),C=a(t*Eve);t=I,n=C,w=a(h*THt)}else w=g;TE(t*y,i)&&(n=a(-n));let x=a((r-n)*w);return TE(x,i)&&(x=a(-x)),fC.toBytes(x)}equals(t){this.assertSame(t);let{X:n,Y:r}=this.ep,{X:o,Y:i}=t.ep,a=d=>fC.create(d),c=a(n*i)===a(r*o),l=a(r*i)===a(n*o);return c||l}is0(){return this.equals(e.ZERO)}};uA.BASE=new uA(gm.Point.BASE);uA.ZERO=new uA(gm.Point.ZERO);uA.Fp=fC;uA.Fn=AHt;var Gwe=ge(pR()),Qf=ge(_ve());cG();var VM=ge(hot()),Ee=ge(Mve()),Zit=ge(Mve());f();f();var az=1,mot=2,got=3,yot=4,bot=5,vot=6,wot=7,xot=8,Eot=9,Aot=10,Sot=-32700,_ot=-32603,Tot=-32602,Cot=-32601,Rot=-32600,QHt=-32016,Iot=-32015,kot=-32014,JHt=-32013,Oot=-32012,XHt=-32011,Not=-32010,Pot=-32009,$Ht=-32008,Mot=-32007,Dot=-32006,ezt=-32005,Bot=-32004,tzt=-32003,Dve=-32002,Lot=-32001,vne=28e5,wne=2800001,nzt=2800002,Bve=2800003,Uot=2800004,Fot=2800005,Lve=2800006,Uve=2800007,xne=2800008,Fve=2800009,Hot=2800010,zot=2800011,Hve=323e4,zve=32300001,jve=3230002,jot=3230003,Wve=3230004,Vve=361e4,Gve=3610001,Wot=3610002,qve=3610003,Vot=3610004,Kve=3610005,Got=3610006,rzt=3610007,qot=3611e3,ozt=3704e3,izt=3704001,azt=3704002,szt=3704003,czt=3704004,Yve=4128e3,Zve=4128001,Kot=4128002,Yot=4615e3,uzt=4615001,lzt=4615002,dzt=4615003,fzt=4615004,pzt=4615005,hzt=4615006,mzt=4615007,gzt=4615008,yzt=4615009,bzt=4615010,vzt=4615011,wzt=4615012,xzt=4615013,Ezt=4615014,Azt=4615015,Szt=4615016,_zt=4615017,Tzt=4615018,Czt=4615019,Rzt=4615020,Izt=4615021,kzt=4615022,Ozt=4615023,Nzt=4615024,Pzt=4615025,Zot=4615026,Mzt=4615027,Dzt=4615028,Bzt=4615029,Lzt=4615030,Uzt=4615031,Fzt=4615032,Hzt=4615033,zzt=4615034,jzt=4615035,Wzt=4615036,Vzt=4615037,Gzt=4615038,qzt=4615039,Kzt=4615040,Yzt=4615041,Zzt=4615042,Qzt=4615043,Jzt=4615044,Qot=4615045,Xzt=4615046,$zt=4615047,ejt=4615048,tjt=4615049,njt=4615050,rjt=4615051,ojt=4615052,ijt=4615053,ajt=4615054,Qve=5508e3,Jot=5508001,Xot=5508002,$ot=5508003,eit=5508004,tit=5508005,nit=5508006,rit=5508007,oit=5508008,iit=5508009,ait=5508010,sjt=5508011,Jve=5663e3,Ene=5663001,Xve=5663002,sit=5663003,$ve=5663004,ewe=5663005,twe=5663006,nwe=5663007,rwe=5663008,owe=5663009,cjt=5663010,ujt=5663011,iwe=5663012,ljt=5663013,djt=5663014,awe=5663015,swe=5663016,cwe=5663017,Ane=5663018,Sne=5663019,cit=5663020,uit=705e4,fjt=7050001,pjt=7050002,hjt=7050003,mjt=7050004,gjt=7050005,yjt=7050006,bjt=7050007,vjt=7050008,wjt=7050009,xjt=7050010,Ejt=7050011,Ajt=7050012,Sjt=7050013,_jt=7050014,Tjt=7050015,Cjt=7050016,Rjt=7050017,Ijt=7050018,kjt=7050019,Ojt=7050020,Njt=7050021,Pjt=7050022,Mjt=7050023,Djt=7050024,Bjt=7050025,Ljt=7050026,Ujt=7050027,Fjt=7050028,Hjt=7050029,lit=7050030,dit=7050031,zjt=7050032,jjt=7050033,Wjt=7050034,fit=7050035,Vjt=7050036,uwe=8078e3,lwe=8078001,dwe=8078002,pit=8078003,fwe=8078004,pwe=8078005,hwe=8078006,mwe=8078007,gwe=8078008,hit=8078009,mit=8078010,ywe=8078011,RI=8078012,sz=8078013,bwe=8078014,git=8078015,yit=8078016,vwe=8078017,wwe=8078018,Gjt=8078019,bit=8078020,vit=8078021,xwe=8078022,cz=81e5,Ewe=8100001,Awe=8100002,Swe=8100003,_we=819e4,Twe=8190001,Cwe=8190002,DM=8190003,Rwe=8190004,Iwe=99e5,kwe=9900001,qjt=9900002,Owe=9900003,Nwe=9900004;var Kjt={[Hve]:\"Account not found at address: $address\",[Wve]:\"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.\",[jot]:\"Expected decoded account at address: $address\",[jve]:\"Failed to decode account data at address: $address\",[zve]:\"Accounts not found at addresses: $addresses\",[Fve]:\"Unable to find a viable program address bump seed.\",[nzt]:\"$putativeAddress is not a base58-encoded address.\",[vne]:\"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.\",[Bve]:\"The `CryptoKey` must be an `Ed25519` public key.\",[zot]:\"$putativeOffCurveAddress is not a base58-encoded off-curve address.\",[xne]:\"Invalid seeds; point must fall off the Ed25519 curve.\",[Uot]:\"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].\",[Lve]:\"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.\",[Uve]:\"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.\",[Fot]:\"Expected program derived address bump to be in the range [0, 255], got: $bump.\",[Hot]:\"Program address cannot end with PDA marker.\",[wne]:\"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.\",[yot]:\"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.\",[az]:\"The network has progressed past the last block for which this transaction could have been committed.\",[uwe]:\"Codec [$codecDescription] cannot decode empty byte arrays.\",[xwe]:\"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.\",[bit]:\"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].\",[pwe]:\"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].\",[hwe]:\"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].\",[fwe]:\"Encoder and decoder must either both be fixed-size or variable-size.\",[gwe]:\"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.\",[dwe]:\"Expected a fixed-size codec, got a variable-size one.\",[sz]:\"Codec [$codecDescription] expected a positive byte length, got $bytesLength.\",[pit]:\"Expected a variable-size codec, got a fixed-size one.\",[Gjt]:\"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].\",[lwe]:\"Codec [$codecDescription] expected $expected bytes, got $bytesLength.\",[wwe]:\"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].\",[hit]:\"Invalid discriminated union variant. Expected one of [$variants], got $value.\",[mit]:\"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.\",[git]:\"Invalid literal union variant. Expected one of [$variants], got $value.\",[mwe]:\"Expected [$codecDescription] to have $expected items, got $actual.\",[RI]:\"Invalid value $value for base $base with alphabet $alphabet.\",[yit]:\"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.\",[ywe]:\"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.\",[bwe]:\"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.\",[vit]:\"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].\",[vwe]:\"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.\",[qot]:\"No random values implementation could be found.\",[yzt]:\"instruction requires an uninitialized account\",[Ozt]:\"instruction tries to borrow reference for an account which is already borrowed\",[Nzt]:\"instruction left account with an outstanding borrowed reference\",[Izt]:\"program other than the account\\'s owner changed the size of the account data\",[pzt]:\"account data too small for instruction\",[kzt]:\"instruction expected an executable account\",[Xzt]:\"An account does not have enough lamports to be rent-exempt\",[ejt]:\"Program arithmetic overflowed\",[Qot]:\"Failed to serialize or deserialize account data: $encodedData\",[ajt]:\"Builtin programs must consume compute units\",[Fzt]:\"Cross-program invocation call depth too deep\",[Gzt]:\"Computational budget exceeded\",[Zot]:\"custom program error: #$code\",[_zt]:\"instruction contains duplicate accounts\",[Pzt]:\"instruction modifications of multiply-passed account differ\",[Lzt]:\"executable accounts must be rent exempt\",[Dzt]:\"instruction changed executable accounts data\",[Bzt]:\"instruction changed the balance of an executable account\",[Tzt]:\"instruction changed executable bit of an account\",[Ezt]:\"instruction modified data of an account it does not own\",[xzt]:\"instruction spent from the balance of an account it does not own\",[uzt]:\"generic instruction error\",[njt]:\"Provided owner is not allowed\",[Qzt]:\"Account is immutable\",[Jzt]:\"Incorrect authority provided\",[mzt]:\"incorrect program id for instruction\",[hzt]:\"insufficient funds for instruction\",[fzt]:\"invalid account data for instruction\",[$zt]:\"Invalid account owner\",[lzt]:\"invalid program argument\",[Mzt]:\"program returned invalid error code\",[dzt]:\"invalid instruction data\",[Vzt]:\"Failed to reallocate account data\",[Wzt]:\"Provided seeds do not result in a valid address\",[rjt]:\"Accounts data allocations exceeded the maximum allowed per transaction\",[ojt]:\"Max accounts exceeded\",[ijt]:\"Max instruction trace length exceeded\",[jzt]:\"Length of the seed is too long for address generation\",[Hzt]:\"An account required by the instruction is missing\",[gzt]:\"missing required signature for instruction\",[wzt]:\"instruction illegally modified the program id of an account\",[Rzt]:\"insufficient account keys for instruction\",[qzt]:\"Cross-program invocation with unauthorized signer or writable account\",[Kzt]:\"Failed to create program execution environment\",[Zzt]:\"Program failed to compile\",[Yzt]:\"Program failed to complete\",[Szt]:\"instruction modified data of a read-only account\",[Azt]:\"instruction changed the balance of a read-only account\",[zzt]:\"Cross-program invocation reentrancy not allowed for this instruction\",[Czt]:\"instruction modified rent epoch of an account\",[vzt]:\"sum of account balances before and after instruction do not match\",[bzt]:\"instruction requires an initialized account\",[Yot]:\"\",[Uzt]:\"Unsupported program id\",[tjt]:\"Unsupported sysvar\",[Yve]:\"The instruction does not have any accounts.\",[Zve]:\"The instruction does not have any data.\",[Kot]:\"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.\",[bot]:\"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.\",[mot]:\"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`\",[qjt]:\"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant\",[Nwe]:\"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.\",[kwe]:\"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant\",[Iwe]:\"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant\",[Owe]:\"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant\",[_ot]:\"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)\",[Tot]:\"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)\",[Rot]:\"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)\",[Cot]:\"JSON-RPC error: The method does not exist / is not available ($__serverMessage)\",[Sot]:\"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)\",[Oot]:\"$__serverMessage\",[Lot]:\"$__serverMessage\",[Bot]:\"$__serverMessage\",[kot]:\"$__serverMessage\",[Not]:\"$__serverMessage\",[Pot]:\"$__serverMessage\",[QHt]:\"Minimum context slot has not been reached\",[ezt]:\"Node is unhealthy; behind by $numSlotsBehind slots\",[$Ht]:\"No snapshot\",[Dve]:\"Transaction simulation failed\",[Mot]:\"$__serverMessage\",[XHt]:\"Transaction history is not available from this node\",[Dot]:\"$__serverMessage\",[JHt]:\"Transaction signature length mismatch\",[tzt]:\"Transaction signature verification failure\",[Iot]:\"$__serverMessage\",[ozt]:\"Key pair bytes must be of length 64, got $byteLength.\",[izt]:\"Expected private key bytes with length 32. Actual length: $actualLength.\",[azt]:\"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.\",[czt]:\"The provided private key does not match the provided public key.\",[szt]:\"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.\",[vot]:\"Lamports value must be in the range [0, 2e64-1]\",[wot]:\"`$value` cannot be parsed as a `BigInt`\",[Aot]:\"$message\",[xot]:\"`$value` cannot be parsed as a `Number`\",[got]:\"No nonce account could be found at address `$nonceAccountAddress`\",[_we]:\"The notification name must end in \\'Notifications\\' and the API must supply a subscription plan creator function for the notification \\'$notificationName\\'.\",[Cwe]:\"WebSocket was closed before payload could be added to the send buffer\",[DM]:\"WebSocket connection closed\",[Rwe]:\"WebSocket failed to connect\",[Twe]:\"Failed to obtain a subscription id from the server\",[Swe]:\"Could not find an API plan for RPC method: `$method`\",[cz]:\"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.\",[Awe]:\"HTTP error ($statusCode): $message\",[Ewe]:\"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.\",[Qve]:\"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.\",[Jot]:\"The provided value does not implement the `KeyPairSigner` interface\",[$ot]:\"The provided value does not implement the `MessageModifyingSigner` interface\",[eit]:\"The provided value does not implement the `MessagePartialSigner` interface\",[Xot]:\"The provided value does not implement any of the `MessageSigner` interfaces\",[nit]:\"The provided value does not implement the `TransactionModifyingSigner` interface\",[rit]:\"The provided value does not implement the `TransactionPartialSigner` interface\",[oit]:\"The provided value does not implement the `TransactionSendingSigner` interface\",[tit]:\"The provided value does not implement any of the `TransactionSigner` interfaces\",[iit]:\"More than one `TransactionSendingSigner` was identified.\",[ait]:\"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.\",[sjt]:\"Wallet account signers do not support signing multiple messages/transactions in a single operation\",[rzt]:\"Cannot export a non-extractable key.\",[Gve]:\"No digest implementation could be found.\",[Vve]:\"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.\",[Wot]:`This runtime does not support the generation of Ed25519 key pairs.\\n\\nInstall @solana/webcrypto-ed25519-polyfill and call its \\\\`install\\\\` function before generating keys in environments that do not support Ed25519.\\n\\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[qve]:\"No signature verification implementation could be found.\",[Vot]:\"No key generation implementation could be found.\",[Kve]:\"No signing implementation could be found.\",[Got]:\"No key export implementation could be found.\",[Eot]:\"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given\",[Cjt]:\"Transaction processing left an account with an outstanding borrowed reference\",[fjt]:\"Account in use\",[pjt]:\"Account loaded twice\",[hjt]:\"Attempt to debit an account but found no record of a prior credit.\",[Mjt]:\"Transaction loads an address table account that doesn\\'t exist\",[bjt]:\"This transaction has already been processed\",[vjt]:\"Blockhash not found\",[wjt]:\"Loader call chain is too deep\",[Tjt]:\"Transactions are currently disabled due to cluster maintenance\",[lit]:\"Transaction contains a duplicate instruction ($index) that is not allowed\",[gjt]:\"Insufficient funds for fee\",[dit]:\"Transaction results in an account ($accountIndex) with insufficient funds for rent\",[yjt]:\"This account may not be used to pay transaction fees\",[Ejt]:\"Transaction contains an invalid account reference\",[Bjt]:\"Transaction loads an address table account with invalid data\",[Ljt]:\"Transaction address table lookup uses an invalid index\",[Djt]:\"Transaction loads an address table account with an invalid owner\",[jjt]:\"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.\",[Sjt]:\"This program may not be used for executing instructions\",[Ujt]:\"Transaction leaves an account with a lower balance than rent-exempt minimum\",[kjt]:\"Transaction loads a writable account that cannot be written\",[zjt]:\"Transaction exceeded max loaded accounts data size cap\",[xjt]:\"Transaction requires a fee but has no signature present\",[mjt]:\"Attempt to load a program that does not exist\",[fit]:\"Execution of the program referenced by account at index $accountIndex is temporarily restricted.\",[Wjt]:\"ResanitizationNeeded\",[_jt]:\"Transaction failed to sanitize accounts offsets correctly\",[Ajt]:\"Transaction did not pass signature verification\",[Pjt]:\"Transaction locked too many accounts\",[Vjt]:\"Sum of account balances before and after transaction do not match\",[uit]:\"The transaction failed with the error `$errorName`\",[Ijt]:\"Transaction version is unsupported\",[Njt]:\"Transaction would exceed account data limit within the block\",[Hjt]:\"Transaction would exceed total account data limit\",[Ojt]:\"Transaction would exceed max account limit within the block\",[Rjt]:\"Transaction would exceed max Block Cost Limit\",[Fjt]:\"Transaction would exceed max Vote Cost Limit\",[awe]:\"Attempted to sign a transaction with an address that is not a signer for it\",[cjt]:\"Transaction is missing an address at index: $index.\",[swe]:\"Transaction has no expected signers therefore it cannot be encoded\",[cit]:\"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes\",[Xve]:\"Transaction does not have a blockhash lifetime\",[sit]:\"Transaction is not a durable nonce transaction\",[ewe]:\"Contents of these address lookup tables unknown: $lookupTableAddresses\",[twe]:\"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved\",[rwe]:\"No fee payer set in CompiledTransaction\",[nwe]:\"Could not find program address at index $index\",[Ane]:\"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more\",[Sne]:\"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more\",[ujt]:\"Transaction is missing a fee payer.\",[iwe]:\"Could not determine this transaction\\'s signature. Make sure that the transaction has been signed by its fee payer.\",[djt]:\"Transaction first instruction is not advance nonce account instruction.\",[ljt]:\"Transaction with no instructions cannot be durable nonce transaction.\",[Jve]:\"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees\",[Ene]:\"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable\",[cwe]:\"The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.\",[owe]:\"Transaction is missing signatures for addresses: $addresses.\",[$ve]:\"Transaction version must be in the range [0, 127]. `$actualVersion` given\"},fA=\"i\",ix=\"t\";function Yjt(e,t={}){let n=Kjt[e];if(n.length===0)return\"\";let r;function o(a){if(r[ix]===2){let c=n.slice(r[fA]+1,a);i.push(c in t?`${t[c]}`:`$${c}`)}else r[ix]===1&&i.push(n.slice(r[fA],a))}let i=[];return n.split(\"\").forEach((a,c)=>{if(c===0){r={[fA]:0,[ix]:n[0]===\"\\\\\\\\\"?0:n[0]===\"$\"?2:1};return}let l;switch(r[ix]){case 0:l={[fA]:c,[ix]:1};break;case 1:a===\"\\\\\\\\\"?l={[fA]:c,[ix]:0}:a===\"$\"&&(l={[fA]:c,[ix]:2});break;case 2:a===\"\\\\\\\\\"?l={[fA]:c,[ix]:0}:a===\"$\"?l={[fA]:c,[ix]:2}:a.match(/\\\\w/)||(l={[fA]:c,[ix]:1});break}l&&(r!==l&&o(c),r=l)}),o(),i.join(\"\")}function Zjt(e,t={}){return Yjt(e,t)}function pA(e,t){return e instanceof Error&&e.name===\"SolanaError\"?t!==void 0?e.context.__code===t:!0:!1}var Pt=class extends Error{constructor(...[t,n]){let r,o;if(n){let{cause:a,...c}=n;a&&(o={cause:a}),Object.keys(c).length>0&&(r=c)}let i=Zjt(t,r);super(i,o);ss(this,\"cause\",this.cause);ss(this,\"context\");this.context={__code:t,...r},this.name=\"SolanaError\"}};function BM(...e){\"captureStackTrace\"in Error&&typeof Error.captureStackTrace==\"function\"&&Error.captureStackTrace(...e)}function wit({errorCodeBaseOffset:e,getErrorContext:t,orderedErrorNames:n,rpcEnumError:r},o){let i,a;typeof r==\"string\"?i=r:(i=Object.keys(r)[0],a=r[i]);let c=n.indexOf(i),l=e+c,d=t(l,i,a),m=new Pt(l,d);return BM(m,o),m}var Qjt=[\"GenericError\",\"InvalidArgument\",\"InvalidInstructionData\",\"InvalidAccountData\",\"AccountDataTooSmall\",\"InsufficientFunds\",\"IncorrectProgramId\",\"MissingRequiredSignature\",\"AccountAlreadyInitialized\",\"UninitializedAccount\",\"UnbalancedInstruction\",\"ModifiedProgramId\",\"ExternalAccountLamportSpend\",\"ExternalAccountDataModified\",\"ReadonlyLamportChange\",\"ReadonlyDataModified\",\"DuplicateAccountIndex\",\"ExecutableModified\",\"RentEpochModified\",\"NotEnoughAccountKeys\",\"AccountDataSizeChanged\",\"AccountNotExecutable\",\"AccountBorrowFailed\",\"AccountBorrowOutstanding\",\"DuplicateAccountOutOfSync\",\"Custom\",\"InvalidError\",\"ExecutableDataModified\",\"ExecutableLamportChange\",\"ExecutableAccountNotRentExempt\",\"UnsupportedProgramId\",\"CallDepth\",\"MissingAccount\",\"ReentrancyNotAllowed\",\"MaxSeedLengthExceeded\",\"InvalidSeeds\",\"InvalidRealloc\",\"ComputationalBudgetExceeded\",\"PrivilegeEscalation\",\"ProgramEnvironmentSetupFailure\",\"ProgramFailedToComplete\",\"ProgramFailedToCompile\",\"Immutable\",\"IncorrectAuthority\",\"BorshIoError\",\"AccountNotRentExempt\",\"InvalidAccountOwner\",\"ArithmeticOverflow\",\"UnsupportedSysvar\",\"IllegalOwner\",\"MaxAccountsDataAllocationsExceeded\",\"MaxAccountsExceeded\",\"MaxInstructionTraceLengthExceeded\",\"BuiltinProgramsMustConsumeComputeUnits\"];function xit(e,t){let n=Number(e);return wit({errorCodeBaseOffset:4615001,getErrorContext(r,o,i){return r===Yot?{errorName:o,index:n,...i!==void 0?{instructionErrorContext:i}:null}:r===Zot?{code:Number(i),index:n}:r===Qot?{encodedData:i,index:n}:{index:n}},orderedErrorNames:Qjt,rpcEnumError:t},xit)}var Jjt=[\"AccountInUse\",\"AccountLoadedTwice\",\"AccountNotFound\",\"ProgramAccountNotFound\",\"InsufficientFundsForFee\",\"InvalidAccountForFee\",\"AlreadyProcessed\",\"BlockhashNotFound\",\"CallChainTooDeep\",\"MissingSignatureForFee\",\"InvalidAccountIndex\",\"SignatureFailure\",\"InvalidProgramForExecution\",\"SanitizeFailure\",\"ClusterMaintenance\",\"AccountBorrowOutstanding\",\"WouldExceedMaxBlockCostLimit\",\"UnsupportedVersion\",\"InvalidWritableAccount\",\"WouldExceedMaxAccountCostLimit\",\"WouldExceedAccountDataBlockLimit\",\"TooManyAccountLocks\",\"AddressLookupTableNotFound\",\"InvalidAddressLookupTableOwner\",\"InvalidAddressLookupTableData\",\"InvalidAddressLookupTableIndex\",\"InvalidRentPayingAccount\",\"WouldExceedMaxVoteCostLimit\",\"WouldExceedAccountDataTotalLimit\",\"DuplicateInstruction\",\"InsufficientFundsForRent\",\"MaxLoadedAccountsDataSizeExceeded\",\"InvalidLoadedAccountsDataSizeLimit\",\"ResanitizationNeeded\",\"ProgramExecutionTemporarilyRestricted\",\"UnbalancedTransaction\"];function _ne(e){return typeof e==\"object\"&&\"InstructionError\"in e?xit(...e.InstructionError):wit({errorCodeBaseOffset:7050001,getErrorContext(t,n,r){if(t===uit)return{errorName:n,...r!==void 0?{transactionErrorContext:r}:null};if(t===lit)return{index:Number(r)};if(t===dit||t===fit)return{accountIndex:Number(r.account_index)}},orderedErrorNames:Jjt,rpcEnumError:e},_ne)}function uz(e){let t;if(Xjt(e)){let{code:n,data:r,message:o}=e,i=Number(n);if(i===Dve){let{err:a,...c}=r,l=a?{cause:_ne(a)}:null;t=new Pt(Dve,{...c,...l})}else{let a;switch(i){case _ot:case Tot:case Rot:case Cot:case Sot:case Oot:case Lot:case Bot:case kot:case Not:case Pot:case Mot:case Dot:case Iot:a={__serverMessage:o};break;default:typeof r==\"object\"&&!Array.isArray(r)&&(a=r)}t=new Pt(i,a)}}else{let n=typeof e==\"object\"&&e!==null&&\"message\"in e&&typeof e.message==\"string\"?e.message:\"Malformed JSON-RPC error with no message attribute\";t=new Pt(Aot,{error:e,message:n})}return BM(t,uz),t}function Xjt(e){return typeof e==\"object\"&&e!==null&&\"code\"in e&&\"message\"in e&&(typeof e.code==\"number\"||typeof e.code==\"bigint\")&&typeof e.message==\"string\"}f();var $jt=(e,t)=>{if(e.length>=t)return e;let n=new Uint8Array(t).fill(0);return n.set(e),n},eWt=(e,t)=>$jt(e.length<=t?e:e.slice(0,t),t);function je(e,t,n){let r=n===0&&e.length===t.length?e:e.slice(n,n+t.length);return r.length!==t.length?!1:t.every((o,i)=>o===r[i])}function II(e,t){return\"fixedSize\"in t?t.fixedSize:t.getSizeFromValue(e)}function iu(e){return Object.freeze({...e,encode:t=>{let n=new Uint8Array(II(t,e));return e.write(t,n,0),n}})}function za(e){return Object.freeze({...e,decode:(t,n=0)=>e.read(t,n)[0]})}function Bs(e){return\"fixedSize\"in e&&typeof e.fixedSize==\"number\"}function Pwe(e){if(!Bs(e))throw new Pt(dwe)}function tWt(e){return!Bs(e)}function Ry(e,t){if(Bs(e)!==Bs(t))throw new Pt(fwe);if(Bs(e)&&Bs(t)&&e.fixedSize!==t.fixedSize)throw new Pt(pwe,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!Bs(e)&&!Bs(t)&&e.maxSize!==t.maxSize)throw new Pt(hwe,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}function Eit(e,t,n=0){if(t.length-n<=0)throw new Pt(uwe,{codecDescription:e})}function lz(e,t,n,r=0){let o=n.length-r;if(o<t)throw new Pt(lwe,{bytesLength:o,codecDescription:e,expected:t})}function Tne(e,t,n){if(t<0||t>n)throw new Pt(bwe,{bytesLength:n,codecDescription:e,offset:t})}function Mwe(e,t){let n=(a,c,l)=>{let d=e.encode(a);return l=t.write(d.length,c,l),c.set(d,l),l+d.length};if(Bs(t)&&Bs(e))return iu({...e,fixedSize:t.fixedSize+e.fixedSize,write:n});let r=Bs(t)?t.fixedSize:t.maxSize??null,o=Bs(e)?e.fixedSize:e.maxSize??null,i=r!==null&&o!==null?r+o:null;return iu({...e,...i!==null?{maxSize:i}:{},getSizeFromValue:a=>{let c=II(a,e);return II(c,t)+c},write:n})}function di(e,t){let n=(a,c)=>{let[l,d]=t.read(a,c),m=Number(l);return c=d,(c>0||a.length>m)&&(a=a.slice(c,c+m)),lz(\"addDecoderSizePrefix\",m,a),[e.decode(a),c+m]};if(Bs(t)&&Bs(e))return za({...e,fixedSize:t.fixedSize+e.fixedSize,read:n});let r=Bs(t)?t.fixedSize:t.maxSize??null,o=Bs(e)?e.fixedSize:e.maxSize??null,i=r!==null&&o!==null?r+o:null;return za({...e,...i!==null?{maxSize:i}:{},read:n})}function hA(e,t){return iu({fixedSize:t,write:(n,r,o)=>{let i=e.encode(n),a=i.length>t?i.slice(0,t):i;return r.set(a,o),o+t}})}function Iy(e,t){return za({fixedSize:t,read:(n,r)=>{lz(\"fixCodecSize\",t,n,r),(r>0||n.length>t)&&(n=n.slice(r,r+t)),Bs(e)&&(n=eWt(n,e.fixedSize));let[o]=e.read(n,0);return[o,r+t]}})}function nWt(e,t){return iu({...e,write:(n,r,o)=>{let i=d=>Ait(d,r.length),a=t.preOffset?t.preOffset({bytes:r,preOffset:o,wrapBytes:i}):o;Tne(\"offsetEncoder\",a,r.length);let c=e.write(n,r,a),l=t.postOffset?t.postOffset({bytes:r,newPreOffset:a,postOffset:c,preOffset:o,wrapBytes:i}):c;return Tne(\"offsetEncoder\",l,r.length),l}})}function rWt(e,t){return za({...e,read:(n,r)=>{let o=d=>Ait(d,n.length),i=t.preOffset?t.preOffset({bytes:n,preOffset:r,wrapBytes:o}):r;Tne(\"offsetDecoder\",i,n.length);let[a,c]=e.read(n,i),l=t.postOffset?t.postOffset({bytes:n,newPreOffset:i,postOffset:c,preOffset:r,wrapBytes:o}):c;return Tne(\"offsetDecoder\",l,n.length),[a,l]}})}function Ait(e,t){return t===0?0:(e%t+t)%t}function oWt(e,t){if(Bs(e)){let n=t(e.fixedSize);if(n<0)throw new Pt(sz,{bytesLength:n,codecDescription:\"resizeEncoder\"});return iu({...e,fixedSize:n})}return iu({...e,getSizeFromValue:n=>{let r=t(e.getSizeFromValue(n));if(r<0)throw new Pt(sz,{bytesLength:r,codecDescription:\"resizeEncoder\"});return r}})}function iWt(e,t){if(Bs(e)){let n=t(e.fixedSize);if(n<0)throw new Pt(sz,{bytesLength:n,codecDescription:\"resizeDecoder\"});return za({...e,fixedSize:n})}return e}function Sit(e,t){return nWt(oWt(e,n=>n+t),{preOffset:({preOffset:n})=>n+t})}function _it(e,t){return rWt(iWt(e,n=>n+t),{postOffset:({postOffset:n})=>n+t})}function Kf(e,t){return iu({...tWt(e)?{...e,getSizeFromValue:n=>e.getSizeFromValue(t(n))}:e,write:(n,r,o)=>e.write(t(n),r,o)})}function Yf(e,t){return za({...e,read:(n,r)=>{let[o,i]=e.read(n,r);return[t(o,n,r),i]}})}function Tit(e,t,n,r){if(r<t||r>n)throw new Pt(ywe,{codecDescription:e,max:n,min:t,value:r})}function Cit(e){return e?.endian!==1}function Dwe(e){return iu({fixedSize:e.size,write(t,n,r){e.range&&Tit(e.name,e.range[0],e.range[1],t);let o=new ArrayBuffer(e.size);return e.set(new DataView(o),t,Cit(e.config)),n.set(new Uint8Array(o),r),r+e.size}})}function LM(e){return za({fixedSize:e.size,read(t,n=0){Eit(e.name,t,n),lz(e.name,e.size,t,n);let r=new DataView(aWt(t,n,e.size));return[e.get(r,Cit(e.config)),n+e.size]}})}function aWt(e,t,n){let r=e.byteOffset+(t??0),o=n??e.byteLength;return e.buffer.slice(r,r+o)}var Bwe=(e={})=>LM({config:e,get:(t,n)=>t.getFloat64(0,n),name:\"f64\",size:8});var Lwe=(e={})=>LM({config:e,get:(t,n)=>t.getInt16(0,n),name:\"i16\",size:2});var mA=()=>iu({getSizeFromValue:e=>e<=127?1:e<=16383?2:3,maxSize:3,write:(e,t,n)=>{Tit(\"shortU16\",0,65535,e);let r=[0];for(let o=0;;o+=1){let i=Number(e)>>o*7;if(i===0)break;let a=127&i;r[o]=a,o>0&&(r[o-1]|=128)}return t.set(r,n),n+r.length}}),ax=()=>za({maxSize:3,read:(e,t)=>{let n=0,r=0;for(;++r;){let o=r-1,i=e[t+o],a=127&i;if(n|=a<<o*7,(i&128)===0)break}return[n,t+r]}});var ua=(e={})=>LM({config:e,get:(t,n)=>t.getUint16(0,n),name:\"u16\",size:2});var UM=(e={})=>Dwe({config:e,name:\"u32\",range:[0,+\"0xffffffff\"],set:(t,n,r)=>t.setUint32(0,Number(n),r),size:4}),Vu=(e={})=>LM({config:e,get:(t,n)=>t.getUint32(0,n),name:\"u32\",size:4});var mC=(e={})=>Dwe({config:e,name:\"u64\",range:[0n,BigInt(\"0xffffffffffffffff\")],set:(t,n,r)=>t.setBigUint64(0,BigInt(n),r),size:8}),la=(e={})=>LM({config:e,get:(t,n)=>t.getBigUint64(0,n),name:\"u64\",size:8}),Rit=(e={})=>Ry(mC(e),la(e)),ze=()=>Dwe({name:\"u8\",range:[0,+\"0xff\"],set:(e,t)=>e.setUint8(0,Number(t)),size:1}),Ls=()=>LM({get:e=>e.getUint8(0),name:\"u8\",size:1});f();var Uwe=class extends TypeError{constructor(t,n){let r,{message:o,explanation:i,...a}=t,{path:c}=t,l=c.length===0?o:`At path: ${c.join(\".\")} -- ${o}`;super(i??l),i!=null&&(this.cause=l),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>r??(r=[t,...n()])}};function sWt(e){return dz(e)&&typeof e[Symbol.iterator]==\"function\"}function dz(e){return typeof e==\"object\"&&e!=null}function Cne(e){return dz(e)&&!Array.isArray(e)}function T1(e){return typeof e==\"symbol\"?e.toString():typeof e==\"string\"?JSON.stringify(e):`${e}`}function cWt(e){let{done:t,value:n}=e.next();return t?void 0:n}function uWt(e,t,n,r){if(e===!0)return;e===!1?e={}:typeof e==\"string\"&&(e={message:e});let{path:o,branch:i}=t,{type:a}=n,{refinement:c,message:l=`Expected a value of type \\\\`${a}\\\\`${c?` with refinement \\\\`${c}\\\\``:\"\"}, but received: \\\\`${T1(r)}\\\\``}=e;return{value:r,type:a,refinement:c,key:o[o.length-1],path:o,branch:i,...e,message:l}}function*Iit(e,t,n,r){sWt(e)||(e=[e]);for(let o of e){let i=uWt(o,t,n,r);i&&(yield i)}}function*Fwe(e,t,n={}){let{path:r=[],branch:o=[e],coerce:i=!1,mask:a=!1}=n,c={path:r,branch:o,mask:a};i&&(e=t.coercer(e,c));let l=\"valid\";for(let d of t.validator(e,c))d.explanation=n.message,l=\"not_valid\",yield[d,void 0];for(let[d,m,h]of t.entries(e,c)){let g=Fwe(m,h,{path:d===void 0?r:[...r,d],branch:d===void 0?o:[...o,m],coerce:i,mask:a,message:n.message});for(let y of g)y[0]?(l=y[0].refinement!=null?\"not_refined\":\"not_valid\",yield[y[0],void 0]):i&&(m=y[1],d===void 0?e=m:e instanceof Map?e.set(d,m):e instanceof Set?e.add(m):dz(e)&&(m!==void 0||d in e)&&(e[d]=m))}if(l!==\"not_valid\")for(let d of t.refiner(e,c))d.explanation=n.message,l=\"not_refined\",yield[d,void 0];l===\"valid\"&&(yield[void 0,e])}var ky=class{constructor(t){let{type:n,schema:r,validator:o,refiner:i,coercer:a=l=>l,entries:c=function*(){}}=t;this.type=n,this.schema=r,this.entries=c,this.coercer=a,o?this.validator=(l,d)=>{let m=o(l,d);return Iit(m,d,this,l)}:this.validator=()=>[],i?this.refiner=(l,d)=>{let m=i(l,d);return Iit(m,d,this,l)}:this.refiner=()=>[]}assert(t,n){return kit(t,this,n)}create(t,n){return FM(t,this,n)}is(t){return Oit(t,this)}mask(t,n){return lWt(t,this,n)}validate(t,n={}){return fz(t,this,n)}};function kit(e,t,n){let r=fz(e,t,{message:n});if(r[0])throw r[0]}function FM(e,t,n){let r=fz(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function lWt(e,t,n){let r=fz(e,t,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}function Oit(e,t){return!fz(e,t)[0]}function fz(e,t,n={}){let r=Fwe(e,t,n),o=cWt(r);return o[0]?[new Uwe(o[0],function*(){for(let a of r)a[0]&&(yield a[0])}),void 0]:[void 0,o[1]]}function kI(e,t){return new ky({type:e,schema:null,validator:t})}function Nit(){return kI(\"any\",()=>!0)}function on(e){return new ky({type:\"array\",schema:e,*entries(t){if(e&&Array.isArray(t))for(let[n,r]of t.entries())yield[n,r,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${T1(t)}`}})}function C1(){return kI(\"boolean\",e=>typeof e==\"boolean\")}function Rne(e){return kI(\"instance\",t=>t instanceof e||`Expected a \\\\`${e.name}\\\\` instance, but received: ${T1(t)}`)}function Us(e){let t=T1(e),n=typeof e;return new ky({type:\"literal\",schema:n===\"string\"||n===\"number\"||n===\"boolean\"?e:null,validator(r){return r===e||`Expected the literal \\\\`${t}\\\\`, but received: ${T1(r)}`}})}function dWt(){return kI(\"never\",()=>!1)}function an(e){return new ky({...e,validator:(t,n)=>t===null||e.validator(t,n),refiner:(t,n)=>t===null||e.refiner(t,n)})}function Ke(){return kI(\"number\",e=>typeof e==\"number\"&&!isNaN(e)||`Expected a number, but received: ${T1(e)}`)}function On(e){return new ky({...e,validator:(t,n)=>t===void 0||e.validator(t,n),refiner:(t,n)=>t===void 0||e.refiner(t,n)})}function Hwe(e,t){return new ky({type:\"record\",schema:null,*entries(n){if(dz(n))for(let r in n){let o=n[r];yield[r,r,e],yield[r,o,t]}},validator(n){return Cne(n)||`Expected an object, but received: ${T1(n)}`},coercer(n){return Cne(n)?{...n}:n}})}function Gt(){return kI(\"string\",e=>typeof e==\"string\"||`Expected a string, but received: ${T1(e)}`)}function Ine(e){let t=dWt();return new ky({type:\"tuple\",schema:null,*entries(n){if(Array.isArray(n)){let r=Math.max(e.length,n.length);for(let o=0;o<r;o++)yield[o,n[o],e[o]||t]}},validator(n){return Array.isArray(n)||`Expected an array, but received: ${T1(n)}`},coercer(n){return Array.isArray(n)?n.slice():n}})}function kt(e){let t=Object.keys(e);return new ky({type:\"type\",schema:e,*entries(n){if(dz(n))for(let r of t)yield[r,n[r],e[r]]},validator(n){return Cne(n)||`Expected an object, but received: ${T1(n)}`},coercer(n){return Cne(n)?{...n}:n}})}function Zf(e){let t=e.map(n=>n.type).join(\" | \");return new ky({type:\"union\",schema:null,coercer(n,r){for(let o of e){let[i,a]=o.validate(n,{coerce:!0,mask:r.mask});if(!i)return a}return n},validator(n,r){let o=[];for(let i of e){let[...a]=Fwe(n,i,r),[c]=a;if(c[0])for(let[l]of a)l&&o.push(l);else return[]}return[`Expected the value to satisfy a union of \\\\`${t}\\\\`, but received: ${T1(n)}`,...o]}})}function OI(){return kI(\"unknown\",()=>!0)}function HM(e,t,n){return new ky({...e,coercer:(r,o)=>Oit(r,t)?e.coercer(n(r,o),o):e.coercer(r,o)})}var yWt=ge(Bit());f();var gWt=ge(P2(),1);J_();M9();dpe();var ayr=gm.utils.randomPrivateKey,Lit=()=>{let e=gm.utils.randomPrivateKey(),t=qwe(e),n=new Uint8Array(64);return n.set(e),n.set(t,32),{publicKey:t,secretKey:n}},qwe=gm.getPublicKey;function Uit(e){try{return gm.ExtendedPoint.fromHex(e),!0}catch{return!1}}var axe=(e,t)=>gm.sign(e,t.slice(0,32)),bWt=gm.verify,vi=e=>tr.Buffer.isBuffer(e)?e:e instanceof Uint8Array?tr.Buffer.from(e.buffer,e.byteOffset,e.byteLength):tr.Buffer.from(e),Kwe=class{constructor(t){Object.assign(this,t)}encode(){return tr.Buffer.from((0,VM.serialize)(One,this))}static decode(t){return(0,VM.deserialize)(One,this,t)}static decodeUnchecked(t){return(0,VM.deserializeUnchecked)(One,this,t)}};var One=new Map,Qit,vWt=32,yC=32;function wWt(e){return e._bn!==void 0}var Fit=1,Br=class e extends Kwe{constructor(t){if(super({}),this._bn=void 0,wWt(t))this._bn=t._bn;else{if(typeof t==\"string\"){let n=Qf.default.decode(t);if(n.length!=yC)throw new Error(\"Invalid public key input\");this._bn=new Gwe.default(n)}else this._bn=new Gwe.default(t);if(this._bn.byteLength()>yC)throw new Error(\"Invalid public key input\")}}static unique(){let t=new e(Fit);return Fit+=1,new e(t.toBuffer())}equals(t){return this._bn.eq(t._bn)}toBase58(){return Qf.default.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){let t=this.toBuffer();return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}toBuffer(){let t=this._bn.toArrayLike(tr.Buffer);if(t.length===yC)return t;let n=tr.Buffer.alloc(32);return t.copy(n,32-t.length),n}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(t,n,r){let o=tr.Buffer.concat([t.toBuffer(),tr.Buffer.from(n),r.toBuffer()]),i=b5(o);return new e(i)}static createProgramAddressSync(t,n){let r=tr.Buffer.alloc(0);t.forEach(function(i){if(i.length>vWt)throw new TypeError(\"Max seed length exceeded\");r=tr.Buffer.concat([r,vi(i)])}),r=tr.Buffer.concat([r,n.toBuffer(),tr.Buffer.from(\"ProgramDerivedAddress\")]);let o=b5(r);if(Uit(o))throw new Error(\"Invalid seeds, address must fall off the curve\");return new e(o)}static async createProgramAddress(t,n){return this.createProgramAddressSync(t,n)}static findProgramAddressSync(t,n){let r=255,o;for(;r!=0;){try{let i=t.concat(tr.Buffer.from([r]));o=this.createProgramAddressSync(i,n)}catch(i){if(i instanceof TypeError)throw i;r--;continue}return[o,r]}throw new Error(\"Unable to find a viable program address nonce\")}static async findProgramAddress(t,n){return this.findProgramAddressSync(t,n)}static isOnCurve(t){let n=new e(t);return Uit(n.toBytes())}};Qit=Br;Br.default=new Qit(\"11111111111111111111111111111111\");One.set(Br,{kind:\"struct\",fields:[[\"_bn\",\"u256\"]]});var syr=new Br(\"BPFLoader1111111111111111111111111111111111\"),NI=1232,sxe=127,Nne=64,Ywe=class extends Error{constructor(t){super(`Signature ${t} has expired: block height exceeded.`),this.signature=void 0,this.signature=t}};Object.defineProperty(Ywe.prototype,\"name\",{value:\"TransactionExpiredBlockheightExceededError\"});var Zwe=class extends Error{constructor(t,n){super(`Transaction was not confirmed in ${n.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${t} using the Solana Explorer or CLI tools.`),this.signature=void 0,this.signature=t}};Object.defineProperty(Zwe.prototype,\"name\",{value:\"TransactionExpiredTimeoutError\"});var Qwe=class extends Error{constructor(t){super(`Signature ${t} has expired: the nonce is no longer valid.`),this.signature=void 0,this.signature=t}};Object.defineProperty(Qwe.prototype,\"name\",{value:\"TransactionExpiredNonceInvalidError\"});var jM=class{constructor(t,n){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=t,this.accountKeysFromLookups=n}keySegments(){let t=[this.staticAccountKeys];return this.accountKeysFromLookups&&(t.push(this.accountKeysFromLookups.writable),t.push(this.accountKeysFromLookups.readonly)),t}get(t){for(let n of this.keySegments()){if(t<n.length)return n[t];t-=n.length}}get length(){return this.keySegments().flat().length}compileInstructions(t){if(this.length>256)throw new Error(\"Account index overflow encountered during compilation\");let r=new Map;this.keySegments().flat().forEach((i,a)=>{r.set(i.toBase58(),a)});let o=i=>{let a=r.get(i.toBase58());if(a===void 0)throw new Error(\"Encountered an unknown instruction account key during compilation\");return a};return t.map(i=>({programIdIndex:o(i.programId),accountKeyIndexes:i.keys.map(a=>o(a.pubkey)),data:i.data}))}},No=(e=\"publicKey\")=>Ee.blob(32,e),xWt=(e=\"signature\")=>Ee.blob(64,e),zM=(e=\"string\")=>{let t=Ee.struct([Ee.u32(\"length\"),Ee.u32(\"lengthPadding\"),Ee.blob(Ee.offset(Ee.u32(),-8),\"chars\")],e),n=t.decode.bind(t),r=t.encode.bind(t),o=t;return o.decode=(i,a)=>n(i,a).chars.toString(),o.encode=(i,a,c)=>{let l={chars:tr.Buffer.from(i,\"utf8\")};return r(l,a,c)},o.alloc=i=>Ee.u32().span+Ee.u32().span+tr.Buffer.from(i,\"utf8\").length,o},EWt=(e=\"authorized\")=>Ee.struct([No(\"staker\"),No(\"withdrawer\")],e),AWt=(e=\"lockup\")=>Ee.struct([Ee.ns64(\"unixTimestamp\"),Ee.ns64(\"epoch\"),No(\"custodian\")],e),SWt=(e=\"voteInit\")=>Ee.struct([No(\"nodePubkey\"),No(\"authorizedVoter\"),No(\"authorizedWithdrawer\"),Ee.u8(\"commission\")],e),_Wt=(e=\"voteAuthorizeWithSeedArgs\")=>Ee.struct([Ee.u32(\"voteAuthorizationType\"),No(\"currentAuthorityDerivedKeyOwnerPubkey\"),zM(\"currentAuthorityDerivedKeySeed\"),No(\"newAuthorized\")],e);function Jit(e,t){let n=o=>{if(o.span>=0)return o.span;if(typeof o.alloc==\"function\")return o.alloc(t[o.property]);if(\"count\"in o&&\"elementLayout\"in o){let i=t[o.property];if(Array.isArray(i))return i.length*n(o.elementLayout)}else if(\"fields\"in o)return Jit({layout:o},t[o.property]);return 0},r=0;return e.layout.fields.forEach(o=>{r+=n(o)}),r}function O0(e){let t=0,n=0;for(;;){let r=e.shift();if(t|=(r&127)<<n*7,n+=1,(r&128)===0)break}return t}function N0(e,t){let n=t;for(;;){let r=n&127;if(n>>=7,n==0){e.push(r);break}else r|=128,e.push(r)}}function fs(e,t){if(!e)throw new Error(t||\"Assertion failed\")}var Pne=class e{constructor(t,n){this.payer=void 0,this.keyMetaMap=void 0,this.payer=t,this.keyMetaMap=n}static compile(t,n){let r=new Map,o=a=>{let c=a.toBase58(),l=r.get(c);return l===void 0&&(l={isSigner:!1,isWritable:!1,isInvoked:!1},r.set(c,l)),l},i=o(n);i.isSigner=!0,i.isWritable=!0;for(let a of t){o(a.programId).isInvoked=!0;for(let c of a.keys){let l=o(c.pubkey);l.isSigner||(l.isSigner=c.isSigner),l.isWritable||(l.isWritable=c.isWritable)}}return new e(n,r)}getMessageComponents(){let t=[...this.keyMetaMap.entries()];fs(t.length<=256,\"Max static account keys length exceeded\");let n=t.filter(([,l])=>l.isSigner&&l.isWritable),r=t.filter(([,l])=>l.isSigner&&!l.isWritable),o=t.filter(([,l])=>!l.isSigner&&l.isWritable),i=t.filter(([,l])=>!l.isSigner&&!l.isWritable),a={numRequiredSignatures:n.length+r.length,numReadonlySignedAccounts:r.length,numReadonlyUnsignedAccounts:i.length};{fs(n.length>0,\"Expected at least one writable signer key\");let[l]=n[0];fs(l===this.payer.toBase58(),\"Expected first writable signer key to be the fee payer\")}let c=[...n.map(([l])=>new Br(l)),...r.map(([l])=>new Br(l)),...o.map(([l])=>new Br(l)),...i.map(([l])=>new Br(l))];return[a,c]}extractTableLookup(t){let[n,r]=this.drainKeysFoundInLookupTable(t.state.addresses,a=>!a.isSigner&&!a.isInvoked&&a.isWritable),[o,i]=this.drainKeysFoundInLookupTable(t.state.addresses,a=>!a.isSigner&&!a.isInvoked&&!a.isWritable);if(!(n.length===0&&o.length===0))return[{accountKey:t.key,writableIndexes:n,readonlyIndexes:o},{writable:r,readonly:i}]}drainKeysFoundInLookupTable(t,n){let r=new Array,o=new Array;for(let[i,a]of this.keyMetaMap.entries())if(n(a)){let c=new Br(i),l=t.findIndex(d=>d.equals(c));l>=0&&(fs(l<256,\"Max lookup table index exceeded\"),r.push(l),o.push(c),this.keyMetaMap.delete(i))}return[r,o]}},Xit=\"Reached end of buffer unexpectedly\";function yA(e){if(e.length===0)throw new Error(Xit);return e.shift()}function P0(e,...t){let[n]=t;if(t.length===2?n+(t[1]??0)>e.length:n>=e.length)throw new Error(Xit);return e.splice(...t)}var gz=class e{constructor(t){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map(n=>new Br(n)),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach(n=>this.indexToProgramIds.set(n.programIdIndex,this.accountKeys[n.programIdIndex]))}get version(){return\"legacy\"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(t=>({programIdIndex:t.programIdIndex,accountKeyIndexes:t.accounts,data:Qf.default.decode(t.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new jM(this.staticAccountKeys)}static compile(t){let n=Pne.compile(t.instructions,t.payerKey),[r,o]=n.getMessageComponents(),a=new jM(o).compileInstructions(t.instructions).map(c=>({programIdIndex:c.programIdIndex,accounts:c.accountKeyIndexes,data:Qf.default.encode(c.data)}));return new e({header:r,accountKeys:o,recentBlockhash:t.recentBlockhash,instructions:a})}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){let n=this.header.numRequiredSignatures;if(t>=this.header.numRequiredSignatures){let r=t-n,i=this.accountKeys.length-n-this.header.numReadonlyUnsignedAccounts;return r<i}else{let r=n-this.header.numReadonlySignedAccounts;return t<r}}isProgramId(t){return this.indexToProgramIds.has(t)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter((t,n)=>!this.isProgramId(n))}serialize(){let t=this.accountKeys.length,n=[];N0(n,t);let r=this.instructions.map(h=>{let{accounts:g,programIdIndex:y}=h,w=Array.from(Qf.default.decode(h.data)),x=[];N0(x,g.length);let I=[];return N0(I,w.length),{programIdIndex:y,keyIndicesCount:tr.Buffer.from(x),keyIndices:g,dataLength:tr.Buffer.from(I),data:w}}),o=[];N0(o,r.length);let i=tr.Buffer.alloc(NI);tr.Buffer.from(o).copy(i);let a=o.length;r.forEach(h=>{let y=Ee.struct([Ee.u8(\"programIdIndex\"),Ee.blob(h.keyIndicesCount.length,\"keyIndicesCount\"),Ee.seq(Ee.u8(\"keyIndex\"),h.keyIndices.length,\"keyIndices\"),Ee.blob(h.dataLength.length,\"dataLength\"),Ee.seq(Ee.u8(\"userdatum\"),h.data.length,\"data\")]).encode(h,i,a);a+=y}),i=i.slice(0,a);let c=Ee.struct([Ee.blob(1,\"numRequiredSignatures\"),Ee.blob(1,\"numReadonlySignedAccounts\"),Ee.blob(1,\"numReadonlyUnsignedAccounts\"),Ee.blob(n.length,\"keyCount\"),Ee.seq(No(\"key\"),t,\"keys\"),No(\"recentBlockhash\")]),l={numRequiredSignatures:tr.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:tr.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:tr.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:tr.Buffer.from(n),keys:this.accountKeys.map(h=>vi(h.toBytes())),recentBlockhash:Qf.default.decode(this.recentBlockhash)},d=tr.Buffer.alloc(2048),m=c.encode(l,d);return i.copy(d,m),d.slice(0,m+i.length)}static from(t){let n=[...t],r=yA(n);if(r!==(r&sxe))throw new Error(\"Versioned messages must be deserialized with VersionedMessage.deserialize()\");let o=yA(n),i=yA(n),a=O0(n),c=[];for(let g=0;g<a;g++){let y=P0(n,0,yC);c.push(new Br(tr.Buffer.from(y)))}let l=P0(n,0,yC),d=O0(n),m=[];for(let g=0;g<d;g++){let y=yA(n),w=O0(n),x=P0(n,0,w),I=O0(n),C=P0(n,0,I),M=Qf.default.encode(tr.Buffer.from(C));m.push({programIdIndex:y,accounts:x,data:M})}let h={header:{numRequiredSignatures:r,numReadonlySignedAccounts:o,numReadonlyUnsignedAccounts:i},recentBlockhash:Qf.default.encode(tr.Buffer.from(l)),accountKeys:c,instructions:m};return new e(h)}},Jwe=class e{constructor(t){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=t.header,this.staticAccountKeys=t.staticAccountKeys,this.recentBlockhash=t.recentBlockhash,this.compiledInstructions=t.compiledInstructions,this.addressTableLookups=t.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let t=0;for(let n of this.addressTableLookups)t+=n.readonlyIndexes.length+n.writableIndexes.length;return t}getAccountKeys(t){let n;if(t&&\"accountKeysFromLookups\"in t&&t.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=t.accountKeysFromLookups.writable.length+t.accountKeysFromLookups.readonly.length)throw new Error(\"Failed to get account keys because of a mismatch in the number of account keys from lookups\");n=t.accountKeysFromLookups}else if(t&&\"addressLookupTableAccounts\"in t&&t.addressLookupTableAccounts)n=this.resolveAddressTableLookups(t.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw new Error(\"Failed to get account keys because address table lookups were not resolved\");return new jM(this.staticAccountKeys,n)}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){let n=this.header.numRequiredSignatures,r=this.staticAccountKeys.length;if(t>=r){let o=t-r,i=this.addressTableLookups.reduce((a,c)=>a+c.writableIndexes.length,0);return o<i}else if(t>=this.header.numRequiredSignatures){let o=t-n,a=r-n-this.header.numReadonlyUnsignedAccounts;return o<a}else{let o=n-this.header.numReadonlySignedAccounts;return t<o}}resolveAddressTableLookups(t){let n={writable:[],readonly:[]};for(let r of this.addressTableLookups){let o=t.find(i=>i.key.equals(r.accountKey));if(!o)throw new Error(`Failed to find address lookup table account for table key ${r.accountKey.toBase58()}`);for(let i of r.writableIndexes)if(i<o.state.addresses.length)n.writable.push(o.state.addresses[i]);else throw new Error(`Failed to find address for index ${i} in address lookup table ${r.accountKey.toBase58()}`);for(let i of r.readonlyIndexes)if(i<o.state.addresses.length)n.readonly.push(o.state.addresses[i]);else throw new Error(`Failed to find address for index ${i} in address lookup table ${r.accountKey.toBase58()}`)}return n}static compile(t){let n=Pne.compile(t.instructions,t.payerKey),r=new Array,o={writable:new Array,readonly:new Array},i=t.addressLookupTableAccounts||[];for(let m of i){let h=n.extractTableLookup(m);if(h!==void 0){let[g,{writable:y,readonly:w}]=h;r.push(g),o.writable.push(...y),o.readonly.push(...w)}}let[a,c]=n.getMessageComponents(),d=new jM(c,o).compileInstructions(t.instructions);return new e({header:a,staticAccountKeys:c,recentBlockhash:t.recentBlockhash,compiledInstructions:d,addressTableLookups:r})}serialize(){let t=Array();N0(t,this.staticAccountKeys.length);let n=this.serializeInstructions(),r=Array();N0(r,this.compiledInstructions.length);let o=this.serializeAddressTableLookups(),i=Array();N0(i,this.addressTableLookups.length);let a=Ee.struct([Ee.u8(\"prefix\"),Ee.struct([Ee.u8(\"numRequiredSignatures\"),Ee.u8(\"numReadonlySignedAccounts\"),Ee.u8(\"numReadonlyUnsignedAccounts\")],\"header\"),Ee.blob(t.length,\"staticAccountKeysLength\"),Ee.seq(No(),this.staticAccountKeys.length,\"staticAccountKeys\"),No(\"recentBlockhash\"),Ee.blob(r.length,\"instructionsLength\"),Ee.blob(n.length,\"serializedInstructions\"),Ee.blob(i.length,\"addressTableLookupsLength\"),Ee.blob(o.length,\"serializedAddressTableLookups\")]),c=new Uint8Array(NI),d=a.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(t),staticAccountKeys:this.staticAccountKeys.map(m=>m.toBytes()),recentBlockhash:Qf.default.decode(this.recentBlockhash),instructionsLength:new Uint8Array(r),serializedInstructions:n,addressTableLookupsLength:new Uint8Array(i),serializedAddressTableLookups:o},c);return c.slice(0,d)}serializeInstructions(){let t=0,n=new Uint8Array(NI);for(let r of this.compiledInstructions){let o=Array();N0(o,r.accountKeyIndexes.length);let i=Array();N0(i,r.data.length);let a=Ee.struct([Ee.u8(\"programIdIndex\"),Ee.blob(o.length,\"encodedAccountKeyIndexesLength\"),Ee.seq(Ee.u8(),r.accountKeyIndexes.length,\"accountKeyIndexes\"),Ee.blob(i.length,\"encodedDataLength\"),Ee.blob(r.data.length,\"data\")]);t+=a.encode({programIdIndex:r.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(o),accountKeyIndexes:r.accountKeyIndexes,encodedDataLength:new Uint8Array(i),data:r.data},n,t)}return n.slice(0,t)}serializeAddressTableLookups(){let t=0,n=new Uint8Array(NI);for(let r of this.addressTableLookups){let o=Array();N0(o,r.writableIndexes.length);let i=Array();N0(i,r.readonlyIndexes.length);let a=Ee.struct([No(\"accountKey\"),Ee.blob(o.length,\"encodedWritableIndexesLength\"),Ee.seq(Ee.u8(),r.writableIndexes.length,\"writableIndexes\"),Ee.blob(i.length,\"encodedReadonlyIndexesLength\"),Ee.seq(Ee.u8(),r.readonlyIndexes.length,\"readonlyIndexes\")]);t+=a.encode({accountKey:r.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(o),writableIndexes:r.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(i),readonlyIndexes:r.readonlyIndexes},n,t)}return n.slice(0,t)}static deserialize(t){let n=[...t],r=yA(n),o=r&sxe;fs(r!==o,\"Expected versioned message but received legacy message\");let i=o;fs(i===0,`Expected versioned message with version 0 but found version ${i}`);let a={numRequiredSignatures:yA(n),numReadonlySignedAccounts:yA(n),numReadonlyUnsignedAccounts:yA(n)},c=[],l=O0(n);for(let w=0;w<l;w++)c.push(new Br(P0(n,0,yC)));let d=Qf.default.encode(P0(n,0,yC)),m=O0(n),h=[];for(let w=0;w<m;w++){let x=yA(n),I=O0(n),C=P0(n,0,I),M=O0(n),B=new Uint8Array(P0(n,0,M));h.push({programIdIndex:x,accountKeyIndexes:C,data:B})}let g=O0(n),y=[];for(let w=0;w<g;w++){let x=new Br(P0(n,0,yC)),I=O0(n),C=P0(n,0,I),M=O0(n),B=P0(n,0,M);y.push({accountKey:x,writableIndexes:C,readonlyIndexes:B})}return new e({header:a,staticAccountKeys:c,recentBlockhash:d,compiledInstructions:h,addressTableLookups:y})}},Une={deserializeMessageVersion(e){let t=e[0],n=t&sxe;return n===t?\"legacy\":n},deserialize:e=>{let t=Une.deserializeMessageVersion(e);if(t===\"legacy\")return gz.from(e);if(t===0)return Jwe.deserialize(e);throw new Error(`Transaction message version ${t} deserialization is not supported`)}};var TWt=tr.Buffer.alloc(Nne).fill(0),Ea=class{constructor(t){this.keys=void 0,this.programId=void 0,this.data=tr.Buffer.alloc(0),this.programId=t.programId,this.keys=t.keys,t.data&&(this.data=t.data)}toJSON(){return{keys:this.keys.map(({pubkey:t,isSigner:n,isWritable:r})=>({pubkey:t.toJSON(),isSigner:n,isWritable:r})),programId:this.programId.toJSON(),data:[...this.data]}}},ja=class e{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(t){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,!!t)if(t.feePayer&&(this.feePayer=t.feePayer),t.signatures&&(this.signatures=t.signatures),Object.prototype.hasOwnProperty.call(t,\"nonceInfo\")){let{minContextSlot:n,nonceInfo:r}=t;this.minNonceContextSlot=n,this.nonceInfo=r}else if(Object.prototype.hasOwnProperty.call(t,\"lastValidBlockHeight\")){let{blockhash:n,lastValidBlockHeight:r}=t;this.recentBlockhash=n,this.lastValidBlockHeight=r}else{let{recentBlockhash:n,nonceInfo:r}=t;r&&(this.nonceInfo=r),this.recentBlockhash=n}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(t=>t.toJSON()),signers:this.signatures.map(({publicKey:t})=>t.toJSON())}}add(...t){if(t.length===0)throw new Error(\"No instructions\");return t.forEach(n=>{\"instructions\"in n?this.instructions=this.instructions.concat(n.instructions):\"data\"in n&&\"programId\"in n&&\"keys\"in n?this.instructions.push(n):this.instructions.push(new Ea(n))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let t,n;if(this.nonceInfo?(t=this.nonceInfo.nonce,this.instructions[0]!=this.nonceInfo.nonceInstruction?n=[this.nonceInfo.nonceInstruction,...this.instructions]:n=this.instructions):(t=this.recentBlockhash,n=this.instructions),!t)throw new Error(\"Transaction recentBlockhash required\");n.length<1&&console.warn(\"No instructions provided\");let r;if(this.feePayer)r=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)r=this.signatures[0].publicKey;else throw new Error(\"Transaction fee payer required\");for(let x=0;x<n.length;x++)if(n[x].programId===void 0)throw new Error(`Transaction instruction index ${x} has undefined program id`);let o=[],i=[];n.forEach(x=>{x.keys.forEach(C=>{i.push({...C})});let I=x.programId.toString();o.includes(I)||o.push(I)}),o.forEach(x=>{i.push({pubkey:new Br(x),isSigner:!1,isWritable:!1})});let a=[];i.forEach(x=>{let I=x.pubkey.toString(),C=a.findIndex(M=>M.pubkey.toString()===I);C>-1?(a[C].isWritable=a[C].isWritable||x.isWritable,a[C].isSigner=a[C].isSigner||x.isSigner):a.push(x)}),a.sort(function(x,I){if(x.isSigner!==I.isSigner)return x.isSigner?-1:1;if(x.isWritable!==I.isWritable)return x.isWritable?-1:1;let C={localeMatcher:\"best fit\",usage:\"sort\",sensitivity:\"variant\",ignorePunctuation:!1,numeric:!1,caseFirst:\"lower\"};return x.pubkey.toBase58().localeCompare(I.pubkey.toBase58(),\"en\",C)});let c=a.findIndex(x=>x.pubkey.equals(r));if(c>-1){let[x]=a.splice(c,1);x.isSigner=!0,x.isWritable=!0,a.unshift(x)}else a.unshift({pubkey:r,isSigner:!0,isWritable:!0});for(let x of this.signatures){let I=a.findIndex(C=>C.pubkey.equals(x.publicKey));if(I>-1)a[I].isSigner||(a[I].isSigner=!0,console.warn(\"Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release.\"));else throw new Error(`unknown signer: ${x.publicKey.toString()}`)}let l=0,d=0,m=0,h=[],g=[];a.forEach(({pubkey:x,isSigner:I,isWritable:C})=>{I?(h.push(x.toString()),l+=1,C||(d+=1)):(g.push(x.toString()),C||(m+=1))});let y=h.concat(g),w=n.map(x=>{let{data:I,programId:C}=x;return{programIdIndex:y.indexOf(C.toString()),accounts:x.keys.map(M=>y.indexOf(M.pubkey.toString())),data:Qf.default.encode(I)}});return w.forEach(x=>{fs(x.programIdIndex>=0),x.accounts.forEach(I=>fs(I>=0))}),new gz({header:{numRequiredSignatures:l,numReadonlySignedAccounts:d,numReadonlyUnsignedAccounts:m},accountKeys:y,recentBlockhash:t,instructions:w})}_compile(){let t=this.compileMessage(),n=t.accountKeys.slice(0,t.header.numRequiredSignatures);return this.signatures.length===n.length&&this.signatures.every((o,i)=>n[i].equals(o.publicKey))||(this.signatures=n.map(r=>({signature:null,publicKey:r}))),t}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(t){return(await t.getFeeForMessage(this.compileMessage())).value}setSigners(...t){if(t.length===0)throw new Error(\"No signers\");let n=new Set;this.signatures=t.filter(r=>{let o=r.toString();return n.has(o)?!1:(n.add(o),!0)}).map(r=>({signature:null,publicKey:r}))}sign(...t){if(t.length===0)throw new Error(\"No signers\");let n=new Set,r=[];for(let i of t){let a=i.publicKey.toString();n.has(a)||(n.add(a),r.push(i))}this.signatures=r.map(i=>({signature:null,publicKey:i.publicKey}));let o=this._compile();this._partialSign(o,...r)}partialSign(...t){if(t.length===0)throw new Error(\"No signers\");let n=new Set,r=[];for(let i of t){let a=i.publicKey.toString();n.has(a)||(n.add(a),r.push(i))}let o=this._compile();this._partialSign(o,...r)}_partialSign(t,...n){let r=t.serialize();n.forEach(o=>{let i=axe(r,o.secretKey);this._addSignature(o.publicKey,vi(i))})}addSignature(t,n){this._compile(),this._addSignature(t,n)}_addSignature(t,n){fs(n.length===64);let r=this.signatures.findIndex(o=>t.equals(o.publicKey));if(r<0)throw new Error(`unknown signer: ${t.toString()}`);this.signatures[r].signature=tr.Buffer.from(n)}verifySignatures(t=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),t)}_getMessageSignednessErrors(t,n){let r={};for(let{signature:o,publicKey:i}of this.signatures)o===null?n&&(r.missing||(r.missing=[])).push(i):bWt(o,t,i.toBytes())||(r.invalid||(r.invalid=[])).push(i);return r.invalid||r.missing?r:void 0}serialize(t){let{requireAllSignatures:n,verifySignatures:r}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),o=this.serializeMessage();if(r){let i=this._getMessageSignednessErrors(o,n);if(i){let a=\"Signature verification failed.\";throw i.invalid&&(a+=`\\nInvalid signature for public key${i.invalid.length===1?\"\":\"(s)\"} [\\\\`${i.invalid.map(c=>c.toBase58()).join(\"`, `\")}\\\\`].`),i.missing&&(a+=`\\nMissing signature for public key${i.missing.length===1?\"\":\"(s)\"} [\\\\`${i.missing.map(c=>c.toBase58()).join(\"`, `\")}\\\\`].`),new Error(a)}}return this._serialize(o)}_serialize(t){let{signatures:n}=this,r=[];N0(r,n.length);let o=r.length+n.length*64+t.length,i=tr.Buffer.alloc(o);return fs(n.length<256),tr.Buffer.from(r).copy(i,0),n.forEach(({signature:a},c)=>{a!==null&&(fs(a.length===64,\"signature has invalid length\"),tr.Buffer.from(a).copy(i,r.length+c*64))}),t.copy(i,r.length+n.length*64),fs(i.length<=NI,`Transaction too large: ${i.length} > ${NI}`),i}get keys(){return fs(this.instructions.length===1),this.instructions[0].keys.map(t=>t.pubkey)}get programId(){return fs(this.instructions.length===1),this.instructions[0].programId}get data(){return fs(this.instructions.length===1),this.instructions[0].data}static from(t){let n=[...t],r=O0(n),o=[];for(let i=0;i<r;i++){let a=P0(n,0,Nne);o.push(Qf.default.encode(tr.Buffer.from(a)))}return e.populate(gz.from(n),o)}static populate(t,n=[]){let r=new e;return r.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(r.feePayer=t.accountKeys[0]),n.forEach((o,i)=>{let a={signature:o==Qf.default.encode(TWt)?null:Qf.default.decode(o),publicKey:t.accountKeys[i]};r.signatures.push(a)}),t.instructions.forEach(o=>{let i=o.accounts.map(a=>{let c=t.accountKeys[a];return{pubkey:c,isSigner:r.signatures.some(l=>l.publicKey.toString()===c.toString())||t.isAccountSigner(a),isWritable:t.isAccountWritable(a)}});r.instructions.push(new Ea({keys:i,programId:t.accountKeys[o.programIdIndex],data:Qf.default.decode(o.data)}))}),r._message=t,r._json=r.toJSON(),r}};var Mne=class e{get version(){return this.message.version}constructor(t,n){if(this.signatures=void 0,this.message=void 0,n!==void 0)fs(n.length===t.header.numRequiredSignatures,\"Expected signatures length to be equal to the number of required signatures\"),this.signatures=n;else{let r=[];for(let o=0;o<t.header.numRequiredSignatures;o++)r.push(new Uint8Array(Nne));this.signatures=r}this.message=t}serialize(){let t=this.message.serialize(),n=Array();N0(n,this.signatures.length);let r=Ee.struct([Ee.blob(n.length,\"encodedSignaturesLength\"),Ee.seq(xWt(),this.signatures.length,\"signatures\"),Ee.blob(t.length,\"serializedMessage\")]),o=new Uint8Array(2048),i=r.encode({encodedSignaturesLength:new Uint8Array(n),signatures:this.signatures,serializedMessage:t},o);return o.slice(0,i)}static deserialize(t){let n=[...t],r=[],o=O0(n);for(let a=0;a<o;a++)r.push(new Uint8Array(P0(n,0,Nne)));let i=Une.deserialize(new Uint8Array(n));return new e(i,r)}sign(t){let n=this.message.serialize(),r=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures);for(let o of t){let i=r.findIndex(a=>a.equals(o.publicKey));fs(i>=0,`Cannot sign with non signer key ${o.publicKey.toBase58()}`),this.signatures[i]=axe(n,o.secretKey)}}addSignature(t,n){fs(n.byteLength===64,\"Signature must be 64 bytes long\");let o=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex(i=>i.equals(t));fs(o>=0,`Can not add signature; \\\\`${t.toBase58()}\\\\` is not required to sign this transaction`),this.signatures[o]=n}},CWt=160,RWt=64,IWt=CWt/RWt,kWt=1e3/IWt,gA=new Br(\"SysvarC1ock11111111111111111111111111111111\"),cyr=new Br(\"SysvarEpochSchedu1e111111111111111111111111\"),uyr=new Br(\"Sysvar1nstructions1111111111111111111111111\"),zwe=new Br(\"SysvarRecentB1ockHashes11111111111111111111\"),yz=new Br(\"SysvarRent111111111111111111111111111111111\"),lyr=new Br(\"SysvarRewards111111111111111111111111111111\"),dyr=new Br(\"SysvarS1otHashes111111111111111111111111111\"),fyr=new Br(\"SysvarS1otHistory11111111111111111111111111\"),jwe=new Br(\"SysvarStakeHistory1111111111111111111111111\"),Xwe=class extends Error{constructor({action:t,signature:n,transactionMessage:r,logs:o}){let i=o?`Logs: \\n${JSON.stringify(o.slice(-10),null,2)}. `:\"\",a=\"\\\\nCatch the `SendTransactionError` and call `getLogs()` on it for full details.\",c;switch(t){case\"send\":c=`Transaction ${n} resulted in an error. \\n${r}. `+i+a;break;case\"simulate\":c=`Simulation failed. \\nMessage: ${r}. \\n`+i+a;break;default:c=`Unknown action \\'${(l=>l)(t)}\\'`}super(c),this.signature=void 0,this.transactionMessage=void 0,this.transactionLogs=void 0,this.signature=n,this.transactionMessage=r,this.transactionLogs=o||void 0}get transactionError(){return{message:this.transactionMessage,logs:Array.isArray(this.transactionLogs)?this.transactionLogs:void 0}}get logs(){let t=this.transactionLogs;if(!(t!=null&&typeof t==\"object\"&&\"then\"in t))return t}async getLogs(t){return Array.isArray(this.transactionLogs)||(this.transactionLogs=new Promise((n,r)=>{t.getTransaction(this.signature).then(o=>{if(o&&o.meta&&o.meta.logMessages){let i=o.meta.logMessages;this.transactionLogs=i,n(i)}else r(new Error(\"Log messages not found\"))}).catch(r)})),await this.transactionLogs}};async function Hit(e,t,n,r){let o=r&&{skipPreflight:r.skipPreflight,preflightCommitment:r.preflightCommitment||r.commitment,maxRetries:r.maxRetries,minContextSlot:r.minContextSlot},i=await e.sendTransaction(t,n,o),a;if(t.recentBlockhash!=null&&t.lastValidBlockHeight!=null)a=(await e.confirmTransaction({abortSignal:r?.abortSignal,signature:i,blockhash:t.recentBlockhash,lastValidBlockHeight:t.lastValidBlockHeight},r&&r.commitment)).value;else if(t.minNonceContextSlot!=null&&t.nonceInfo!=null){let{nonceInstruction:c}=t.nonceInfo,l=c.keys[0].pubkey;a=(await e.confirmTransaction({abortSignal:r?.abortSignal,minContextSlot:t.minNonceContextSlot,nonceAccountPubkey:l,nonceValue:t.nonceInfo.nonce,signature:i},r&&r.commitment)).value}else r?.abortSignal!=null&&console.warn(\"sendAndConfirmTransaction(): A transaction with a deprecated confirmation strategy was supplied along with an `abortSignal`. Only transactions having `lastValidBlockHeight` or a combination of `nonceInfo` and `minNonceContextSlot` are abortable.\"),a=(await e.confirmTransaction(i,r&&r.commitment)).value;if(a.err)throw i!=null?new Xwe({action:\"send\",signature:i,transactionMessage:`Status: (${JSON.stringify(a)})`}):new Error(`Transaction ${i} failed (${JSON.stringify(a)})`);return i}function OWt(e){return new Promise(t=>setTimeout(t,e))}function Qo(e,t){let n=e.layout.span>=0?e.layout.span:Jit(e,t),r=tr.Buffer.alloc(n),o=Object.assign({instruction:e.index},t);return e.layout.encode(o,r),r}var NWt=Ee.nu64(\"lamportsPerSignature\"),PWt=Ee.struct([Ee.u32(\"version\"),Ee.u32(\"state\"),No(\"authorizedPubkey\"),No(\"nonce\"),Ee.struct([NWt],\"feeCalculator\")]),zit=PWt.span;function WM(e){let t=(0,Zit.blob)(8,e),n=t.decode.bind(t),r=t.encode.bind(t),o=t,i=Rit();return o.decode=(a,c)=>{let l=n(a,c);return i.decode(l)},o.encode=(a,c,l)=>{let d=i.encode(a);return r(d,c,l)},o}var Oy=Object.freeze({Create:{index:0,layout:Ee.struct([Ee.u32(\"instruction\"),Ee.ns64(\"lamports\"),Ee.ns64(\"space\"),No(\"programId\")])},Assign:{index:1,layout:Ee.struct([Ee.u32(\"instruction\"),No(\"programId\")])},Transfer:{index:2,layout:Ee.struct([Ee.u32(\"instruction\"),WM(\"lamports\")])},CreateWithSeed:{index:3,layout:Ee.struct([Ee.u32(\"instruction\"),No(\"base\"),zM(\"seed\"),Ee.ns64(\"lamports\"),Ee.ns64(\"space\"),No(\"programId\")])},AdvanceNonceAccount:{index:4,layout:Ee.struct([Ee.u32(\"instruction\")])},WithdrawNonceAccount:{index:5,layout:Ee.struct([Ee.u32(\"instruction\"),Ee.ns64(\"lamports\")])},InitializeNonceAccount:{index:6,layout:Ee.struct([Ee.u32(\"instruction\"),No(\"authorized\")])},AuthorizeNonceAccount:{index:7,layout:Ee.struct([Ee.u32(\"instruction\"),No(\"authorized\")])},Allocate:{index:8,layout:Ee.struct([Ee.u32(\"instruction\"),Ee.ns64(\"space\")])},AllocateWithSeed:{index:9,layout:Ee.struct([Ee.u32(\"instruction\"),No(\"base\"),zM(\"seed\"),Ee.ns64(\"space\"),No(\"programId\")])},AssignWithSeed:{index:10,layout:Ee.struct([Ee.u32(\"instruction\"),No(\"base\"),zM(\"seed\"),No(\"programId\")])},TransferWithSeed:{index:11,layout:Ee.struct([Ee.u32(\"instruction\"),WM(\"lamports\"),zM(\"seed\"),No(\"programId\")])},UpgradeNonceAccount:{index:12,layout:Ee.struct([Ee.u32(\"instruction\")])}}),uh=class e{constructor(){}static createAccount(t){let n=Oy.Create,r=Qo(n,{lamports:t.lamports,space:t.space,programId:vi(t.programId.toBuffer())});return new Ea({keys:[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:r})}static transfer(t){let n,r;if(\"basePubkey\"in t){let o=Oy.TransferWithSeed;n=Qo(o,{lamports:BigInt(t.lamports),seed:t.seed,programId:vi(t.programId.toBuffer())}),r=[{pubkey:t.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}else{let o=Oy.Transfer;n=Qo(o,{lamports:BigInt(t.lamports)}),r=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}return new Ea({keys:r,programId:this.programId,data:n})}static assign(t){let n,r;if(\"basePubkey\"in t){let o=Oy.AssignWithSeed;n=Qo(o,{base:vi(t.basePubkey.toBuffer()),seed:t.seed,programId:vi(t.programId.toBuffer())}),r=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{let o=Oy.Assign;n=Qo(o,{programId:vi(t.programId.toBuffer())}),r=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new Ea({keys:r,programId:this.programId,data:n})}static createAccountWithSeed(t){let n=Oy.CreateWithSeed,r=Qo(n,{base:vi(t.basePubkey.toBuffer()),seed:t.seed,lamports:t.lamports,space:t.space,programId:vi(t.programId.toBuffer())}),o=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!1,isWritable:!0}];return t.basePubkey.equals(t.fromPubkey)||o.push({pubkey:t.basePubkey,isSigner:!0,isWritable:!1}),new Ea({keys:o,programId:this.programId,data:r})}static createNonceAccount(t){let n=new ja;\"basePubkey\"in t&&\"seed\"in t?n.add(e.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:zit,programId:this.programId})):n.add(e.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,lamports:t.lamports,space:zit,programId:this.programId}));let r={noncePubkey:t.noncePubkey,authorizedPubkey:t.authorizedPubkey};return n.add(this.nonceInitialize(r)),n}static nonceInitialize(t){let n=Oy.InitializeNonceAccount,r=Qo(n,{authorized:vi(t.authorizedPubkey.toBuffer())}),o={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:zwe,isSigner:!1,isWritable:!1},{pubkey:yz,isSigner:!1,isWritable:!1}],programId:this.programId,data:r};return new Ea(o)}static nonceAdvance(t){let n=Oy.AdvanceNonceAccount,r=Qo(n),o={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:zwe,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:r};return new Ea(o)}static nonceWithdraw(t){let n=Oy.WithdrawNonceAccount,r=Qo(n,{lamports:t.lamports});return new Ea({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0},{pubkey:zwe,isSigner:!1,isWritable:!1},{pubkey:yz,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}static nonceAuthorize(t){let n=Oy.AuthorizeNonceAccount,r=Qo(n,{authorized:vi(t.newAuthorizedPubkey.toBuffer())});return new Ea({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}static allocate(t){let n,r;if(\"basePubkey\"in t){let o=Oy.AllocateWithSeed;n=Qo(o,{base:vi(t.basePubkey.toBuffer()),seed:t.seed,space:t.space,programId:vi(t.programId.toBuffer())}),r=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{let o=Oy.Allocate;n=Qo(o,{space:t.space}),r=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new Ea({keys:r,programId:this.programId,data:n})}};uh.programId=new Br(\"11111111111111111111111111111111\");var MWt=NI-300,$we=class e{constructor(){}static getMinNumSignatures(t){return 2*(Math.ceil(t/e.chunkSize)+1+1)}static async load(t,n,r,o,i){{let h=await t.getMinimumBalanceForRentExemption(i.length),g=await t.getAccountInfo(r.publicKey,\"confirmed\"),y=null;if(g!==null){if(g.executable)return console.error(\"Program load failed, account is already executable\"),!1;g.data.length!==i.length&&(y=y||new ja,y.add(uh.allocate({accountPubkey:r.publicKey,space:i.length}))),g.owner.equals(o)||(y=y||new ja,y.add(uh.assign({accountPubkey:r.publicKey,programId:o}))),g.lamports<h&&(y=y||new ja,y.add(uh.transfer({fromPubkey:n.publicKey,toPubkey:r.publicKey,lamports:h-g.lamports})))}else y=new ja().add(uh.createAccount({fromPubkey:n.publicKey,newAccountPubkey:r.publicKey,lamports:h>0?h:1,space:i.length,programId:o}));y!==null&&await Hit(t,y,[n,r],{commitment:\"confirmed\"})}let a=Ee.struct([Ee.u32(\"instruction\"),Ee.u32(\"offset\"),Ee.u32(\"bytesLength\"),Ee.u32(\"bytesLengthPadding\"),Ee.seq(Ee.u8(\"byte\"),Ee.offset(Ee.u32(),-8),\"bytes\")]),c=e.chunkSize,l=0,d=i,m=[];for(;d.length>0;){let h=d.slice(0,c),g=tr.Buffer.alloc(c+16);a.encode({instruction:0,offset:l,bytes:h,bytesLength:0,bytesLengthPadding:0},g);let y=new ja().add({keys:[{pubkey:r.publicKey,isSigner:!0,isWritable:!0}],programId:o,data:g});m.push(Hit(t,y,[n,r],{commitment:\"confirmed\"})),t._rpcEndpoint.includes(\"solana.com\")&&await OWt(1e3/4),l+=c,d=d.slice(c)}await Promise.all(m);{let h=Ee.struct([Ee.u32(\"instruction\")]),g=tr.Buffer.alloc(h.span);h.encode({instruction:1},g);let y=new ja().add({keys:[{pubkey:r.publicKey,isSigner:!0,isWritable:!0},{pubkey:yz,isSigner:!1,isWritable:!1}],programId:o,data:g}),w=\"processed\",x=await t.sendTransaction(y,[n,r],{preflightCommitment:w}),{context:I,value:C}=await t.confirmTransaction({signature:x,lastValidBlockHeight:y.lastValidBlockHeight,blockhash:y.recentBlockhash},w);if(C.err)throw new Error(`Transaction ${x} failed (${JSON.stringify(C)})`);for(;;){try{if(await t.getSlot({commitment:w})>I.slot)break}catch{}await new Promise(M=>setTimeout(M,Math.round(kWt/2)))}}return!0}};$we.chunkSize=MWt;var pyr=new Br(\"BPFLoader2111111111111111111111111111111111\");var hyr=globalThis.fetch;var myr={index:1,layout:Ee.struct([Ee.u32(\"typeIndex\"),WM(\"deactivationSlot\"),Ee.nu64(\"lastExtendedSlot\"),Ee.u8(\"lastExtendedStartIndex\"),Ee.u8(),Ee.seq(No(),Ee.offset(Ee.u8(),-1),\"authority\")])};var Nc=HM(Rne(Br),Gt(),e=>new Br(e)),$it=Ine([Gt(),Us(\"base64\")]),cxe=HM(Rne(tr.Buffer),$it,e=>tr.Buffer.from(e[0],\"base64\")),gyr=30*1e3;function eat(e){return Zf([kt({jsonrpc:Us(\"2.0\"),id:Gt(),result:e}),kt({jsonrpc:Us(\"2.0\"),id:Gt(),error:kt({code:OI(),message:Gt(),data:On(Nit())})})])}var DWt=eat(OI());function Wa(e){return HM(eat(e),DWt,t=>\"error\"in t?t:{...t,result:FM(t.result,e)})}function R1(e){return Wa(kt({context:kt({slot:Ke()}),value:e}))}function Fne(e){return kt({context:kt({slot:Ke()}),value:e})}var BWt=kt({foundation:Ke(),foundationTerm:Ke(),initial:Ke(),taper:Ke(),terminal:Ke()}),yyr=Wa(on(an(kt({epoch:Ke(),effectiveSlot:Ke(),amount:Ke(),postBalance:Ke(),commission:On(an(Ke()))})))),LWt=on(kt({slot:Ke(),prioritizationFee:Ke()})),UWt=kt({total:Ke(),validator:Ke(),foundation:Ke(),epoch:Ke()}),FWt=kt({epoch:Ke(),slotIndex:Ke(),slotsInEpoch:Ke(),absoluteSlot:Ke(),blockHeight:On(Ke()),transactionCount:On(Ke())}),HWt=kt({slotsPerEpoch:Ke(),leaderScheduleSlotOffset:Ke(),warmup:C1(),firstNormalEpoch:Ke(),firstNormalSlot:Ke()}),zWt=Hwe(Gt(),on(Ke())),PI=an(Zf([kt({}),Gt()])),jWt=kt({err:PI}),WWt=Us(\"receivedSignature\"),byr=kt({\"solana-core\":Gt(),\"feature-set\":On(Ke())}),VWt=kt({program:Gt(),programId:Nc,parsed:OI()}),GWt=kt({programId:Nc,accounts:on(Nc),data:Gt()}),vyr=R1(kt({err:an(Zf([kt({}),Gt()])),logs:an(on(Gt())),accounts:On(an(on(an(kt({executable:C1(),owner:Gt(),lamports:Ke(),data:on(Gt()),rentEpoch:On(Ke())}))))),unitsConsumed:On(Ke()),returnData:On(an(kt({programId:Gt(),data:Ine([Gt(),Us(\"base64\")])}))),innerInstructions:On(an(on(kt({index:Ke(),instructions:on(Zf([VWt,GWt]))}))))})),wyr=R1(kt({byIdentity:Hwe(Gt(),on(Ke())),range:kt({firstSlot:Ke(),lastSlot:Ke()})}));var xyr=Wa(BWt),Eyr=Wa(UWt),Ayr=Wa(LWt),Syr=Wa(FWt),_yr=Wa(HWt),Tyr=Wa(zWt),Cyr=Wa(Ke()),Ryr=R1(kt({total:Ke(),circulating:Ke(),nonCirculating:Ke(),nonCirculatingAccounts:on(Nc)})),qWt=kt({amount:Gt(),uiAmount:an(Ke()),decimals:Ke(),uiAmountString:On(Gt())}),Iyr=R1(on(kt({address:Nc,amount:Gt(),uiAmount:an(Ke()),decimals:Ke(),uiAmountString:On(Gt())}))),kyr=R1(on(kt({pubkey:Nc,account:kt({executable:C1(),owner:Nc,lamports:Ke(),data:cxe,rentEpoch:Ke()})}))),exe=kt({program:Gt(),parsed:OI(),space:Ke()}),Oyr=R1(on(kt({pubkey:Nc,account:kt({executable:C1(),owner:Nc,lamports:Ke(),data:exe,rentEpoch:Ke()})}))),Nyr=R1(on(kt({lamports:Ke(),address:Nc}))),uxe=kt({executable:C1(),owner:Nc,lamports:Ke(),data:cxe,rentEpoch:Ke()}),Pyr=kt({pubkey:Nc,account:uxe}),KWt=HM(Zf([Rne(tr.Buffer),exe]),Zf([$it,exe]),e=>Array.isArray(e)?FM(e,cxe):e),YWt=kt({executable:C1(),owner:Nc,lamports:Ke(),data:KWt,rentEpoch:Ke()}),Myr=kt({pubkey:Nc,account:YWt}),Dyr=kt({state:Zf([Us(\"active\"),Us(\"inactive\"),Us(\"activating\"),Us(\"deactivating\")]),active:Ke(),inactive:Ke()}),Byr=Wa(on(kt({signature:Gt(),slot:Ke(),err:PI,memo:an(Gt()),blockTime:On(an(Ke()))}))),Lyr=Wa(on(kt({signature:Gt(),slot:Ke(),err:PI,memo:an(Gt()),blockTime:On(an(Ke()))}))),Uyr=kt({subscription:Ke(),result:Fne(uxe)}),ZWt=kt({pubkey:Nc,account:uxe}),Fyr=kt({subscription:Ke(),result:Fne(ZWt)}),QWt=kt({parent:Ke(),slot:Ke(),root:Ke()}),Hyr=kt({subscription:Ke(),result:QWt}),JWt=Zf([kt({type:Zf([Us(\"firstShredReceived\"),Us(\"completed\"),Us(\"optimisticConfirmation\"),Us(\"root\")]),slot:Ke(),timestamp:Ke()}),kt({type:Us(\"createdBank\"),parent:Ke(),slot:Ke(),timestamp:Ke()}),kt({type:Us(\"frozen\"),slot:Ke(),timestamp:Ke(),stats:kt({numTransactionEntries:Ke(),numSuccessfulTransactions:Ke(),numFailedTransactions:Ke(),maxTransactionsPerEntry:Ke()})}),kt({type:Us(\"dead\"),slot:Ke(),timestamp:Ke(),err:Gt()})]),zyr=kt({subscription:Ke(),result:JWt}),jyr=kt({subscription:Ke(),result:Fne(Zf([jWt,WWt]))}),Wyr=kt({subscription:Ke(),result:Ke()}),Vyr=kt({pubkey:Gt(),gossip:an(Gt()),tpu:an(Gt()),rpc:an(Gt()),version:an(Gt())}),jit=kt({votePubkey:Gt(),nodePubkey:Gt(),activatedStake:Ke(),epochVoteAccount:C1(),epochCredits:on(Ine([Ke(),Ke(),Ke()])),commission:Ke(),lastVote:Ke(),rootSlot:an(Ke())}),Gyr=Wa(kt({current:on(jit),delinquent:on(jit)})),XWt=Zf([Us(\"processed\"),Us(\"confirmed\"),Us(\"finalized\")]),$Wt=kt({slot:Ke(),confirmations:an(Ke()),err:PI,confirmationStatus:On(XWt)}),qyr=R1(on(an($Wt))),Kyr=Wa(Ke()),tat=kt({accountKey:Nc,writableIndexes:on(Ke()),readonlyIndexes:on(Ke())}),lxe=kt({signatures:on(Gt()),message:kt({accountKeys:on(Gt()),header:kt({numRequiredSignatures:Ke(),numReadonlySignedAccounts:Ke(),numReadonlyUnsignedAccounts:Ke()}),instructions:on(kt({accounts:on(Ke()),data:Gt(),programIdIndex:Ke()})),recentBlockhash:Gt(),addressTableLookups:On(on(tat))})}),nat=kt({pubkey:Nc,signer:C1(),writable:C1(),source:On(Zf([Us(\"transaction\"),Us(\"lookupTable\")]))}),rat=kt({accountKeys:on(nat),signatures:on(Gt())}),oat=kt({parsed:OI(),program:Gt(),programId:Nc}),iat=kt({accounts:on(Nc),data:Gt(),programId:Nc}),eVt=Zf([iat,oat]),tVt=Zf([kt({parsed:OI(),program:Gt(),programId:Gt()}),kt({accounts:on(Gt()),data:Gt(),programId:Gt()})]),aat=HM(eVt,tVt,e=>\"accounts\"in e?FM(e,iat):FM(e,oat)),sat=kt({signatures:on(Gt()),message:kt({accountKeys:on(nat),instructions:on(aat),recentBlockhash:Gt(),addressTableLookups:On(an(on(tat)))})}),Dne=kt({accountIndex:Ke(),mint:Gt(),owner:On(Gt()),programId:On(Gt()),uiTokenAmount:qWt}),cat=kt({writable:on(Nc),readonly:on(Nc)}),Hne=kt({err:PI,fee:Ke(),innerInstructions:On(an(on(kt({index:Ke(),instructions:on(kt({accounts:on(Ke()),data:Gt(),programIdIndex:Ke()}))})))),preBalances:on(Ke()),postBalances:on(Ke()),logMessages:On(an(on(Gt()))),preTokenBalances:On(an(on(Dne))),postTokenBalances:On(an(on(Dne))),loadedAddresses:On(cat),computeUnitsConsumed:On(Ke()),costUnits:On(Ke())}),dxe=kt({err:PI,fee:Ke(),innerInstructions:On(an(on(kt({index:Ke(),instructions:on(aat)})))),preBalances:on(Ke()),postBalances:on(Ke()),logMessages:On(an(on(Gt()))),preTokenBalances:On(an(on(Dne))),postTokenBalances:On(an(on(Dne))),loadedAddresses:On(cat),computeUnitsConsumed:On(Ke()),costUnits:On(Ke())}),GM=Zf([Us(0),Us(\"legacy\")]),MI=kt({pubkey:Gt(),lamports:Ke(),postBalance:an(Ke()),rewardType:an(Gt()),commission:On(an(Ke()))}),Yyr=Wa(an(kt({blockhash:Gt(),previousBlockhash:Gt(),parentSlot:Ke(),transactions:on(kt({transaction:lxe,meta:an(Hne),version:On(GM)})),rewards:On(on(MI)),blockTime:an(Ke()),blockHeight:an(Ke())}))),Zyr=Wa(an(kt({blockhash:Gt(),previousBlockhash:Gt(),parentSlot:Ke(),rewards:On(on(MI)),blockTime:an(Ke()),blockHeight:an(Ke())}))),Qyr=Wa(an(kt({blockhash:Gt(),previousBlockhash:Gt(),parentSlot:Ke(),transactions:on(kt({transaction:rat,meta:an(Hne),version:On(GM)})),rewards:On(on(MI)),blockTime:an(Ke()),blockHeight:an(Ke())}))),Jyr=Wa(an(kt({blockhash:Gt(),previousBlockhash:Gt(),parentSlot:Ke(),transactions:on(kt({transaction:sat,meta:an(dxe),version:On(GM)})),rewards:On(on(MI)),blockTime:an(Ke()),blockHeight:an(Ke())}))),Xyr=Wa(an(kt({blockhash:Gt(),previousBlockhash:Gt(),parentSlot:Ke(),transactions:on(kt({transaction:rat,meta:an(dxe),version:On(GM)})),rewards:On(on(MI)),blockTime:an(Ke()),blockHeight:an(Ke())}))),$yr=Wa(an(kt({blockhash:Gt(),previousBlockhash:Gt(),parentSlot:Ke(),rewards:On(on(MI)),blockTime:an(Ke()),blockHeight:an(Ke())}))),ebr=Wa(an(kt({blockhash:Gt(),previousBlockhash:Gt(),parentSlot:Ke(),transactions:on(kt({transaction:lxe,meta:an(Hne)})),rewards:On(on(MI)),blockTime:an(Ke())}))),tbr=Wa(an(kt({blockhash:Gt(),previousBlockhash:Gt(),parentSlot:Ke(),signatures:on(Gt()),blockTime:an(Ke())}))),nbr=Wa(an(kt({slot:Ke(),meta:an(Hne),blockTime:On(an(Ke())),transaction:lxe,version:On(GM)}))),rbr=Wa(an(kt({slot:Ke(),transaction:sat,meta:an(dxe),blockTime:On(an(Ke())),version:On(GM)}))),obr=R1(kt({blockhash:Gt(),lastValidBlockHeight:Ke()})),ibr=R1(C1()),nVt=kt({slot:Ke(),numTransactions:Ke(),numSlots:Ke(),samplePeriodSecs:Ke()}),abr=Wa(on(nVt)),sbr=R1(an(kt({feeCalculator:kt({lamportsPerSignature:Ke()})}))),cbr=Wa(Gt()),ubr=Wa(Gt()),rVt=kt({err:PI,logs:on(Gt()),signature:Gt()}),lbr=kt({result:Fne(rVt),subscription:Ke()});var txe=class e{constructor(t){this._keypair=void 0,this._keypair=t??Lit()}static generate(){return new e(Lit())}static fromSecretKey(t,n){if(t.byteLength!==64)throw new Error(\"bad secret key size\");let r=t.slice(32,64);if(!n||!n.skipValidation){let o=t.slice(0,32),i=qwe(o);for(let a=0;a<32;a++)if(r[a]!==i[a])throw new Error(\"provided secretKey is invalid\")}return new e({publicKey:r,secretKey:t})}static fromSeed(t){let n=qwe(t),r=new Uint8Array(64);return r.set(t),r.set(n,32),new e({publicKey:n,secretKey:r})}get publicKey(){return new Br(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}},hz=Object.freeze({CreateLookupTable:{index:0,layout:Ee.struct([Ee.u32(\"instruction\"),WM(\"recentSlot\"),Ee.u8(\"bumpSeed\")])},FreezeLookupTable:{index:1,layout:Ee.struct([Ee.u32(\"instruction\")])},ExtendLookupTable:{index:2,layout:Ee.struct([Ee.u32(\"instruction\"),WM(),Ee.seq(No(),Ee.offset(Ee.u32(),-8),\"addresses\")])},DeactivateLookupTable:{index:3,layout:Ee.struct([Ee.u32(\"instruction\")])},CloseLookupTable:{index:4,layout:Ee.struct([Ee.u32(\"instruction\")])}});var nxe=class{constructor(){}static createLookupTable(t){let[n,r]=Br.findProgramAddressSync([t.authority.toBuffer(),mC().encode(t.recentSlot)],this.programId),o=hz.CreateLookupTable,i=Qo(o,{recentSlot:BigInt(t.recentSlot),bumpSeed:r}),a=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:uh.programId,isSigner:!1,isWritable:!1}];return[new Ea({programId:this.programId,keys:a,data:i}),n]}static freezeLookupTable(t){let n=hz.FreezeLookupTable,r=Qo(n),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new Ea({programId:this.programId,keys:o,data:r})}static extendLookupTable(t){let n=hz.ExtendLookupTable,r=Qo(n,{addresses:t.addresses.map(i=>i.toBytes())}),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return t.payer&&o.push({pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:uh.programId,isSigner:!1,isWritable:!1}),new Ea({programId:this.programId,keys:o,data:r})}static deactivateLookupTable(t){let n=hz.DeactivateLookupTable,r=Qo(n),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new Ea({programId:this.programId,keys:o,data:r})}static closeLookupTable(t){let n=hz.CloseLookupTable,r=Qo(n),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.recipient,isSigner:!1,isWritable:!0}];return new Ea({programId:this.programId,keys:o,data:r})}};nxe.programId=new Br(\"AddressLookupTab1e1111111111111111111111111\");var kne=Object.freeze({RequestUnits:{index:0,layout:Ee.struct([Ee.u8(\"instruction\"),Ee.u32(\"units\"),Ee.u32(\"additionalFee\")])},RequestHeapFrame:{index:1,layout:Ee.struct([Ee.u8(\"instruction\"),Ee.u32(\"bytes\")])},SetComputeUnitLimit:{index:2,layout:Ee.struct([Ee.u8(\"instruction\"),Ee.u32(\"units\")])},SetComputeUnitPrice:{index:3,layout:Ee.struct([Ee.u8(\"instruction\"),WM(\"microLamports\")])}}),rxe=class{constructor(){}static requestUnits(t){let n=kne.RequestUnits,r=Qo(n,t);return new Ea({keys:[],programId:this.programId,data:r})}static requestHeapFrame(t){let n=kne.RequestHeapFrame,r=Qo(n,t);return new Ea({keys:[],programId:this.programId,data:r})}static setComputeUnitLimit(t){let n=kne.SetComputeUnitLimit,r=Qo(n,t);return new Ea({keys:[],programId:this.programId,data:r})}static setComputeUnitPrice(t){let n=kne.SetComputeUnitPrice,r=Qo(n,{microLamports:BigInt(t.microLamports)});return new Ea({keys:[],programId:this.programId,data:r})}};rxe.programId=new Br(\"ComputeBudget111111111111111111111111111111\");var Wit=64,Vit=32,Git=64,qit=Ee.struct([Ee.u8(\"numSignatures\"),Ee.u8(\"padding\"),Ee.u16(\"signatureOffset\"),Ee.u16(\"signatureInstructionIndex\"),Ee.u16(\"publicKeyOffset\"),Ee.u16(\"publicKeyInstructionIndex\"),Ee.u16(\"messageDataOffset\"),Ee.u16(\"messageDataSize\"),Ee.u16(\"messageInstructionIndex\")]),oxe=class e{constructor(){}static createInstructionWithPublicKey(t){let{publicKey:n,message:r,signature:o,instructionIndex:i}=t;fs(n.length===Vit,`Public Key must be ${Vit} bytes but received ${n.length} bytes`),fs(o.length===Git,`Signature must be ${Git} bytes but received ${o.length} bytes`);let a=qit.span,c=a+n.length,l=c+o.length,d=1,m=tr.Buffer.alloc(l+r.length),h=i??65535;return qit.encode({numSignatures:d,padding:0,signatureOffset:c,signatureInstructionIndex:h,publicKeyOffset:a,publicKeyInstructionIndex:h,messageDataOffset:l,messageDataSize:r.length,messageInstructionIndex:h},m),m.fill(n,a),m.fill(o,c),m.fill(r,l),new Ea({keys:[],programId:e.programId,data:m})}static createInstructionWithPrivateKey(t){let{privateKey:n,message:r,instructionIndex:o}=t;fs(n.length===Wit,`Private key must be ${Wit} bytes but received ${n.length} bytes`);try{let i=txe.fromSecretKey(n),a=i.publicKey.toBytes(),c=axe(r,i.secretKey);return this.createInstructionWithPublicKey({publicKey:a,message:r,signature:c,instructionIndex:o})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}};oxe.programId=new Br(\"Ed25519SigVerify111111111111111111111111111\");var oVt=(e,t)=>{let n=iT.sign(e,t);return[n.toCompactRawBytes(),n.recovery]};iT.utils.isValidPrivateKey;var iVt=iT.getPublicKey,Kit=32,Wwe=20,Yit=64,aVt=11,Vwe=Ee.struct([Ee.u8(\"numSignatures\"),Ee.u16(\"signatureOffset\"),Ee.u8(\"signatureInstructionIndex\"),Ee.u16(\"ethAddressOffset\"),Ee.u8(\"ethAddressInstructionIndex\"),Ee.u16(\"messageDataOffset\"),Ee.u16(\"messageDataSize\"),Ee.u8(\"messageInstructionIndex\"),Ee.blob(20,\"ethAddress\"),Ee.blob(64,\"signature\"),Ee.u8(\"recoveryId\")]),ixe=class e{constructor(){}static publicKeyToEthAddress(t){fs(t.length===Yit,`Public key must be ${Yit} bytes but received ${t.length} bytes`);try{return tr.Buffer.from(z2(vi(t))).slice(-Wwe)}catch(n){throw new Error(`Error constructing Ethereum address: ${n}`)}}static createInstructionWithPublicKey(t){let{publicKey:n,message:r,signature:o,recoveryId:i,instructionIndex:a}=t;return e.createInstructionWithEthAddress({ethAddress:e.publicKeyToEthAddress(n),message:r,signature:o,recoveryId:i,instructionIndex:a})}static createInstructionWithEthAddress(t){let{ethAddress:n,message:r,signature:o,recoveryId:i,instructionIndex:a=0}=t,c;typeof n==\"string\"?n.startsWith(\"0x\")?c=tr.Buffer.from(n.substr(2),\"hex\"):c=tr.Buffer.from(n,\"hex\"):c=n,fs(c.length===Wwe,`Address must be ${Wwe} bytes but received ${c.length} bytes`);let l=1+aVt,d=l,m=l+c.length,h=m+o.length+1,g=1,y=tr.Buffer.alloc(Vwe.span+r.length);return Vwe.encode({numSignatures:g,signatureOffset:m,signatureInstructionIndex:a,ethAddressOffset:d,ethAddressInstructionIndex:a,messageDataOffset:h,messageDataSize:r.length,messageInstructionIndex:a,signature:vi(o),ethAddress:vi(c),recoveryId:i},y),y.fill(vi(r),Vwe.span),new Ea({keys:[],programId:e.programId,data:y})}static createInstructionWithPrivateKey(t){let{privateKey:n,message:r,instructionIndex:o}=t;fs(n.length===Kit,`Private key must be ${Kit} bytes but received ${n.length} bytes`);try{let i=vi(n),a=iVt(i,!1).slice(1),c=tr.Buffer.from(z2(vi(r))),[l,d]=oVt(c,i);return this.createInstructionWithPublicKey({publicKey:a,message:r,signature:l,recoveryId:d,instructionIndex:o})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}};ixe.programId=new Br(\"KeccakSecp256k11111111111111111111111111111\");var uat,sVt=new Br(\"StakeConfig11111111111111111111111111111111\");var bz=class{constructor(t,n,r){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=n,this.custodian=r}};uat=bz;bz.default=new uat(0,0,Br.default);var gC=Object.freeze({Initialize:{index:0,layout:Ee.struct([Ee.u32(\"instruction\"),EWt(),AWt()])},Authorize:{index:1,layout:Ee.struct([Ee.u32(\"instruction\"),No(\"newAuthorized\"),Ee.u32(\"stakeAuthorizationType\")])},Delegate:{index:2,layout:Ee.struct([Ee.u32(\"instruction\")])},Split:{index:3,layout:Ee.struct([Ee.u32(\"instruction\"),Ee.ns64(\"lamports\")])},Withdraw:{index:4,layout:Ee.struct([Ee.u32(\"instruction\"),Ee.ns64(\"lamports\")])},Deactivate:{index:5,layout:Ee.struct([Ee.u32(\"instruction\")])},Merge:{index:7,layout:Ee.struct([Ee.u32(\"instruction\")])},AuthorizeWithSeed:{index:8,layout:Ee.struct([Ee.u32(\"instruction\"),No(\"newAuthorized\"),Ee.u32(\"stakeAuthorizationType\"),zM(\"authoritySeed\"),No(\"authorityOwner\")])}}),dbr=Object.freeze({Staker:{index:0},Withdrawer:{index:1}}),Bne=class{constructor(){}static initialize(t){let{stakePubkey:n,authorized:r,lockup:o}=t,i=o||bz.default,a=gC.Initialize,c=Qo(a,{authorized:{staker:vi(r.staker.toBuffer()),withdrawer:vi(r.withdrawer.toBuffer())},lockup:{unixTimestamp:i.unixTimestamp,epoch:i.epoch,custodian:vi(i.custodian.toBuffer())}}),l={keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:yz,isSigner:!1,isWritable:!1}],programId:this.programId,data:c};return new Ea(l)}static createAccountWithSeed(t){let n=new ja;n.add(uh.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));let{stakePubkey:r,authorized:o,lockup:i}=t;return n.add(this.initialize({stakePubkey:r,authorized:o,lockup:i}))}static createAccount(t){let n=new ja;n.add(uh.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));let{stakePubkey:r,authorized:o,lockup:i}=t;return n.add(this.initialize({stakePubkey:r,authorized:o,lockup:i}))}static delegate(t){let{stakePubkey:n,authorizedPubkey:r,votePubkey:o}=t,i=gC.Delegate,a=Qo(i);return new ja().add({keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!1},{pubkey:gA,isSigner:!1,isWritable:!1},{pubkey:jwe,isSigner:!1,isWritable:!1},{pubkey:sVt,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:a})}static authorize(t){let{stakePubkey:n,authorizedPubkey:r,newAuthorizedPubkey:o,stakeAuthorizationType:i,custodianPubkey:a}=t,c=gC.Authorize,l=Qo(c,{newAuthorized:vi(o.toBuffer()),stakeAuthorizationType:i.index}),d=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:gA,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}];return a&&d.push({pubkey:a,isSigner:!0,isWritable:!1}),new ja().add({keys:d,programId:this.programId,data:l})}static authorizeWithSeed(t){let{stakePubkey:n,authorityBase:r,authoritySeed:o,authorityOwner:i,newAuthorizedPubkey:a,stakeAuthorizationType:c,custodianPubkey:l}=t,d=gC.AuthorizeWithSeed,m=Qo(d,{newAuthorized:vi(a.toBuffer()),stakeAuthorizationType:c.index,authoritySeed:o,authorityOwner:vi(i.toBuffer())}),h=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1},{pubkey:gA,isSigner:!1,isWritable:!1}];return l&&h.push({pubkey:l,isSigner:!0,isWritable:!1}),new ja().add({keys:h,programId:this.programId,data:m})}static splitInstruction(t){let{stakePubkey:n,authorizedPubkey:r,splitStakePubkey:o,lamports:i}=t,a=gC.Split,c=Qo(a,{lamports:i});return new Ea({keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:c})}static split(t,n){let r=new ja;return r.add(uh.createAccount({fromPubkey:t.authorizedPubkey,newAccountPubkey:t.splitStakePubkey,lamports:n,space:this.space,programId:this.programId})),r.add(this.splitInstruction(t))}static splitWithSeed(t,n){let{stakePubkey:r,authorizedPubkey:o,splitStakePubkey:i,basePubkey:a,seed:c,lamports:l}=t,d=new ja;return d.add(uh.allocate({accountPubkey:i,basePubkey:a,seed:c,space:this.space,programId:this.programId})),n&&n>0&&d.add(uh.transfer({fromPubkey:t.authorizedPubkey,toPubkey:i,lamports:n})),d.add(this.splitInstruction({stakePubkey:r,authorizedPubkey:o,splitStakePubkey:i,lamports:l}))}static merge(t){let{stakePubkey:n,sourceStakePubKey:r,authorizedPubkey:o}=t,i=gC.Merge,a=Qo(i);return new ja().add({keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:gA,isSigner:!1,isWritable:!1},{pubkey:jwe,isSigner:!1,isWritable:!1},{pubkey:o,isSigner:!0,isWritable:!1}],programId:this.programId,data:a})}static withdraw(t){let{stakePubkey:n,authorizedPubkey:r,toPubkey:o,lamports:i,custodianPubkey:a}=t,c=gC.Withdraw,l=Qo(c,{lamports:i}),d=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:gA,isSigner:!1,isWritable:!1},{pubkey:jwe,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return a&&d.push({pubkey:a,isSigner:!0,isWritable:!1}),new ja().add({keys:d,programId:this.programId,data:l})}static deactivate(t){let{stakePubkey:n,authorizedPubkey:r}=t,o=gC.Deactivate,i=Qo(o);return new ja().add({keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:gA,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}};Bne.programId=new Br(\"Stake11111111111111111111111111111111111111\");Bne.space=200;var mz=Object.freeze({InitializeAccount:{index:0,layout:Ee.struct([Ee.u32(\"instruction\"),SWt()])},Authorize:{index:1,layout:Ee.struct([Ee.u32(\"instruction\"),No(\"newAuthorized\"),Ee.u32(\"voteAuthorizationType\")])},Withdraw:{index:3,layout:Ee.struct([Ee.u32(\"instruction\"),Ee.ns64(\"lamports\")])},UpdateValidatorIdentity:{index:4,layout:Ee.struct([Ee.u32(\"instruction\")])},AuthorizeWithSeed:{index:10,layout:Ee.struct([Ee.u32(\"instruction\"),_Wt()])}}),fbr=Object.freeze({Voter:{index:0},Withdrawer:{index:1}}),Lne=class e{constructor(){}static initializeAccount(t){let{votePubkey:n,nodePubkey:r,voteInit:o}=t,i=mz.InitializeAccount,a=Qo(i,{voteInit:{nodePubkey:vi(o.nodePubkey.toBuffer()),authorizedVoter:vi(o.authorizedVoter.toBuffer()),authorizedWithdrawer:vi(o.authorizedWithdrawer.toBuffer()),commission:o.commission}}),c={keys:[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:yz,isSigner:!1,isWritable:!1},{pubkey:gA,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:a};return new Ea(c)}static createAccount(t){let n=new ja;return n.add(uh.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.votePubkey,lamports:t.lamports,space:this.space,programId:this.programId})),n.add(this.initializeAccount({votePubkey:t.votePubkey,nodePubkey:t.voteInit.nodePubkey,voteInit:t.voteInit}))}static authorize(t){let{votePubkey:n,authorizedPubkey:r,newAuthorizedPubkey:o,voteAuthorizationType:i}=t,a=mz.Authorize,c=Qo(a,{newAuthorized:vi(o.toBuffer()),voteAuthorizationType:i.index}),l=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:gA,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return new ja().add({keys:l,programId:this.programId,data:c})}static authorizeWithSeed(t){let{currentAuthorityDerivedKeyBasePubkey:n,currentAuthorityDerivedKeyOwnerPubkey:r,currentAuthorityDerivedKeySeed:o,newAuthorizedPubkey:i,voteAuthorizationType:a,votePubkey:c}=t,l=mz.AuthorizeWithSeed,d=Qo(l,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:vi(r.toBuffer()),currentAuthorityDerivedKeySeed:o,newAuthorized:vi(i.toBuffer()),voteAuthorizationType:a.index}}),m=[{pubkey:c,isSigner:!1,isWritable:!0},{pubkey:gA,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return new ja().add({keys:m,programId:this.programId,data:d})}static withdraw(t){let{votePubkey:n,authorizedWithdrawerPubkey:r,lamports:o,toPubkey:i}=t,a=mz.Withdraw,c=Qo(a,{lamports:o}),l=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}];return new ja().add({keys:l,programId:this.programId,data:c})}static safeWithdraw(t,n,r){if(t.lamports>n-r)throw new Error(\"Withdraw will leave vote account with insufficient funds.\");return e.withdraw(t)}static updateValidatorIdentity(t){let{votePubkey:n,authorizedWithdrawerPubkey:r,nodePubkey:o}=t,i=mz.UpdateValidatorIdentity,a=Qo(i),c=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!0,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return new ja().add({keys:c,programId:this.programId,data:a})}};Lne.programId=new Br(\"Vote111111111111111111111111111111111111111\");Lne.space=3762;var pbr=new Br(\"Va1idator1nfo111111111111111111111111111111\"),hbr=kt({name:Gt(),website:On(Gt()),details:On(Gt()),iconUrl:On(Gt()),keybaseUsername:On(Gt())});var mbr=new Br(\"Vote111111111111111111111111111111111111111\"),gbr=Ee.struct([No(\"nodePubkey\"),No(\"authorizedWithdrawer\"),Ee.u8(\"commission\"),Ee.nu64(),Ee.seq(Ee.struct([Ee.nu64(\"slot\"),Ee.u32(\"confirmationCount\")]),Ee.offset(Ee.u32(),-8),\"votes\"),Ee.u8(\"rootSlotValid\"),Ee.nu64(\"rootSlot\"),Ee.nu64(),Ee.seq(Ee.struct([Ee.nu64(\"epoch\"),No(\"authorizedVoter\")]),Ee.offset(Ee.u32(),-8),\"authorizedVoters\"),Ee.struct([Ee.seq(Ee.struct([No(\"authorizedPubkey\"),Ee.nu64(\"epochOfLastAuthorizedSwitch\"),Ee.nu64(\"targetEpoch\")]),32,\"buf\"),Ee.nu64(\"idx\"),Ee.u8(\"isEmpty\")],\"priorVoters\"),Ee.nu64(),Ee.seq(Ee.struct([Ee.nu64(\"epoch\"),Ee.nu64(\"credits\"),Ee.nu64(\"prevCredits\")]),Ee.offset(Ee.u32(),-8),\"epochCredits\"),Ee.struct([Ee.nu64(\"slot\"),Ee.nu64(\"timestamp\")],\"lastTimestamp\")]);var lat=e=>({request:e,signMessage:t=>e({method:\"signMessage\",params:{message:t}}),signTransaction:t=>e({method:\"signTransaction\",params:{transaction:t}}),signAndSendTransaction:t=>e({method:\"signAndSendTransaction\",params:t})});f();function dat(e){return globalThis.Buffer.from(e.serialize({verifySignatures:!1})).toString(\"base64\")}function cVt(e){let t=globalThis.Buffer.from(e,\"base64\");return Une.deserializeMessageVersion(t)===\"legacy\"?Mne.deserialize(t):ja.from(t)}function fat(e){return async n=>{if(n.method===\"connect\")return await e(n);if(n.method===\"signMessage\")return await e(n);if(n.method===\"signAndSendTransaction\"){let{transaction:r}=n.params,o={transaction:dat(r)};return await e({method:\"signAndSendTransaction\",params:o})}if(n.method===\"signTransaction\"){let{transaction:r}=n.params,o={transaction:dat(r)},{signedTransaction:i}=await e({method:\"signTransaction\",params:o});return{signedTransaction:cVt(i)}}}}f();f();var pat=({miniAppHost:e,emitter:t})=>{let n,r=null;return{visible:!1,get onback(){return r},set onback(o){r&&t.removeListener(\"backNavigationTriggered\",r),r=o,o&&t.addListener(\"backNavigationTriggered\",o)},async show(){await e.updateBackState({visible:!0}),this.visible=!0},async hide(){await e.updateBackState({visible:!1}),this.visible=!1},async enableWebNavigation(){n=uVt({back:this,emitter:t})},async disableWebNavigation(){n?.(),n=void 0}}};function uVt({emitter:e,back:t}){let n=lVt();if(n)return dVt({emitter:e,back:t,navigation:n});if(typeof window<\"u\")return fVt({emitter:e,back:t,window})}function lVt(){if(typeof window<\"u\"&&window.navigation!==void 0)return window.navigation}function dVt({emitter:e,back:t,navigation:n}){function r(){n.canGoBack?t.show():t.hide()}function o(){t.visible&&n.canGoBack&&n.back()}return n.addEventListener(\"navigatesuccess\",r),e.addListener(\"backNavigationTriggered\",o),()=>{n.removeEventListener(\"navigatesuccess\",r),e.removeListener(\"backNavigationTriggered\",o)}}function fVt({emitter:e,back:t,window:n}){t.show();function r(){t.visible&&n.history.back()}return e.addListener(\"backNavigationTriggered\",r),()=>{e.removeListener(\"backNavigationTriggered\",r)}}f();f();J_();f();f();f();var hat=\"0.1.1\";function mat(){return hat}var zne=class e extends Error{constructor(t,n={}){let r=(()=>{if(n.cause instanceof e){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause?.message?n.cause.message:n.details})(),o=n.cause instanceof e&&n.cause.docsPath||n.docsPath,a=`https://oxlib.sh${o??\"\"}`,c=[t||\"An error occurred.\",...n.metaMessages?[\"\",...n.metaMessages]:[],...r||o?[\"\",r?`Details: ${r}`:void 0,o?`See: ${a}`:void 0]:[]].filter(l=>typeof l==\"string\").join(`\\n`);super(c,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseError\"}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${mat()}`}),this.cause=n.cause,this.details=r,this.docs=a,this.docsPath=o,this.shortMessage=t}walk(t){return gat(this,t)}};function gat(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause?gat(e.cause,t):t?null:e}f();function jne(e,t={}){let{raw:n=!1}=t,r=e;if(n)return e;if(r.error){let{code:o}=r.error,i=o===DI.code?DI:o===vz.code?vz:o===Rz.code?Rz:o===Tz.code?Tz:o===Sz.code?Sz:o===Cz.code?Cz:o===Az.code?Az:o===Iz.code?Iz:o===wz.code?wz:o===xz.code?xz:o===Ez.code?Ez:o===_z.code?_z:Yd;throw new i(r.error)}return r.result}var Yd=class extends Error{constructor(t){let{code:n,message:r,data:o}=t;super(r),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.BaseError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n,this.data=o}},vz=class e extends Yd{constructor(t={}){super({message:\"Missing or invalid parameters.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InvalidInputError\"})}};Object.defineProperty(vz,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});var wz=class e extends Yd{constructor(t={}){super({message:\"Requested resource not found.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.ResourceNotFoundError\"})}};Object.defineProperty(wz,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});var xz=class e extends Yd{constructor(t={}){super({message:\"Requested resource not available.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.ResourceUnavailableError\"})}};Object.defineProperty(xz,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});var Ez=class e extends Yd{constructor(t={}){super({message:\"Transaction creation failed.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.TransactionRejectedError\"})}};Object.defineProperty(Ez,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});var Az=class e extends Yd{constructor(t={}){super({message:\"Method is not implemented.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.MethodNotSupportedError\"})}};Object.defineProperty(Az,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004});var Sz=class e extends Yd{constructor(t={}){super({message:\"Rate limit exceeded.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.LimitExceededError\"})}};Object.defineProperty(Sz,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005});var _z=class e extends Yd{constructor(t={}){super({message:\"JSON-RPC version not supported.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.VersionNotSupportedError\"})}};Object.defineProperty(_z,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006});var Tz=class e extends Yd{constructor(t={}){super({message:\"Input is not a valid JSON-RPC request.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InvalidRequestError\"})}};Object.defineProperty(Tz,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});var Cz=class e extends Yd{constructor(t={}){super({message:\"Method does not exist.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.MethodNotFoundError\"})}};Object.defineProperty(Cz,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});var Rz=class e extends Yd{constructor(t={}){super({message:\"Invalid method parameters.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InvalidParamsError\"})}};Object.defineProperty(Rz,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});var DI=class e extends Yd{constructor(t={}){super({message:\"Internal JSON-RPC error.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.InternalErrorError\"})}};Object.defineProperty(DI,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603});var Iz=class e extends Yd{constructor(t={}){super({message:\"Failed to parse JSON-RPC response.\",...t,code:e.code}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"RpcResponse.ParseError\"})}};Object.defineProperty(Iz,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700});var sx=class extends Error{constructor(t,n){super(n),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ProviderRpcError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t,this.details=n}},kz=class extends sx{constructor({message:t=\"The user rejected the request.\"}={}){super(4001,t),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.UserRejectedRequestError\"})}};Object.defineProperty(kz,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001});var Oz=class extends sx{constructor({message:t=\"The requested method and/or account has not been authorized by the user.\"}={}){super(4100,t),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.UnauthorizedError\"})}};Object.defineProperty(Oz,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100});var Nz=class extends sx{constructor({message:t=\"The provider does not support the requested method.\"}={}){super(4200,t),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.UnsupportedMethodError\"})}};Object.defineProperty(Nz,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200});var Pz=class extends sx{constructor({message:t=\"The provider is disconnected from all chains.\"}={}){super(4900,t),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.DisconnectedError\"})}};Object.defineProperty(Pz,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900});var Mz=class extends sx{constructor({message:t=\"The provider is not connected to the requested chain.\"}={}){super(4901,t),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.ChainDisconnectedError\"})}};Object.defineProperty(Mz,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901});function bat(){let e=new qg.default;return{get eventNames(){return e.eventNames.bind(e)},get listenerCount(){return e.listenerCount.bind(e)},get listeners(){return e.listeners.bind(e)},addListener:e.addListener.bind(e),emit:e.emit.bind(e),off:e.off.bind(e),on:e.on.bind(e),once:e.once.bind(e),removeAllListeners:e.removeAllListeners.bind(e),removeListener:e.removeListener.bind(e)}}function vat(e,t={}){let{includeEvents:n=!0}=t;if(!e)throw new fxe;return{...n?{on:e.on?.bind(e),removeListener:e.removeListener?.bind(e)}:{},async request(r){let o=await e.request(r);return o&&typeof o==\"object\"&&\"jsonrpc\"in o?jne(o):o}}}var fxe=class extends zne{constructor(){super(\"`provider` is undefined.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Provider.IsUndefinedError\"})}};f();function wat(e={}){let t=e.id??0;return{prepare(n){return mVt({id:t++,...n})},get id(){return t}}}function mVt(e){return{...e,jsonrpc:\"2.0\"}}f();f();var Eat=Symbol(\"Comlink.proxy\"),yVt=Symbol(\"Comlink.endpoint\"),bVt=Symbol(\"Comlink.releaseProxy\"),pxe=Symbol(\"Comlink.finalizer\"),Vne=Symbol(\"Comlink.thrown\"),Aat=e=>typeof e==\"object\"&&e!==null||typeof e==\"function\",vVt={canHandle:e=>Aat(e)&&e[Eat],serialize(e){let{port1:t,port2:n}=new MessageChannel;return _at(e,t),[n,[n]]},deserialize(e){return e.start(),mxe(e)}},wVt={canHandle:e=>Aat(e)&&Vne in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},Sat=new Map([[\"proxy\",vVt],[\"throw\",wVt]]);function xVt(e,t){for(let n of e)if(t===n||n===\"*\"||n instanceof RegExp&&n.test(t))return!0;return!1}function _at(e,t=globalThis,n=[\"*\"]){t.addEventListener(\"message\",function r(o){if(!o||!o.data)return;if(!xVt(n,o.origin)){console.warn(`Invalid origin \\'${o.origin}\\' for comlink proxy`);return}let{id:i,type:a,path:c}=Object.assign({path:[]},o.data),l=(o.data.argumentList||[]).map(BI),d;try{let m=c.slice(0,-1).reduce((g,y)=>g[y],e),h=c.reduce((g,y)=>g[y],e);switch(a){case\"GET\":d=h;break;case\"SET\":m[c.slice(-1)[0]]=BI(o.data.value),d=!0;break;case\"APPLY\":d=h.apply(m,l);break;case\"CONSTRUCT\":{let g=new h(...l);d=CVt(g)}break;case\"ENDPOINT\":{let{port1:g,port2:y}=new MessageChannel;_at(e,y),d=TVt(g,[g])}break;case\"RELEASE\":d=void 0;break;default:return}}catch(m){d={value:m,[Vne]:0}}Promise.resolve(d).catch(m=>({value:m,[Vne]:0})).then(m=>{let[h,g]=Kne(m);t.postMessage(Object.assign(Object.assign({},h),{id:i}),g),a===\"RELEASE\"&&(t.removeEventListener(\"message\",r),Tat(t),pxe in e&&typeof e[pxe]==\"function\"&&e[pxe]())}).catch(m=>{let[h,g]=Kne({value:new TypeError(\"Unserializable return value\"),[Vne]:0});t.postMessage(Object.assign(Object.assign({},h),{id:i}),g)})}),t.start&&t.start()}function EVt(e){return e.constructor.name===\"MessagePort\"}function Tat(e){EVt(e)&&e.close()}function mxe(e,t){let n=new Map;return e.addEventListener(\"message\",function(o){let{data:i}=o;if(!i||!i.id)return;let a=n.get(i.id);if(a)try{a(i)}finally{n.delete(i.id)}}),hxe(e,n,[],t)}function Wne(e){if(e)throw new Error(\"Proxy has been released and is not useable\")}function Cat(e){return qM(e,new Map,{type:\"RELEASE\"}).then(()=>{Tat(e)})}var Gne=new WeakMap,qne=\"FinalizationRegistry\"in globalThis&&new FinalizationRegistry(e=>{let t=(Gne.get(e)||0)-1;Gne.set(e,t),t===0&&Cat(e)});function AVt(e,t){let n=(Gne.get(t)||0)+1;Gne.set(t,n),qne&&qne.register(e,t,e)}function SVt(e){qne&&qne.unregister(e)}function hxe(e,t,n=[],r=function(){}){let o=!1,i=new Proxy(r,{get(a,c){if(Wne(o),c===bVt)return()=>{SVt(i),Cat(e),t.clear(),o=!0};if(c===\"then\"){if(n.length===0)return{then:()=>i};let l=qM(e,t,{type:\"GET\",path:n.map(d=>d.toString())}).then(BI);return l.then.bind(l)}return hxe(e,t,[...n,c])},set(a,c,l){Wne(o);let[d,m]=Kne(l);return qM(e,t,{type:\"SET\",path:[...n,c].map(h=>h.toString()),value:d},m).then(BI)},apply(a,c,l){Wne(o);let d=n[n.length-1];if(d===yVt)return qM(e,t,{type:\"ENDPOINT\"}).then(BI);if(d===\"bind\")return hxe(e,t,n.slice(0,-1));let[m,h]=xat(l);return qM(e,t,{type:\"APPLY\",path:n.map(g=>g.toString()),argumentList:m},h).then(BI)},construct(a,c){Wne(o);let[l,d]=xat(c);return qM(e,t,{type:\"CONSTRUCT\",path:n.map(m=>m.toString()),argumentList:l},d).then(BI)}});return AVt(i,e),i}function _Vt(e){return Array.prototype.concat.apply([],e)}function xat(e){let t=e.map(Kne);return[t.map(n=>n[0]),_Vt(t.map(n=>n[1]))]}var Rat=new WeakMap;function TVt(e,t){return Rat.set(e,t),e}function CVt(e){return Object.assign(e,{[Eat]:!0})}function Iat(e,t=globalThis,n=\"*\"){return{postMessage:(r,o)=>e.postMessage(r,n,o),addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}function Kne(e){for(let[t,n]of Sat)if(n.canHandle(e)){let[r,o]=n.serialize(e);return[{type:\"HANDLER\",name:t,value:r},o]}return[{type:\"RAW\",value:e},Rat.get(e)||[]]}function BI(e){switch(e.type){case\"HANDLER\":return Sat.get(e.name).deserialize(e.value);case\"RAW\":return e.value}}function qM(e,t,n,r){return new Promise(o=>{let i=RVt();t.set(i,o),e.start&&e.start(),e.postMessage(Object.assign({id:i},n),r)})}function RVt(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join(\"-\")}f();var IVt={postMessage(){},addEventListener:()=>{},removeEventListener:()=>{}},kVt={postMessage:e=>{window.ReactNativeWebView.postMessage(JSON.stringify(e))},addEventListener:(e,t,...n)=>{document.addEventListener(\"FarcasterFrameCallback\",t,...n)},removeEventListener:(e,t)=>{document.removeEventListener(\"FarcasterFrameCallback\",t)}},kat=typeof window>\"u\"?IVt:window?.ReactNativeWebView?kVt:Iat(window?.parent??window);var Gn=mxe(kat);var gxe=bat(),OVt=wat();function NVt({code:e,details:t}){switch(e){case 4001:return new kz;case 4100:return new Oz;case 4200:return new Nz;case 4900:return new Pz;case 4901:return new Mz;default:return new sx(e,t??\"Unknown provider RPC error\")}}var KM=vat({...gxe,async request(e){let t=OVt.prepare(e);try{let n=await Gn.ethProviderRequestV2(t).then(r=>jne(r,{request:t,raw:!0}));if(n.error)throw NVt(n.error);return n.result}catch(n){if(n instanceof Error&&n.message.match(/cannot read property \\'apply\\'/i))return await Gn.ethProviderRequest(t);throw n instanceof sx||n instanceof Yd?n:new DI({message:n instanceof Error?n.message:void 0})}}});async function Oat(){try{let e=await Gn.getCapabilities();return!e.includes(\"wallet.getEthereumProvider\")&&!e.includes(\"wallet.getEvmProvider\")?void 0:KM}catch{return KM}}function Nat(e){let t=new CustomEvent(\"eip6963:announceProvider\",{detail:Object.freeze(e)});window.dispatchEvent(t);let n=()=>window.dispatchEvent(t);return window.addEventListener(\"eip6963:requestProvider\",n),()=>window.removeEventListener(\"eip6963:requestProvider\",n)}typeof document<\"u\"&&(document.addEventListener(\"eip6963:requestProvider\",()=>{Gn.eip6963RequestProvider()}),document.addEventListener(\"FarcasterFrameEthProviderEvent\",e=>{if(e instanceof MessageEvent){let t=e.data;gxe.emit(t.event,...t.params)}}),document.addEventListener(\"FarcasterFrameEvent\",e=>{if(e instanceof MessageEvent){let t=e.data;t.event===\"eip6963:announceProvider\"&&Nat({info:t.info,provider:KM})}}));typeof window<\"u\"&&(window.addEventListener(\"eip6963:requestProvider\",()=>{Gn.eip6963RequestProvider()}),window.addEventListener(\"message\",e=>{if(e instanceof MessageEvent&&e.data.type===\"frameEthProviderEvent\"){let t=e.data;gxe.emit(t.event,...t.params)}}),window.addEventListener(\"message\",e=>{if(e instanceof MessageEvent&&e.data.type===\"frameEvent\"){let t=e.data.event;t.event===\"eip6963:announceProvider\"&&Nat({info:t.info,provider:KM})}}));f();f();f();f();f();f();var PVt=new TextEncoder,Yne=new TextDecoder,u1r=2**32;var MVt=e=>{let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n},Pat=e=>{let t=e;t instanceof Uint8Array&&(t=Yne.decode(t)),t=t.replace(/-/g,\"+\").replace(/_/g,\"/\").replace(/\\\\s/g,\"\");try{return MVt(t)}catch{throw new TypeError(\"The input to be decoded is not correctly encoded.\")}};var Mat=Pat;f();function BVt(e){return typeof e==\"object\"&&e!==null}function yxe(e){if(!BVt(e)||Object.prototype.toString.call(e)!==\"[object Object]\")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}f();var Zd=class extends Error{constructor(t,n){super(t,n),this.code=\"ERR_JOSE_GENERIC\",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}};Zd.code=\"ERR_JOSE_GENERIC\";var bxe=class extends Zd{constructor(t,n,r=\"unspecified\",o=\"unspecified\"){super(t,{cause:{claim:r,reason:o,payload:n}}),this.code=\"ERR_JWT_CLAIM_VALIDATION_FAILED\",this.claim=r,this.reason=o,this.payload=n}};bxe.code=\"ERR_JWT_CLAIM_VALIDATION_FAILED\";var vxe=class extends Zd{constructor(t,n,r=\"unspecified\",o=\"unspecified\"){super(t,{cause:{claim:r,reason:o,payload:n}}),this.code=\"ERR_JWT_EXPIRED\",this.claim=r,this.reason=o,this.payload=n}};vxe.code=\"ERR_JWT_EXPIRED\";var wxe=class extends Zd{constructor(){super(...arguments),this.code=\"ERR_JOSE_ALG_NOT_ALLOWED\"}};wxe.code=\"ERR_JOSE_ALG_NOT_ALLOWED\";var xxe=class extends Zd{constructor(){super(...arguments),this.code=\"ERR_JOSE_NOT_SUPPORTED\"}};xxe.code=\"ERR_JOSE_NOT_SUPPORTED\";var Exe=class extends Zd{constructor(t=\"decryption operation failed\",n){super(t,n),this.code=\"ERR_JWE_DECRYPTION_FAILED\"}};Exe.code=\"ERR_JWE_DECRYPTION_FAILED\";var Axe=class extends Zd{constructor(){super(...arguments),this.code=\"ERR_JWE_INVALID\"}};Axe.code=\"ERR_JWE_INVALID\";var Sxe=class extends Zd{constructor(){super(...arguments),this.code=\"ERR_JWS_INVALID\"}};Sxe.code=\"ERR_JWS_INVALID\";var I1=class extends Zd{constructor(){super(...arguments),this.code=\"ERR_JWT_INVALID\"}};I1.code=\"ERR_JWT_INVALID\";var _xe=class extends Zd{constructor(){super(...arguments),this.code=\"ERR_JWK_INVALID\"}};_xe.code=\"ERR_JWK_INVALID\";var Txe=class extends Zd{constructor(){super(...arguments),this.code=\"ERR_JWKS_INVALID\"}};Txe.code=\"ERR_JWKS_INVALID\";var Cxe=class extends Zd{constructor(t=\"no applicable key found in the JSON Web Key Set\",n){super(t,n),this.code=\"ERR_JWKS_NO_MATCHING_KEY\"}};Cxe.code=\"ERR_JWKS_NO_MATCHING_KEY\";var Rxe=class extends Zd{constructor(t=\"multiple matching keys found in the JSON Web Key Set\",n){super(t,n),this.code=\"ERR_JWKS_MULTIPLE_MATCHING_KEYS\"}};Rxe.code=\"ERR_JWKS_MULTIPLE_MATCHING_KEYS\";var Ixe=class extends Zd{constructor(t=\"request timed out\",n){super(t,n),this.code=\"ERR_JWKS_TIMEOUT\"}};Ixe.code=\"ERR_JWKS_TIMEOUT\";var kxe=class extends Zd{constructor(t=\"signature verification failed\",n){super(t,n),this.code=\"ERR_JWS_SIGNATURE_VERIFICATION_FAILED\"}};kxe.code=\"ERR_JWS_SIGNATURE_VERIFICATION_FAILED\";function Dat(e){if(typeof e!=\"string\")throw new I1(\"JWTs must use Compact JWS serialization, JWT must be a string\");let{1:t,length:n}=e.split(\".\");if(n===5)throw new I1(\"Only JWTs using Compact JWS serialization can be decoded\");if(n!==3)throw new I1(\"Invalid JWT\");if(!t)throw new I1(\"JWTs must contain a payload\");let r;try{r=Mat(t)}catch{throw new I1(\"Failed to base64url decode the payload\")}let o;try{o=JSON.parse(Yne.decode(r))}catch{throw new I1(\"Failed to parse the decoded payload as JSON\")}if(!yxe(o))throw new I1(\"Invalid JWT Claims Set\");return o}function Bat(e){return Dat(e)}f();f();f();var Zne=class e extends Error{constructor(t,n={}){let r=(()=>{if(n.cause instanceof e){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&\"details\"in n.cause&&typeof n.cause.details==\"string\"?n.cause.details:n.cause?.message?n.cause.message:n.details})(),o=[t||\"An error occurred.\",...n.metaMessages?[\"\",...n.metaMessages]:[],...r?[\"\",r?`Details: ${r}`:void 0]:[]].filter(i=>typeof i==\"string\").join(`\\n`);super(o,n.cause?{cause:n.cause}:void 0),this.name=\"BaseError\",this.cause=n.cause,this.details=r,this.shortMessage=t}},YM=class extends Zne{constructor({status:t}){super(`Request failed with status ${t}`),this.name=\"RequestFailedError\"}},Qne=class extends Zne{constructor(t){super(t),this.name=\"InvalidToken\"}};async function Lat({origin:e}){let t=await fetch(`${e}/nonce`,{method:\"POST\"});if(!t.ok)throw new YM({status:t.status});return await t.json()}f();async function Uat({origin:e},t){let n=await fetch(`${e}/verify-siwf`,{method:\"POST\",headers:new Headers({\"Content-Type\":\"application/json\"}),body:JSON.stringify(t)});if(!n.ok)throw new YM({status:n.status});let r=await n.json();if(r.valid===!1)throw new Qne(r.message??\"unknown\");return{token:r.token}}f();function Fat(e={}){return{origin:e.origin??\"https://auth.farcaster.xyz\"}}function Hat(e={}){let t=Fat(e);return{generateNonce:()=>Lat(t),verifySiwf:n=>Uat(t,n)}}f();var LVt=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\\\\/\\\\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\\\\n)(?<address>0x[a-fA-F0-9]{40})\\\\n\\\\n(?:(?<statement>.*)\\\\n\\\\n)?/,UVt=/(?:URI: (?<uri>.+))\\\\n(?:Version: (?<version>.+))\\\\n(?:Chain ID: (?<chainId>\\\\d+))\\\\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\\\\n(?:Issued At: (?<issuedAt>.+))(?:\\\\nExpiration Time: (?<expirationTime>.+))?(?:\\\\nNot Before: (?<notBefore>.+))?(?:\\\\nRequest ID: (?<requestId>.+))?/;function zat(e){let{scheme:t,statement:n,...r}=e.match(LVt)?.groups??{},{chainId:o,expirationTime:i,issuedAt:a,notBefore:c,requestId:l,...d}=e.match(UVt)?.groups??{},m=e.split(\"Resources:\")[1]?.split(`\\n- `).slice(1);return{...r,...d,...o?{chainId:Number(o)}:{},...i?{expirationTime:new Date(i)}:{},...a?{issuedAt:new Date(a)}:{},...c?{notBefore:new Date(c)}:{},...l?{requestId:l}:{},...m?{resources:m}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}var Jne=(()=>{let e,t;async function n(r){let o=Hat({origin:r.quickAuthServerOrigin}),{nonce:i}=await o.generateNonce(),a=await Gn.signIn({nonce:i,acceptAuthAddress:!0});if(a.result){let c=zat(a.result.message);if(!c.domain)throw new Error(\"Missing domain on SIWE message\");let l=await o.verifySiwf({domain:c.domain,message:a.result.message,signature:a.result.signature});return e={token:l.token,payload:Bat(l.token)},l}throw a.error.type===\"rejected_by_user\"?new wM.RejectedByUser:new Error(\"Unreachable\")}return{get token(){if(e&&new Date(e.payload.exp*1e3)>new Date(Date.now()+15e3))return e.token},async getToken(r={}){let o=r.force??!1;return e&&!o&&new Date(e.payload.exp*1e3)>new Date(Date.now()+15e3)?{token:e.token}:(t||(t=n(r)),t.finally(()=>{t=void 0}),t)},async fetch(r,o){let{token:i}=await this.getToken(),a=new Headers(o?.headers);return a.set(\"Authorization\",`Bearer ${i}`),fetch(r,{...o,headers:a})}}})();f();J_();function zVt(){let e=new tOe;return{get eventNames(){return e.eventNames.bind(e)},get listenerCount(){return e.listenerCount.bind(e)},get listeners(){return e.listeners.bind(e)},addListener:e.addListener.bind(e),emit:e.emit.bind(e),off:e.off.bind(e),on:e.on.bind(e),once:e.once.bind(e),removeAllListeners:e.removeAllListeners.bind(e),removeListener:e.removeListener.bind(e)}}var Qd=zVt();f();var{solanaProviderRequest:jat}=Gn,Wat;jat&&(Wat=lat(fat(jat)));async function Oxe(){let e;try{e=await Gn.getCapabilities()}catch{}if(e?.includes(\"wallet.getSolanaProvider\"))return Wat}var Vat=null;async function jVt(e=1e3){if(Vat===!0)return!0;if(typeof window>\"u\"||!window.ReactNativeWebView&&window===window.parent)return!1;let t=await Promise.race([Gn.context.then(n=>!!n),new Promise(n=>{setTimeout(()=>n(!1),e)})]).catch(()=>!1);return t&&(Vat=!0),t}var Gat=async()=>{let e=await Gn.addFrame();if(e.result)return e.result;throw e.error.type===\"invalid_domain_manifest\"?new YH.InvalidDomainManifest:e.error.type===\"rejected_by_user\"?new YH.RejectedByUser:new Error(\"Unreachable\")},Xne={...Qd,getCapabilities:Gn.getCapabilities,getChains:Gn.getChains,isInMiniApp:jVt,context:Gn.context,back:pat({miniAppHost:Gn,emitter:Qd}),quickAuth:Jne,actions:{setPrimaryButton:Gn.setPrimaryButton.bind(Gn),ready:async(e={})=>await Gn.ready(e),close:Gn.close.bind(Gn),viewCast:Gn.viewCast.bind(Gn),viewProfile:Gn.viewProfile.bind(Gn),openMiniApp:Gn.openMiniApp.bind(Gn),signIn:async e=>{let t=await Gn.signIn({...e,acceptAuthAddress:e.acceptAuthAddress??!0});if(t.result)return t.result;throw t.error.type===\"rejected_by_user\"?new wM.RejectedByUser:new Error(\"Unreachable\")},openUrl:e=>{let t=typeof e==\"string\"?e:e.url;return Gn.openUrl(t.trim())},addFrame:Gat,addMiniApp:Gat,composeCast(e={}){return Gn.composeCast(e)},viewToken:Gn.viewToken.bind(Gn),sendToken:Gn.sendToken.bind(Gn),swapToken:Gn.swapToken.bind(Gn),requestCameraAndMicrophoneAccess:Gn.requestCameraAndMicrophoneAccess.bind(Gn)},experimental:{getSolanaProvider:Oxe,signManifest:async e=>{let t=await Gn.signManifest(e);if(t.result)return t.result;throw t.error.type===\"rejected_by_user\"?new xM.RejectedByUser:t.error.type===\"invalid_domain\"?new xM.InvalidDomain:t.error.type===\"generic_error\"?new xM.GenericError(t.error.message):new Error(\"Unreachable\")},quickAuth(e){return Jne.getToken(e)}},wallet:{ethProvider:KM,getEthereumProvider:Oat,getSolanaProvider:Oxe},haptics:{impactOccurred:Gn.impactOccurred.bind(Gn),notificationOccurred:Gn.notificationOccurred.bind(Gn),selectionChanged:Gn.selectionChanged.bind(Gn)}};typeof document<\"u\"&&document.addEventListener(\"FarcasterFrameEvent\",e=>{if(e instanceof MessageEvent){let t=e.data;t.event===\"primary_button_clicked\"?Qd.emit(\"primaryButtonClicked\"):t.event===\"miniapp_added\"?Qd.emit(\"miniAppAdded\",{notificationDetails:t.notificationDetails}):t.event===\"miniapp_add_rejected\"?Qd.emit(\"miniAppAddRejected\",{reason:t.reason}):t.event===\"miniapp_removed\"?Qd.emit(\"miniAppRemoved\"):t.event===\"notifications_enabled\"?Qd.emit(\"notificationsEnabled\",{notificationDetails:t.notificationDetails}):t.event===\"notifications_disabled\"?Qd.emit(\"notificationsDisabled\"):t.event===\"back_navigation_triggered\"&&Qd.emit(\"backNavigationTriggered\")}});typeof window<\"u\"&&window.addEventListener(\"message\",e=>{if(e instanceof MessageEvent&&e.data.type===\"frameEvent\"){let t=e.data.event;t.event===\"primary_button_clicked\"?Qd.emit(\"primaryButtonClicked\"):t.event===\"miniapp_added\"?Qd.emit(\"miniAppAdded\",{notificationDetails:t.notificationDetails}):t.event===\"miniapp_add_rejected\"?Qd.emit(\"miniAppAddRejected\",{reason:t.reason}):t.event===\"miniapp_removed\"?Qd.emit(\"miniAppRemoved\"):t.event===\"notifications_enabled\"?Qd.emit(\"notificationsEnabled\",{notificationDetails:t.notificationDetails}):t.event===\"notifications_disabled\"?Qd.emit(\"notificationsDisabled\"):t.event===\"back_navigation_triggered\"&&Qd.emit(\"backNavigationTriggered\")}});var qat=Xne;typeof console<\"u\"&&console.warn&&console.warn(\"@farcaster/frame-sdk is deprecated. Please use @farcaster/miniapp-sdk instead.\");var WVt=Xne,Kat=!1,wvr=new Proxy(Gn,{get(e,t,n){return!Kat&&typeof console<\"u\"&&console.warn&&(Kat=!0,console.warn(\"frameHost is deprecated. Please use miniAppHost instead.\")),Reflect.get(e,t,n)}}),$ne=WVt;var Nxe=class{constructor(){this.clientMeta=null,this.initPromise=null}async init({isMiniKit:t}){if(this.isInitialized()){console.warn(\"ClientMetaManager already initialized\");return}this.initPromise=this.handleInit({isMiniKit:t})}isInitialized(){return!!this.initPromise}async getClientMeta(){if(!this.initPromise)throw new Error(\"ClientMetaManager not initialized\");return this.clientMeta?this.clientMeta:await this.initPromise}async handleInit({isMiniKit:t}){var n;let r=null;try{let o=await $ne.context;r=((n=o?.client)==null?void 0:n.clientFid)||null}catch(o){console.error(\"Error getting client FID\",o)}return this.clientMeta={mode:t?\"minikit\":\"onchainkit\",clientFid:r},this.clientMeta}},LI=new Nxe;f();f();function VVt(){return\"0.38.19\"}var bC=VVt();var Yat=\"POST\",ere={\"Content-Type\":\"application/json\",\"OnchainKit-Version\":bC},Pxe=\"OnchainKit-Context\",Zat=\"2.0\",Jo=(e=>(e.API=\"api\",e.Buy=\"buy\",e.Checkout=\"checkout\",e.Hook=\"hook\",e.NFT=\"nft\",e.Swap=\"swap\",e.Wallet=\"wallet\",e))(Jo||{});function GVt(e,t){return{apiKey:y_(\"apiKey\")??\"undefined\",sessionId:y_(\"sessionId\")??\"undefined\",timestamp:Date.now(),eventType:e,data:t,origin:window.location.origin}}async function qVt(e,t){var n;let r=y_(\"config\");if(r?.analytics)try{let o=await LI.getClientMeta();await fetch(r?.analyticsUrl??Lrt,{method:\"POST\",headers:{...ere,\"OnchainKit-App-Name\":document.title,\"OnchainKit-Client-Fid\":((n=o.clientFid)==null?void 0:n.toString())??\"\",\"OnchainKit-Mode\":o.mode},body:JSON.stringify(GVt(e,t))})}catch(o){console.error(\"Error sending analytics:\",o)}}var tre=(e,t)=>qVt(e,t);f();var cx=(e=>(e.ConnectError=\"walletConnectError\",e.ConnectInitiated=\"walletConnectInitiated\",e.ConnectSuccess=\"walletConnectSuccess\",e.Disconnect=\"walletDisconnect\",e.OptionSelected=\"walletOptionSelected\",e.ConnectCanceled=\"walletConnectCanceled\",e))(cx||{}),bA=(e=>(e.Buy=\"buy\",e.Explorer=\"explorer\",e.QR=\"qr\",e.Refresh=\"refresh\",e.Send=\"send\",e.Swap=\"swap\",e))(bA||{}),vA=(e=>(e.SlippageChanged=\"swapSlippageChanged\",e.TokenSelected=\"swapTokenSelected\",e.SwapSuccess=\"swapSuccess\",e.SwapInitiated=\"swapInitiated\",e.SwapFailure=\"swapFailure\",e.SwapCanceled=\"swapCanceled\",e))(vA||{});var ZM=(e=>(e.TransactionFailure=\"transactionFailure\",e.TransactionInitiated=\"transactionInitiated\",e.TransactionSuccess=\"transactionSuccess\",e.TransactionCanceled=\"transactionCanceled\",e))(ZM||{}),Jf=(e=>(e.FundAmountChanged=\"fundAmountChanged\",e.FundFailure=\"fundFailure\",e.FundInitiated=\"fundInitiated\",e.FundOptionSelected=\"fundOptionSelected\",e.FundSuccess=\"fundSuccess\",e.FundCanceled=\"fundCanceled\",e))(Jf||{});var Mxe=(e=>(e.ComponentError=\"componentError\",e))(Mxe||{});var nre=class extends Qat.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,n){console.error(\"Uncaught error:\",t,n),tre(Mxe.ComponentError,{component:\"OnchainKitProviderBoundary\",error:t.message,metadata:{message:t.message,stack:n.componentStack}})}render(){if(this.state.error){if(this.props.fallback){let t=this.props.fallback;return(0,Dxe.jsx)(t,{error:this.state.error})}return(0,Dxe.jsx)(\"h1\",{children:\"Sorry, we had an unhandled error\"})}return this.props.children}};f();var UI=(e=>(e.AtomicBatch=\"atomicBatch\",e.AuxiliaryFunds=\"auxiliaryFunds\",e.PaymasterService=\"paymasterService\",e))(UI||{}),Jat=\"https://base.org/privacy-policy\",Xat=\"https://base.org/terms-of-service\";f();va();var QM={[Cs.id]:\"0x6533C94869D28fAA8dF77cc63f9e2b2D6Cf77eBA\",[fr.id]:\"0xC6d566A56A1aFf6508b41f6c90ff131615583BCD\"},KVt=\\'<svg width=\"3000\" height=\"3000\" viewBox=\"0 0 3000 3000\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_5569_72801)\"><rect width=\"3000\" height=\"3000\" fill=\"#155DFD\"/><circle cx=\"1500\" cy=\"1500\" r=\"1500\" fill=\"#155DFD\"/><path d=\"M2596.93 1721.27C2605.58 1648.75 2610.21 1574.9 2610.21 1500C2610.21 1425.1 2605.58 1351.4 2596.93 1278.73C2770.3 1177.28 2815.96 914.534 2631.1 772.941C2553.96 713.858 2472.05 660.593 2385.96 614.042C2339.26 528.102 2286.14 446.041 2227.06 368.904C2085.47 184.192 1822.72 229.699 1721.27 403.071C1648.75 394.417 1574.9 389.792 1500 389.792C1425.1 389.792 1351.4 394.417 1278.73 403.071C1177.28 229.699 914.534 184.043 772.941 368.904C713.858 446.041 660.593 527.953 614.042 614.042C528.102 660.742 446.041 713.858 368.904 772.941C184.192 914.534 229.699 1177.28 403.071 1278.73C394.417 1351.25 389.792 1425.1 389.792 1500C389.792 1574.9 394.417 1648.6 403.071 1721.27C229.699 1822.72 184.043 2085.47 368.904 2227.06C446.041 2286.14 527.953 2339.41 614.042 2385.96C660.742 2471.9 713.858 2553.96 772.941 2631.1C914.534 2815.81 1177.28 2770.3 1278.73 2596.93C1351.25 2605.58 1425.1 2610.21 1500 2610.21C1574.9 2610.21 1648.6 2605.58 1721.27 2596.93C1822.72 2770.3 2085.47 2815.96 2227.06 2631.1C2286.14 2553.96 2339.41 2472.05 2385.96 2385.96C2471.9 2339.26 2553.96 2286.14 2631.1 2227.06C2815.81 2085.47 2770.3 1822.72 2596.93 1721.27Z\" fill=\"white\"/><path d=\"M1391.06 1500C1391.06 1647.89 1358.4 1781.62 1305.74 1878.28C1253.03 1975.05 1180.69 2034 1101.53 2034C1022.36 2034 950.031 1975.05 897.314 1878.28C844.66 1781.62 812 1647.89 812 1500C812 1352.11 844.66 1218.38 897.314 1121.72C950.031 1024.95 1022.36 966 1101.53 966C1180.69 966 1253.03 1024.95 1305.74 1121.72C1358.4 1218.38 1391.06 1352.11 1391.06 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"1102.57\" cy=\"1194.93\" rx=\"126.414\" ry=\"231.934\" fill=\"white\"/><path d=\"M2187.16 1500C2187.16 1647.89 2154.5 1781.62 2101.84 1878.28C2049.13 1975.05 1976.79 2034 1897.63 2034C1818.46 2034 1746.13 1975.05 1693.41 1878.28C1640.76 1781.62 1608.1 1647.89 1608.1 1500C1608.1 1352.11 1640.76 1218.38 1693.41 1121.72C1746.13 1024.95 1818.46 966 1897.63 966C1976.79 966 2049.13 1024.95 2101.84 1121.72C2154.5 1218.38 2187.16 1352.11 2187.16 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"1896.58\" cy=\"1194.93\" rx=\"126.414\" ry=\"231.934\" fill=\"white\"/></g><defs><clipPath id=\"clip0_5569_72801\"><rect width=\"3000\" height=\"3000\" fill=\"white\"/></clipPath></defs></svg>\\',YVt=\\'<svg width=\"3000\" height=\"3000\" viewBox=\"0 0 3000 3000\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_5569_72809)\"><rect width=\"3000\" height=\"3000\" fill=\"#155DFD\"/><circle cx=\"1500\" cy=\"1500\" r=\"1500\" fill=\"#155DFD\"/><path d=\"M2188.12 1131.95C2691.11 591.187 2356.8 256.94 1815.91 759.826C1767.57 804.826 1737.56 866.494 1733.32 932.403C1733.32 933.767 1733.17 934.979 1733.02 936.343C1722.56 1094.68 1853.35 1225.44 2011.72 1214.98C2013.08 1214.98 2014.29 1214.83 2015.66 1214.68C2081.58 1210.44 2143.26 1180.44 2188.27 1132.1L2188.12 1131.95Z\" fill=\"white\"/><path d=\"M759.879 1816.05C256.885 2356.81 591.204 2691.06 1132.08 2188.17C1180.43 2143.17 1210.44 2081.51 1214.68 2015.6C1214.68 2014.23 1214.83 2013.02 1214.98 2011.66C1225.44 1853.32 1094.65 1722.56 936.283 1733.02C934.919 1733.02 933.706 1733.17 932.342 1733.32C866.418 1737.56 804.738 1767.56 759.727 1815.9L759.879 1816.05Z\" fill=\"white\"/><path d=\"M1131.96 759.922C591.247 256.826 256.881 591.264 759.869 1132.09C804.865 1180.43 866.527 1210.44 932.431 1214.68C933.794 1214.68 935.006 1214.83 936.37 1214.98C1094.69 1225.44 1225.44 1094.66 1214.98 936.309C1214.98 934.946 1214.83 933.733 1214.68 932.369C1210.44 866.452 1180.44 804.777 1132.11 759.771L1131.96 759.922Z\" fill=\"white\"/><path d=\"M1816.05 2188.12C2356.81 2691.11 2691.06 2356.8 2188.17 1815.91C2143.17 1767.57 2081.51 1737.56 2015.6 1733.32C2014.23 1733.32 2013.02 1733.17 2011.66 1733.02C1853.32 1722.56 1722.56 1853.35 1733.02 2011.72C1733.02 2013.08 1733.17 2014.29 1733.32 2015.66C1737.56 2081.58 1767.56 2143.26 1815.9 2188.27L1816.05 2188.12Z\" fill=\"white\"/><path d=\"M1737.18 727.02C1710.36 -10.3398 1237.66 -10.3398 1210.84 727.02C1208.42 792.869 1230.84 857.658 1274.48 907.31C1275.39 908.37 1276.14 909.278 1277.05 910.338C1381.59 1029.62 1566.43 1029.62 1670.97 910.338C1671.88 909.278 1672.63 908.37 1673.54 907.31C1717.18 857.81 1739.45 793.02 1737.18 727.02Z\" fill=\"white\"/><path d=\"M727.02 1210.82C-10.3398 1237.64 -10.3398 1710.34 727.02 1737.16C792.869 1739.58 857.658 1717.16 907.31 1673.52C908.218 1672.62 909.278 1671.86 910.338 1670.95C1029.62 1566.41 1029.62 1381.57 910.338 1277.03C909.278 1276.12 908.37 1275.37 907.31 1274.46C857.81 1230.82 793.02 1208.55 727.02 1210.82Z\" fill=\"white\"/><path d=\"M2040.69 1274.48C2039.63 1275.39 2038.72 1276.14 2037.66 1277.05C1918.38 1381.59 1918.38 1566.43 2037.66 1670.97C2038.72 1671.88 2039.63 1672.63 2040.69 1673.54C2090.19 1717.18 2154.98 1739.45 2220.98 1737.18C2958.34 1710.36 2958.34 1237.66 2220.98 1210.84C2155.13 1208.42 2090.34 1230.84 2040.69 1274.48Z\" fill=\"white\"/><path d=\"M1210.82 2220.98C1237.64 2958.34 1710.34 2958.34 1737.16 2220.98C1739.58 2155.13 1717.16 2090.34 1673.52 2040.69C1672.62 2039.63 1671.86 2038.72 1670.95 2037.66C1566.41 1918.38 1381.57 1918.38 1277.03 2037.66C1276.12 2038.72 1275.37 2039.63 1274.46 2040.69C1230.82 2090.19 1208.55 2154.98 1210.82 2220.98Z\" fill=\"white\"/><circle cx=\"1474.5\" cy=\"1474.5\" r=\"886.5\" fill=\"white\"/><path d=\"M1391.06 1500C1391.06 1352.11 1358.4 1218.38 1305.74 1121.72C1253.03 1024.95 1180.69 966 1101.53 966C1022.36 966 950.031 1024.95 897.314 1121.72C844.66 1218.38 812 1352.11 812 1500C812 1647.89 844.66 1781.62 897.314 1878.28C950.031 1975.05 1022.36 2034 1101.53 2034C1180.69 2034 1253.03 1975.05 1305.74 1878.28C1358.4 1781.62 1391.06 1647.89 1391.06 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"126.414\" cy=\"231.934\" rx=\"126.414\" ry=\"231.934\" transform=\"matrix(1 0 0 -1 976.16 2037)\" fill=\"white\"/><path d=\"M2187.16 1500C2187.16 1352.11 2154.5 1218.38 2101.84 1121.72C2049.12 1024.95 1976.79 966 1897.63 966C1818.46 966 1746.13 1024.95 1693.41 1121.72C1640.76 1218.38 1608.1 1352.11 1608.1 1500C1608.1 1647.89 1640.76 1781.62 1693.41 1878.28C1746.13 1975.05 1818.46 2034 1897.63 2034C1976.79 2034 2049.12 1975.05 2101.84 1878.28C2154.5 1781.62 2187.16 1647.89 2187.16 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"126.414\" cy=\"231.934\" rx=\"126.414\" ry=\"231.934\" transform=\"matrix(1 0 0 -1 1770.17 2037)\" fill=\"white\"/></g><defs><clipPath id=\"clip0_5569_72809\"><rect width=\"3000\" height=\"3000\" fill=\"white\"/></clipPath></defs></svg>\\',ZVt=\\'<svg width=\"3000\" height=\"3000\" viewBox=\"0 0 3000 3000\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_5569_72826)\"><rect width=\"3000\" height=\"3000\" fill=\"#155DFD\"/><circle cx=\"1500\" cy=\"1500\" r=\"1500\" fill=\"#155DFD\"/><path d=\"M587.596 2230.75C839.799 2148.27 1126.41 2048.74 1282.85 1934.35C1406.13 1849.79 1458.98 1757.13 1483.16 1651.34C1488.13 1629.73 1511.93 1629.73 1516.8 1651.34C1540.98 1757.01 1593.83 1849.67 1717.11 1934.35C1873.55 2048.74 2160.26 2148.28 2412.36 2230.75C2681.77 2308.44 2735.86 2334.34 2656.73 2207.31C2588.97 2088.63 2388.28 1817.51 2407.39 1489.82C2407.39 1489.21 2407.39 1488.59 2407.39 1487.86C2397.17 1162.25 2598.34 899.36 2662.18 786.079C2737.77 664.821 2675.65 693.54 2406.72 771.597C2154.43 854.195 1870.3 953.362 1715.2 1067.5C1593.25 1151.7 1540.79 1203.99 1516.8 1309.05C1511.83 1330.65 1488.03 1330.65 1483.16 1309.05C1459.17 1203.87 1406.71 1151.7 1284.76 1067.5C1129.66 953.362 845.533 854.195 593.234 771.597C324.307 693.54 262.284 664.821 337.782 786.079C401.621 899.36 602.791 1162.37 592.47 1488.1C592.47 1488.72 592.47 1489.33 592.47 1490.07C611.583 1817.76 410.891 2088.87 343.134 2207.55C264.004 2334.46 318.095 2308.68 587.5 2231L587.596 2230.75Z\" fill=\"white\"/><path d=\"M769.249 587.596C851.725 839.799 951.26 1126.41 1065.65 1282.85C1150.21 1406.13 1242.87 1458.98 1348.66 1483.16C1370.26 1488.13 1370.26 1511.93 1348.66 1516.8C1242.99 1540.98 1150.33 1593.83 1065.65 1717.11C951.26 1873.55 851.725 2160.26 769.249 2412.36C691.56 2681.77 665.664 2735.86 792.691 2656.73C911.372 2588.97 1182.49 2388.28 1510.18 2407.39C1510.79 2407.39 1511.41 2407.39 1512.14 2407.39C1837.75 2397.17 2100.64 2598.34 2213.92 2662.18C2335.18 2737.77 2306.46 2675.65 2228.4 2406.72C2145.8 2154.43 2046.64 1870.3 1932.5 1715.2C1848.3 1593.25 1796.01 1540.79 1690.95 1516.8C1669.35 1511.83 1669.35 1488.03 1690.95 1483.16C1796.13 1459.17 1848.3 1406.71 1932.5 1284.76C2046.64 1129.66 2145.8 845.533 2228.4 593.234C2306.46 324.307 2335.18 262.284 2213.92 337.782C2100.64 401.621 1837.63 602.791 1511.9 592.47C1511.28 592.47 1510.67 592.47 1509.93 592.47C1182.24 611.583 911.127 410.891 792.446 343.134C665.541 264.004 691.315 318.095 769.004 587.5L769.249 587.596Z\" fill=\"white\"/><path d=\"M1391.06 1500C1391.06 1352.11 1358.4 1218.38 1305.74 1121.72C1253.03 1024.95 1180.69 966 1101.53 966C1022.36 966 950.031 1024.95 897.314 1121.72C844.66 1218.38 812 1352.11 812 1500C812 1647.89 844.66 1781.62 897.314 1878.28C950.031 1975.05 1022.36 2034 1101.53 2034C1180.69 2034 1253.03 1975.05 1305.74 1878.28C1358.4 1781.62 1391.06 1647.89 1391.06 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"126.414\" cy=\"231.934\" rx=\"126.414\" ry=\"231.934\" transform=\"matrix(1 0 0 -1 976.159 2037)\" fill=\"white\"/><path d=\"M2187.16 1500C2187.16 1352.11 2154.5 1218.38 2101.84 1121.72C2049.12 1024.95 1976.79 966 1897.63 966C1818.46 966 1746.13 1024.95 1693.41 1121.72C1640.76 1218.38 1608.1 1352.11 1608.1 1500C1608.1 1647.89 1640.76 1781.62 1693.41 1878.28C1746.13 1975.05 1818.46 2034 1897.63 2034C1976.79 2034 2049.12 1975.05 2101.84 1878.28C2154.5 1781.62 2187.16 1647.89 2187.16 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"126.414\" cy=\"231.934\" rx=\"126.414\" ry=\"231.934\" transform=\"matrix(1 0 0 -1 1770.17 2037)\" fill=\"white\"/></g><defs><clipPath id=\"clip0_5569_72826\"><rect width=\"3000\" height=\"3000\" fill=\"white\"/></clipPath></defs></svg>\\',QVt=\\'<svg width=\"3000\" height=\"3000\" viewBox=\"0 0 3000 3000\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_5569_72835)\"><rect width=\"3000\" height=\"3000\" fill=\"#155DFD\"/><circle cx=\"1500\" cy=\"1500\" r=\"1500\" fill=\"#155DFD\"/><path d=\"M2713.13 1500C2731.2 1680.92 2615.13 1818.15 2507.78 1924.42C2394.7 2032.13 2290.44 2108.88 2200.88 2200.61C2109.15 2290.16 2032.22 2394.61 1924.51 2507.68C1818.15 2615.04 1680.92 2731.11 1500 2713.13C1319.08 2731.2 1181.85 2615.13 1075.58 2507.78C967.866 2394.7 891.12 2290.44 799.389 2200.88C709.837 2109.15 605.39 2032.22 492.315 1924.51C384.962 1818.15 268.89 1680.92 286.873 1500C268.799 1319.08 384.871 1181.85 492.224 1075.58C605.299 967.866 709.564 891.12 799.116 799.389C890.848 709.837 967.775 605.39 1075.49 492.315C1181.85 384.871 1319.08 268.799 1500 286.873C1680.92 268.799 1818.15 384.871 1924.42 492.224C2032.13 605.299 2108.88 709.564 2200.61 799.116C2290.16 890.848 2394.61 967.775 2507.68 1075.49C2615.04 1181.85 2731.11 1319.08 2713.13 1500Z\" fill=\"white\"/><path d=\"M1391.06 1500C1391.06 1647.89 1358.4 1781.62 1305.74 1878.28C1253.03 1975.05 1180.69 2034 1101.53 2034C1022.36 2034 950.031 1975.05 897.314 1878.28C844.66 1781.62 812 1647.89 812 1500C812 1352.11 844.66 1218.38 897.314 1121.72C950.031 1024.95 1022.36 966 1101.53 966C1180.69 966 1253.03 1024.95 1305.74 1121.72C1358.4 1218.38 1391.06 1352.11 1391.06 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"1102.57\" cy=\"1194.93\" rx=\"126.414\" ry=\"231.934\" fill=\"white\"/><path d=\"M2187.16 1500C2187.16 1647.89 2154.5 1781.62 2101.84 1878.28C2049.12 1975.05 1976.79 2034 1897.63 2034C1818.46 2034 1746.13 1975.05 1693.41 1878.28C1640.76 1781.62 1608.1 1647.89 1608.1 1500C1608.1 1352.11 1640.76 1218.38 1693.41 1121.72C1746.13 1024.95 1818.46 966 1897.63 966C1976.79 966 2049.12 1024.95 2101.84 1121.72C2154.5 1218.38 2187.16 1352.11 2187.16 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"1896.58\" cy=\"1194.93\" rx=\"126.414\" ry=\"231.934\" fill=\"white\"/></g><defs><clipPath id=\"clip0_5569_72835\"><rect width=\"3000\" height=\"3000\" fill=\"white\"/></clipPath></defs></svg>\\',JVt=\\'<svg width=\"3000\" height=\"3000\" viewBox=\"0 0 3000 3000\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_5569_72843)\"><rect width=\"3000\" height=\"3000\" fill=\"#155DFD\"/><circle cx=\"1500\" cy=\"1500\" r=\"1500\" fill=\"#155DFD\"/><path d=\"M2321.64 1500C3048.65 1727.51 2902.59 1900.1 2182.54 1787.44C2625.43 2169.27 2494.23 2265.93 1974.71 1974.53C2266.19 2493.97 2169.44 2625.34 1787.53 2182.54C1900.19 2902.68 1727.6 3048.65 1500 2321.64C1272.49 3048.65 1099.9 2902.59 1212.56 2182.54C830.733 2625.43 734.069 2494.23 1025.47 1974.71C506.03 2266.19 374.655 2169.44 817.464 1787.53C97.3173 1900.19 -48.6455 1727.6 678.356 1500C-48.6455 1272.49 97.4051 1099.9 817.464 1212.56C374.567 830.733 505.767 734.069 1025.29 1025.47C733.806 506.03 830.558 374.655 1212.47 817.464C1099.81 97.3173 1272.4 -48.6455 1500 678.356C1727.51 -48.6455 1900.1 97.4051 1787.44 817.464C2169.27 374.567 2265.93 505.767 1974.53 1025.29C2493.97 733.806 2625.34 830.558 2182.54 1212.47C2902.68 1099.81 3048.65 1272.4 2321.64 1500Z\" fill=\"white\"/><path d=\"M1402.29 1500.15C1402.29 1632.88 1372.98 1752.91 1325.73 1839.64C1278.42 1926.48 1213.56 1979.29 1142.65 1979.29C1071.73 1979.29 1006.87 1926.48 959.562 1839.64C912.315 1752.91 883 1632.88 883 1500.15C883 1367.41 912.315 1247.38 959.562 1160.65C1006.87 1073.81 1071.73 1021 1142.65 1021C1213.56 1021 1278.42 1073.81 1325.73 1160.65C1372.98 1247.38 1402.29 1367.41 1402.29 1500.15Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"998.466\" cy=\"1500.14\" rx=\"113.501\" ry=\"208.242\" fill=\"white\"/><path d=\"M2117.07 1500.15C2117.07 1632.88 2087.76 1752.91 2040.51 1839.64C1993.2 1926.48 1928.34 1979.29 1857.42 1979.29C1786.51 1979.29 1721.65 1926.48 1674.34 1839.64C1627.09 1752.91 1597.78 1632.88 1597.78 1500.15C1597.78 1367.41 1627.09 1247.38 1674.34 1160.65C1721.65 1073.81 1786.51 1021 1857.42 1021C1928.34 1021 1993.2 1073.81 2040.51 1160.65C2087.76 1247.38 2117.07 1367.41 2117.07 1500.15Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"1712.74\" cy=\"1498.06\" rx=\"113.501\" ry=\"208.242\" fill=\"white\"/></g><defs><clipPath id=\"clip0_5569_72843\"><rect width=\"3000\" height=\"3000\" fill=\"white\"/></clipPath></defs></svg>\\',XVt=\\'<svg width=\"3000\" height=\"3000\" viewBox=\"0 0 3000 3000\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_5569_72851)\"><rect width=\"3000\" height=\"3000\" fill=\"#155DFD\"/><circle cx=\"1500\" cy=\"1500\" r=\"1500\" fill=\"#155DFD\"/><path d=\"M2538.7 1207.34C2483.17 1184.33 2431.23 1159.94 2382.18 1133.9C2398.44 1080.86 2417.87 1026.85 2440.88 971.324C2548.89 711.06 2287.94 450.106 2027.68 558.125C1972.15 581.134 1918.14 600.699 1865.1 616.819C1839.06 567.907 1814.67 515.827 1791.66 460.302C1684.05 199.899 1314.94 199.899 1207.34 460.302C1184.33 515.827 1159.94 567.769 1133.9 616.819C1080.86 600.561 1026.85 581.134 971.324 558.125C711.06 450.106 450.106 711.06 558.125 971.324C581.134 1026.85 600.699 1080.86 616.819 1133.9C567.907 1159.94 515.827 1184.33 460.302 1207.34C199.899 1314.94 199.899 1684.05 460.302 1791.66C515.827 1814.67 567.769 1839.06 616.819 1865.1C600.561 1918.14 581.134 1972.15 558.125 2027.68C450.106 2287.94 711.06 2548.89 971.324 2440.88C1026.85 2417.87 1080.86 2398.3 1133.9 2382.18C1159.94 2431.09 1184.33 2483.17 1207.34 2538.7C1314.94 2799.1 1684.05 2799.1 1791.66 2538.7C1814.67 2483.17 1839.06 2431.23 1865.1 2382.18C1918.14 2398.44 1972.15 2417.87 2027.68 2440.88C2287.94 2548.89 2548.89 2287.94 2440.88 2027.68C2417.87 1972.15 2398.3 1918.14 2382.18 1865.1C2431.09 1839.06 2483.17 1814.67 2538.7 1791.66C2799.1 1684.05 2799.1 1314.94 2538.7 1207.34ZM1735.31 1727.87C1732.83 1730.35 1730.35 1732.83 1727.87 1735.31C1697.42 1766.58 1662.15 1790.01 1624.53 1806.13C1587.47 1820.46 1547.24 1828.17 1504.94 1827.62C1501.36 1827.62 1497.92 1827.62 1494.33 1827.62C1452.04 1828.17 1411.67 1820.32 1374.74 1806.13C1337.13 1790.01 1301.86 1766.58 1271.41 1735.31C1268.93 1732.83 1266.45 1730.35 1263.97 1727.87C1232.69 1697.42 1209.27 1662.15 1193.15 1624.53C1178.82 1587.61 1171.1 1547.24 1171.65 1504.94C1171.65 1501.36 1171.65 1497.92 1171.65 1494.33C1171.1 1452.04 1178.96 1411.67 1193.15 1374.74C1209.27 1337.13 1232.69 1301.86 1263.97 1271.41C1266.45 1268.93 1268.93 1266.45 1271.41 1263.97C1301.86 1232.69 1337.13 1209.27 1374.74 1193.15C1411.67 1178.82 1452.04 1171.1 1494.33 1171.65C1497.92 1171.65 1501.36 1171.65 1504.94 1171.65C1547.24 1171.1 1587.61 1178.96 1624.53 1193.15C1662.15 1209.27 1697.42 1232.69 1727.87 1263.97C1730.35 1266.45 1732.83 1268.93 1735.31 1271.41C1766.58 1301.86 1790.01 1337.13 1806.13 1374.74C1820.46 1411.8 1828.17 1452.04 1827.62 1494.33C1827.62 1497.92 1827.62 1501.36 1827.62 1504.94C1828.17 1547.24 1820.32 1587.61 1806.13 1624.53C1790.01 1662.15 1766.58 1697.42 1735.31 1727.87Z\" fill=\"white\"/><circle cx=\"1476\" cy=\"1442\" r=\"443\" fill=\"white\"/><path d=\"M1400.59 1202.5C1400.59 1334.79 1371.37 1454.31 1324.38 1540.58C1277.28 1627.04 1213.04 1679 1143.3 1679C1073.56 1679 1009.31 1627.04 962.215 1540.58C915.221 1454.31 886 1334.79 886 1202.5C886 1070.21 915.221 950.688 962.215 864.42C1009.31 777.961 1073.56 726 1143.3 726C1213.04 726 1277.28 777.961 1324.38 864.42C1371.37 950.688 1400.59 1070.21 1400.59 1202.5Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"10\"/><ellipse cx=\"1141.26\" cy=\"931.03\" rx=\"113.349\" ry=\"207.963\" fill=\"white\"/><path d=\"M2114.41 1202.5C2114.41 1334.79 2085.19 1454.31 2038.19 1540.58C1991.1 1627.04 1926.85 1679 1857.11 1679C1787.37 1679 1723.13 1627.04 1676.03 1540.58C1629.04 1454.31 1599.82 1334.79 1599.82 1202.5C1599.82 1070.21 1629.04 950.688 1676.03 864.42C1723.13 777.961 1787.37 726 1857.11 726C1926.85 726 1991.1 777.961 2038.19 864.42C2085.19 950.688 2114.41 1070.21 2114.41 1202.5Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"10\"/><ellipse cx=\"1861.96\" cy=\"928.963\" rx=\"113.349\" ry=\"207.963\" fill=\"white\"/></g><defs><clipPath id=\"clip0_5569_72851\"><rect width=\"3000\" height=\"3000\" fill=\"white\"/></clipPath></defs></svg>\\',$Vt=\\'<svg width=\"3000\" height=\"3000\" viewBox=\"0 0 3000 3000\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_5569_72860)\"><rect width=\"3000\" height=\"3000\" fill=\"#155DFD\"/><circle cx=\"1500\" cy=\"1500\" r=\"1500\" fill=\"#155DFD\"/><path d=\"M1500.19 1499.87C1365.57 1351.79 1298.1 1205.48 1296.93 988.1C1296.16 779.052 1361.71 498.983 1502.29 274.909C1565.01 170.441 1645.1 119.866 1696.41 125.097C1750.22 129.37 1775.2 189.413 1785.5 284.511C1806.04 473.278 1775.29 803.798 1990.99 1009.07C2196.26 1224.77 2526.78 1194.09 2715.59 1214.68C2810.65 1224.78 2870.69 1249.84 2874.93 1303.61C2880.12 1354.96 2829.55 1435.05 2725.08 1497.77C2501.01 1638.35 2220.94 1703.91 2011.89 1703.13C1794.55 1702 1648.19 1634.49 1500.12 1499.87L1500.19 1499.87Z\" fill=\"white\"/><path d=\"M1499.98 1500.01C1634.61 1648.08 1702.07 1794.4 1703.24 2011.77C1704.02 2220.82 1638.47 2500.89 1497.89 2724.97C1435.16 2829.43 1355.07 2880.01 1303.77 2874.78C1249.96 2870.5 1224.97 2810.46 1214.68 2715.36C1194.13 2526.6 1224.89 2196.08 1009.18 1990.81C803.914 1775.1 473.394 1805.78 284.59 1785.2C189.528 1775.09 129.486 1750.03 125.249 1696.26C120.055 1644.91 170.63 1564.82 275.098 1502.1C499.172 1361.52 779.24 1295.97 988.289 1296.75C1205.63 1297.88 1351.98 1365.38 1500.06 1500.01L1499.98 1500.01Z\" fill=\"white\"/><path d=\"M1481.64 1518.29C1630.16 1383.18 1776.72 1315.24 1994.12 1313.37C2203.19 1311.92 2483.08 1376.57 2706.72 1516.45C2811 1578.84 2861.32 1658.78 2855.93 1710.11C2851.48 1763.93 2791.35 1789.12 2696.21 1799.72C2507.36 1820.87 2176.9 1791.18 1970.91 2007.57C1754.52 2213.55 1784.15 2544.01 1762.95 2732.9C1752.54 2828.01 1727.28 2888.14 1673.49 2892.55C1622.12 2897.91 1542.19 2847.58 1479.79 2743.31C1339.92 2519.66 1275.26 2239.77 1276.71 2030.7C1278.54 1813.33 1346.52 1666.75 1481.64 1518.22L1481.64 1518.29Z\" fill=\"white\"/><path d=\"M1481.81 1518.43C1333.29 1653.54 1186.74 1721.48 969.339 1723.34C760.267 1724.79 480.38 1660.13 256.734 1520.25C152.457 1457.85 102.133 1377.92 107.529 1326.59C111.975 1272.76 172.103 1247.58 267.243 1236.98C456.094 1215.83 786.549 1245.53 992.528 1029.15C1208.91 823.167 1179.28 492.713 1200.47 303.825C1210.92 208.685 1236.11 148.557 1289.93 144.111C1341.3 138.752 1421.23 189.076 1483.63 293.353C1623.51 516.999 1688.17 796.885 1686.72 1005.96C1684.9 1223.32 1616.92 1369.91 1481.81 1518.43Z\" fill=\"white\"/><path d=\"M1403.24 1500C1403.24 1630.77 1374.36 1749 1327.82 1834.44C1281.21 1919.99 1217.33 1972 1147.49 1972C1077.65 1972 1013.76 1919.99 967.153 1834.44C920.611 1749 891.731 1630.77 891.731 1500C891.731 1369.23 920.611 1251 967.153 1165.56C1013.76 1080.01 1077.65 1028 1147.49 1028C1217.33 1028 1281.21 1080.01 1327.82 1165.56C1374.36 1251 1403.24 1369.23 1403.24 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"1148.41\" cy=\"1230.16\" rx=\"111.819\" ry=\"205.156\" fill=\"white\"/><path d=\"M2107.42 1500C2107.42 1630.77 2078.55 1749 2032 1834.44C1985.4 1919.99 1921.51 1972 1851.67 1972C1781.83 1972 1717.94 1919.99 1671.34 1834.44C1624.79 1749 1595.92 1630.77 1595.92 1500C1595.92 1369.23 1624.79 1251 1671.34 1165.56C1717.94 1080.01 1781.83 1028 1851.67 1028C1921.51 1028 1985.4 1080.01 2032 1165.56C2078.55 1251 2107.42 1369.23 2107.42 1500Z\" fill=\"#155DFD\" stroke=\"white\" stroke-width=\"6\"/><ellipse cx=\"1850.75\" cy=\"1230.16\" rx=\"111.819\" ry=\"205.156\" fill=\"white\"/></g><defs><clipPath id=\"clip0_5569_72860\"><rect width=\"3000\" height=\"3000\" fill=\"white\"/></clipPath></defs></svg>\\',Bxe=[KVt,YVt,ZVt,QVt,JVt,XVt,$Vt],$at=\"0xf8b05c79f090979bf4a80270aba232dff11a10d9ca55c4f88de95317970f0de9\";f();function est(e,t){return new RegExp(`^0x[a-fA-F0-9]{${t}}$`).test(e)}f();var eGt=e=>{let t=new Uint8Array(e);return crypto.getRandomValues(t),t},tst=()=>{if(typeof crypto<\"u\"&&typeof crypto.randomUUID==\"function\")return crypto.randomUUID();let e=eGt(16);return e[0].toString(16).padStart(2,\"0\")+e[1].toString(16).padStart(2,\"0\")+e[2].toString(16).padStart(2,\"0\")+e[3].toString(16).padStart(2,\"0\")+\"-\"+e[4].toString(16).padStart(2,\"0\")+e[5].toString(16).padStart(2,\"0\")+\"-\"+(e[6]&15|64).toString(16).padStart(2,\"0\")+e[7].toString(16).padStart(2,\"0\")+\"-\"+(e[8]&63|128).toString(16).padStart(2,\"0\")+e[9].toString(16).padStart(2,\"0\")+\"-\"+e[10].toString(16).padStart(2,\"0\")+e[11].toString(16).padStart(2,\"0\")+e[12].toString(16).padStart(2,\"0\")+e[13].toString(16).padStart(2,\"0\")+e[14].toString(16).padStart(2,\"0\")+e[15].toString(16).padStart(2,\"0\")};f();f();gn();rre.type=\"farcasterMiniApp\";var JM,XM,$M;function rre(){return e=>({id:\"farcaster\",name:\"Farcaster\",rdns:\"xyz.farcaster.MiniAppWallet\",icon:\"https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/055c25d6-7fe7-4a49-abf9-49772021cf00/original\",type:rre.type,async connect({chainId:t}={}){let n=await this.getProvider(),r=await n.request({method:\"eth_requestAccounts\"}),o=t;if(!o){let a=await e.storage?.getItem(\"state\")??{};e.chains.some(l=>l.id===a.chainId)?o=a.chainId:o=e.chains[0]?.id}if(!o)throw new Error(\"No chains found on connector.\");JM||(JM=this.onAccountsChanged.bind(this),n.on(\"accountsChanged\",JM)),XM||(XM=this.onChainChanged.bind(this),n.on(\"chainChanged\",XM)),$M||($M=this.onDisconnect.bind(this),n.on(\"disconnect\",$M));let i=await this.getChainId();return o&&i!==o&&(i=(await this.switchChain({chainId:o})).id),{accounts:r.map(a=>rr(a)),chainId:i}},async disconnect(){let t=await this.getProvider();JM&&(t.removeListener(\"accountsChanged\",JM),JM=void 0),XM&&(t.removeListener(\"chainChanged\",XM),XM=void 0),$M&&(t.removeListener(\"disconnect\",$M),$M=void 0)},async getAccounts(){return(await(await this.getProvider()).request({method:\"eth_accounts\"})).map(r=>rr(r))},async getChainId(){let n=await(await this.getProvider()).request({method:\"eth_chainId\"});return BV(n,\"number\")},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({chainId:t}){let n=await this.getProvider(),r=e.chains.find(o=>o.id===t);if(!r)throw new Is(new Du);return await n.request({method:\"wallet_switchEthereumChain\",params:[{chainId:Pe(t)}]}),e.emitter.emit(\"change\",{chainId:t}),r},onAccountsChanged(t){t.length===0?this.onDisconnect():e.emitter.emit(\"change\",{accounts:t.map(n=>rr(n))})},onChainChanged(t){let n=Number(t);e.emitter.emit(\"change\",{chainId:n})},async onDisconnect(){e.emitter.emit(\"disconnect\")},async getProvider(){return qat.wallet.ethProvider}})}var Lxe=rre;Lxe.type=\"farcasterFrame\";f();var nst=ge(We(),1),rst=ge(at(),1);f();var tGt={},nGt=(0,k1.createContext)(tGt);function Uxe({address:e,analytics:t,apiKey:n,chain:r,children:o,config:i,projectId:a,rpcUrl:c,schemaId:l}){var d;if(l&&!est(l,64))throw Error(\\'EAS schemaId must be 64 characters prefixed with \"0x\"\\');let m=(0,k1.useMemo)(()=>tst(),[]),h=!!((d=(0,k1.useContext)(nGt))!=null&&d.__isMiniKit);(0,k1.useEffect)(()=>{LI.isInitialized()||LI.init({isMiniKit:h})},[h]);let g=(0,k1.useMemo)(()=>{var y,w,x,I,C,M,B,z,G,J,ne,ie,ae,te,Z;let X=n?`https://api.developer.coinbase.com/rpc/v1/${r.name.replace(\" \",\"-\").toLowerCase()}/${n}`:null,F={address:e??null,apiKey:n??null,chain:r,config:{analytics:t??!0,analyticsUrl:i?.analyticsUrl??null,appearance:{name:((y=i?.appearance)==null?void 0:y.name)??\"Dapp\",logo:((w=i?.appearance)==null?void 0:w.logo)??\"\",mode:((x=i?.appearance)==null?void 0:x.mode)??\"auto\",theme:((I=i?.appearance)==null?void 0:I.theme)??\"default\"},paymaster:i?.paymaster||X,wallet:{display:((C=i?.wallet)==null?void 0:C.display)??\"classic\",preference:((M=i?.wallet)==null?void 0:M.preference)??\"all\",signUpEnabled:((B=i?.wallet)==null?void 0:B.signUpEnabled)??!0,termsUrl:((z=i?.wallet)==null?void 0:z.termsUrl)||Xat,privacyUrl:((G=i?.wallet)==null?void 0:G.privacyUrl)||Jat,supportedWallets:{rabby:((ne=(J=i?.wallet)==null?void 0:J.supportedWallets)==null?void 0:ne.rabby)??!1,trust:((ae=(ie=i?.wallet)==null?void 0:ie.supportedWallets)==null?void 0:ae.trust)??!1,frame:((Z=(te=i?.wallet)==null?void 0:te.supportedWallets)==null?void 0:Z.frame)??!1}}},projectId:a??null,rpcUrl:c??null,schemaId:l??$at,sessionId:m};return bce(F),F},[e,t,n,r,i,a,c,l,m]);return(0,ore.jsx)(uve.Provider,{value:g,children:(0,ore.jsx)(Brt,{children:(0,ore.jsx)(nre,{children:o})})})}va();f();f();f();f();f();f();var Dz={84532:{usdcAddress:\"0x036CbD53842c5426634e7929541eC2318f3dCF7e\",usdcName:\"USDC\"},8453:{usdcAddress:\"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",usdcName:\"USD Coin\"},43113:{usdcAddress:\"0x5425890298aed601595a70AB815c96711a31Bc65\",usdcName:\"USD Coin\"},43114:{usdcAddress:\"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E\",usdcName:\"USD Coin\"},4689:{usdcAddress:\"0xcdf79194c6c285077a58da47641d4dbe51f63542\",usdcName:\"Bridged USDC\"},103:{usdcAddress:\"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU\",usdcName:\"USDC\"},101:{usdcAddress:\"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\",usdcName:\"USDC\"},1328:{usdcAddress:\"0x4fcf1784b31630811181f670aea7a7bef803eaed\",usdcName:\"USDC\"},1329:{usdcAddress:\"0xe15fc38f6d8c56af07bbcbe3baf5708a2bf42392\",usdcName:\"USDC\"},137:{usdcAddress:\"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359\",usdcName:\"USD Coin\"},80002:{usdcAddress:\"0x41E94Eb019C0762f9Bfcf9Fb1E58725BfB0e7582\",usdcName:\"USDC\"},3338:{usdcAddress:\"0xbbA60da06c2c5424f03f7434542280FCAd453d10\",usdcName:\"USDC\"}};f();var ire={TransferWithAuthorization:[{name:\"from\",type:\"address\"},{name:\"to\",type:\"address\"},{name:\"value\",type:\"uint256\"},{name:\"validAfter\",type:\"uint256\"},{name:\"validBefore\",type:\"uint256\"},{name:\"nonce\",type:\"bytes32\"}]};f();var FI=[{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"owner\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"spender\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"Approval\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"authorizer\",type:\"address\"},{indexed:!0,internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"}],name:\"AuthorizationCanceled\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"authorizer\",type:\"address\"},{indexed:!0,internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"}],name:\"AuthorizationUsed\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"_account\",type:\"address\"}],name:\"Blacklisted\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"newBlacklister\",type:\"address\"}],name:\"BlacklisterChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"burner\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"amount\",type:\"uint256\"}],name:\"Burn\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"newMasterMinter\",type:\"address\"}],name:\"MasterMinterChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"minter\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"to\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"amount\",type:\"uint256\"}],name:\"Mint\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"minter\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"minterAllowedAmount\",type:\"uint256\"}],name:\"MinterConfigured\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"oldMinter\",type:\"address\"}],name:\"MinterRemoved\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!1,internalType:\"address\",name:\"previousOwner\",type:\"address\"},{indexed:!1,internalType:\"address\",name:\"newOwner\",type:\"address\"}],name:\"OwnershipTransferred\",type:\"event\"},{anonymous:!1,inputs:[],name:\"Pause\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"newAddress\",type:\"address\"}],name:\"PauserChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"newRescuer\",type:\"address\"}],name:\"RescuerChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"from\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"to\",type:\"address\"},{indexed:!1,internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"Transfer\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"_account\",type:\"address\"}],name:\"UnBlacklisted\",type:\"event\"},{anonymous:!1,inputs:[],name:\"Unpause\",type:\"event\"},{inputs:[],name:\"CANCEL_AUTHORIZATION_TYPEHASH\",outputs:[{internalType:\"bytes32\",name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"DOMAIN_SEPARATOR\",outputs:[{internalType:\"bytes32\",name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"PERMIT_TYPEHASH\",outputs:[{internalType:\"bytes32\",name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"RECEIVE_WITH_AUTHORIZATION_TYPEHASH\",outputs:[{internalType:\"bytes32\",name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"TRANSFER_WITH_AUTHORIZATION_TYPEHASH\",outputs:[{internalType:\"bytes32\",name:\"\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"},{internalType:\"address\",name:\"spender\",type:\"address\"}],name:\"allowance\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"approve\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"authorizer\",type:\"address\"},{internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"}],name:\"authorizationState\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"account\",type:\"address\"}],name:\"balanceOf\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"_account\",type:\"address\"}],name:\"blacklist\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"blacklister\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"uint256\",name:\"_amount\",type:\"uint256\"}],name:\"burn\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"authorizer\",type:\"address\"},{internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"},{internalType:\"uint8\",name:\"v\",type:\"uint8\"},{internalType:\"bytes32\",name:\"r\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"s\",type:\"bytes32\"}],name:\"cancelAuthorization\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"authorizer\",type:\"address\"},{internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"},{internalType:\"bytes\",name:\"signature\",type:\"bytes\"}],name:\"cancelAuthorization\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"minter\",type:\"address\"},{internalType:\"uint256\",name:\"minterAllowedAmount\",type:\"uint256\"}],name:\"configureMinter\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"currency\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"decimals\",outputs:[{internalType:\"uint8\",name:\"\",type:\"uint8\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"decrement\",type:\"uint256\"}],name:\"decreaseAllowance\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"increment\",type:\"uint256\"}],name:\"increaseAllowance\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"string\",name:\"tokenName\",type:\"string\"},{internalType:\"string\",name:\"tokenSymbol\",type:\"string\"},{internalType:\"string\",name:\"tokenCurrency\",type:\"string\"},{internalType:\"uint8\",name:\"tokenDecimals\",type:\"uint8\"},{internalType:\"address\",name:\"newMasterMinter\",type:\"address\"},{internalType:\"address\",name:\"newPauser\",type:\"address\"},{internalType:\"address\",name:\"newBlacklister\",type:\"address\"},{internalType:\"address\",name:\"newOwner\",type:\"address\"}],name:\"initialize\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"string\",name:\"newName\",type:\"string\"}],name:\"initializeV2\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"lostAndFound\",type:\"address\"}],name:\"initializeV2_1\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address[]\",name:\"accountsToBlacklist\",type:\"address[]\"},{internalType:\"string\",name:\"newSymbol\",type:\"string\"}],name:\"initializeV2_2\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"_account\",type:\"address\"}],name:\"isBlacklisted\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"account\",type:\"address\"}],name:\"isMinter\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"masterMinter\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"_to\",type:\"address\"},{internalType:\"uint256\",name:\"_amount\",type:\"uint256\"}],name:\"mint\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"minter\",type:\"address\"}],name:\"minterAllowance\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"name\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"}],name:\"nonces\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"owner\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"pause\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"paused\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"pauser\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"},{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"},{internalType:\"uint256\",name:\"deadline\",type:\"uint256\"},{internalType:\"bytes\",name:\"signature\",type:\"bytes\"}],name:\"permit\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"},{internalType:\"address\",name:\"spender\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"},{internalType:\"uint256\",name:\"deadline\",type:\"uint256\"},{internalType:\"uint8\",name:\"v\",type:\"uint8\"},{internalType:\"bytes32\",name:\"r\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"s\",type:\"bytes32\"}],name:\"permit\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"},{internalType:\"uint256\",name:\"validAfter\",type:\"uint256\"},{internalType:\"uint256\",name:\"validBefore\",type:\"uint256\"},{internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"},{internalType:\"bytes\",name:\"signature\",type:\"bytes\"}],name:\"receiveWithAuthorization\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"},{internalType:\"uint256\",name:\"validAfter\",type:\"uint256\"},{internalType:\"uint256\",name:\"validBefore\",type:\"uint256\"},{internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"},{internalType:\"uint8\",name:\"v\",type:\"uint8\"},{internalType:\"bytes32\",name:\"r\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"s\",type:\"bytes32\"}],name:\"receiveWithAuthorization\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"minter\",type:\"address\"}],name:\"removeMinter\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"contract IERC20\",name:\"tokenContract\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"amount\",type:\"uint256\"}],name:\"rescueERC20\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"rescuer\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"symbol\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"totalSupply\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"transfer\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"}],name:\"transferFrom\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"newOwner\",type:\"address\"}],name:\"transferOwnership\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"},{internalType:\"uint256\",name:\"validAfter\",type:\"uint256\"},{internalType:\"uint256\",name:\"validBefore\",type:\"uint256\"},{internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"},{internalType:\"bytes\",name:\"signature\",type:\"bytes\"}],name:\"transferWithAuthorization\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"from\",type:\"address\"},{internalType:\"address\",name:\"to\",type:\"address\"},{internalType:\"uint256\",name:\"value\",type:\"uint256\"},{internalType:\"uint256\",name:\"validAfter\",type:\"uint256\"},{internalType:\"uint256\",name:\"validBefore\",type:\"uint256\"},{internalType:\"bytes32\",name:\"nonce\",type:\"bytes32\"},{internalType:\"uint8\",name:\"v\",type:\"uint8\"},{internalType:\"bytes32\",name:\"r\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"s\",type:\"bytes32\"}],name:\"transferWithAuthorization\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"_account\",type:\"address\"}],name:\"unBlacklist\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"unpause\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"_newBlacklister\",type:\"address\"}],name:\"updateBlacklister\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"_newMasterMinter\",type:\"address\"}],name:\"updateMasterMinter\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"_newPauser\",type:\"address\"}],name:\"updatePauser\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"newRescuer\",type:\"address\"}],name:\"updateRescuer\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"version\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"pure\",type:\"function\"}];f();function Bz(e){return typeof e==\"object\"&&e!==null&&\"chain\"in e&&\"transport\"in e}function Fxe(e){let t=e;return typeof e==\"object\"&&e!==null&&typeof t.address==\"string\"&&typeof t.type==\"string\"&&typeof t.sign==\"function\"&&typeof t.signMessage==\"function\"&&typeof t.signTypedData==\"function\"&&typeof t.signTransaction==\"function\"}f();gn();f();f();f();var ost=/^[A-Za-z0-9+/]*={0,2}$/;function are(e){return typeof globalThis<\"u\"&&typeof globalThis.btoa==\"function\"?globalThis.btoa(e):globalThis.Buffer.from(e).toString(\"base64\")}function sre(e){return typeof globalThis<\"u\"&&typeof globalThis.atob==\"function\"?globalThis.atob(e):globalThis.Buffer.from(e,\"base64\").toString(\"utf-8\")}f();f();f();var iGt=He.union([He.string().transform(e=>e.replace(/[^0-9.-]+/g,\"\")),He.number()]).pipe(He.coerce.number().min(1e-4).max(999999999));f();var Lz=He.enum([\"base-sepolia\",\"base\",\"avalanche-fuji\",\"avalanche\",\"iotex\",\"solana-devnet\",\"solana\",\"sei\",\"sei-testnet\",\"polygon\",\"polygon-amoy\",\"peaq\"]),ux=[\"base-sepolia\",\"base\",\"avalanche-fuji\",\"avalanche\",\"iotex\",\"sei\",\"sei-testnet\",\"polygon\",\"polygon-amoy\",\"peaq\"],cre=new Map([[\"base-sepolia\",84532],[\"base\",8453],[\"avalanche-fuji\",43113],[\"avalanche\",43114],[\"iotex\",4689],[\"sei\",1329],[\"sei-testnet\",1328],[\"polygon\",137],[\"polygon-amoy\",80002],[\"peaq\",3338]]),O1=[\"solana-devnet\",\"solana\"],Hxe=new Map([[\"solana-devnet\",103],[\"solana\",101]]),oxr=Object.fromEntries([...ux,...O1].map(e=>[cre.get(e),e]));f();f();f();f();f();f();f();function aGt(e,t,n=t){if(!t.match(new RegExp(`^[${e}]*$`)))throw new Pt(RI,{alphabet:e,base:e.length,value:n})}var sGt=e=>iu({getSizeFromValue:t=>{let[n,r]=ist(t,e[0]);if(!r)return t.length;let o=ast(r,e);return n.length+Math.ceil(o.toString(16).length/2)},write(t,n,r){if(aGt(e,t),t===\"\")return r;let[o,i]=ist(t,e[0]);if(!i)return n.set(new Uint8Array(o.length).fill(0),r),r+o.length;let a=ast(i,e),c=[];for(;a>0n;)c.unshift(Number(a%256n)),a/=256n;let l=[...Array(o.length).fill(0),...c];return n.set(l,r),r+l.length}}),cGt=e=>za({read(t,n){let r=n===0?t:t.slice(n);if(r.length===0)return[\"\",0];let o=r.findIndex(l=>l!==0);o=o===-1?r.length:o;let i=e[0].repeat(o);if(o===r.length)return[i,t.length];let a=r.slice(o).reduce((l,d)=>l*256n+BigInt(d),0n),c=uGt(a,e);return[i+c,t.length]}});function ist(e,t){let[n,r]=e.split(new RegExp(`((?!${t}).*)`));return[n,r]}function ast(e,t){let n=BigInt(t.length),r=0n;for(let o of e)r*=n,r+=BigInt(t.indexOf(o));return r}function uGt(e,t){let n=BigInt(t.length),r=[];for(;e>0n;)r.unshift(t[Number(e%n)]),e/=n;return r.join(\"\")}var cst=\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\",zxe=()=>sGt(cst),ure=()=>cGt(cst);var sst=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",lre=()=>iu({getSizeFromValue:e=>{try{return atob(e).length}catch{throw new Pt(RI,{alphabet:sst,base:64,value:e})}},write(e,t,n){try{let r=atob(e).split(\"\").map(o=>o.charCodeAt(0));return t.set(r,n),r.length+n}catch{throw new Pt(RI,{alphabet:sst,base:64,value:e})}}}),ust=()=>za({read(e,t=0){let n=e.slice(t);return[btoa(String.fromCharCode(...n)),e.length]}});var lGt=e=>e.replace(/\\\\u0000/g,\"\");var dGt=globalThis.TextDecoder,dxr=globalThis.TextEncoder;var HI=()=>{let e;return za({read(t,n){let r=(e||(e=new dGt)).decode(t.slice(n));return[lGt(r),t.length]}})};function Uz(e,t){try{return\"exists\"in e&&!e.exists?e:Object.freeze({...e,data:t.decode(e.data)})}catch{throw new Pt(jve,{address:e.address})}}function fGt(e){return!(\"exists\"in e)||\"exists\"in e&&e.exists}function lst(e){let t=e.filter(n=>fGt(n)&&n.data instanceof Uint8Array);if(t.length>0){let n=t.map(r=>r.address);throw new Pt(Wve,{addresses:n})}}function jxe(e,t){if(!t)return Object.freeze({address:e,exists:!1});let n=lre().encode(t.data[0]);return Object.freeze({...dst(t),address:e,data:n,exists:!0})}function pGt(e,t){if(!t)return Object.freeze({address:e,exists:!1});let n=t.data.parsed.info;return Object.freeze({...dst(t),address:e,data:n,exists:!0})}function dst(e){return Object.freeze({executable:e.executable,lamports:e.lamports,programAddress:e.owner,space:e.space})}async function zI(e,t,n={}){let{abortSignal:r,...o}=n,i=await e.getAccountInfo(t,{...o,encoding:\"base64\"}).send({abortSignal:r});return jxe(t,i.value)}async function dre(e,t,n={}){let{abortSignal:r,...o}=n;return(await e.getMultipleAccounts(t,{...o,encoding:\"base64\"}).send({abortSignal:r})).value.map((a,c)=>jxe(t[c],a))}async function fst(e,t,n={}){let{abortSignal:r,...o}=n;return(await e.getMultipleAccounts(t,{...o,encoding:\"jsonParsed\"}).send({abortSignal:r})).value.map((a,c)=>a&&typeof a==\"object\"&&\"parsed\"in a.data?pGt(t[c],a):jxe(t[c],a))}function Wxe(e){if(!e.exists)throw new Pt(Hve,{address:e.address})}function fre(e){let t=e.filter(n=>!n.exists);if(t.length>0){let n=t.map(r=>r.address);throw new Pt(zve,{addresses:n})}}f();f();function Vxe(){if(!globalThis.isSecureContext)throw new Pt(Vve)}function pst(){if(Vxe(),typeof globalThis.crypto>\"u\"||typeof globalThis.crypto.subtle?.digest!=\"function\")throw new Pt(Gve)}function Gxe(){if(Vxe(),typeof globalThis.crypto>\"u\"||typeof globalThis.crypto.subtle?.exportKey!=\"function\")throw new Pt(qve)}function hst(){if(Vxe(),typeof globalThis.crypto>\"u\"||typeof globalThis.crypto.subtle?.sign!=\"function\")throw new Pt(Kve)}var qxe,Kxe;function Yxe(){return qxe||(qxe=zxe()),qxe}function hGt(){return Kxe||(Kxe=ure()),Kxe}function bst(e){if(e.length<32||e.length>44)return!1;let t=Yxe();try{return t.encode(e).byteLength===32}catch{return!1}}function Fz(e){if(e.length<32||e.length>44)throw new Pt(wne,{actualLength:e.length});let r=Yxe().encode(e).byteLength;if(r!==32)throw new Pt(vne,{actualLength:r})}function pre(e){return Fz(e),e}function dx(){return Kf(hA(Yxe(),32),e=>pre(e))}function or(){return Iy(hGt(),32)}function mGt(){return Ry(dx(),or())}function hre(){return new Intl.Collator(\"en\",{caseFirst:\"lower\",ignorePunctuation:!1,localeMatcher:\"best fit\",numeric:!1,sensitivity:\"variant\",usage:\"sort\"}).compare}var gGt=37095705934669439343138083508754565189542113879843219016388785533085940283555n,lh=57896044618658097711785492504343953926634992332820282019728792003956564819949n,mst=19681161376707505956807079304988542015446066515923890162744021073123829784752n;function Ny(e){let t=e%lh;return t>=0n?t:lh+t}function lx(e,t){let n=e;for(;t-- >0n;)n*=n,n%=lh;return n}function yGt(e){let n=e*e%lh*e%lh,r=lx(n,2n)*n%lh,o=lx(r,1n)*e%lh,i=lx(o,5n)*o%lh,a=lx(i,10n)*i%lh,c=lx(a,20n)*a%lh,l=lx(c,40n)*c%lh,d=lx(l,80n)*l%lh,m=lx(d,80n)*l%lh,h=lx(m,10n)*i%lh;return lx(h,2n)*e%lh}function bGt(e,t){let n=Ny(t*t*t),r=Ny(n*n*t),o=yGt(e*r),i=Ny(e*n*o),a=Ny(t*i*i),c=i,l=Ny(i*mst),d=a===e,m=a===Ny(-e),h=a===Ny(-e*mst);return d&&(i=c),(m||h)&&(i=l),(Ny(i)&1n)===1n&&(i=Ny(-i)),!d&&!m?null:i}function vGt(e,t){let n=Ny(e*e),r=Ny(n-1n),o=Ny(gGt*n+1n),i=bGt(r,o);if(i===null)return!1;let a=(t&128)!==0;return!(i===0n&&a)}function wGt(e){let t=e.toString(16);return t.length===1?`0${t}`:t}function xGt(e){let n=`0x${e.reduce((r,o,i)=>`${wGt(i===31?o&-129:o)}${r}`,\"\")}`;return BigInt(n)}function EGt(e){if(e.byteLength!==32)return!1;let t=xGt(e);return vGt(t,e[31])}var gst=32,yst=16,AGt=[80,114,111,103,114,97,109,68,101,114,105,118,101,100,65,100,100,114,101,115,115];async function SGt({programAddress:e,seeds:t}){if(pst(),t.length>yst)throw new Pt(Lve,{actual:t.length,maxSeeds:yst});let n,r=t.reduce((l,d,m)=>{let h=typeof d==\"string\"?(n||(n=new TextEncoder)).encode(d):d;if(h.byteLength>gst)throw new Pt(Uve,{actual:h.byteLength,index:m,maxSeedLength:gst});return l.push(...h),l},[]),o=mGt(),i=o.encode(e),a=await crypto.subtle.digest(\"SHA-256\",new Uint8Array([...r,...i,...AGt])),c=new Uint8Array(a);if(EGt(c))throw new Pt(xne);return o.decode(c)}async function Zxe({programAddress:e,seeds:t}){let n=255;for(;n>0;)try{return[await SGt({programAddress:e,seeds:[...t,new Uint8Array([n])]}),n]}catch(r){if(pA(r,xne))n--;else throw r}throw new Pt(Fve)}async function vst(e){if(Gxe(),e.type!==\"public\"||e.algorithm.name!==\"Ed25519\")throw new Pt(Bve);let t=await crypto.subtle.exportKey(\"raw\",e);return or().decode(new Uint8Array(t))}f();function _Gt(e,t,n){if(t!==n)throw new Pt(mwe,{actual:n,codecDescription:e,expected:t})}function TGt(e){return e.reduce((t,n)=>t===null||n===null?null:Math.max(t,n),0)}function eD(e){return e.reduce((t,n)=>t===null||n===null?null:t+n,0)}function Hz(e){return Bs(e)?e.fixedSize:null}function tD(e){return Bs(e)?e.fixedSize:e.maxSize??null}function fx(e,t={}){let n=t.size??UM(),r=mre(n,Hz(e)),o=mre(n,tD(e))??void 0;return iu({...r!==null?{fixedSize:r}:{getSizeFromValue:i=>(typeof n==\"object\"?II(i.length,n):0)+[...i].reduce((c,l)=>c+II(l,e),0),maxSize:o},write:(i,a,c)=>(typeof n==\"number\"&&_Gt(\"array\",n,i.length),typeof n==\"object\"&&(c=n.write(i.length,a,c)),i.forEach(l=>{c=e.write(l,a,c)}),c)})}function bm(e,t={}){let n=t.size??Vu(),r=Hz(e),o=mre(n,r),i=mre(n,tD(e))??void 0;return za({...o!==null?{fixedSize:o}:{maxSize:i},read:(a,c)=>{let l=[];if(typeof n==\"object\"&&a.slice(c).length===0)return[l,c];if(n===\"remainder\"){for(;c<a.length;){let[h,g]=e.read(a,c);c=g,l.push(h)}return[l,c]}let[d,m]=typeof n==\"number\"?[n,c]:n.read(a,c);c=m;for(let h=0;h<d;h+=1){let[g,y]=e.read(a,c);c=y,l.push(g)}return[l,c]}})}function mre(e,t){return typeof e!=\"number\"?null:e===0?0:t===null?null:t*e}function vm(e={}){return Yf(e.size??Ls(),t=>Number(t)===1)}function nD(){return iu({getSizeFromValue:e=>e.length,write:(e,t,n)=>(t.set(e,n),n+e.length)})}function vC(){return za({read:(e,t)=>{let n=e.slice(t);return[n,t+n.length]}})}var CGt=()=>za({read(e,t){return[e.slice(t).reduce((r,o)=>r+o.toString(16).padStart(2,\"0\"),\"\"),e.length]}});function zz(e){return za({fixedSize:e.length,read:(t,n)=>{let r=CGt();if(!je(t,e,n))throw new Pt(wwe,{constant:e,data:t,hexConstant:r.decode(e),hexData:r.decode(t),offset:n});return[void 0,n+e.length]}})}function wA(e){let t=eD(e.map(Hz)),n=eD(e.map(tD))??void 0;return za({...t===null?{maxSize:n}:{fixedSize:t},read:(r,o)=>{let i=[];return e.forEach(a=>{let[c,l]=a.read(r,o);i.push(c),o=l}),[i,o]}})}function Qxe(e,t){let n=IGt(e),r=(i,a)=>{let c=t(i,a);return RGt(e,c),e[c].read(i,a)};if(n!==null)return za({fixedSize:n,read:r});let o=kGt(e);return za({...o!==null?{maxSize:o}:{},read:r})}function RGt(e,t){if(typeof e[t]>\"u\")throw new Pt(vwe,{maxRange:e.length-1,minRange:0,variant:t})}function IGt(e){if(e.length===0)return 0;if(!Bs(e[0]))return null;let t=e[0].fixedSize;return e.every(r=>Bs(r)&&r.fixedSize===t)?t:null}function kGt(e){return TGt(e.map(t=>tD(t)))}function wst(e,t={}){let n=t.discriminator??\"__kind\",r=t.size??Ls();return Qxe(e.map(([o,i])=>Yf(wA([r,i]),([,a])=>({[n]:o,...a}))),(o,i)=>Number(r.read(o,i)[0]))}function OGt(e){let t=[...new Set(Object.values(e).filter(a=>typeof a==\"number\"))].sort(),n=Object.fromEntries(Object.entries(e).slice(t.length)),r=Object.keys(n),o=Object.values(n),i=[...new Set([...r,...o.filter(a=>typeof a==\"string\")])];return{enumKeys:r,enumRecord:n,enumValues:o,numericalValues:t,stringValues:i}}function NGt({discriminator:e,enumKeys:t,enumValues:n,useValuesAsDiscriminators:r}){return r?PGt(n,o=>o===e):e>=0&&e<t.length?e:-1}function PGt(e,t){let n=e.length;for(;n--;)if(t(e[n],n,e))return n;return-1}function MGt(e){if(e.length===0)return\"\";let t=[e[0],e[0]],n=[];for(let r=1;r<e.length;r++){let o=e[r];t[1]+1===o?t[1]=o:(n.push(t[0]===t[1]?`${t[0]}`:`${t[0]}-${t[1]}`),t=[o,o])}return n.push(t[0]===t[1]?`${t[0]}`:`${t[0]}-${t[1]}`),n.join(\", \")}function gre(e,t={}){let n=t.size??Ls(),r=t.useValuesAsDiscriminators??!1,{enumKeys:o,enumValues:i,numericalValues:a}=OGt(e);if(r&&i.some(c=>typeof c==\"string\"))throw new Pt(xwe,{stringValues:i.filter(c=>typeof c==\"string\")});return Yf(n,c=>{let l=Number(c),d=NGt({discriminator:l,enumKeys:o,enumValues:i,useValuesAsDiscriminators:r});if(d<0){let m=r?a:[...Array(o.length).keys()];throw new Pt(gwe,{discriminator:l,formattedValidDiscriminators:MGt(m),validDiscriminators:m})}return i[d]})}function Jxe(e,t){return Yf(wA([...t,e]),n=>n[n.length-1])}function xst(e,t,n={}){return Yf(bm(wA([e,t]),n),r=>new Map(r))}function wC(){return za({fixedSize:0,read:(e,t)=>[void 0,t]})}function dh(e){let t=e.map(([,o])=>o),n=eD(t.map(Hz)),r=eD(t.map(tD))??void 0;return iu({...n===null?{getSizeFromValue:o=>e.map(([i,a])=>II(o[i],a)).reduce((i,a)=>i+a,0),maxSize:r}:{fixedSize:n},write:(o,i,a)=>(e.forEach(([c,l])=>{a=l.write(o[c],i,a)}),a)})}function yr(e){let t=e.map(([,o])=>o),n=eD(t.map(Hz)),r=eD(t.map(tD))??void 0;return za({...n===null?{maxSize:r}:{fixedSize:n},read:(o,i)=>{let a={};return e.forEach(([c,l])=>{let[d,m]=l.read(o,i);i=m,a[c]=d}),[a,i]}})}f();var UGt=e=>({__option:\"Some\",value:e}),Xxe=()=>({__option:\"None\"});function Fs(e,t={}){let n=t.prefix===null?Yf(wC(),()=>!1):vm({size:t.prefix??Ls()}),r=t.noneValue===\"zeroes\"?(Pwe(e),Iy(wC(),e.fixedSize)):t.noneValue?zz(t.noneValue):wC();return Qxe([Yf(wA([n,r]),()=>Xxe()),Yf(wA([n,e]),([,o])=>UGt(o))],(o,i)=>{if(t.prefix===null&&!t.noneValue)return+(i<o.length);if(t.prefix===null&&t.noneValue!=null){let a=t.noneValue===\"zeroes\"?new Uint8Array(r.fixedSize).fill(0):t.noneValue;return je(o,a,i)?0:1}return Number(n.read(o,i)[0])})}f();function Xf(e,...t){return t.reduce((n,r)=>r(n),e)}f();function $xe(e){if(e.accounts===void 0)throw new Pt(Yve,{data:e.data,programAddress:e.programAddress})}function e2e(e){if(e.data===void 0)throw new Pt(Zve,{accountAddresses:e.accounts?.map(t=>t.address),programAddress:e.programAddress})}var fc=(e=>(e[e.WRITABLE_SIGNER=3]=\"WRITABLE_SIGNER\",e[e.READONLY_SIGNER=2]=\"READONLY_SIGNER\",e[e.WRITABLE=1]=\"WRITABLE\",e[e.READONLY=0]=\"READONLY\",e))(fc||{}),FGt=2,HGt=1;function jI(e){return e>=2}function rD(e){return(e&HGt)!==0}function t2e(e,t){return e|t}function n2e(e){return e|FGt}f();var zGt=Object.freeze({name:\"Ed25519\"});async function Ast(e,t){hst();let n=await crypto.subtle.sign(zGt,e,t);return new Uint8Array(n)}f();f();f();f();function yre(e){return JSON.parse(jGt(e),(t,n)=>qGt(n)?GGt(n):n)}function jGt(e){let t=[],n=!1;for(let r=0;r<e.length;r++){let o=!1;if(e[r]===\"\\\\\\\\\"&&(t.push(e[r++]),o=!o),e[r]===\\'\"\\'){t.push(e[r]),o||(n=!n);continue}if(!n){let i=WGt(e,r);if(i?.length){r+=i.length-1,i.match(/\\\\.|[eE]-/)?t.push(i):t.push(VGt(i));continue}}t.push(e[r])}return t.join(\"\")}function WGt(e,t){let n=/^-?(?:0|[1-9]\\\\d*)(?:\\\\.\\\\d+)?(?:[eE][+-]?\\\\d+)?/;if(!e[t]?.match(/[-\\\\d]/))return null;let r=e.slice(t).match(n);return r?r[0]:null}function VGt(e){return`{\"$n\":\"${e}\"}`}function GGt({$n:e}){if(e.match(/[eE]/)){let[t,n]=e.split(/[eE]/);return BigInt(t)*BigInt(10)**BigInt(n)}return BigInt(e)}function qGt(e){return!!e&&typeof e==\"object\"&&\"$n\"in e&&typeof e.$n==\"string\"}var Sst=0n;function KGt(){let e=Sst;return Sst++,e.toString()}function jz(e){return{id:KGt(),jsonrpc:\"2.0\",method:e.methodName,params:e.params}}function bre(e,t){return ZGt(JSON.stringify(e,(n,r)=>typeof r==\"bigint\"?YGt(r):r,t))}function YGt(e){return{$n:`${e}`}}function ZGt(e){return e.replace(/\\\\{\\\\s*\"\\\\$n\"\\\\s*:\\\\s*\"(-?\\\\d+)\"\\\\s*\\\\}/g,\"$1\")}function _st(e){return QGt(e)}function QGt(e){return new Proxy(e.api,{defineProperty(){return!1},deleteProperty(){return!1},get(t,n,r){if(n!==\"then\")return function(...o){let i=n.toString(),a=Reflect.get(t,i,r);if(!a)throw new Pt(Swe,{method:i,params:o});let c=a(...o);return JGt(e,c)}}})}function JGt({transport:e},t){return{async send(n){return await t.execute({signal:n?.abortSignal,transport:e})}}}function Tst(e){return new Proxy({},{defineProperty(){return!1},deleteProperty(){return!1},get(...t){let[n,r]=t,o=r.toString();return function(...i){let a=Object.freeze({methodName:o,params:i}),c=e?.requestTransformer?e?.requestTransformer(a):a;return Object.freeze({execute:async({signal:l,transport:d})=>{let m=jz(c),h=await d({payload:m,signal:l});return e?.responseTransformer?e.responseTransformer(h,c):h}})}}})}function vre(e){return e==null||typeof e!=\"object\"||Array.isArray(e)?!1:\"jsonrpc\"in e&&e.jsonrpc===\"2.0\"&&\"method\"in e&&typeof e.method==\"string\"&&\"params\"in e}f();function XGt(e){return typeof e==\"bigint\"?Number(e):e}var Dt={};function Cst(e){return function t(n,r){if(Array.isArray(n))return n.map((o,i)=>{let a={...r,keyPath:[...r.keyPath,i]};return t(o,a)});if(typeof n==\"object\"&&n!==null){let o={};for(let i in n){if(!Object.prototype.hasOwnProperty.call(n,i))continue;let a={...r,keyPath:[...r.keyPath,i]};o[i]=t(n[i],a)}return o}else return e.reduce((o,i)=>i(o,r),n)}}function Rst(e,t){return n=>{let r=Cst(e);return Object.freeze({...n,params:r(n.params,t)})}}function $Gt(e,t){return n=>Cst(e)(n,t)}function eqt(){return Rst([XGt],{keyPath:[]})}function tqt({commitmentPropertyName:e,params:t,optionsObjectPositionInParams:n,overrideCommitment:r}){let o=t[n];if(o===void 0||o&&typeof o==\"object\"&&!Array.isArray(o)){if(o&&e in o){if(!o[e]||o[e]===\"finalized\"){let i=[...t],{[e]:a,...c}=o;return Object.keys(c).length>0?i[n]=c:n===i.length-1?i.length--:i[n]=void 0,i}}else if(r!==\"finalized\"){let i=[...t];return i[n]={...o,[e]:r},i}}return t}function nqt({defaultCommitment:e,optionsObjectPositionByMethod:t}){return n=>{let{params:r,methodName:o}=n;if(!Array.isArray(r))return n;let i=t[o];return i==null?n:Object.freeze({methodName:o,params:tqt({commitmentPropertyName:o===\"sendTransaction\"?\"preflightCommitment\":\"commitment\",optionsObjectPositionInParams:i,overrideCommitment:e,params:r})})}}function rqt(e){return(t,{keyPath:n})=>(typeof t==\"bigint\"&&e&&(t>Number.MAX_SAFE_INTEGER||t<-Number.MAX_SAFE_INTEGER)&&e(n,t),t)}function oqt(e){return t=>Rst([rqt((...r)=>e(t,...r))],{keyPath:[]})(t)}var iqt={accountNotifications:1,blockNotifications:1,getAccountInfo:1,getBalance:1,getBlock:1,getBlockHeight:0,getBlockProduction:0,getBlocks:2,getBlocksWithLimit:2,getEpochInfo:0,getFeeForMessage:1,getInflationGovernor:0,getInflationReward:1,getLargestAccounts:0,getLatestBlockhash:0,getLeaderSchedule:1,getMinimumBalanceForRentExemption:1,getMultipleAccounts:1,getProgramAccounts:1,getSignaturesForAddress:1,getSlot:0,getSlotLeader:0,getStakeMinimumDelegation:0,getSupply:0,getTokenAccountBalance:1,getTokenAccountsByDelegate:2,getTokenAccountsByOwner:2,getTokenLargestAccounts:1,getTokenSupply:1,getTransaction:1,getTransactionCount:0,getVoteAccounts:0,isBlockhashValid:1,logsNotifications:1,programNotifications:1,requestAirdrop:2,sendTransaction:1,signatureNotifications:1,simulateTransaction:1};function wre(e){let t=e?.onIntegerOverflow;return n=>Xf(n,t?oqt(t):r=>r,eqt(),nqt({defaultCommitment:e?.defaultCommitment,optionsObjectPositionByMethod:iqt}))}function aqt(e){return function(n,{keyPath:r}){return typeof n==\"number\"&&Number.isInteger(n)||typeof n==\"bigint\"?sqt(r,e)?Number(n):BigInt(n):n}}function sqt(e,t){return t.some(n=>{if(n.length!==e.length)return!1;for(let r=e.length-1;r>=0;r--){let o=e[r],i=n[r];if(i!==o&&(i!==Dt||typeof o!=\"number\"))return!1}return!0})}function Ist(e){return $Gt([aqt(e)],{keyPath:[]})}function cqt(){return e=>e.result}function uqt(){return e=>{let t=e;if(\"error\"in t)throw uz(t.error);return t}}function kst(e){return(t,n)=>{let r=n.methodName,o=e?.allowedNumericKeyPaths&&r?e.allowedNumericKeyPaths[r]:void 0;return Xf(t,i=>uqt()(i,n),i=>cqt()(i,n),i=>Ist(o??[])(i,n))}}function Ost(e){return(t,n)=>{let r=n.methodName,o=e?.allowedNumericKeyPaths&&r?e.allowedNumericKeyPaths[r]:void 0;return Xf(t,i=>Ist(o??[])(i,n))}}var xre=[[\"data\",\"parsed\",\"info\",\"tokenAmount\",\"decimals\"],[\"data\",\"parsed\",\"info\",\"tokenAmount\",\"uiAmount\"],[\"data\",\"parsed\",\"info\",\"rentExemptReserve\",\"decimals\"],[\"data\",\"parsed\",\"info\",\"rentExemptReserve\",\"uiAmount\"],[\"data\",\"parsed\",\"info\",\"delegatedAmount\",\"decimals\"],[\"data\",\"parsed\",\"info\",\"delegatedAmount\",\"uiAmount\"],[\"data\",\"parsed\",\"info\",\"extensions\",Dt,\"state\",\"olderTransferFee\",\"transferFeeBasisPoints\"],[\"data\",\"parsed\",\"info\",\"extensions\",Dt,\"state\",\"newerTransferFee\",\"transferFeeBasisPoints\"],[\"data\",\"parsed\",\"info\",\"extensions\",Dt,\"state\",\"preUpdateAverageRate\"],[\"data\",\"parsed\",\"info\",\"extensions\",Dt,\"state\",\"currentRate\"]],xC=[...xre,[\"data\",\"parsed\",\"info\",\"lastExtendedSlotStartIndex\"],[\"data\",\"parsed\",\"info\",\"slashPenalty\"],[\"data\",\"parsed\",\"info\",\"warmupCooldownRate\"],[\"data\",\"parsed\",\"info\",\"decimals\"],[\"data\",\"parsed\",\"info\",\"numRequiredSigners\"],[\"data\",\"parsed\",\"info\",\"numValidSigners\"],[\"data\",\"parsed\",\"info\",\"stake\",\"delegation\",\"warmupCooldownRate\"],[\"data\",\"parsed\",\"info\",\"exemptionThreshold\"],[\"data\",\"parsed\",\"info\",\"burnPercent\"],[\"data\",\"parsed\",\"info\",\"commission\"],[\"data\",\"parsed\",\"info\",\"votes\",Dt,\"confirmationCount\"]],Ere=[[\"index\"],[\"instructions\",Dt,\"accounts\",Dt],[\"instructions\",Dt,\"programIdIndex\"],[\"instructions\",Dt,\"stackHeight\"]],r2e=[[\"addressTableLookups\",Dt,\"writableIndexes\",Dt],[\"addressTableLookups\",Dt,\"readonlyIndexes\",Dt],[\"header\",\"numReadonlySignedAccounts\"],[\"header\",\"numReadonlyUnsignedAccounts\"],[\"header\",\"numRequiredSignatures\"],[\"instructions\",Dt,\"accounts\",Dt],[\"instructions\",Dt,\"programIdIndex\"],[\"instructions\",Dt,\"stackHeight\"]];function Nst(e){return Tst({requestTransformer:wre(e),responseTransformer:kst({allowedNumericKeyPaths:lqt()})})}var o2e;function lqt(){return o2e||(o2e={getAccountInfo:xC.map(e=>[\"value\",...e]),getBlock:[[\"transactions\",Dt,\"meta\",\"preTokenBalances\",Dt,\"accountIndex\"],[\"transactions\",Dt,\"meta\",\"preTokenBalances\",Dt,\"uiTokenAmount\",\"decimals\"],[\"transactions\",Dt,\"meta\",\"postTokenBalances\",Dt,\"accountIndex\"],[\"transactions\",Dt,\"meta\",\"postTokenBalances\",Dt,\"uiTokenAmount\",\"decimals\"],[\"transactions\",Dt,\"meta\",\"rewards\",Dt,\"commission\"],...Ere.map(e=>[\"transactions\",Dt,\"meta\",\"innerInstructions\",Dt,...e]),...r2e.map(e=>[\"transactions\",Dt,\"transaction\",\"message\",...e]),[\"rewards\",Dt,\"commission\"]],getClusterNodes:[[Dt,\"featureSet\"],[Dt,\"shredVersion\"]],getInflationGovernor:[[\"initial\"],[\"foundation\"],[\"foundationTerm\"],[\"taper\"],[\"terminal\"]],getInflationRate:[[\"foundation\"],[\"total\"],[\"validator\"]],getInflationReward:[[Dt,\"commission\"]],getMultipleAccounts:xC.map(e=>[\"value\",Dt,...e]),getProgramAccounts:xC.flatMap(e=>[[\"value\",Dt,\"account\",...e],[Dt,\"account\",...e]]),getRecentPerformanceSamples:[[Dt,\"samplePeriodSecs\"]],getTokenAccountBalance:[[\"value\",\"decimals\"],[\"value\",\"uiAmount\"]],getTokenAccountsByDelegate:xre.map(e=>[\"value\",Dt,\"account\",...e]),getTokenAccountsByOwner:xre.map(e=>[\"value\",Dt,\"account\",...e]),getTokenLargestAccounts:[[\"value\",Dt,\"decimals\"],[\"value\",Dt,\"uiAmount\"]],getTokenSupply:[[\"value\",\"decimals\"],[\"value\",\"uiAmount\"]],getTransaction:[[\"meta\",\"preTokenBalances\",Dt,\"accountIndex\"],[\"meta\",\"preTokenBalances\",Dt,\"uiTokenAmount\",\"decimals\"],[\"meta\",\"postTokenBalances\",Dt,\"accountIndex\"],[\"meta\",\"postTokenBalances\",Dt,\"uiTokenAmount\",\"decimals\"],[\"meta\",\"rewards\",Dt,\"commission\"],...Ere.map(e=>[\"meta\",\"innerInstructions\",Dt,...e]),...r2e.map(e=>[\"transaction\",\"message\",...e])],getVersion:[[\"feature-set\"]],getVoteAccounts:[[\"current\",Dt,\"commission\"],[\"delinquent\",Dt,\"commission\"]],simulateTransaction:[...xC.map(e=>[\"value\",\"accounts\",Dt,...e]),...Ere.map(e=>[\"value\",\"innerInstructions\",Dt,...e])]}),o2e}f();var dqt={accept:!0,\"content-length\":!0,\"content-type\":!0},fqt=Object.assign({\"accept-charset\":!0,\"access-control-request-headers\":!0,\"access-control-request-method\":!0,connection:!0,\"content-length\":!0,cookie:!0,date:!0,dnt:!0,expect:!0,host:!0,\"keep-alive\":!0,origin:!0,\"permissions-policy\":!0,referer:!0,te:!0,trailer:!0,\"transfer-encoding\":!0,upgrade:!0,via:!0},{\"accept-encoding\":!0});function pqt(e){let t=Object.keys(e).filter(n=>{let r=n.toLowerCase();return dqt[n.toLowerCase()]===!0||fqt[n.toLowerCase()]===!0||r.startsWith(\"proxy-\")||r.startsWith(\"sec-\")});if(t.length>0)throw new Pt(Ewe,{headers:t})}function hqt(e){let t={};for(let n in e)t[n.toLowerCase()]=e[n];return t}var Pst=!1;function mqt(){Pst||(Pst=!0,console.warn(\"You have supplied a `Dispatcher` to `createHttpTransport()`. It has been ignored because Undici dispatchers only work in Node environments. To eliminate this warning, omit the `dispatcher_NODE_ONLY` property from your config when running in a non-Node environment.\"))}function gqt(e){\"dispatcher_NODE_ONLY\"in e&&mqt();let{fromJson:t,headers:n,toJson:r,url:o}=e;n&&pqt(n);let i,a=n&&hqt(n);return async function({payload:l,signal:d}){let m=r?r(l):JSON.stringify(l),h={...i,body:m,headers:{...a,accept:\"application/json\",\"content-length\":m.length.toString(),\"content-type\":\"application/json; charset=utf-8\"},method:\"POST\",signal:d},g=await fetch(o,h);if(!g.ok)throw new Pt(Awe,{headers:g.headers,message:g.statusText,statusCode:g.status});return t?t(await g.text(),l):await g.json()}}var yqt=[\"getAccountInfo\",\"getBalance\",\"getBlock\",\"getBlockCommitment\",\"getBlockHeight\",\"getBlockProduction\",\"getBlocks\",\"getBlocksWithLimit\",\"getBlockTime\",\"getClusterNodes\",\"getEpochInfo\",\"getEpochSchedule\",\"getFeeForMessage\",\"getFirstAvailableBlock\",\"getGenesisHash\",\"getHealth\",\"getHighestSnapshotSlot\",\"getIdentity\",\"getInflationGovernor\",\"getInflationRate\",\"getInflationReward\",\"getLargestAccounts\",\"getLatestBlockhash\",\"getLeaderSchedule\",\"getMaxRetransmitSlot\",\"getMaxShredInsertSlot\",\"getMinimumBalanceForRentExemption\",\"getMultipleAccounts\",\"getProgramAccounts\",\"getRecentPerformanceSamples\",\"getRecentPrioritizationFees\",\"getSignaturesForAddress\",\"getSignatureStatuses\",\"getSlot\",\"getSlotLeader\",\"getSlotLeaders\",\"getStakeMinimumDelegation\",\"getSupply\",\"getTokenAccountBalance\",\"getTokenAccountsByDelegate\",\"getTokenAccountsByOwner\",\"getTokenLargestAccounts\",\"getTokenSupply\",\"getTransaction\",\"getTransactionCount\",\"getVersion\",\"getVoteAccounts\",\"index\",\"isBlockhashValid\",\"minimumLedgerSlot\",\"requestAirdrop\",\"sendTransaction\",\"simulateTransaction\"];function Mst(e){return vre(e)&&yqt.includes(e.method)}function Dst(e){return gqt({...e,fromJson:(t,n)=>Mst(n)?yre(t):JSON.parse(t),toJson:t=>Mst(t)?bre(t):JSON.stringify(t)})}f();var bqt=Object.prototype.toString,vqt=Object.keys||function(e){let t=[];for(let n in e)t.push(n);return t};function Wz(e,t){let n,r,o,i,a,c,l;if(e===!0)return\"true\";if(e===!1)return\"false\";switch(typeof e){case\"object\":if(e===null)return null;if(\"toJSON\"in e&&typeof e.toJSON==\"function\")return Wz(e.toJSON(),t);if(l=bqt.call(e),l===\"[object Array]\"){for(o=\"[\",r=e.length-1,n=0;n<r;n++)o+=Wz(e[n],!0)+\",\";return r>-1&&(o+=Wz(e[n],!0)),o+\"]\"}else if(l===\"[object Object]\"){for(i=vqt(e).sort(),r=i.length,o=\"\",n=0;n<r;)a=i[n],c=Wz(e[a],!1),c!==void 0&&(o&&(o+=\",\"),o+=JSON.stringify(a)+\":\"+c),n++;return\"{\"+o+\"}\"}else return JSON.stringify(e);case\"function\":case\"undefined\":return t?null:void 0;case\"bigint\":return`${e.toString()}n`;case\"string\":return JSON.stringify(e);default:return isFinite(e)?e:null}}function Are(e){let t=Wz(e,!1);if(t!==void 0)return\"\"+t}function Ust(e,t,n){let r=\"\";if(typeof t[0]==\"number\"){let a=t[0]+1,c=a%10,l=a%100;c==1&&l!=11?r=a+\"st\":c==2&&l!=12?r=a+\"nd\":c==3&&l!=13?r=a+\"rd\":r=a+\"th\"}else r=`\\\\`${t[0].toString()}\\\\``;let o=t.length>1?t.slice(1).map(a=>typeof a==\"number\"?`[${a}]`:a).join(\".\"):void 0,i=new Pt(cz,{argumentLabel:r,keyPath:t,methodName:e,optionalPathLabel:o?` at path \\\\`${o}\\\\``:\"\",value:n,...o!==void 0?{path:o}:void 0});return BM(i,Ust),i}var wqt={defaultCommitment:\"confirmed\",onIntegerOverflow(e,t,n){throw Ust(e.methodName,t,n)}},xqt=globalThis.AbortController,Bst;function Lst(){return{EXPLICIT_ABORT_TOKEN:\"This object is thrown from the request that underlies a series of coalesced requests when the last request in that series aborts\"}}function Eqt(e,t){let n;return async function(o){let{payload:i,signal:a}=o,c=t(i);if(c===void 0)return await e(o);if(n||(queueMicrotask(()=>{n=void 0}),n={}),n[c]==null){let d=new xqt,m=(async()=>{try{return await e({...o,signal:d.signal})}catch(h){if(h===(Bst||(Bst=Lst())))return;throw h}})();n[c]={abortController:d,numConsumers:0,responsePromise:m}}let l=n[c];if(l.numConsumers++,a){let d=l.responsePromise;return await new Promise((m,h)=>{let g=y=>{a.removeEventListener(\"abort\",g),l.numConsumers-=1,queueMicrotask(()=>{l.numConsumers===0&&l.abortController.abort(Bst||(Bst=Lst()))}),h(y.target.reason)};a.addEventListener(\"abort\",g),d.then(m).catch(h).finally(()=>{a.removeEventListener(\"abort\",g)})})}else return await l.responsePromise}}function Aqt(e){return vre(e)?Are([e.method,e.params]):void 0}function Sqt(e){let t={};for(let n in e)t[n.toLowerCase()]=e[n];return t}function _qt(e){return Xf(Dst({...e,headers:{...e.headers?Sqt(e.headers):void 0,\"solana-client\":\"js/2.3.0\"}}),t=>Eqt(t,Aqt))}function i2e(e,t){return Tqt(_qt({url:e,...t}))}function Tqt(e){return _st({api:Nst(wqt),transport:e})}f();f();f();f();var Cqt=globalThis.AbortController,Rqt=globalThis.EventTarget,Fst;function Hst(){return Symbol(\"This symbol is thrown from a socket\\'s iterator when the connection is explicitly aborted by the user\")}var a2e=Symbol();function zst({abortSignal:e,dataChannelName:t,dataPublisher:n,errorChannelName:r}){let o=new Map;function i(d){for(let[m,h]of o.entries())h.__hasPolled?(o.delete(m),h.onError(d)):h.publishQueue.push({__type:1,err:d})}let a=new Cqt;e.addEventListener(\"abort\",()=>{a.abort(),i(Fst||(Fst=Hst()))});let c={signal:a.signal},l=a2e;return n.on(r,d=>{l===a2e&&(l=d,a.abort(),i(d))},c),n.on(t,d=>{o.forEach((m,h)=>{if(m.__hasPolled){let{onData:g}=m;o.set(h,{__hasPolled:!1,publishQueue:[]}),g(d)}else m.publishQueue.push({__type:0,data:d})})},c),{async*[Symbol.asyncIterator](){if(e.aborted)return;if(l!==a2e)throw l;let d=Symbol();o.set(d,{__hasPolled:!1,publishQueue:[]});try{for(;;){let m=o.get(d);if(!m)throw new Pt(Iwe);if(m.__hasPolled)throw new Pt(kwe);let h=m.publishQueue;try{if(h.length){m.publishQueue=[];for(let g of h)if(g.__type===0)yield g.data;else throw g.err}else yield await new Promise((g,y)=>{o.set(d,{__hasPolled:!0,onData:g,onError:y})})}catch(g){if(g===(Fst||(Fst=Hst())))return;throw g}}}finally{o.delete(d)}}}}function s2e(e){return{on(t,n,r){function o(i){if(i instanceof CustomEvent){let a=i.detail;n(a)}else n()}return e.addEventListener(t,o,r),()=>{e.removeEventListener(t,o)}}}}function jst(e,t,n){let r,o=new Rqt,i=s2e(o);return{...i,on(a,c,l){r||(r={dispose:e.on(t,y=>{let w=n(y);if(!w)return;let[x,I]=w;o.dispatchEvent(new CustomEvent(x,{detail:I}))}),numSubscribers:0}),r.numSubscribers++;let d=i.on(a,c,l),m=!0;function h(){m&&(m=!1,l?.signal.removeEventListener(\"abort\",h),r.numSubscribers--,r.numSubscribers===0&&(r.dispose(),r=void 0),d())}return l?.signal.addEventListener(\"abort\",h),h}}}f();function Wst(e){return e!==null&&(typeof e==\"object\"||typeof e==\"function\")}function Iqt(e){let t=new Set,n={deferreds:t,settled:!1};return Promise.resolve(e).then(r=>{for(let{resolve:o}of t)o(r);t.clear(),n.settled=!0},r=>{for(let{reject:o}of t)o(r);t.clear(),n.settled=!0}),n}var c2e=new WeakMap;async function Vz(e){let t;return await new Promise((r,o)=>{t={reject:o,resolve:r};for(let i of e){if(!Wst(i)){Promise.resolve(i).then(r,o);continue}let a=c2e.get(i);a===void 0?(a=Iqt(i),a.deferreds.add(t),c2e.set(i,a)):a.settled?Promise.resolve(i).then(r,o):a.deferreds.add(t)}}).finally(()=>{for(let r of e)Wst(r)&&c2e.get(r).deferreds.delete(t)})}function Gst(e){return new Proxy(e.api,{defineProperty(){return!1},deleteProperty(){return!1},get(t,n,r){if(n!==\"then\")return function(...o){let i=n.toString(),a=Reflect.get(t,i,r);if(!a)throw new Pt(_we,{notificationName:i});let c=a(...o);return kqt(e.transport,c)}}})}function kqt(e,t){return{async subscribe({abortSignal:n}){let r=await e({signal:n,...t});return zst({abortSignal:n,dataChannelName:\"notification\",dataPublisher:r,errorChannelName:\"error\"})}}}function qst(e){return new Proxy({},{defineProperty(){return!1},deleteProperty(){return!1},get(...t){let[n,r]=t,o=r.toString();return function(...i){let a={methodName:o,params:i},c=e.requestTransformer?e.requestTransformer(a):a;return{execute(l){return e.planExecutor({...l,request:c})},request:c}}}})}function Kst(e,t){return Object.freeze({...e,on(n,r,o){return n!==\"message\"?e.on(n,r,o):e.on(\"message\",i=>r(t(i)),o)}})}function Yst(e,t){return Object.freeze({...e,send:n=>e.send(t(n))})}var Oqt=globalThis.AbortController,u2e=new WeakMap;function Nqt(e,t){return Zst(-1,e,t)}function Pqt(e,t){Zst(1,e,t)}function Mqt(e){let t=u2e.get(e);return t||u2e.set(e,t={}),t}function Zst(e,t,n){if(n===void 0)return;let r=Mqt(t);!r[n]&&e>0&&(r[n]=0);let o=e+r[n];return o<=0?delete r[n]:r[n]=o,o}var Vst=new WeakMap;function Dqt(e,t,n){let r=Vst.get(e);r||Vst.set(e,r=new WeakMap);let o=n??e,i=r.get(o);return i||r.set(o,i=jst(e,\"message\",a=>{let c=a;if(!(\"method\"in c))return;let l=n?n(c.params.result,t):c.params.result;return[`notification:${c.params.subscription}`,l]})),i}async function Qst({channel:e,responseTransformer:t,signal:n,subscribeRequest:r,unsubscribeMethodName:o}){let i;e.on(\"error\",()=>{i=void 0,u2e.delete(e)},{signal:n});let a=new Promise((h,g)=>{function y(){if(Nqt(e,i)===0){let w=jz({methodName:o,params:[i]});i=void 0,e.send(w).catch(()=>{})}g(this.reason)}n.aborted?y.call(n):n.addEventListener(\"abort\",y)}),c=jz(r);await e.send(c);let l=new Promise((h,g)=>{let y=new Oqt;n.addEventListener(\"abort\",y.abort.bind(y));let w={signal:y.signal};e.on(\"error\",x=>{y.abort(),g(x)},w),e.on(\"message\",x=>{x&&typeof x==\"object\"&&\"id\"in x&&x.id===c.id&&(y.abort(),\"error\"in x?g(uz(x.error)):h(x.result))},w)});if(i=await Vz([a,l]),i==null)throw new Pt(Twe);Pqt(e,i);let d=Dqt(e,r,t),m=`notification:${i}`;return{on(h,g,y){switch(h){case\"notification\":return d.on(m,g,y);case\"error\":return e.on(\"error\",g,y);default:throw new Pt(Nwe,{channelName:h,supportedChannelNames:[\"notification\",\"error\"]})}}}}function Bqt(e){let t=wre(e),n=Ost({allowedNumericKeyPaths:Lqt()});return qst({planExecutor({request:r,...o}){return Qst({...o,responseTransformer:n,subscribeRequest:{...r,methodName:r.methodName.replace(/Notifications$/,\"Subscribe\")},unsubscribeMethodName:r.methodName.replace(/Notifications$/,\"Unsubscribe\")})},requestTransformer:t})}function Jst(e){return Bqt(e)}var l2e;function Lqt(){return l2e||(l2e={accountNotifications:xC.map(e=>[\"value\",...e]),blockNotifications:[[\"value\",\"block\",\"transactions\",Dt,\"meta\",\"preTokenBalances\",Dt,\"accountIndex\"],[\"value\",\"block\",\"transactions\",Dt,\"meta\",\"preTokenBalances\",Dt,\"uiTokenAmount\",\"decimals\"],[\"value\",\"block\",\"transactions\",Dt,\"meta\",\"postTokenBalances\",Dt,\"accountIndex\"],[\"value\",\"block\",\"transactions\",Dt,\"meta\",\"postTokenBalances\",Dt,\"uiTokenAmount\",\"decimals\"],[\"value\",\"block\",\"transactions\",Dt,\"meta\",\"rewards\",Dt,\"commission\"],[\"value\",\"block\",\"transactions\",Dt,\"meta\",\"innerInstructions\",Dt,\"index\"],[\"value\",\"block\",\"transactions\",Dt,\"meta\",\"innerInstructions\",Dt,\"instructions\",Dt,\"programIdIndex\"],[\"value\",\"block\",\"transactions\",Dt,\"meta\",\"innerInstructions\",Dt,\"instructions\",Dt,\"accounts\",Dt],[\"value\",\"block\",\"transactions\",Dt,\"transaction\",\"message\",\"addressTableLookups\",Dt,\"writableIndexes\",Dt],[\"value\",\"block\",\"transactions\",Dt,\"transaction\",\"message\",\"addressTableLookups\",Dt,\"readonlyIndexes\",Dt],[\"value\",\"block\",\"transactions\",Dt,\"transaction\",\"message\",\"instructions\",Dt,\"programIdIndex\"],[\"value\",\"block\",\"transactions\",Dt,\"transaction\",\"message\",\"instructions\",Dt,\"accounts\",Dt],[\"value\",\"block\",\"transactions\",Dt,\"transaction\",\"message\",\"header\",\"numReadonlySignedAccounts\"],[\"value\",\"block\",\"transactions\",Dt,\"transaction\",\"message\",\"header\",\"numReadonlyUnsignedAccounts\"],[\"value\",\"block\",\"transactions\",Dt,\"transaction\",\"message\",\"header\",\"numRequiredSignatures\"],[\"value\",\"block\",\"rewards\",Dt,\"commission\"]],programNotifications:xC.flatMap(e=>[[\"value\",Dt,\"account\",...e],[Dt,\"account\",...e]])}),l2e}f();var Uqt=globalThis.EventTarget,Gz=globalThis.WebSocket,Xst=1e3;function $st({sendBufferHighWatermark:e,signal:t,url:n}){if(t.aborted)return Promise.reject(t.reason);let r,o=!1,i=new Set;function a(){i.forEach(C=>{C()}),i.clear()}function c(){a(),o||x(t.reason),w.readyState!==Gz.CLOSED&&w.readyState!==Gz.CLOSING&&w.close(Xst)}function l(C){a(),r?.onCancel(),t.removeEventListener(\"abort\",c),w.removeEventListener(\"close\",l),w.removeEventListener(\"error\",d),w.removeEventListener(\"message\",m),w.removeEventListener(\"open\",y),!t.aborted&&!(C.wasClean&&C.code===Xst)&&h.dispatchEvent(new CustomEvent(\"error\",{detail:new Pt(DM,{cause:C})}))}function d(C){if(!t.aborted&&!o){let M=new Pt(Rwe,{errorEvent:C});x(M),h.dispatchEvent(new CustomEvent(\"error\",{detail:M}))}}function m(C){t.aborted||h.dispatchEvent(new CustomEvent(\"message\",{detail:C.data}))}let h=new Uqt,g=s2e(h);function y(){o=!0,I({...g,async send(C){if(w.readyState!==Gz.OPEN)throw new Pt(DM);if(!r&&w.bufferedAmount>e){let M,B=new Promise((z,G)=>{let J=setInterval(()=>{(w.readyState!==Gz.OPEN||!(w.bufferedAmount>e))&&(clearInterval(J),r=void 0,z())},16);M=()=>{r=void 0,clearInterval(J),G(new Pt(Cwe))}});r={onCancel:M,promise:B}}if(r){if(ArrayBuffer.isView(C)&&!(C instanceof DataView)){let M=C.constructor;C=new M(C)}await r.promise}w.send(C)}})}let w=new Gz(n);t.addEventListener(\"abort\",c),w.addEventListener(\"close\",l),w.addEventListener(\"error\",d),w.addEventListener(\"message\",m),w.addEventListener(\"open\",y);let x,I;return new Promise((C,M)=>{x=M,I=C})}function ect(e,t,n){let r=\"\";if(typeof t[0]==\"number\"){let a=t[0]+1,c=a%10,l=a%100;c==1&&l!=11?r=a+\"st\":c==2&&l!=12?r=a+\"nd\":c==3&&l!=13?r=a+\"rd\":r=a+\"th\"}else r=`\\\\`${t[0].toString()}\\\\``;let o=t.length>1?t.slice(1).map(a=>typeof a==\"number\"?`[${a}]`:a).join(\".\"):void 0,i=new Pt(cz,{argumentLabel:r,keyPath:t,methodName:e,optionalPathLabel:o?` at path \\\\`${o}\\\\``:\"\",value:n,...o!==void 0?{path:o}:void 0});return BM(i,ect),i}var Fqt={defaultCommitment:\"confirmed\",onIntegerOverflow(e,t,n){throw ect(e.methodName,t,n)}},d2e=globalThis.AbortController,Hqt={jsonrpc:\"2.0\",method:\"ping\"};function zqt({abortSignal:e,channel:t,intervalMs:n}){let r;function o(){t.send(Hqt).catch(c=>{pA(c,DM)&&a.abort()})}function i(){clearInterval(r),r=setInterval(o,n)}let a=new d2e;return a.signal.addEventListener(\"abort\",()=>{clearInterval(r)}),e.addEventListener(\"abort\",()=>{a.abort()}),t.on(\"error\",()=>{a.abort()},{signal:a.signal}),t.on(\"message\",i,{signal:a.signal}),globalThis.navigator.onLine&&i(),globalThis.addEventListener(\"offline\",function(){clearInterval(r)},{signal:a.signal}),globalThis.addEventListener(\"online\",function(){o(),i()},{signal:a.signal}),{...t,send(...c){return a.signal.aborted||i(),t.send(...c)}}}function jqt(){return{entries:[],freeChannelIndex:-1}}function Wqt(e,{maxSubscriptionsPerChannel:t,minChannels:n}){let r=jqt();function o(){if(r.entries.length<n){r.freeChannelIndex=-1;return}let i;for(let a=0;a<r.entries.length;a++){let c=(r.freeChannelIndex+a+2)%r.entries.length,l=r.entries[c];l.subscriptionCount<t&&(!i||i.subscriptionCount>=l.subscriptionCount)&&(i={poolIndex:c,subscriptionCount:l.subscriptionCount})}r.freeChannelIndex=i?.poolIndex??-1}return function({abortSignal:a}){let c;function l(){let d=r.entries.findIndex(m=>m===c);r.entries.splice(d,1),c.dispose(),o()}if(r.freeChannelIndex===-1){let d=new d2e,m=e({abortSignal:d.signal});m.then(h=>{h.on(\"error\",l,{signal:d.signal})}).catch(l),c={channel:m,dispose(){d.abort()},subscriptionCount:0},r.entries.push(c)}else c=r.entries[r.freeChannelIndex];return c.subscriptionCount++,a.addEventListener(\"abort\",function(){c.subscriptionCount--,c.subscriptionCount===0?l():r.freeChannelIndex!==-1&&(r.freeChannelIndex--,o())}),o(),c.channel}}function Vqt(e){return Xf(e,t=>Kst(t,yre),t=>Yst(t,bre))}function Gqt(e){return qqt({...e,jsonSerializer:Vqt})}function qqt(e){if(/^wss?:/i.test(e.url)===!1){let o=e.url.match(/^([^:]+):/);throw new DOMException(o?`Failed to construct \\'WebSocket\\': The URL\\'s scheme must be either \\'ws\\' or \\'wss\\'. \\'${o[1]}:\\' is not allowed.`:`Failed to construct \\'WebSocket\\': The URL \\'${e.url}\\' is invalid.`)}let{intervalMs:t,...n}=e;return Wqt(({abortSignal:o})=>$st({...n,sendBufferHighWatermark:e.sendBufferHighWatermark??131072,signal:o}).then(e.jsonSerializer).then(i=>zqt({abortSignal:o,channel:i,intervalMs:t??5e3})),{maxSubscriptionsPerChannel:e.maxSubscriptionsPerChannel??100,minChannels:e.minChannels??1})}function Kqt(e){let t=new Map;return function(r){let{request:o,signal:i}=r,a=Are([o.methodName,o.params]),c=t.get(a);if(!c){let l=new d2e,d=e({...r,signal:l.signal});d.then(m=>{m.on(\"error\",()=>{t.delete(a),l.abort()},{signal:l.signal})}).catch(()=>{}),t.set(a,c={abortController:l,dataPublisherPromise:d,numSubscribers:0})}return c.numSubscribers++,i.addEventListener(\"abort\",()=>{c.numSubscribers--,c.numSubscribers===0&&queueMicrotask(()=>{c.numSubscribers===0&&(t.delete(a),c.abortController.abort())})},{signal:c.abortController.signal}),c.dataPublisherPromise}}function Yqt({createChannel:e}){return Xf(Zqt(e),t=>Kqt(t))}function Zqt(e){return async({execute:t,signal:n})=>{let r=await e({abortSignal:n});return await t({channel:r,signal:n})}}function Qqt(e,t){let n=Yqt({createChannel:Gqt({...t,url:e})});return Jqt(n)}function f2e(e,t){return Qqt(e,t)}function Jqt(e){return Gst({api:Jst(Fqt),transport:e})}f();function nct(e){return bst(e)}function tct(e){switch(e){case\"finalized\":return 2;case\"confirmed\":return 1;case\"processed\":return 0;default:throw new Pt(Owe,{unexpectedValue:e})}}function rct(e,t){return e===t?0:tct(e)<tct(t)?-1:1}f();f();f();function Sre(e){return\"lifetimeConstraint\"in e&&typeof e.lifetimeConstraint.blockhash==\"string\"&&typeof e.lifetimeConstraint.lastValidBlockHeight==\"bigint\"&&nct(e.lifetimeConstraint.blockhash)}function lct(e){if(!Sre(e))throw new Pt(Xve)}function oD(e,t){return\"lifetimeConstraint\"in t&&t.lifetimeConstraint&&\"blockhash\"in t.lifetimeConstraint&&t.lifetimeConstraint.blockhash===e.blockhash&&t.lifetimeConstraint.lastValidBlockHeight===e.lastValidBlockHeight?t:Object.freeze({...t,lifetimeConstraint:Object.freeze(e)})}function Xqt(e,t,n=t){if(!t.match(new RegExp(`^[${e}]*$`)))throw new Pt(RI,{alphabet:e,base:e.length,value:n})}var $qt=e=>iu({getSizeFromValue:t=>{let[n,r]=oct(t,e[0]);if(!r)return t.length;let o=ict(r,e);return n.length+Math.ceil(o.toString(16).length/2)},write(t,n,r){if(Xqt(e,t),t===\"\")return r;let[o,i]=oct(t,e[0]);if(!i)return n.set(new Uint8Array(o.length).fill(0),r),r+o.length;let a=ict(i,e),c=[];for(;a>0n;)c.unshift(Number(a%256n)),a/=256n;let l=[...Array(o.length).fill(0),...c];return n.set(l,r),r+l.length}}),eKt=e=>za({read(t,n){let r=n===0?t:t.slice(n);if(r.length===0)return[\"\",0];let o=r.findIndex(l=>l!==0);o=o===-1?r.length:o;let i=e[0].repeat(o);if(o===r.length)return[i,t.length];let a=r.slice(o).reduce((l,d)=>l*256n+BigInt(d),0n),c=tKt(a,e);return[i+c,t.length]}});function oct(e,t){let[n,r]=e.split(new RegExp(`((?!${t}).*)`));return[n,r]}function ict(e,t){let n=BigInt(t.length),r=0n;for(let o of e)r*=n,r+=BigInt(t.indexOf(o));return r}function tKt(e,t){let n=BigInt(t.length),r=[];for(;e>0n;)r.unshift(t[Number(e%n)]),e/=n;return r.join(\"\")}var dct=\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\",nKt=()=>$qt(dct),rKt=()=>eKt(dct),p2e;function oKt(){if(!p2e){let e=fx(ze(),{size:mA()});p2e=dh([[\"lookupTableAddress\",dx()],[\"writableIndexes\",e],[\"readonlyIndexes\",e]])}return p2e}var h2e;function iKt(){if(!h2e){let e=bm(Ls(),{size:ax()});h2e=Yf(yr([[\"lookupTableAddress\",or()],[\"writableIndexes\",e],[\"readonlyIndexes\",e]]),t=>\"readableIndices\"in t?{...t,readonlyIndexes:t.readableIndices,writableIndexes:t.writableIndices}:t)}return h2e}var m2e;function g2e(){return m2e||(m2e=ze()),m2e}var y2e;function b2e(){return y2e||(y2e=Ls()),y2e}function aKt(){return dh([[\"numSignerAccounts\",g2e()],[\"numReadonlySignerAccounts\",g2e()],[\"numReadonlyNonSignerAccounts\",g2e()]])}function sKt(){return yr([[\"numSignerAccounts\",b2e()],[\"numReadonlySignerAccounts\",b2e()],[\"numReadonlyNonSignerAccounts\",b2e()]])}var v2e;function cKt(){return v2e||(v2e=Kf(dh([[\"programAddressIndex\",ze()],[\"accountIndices\",fx(ze(),{size:mA()})],[\"data\",Mwe(nD(),mA())]]),e=>e.accountIndices!==void 0&&e.data!==void 0?e:{...e,accountIndices:e.accountIndices??[],data:e.data??new Uint8Array(0)})),v2e}var w2e;function uKt(){return w2e||(w2e=Yf(yr([[\"programAddressIndex\",Ls()],[\"accountIndices\",bm(Ls(),{size:ax()})],[\"data\",di(vC(),ax())]]),e=>{if(e.accountIndices.length&&e.data.byteLength)return e;let{accountIndices:t,data:n,...r}=e;return{...r,...t.length?{accountIndices:t}:null,...n.byteLength?{data:n}:null}})),w2e}var x2e=128;function lKt(){return iu({getSizeFromValue:e=>e===\"legacy\"?0:1,maxSize:1,write:(e,t,n)=>{if(e===\"legacy\")return n;if(e<0||e>127)throw new Pt($ve,{actualVersion:e});return t.set([e|x2e],n),n+1}})}function E2e(){return za({maxSize:1,read:(e,t)=>{let n=e[t];return(n&x2e)===0?[\"legacy\",t]:[n^x2e,t+1]}})}function act(){return dh(fct())}function sct(){return Kf(dh([...fct(),[\"addressTableLookups\",fKt()]]),e=>e.version===\"legacy\"?e:{...e,addressTableLookups:e.addressTableLookups??[]})}function fct(){return[[\"version\",lKt()],[\"header\",aKt()],[\"staticAccounts\",fx(dx(),{size:mA()})],[\"lifetimeToken\",hA(nKt(),32)],[\"instructions\",fx(cKt(),{size:mA()})]]}function dKt(){return[[\"version\",E2e()],[\"header\",sKt()],[\"staticAccounts\",bm(or(),{size:ax()})],[\"lifetimeToken\",Iy(rKt(),32)],[\"instructions\",bm(uKt(),{size:ax()})],[\"addressTableLookups\",pKt()]]}function fKt(){return fx(oKt(),{size:mA()})}function pKt(){return bm(iKt(),{size:ax()})}function pct(){return iu({getSizeFromValue:e=>e.version===\"legacy\"?act().getSizeFromValue(e):sct().getSizeFromValue(e),write:(e,t,n)=>e.version===\"legacy\"?act().write(e,t,n):sct().write(e,t,n)})}function iD(){return Yf(yr(dKt()),({addressTableLookups:e,...t})=>t.version===\"legacy\"||!e?.length?t:{...t,addressTableLookups:e})}function cct(e,t,n){e[t]=n(e[t]??{role:fc.READONLY})}var Gu=Symbol(\"AddressMapTypeProperty\");function hKt(e,t){let n={[e]:{[Gu]:0,role:fc.WRITABLE_SIGNER}},r=new Set;for(let o of t){cct(n,o.programAddress,a=>{if(r.add(o.programAddress),Gu in a){if(rD(a.role))switch(a[Gu]){case 0:throw new Pt(Jve,{programAddress:o.programAddress});default:throw new Pt(Ene,{programAddress:o.programAddress})}if(a[Gu]===2)return a}return{[Gu]:2,role:fc.READONLY}});let i;if(o.accounts)for(let a of o.accounts)cct(n,a.address,c=>{let{address:l,...d}=a;if(Gu in c)switch(c[Gu]){case 0:return c;case 1:{let m=t2e(c.role,d.role);if(\"lookupTableAddress\"in d){if(c.lookupTableAddress!==d.lookupTableAddress&&(i||(i=hre()))(d.lookupTableAddress,c.lookupTableAddress)<0)return{[Gu]:1,...d,role:m}}else if(jI(d.role))return{[Gu]:2,role:m};return c.role!==m?{...c,role:m}:c}case 2:{let m=t2e(c.role,d.role);if(r.has(a.address)){if(rD(d.role))throw new Pt(Ene,{programAddress:a.address});return c.role!==m?{...c,role:m}:c}else return\"lookupTableAddress\"in d&&!jI(c.role)?{...d,[Gu]:1,role:m}:c.role!==m?{...c,role:m}:c}}return\"lookupTableAddress\"in d?{...d,[Gu]:1}:{...d,[Gu]:2}})}return n}function mKt(e){let t;return Object.entries(e).sort(([r,o],[i,a])=>{if(o[Gu]!==a[Gu]){if(o[Gu]===0)return-1;if(a[Gu]===0)return 1;if(o[Gu]===2)return-1;if(a[Gu]===2)return 1}let c=jI(o.role);if(c!==jI(a.role))return c?-1:1;let l=rD(o.role);return l!==rD(a.role)?l?-1:1:(t||(t=hre()),o[Gu]===1&&a[Gu]===1&&o.lookupTableAddress!==a.lookupTableAddress?t(o.lookupTableAddress,a.lookupTableAddress):t(r,i))}).map(([r,o])=>({address:r,...o}))}function gKt(e){var n;let t={};for(let r of e){if(!(\"lookupTableAddress\"in r))continue;let o=t[n=r.lookupTableAddress]||(t[n]={readableIndices:[],readonlyIndexes:[],writableIndexes:[],writableIndices:[]});r.role===fc.WRITABLE?(o.writableIndexes.push(r.addressIndex),o.writableIndices.push(r.addressIndex)):(o.readableIndices.push(r.addressIndex),o.readonlyIndexes.push(r.addressIndex))}return Object.keys(t).sort(hre()).map(r=>({lookupTableAddress:r,...t[r]}))}function yKt(e){let t=0,n=0,r=0;for(let o of e){if(\"lookupTableAddress\"in o)break;let i=rD(o.role);jI(o.role)?(r++,i||n++):i||t++}return{numReadonlyNonSignerAccounts:t,numReadonlySignerAccounts:n,numSignerAccounts:r}}function bKt(e){let t={};for(let[n,r]of e.entries())t[r.address]=n;return t}function vKt(e,t){let n=bKt(t);return e.map(({accounts:r,data:o,programAddress:i})=>({programAddressIndex:n[i],...r?{accountIndices:r.map(({address:a})=>n[a])}:null,...o?{data:o}:null}))}function wKt(e){return\"nonce\"in e?e.nonce:e.blockhash}function xKt(e){let t=e.findIndex(r=>\"lookupTableAddress\"in r);return(t===-1?e:e.slice(0,t)).map(({address:r})=>r)}function hct(e){let t=hKt(e.feePayer.address,e.instructions),n=mKt(t);return{...e.version!==\"legacy\"?{addressTableLookups:gKt(n)}:null,header:yKt(n),instructions:vKt(e.instructions,n),lifetimeToken:wKt(e.lifetimeConstraint),staticAccounts:xKt(n),version:e.version}}function A2e(e){return Object.freeze({instructions:Object.freeze([]),version:e.version})}var mct=\"SysvarRecentB1ockHashes11111111111111111111\",gct=\"11111111111111111111111111111111\";function uct(e,t){return{accounts:[{address:e,role:fc.WRITABLE},{address:mct,role:fc.READONLY},{address:t,role:fc.READONLY_SIGNER}],data:new Uint8Array([4,0,0,0]),programAddress:gct}}function S2e(e){return e.programAddress===gct&&e.data!=null&&EKt(e.data)&&e.accounts?.length===3&&e.accounts[0].address!=null&&e.accounts[0].role===fc.WRITABLE&&e.accounts[1].address===mct&&e.accounts[1].role===fc.READONLY&&e.accounts[2].address!=null&&jI(e.accounts[2].role)}function EKt(e){return e.byteLength===4&&e[0]===4&&e[1]===0&&e[2]===0&&e[3]===0}function _2e(e){return\"lifetimeConstraint\"in e&&typeof e.lifetimeConstraint.nonce==\"string\"&&e.instructions[0]!=null&&S2e(e.instructions[0])}function AKt(e,t,n){return e.accounts[0].address===t&&e.accounts[2].address===n}function SKt({nonce:e,nonceAccountAddress:t,nonceAuthorityAddress:n},r){let o,i=r.instructions[0];if(i&&S2e(i))if(AKt(i,t,n)){if(_2e(r)&&r.lifetimeConstraint.nonce===e)return r;o=[i,...r.instructions.slice(1)]}else o=[Object.freeze(uct(t,n)),...r.instructions.slice(1)];else o=[Object.freeze(uct(t,n)),...r.instructions];return Object.freeze({...r,instructions:Object.freeze(o),lifetimeConstraint:Object.freeze({nonce:e})})}function T2e(e,t){if(\"feePayer\"in t&&e===t.feePayer?.address&&_Kt(t.feePayer))return t;let n={...t,feePayer:Object.freeze({address:e})};return Object.freeze(n),n}function _Kt(e){return!!e&&\"address\"in e&&typeof e.address==\"string\"&&Object.keys(e).length===1}function qz(e,t){return C2e([e],t)}function C2e(e,t){return Object.freeze({...t,instructions:Object.freeze([...t.instructions,...e])})}function yct(e,t){return TKt([e],t)}function TKt(e,t){return Object.freeze({...t,instructions:Object.freeze([...e,...t.instructions])})}function CKt(e){let{header:t}=e,n=t.numSignerAccounts-t.numReadonlySignerAccounts,r=e.staticAccounts.length-t.numSignerAccounts-t.numReadonlyNonSignerAccounts,o=[],i=0;for(let a=0;a<n;a++)o.push({address:e.staticAccounts[i],role:fc.WRITABLE_SIGNER}),i++;for(let a=0;a<t.numReadonlySignerAccounts;a++)o.push({address:e.staticAccounts[i],role:fc.READONLY_SIGNER}),i++;for(let a=0;a<r;a++)o.push({address:e.staticAccounts[i],role:fc.WRITABLE}),i++;for(let a=0;a<t.numReadonlyNonSignerAccounts;a++)o.push({address:e.staticAccounts[i],role:fc.READONLY}),i++;return o}function RKt(e,t){let r=e.map(a=>a.lookupTableAddress).filter(a=>t[a]===void 0);if(r.length>0)throw new Pt(ewe,{lookupTableAddresses:r});let o=[],i=[];for(let a of e){let c=t[a.lookupTableAddress],l=a.readonlyIndexes??a.readableIndices,d=a.writableIndexes??a.writableIndices,m=Math.max(...l,...d);if(m>=c.length)throw new Pt(twe,{highestKnownIndex:c.length-1,highestRequestedIndex:m,lookupTableAddress:a.lookupTableAddress});let h=l.map(y=>({address:c[y],addressIndex:y,lookupTableAddress:a.lookupTableAddress,role:fc.READONLY}));o.push(...h);let g=d.map(y=>({address:c[y],addressIndex:y,lookupTableAddress:a.lookupTableAddress,role:fc.WRITABLE}));i.push(...g)}return[...i,...o]}function IKt(e,t){let n=t[e.programAddressIndex]?.address;if(!n)throw new Pt(nwe,{index:e.programAddressIndex});let r=e.accountIndices?.map(i=>t[i]),{data:o}=e;return Object.freeze({programAddress:n,...r&&r.length?{accounts:Object.freeze(r)}:{},...o&&o.length?{data:o}:{}})}function kKt(e,t,n){if(!t||!S2e(t))return{blockhash:e,lastValidBlockHeight:n??2n**64n-1n};{let r=t.accounts[0].address;Fz(r);let o=t.accounts[2].address;return Fz(o),{nonce:e,nonceAccountAddress:r,nonceAuthorityAddress:o}}}function _re(e,t){let n=e.staticAccounts[0];if(!n)throw new Pt(rwe);let r=CKt(e),o=\"addressTableLookups\"in e&&e.addressTableLookups!==void 0&&e.addressTableLookups.length>0?RKt(e.addressTableLookups,t?.addressesByLookupTableAddress??{}):[],i=[...r,...o],a=e.instructions.map(d=>IKt(d,i)),c=a[0],l=kKt(e.lifetimeToken,c,t?.lastValidBlockHeight);return Xf(A2e({version:e.version}),d=>T2e(n,d),d=>a.reduce((m,h)=>qz(h,m),d),d=>\"blockhash\"in l?oD(l,d):SKt(l,d))}var bct=_2e;function OKt(e){let t=Object.values(e);if(t.length===0)throw new Pt(swe);return t.map(n=>n||new Uint8Array(64).fill(0))}function NKt(){return Kf(fx(hA(nD(),64),{size:mA()}),OKt)}function I2e(){return dh([[\"signatures\",NKt()],[\"messageBytes\",nD()]])}function Tre(){return Yf(yr([[\"signatures\",bm(Iy(vC(),64),{size:ax()})],[\"messageBytes\",vC()]]),PKt)}function PKt(e){let{messageBytes:t,signatures:n}=e,r=wA([E2e(),_it(Ls(),2),bm(or(),{size:ax()})]),[o,i,a]=r.decode(t),c=a.slice(0,i);if(c.length!==n.length)throw new Pt(cwe,{numRequiredSignatures:i,signaturesLength:n.length,signerAddresses:c});let l={};return c.forEach((d,m)=>{let h=n[m];h.every(g=>g===0)?l[d]=null:l[d]=h}),{messageBytes:t,signatures:Object.freeze(l)}}function Cre(e){let t=hct(e),n=pct().encode(t),r=t.staticAccounts.slice(0,t.header.numSignerAccounts),o={};for(let a of r)o[a]=null;let i;return Sre(e)?i={blockhash:e.lifetimeConstraint.blockhash,lastValidBlockHeight:e.lifetimeConstraint.lastValidBlockHeight}:i={nonce:e.lifetimeConstraint.nonce,nonceAccountAddress:e.instructions[0].accounts[0].address},Object.freeze({lifetimeConstraint:i,messageBytes:n,signatures:Object.freeze(o)})}var R2e;function Kz(e){R2e||(R2e=ure());let t=Object.values(e.signatures)[0];if(!t)throw new Pt(iwe);return R2e.decode(t)}function MKt(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])}async function Rre(e,t){let n,r;if(await Promise.all(e.map(async o=>{let i=await vst(o.publicKey),a=t.signatures[i];if(a===void 0){r||(r=new Set),r.add(i);return}if(r)return;let c=await Ast(o.privateKey,t.messageBytes);a!==null&&MKt(c,a)||(n||(n={}),n[i]=c)})),r&&r.size>0){let o=Object.keys(t.signatures);throw new Pt(awe,{expectedAddresses:o,unexpectedAddresses:[...r]})}return n?Object.freeze({...t,signatures:Object.freeze({...t.signatures,...n})}):t}async function vct(e,t){let n=await Rre(e,t);return wct(n),Object.freeze(n),n}function wct(e){let t=[];if(Object.entries(e.signatures).forEach(([n,r])=>{r||t.push(n)}),t.length>0)throw new Pt(owe,{addresses:t})}function EC(e){let t=I2e().encode(e);return ust().decode(t)}var DKt=1280,BKt=48,SEr=DKt-BKt;function k2e(e){let t={};return e.forEach(n=>{if(!t[n.address])t[n.address]=n;else if(t[n.address]!==n)throw new Pt(Qve,{address:n.address})}),Object.values(t)}function Ire(e){return\"modifyAndSignTransactions\"in e&&typeof e.modifyAndSignTransactions==\"function\"}function Yz(e){return\"signTransactions\"in e&&typeof e.signTransactions==\"function\"}function xct(e){return\"signAndSendTransactions\"in e&&typeof e.signAndSendTransactions==\"function\"}function Zz(e){return Yz(e)||Ire(e)||xct(e)}function LKt(e){return k2e((e.accounts??[]).flatMap(t=>\"signer\"in t?t.signer:[]))}function UKt(e){return k2e([...e.feePayer&&Zz(e.feePayer)?[e.feePayer]:[],...e.instructions.flatMap(LKt)])}async function Ect(e,t){let{partialSigners:n,modifyingSigners:r}=FKt(k2e(UKt(e).filter(Zz)),{identifySendingSigner:!1});return await jKt(e,r,n,t)}function FKt(e,t={}){let r=t.identifySendingSigner??!0?HKt(e):null,o=e.filter(c=>c!==r&&(Ire(c)||Yz(c))),i=zKt(o),a=o.filter(Yz).filter(c=>!i.includes(c));return Object.freeze({modifyingSigners:i,partialSigners:a,sendingSigner:r})}function HKt(e){let t=e.filter(xct);if(t.length===0)return null;let n=t.filter(r=>!Ire(r)&&!Yz(r));return n.length>0?n[0]:t[0]}function zKt(e){let t=e.filter(Ire);if(t.length===0)return[];let n=t.filter(r=>!Yz(r));return n.length>0?n:[t[0]]}async function jKt(e,t=[],n=[],r){let o=Cre(e),i=await t.reduce(async(c,l)=>{r?.abortSignal?.throwIfAborted();let[d]=await l.modifyAndSignTransactions([await c],r);return Object.freeze(d)},Promise.resolve(o));r?.abortSignal?.throwIfAborted();let a=await Promise.all(n.map(async c=>{let[l]=await c.signTransactions([i],r);return l}));return Object.freeze({...i,signatures:Object.freeze(a.reduce((c,l)=>({...c,...l}),i.signatures??{}))})}var IEr=globalThis.TextEncoder;f();var O2e=globalThis.AbortController;function Act({rpc:e,rpcSubscriptions:t}){return async function({abortSignal:r,commitment:o,lastValidBlockHeight:i}){r.throwIfAborted();let a=new O2e,c=()=>{a.abort()};r.addEventListener(\"abort\",c,{signal:a.signal});async function l(){let{absoluteSlot:d,blockHeight:m}=await e.getEpochInfo({commitment:o}).send({abortSignal:a.signal});return{blockHeight:m,differenceBetweenSlotHeightAndBlockHeight:d-m}}try{let[d,{blockHeight:m,differenceBetweenSlotHeightAndBlockHeight:h}]=await Promise.all([t.slotNotifications().subscribe({abortSignal:a.signal}),l()]);r.throwIfAborted();let g=m;if(g<=i){let y=h;for await(let w of d){let{slot:x}=w;if(x-y>i){let{blockHeight:I,differenceBetweenSlotHeightAndBlockHeight:C}=await l();if(g=I,g>i)break;y=C}}}throw r.throwIfAborted(),new Pt(az,{currentBlockHeight:g,lastValidBlockHeight:i})}finally{a.abort()}}}function Sct({rpc:e,rpcSubscriptions:t}){return async function({abortSignal:r,commitment:o,signature:i}){let a=new O2e;function c(){a.abort()}r.addEventListener(\"abort\",c,{signal:a.signal});let l=await t.signatureNotifications(i,{commitment:o}).subscribe({abortSignal:a.signal}),d=(async()=>{for await(let h of l){if(h.value.err)throw _ne(h.value.err);return}})(),m=(async()=>{let{value:h}=await e.getSignatureStatuses([i]).send({abortSignal:a.signal}),g=h[0];g&&g.confirmationStatus&&rct(g.confirmationStatus,o)>=0||await new Promise(()=>{})})();try{return await Vz([d,m])}finally{a.abort()}}}async function WKt(e,t,n){let{abortSignal:r,commitment:o,getRecentSignatureConfirmationPromise:i}=t;r?.throwIfAborted();let a=new O2e;if(r){let c=()=>{a.abort()};r.addEventListener(\"abort\",c,{signal:a.signal})}try{let c=n({...t,abortSignal:a.signal});return await Vz([i({abortSignal:a.signal,commitment:o,signature:e}),...c])}finally{a.abort()}}async function _ct(e){await WKt(Kz(e.transaction),e,function({abortSignal:n,commitment:r,getBlockHeightExceedencePromise:o,transaction:i}){return[o({abortSignal:n,commitment:r,lastValidBlockHeight:i.lifetimeConstraint.lastValidBlockHeight})]})}async function VKt(e,t,n){if(e.length===0)return{};let r=await fst(t,e,n);return lst(r),fre(r),r.reduce((o,i)=>({...o,[i.address]:i.data.addresses}),{})}async function Tct(e,t,n){let o=(\"addressTableLookups\"in e&&e.addressTableLookups!==void 0&&e.addressTableLookups.length>0?e.addressTableLookups:[]).map(l=>l.lookupTableAddress),{lastValidBlockHeight:i,...a}=n??{},c=o.length>0?await VKt(o,t,a):{};return _re(e,{addressesByLookupTableAddress:c,lastValidBlockHeight:i})}f();var GKt=\"https://api.devnet.solana.com\",qKt=\"https://api.mainnet-beta.solana.com\",KKt=\"wss://api.devnet.solana.com\",YKt=\"wss://api.mainnet-beta.solana.com\";function ZKt(e){return i2e(e?e:GKt)}function QKt(e){return i2e(e?e:qKt)}function Py(e,t){if(e===\"solana-devnet\")return ZKt(t);if(e===\"solana\")return QKt(t);throw new Error(\"Invalid network\")}function Rct(e,t){if(e===\"solana-devnet\")return f2e(t?Cct(t):KKt);if(e===\"solana\")return f2e(t?Cct(t):YKt);throw new Error(\"Invalid network\")}function Cct(e){return e.startsWith(\"http\")?e.replace(\"http\",\"ws\"):e}f();f();var N2e=/^[1-9A-HJ-NP-Za-km-z]{32,44}$/;function WI(e){if(cre.has(e))return cre.get(e);if(Hxe.has(e))return Hxe.get(e);throw new Error(`Unsupported network: ${e}`)}f();f();f();f();f();var $Kt=18,P2e=/^0x[0-9a-fA-F]{40}$/,M2e=/^0x[a-fA-F0-9]{40}|[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$/,eYt=/^0x[0-9a-fA-F]{64}$/,tYt=/^0x[0-9a-fA-F]+$/,D2e=[\"exact\"],Qz=[1],Jz=[\"insufficient_funds\",\"invalid_exact_evm_payload_authorization_valid_after\",\"invalid_exact_evm_payload_authorization_valid_before\",\"invalid_exact_evm_payload_authorization_value\",\"invalid_exact_evm_payload_signature\",\"invalid_exact_evm_payload_recipient_mismatch\",\"invalid_exact_svm_payload_transaction\",\"invalid_exact_svm_payload_transaction_amount_mismatch\",\"invalid_exact_svm_payload_transaction_create_ata_instruction\",\"invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_payee\",\"invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_asset\",\"invalid_exact_svm_payload_transaction_instructions\",\"invalid_exact_svm_payload_transaction_instructions_length\",\"invalid_exact_svm_payload_transaction_instructions_compute_limit_instruction\",\"invalid_exact_svm_payload_transaction_instructions_compute_price_instruction\",\"invalid_exact_svm_payload_transaction_instructions_compute_price_instruction_too_high\",\"invalid_exact_svm_payload_transaction_instruction_not_spl_token_transfer_checked\",\"invalid_exact_svm_payload_transaction_instruction_not_token_2022_transfer_checked\",\"invalid_exact_svm_payload_transaction_not_a_transfer_instruction\",\"invalid_exact_svm_payload_transaction_receiver_ata_not_found\",\"invalid_exact_svm_payload_transaction_sender_ata_not_found\",\"invalid_exact_svm_payload_transaction_simulation_failed\",\"invalid_exact_svm_payload_transaction_transfer_to_incorrect_ata\",\"invalid_network\",\"invalid_payload\",\"invalid_payment_requirements\",\"invalid_scheme\",\"invalid_payment\",\"payment_expired\",\"unsupported_scheme\",\"invalid_x402_version\",\"invalid_transaction_state\",\"invalid_x402_version\",\"settle_exact_svm_block_height_exceeded\",\"settle_exact_svm_transaction_confirmation_timed_out\",\"unsupported_scheme\",\"unexpected_settle_error\",\"unexpected_verify_error\"],kre=e=>Number.isInteger(Number(e))&&Number(e)>=0,nYt=e=>t=>t.length<=e,B2e=He.string().regex(P2e).or(He.string().regex(N2e)),rYt=He.string().regex(M2e).or(He.string().regex(N2e)),aD=He.object({scheme:He.enum(D2e),network:Lz,maxAmountRequired:He.string().refine(kre),resource:He.string().url(),description:He.string(),mimeType:He.string(),outputSchema:He.record(He.any()).optional(),payTo:B2e,maxTimeoutSeconds:He.number().int(),asset:rYt,extra:He.record(He.any()).optional()}),oYt=He.object({from:He.string().regex(P2e),to:He.string().regex(P2e),value:He.string().refine(kre).refine(nYt($Kt)),validAfter:He.string().refine(kre),validBefore:He.string().refine(kre),nonce:He.string().regex(eYt)}),iYt=He.object({signature:He.string().regex(tYt),authorization:oYt}),aYt=He.object({transaction:He.string().regex(ost)}),Ore=He.object({x402Version:He.number().refine(e=>Qz.includes(e)),scheme:He.enum(D2e),network:Lz,payload:He.union([iYt,aYt])}),YAr=He.object({x402Version:He.number().refine(e=>Qz.includes(e)),error:He.enum(Jz).optional(),accepts:He.array(aD).optional(),payer:He.string().regex(M2e).optional()}),sYt=He.enum([\"GET\",\"POST\",\"PUT\",\"DELETE\",\"PATCH\",\"OPTIONS\",\"HEAD\"]),cYt=He.object({type:He.literal(\"http\"),method:sYt,queryParams:He.record(He.string(),He.string()).optional(),bodyType:He.enum([\"json\",\"form-data\",\"multipart-form-data\",\"text\",\"binary\"]).optional(),bodyFields:He.record(He.string(),He.any()).optional(),headerFields:He.record(He.string(),He.any()).optional()}),ZAr=He.discriminatedUnion(\"type\",[cYt]),uYt=He.object({resource:He.string(),type:He.enum([\"http\"]),x402Version:He.number().refine(e=>Qz.includes(e)),accepts:He.array(aD),lastUpdated:He.date(),metadata:He.record(He.any()).optional()}),QAr=He.object({paymentPayload:Ore,paymentRequirements:aD}),JAr=He.object({paymentPayload:Ore,paymentRequirements:aD}),XAr=He.object({isValid:He.boolean(),invalidReason:He.enum(Jz).optional(),payer:B2e.optional()}),$Ar=He.object({success:He.boolean(),errorReason:He.enum(Jz).optional(),payer:B2e.optional(),transaction:He.string().regex(M2e),network:Lz}),eSr=He.object({type:He.string().optional(),limit:He.number().optional(),offset:He.number().optional()}),tSr=He.object({x402Version:He.number().refine(e=>Qz.includes(e)),items:He.array(uYt),pagination:He.object({limit:He.number(),offset:He.number(),total:He.number()})}),lYt=He.object({x402Version:He.number().refine(e=>Qz.includes(e)),scheme:He.enum(D2e),network:Lz,extra:He.record(He.any()).optional()}),nSr=He.object({kinds:He.array(lYt)});f();var uSr=He.object({paymentHeader:He.string(),paymentRequirements:aD});f();f();function dYt(e){return Dz[e.chain.id.toString()].usdcAddress}function Pre(e){return Dz[e.toString()]}var Nre=null;async function Ict(e){return Nre!==null||(Nre=await e.readContract({address:dYt(e),abi:FI,functionName:\"version\"})),Nre}async function L2e(e,t){let n=e.chain.id,r=Pre(n);return r?await e.readContract({address:r.usdcAddress,abi:FI,functionName:\"balanceOf\",args:[t]}):0n}f();async function kct(e,t,n){return await e.readContract({address:t,abi:FI,functionName:\"balanceOf\",args:[n]})}f();f();f();var Oct=(e=>(e[e.Uninitialized=0]=\"Uninitialized\",e[e.Initialized=1]=\"Initialized\",e[e.Frozen=2]=\"Frozen\",e))(Oct||{});function gYt(){return gre(Oct)}function yYt(){return yr([[\"mint\",or()],[\"owner\",or()],[\"amount\",la()],[\"delegate\",Fs(or(),{prefix:Vu(),noneValue:\"zeroes\"})],[\"state\",gYt()],[\"isNative\",Fs(la(),{prefix:Vu(),noneValue:\"zeroes\"})],[\"delegatedAmount\",la()],[\"closeAuthority\",Fs(or(),{prefix:Vu(),noneValue:\"zeroes\"})]])}function bYt(e){return Uz(e,yYt())}async function Nct(e,t,n){let r=await zI(e,t,n);return bYt(r)}var px=\"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA\";var U2e=(e=>(e[e.InitializeMint=0]=\"InitializeMint\",e[e.InitializeAccount=1]=\"InitializeAccount\",e[e.InitializeMultisig=2]=\"InitializeMultisig\",e[e.Transfer=3]=\"Transfer\",e[e.Approve=4]=\"Approve\",e[e.Revoke=5]=\"Revoke\",e[e.SetAuthority=6]=\"SetAuthority\",e[e.MintTo=7]=\"MintTo\",e[e.Burn=8]=\"Burn\",e[e.CloseAccount=9]=\"CloseAccount\",e[e.FreezeAccount=10]=\"FreezeAccount\",e[e.ThawAccount=11]=\"ThawAccount\",e[e.TransferChecked=12]=\"TransferChecked\",e[e.ApproveChecked=13]=\"ApproveChecked\",e[e.MintToChecked=14]=\"MintToChecked\",e[e.BurnChecked=15]=\"BurnChecked\",e[e.InitializeAccount2=16]=\"InitializeAccount2\",e[e.SyncNative=17]=\"SyncNative\",e[e.InitializeAccount3=18]=\"InitializeAccount3\",e[e.InitializeMultisig2=19]=\"InitializeMultisig2\",e[e.InitializeMint2=20]=\"InitializeMint2\",e[e.GetAccountDataSize=21]=\"GetAccountDataSize\",e[e.InitializeImmutableOwner=22]=\"InitializeImmutableOwner\",e[e.AmountToUiAmount=23]=\"AmountToUiAmount\",e[e.UiAmountToAmount=24]=\"UiAmountToAmount\",e))(U2e||{});function Pct(e){let t=\"data\"in e?e.data:e;if(je(t,ze().encode(0),0))return 0;if(je(t,ze().encode(1),0))return 1;if(je(t,ze().encode(2),0))return 2;if(je(t,ze().encode(3),0))return 3;if(je(t,ze().encode(4),0))return 4;if(je(t,ze().encode(5),0))return 5;if(je(t,ze().encode(6),0))return 6;if(je(t,ze().encode(7),0))return 7;if(je(t,ze().encode(8),0))return 8;if(je(t,ze().encode(9),0))return 9;if(je(t,ze().encode(10),0))return 10;if(je(t,ze().encode(11),0))return 11;if(je(t,ze().encode(12),0))return 12;if(je(t,ze().encode(13),0))return 13;if(je(t,ze().encode(14),0))return 14;if(je(t,ze().encode(15),0))return 15;if(je(t,ze().encode(16),0))return 16;if(je(t,ze().encode(17),0))return 17;if(je(t,ze().encode(18),0))return 18;if(je(t,ze().encode(19),0))return 19;if(je(t,ze().encode(20),0))return 20;if(je(t,ze().encode(21),0))return 21;if(je(t,ze().encode(22),0))return 22;if(je(t,ze().encode(23),0))return 23;if(je(t,ze().encode(24),0))return 24;throw new Error(\"The provided instruction could not be identified as a token instruction.\")}var vYt=0,wYt;wYt={[vYt]:\"Associated token account owner does not match address derivation\"};var xYt=0,EYt=1,AYt=2,SYt=3,_Yt=4,TYt=5,CYt=6,RYt=7,IYt=8,kYt=9,OYt=10,NYt=11,PYt=12,MYt=13,DYt=14,BYt=15,LYt=16,UYt=17,FYt=18,HYt=19,zYt;zYt={[UYt]:\"Account is frozen\",[CYt]:\"Already in use\",[BYt]:\"Account does not support specified authority type\",[TYt]:\"Fixed supply\",[EYt]:\"Insufficient funds\",[PYt]:\"Invalid instruction\",[AYt]:\"Invalid Mint\",[RYt]:\"Invalid number of provided signers\",[IYt]:\"Invalid number of required signers\",[MYt]:\"State is invalid for requested operation\",[LYt]:\"This token mint cannot freeze accounts\",[FYt]:\"The provided decimals value different from the Mint decimals\",[SYt]:\"Account not associated with this Mint\",[OYt]:\"Instruction does not support native tokens\",[NYt]:\"Non-native account can only be closed if its balance is zero\",[HYt]:\"Instruction does not support non-native tokens\",[xYt]:\"Lamport balance below rent-exempt threshold\",[DYt]:\"Operation overflowed\",[_Yt]:\"Owner does not match\",[kYt]:\"State is unititialized\"};function jYt(){return yr([[\"discriminator\",Ls()],[\"amount\",la()],[\"decimals\",Ls()]])}function Mct(e){if(e.accounts.length<4)throw new Error(\"Not enough accounts\");let t=0,n=()=>{let r=e.accounts[t];return t+=1,r};return{programAddress:e.programAddress,accounts:{source:n(),mint:n(),destination:n(),authority:n()},data:jYt().decode(e.data)}}f();var Lct=(e=>(e[e.Uninitialized=0]=\"Uninitialized\",e[e.Initialized=1]=\"Initialized\",e[e.Frozen=2]=\"Frozen\",e))(Lct||{});function Uct(){return gre(Lct)}function WYt(){return Iy(vC(),36)}function Xz(){return Iy(vC(),64)}function Fct(){return wst([[\"Uninitialized\",wC()],[\"TransferFeeConfig\",di(yr([[\"transferFeeConfigAuthority\",or()],[\"withdrawWithheldAuthority\",or()],[\"withheldAmount\",la()],[\"olderTransferFee\",Dct()],[\"newerTransferFee\",Dct()]]),ua())],[\"TransferFeeAmount\",di(yr([[\"withheldAmount\",la()]]),ua())],[\"MintCloseAuthority\",di(yr([[\"closeAuthority\",or()]]),ua())],[\"ConfidentialTransferMint\",di(yr([[\"authority\",Fs(or(),{prefix:null,noneValue:\"zeroes\"})],[\"autoApproveNewAccounts\",vm()],[\"auditorElgamalPubkey\",Fs(or(),{prefix:null,noneValue:\"zeroes\"})]]),ua())],[\"ConfidentialTransferAccount\",di(yr([[\"approved\",vm()],[\"elgamalPubkey\",or()],[\"pendingBalanceLow\",Xz()],[\"pendingBalanceHigh\",Xz()],[\"availableBalance\",Xz()],[\"decryptableAvailableBalance\",WYt()],[\"allowConfidentialCredits\",vm()],[\"allowNonConfidentialCredits\",vm()],[\"pendingBalanceCreditCounter\",la()],[\"maximumPendingBalanceCreditCounter\",la()],[\"expectedPendingBalanceCreditCounter\",la()],[\"actualPendingBalanceCreditCounter\",la()]]),ua())],[\"DefaultAccountState\",di(yr([[\"state\",Uct()]]),ua())],[\"ImmutableOwner\",di(yr([]),ua())],[\"MemoTransfer\",di(yr([[\"requireIncomingTransferMemos\",vm()]]),ua())],[\"NonTransferable\",di(yr([]),ua())],[\"InterestBearingConfig\",di(yr([[\"rateAuthority\",or()],[\"initializationTimestamp\",la()],[\"preUpdateAverageRate\",Lwe()],[\"lastUpdateTimestamp\",la()],[\"currentRate\",Lwe()]]),ua())],[\"CpiGuard\",di(yr([[\"lockCpi\",vm()]]),ua())],[\"PermanentDelegate\",di(yr([[\"delegate\",or()]]),ua())],[\"NonTransferableAccount\",di(yr([]),ua())],[\"TransferHook\",di(yr([[\"authority\",or()],[\"programId\",or()]]),ua())],[\"TransferHookAccount\",di(yr([[\"transferring\",vm()]]),ua())],[\"ConfidentialTransferFee\",di(yr([[\"authority\",Fs(or(),{prefix:null,noneValue:\"zeroes\"})],[\"elgamalPubkey\",or()],[\"harvestToMintEnabled\",vm()],[\"withheldAmount\",Xz()]]),ua())],[\"ConfidentialTransferFeeAmount\",di(yr([[\"withheldAmount\",Xz()]]),ua())],[\"MetadataPointer\",di(yr([[\"authority\",Fs(or(),{prefix:null,noneValue:\"zeroes\"})],[\"metadataAddress\",Fs(or(),{prefix:null,noneValue:\"zeroes\"})]]),ua())],[\"TokenMetadata\",di(yr([[\"updateAuthority\",Fs(or(),{prefix:null,noneValue:\"zeroes\"})],[\"mint\",or()],[\"name\",di(HI(),Vu())],[\"symbol\",di(HI(),Vu())],[\"uri\",di(HI(),Vu())],[\"additionalMetadata\",xst(di(HI(),Vu()),di(HI(),Vu()))]]),ua())],[\"GroupPointer\",di(yr([[\"authority\",Fs(or(),{prefix:null,noneValue:\"zeroes\"})],[\"groupAddress\",Fs(or(),{prefix:null,noneValue:\"zeroes\"})]]),ua())],[\"TokenGroup\",di(yr([[\"updateAuthority\",Fs(or(),{prefix:null,noneValue:\"zeroes\"})],[\"mint\",or()],[\"size\",la()],[\"maxSize\",la()]]),ua())],[\"GroupMemberPointer\",di(yr([[\"authority\",Fs(or(),{prefix:null,noneValue:\"zeroes\"})],[\"memberAddress\",Fs(or(),{prefix:null,noneValue:\"zeroes\"})]]),ua())],[\"TokenGroupMember\",di(yr([[\"mint\",or()],[\"group\",or()],[\"memberNumber\",la()]]),ua())],[\"ConfidentialMintBurn\",wC()],[\"ScaledUiAmountConfig\",di(yr([[\"authority\",or()],[\"multiplier\",Bwe()],[\"newMultiplierEffectiveTimestamp\",la()],[\"newMultiplier\",Bwe()]]),ua())],[\"PausableConfig\",di(yr([[\"authority\",Fs(or(),{prefix:null,noneValue:\"zeroes\"})],[\"paused\",vm()]]),ua())],[\"PausableAccount\",wC()]],{size:ua()})}function Dct(){return yr([[\"epoch\",la()],[\"maximumFee\",la()],[\"transferFeeBasisPoints\",ua()]])}function VYt(){return yr([[\"mintAuthority\",Fs(or(),{prefix:Vu(),noneValue:\"zeroes\"})],[\"supply\",la()],[\"decimals\",Ls()],[\"isInitialized\",vm()],[\"freezeAuthority\",Fs(or(),{prefix:Vu(),noneValue:\"zeroes\"})],[\"extensions\",Fs(Jxe(bm(Fct(),{size:\"remainder\"}),[zz(Sit(ze(),83).encode(1))]),{prefix:null})]])}function GYt(e){return Uz(e,VYt())}async function Mre(e,t,n){let r=await qYt(e,t,n);return Wxe(r),r}async function qYt(e,t,n){let r=await zI(e,t,n);return GYt(r)}function KYt(){return yr([[\"mint\",or()],[\"owner\",or()],[\"amount\",la()],[\"delegate\",Fs(or(),{prefix:Vu(),noneValue:\"zeroes\"})],[\"state\",Uct()],[\"isNative\",Fs(la(),{prefix:Vu(),noneValue:\"zeroes\"})],[\"delegatedAmount\",la()],[\"closeAuthority\",Fs(or(),{prefix:Vu(),noneValue:\"zeroes\"})],[\"extensions\",Fs(Jxe(bm(Fct(),{size:\"remainder\"}),[zz(ze().encode(2))]),{prefix:null})]])}function YYt(e){return Uz(e,KYt())}async function Hct(e,t,n){let r=await zI(e,t,n);return YYt(r)}var ZYt=\"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL\";var hx=\"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb\";var F2e=(e=>(e[e.InitializeMint=0]=\"InitializeMint\",e[e.InitializeAccount=1]=\"InitializeAccount\",e[e.InitializeMultisig=2]=\"InitializeMultisig\",e[e.Transfer=3]=\"Transfer\",e[e.Approve=4]=\"Approve\",e[e.Revoke=5]=\"Revoke\",e[e.SetAuthority=6]=\"SetAuthority\",e[e.MintTo=7]=\"MintTo\",e[e.Burn=8]=\"Burn\",e[e.CloseAccount=9]=\"CloseAccount\",e[e.FreezeAccount=10]=\"FreezeAccount\",e[e.ThawAccount=11]=\"ThawAccount\",e[e.TransferChecked=12]=\"TransferChecked\",e[e.ApproveChecked=13]=\"ApproveChecked\",e[e.MintToChecked=14]=\"MintToChecked\",e[e.BurnChecked=15]=\"BurnChecked\",e[e.InitializeAccount2=16]=\"InitializeAccount2\",e[e.SyncNative=17]=\"SyncNative\",e[e.InitializeAccount3=18]=\"InitializeAccount3\",e[e.InitializeMultisig2=19]=\"InitializeMultisig2\",e[e.InitializeMint2=20]=\"InitializeMint2\",e[e.GetAccountDataSize=21]=\"GetAccountDataSize\",e[e.InitializeImmutableOwner=22]=\"InitializeImmutableOwner\",e[e.AmountToUiAmount=23]=\"AmountToUiAmount\",e[e.UiAmountToAmount=24]=\"UiAmountToAmount\",e[e.InitializeMintCloseAuthority=25]=\"InitializeMintCloseAuthority\",e[e.InitializeTransferFeeConfig=26]=\"InitializeTransferFeeConfig\",e[e.TransferCheckedWithFee=27]=\"TransferCheckedWithFee\",e[e.WithdrawWithheldTokensFromMint=28]=\"WithdrawWithheldTokensFromMint\",e[e.WithdrawWithheldTokensFromAccounts=29]=\"WithdrawWithheldTokensFromAccounts\",e[e.HarvestWithheldTokensToMint=30]=\"HarvestWithheldTokensToMint\",e[e.SetTransferFee=31]=\"SetTransferFee\",e[e.InitializeConfidentialTransferMint=32]=\"InitializeConfidentialTransferMint\",e[e.UpdateConfidentialTransferMint=33]=\"UpdateConfidentialTransferMint\",e[e.ConfigureConfidentialTransferAccount=34]=\"ConfigureConfidentialTransferAccount\",e[e.ApproveConfidentialTransferAccount=35]=\"ApproveConfidentialTransferAccount\",e[e.EmptyConfidentialTransferAccount=36]=\"EmptyConfidentialTransferAccount\",e[e.ConfidentialDeposit=37]=\"ConfidentialDeposit\",e[e.ConfidentialWithdraw=38]=\"ConfidentialWithdraw\",e[e.ConfidentialTransfer=39]=\"ConfidentialTransfer\",e[e.ApplyConfidentialPendingBalance=40]=\"ApplyConfidentialPendingBalance\",e[e.EnableConfidentialCredits=41]=\"EnableConfidentialCredits\",e[e.DisableConfidentialCredits=42]=\"DisableConfidentialCredits\",e[e.EnableNonConfidentialCredits=43]=\"EnableNonConfidentialCredits\",e[e.DisableNonConfidentialCredits=44]=\"DisableNonConfidentialCredits\",e[e.ConfidentialTransferWithFee=45]=\"ConfidentialTransferWithFee\",e[e.InitializeDefaultAccountState=46]=\"InitializeDefaultAccountState\",e[e.UpdateDefaultAccountState=47]=\"UpdateDefaultAccountState\",e[e.Reallocate=48]=\"Reallocate\",e[e.EnableMemoTransfers=49]=\"EnableMemoTransfers\",e[e.DisableMemoTransfers=50]=\"DisableMemoTransfers\",e[e.CreateNativeMint=51]=\"CreateNativeMint\",e[e.InitializeNonTransferableMint=52]=\"InitializeNonTransferableMint\",e[e.InitializeInterestBearingMint=53]=\"InitializeInterestBearingMint\",e[e.UpdateRateInterestBearingMint=54]=\"UpdateRateInterestBearingMint\",e[e.EnableCpiGuard=55]=\"EnableCpiGuard\",e[e.DisableCpiGuard=56]=\"DisableCpiGuard\",e[e.InitializePermanentDelegate=57]=\"InitializePermanentDelegate\",e[e.InitializeTransferHook=58]=\"InitializeTransferHook\",e[e.UpdateTransferHook=59]=\"UpdateTransferHook\",e[e.InitializeConfidentialTransferFee=60]=\"InitializeConfidentialTransferFee\",e[e.WithdrawWithheldTokensFromMintForConfidentialTransferFee=61]=\"WithdrawWithheldTokensFromMintForConfidentialTransferFee\",e[e.WithdrawWithheldTokensFromAccountsForConfidentialTransferFee=62]=\"WithdrawWithheldTokensFromAccountsForConfidentialTransferFee\",e[e.HarvestWithheldTokensToMintForConfidentialTransferFee=63]=\"HarvestWithheldTokensToMintForConfidentialTransferFee\",e[e.EnableHarvestToMint=64]=\"EnableHarvestToMint\",e[e.DisableHarvestToMint=65]=\"DisableHarvestToMint\",e[e.WithdrawExcessLamports=66]=\"WithdrawExcessLamports\",e[e.InitializeMetadataPointer=67]=\"InitializeMetadataPointer\",e[e.UpdateMetadataPointer=68]=\"UpdateMetadataPointer\",e[e.InitializeGroupPointer=69]=\"InitializeGroupPointer\",e[e.UpdateGroupPointer=70]=\"UpdateGroupPointer\",e[e.InitializeGroupMemberPointer=71]=\"InitializeGroupMemberPointer\",e[e.UpdateGroupMemberPointer=72]=\"UpdateGroupMemberPointer\",e[e.InitializeScaledUiAmountMint=73]=\"InitializeScaledUiAmountMint\",e[e.UpdateMultiplierScaledUiMint=74]=\"UpdateMultiplierScaledUiMint\",e[e.InitializePausableConfig=75]=\"InitializePausableConfig\",e[e.Pause=76]=\"Pause\",e[e.Resume=77]=\"Resume\",e[e.InitializeTokenMetadata=78]=\"InitializeTokenMetadata\",e[e.UpdateTokenMetadataField=79]=\"UpdateTokenMetadataField\",e[e.RemoveTokenMetadataKey=80]=\"RemoveTokenMetadataKey\",e[e.UpdateTokenMetadataUpdateAuthority=81]=\"UpdateTokenMetadataUpdateAuthority\",e[e.EmitTokenMetadata=82]=\"EmitTokenMetadata\",e[e.InitializeTokenGroup=83]=\"InitializeTokenGroup\",e[e.UpdateTokenGroupMaxSize=84]=\"UpdateTokenGroupMaxSize\",e[e.UpdateTokenGroupUpdateAuthority=85]=\"UpdateTokenGroupUpdateAuthority\",e[e.InitializeTokenGroupMember=86]=\"InitializeTokenGroupMember\",e))(F2e||{});function zct(e){let t=\"data\"in e?e.data:e;if(je(t,ze().encode(0),0))return 0;if(je(t,ze().encode(1),0))return 1;if(je(t,ze().encode(2),0))return 2;if(je(t,ze().encode(3),0))return 3;if(je(t,ze().encode(4),0))return 4;if(je(t,ze().encode(5),0))return 5;if(je(t,ze().encode(6),0))return 6;if(je(t,ze().encode(7),0))return 7;if(je(t,ze().encode(8),0))return 8;if(je(t,ze().encode(9),0))return 9;if(je(t,ze().encode(10),0))return 10;if(je(t,ze().encode(11),0))return 11;if(je(t,ze().encode(12),0))return 12;if(je(t,ze().encode(13),0))return 13;if(je(t,ze().encode(14),0))return 14;if(je(t,ze().encode(15),0))return 15;if(je(t,ze().encode(16),0))return 16;if(je(t,ze().encode(17),0))return 17;if(je(t,ze().encode(18),0))return 18;if(je(t,ze().encode(19),0))return 19;if(je(t,ze().encode(20),0))return 20;if(je(t,ze().encode(21),0))return 21;if(je(t,ze().encode(22),0))return 22;if(je(t,ze().encode(23),0))return 23;if(je(t,ze().encode(24),0))return 24;if(je(t,ze().encode(25),0))return 25;if(je(t,ze().encode(26),0)&&je(t,ze().encode(0),1))return 26;if(je(t,ze().encode(26),0)&&je(t,ze().encode(1),1))return 27;if(je(t,ze().encode(26),0)&&je(t,ze().encode(2),1))return 28;if(je(t,ze().encode(26),0)&&je(t,ze().encode(3),1))return 29;if(je(t,ze().encode(26),0)&&je(t,ze().encode(4),1))return 30;if(je(t,ze().encode(26),0)&&je(t,ze().encode(5),1))return 31;if(je(t,ze().encode(27),0)&&je(t,ze().encode(0),1))return 32;if(je(t,ze().encode(27),0)&&je(t,ze().encode(1),1))return 33;if(je(t,ze().encode(27),0)&&je(t,ze().encode(2),1))return 34;if(je(t,ze().encode(27),0)&&je(t,ze().encode(3),1))return 35;if(je(t,ze().encode(27),0)&&je(t,ze().encode(4),1))return 36;if(je(t,ze().encode(27),0)&&je(t,ze().encode(5),1))return 37;if(je(t,ze().encode(27),0)&&je(t,ze().encode(6),1))return 38;if(je(t,ze().encode(27),0)&&je(t,ze().encode(7),1))return 39;if(je(t,ze().encode(27),0)&&je(t,ze().encode(8),1))return 40;if(je(t,ze().encode(27),0)&&je(t,ze().encode(9),1))return 41;if(je(t,ze().encode(27),0)&&je(t,ze().encode(10),1))return 42;if(je(t,ze().encode(27),0)&&je(t,ze().encode(11),1))return 43;if(je(t,ze().encode(27),0)&&je(t,ze().encode(12),1))return 44;if(je(t,ze().encode(27),0)&&je(t,ze().encode(13),1))return 45;if(je(t,ze().encode(28),0)&&je(t,ze().encode(0),1))return 46;if(je(t,ze().encode(28),0)&&je(t,ze().encode(1),1))return 47;if(je(t,ze().encode(29),0))return 48;if(je(t,ze().encode(30),0)&&je(t,ze().encode(0),1))return 49;if(je(t,ze().encode(30),0)&&je(t,ze().encode(1),1))return 50;if(je(t,ze().encode(31),0))return 51;if(je(t,ze().encode(32),0))return 52;if(je(t,ze().encode(33),0)&&je(t,ze().encode(0),1))return 53;if(je(t,ze().encode(33),0)&&je(t,ze().encode(1),1))return 54;if(je(t,ze().encode(34),0)&&je(t,ze().encode(0),1))return 55;if(je(t,ze().encode(34),0)&&je(t,ze().encode(1),1))return 56;if(je(t,ze().encode(35),0))return 57;if(je(t,ze().encode(36),0)&&je(t,ze().encode(0),1))return 58;if(je(t,ze().encode(36),0)&&je(t,ze().encode(1),1))return 59;if(je(t,ze().encode(37),0)&&je(t,ze().encode(0),1))return 60;if(je(t,ze().encode(37),0)&&je(t,ze().encode(1),1))return 61;if(je(t,ze().encode(37),0)&&je(t,ze().encode(2),1))return 62;if(je(t,ze().encode(37),0)&&je(t,ze().encode(3),1))return 63;if(je(t,ze().encode(37),0)&&je(t,ze().encode(4),1))return 64;if(je(t,ze().encode(37),0)&&je(t,ze().encode(5),1))return 65;if(je(t,ze().encode(38),0))return 66;if(je(t,ze().encode(39),0)&&je(t,ze().encode(0),1))return 67;if(je(t,ze().encode(39),0)&&je(t,ze().encode(1),1))return 68;if(je(t,ze().encode(40),0)&&je(t,ze().encode(0),1))return 69;if(je(t,ze().encode(40),0)&&je(t,ze().encode(1),1))return 70;if(je(t,ze().encode(41),0)&&je(t,ze().encode(0),1))return 71;if(je(t,ze().encode(41),0)&&je(t,ze().encode(1),1))return 72;if(je(t,ze().encode(43),0)&&je(t,ze().encode(0),1))return 73;if(je(t,ze().encode(43),0)&&je(t,ze().encode(1),1))return 74;if(je(t,ze().encode(44),0)&&je(t,ze().encode(0),1))return 75;if(je(t,ze().encode(44),0)&&je(t,ze().encode(1),1))return 76;if(je(t,ze().encode(44),0)&&je(t,ze().encode(2),1))return 77;if(je(t,new Uint8Array([210,225,30,162,88,184,77,141]),0))return 78;if(je(t,new Uint8Array([221,233,49,45,181,202,220,200]),0))return 79;if(je(t,new Uint8Array([234,18,32,56,89,141,37,181]),0))return 80;if(je(t,new Uint8Array([215,228,166,228,84,100,86,123]),0))return 81;if(je(t,new Uint8Array([250,166,180,250,13,12,184,70]),0))return 82;if(je(t,new Uint8Array([121,113,108,39,54,51,0,4]),0))return 83;if(je(t,new Uint8Array([108,37,171,143,248,30,18,110]),0))return 84;if(je(t,new Uint8Array([161,105,88,1,237,221,216,203]),0))return 85;if(je(t,new Uint8Array([152,32,222,176,223,237,116,134]),0))return 86;throw new Error(\"The provided instruction could not be identified as a token-2022 instruction.\")}var QYt=0,JYt;JYt={[QYt]:\"Associated token account owner does not match address derivation\"};var XYt=0,$Yt=1,eZt=2,tZt=3,nZt=4,rZt=5,oZt=6,iZt=7,aZt=8,sZt=9,cZt=10,uZt=11,lZt=12,dZt=13,fZt=14,pZt=15,hZt=16,mZt=17,gZt=18,yZt=19,bZt;bZt={[mZt]:\"Account is frozen\",[oZt]:\"Already in use\",[pZt]:\"Account does not support specified authority type\",[rZt]:\"Fixed supply\",[$Yt]:\"Insufficient funds\",[lZt]:\"Invalid instruction\",[eZt]:\"Invalid Mint\",[iZt]:\"Invalid number of provided signers\",[aZt]:\"Invalid number of required signers\",[dZt]:\"State is invalid for requested operation\",[hZt]:\"This token mint cannot freeze accounts\",[gZt]:\"The provided decimals value different from the Mint decimals\",[tZt]:\"Account not associated with this Mint\",[cZt]:\"Instruction does not support native tokens\",[uZt]:\"Non-native account can only be closed if its balance is zero\",[yZt]:\"Instruction does not support non-native tokens\",[XYt]:\"Lamport balance below rent-exempt threshold\",[fZt]:\"Operation overflowed\",[nZt]:\"Owner does not match\",[sZt]:\"State is unititialized\"};function vZt(e){if(!e)throw new Error(\"Expected a Address.\");return typeof e==\"object\"&&\"address\"in e?e.address:Array.isArray(e)?e[0]:e}function jct(e,t){return n=>{if(!n.value)return Object.freeze({address:e,role:fc.READONLY});let r=n.isWritable?fc.WRITABLE:fc.READONLY;return Object.freeze({address:vZt(n.value),role:Bct(n.value)?n2e(r):r,...Bct(n.value)?{signer:n.value}:{}})}}function Bct(e){return!!e&&typeof e==\"object\"&&\"address\"in e&&Zz(e)}async function AC(e,t={}){let{programAddress:n=\"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL\"}=t;return await Zxe({programAddress:n,seeds:[dx().encode(e.owner),dx().encode(e.tokenProgram),dx().encode(e.mint)]})}var wZt=0;function xZt(){return Kf(dh([[\"discriminator\",ze()]]),e=>({...e,discriminator:wZt}))}function EZt(){return yr([[\"discriminator\",Ls()]])}function Wct(e,t){let n=t?.programAddress??ZYt,o={payer:{value:e.payer??null,isWritable:!0},ata:{value:e.ata??null,isWritable:!0},owner:{value:e.owner??null,isWritable:!1},mint:{value:e.mint??null,isWritable:!1},systemProgram:{value:e.systemProgram??null,isWritable:!1},tokenProgram:{value:e.tokenProgram??null,isWritable:!1}};o.tokenProgram.value||(o.tokenProgram.value=\"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb\"),o.systemProgram.value||(o.systemProgram.value=\"11111111111111111111111111111111\");let i=jct(n);return{accounts:[i(o.payer),i(o.ata),i(o.owner),i(o.mint),i(o.systemProgram),i(o.tokenProgram)],programAddress:n,data:xZt().encode({})}}function Vct(e){if(e.accounts.length<6)throw new Error(\"Not enough accounts\");let t=0,n=()=>{let r=e.accounts[t];return t+=1,r};return{programAddress:e.programAddress,accounts:{payer:n(),ata:n(),owner:n(),mint:n(),systemProgram:n(),tokenProgram:n()},data:EZt().decode(e.data)}}var d_r=new Uint8Array([250,166,180,250,13,12,184,70]);var f_r=new Uint8Array([121,113,108,39,54,51,0,4]);var p_r=new Uint8Array([152,32,222,176,223,237,116,134]);var h_r=new Uint8Array([210,225,30,162,88,184,77,141]);var m_r=new Uint8Array([234,18,32,56,89,141,37,181]);var AZt=12;function SZt(){return Kf(dh([[\"discriminator\",ze()],[\"amount\",mC()],[\"decimals\",ze()]]),e=>({...e,discriminator:AZt}))}function _Zt(){return yr([[\"discriminator\",Ls()],[\"amount\",la()],[\"decimals\",Ls()]])}function Gct(e,t){let n=t?.programAddress??hx,o={source:{value:e.source??null,isWritable:!0},mint:{value:e.mint??null,isWritable:!1},destination:{value:e.destination??null,isWritable:!0},authority:{value:e.authority??null,isWritable:!1}},i={...e},a=(i.multiSigners??[]).map(d=>({address:d.address,role:fc.READONLY_SIGNER,signer:d})),c=jct(n);return{accounts:[c(o.source),c(o.mint),c(o.destination),c(o.authority),...a],programAddress:n,data:SZt().encode(i)}}function qct(e){if(e.accounts.length<4)throw new Error(\"Not enough accounts\");let t=0,n=()=>{let r=e.accounts[t];return t+=1,r};return{programAddress:e.programAddress,accounts:{source:n(),mint:n(),destination:n(),authority:n()},data:_Zt().decode(e.data)}}var g_r=new Uint8Array([108,37,171,143,248,30,18,110]);var y_r=new Uint8Array([161,105,88,1,237,221,216,203]);var b_r=new Uint8Array([221,233,49,45,181,202,220,200]);var v_r=new Uint8Array([215,228,166,228,84,100,86,123]);var w_r=3600*24*365.24;function VI(e){try{let n=lre().encode(e.transaction);return Tre().decode(n)}catch(t){throw console.error(\"error\",t),new Error(\"invalid_exact_svm_payload_transaction\")}}function sD(e){let t=iD().decode(e.messageBytes),n=t.staticAccounts??[],r=t.instructions??[];for(let o of r){let i=o.programAddressIndex,a=n[i].toString();if(a===px.toString()||a===hx.toString()){let c=o.accountIndices??[];if(c.length>=4){let l=c[3],d=n[l].toString();if(d)return d}}}return\"\"}async function Kct(e,t,n){let r=await Rre([e.keyPair],t),o=EC(r),i={sigVerify:!0,replaceRecentBlockhash:!1,commitment:\"confirmed\",encoding:\"base64\",accounts:void 0,innerInstructions:void 0,minContextSlot:void 0};return await n.simulateTransaction(o,i).send()}async function Yct(e,{from:t,to:n,value:r,validAfter:o,validBefore:i,nonce:a},{asset:c,network:l,extra:d}){let m=WI(l),h=d?.name,g=d?.version,y={types:ire,domain:{name:h,version:g,chainId:m,verifyingContract:rr(c)},primaryType:\"TransferWithAuthorization\",message:{from:rr(t),to:rr(n),value:r,validAfter:o,validBefore:i,nonce:a}};if(Bz(e))return{signature:await e.signTypedData(y)};if(Fxe(e)&&e.signTypedData)return{signature:await e.signTypedData(y)};throw new Error(\"Invalid wallet client provided does not support signTypedData\")}function Zct(){let e=typeof globalThis.crypto<\"u\"&&typeof globalThis.crypto.getRandomValues==\"function\"?globalThis.crypto:ZTe(\"crypto\").webcrypto;return Xn(e.getRandomValues(new Uint8Array(32)))}f();function cD(e){let t;if(ux.includes(e.network)){let n=e.payload;return t={...e,payload:{...n,authorization:Object.fromEntries(Object.entries(n.authorization).map(([r,o])=>[r,typeof o==\"bigint\"?o.toString():o]))}},are(JSON.stringify(t))}if(O1.includes(e.network))return t={...e,payload:e.payload},are(JSON.stringify(t));throw new Error(\"Invalid network\")}function CZt(e){let t=sre(e),n=JSON.parse(t),r;if(ux.includes(n.network))r={...n,payload:n.payload};else if(O1.includes(n.network))r={...n,payload:n.payload};else throw new Error(\"Invalid network\");return Ore.parse(r)}function H2e(e,t,n){let r=Zct(),o=BigInt(Math.floor(Date.now()/1e3)-600).toString(),i=BigInt(Math.floor(Date.now()/1e3+n.maxTimeoutSeconds)).toString();return{x402Version:t,scheme:n.scheme,network:n.network,payload:{signature:void 0,authorization:{from:e,to:n.payTo,value:n.maxAmountRequired,validAfter:o.toString(),validBefore:i.toString(),nonce:r}}}}async function z2e(e,t,n){let{signature:r}=await Yct(e,n.payload.authorization,t);return{...n,payload:{...n.payload,signature:r}}}async function Qct(e,t,n){let r=Bz(e)?e.account.address:e.address,o=H2e(r,t,n);return z2e(e,n,o)}async function Jct(e,t,n){let r=await Qct(e,t,n);return cD(r)}f();f();f();var uD=\"ComputeBudget111111111111111111111111111111\";function RZt(e){let t=\"data\"in e?e.data:e;if(je(t,ze().encode(0),0))return 0;if(je(t,ze().encode(1),0))return 1;if(je(t,ze().encode(2),0))return 2;if(je(t,ze().encode(3),0))return 3;if(je(t,ze().encode(4),0))return 4;throw new Error(\"The provided instruction could not be identified as a computeBudget instruction.\")}var IZt=2;function kZt(){return Kf(dh([[\"discriminator\",ze()],[\"units\",UM()]]),e=>({...e,discriminator:IZt}))}function OZt(){return yr([[\"discriminator\",Ls()],[\"units\",Vu()]])}function Dre(e,t){let n=t?.programAddress??uD,r={...e};return{programAddress:n,data:kZt().encode(r)}}function Xct(e){return{programAddress:e.programAddress,data:OZt().decode(e.data)}}var NZt=3;function PZt(){return Kf(dh([[\"discriminator\",ze()],[\"microLamports\",mC()]]),e=>({...e,discriminator:NZt}))}function MZt(){return yr([[\"discriminator\",Ls()],[\"microLamports\",la()]])}function DZt(e,t){let n=t?.programAddress??uD,r={...e};return{programAddress:n,data:PZt().encode(r)}}function $ct(e){return{programAddress:e.programAddress,data:MZt().decode(e.data)}}var BZt=14e5;function LZt(e){let t=UZt(e);if(t<0)return null;let n=Vu().decode(e.instructions[t].data,1);return{index:t,units:n}}function UZt(e){return e.instructions.findIndex(FZt)}function FZt(e){return e.programAddress===uD&&RZt(e.data)===2}function HZt(e,t){let n=d=>typeof e==\"function\"?e(d):e,r=LZt(t);if(!r)return qz(Dre({units:n(null)}),t);let{index:o,units:i}=r,a=n(i);if(a===i)return t;let c=Dre({units:a}),l=[...t.instructions];return l.splice(o,1,c),Object.freeze({...t,instructions:l})}var zZt={blockhash:\"11111111111111111111111111111111\",lastValidBlockHeight:0n};function jZt(e){return\"lifetimeConstraint\"in e?e:WZt(e)}function WZt(e){return oD(zZt,e)}async function VZt({transactionMessage:e,...t}){let n=!bct(e),r=Xf(e,jZt,o=>HZt(BZt,o),Cre);return await GZt({transaction:r,replaceRecentBlockhash:n,...t})}async function GZt({abortSignal:e,rpc:t,transaction:n,...r}){let o=EC(n);try{let{value:{err:i,unitsConsumed:a}}=await t.simulateTransaction(o,{...r,encoding:\"base64\",sigVerify:!1}).send({abortSignal:e});if(a==null)throw new Pt(Ane);let c=a>4294967295n?4294967295:Number(a);if(i)throw new Pt(Sne,{cause:i,unitsConsumed:c});return c}catch(i){throw pA(i,Sne)?i:new Pt(Ane,{cause:i})}}function eut({rpc:e}){return async function(n,r){return await VZt({...r,rpc:e,transactionMessage:n})}}function tut(e,t){return qz(DZt({microLamports:e}),t)}async function nut(e,t,n,r){let o=await rut(e,t,n,r);return cD(o)}async function rut(e,t,n,r){let o=await qZt(e,n,r),i=await Ect(o),a=EC(i);return{scheme:n.scheme,network:n.network,x402Version:t,payload:{transaction:a}}}async function qZt(e,t,n){let r=Py(t.network,n?.svmConfig?.rpcUrl),o=await KZt(e,t,n),i=t.extra?.feePayer,a=Xf(A2e({version:0}),h=>tut(1,h),h=>T2e(i,h),h=>C2e(o,h)),l=await eut({rpc:r})(a),{value:d}=await r.getLatestBlockhash().send();return Xf(a,h=>yct(Dre({units:l}),h),h=>oD(d,h))}async function KZt(e,t,n){let{asset:r}=t,o=Py(t.network,n?.svmConfig?.rpcUrl),i=await Mre(o,r),a=i.programAddress;if(a.toString()!==px.toString()&&a.toString()!==hx.toString())throw new Error(\"Asset was not created by a known token program\");let c=[],l=await YZt(t,a,n);l&&c.push(l);let d=await ZZt(e,t,i.data.decimals,a);return c.push(d),c}async function YZt(e,t,n){let{asset:r,payTo:o,extra:i}=e;if(!i?.feePayer)throw new Error(\"feePayer is required in paymentRequirements.extra in order to set the facilitator as the fee payer for the create associated token account instruction\");let[c]=await AC({mint:r,owner:o,tokenProgram:t}),l=Py(e.network,n?.svmConfig?.rpcUrl);if(!(await zI(l,c)).exists)return Wct({payer:e.extra?.feePayer,ata:c,owner:o,mint:r,tokenProgram:t})}async function ZZt(e,t,n,r){let{asset:o,maxAmountRequired:i,payTo:a}=t,[c]=await AC({mint:o,owner:e.address,tokenProgram:r}),[l]=await AC({mint:o,owner:a,tokenProgram:r});return Gct({source:c,mint:o,destination:l,authority:e,amount:BigInt(i),decimals:n},{programAddress:r})}f();f();function out(e,t,n){e.sort((i,a)=>i.network===\"base\"&&a.network!==\"base\"?-1:i.network!==\"base\"&&a.network===\"base\"?1:0);let r=e.filter(i=>{let a=!n||i.scheme===n,c=!t||(Array.isArray(t)?t.includes(i.network):t==i.network);return a&&c}),o=r.filter(i=>i.asset===Pre(WI(i.network))?.usdcAddress);return o.length>0?o[0]:r.length>0?r[0]:e[0]}f();var XZt=new Set([\"base-sepolia\"]),$Zt=new Set([\"solana-devnet\"]);function eQt(e){return Array.isArray(e)?e:[e]}function tQt(e){return e?[\"base-sepolia\",\"solana-devnet\"]:[\"base\",\"solana\"]}function Bre(e,t){let n=eQt(e),r=tQt(t);return out([...n],r,\"exact\")}function Lre(e){return ux.includes(e)}function iut(e){return O1.includes(e)}function Ure(e){switch(e){case\"base\":return\"Base\";case\"base-sepolia\":return\"Base Sepolia\";case\"solana\":return\"Solana\";case\"solana-devnet\":return\"Solana Devnet\";default:return e}}function aut(e){return XZt.has(e)||$Zt.has(e)}f();var $z=ge(We());function sut({children:e}){let{testnet:t=!0,cdpClientKey:n,appName:r,appLogo:o,paymentRequirements:i}=window.x402,a=Bre(i,t);if(!Lre(a.network))return(0,$z.jsx)($z.Fragment,{children:e});let c=a.network===\"base-sepolia\"?Cs:fr;return(0,$z.jsx)(Uxe,{apiKey:n||void 0,chain:c,config:{appearance:{mode:\"light\",theme:\"base\",name:r||void 0,logo:o||void 0},wallet:{display:\"modal\",supportedWallets:{rabby:!0,trust:!0,frame:!0}}},children:e})}f();var Nie=ge(at());f();f();f();var Am=ge(We(),1),EA=ge(at(),1);f();f();var Fre=ge(at(),1);function Hre(){let[e,t]=(0,Fre.useState)(\"light\");return(0,Fre.useEffect)(()=>{let n=window.matchMedia(\"(prefers-color-scheme: dark)\");t(n.matches?\"dark\":\"light\");function r(o){t(o.matches?\"dark\":\"light\")}return n.addEventListener(\"change\",r),()=>n.removeEventListener(\"change\",r)},[]),e}function Va(){let e=Hre(),{config:{appearance:t}={}}=Fo(),{theme:n=\"default\",mode:r=\"auto\"}=t||{};if(n===\"cyberpunk\"||n===\"hacker\")return n;switch(r){case\"auto\":return`${n}-${e}`;case\"dark\":return`${n}-dark`;case\"light\":return`${n}-light`;default:return`${n}-${e}`}}f();f();function cut(e){var t,n,r=\"\";if(typeof e==\"string\"||typeof e==\"number\")r+=e;else if(typeof e==\"object\")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=cut(e[t]))&&(r&&(r+=\" \"),r+=n)}else for(n in e)e[n]&&(r&&(r+=\" \"),r+=n);return r}function uut(){for(var e,t,n=0,r=\"\",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=cut(e))&&(r&&(r+=\" \"),r+=t);return r}f();var nQt=e=>{let t=oQt(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{let c=a.split(\"-\");return c[0]===\"\"&&c.length!==1&&c.shift(),fut(c,t)||rQt(a)},getConflictingClassGroupIds:(a,c)=>{let l=n[a]||[];return c&&r[a]?[...l,...r[a]]:l}}},fut=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),o=r?fut(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;let i=e.join(\"-\");return t.validators.find(({validator:a})=>a(i))?.classGroupId},lut=/^\\\\[(.+)\\\\]$/,rQt=e=>{if(lut.test(e)){let t=lut.exec(e)[1],n=t?.substring(0,t.indexOf(\":\"));if(n)return\"arbitrary..\"+n}},oQt=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return aQt(Object.entries(e.classGroups),n).forEach(([i,a])=>{W2e(a,r,i,t)}),r},W2e=(e,t,n,r)=>{e.forEach(o=>{if(typeof o==\"string\"){let i=o===\"\"?t:dut(t,o);i.classGroupId=n;return}if(typeof o==\"function\"){if(iQt(o)){W2e(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,a])=>{W2e(a,dut(t,i),n,r)})})},dut=(e,t)=>{let n=e;return t.split(\"-\").forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},iQt=e=>e.isThemeGetter,aQt=(e,t)=>t?e.map(([n,r])=>{let o=r.map(i=>typeof i==\"string\"?t+i:typeof i==\"object\"?Object.fromEntries(Object.entries(i).map(([a,c])=>[t+a,c])):i);return[n,o]}):e,sQt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map,o=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return o(i,a),a},set(i,a){n.has(i)?n.set(i,a):o(i,a)}}};var cQt=e=>{let{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,a=c=>{let l=[],d=0,m=0,h;for(let I=0;I<c.length;I++){let C=c[I];if(d===0){if(C===o&&(r||c.slice(I,I+i)===t)){l.push(c.slice(m,I)),m=I+i;continue}if(C===\"/\"){h=I;continue}}C===\"[\"?d++:C===\"]\"&&d--}let g=l.length===0?c:c.substring(m),y=g.startsWith(\"!\"),w=y?g.substring(1):g,x=h&&h>m?h-m:void 0;return{modifiers:l,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:x}};return n?c=>n({className:c,parseClassName:a}):a},uQt=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(r=>{r[0]===\"[\"?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},lQt=e=>({cache:sQt(e.cacheSize),parseClassName:cQt(e),...nQt(e)}),dQt=/\\\\s+/,fQt=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(dQt),c=\"\";for(let l=a.length-1;l>=0;l-=1){let d=a[l],{modifiers:m,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:y}=n(d),w=!!y,x=r(w?g.substring(0,y):g);if(!x){if(!w){c=d+(c.length>0?\" \"+c:c);continue}if(x=r(g),!x){c=d+(c.length>0?\" \"+c:c);continue}w=!1}let I=uQt(m).join(\":\"),C=h?I+\"!\":I,M=C+x;if(i.includes(M))continue;i.push(M);let B=o(x,w);for(let z=0;z<B.length;++z){let G=B[z];i.push(C+G)}c=d+(c.length>0?\" \"+c:c)}return c};function pQt(){let e=0,t,n,r=\"\";for(;e<arguments.length;)(t=arguments[e++])&&(n=put(t))&&(r&&(r+=\" \"),r+=n);return r}var put=e=>{if(typeof e==\"string\")return e;let t,n=\"\";for(let r=0;r<e.length;r++)e[r]&&(t=put(e[r]))&&(n&&(n+=\" \"),n+=t);return n};function hQt(e,...t){let n,r,o,i=a;function a(l){let d=t.reduce((m,h)=>h(m),e());return n=lQt(d),r=n.cache.get,o=n.cache.set,i=c,c(l)}function c(l){let d=r(l);if(d)return d;let m=fQt(l,n);return o(l,m),m}return function(){return i(pQt.apply(null,arguments))}}var ps=e=>{let t=n=>n[e]||[];return t.isThemeGetter=!0,t},hut=/^\\\\[(?:([a-z-]+):)?(.+)\\\\]$/i,mQt=/^\\\\d+\\\\/\\\\d+$/,gQt=new Set([\"px\",\"full\",\"screen\"]),yQt=/^(\\\\d+(\\\\.\\\\d+)?)?(xs|sm|md|lg|xl)$/,bQt=/\\\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\\\b(calc|min|max|clamp)\\\\(.+\\\\)|^0$/,vQt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\\\\(.+\\\\)$/,wQt=/^(inset_)?-?((\\\\d+)?\\\\.?(\\\\d+)[a-z]+|0)_-?((\\\\d+)?\\\\.?(\\\\d+)[a-z]+|0)/,xQt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\\\\(.+\\\\)$/,xA=e=>lD(e)||gQt.has(e)||mQt.test(e),SC=e=>dD(e,\"length\",IQt),lD=e=>!!e&&!Number.isNaN(Number(e)),j2e=e=>dD(e,\"number\",lD),ej=e=>!!e&&Number.isInteger(Number(e)),EQt=e=>e.endsWith(\"%\")&&lD(e.slice(0,-1)),Lr=e=>hut.test(e),_C=e=>yQt.test(e),AQt=new Set([\"length\",\"size\",\"percentage\"]),SQt=e=>dD(e,AQt,mut),_Qt=e=>dD(e,\"position\",mut),TQt=new Set([\"image\",\"url\"]),CQt=e=>dD(e,TQt,OQt),RQt=e=>dD(e,\"\",kQt),tj=()=>!0,dD=(e,t,n)=>{let r=hut.exec(e);return r?r[1]?typeof t==\"string\"?r[1]===t:t.has(r[1]):n(r[2]):!1},IQt=e=>bQt.test(e)&&!vQt.test(e),mut=()=>!1,kQt=e=>wQt.test(e),OQt=e=>xQt.test(e);var NQt=()=>{let e=ps(\"colors\"),t=ps(\"spacing\"),n=ps(\"blur\"),r=ps(\"brightness\"),o=ps(\"borderColor\"),i=ps(\"borderRadius\"),a=ps(\"borderSpacing\"),c=ps(\"borderWidth\"),l=ps(\"contrast\"),d=ps(\"grayscale\"),m=ps(\"hueRotate\"),h=ps(\"invert\"),g=ps(\"gap\"),y=ps(\"gradientColorStops\"),w=ps(\"gradientColorStopPositions\"),x=ps(\"inset\"),I=ps(\"margin\"),C=ps(\"opacity\"),M=ps(\"padding\"),B=ps(\"saturate\"),z=ps(\"scale\"),G=ps(\"sepia\"),J=ps(\"skew\"),ne=ps(\"space\"),ie=ps(\"translate\"),ae=()=>[\"auto\",\"contain\",\"none\"],te=()=>[\"auto\",\"hidden\",\"clip\",\"visible\",\"scroll\"],Z=()=>[\"auto\",Lr,t],X=()=>[Lr,t],F=()=>[\"\",xA,SC],R=()=>[\"auto\",lD,Lr],O=()=>[\"bottom\",\"center\",\"left\",\"left-bottom\",\"left-top\",\"right\",\"right-bottom\",\"right-top\",\"top\"],U=()=>[\"solid\",\"dashed\",\"dotted\",\"double\",\"none\"],P=()=>[\"normal\",\"multiply\",\"screen\",\"overlay\",\"darken\",\"lighten\",\"color-dodge\",\"color-burn\",\"hard-light\",\"soft-light\",\"difference\",\"exclusion\",\"hue\",\"saturation\",\"color\",\"luminosity\"],L=()=>[\"start\",\"end\",\"center\",\"between\",\"around\",\"evenly\",\"stretch\"],W=()=>[\"\",\"0\",Lr],q=()=>[\"auto\",\"avoid\",\"all\",\"avoid-page\",\"page\",\"left\",\"right\",\"column\"],H=()=>[lD,Lr];return{cacheSize:500,separator:\":\",theme:{colors:[tj],spacing:[xA,SC],blur:[\"none\",\"\",_C,Lr],brightness:H(),borderColor:[e],borderRadius:[\"none\",\"\",\"full\",_C,Lr],borderSpacing:X(),borderWidth:F(),contrast:H(),grayscale:W(),hueRotate:H(),invert:W(),gap:X(),gradientColorStops:[e],gradientColorStopPositions:[EQt,SC],inset:Z(),margin:Z(),opacity:H(),padding:X(),saturate:H(),scale:H(),sepia:W(),skew:H(),space:X(),translate:X()},classGroups:{aspect:[{aspect:[\"auto\",\"square\",\"video\",Lr]}],container:[\"container\"],columns:[{columns:[_C]}],\"break-after\":[{\"break-after\":q()}],\"break-before\":[{\"break-before\":q()}],\"break-inside\":[{\"break-inside\":[\"auto\",\"avoid\",\"avoid-page\",\"avoid-column\"]}],\"box-decoration\":[{\"box-decoration\":[\"slice\",\"clone\"]}],box:[{box:[\"border\",\"content\"]}],display:[\"block\",\"inline-block\",\"inline\",\"flex\",\"inline-flex\",\"table\",\"inline-table\",\"table-caption\",\"table-cell\",\"table-column\",\"table-column-group\",\"table-footer-group\",\"table-header-group\",\"table-row-group\",\"table-row\",\"flow-root\",\"grid\",\"inline-grid\",\"contents\",\"list-item\",\"hidden\"],float:[{float:[\"right\",\"left\",\"none\",\"start\",\"end\"]}],clear:[{clear:[\"left\",\"right\",\"both\",\"none\",\"start\",\"end\"]}],isolation:[\"isolate\",\"isolation-auto\"],\"object-fit\":[{object:[\"contain\",\"cover\",\"fill\",\"none\",\"scale-down\"]}],\"object-position\":[{object:[...O(),Lr]}],overflow:[{overflow:te()}],\"overflow-x\":[{\"overflow-x\":te()}],\"overflow-y\":[{\"overflow-y\":te()}],overscroll:[{overscroll:ae()}],\"overscroll-x\":[{\"overscroll-x\":ae()}],\"overscroll-y\":[{\"overscroll-y\":ae()}],position:[\"static\",\"fixed\",\"absolute\",\"relative\",\"sticky\"],inset:[{inset:[x]}],\"inset-x\":[{\"inset-x\":[x]}],\"inset-y\":[{\"inset-y\":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:[\"visible\",\"invisible\",\"collapse\"],z:[{z:[\"auto\",ej,Lr]}],basis:[{basis:Z()}],\"flex-direction\":[{flex:[\"row\",\"row-reverse\",\"col\",\"col-reverse\"]}],\"flex-wrap\":[{flex:[\"wrap\",\"wrap-reverse\",\"nowrap\"]}],flex:[{flex:[\"1\",\"auto\",\"initial\",\"none\",Lr]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:[\"first\",\"last\",\"none\",ej,Lr]}],\"grid-cols\":[{\"grid-cols\":[tj]}],\"col-start-end\":[{col:[\"auto\",{span:[\"full\",ej,Lr]},Lr]}],\"col-start\":[{\"col-start\":R()}],\"col-end\":[{\"col-end\":R()}],\"grid-rows\":[{\"grid-rows\":[tj]}],\"row-start-end\":[{row:[\"auto\",{span:[ej,Lr]},Lr]}],\"row-start\":[{\"row-start\":R()}],\"row-end\":[{\"row-end\":R()}],\"grid-flow\":[{\"grid-flow\":[\"row\",\"col\",\"dense\",\"row-dense\",\"col-dense\"]}],\"auto-cols\":[{\"auto-cols\":[\"auto\",\"min\",\"max\",\"fr\",Lr]}],\"auto-rows\":[{\"auto-rows\":[\"auto\",\"min\",\"max\",\"fr\",Lr]}],gap:[{gap:[g]}],\"gap-x\":[{\"gap-x\":[g]}],\"gap-y\":[{\"gap-y\":[g]}],\"justify-content\":[{justify:[\"normal\",...L()]}],\"justify-items\":[{\"justify-items\":[\"start\",\"end\",\"center\",\"stretch\"]}],\"justify-self\":[{\"justify-self\":[\"auto\",\"start\",\"end\",\"center\",\"stretch\"]}],\"align-content\":[{content:[\"normal\",...L(),\"baseline\"]}],\"align-items\":[{items:[\"start\",\"end\",\"center\",\"baseline\",\"stretch\"]}],\"align-self\":[{self:[\"auto\",\"start\",\"end\",\"center\",\"stretch\",\"baseline\"]}],\"place-content\":[{\"place-content\":[...L(),\"baseline\"]}],\"place-items\":[{\"place-items\":[\"start\",\"end\",\"center\",\"baseline\",\"stretch\"]}],\"place-self\":[{\"place-self\":[\"auto\",\"start\",\"end\",\"center\",\"stretch\"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[I]}],mx:[{mx:[I]}],my:[{my:[I]}],ms:[{ms:[I]}],me:[{me:[I]}],mt:[{mt:[I]}],mr:[{mr:[I]}],mb:[{mb:[I]}],ml:[{ml:[I]}],\"space-x\":[{\"space-x\":[ne]}],\"space-x-reverse\":[\"space-x-reverse\"],\"space-y\":[{\"space-y\":[ne]}],\"space-y-reverse\":[\"space-y-reverse\"],w:[{w:[\"auto\",\"min\",\"max\",\"fit\",\"svw\",\"lvw\",\"dvw\",Lr,t]}],\"min-w\":[{\"min-w\":[Lr,t,\"min\",\"max\",\"fit\"]}],\"max-w\":[{\"max-w\":[Lr,t,\"none\",\"full\",\"min\",\"max\",\"fit\",\"prose\",{screen:[_C]},_C]}],h:[{h:[Lr,t,\"auto\",\"min\",\"max\",\"fit\",\"svh\",\"lvh\",\"dvh\"]}],\"min-h\":[{\"min-h\":[Lr,t,\"min\",\"max\",\"fit\",\"svh\",\"lvh\",\"dvh\"]}],\"max-h\":[{\"max-h\":[Lr,t,\"min\",\"max\",\"fit\",\"svh\",\"lvh\",\"dvh\"]}],size:[{size:[Lr,t,\"auto\",\"min\",\"max\",\"fit\"]}],\"font-size\":[{text:[\"base\",_C,SC]}],\"font-smoothing\":[\"antialiased\",\"subpixel-antialiased\"],\"font-style\":[\"italic\",\"not-italic\"],\"font-weight\":[{font:[\"thin\",\"extralight\",\"light\",\"normal\",\"medium\",\"semibold\",\"bold\",\"extrabold\",\"black\",j2e]}],\"font-family\":[{font:[tj]}],\"fvn-normal\":[\"normal-nums\"],\"fvn-ordinal\":[\"ordinal\"],\"fvn-slashed-zero\":[\"slashed-zero\"],\"fvn-figure\":[\"lining-nums\",\"oldstyle-nums\"],\"fvn-spacing\":[\"proportional-nums\",\"tabular-nums\"],\"fvn-fraction\":[\"diagonal-fractions\",\"stacked-fractions\"],tracking:[{tracking:[\"tighter\",\"tight\",\"normal\",\"wide\",\"wider\",\"widest\",Lr]}],\"line-clamp\":[{\"line-clamp\":[\"none\",lD,j2e]}],leading:[{leading:[\"none\",\"tight\",\"snug\",\"normal\",\"relaxed\",\"loose\",xA,Lr]}],\"list-image\":[{\"list-image\":[\"none\",Lr]}],\"list-style-type\":[{list:[\"none\",\"disc\",\"decimal\",Lr]}],\"list-style-position\":[{list:[\"inside\",\"outside\"]}],\"placeholder-color\":[{placeholder:[e]}],\"placeholder-opacity\":[{\"placeholder-opacity\":[C]}],\"text-alignment\":[{text:[\"left\",\"center\",\"right\",\"justify\",\"start\",\"end\"]}],\"text-color\":[{text:[e]}],\"text-opacity\":[{\"text-opacity\":[C]}],\"text-decoration\":[\"underline\",\"overline\",\"line-through\",\"no-underline\"],\"text-decoration-style\":[{decoration:[...U(),\"wavy\"]}],\"text-decoration-thickness\":[{decoration:[\"auto\",\"from-font\",xA,SC]}],\"underline-offset\":[{\"underline-offset\":[\"auto\",xA,Lr]}],\"text-decoration-color\":[{decoration:[e]}],\"text-transform\":[\"uppercase\",\"lowercase\",\"capitalize\",\"normal-case\"],\"text-overflow\":[\"truncate\",\"text-ellipsis\",\"text-clip\"],\"text-wrap\":[{text:[\"wrap\",\"nowrap\",\"balance\",\"pretty\"]}],indent:[{indent:X()}],\"vertical-align\":[{align:[\"baseline\",\"top\",\"middle\",\"bottom\",\"text-top\",\"text-bottom\",\"sub\",\"super\",Lr]}],whitespace:[{whitespace:[\"normal\",\"nowrap\",\"pre\",\"pre-line\",\"pre-wrap\",\"break-spaces\"]}],break:[{break:[\"normal\",\"words\",\"all\",\"keep\"]}],hyphens:[{hyphens:[\"none\",\"manual\",\"auto\"]}],content:[{content:[\"none\",Lr]}],\"bg-attachment\":[{bg:[\"fixed\",\"local\",\"scroll\"]}],\"bg-clip\":[{\"bg-clip\":[\"border\",\"padding\",\"content\",\"text\"]}],\"bg-opacity\":[{\"bg-opacity\":[C]}],\"bg-origin\":[{\"bg-origin\":[\"border\",\"padding\",\"content\"]}],\"bg-position\":[{bg:[...O(),_Qt]}],\"bg-repeat\":[{bg:[\"no-repeat\",{repeat:[\"\",\"x\",\"y\",\"round\",\"space\"]}]}],\"bg-size\":[{bg:[\"auto\",\"cover\",\"contain\",SQt]}],\"bg-image\":[{bg:[\"none\",{\"gradient-to\":[\"t\",\"tr\",\"r\",\"br\",\"b\",\"bl\",\"l\",\"tl\"]},CQt]}],\"bg-color\":[{bg:[e]}],\"gradient-from-pos\":[{from:[w]}],\"gradient-via-pos\":[{via:[w]}],\"gradient-to-pos\":[{to:[w]}],\"gradient-from\":[{from:[y]}],\"gradient-via\":[{via:[y]}],\"gradient-to\":[{to:[y]}],rounded:[{rounded:[i]}],\"rounded-s\":[{\"rounded-s\":[i]}],\"rounded-e\":[{\"rounded-e\":[i]}],\"rounded-t\":[{\"rounded-t\":[i]}],\"rounded-r\":[{\"rounded-r\":[i]}],\"rounded-b\":[{\"rounded-b\":[i]}],\"rounded-l\":[{\"rounded-l\":[i]}],\"rounded-ss\":[{\"rounded-ss\":[i]}],\"rounded-se\":[{\"rounded-se\":[i]}],\"rounded-ee\":[{\"rounded-ee\":[i]}],\"rounded-es\":[{\"rounded-es\":[i]}],\"rounded-tl\":[{\"rounded-tl\":[i]}],\"rounded-tr\":[{\"rounded-tr\":[i]}],\"rounded-br\":[{\"rounded-br\":[i]}],\"rounded-bl\":[{\"rounded-bl\":[i]}],\"border-w\":[{border:[c]}],\"border-w-x\":[{\"border-x\":[c]}],\"border-w-y\":[{\"border-y\":[c]}],\"border-w-s\":[{\"border-s\":[c]}],\"border-w-e\":[{\"border-e\":[c]}],\"border-w-t\":[{\"border-t\":[c]}],\"border-w-r\":[{\"border-r\":[c]}],\"border-w-b\":[{\"border-b\":[c]}],\"border-w-l\":[{\"border-l\":[c]}],\"border-opacity\":[{\"border-opacity\":[C]}],\"border-style\":[{border:[...U(),\"hidden\"]}],\"divide-x\":[{\"divide-x\":[c]}],\"divide-x-reverse\":[\"divide-x-reverse\"],\"divide-y\":[{\"divide-y\":[c]}],\"divide-y-reverse\":[\"divide-y-reverse\"],\"divide-opacity\":[{\"divide-opacity\":[C]}],\"divide-style\":[{divide:U()}],\"border-color\":[{border:[o]}],\"border-color-x\":[{\"border-x\":[o]}],\"border-color-y\":[{\"border-y\":[o]}],\"border-color-s\":[{\"border-s\":[o]}],\"border-color-e\":[{\"border-e\":[o]}],\"border-color-t\":[{\"border-t\":[o]}],\"border-color-r\":[{\"border-r\":[o]}],\"border-color-b\":[{\"border-b\":[o]}],\"border-color-l\":[{\"border-l\":[o]}],\"divide-color\":[{divide:[o]}],\"outline-style\":[{outline:[\"\",...U()]}],\"outline-offset\":[{\"outline-offset\":[xA,Lr]}],\"outline-w\":[{outline:[xA,SC]}],\"outline-color\":[{outline:[e]}],\"ring-w\":[{ring:F()}],\"ring-w-inset\":[\"ring-inset\"],\"ring-color\":[{ring:[e]}],\"ring-opacity\":[{\"ring-opacity\":[C]}],\"ring-offset-w\":[{\"ring-offset\":[xA,SC]}],\"ring-offset-color\":[{\"ring-offset\":[e]}],shadow:[{shadow:[\"\",\"inner\",\"none\",_C,RQt]}],\"shadow-color\":[{shadow:[tj]}],opacity:[{opacity:[C]}],\"mix-blend\":[{\"mix-blend\":[...P(),\"plus-lighter\",\"plus-darker\"]}],\"bg-blend\":[{\"bg-blend\":P()}],filter:[{filter:[\"\",\"none\"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],\"drop-shadow\":[{\"drop-shadow\":[\"\",\"none\",_C,Lr]}],grayscale:[{grayscale:[d]}],\"hue-rotate\":[{\"hue-rotate\":[m]}],invert:[{invert:[h]}],saturate:[{saturate:[B]}],sepia:[{sepia:[G]}],\"backdrop-filter\":[{\"backdrop-filter\":[\"\",\"none\"]}],\"backdrop-blur\":[{\"backdrop-blur\":[n]}],\"backdrop-brightness\":[{\"backdrop-brightness\":[r]}],\"backdrop-contrast\":[{\"backdrop-contrast\":[l]}],\"backdrop-grayscale\":[{\"backdrop-grayscale\":[d]}],\"backdrop-hue-rotate\":[{\"backdrop-hue-rotate\":[m]}],\"backdrop-invert\":[{\"backdrop-invert\":[h]}],\"backdrop-opacity\":[{\"backdrop-opacity\":[C]}],\"backdrop-saturate\":[{\"backdrop-saturate\":[B]}],\"backdrop-sepia\":[{\"backdrop-sepia\":[G]}],\"border-collapse\":[{border:[\"collapse\",\"separate\"]}],\"border-spacing\":[{\"border-spacing\":[a]}],\"border-spacing-x\":[{\"border-spacing-x\":[a]}],\"border-spacing-y\":[{\"border-spacing-y\":[a]}],\"table-layout\":[{table:[\"auto\",\"fixed\"]}],caption:[{caption:[\"top\",\"bottom\"]}],transition:[{transition:[\"none\",\"all\",\"\",\"colors\",\"opacity\",\"shadow\",\"transform\",Lr]}],duration:[{duration:H()}],ease:[{ease:[\"linear\",\"in\",\"out\",\"in-out\",Lr]}],delay:[{delay:H()}],animate:[{animate:[\"none\",\"spin\",\"ping\",\"pulse\",\"bounce\",Lr]}],transform:[{transform:[\"\",\"gpu\",\"none\"]}],scale:[{scale:[z]}],\"scale-x\":[{\"scale-x\":[z]}],\"scale-y\":[{\"scale-y\":[z]}],rotate:[{rotate:[ej,Lr]}],\"translate-x\":[{\"translate-x\":[ie]}],\"translate-y\":[{\"translate-y\":[ie]}],\"skew-x\":[{\"skew-x\":[J]}],\"skew-y\":[{\"skew-y\":[J]}],\"transform-origin\":[{origin:[\"center\",\"top\",\"top-right\",\"right\",\"bottom-right\",\"bottom\",\"bottom-left\",\"left\",\"top-left\",Lr]}],accent:[{accent:[\"auto\",e]}],appearance:[{appearance:[\"none\",\"auto\"]}],cursor:[{cursor:[\"auto\",\"default\",\"pointer\",\"wait\",\"text\",\"move\",\"help\",\"not-allowed\",\"none\",\"context-menu\",\"progress\",\"cell\",\"crosshair\",\"vertical-text\",\"alias\",\"copy\",\"no-drop\",\"grab\",\"grabbing\",\"all-scroll\",\"col-resize\",\"row-resize\",\"n-resize\",\"e-resize\",\"s-resize\",\"w-resize\",\"ne-resize\",\"nw-resize\",\"se-resize\",\"sw-resize\",\"ew-resize\",\"ns-resize\",\"nesw-resize\",\"nwse-resize\",\"zoom-in\",\"zoom-out\",Lr]}],\"caret-color\":[{caret:[e]}],\"pointer-events\":[{\"pointer-events\":[\"none\",\"auto\"]}],resize:[{resize:[\"none\",\"y\",\"x\",\"\"]}],\"scroll-behavior\":[{scroll:[\"auto\",\"smooth\"]}],\"scroll-m\":[{\"scroll-m\":X()}],\"scroll-mx\":[{\"scroll-mx\":X()}],\"scroll-my\":[{\"scroll-my\":X()}],\"scroll-ms\":[{\"scroll-ms\":X()}],\"scroll-me\":[{\"scroll-me\":X()}],\"scroll-mt\":[{\"scroll-mt\":X()}],\"scroll-mr\":[{\"scroll-mr\":X()}],\"scroll-mb\":[{\"scroll-mb\":X()}],\"scroll-ml\":[{\"scroll-ml\":X()}],\"scroll-p\":[{\"scroll-p\":X()}],\"scroll-px\":[{\"scroll-px\":X()}],\"scroll-py\":[{\"scroll-py\":X()}],\"scroll-ps\":[{\"scroll-ps\":X()}],\"scroll-pe\":[{\"scroll-pe\":X()}],\"scroll-pt\":[{\"scroll-pt\":X()}],\"scroll-pr\":[{\"scroll-pr\":X()}],\"scroll-pb\":[{\"scroll-pb\":X()}],\"scroll-pl\":[{\"scroll-pl\":X()}],\"snap-align\":[{snap:[\"start\",\"end\",\"center\",\"align-none\"]}],\"snap-stop\":[{snap:[\"normal\",\"always\"]}],\"snap-type\":[{snap:[\"none\",\"x\",\"y\",\"both\"]}],\"snap-strictness\":[{snap:[\"mandatory\",\"proximity\"]}],touch:[{touch:[\"auto\",\"none\",\"manipulation\"]}],\"touch-x\":[{\"touch-pan\":[\"x\",\"left\",\"right\"]}],\"touch-y\":[{\"touch-pan\":[\"y\",\"up\",\"down\"]}],\"touch-pz\":[\"touch-pinch-zoom\"],select:[{select:[\"none\",\"text\",\"all\",\"auto\"]}],\"will-change\":[{\"will-change\":[\"auto\",\"scroll\",\"contents\",\"transform\",Lr]}],fill:[{fill:[e,\"none\"]}],\"stroke-w\":[{stroke:[xA,SC,j2e]}],stroke:[{stroke:[e,\"none\"]}],sr:[\"sr-only\",\"not-sr-only\"],\"forced-color-adjust\":[{\"forced-color-adjust\":[\"auto\",\"none\"]}]},conflictingClassGroups:{overflow:[\"overflow-x\",\"overflow-y\"],overscroll:[\"overscroll-x\",\"overscroll-y\"],inset:[\"inset-x\",\"inset-y\",\"start\",\"end\",\"top\",\"right\",\"bottom\",\"left\"],\"inset-x\":[\"right\",\"left\"],\"inset-y\":[\"top\",\"bottom\"],flex:[\"basis\",\"grow\",\"shrink\"],gap:[\"gap-x\",\"gap-y\"],p:[\"px\",\"py\",\"ps\",\"pe\",\"pt\",\"pr\",\"pb\",\"pl\"],px:[\"pr\",\"pl\"],py:[\"pt\",\"pb\"],m:[\"mx\",\"my\",\"ms\",\"me\",\"mt\",\"mr\",\"mb\",\"ml\"],mx:[\"mr\",\"ml\"],my:[\"mt\",\"mb\"],size:[\"w\",\"h\"],\"font-size\":[\"leading\"],\"fvn-normal\":[\"fvn-ordinal\",\"fvn-slashed-zero\",\"fvn-figure\",\"fvn-spacing\",\"fvn-fraction\"],\"fvn-ordinal\":[\"fvn-normal\"],\"fvn-slashed-zero\":[\"fvn-normal\"],\"fvn-figure\":[\"fvn-normal\"],\"fvn-spacing\":[\"fvn-normal\"],\"fvn-fraction\":[\"fvn-normal\"],\"line-clamp\":[\"display\",\"overflow\"],rounded:[\"rounded-s\",\"rounded-e\",\"rounded-t\",\"rounded-r\",\"rounded-b\",\"rounded-l\",\"rounded-ss\",\"rounded-se\",\"rounded-ee\",\"rounded-es\",\"rounded-tl\",\"rounded-tr\",\"rounded-br\",\"rounded-bl\"],\"rounded-s\":[\"rounded-ss\",\"rounded-es\"],\"rounded-e\":[\"rounded-se\",\"rounded-ee\"],\"rounded-t\":[\"rounded-tl\",\"rounded-tr\"],\"rounded-r\":[\"rounded-tr\",\"rounded-br\"],\"rounded-b\":[\"rounded-br\",\"rounded-bl\"],\"rounded-l\":[\"rounded-tl\",\"rounded-bl\"],\"border-spacing\":[\"border-spacing-x\",\"border-spacing-y\"],\"border-w\":[\"border-w-s\",\"border-w-e\",\"border-w-t\",\"border-w-r\",\"border-w-b\",\"border-w-l\"],\"border-w-x\":[\"border-w-r\",\"border-w-l\"],\"border-w-y\":[\"border-w-t\",\"border-w-b\"],\"border-color\":[\"border-color-s\",\"border-color-e\",\"border-color-t\",\"border-color-r\",\"border-color-b\",\"border-color-l\"],\"border-color-x\":[\"border-color-r\",\"border-color-l\"],\"border-color-y\":[\"border-color-t\",\"border-color-b\"],\"scroll-m\":[\"scroll-mx\",\"scroll-my\",\"scroll-ms\",\"scroll-me\",\"scroll-mt\",\"scroll-mr\",\"scroll-mb\",\"scroll-ml\"],\"scroll-mx\":[\"scroll-mr\",\"scroll-ml\"],\"scroll-my\":[\"scroll-mt\",\"scroll-mb\"],\"scroll-p\":[\"scroll-px\",\"scroll-py\",\"scroll-ps\",\"scroll-pe\",\"scroll-pt\",\"scroll-pr\",\"scroll-pb\",\"scroll-pl\"],\"scroll-px\":[\"scroll-pr\",\"scroll-pl\"],\"scroll-py\":[\"scroll-pt\",\"scroll-pb\"],touch:[\"touch-x\",\"touch-y\",\"touch-pz\"],\"touch-x\":[\"touch\"],\"touch-y\":[\"touch\"],\"touch-pz\":[\"touch\"]},conflictingClassGroupModifiers:{\"font-size\":[\"leading\"]}}};var gut=hQt(NQt);function ve(...e){return gut(uut(e))}var ut={base:\"ock-font-family\",body:\"ock-font-family font-normal text-base\",caption:\"ock-font-family font-semibold text-xs\",headline:\"ock-font-family font-semibold\",label1:\"ock-font-family font-semibold text-sm\",label2:\"ock-font-family text-sm\",legal:\"ock-font-family text-xs\",title1:\"ock-font-family font-semibold text-2xl\",title3:\"ock-font-family font-semibold text-xl\"},Xt={default:\"cursor-pointer ock-bg-default active:bg-[var(--ock-bg-default-active)] hover:bg-[var(--ock-bg-default-hover)]\",alternate:\"cursor-pointer ock-bg-alternate active:bg-[var(--ock-bg-alternate-active)] hover:bg-[var(--ock-bg-alternate-hover)]\",inverse:\"cursor-pointer ock-bg-inverse active:bg-[var(--ock-bg-inverse-active)] hover:bg-[var(--ock-bg-inverse-hover)]\",primary:\"cursor-pointer ock-bg-primary active:bg-[var(--ock-bg-primary-active)] hover:bg-[var(--ock-bg-primary-hover)]\",secondary:\"cursor-pointer ock-bg-secondary active:bg-[var(--ock-bg-secondary-active)] hover:bg-[var(--ock-bg-secondary-hover)]\",coinbaseBranding:\"cursor-pointer bg-[#0052FF] hover:bg-[#0045D8]\",shadow:\"ock-shadow-default\",disabled:\"opacity-[0.38] pointer-events-none\"},_n={default:\"ock-bg-default\",alternate:\"ock-bg-alternate\",inverse:\"ock-bg-inverse\",primary:\"ock-bg-primary\",secondary:\"ock-bg-secondary\",error:\"ock-bg-error\",warning:\"ock-bg-warning\",success:\"ock-bg-success\",washed:\"ock-bg-primary-washed\",disabled:\"ock-bg-primary-disabled\",reverse:\"ock-bg-default-reverse\"},ft={inverse:\"ock-text-inverse\",foreground:\"ock-text-foreground\",foregroundMuted:\"ock-text-foreground-muted\",error:\"ock-text-error\",primary:\"ock-text-primary\",success:\"ock-text-success\",warning:\"ock-text-warning\",disabled:\"ock-text-disabled\"};var xt={default:\"ock-border-default\",defaultActive:\"ock-border-default-active\",linePrimary:\"ock-border-line-primary border\",lineDefault:\"ock-border-line-default border\",lineHeavy:\"ock-border-line-heavy border\",lineInverse:\"ock-border-line-inverse border\",radius:\"ock-border-radius\",radiusInner:\"ock-border-radius-inner\"};var nn={primary:\"ock-icon-color-primary\",foreground:\"ock-icon-color-foreground\",foregroundMuted:\"ock-icon-color-foreground-muted\",inverse:\"ock-icon-color-inverse\",error:\"ock-icon-color-error\",success:\"ock-icon-color-success\",warning:\"ock-icon-color-warning\"};f();var GI=ge(at(),1),yut=e=>{let t=(0,GI.useRef)(null),n=(0,GI.useCallback)(o=>{t.current&&clearInterval(t.current),t.current=window.setInterval(()=>{o.closed&&(t.current&&(clearInterval(t.current),t.current=null),e?.())},500)},[e]),r=(0,GI.useCallback)(()=>{t.current&&(clearInterval(t.current),t.current=null)},[]);return(0,GI.useEffect)(()=>()=>r(),[r]),{startPopupMonitor:n,stopPopupMonitor:r}};f();var nj=ge(We(),1),zre=({fill:e=\"#E11D48\"})=>(0,nj.jsxs)(\"svg\",{\"aria-label\":\"ock-errorSvg\",width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"data-testid\":\"ock-errorSvg\",children:[(0,nj.jsx)(\"title\",{children:\"Error\"}),(0,nj.jsx)(\"path\",{d:\"M8 16C12.4183 16 16 12.4183 16 8C16 3.58171 12.4183 0 8 0C3.58172 0 0 3.58171 0 8C0 12.4183 3.58172 16 8 16ZM11.7576 5.0909L8.84853 8L11.7576 10.9091L10.9091 11.7576L8 8.84851L5.09093 11.7576L4.2424 10.9091L7.15147 8L4.2424 5.0909L5.09093 4.24239L8 7.15145L10.9091 4.24239L11.7576 5.0909Z\",fill:e})]});f();function V2e({url:e,target:t,height:n,width:r}){let o=Math.round((window.screen.width-r)/2),i=Math.round((window.screen.height-n)/2),a=`width=${r},height=${n},resizable,scrollbars=yes,status=1,left=${o},top=${i}`;return window.open(e,t,a)}f();var Ga=()=>({sendAnalytics:tre});f();var G2e=ge(We(),1);function M0({className:e}){return(0,G2e.jsx)(\"div\",{className:\"flex h-full items-center justify-center\",\"data-testid\":\"ockSpinner\",children:(0,G2e.jsx)(\"div\",{className:ve(\"animate-spin border-2 border-gray-200 border-t-3\",\"rounded-full border-t-gray-400 px-2.5 py-2.5\",e)})})}f();var rj=ge(We(),1);var but=({className:e=ve(nn.inverse)})=>(0,rj.jsxs)(\"svg\",{\"data-testid\":\"ock-addSvg\",role:\"img\",\"aria-label\":\"ock-addSvg\",width:\"13\",height:\"12\",viewBox:\"0 0 13 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,rj.jsx)(\"title\",{children:\"Add\"}),(0,rj.jsx)(\"path\",{d:\"M7.125 0H5.875V5.37501L0.5 5.37501L0.5 6.62501H5.875V12H7.125V6.62501H12.5V5.37501H7.125V0Z\",className:e})]});f();var oj=ge(We(),1),fD=({fill:e=\"#65A30D\"})=>(0,oj.jsxs)(\"svg\",{\"aria-label\":\"ock-successSvg\",width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"data-testid\":\"ock-successSvg\",children:[(0,oj.jsx)(\"title\",{children:\"Success SVG\"}),(0,oj.jsx)(\"path\",{d:\"M8 0C3.58 0 0 3.58 0 8C0 12.42 3.58 16 8 16C12.42 16 16 12.42 16 8C16 3.58 12.42 0 8 0ZM6.72667 11.5333L3.73333 8.54L4.67333 7.6L6.72667 9.65333L11.44 4.94L12.38 5.88L6.72667 11.5333Z\",fill:e})]});f();var Jd=ge(We(),1),Pc=ge(at(),1);f();var wut=ge(We(),1);f();var vut=ge(at(),1);function ad(e){return(0,vut.useMemo)(()=>e,[e])}var jre=ge(at(),1),PQt={},xut=(0,jre.createContext)(PQt);function wm(){return(0,jre.useContext)(xut)}function Wre(e){let{chain:t}=Fo(),n=e.chain??t,r=ad({address:e.address||\"\",chain:n,schemaId:e.schemaId});return(0,wut.jsx)(xut.Provider,{value:r,children:e.children})}f();var mx=ge(We(),1);f();f();f();gn();va();function xm(e){let t=y_(\"apiKey\");return vE({chain:e,transport:(e===fr||e===Cs)&&!!t?hl(`${e===fr?\"https://api.developer.coinbase.com/rpc/v1/base\":\"https://api.developer.coinbase.com/rpc/v1/base-sepolia\"}/${t}`):hl()})}va();f();f();f();_pe();function Eut(e){return Spe(e)}function pD(e){return Eut(e)}f();f();gn();var Aut=(e,t)=>{let n=Uint8Array.from(e.split(\"\").map(c=>c.charCodeAt(0))),r=k9(n);return Number.parseInt(r,16)%t};var q2e=e=>{let t=Aut(e,Bxe.length),n=Bxe[t];return`data:image/svg+xml;base64,${btoa(n)}`};f();var qI=e=>!!(e.endsWith(\".base.eth\")||e.endsWith(\".basetest.eth\"));var K2e=async({ensName:e,chain:t=ia})=>{let n=Y5({chainId:t.id}),o=Z5({chainId:t.id})||n,i=qI(e);if(!o)return Promise.reject(\"ChainId not supported, avatar resolution is only supported on Ethereum and Base.\");let a=xm(t),c=null;if(n)try{if(c=await a.getEnsAvatar({name:pD(e),universalResolverAddress:QM[t.id]}),c)return c}catch{}a=xm(ia);let l=await a.getEnsAvatar({name:pD(e)});return l||(i?q2e(e):null)};f();var $f={gcTime:18e5,staleTime:3e5,refetchOnWindowFocus:!1};va();var Y2e=({ensName:e,chain:t=ia},n)=>{let r=[\"useAvatar\",e,t.id];return Hp({queryKey:r,queryFn:()=>K2e({ensName:e,chain:t}),enabled:!!e,...$f,gcTime:n?.cacheTime,...n})};f();f();va();f();var Z2e=[{inputs:[{internalType:\"contract ENS\",name:\"ens_\",type:\"address\"},{internalType:\"address\",name:\"registrarController_\",type:\"address\"},{internalType:\"address\",name:\"reverseRegistrar_\",type:\"address\"},{internalType:\"address\",name:\"owner_\",type:\"address\"}],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[],name:\"AlreadyInitialized\",type:\"error\"},{inputs:[],name:\"CantSetSelfAsDelegate\",type:\"error\"},{inputs:[],name:\"CantSetSelfAsOperator\",type:\"error\"},{inputs:[],name:\"NewOwnerIsZeroAddress\",type:\"error\"},{inputs:[],name:\"NoHandoverRequest\",type:\"error\"},{inputs:[],name:\"Unauthorized\",type:\"error\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!0,internalType:\"uint256\",name:\"contentType\",type:\"uint256\"}],name:\"ABIChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"address\",name:\"a\",type:\"address\"}],name:\"AddrChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"uint256\",name:\"coinType\",type:\"uint256\"},{indexed:!1,internalType:\"bytes\",name:\"newAddress\",type:\"bytes\"}],name:\"AddressChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"owner\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"operator\",type:\"address\"},{indexed:!1,internalType:\"bool\",name:\"approved\",type:\"bool\"}],name:\"ApprovalForAll\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!1,internalType:\"address\",name:\"owner\",type:\"address\"},{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!0,internalType:\"address\",name:\"delegate\",type:\"address\"},{indexed:!0,internalType:\"bool\",name:\"approved\",type:\"bool\"}],name:\"Approved\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"bytes\",name:\"hash\",type:\"bytes\"}],name:\"ContenthashChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"bytes\",name:\"name\",type:\"bytes\"},{indexed:!1,internalType:\"uint16\",name:\"resource\",type:\"uint16\"},{indexed:!1,internalType:\"bytes\",name:\"record\",type:\"bytes\"}],name:\"DNSRecordChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"bytes\",name:\"name\",type:\"bytes\"},{indexed:!1,internalType:\"uint16\",name:\"resource\",type:\"uint16\"}],name:\"DNSRecordDeleted\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"bytes\",name:\"lastzonehash\",type:\"bytes\"},{indexed:!1,internalType:\"bytes\",name:\"zonehash\",type:\"bytes\"}],name:\"DNSZonehashChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!0,internalType:\"bytes4\",name:\"interfaceID\",type:\"bytes4\"},{indexed:!1,internalType:\"address\",name:\"implementer\",type:\"address\"}],name:\"InterfaceChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"string\",name:\"name\",type:\"string\"}],name:\"NameChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"pendingOwner\",type:\"address\"}],name:\"OwnershipHandoverCanceled\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"pendingOwner\",type:\"address\"}],name:\"OwnershipHandoverRequested\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"oldOwner\",type:\"address\"},{indexed:!0,internalType:\"address\",name:\"newOwner\",type:\"address\"}],name:\"OwnershipTransferred\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"bytes32\",name:\"x\",type:\"bytes32\"},{indexed:!1,internalType:\"bytes32\",name:\"y\",type:\"bytes32\"}],name:\"PubkeyChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"newRegistrarController\",type:\"address\"}],name:\"RegistrarControllerUpdated\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"address\",name:\"newReverseRegistrar\",type:\"address\"}],name:\"ReverseRegistrarUpdated\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!0,internalType:\"string\",name:\"indexedKey\",type:\"string\"},{indexed:!1,internalType:\"string\",name:\"key\",type:\"string\"},{indexed:!1,internalType:\"string\",name:\"value\",type:\"string\"}],name:\"TextChanged\",type:\"event\"},{anonymous:!1,inputs:[{indexed:!0,internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{indexed:!1,internalType:\"uint64\",name:\"newVersion\",type:\"uint64\"}],name:\"VersionChanged\",type:\"event\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"uint256\",name:\"contentTypes\",type:\"uint256\"}],name:\"ABI\",outputs:[{internalType:\"uint256\",name:\"\",type:\"uint256\"},{internalType:\"bytes\",name:\"\",type:\"bytes\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"}],name:\"addr\",outputs:[{internalType:\"address payable\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"uint256\",name:\"coinType\",type:\"uint256\"}],name:\"addr\",outputs:[{internalType:\"bytes\",name:\"\",type:\"bytes\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"address\",name:\"delegate\",type:\"address\"},{internalType:\"bool\",name:\"approved\",type:\"bool\"}],name:\"approve\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[],name:\"cancelOwnershipHandover\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"}],name:\"clearRecords\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"pendingOwner\",type:\"address\"}],name:\"completeOwnershipHandover\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"}],name:\"contenthash\",outputs:[{internalType:\"bytes\",name:\"\",type:\"bytes\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"name\",type:\"bytes32\"},{internalType:\"uint16\",name:\"resource\",type:\"uint16\"}],name:\"dnsRecord\",outputs:[{internalType:\"bytes\",name:\"\",type:\"bytes\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"ens\",outputs:[{internalType:\"contract ENS\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"name\",type:\"bytes32\"}],name:\"hasDNSRecords\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"bytes4\",name:\"interfaceID\",type:\"bytes4\"}],name:\"interfaceImplementer\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"owner\",type:\"address\"},{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"address\",name:\"delegate\",type:\"address\"}],name:\"isApprovedFor\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"account\",type:\"address\"},{internalType:\"address\",name:\"operator\",type:\"address\"}],name:\"isApprovedForAll\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes[]\",name:\"data\",type:\"bytes[]\"}],name:\"multicall\",outputs:[{internalType:\"bytes[]\",name:\"results\",type:\"bytes[]\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"nodehash\",type:\"bytes32\"},{internalType:\"bytes[]\",name:\"data\",type:\"bytes[]\"}],name:\"multicallWithNodeCheck\",outputs:[{internalType:\"bytes[]\",name:\"results\",type:\"bytes[]\"}],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"}],name:\"name\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"owner\",outputs:[{internalType:\"address\",name:\"result\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"pendingOwner\",type:\"address\"}],name:\"ownershipHandoverExpiresAt\",outputs:[{internalType:\"uint256\",name:\"result\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"}],name:\"pubkey\",outputs:[{internalType:\"bytes32\",name:\"x\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"y\",type:\"bytes32\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"\",type:\"bytes32\"}],name:\"recordVersions\",outputs:[{internalType:\"uint64\",name:\"\",type:\"uint64\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"registrarController\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"renounceOwnership\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[],name:\"requestOwnershipHandover\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{internalType:\"bytes\",name:\"\",type:\"bytes\"},{internalType:\"bytes\",name:\"data\",type:\"bytes\"}],name:\"resolve\",outputs:[{internalType:\"bytes\",name:\"\",type:\"bytes\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"reverseRegistrar\",outputs:[{internalType:\"address\",name:\"\",type:\"address\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"uint256\",name:\"contentType\",type:\"uint256\"},{internalType:\"bytes\",name:\"data\",type:\"bytes\"}],name:\"setABI\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"uint256\",name:\"coinType\",type:\"uint256\"},{internalType:\"bytes\",name:\"a\",type:\"bytes\"}],name:\"setAddr\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"address\",name:\"a\",type:\"address\"}],name:\"setAddr\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"operator\",type:\"address\"},{internalType:\"bool\",name:\"approved\",type:\"bool\"}],name:\"setApprovalForAll\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"bytes\",name:\"hash\",type:\"bytes\"}],name:\"setContenthash\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"bytes\",name:\"data\",type:\"bytes\"}],name:\"setDNSRecords\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"bytes4\",name:\"interfaceID\",type:\"bytes4\"},{internalType:\"address\",name:\"implementer\",type:\"address\"}],name:\"setInterface\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"string\",name:\"newName\",type:\"string\"}],name:\"setName\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"x\",type:\"bytes32\"},{internalType:\"bytes32\",name:\"y\",type:\"bytes32\"}],name:\"setPubkey\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"registrarController_\",type:\"address\"}],name:\"setRegistrarController\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"reverseRegistrar_\",type:\"address\"}],name:\"setReverseRegistrar\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"string\",name:\"key\",type:\"string\"},{internalType:\"string\",name:\"value\",type:\"string\"}],name:\"setText\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"bytes\",name:\"hash\",type:\"bytes\"}],name:\"setZonehash\",outputs:[],stateMutability:\"nonpayable\",type:\"function\"},{inputs:[{internalType:\"bytes4\",name:\"interfaceID\",type:\"bytes4\"}],name:\"supportsInterface\",outputs:[{internalType:\"bool\",name:\"\",type:\"bool\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"},{internalType:\"string\",name:\"key\",type:\"string\"}],name:\"text\",outputs:[{internalType:\"string\",name:\"\",type:\"string\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{internalType:\"address\",name:\"newOwner\",type:\"address\"}],name:\"transferOwnership\",outputs:[],stateMutability:\"payable\",type:\"function\"},{inputs:[{internalType:\"bytes32\",name:\"node\",type:\"bytes32\"}],name:\"zonehash\",outputs:[{internalType:\"bytes\",name:\"\",type:\"bytes\"}],stateMutability:\"view\",type:\"function\"}];f();gn();f();va();var Sut=e=>e===ia.id?\"addr\":((2147483648|e)>>>0).toString(16).toLocaleUpperCase();var Q2e=(e,t)=>{let n=e.toLocaleLowerCase(),r=dr(n.substring(2)),o=Sut(t),i=k_(`${o.toLocaleUpperCase()}.reverse`);return dr(g3([\"bytes32\",\"bytes32\"],[i,r]))};f();va();var DQt=xm(ia),KI=async({name:e})=>await DQt.getEnsAddress({name:e})??null;var ij=async({address:e,chain:t=ia})=>{let n=Y5({chainId:t.id});if(!(Z5({chainId:t.id})||n))return Promise.reject(\"ChainId not supported, name resolution is only supported on Ethereum and Base.\");let i=xm(t);if(n){let c=Q2e(e,fr.id);try{let l=await i.readContract({abi:Z2e,address:QM[t.id],functionName:\"name\",args:[c]});if(l)try{let d=await KI({name:l});if(d&&d.toLowerCase()===e.toLowerCase())return l}catch(d){console.error(\"Error during basename forward resolution verification:\",d)}}catch{}}let a=xm(ia);try{let c=await a.getEnsName({address:e});if(c)try{let l=await KI({name:c});if(l&&l.toLowerCase()===e.toLowerCase())return c}catch(l){console.error(\"Error during ENS forward resolution verification:\",l)}}catch{}return null};va();var TC=({address:e,chain:t=ia},n)=>{let r=[\"useName\",e,t.id];return Hp({queryKey:r,queryFn:()=>ij({address:e,chain:t}),enabled:!!e,...$f,gcTime:n?.cacheTime,...n})};f();var _ut=ge(at(),1);function fh(e){return t=>{let n=t?.type;return n&&typeof n==\"object\"&&\"_payload\"in n?n._payload.value[2]===e.name:(0,_ut.isValidElement)(t)&&t.type===e}}var coe=ge(at(),1);f();var J2e=ge(We(),1);var Vre=(0,J2e.jsx)(\"svg\",{\"data-testid\":\"ock-defaultAvatarSVG\",role:\"img\",\"aria-label\":\"ock-defaultAvatarSVG\",width:\"100%\",height:\"100%\",viewBox:\"0 0 40 40\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",className:\"h-full w-full\",children:(0,J2e.jsx)(\"path\",{d:\"M20 40C8.9543 40 0 31.0457 0 20C0 8.9543 8.9543 0 20 0C31.0457 0 40 8.9543 40 20C40 31.0457 31.0457 40 20 40ZM25.6641 13.9974C25.6641 10.8692 23.1282 8.33333 20.0001 8.33333C16.8719 8.33333 14.336 10.8692 14.336 13.9974C14.336 17.1256 16.8719 19.6615 20.0001 19.6615C23.1282 19.6615 25.6641 17.1256 25.6641 13.9974ZM11.3453 23.362L9.53476 28.1875C12.2141 30.8475 15.9019 32.493 19.974 32.5H20.026C24.0981 32.493 27.7859 30.8475 30.4653 28.1874L28.6547 23.362C28.0052 21.625 26.3589 20.4771 24.5162 20.4318C24.4557 20.4771 22.462 21.9271 20 21.9271C17.538 21.9271 15.5443 20.4771 15.4839 20.4318C13.6412 20.462 11.9948 21.625 11.3453 23.362Z\",className:nn.foreground})});f();var Gre=ge(We(),1),Tut=(0,Gre.jsx)(\"svg\",{\"data-testid\":\"ock-defaultLoadingSVG\",role:\"img\",\"aria-label\":\"ock-defaultLoadingSVG\",width:\"100%\",height:\"100%\",viewBox:\"0 0 100 100\",xmlns:\"http://www.w3.org/2000/svg\",children:(0,Gre.jsx)(\"circle\",{cx:\"50\",cy:\"50\",r:\"45\",stroke:\"#333\",fill:\"none\",strokeWidth:\"10\",strokeLinecap:\"round\",children:(0,Gre.jsx)(\"animateTransform\",{attributeName:\"transform\",type:\"rotate\",from:\"0 50 50\",to:\"360 50 50\",dur:\"1s\",repeatCount:\"indefinite\"})})});f();var AD=ge(We(),1);f();f();f();f();f();var qre=JSON;f();var Cut=e=>e.toUpperCase(),Rut=e=>{let t={};return e.forEach((n,r)=>{t[r]=n}),t};f();var Iut=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},kut=(e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0},Out=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0};f();f();f();function hD(e,t){if(!!!e)throw new Error(t)}f();f();f();f();function Nut(e){return typeof e==\"object\"&&e!==null}f();f();function Put(e,t){if(!!!e)throw new Error(t??\"Unexpected invariant triggered.\")}var BQt=/\\\\r\\\\n|[\\\\n\\\\r]/g;function mD(e,t){let n=0,r=1;for(let o of e.body.matchAll(BQt)){if(typeof o.index==\"number\"||Put(!1),o.index>=t)break;n=o.index+o[0].length,r+=1}return{line:r,column:t+1-n}}f();function X2e(e){return Kre(e.source,mD(e.source,e.start))}function Kre(e,t){let n=e.locationOffset.column-1,r=\"\".padStart(n)+e.body,o=t.line-1,i=e.locationOffset.line-1,a=t.line+i,c=t.line===1?n:0,l=t.column+c,d=`${e.name}:${a}:${l}\\n`,m=r.split(/\\\\r\\\\n|[\\\\n\\\\r]/g),h=m[o];if(h.length>120){let g=Math.floor(l/80),y=l%80,w=[];for(let x=0;x<h.length;x+=80)w.push(h.slice(x,x+80));return d+Mut([[`${a} |`,w[0]],...w.slice(1,g+1).map(x=>[\"|\",x]),[\"|\",\"^\".padStart(y)],[\"|\",w[g+1]]])}return d+Mut([[`${a-1} |`,m[o-1]],[`${a} |`,h],[\"|\",\"^\".padStart(l)],[`${a+1} |`,m[o+1]]])}function Mut(e){let t=e.filter(([r,o])=>o!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,o])=>r.padStart(n)+(o?\" \"+o:\"\")).join(`\\n`)}function LQt(e){let t=e[0];return t==null||\"kind\"in t||\"length\"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var Yre=class e extends Error{constructor(t,...n){var r,o,i;let{nodes:a,source:c,positions:l,path:d,originalError:m,extensions:h}=LQt(n);super(t),this.name=\"GraphQLError\",this.path=d??void 0,this.originalError=m??void 0,this.nodes=Dut(Array.isArray(a)?a:a?[a]:void 0);let g=Dut((r=this.nodes)===null||r===void 0?void 0:r.map(w=>w.loc).filter(w=>w!=null));this.source=c??(g==null||(o=g[0])===null||o===void 0?void 0:o.source),this.positions=l??g?.map(w=>w.start),this.locations=l&&c?l.map(w=>mD(c,w)):g?.map(w=>mD(w.source,w.start));let y=Nut(m?.extensions)?m?.extensions:void 0;this.extensions=(i=h??y)!==null&&i!==void 0?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),m!=null&&m.stack?Object.defineProperty(this,\"stack\",{value:m.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,\"stack\",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return\"GraphQLError\"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=`\\n\\n`+X2e(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=`\\n\\n`+Kre(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function Dut(e){return e===void 0||e.length===0?void 0:e}function qu(e,t,n){return new Yre(`Syntax Error: ${n}`,{source:e,positions:[t]})}f();var aj=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return\"Location\"}toJSON(){return{start:this.start,end:this.end}}},gD=class{constructor(t,n,r,o,i,a){this.kind=t,this.start=n,this.end=r,this.line=o,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return\"Token\"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},$2e={Name:[],Document:[\"definitions\"],OperationDefinition:[\"name\",\"variableDefinitions\",\"directives\",\"selectionSet\"],VariableDefinition:[\"variable\",\"type\",\"defaultValue\",\"directives\"],Variable:[\"name\"],SelectionSet:[\"selections\"],Field:[\"alias\",\"name\",\"arguments\",\"directives\",\"selectionSet\"],Argument:[\"name\",\"value\"],FragmentSpread:[\"name\",\"directives\"],InlineFragment:[\"typeCondition\",\"directives\",\"selectionSet\"],FragmentDefinition:[\"name\",\"variableDefinitions\",\"typeCondition\",\"directives\",\"selectionSet\"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:[\"values\"],ObjectValue:[\"fields\"],ObjectField:[\"name\",\"value\"],Directive:[\"name\",\"arguments\"],NamedType:[\"name\"],ListType:[\"type\"],NonNullType:[\"type\"],SchemaDefinition:[\"description\",\"directives\",\"operationTypes\"],OperationTypeDefinition:[\"type\"],ScalarTypeDefinition:[\"description\",\"name\",\"directives\"],ObjectTypeDefinition:[\"description\",\"name\",\"interfaces\",\"directives\",\"fields\"],FieldDefinition:[\"description\",\"name\",\"arguments\",\"type\",\"directives\"],InputValueDefinition:[\"description\",\"name\",\"type\",\"defaultValue\",\"directives\"],InterfaceTypeDefinition:[\"description\",\"name\",\"interfaces\",\"directives\",\"fields\"],UnionTypeDefinition:[\"description\",\"name\",\"directives\",\"types\"],EnumTypeDefinition:[\"description\",\"name\",\"directives\",\"values\"],EnumValueDefinition:[\"description\",\"name\",\"directives\"],InputObjectTypeDefinition:[\"description\",\"name\",\"directives\",\"fields\"],DirectiveDefinition:[\"description\",\"name\",\"arguments\",\"locations\"],SchemaExtension:[\"directives\",\"operationTypes\"],ScalarTypeExtension:[\"name\",\"directives\"],ObjectTypeExtension:[\"name\",\"interfaces\",\"directives\",\"fields\"],InterfaceTypeExtension:[\"name\",\"interfaces\",\"directives\",\"fields\"],UnionTypeExtension:[\"name\",\"directives\",\"types\"],EnumTypeExtension:[\"name\",\"directives\",\"values\"],InputObjectTypeExtension:[\"name\",\"directives\",\"fields\"]},UQt=new Set(Object.keys($2e));function eEe(e){let t=e?.kind;return typeof t==\"string\"&&UQt.has(t)}var CC;(function(e){e.QUERY=\"query\",e.MUTATION=\"mutation\",e.SUBSCRIPTION=\"subscription\"})(CC||(CC={}));f();var sj;(function(e){e.QUERY=\"QUERY\",e.MUTATION=\"MUTATION\",e.SUBSCRIPTION=\"SUBSCRIPTION\",e.FIELD=\"FIELD\",e.FRAGMENT_DEFINITION=\"FRAGMENT_DEFINITION\",e.FRAGMENT_SPREAD=\"FRAGMENT_SPREAD\",e.INLINE_FRAGMENT=\"INLINE_FRAGMENT\",e.VARIABLE_DEFINITION=\"VARIABLE_DEFINITION\",e.SCHEMA=\"SCHEMA\",e.SCALAR=\"SCALAR\",e.OBJECT=\"OBJECT\",e.FIELD_DEFINITION=\"FIELD_DEFINITION\",e.ARGUMENT_DEFINITION=\"ARGUMENT_DEFINITION\",e.INTERFACE=\"INTERFACE\",e.UNION=\"UNION\",e.ENUM=\"ENUM\",e.ENUM_VALUE=\"ENUM_VALUE\",e.INPUT_OBJECT=\"INPUT_OBJECT\",e.INPUT_FIELD_DEFINITION=\"INPUT_FIELD_DEFINITION\"})(sj||(sj={}));f();var Un;(function(e){e.NAME=\"Name\",e.DOCUMENT=\"Document\",e.OPERATION_DEFINITION=\"OperationDefinition\",e.VARIABLE_DEFINITION=\"VariableDefinition\",e.SELECTION_SET=\"SelectionSet\",e.FIELD=\"Field\",e.ARGUMENT=\"Argument\",e.FRAGMENT_SPREAD=\"FragmentSpread\",e.INLINE_FRAGMENT=\"InlineFragment\",e.FRAGMENT_DEFINITION=\"FragmentDefinition\",e.VARIABLE=\"Variable\",e.INT=\"IntValue\",e.FLOAT=\"FloatValue\",e.STRING=\"StringValue\",e.BOOLEAN=\"BooleanValue\",e.NULL=\"NullValue\",e.ENUM=\"EnumValue\",e.LIST=\"ListValue\",e.OBJECT=\"ObjectValue\",e.OBJECT_FIELD=\"ObjectField\",e.DIRECTIVE=\"Directive\",e.NAMED_TYPE=\"NamedType\",e.LIST_TYPE=\"ListType\",e.NON_NULL_TYPE=\"NonNullType\",e.SCHEMA_DEFINITION=\"SchemaDefinition\",e.OPERATION_TYPE_DEFINITION=\"OperationTypeDefinition\",e.SCALAR_TYPE_DEFINITION=\"ScalarTypeDefinition\",e.OBJECT_TYPE_DEFINITION=\"ObjectTypeDefinition\",e.FIELD_DEFINITION=\"FieldDefinition\",e.INPUT_VALUE_DEFINITION=\"InputValueDefinition\",e.INTERFACE_TYPE_DEFINITION=\"InterfaceTypeDefinition\",e.UNION_TYPE_DEFINITION=\"UnionTypeDefinition\",e.ENUM_TYPE_DEFINITION=\"EnumTypeDefinition\",e.ENUM_VALUE_DEFINITION=\"EnumValueDefinition\",e.INPUT_OBJECT_TYPE_DEFINITION=\"InputObjectTypeDefinition\",e.DIRECTIVE_DEFINITION=\"DirectiveDefinition\",e.SCHEMA_EXTENSION=\"SchemaExtension\",e.SCALAR_TYPE_EXTENSION=\"ScalarTypeExtension\",e.OBJECT_TYPE_EXTENSION=\"ObjectTypeExtension\",e.INTERFACE_TYPE_EXTENSION=\"InterfaceTypeExtension\",e.UNION_TYPE_EXTENSION=\"UnionTypeExtension\",e.ENUM_TYPE_EXTENSION=\"EnumTypeExtension\",e.INPUT_OBJECT_TYPE_EXTENSION=\"InputObjectTypeExtension\"})(Un||(Un={}));f();f();f();function Zre(e){return e===9||e===32}function yD(e){return e>=48&&e<=57}function But(e){return e>=97&&e<=122||e>=65&&e<=90}function tEe(e){return But(e)||e===95}function Lut(e){return But(e)||yD(e)||e===95}function Uut(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let a=0;a<e.length;++a){var i;let c=e[a],l=FQt(c);l!==c.length&&(r=(i=r)!==null&&i!==void 0?i:a,o=a,a!==0&&l<n&&(n=l))}return e.map((a,c)=>c===0?a:a.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,o+1)}function FQt(e){let t=0;for(;t<e.length&&Zre(e.charCodeAt(t));)++t;return t}function Fut(e,t){let n=e.replace(/\"\"\"/g,\\'\\\\\\\\\"\"\"\\'),r=n.split(/\\\\r\\\\n|[\\\\n\\\\r]/g),o=r.length===1,i=r.length>1&&r.slice(1).every(y=>y.length===0||Zre(y.charCodeAt(0))),a=n.endsWith(\\'\\\\\\\\\"\"\"\\'),c=e.endsWith(\\'\"\\')&&!a,l=e.endsWith(\"\\\\\\\\\"),d=c||l,m=!(t!=null&&t.minimize)&&(!o||e.length>70||d||i||a),h=\"\",g=o&&Zre(e.charCodeAt(0));return(m&&!g||i)&&(h+=`\\n`),h+=n,(m||d)&&(h+=`\\n`),\\'\"\"\"\\'+h+\\'\"\"\"\\'}f();var yt;(function(e){e.SOF=\"<SOF>\",e.EOF=\"<EOF>\",e.BANG=\"!\",e.DOLLAR=\"$\",e.AMP=\"&\",e.PAREN_L=\"(\",e.PAREN_R=\")\",e.SPREAD=\"...\",e.COLON=\":\",e.EQUALS=\"=\",e.AT=\"@\",e.BRACKET_L=\"[\",e.BRACKET_R=\"]\",e.BRACE_L=\"{\",e.PIPE=\"|\",e.BRACE_R=\"}\",e.NAME=\"Name\",e.INT=\"Int\",e.FLOAT=\"Float\",e.STRING=\"String\",e.BLOCK_STRING=\"BlockString\",e.COMMENT=\"Comment\"})(yt||(yt={}));var uj=class{constructor(t){let n=new gD(yt.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return\"Lexer\"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==yt.EOF)do if(t.next)t=t.next;else{let n=HQt(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===yt.COMMENT);return t}};function zut(e){return e===yt.BANG||e===yt.DOLLAR||e===yt.AMP||e===yt.PAREN_L||e===yt.PAREN_R||e===yt.SPREAD||e===yt.COLON||e===yt.EQUALS||e===yt.AT||e===yt.BRACKET_L||e===yt.BRACKET_R||e===yt.BRACE_L||e===yt.PIPE||e===yt.BRACE_R}function bD(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Qre(e,t){return jut(e.charCodeAt(t))&&Wut(e.charCodeAt(t+1))}function jut(e){return e>=55296&&e<=56319}function Wut(e){return e>=56320&&e<=57343}function YI(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return yt.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r===\\'\"\\'?`\\'\"\\'`:`\"${r}\"`}return\"U+\"+n.toString(16).toUpperCase().padStart(4,\"0\")}function Ku(e,t,n,r,o){let i=e.line,a=1+n-e.lineStart;return new gD(t,n,r,i,a,o)}function HQt(e,t){let n=e.source.body,r=n.length,o=t;for(;o<r;){let i=n.charCodeAt(o);switch(i){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:n.charCodeAt(o+1)===10?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return zQt(e,o);case 33:return Ku(e,yt.BANG,o,o+1);case 36:return Ku(e,yt.DOLLAR,o,o+1);case 38:return Ku(e,yt.AMP,o,o+1);case 40:return Ku(e,yt.PAREN_L,o,o+1);case 41:return Ku(e,yt.PAREN_R,o,o+1);case 46:if(n.charCodeAt(o+1)===46&&n.charCodeAt(o+2)===46)return Ku(e,yt.SPREAD,o,o+3);break;case 58:return Ku(e,yt.COLON,o,o+1);case 61:return Ku(e,yt.EQUALS,o,o+1);case 64:return Ku(e,yt.AT,o,o+1);case 91:return Ku(e,yt.BRACKET_L,o,o+1);case 93:return Ku(e,yt.BRACKET_R,o,o+1);case 123:return Ku(e,yt.BRACE_L,o,o+1);case 124:return Ku(e,yt.PIPE,o,o+1);case 125:return Ku(e,yt.BRACE_R,o,o+1);case 34:return n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34?KQt(e,o):WQt(e,o)}if(yD(i)||i===45)return jQt(e,o,i);if(tEe(i))return YQt(e,o);throw qu(e.source,o,i===39?`Unexpected single quote character (\\'), did you mean to use a double quote (\")?`:bD(i)||Qre(n,o)?`Unexpected character: ${YI(e,o)}.`:`Invalid character: ${YI(e,o)}.`)}return Ku(e,yt.EOF,r,r)}function zQt(e,t){let n=e.source.body,r=n.length,o=t+1;for(;o<r;){let i=n.charCodeAt(o);if(i===10||i===13)break;if(bD(i))++o;else if(Qre(n,o))o+=2;else break}return Ku(e,yt.COMMENT,t,o,n.slice(t+1,o))}function jQt(e,t,n){let r=e.source.body,o=t,i=n,a=!1;if(i===45&&(i=r.charCodeAt(++o)),i===48){if(i=r.charCodeAt(++o),yD(i))throw qu(e.source,o,`Invalid number, unexpected digit after 0: ${YI(e,o)}.`)}else o=nEe(e,o,i),i=r.charCodeAt(o);if(i===46&&(a=!0,i=r.charCodeAt(++o),o=nEe(e,o,i),i=r.charCodeAt(o)),(i===69||i===101)&&(a=!0,i=r.charCodeAt(++o),(i===43||i===45)&&(i=r.charCodeAt(++o)),o=nEe(e,o,i),i=r.charCodeAt(o)),i===46||tEe(i))throw qu(e.source,o,`Invalid number, expected digit but got: ${YI(e,o)}.`);return Ku(e,a?yt.FLOAT:yt.INT,t,o,r.slice(t,o))}function nEe(e,t,n){if(!yD(n))throw qu(e.source,t,`Invalid number, expected digit but got: ${YI(e,t)}.`);let r=e.source.body,o=t+1;for(;yD(r.charCodeAt(o));)++o;return o}function WQt(e,t){let n=e.source.body,r=n.length,o=t+1,i=o,a=\"\";for(;o<r;){let c=n.charCodeAt(o);if(c===34)return a+=n.slice(i,o),Ku(e,yt.STRING,t,o+1,a);if(c===92){a+=n.slice(i,o);let l=n.charCodeAt(o+1)===117?n.charCodeAt(o+2)===123?VQt(e,o):GQt(e,o):qQt(e,o);a+=l.value,o+=l.size,i=o;continue}if(c===10||c===13)break;if(bD(c))++o;else if(Qre(n,o))o+=2;else throw qu(e.source,o,`Invalid character within String: ${YI(e,o)}.`)}throw qu(e.source,o,\"Unterminated string.\")}function VQt(e,t){let n=e.source.body,r=0,o=3;for(;o<12;){let i=n.charCodeAt(t+o++);if(i===125){if(o<5||!bD(r))break;return{value:String.fromCodePoint(r),size:o}}if(r=r<<4|cj(i),r<0)break}throw qu(e.source,t,`Invalid Unicode escape sequence: \"${n.slice(t,t+o)}\".`)}function GQt(e,t){let n=e.source.body,r=Hut(n,t+2);if(bD(r))return{value:String.fromCodePoint(r),size:6};if(jut(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let o=Hut(n,t+8);if(Wut(o))return{value:String.fromCodePoint(r,o),size:12}}throw qu(e.source,t,`Invalid Unicode escape sequence: \"${n.slice(t,t+6)}\".`)}function Hut(e,t){return cj(e.charCodeAt(t))<<12|cj(e.charCodeAt(t+1))<<8|cj(e.charCodeAt(t+2))<<4|cj(e.charCodeAt(t+3))}function cj(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function qQt(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:\\'\"\\',size:2};case 92:return{value:\"\\\\\\\\\",size:2};case 47:return{value:\"/\",size:2};case 98:return{value:\"\\\\b\",size:2};case 102:return{value:\"\\\\f\",size:2};case 110:return{value:`\\n`,size:2};case 114:return{value:\"\\\\r\",size:2};case 116:return{value:\"\\t\",size:2}}throw qu(e.source,t,`Invalid character escape sequence: \"${n.slice(t,t+2)}\".`)}function KQt(e,t){let n=e.source.body,r=n.length,o=e.lineStart,i=t+3,a=i,c=\"\",l=[];for(;i<r;){let d=n.charCodeAt(i);if(d===34&&n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34){c+=n.slice(a,i),l.push(c);let m=Ku(e,yt.BLOCK_STRING,t,i+3,Uut(l).join(`\\n`));return e.line+=l.length-1,e.lineStart=o,m}if(d===92&&n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34&&n.charCodeAt(i+3)===34){c+=n.slice(a,i),a=i+1,i+=4;continue}if(d===10||d===13){c+=n.slice(a,i),l.push(c),d===13&&n.charCodeAt(i+1)===10?i+=2:++i,c=\"\",a=i,o=i;continue}if(bD(d))++i;else if(Qre(n,i))i+=2;else throw qu(e.source,i,`Invalid character within String: ${YI(e,i)}.`)}throw qu(e.source,i,\"Unterminated string.\")}function YQt(e,t){let n=e.source.body,r=n.length,o=t+1;for(;o<r;){let i=n.charCodeAt(o);if(Lut(i))++o;else break}return Ku(e,yt.NAME,t,o,n.slice(t,o))}f();f();function vD(e){return Jre(e,[])}function Jre(e,t){switch(typeof e){case\"string\":return JSON.stringify(e);case\"function\":return e.name?`[function ${e.name}]`:\"[function]\";case\"object\":return ZQt(e,t);default:return String(e)}}function ZQt(e,t){if(e===null)return\"null\";if(t.includes(e))return\"[Circular]\";let n=[...t,e];if(QQt(e)){let r=e.toJSON();if(r!==e)return typeof r==\"string\"?r:Jre(r,n)}else if(Array.isArray(e))return XQt(e,n);return JQt(e,n)}function QQt(e){return typeof e.toJSON==\"function\"}function JQt(e,t){let n=Object.entries(e);return n.length===0?\"{}\":t.length>2?\"[\"+$Qt(e)+\"]\":\"{ \"+n.map(([o,i])=>o+\": \"+Jre(i,t)).join(\", \")+\" }\"}function XQt(e,t){if(e.length===0)return\"[]\";if(t.length>2)return\"[Array]\";let n=Math.min(10,e.length),r=e.length-n,o=[];for(let i=0;i<n;++i)o.push(Jre(e[i],t));return r===1?o.push(\"... 1 more item\"):r>1&&o.push(`... ${r} more items`),\"[\"+o.join(\", \")+\"]\"}function $Qt(e){let t=Object.prototype.toString.call(e).replace(/^\\\\[object /,\"\").replace(/]$/,\"\");if(t===\"Object\"&&typeof e.constructor==\"function\"){let n=e.constructor.name;if(typeof n==\"string\"&&n!==\"\")return n}return t}f();var eJt=globalThis.process&&!1,Vut=eJt?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t==\"object\"&&t!==null){var r;let o=n.prototype[Symbol.toStringTag],i=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(o===i){let a=vD(t);throw new Error(`Cannot use ${o} \"${a}\" from another module or realm.\\n\\nEnsure that there is only one instance of \"graphql\" in the node_modules\\ndirectory. If different versions of \"graphql\" are the dependencies of other\\nrelied on modules, use \"resolutions\" to ensure only one version is installed.\\n\\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\\n\\nDuplicate \"graphql\" modules cannot be used at the same time since different\\nversions may have different capabilities and behavior. The data from one\\nversion used in the function from another could produce confusing and\\nspurious results.`)}}return!1};var wD=class{constructor(t,n=\"GraphQL request\",r={line:1,column:1}){typeof t==\"string\"||hD(!1,`Body must be a string. Received: ${vD(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||hD(!1,\"line in locationOffset is 1-indexed and must be positive.\"),this.locationOffset.column>0||hD(!1,\"column in locationOffset is 1-indexed and must be positive.\")}get[Symbol.toStringTag](){return\"Source\"}};function Gut(e){return Vut(e,wD)}function $re(e,t){let n=new rEe(e,t),r=n.parseDocument();return Object.defineProperty(r,\"tokenCount\",{enumerable:!1,value:n.tokenCount}),r}var rEe=class{constructor(t,n={}){let r=Gut(t)?t:new wD(t);this._lexer=new uj(r),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(yt.NAME);return this.node(t,{kind:Un.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:Un.DOCUMENT,definitions:this.many(yt.SOF,this.parseDefinition,yt.EOF)})}parseDefinition(){if(this.peek(yt.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===yt.NAME){switch(n.value){case\"schema\":return this.parseSchemaDefinition();case\"scalar\":return this.parseScalarTypeDefinition();case\"type\":return this.parseObjectTypeDefinition();case\"interface\":return this.parseInterfaceTypeDefinition();case\"union\":return this.parseUnionTypeDefinition();case\"enum\":return this.parseEnumTypeDefinition();case\"input\":return this.parseInputObjectTypeDefinition();case\"directive\":return this.parseDirectiveDefinition()}if(t)throw qu(this._lexer.source,this._lexer.token.start,\"Unexpected description, descriptions are supported only on type definitions.\");switch(n.value){case\"query\":case\"mutation\":case\"subscription\":return this.parseOperationDefinition();case\"fragment\":return this.parseFragmentDefinition();case\"extend\":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(yt.BRACE_L))return this.node(t,{kind:Un.OPERATION_DEFINITION,operation:CC.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(yt.NAME)&&(r=this.parseName()),this.node(t,{kind:Un.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(yt.NAME);switch(t.value){case\"query\":return CC.QUERY;case\"mutation\":return CC.MUTATION;case\"subscription\":return CC.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(yt.PAREN_L,this.parseVariableDefinition,yt.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Un.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(yt.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(yt.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(yt.DOLLAR),this.node(t,{kind:Un.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Un.SELECTION_SET,selections:this.many(yt.BRACE_L,this.parseSelection,yt.BRACE_R)})}parseSelection(){return this.peek(yt.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,o;return this.expectOptionalToken(yt.COLON)?(r=n,o=this.parseName()):o=n,this.node(t,{kind:Un.FIELD,alias:r,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(yt.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(yt.PAREN_L,n,yt.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(yt.COLON),this.node(n,{kind:Un.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(yt.SPREAD);let n=this.expectOptionalKeyword(\"on\");return!n&&this.peek(yt.NAME)?this.node(t,{kind:Un.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:Un.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword(\"fragment\"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:Un.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword(\"on\"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:Un.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword(\"on\"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value===\"on\")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case yt.BRACKET_L:return this.parseList(t);case yt.BRACE_L:return this.parseObject(t);case yt.INT:return this.advanceLexer(),this.node(n,{kind:Un.INT,value:n.value});case yt.FLOAT:return this.advanceLexer(),this.node(n,{kind:Un.FLOAT,value:n.value});case yt.STRING:case yt.BLOCK_STRING:return this.parseStringLiteral();case yt.NAME:switch(this.advanceLexer(),n.value){case\"true\":return this.node(n,{kind:Un.BOOLEAN,value:!0});case\"false\":return this.node(n,{kind:Un.BOOLEAN,value:!1});case\"null\":return this.node(n,{kind:Un.NULL});default:return this.node(n,{kind:Un.ENUM,value:n.value})}case yt.DOLLAR:if(t)if(this.expectToken(yt.DOLLAR),this._lexer.token.kind===yt.NAME){let r=this._lexer.token.value;throw qu(this._lexer.source,n.start,`Unexpected variable \"$${r}\" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:Un.STRING,value:t.value,block:t.kind===yt.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:Un.LIST,values:this.any(yt.BRACKET_L,n,yt.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:Un.OBJECT,fields:this.any(yt.BRACE_L,n,yt.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(yt.COLON),this.node(n,{kind:Un.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(yt.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(yt.AT),this.node(n,{kind:Un.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(yt.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(yt.BRACKET_R),n=this.node(t,{kind:Un.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(yt.BANG)?this.node(t,{kind:Un.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:Un.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(yt.STRING)||this.peek(yt.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"schema\");let r=this.parseConstDirectives(),o=this.many(yt.BRACE_L,this.parseOperationTypeDefinition,yt.BRACE_R);return this.node(t,{kind:Un.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:o})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(yt.COLON);let r=this.parseNamedType();return this.node(t,{kind:Un.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"scalar\");let r=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:Un.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:o})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"type\");let r=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:Un.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword(\"implements\")?this.delimitedMany(yt.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(yt.BRACE_L,this.parseFieldDefinition,yt.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),o=this.parseArgumentDefs();this.expectToken(yt.COLON);let i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:Un.FIELD_DEFINITION,description:n,name:r,arguments:o,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(yt.PAREN_L,this.parseInputValueDef,yt.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(yt.COLON);let o=this.parseTypeReference(),i;this.expectOptionalToken(yt.EQUALS)&&(i=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:Un.INPUT_VALUE_DEFINITION,description:n,name:r,type:o,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"interface\");let r=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:Un.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:i,fields:a})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"union\");let r=this.parseName(),o=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(t,{kind:Un.UNION_TYPE_DEFINITION,description:n,name:r,directives:o,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(yt.EQUALS)?this.delimitedMany(yt.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"enum\");let r=this.parseName(),o=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(t,{kind:Un.ENUM_TYPE_DEFINITION,description:n,name:r,directives:o,values:i})}parseEnumValuesDefinition(){return this.optionalMany(yt.BRACE_L,this.parseEnumValueDefinition,yt.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:Un.ENUM_VALUE_DEFINITION,description:n,name:r,directives:o})}parseEnumValueName(){if(this._lexer.token.value===\"true\"||this._lexer.token.value===\"false\"||this._lexer.token.value===\"null\")throw qu(this._lexer.source,this._lexer.token.start,`${Xre(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"input\");let r=this.parseName(),o=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(t,{kind:Un.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:o,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(yt.BRACE_L,this.parseInputValueDef,yt.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===yt.NAME)switch(t.value){case\"schema\":return this.parseSchemaExtension();case\"scalar\":return this.parseScalarTypeExtension();case\"type\":return this.parseObjectTypeExtension();case\"interface\":return this.parseInterfaceTypeExtension();case\"union\":return this.parseUnionTypeExtension();case\"enum\":return this.parseEnumTypeExtension();case\"input\":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"schema\");let n=this.parseConstDirectives(),r=this.optionalMany(yt.BRACE_L,this.parseOperationTypeDefinition,yt.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:Un.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"scalar\");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:Un.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"type\");let n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:Un.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:i})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"interface\");let n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:Un.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:i})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"union\");let n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Un.UNION_TYPE_EXTENSION,name:n,directives:r,types:o})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"enum\");let n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Un.ENUM_TYPE_EXTENSION,name:n,directives:r,values:o})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"input\");let n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Un.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:o})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"directive\"),this.expectToken(yt.AT);let r=this.parseName(),o=this.parseArgumentDefs(),i=this.expectOptionalKeyword(\"repeatable\");this.expectKeyword(\"on\");let a=this.parseDirectiveLocations();return this.node(t,{kind:Un.DIRECTIVE_DEFINITION,description:n,name:r,arguments:o,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(yt.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(sj,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new aj(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw qu(this._lexer.source,n.start,`Expected ${qut(t)}, found ${Xre(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===yt.NAME&&n.value===t)this.advanceLexer();else throw qu(this._lexer.source,n.start,`Expected \"${t}\", found ${Xre(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===yt.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t??this._lexer.token;return qu(this._lexer.source,n.start,`Unexpected ${Xre(n)}.`)}any(t,n,r){this.expectToken(t);let o=[];for(;!this.expectOptionalToken(r);)o.push(n.call(this));return o}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}return[]}many(t,n,r){this.expectToken(t);let o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==yt.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw qu(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};function Xre(e){let t=e.value;return qut(e.kind)+(t!=null?` \"${t}\"`:\"\")}function qut(e){return zut(e)?`\"${e}\"`:e}f();f();function Kut(e){return`\"${e.replace(tJt,nJt)}\"`}var tJt=/[\\\\x00-\\\\x1f\\\\x22\\\\x5c\\\\x7f-\\\\x9f]/g;function nJt(e){return rJt[e.charCodeAt(0)]}var rJt=[\"\\\\\\\\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\"];f();var Yut=Object.freeze({});function oEe(e,t,n=$2e){let r=new Map;for(let C of Object.values(Un))r.set(C,Zut(t,C));let o,i=Array.isArray(e),a=[e],c=-1,l=[],d=e,m,h,g=[],y=[];do{c++;let C=c===a.length,M=C&&l.length!==0;if(C){if(m=y.length===0?void 0:g[g.length-1],d=h,h=y.pop(),M)if(i){d=d.slice();let z=0;for(let[G,J]of l){let ne=G-z;J===null?(d.splice(ne,1),z++):d[ne]=J}}else{d={...d};for(let[z,G]of l)d[z]=G}c=o.index,a=o.keys,l=o.edits,i=o.inArray,o=o.prev}else if(h){if(m=i?c:a[c],d=h[m],d==null)continue;g.push(m)}let B;if(!Array.isArray(d)){var w,x;eEe(d)||hD(!1,`Invalid AST Node: ${vD(d)}.`);let z=C?(w=r.get(d.kind))===null||w===void 0?void 0:w.leave:(x=r.get(d.kind))===null||x===void 0?void 0:x.enter;if(B=z?.call(t,d,m,h,g,y),B===Yut)break;if(B===!1){if(!C){g.pop();continue}}else if(B!==void 0&&(l.push([m,B]),!C))if(eEe(B))d=B;else{g.pop();continue}}if(B===void 0&&M&&l.push([m,d]),C)g.pop();else{var I;o={inArray:i,index:c,keys:a,edits:l,prev:o},i=Array.isArray(d),a=i?d:(I=n[d.kind])!==null&&I!==void 0?I:[],c=-1,l=[],h&&y.push(h),h=d}}while(o!==void 0);return l.length!==0?l[l.length-1][1]:e}function Zut(e,t){let n=e[t];return typeof n==\"object\"?n:typeof n==\"function\"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function toe(e){return oEe(e,iJt)}var oJt=80,iJt={Name:{leave:e=>e.value},Variable:{leave:e=>\"$\"+e.name},Document:{leave:e=>yn(e.definitions,`\\n\\n`)},OperationDefinition:{leave(e){let t=Po(\"(\",yn(e.variableDefinitions,\", \"),\")\"),n=yn([e.operation,yn([e.name,t]),yn(e.directives,\" \")],\" \");return(n===\"query\"?\"\":n+\" \")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+\": \"+t+Po(\" = \",n)+Po(\" \",yn(r,\" \"))},SelectionSet:{leave:({selections:e})=>N1(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:o}){let i=Po(\"\",e,\": \")+t,a=i+Po(\"(\",yn(n,\", \"),\")\");return a.length>oJt&&(a=i+Po(`(\\n`,eoe(yn(n,`\\n`)),`\\n)`)),yn([a,yn(r,\" \"),o],\" \")}},Argument:{leave:({name:e,value:t})=>e+\": \"+t},FragmentSpread:{leave:({name:e,directives:t})=>\"...\"+e+Po(\" \",yn(t,\" \"))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>yn([\"...\",Po(\"on \",e),yn(t,\" \"),n],\" \")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o})=>`fragment ${e}${Po(\"(\",yn(n,\", \"),\")\")} on ${t} ${Po(\"\",yn(r,\" \"),\" \")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Fut(e):Kut(e)},BooleanValue:{leave:({value:e})=>e?\"true\":\"false\"},NullValue:{leave:()=>\"null\"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>\"[\"+yn(e,\", \")+\"]\"},ObjectValue:{leave:({fields:e})=>\"{\"+yn(e,\", \")+\"}\"},ObjectField:{leave:({name:e,value:t})=>e+\": \"+t},Directive:{leave:({name:e,arguments:t})=>\"@\"+e+Po(\"(\",yn(t,\", \"),\")\")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>\"[\"+e+\"]\"},NonNullType:{leave:({type:e})=>e+\"!\"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Po(\"\",e,`\\n`)+yn([\"schema\",yn(t,\" \"),N1(n)],\" \")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+\": \"+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Po(\"\",e,`\\n`)+yn([\"scalar\",t,yn(n,\" \")],\" \")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>Po(\"\",e,`\\n`)+yn([\"type\",t,Po(\"implements \",yn(n,\" & \")),yn(r,\" \"),N1(o)],\" \")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:o})=>Po(\"\",e,`\\n`)+t+(Qut(n)?Po(`(\\n`,eoe(yn(n,`\\n`)),`\\n)`):Po(\"(\",yn(n,\", \"),\")\"))+\": \"+r+Po(\" \",yn(o,\" \"))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:o})=>Po(\"\",e,`\\n`)+yn([t+\": \"+n,Po(\"= \",r),yn(o,\" \")],\" \")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>Po(\"\",e,`\\n`)+yn([\"interface\",t,Po(\"implements \",yn(n,\" & \")),yn(r,\" \"),N1(o)],\" \")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Po(\"\",e,`\\n`)+yn([\"union\",t,yn(n,\" \"),Po(\"= \",yn(r,\" | \"))],\" \")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Po(\"\",e,`\\n`)+yn([\"enum\",t,yn(n,\" \"),N1(r)],\" \")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Po(\"\",e,`\\n`)+yn([t,yn(n,\" \")],\" \")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Po(\"\",e,`\\n`)+yn([\"input\",t,yn(n,\" \"),N1(r)],\" \")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:o})=>Po(\"\",e,`\\n`)+\"directive @\"+t+(Qut(n)?Po(`(\\n`,eoe(yn(n,`\\n`)),`\\n)`):Po(\"(\",yn(n,\", \"),\")\"))+(r?\" repeatable\":\"\")+\" on \"+yn(o,\" | \")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>yn([\"extend schema\",yn(e,\" \"),N1(t)],\" \")},ScalarTypeExtension:{leave:({name:e,directives:t})=>yn([\"extend scalar\",e,yn(t,\" \")],\" \")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>yn([\"extend type\",e,Po(\"implements \",yn(t,\" & \")),yn(n,\" \"),N1(r)],\" \")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>yn([\"extend interface\",e,Po(\"implements \",yn(t,\" & \")),yn(n,\" \"),N1(r)],\" \")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>yn([\"extend union\",e,yn(t,\" \"),Po(\"= \",yn(n,\" | \"))],\" \")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>yn([\"extend enum\",e,yn(t,\" \"),N1(n)],\" \")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>yn([\"extend input\",e,yn(t,\" \"),N1(n)],\" \")}};function yn(e,t=\"\"){var n;return(n=e?.filter(r=>r).join(t))!==null&&n!==void 0?n:\"\"}function N1(e){return Po(`{\\n`,eoe(yn(e,`\\n`)),`\\n}`)}function Po(e,t,n=\"\"){return t!=null&&t!==\"\"?e+t+n:\"\"}function eoe(e){return Po(\"  \",e.replace(/\\\\n/g,`\\n  `))}function Qut(e){var t;return(t=e?.some(n=>n.includes(`\\n`)))!==null&&t!==void 0?t:!1}f();var Jut=e=>{let t,n=e.definitions.filter(r=>r.kind===\"OperationDefinition\");return n.length===1&&(t=n[0]?.name?.value),t},ZI=e=>{if(typeof e==\"string\"){let n;try{let r=$re(e);n=Jut(r)}catch{}return{query:e,operationName:n}}let t=Jut(e);return{query:toe(e),operationName:t}};f();var QI=class e extends Error{constructor(t,n){let r=`${e.extractMessage(t)}: ${JSON.stringify({response:t,request:n})}`;super(r),Object.setPrototypeOf(this,e.prototype),this.response=t,this.request=n,typeof Error.captureStackTrace==\"function\"&&Error.captureStackTrace(this,e)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${t.status})`}};var kC=ge($ut(),1);f();var uJt=\"connection_init\",lJt=\"connection_ack\",tlt=\"ping\",nlt=\"pong\",dJt=\"subscribe\",fJt=\"next\",pJt=\"error\",rlt=\"complete\",IC=class e{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(t,n,r){this._type=t,this._payload=n,this._id=r}get text(){let t={type:this.type};return this.id!=null&&this.id!=null&&(t.id=this.id),this.payload!=null&&this.payload!=null&&(t.payload=this.payload),JSON.stringify(t)}static parse(t,n){let{type:r,payload:o,id:i}=JSON.parse(t);return new e(r,n(o),i)}},ooe=class{constructor(t,{onInit:n,onAcknowledged:r,onPing:o,onPong:i}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=t,t.addEventListener(\"open\",async a=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={},t.send(mJt(n?await n():null).text)}),t.addEventListener(\"close\",a=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}}),t.addEventListener(\"error\",a=>{console.error(a)}),t.addEventListener(\"message\",a=>{try{let c=hJt(a.data);switch(c.type){case lJt:{this.socketState.acknowledged?console.warn(\"Duplicate CONNECTION_ACK message ignored\"):(this.socketState.acknowledged=!0,r&&r(c.payload));return}case tlt:{o?o(c.payload).then(h=>t.send(elt(h).text)):t.send(elt(null).text);return}case nlt:{i&&i(c.payload);return}}if(!this.socketState.acknowledged||c.id===void 0||c.id===null||!this.socketState.subscriptions[c.id])return;let{query:l,variables:d,subscriber:m}=this.socketState.subscriptions[c.id];switch(c.type){case fJt:{!c.payload.errors&&c.payload.data&&m.next&&m.next(c.payload.data),c.payload.errors&&m.error&&m.error(new QI({...c.payload,status:200},{query:l,variables:d}));return}case pJt:{m.error&&m.error(new QI({errors:c.payload,status:200},{query:l,variables:d}));return}case rlt:{m.complete&&m.complete(),delete this.socketState.subscriptions[c.id];return}}}catch(c){console.error(c),t.close(1006)}t.close(4400,\"Unknown graphql-ws message.\")})}makeSubscribe(t,n,r,o){let i=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[i]={query:t,variables:o,subscriber:r},this.socket.send(yJt(i,{query:t,operationName:n,variables:o}).text),()=>{this.socket.send(bJt(i).text),delete this.socketState.subscriptions[i]}}rawRequest(t,n){return new Promise((r,o)=>{let i;this.rawSubscribe(t,{next:(a,c)=>i={data:a,extensions:c},error:o,complete:()=>r(i)},n)})}request(t,n){return new Promise((r,o)=>{let i;this.subscribe(t,{next:a=>i=a,error:o,complete:()=>r(i)},n)})}subscribe(t,n,r){let{query:o,operationName:i}=ZI(t);return this.makeSubscribe(o,i,n,r)}rawSubscribe(t,n,r){return this.makeSubscribe(t,void 0,n,r)}ping(t){this.socket.send(gJt(t).text)}close(){this.socket.close(1e3)}};ooe.PROTOCOL=\"graphql-transport-ws\";function hJt(e,t=n=>n){return IC.parse(e,t)}function mJt(e){return new IC(uJt,e)}function gJt(e){return new IC(tlt,e,void 0)}function elt(e){return new IC(nlt,e,void 0)}function yJt(e,t){return new IC(dJt,t,e)}function bJt(e){return new IC(rlt,void 0,e)}var ED=e=>{let t={};return e&&(typeof Headers<\"u\"&&e instanceof Headers||kC&&kC.Headers&&e instanceof kC.Headers?t=Rut(e):Array.isArray(e)?e.forEach(([n,r])=>{n&&r!==void 0&&(t[n]=r)}):t=e),t},olt=e=>e.replace(/([\\\\s,]|#[^\\\\n\\\\r]+)+/g,\" \").trim(),vJt=e=>{if(!Array.isArray(e.query)){let r=e,o=[`query=${encodeURIComponent(olt(r.query))}`];return e.variables&&o.push(`variables=${encodeURIComponent(r.jsonSerializer.stringify(r.variables))}`),r.operationName&&o.push(`operationName=${encodeURIComponent(r.operationName)}`),o.join(\"&\")}if(typeof e.variables<\"u\"&&!Array.isArray(e.variables))throw new Error(\"Cannot create query with given variable type, array expected\");let t=e,n=e.query.reduce((r,o,i)=>(r.push({query:olt(o),variables:t.variables?t.jsonSerializer.stringify(t.variables[i]):void 0}),r),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(n))}`},wJt=e=>async t=>{let{url:n,query:r,variables:o,operationName:i,fetch:a,fetchOptions:c,middleware:l}=t,d={...t.headers},m=\"\",h;e===\"POST\"?(h=xJt(r,o,i,c.jsonSerializer),typeof h==\"string\"&&(d[\"Content-Type\"]=\"application/json\")):m=vJt({query:r,variables:o,operationName:i,jsonSerializer:c.jsonSerializer??qre});let g={method:e,headers:d,body:h,...c},y=n,w=g;if(l){let x=await Promise.resolve(l({...g,url:n,operationName:i,variables:o})),{url:I,...C}=x;y=I,w=C}return m&&(y=`${y}?${m}`),await a(y,w)},ioe=class{constructor(t,n={}){this.url=t,this.requestConfig=n,this.rawRequest=async(...r)=>{let[o,i,a]=r,c=kut(o,i,a),{headers:l,fetch:d=kC.default,method:m=\"POST\",requestMiddleware:h,responseMiddleware:g,...y}=this.requestConfig,{url:w}=this;c.signal!==void 0&&(y.signal=c.signal);let{operationName:x}=ZI(c.query);return iEe({url:w,query:c.query,variables:c.variables,headers:{...ED(aEe(l)),...ED(c.requestHeaders)},operationName:x,fetch:d,method:m,fetchOptions:y,middleware:h}).then(I=>(g&&g(I),I)).catch(I=>{throw g&&g(I),I})}}async request(t,...n){let[r,o]=n,i=Iut(t,r,o),{headers:a,fetch:c=kC.default,method:l=\"POST\",requestMiddleware:d,responseMiddleware:m,...h}=this.requestConfig,{url:g}=this;i.signal!==void 0&&(h.signal=i.signal);let{query:y,operationName:w}=ZI(i.document);return iEe({url:g,query:y,variables:i.variables,headers:{...ED(aEe(a)),...ED(i.requestHeaders)},operationName:w,fetch:c,method:l,fetchOptions:h,middleware:d}).then(x=>(m&&m(x),x.data)).catch(x=>{throw m&&m(x),x})}batchRequests(t,n){let r=Out(t,n),{headers:o,...i}=this.requestConfig;r.signal!==void 0&&(i.signal=r.signal);let a=r.documents.map(({document:l})=>ZI(l).query),c=r.documents.map(({variables:l})=>l);return iEe({url:this.url,query:a,variables:c,headers:{...ED(aEe(o)),...ED(r.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??kC.default,method:this.requestConfig.method||\"POST\",fetchOptions:i,middleware:this.requestConfig.requestMiddleware}).then(l=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(l),l.data)).catch(l=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(l),l})}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,n){let{headers:r}=this.requestConfig;return r?r[t]=n:this.requestConfig.headers={[t]:n},this}setEndpoint(t){return this.url=t,this}},iEe=async e=>{let{query:t,variables:n,fetchOptions:r}=e,o=wJt(Cut(e.method??\"post\")),i=Array.isArray(e.query),a=await o(e),c=await EJt(a,r.jsonSerializer??qre),l=Array.isArray(c)?!c.some(({data:m})=>!m):!!c.data,d=Array.isArray(c)||!c.errors||Array.isArray(c.errors)&&!c.errors.length||r.errorPolicy===\"all\"||r.errorPolicy===\"ignore\";if(a.ok&&d&&l){let{errors:m,...h}=(Array.isArray(c),c),g=r.errorPolicy===\"ignore\"?h:c;return{...i?{data:g}:g,headers:a.headers,status:a.status}}else{let m=typeof c==\"string\"?{error:c}:c;throw new QI({...m,status:a.status,headers:a.headers},{query:t,variables:n})}};var xJt=(e,t,n,r)=>{let o=r??qre;if(!Array.isArray(e))return o.stringify({query:e,variables:t,operationName:n});if(typeof t<\"u\"&&!Array.isArray(t))throw new Error(\"Cannot create request body with given variable type, array expected\");let i=e.reduce((a,c,l)=>(a.push({query:c,variables:t?t[l]:void 0}),a),[]);return o.stringify(i)},EJt=async(e,t)=>{let n;return e.headers.forEach((r,o)=>{o.toLowerCase()===\"content-type\"&&(n=r)}),n&&(n.toLowerCase().startsWith(\"application/json\")||n.toLowerCase().startsWith(\"application/graphql+json\")||n.toLowerCase().startsWith(\"application/graphql-response+json\"))?t.parse(await e.text()):e.text()},aEe=e=>typeof e==\"function\"?e():e,ilt=(e,...t)=>e.reduce((n,r,o)=>`${n}${r}${o in t?String(t[o]):\"\"}`,\"\");gn();f();f();f();va();var sEe={id:fr.id,easGraphqlAPI:\"https://base.easscan.org/graphql\",schemaUids:[\"0x1801901fabd0e6189356b4fb52bb0ab855276d84f7ec140839fbd1f6801ca065\",\"0xf8b05c79f090979bf4a80270aba232dff11a10d9ca55c4f88de95317970f0de9\"]};f();va();var cEe={id:Cs.id,easGraphqlAPI:\"https://base-sepolia.easscan.org/graphql\",schemaUids:[\"0xef54ae90f47a187acc050ce631c55584fd4273c0ca9456ab21750921c3a84028\",\"0x2f34a2ffe5f87b2f45fbc7c784896b768d77261e2f24f77341ae43751c765a69\"]};f();va();var uEe={id:fB.id,easGraphqlAPI:\"https://optimism.easscan.org/graphql\",schemaUids:[\"0xac4c92fc5c7babed88f78a917cdbcdc1c496a8f4ab2d5b2ec29402736b2cf929\",\"0x6ab5d34260fca0cfcf0e76e96d439cace6aa7c3c019d7c4580ed52c6845e9c89\",\"0x401a80196f3805c57b00482ae2b575a9f270562b6b6de7711af9837f08fa0faf\"]};var alt={[sEe.id]:sEe,[cEe.id]:cEe,[uEe.id]:uEe};function slt(e){return e.id in alt}function clt(e){var t;return((t=alt[e.id])==null?void 0:t.easGraphqlAPI)??\"\"}function ult(e){let t=clt(e);return new ioe(t)}var AJt=ilt`\\n  query AttestationsForUsers(\\n    $where: AttestationWhereInput\\n    $distinct: [AttestationScalarFieldEnum!]\\n    $take: Int\\n  ) {\\n    attestations(where: $where, distinct: $distinct, take: $take) {\\n      id\\n      txid\\n      schemaId\\n      attester\\n      recipient\\n      revoked\\n      revocationTime\\n      expirationTime\\n      time\\n      timeCreated\\n      decodedDataJson\\n    }\\n  }\\n`;function SJt(e,t){let r={recipient:{equals:rr(e)},revoked:{equals:t.revoked}};return typeof t.expirationTime==\"number\"&&(r.OR=[{expirationTime:{equals:0}},{expirationTime:{gt:t.expirationTime}}]),t?.schemas&&t.schemas.length>0&&(r.schemaId={in:t.schemas}),{where:{AND:[r]},distinct:[\"schemaId\"],take:t.limit}}async function llt(e,t,n){let r=ult(t),o=SJt(e,n),{attestations:i}=await r.request(AJt,o);return i}async function lEe(e,t,n){if(!e)return console.log(\"Error in getAttestation: Address is not provided\"),[];if(!slt(t))return console.log(\"Error in getAttestation: Chain is not supported\"),[];try{let o={...{revoked:!1,expirationTime:Math.round(Date.now()/1e3),limit:10},...n};return await llt(e,t,o)}catch(r){return console.log(`Error in getAttestation: ${r.message}`),[]}}function lj({address:e,chain:t,schemaId:n},r){return Hp({queryKey:[\"useAttestations\",e,t?.id,n],queryFn:async()=>lEe(e,t,{schemas:[n]}),enabled:!!e&&!!n,...$f,gcTime:r?.cacheTime,...r}).data||[]}f();var dEe=ge(We(),1);var dlt=(0,dEe.jsx)(\"svg\",{role:\"img\",\"aria-label\":\"ock-badgeSvg\",width:\"12\",height:\"12\",viewBox:\"0 0 12 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",className:\"h-full w-full\",children:(0,dEe.jsx)(\"path\",{d:\"M8.12957 3.73002L5.11957 6.74002L3.77957 5.40002C3.49957 5.12002 3.04957 5.12002 2.76957 5.40002C2.48957 5.68002 2.48957 6.13002 2.76957 6.41002L4.10957 7.75002L4.59957 8.24002C4.90957 8.55002 5.41957 8.55002 5.72957 8.24002L9.17957 4.79002C9.45957 4.51002 9.45957 4.06002 9.17957 3.78002L9.12957 3.73002C8.84957 3.45002 8.39957 3.45002 8.11957 3.73002H8.12957Z\",\"data-testid\":\"ock-badgeSvg\",className:nn.inverse})});f();var ep={base:\"z-0\",navigation:\"z-1\",dropdown:\"z-10\",tooltip:\"z-20\",modal:\"z-40\",notification:\"z-50\"};var aoe=ge(at(),1);function SD({className:e,tooltip:t=!1}){let[n,r]=(0,aoe.useState)(!1),{address:o,schemaId:i}=wm(),{chain:a,schemaId:c}=Fo(),l=lj({address:o,chain:a,schemaId:t?i??c:null}),d=(0,aoe.useMemo)(()=>t?typeof t==\"string\"?t:_Jt(l[0]):null,[t,l]),m=\"12px\";return(0,AD.jsxs)(\"div\",{className:\"relative inline-flex\",\"data-testid\":\"ockBadgeContainer\",children:[(0,AD.jsx)(\"span\",{className:ve(_n.primary,xt.default,xt.radius,t&&\"cursor-pointer\",e),style:{height:m,width:m,maxHeight:m,maxWidth:m},\"data-testid\":\"ockBadge\",...t&&{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},children:dlt}),n&&t&&(0,AD.jsxs)(\"div\",{className:ve(xt.radius,xt.default,Xt.alternate,ut.legal,ft.foreground,ep.tooltip,\"-translate-x-1/2 absolute bottom-full left-1/2 mb-1 transform\",\"whitespace-nowrap px-1.5 py-0.5\"),\"data-testid\":\"ockBadgeTooltip\",children:[d,(0,AD.jsx)(\"div\",{className:ve(\"-translate-x-1/2 absolute top-full left-1/2 transform\")})]})]})}function _Jt(e){var t;if(!e?.decodedDataJson)return\"Verified\";try{let n=JSON.parse(e.decodedDataJson);if(Array.isArray(n)&&((t=n[0])!=null&&t.name))return n[0].name;let r=Object.values(n)[0];if(typeof r==\"string\")return r;if(r&&typeof r==\"object\"&&\"value\"in r&&typeof r.value==\"string\")return r.value}catch{}return\"Verified\"}f();function soe({children:e,address:t}){let{chain:n,schemaId:r}=Fo(),{schemaId:o,address:i}=wm();if(!o&&!r)throw new Error(\"Name: a SchemaId must be provided to the OnchainKitProvider or Identity component.\");return lj({address:t??i,chain:n,schemaId:o??r}).length===0?null:e}function ph({address:e=null,chain:t,className:n,defaultComponent:r,loadingComponent:o,children:i,...a}){let{address:c,chain:l}=wm(),d=e??c,m=t??l;if(!d)return console.error(\"Avatar: an Ethereum address must be provided to the Identity or Avatar component.\"),null;let{data:h,isLoading:g}=TC({address:d,chain:m}),{data:y,isLoading:w}=Y2e({ensName:h??\"\",chain:m},{enabled:!!h}),x=(0,coe.useMemo)(()=>coe.Children.toArray(i).find(fh(SD)),[i]),I=r||Vre,C=o||Tut;if(g||w)return(0,mx.jsx)(\"div\",{className:ve(\"h-8 w-8 overflow-hidden rounded-full\",n),children:C});let M=h&&y;return(0,mx.jsxs)(\"div\",{className:\"relative\",children:[(0,mx.jsx)(\"div\",{\"data-testid\":\"ockAvatar_ImageContainer\",className:ve(\"h-10 w-10 overflow-hidden rounded-full\",n),children:M?(0,mx.jsx)(\"img\",{className:\"min-h-full min-w-full object-cover\",\"data-testid\":\"ockAvatar_Image\",loading:\"lazy\",width:\"100%\",height:\"100%\",decoding:\"async\",src:y,alt:h,...a}):(0,mx.jsx)(\"div\",{className:ve(xt.default,\"h-full w-full border\"),children:I})}),x&&(0,mx.jsx)(soe,{address:d,children:(0,mx.jsx)(\"div\",{\"data-testid\":\"ockAvatar_BadgeContainer\",className:\"-bottom-0.5 -right-0.5 absolute flex h-[15px] w-[15px] items-center justify-center rounded-full bg-transparent\",children:(0,mx.jsx)(\"div\",{className:\"flex h-3 w-3 items-center justify-center\",children:x})})})]})}f();var _D=ge(We(),1);f();var JI=e=>`${e.slice(0,6)}...${e.slice(-4)}`;var uoe=ge(at(),1);function Em({address:e=null,className:t,children:n,chain:r,...o}){let{address:i,chain:a}=wm();if(!i&&!e)return console.error(\"Name: an Ethereum address must be provided to the Identity or Name component.\"),null;let c=e??i,l=r??a,{data:d,isLoading:m}=TC({address:c,chain:l}),h=(0,uoe.useMemo)(()=>uoe.Children.toArray(n).find(fh(SD)),[n]);return m?(0,_D.jsx)(\"span\",{className:t}):(0,_D.jsxs)(\"div\",{className:\"flex items-center gap-1\",children:[(0,_D.jsx)(\"span\",{\"data-testid\":\"ockIdentity_Text\",className:ve(ut.headline,ft.foreground,t),...o,children:d||JI(c)}),h&&(0,_D.jsx)(soe,{address:c,children:h})]})}f();var fEe=ge(We(),1);var flt=(0,fEe.jsx)(\"svg\",{\"data-testid\":\"ock-githubSvg\",role:\"img\",\"aria-label\":\"ock-githubSvg\",width:\"100%\",height:\"100%\",viewBox:\"0 0 24 24\",xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",className:\"h-full w-full\",children:(0,fEe.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z\",className:nn.foreground})});f();var OC=ge(We(),1);var plt=(0,OC.jsxs)(\"svg\",{\"data-testid\":\"ock-twitterSvg\",role:\"img\",\"aria-label\":\"ock-twitterSvg\",width:\"100%\",height:\"100%\",viewBox:\"-1 -1 14 14\",xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",className:\"h-full w-full\",children:[(0,OC.jsx)(\"g\",{clipPath:\"url(#clip0_6998_47)\",children:(0,OC.jsx)(\"path\",{d:\"M7.14163 5.07857L11.6089 0H10.5503L6.67137 4.40965L3.57328 0H0L4.68492 6.66817L0 11.9938H1.05866L5.15491 7.33709L8.42672 11.9938H12L7.14137 5.07857H7.14163ZM5.69165 6.72692L5.21697 6.06292L1.44011 0.779407H3.06615L6.11412 5.04337L6.5888 5.70737L10.5508 11.2499H8.92476L5.69165 6.72718V6.72692Z\",className:nn.foreground})}),(0,OC.jsx)(\"defs\",{children:(0,OC.jsx)(\"clipPath\",{id:\"clip0_6998_47\",children:(0,OC.jsx)(\"rect\",{width:\"12\",height:\"12\",fill:\"white\"})})})]});f();var TD=ge(We(),1);var hlt=(0,TD.jsxs)(\"svg\",{\"data-testid\":\"ock-warpcastSvg\",role:\"img\",\"aria-label\":\"ock-warpcastSvg\",width:\"100%\",height:\"100%\",viewBox:\"0 0 13 12\",xmlns:\"http://www.w3.org/2000/svg\",className:`h-full w-full ${nn.foreground}`,children:[(0,TD.jsx)(\"path\",{d:\"M2.23071 0H10.6153V12H9.38451V6.50322H9.37245C9.23641 4.98404 7.96783 3.79353 6.42299 3.79353C4.87815 3.79353 3.60957 4.98404 3.47354 6.50322H3.46147V12H2.23071V0Z\",className:nn.foreground}),(0,TD.jsx)(\"path\",{d:\"M0 1.70312L0.499999 3.40635H0.923066V10.2967C0.71065 10.2967 0.538456 10.47 0.538456 10.6838V11.1483H0.461541C0.249125 11.1483 0.0769147 11.3216 0.0769147 11.5354V11.9999H4.38458V11.5354C4.38458 11.3216 4.21239 11.1483 3.99998 11.1483H3.92306V10.6838C3.92306 10.47 3.75085 10.2967 3.53843 10.2967H3.07691V1.70312H0Z\",className:nn.foreground}),(0,TD.jsx)(\"path\",{d:\"M9.46163 10.2967C9.24921 10.2967 9.077 10.47 9.077 10.6838V11.1483H9.00009C8.78767 11.1483 8.61548 11.3216 8.61548 11.5354V11.9999H12.9231V11.5354C12.9231 11.3216 12.7509 11.1483 12.5385 11.1483H12.4616V10.6838C12.4616 10.47 12.2894 10.2967 12.077 10.2967V3.40635H12.5001L13.0001 1.70312H9.92315V10.2967H9.46163Z\",className:nn.foreground})]});f();var pEe=ge(We(),1);var mlt=(0,pEe.jsx)(\"svg\",{\"data-testid\":\"ock-websiteSvg\",role:\"img\",\"aria-label\":\"ock-websiteSvg\",width:\"100%\",height:\"100%\",viewBox:\"0 0 12 12\",xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",className:`h-full w-full ${nn.foreground}`,children:(0,pEe.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M6 0C9.31356 0 12 2.68644 12 6C12 9.31356 9.31356 12 6 12C2.69689 12 0.0245556 9.35356 0 6C0.0244789 2.64689 2.69689 0 6 0ZM9.34844 9.97867C9.15053 9.88544 8.9422 9.80002 8.72553 9.72346C8.56251 10.0854 8.36772 10.4313 8.13856 10.7412C8.57762 10.5427 8.98439 10.2854 9.34844 9.97867ZM7.95156 9.49742C7.46353 9.38284 6.9427 9.30992 6.4 9.28597V11.1381C7.04791 10.9365 7.58233 10.2766 7.95156 9.49742ZM5.6 9.28597C5.05729 9.30993 4.53646 9.38284 4.04844 9.49742C4.41771 10.2766 4.95209 10.936 5.6 11.1375V9.28597ZM3.27456 9.72347C3.05737 9.80003 2.84956 9.88544 2.65164 9.97868C3.01571 10.2854 3.42248 10.5427 3.86153 10.7412C3.63237 10.4313 3.43758 10.0854 3.27456 9.72347ZM2.05267 9.38492C2.34486 9.2318 2.65736 9.09534 2.98809 8.97763C2.73913 8.21044 2.58288 7.33386 2.54799 6.40008H0.815211C0.901669 7.53597 1.35323 8.5703 2.05277 9.38497L2.05267 9.38492ZM3.75156 8.74742C4.33229 8.60263 4.95367 8.512 5.6 8.48545V6.4H3.34844C3.3823 7.25677 3.52553 8.05522 3.75157 8.74733L3.75156 8.74742ZM6.4 8.48545C7.04636 8.51201 7.66767 8.60263 8.24844 8.74794C8.47449 8.05523 8.61771 7.25728 8.65157 6.40061L6.40001 6.40009L6.4 8.48545ZM9.012 8.97763C9.34273 9.09534 9.65576 9.2318 9.94742 9.38492C10.6469 8.56982 11.0984 7.53603 11.185 6.40003H9.4522C9.4173 7.33389 9.26106 8.21048 9.0121 8.97759L9.012 8.97763ZM9.94742 2.61508C9.65523 2.7682 9.34273 2.90466 9.012 3.02237C9.26096 3.78956 9.41721 4.66614 9.4521 5.59992H11.1849C11.0984 4.46403 10.6469 3.4297 9.94732 2.61503L9.94742 2.61508ZM8.24853 3.25258C7.6678 3.39737 7.04642 3.488 6.40009 3.51456V5.6H8.65164C8.61779 4.74323 8.47456 3.94478 8.24852 3.25267L8.24853 3.25258ZM5.60009 3.51456C4.95373 3.48799 4.33242 3.39737 3.75164 3.25206C3.5256 3.94477 3.38238 4.74328 3.34852 5.59994H5.60008L5.60009 3.51456ZM2.98809 3.02237C2.65736 2.90466 2.34433 2.7682 2.05267 2.61508C1.35319 3.43018 0.901667 4.46397 0.815111 5.59997H2.54789C2.58278 4.66611 2.73903 3.78952 2.98799 3.02241L2.98809 3.02237ZM2.65163 2.02132C2.84954 2.11455 3.05788 2.19997 3.27454 2.27653C3.43757 1.91456 3.63236 1.56872 3.86152 1.25882C3.42246 1.45726 3.01569 1.71456 2.65163 2.02132ZM4.04852 2.50257C4.53654 2.61714 5.05738 2.69007 5.60008 2.71402V0.861911C4.95217 1.06348 4.41774 1.72337 4.04852 2.50258V2.50257ZM6.40008 2.71402C6.94279 2.69006 7.46362 2.61715 7.95163 2.50257C7.58237 1.7234 7.04747 1.06346 6.40008 0.8619V2.71402ZM8.72552 2.27652C8.94271 2.19996 9.15052 2.11454 9.34843 2.02131C8.98437 1.71454 8.5776 1.45724 8.13855 1.25881C8.36771 1.56923 8.5625 1.91454 8.72552 2.27652Z\"})});f();va();var d4r=xm(ia);f();var hEe=ge(We(),1);function glt({className:e,connectWalletText:t,onClick:n,text:r}){return(0,hEe.jsx)(\"button\",{type:\"button\",\"data-testid\":\"ockConnectButton\",className:ve(Xt.primary,xt.radius,ut.headline,ft.inverse,\"inline-flex min-w-[153px] items-center justify-center px-4 py-3\",e),onClick:n,children:t||(0,hEe.jsx)(\"span\",{className:ve(ft.inverse),children:r})})}f();var ylt=ge(We(),1);function loe({children:e,className:t}){return(0,ylt.jsx)(\"span\",{className:ve(ut.headline,ft.inverse,t),children:e})}f();var Aa=ge(We(),1);f();var fj=ge(We(),1);var xlt=ge(at(),1),Elt=ge(Ob(),1);f();var blt=ge(We(),1),doe=ge(at(),1);function gx({children:e,disableEscapeKey:t=!1,disableOutsideClick:n=!1,onDismiss:r,triggerRef:o,preventTriggerEvents:i=!1}){let a=(0,doe.useRef)(null);return(0,doe.useEffect)(()=>{if(n&&t)return;let c=h=>{i&&(h.preventDefault(),h.stopPropagation())},l=h=>{var g;return(g=a.current)==null?void 0:g.contains(h)},d=h=>{var g;if(n||!(h.target instanceof Node))return;let y=h.target;if((g=o?.current)!=null&&g.contains(y)){c(h);return}l(y)||r?.()},m=h=>{!t&&h.key===\"Escape\"&&r?.()};return document.addEventListener(\"pointerdown\",d,!0),document.addEventListener(\"keydown\",m),()=>{document.removeEventListener(\"pointerdown\",d,!0),document.removeEventListener(\"keydown\",m)}},[n,t,r,o,i]),(0,blt.jsx)(\"div\",{\"data-testid\":\"ockDismissableLayer\",ref:a,children:e})}f();var wlt=ge(We(),1),dj=ge(at(),1),vlt=\\'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])\\';function yx({active:e=!0,children:t}){let n=(0,dj.useRef)(null),r=(0,dj.useRef)(null);(0,dj.useEffect)(()=>{if(e){if(r.current=document.activeElement,n.current){let c=n.current.querySelector(vlt);c?.focus()}return()=>{var c;(c=r.current)==null||c.focus()}}},[e]);let o=()=>{var c;return(c=n.current)==null?void 0:c.querySelectorAll(vlt)},i=(c,l)=>{let d=l[0],m=l[l.length-1],h=document.activeElement===d,g=document.activeElement===m;c.shiftKey&&h?(c.preventDefault(),m.focus()):!c.shiftKey&&g&&(c.preventDefault(),d.focus())};return(0,wlt.jsx)(\"div\",{\"data-testid\":\"ockFocusTrap\",onKeyDown:c=>{if(!e||c.key!==\"Tab\")return;let l=o();l?.length&&i(c,l)},ref:n,children:t})}function Alt({children:e,isOpen:t,modal:n=!0,onClose:r,\"aria-label\":o,\"aria-labelledby\":i,\"aria-describedby\":a}){let c=Va(),l=(0,xlt.useRef)(null);if(!t)return null;let d=(0,fj.jsx)(\"div\",{className:ve(c,ep.modal,\"fixed inset-0 flex items-center justify-center\",\"bg-black/50 transition-opacity duration-200\",\"fade-in animate-in duration-200\"),\"data-portal-origin\":\"true\",children:(0,fj.jsx)(yx,{active:t,children:(0,fj.jsx)(gx,{onDismiss:r,children:(0,fj.jsx)(\"div\",{\"aria-describedby\":a,\"aria-label\":o,\"aria-labelledby\":i,\"aria-modal\":n,className:\"zoom-in-95 animate-in duration-200\",\"data-testid\":\"ockDialog\",onClick:m=>m.stopPropagation(),onKeyDown:m=>{(m.key===\"Enter\"||m.key===\" \")&&m.stopPropagation()},ref:l,role:\"dialog\",children:e})})})});return(0,Elt.createPortal)(d,document.body)}f();var pj=ge(We(),1);function CD({className:e=nn.foreground}){return(0,pj.jsxs)(\"svg\",{\"aria-label\":\"ock-closeSvg\",width:\"12\",height:\"12\",viewBox:\"0 0 16 16\",fill:\"currentColor\",xmlns:\"http://www.w3.org/2000/svg\",className:e,children:[(0,pj.jsx)(\"title\",{children:\"Close\"}),(0,pj.jsx)(\"path\",{d:\"M2.14921 1L1 2.1492L6.8508 8L1 13.8508L2.1492 15L8 9.1492L13.8508 15L15 13.8508L9.14921 8L15 2.1492L13.8508 1L8 6.8508L2.14921 1Z\"})]})}f();var RD=ge(We(),1),foe=(0,RD.jsxs)(\"svg\",{width:\"100%\",height:\"100%\",viewBox:\"0 0 146 146\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",role:\"img\",\"aria-label\":\"Coinbase Wallet Logo\",children:[(0,RD.jsx)(\"title\",{children:\"Coinbase Wallet Logo\"}),(0,RD.jsx)(\"rect\",{width:\"146\",height:\"146\",fill:\"#0052FF\"}),(0,RD.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M21.9 73C21.9 102.053 45.1466 125.3 74.2 125.3C103.253 125.3 126.5 102.053 126.5 73C126.5 43.9466 103.253 20.7 74.2 20.7C45.1466 20.7 21.9 43.9466 21.9 73ZM60.5 54.75C58.5673 54.75 57 56.3173 57 58.25V87.75C57 89.6827 58.5673 91.25 60.5 91.25H87.9C89.8327 91.25 91.4 89.6827 91.4 87.75V58.25C91.4 56.3173 89.8327 54.75 87.9 54.75H60.5Z\",fill:\"white\"})]});f();var ID=ge(We(),1),Slt=(0,ID.jsxs)(\"svg\",{width:\"100%\",height:\"100%\",viewBox:\"0 0 307.5 306\",xmlns:\"http://www.w3.org/2000/svg\",role:\"img\",\"aria-labelledby\":\"frameWallet\",children:[(0,ID.jsx)(\"title\",{id:\"frameWalletTitle\",children:\"Frame Wallet Logo\"}),(0,ID.jsx)(\"rect\",{width:\"100%\",height:\"100%\",fill:\"#28272a\"}),(0,ID.jsx)(\"path\",{fill:\"#00d2be\",transform:\"translate(77, 76.5)\",d:\"M145.1,75.6V17.6c0-5.1-4.2-9.3-9.3-9.3h-58.1c-.6,0-1.1-.2-1.6-.6l-7-7c-.4-.4-1-.7-1.6-.7H9.3C4.2,0,0,4.1,0,9.3h0v58c0,.6.2,1.1.6,1.6l7,7c.4.4.7,1,.7,1.6v58c0,5.1,4.2,9.3,9.3,9.3h58.2c.6,0,1.1.2,1.6.6l7,7c.4.4,1,.6,1.6.6h58.2c5.1,0,9.3-4.1,9.3-9.3h0v-58c0-.6-.2-1.1-.6-1.6l-7-7c-.5-.4-.8-.9-.8-1.5ZM105.6,106.6h-57.7c-.7,0-1.3-.6-1.3-1.3v-57.6c0-.7.6-1.3,1.3-1.3h57.7c.7,0,1.3.6,1.3,1.3v57.6c.1.7-.5,1.3-1.3,1.3Z\"})]});f();var sd=ge(We(),1),_lt=(0,sd.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",xmlSpace:\"preserve\",viewBox:\"0 0 204.8 192.4\",width:\"100%\",height:\"100%\",role:\"img\",\"aria-hidden\":\"true\",children:[(0,sd.jsx)(\"title\",{children:\"MetaMask Logo\"}),(0,sd.jsx)(\"style\",{children:\".st1{fill:#f5841f}.st2{fill:#e27625}.st3{fill:#d7c1b3}.st4{fill:#2f343b}.st5{fill:#cc6228}.st7{fill:#763e1a}\"}),(0,sd.jsx)(\"path\",{id:\"MM_Head_background__x28_Do_not_edit_x29_\",d:\"m167.4 96.1 6.9-8.1-3-2.2 4.8-4.4-3.7-2.8 4.8-3.6-3.1-2.4 5-24.4-7.6-22.6m0 0-48.8 18.1H82L33.2 25.6l.3.2-.3-.2-7.6 22.6 5.1 24.4-3.2 2.4 4.9 3.6-3.7 2.8 4.8 4.4-3 2.2 6.9 8.1-10.5 32.4 9.7 33.1 34.1-9.4v-.1.1l6.6 5.4 13.5 9.2h23.1l13.5-9.2 6.6-5.4 34.2 9.4 9.8-33.1-10.6-32.4m-96.7 56\",className:\"st1\"}),(0,sd.jsxs)(\"g\",{id:\"Logos\",children:[(0,sd.jsx)(\"path\",{d:\"m171.5 25.6-59.9 44.1 11.1-26zM33.2 25.6l59.4 44.5L82 43.7zM150 127.9l-16 24.2 34.2 9.4 9.8-33.1zM26.9 128.4l9.7 33.1 34.1-9.4-15.9-24.2z\",className:\"st2\"}),(0,sd.jsx)(\"path\",{d:\"m68.9 86.9-9.5 14.3 33.8 1.5-1.1-36.2zM135.9 86.9l-23.6-20.8-.7 36.6 33.8-1.5zM70.7 152.1l20.5-9.8-17.7-13.6zM113.6 142.3l20.4 9.8-2.8-23.4z\",className:\"st2\"}),(0,sd.jsx)(\"path\",{d:\"m134 152.1-20.4-9.8 1.7 13.2-.2 5.6zM70.7 152.1l19 9-.1-5.6 1.6-13.2z\",className:\"st3\"}),(0,sd.jsx)(\"path\",{d:\"M90 119.9 73.1 115l12-5.5zM114.7 119.9l5-10.4 12 5.5z\",className:\"st4\"}),(0,sd.jsx)(\"path\",{d:\"m70.7 152.1 3-24.2-18.9.5zM131.1 127.9l2.9 24.2 16-23.7zM145.4 101.2l-33.8 1.5 3.1 17.2 5-10.4 12 5.5zM73.1 115l12-5.5 4.9 10.4 3.2-17.2-33.8-1.5z\",className:\"st5\"}),(0,sd.jsx)(\"path\",{d:\"m59.4 101.2 14.1 27.5-.4-13.7zM131.7 115l-.5 13.7 14.2-27.5zM93.2 102.7 90 119.9l4 20.4.9-26.8zM111.6 102.7l-1.7 10.7.8 26.9 4-20.4z\",className:\"st2\"}),(0,sd.jsx)(\"path\",{d:\"m114.7 119.9-4 20.4 2.9 2 17.6-13.6.5-13.7zM73.1 115l.4 13.7 17.7 13.6 2.8-2-4-20.4z\",className:\"st1\"}),(0,sd.jsx)(\"path\",{d:\"m115.1 161.1.2-5.6-1.6-1.3H91l-1.4 1.3.1 5.6-19-9 6.6 5.4 13.5 9.3h23.1l13.5-9.3 6.6-5.4z\",style:{fill:\"#c0ad9e\"}}),(0,sd.jsx)(\"path\",{d:\"m113.6 142.3-2.9-2H94l-2.8 2-1.6 13.2 1.4-1.3h22.7l1.6 1.3z\",className:\"st4\"}),(0,sd.jsx)(\"path\",{d:\"m174.1 72.6 5-24.4-7.6-22.6-57.9 42.6 22.3 18.7 31.5 9.2 6.9-8.1-3-2.2 4.8-4.3-3.7-2.9 4.8-3.6zM25.6 48.2l5.1 24.4-3.2 2.4 4.8 3.7-3.7 2.8 4.8 4.3-3 2.2 7 8.1 31.5-9.2 22.3-18.7-58-42.6z\",className:\"st7\"}),(0,sd.jsx)(\"path\",{d:\"m167.4 96.1-31.5-9.2 9.5 14.3-14.2 27.5 18.8-.3h28zM68.9 86.9l-31.5 9.2-10.5 32.3h27.9l18.7.3-14.1-27.5zM111.6 102.7l2-34.5 9.1-24.5H82l9.2 24.5 2 34.5.8 10.8v26.8h16.7l.1-26.8z\",className:\"st1\"})]})]});f();var bx=ge(We(),1),Tlt=(0,bx.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 146 146\",width:\"100%\",height:\"100%\",role:\"img\",\"aria-label\":\"Phantom Logo\",children:[(0,bx.jsx)(\"title\",{children:\"Phantom Logo\"}),(0,bx.jsxs)(\"g\",{clipPath:\"url(#clip0_phantom)\",children:[(0,bx.jsx)(\"rect\",{width:\"146\",height:\"146\",rx:\"31.3\",fill:\"#AB9FF2\"}),(0,bx.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M62.92 94.85C57.19 103.66 47.58 114.75 34.79 114.75C28.76 114.75 22.95 112.28 22.95 101.45C22.95 73.97 60.51 31.37 95.38 31.37C115.19 31.37 123.11 45.13 123.11 60.77C123.11 80.81 110.11 103.74 97.15 103.74C93.05 103.74 91.06 101.45 91.06 97.91C91.06 96.98 91.21 95.98 91.52 94.85C87.11 102.41 78.57 109.41 70.6 109.41C64.75 109.41 61.83 105.85 61.83 100.63C61.83 98.77 62.22 96.82 62.92 94.85ZM110.03 60.23C110.03 64.75 107.36 67.03 104.37 67.03C101.31 67.03 98.65 64.75 98.65 60.23C98.65 55.66 101.31 53.38 104.37 53.38C107.36 53.38 110.03 55.66 110.03 60.23ZM92.96 60.23C92.96 64.75 90.29 67.03 87.3 67.03C84.24 67.03 81.58 64.75 81.58 60.23C81.58 55.66 84.24 53.38 87.3 53.38C90.29 53.38 92.96 55.66 92.96 60.23Z\",fill:\"#FFFDF8\"})]}),(0,bx.jsx)(\"defs\",{children:(0,bx.jsx)(\"clipPath\",{id:\"clip0_phantom\",children:(0,bx.jsx)(\"rect\",{width:\"146\",height:\"146\",fill:\"white\"})})})]});f();var vx=ge(We(),1),Clt=(0,vx.jsxs)(\"svg\",{width:\"100%\",height:\"100%\",viewBox:\"0 0 12 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",role:\"img\",\"aria-label\":\"Rabby Wallet Logo\",children:[(0,vx.jsx)(\"title\",{children:\"Rabby Wallet Logo\"}),(0,vx.jsx)(\"rect\",{width:\"12\",height:\"12\",rx:\"3\",fill:\"#EBEDFB\"}),(0,vx.jsxs)(\"g\",{transform:\"translate(0, 0.5) scale(1.1)\",children:[(0,vx.jsx)(\"path\",{d:\"M9.5721 5.7499C9.8866 5.0840 8.1892 3.2154 6.6954 2.3823C5.7598 1.7563 4.7717 1.8401 4.5853 2.1245C4.1549 2.7226 6.0967 3.2520 7.3950 3.8558C7.1472 3.9764 6.8946 4.1838 6.7517 4.4371C6.2874 3.9280 5.2613 3.5014 4.1590 3.8558C3.4854 4.1008 2.7626 4.6852 2.5094 5.5135C2.4467 5.4869 2.3767 5.4710 2.2998 5.4710C2.0064 5.4710 1.7717 5.7096 1.7717 6.0073C1.7717 6.3050 2.0064 6.5436 2.2998 6.5436C2.3507 6.5436 2.5170 6.5076 2.5170 6.5076L4.7717 6.5245C3.9726 8.2040 3.2103 8.4080 3.2103 8.6630C3.2103 8.9180 3.9180 8.8361 4.2186 8.7263C5.7352 8.2146 7.0660 6.6879 7.2942 6.2246C8.3475 6.3688 9.2166 6.3847 9.5721 5.7499Z\",fill:\"#8697FF\"}),(0,vx.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M7.3944 3.8557C7.3945 3.8557 7.3946 3.8558 7.3947 3.8558C7.4548 3.8352 7.4461 3.7506 7.4322 3.6805C7.3994 3.5201 6.7746 2.9261 6.2170 2.6612C5.5215 2.2965 4.9374 2.3152 4.8514 2.4833C4.9937 2.8066 5.7640 3.1063 6.5395 3.4180C6.8882 3.5549 7.2351 3.6939 7.3944 3.8557C7.3944 3.8558 7.3944 3.8558 7.3944 3.8557Z\",fill:\"#8697FF\"}),(0,vx.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M6.2552 7.0712C6.0818 7.0112 5.8933 6.9557 5.6818 6.9061C5.9029 6.5393 5.9510 5.9690 5.7525 5.6028C5.4532 5.1042 5.0556 4.8282 4.2115 4.8282C3.7200 4.8282 2.4599 4.9821 2.4356 6.0102C2.4331 6.1179 2.4356 6.2153 2.4439 6.3080L4.7714 6.5241C4.4672 6.7734 4.1652 7.1284 3.9000 7.4078C4.2305 7.4836 4.4899 7.5487 4.6998 7.6068C4.8768 7.6612 5.0481 7.7126 5.2313 7.7649C5.5162 7.5397 5.8350 7.3024 6.2552 7.0712Z\",fill:\"#465EED\"}),(0,vx.jsx)(\"path\",{d:\"M2.3571 6.1987C2.4479 6.9744 2.9092 7.2696 3.8618 7.3599C4.8144 7.4503 5.3088 7.3884 5.9936 7.4515C6.5898 7.5047 7.0868 7.7870 7.2760 7.6875C7.4406 7.5982 7.3425 7.2733 7.1116 7.0716C6.8062 6.7917 6.4008 6.6022 5.6997 6.5353C5.8437 6.1454 5.8044 5.5937 5.6040 5.2915C5.3096 4.8564 4.7516 4.6586 3.9000 4.7439C3.2649 4.8316 2.6828 5.2346 2.3571 6.1987Z\",fill:\"#6277F1\"})]})]});f();var hj=ge(We(),1);var Rlt=(0,hj.jsxs)(\"svg\",{width:\"100%\",height:\"100%\",viewBox:\"0 0 2500 2500\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",className:ve(\"text-foreground\"),\"aria-labelledby\":\"trustWallet\",children:[(0,hj.jsx)(\"title\",{id:\"trustWalletTitle\",children:\"Trust Wallet Logo\"}),(0,hj.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M84.1,426.3C-1,593.5-1,812.7-1,1250c0,438.4,0,656.5,85.1,823.7c75.1,147.1,195.2,266.2,341.3,341.3   C592.5,2500,811.7,2500,1249,2500c438.4,0,656.5,0,823.7-85.1c147.1-75.1,266.2-195.2,341.3-341.3   c85.1-167.1,85.1-386.3,85.1-823.7c0-438.4,0-656.5-85.1-823.7c-75.1-147.1-195.2-266.2-341.3-341.3C1905.5,0,1686.3,0,1249,0   C810.6,0,592.5,0,425.3,85.1C278.2,160.1,159.1,280.2,84.1,426.3z M1874.5,674.5c22,0,43,9,58,24c15,16,24,37,23,58   c-4,233.2-13,411.3-30,552.4c-16,141.1-41,246.2-78.1,330.3c-25,57-56,104.1-92.1,143.1c-49,53-105.1,91.1-166.1,127.1   c-26,16-53,31-82.1,47c-61,34-127.1,72.1-203.2,123.1c-27,18-63.1,18-90.1,0c-77.1-51-144.1-89.1-205.2-124.1c-14-8-27-15-40-23   c-71.1-41-136.1-81.1-192.2-138.1c-38-38-70.1-83.1-96.1-138.1c-35-73.1-59-161.1-77.1-274.2c-23-152.1-35-351.3-39-627.5   c0-21,8-43,23-58s36-24,58-24h34c104.1,0,332.3-10,530.4-164.1c29-23,70.1-23,100.1,0c198.2,154.1,426.3,164.1,530.4,164.1h34   V674.5z M1692.4,1588.3c25-52,47-125.1,63.1-229.2c19-124.1,31-293.2,36-523.4c-122.1-4-331.3-27-531.4-161.1   c-200.2,134.1-409.3,157.1-530.4,161.1c4,190.2,13,338.3,27,454.4c16,132.1,38,221.2,66.1,284.2c18,42,39,72.1,63.1,98.1   c32,36,73.1,65.1,129.1,98.1c23,14,49,28,77.1,44c50,28,106.1,60,170.1,100.1c62-40,118.1-71.1,167.1-99.1c15-8,29-16,42-24   c69.1-39,120.1-72.1,157.1-111.1c25-26,46-55,65.1-94.1L1692.4,1588.3z\",fill:\"#3375BB\"})]});var NC=ge(at(),1);f();function TJt(e){var t,n,r,o;if(typeof window>\"u\")return!1;if(!window.ethereum)return e===\"phantom\"?!!((n=(t=window.phantom)==null?void 0:t.ethereum)!=null&&n.isPhantom):!1;switch(e){case\"phantom\":return!!((o=(r=window.phantom)==null?void 0:r.ethereum)!=null&&o.isPhantom)||!!window.ethereum.isPhantom;case\"rabby\":return!!window.ethereum.isRabby;case\"trust\":return!!window.ethereum.isTrust||!!window.ethereum.isTrustWallet;case\"frame\":return!!window.ethereum.isFrame;default:return!1}}var CJt={phantom:\"https://phantom.app/download\",rabby:\"https://rabby.io\",trust:\"https://trustwallet.com/download\",frame:\"https://frame.sh\"};function RJt(e){let t=CJt[e];return t?(window.open(t,\"_blank\",\"noopener,noreferrer\"),!0):!1}function poe(e){let t=TJt(e);return t||RJt(e),t}f();var mj=ge(We(),1);function Ilt(){var e,t;let n=Hre(),o=(t=(e=Fo().config)==null?void 0:e.appearance)==null?void 0:t.mode;return(0,mj.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"16\",height:\"16\",fill:\"none\",\"aria-label\":\"Base Account logo\",children:[(0,mj.jsx)(\"title\",{children:\"Base Account logo\"}),(0,mj.jsx)(\"path\",{fill:o===\"dark\"||o===\"auto\"&&n===\"dark\"?\"#FFF\":\"#00F\",d:\"M0 2.014c0-.433 0-.65.082-.816A.8.8 0 0 1 .448.832C.615.75.831.75 1.264.75h13.472c.433 0 .65 0 .816.082a.8.8 0 0 1 .366.366c.082.167.082.383.082.816v13.472c0 .433 0 .65-.082.816a.8.8 0 0 1-.366.366c-.167.082-.383.082-.816.082H1.264c-.433 0-.65 0-.816-.082a.8.8 0 0 1-.366-.366C0 16.135 0 15.919 0 15.486V2.014Z\"})]})}function mEe({className:e,isOpen:t,onClose:n,onError:r}){var o,i,a,c,l,d;let{connect:m}=RL(),{config:h}=Fo(),g=((o=h?.appearance)==null?void 0:o.logo)??void 0,y=((i=h?.appearance)==null?void 0:i.name)??void 0,w=((a=h?.wallet)==null?void 0:a.privacyUrl)??void 0,x=((c=h?.wallet)==null?void 0:c.termsUrl)??void 0,I=((l=h?.wallet)==null?void 0:l.supportedWallets)??{rabby:!1,trust:!1,frame:!1},C=((d=h?.wallet)==null?void 0:d.signUpEnabled)??!0,M=(0,NC.useCallback)(()=>{try{m({connector:RU({appName:y,appLogoUrl:g})}),n()}catch(te){console.error(\"Base Account connection error:\",te),r&&r(te instanceof Error?te:new Error(\"Failed to connect wallet\"))}},[y,g,m,n,r]),B=(0,NC.useCallback)(()=>{try{let te=kT({preference:\"all\",appName:y,appLogoUrl:g});m({connector:te}),n()}catch(te){console.error(\"Coinbase Wallet connection error:\",te),r&&r(te instanceof Error?te:new Error(\"Failed to connect wallet\"))}},[y,g,m,n,r]),z=(0,NC.useCallback)(()=>{try{let te=qH({dappMetadata:{name:y||\"OnchainKit App\",url:window.location.origin,iconUrl:g}});m({connector:te}),n()}catch(te){console.error(\"MetaMask connection error:\",te),r?.(te instanceof Error?te:new Error(\"Failed to connect wallet\"))}},[m,n,r,y,g]),G=(0,NC.useCallback)(()=>{try{if(!poe(\"phantom\")){n();return}let te=Gg({target:\"phantom\"});m({connector:te}),n()}catch(te){console.error(\"Phantom connection error:\",te),r?.(te instanceof Error?te:new Error(\"Failed to connect wallet\"))}},[m,n,r]),J=(0,NC.useCallback)(()=>{try{if(!poe(\"rabby\")){n();return}let te=Gg({target:\"rabby\"});m({connector:te}),n()}catch(te){console.error(\"Rabby connection error:\",te),r?.(te instanceof Error?te:new Error(\"Failed to connect wallet\"))}},[m,n,r]),ne=(0,NC.useCallback)(()=>{try{if(!poe(\"trust\")){n();return}let te=Gg({target:\"trust\"});m({connector:te}),n()}catch(te){console.error(\"Trust Wallet connection error:\",te),r?.(te instanceof Error?te:new Error(\"Failed to connect wallet\")),n()}},[m,n,r]),ie=(0,NC.useCallback)(()=>{var te;try{if(!((te=window.ethereum)!=null&&te.isFrame)){window.open(\"https://frame.sh/download\",\"_blank\"),n();return}let Z=Gg();m({connector:Z}),n()}catch(Z){console.error(\"Frame Wallet connection error:\",Z),r?.(Z instanceof Error?Z:new Error(\"Failed to connect wallet\")),n()}},[m,n,r]),ae=[{id:\"base-account\",name:\"Base\",icon:(0,Aa.jsx)(Ilt,{}),connector:M,enabled:!0},{id:\"coinbase\",name:\"Coinbase Wallet\",icon:foe,connector:B,enabled:!0},{id:\"metamask\",name:\"MetaMask\",icon:_lt,connector:z,enabled:!0},{id:\"phantom\",name:\"Phantom\",icon:Tlt,connector:G,enabled:!0},{id:\"rabby\",name:\"Rabby\",icon:Clt,connector:J,enabled:I.rabby===!0},{id:\"trust\",name:\"Trust Wallet\",icon:Rlt,connector:ne,enabled:I.trust===!0},{id:\"frame\",name:\"Frame\",icon:Slt,connector:ie,enabled:I.frame===!0}].filter(te=>te.enabled);return(0,Aa.jsx)(Alt,{isOpen:t,onClose:n,\"aria-label\":\"Connect Wallet\",children:(0,Aa.jsxs)(\"div\",{\"data-testid\":\"ockModalOverlay\",className:ve(xt.lineDefault,xt.radius,_n.default,\"w-[22rem] p-6 pb-4\",\"relative flex flex-col items-center gap-4\",e),children:[(0,Aa.jsx)(\"button\",{type:\"button\",onClick:n,className:ve(Xt.default,xt.radius,xt.default,\"absolute top-4 right-4\",\"flex items-center justify-center p-1\",\"transition-colors duration-200\"),\"aria-label\":\"Close modal\",children:(0,Aa.jsx)(\"div\",{className:ve(\"flex h-4 w-4 items-center justify-center\"),children:(0,Aa.jsx)(CD,{})})}),(g||y)&&(0,Aa.jsxs)(\"div\",{className:\"flex w-full flex-col items-center gap-2 py-3\",children:[g&&(0,Aa.jsx)(\"div\",{className:ve(xt.radius,\"h-14 w-14 overflow-hidden\"),children:(0,Aa.jsx)(\"img\",{src:g,alt:`${y||\"App\"} icon`,className:\"h-full w-full object-cover\"})}),y&&(0,Aa.jsx)(\"h2\",{className:ve(ut.headline,ft.foreground,\"text-center\"),children:y})]}),(0,Aa.jsxs)(\"div\",{className:\"flex w-full flex-col gap-3\",children:[C&&(0,Aa.jsxs)(\"button\",{type:\"button\",onClick:B,className:ve(xt.radius,ut.body,Xt.alternate,ft.foreground,\"flex items-center justify-between px-4 py-3 text-left\"),children:[\"Sign up\",(0,Aa.jsx)(\"div\",{className:\"h-4 w-4\",children:Vre})]}),(0,Aa.jsxs)(\"div\",{className:\"relative\",children:[C&&(0,Aa.jsx)(\"div\",{className:\"absolute inset-0 flex items-center\",children:(0,Aa.jsx)(\"div\",{className:ve(xt.lineDefault,\"w-full border-[0.5px]\")})}),(0,Aa.jsx)(\"div\",{className:\"relative flex justify-center\",children:(0,Aa.jsx)(\"span\",{className:ve(_n.default,ft.foregroundMuted,ut.legal,\"px-2\"),children:C?\"or continue with an existing wallet\":\"Connect your wallet\"})})]}),ae.map(te=>(0,Aa.jsxs)(\"button\",{type:\"button\",onClick:te.connector,className:ve(xt.radius,_n.default,ut.body,Xt.alternate,ft.foreground,\"flex items-center justify-between px-4 py-3 text-left\"),children:[te.name,(0,Aa.jsx)(\"div\",{className:\"-mr-0.5 flex h-4 w-4 items-center justify-center\",children:te.icon})]},te.id))]}),(0,Aa.jsxs)(\"div\",{className:ve(ft.foregroundMuted,ut.legal,\"flex flex-col items-center justify-center gap-1 px-4\",\"mt-4 text-center\"),children:[(0,Aa.jsx)(\"span\",{className:\"font-normal text-[10px] leading-[13px]\",children:\"By connecting a wallet, you agree to our\"}),(0,Aa.jsxs)(\"span\",{className:\"font-normal text-[10px] leading-[13px]\",children:[x&&(0,Aa.jsx)(\"a\",{href:x,className:ve(ft.primary,\"hover:underline\"),target:\"_blank\",rel:\"noopener noreferrer\",tabIndex:0,children:\"Terms of Service\"}),\" \",x&&w&&\"and\",\" \",w&&(0,Aa.jsx)(\"a\",{href:w,className:ve(ft.primary,\"hover:underline\"),target:\"_blank\",rel:\"noopener noreferrer\",tabIndex:0,children:\"Privacy Policy\"}),\".\"]})]})]})})}f();var Llt=ge(We(),1);f();var hoe=ge(at(),1),IJt={sm:\"(max-width: 640px)\",md:\"(min-width: 641px) and (max-width: 768px)\",lg:\"(min-width: 769px) and (max-width: 1023px)\",xl:\"(min-width: 1024px) and (max-width: 1279px)\",\"2xl\":\"(min-width: 1280px)\"};function moe(){let[e,t]=(0,hoe.useState)(void 0);return(0,hoe.useEffect)(()=>{let n=()=>{let o=Object.entries(IJt);for(let[i,a]of o)if(window.matchMedia(a).matches)return i;return\"md\"};t(n());let r=()=>{t(n())};return window.addEventListener(\"resize\",r),()=>window.removeEventListener(\"resize\",r)},[]),e}var au=ge(at(),1);f();function klt(e,t){return e?{container:t?\"fade-out slide-out-to-bottom-1.5 animate-out fill-mode-forwards ease-in-out\":\"fade-out slide-out-to-top-1.5 animate-out fill-mode-forwards ease-in-out\",content:\"\"}:{container:t?\"fade-in slide-in-from-bottom-1.5 animate-in duration-300 ease-out\":\"fade-in slide-in-from-top-1.5 animate-in duration-300 ease-out\",content:t?\"fade-in slide-in-from-bottom-2.5 animate-in fill-mode-forwards duration-300 ease-out\":\"fade-in slide-in-from-top-2.5 animate-in fill-mode-forwards duration-300 ease-out\"}}f();f();f();va();var Olt={name:\"ETH\",address:\"\",symbol:\"ETH\",decimals:18,image:\"https://wallet-api-production.s3.amazonaws.com/uploads/tokens/eth_288.png\",chainId:fr.id},x8r={name:\"ETH\",address:\"\",symbol:\"ETH\",decimals:18,image:\"https://wallet-api-production.s3.amazonaws.com/uploads/tokens/eth_288.png\",chainId:Cs.id},Nlt={name:\"USDC\",address:\"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",symbol:\"USDC\",decimals:6,image:\"https://d3r81g40ycuhqg.cloudfront.net/wallet/wais/44/2b/442b80bd16af0c0d9b22e03a16753823fe826e5bfd457292b55fa0ba8c1ba213-ZWUzYjJmZGUtMDYxNy00NDcyLTg0NjQtMWI4OGEwYjBiODE2\",chainId:fr.id},E8r={name:\"USDC\",address:\"0x036CbD53842c5426634e7929541eC2318f3dCF7e\",symbol:\"USDC\",decimals:6,image:\"https://d3r81g40ycuhqg.cloudfront.net/wallet/wais/44/2b/442b80bd16af0c0d9b22e03a16753823fe826e5bfd457292b55fa0ba8c1ba213-ZWUzYjJmZGUtMDYxNy00NDcyLTg0NjQtMWI4OGEwYjBiODE2\",chainId:Cs.id},A8r={name:\"DEGEN\",address:\"0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed\",symbol:\"DEGEN\",decimals:18,image:\"https://d3r81g40ycuhqg.cloudfront.net/wallet/wais/3b/bf/3bbf118b5e6dc2f9e7fc607a6e7526647b4ba8f0bea87125f971446d57b296d2-MDNmNjY0MmEtNGFiZi00N2I0LWIwMTItMDUyMzg2ZDZhMWNm\",chainId:fr.id},S8r={name:\"DAI\",address:\"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb\",symbol:\"DAI\",decimals:18,image:\"https://d3r81g40ycuhqg.cloudfront.net/wallet/wais/92/13/9213e31b84c98a693f4c624580fdbe6e4c1cb550efbba15aa9ea68fd25ffb90c-ZTE1NmNjMGUtZGVkYi00ZDliLWI2N2QtNTY2ZWRjMmYwZmMw\",chainId:fr.id},_8r={name:\"WETH\",address:\"0x4200000000000000000000000000000000000006\",symbol:\"WETH\",decimals:18,image:\"https://d3r81g40ycuhqg.cloudfront.net/wallet/wais/47/bc/47bc3593c2dec7c846b66b7ba5f6fa6bd69ec34f8ebb931f2a43072e5aaac7a8-YmUwNmRjZDUtMjczYy00NDFiLWJhZDUtMzgwNjFmYWM0Njkx\",chainId:fr.id},T8r={name:\"LBTC\",address:\"0xecAc9C5F704e954931349Da37F60E39f515c11c1\",symbol:\"LBTC\",decimals:8,image:\"https://d3r81g40ycuhqg.cloudfront.net/wallet/wais/a3/40/a340085995bc54eddbcb66bab87833a7089edd1513847c39fc1799cab9207db4-Zjk2YzQ2MmQtMTY2OS00YWQyLWFkMGQtMjQ3OGYzNzljMWY2\",chainId:fr.id},C8r={name:\"cbBTC\",address:\"0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf\",symbol:\"cbBTC\",decimals:8,image:\"https://go.wallet.coinbase.com/static/CBBTCMedium.png\",chainId:fr.id},R8r={name:\"eUSD\",address:\"0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4\",symbol:\"eUSD\",decimals:18,image:\"https://d3r81g40ycuhqg.cloudfront.net/wallet/wais/bf/a4/bfa445583916854508ae5d88f9cca19cd5a0910d8c4d7cd9385eb40a597017d7-MDFhM2E0YmQtZGU3NS00Yzk3LWFlMzAtMzA1Y2UyYzU2ZGEy\",chainId:fr.id},I8r={name:\"EURC\",address:\"0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42\",symbol:\"EURC\",decimals:6,image:\"https://d3r81g40ycuhqg.cloudfront.net/wallet/wais/54/f4/54f4216472dd25b1ffb5caf32cc0d81f645c84be166cd713f759a80f05a1418f-M2YxNTczYTItNjk3YS00N2FiLThkZjktYzBiYzExZTk1ZTFj\",chainId:fr.id};var Plt=400,Mlt=352,Dlt=[Olt,Nlt];function Blt(e){if(typeof window>\"u\")return{showAbove:!1,alignRight:!1};let t=window.innerHeight-e.bottom,n=window.innerWidth-e.left;return{showAbove:t<Plt,alignRight:n<Mlt}}var kJt={},Ult=(0,au.createContext)(kJt);function gEe({children:e,isSponsored:t}){let{chain:n}=Fo(),[r,o]=(0,au.useState)(!1),[i,a]=(0,au.useState)(!1),[c,l]=(0,au.useState)(!1),[d,m]=(0,au.useState)(!1),[h,g]=(0,au.useState)(!1),y=(0,au.useRef)(null),{address:w}=xr(),x=moe(),[I,C]=(0,au.useState)(null),[M,B]=(0,au.useState)(!1),z=(0,au.useMemo)(()=>klt(c,d),[c,d]),G=(0,au.useCallback)(()=>{i&&l(!0)},[i]);(0,au.useEffect)(()=>{if(i&&y?.current){let ne=y.current.getBoundingClientRect(),ie=Blt(ne);m(ie.showAbove),g(ie.alignRight)}},[i]);let J=(0,au.useMemo)(()=>({address:w,chain:n,breakpoint:x,isConnectModalOpen:r,setIsConnectModalOpen:o,isSubComponentOpen:i,setIsSubComponentOpen:a,isSubComponentClosing:c,setIsSubComponentClosing:l,handleClose:G,connectRef:y,showSubComponentAbove:d,alignSubComponentRight:h,activeFeature:I,setActiveFeature:C,isActiveFeatureClosing:M,setIsActiveFeatureClosing:B,animations:z,isSponsored:t}),[w,n,x,r,i,c,G,d,h,I,M,z,t]);return(0,Llt.jsx)(Ult.Provider,{value:J,children:e})}function Di(){return(0,au.useContext)(Ult)}var OJt=(0,Jd.jsxs)(Jd.Fragment,{children:[(0,Jd.jsx)(ph,{className:\"h-6 w-6\"}),(0,Jd.jsx)(Em,{})]});function P1({children:e,className:t,text:n=\"Connect Wallet\",onConnect:r,disconnectedLabel:o}){var i,a;let{config:c={wallet:{display:void 0}}}=Fo(),{setIsConnectModalOpen:l,isSubComponentOpen:d,setIsSubComponentOpen:m,handleClose:h}=Di(),{address:g,status:y,connector:w}=xr(),{connectors:x,connect:I,status:C}=RL(),{sendAnalytics:M}=Ga(),[B,z]=(0,Pc.useState)(!1),[G,J]=(0,Pc.useState)(!1),{connectWalletText:ne}=(0,Pc.useMemo)(()=>({connectWalletText:Pc.Children.toArray(e).find(fh(loe))}),[e]),ie=(0,Pc.useMemo)(()=>Pc.Children.map(e,L=>(0,Pc.isValidElement)(L)&&L.type===loe?null:L),[e]),ae=w||x[0],te=C===\"pending\"||y===\"connecting\",Z=(0,Pc.useCallback)(()=>{d?h?.():m(!0)},[d,h,m]),X=(0,Pc.useCallback)(()=>{J(!1),l?.(!1)},[l]),F=(0,Pc.useCallback)(()=>{J(!0),l?.(!0),z(!0)},[l]),R=(0,Pc.useCallback)(L=>{M(cx.ConnectInitiated,{component:L})},[M]),O=(0,Pc.useCallback)(L=>{let W=ae?.name;M(cx.ConnectSuccess,{address:L??\"\",walletProvider:W})},[M,ae]),U=(0,Pc.useCallback)((L,W)=>{let q=ae?.name;M(cx.ConnectError,{error:L,metadata:{connector:q,component:W}})},[M,ae]);(0,Pc.useEffect)(()=>{B&&y===\"connected\"&&r&&(r(),z(!1))},[y,B,r]),(0,Pc.useEffect)(()=>{y===\"connected\"&&g&&ae&&O(g)},[y,g,ae,O]);let P=(0,Pc.useCallback)(()=>{var L;if(((L=c?.wallet)==null?void 0:L.display)===\"modal\"){F(),z(!0),R(\"WalletModal\");return}R(\"ConnectWallet\"),I({connector:ae},{onSuccess:()=>{r?.(),O(g)},onError:W=>{U(W.message,\"ConnectWallet\")}})},[(i=c?.wallet)==null?void 0:i.display,g,I,ae,U,R,O,F,r]);return y===\"disconnected\"?(0,Jd.jsxs)(\"div\",{className:\"flex\",\"data-testid\":\"ockConnectWallet_Container\",children:[(0,Jd.jsx)(glt,{className:t,connectWalletText:ne||o,onClick:P,text:n}),((a=c?.wallet)==null?void 0:a.display)===\"modal\"&&(0,Jd.jsx)(mEe,{isOpen:G,onClose:X})]}):te?(0,Jd.jsx)(\"div\",{className:\"flex\",\"data-testid\":\"ockConnectWallet_Container\",children:(0,Jd.jsx)(\"button\",{type:\"button\",\"data-testid\":\"ockConnectAccountButtonInner\",className:ve(Xt.primary,ut.headline,ft.inverse,\"inline-flex min-w-[153px] items-center justify-center rounded-xl px-4 py-3\",Xt.disabled,t),disabled:!0,children:(0,Jd.jsx)(M0,{})})}):(0,Jd.jsx)(Wre,{address:g,children:(0,Jd.jsx)(\"div\",{className:\"flex gap-4\",\"data-testid\":\"ockConnectWallet_Container\",children:(0,Jd.jsx)(\"button\",{type:\"button\",\"data-testid\":\"ockConnectWallet_Connected\",className:ve(Xt.secondary,xt.radius,ft.foreground,\"px-4 py-3\",d&&\"ock-bg-secondary-active hover:ock-bg-secondary-active\",t),onClick:Z,children:(0,Jd.jsx)(\"div\",{className:\"flex items-center justify-center gap-2\",children:ie||OJt})})})})}f();var Wlt=ge(at(),1);f();f();var Flt=ge(at(),1);f();function kD({chainId:e}){let{isConnected:t}=xr(),{data:n,error:r}=Bde({query:{enabled:t}});return(0,Flt.useMemo)(()=>r||!n||!n[e]?{}:n[e],[n,e,r])}var NJt=\"coinbaseWalletSDK\";function Hlt(){var e;let{chain:t}=Fo(),{connector:n}=xr(),r=kD({chainId:t.id});return n?.id===NJt&&((e=r.atomicBatch)==null?void 0:e.supported)===!0}f();var PJt=\"https://keys.coinbase.com/fund\";function yEe(){let e=window.location.href,t=document.title;return`${PJt}?dappName=${encodeURIComponent(t)}&dappUrl=${encodeURIComponent(e)}&version=${encodeURIComponent(bC)}&source=onchainkit`}f();f();var gj=\"https://pay.coinbase.com\",goe=`${gj}/buy`,zlt=720,jlt=460,OD=\"https://api.developer.coinbase.com/onramp/v1\",bEe=3e3;function XI({projectId:e,originComponentName:t,...n}){let r=new URL(goe);e!==void 0&&r.searchParams.append(\"appId\",e);for(let o of Object.keys(n)){let i=n[o];i!==void 0&&([\"string\",\"number\",\"boolean\"].includes(typeof i)?r.searchParams.append(o,i.toString()):r.searchParams.append(o,JSON.stringify(i)))}return t?r.searchParams.append(\"sdkVersion\",`onchainkit@${bC}:${t}`):r.searchParams.append(\"sdkVersion\",`onchainkit@${bC}`),r.searchParams.sort(),r.toString()}function vEe({fiatCurrency:e,originComponentName:t}){let{projectId:n,chain:r}=Fo(),{address:o,chain:i}=xr(),a=Hlt(),c=i||r;return(0,Wlt.useMemo)(()=>{if(a)return yEe();if(!(n===null||o===void 0))return XI({projectId:n,addresses:{[o]:[c.name.toLowerCase()]},fiatCurrency:e,originComponentName:t})},[a,n,o,c,e,t])}f();f();var MJt={sm:{width:\"24.67vw\",height:\"30.83vw\"},md:{width:\"29vw\",height:\"36.25vw\"},lg:{width:\"35vw\",height:\"43.75vw\"}},Vlt=e=>{let{width:t,height:n}=MJt[e],r=280,o=350,i=g=>g/100*window.innerWidth,a=Math.max(r,Math.round(i(Number.parseFloat(t)))),c=Math.max(o,Math.round(i(Number.parseFloat(n)))),l=Math.round(window.innerWidth*.9),d=Math.round(window.innerHeight*.9),m=Math.min(a,l),h=Math.min(c,d);return{width:m,height:h}};function wEe(e,t){return t?.includes(goe)?{height:zlt,width:jlt}:Vlt(e)}function yj({className:e,disabled:t=!1,fundingUrl:n,hideIcon:r=!1,hideText:o=!1,openIn:i=\"popup\",popupSize:a=\"md\",rel:c,target:l,text:d=\"Fund\",successText:m=\"Success\",errorText:h=\"Something went wrong\",state:g=\"default\",fiatCurrency:y=\"USD\",onPopupClose:w,onClick:x}){let I=Va(),C=vEe({fiatCurrency:y,originComponentName:\"FundButton\"}),{address:M}=xr(),B=n??C,z=t||!B,G=!M,{startPopupMonitor:J}=yut(w),{sendAnalytics:ne}=Ga(),ie=(0,EA.useCallback)(()=>{ne(Jf.FundInitiated,{currency:y})},[ne,y]),ae=(0,EA.useCallback)(U=>{ne(Jf.FundFailure,{error:U,metadata:{currency:y}})},[ne,y]),te=(0,EA.useCallback)(U=>{if(U.preventDefault(),B){ie(),x?.();let{height:P,width:L}=wEe(a,B),W=V2e({url:B,height:P,width:L,target:l});W?J(W):ae(\"Failed to open funding popup\")}},[B,a,l,x,J,ie,ae]),Z=(0,EA.useMemo)(()=>g===\"error\"?_n.error:Xt.primary,[g]),X=ve(I,Z,\"px-4 py-3 inline-flex items-center justify-center space-x-2\",{[Xt.disabled]:z},ut.headline,xt.radius,ft.inverse,e),F=(0,EA.useMemo)(()=>{if(r)return null;switch(g){case\"loading\":return\"\";case\"success\":return(0,Am.jsx)(fD,{fill:\"#F9FAFB\"});case\"error\":return(0,Am.jsx)(zre,{fill:\"#F9FAFB\"});default:return(0,Am.jsx)(but,{})}},[g,r]),R=(0,EA.useMemo)(()=>{switch(g){case\"loading\":return\"\";case\"success\":return m;case\"error\":return h;default:return d}},[g,m,h,d]),O=(0,EA.useMemo)(()=>g===\"loading\"?(0,Am.jsx)(M0,{}):(0,Am.jsxs)(Am.Fragment,{children:[F&&(0,Am.jsx)(\"span\",{\"data-testid\":\"ockFundButtonIcon\",className:\"flex h-6 items-center\",children:F}),o||(0,Am.jsx)(\"span\",{\"data-testid\":\"ockFundButtonTextContent\",children:R})]}),[g,F,R,o]);return i===\"tab\"?(0,Am.jsx)(\"a\",{className:X,href:B,target:l??\"_blank\",rel:c,children:O}):G?(0,Am.jsx)(P1,{className:ve(\"w-full\",e)}):(0,Am.jsx)(\"button\",{className:X,onClick:te,type:\"button\",disabled:z,\"data-testid\":\"ockFundButton\",children:O})}f();var np=ge(We(),1);f();var MD=ge(at(),1);f();var Ylt=ge(We(),1),Mc=ge(at(),1);f();f();var yoe=ge(at(),1);function ND(e){let[t,n]=(0,yoe.useState)(e),r=(0,yoe.useCallback)(o=>{n(i=>{let a=i.statusName===\"error\"?(({error:c,code:l,message:d,...m})=>m)(i.statusData):i.statusData;return{statusName:o.statusName,statusData:{...a,...o.statusData}}})},[]);return[t,r]}var boe=ge(at(),1),Glt=({onError:e,onSuccess:t,onStatus:n})=>{let[r,o]=ND({statusName:\"init\",statusData:null});return(0,boe.useEffect)(()=>{r.statusName===\"error\"&&e?.(r.statusData),r.statusName===\"transactionSuccess\"&&t?.(r.statusData),n?.(r)},[e,n,t,r,r.statusData,r.statusName]),(0,boe.useMemo)(()=>({lifecycleStatus:r,updateLifecycleStatus:o}),[r,o])};f();var voe=ge(at(),1);f();f();function PC(e){return typeof e==\"string\"?e:Array.isArray(e)?e.map(t=>PC(t)):e&&e.constructor===Object?Object.keys(e).reduce((t,n)=>{let r=DJt(n);return t[r]=PC(e[n]),t},{}):e}function DJt(e){return e.replace(/_([a-z])/g,(t,n)=>n.toUpperCase())}f();var PD=()=>{if(!a0.apiKey)throw new Error(\"API Key Unset: Please set the API Key by providing it in the `OnchainKitProvider` or by manually calling `setOnchainKitConfig`. For more information, visit: https://portal.cdp.coinbase.com/products/onchainkit\");return a0.apiKey};async function xEe({purchaseCurrency:e,purchaseNetwork:t,paymentCurrency:n,paymentMethod:r,paymentAmount:o,country:i,subdivision:a,apiKey:c}){let l=c||PD(),m=await(await fetch(`${OD}/buy/quote`,{method:\"POST\",body:JSON.stringify({purchase_currency:e,purchase_network:t,payment_currency:n,payment_method:r,payment_amount:o,country:i,subdivision:a}),headers:{Authorization:`Bearer ${l}`}})).json();return PC(m)}var woe=({asset:e,currency:t,country:n,subdivision:r,setExchangeRate:o,onError:i})=>{let a=(0,voe.useCallback)(async()=>{try{let c=await xEe({purchaseCurrency:e,paymentCurrency:t,paymentAmount:\"100\",paymentMethod:\"CARD\",country:n,subdivision:r});o(Number(c.purchaseAmount.value)/Number(c.paymentSubtotal.value))}catch(c){c instanceof Error?(console.error(\"Error fetching exchange rate:\",c),i?.({errorType:\"handled_error\",code:\"EXCHANGE_RATE_ERROR\",debugMessage:c.message})):(console.error(\"Unknown error fetching exchange rate:\",c),i?.({errorType:\"unknown_error\",code:\"EXCHANGE_RATE_ERROR\",debugMessage:JSON.stringify(c)}))}},[e,n,r,t,i,o]);return(0,voe.useMemo)(()=>({fetchExchangeRate:a}),[a])};f();var xoe=ge(at(),1);f();var BJt=e=>[e.some(n=>n.id===\"ACH_BANK_ACCOUNT\")&&\"ACH\",e.some(n=>n.id===\"CARD\")&&\"debit\",\"cash\",\"crypto balance\"].filter(Boolean).join(\", \"),LJt=({limits:e})=>({id:\"\",name:\"Coinbase\",description:BJt(e),icon:\"coinbaseLogo\",minAmount:Math.min(...e.map(t=>Number(t.min))),maxAmount:Math.max(...e.map(t=>Number(t.max)))}),UJt=e=>[{id:\"APPLE_PAY\",name:\"Apple Pay\",icon:\"apple\"},{id:\"CARD\",name:\"Debit card\",icon:\"creditCard\"}].map(n=>{let r=e.limits.find(o=>o.id===n.id);return{...n,description:\"Up to $500/week. No sign up required.\",minAmount:Number(r?.min)||2,maxAmount:Number(r?.max)||500}}),qlt=(e,t,n)=>{let r=e.paymentCurrencies.find(a=>a.id===t);if(!r)return[];let o=LJt(r),i=[];return n===\"US\"&&t===\"USD\"&&(i=UJt(r)),[o,...i]};f();async function EEe({country:e,subdivision:t,apiKey:n}){let r=n||PD(),o=`?country=${e}`;t&&(o=`${o}&subdivision=${t}`);let a=await(await fetch(`${OD}/buy/options${o}`,{method:\"GET\",headers:{Authorization:`Bearer ${r}`}})).json();return PC(a)}var Klt=({country:e,subdivision:t,currency:n,setPaymentMethods:r,setIsPaymentMethodsLoading:o,onError:i})=>{let a=(0,xoe.useCallback)(async()=>{o(!0);try{let c=await EEe({country:e,subdivision:t}),l=qlt(c,n,e);l.length===0&&(console.error(\"No payment methods found for the selected country and currency. See docs for more information: https://docs.cdp.coinbase.com/onramp/docs/api-configurations\"),i?.({errorType:\"handled_error\",code:\"NO_PAYMENT_METHODS\",debugMessage:\"No payment methods found for the selected country and currency. See docs for more information: https://docs.cdp.coinbase.com/onramp/docs/api-configurations\"})),r(l)}catch(c){c instanceof Error&&(console.error(\"Error fetching payment options:\",c),i?.({errorType:\"handled_error\",code:\"PAYMENT_METHODS_ERROR\",debugMessage:c.message}))}finally{o(!1)}},[e,t,n,r,o,i]);(0,xoe.useEffect)(()=>{a()},[])};var Zlt=(0,Mc.createContext)(void 0);function AEe({children:e,asset:t,currency:n=\"USD\",headerText:r=`Buy ${t.toUpperCase()}`,buttonText:o,country:i,subdivision:a,inputType:c,onError:l,onStatus:d,onSuccess:m,presetAmountInputs:h}){let[g,y]=(0,Mc.useState)(),[w,x]=(0,Mc.useState)(c||\"fiat\"),[I,C]=(0,Mc.useState)(\"\"),[M,B]=(0,Mc.useState)(\"\"),[z,G]=(0,Mc.useState)(0),[J,ne]=(0,Mc.useState)(!0),[ie,ae]=(0,Mc.useState)(\"default\"),[te,Z]=(0,Mc.useState)([]),[X,F]=(0,Mc.useState)(!0),{lifecycleStatus:R,updateLifecycleStatus:O}=Glt({onError:l,onSuccess:m,onStatus:d}),{fetchExchangeRate:U}=woe({asset:t,currency:n,country:i,subdivision:a,setExchangeRate:G,onError:l}),{sendAnalytics:P}=Ga(),L=(0,Mc.useCallback)((oe,se)=>{P(Jf.FundAmountChanged,{amount:oe,currency:se})},[P]),W=(0,Mc.useCallback)(oe=>{P(Jf.FundOptionSelected,{option:oe})},[P]),q=(0,Mc.useCallback)(oe=>{let se=Number.parseFloat(oe);Number.isNaN(se)||L(se,n),C(oe)},[n,L]),H=(0,Mc.useCallback)(oe=>{W(oe.id),y(oe)},[W]),k=(0,Mc.useCallback)(async()=>{ne(!0),await U(),ne(!1)},[U]);(0,Mc.useEffect)(()=>{k()},[]),Klt({country:i,subdivision:a,currency:n,setPaymentMethods:Z,setIsPaymentMethodsLoading:F,onError:l});let V=ad({asset:t,currency:n,selectedPaymentMethod:g,setSelectedPaymentMethod:H,fundAmountFiat:I,setFundAmountFiat:q,fundAmountCrypto:M,setFundAmountCrypto:B,selectedInputType:w,setSelectedInputType:x,exchangeRate:z,setExchangeRate:G,exchangeRateLoading:J,setExchangeRateLoading:ne,submitButtonState:ie,setSubmitButtonState:ae,paymentMethods:te,setPaymentMethods:Z,isPaymentMethodsLoading:X,setIsPaymentMethodsLoading:F,headerText:r,buttonText:o,country:i,subdivision:a,lifecycleStatus:R,updateLifecycleStatus:O,presetAmountInputs:h,onError:l});return(0,Ylt.jsx)(Zlt.Provider,{value:V,children:e})}function Xd(){let e=(0,Mc.useContext)(Zlt);if(!e)throw new Error(\"useFundContext must be used within a FundCardProvider\");return e}f();f();function Qlt({onMessage:e,allowedOrigin:t=gj,onValidateOrigin:n=()=>Promise.resolve(!0)}){let r=o=>{if(!FJt({event:o,allowedOrigin:t}))return;let{eventName:i,data:a}=JSON.parse(o.data);i===\"event\"&&(async()=>await n(o.origin)&&e(a))()};return window.addEventListener(\"message\",r),()=>{window.removeEventListener(\"message\",r)}}function FJt({event:e,allowedOrigin:t}){return!t||e.origin===t}function SEe({onEvent:e,onExit:t,onSuccess:n,host:r=gj}){return Qlt({allowedOrigin:r,onMessage:i=>{let a=i;a.eventName===\"success\"&&n?.(a.data),a.eventName===\"exit\"&&t?.(a.error),e?.(a)}})}var Jlt=()=>{let{setSubmitButtonState:e,updateLifecycleStatus:t}=Xd(),n=(0,MD.useCallback)(i=>{i.eventName===\"transition_view\"?t({statusName:\"transactionPending\",statusData:void 0}):i.eventName===\"error\"&&(t({statusName:\"error\",statusData:i.error}),e(\"error\"),setTimeout(()=>{e(\"default\")},bEe))},[t,e]),r=(0,MD.useCallback)(i=>{t({statusName:\"transactionSuccess\",statusData:i}),e(\"success\"),setTimeout(()=>{e(\"default\")},bEe)},[t,e]),o=(0,MD.useCallback)(()=>{e(\"default\"),t({statusName:\"exit\",statusData:void 0})},[t,e]);(0,MD.useEffect)(()=>{let i=SEe({onEvent:n,onExit:o,onSuccess:r});return()=>{i()}},[])};f();var odt=ge(We(),1);f();var wx=ge(We(),1);f();var Eoe=ge(at(),1),HJt={baseFontSize:3.75,minScale:.01};function Xlt(e,t,n,r,o,i={}){let{baseFontSize:a,minScale:c}={...HJt,...i},l=(0,Eoe.useCallback)(()=>{let d=e.current,m=t.current,h=n.current,g=r.current,y=o.current;if(!d||!m||!h||!g||!y)return;g.style.fontSize=`${a}rem`,h.style.fontSize=`${a}rem`;let w=g.clientWidth,x=d.clientWidth-y.clientWidth;if(h.style.width=`${w}px`,w>x){let I=x/w,C=Math.max(I,c);m.style.transform=`scale(${C})`,m.style.transformOrigin=\"left center\"}else m.style.transform=\"scale(1)\"},[a,c,e,t,n,r,o]);return(0,Eoe.useEffect)(()=>{let d=e.current;if(!d)return;let m=new ResizeObserver(l);return m.observe(d),()=>{m.disconnect()}},[e,l]),l}var My=ge(at(),1);f();f();var M1=(e,t)=>{let n=String(e),r=n.indexOf(\".\"),o=n;return r!==-1&&n.length-r-1>t&&(o=n.substring(0,r+t+1)),o};var DD=ge(at(),1),Aoe=({setFiatAmount:e,setCryptoAmount:t,selectedInputType:n,exchangeRate:r})=>{let o=(0,DD.useCallback)(c=>{let l=M1(c,2);e(l);let d=String(Number(l)*Number(r)),m=M1(d,8);t(d===\"0\"?\"\":m)},[r,e,t]),i=(0,DD.useCallback)(c=>{let l=M1(c,8);t(l);let d=String(Number(l)/Number(r)),m=M1(d,2);e(m===\"0\"?\"\":m)},[r,e,t]),a=(0,DD.useCallback)((c,l)=>{n===\"fiat\"?o(c):i(c),l?.(c)},[o,i,n]);return(0,DD.useMemo)(()=>({handleChange:a,handleFiatChange:o,handleCryptoChange:i}),[a,o,i])};f();function Soe(e){return e===\"\"?!0:/^[0-9]*\\\\.?[0-9]*$/.test(e)}f();var edt=ge(We(),1),_oe=ge(at(),1);f();var BD=ge(at(),1),$lt=(e,t)=>{let n=(0,BD.useRef)(e);return(0,BD.useLayoutEffect)(()=>{n.current=e}),(0,BD.useMemo)(()=>{let r,o=(i,a,...c)=>{clearTimeout(r),r=setTimeout(()=>{i(...c)},a)};return(...i)=>o(n.current,t,...i)},[t])};var $I=(0,_oe.forwardRef)(({\"aria-label\":e,className:t,delayMs:n=0,disabled:r=!1,onBlur:o,onChange:i,onFocus:a,placeholder:c,setValue:l,inputMode:d,value:m,inputValidator:h=()=>!0},g)=>{let y=$lt(x=>{i(x)},n),w=(0,_oe.useCallback)(x=>{let I=x.target.value;h(I)&&(l?.(I),n>0?y(I):i(I))},[i,y,n,l,h]);return(0,edt.jsx)(\"input\",{\"aria-label\":e,\"data-testid\":\"ockTextInput_Input\",ref:g,type:\"text\",className:t,inputMode:d,placeholder:c,value:m,onBlur:o,onChange:w,onFocus:a,disabled:r,autoComplete:\"off\",\"data-1p-ignore\":!0})});$I.displayName=\"TextInput\";f();var tdt=ge(We(),1);var ndt=ge(at(),1),_Ee=(0,ndt.forwardRef)(({label:e,className:t},n)=>(0,tdt.jsx)(\"span\",{ref:n,className:ve(ut.body,ft.disabled,\"flex items-center justify-center bg-transparent\",\"text-6xl leading-none outline-none\",t),\"data-testid\":\"ockCurrencySpan\",children:e}));_Ee.displayName=\"CurrencyLabel\";function Toe({fiatAmount:e,cryptoAmount:t,asset:n,selectedInputType:r,currency:o,setFiatAmount:i,setCryptoAmount:a,exchangeRate:c,delayMs:l,className:d,textClassName:m}){let h=(0,My.useRef)(null),g=(0,My.useRef)(null),y=(0,My.useRef)(null),w=(0,My.useRef)(null),x=(0,My.useRef)(null),I=r===\"fiat\"?o:n,C=r===\"fiat\"?e:t,M=Xlt(h,g,y,w,x),{handleChange:B}=Aoe({setFiatAmount:i,setCryptoAmount:a,selectedInputType:r,exchangeRate:c}),z=(0,My.useCallback)(ne=>{B(ne,()=>{y.current&&y.current.focus()})},[B]);(0,My.useEffect)(()=>{M()},[C,M]);let G=(0,My.useRef)(r);(0,My.useEffect)(()=>{G.current!==r&&(G.current=r,J())},[r]);let J=()=>{y.current&&y.current.focus()};return(0,wx.jsxs)(\"div\",{ref:h,\"data-testid\":\"ockAmountInputContainer\",className:ve(\"relative h-24 cursor-text\",d),children:[(0,wx.jsx)(\"div\",{className:\"absolute inset-x-0 top-6 bottom-4\",children:(0,wx.jsx)(\"div\",{className:\"relative flex h-14\",children:(0,wx.jsxs)(\"div\",{ref:g,className:\"flex flex-shrink-0 items-center\",children:[(0,wx.jsx)($I,{className:ve(ut.body,\"border-none bg-transparent\",\"text-6xl leading-none outline-none\",\"[appearance:textfield]\",\"[&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none\",\"[&::-webkit-outer-spin-button]:m-0 [&::-webkit-outer-spin-button]:appearance-none\",m),value:C,onChange:z,delayMs:l,inputValidator:Soe,ref:y,inputMode:\"decimal\",placeholder:\"0\"}),(0,wx.jsx)(\"div\",{className:\"ml-1\",children:(0,wx.jsx)(_Ee,{ref:x,label:I,className:m})})]})})}),(0,wx.jsx)(\"span\",{\"data-testid\":\"ockHiddenSpan\",ref:w,className:ve(ut.body,\"border-none bg-transparent\",\"text-6xl leading-none outline-none\",\"pointer-events-none absolute whitespace-nowrap opacity-0\",\"left-[-99999px]\"),children:C?`${C}.`:\"0.\"})]})}f();var AA=ge(at(),1),rdt=(e,t)=>{let n=(0,AA.useRef)(0),r=(0,AA.useRef)(),o=(0,AA.useRef)(),i=(0,AA.useRef)(e);return i.current=e,(0,AA.useEffect)(()=>()=>{r.current&&clearTimeout(r.current)},[]),(0,AA.useCallback)((...a)=>{let c=Date.now(),l=c-n.current;l>=t?(i.current(...a),n.current=c):r.current?o.current=a:r.current||(o.current=a,r.current=setTimeout(()=>{o.current&&(i.current(...o.current),n.current=Date.now()),r.current=void 0},t-l))},[t])};var idt=ge(at(),1);var zJt=5e3,bj=({className:e})=>{let{fundAmountFiat:t,fundAmountCrypto:n,asset:r,selectedInputType:o,currency:i,exchangeRate:a,setFundAmountFiat:c,setFundAmountCrypto:l,country:d,subdivision:m,setExchangeRate:h,onError:g}=Xd(),{fetchExchangeRate:y}=woe({asset:r,currency:i,country:d,subdivision:m,setExchangeRate:h,onError:g}),w=rdt(y,zJt),{sendAnalytics:x}=Ga(),I=(0,idt.useCallback)(C=>{c(C),w(),x(Jf.FundAmountChanged,{amount:Number(C),currency:i})},[i,x,c,w]);return(0,odt.jsx)(Toe,{fiatAmount:t,cryptoAmount:n,asset:r,selectedInputType:o,currency:i,className:e,setFiatAmount:I,setCryptoAmount:l,exchangeRate:String(a)})};f();var mdt=ge(We(),1);f();var DC=ge(We(),1);var wj=ge(at(),1);f();f();var SA=ge(We(),1),adt=(0,SA.jsxs)(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 -29.75 165.5 165.5\",preserveAspectRatio:\"xMidYMid meet\",id:\"Artwork\",\"data-testid\":\"ock-applePaySvg\",width:\"24\",height:\"24\",children:[(0,SA.jsx)(\"title\",{children:\"Apple Pay\"}),(0,SA.jsx)(\"path\",{id:\"XMLID_4_\",d:\"M150.7 0h-139c-1 0-2.1.1-3.1.3-1 .2-2 .5-3 1-.9.4-1.8 1.1-2.5 1.8S1.7 4.7 1.3 5.6c-.5.9-.8 1.9-1 3-.2 1-.2 2.1-.3 3.1v82.5c0 1 .1 2.1.3 3.1.2 1 .5 2 1 3 .5.9 1.1 1.8 1.8 2.5s1.6 1.4 2.5 1.8c.9.5 1.9.8 3 1 1 .2 2.1.2 3.1.3h142.1c1 0 2.1-.1 3.1-.3 1-.2 2-.5 3-1 .9-.5 1.8-1.1 2.5-1.8s1.4-1.6 1.8-2.5c.5-.9.8-1.9 1-3 .2-1 .2-2.1.3-3.1v-1.4-78-1.7-1.4c0-1-.1-2.1-.3-3.1-.2-1-.5-2-1-3-.5-.9-1.1-1.8-1.8-2.5s-1.6-1.4-2.5-1.8c-.9-.5-1.9-.8-3-1-1-.2-2.1-.2-3.1-.3H150.7z\"}),(0,SA.jsx)(\"path\",{id:\"XMLID_3_\",fill:\"#fff\",d:\"M150.7 3.5H153.8c.8 0 1.7.1 2.6.2.8.1 1.4.3 2 .6.6.3 1.1.7 1.6 1.2s.9 1 1.2 1.6c.3.6.5 1.2.6 2 .2.9.2 1.8.2 2.6v82.5c0 .8-.1 1.7-.2 2.6-.1.7-.3 1.4-.6 2-.3.6-.7 1.1-1.2 1.6s-1 .9-1.6 1.2c-.6.3-1.2.5-2 .6-.9.2-1.8.2-2.6.2H11.7c-.7 0-1.7-.1-2.6-.2-.7-.1-1.4-.3-2-.7-.6-.3-1.1-.7-1.6-1.2s-.9-1-1.2-1.6c-.3-.6-.5-1.2-.6-2-.2-.9-.2-1.8-.2-2.6v-81-1.4c0-.8.1-1.7.2-2.6.1-.7.3-1.4.6-2 .3-.6.7-1.1 1.2-1.6s1-.9 1.6-1.2c.6-.3 1.2-.5 2-.6.9-.2 1.8-.2 2.6-.2h139\"}),(0,SA.jsx)(\"path\",{d:\"M45.2 35.6c1.4-1.8 2.4-4.2 2.1-6.6-2.1.1-4.6 1.4-6.1 3.1-1.3 1.5-2.5 4-2.2 6.3 2.4.3 4.7-1 6.2-2.8M47.3 39c-3.4-.2-6.3 1.9-7.9 1.9-1.6 0-4.1-1.8-6.8-1.8-3.5.1-6.7 2-8.5 5.2-3.6 6.3-1 15.6 2.6 20.7 1.7 2.5 3.8 5.3 6.5 5.2 2.6-.1 3.6-1.7 6.7-1.7s4 1.7 6.8 1.6c2.8-.1 4.6-2.5 6.3-5.1 2-2.9 2.8-5.7 2.8-5.8-.1-.1-5.5-2.1-5.5-8.3-.1-5.2 4.2-7.7 4.4-7.8-2.3-3.6-6.1-4-7.4-4.1\"}),(0,SA.jsx)(\"g\",{children:(0,SA.jsx)(\"path\",{d:\"M76.7 31.9c7.4 0 12.5 5.1 12.5 12.4 0 7.4-5.2 12.5-12.7 12.5h-8.1v12.9h-5.9V31.9h14.2zm-8.3 20h6.7c5.1 0 8-2.8 8-7.5 0-4.8-2.9-7.5-8-7.5h-6.8v15zM90.7 62c0-4.8 3.7-7.8 10.3-8.2l7.6-.4v-2.1c0-3.1-2.1-4.9-5.5-4.9-3.3 0-5.3 1.6-5.8 4h-5.4c.3-5 4.6-8.7 11.4-8.7 6.7 0 11 3.5 11 9.1v19h-5.4v-4.5h-.1c-1.6 3.1-5.1 5-8.7 5-5.6 0-9.4-3.4-9.4-8.3zm17.9-2.5v-2.2l-6.8.4c-3.4.2-5.3 1.7-5.3 4.1 0 2.4 2 4 5 4 4 0 7.1-2.7 7.1-6.3zM119.3 80v-4.6c.4.1 1.4.1 1.8.1 2.6 0 4-1.1 4.9-3.9 0-.1.5-1.7.5-1.7l-10-27.6h6.1l7 22.5h.1l7-22.5h6l-10.3 29.1c-2.4 6.7-5.1 8.8-10.8 8.8-.4-.1-1.8-.1-2.3-.2z\"})})]});var Coe=ge(at(),1);f();var LD=ge(We(),1);var sdt=(0,LD.jsxs)(\"svg\",{\"data-testid\":\"ock-appleSvg\",role:\"img\",\"aria-label\":\"ock-appleSvg\",width:\"14\",height:\"16\",viewBox:\"0 0 14 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,LD.jsx)(\"title\",{children:\"Apple\"}),(0,LD.jsx)(\"path\",{d:\"M10.0788 0C10.1161 0 10.1533 0 10.1926 0C10.284 1.12836 9.85329 1.97146 9.32986 2.58201C8.81627 3.18834 8.11298 3.77641 6.97549 3.68718C6.89961 2.57498 7.331 1.79441 7.85373 1.18527C8.33851 0.617575 9.22729 0.112414 10.0788 0Z\",className:nn.foreground}),(0,LD.jsx)(\"path\",{d:\"M13.5228 11.7446C13.5228 11.7558 13.5228 11.7657 13.5228 11.7762C13.2031 12.7444 12.7471 13.5741 12.1907 14.3442C11.6827 15.0432 11.0602 15.984 9.9487 15.984C8.98826 15.984 8.35031 15.3664 7.36598 15.3496C6.32475 15.3327 5.75214 15.866 4.80013 16.0002C4.69123 16.0002 4.58233 16.0002 4.47554 16.0002C3.77646 15.899 3.21228 15.3454 2.80127 14.8465C1.58931 13.3725 0.652757 11.4685 0.478516 9.0319C0.478516 8.79302 0.478516 8.55485 0.478516 8.31597C0.552287 6.57215 1.39961 5.15432 2.52586 4.46719C3.12025 4.10185 3.93735 3.7906 4.84721 3.92971C5.23714 3.99014 5.63551 4.12363 5.98469 4.25571C6.31561 4.38288 6.72944 4.60841 7.12148 4.59647C7.38706 4.58874 7.65123 4.45033 7.91892 4.35267C8.70301 4.06953 9.47164 3.74493 10.4848 3.89739C11.7024 4.08147 12.5665 4.62246 13.1005 5.45714C12.0705 6.11265 11.2562 7.10049 11.3953 8.7874C11.519 10.3197 12.4099 11.2162 13.5228 11.7446Z\",className:nn.foreground})]});f();var vj=ge(We(),1);var cdt=(0,vj.jsxs)(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 16 17\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",className:ve(nn.foreground),\"data-testid\":\"coinbaseLogoSvg\",children:[(0,vj.jsx)(\"title\",{children:\"Coinbase Pay Onramp\"}),(0,vj.jsx)(\"path\",{d:\"M7.93154 12.5C5.74045 12.5 3.96577 10.6354 3.96577 8.33333C3.96577 6.03125 5.74045 4.16667 7.93154 4.16667C9.8946 4.16667 11.5239 5.67014 11.8378 7.63889H15.8333C15.4962 3.36111 12.089 0 7.93154 0C3.55267 0 0 3.73264 0 8.33333C0 12.934 3.55267 16.6667 7.93154 16.6667C12.089 16.6667 15.4962 13.3056 15.8333 9.02778H11.8378C11.5239 10.9965 9.8946 12.5 7.93154 12.5Z\",fill:\"#0052FF\"})]});f();var TEe=ge(We(),1),udt=(0,TEe.jsx)(\"svg\",{role:\"img\",\"aria-label\":\"ock-coinbasePaySvg\",width:\"100%\",height:\"100%\",viewBox:\"0 0 20 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:(0,TEe.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M10.0145 14.1666C7.82346 14.1666 6.04878 12.302 6.04878 9.99996C6.04878 7.69788 7.82346 5.83329 10.0145 5.83329C11.9776 5.83329 13.6069 7.33677 13.9208 9.30552H17.9163C17.5793 5.02774 14.172 1.66663 10.0145 1.66663C5.63568 1.66663 2.08301 5.39926 2.08301 9.99996C2.08301 14.6007 5.63568 18.3333 10.0145 18.3333C14.172 18.3333 17.5793 14.9722 17.9163 10.6944H13.9208C13.6069 12.6632 11.9776 14.1666 10.0145 14.1666Z\",fill:\"#f9fafb\"})});f();var UD=ge(We(),1);var ldt=(0,UD.jsxs)(\"svg\",{\"data-testid\":\"ock-creditCardSvg\",role:\"img\",\"aria-label\":\"ock-creditCardSvg\",width:\"14\",height:\"16\",viewBox:\"0 0 14 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,UD.jsx)(\"title\",{children:\"Credit Card\"}),(0,UD.jsx)(\"path\",{d:\"M0.478516 2.33325V12.9999H13.5228V2.33325H0.478516ZM12.164 3.99992V5.33325H1.83729V3.99992H12.164ZM1.83729 11.3333V7.66659H12.164V11.3333H1.83729Z\",className:nn.foreground}),(0,UD.jsx)(\"path\",{d:\"M2.65256 8.66659H7.00064V9.66659H2.65256V8.66659Z\",className:nn.foreground})]});f();var CEe=ge(We(),1);var ddt=(0,CEe.jsx)(\"svg\",{role:\"img\",\"aria-label\":\"ock-fundWalletSvg\",width:\"18\",height:\"18\",viewBox:\"0 0 18 18\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:(0,CEe.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M13.5 4.5C13.5 6.15685 14.8431 7.5 16.5 7.5V10.5C14.8431 10.5 13.5 11.8431 13.5 13.5H4.5C4.5 11.8431 3.15685 10.5 1.5 10.5L1.5 13.5V7.5C3.15685 7.5 4.5 6.15685 4.5 4.5H13.5ZM0 3V15H18V3H0ZM11.25 9C11.25 7.75736 10.2426 6.75 9 6.75C7.75736 6.75 6.75 7.75736 6.75 9C6.75 10.2426 7.75736 11.25 9 11.25C10.2426 11.25 11.25 10.2426 11.25 9Z\",fill:\"#0A0B0D\",className:nn.foreground})});f();var REe=ge(We(),1);var fdt=(0,REe.jsx)(\"svg\",{role:\"img\",\"aria-label\":\"ock-swapSettingsSvg\",width:\"100%\",height:\"100%\",viewBox:\"0 0 19 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:(0,REe.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M8.92071 5.89742e-08C8.00371 5.89742e-08 7.22171 0.663 7.07071 1.567L6.89271 2.639C6.87271 2.759 6.77771 2.899 6.59571 2.987C6.25306 3.15171 5.92344 3.34226 5.60971 3.557C5.44371 3.672 5.27571 3.683 5.15971 3.64L4.14271 3.258C3.72695 3.10224 3.26941 3.09906 2.85152 3.24904C2.43364 3.39901 2.08254 3.69241 1.86071 4.077L0.938708 5.674C0.716797 6.05836 0.638423 6.50897 0.717525 6.94569C0.796628 7.3824 1.02808 7.7769 1.37071 8.059L2.21071 8.751C2.30571 8.829 2.38071 8.98 2.36471 9.181C2.33621 9.56013 2.33621 9.94087 2.36471 10.32C2.37971 10.52 2.30571 10.672 2.21171 10.75L1.37071 11.442C1.02808 11.7241 0.796628 12.1186 0.717525 12.5553C0.638423 12.992 0.716797 13.4426 0.938708 13.827L1.86071 15.424C2.08269 15.8084 2.43387 16.1016 2.85173 16.2514C3.2696 16.4012 3.72706 16.3978 4.14271 16.242L5.16171 15.86C5.27671 15.817 5.44471 15.829 5.61171 15.942C5.92371 16.156 6.25271 16.347 6.59671 16.512C6.77871 16.6 6.87371 16.74 6.89371 16.862L7.07171 17.933C7.22271 18.837 8.00471 19.5 8.92171 19.5H10.7657C11.6817 19.5 12.4647 18.837 12.6157 17.933L12.7937 16.861C12.8137 16.741 12.9077 16.601 13.0907 16.512C13.4347 16.347 13.7637 16.156 14.0757 15.942C14.2427 15.828 14.4107 15.817 14.5257 15.86L15.5457 16.242C15.9612 16.3972 16.4183 16.4001 16.8357 16.2502C17.2532 16.1002 17.6039 15.8071 17.8257 15.423L18.7487 13.826C18.9706 13.4416 19.049 12.991 18.9699 12.5543C18.8908 12.1176 18.6593 11.7231 18.3167 11.441L17.4767 10.749C17.3817 10.671 17.3067 10.52 17.3227 10.319C17.3511 9.93987 17.3511 9.55913 17.3227 9.18C17.3067 8.98 17.3817 8.828 17.4757 8.75L18.3157 8.058C19.0237 7.476 19.2067 6.468 18.7487 5.673L17.8267 4.076C17.6047 3.69159 17.2535 3.3984 16.8357 3.24861C16.4178 3.09883 15.9604 3.10215 15.5447 3.258L14.5247 3.64C14.4107 3.683 14.2427 3.671 14.0757 3.557C13.7623 3.3423 13.433 3.15175 13.0907 2.987C12.9077 2.9 12.8137 2.76 12.7937 2.639L12.6147 1.567C12.5418 1.12906 12.3158 0.731216 11.977 0.444267C11.6383 0.157318 11.2087 -0.00011124 10.7647 5.89742e-08H8.92171H8.92071ZM9.84271 13.5C10.8373 13.5 11.7911 13.1049 12.4944 12.4017C13.1976 11.6984 13.5927 10.7446 13.5927 9.75C13.5927 8.75544 13.1976 7.80161 12.4944 7.09835C11.7911 6.39509 10.8373 6 9.84271 6C8.84815 6 7.89432 6.39509 7.19106 7.09835C6.4878 7.80161 6.09271 8.75544 6.09271 9.75C6.09271 10.7446 6.4878 11.6984 7.19106 12.4017C7.89432 13.1049 8.84815 13.5 9.84271 13.5Z\",fill:\"#6B7280\",className:nn.foreground})});f();var MC=ge(We(),1);var FD=(0,MC.jsxs)(\"svg\",{role:\"img\",\"aria-label\":\"ock-toggleSvg\",width:\"16\",height:\"17\",viewBox:\"0 0 16 17\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"data-testid\":\"ock-toggleSvg\",children:[(0,MC.jsx)(\"g\",{clipPath:\"url(#clip0_2077_4627)\",children:(0,MC.jsx)(\"path\",{d:\"M14.5659 4.93434L13.4345 6.06571L11.8002 4.43139L11.8002 10.75L10.2002 10.75L10.2002 4.43139L8.56592 6.06571L7.43455 4.93434L11.0002 1.36865L14.5659 4.93434ZM8.56592 12.0657L5.00023 15.6314L1.43455 12.0657L2.56592 10.9343L4.20023 12.5687L4.20023 6.25002L5.80023 6.25002L5.80023 12.5687L7.43455 10.9343L8.56592 12.0657Z\",className:nn.foreground})}),(0,MC.jsx)(\"defs\",{children:(0,MC.jsx)(\"clipPath\",{id:\"clip0_2077_4627\",children:(0,MC.jsx)(\"rect\",{width:\"16\",height:\"16\",fill:\"white\",transform:\"translate(0 0.5)\"})})})]});f();var IEe=ge(We(),1);var pdt=(0,IEe.jsx)(\"svg\",{role:\"img\",\"aria-label\":\"ock-walletSvg\",width:\"100%\",height:\"100%\",viewBox:\"0 0 20 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:(0,IEe.jsx)(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M0 10C0 15.5222 4.47778 20 10 20C15.5222 20 20 15.5222 20 10C20 4.47778 15.5222 0 10 0C4.47778 0 0 4.47778 0 10ZM7.44444 6.77778C7.075 6.77778 6.77778 7.075 6.77778 7.44444V12.5556C6.77778 12.925 7.075 13.2222 7.44444 13.2222H12.5556C12.925 13.2222 13.2222 12.925 13.2222 12.5556V7.44444C13.2222 7.075 12.925 6.77778 12.5556 6.77778H7.44444Z\",className:nn.foreground})});var _A=({icon:e})=>(0,Coe.useMemo)(()=>{if(e===void 0)return null;switch(e){case\"coinbasePay\":return udt;case\"coinbaseLogo\":return cdt;case\"fundWallet\":return ddt;case\"swapSettings\":return fdt;case\"wallet\":return pdt;case\"toggle\":return FD;case\"applePay\":return adt;case\"apple\":return sdt;case\"creditCard\":return ldt}if((0,Coe.isValidElement)(e))return e},[e]);f();var TA=({amount:e,currency:t=\"USD\",locale:n,minimumFractionDigits:r=2,maximumFractionDigits:o=2})=>{let i=Number(e);return Number.isNaN(i)&&(i=0),new Intl.NumberFormat(n,{style:\"currency\",currency:t,minimumFractionDigits:r,maximumFractionDigits:o}).format(i)};f();var hdt=ge(We(),1);function xx({className:e}){return(0,hdt.jsx)(\"div\",{className:ve(\"animate-pulse bg-opacity-50\",_n.alternate,xt.radius,e),\"data-testid\":\"ockSkeleton\"})}function Roe({selectedInputType:e,setSelectedInputType:t,asset:n,fiatAmount:r,cryptoAmount:o,exchangeRate:i,exchangeRateLoading:a,currency:c,loadingDisplay:l=(0,DC.jsx)(xx,{className:\"h-[1.625rem]\"}),className:d}){let m=_A({icon:\"toggle\"}),h=(0,wj.useCallback)(()=>{t(e===\"fiat\"?\"crypto\":\"fiat\")},[e,t]),g=(0,wj.useCallback)(w=>`${M1(w||\"0\",8)} ${n}`,[n]),y=(0,wj.useMemo)(()=>(0,DC.jsx)(\"span\",{\"data-testid\":\"ockAmountLine\",className:ve(ut.label1),children:e===\"fiat\"?g(o):TA({amount:r,currency:c,minimumFractionDigits:0})}),[o,r,e,g,c]);return a||!i?l:(0,DC.jsxs)(\"div\",{className:ve(\"flex items-center\",d),children:[(0,DC.jsx)(\"button\",{type:\"button\",\"aria-label\":\"amount type switch\",className:ve(Xt.default,\"mr-1 rounded-full p-1 opacity-50 transition-opacity hover:opacity-100\"),\"data-testid\":\"ockAmountTypeSwitch\",onClick:h,children:(0,DC.jsx)(\"div\",{className:\"h-[1.125rem] w-[1.125rem]\",children:m})}),(0,DC.jsx)(\"div\",{className:\"w-full truncate\",children:y})]})}var xj=({className:e})=>{let{selectedInputType:t,setSelectedInputType:n,asset:r,fundAmountFiat:o,fundAmountCrypto:i,exchangeRate:a,exchangeRateLoading:c,currency:l}=Xd();return(0,mdt.jsx)(Roe,{selectedInputType:t,setSelectedInputType:n,asset:r,fiatAmount:o,cryptoAmount:i,exchangeRate:a,exchangeRateLoading:c,currency:l,className:e})};f();var gdt=ge(We(),1);function kEe({className:e}){let{headerText:t}=Xd();return(0,gdt.jsx)(\"div\",{className:ve(ut.headline,e),\"data-testid\":\"ockFundCardHeader\",children:t})}f();var LC=ge(We(),1);f();function ydt(){return/iPhone|iPad|iPod/.test(navigator.userAgent)||/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/Edg/.test(navigator.userAgent)}f();var Ioe=ge(at(),1);function koe(e,t){let n=(0,Ioe.useCallback)(r=>{var o;if(!e.current)return;let i=!e.current.contains(r.target),a=(o=r.composedPath)==null?void 0:o.call(r);!a?.some(l=>l instanceof HTMLElement&&l.hasAttribute(\"data-portal-origin\"))&&i&&t()},[t,e]);(0,Ioe.useEffect)(()=>(document.addEventListener(\"click\",n,{capture:!0}),()=>{document.removeEventListener(\"click\",n,{capture:!0})}),[n])}var tp=ge(at(),1);f();var BC=ge(We(),1),Noe=ge(at(),1);f();var bdt=ge(We(),1);function Ooe({className:e,paymentMethod:t}){let{icon:n}=t,r=_A({icon:n});return(0,bdt.jsx)(\"div\",{\"data-testid\":\"ockFundCardPaymentMethodImage__iconContainer\",className:ve(\"flex items-center justify-center overflow-hidden rounded-[50%]\",e),children:r})}var OEe=(0,Noe.memo)(({paymentMethod:e,onClick:t,hideImage:n,hideDescription:r,disabled:o,disabledReason:i,testId:a})=>{let{sendAnalytics:c}=Ga(),l=(0,Noe.useCallback)(()=>{o||(t?.(e),c(Jf.FundOptionSelected,{option:e.id}))},[o,t,e,c]);return(0,BC.jsx)(\"button\",{\"data-testid\":a,type:\"button\",className:ve(Xt.default,xt.radius,_n.default,\"flex w-full items-center justify-between px-4 py-2\",{[Xt.disabled]:o}),onClick:l,disabled:o,title:i,children:(0,BC.jsxs)(\"span\",{className:\"flex items-center gap-3\",children:[!n&&(0,BC.jsx)(Ooe,{paymentMethod:e,className:ve(\"h-4 w-4\",{[Xt.disabled]:o})}),(0,BC.jsxs)(\"span\",{className:\"flex flex-col items-start\",children:[(0,BC.jsx)(\"span\",{className:ve(ut.headline),children:e.name}),!r&&(0,BC.jsx)(\"span\",{className:ve(ut.label2,ft.foregroundMuted,\"font-normal\"),children:i||e.description})]})]})})});OEe.displayName=\"FundCardPaymentMethodSelectRow\";f();var e4=ge(We(),1),vdt=ge(at(),1);f();var NEe=ge(We(),1);var Poe=(0,NEe.jsx)(\"svg\",{\"data-testid\":\"ock-caretUpSvg\",role:\"img\",\"aria-label\":\"ock-caretUpSvg\",width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:(0,NEe.jsx)(\"path\",{d:\"M3.05329 10.9866L7.99996 6.03997L12.9466 10.9866L14.1266 9.80663L7.99996 3.67997L1.87329 9.80663L3.05329 10.9866Z\",className:nn.foreground})});var PEe=(0,vdt.forwardRef)(({onClick:e,paymentMethod:t,isOpen:n,className:r},o)=>(0,e4.jsxs)(\"button\",{type:\"button\",className:ve(Xt.default,xt.radius,xt.lineDefault,\"flex h-12 w-full items-center gap-2 px-3 py-1\",r),onClick:e,ref:o,\"data-testid\":\"ockFundCardPaymentMethodSelectorToggle\",children:[(0,e4.jsx)(\"div\",{className:\"w-4\",children:(0,e4.jsx)(Ooe,{paymentMethod:t,className:\"h-4 w-4\"})}),(0,e4.jsx)(\"span\",{className:ve(ut.headline,ft.foreground,\"flex w-full\"),\"data-testid\":\"ockFundCardPaymentMethodSelectorToggle__paymentMethodName\",children:t.name}),(0,e4.jsx)(\"span\",{className:ve(\"rotate-90 transition-transform duration-200\",n&&\"rotate-180\"),children:Poe})]}));PEe.displayName=\"FundCardPaymentMethodSelectorToggle\";function Ej({className:e}){let[t,n]=(0,tp.useState)(!1),{selectedPaymentMethod:r,setSelectedPaymentMethod:o,paymentMethods:i,fundAmountFiat:a,isPaymentMethodsLoading:c,currency:l}=Xd(),{sendAnalytics:d}=Ga(),m=(0,tp.useMemo)(()=>i.filter(z=>z.id!==\"APPLE_PAY\"||ydt()),[i]),h=(0,tp.useCallback)(z=>{let G=Number(a);if(z.minAmount&&G<z.minAmount)return`Minimum amount of ${TA({amount:z.minAmount,currency:l,minimumFractionDigits:0})} required`;if(z.maxAmount&&G>z.maxAmount)return`Maximum amount allowed is ${TA({amount:z.maxAmount,currency:l,minimumFractionDigits:0})}`},[a,l]),g=(0,tp.useCallback)(z=>a?!!h(z):!1,[a,h]);(0,tp.useEffect)(()=>{if(r&&g(r)){let z=i.find(G=>G.id===\"\");z&&o(z)}},[r,i,o,g]);let y=(0,tp.useCallback)(z=>{g(z)||(d(Jf.FundOptionSelected,{option:z.id}),o(z),n(!1))},[o,g,d]),w=(0,tp.useCallback)(()=>{n(!t)},[t]),x=(0,tp.useRef)(null),I=(0,tp.useRef)(null),C=(0,tp.useRef)(null);koe(I,()=>{t&&n(!1)});let M=(0,tp.useCallback)(z=>{z.key===\"Escape\"&&n(!1)},[]),B=r||m[0];return(0,LC.jsxs)(\"div\",{className:ve(\"relative py-4\",e),ref:I,\"data-testid\":\"ockFundCardPaymentMethodDropdownContainer\",onKeyUp:M,children:[c||!B?(0,LC.jsx)(xx,{className:\"h-12 w-full\"}):(0,LC.jsx)(PEe,{ref:C,onClick:w,isOpen:t,paymentMethod:B}),t&&(0,LC.jsx)(\"div\",{ref:x,\"data-testid\":\"ockFundCardPaymentMethodDropdown\",className:ve(xt.radius,xt.lineDefault,\"ock-scrollbar absolute z-10 mt-2 flex w-full flex-col overflow-y-hidden\"),children:(0,LC.jsx)(\"div\",{className:ve(_n.default,\"overflow-y-auto p-2\"),children:m.map(z=>{let G=g(z);return(0,LC.jsx)(OEe,{testId:`ockFundCardPaymentMethodSelectRow__${z.id}`,paymentMethod:z,onClick:y,disabled:G,disabledReason:h(z)},z.name)})})})]})}f();var MEe=ge(We(),1);f();var wdt=ge(We(),1);var Aj=ge(at(),1);function xdt({presetAmountInput:e,currency:t,onClick:n}){let{sendAnalytics:r}=Ga(),o=(0,Aj.useMemo)(()=>TA({amount:e,currency:t,minimumFractionDigits:0}),[e,t]),i=(0,Aj.useCallback)(()=>{r(Jf.FundAmountChanged,{amount:Number(e),currency:t}),n(e)},[e,t,n,r]),a=(0,Aj.useCallback)(c=>{(c.key===\"Enter\"||c.key===\" \")&&(c.preventDefault(),r(Jf.FundAmountChanged,{amount:Number(e),currency:t}),n(e))},[e,t,n,r]);return e?(0,wdt.jsx)(\"button\",{type:\"button\",\"data-testid\":\"ockPresetAmountInput\",className:ve(ut.body,ft.foreground,xt.radius,xt.lineDefault,\"flex-1\",\"p-1\",\"overflow-hidden\",\"whitespace-nowrap\",\"text-ellipsis\",\"hover:bg-[var(--ock-bg-default-hover)]\",\"focus:outline-none focus:ring-2\"),title:o,onClick:i,onKeyDown:a,children:o}):null}function Sj(){let{presetAmountInputs:e,currency:t,selectedInputType:n,exchangeRate:r,setFundAmountFiat:o,setFundAmountCrypto:i}=Xd(),{handleFiatChange:a}=Aoe({setFiatAmount:o,setCryptoAmount:i,selectedInputType:n,exchangeRate:String(r)});return e?(0,MEe.jsx)(\"div\",{\"data-testid\":\"ockPresetAmountInputList\",className:\"flex w-full flex-wrap items-center justify-between gap-2 pt-8\",children:e.map((c,l)=>(0,MEe.jsx)(xdt,{presetAmountInput:c,onClick:a,currency:t},l))}):null}f();var Sdt=ge(We(),1),_j=ge(at(),1);f();var Edt=ge(at(),1);var Adt=()=>{let{projectId:e,chain:t}=Fo(),{address:n,chain:r}=xr(),{selectedPaymentMethod:o,selectedInputType:i,fundAmountFiat:a,fundAmountCrypto:c,asset:l,currency:d}=Xd(),m=r||t;return(0,Edt.useMemo)(()=>{if(e===null||n===void 0)return;let h=i===\"fiat\"?a:c;return XI({projectId:e,assets:[l],presetFiatAmount:i===\"fiat\"?Number(h):void 0,presetCryptoAmount:i===\"crypto\"?Number(h):void 0,defaultPaymentMethod:o?.id,addresses:{[n]:[m.name.toLowerCase()]},fiatCurrency:d,originComponentName:\"FundCard\"})},[l,a,c,o,i,e,n,m,d])};function Tj(){let{fundAmountFiat:e,fundAmountCrypto:t,submitButtonState:n,setSubmitButtonState:r,buttonText:o,currency:i,updateLifecycleStatus:a}=Xd(),c=Adt(),l=(0,_j.useCallback)(()=>r(\"loading\"),[r]),d=(0,_j.useCallback)(()=>{a({statusName:\"exit\",statusData:void 0}),r(\"default\")},[a,r]),m=(0,_j.useMemo)(()=>(!e||Number(t)===0)&&(!t||Number(e)===0),[t,e]);return(0,Sdt.jsx)(yj,{disabled:m,hideIcon:n===\"default\",text:o,className:\"w-full\",fundingUrl:c,state:n,onClick:l,onPopupClose:d,fiatCurrency:i})}function DEe({assetSymbol:e,buttonText:t=\"Buy\",headerText:n,country:r=\"US\",subdivision:o,currency:i=\"USD\",presetAmountInputs:a,children:c=(0,np.jsx)(WJt,{}),className:l,onError:d,onStatus:m,onSuccess:h}){let g=Va();return(0,np.jsx)(AEe,{asset:e,headerText:n,buttonText:t,country:r,subdivision:o,currency:i,onError:d,onStatus:m,onSuccess:h,presetAmountInputs:a,children:(0,np.jsx)(\"div\",{className:ve(g,_n.default,ft.foreground,\"flex w-full flex-col p-6\",ut.headline,xt.radius,xt.lineDefault,l),children:(0,np.jsx)(jJt,{children:c})})})}function jJt({children:e}){return Jlt(),(0,np.jsx)(\"form\",{className:\"w-full\",\"data-testid\":\"ockFundCardForm\",children:e})}function WJt(){return(0,np.jsxs)(np.Fragment,{children:[(0,np.jsx)(kEe,{}),(0,np.jsx)(bj,{}),(0,np.jsx)(xj,{}),(0,np.jsx)(Sj,{}),(0,np.jsx)(Ej,{}),(0,np.jsx)(Tj,{})]})}f();f();f();f();var Cj=ge(We(),1);f();async function Moe({copyValue:e,onSuccess:t,onError:n}){try{await navigator.clipboard.writeText(e),t?.()}catch(r){n?.(r)}}var _dt=ge(at(),1);function UC({address:e=null,className:t,isSliced:n=!0,hasCopyAddressOnClick:r=!0}){let[o,i]=(0,_dt.useState)(\"Copy\"),{address:a}=wm(),c=e??a;if(!c)return console.error(\"Address: an Ethereum address must be provided to the Identity or Address component.\"),null;let l=n?JI(c):c;if(!r)return(0,Cj.jsx)(\"span\",{\"data-testid\":\"ockAddress\",className:ve(ft.foregroundMuted,ut.label2,t),children:l});let d=async()=>{await Moe({copyValue:c,onSuccess:()=>{i(\"Copied\"),setTimeout(()=>i(\"Copy\"),2e3)},onError:h=>{console.error(\"Failed to copy address:\",h),i(\"Failed to copy\"),setTimeout(()=>i(\"Copy\"),2e3)}})},m=h=>{(h.key===\"Enter\"||h.key===\" \")&&(h.preventDefault(),d())};return(0,Cj.jsxs)(\"span\",{\"data-testid\":\"ockAddress\",className:ve(ft.foregroundMuted,ut.label2,t,\"group relative cursor-pointer\"),onClick:d,onKeyDown:m,tabIndex:0,role:\"button\",\"aria-label\":`Copy address ${c}`,children:[l,(0,Cj.jsx)(\"button\",{type:\"button\",className:ve(Xt.alternate,ut.legal,ft.foreground,xt.default,xt.radius,\"absolute top-full left-[0%] z-10 mt-0.5 px-1.5 py-0.5 opacity-0 transition-opacity group-hover:opacity-100\"),\"aria-live\":\"polite\",children:o})]})}f();var Ddt=ge(We(),1);f();function CA(e,t){var n;if(e===\"0\")return e;let r=Number.parseFloat(e),o=(n=Number(r))==null?void 0:n.toFixed(t).replace(/0+$/,\"\");return r>0&&Number.parseFloat(o)===0?\"0\":o}f();var Mdt=ge(at(),1);gn();f();f();var Tdt=\"SWAP_ERROR\",Cdt=\"SWAP_QUOTE_ERROR\",Rdt=\"SWAP_BALANCE_ERROR\",Doe=\"SWAP_QUOTE_LOW_LIQUIDITY_ERROR\",Idt=\"0x000000000022D473030F116dDEE9F6B43aC78BA3\",Boe=\"TOO_MANY_REQUESTS_ERROR\",kdt=\"UNCAUGHT_SWAP_QUOTE_ERROR\",Odt=\"UNCAUGHT_SWAP_ERROR\",Ndt=\"0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD\",Pdt=\"USER_REJECTED\",Loe=\"UNSUPPORTED_AMOUNT_REFERENCE_ERROR\",cd=(e=>(e.BALANCE_ERROR=\"Error fetching token balance\",e.CONFIRM_IN_WALLET=\"Confirm in wallet\",e.FETCHING_QUOTE=\"Fetching quote...\",e.FETCHING_BALANCE=\"Fetching balance...\",e.INCOMPLETE_FIELD=\"Complete the fields to continue\",e.INSUFFICIENT_BALANCE=\"Insufficient balance\",e.LOW_LIQUIDITY=\"Insufficient liquidity for this trade.\",e.SWAP_IN_PROGRESS=\"Swap in progress...\",e.TOO_MANY_REQUESTS=\"Too many requests. Please try again later.\",e.USER_REJECTED=\"User rejected the transaction\",e.UNSUPPORTED_AMOUNT_REFERENCE=\"useAggregator does not support amountReference: to, please use useAggregator: false\",e))(cd||{});function Ex(e,t){return t===-32001?Boe:t===-32602?Doe:e===\"uncaught-swap\"?Odt:e===\"uncaught-quote\"?kdt:e===\"quote\"?Cdt:e===\"balance\"?Rdt:Tdt}var VJt=18;function Uoe(e){let t=Dde({address:e,query:{...$f}});return(0,Mdt.useMemo)(()=>{var n,r,o,i;let a;if(t?.error&&(a={code:Ex(\"balance\"),error:(n=t?.error)==null?void 0:n.message,message:\"\"}),!((r=t?.data)!=null&&r.value)&&((o=t?.data)==null?void 0:o.value)!==0n)return{convertedBalance:\"\",roundedBalance:\"\",error:a,response:t};let c=ba((i=t?.data)==null?void 0:i.value,VJt),l=CA(c,8);return{convertedBalance:c,error:a,response:t,roundedBalance:l}},[t])}function Rj({address:e,className:t}){let{address:n}=wm();if(!n&&!e)return console.error(\"Address: an Ethereum address must be provided to the Identity or EthBalance component.\"),null;let{convertedBalance:r,error:o}=Uoe(e??n);return!r||o?null:(0,Ddt.jsxs)(\"span\",{\"data-testid\":\"ockEthBalance\",className:ve(ut.label2,ft.foregroundMuted,t),children:[CA(r,4),\" ETH\"]})}f();var BEe=ge(We(),1);f();var FC=ge(We(),1);var HD=ge(at(),1);f();var kj=ge(We(),1);f();f();va();var Bdt=async({ensName:e})=>{let t=xm(ia),n=pD(e),r=async l=>{try{return await t.getEnsText({name:n,key:l})||null}catch(d){return console.warn(`Failed to fetch ENS text record for ${l}:`,d),null}},[o,i,a,c]=await Promise.all([r(\"com.twitter\"),r(\"com.github\"),r(\"xyz.farcaster\"),r(\"url\")]);return{twitter:o,github:i,farcaster:a,website:c}};va();var Ldt=({ensName:e,chain:t=ia},n)=>{let r=[\"useSocials\",e,t.id];return Hp({queryKey:r,queryFn:()=>Bdt({ensName:e}),...$f,gcTime:n?.cacheTime,...n})};f();var Ij=ge(We(),1);var GJt={twitter:{href:e=>`https://x.com/${e}`,icon:plt},github:{href:e=>`https://github.com/${e}`,icon:flt},farcaster:{href:e=>`https://warpcast.com/${e.split(\"/\").pop()}`,icon:hlt},website:{href:e=>e,icon:mlt}};function Udt({platform:e,value:t}){let n=GJt[e];return(0,Ij.jsxs)(\"a\",{href:n.href(t),target:\"_blank\",rel:\"noopener noreferrer\",className:ve(Xt.default,xt.radius,xt.default,\"flex items-center justify-center p-2\"),\"data-testid\":`ockSocials_${e.charAt(0).toUpperCase()+e.slice(1)}`,children:[(0,Ij.jsx)(\"span\",{className:\"sr-only\",children:e}),(0,Ij.jsx)(\"div\",{className:ve(\"flex h-4 w-4 items-center justify-center\"),children:n.icon})]})}function Foe({address:e,chain:t,className:n}){let{address:r,chain:o}=wm(),i=e??r,a=t??o;if(!i)return console.error(\"Socials: an Ethereum address must be provided to the Socials component.\"),null;let{data:c,isLoading:l}=TC({address:i,chain:a}),{data:d,isLoading:m}=Ldt({ensName:c??\"\",chain:a},{enabled:!!c});return l||m?(0,kj.jsx)(\"span\",{className:n}):!d||Object.values(d).every(h=>!h)?null:(0,kj.jsx)(\"div\",{className:ve(xt.default,\"mt-2 w-full pl-1\",n),children:(0,kj.jsx)(\"div\",{className:\"left-4 flex space-x-2\",children:Object.entries(d).map(([h,g])=>g&&(0,kj.jsx)(Udt,{platform:h,value:g},h))})})}function Fdt({children:e,className:t,hasCopyAddressOnClick:n}){let r=Va(),{avatar:o,name:i,address:a,ethBalance:c,socials:l}=(0,HD.useMemo)(()=>{let d=HD.Children.toArray(e),m=d.find(fh(UC));return{avatar:d.find(fh(ph)),name:d.find(fh(Em)),address:m?(0,HD.cloneElement)(m,{hasCopyAddressOnClick:n}):void 0,ethBalance:d.find(fh(Rj)),socials:d.find(fh(Foe))}},[e,n]);return(0,FC.jsxs)(\"div\",{className:ve(r,_n.default,\"flex flex-col px-4 py-1\",t),\"data-testid\":\"ockIdentityLayout_container\",children:[(0,FC.jsxs)(\"div\",{className:\"flex items-center space-x-3\",children:[(0,FC.jsx)(\"div\",{className:\"flex-shrink-0\",children:o}),(0,FC.jsxs)(\"div\",{className:\"flex flex-col\",children:[i,a&&!c&&a,!a&&c&&c,a&&c&&(0,FC.jsxs)(\"div\",{className:\"flex items-center gap-1\",children:[a,(0,FC.jsx)(\"span\",{className:ft.foregroundMuted,children:\"\\\\xB7\"}),c]})]})]}),l]})}function Hoe({address:e,chain:t,children:n,className:r,hasCopyAddressOnClick:o,schemaId:i}){let{chain:a}=Fo(),c=t??a,{address:l}=xr();return!l&&!e?null:(0,BEe.jsx)(Wre,{address:e||l,schemaId:i,chain:c,children:(0,BEe.jsx)(Fdt,{className:r,hasCopyAddressOnClick:o,children:n})})}f();var Hdt=ge(We(),1);f();f();f();f();f();f();f();f();var Rm=ge(We(),1);f();var Vdt=ge(We(),1);var Dy=ge(at(),1);f();function jdt({draggableRef:e,position:t,minGapToEdge:n=10}){var r;let o=(r=e.current)==null?void 0:r.getBoundingClientRect();if(!o||typeof window>\"u\")return t;let i=window.innerWidth,a=window.innerHeight,c=Math.min(Math.max(n,t.x),i-o.width-n),l=Math.min(Math.max(n,t.y),a-o.height-n);return{x:c,y:l}}f();var zD=ge(at(),1);function Wdt(e,t,n){let r=(0,zD.useCallback)(a=>a.right<=window.innerWidth&&a.bottom<=window.innerHeight&&a.left>=0&&a.top>=0,[]),o=(0,zD.useCallback)((a,c)=>{let l=window.innerWidth,d=window.innerHeight,m,h;return a.right>l?m=l-a.width-10:a.left<0?m=10:m=c.x,a.bottom>d?h=d-a.height-10:a.top<0?h=10:h=c.y,{x:m,y:h}},[]),i=(0,zD.useCallback)(()=>{if(!e.current)return;let c=e.current.getBoundingClientRect(),l=o(c,t);n(d=>r(c)?d:l)},[e,t,o,n,r]);(0,zD.useEffect)(()=>(window.addEventListener(\"resize\",i),()=>window.removeEventListener(\"resize\",i)),[i])}function Gdt({children:e,gridSize:t=1,startingPosition:n={x:20,y:20},snapToGrid:r=!1,disabled:o=!1}){let[i,a]=(0,Dy.useState)(n),[c,l]=(0,Dy.useState)({x:0,y:0}),[d,m]=(0,Dy.useState)({x:0,y:0}),[h,g]=(0,Dy.useState)(!1),y=(0,Dy.useRef)(null),w=(0,Dy.useCallback)(I=>Math.round(I/t)*t,[t]),x=(0,Dy.useCallback)(I=>{o||(g(!0),m({x:I.clientX,y:I.clientY}),l({x:I.clientX-i.x,y:I.clientY-i.y}))},[i,o]);return(0,Dy.useEffect)(()=>{if(!h)return;let I=M=>{let B=jdt({draggableRef:y,position:{x:M.clientX-c.x,y:M.clientY-c.y}});a(B)},C=M=>{if(Math.hypot(M.clientX-d.x,M.clientY-d.y)>2){M.preventDefault(),M.stopPropagation();let z=G=>{G.preventDefault(),G.stopPropagation(),document.removeEventListener(\"click\",z,!0)};document.addEventListener(\"click\",z,!0)}a(z=>({x:r?w(z.x):z.x,y:r?w(z.y):z.y})),g(!1)};return document.addEventListener(\"pointermove\",I),document.addEventListener(\"pointerup\",C),()=>{document.removeEventListener(\"pointermove\",I),document.removeEventListener(\"pointerup\",C)}},[h,c,r,w,d]),Wdt(y,i,a),(0,Vdt.jsx)(\"div\",{ref:y,\"data-testid\":\"ockDraggable\",className:ve(\"fixed touch-none select-none\",\"cursor-grab active:cursor-grabbing\"),style:{left:`${i.x}px`,top:`${i.y}px`},onPointerDown:x,children:e})}f();var zoe=ge(at(),1);function jD(){let[e,t]=(0,zoe.useState)(!1);return(0,zoe.useEffect)(()=>{t(!0)},[]),e}var Nx=ge(at(),1);f();f();function LEe(){return typeof window>\"u\"?{x:100,y:100}:{x:window.innerWidth-56-16,y:window.innerHeight-56-16}}function qdt({draggable:e,draggableStartingPosition:t}){return e?{draggable:e,draggableStartingPosition:t??LEe()}:{draggable:e}}f();var B1=ge(We(),1);f();var D0=ge(We(),1),joe=ge(at(),1);f();f();f();var Kdt=\"cdp_getTokensForAddresses\",Ydt=\"cdp_getPriceQuote\";f();f();var Zdt=()=>{if(!a0.rpcUrl&&!a0.apiKey)throw new Error(\"API Key Unset: You can use the Coinbase Developer Platform RPC by providing an API key in `OnchainKitProvider` or by manually calling `setOnchainKitConfig`: https://portal.cdp.coinbase.com/products/onchainkit\");return a0.rpcUrl||`https://api.developer.coinbase.com/rpc/v1/${a0.chain.name.replace(\" \",\"-\").toLowerCase()}/${a0.apiKey}`};function YJt(e,t){return{id:1,jsonrpc:Zat,method:e,params:t}}async function ZJt(e){var t;let n={...ere},r=await LI.getClientMeta().catch(()=>null);return r&&(n[\"OnchainKit-Client-Fid\"]=((t=r.clientFid)==null?void 0:t.toString())??\"\",n[\"OnchainKit-Mode\"]=r.mode),e?Object.values(Jo).includes(e)?{...n,[Pxe]:e}:{...n,[Pxe]:Jo.API}:n}async function HC(e,t,n){try{let r=YJt(e,t),o=Zdt();return await(await fetch(o,{body:JSON.stringify(r),headers:await ZJt(n),method:Yat})).json()}catch(r){throw console.log(`sendRequest: error sending request: ${r.message}`),r}}async function Qdt(e,t=Jo.API){let{addresses:n}=e;try{let r=await HC(Kdt,[{addresses:n}],t);return r.error?{code:`${r.error.code}`,error:\"Error fetching portfolio token balances\",message:r.error.message}:r.result}catch(r){return{code:\"uncaught-portfolio\",error:\"Something went wrong\",message:`Error fetching portfolio token balances: ${r}`}}}f();function zC(e){return e!==null&&typeof e==\"object\"&&\"error\"in e}function hh({address:e,enabled:t=!0},n=Jo.Hook){return Hp({queryKey:[\"usePortfolio\",e],queryFn:async()=>{let r=await Qdt({addresses:[e]},n);if(zC(r))throw new Error(r.message);return r.portfolios.length===0?{address:e,portfolioBalanceUsd:0,tokenBalances:[]}:r.portfolios[0]},retry:!1,enabled:!!e&&t,refetchOnWindowFocus:!0,staleTime:1e3*60*5,refetchOnMount:!0,refetchInterval:1e3*60*15,refetchIntervalInBackground:!0})}function Oj({classNames:e}){let{address:t,chain:n,animations:r}=Di(),[o,i]=(0,joe.useState)(\"Copy\"),a=(0,joe.useCallback)(async()=>{try{await navigator.clipboard.writeText(String(t)),i(\"Copied\"),setTimeout(()=>i(\"Copy\"),2e3)}catch(c){console.error(\"Failed to copy address:\",c),i(\"Failed to copy\"),setTimeout(()=>i(\"Copy\"),2e3)}},[t]);return!t||!n?(0,D0.jsx)(\"div\",{className:\"mt-1 h-28 w-10 px-4 py-3\"}):(0,D0.jsxs)(\"div\",{\"data-testid\":\"ockWalletAdvanced_AddressDetails\",className:ve(\"mt-2 flex w-88 flex-col items-center justify-center px-4 py-3\",ft.foreground,ut.body,r.content,e?.container),children:[(0,D0.jsx)(ph,{address:t,chain:n,className:ve(\"pointer-events-none h-10 w-10\",e?.avatar)}),(0,D0.jsxs)(\"div\",{className:\"group relative mt-2 text-base\",children:[(0,D0.jsx)(\"button\",{type:\"button\",onClick:a,\"data-testid\":\"ockWalletAdvanced_NameButton\",children:(0,D0.jsx)(Em,{address:t,chain:n,className:ve(\"hover:text-[var(--ock-text-foreground-muted)] active:text-[var(--ock-text-primary)]\",e?.nameButton)})}),(0,D0.jsx)(\"button\",{type:\"button\",onClick:a,className:ve(Xt.alternate,ut.legal,ft.foreground,xt.default,xt.radius,ep.tooltip,\"absolute top-full right-0 mt-0.5 px-1.5 py-0.5 opacity-0 transition-opacity group-hover:opacity-100\"),\"aria-live\":\"polite\",\"data-testid\":\"ockWalletAdvanced_NameTooltip\",children:o})]}),(0,D0.jsx)(QJt,{className:e?.fiatBalance})]})}function QJt({className:e}){let{address:t}=xr(),{data:n,isFetching:r}=hh({address:t},Jo.Wallet),o=n?.portfolioBalanceInUsd,i=new Intl.NumberFormat(\"en-US\",{style:\"currency\",currency:\"USD\"}).format(Number(o));return r?(0,D0.jsx)(\"div\",{className:\"mt-1 h-8 w-full\",children:(0,D0.jsx)(M0,{})}):o==null?null:(0,D0.jsx)(\"div\",{className:ve(ut.title1,\"mt-1 font-normal\",e),\"data-testid\":\"ockWalletAdvanced_AddressBalance\",children:i})}f();var Ly=ge(We(),1);var eUr=ge(at(),1);f();var Woe=ge(We(),1),Xdt=ge(at(),1);f();function JJt(e){let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);return t}function XJt(e){let t=Math.abs(e)%360,n=Math.abs(e>>8)%31+50,r=Math.abs(e>>16)%21+40;return`hsl(${t}, ${n}%, ${r}%)`}function Jdt(e){let t=JJt(`${e}`);return XJt(t)}function Ax({className:e,size:t=24,token:n}){let{image:r,name:o}=n,i=(0,Xdt.useMemo)(()=>({image:{width:`${t}px`,height:`${t}px`,minWidth:`${t}px`,minHeight:`${t}px`},placeholderImage:{background:Jdt(o),width:`${t}px`,height:`${t}px`,minWidth:`${t}px`,minHeight:`${t}px`}}),[t,o]);return r?(0,Woe.jsx)(\"img\",{className:ve(\"overflow-hidden rounded-[50%]\",e),alt:\"token-image\",\"data-testid\":\"ockTokenImage_Image\",style:i.image,src:r}):(0,Woe.jsx)(\"div\",{className:ve(\"overflow-hidden rounded-full\",e),\"data-testid\":\"ockTokenImage_NoImage\",style:i.image,children:(0,Woe.jsx)(\"div\",{style:i.placeholderImage})})}f();var RA=ge(We(),1),eft=ge(at(),1);f();function $dt(e,t={}){if(e===void 0)return\"\";let{locale:n,minimumFractionDigits:r,maximumFractionDigits:o}=t;return Number(e).toLocaleString(n,{minimumFractionDigits:r,maximumFractionDigits:o})}var tft=(0,eft.memo)(function({className:t,token:n,amount:r,onClick:o,hideImage:i,hideSymbol:a}){let c=Va();return(0,RA.jsxs)(\"button\",{\"data-testid\":\"ockTokenRow_Container\",type:\"button\",className:ve(c,Xt.default,\"flex w-full items-center justify-between px-2 py-1\",t),onClick:()=>o?.(n),children:[(0,RA.jsxs)(\"span\",{className:\"flex max-w-full items-center gap-3\",children:[!i&&(0,RA.jsx)(Ax,{token:n,size:28}),(0,RA.jsxs)(\"span\",{className:\"flex min-w-0 flex-col items-start\",children:[(0,RA.jsx)(\"span\",{className:ve(ut.headline,\"max-w-full overflow-hidden text-ellipsis whitespace-nowrap text-left\"),children:n.name.trim()}),!a&&(0,RA.jsx)(\"span\",{className:ve(ut.body,ft.foregroundMuted),children:n.symbol})]})]}),(0,RA.jsx)(\"span\",{\"data-testid\":\"ockTokenRow_Amount\",className:ve(ut.body,ft.foregroundMuted),children:$dt(r,{minimumFractionDigits:2,maximumFractionDigits:Number(r)<1?5:2})})]})});f();var UEe=ge(We(),1);var HLr=(0,UEe.jsx)(\"svg\",{role:\"img\",\"aria-label\":\"ock-searchIconSvg\",width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:(0,UEe.jsx)(\"path\",{d:\"M16 14.23L11.89 10.12C12.59 9.09 13 7.84 13 6.5C13 2.91 10.09 0 6.5 0C2.91 0 0 2.91 0 6.5C0 10.09 2.91 13 6.5 13C7.84 13 9.09 12.59 10.13 11.89L14.23 16L16 14.23ZM6.5 10.5C4.29 10.5 2.5 8.71 2.5 6.5C2.5 4.29 4.29 2.5 6.5 2.5C8.71 2.5 10.5 4.29 10.5 6.5C10.5 8.71 8.71 10.5 6.5 10.5Z\",className:nn.foreground})});var iUr=ge(Ob(),1);f();var By=ge(We(),1),rft=ge(at(),1);f();var FEe=ge(We(),1);var nft=(0,FEe.jsx)(\"svg\",{\"data-testid\":\"ock-caretDownSvg\",role:\"img\",\"aria-label\":\"ock-caretDownSvg\",width:\"16\",height:\"17\",viewBox:\"0 0 16 17\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:(0,FEe.jsx)(\"path\",{d:\"M12.95 4.85999L8.00001 9.80999L3.05001 4.85999L1.64001 6.27999L8.00001 12.64L14.36 6.27999L12.95 4.85999Z\",className:nn.foreground})});var oft=(0,rft.forwardRef)(function({onClick:t,token:n,isOpen:r,className:o},i){return(0,By.jsxs)(\"button\",{type:\"button\",\"data-testid\":\"ockTokenSelectButton_Button\",className:ve(Xt.default,Xt.shadow,xt.radius,xt.lineDefault,\"flex w-fit items-center gap-2 px-3 py-1\",o),onClick:t,ref:i,children:[n?(0,By.jsxs)(By.Fragment,{children:[(0,By.jsx)(\"div\",{className:\"w-4\",children:(0,By.jsx)(Ax,{token:n,size:16})}),(0,By.jsx)(\"span\",{className:ve(ut.headline,ft.foreground),\"data-testid\":\"ockTokenSelectButton_Symbol\",children:n.symbol})]}):(0,By.jsx)(\"span\",{className:ut.headline,children:\"Select token\"}),(0,By.jsxs)(\"div\",{className:\"relative flex items-center justify-center\",children:[(0,By.jsx)(\"div\",{className:\"absolute top-0 left-0 h-4 w-4\"}),r?Poe:nft]})]})});gn();function Nj({classNames:e}){let{address:t}=xr(),{animations:n}=Di(),{data:r,isFetching:o}=hh({address:t},Jo.Wallet),i=r?.tokenBalances;return o||!i||i.length===0?(0,Ly.jsx)(\"div\",{\"data-testid\":\"ockWalletAdvanced_LoadingPlaceholder\",className:\"mx-auto my-2 h-44 w-80 px-4 py-3\"}):(0,Ly.jsx)(\"div\",{className:ve(\"flex flex-col items-center gap-4\",\"my-2 h-44 max-h-44\",\"scrollbar-hidden w-88 overflow-y-auto px-4 py-3\",n.content,e?.container),\"data-testid\":\"ockWalletAdvanced_TokenHoldings\",children:i.map((a,c)=>(0,Ly.jsx)($Jt,{token:{address:a.address,chainId:a.chainId,decimals:a.decimals,image:a.image,name:a.name,symbol:a.symbol},balance:Number(ba(BigInt(a.cryptoBalance),a.decimals)),valueInFiat:Number(a.fiatBalance),classNames:e?.tokenDetails},`${a.address}-${c}`))})}function $Jt({token:e,balance:t,valueInFiat:n,classNames:r,tokenImageSize:o=32}){var i;let a=new Intl.NumberFormat(\"en-US\",{minimumFractionDigits:2,maximumFractionDigits:5}).format(t),c=new Intl.NumberFormat(\"en-US\",{style:\"currency\",currency:\"USD\"}).format(n);return(0,Ly.jsxs)(\"div\",{className:ve(\"flex w-full flex-row items-center justify-between\",r?.container),children:[(0,Ly.jsxs)(\"div\",{\"data-testid\":\"ockWalletAdvanced_TokenDetails_TokenImage\",className:ve(\"flex flex-row items-center gap-2\",r?.tokenImage),children:[(0,Ly.jsx)(Ax,{token:e,size:o}),(0,Ly.jsxs)(\"div\",{className:\"flex flex-col\",children:[(0,Ly.jsx)(\"span\",{className:ve(ut.label1,ft.foreground,\"max-w-52 overflow-hidden text-ellipsis whitespace-nowrap text-left\",r?.tokenName),children:(i=e.name)==null?void 0:i.trim()}),(0,Ly.jsx)(\"span\",{className:ve(ut.legal,ft.foregroundMuted,r?.tokenBalance),children:`${a} ${e.symbol}`})]})]}),(0,Ly.jsx)(\"span\",{className:ve(ut.label2,ft.foregroundMuted,r?.fiatValue),children:c})]})}f();var Sx=ge(We(),1);f();var Pj=ge(We(),1);var ift=(0,Pj.jsxs)(\"svg\",{\"data-testid\":\"ock-addSvg\",role:\"img\",\"aria-label\":\"ock-addSvg\",width:\"13\",height:\"12\",viewBox:\"0 0 13 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,Pj.jsx)(\"title\",{children:\"Add\"}),(0,Pj.jsx)(\"path\",{d:\"M7.125 0H5.875V5.37501L0.5 5.37501L0.5 6.62501H5.875V12H7.125V6.62501H12.5V5.37501H7.125V0Z\",className:nn.foreground})]});f();var Mj=ge(We(),1);var aft=(0,Mj.jsxs)(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 12 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,Mj.jsx)(\"title\",{children:\"Arrow Up Right\"}),(0,Mj.jsx)(\"path\",{d:\"M2.44196 2.25H8.93304L1 10.183L1.88388 11.0669L9.81695 3.13386V9.625H11.067V1H2.44196V2.25Z\",className:nn.foreground})]});var Dj=ge(at(),1);function Bj({classNames:e}){let{address:t,chain:n,setActiveFeature:r,animations:o}=Di(),{projectId:i}=Fo(),{sendAnalytics:a}=Ga(),{isFetching:c}=hh({address:t},Jo.Wallet),l=(0,Dj.useCallback)(g=>{a(cx.OptionSelected,{option:g})},[a]),d=(0,Dj.useCallback)(()=>{if(l(bA.Buy),!i||!t||!n?.name)return;let g=new URL(\"https://pay.coinbase.com/buy/select-asset\"),y=new URLSearchParams({appId:i,destinationWallets:JSON.stringify([{address:t,blockchains:[n.name.toLowerCase()]}]),defaultAsset:\"USDC\",defaultPaymentMethod:\"CRYPTO_ACCOUNT\",presetFiatAmount:\"25\"});window.open(`${g}?${y}`,\"popup\",\"width=400,height=600,scrollbars=yes\")},[t,n?.name,i,l]),m=(0,Dj.useCallback)(()=>{l(bA.Send),r(\"send\")},[l,r]),h=(0,Dj.useCallback)(()=>{l(bA.Swap),r(\"swap\")},[r,l]);return c?(0,Sx.jsx)(xx,{className:\"mx-auto my-3 h-16 w-80 px-4 py-3\"}):(0,Sx.jsxs)(\"div\",{\"data-testid\":\"ockWalletAdvanced_TransactionActions\",className:ve(\"my-3 flex w-88 flex-row justify-between gap-2 px-4 py-3\",o.content,e?.container),children:[(0,Sx.jsx)(HEe,{icon:ift,label:\"Buy\",action:d,classNames:e?.leftAction}),(0,Sx.jsx)(HEe,{icon:aft,label:\"Send\",action:m,classNames:e?.middleAction}),(0,Sx.jsx)(HEe,{icon:FD,label:\"Swap\",action:h,classNames:e?.rightAction})]})}function HEe({icon:e,label:t,action:n,classNames:r}){return(0,Sx.jsxs)(\"button\",{type:\"button\",className:ve(\"flex flex-col items-center justify-center gap-2 pt-2.5 pb-2\",\"h-16 flex-1\",xt.radius,Xt.alternate,r?.container),onClick:n,\"aria-label\":t,children:[(0,Sx.jsx)(\"span\",{className:ve(\"flex h-4 w-4 flex-col items-center justify-center\",r?.icon),children:e}),(0,Sx.jsx)(\"span\",{className:ve(ut.label2,ft.foreground,\"flex flex-col justify-center\",r?.label),children:t})]})}f();var B0=ge(We(),1);f();var sft=ge(We(),1);function Uy({children:e,className:t,onClick:n,ariaLabel:r}){return(0,sft.jsx)(\"button\",{type:\"button\",onClick:n,\"data-testid\":\"ockPressableIconButton\",\"aria-label\":r,className:ve(Xt.default,xt.radiusInner,xt.default,\"flex items-center justify-center\",t),children:e})}f();var Sm=ge(We(),1);var cft=(0,Sm.jsxs)(\"svg\",{width:\"100%\",height:\"100%\",viewBox:\"0 0 155 155\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",className:nn.foreground,children:[(0,Sm.jsx)(\"title\",{children:\"BaseScan\"}),(0,Sm.jsxs)(\"g\",{clipPath:\"url(#clip0_13027_2497)\",children:[(0,Sm.jsx)(\"mask\",{id:\"mask0_13027_2497\",maskUnits:\"userSpaceOnUse\",x:\"0\",y:\"0\",width:\"155\",height:\"155\",children:(0,Sm.jsx)(\"path\",{d:\"M155 0H0V155H155V0Z\",fill:\"white\"})}),(0,Sm.jsxs)(\"g\",{mask:\"url(#mask0_13027_2497)\",children:[(0,Sm.jsx)(\"path\",{d:\"M32.6921 73.9892C32.6923 73.1255 32.8626 72.2709 33.1934 71.4736C33.5243 70.6763 34.009 69.9526 34.6198 69.344C35.2306 68.7349 35.9555 68.2524 36.7528 67.9249C37.5501 67.5974 38.4041 67.4309 39.2658 67.4352L50.165 67.4708C51.9029 67.4708 53.5694 68.1625 54.7982 69.3935C56.0269 70.6244 56.7173 72.2938 56.7173 74.035V115.321C57.9442 114.956 59.5201 114.567 61.2447 114.161C62.4425 113.879 63.51 113.2 64.2735 112.234C65.0377 111.268 65.4532 110.071 65.4532 108.838V57.6245C65.4532 55.8834 66.1432 54.2137 67.3723 52.9825C68.6009 51.7513 70.2673 51.0594 72.0054 51.059H82.926C84.6642 51.0594 86.3306 51.7513 87.5591 52.9825C88.7883 54.2137 89.4782 55.8834 89.4782 57.6245V105.156C89.4782 105.156 92.2127 104.048 94.8761 102.921C95.8652 102.502 96.7096 101.801 97.3036 100.904C97.8977 100.007 98.2143 98.955 98.2155 97.8785V41.2141C98.2155 39.4734 98.9055 37.804 100.134 36.573C101.363 35.342 103.029 34.6503 104.767 34.65H115.687C117.425 34.65 119.092 35.3415 120.32 36.5726C121.549 37.8036 122.239 39.4732 122.239 41.2141V87.8759C131.708 81.0016 141.303 72.7341 148.917 62.793C150.021 61.3498 150.752 59.6554 151.044 57.8606C151.336 56.0659 151.18 54.2266 150.59 52.5069C147.066 42.3477 141.463 33.0375 134.141 25.172C126.819 17.3065 117.938 11.059 108.067 6.82926C98.1968 2.59956 87.5531 0.480761 76.8183 0.608476C66.0835 0.736197 55.4931 3.10763 45.7254 7.57097C35.9578 12.0344 27.2278 18.4914 20.0941 26.5289C12.9603 34.5663 7.58002 44.0072 4.29747 54.2474C1.01488 64.4878 -0.0977017 75.3016 1.03092 85.9972C2.15954 96.6928 5.50451 107.035 10.8518 116.361C11.7833 117.97 13.1537 119.279 14.8021 120.135C16.4504 120.99 18.3083 121.356 20.1573 121.191C22.223 121.01 24.7949 120.752 27.8528 120.391C29.1839 120.24 30.4129 119.604 31.3056 118.603C32.1982 117.602 32.6923 116.307 32.6933 114.965V73.9892\",fill:\"white\"}),(0,Sm.jsx)(\"path\",{d:\"M32.6921 73.9892C32.6923 73.1255 32.8626 72.2709 33.1934 71.4736C33.5243 70.6763 34.009 69.9526 34.6198 69.344C35.2306 68.7349 35.9555 68.2524 36.7528 67.9249C37.5501 67.5974 38.4041 67.4309 39.2658 67.4352L50.165 67.4708C51.9029 67.4708 53.5694 68.1625 54.7982 69.3935C56.0269 70.6244 56.7173 72.2938 56.7173 74.035V115.321C57.9442 114.956 59.5201 114.567 61.2447 114.161C62.4425 113.879 63.51 113.2 64.2735 112.234C65.0377 111.268 65.4532 110.071 65.4532 108.838V57.6245C65.4532 55.8834 66.1432 54.2137 67.3723 52.9825C68.6009 51.7513 70.2673 51.0594 72.0054 51.059H82.926C84.6642 51.0594 86.3306 51.7513 87.5591 52.9825C88.7883 54.2137 89.4782 55.8834 89.4782 57.6245V105.156C89.4782 105.156 92.2127 104.048 94.8761 102.921C95.8652 102.502 96.7096 101.801 97.3036 100.904C97.8977 100.007 98.2143 98.955 98.2155 97.8785V41.2141C98.2155 39.4734 98.9055 37.804 100.134 36.573C101.363 35.342 103.029 34.6503 104.767 34.65H115.687C117.425 34.65 119.092 35.3415 120.32 36.5726C121.549 37.8036 122.239 39.4732 122.239 41.2141V87.8759C131.708 81.0016 141.303 72.7341 148.917 62.793C150.021 61.3498 150.752 59.6554 151.044 57.8606C151.336 56.0659 151.18 54.2266 150.59 52.5069C147.066 42.3477 141.463 33.0375 134.141 25.172C126.819 17.3065 117.938 11.059 108.067 6.82926C98.1968 2.59956 87.5531 0.480761 76.8183 0.608476C66.0835 0.736197 55.4931 3.10763 45.7254 7.57097C35.9578 12.0344 27.2278 18.4914 20.0941 26.5289C12.9603 34.5663 7.58002 44.0072 4.29747 54.2474C1.01488 64.4878 -0.0977017 75.3016 1.03092 85.9972C2.15954 96.6928 5.50451 107.035 10.8518 116.361C11.7833 117.97 13.1537 119.279 14.8021 120.135C16.4504 120.99 18.3083 121.356 20.1573 121.191C22.223 121.01 24.7949 120.752 27.8528 120.391C29.1839 120.24 30.4129 119.604 31.3056 118.603C32.1982 117.602 32.6923 116.307 32.6933 114.965V73.9892\",stroke:\"white\"}),(0,Sm.jsx)(\"path\",{d:\"M32.4531 140.209C43.9644 148.599 57.5682 153.635 71.7594 154.759C85.9501 155.884 100.175 153.054 112.86 146.581C125.545 140.109 136.195 130.248 143.632 118.088C151.07 105.927 155.004 91.9428 155 77.6816C155 75.9024 154.918 74.1419 154.8 72.3911C126.608 114.514 74.5543 134.207 32.4557 140.203\",fill:\"#C0D0DB\"})]})]}),(0,Sm.jsx)(\"defs\",{children:(0,Sm.jsx)(\"clipPath\",{id:\"clip0_13027_2497\",children:(0,Sm.jsx)(\"rect\",{width:\"155\",height:\"155\",fill:\"white\"})})})]});f();var WD=ge(We(),1);var Voe=(0,WD.jsxs)(\"svg\",{role:\"img\",\"aria-label\":\"ock-disconnect-svg\",width:\"100%\",height:\"100%\",viewBox:\"0 0 16 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,WD.jsx)(\"title\",{children:\"Disconnect\"}),(0,WD.jsx)(\"path\",{d:\"M11.0668 0.91803L11.0668 2.93852L2.02049 2.93852L2.02049 15.0615L11.0668 15.0615L11.0668 17.082L-7.06549e-07 17.082L0 0.918029L11.0668 0.91803Z\",className:nn.foreground}),(0,WD.jsx)(\"path\",{d:\"M12.3273 12.8963L16.0002 9.02606L12.346 4.95902L10.843 6.30941L12.3623 8.00032L5.53321 8.00032L5.53321 10.0208L12.2706 10.0208L10.8617 11.5054L12.3273 12.8963Z\",className:nn.foreground})]});f();var _m=ge(We(),1);var uft=(0,_m.jsxs)(\"svg\",{width:\"100%\",height:\"100%\",viewBox:\"0 0 28 28\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,_m.jsx)(\"title\",{children:\"QR Code\"}),(0,_m.jsx)(\"rect\",{width:\"28\",height:\"28\",rx:\"8\",className:_n.default}),(0,_m.jsx)(\"path\",{d:\"M10 10H11.5V11.5H10V10Z\",className:nn.foreground}),(0,_m.jsx)(\"path\",{d:\"M8 13.5H13.5V8H8V13.5ZM9.25 9.25H12.25V12.25H9.25V9.25Z\",className:nn.foreground}),(0,_m.jsx)(\"path\",{d:\"M18 10H16.5V11.5H18V10Z\",className:nn.foreground}),(0,_m.jsx)(\"path\",{d:\"M14.5 8V13.5H20V8H14.5ZM18.75 12.25H15.75V9.25H18.75V12.25Z\",className:nn.foreground}),(0,_m.jsx)(\"path\",{d:\"M10 16.5H11.5V18H10V16.5Z\",className:nn.foreground}),(0,_m.jsx)(\"path\",{d:\"M8 20H13.5V14.5H8V20ZM9.25 15.75H12.25V18.75H9.25V15.75Z\",className:nn.foreground}),(0,_m.jsx)(\"path\",{d:\"M18 16.75H18.75V14.5H20V18H16.75V15.75H15.75V20H14.5V14.5H18V16.75Z\",className:nn.foreground}),(0,_m.jsx)(\"path\",{d:\"M18 18.75H16.75V20H18V18.75Z\",className:nn.foreground}),(0,_m.jsx)(\"path\",{d:\"M18.75 18.75H20V20H18.75V18.75Z\",className:nn.foreground})]});f();var Lj=ge(We(),1);var lft=(0,Lj.jsxs)(\"svg\",{width:\"100%\",height:\"100%\",viewBox:\"0 0 32 32\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,Lj.jsx)(\"title\",{children:\"Refresh\"}),(0,Lj.jsx)(\"path\",{d:\"M15.9852 5.32694C10.0942 5.32694 5.31852 10.1026 5.31852 15.9936C5.31852 21.8846 10.0942 26.6603 15.9852 26.6603C21.4247 26.6603 25.9132 22.5887 26.5693 17.3269H29.2527C28.5837 24.0647 22.899 29.3269 15.9852 29.3269C8.62139 29.3269 2.65186 23.3574 2.65186 15.9936C2.65186 8.62982 8.62139 2.66028 15.9852 2.66028C20.3471 2.66028 24.2197 4.7548 26.6523 7.99294L29.3184 5.3269V13.3269H21.3184L24.7428 9.90246C22.8156 7.13675 19.6117 5.32694 15.9852 5.32694Z\",className:nn.foreground})]});var t4=ge(at(),1);function Uj({classNames:e}){let{address:t}=xr(),{handleClose:n,setActiveFeature:r,animations:o}=Di(),{disconnect:i,connectors:a}=IL(),{sendAnalytics:c}=Ga(),{refetch:l}=hh({address:t},Jo.Wallet),d=(0,t4.useCallback)(x=>{c(cx.OptionSelected,{option:x})},[c]),m=(0,t4.useCallback)(x=>{c(cx.Disconnect,{component:\"WalletAdvanced\",walletProvider:x})},[c]),h=(0,t4.useCallback)(()=>{d(bA.Explorer),window.open(`https://basescan.org/address/${t}`,\"_blank\")},[t,d]),g=(0,t4.useCallback)(()=>{var x;let I=((x=a[0])==null?void 0:x.name)||\"unknown\";m(I),n();for(let C of a)i({connector:C})},[i,a,n,m]),y=(0,t4.useCallback)(()=>{d(bA.QR),r(\"qr\")},[r,d]),w=(0,t4.useCallback)(async()=>{d(bA.Refresh),await l()},[l,d]);return(0,B0.jsxs)(\"div\",{\"data-testid\":\"ockWalletAdvanced_WalletActions\",className:ve(\"flex w-88 items-center justify-between px-4 py-3\",o.content,e?.container),children:[(0,B0.jsxs)(\"div\",{className:\"flex items-center\",children:[(0,B0.jsx)(Uy,{ariaLabel:\"Open transaction history\",onClick:h,children:(0,B0.jsx)(\"div\",{\"data-testid\":\"ockWalletAdvanced_TransactionsButton\",className:ve(\"h-7 w-7 scale-110 p-2\",e?.baseScanIcon),children:cft})}),(0,B0.jsx)(Uy,{ariaLabel:\"Show QR code\",onClick:y,children:(0,B0.jsx)(\"div\",{\"data-testid\":\"ockWalletAdvanced_QrButton\",className:ve(\"h-7 w-7 scale-110\",e?.qrIcon),children:uft})})]}),(0,B0.jsxs)(\"div\",{className:\"flex items-center\",children:[(0,B0.jsx)(Uy,{ariaLabel:\"Disconnect wallet\",onClick:g,children:(0,B0.jsx)(\"div\",{\"data-testid\":\"ockWalletAdvanced_DisconnectButton\",className:ve(\"h-7 w-7 scale-110 p-2\",e?.disconnectIcon),children:Voe})}),(0,B0.jsx)(Uy,{ariaLabel:\"Refresh portfolio data\",onClick:w,children:(0,B0.jsx)(\"div\",{\"data-testid\":\"ockWalletAdvanced_RefreshButton\",className:ve(\"h-7 w-7 scale-110 p-2\",e?.refreshIcon),children:lft})})]})]})}f();var U0=ge(We(),1);f();var Fj=ge(We(),1);var dft=ge(Ob(),1);function fft({children:e,className:t,isOpen:n,onClose:r,triggerRef:o,\"aria-label\":i,\"aria-labelledby\":a,\"aria-describedby\":c}){let l=Va();if(!n)return null;let d=(0,Fj.jsx)(\"div\",{\"data-portal-origin\":\"true\",children:(0,Fj.jsx)(yx,{active:n,children:(0,Fj.jsx)(gx,{onDismiss:r,triggerRef:o,preventTriggerEvents:!!o,children:(0,Fj.jsx)(\"div\",{\"aria-describedby\":c,\"aria-label\":i,\"aria-labelledby\":a,\"data-testid\":\"ockBottomSheet\",role:\"dialog\",className:ve(l,_n.default,ep.modal,\"fixed right-0 bottom-0 left-0\",\"transform rounded-t-3xl p-2 transition-transform\",\"fade-in slide-in-from-bottom-1/2 animate-in\",t),children:e})})})});return(0,dft.createPortal)(d,document.body)}var oW=ge(at(),1);f();var Hy=ge(We(),1);f();var pft=ge(We(),1);var hft=ge(at(),1);function Goe({label:e,copyValue:t,onSuccess:n,onError:r,className:o,\"aria-label\":i}){let a=(0,hft.useCallback)(()=>Moe({copyValue:t,onSuccess:n,onError:r}),[t,n,r]);return(0,pft.jsx)(\"button\",{type:\"button\",\"data-testid\":\"ockCopyButton\",className:o,onClick:a,onKeyDown:a,\"aria-label\":i,children:e})}f();var Tm=ge(We(),1),sie=ge(at(),1);f();var mft=\"#ffffff\",gft={x:0,y:0},yft={x:1,y:0};var zEe={default:\"blue\",base:\"baseBlue\",cyberpunk:\"pink\",hacker:\"black\"},jEe={default:\"default\",base:\"blue\",cyberpunk:\"magenta\",hacker:\"black\"},WEe={blue:{startColor:\"#266EFF\",endColor:\"#45E1E5\"},pink:{startColor:\"#EE5A67\",endColor:\"#CE46BD\"},black:{startColor:\"#a1a1aa\",endColor:\"#27272a\"},baseBlue:{startColor:\"#0052ff\",endColor:\"#b2cbff\"}},bft={default:[[\"#0F27FF\",\"39.06%\"],[\"#6100FF\",\"76.56%\"],[\"#201F1D\",\"100%\"]],blue:[[\"#0F6FFF\",\"39.06%\"],[\"#0F27FF\",\"76.56%\"],[\"#201F1D\",\"100%\"]],magenta:[[\"#CF00F1\",\"36.46%\"],[\"#7900F1\",\"68.58%\"],[\"#201F1D\",\"100%\"]],black:[[\"#d4d4d8\",\"36.46%\"],[\"#201F1D\",\"68.58%\"],[\"#201F1D\",\"100%\"]]};f();var IA=ge(We(),1),xft=ge(at(),1);f();var vft=ge(at(),1),VEe=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],GEe=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];function eXt(e,t,n,r){return Math.sqrt((r-t)**2+(n-e)**2)}function tXt(e,t,n){var r,o,i,a,c,l;return!!((r=VEe[e])!=null&&r[t]||(o=VEe[e-n+VD])!=null&&o[t]||(i=VEe[e])!=null&&i[t-n+VD]||(a=GEe[e])!=null&&a[t]||(c=GEe[e-n+VD])!=null&&c[t]||(l=GEe[e])!=null&&l[t-n+VD])}function nXt(e,t,{hasLogo:n,logoSize:r,logoMargin:o,logoBorderRadius:i,matrixLength:a,dotSize:c}){if(!n)return!1;let d=(r+o*2)/c,m=Math.floor(a/2);if(i>=r/2){let y=d/2;return eXt(t,e,m,m)-.5<=y}let g=Math.ceil(d/2);return e<=m+g&&e>=m-g&&t<=m+g&&t>=m-g}function rXt(e,t,n){return`\\n    M ${e-n} ${t}\\n    A ${n} ${n} 0 1 1 ${e+n} ${t}\\n    A ${n} ${n} 0 1 1 ${e-n} ${t}`}var VD=7;function wft({matrix:e,size:t,logoSize:n,logoMargin:r,logoBorderRadius:o,hasLogo:i}){return(0,vft.useMemo)(()=>{let c=t/e.length,l=\"\",d=e.length,m=t/d;return e.forEach((h,g)=>{h.forEach((y,w)=>{if(!(tXt(g,w,d)||nXt(g,w,{hasLogo:i,logoSize:n,logoMargin:r,logoBorderRadius:o,matrixLength:d,dotSize:m}))&&y){let x=c*w+c/2,I=c*g+c/2;l+=rXt(x,I,c/2)}})}),l},[i,o,r,n,e,t])}function Eft(e,t,n,r,o){let i=e/t,a=i*VD,c=i*2,l=i+1;return(0,xft.useMemo)(()=>(0,IA.jsxs)(\"g\",{children:[(0,IA.jsx)(\"rect\",{x:0,y:0,rx:9.5,ry:9.5,width:a,height:a,fill:r,id:`Corner-top-left-${o}`}),(0,IA.jsx)(\"rect\",{x:0,y:e-a,rx:9.5,ry:9.5,width:a,height:a,fill:r,id:`Corner-bottom-left-${o}`}),(0,IA.jsx)(\"rect\",{x:e-a,y:0,rx:9.5,ry:9.5,width:a,height:a,fill:r,id:`Corner-top-right-${o}`}),(0,IA.jsx)(\"circle\",{cx:a/2,cy:a/2,r:c,stroke:n,strokeWidth:l,fill:\"none\"}),(0,IA.jsx)(\"circle\",{cx:a/2,cy:e-a/2,r:c,stroke:n,strokeWidth:l,fill:\"none\"}),(0,IA.jsx)(\"circle\",{cx:e-a/2,cy:a/2,r:c,stroke:n,strokeWidth:l,fill:\"none\"})]}),[n,c,l,r,a,e,o])}f();var _x=ge(We(),1),Yoe=ge(at(),1),KEe=ge(_ft(),1);var oXt=KEe.default.renderToString(foe),iXt=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(oXt)}`;function Tft({size:e,logo:t=iXt,logoSize:n,logoBackgroundColor:r,logoMargin:o,logoBorderRadius:i}){return(0,Yoe.useMemo)(()=>{let c=Yoe.default.isValidElement(t)?`data:image/svg+xml;charset=utf-8,${encodeURIComponent(KEe.default.renderToString(t))}`:t,l=(e-n-o*2)/2,d=n+o*2;return(0,_x.jsxs)(\"g\",{transform:`translate(${l}, ${l})`,children:[(0,_x.jsx)(\"defs\",{children:(0,_x.jsx)(\"clipPath\",{id:\"clip-logo\",children:(0,_x.jsx)(\"rect\",{width:n,height:n,rx:i,ry:i})})}),(0,_x.jsx)(\"g\",{children:(0,_x.jsx)(\"rect\",{width:d,height:d,rx:i,ry:i,fill:r})}),(0,_x.jsx)(\"g\",{transform:`translate(${o}, ${o})`,children:(0,_x.jsx)(\"image\",{\"data-testid\":\"qr-code-logo\",width:n,height:n,preserveAspectRatio:\"xMidYMid slice\",href:String(c),clipPath:\"url(#clip-logo)\"})})]})},[t,r,i,o,n,e])}f();var Cpt=ge(Tpt(),1),Rpt=ge(at(),1);function Ipt(e,t){return(0,Rpt.useMemo)(()=>{if(!t)return[];let r=`ethereum:${t}`,o=Array.from(Cpt.default.create(r,{errorCorrectionLevel:e}).modules.data),i=Math.sqrt(o.length);return o.reduce((a,c,l)=>(l%i===0?a.push([c]):a[a.length-1].push(c),a),[])},[e,t])}function aie(e){return`${e*100}%`}function kpt({value:e,size:t=237,backgroundColor:n=\"#ffffff\",logo:r,logoSize:o=50,logoBackgroundColor:i=mft,logoMargin:a=5,logoBorderRadius:c=10,quietZone:l=12,quietZoneBorderRadius:d=10,ecl:m=\"Q\",gradientType:h=\"radial\"}){let g=t*.55,y=t/2,w=(0,sie.useId)(),I=Va().split(\"-\")[0],C=h===\"radial\",M=C?`url(#radialGrad-${w})`:\"#000000\",B=C?n:`url(#linearGrad-${w})`,z=zEe[I]??zEe.default,G=[WEe[z].startColor,WEe[z].endColor],J=jEe[I]??jEe.default,ne=bft[J],ie=Ipt(m,e),ae=Eft(t,ie.length,B,M,w),{x:te,y:Z}=gft,{x:X,y:F}=yft,R=(0,sie.useMemo)(()=>[-l,-l,t+l*2,t+l*2].join(\" \"),[l,t]),O=Tft({size:t,logo:r,logoSize:o,logoBackgroundColor:i,logoMargin:a,logoBorderRadius:c}),U=wft({matrix:ie,size:t,logoSize:o,logoMargin:a,logoBorderRadius:c,hasLogo:!!r});return!U||!e?null:(0,Tm.jsxs)(\"svg\",{viewBox:R,width:t,height:t,children:[(0,Tm.jsx)(\"title\",{children:\"QR Code\"}),(0,Tm.jsx)(\"defs\",{children:C?(0,Tm.jsx)(\"radialGradient\",{id:`radialGrad-${w}`,\"data-testid\":\"radialGrad\",rx:g,ry:g,cx:y,cy:y,gradientUnits:\"userSpaceOnUse\",children:ne.map(([P,L])=>(0,Tm.jsx)(\"stop\",{offset:L,stopColor:P,stopOpacity:1},`${P}${L}`))}):(0,Tm.jsxs)(\"linearGradient\",{id:`linearGrad-${w}`,\"data-testid\":\"linearGrad\",x1:aie(te),y1:aie(Z),x2:aie(X),y2:aie(F),gradientUnits:\"userSpaceOnUse\",children:[(0,Tm.jsx)(\"stop\",{offset:\"0\",stopColor:G[0]}),(0,Tm.jsx)(\"stop\",{offset:\"1\",stopColor:G[1]})]})}),(0,Tm.jsx)(\"g\",{children:(0,Tm.jsx)(\"rect\",{rx:d,ry:d,x:-l,y:-l,width:t+l*2,height:t+l*2,fill:n,stroke:B,strokeWidth:2})}),(0,Tm.jsxs)(\"g\",{children:[(0,Tm.jsx)(\"path\",{d:U,fill:M,strokeLinecap:\"butt\",stroke:M,strokeWidth:0,opacity:.6}),ae,O]})]})}f();var Yj=ge(We(),1);var XD=(0,Yj.jsxs)(\"svg\",{width:\"12\",height:\"13\",viewBox:\"0 0 12 13\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,Yj.jsx)(\"title\",{children:\"Back Arrow\"}),(0,Yj.jsx)(\"path\",{d:\"M5.54479 12.077L6.46623 11.2323L2.42062 6.81894H11.9999V5.56894H2.50874L6.88374 1.19394L5.99985 0.310059L0.134766 6.17515L5.54479 12.077Z\",className:nn.foreground})]});f();var $D=ge(We(),1);var Opt=(0,$D.jsxs)(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 12 12\",xmlns:\"http://www.w3.org/2000/svg\",children:[(0,$D.jsx)(\"title\",{children:\"Copy\"}),(0,$D.jsx)(\"path\",{d:\"M0.666016 0H9.33268V9.33333H0.666016V0ZM1.99935 1.33333V8H7.99935V1.33333H1.99935Z\",className:nn.foreground}),(0,$D.jsx)(\"path\",{d:\"M10.666 3.33333H11.9993V12H4.66602V10.6667H10.666V3.33333Z\",className:nn.foreground})]});var D1=ge(at(),1);function yAe({classNames:e}){let{address:t,setActiveFeature:n,isActiveFeatureClosing:r,setIsActiveFeatureClosing:o}=Di(),[i,a]=(0,D1.useState)(\"Copy\"),[c,l]=(0,D1.useState)(\"Copy address\"),d=(0,D1.useCallback)(()=>{o(!0)},[o]),m=(0,D1.useCallback)(()=>{r&&(n(null),o(!1))},[r,n,o]),h=(0,D1.useCallback)(()=>{setTimeout(()=>{a(\"Copy\"),l(\"Copy address\")},2e3)},[]),g=(0,D1.useCallback)(()=>{l(\"Address copied\"),h()},[h]),y=(0,D1.useCallback)(()=>{l(\"Failed to copy address\"),h()},[h]),w=(0,D1.useCallback)(()=>{a(\"Copied\"),h()},[h]),x=(0,D1.useCallback)(()=>{a(\"Failed to copy\"),h()},[h]);return(0,Hy.jsxs)(\"div\",{\"data-testid\":\"ockWalletAdvancedQrReceive\",className:ve(xt.radius,ft.foreground,ut.headline,\"flex flex-col items-center justify-between\",\"h-120 w-88 px-4 pt-3 pb-4\",r?\"fade-out slide-out-to-left-5 animate-out fill-mode-forwards ease-in-out\":\"fade-in slide-in-from-left-5 linear animate-in duration-150\",e?.container),onAnimationEnd:m,children:[(0,Hy.jsxs)(\"div\",{className:ve(\"flex h-[34px] w-full flex-row items-center justify-between\",e?.header),children:[(0,Hy.jsx)(Uy,{ariaLabel:\"Back button\",onClick:d,children:(0,Hy.jsx)(\"div\",{className:\"p-2\",children:XD})}),(0,Hy.jsx)(\"span\",{children:\"Scan to receive\"}),(0,Hy.jsxs)(\"div\",{className:\"group relative\",children:[(0,Hy.jsx)(Goe,{label:Opt,copyValue:t??\"\",onSuccess:w,onError:x,className:ve(Xt.default,xt.radiusInner,xt.default,\"flex items-center justify-center p-2\"),\"aria-label\":\"Copy your address by clicking the icon\"}),(0,Hy.jsx)(Goe,{label:i,copyValue:t??\"\",onSuccess:w,onError:x,className:ve(Xt.alternate,ut.legal,ft.foreground,xt.default,xt.radius,ep.dropdown,\"absolute top-full right-0 mt-0.5 px-1.5 py-0.5 opacity-0 transition-opacity group-hover:opacity-100\"),\"aria-label\":\"Copy your address by clicking the tooltip\"})]})]}),(0,Hy.jsx)(kpt,{value:t}),(0,Hy.jsx)(Goe,{copyValue:t??\"\",label:c,className:ve(xt.radius,Xt.alternate,\"w-full p-3\",e?.copyButton),onSuccess:g,onError:y,\"aria-label\":\"Copy your address by clicking the button\"})]})}f();var rp=ge(We(),1);f();var ef=ge(We(),1);f();var L0=ge(We(),1),PA=ge(at(),1);f();var Zj=ge(We(),1);function Npt({token:e,onClick:t,className:n,isPressable:r=!0}){let o=Va();return(0,Zj.jsxs)(\"button\",{type:\"button\",\"data-testid\":\"ockTokenChip_Button\",className:ve(o,r?[Xt.secondary,Xt.shadow]:[_n.secondary,\"cursor-default\"],\"flex w-fit shrink-0 items-center gap-2 rounded-lg py-1 pr-3 pl-1 \",n),onClick:()=>t?.(e),children:[(0,Zj.jsx)(Ax,{token:e,size:24}),(0,Zj.jsx)(\"span\",{className:ut.headline,children:e.symbol})]})}f();var qC=ge(We(),1),a4=ge(at(),1);f();var Qj=ge(We(),1);f();function Ppt({align:e,contentRect:t,triggerRect:n}){if(!n||!t)return 0;switch(e){case\"start\":return n.left;case\"center\":return n.left+(n.width-t.width)/2;case\"end\":return n.right-t.width}}var e7=ge(at(),1),Mpt=ge(Ob(),1);function Dpt({align:e=\"start\",children:t,isOpen:n,offset:r=8,onClose:o,trigger:i,\"aria-label\":a}){let c=Va(),l=(0,e7.useRef)(null),d=(0,e7.useCallback)(()=>{if(!i?.current||!l.current)return;let h=i.current.getBoundingClientRect(),g=l.current.getBoundingClientRect();if(!h||!g)return;let y=Ppt({triggerRect:h,contentRect:g,align:e});l.current.style.top=`${h.bottom+r}px`,l.current.style.left=`${y}px`},[i,r,e]);if((0,e7.useEffect)(()=>{if(n)return d(),window.addEventListener(\"resize\",d),window.addEventListener(\"scroll\",d),()=>{window.removeEventListener(\"resize\",d),window.removeEventListener(\"scroll\",d)}},[n,d]),!n)return null;let m=(0,Qj.jsx)(\"div\",{className:ve(c,ep.dropdown,\"pointer-events-none fixed\"),\"data-portal-origin\":\"true\",children:(0,Qj.jsx)(yx,{active:n,children:(0,Qj.jsx)(gx,{onDismiss:o,triggerRef:i,children:(0,Qj.jsx)(\"div\",{ref:l,className:ve(\"pointer-events-auto fixed\"),role:\"listbox\",\"data-testid\":\"ockDropdownMenu\",\"aria-label\":a,children:t})})})});return(0,Mpt.createPortal)(m,document.body)}function Bpt({options:e,setToken:t,token:n}){let[r,o]=(0,a4.useState)(!1),i=(0,a4.useRef)(null),a=(0,a4.useCallback)(()=>{o(!1)},[]),c=(0,a4.useCallback)(()=>{o(l=>!l)},[]);return(0,qC.jsxs)(\"div\",{className:\"relative max-w-fit shrink-0\",children:[(0,qC.jsx)(oft,{ref:i,onClick:c,isOpen:r,token:n}),(0,qC.jsx)(Dpt,{trigger:i,isOpen:r,onClose:a,align:\"end\",children:(0,qC.jsx)(\"div\",{\"data-testid\":\"ockTokenSelectDropdown_List\",className:ve(xt.radius,ft.foreground,\"flex max-h-80 w-[200px] flex-col overflow-y-hidden\",\"ock-scrollbar\"),children:(0,qC.jsx)(\"div\",{className:\"overflow-y-auto\",children:e.map(l=>(0,qC.jsx)(tft,{className:ve(_n.inverse,\"px-4 py-2\"),token:l,onClick:()=>{t(l),o(!1)}},l.name+l.address))})})})]})}f();function Lpt(e){if(!/\\\\d+\\\\.?\\\\d*e[+-]*\\\\d+/i.test(e))return e;let[t,n]=e.toLowerCase().split(\"e\"),r=Number.parseInt(n),[o,i=\"\"]=t.split(\".\"),a=o+i,c=o.length+r;return c<=0?`0.${\"0\".repeat(Math.abs(c))}${a}`:c>=a.length?a+\"0\".repeat(c-a.length):`${a.slice(0,c)}.${a.slice(c)}`}f();var nht=ge(We(),1);var $d=ge(at(),1);va();f();f();var Upt=\"cdp_getSwapQuote\",Fpt=\"cdp_getSwapTrade\";f();f();f();function Hpt(e,t){let[n,r=\"\"]=e.split(\".\"),i=r.padEnd(t,\"0\").slice(0,t);return(BigInt(n+i)*BigInt(10)**BigInt(t-i.length)).toString()}f();function zpt(e,t){if(e.includes(\".\")){let[c,l]=e.split(\".\"),d=l.padEnd(t,\"0\");return c+d}let n=BigInt(e),r=BigInt(10)**BigInt(t),o=(n/r).toString(),a=(n%r).toString().padStart(t,\"0\").replace(/0+$/,\"\");return a?`${o}.${a}`:o}function jpt(e,t=!0,n=18){let r;return t?r=zpt(e,n):r=Hpt(e,n),r}function cie(e){let{from:t,to:n,amount:r,amountReference:o,isAmountInDecimals:i}=e,{fromAddress:a}=e,c=o===\"from\"?t.decimals:n.decimals;return typeof r!=\"string\"||r.trim()===\"\"?{code:\"INVALID_INPUT\",error:\"Invalid input: amount must be a non-empty string\",message:\"\"}:!Number.isInteger(c)||c<0?{code:\"INVALID_INPUT\",error:\"Invalid input: decimals must be a non-negative integer\",message:\"\"}:/^(?:0|[1-9]\\\\d*|\\\\.\\\\d+)(?:\\\\.\\\\d*)?$/.test(r)?{fromAddress:a,from:t.address||\"ETH\",to:n.address||\"ETH\",amount:i?r:jpt(r,!1,c),amountReference:o||\"from\"}:{code:\"INVALID_INPUT\",error:\"Invalid input: amount must be a non-negative number string\",message:\"\"}}f();function bAe(e,t){let{data:n,gas:r,to:o,value:i}=e;return{chainId:Number(t),data:n,gas:BigInt(r),to:o,value:BigInt(i)}}async function Wpt(e,t=Jo.API){var n;let o=cie({...{amountReference:\"from\",isAmountInDecimals:!1},...e});if(\"error\"in o)return o;if(e.useAggregator&&e.amountReference===\"to\")return console.error(cd.UNSUPPORTED_AMOUNT_REFERENCE),{code:Loe,error:cd.UNSUPPORTED_AMOUNT_REFERENCE,message:\"\"};if(e.useAggregator||(o={v2Enabled:!0,...o}),e.maxSlippage){let i=e.maxSlippage;e.useAggregator&&(i=(Number(e.maxSlippage)*10).toString()),o={slippagePercentage:i,...o}}try{let i=await HC(Fpt,[o],t);if(i.error)return{code:Ex(\"swap\",(n=i.error)==null?void 0:n.code),error:i.error.message,message:\"\"};let a=i.result;return{approveTransaction:a.approveTx?bAe(a.approveTx,a.chainId):void 0,fee:a.fee,quote:a.quote,transaction:bAe(a.tx,a.chainId),warning:a.quote.warning}}catch{return{code:Ex(\"uncaught-swap\"),error:\"Something went wrong\",message:\"\"}}}f();async function Vpt(e,t=Jo.API){var n;let o=cie({...{amountReference:\"from\",isAmountInDecimals:!1},...e});if(\"error\"in o)return o;if(e.useAggregator&&e.amountReference===\"to\")return console.error(cd.UNSUPPORTED_AMOUNT_REFERENCE),{code:Loe,error:cd.UNSUPPORTED_AMOUNT_REFERENCE,message:\"\"};if(e.useAggregator||(o={v2Enabled:!0,...o}),e.maxSlippage){let i=e.maxSlippage;e.useAggregator&&(i=(Number(e.maxSlippage)*10).toString()),o={slippagePercentage:i,...o}}try{let i=await HC(Upt,[o],t);return i.error?{code:Ex(\"quote\",(n=i.error)==null?void 0:n.code),error:i.error.message,message:\"\"}:i.result}catch{return{code:Ex(\"uncaught-quote\"),error:\"Something went wrong\",message:\"\"}}}f();function Gpt(e,t){return(Number(e)/10**t).toString()}f();var OA=\"Something went wrong. Please try again.\";f();function KC(e){var t,n;return!!(((t=e?.cause)==null?void 0:t.name)===\"UserRejectedRequestError\"||(n=e?.shortMessage)!=null&&n.includes(\"User rejected the request.\"))}f();var qpt=ge(at(),1);f();f();function Jj(e){return e===\"CONFIRMED\"?\"success\":e===\"PENDING\"?\"pending\":e}function uie(e){return typeof e==\"string\"?e:e.id}function Kpt({accountConfig:e,lifecycleStatus:t,updateLifecycleStatus:n}){var r;let o=t.statusName===\"transactionApproved\"?(r=t.statusData)==null?void 0:r.callsId:void 0,{data:i}=CL({id:o||\"\",query:{refetchInterval:a=>{var c;return Jj((c=a.state.data)==null?void 0:c.status)===\"success\"?!1:1e3},enabled:o!==void 0}});return(0,qpt.useCallback)(async()=>{if(Jj(i?.status)===\"success\"&&i?.receipts){let a=await Vg(e,{confirmations:1,hash:i.receipts[i.receipts.length-1].transactionHash});n({statusName:\"success\",statusData:{transactionReceipt:a}})}},[e,i,n])}f();var NA=ge(at(),1);f();f();var Ypt=ge(at(),1);gn();function vAe(e,t){let n=vY({abi:rE,address:t?.address,functionName:\"balanceOf\",args:e?[e]:[],query:{enabled:!!t?.address&&!!e}});return(0,Ypt.useMemo)(()=>{var r;let o;if(n?.error&&(o={code:Ex(\"balance\"),error:(r=n?.error)==null?void 0:r.shortMessage,message:\"\"}),n?.data!==0n&&!n?.data||!t)return{convertedBalance:\"\",status:n.status,error:o,roundedBalance:\"\",response:n,refetch:n.refetch};let i=ba(n?.data,t?.decimals);return{convertedBalance:i,status:n.status,error:o,response:n,roundedBalance:CA(i,8),refetch:n.refetch}},[t,n])}function Zpt({address:e,fromToken:t,toToken:n}){let{convertedBalance:r,error:o,response:i}=Uoe(e),{convertedBalance:a,error:c,response:l}=vAe(e,t),{convertedBalance:d,error:m,response:h}=vAe(e,n),g=t?.symbol===\"ETH\",y=n?.symbol===\"ETH\";return ad({fromBalanceString:g?r:a,fromTokenBalanceError:g?o:c,fromTokenResponse:g?i:l,toBalanceString:y?r:d,toTokenBalanceError:y?o:m,toTokenResponse:y?i:h})}var Qpt=e=>{let[t,n]=(0,NA.useState)(\"\"),[r,o]=(0,NA.useState)(\"\"),[i,a]=(0,NA.useState)(),[c,l]=(0,NA.useState)(\"\"),[d,m]=(0,NA.useState)(\"\"),[h,g]=(0,NA.useState)(),[y,w]=(0,NA.useState)(!1),[x,I]=(0,NA.useState)(!1),{fromBalanceString:C,fromTokenBalanceError:M,toBalanceString:B,toTokenBalanceError:z,fromTokenResponse:G,toTokenResponse:J}=Zpt({address:e,fromToken:i,toToken:h}),ne=ad({balance:C,balanceResponse:G,amount:t,setAmount:n,amountUSD:r,setAmountUSD:o,token:i,setToken:a,loading:x,setLoading:I,error:M}),ie=ad({balance:B,balanceResponse:J,amount:c,amountUSD:d,setAmountUSD:m,setAmount:l,token:h,setToken:g,loading:y,setLoading:w,error:z});return{from:ne,to:ie}};f();var Jpt=ge(at(),1),Xpt=({from:e,to:t})=>(0,Jpt.useCallback)(async()=>{var n,r;await Promise.all([(n=e.balanceResponse)==null?void 0:n.refetch(),(r=t.balanceResponse)==null?void 0:r.refetch(),e.setAmount(\"\"),e.setAmountUSD(\"\"),t.setAmount(\"\"),t.setAmountUSD(\"\")])},[e,t]);f();function wAe(e){return e!==null&&typeof e==\"object\"&&\"error\"in e}f();gn();va();f();f();async function $pt({config:e,sendTransactionAsync:t,transactions:n,updateLifecycleStatus:r}){let o;for(let{transaction:i,transactionType:a}of n){r({statusName:\"transactionPending\"});let c=await t(i);r({statusName:\"transactionApproved\",statusData:{transactionHash:c,transactionType:a}}),o=await Vg(e,{hash:c,confirmations:1})}o&&r({statusName:\"success\",statusData:{transactionReceipt:o}})}async function eht({config:e,isSponsored:t,paymaster:n,sendCallsAsync:r,sendTransactionAsync:o,updateLifecycleStatus:i,walletCapabilities:a,transactions:c}){var l;if((l=a[UI.AtomicBatch])!=null&&l.supported){i({statusName:\"transactionPending\"});let d=await r({calls:c.map(({transaction:m})=>m),capabilities:t?{paymasterService:{url:n}}:{}});i({statusName:\"transactionApproved\",statusData:{callsId:uie(d),transactionType:\"Batched\"}})}else await $pt({config:e,sendTransactionAsync:o,transactions:c,updateLifecycleStatus:i})}async function tht({chainId:e,config:t,isSponsored:n,paymaster:r,sendCallsAsync:o,sendTransactionAsync:i,swapTransaction:a,switchChainAsync:c,updateLifecycleStatus:l,useAggregator:d,walletCapabilities:m}){let{transaction:h,approveTransaction:g,quote:y}=a,w=[];if(g?.data&&(w.push({transaction:{to:g.to,value:g.value,data:g.data},transactionType:\"ERC20\"}),!d)){let x=V2([\"function approve(address token, address spender, uint160 amount, uint48 expiration) external\"]),I=xn({abi:x,functionName:\"approve\",args:[y.from.address,Ndt,BigInt(y.fromAmount),2e13]});w.push({transaction:{to:Idt,value:0n,data:I},transactionType:\"Permit2\"})}w.push({transaction:{to:h.to,value:h.value,data:h.data},transactionType:\"Swap\"}),e!==fr.id&&await c({chainId:fr.id}),await eht({config:t,isSponsored:n,paymaster:r,sendCallsAsync:o,sendTransactionAsync:i,transactions:w,updateLifecycleStatus:l,walletCapabilities:m})}var rht={},oht=(0,$d.createContext)(rht);function zy(){let e=(0,$d.useContext)(oht);if(e===rht)throw new Error(\"useSwapContext must be used within a Swap component\");return e}function iht({children:e,config:t={maxSlippage:3},experimental:n,isSponsored:r,onError:o,onStatus:i,onSuccess:a}){var c,l;let{config:{paymaster:d}={paymaster:void 0}}=Fo(),{address:m,chainId:h}=xr(),{switchChainAsync:g}=R3(),{useAggregator:y}=n,w=wr(),x=kD({chainId:fr.id}),[I,C]=ND({statusName:\"init\",statusData:{isMissingRequiredField:!0,maxSlippage:t.maxSlippage}}),[M,B]=(0,$d.useState)(!1),[z,G]=(0,$d.useState)(\"\"),[J,ne]=(0,$d.useState)(!1),{from:ie,to:ae}=Qpt(m),{sendTransactionAsync:te}=OL(),{sendCallsAsync:Z}=kL(),X=Xpt({from:ie,to:ae}),F=Kpt({accountConfig:w,lifecycleStatus:I,updateLifecycleStatus:C}),{sendAnalytics:R}=Ga();(0,$d.useEffect)(()=>{var W,q,H,k;I.statusName===\"error\"&&(o?.(I.statusData),R(vA.SwapFailure,{error:I.statusData.error,metadata:I.statusData})),I.statusName===\"success\"&&(a?.(I.statusData.transactionReceipt),G((W=I.statusData)==null?void 0:W.transactionReceipt.transactionHash),ne(!0),B(!0),R(vA.SwapSuccess,{paymaster:!!d,transactionHash:(q=I.statusData.transactionReceipt)==null?void 0:q.transactionHash,address:m||\"\",amount:Number(ie.amount),from:((H=ie.token)==null?void 0:H.symbol)||\"\",to:((k=ae.token)==null?void 0:k.symbol)||\"\"})),i?.(I)},[o,i,a,I,I.statusData,I.statusName,R,d,ie.amount,(c=ie.token)==null?void 0:c.symbol,(l=ae.token)==null?void 0:l.symbol,m]),(0,$d.useEffect)(()=>{I.statusName===\"init\"&&J&&(ne(!1),X())},[J,I.statusName,X]),(0,$d.useEffect)(()=>{I.statusName===\"transactionApproved\"&&I.statusData.transactionType===\"Batched\"&&F()},[F,I,I.statusData,I.statusName]),(0,$d.useEffect)(()=>{I.statusName===\"success\"&&J&&C({statusName:\"init\",statusData:{isMissingRequiredField:!0,maxSlippage:t.maxSlippage}})},[t.maxSlippage,J,I.statusName,C]);let O=(0,$d.useCallback)(()=>{var W,q;ie.setAmount(ae.amount),ae.setAmount(ie.amount),(W=ie.setToken)==null||W.call(ie,ae.token),(q=ae.setToken)==null||q.call(ae,ie.token),C({statusName:\"amountChange\",statusData:{amountFrom:ie.amount,amountTo:ae.amount,tokenFrom:ie.token,tokenTo:ae.token,isMissingRequiredField:!ie.token||!ae.token||!ie.amount||!ae.amount}})},[ie,ae,C]),U=(0,$d.useCallback)(async(W,q,H,k)=>{let V=W===\"from\"?ie:ae,oe=W===\"from\"?ae:ie;if(V.token=H??V.token,oe.token=k??oe.token,V.token===void 0||oe.token===void 0){C({statusName:\"amountChange\",statusData:{amountFrom:ie.amount,amountTo:ae.amount,tokenFrom:ie.token,tokenTo:ae.token,isMissingRequiredField:!0}});return}if(q===\"\"||q===\".\"||Number.parseFloat(q)===0){oe.setAmount(\"\"),oe.setAmountUSD(\"\"),V.setAmountUSD(\"\");return}oe.setLoading(!0),C({statusName:\"amountChange\",statusData:{amountFrom:W===\"from\"?q:\"\",amountTo:W===\"to\"?q:\"\",tokenFrom:ie.token,tokenTo:ae.token,isMissingRequiredField:!0}});try{let se=I.statusData.maxSlippage,ue=await Vpt({amount:q,amountReference:\"from\",from:V.token,maxSlippage:String(se),to:oe.token,useAggregator:y},Jo.Swap);if(wAe(ue)){C({statusName:\"error\",statusData:{code:ue.code,error:ue.error,message:\"\"}});return}let he=Gpt(ue.toAmount,ue.to.decimals);oe.setAmountUSD(ue.toAmountUSD),oe.setAmount(he),V.setAmountUSD(ue.fromAmountUSD),C({statusName:\"amountChange\",statusData:{amountFrom:W===\"from\"?q:he,amountTo:W===\"to\"?q:he,tokenFrom:ie.token,tokenTo:ae.token,isMissingRequiredField:!he}})}catch(se){C({statusName:\"error\",statusData:{code:\"TmSPc01\",error:JSON.stringify(se),message:\"\"}})}finally{oe.setLoading(!1)}},[ie,ae,I,C,y]),P=(0,$d.useCallback)(async()=>{if(!(!m||!ie.token||!ae.token||!ie.amount))try{R(vA.SwapInitiated,{amount:Number(ie.amount)});let W=I.statusData.maxSlippage,q=await Wpt({amount:ie.amount,fromAddress:m,from:ie.token,maxSlippage:String(W),to:ae.token,useAggregator:y},Jo.Swap);if(wAe(q)){C({statusName:\"error\",statusData:{code:q.code,error:q.error,message:q.message}});return}await tht({chainId:h,config:w,isSponsored:r,paymaster:d||\"\",sendCallsAsync:Z,sendTransactionAsync:te,swapTransaction:q,switchChainAsync:g,updateLifecycleStatus:C,useAggregator:y,walletCapabilities:x})}catch(W){let q=KC(W)?\"Request denied.\":OA;C({statusName:\"error\",statusData:{code:\"TmSPc02\",error:JSON.stringify(W),message:q}})}},[w,m,h,ie.amount,ie.token,r,I,d,Z,te,g,ae.token,C,y,x,R]),L=ad({address:m,config:t,from:ie,handleAmountChange:U,handleToggle:O,handleSubmit:P,lifecycleStatus:I,updateLifecycleStatus:C,to:ae,isToastVisible:M,setIsToastVisible:B,setTransactionHash:G,transactionHash:z});return(0,nht.jsx)(oht.Provider,{value:L,children:e})}function t7({className:e,delayMs:t=1e3,label:n,token:r,type:o,swappableTokens:i}){let{address:a,to:c,from:l,handleAmountChange:d}=zy(),{sendAnalytics:m}=Ga(),h=ad(o===\"from\"?l:c),g=ad(o===\"from\"?c:l),{setToken:y,setAmount:w,balance:x,amount:I,amountUSD:C}=h;(0,PA.useEffect)(()=>{r&&y?.(r)},[r,y]);let M=(0,PA.useCallback)(()=>{x&&(w(x),d(o,x))},[x,w,d,o]),B=(0,PA.useCallback)(ae=>{d(o,ae)},[d,o]),z=(0,PA.useCallback)(ae=>{m(vA.TokenSelected,{token:ae.symbol})},[m]),G=(0,PA.useCallback)(ae=>{y?.(ae),d(o,I,ae),z(ae)},[I,y,d,z,o]),J=(0,PA.useMemo)(()=>i?.filter(({symbol:ae})=>{var te;return ae!==((te=g.token)==null?void 0:te.symbol)})??[],[i,g.token]),ne=o===\"from\"&&Number(x)<Number(I),ie=ae=>!ae||ae===\"0\"?null:`~$${Number(CA(ae,2)).toFixed(2)}`;return(0,L0.jsxs)(\"div\",{className:ve(_n.secondary,xt.radius,\"my-0.5 box-border flex h-[148px] w-full flex-col items-start p-4\",e),\"data-testid\":\"ockSwapAmountInput_Container\",children:[(0,L0.jsx)(\"div\",{className:ve(ut.label2,ft.foregroundMuted,\"flex w-full items-center justify-between\"),children:n}),(0,L0.jsxs)(\"div\",{className:\"flex w-full items-center justify-between\",children:[(0,L0.jsx)($I,{className:ve(\"mr-2 w-full border-[none] bg-transparent font-display text-[2.5rem]\",\"leading-none outline-none\",ne&&a?ft.error:ft.foreground),placeholder:\"0.0\",delayMs:t,value:Lpt(I),setValue:w,disabled:h.loading,onChange:B,inputValidator:Soe}),J.length>0?(0,L0.jsx)(Bpt,{token:h.token,setToken:G,options:J}):h.token&&(0,L0.jsx)(Npt,{className:Xt.inverse,token:h.token})]}),(0,L0.jsxs)(\"div\",{className:\"mt-4 flex w-full items-center justify-between\",children:[(0,L0.jsx)(\"div\",{className:ve(ut.label2,ft.foregroundMuted),children:ie(C)}),(0,L0.jsxs)(\"div\",{className:ve(ut.label2,ft.foregroundMuted,\"flex grow items-center justify-end\"),children:[x&&(0,L0.jsx)(\"span\",{children:`Balance: ${CA(x,8)}`}),o===\"from\"&&a&&(0,L0.jsx)(\"button\",{type:\"button\",className:ve(ut.label1,ft.primary,\"flex cursor-pointer items-center justify-center px-2 py-1\"),\"data-testid\":\"ockSwapAmountInput_MaxButton\",onClick:M,children:\"Max\"})]})]})]})}f();var Xj=ge(We(),1);function lie({className:e,label:t=\"Swap\",disabled:n=!1}){var r,o;let{address:i,to:a,from:c,lifecycleStatus:{statusName:l},handleSubmit:d}=zy(),m=a.loading||c.loading||l===\"transactionPending\"||l===\"transactionApproved\",h=!c.amount||!c.token||!a.amount||!a.token||n||m,g=((r=a.token)==null?void 0:r.address)===((o=c.token)==null?void 0:o.address);return!h&&!i?(0,Xj.jsx)(P1,{className:ve(\"mt-4 w-full\",e)}):(0,Xj.jsx)(\"button\",{type:\"button\",className:ve(_n.primary,xt.radius,\"w-full rounded-xl\",\"mt-4 px-4 py-3\",h&&Xt.disabled,ut.headline,e),onClick:()=>d(),disabled:h||g,\"data-testid\":\"ockSwapButton_Button\",children:m?(0,Xj.jsx)(M0,{}):(0,Xj.jsx)(\"span\",{className:ve(ut.headline,ft.inverse),children:t})})}f();var cht=ge(We(),1);f();f();function aht(e){return e.code===Boe?cd.TOO_MANY_REQUESTS:e.code===Doe?cd.LOW_LIQUIDITY:e.code===Pdt?cd.USER_REJECTED:e.message}function sht({address:e,from:t,lifecycleStatus:n,to:r}){return n.statusName===\"error\"?aht(n.statusData):t.error||r.error?cd.BALANCE_ERROR:e&&Number(t.balance)<Number(t.amount)?cd.INSUFFICIENT_BALANCE:n.statusName===\"transactionPending\"?cd.CONFIRM_IN_WALLET:n.statusName===\"transactionApproved\"?cd.SWAP_IN_PROGRESS:r.loading||t.loading?cd.FETCHING_QUOTE:n.statusData.isMissingRequiredField?cd.INCOMPLETE_FIELD:\"\"}function die({className:e}){let{address:t,to:n,from:r,lifecycleStatus:o}=zy(),i=sht({address:t,from:r,lifecycleStatus:o,to:n});return(0,cht.jsx)(\"div\",{className:ve(\"flex h-7 pt-2\",ut.label2,ft.foregroundMuted,e),\"data-testid\":\"ockSwapMessage_Message\",children:i})}f();var Zu=ge(We(),1);f();var $j=ge(We(),1);var n7=ge(at(),1),uht=ge(Ob(),1);function n$t(e,t,n,r){let o=0,i=0;switch(n){case\"top\":o=e.top-t.height-r;break;case\"bottom\":o=e.bottom+r;break;case\"left\":i=e.left-t.width-r;break;case\"right\":i=e.right+r;break}return{top:o,left:i}}function r$t(e,t,n,r,o){let{top:i,left:a}=n,c=i,l=a,d=o===\"top\"||o===\"bottom\";switch(r){case\"start\":d?l=e.left:c=e.top;break;case\"center\":d?l=e.left+(e.width-t.width)/2:c=e.top+(e.height-t.height)/2;break;case\"end\":d?l=e.right-t.width:c=e.bottom-t.height;break}return{top:c,left:l}}function lht({children:e,anchor:t,isOpen:n,onClose:r,position:o=\"bottom\",align:i=\"center\",offset:a=8,trigger:c,\"aria-label\":l,\"aria-labelledby\":d,\"aria-describedby\":m}){let h=(0,n7.useRef)(null),g=Va(),y=(0,n7.useCallback)(()=>{var x;if(!t||!h.current)return;let I=t.getBoundingClientRect(),C=(x=h.current)==null?void 0:x.getBoundingClientRect();if(!I||!C)return;let M=n$t(I,C,o,a),B=r$t(I,C,M,i,o);h.current.style.top=`${B.top}px`,h.current.style.left=`${B.left}px`},[t,o,a,i]);if((0,n7.useEffect)(()=>{if(n)return y(),window.addEventListener(\"resize\",y),window.addEventListener(\"scroll\",y),()=>{window.removeEventListener(\"resize\",y),window.removeEventListener(\"scroll\",y)}},[n,y]),!n)return null;let w=(0,$j.jsx)(\"div\",{className:ve(g,ep.dropdown,\"pointer-events-none fixed\"),\"data-portal-origin\":\"true\",children:(0,$j.jsx)(yx,{active:n,children:(0,$j.jsx)(gx,{onDismiss:r,triggerRef:c,children:(0,$j.jsx)(\"div\",{\"aria-label\":l,\"aria-labelledby\":d,\"aria-describedby\":m,className:ve(\"pointer-events-auto fixed\"),\"data-testid\":\"ockPopover\",ref:h,role:\"dialog\",children:e})})})});return(0,uht.createPortal)(w,document.body)}var YC=ge(at(),1);f();var dht=ge(We(),1);function fie({children:e,className:t}){return(0,dht.jsx)(\"p\",{className:ve(ut.legal,ft.foregroundMuted,\"mb-2\",t),children:e})}f();var Tx=ge(We(),1);var c4=ge(at(),1);var s4={AUTO:\"Auto\",CUSTOM:\"Custom\"};function pie({className:e}){let{sendAnalytics:t}=Ga(),{config:{maxSlippage:n},updateLifecycleStatus:r,lifecycleStatus:o}=zy(),[i,a]=(0,c4.useState)(o.statusData.maxSlippage===n?s4.AUTO:s4.CUSTOM),c=(0,c4.useCallback)((h,g)=>{t(vA.SlippageChanged,{previousSlippage:h,slippage:g})},[t]),l=(0,c4.useCallback)(h=>{let g=o.statusData.maxSlippage;h!==g&&(c(g,h),r({statusName:\"slippageChange\",statusData:{maxSlippage:h}}))},[o.statusData.maxSlippage,r,c]),d=(0,c4.useCallback)(h=>{let g=h.target.value,y=Number.parseFloat(g),w=!Number.isNaN(y);l(w?y:0)},[l]),m=(0,c4.useCallback)(h=>{a(h),h===s4.AUTO&&l(n)},[n,l]);return(0,Tx.jsxs)(\"section\",{className:ve(_n.default,xt.defaultActive,xt.radius,\"flex items-center gap-2 flex-grow max-sm:pt-4\",e),children:[(0,Tx.jsxs)(\"fieldset\",{className:ve(_n.default,xt.defaultActive,xt.radius,\"flex h-9 flex-1 rounded-xl border p-1\"),children:[(0,Tx.jsx)(\"legend\",{className:\"sr-only\",children:\"Slippage Setting\"}),Object.values(s4).map(h=>(0,Tx.jsx)(\"button\",{type:\"button\",className:ve(Xt.default,ft.foreground,ut.label1,xt.radiusInner,\"flex-1 px-3 py-1 transition-colors\",i===h?ve(_n.inverse,ft.primary,Xt.shadow):ft.foregroundMuted),onClick:()=>m(h),children:h},h))]}),(0,Tx.jsxs)(\"div\",{className:ve(_n.default,xt.defaultActive,xt.radius,\"flex h-9 w-24 items-center justify-between border px-2 py-1\",i===s4.AUTO&&\"opacity-50\"),children:[(0,Tx.jsx)(\"label\",{htmlFor:\"slippage-input\",className:\"sr-only\",children:\"Slippage Percentage\"}),(0,Tx.jsx)(\"input\",{id:\"slippage-input\",type:\"text\",value:o.statusData.maxSlippage,onChange:d,disabled:i===s4.AUTO,className:ve(ft.foreground,ut.label2,\"w-full flex-grow bg-transparent pl-1 font-normal leading-6 focus:outline-none\",i===s4.AUTO&&\"cursor-not-allowed\")}),(0,Tx.jsx)(\"span\",{className:ve(_n.default,ft.foreground,ut.label2,\"ml-1 flex-shrink-0 font-normal leading-6\"),children:\"%\"})]})]})}f();var fht=ge(We(),1);function pht({children:e,className:t}){return(0,fht.jsx)(\"div\",{className:ve(_n.default,xt.radius,xt.lineDefault,\"right-0 z-10 w-[21.75rem] px-3 py-3\",t),\"data-testid\":\"ockSwapSettingsLayout_container\",children:e})}f();var MA=ge(We(),1);function hht({children:e,className:t}){return(0,MA.jsxs)(\"div\",{className:ve(_n.default,xt.default,Xt.shadow,\"right-0 z-10 h-full w-full rounded-t-lg px-3 pt-2 pb-3\",t),\"data-testid\":\"ockSwapSettingsLayout_container\",children:[(0,MA.jsx)(\"div\",{className:ve(_n.alternate,\"mx-auto mb-2 h-1 w-4 rounded-[6.25rem]\")}),(0,MA.jsx)(\"div\",{className:\"mb-4 flex items-center justify-center\",children:(0,MA.jsx)(\"h2\",{className:ve(ft.foreground,\"font-bold text-sm\"),children:\"Settings\"})}),(0,MA.jsx)(\"div\",{className:\"flex flex-col\",children:e}),(0,MA.jsx)(\"div\",{className:\"mt-4 flex justify-center\",children:(0,MA.jsx)(\"div\",{className:ve(_n.inverse,\"h-1 w-28 shrink-0 rounded-[0.43931rem]\")})})]})}f();var mht=ge(We(),1);function hie({children:e,className:t}){return(0,mht.jsx)(\"h3\",{className:ve(ut.headline,ft.foreground,\"mb-2 text-base\",t),children:e})}var o$t=(0,Zu.jsxs)(Zu.Fragment,{children:[(0,Zu.jsx)(hie,{children:\"Max. slippage\"}),(0,Zu.jsx)(fie,{children:\"Your swap will revert if the prices change by more than the selected percentage.\"}),(0,Zu.jsx)(pie,{})]});function mie({children:e=o$t,className:t,icon:n=\"swapSettings\",text:r=\"\"}){let o=moe(),[i,a]=(0,YC.useState)(!1),c=(0,YC.useRef)(null),l=(0,YC.useRef)(null),d=(0,YC.useCallback)(g=>{g.stopPropagation(),a(y=>!y)},[]),m=(0,YC.useCallback)(()=>{a(!1)},[]),h=_A({icon:n});return(0,Zu.jsxs)(\"div\",{className:ve(\"flex w-auto items-center justify-end space-x-1 pb-4\",t),\"data-testid\":\"ockSwapSettings_Settings\",children:[r&&(0,Zu.jsx)(\"span\",{className:ve(ut.body),children:r}),(0,Zu.jsxs)(\"div\",{className:ve(\"relative\",i&&\"group\"),ref:c,children:[(0,Zu.jsx)(\"button\",{ref:l,type:\"button\",\"aria-label\":\"Toggle swap settings\",className:ve(Xt.default,\"rounded-full p-2 opacity-50 transition-opacity hover:opacity-100\"),onClick:d,children:(0,Zu.jsx)(\"div\",{className:\"h-[1.125rem] w-[1.125rem]\",children:h})}),o===\"sm\"?(0,Zu.jsx)(yx,{active:i,children:(0,Zu.jsx)(gx,{onDismiss:m,triggerRef:l,preventTriggerEvents:!0,children:(0,Zu.jsx)(\"div\",{className:ve(_n.inverse,Xt.shadow,\"fixed inset-x-0 z-50 transition-[bottom] duration-300 ease-in-out\",i?\"bottom-0\":\"-bottom-[12.875rem]\",\"h-[12.875rem] rounded-t-lg\",t),\"data-testid\":\"ockSwapSettingsSlippageLayoutBottomSheet_container\",children:(0,Zu.jsx)(hht,{className:t,children:e})})})}):(0,Zu.jsx)(lht,{isOpen:i,onClose:m,anchor:c.current,position:\"bottom\",align:\"end\",trigger:l,children:(0,Zu.jsx)(\"div\",{className:ve(xt.radius,_n.default,Xt.shadow,\"absolute right-0 z-10 mt-1 w-[21.75rem] rounded-lg\"),\"data-testid\":\"ockSwapSettingsDropdown\",children:(0,Zu.jsx)(pht,{children:e})})})]})]})}f();var Rx=ge(We(),1),bht=ge(at(),1);f();va();var i$t={[Cs.id]:\"https://sepolia.basescan.org\",[fr.id]:\"https://basescan.org\",[$se.id]:\"https://arbiscan.io\",[ece.id]:\"https://sepolia.arbiscan.io\",[fB.id]:\"https://optimistic.etherscan.io\",[mce.id]:\"https://sepolia-optimism.etherscan.io/\",[gce.id]:\"https://polygonscan.com\",[yce.id]:\"https://mumbai.polygonscan.com\",[ia.id]:\"https://etherscan.io\",[hB.id]:\"https://sepolia.etherscan.io\"};function Cx(e){return e?i$t[e]??\"https://basescan.org\":\"https://basescan.org\"}f();var u4=ge(We(),1),yht=ge(at(),1);f();function ght(e){return e===\"bottom-right\"?\"bottom-5 left-3/4\":e===\"top-right\"?\"top-[100px] left-3/4\":e===\"top-center\"?\"top-[100px] left-2/4\":\"bottom-5 left-2/4\"}var a$t={\"top-center\":\"animate-enterDown\",\"top-right\":\"animate-enterRight\",\"bottom-center\":\"animate-enterUp\",\"bottom-right\":\"animate-enterRight\"};function gie({className:e,durationMs:t=5e3,startTimeout:n=!0,position:r=\"bottom-center\",animation:o,isVisible:i,onClose:a,children:c}){let l=ght(r),d=o??a$t[r];return(0,yht.useEffect)(()=>{if(n){let m=setTimeout(()=>{i&&a()},t);return()=>{m&&clearTimeout(m)}}},[t,i,a,n]),i?(0,u4.jsx)(\"div\",{className:ve(\"-translate-x-2/4 fixed z-20\",l),\"data-testid\":\"ockToastContainer\",children:(0,u4.jsxs)(\"div\",{className:ve(_n.default,\"flex items-center justify-between rounded-lg\",\"p-2 shadow-[0px_8px_24px_0px_rgba(0,0,0,0.12)]\",d,e),\"data-testid\":\"ockToast\",children:[(0,u4.jsx)(\"div\",{className:\"flex items-center gap-4 p-2\",children:c}),(0,u4.jsx)(\"button\",{className:\"p-2\",onClick:a,type:\"button\",\"data-testid\":\"ockCloseButton\",children:(0,u4.jsx)(CD,{})})]})}):null}function yie({className:e,durationMs:t=5e3,position:n=\"bottom-center\"}){let{isToastVisible:r,setIsToastVisible:o,setTransactionHash:i,transactionHash:a}=zy(),{chainId:c}=xr(),l=Cx(c),d=(0,bht.useCallback)(()=>{o(!1),i(\"\")},[o,i]);return r?(0,Rx.jsxs)(gie,{position:n,className:e,durationMs:t,isVisible:r,onClose:d,children:[(0,Rx.jsx)(\"div\",{className:ve(ut.label2),children:(0,Rx.jsx)(fD,{})}),(0,Rx.jsx)(\"div\",{className:ve(ut.label1,\"text-nowrap\"),children:(0,Rx.jsx)(\"p\",{className:ft.foreground,children:\"Successful\"})}),(0,Rx.jsx)(\"div\",{className:ve(ut.label1,\"text-nowrap\"),children:(0,Rx.jsx)(\"a\",{href:`${l}/tx/${a}`,target:\"_blank\",rel:\"noreferrer\",children:(0,Rx.jsx)(\"span\",{className:ve(ut.label1,ft.primary),children:\"View transaction\"})})})]}):null}f();var vht=ge(We(),1);function bie({className:e}){let{handleToggle:t}=zy();return(0,vht.jsx)(\"button\",{type:\"button\",className:ve(Xt.alternate,xt.default,\"-my-6 relative mx-auto\",\"flex h-12 w-12 items-center justify-center\",\"rounded-lg border-4 border-solid\",e),\"data-testid\":\"SwapTokensButton\",onClick:t,children:FD})}function s$t({to:e,from:t,disabled:n}){return(0,ef.jsxs)(ef.Fragment,{children:[(0,ef.jsx)(mie,{}),(0,ef.jsx)(t7,{label:\"Sell\",swappableTokens:t,token:t?.[0],type:\"from\"}),(0,ef.jsx)(bie,{}),(0,ef.jsx)(t7,{label:\"Buy\",swappableTokens:e,token:e?.[0],type:\"to\"}),(0,ef.jsx)(lie,{disabled:n}),(0,ef.jsx)(die,{}),(0,ef.jsx)(yie,{})]})}function wht({children:e,config:t={maxSlippage:3},className:n,disabled:r,to:o,from:i,experimental:a={useAggregator:!1},isSponsored:c=!1,onError:l,onStatus:d,onSuccess:m,title:h=\"Swap\",headerLeftContent:g}){let y=Va();return jD()?(0,ef.jsx)(iht,{config:t,experimental:a,isSponsored:c,onError:l,onStatus:d,onSuccess:m,children:(0,ef.jsxs)(\"div\",{className:ve(y,_n.default,xt.radius,ft.foreground,\"relative flex w-full max-w-[500px] flex-col px-6 pt-6 pb-4\",n),\"data-testid\":\"ockSwap_Container\",children:[(0,ef.jsxs)(\"div\",{className:\"absolute flex w-1/2 items-center justify-between\",children:[g,(0,ef.jsx)(\"h3\",{className:ve(ut.title3,\"text-center\"),\"data-testid\":\"ockSwap_Title\",children:h})]}),e??(0,ef.jsx)(s$t,{to:o,from:i,disabled:r})]})}):null}var EAe=ge(at(),1);function AAe({config:e,classNames:t,disabled:n,experimental:r,from:o,isSponsored:i=!1,onError:a,onStatus:c,onSuccess:l,title:d,to:m}){var h,g,y,w;let{setActiveFeature:x,isActiveFeatureClosing:I,setIsActiveFeatureClosing:C}=Di(),M=(0,EAe.useCallback)(()=>{C(!0)},[C]),B=(0,EAe.useCallback)(()=>{I&&(x(null),C(!1))},[I,x,C]),z=(0,rp.jsx)(Uy,{ariaLabel:\"Back button\",onClick:M,children:(0,rp.jsx)(\"div\",{className:\"p-2\",children:XD})});return(0,rp.jsx)(\"div\",{className:ve(\"h-full\",xt.radius,I?\"fade-out slide-out-to-right-5 animate-out fill-mode-forwards ease-in-out\":\"fade-in slide-in-from-right-5 linear animate-in duration-150\",\"relative w-88 h-120\",t?.container),onAnimationEnd:B,\"data-testid\":\"ockWalletAdvancedSwap\",children:(0,rp.jsxs)(wht,{className:ve(\"w-full px-4 pt-3 pb-4\",t?.container),onStatus:c,onSuccess:l,onError:a,config:e,isSponsored:i,title:d,experimental:r,headerLeftContent:z,children:[(0,rp.jsxs)(mie,{className:ve(\"w-auto\",(h=t?.settings)==null?void 0:h.container),children:[(0,rp.jsx)(hie,{className:(g=t?.settings)==null?void 0:g.slippageTitle,children:\"Max. slippage\"}),(0,rp.jsx)(fie,{className:(y=t?.settings)==null?void 0:y.slippageDescription,children:\"Your swap will revert if the prices change by more than the selected percentage.\"}),(0,rp.jsx)(pie,{className:(w=t?.settings)==null?void 0:w.slippageInput})]}),(0,rp.jsx)(t7,{label:\"Sell\",swappableTokens:o,type:\"from\",className:t?.fromAmountInput}),(0,rp.jsx)(bie,{className:t?.toggleButton}),(0,rp.jsx)(t7,{label:\"Buy\",swappableTokens:m,type:\"to\",className:t?.toAmountInput}),(0,rp.jsx)(lie,{disabled:n,className:t?.swapButton}),(0,rp.jsx)(die,{className:t?.message}),(0,rp.jsx)(yie,{className:t?.toast})]})})}f();var su=ge(We(),1);f();f();var eW=ge(We(),1);f();var vie=ge(We(),1);f();var Tht=ge(We(),1);f();f();async function xht(e,t=Jo.API){let n=c$t(e);if(\"error\"in n)return n;try{let r=await HC(Ydt,[n],t);return r.error?{code:String(r.error.code),error:\"Error fetching price quote\",message:r.error.message}:r.result}catch(r){return{code:\"UNCAUGHT_PRICE_QUOTE_ERROR\",error:\"Something went wrong\",message:`Error fetching price quote: ${r}`}}}function c$t(e){let{tokens:t}=e;return!t||t.length===0?{code:\"INVALID_INPUT\",error:\"Invalid input: tokens must be an array of at least one token\",message:\"Tokens must be an array of at least one token\"}:e}function Eht(e,t=Jo.Hook){let{token:n,queryOptions:r}=e;return Hp({queryKey:[\"getPriceQuote\",n],queryFn:async()=>{if(!n)return{priceQuotes:[]};let o=await xht({tokens:[n]},t);if(zC(o))throw o;return o},...$f,...r})}var gl=ge(at(),1);gn();f();var hqr=ge(We(),1),DA=ge(at(),1);va();f();f();var Aht=e=>e.endsWith(\".base.eth\")||e.endsWith(\".basetest.eth\")?!1:!!(e.endsWith(\".eth\")||e.endsWith(\".test.eth\"));gn();va();async function Sht(e){if(Hn(e,{strict:!1}))return e;if(qI(e)||Aht(e)){let t=await KI({name:e,chain:qI(e)?fr:ia});if(t)return t}return null}function _ht(){let[e,t]=(0,DA.useState)({phase:\"input\",input:\"\",address:null,displayValue:null}),n=(0,DA.useCallback)(a=>{t(c=>({...c,input:a}))},[]),r=(0,DA.useCallback)(a=>{Sht(a).then(c=>{if(!c){t({phase:\"input\",input:a,address:null,displayValue:null});return}t({phase:\"validated\",input:a,address:c,displayValue:null})})},[]),o=(0,DA.useCallback)(async a=>{t(a)},[]),i=(0,DA.useCallback)(()=>{e.phase===\"selected\"?t({phase:\"validated\",input:e.input,address:e.address,displayValue:null}):t({...e,displayValue:null})},[e]);return(0,DA.useEffect)(()=>{e.phase===\"selected\"&&ij({address:e.address,chain:fr}).then(a=>{t({phase:e.phase,input:e.input,address:e.address,displayValue:a??JI(e.address)})}).catch(()=>t({phase:e.phase,input:e.input,address:e.address,displayValue:JI(e.address)}))},[e.phase,e.address,e.input]),{recipientState:e,updateRecipientInput:n,validateRecipientInput:r,selectRecipient:o,deselectRecipient:i}}var Cht={},Rht=(0,gl.createContext)(Cht);function op(){let e=(0,gl.useContext)(Rht);if(e===Cht)throw new Error(\"useSendContext must be used within a SendProvider\");return e}function Iht({children:e}){var t;let[n,r]=(0,gl.useState)(null),[o,i]=(0,gl.useState)(\"crypto\"),[a,c]=(0,gl.useState)(null),[l,d]=(0,gl.useState)(null),{recipientState:m,updateRecipientInput:h,validateRecipientInput:g,selectRecipient:y,deselectRecipient:w}=_ht(),[x,I]=ND({statusName:\"init\",statusData:{isMissingRequiredField:!0}}),C=(0,gl.useMemo)(()=>n?o===\"fiat\"?Number(a)<=n.fiatBalance:Number(l)<=Number(ba(BigInt(n.cryptoBalance),n.decimals)):!1,[o,n,l,a]),{address:M}=xr(),{data:B}=hh({address:M},Jo.Wallet),z=(t=B?.tokenBalances)==null?void 0:t.find(O=>O.address===\"\"),G=z?Number(ba(BigInt(z.cryptoBalance),z.decimals)):0,J=G!==void 0;(0,gl.useEffect)(()=>{if(!G||G===0){I({statusName:\"fundingWallet\",statusData:{isMissingRequiredField:!0}});return}I({statusName:\"selectingAddress\",statusData:{isMissingRequiredField:!0}})},[G,I]);let{isLoading:ne,data:ie}=Eht({token:n?.address===\"\"?\"ETH\":n?.address},Jo.Wallet),ae=(0,gl.useMemo)(()=>!ie||zC(ie)||ie.priceQuotes.length===0?0:1/Number(ie.priceQuotes[0].price),[ie]),te=(0,gl.useCallback)(O=>{r(O),I({statusName:\"amountChange\",statusData:{isMissingRequiredField:!0,sufficientBalance:!1}})},[I]),Z=(0,gl.useCallback)(()=>{r(null),c(null),d(null),I({statusName:\"selectingToken\",statusData:{isMissingRequiredField:!0}})},[I]),X=(0,gl.useCallback)(O=>{c(O),I({statusName:\"amountChange\",statusData:{isMissingRequiredField:!0,sufficientBalance:C}})},[I,C]),F=(0,gl.useCallback)(O=>{let U=M1(O,8);d(U),I({statusName:\"amountChange\",statusData:{isMissingRequiredField:!0,sufficientBalance:C}})},[I,C]),R=ad({isInitialized:J,lifecycleStatus:x,updateLifecycleStatus:I,ethBalance:G,recipientState:m,updateRecipientInput:h,validateRecipientInput:g,selectRecipient:y,deselectRecipient:w,selectedToken:n,handleTokenSelection:te,handleResetTokenSelection:Z,fiatAmount:a,handleFiatAmountChange:X,cryptoAmount:l,handleCryptoAmountChange:F,exchangeRate:ae,exchangeRateLoading:ne,selectedInputType:o,setSelectedInputType:i});return(0,Tht.jsx)(Rht.Provider,{value:R,children:e})}var u$t=(0,vie.jsx)(\"div\",{\"data-testid\":\"ockSendAmountInputTypeSwitch_ErrorDisplay\",className:ve(ut.caption,ft.foregroundMuted,\"h-[1.625rem]\"),children:\"Exchange rate unavailable\"});function kht({errorDisplay:e,className:t}){let{selectedToken:n,fiatAmount:r,cryptoAmount:o,exchangeRate:i,exchangeRateLoading:a,selectedInputType:c,setSelectedInputType:l}=op();return a?(0,vie.jsx)(xx,{className:\"h-[1.625rem]\"}):i?(0,vie.jsx)(Roe,{asset:n?.symbol??\"\",fiatAmount:r??\"\",cryptoAmount:o??\"\",exchangeRate:i,exchangeRateLoading:!1,currency:\"USD\",selectedInputType:c,setSelectedInputType:l,className:t}):e||u$t}function Oht({className:e,textClassName:t}){let{selectedToken:n,cryptoAmount:r,handleCryptoAmountChange:o,fiatAmount:i,handleFiatAmountChange:a,selectedInputType:c,exchangeRate:l}=op();return(0,eW.jsxs)(\"div\",{className:\"flex h-full w-full flex-col justify-center\",children:[(0,eW.jsx)(Toe,{fiatAmount:i??\"\",cryptoAmount:r??\"\",asset:n?.symbol??\"\",currency:\"USD\",selectedInputType:c,setFiatAmount:a,setCryptoAmount:o,exchangeRate:String(l),className:e,textClassName:t}),(0,eW.jsx)(kht,{})]})}f();var JC=ge(We(),1);f();var Ix=ge(We(),1);f();var SAe=ge(We(),1),ZC=ge(at(),1);f();function Nht({errorMessage:e,hasReceipt:t,isInProgress:n,transactionHash:r,transactionId:o}){let i=o||r;return t||e?!1:!!(n||i)}f();var zht=ge(We(),1),Sa=ge(at(),1);f();function Pht({setLifecycleStatus:e,transactionId:t}){var n,r;try{let{data:o}=CL({id:t,query:{refetchInterval:a=>{var c;return Jj((c=a.state.data)==null?void 0:c.status)===\"success\"?!1:1e3},enabled:!!t}}),i=(r=(n=o?.receipts)==null?void 0:n[0])==null?void 0:r.transactionHash;return{status:o?.status,transactionHash:i}}catch(o){return e({statusName:\"error\",statusData:{code:\"TmUCSh01\",error:JSON.stringify(o),message:\"\"}}),{status:\"error\",transactionHash:void 0}}}f();function Mht({setLifecycleStatus:e,transactionHashList:t}){let{status:n,sendTransactionAsync:r,data:o,reset:i}=OL({mutation:{onError:a=>{let c=KC(a)?\"Request denied.\":OA;e({statusName:\"error\",statusData:{code:\"TmUSCh01\",error:a.message,message:c}})},onSuccess:a=>{e({statusName:\"transactionLegacyExecuted\",statusData:{transactionHashList:[...t,a]}})}}});return{status:n,sendCallAsync:r,data:o,reset:i}}f();function Dht({setLifecycleStatus:e,setTransactionId:t}){let{status:n,sendCallsAsync:r,data:o,reset:i}=kL({mutation:{onError:a=>{let c=KC(a)?\"Request denied.\":OA;e({statusName:\"error\",statusData:{code:\"TmUSCSh01\",error:a.message,message:c}})},onSuccess:a=>{t(uie(a))}}});return{status:n,sendCallsAsync:r,data:o,reset:i}}f();var Uht=ge(at(),1);f();f();function wie(e){return\"abi\"in e}var Bht=async({capabilities:e,sendCallsAsync:t,transactions:n})=>{if(!n)return;let r=n?.map(o=>{if(wie(o)){let{address:i,...a}=o;return{...a,to:i}}return o});await t({calls:r,capabilities:e})};f();gn();var Lht=async({config:e,sendCallAsync:t,transactions:n})=>{let r=n?.map(o=>wie(o)?{data:xn({abi:o?.abi,functionName:o?.functionName,args:o?.args}),to:o?.address}:o);for(let o of r){let i=await t(o);i&&await Vg(e,{hash:i,confirmations:1})}};var Fht=({capabilities:e,sendCallAsync:t,sendCallsAsync:n,walletCapabilities:r})=>{let o=wr();return(0,Uht.useCallback)(async i=>{var a;if(!i)return;let c=await Promise.resolve(i);(a=r[UI.AtomicBatch])!=null&&a.supported?await Bht({capabilities:e,sendCallsAsync:n,transactions:c}):await Lht({config:o,sendCallAsync:t,transactions:c})},[n,t,e,r,o])};f();var Hht=e=>{var t;return((t=e?.paymasterService)==null?void 0:t.url)||null};var jht={},Wht=(0,Sa.createContext)(jht);function ip(){let e=(0,Sa.useContext)(Wht);if(e===jht)throw new Error(\"useTransactionContext must be used within a Transaction component\");return e}function Vht({calls:e,capabilities:t,chainId:n,children:r,contracts:o,isSponsored:i,onError:a,onStatus:c,onSuccess:l,resetAfter:d}){let m=xr(),h=wr(),{config:{paymaster:g}={paymaster:void 0}}=Fo(),[y,w]=(0,Sa.useState)(\"\"),[x,I]=(0,Sa.useState)(\"\"),[C,M]=(0,Sa.useState)(!1),[B,z]=(0,Sa.useState)({statusName:\"init\",statusData:null}),[G,J]=(0,Sa.useState)(\"\"),[ne,ie]=(0,Sa.useState)(),[ae,te]=(0,Sa.useState)([]),Z=e||o,X=kD({chainId:n}),{switchChainAsync:F}=R3();if(!o&&!e)throw new Error(\"Transaction: calls or contracts must be provided as a prop to the Transaction component.\");if(e&&o)throw new Error(\"Transaction: Only one of contracts or calls can be provided as a prop to the Transaction component.\");let{status:R,sendCallsAsync:O,reset:U}=Dht({setLifecycleStatus:z,setTransactionId:J}),{status:P,sendCallAsync:L,data:W,reset:q}=Mht({setLifecycleStatus:z,transactionHashList:ae}),H=(0,Sa.useMemo)(()=>{var qe;return(qe=X[UI.AtomicBatch])!=null&&qe.supported?R:P},[P,R,X]),k=(0,Sa.useMemo)(()=>i&&g?{paymasterService:{url:g},...t}:t,[i,g,t]),V=Fht({capabilities:k,sendCallAsync:L,sendCallsAsync:O,walletCapabilities:X}),{transactionHash:oe,status:se}=Pht({setLifecycleStatus:z,transactionId:G}),{data:ue}=Lde({hash:W||oe}),{sendAnalytics:he}=Ga(),be=(0,Sa.useCallback)((qe,Xe)=>{he(qe,Xe)},[he]);(0,Sa.useEffect)(()=>{w(\"\"),B.statusName===\"error\"&&(w(B.statusData.message),I(B.statusData.code),a?.(B.statusData)),B.statusName===\"transactionLegacyExecuted\"&&te(B.statusData.transactionHashList),B.statusName===\"success\"&&l?.({transactionReceipts:B.statusData.transactionReceipts}),c?.(B)},[a,c,l,B,B.statusData,B.statusName]),(0,Sa.useEffect)(()=>{H===\"pending\"&&z({statusName:\"transactionPending\",statusData:null})},[H]),(0,Sa.useEffect)(()=>{if(ue&&(z({statusName:\"success\",statusData:{transactionReceipts:[ue]}}),d)){let qe=setTimeout(()=>{w(\"\"),I(\"\"),M(!1),J(\"\"),te([]),ie(void 0),U(),q()},d);return()=>clearTimeout(qe)}},[ue,d,U,q]);let we=(0,Sa.useCallback)(async()=>{let qe=[];for(let Xe of ae)try{let rt=await Vg(h,{hash:Xe,chainId:n});qe.push(rt)}catch(rt){z({statusName:\"error\",statusData:{code:\"TmTPc01\",error:JSON.stringify(rt),message:OA}})}z({statusName:\"success\",statusData:{transactionReceipts:qe}})},[n,h,ae]);(0,Sa.useEffect)(()=>{!Z||ae.length!==ne||ne<2||we()},[Z,ne,ae,we]);let Ie=(0,Sa.useCallback)(async qe=>{qe&&m.chainId!==qe&&await F({chainId:qe})},[m.chainId,F]),_e=(0,Sa.useCallback)(async()=>{z({statusName:\"buildingTransaction\",statusData:null});try{be(ZM.TransactionInitiated,{address:m.address});let qe=await(typeof Z==\"function\"?Z():Promise.resolve(Z));return ie(qe?.length),qe}catch(qe){be(ZM.TransactionFailure,{error:qe.message,metadata:{code:x}}),z({statusName:\"error\",statusData:{code:\"TmTPc04\",error:JSON.stringify(qe),message:\"Error building transactions\"}});return}},[Z,be,m.address,x]),Ve=(0,Sa.useCallback)(async()=>{w(\"\"),M(!0);try{await Ie(n);let qe=await _e();await V(qe)}catch(qe){let Xe=KC(qe)?\"Request denied.\":OA;z({statusName:\"error\",statusData:{code:\"TmTPc03\",error:JSON.stringify(qe),message:Xe}})}},[_e,n,V,Ie]),Et=ad({chainId:n,errorCode:x,errorMessage:y,isLoading:se===\"PENDING\",isToastVisible:C,lifecycleStatus:B,onSubmit:Ve,paymasterUrl:Hht(k),receipt:ue,setIsToastVisible:M,setLifecycleStatus:z,setTransactionId:J,transactions:Z,transactionId:G,transactionHash:W||oe,transactionCount:ne});return(0,Sa.useEffect)(()=>{ue&&(ue.status===\"success\"?be(ZM.TransactionSuccess,{paymaster:!!(i&&g),address:m.address,transactionHash:ue.transactionHash}):be(ZM.TransactionFailure,{error:\"Transaction failed\",metadata:{code:x}}))},[ue,be,i,g,m.address,x]),(0,zht.jsx)(Wht.Provider,{value:Et,children:r})}function xie({className:e,disabled:t=!1,text:n=\"Transact\",errorOverride:r,successOverride:o,pendingOverride:i}){var a,c;let{chainId:l,errorMessage:d,isLoading:m,lifecycleStatus:h,onSubmit:g,receipt:y,transactions:w,transactionCount:x,transactionHash:I,transactionId:C}=ip(),{address:M}=xr(),B=l??Bd(),z=h.statusName===\"transactionLegacyExecuted\"&&x!==((c=(a=h?.statusData)==null?void 0:a.transactionHashList)==null?void 0:c.length),G=h.statusName===\"buildingTransaction\"||h.statusName===\"transactionPending\"||z||m,ie=!y&&(G||(!w||!M)||(!!C||!!I)||t),ae=Nht({errorMessage:d,hasReceipt:!!y,isInProgress:G,transactionHash:I,transactionId:C}),{errorText:te,successText:Z,pendingContent:X}=(0,ZC.useMemo)(()=>{let L=o?.text??\"View transaction\",W=r?.text??\"Try again\",q=i?.text??(0,SAe.jsx)(M0,{});return{successText:L,errorText:W,pendingContent:q}},[r,i,o]),F=(0,ZC.useCallback)(()=>{if(y&&C&&I&&l&&M){let W=new URL(\"https://wallet.coinbase.com/assets/transactions\");return W.searchParams.set(\"contentParams[txHash]\",I),W.searchParams.set(\"contentParams[chainId]\",JSON.stringify(l)),W.searchParams.set(\"contentParams[fromAddress]\",M),window.open(W,\"_blank\",\"noopener,noreferrer\")}let L=Cx(B);return window.open(`${L}/tx/${I}`,\"_blank\",\"noopener,noreferrer\")},[M,l,y,C,I,B]),R=(0,ZC.useCallback)(()=>{var L;if(o?.onClick&&y)return(L=o?.onClick)==null?void 0:L.call(o,y);F()},[F,o,y]),O=(0,ZC.useCallback)(()=>{var L;return r?.onClick?(L=r?.onClick)==null?void 0:L.call(r):g()},[r,g]),U=(0,ZC.useMemo)(()=>y?Z:d?te:ae?X:n,[ae,d,te,n,X,y,Z]),P=(0,ZC.useCallback)(()=>{y?R():d?O():g()},[d,O,g,y,R]);return(0,SAe.jsx)(\"button\",{className:ve(Xt.primary,xt.radius,\"w-full rounded-xl\",\"px-4 py-3 font-medium leading-6\",ie&&Xt.disabled,ut.headline,ft.inverse,e),onClick:P,type:\"button\",disabled:ie,\"data-testid\":\"ockTransactionButton_Button\",children:U})}f();var BA=ge(We(),1),emt=ge(at(),1);f();var Kht=ge(We(),1);f();var l4=ge(We(),1),Ght=ge(at(),1);function qht(){let{chainId:e,errorMessage:t,onSubmit:n,transactionHash:r,transactionId:o}=ip(),i=e??Bd(),{showCallsStatus:a}=NL();return(0,Ght.useMemo)(()=>{let c=Cx(i),l=null;return r&&(l=(0,l4.jsx)(\"a\",{href:`${c}/tx/${r}`,target:\"_blank\",rel:\"noreferrer\",children:(0,l4.jsx)(\"span\",{className:ve(ut.label1,ft.primary),children:\"View transaction\"})})),o&&(l=(0,l4.jsx)(\"button\",{onClick:()=>a({id:o}),type:\"button\",children:(0,l4.jsx)(\"span\",{className:ve(ut.label1,ft.primary),children:\"View transaction\"})})),t&&(l=(0,l4.jsx)(\"button\",{type:\"button\",onClick:n,children:(0,l4.jsx)(\"span\",{className:ve(ut.label1,ft.primary),children:\"Try again\"})})),{actionElement:l}},[i,t,n,a,r,o])}function Yht({className:e}){let{actionElement:t}=qht();return(0,Kht.jsx)(\"div\",{className:ve(ut.label1,\"text-nowrap\",e),children:t})}f();var tW=ge(We(),1),Zht=ge(at(),1);function Qht({className:e}){let{errorMessage:t,isLoading:n,receipt:r,transactionHash:o,transactionId:i}=ip(),a=n||!!i||!!o,c=(0,Zht.useMemo)(()=>r?(0,tW.jsx)(fD,{}):t?(0,tW.jsx)(zre,{}):a?(0,tW.jsx)(M0,{className:\"px-1.5 py-1.5\"}):null,[a,t,r]);return c?(0,tW.jsx)(\"div\",{className:ve(ut.label2,e),children:c}):null}f();var _Ae=ge(We(),1);f();var Jht=ge(at(),1);function Xht(){let{errorMessage:e,isLoading:t,lifecycleStatus:n,receipt:r,transactionHash:o,transactionId:i}=ip(),a=t||!!i||!!o,c=n.statusName===\"buildingTransaction\";return(0,Jht.useMemo)(()=>{let l=\"\",d=ft.foregroundMuted;return c&&(l=\"Building transaction\"),a&&(l=\"Transaction in progress\"),r&&(l=\"Successful\"),e&&(l=\"Something went wrong\",d=ft.error),{label:l,labelClassName:d}},[e,c,a,r])}function $ht({className:e}){let{label:t}=Xht();return(0,_Ae.jsx)(\"div\",{className:ve(ut.label1,\"text-nowrap\",e),children:(0,_Ae.jsx)(\"p\",{className:ft.foreground,children:t})})}function tmt({children:e,className:t,durationMs:n=5e3,position:r=\"bottom-center\"}){let{errorMessage:o,isLoading:i,isToastVisible:a,receipt:c,setIsToastVisible:l,transactionHash:d,transactionId:m}=ip(),h=(0,emt.useCallback)(()=>{l(!1)},[l]);return!a||!c&&!i&&!d&&!o&&!m?null:(0,BA.jsx)(gie,{position:r,className:t,durationMs:n,isVisible:a,onClose:h,startTimeout:!!c||!!o,children:e??(0,BA.jsxs)(BA.Fragment,{children:[(0,BA.jsx)(Qht,{}),(0,BA.jsx)($ht,{}),(0,BA.jsx)(Yht,{})]})})}function nmt({calls:e,capabilities:t,chainId:n,className:r,children:o,contracts:i,disabled:a=!1,isSponsored:c,onError:l,onStatus:d,onSuccess:m,resetAfter:h}){let g=jD(),y=Va(),{chain:w}=Fo();if(!g)return(0,Ix.jsx)(\"div\",{className:ve(y,\"flex w-full flex-col gap-2\",r)});let x=n||w.id;return(0,Ix.jsx)(Vht,{calls:e,capabilities:t,chainId:x,contracts:i,isSponsored:c,onError:l,onStatus:d,onSuccess:m,resetAfter:h,children:(0,Ix.jsx)(\"div\",{className:ve(y,\"flex w-full flex-col gap-2\",r),children:o??(0,Ix.jsxs)(Ix.Fragment,{children:[(0,Ix.jsx)(xie,{disabled:a}),(0,Ix.jsx)(tmt,{})]})})})}f();var QC=ge(We(),1);f();var imt=ge(We(),1);f();var nW=ge(We(),1),rmt=ge(at(),1);function omt(){let{chainId:e,receipt:t,transactionHash:n,transactionId:r}=ip(),o=e??Bd(),{showCallsStatus:i}=NL();return(0,rmt.useMemo)(()=>{let a=Cx(o),c=null;return n&&(c=(0,nW.jsx)(\"a\",{href:`${a}/tx/${n}`,target:\"_blank\",rel:\"noreferrer\",children:(0,nW.jsx)(\"span\",{className:ve(ut.label1,ft.primary),children:\"View transaction\"})})),r&&(c=(0,nW.jsx)(\"button\",{onClick:()=>i({id:r}),type:\"button\",children:(0,nW.jsx)(\"span\",{className:ve(ut.label1,ft.primary),children:\"View transaction\"})})),t&&(c=null),{actionElement:c}},[o,t,i,n,r])}function Eie({className:e}){let{actionElement:t}=omt();return(0,imt.jsx)(\"div\",{className:ve(ut.label2,\"min-w-[70px]\",e),children:t})}f();var TAe=ge(We(),1);f();var amt=ge(at(),1);function smt(){let{errorMessage:e,isLoading:t,receipt:n,lifecycleStatus:r,transactionHash:o,transactionId:i}=ip(),a=t||!!i||!!o,c=r.statusName===\"transactionPending\",l=r.statusName===\"buildingTransaction\";return(0,amt.useMemo)(()=>{let d=\"\",m=ft.foregroundMuted;return l&&(d=\"Building transaction...\"),c&&(d=\"Confirm in wallet.\"),a&&(d=\"Transaction in progress...\"),n&&(d=\"Successful\"),e&&(d=e,m=ft.error),{label:d,labelClassName:m}},[e,l,a,c,n])}function Aie({className:e}){let{label:t,labelClassName:n}=smt();return(0,TAe.jsx)(\"div\",{className:ve(ut.label2,e),children:(0,TAe.jsx)(\"p\",{className:n,children:t})})}function cmt({children:e,className:t}){return(0,QC.jsx)(\"div\",{className:ve(\"flex justify-between\",t),children:e??(0,QC.jsxs)(QC.Fragment,{children:[(0,QC.jsx)(Aie,{}),(0,QC.jsx)(Eie,{})]})})}var CAe=ge(at(),1);gn();va();f();function umt({transactionId:e,transactionHash:t,senderChain:n,address:r,onComplete:o}){return i=>{let a=n?.id??Bd();if(i&&e&&t&&n?.id&&r){let c=new URL(\"https://wallet.coinbase.com/assets/transactions\");c.searchParams.set(\"contentParams[txHash]\",t),c.searchParams.set(\"contentParams[chainId]\",JSON.stringify(n?.id)),c.searchParams.set(\"contentParams[fromAddress]\",r),window.open(c,\"_blank\",\"noopener,noreferrer\")}else{let c=Cx(a);window.open(`${c}/tx/${t}`,\"_blank\",\"noopener,noreferrer\")}o?.()}}f();f();gn();function lmt({recipientAddress:e,tokenAddress:t,amount:n}){if(!t)return{to:e,data:\"0x\",value:n};try{let r=xn({abi:rE,functionName:\"transfer\",args:[e,n]});return{to:t,data:r}}catch(r){return{code:\"AmBSeTx01\",error:r instanceof Error?r.message:String(r),message:\"Could not build transfer transaction\"}}}gn();function dmt({recipientAddress:e,token:t,amount:n}){if(!e||!t||!t.decimals||!n)return{calldata:null,error:{code:\"SemBSeTx01\",error:\"Invalid transaction parameters\",message:\"Could not build send transaction\"}};if(!t.address&&t.symbol!==\"ETH\")return{calldata:null,error:{code:\"SemBSeTx02\",error:\"No token address provided for non-ETH token\",message:\"Could not build send transaction\"}};try{let r=G_(n,t.decimals),o=lmt({recipientAddress:e,tokenAddress:t.address||null,amount:r});return zC(o)?{calldata:null,error:o}:{calldata:o,error:null}}catch(r){return{calldata:null,error:{code:\"SemBSeTx03\",error:r instanceof Error?r.message:\"Unknown error\",message:\"Could not build send transaction\"}}}}function fmt(){let{chain:e,isSponsored:t}=Di(),{recipientState:n,cryptoAmount:r,selectedToken:o,updateLifecycleStatus:i}=op(),{calldata:a,error:c}=dmt({recipientAddress:n.address,token:o,amount:r}),l=!!c||!f$t({inputAmount:r??\"\",balance:BigInt(o?.cryptoBalance??0),selectedToken:o??void 0}),d=d$t(r,o),m=(0,CAe.useCallback)(h=>{[\"transactionPending\",\"transactionLegacyExecuted\",\"success\",\"error\"].includes(h.statusName)&&i(h)},[i]);return(0,JC.jsxs)(nmt,{isSponsored:t,chainId:e?.id??fr.id,calls:a?[a]:[],onStatus:m,children:[(0,JC.jsx)(l$t,{label:d,senderChain:e,disabled:l}),(0,JC.jsxs)(cmt,{children:[(0,JC.jsx)(Aie,{}),(0,JC.jsx)(Eie,{})]})]})}function l$t({label:e,senderChain:t,disabled:n}){let{address:r,setActiveFeature:o}=Di(),{transactionHash:i,transactionId:a}=ip(),c=(0,CAe.useCallback)(()=>{o(null)},[o]),l={onClick:umt({transactionId:a,transactionHash:i,senderChain:t??void 0,address:r??void 0,onComplete:c})};return(0,JC.jsx)(xie,{text:e,successOverride:l,disabled:n})}function d$t(e,t){return e?t?G_(e,t.decimals)>t.cryptoBalance?\"Insufficient balance\":\"Continue\":\"Select token\":\"Input amount\"}function f$t({inputAmount:e,balance:t,selectedToken:n}){if(!e||!n||!t)return!1;let r=G_(e,n.decimals);return r>0n&&r<=t}f();var kx=ge(We(),1),YZr=ge(at(),1);var lQr=ge(Ob(),1);function pmt({onError:e,onStatus:t,onSuccess:n,classNames:r}){return(0,kx.jsxs)(\"div\",{className:ve(\"flex flex-col items-center justify-between\",r?.container),\"data-testid\":\"ockSendFundWallet\",children:[(0,kx.jsx)(\"div\",{className:ve(ut.label2,ft.foregroundMuted,r?.subtitle),children:\"Insufficient ETH balance to send transaction. Fund your wallet to continue.\"}),(0,kx.jsxs)(DEe,{assetSymbol:\"ETH\",country:\"US\",currency:\"USD\",presetAmountInputs:[\"2\",\"5\",\"10\"],onError:e,onStatus:t,onSuccess:n,className:ve(\"mt-3 w-88 border-none py-0\",r?.fundCard),children:[(0,kx.jsx)(bj,{}),(0,kx.jsx)(xj,{}),(0,kx.jsx)(Sj,{}),(0,kx.jsx)(Ej,{}),(0,kx.jsx)(Tj,{})]})]})}f();var LA=ge(We(),1);var RAe=ge(at(),1);function hmt({label:e=\"Send\",classNames:t}){let{setActiveFeature:n}=Di(),{recipientState:r,selectedToken:o,handleResetTokenSelection:i,deselectRecipient:a}=op(),c=(0,RAe.useCallback)(()=>{o?i():r.address&&a()},[r.address,o,i,a]),l=(0,RAe.useCallback)(()=>{n(null)},[n]);return(0,LA.jsxs)(\"div\",{\"data-testid\":\"ockSendHeader\",className:ve(\"mb-4 grid grid-cols-3 items-center\",t?.container),children:[(0,LA.jsx)(\"div\",{\"data-testid\":\"ockSendHeader_back\",className:\"justify-self-start\",children:r.phase===\"selected\"&&(0,LA.jsx)(Uy,{onClick:c,className:ve(\"h-7 w-7 scale-110 p-2\",t?.back),children:XD})}),(0,LA.jsx)(\"div\",{\"data-testid\":\"ockSendHeader_label\",className:ve(ut.headline,\"justify-self-center\",t?.label),children:e}),(0,LA.jsx)(\"div\",{\"data-testid\":\"ockSendHeader_close\",className:\"justify-self-end\",children:(0,LA.jsx)(Uy,{onClick:l,className:ve(\"h-7 w-7 scale-110 p-2\",t?.close),children:(0,LA.jsx)(CD,{})})})]})}f();var d4=ge(We(),1);var FQr=ge(at(),1);var WQr=ge(Ob(),1);f();var ud=ge(We(),1);var IAe=ge(at(),1);gn();function kAe({token:e,onClick:t,onActionPress:n,actionText:r=\"Max\",classNames:o,\"aria-label\":i,...a}){return t?(0,ud.jsxs)(\"div\",{className:\"relative\",children:[(0,ud.jsx)(\"button\",{type:\"button\",\"aria-label\":i??`${e.name} token balance`,onClick:()=>t(e),className:ve(\"flex w-full items-center justify-start gap-4 px-2 py-1\",o?.container),\"data-testid\":\"ockTokenBalanceButton\",children:(0,ud.jsx)(mmt,{token:e,classNames:o,onActionPress:n,...a})}),n&&(0,ud.jsx)(gmt,{actionText:r,onActionPress:n,className:o?.action})]}):(0,ud.jsxs)(\"div\",{className:ve(\"flex w-full items-center justify-start gap-4 px-2 py-1\",o?.container),\"data-testid\":\"ockTokenBalance\",children:[(0,ud.jsx)(mmt,{token:e,...a,classNames:o}),n&&(0,ud.jsx)(gmt,{actionText:r,onActionPress:n,className:o?.action})]})}function mmt({token:e,subtitle:t,showImage:n=!0,onActionPress:r,tokenSize:o=40,classNames:i}){var a;let c=(0,IAe.useMemo)(()=>TA({amount:e.fiatBalance,currency:\"USD\"}),[e.fiatBalance]),l=(0,IAe.useMemo)(()=>M1(ba(BigInt(e.cryptoBalance),e.decimals),3),[e.cryptoBalance,e.decimals]);return(0,ud.jsxs)(\"div\",{className:\"grid w-full grid-cols-[2.5rem_1fr_auto] items-center gap-3\",children:[(0,ud.jsx)(\"div\",{className:\"h-10 w-10\",children:n&&(0,ud.jsx)(Ax,{token:e,size:o})}),(0,ud.jsxs)(\"div\",{className:\"flex min-w-0 flex-col text-left\",children:[(0,ud.jsx)(\"span\",{className:ve(ut.headline,ft.foreground,\"overflow-hidden text-ellipsis whitespace-nowrap\",i?.tokenName),children:(a=e.name)==null?void 0:a.trim()}),(0,ud.jsx)(\"span\",{className:ve(ut.label2,ft.foregroundMuted,i?.tokenValue),children:`${l} ${e.symbol} ${t??\"\"}`})]}),(0,ud.jsx)(\"div\",{className:\"text-right\",children:!r&&(0,ud.jsx)(\"span\",{className:ve(ut.label2,ft.foregroundMuted,\"whitespace-nowrap\",i?.fiatValue),children:c})})]})}function gmt({actionText:e,onActionPress:t,className:n}){return(0,ud.jsx)(\"button\",{type:\"button\",\"data-testid\":\"ockTokenBalanceAction\",\"aria-label\":e,onClick:t,className:ve(ut.label2,ft.primary,xt.radius,\"cursor-pointer p-0.5 font-bold\",\"border border-transparent hover:border-[--ock-line-primary]\",\"-translate-y-1/2 absolute top-1/2 right-2\",n),children:e})}gn();function OAe({classNames:e}){let{address:t}=xr(),{data:n}=hh({address:t},Jo.Wallet),r=n?.tokenBalances,{selectedToken:o,handleTokenSelection:i,handleResetTokenSelection:a,setSelectedInputType:c,handleCryptoAmountChange:l,handleFiatAmountChange:d}=op();return o?(0,d4.jsx)(kAe,{token:o,showImage:!0,subtitle:\"available\",onClick:a,onActionPress:()=>{c(\"crypto\"),d(String(o.fiatBalance)),l(String(ba(BigInt(o.cryptoBalance),o.decimals)))},classNames:{container:ve(Xt.alternate,xt.radius,e?.container),...e}}):(0,d4.jsxs)(\"div\",{className:\"mt-4 flex max-h-80 flex-col gap-2\",children:[(0,d4.jsx)(\"span\",{className:ve(ut.caption,ft.foregroundMuted,\"uppercase\"),children:\"Select a token\"}),(0,d4.jsx)(\"div\",{className:\"scrollbar-hidden overflow-y-auto\",children:r?.map(m=>(0,d4.jsx)(kAe,{token:m,onClick:i,subtitle:\"\",classNames:{container:ve(Xt.default,xt.radius,e?.container),...e}},m.address))})]})}f();var rW=ge(We(),1);function ymt({classNames:e}){let{recipientState:t,updateRecipientInput:n,validateRecipientInput:r,deselectRecipient:o}=op();return(0,rW.jsxs)(\"div\",{\"data-testid\":\"ockSendAddressInput\",className:ve(xt.lineDefault,xt.radius,\"w-full\",\"flex items-center gap-2\",\"px-4 py-3\",e?.container),children:[(0,rW.jsx)(\"span\",{className:ve(ft.foreground,e?.label),children:\"To\"}),(0,rW.jsx)($I,{inputMode:\"text\",placeholder:\"Basename, ENS, or Address\",value:t.displayValue??t.input,setValue:n,onChange:r,onFocus:o,\"aria-label\":\"Input Receiver Address\",className:ve(_n.default,\"w-full outline-none\",e?.input)})]})}f();var Ox=ge(We(),1);var bmt=ge(at(),1);function vmt({classNames:e}){let{chain:t}=Di(),{recipientState:n,selectRecipient:r}=op(),o=(0,bmt.useCallback)(async()=>{r({phase:\"selected\",input:n.input,address:n.address,displayValue:n.displayValue})},[n.input,n.address,n.displayValue,r]);return!n.address||!t?null:(0,Ox.jsx)(\"button\",{\"data-testid\":\"ockSendAddressSelector_button\",type:\"button\",onClick:o,className:\"w-full text-left\",children:(0,Ox.jsx)(\"div\",{\"data-testid\":\"ockSendAddressSelector_container\",className:ve(_n.default,xt.radius,Xt.default,\"items-left flex min-w-[300px]\",\"mt-2 p-2\",e?.container),children:(0,Ox.jsxs)(\"div\",{className:\"flex items-center space-x-3\",children:[(0,Ox.jsx)(\"div\",{className:\"flex-shrink-0\",children:(0,Ox.jsx)(ph,{address:n.address,chain:t,className:e?.avatar})}),(0,Ox.jsxs)(\"div\",{className:\"flex flex-col\",children:[(0,Ox.jsx)(Em,{address:n.address,chain:t,className:e?.name}),(0,Ox.jsx)(UC,{address:n.address,hasCopyAddressOnClick:!1,className:e?.address})]})]})})})}function wmt({children:e=(0,su.jsx)(h$t,{}),className:t}){return(0,su.jsx)(Iht,{children:(0,su.jsx)(\"div\",{\"data-testid\":\"ockSend\",className:ve(_n.default,xt.radius,xt.lineDefault,ft.foreground,\"h-120 w-88\",\"flex flex-col\",\"p-4\",t),children:e})})}function h$t(){let{ethBalance:e,isInitialized:t,recipientState:n,selectedToken:r}=op(),o=(e??0)>1e-6;return t?(0,su.jsxs)(su.Fragment,{children:[(0,su.jsx)(hmt,{}),o?(0,su.jsxs)(\"div\",{className:\"flex h-full flex-col justify-between gap-4\",children:[(0,su.jsxs)(\"div\",{children:[(0,su.jsx)(ymt,{}),n.phase===\"validated\"&&(0,su.jsx)(vmt,{}),n.phase===\"selected\"&&!r&&(0,su.jsx)(OAe,{})]}),n.phase===\"selected\"&&r&&(0,su.jsxs)(su.Fragment,{children:[(0,su.jsx)(Oht,{}),(0,su.jsx)(OAe,{}),(0,su.jsx)(fmt,{})]})]}):(0,su.jsx)(pmt,{})]}):(0,su.jsx)(xx,{className:\"h-full w-full\"})}function _ie({children:e,swappableTokens:t,classNames:n}){let{isSubComponentOpen:r,setIsSubComponentOpen:o,isSubComponentClosing:i,setIsSubComponentClosing:a,connectRef:c,breakpoint:l,activeFeature:d,animations:m}=Di(),{address:h}=xr(),{data:g}=hh({address:h,enabled:!!d},Jo.Wallet),y=g?.tokenBalances,w=(0,oW.useCallback)(()=>{o(!1)},[o]),x=(0,oW.useCallback)(()=>{i&&(o(!1),a(!1))},[i,o,a]),I=(0,oW.useMemo)(()=>d===\"send\"?(0,U0.jsx)(Sie,{children:(0,U0.jsx)(wmt,{className:\"border-none\"})}):d===\"qr\"?(0,U0.jsx)(Sie,{children:(0,U0.jsx)(yAe,{classNames:n?.qr})}):d===\"swap\"?(0,U0.jsx)(Sie,{children:(0,U0.jsx)(AAe,{title:(0,U0.jsx)(\"div\",{className:ve(ut.headline,\"w-full text-center text-base\"),children:\"Swap\"}),to:t??Dlt,from:y?.map(C=>({address:C.address,chainId:C.chainId,symbol:C.symbol,decimals:C.decimals,image:C.image,name:C.name}))??[],classNames:n?.swap})}):(0,U0.jsx)(Sie,{children:e}),[d,t,y,e,n]);return l===\"sm\"?(0,U0.jsx)(fft,{isOpen:r,triggerRef:c,onClose:w,className:n?.container,children:(0,U0.jsx)(\"div\",{className:\"flex h-full w-full flex-col items-center justify-center\",children:I})}):(0,U0.jsx)(\"div\",{\"data-testid\":\"ockWalletDropdownContent\",className:ve(_n.default,xt.radius,xt.lineDefault,ep.dropdown,\"my-1.5 h-auto w-full\",\"flex justify-center\",\"overflow-hidden\",m.container,n?.container),onAnimationEnd:x,children:I})}function Sie({children:e,className:t}){return(0,U0.jsx)(\"div\",{className:ve(\"flex flex-col justify-between\",\"min-w-80 max-h-120\",t),children:e})}var m$t=(0,B1.jsxs)(B1.Fragment,{children:[(0,B1.jsx)(Uj,{}),(0,B1.jsx)(Oj,{}),(0,B1.jsx)(Bj,{}),(0,B1.jsx)(Nj,{})]});function Tie({children:e,classNames:t,swappableTokens:n}){let{isSubComponentOpen:r,showSubComponentAbove:o,alignSubComponentRight:i}=Di();return r?(0,B1.jsx)(\"div\",{\"data-testid\":\"ockWalletAdvancedContainer\",className:ve(\"absolute\",o?\"bottom-full\":\"top-full\",i?\"right-0\":\"left-0\"),children:(0,B1.jsx)(_ie,{classNames:t,swappableTokens:n,children:e||m$t})}):null}f();var Cm=ge(We(),1);var wXr=ge(at(),1);f();var iW=ge(We(),1),xmt=ge(at(),1);function aW({className:e,text:t=\"Disconnect\"}){let{disconnect:n,connectors:r}=IL(),o=(0,xmt.useCallback)(()=>{r.map(i=>n({connector:i}))},[n,r]);return(0,iW.jsxs)(\"button\",{type:\"button\",className:ve(Xt.default,ft.foreground,\"relative flex w-full items-center px-4 pt-3 pb-4\",e),onClick:o,children:[(0,iW.jsx)(\"div\",{className:\"absolute left-4 flex h-[1.125rem] w-[1.125rem] items-center justify-center\",children:Voe}),(0,iW.jsx)(\"span\",{className:ve(ut.body,\"pl-6\"),children:t})]})}f();var sW=ge(We(),1);function NAe({children:e,className:t,icon:n,href:r,rel:o,target:i}){let a=_A({icon:n});return(0,sW.jsxs)(\"a\",{className:ve(Xt.default,ft.foreground,\"relative flex items-center px-4 py-3\",t),href:r,target:i,rel:o,children:[(0,sW.jsx)(\"div\",{className:\"-translate-y-1/2 absolute top-1/2 left-4 flex h-[1.125rem] w-[1.125rem] items-center justify-center\",children:a}),(0,sW.jsx)(\"span\",{className:ve(ut.body,\"pl-6\"),children:e})]})}var g$t=(0,Cm.jsxs)(Cm.Fragment,{children:[(0,Cm.jsxs)(Hoe,{className:\"px-4 pt-3 pb-2\",children:[(0,Cm.jsx)(ph,{}),(0,Cm.jsx)(Em,{}),(0,Cm.jsx)(UC,{className:ft.foregroundMuted}),(0,Cm.jsx)(Rj,{})]},\"wallet-dd-identity\"),(0,Cm.jsx)(NAe,{icon:\"wallet\",href:\"https://keys.coinbase.com\",target:\"_blank\",children:\"Wallet\"},\"wallet-dd-link\"),(0,Cm.jsx)(aW,{},\"wallet-dd-disconnect\")]});function XC({children:e,className:t,classNames:n,swappableTokens:r}){let{address:o,breakpoint:i,isSubComponentOpen:a,showSubComponentAbove:c,alignSubComponentRight:l}=Di();return!o||!i||!a?null:(0,Cm.jsx)(\"div\",{\"data-testid\":\"ockWalletDropdown\",className:ve(\"absolute\",c?\"bottom-full\":\"top-full\",l?\"right-0\":\"left-0\",t),children:(0,Cm.jsx)(_ie,{classNames:n,swappableTokens:r,children:e||g$t})})}var Emt=(0,Rm.jsxs)(Rm.Fragment,{children:[(0,Rm.jsx)(P1,{}),(0,Rm.jsx)(XC,{})]});function r7({children:e,className:t,draggable:n,draggableStartingPosition:r,isSponsored:o}){let i=Va();return jD()?(0,Rm.jsx)(gEe,{isSponsored:o,children:(0,Rm.jsx)(y$t,{className:ve(i,t),...qdt({draggable:n,draggableStartingPosition:r}),children:e})}):null}function y$t({children:e,className:t,draggable:n,draggableStartingPosition:r}){let{isSubComponentOpen:o,isConnectModalOpen:i,handleClose:a,connectRef:c,breakpoint:l}=Di(),d=(0,Nx.useRef)(null);koe(d,a);let{dropdown:m,advanced:h}=(0,Nx.useMemo)(()=>{let w=Nx.Children.toArray(e);return{dropdown:w.find(fh(XC)),advanced:w.find(fh(Tie))}},[e]),g=(0,Nx.useMemo)(()=>Nx.Children.map(e,w=>(0,Nx.isValidElement)(w)&&w.type===Tie&&m?null:w),[m,e]);m&&h&&console.error(\"Defaulted to WalletDropdown. Wallet cannot have both WalletDropdown and WalletAdvanced as children.\");let y=i||l===\"sm\"&&o;return n?(0,Rm.jsx)(\"div\",{ref:d,className:ve(\"relative w-fit shrink-0\",t),children:(0,Rm.jsx)(Gdt,{startingPosition:r,disabled:y,children:(0,Rm.jsx)(\"div\",{ref:c,children:g||Emt})})}):(0,Rm.jsx)(\"div\",{ref:d,className:ve(\"relative w-fit shrink-0\",t),children:(0,Rm.jsx)(\"div\",{ref:c,children:g||Emt})})}f();var b$t=ge(We(),1);f();var Amt=ge(We(),1),o$r=ge(at(),1);f();var o7=ge(We(),1);var v$t=(0,o7.jsxs)(\"svg\",{width:\"100%\",height:\"100%\",viewBox:\"0 0 18 18\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",className:nn.foreground,children:[(0,o7.jsx)(\"title\",{children:\"Portfolio\"}),(0,o7.jsx)(\"path\",{d:\"M2.7125 0.875H15.875V4.625H2.7125C1.7 4.625 0.875 3.8 0.875 2.7875V2.7125C0.875 1.7 1.7 0.875 2.7125 0.875Z\",fill:\"currentColor\"}),(0,o7.jsx)(\"path\",{d:\"M0.875 5.875V14.5C0.875 15.95 2.05 17.125 3.5 17.125H17.125V5.875H0.875ZM13.375 12.125C12.6875 12.125 12.125 11.5625 12.125 10.875C12.125 10.1875 12.6875 9.625 13.375 9.625C14.0625 9.625 14.625 10.1875 14.625 10.875C14.625 11.5625 14.0625 12.125 13.375 12.125Z\",fill:\"currentColor\"})]});f();var PAe=ge(We(),1);f();var Cie=ge(We(),1);var w$t=(0,Cie.jsx)(\"svg\",{\"data-testid\":\"ock-basenameSvg\",role:\"img\",\"aria-label\":\"ock-basenameSvg\",width:\"100%\",height:\"100%\",viewBox:\"0 0 20 20\",xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",className:\"h-full w-full\",children:(0,Cie.jsx)(\"g\",{id:\"Icons/User\",children:(0,Cie.jsx)(\"path\",{id:\"Vector\",d:\"M10 20C4.47715 20 0 15.5228 0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20ZM12.832 6.9987C12.832 5.43461 11.5641 4.16666 10 4.16666C8.43594 4.16666 7.168 5.43461 7.168 6.9987C7.168 8.56279 8.43594 9.83073 10 9.83073C11.5641 9.83073 12.832 8.56279 12.832 6.9987ZM5.67266 11.6810L4.76738 14.0938C6.10704 15.4238 7.95093 16.2465 9.98699 16.2500L10.0130 16.2500C12.0491 16.2465 13.8930 15.4238 15.2326 14.0938L14.3273 11.6810C14.0026 10.8125 13.1794 10.2385 12.2581 10.2159C12.2279 10.2385 11.2310 10.9635 10.0000 10.9635C8.76903 10.9635 7.77215 10.2385 7.74194 10.2159C6.82059 10.2310 5.9974 10.8125 5.67266 11.6810Z\",className:nn.foreground})})});f();var Smt=ge(We(),1),_mt=ge(at(),1);f();var Tmt=ge(We(),1);f();f();var mh=ge(at());gn();va();f();var UA={};as(UA,{SCHEME:()=>f4,evm:()=>MAe,svm:()=>LAe});f();var MAe={};as(MAe,{createPayment:()=>Qct,createPaymentHeader:()=>Jct,decodePayment:()=>CZt,encodePayment:()=>cD,preparePaymentHeader:()=>H2e,settle:()=>x$t,signPaymentHeader:()=>z2e,verify:()=>Cmt});f();f();gn();async function Cmt(e,t,n){let r=t.payload;if(t.scheme!==f4||n.scheme!==f4)return{isValid:!1,invalidReason:\"unsupported_scheme\",payer:r.authorization.from};let o,i,a,c;try{i=WI(t.network),o=n.extra?.name??Dz[i.toString()].usdcName,a=n.asset,c=n.extra?.version??await Ict(e)}catch{return{isValid:!1,invalidReason:\"invalid_network\",payer:t.payload.authorization.from}}let l={types:ire,primaryType:\"TransferWithAuthorization\",domain:{name:o,version:c,chainId:i,verifyingContract:a},message:{from:r.authorization.from,to:r.authorization.to,value:r.authorization.value,validAfter:r.authorization.validAfter,validBefore:r.authorization.validBefore,nonce:r.authorization.nonce}};return await e.verifyTypedData({address:r.authorization.from,...l,signature:r.signature})?rr(r.authorization.to)!==rr(n.payTo)?{isValid:!1,invalidReason:\"invalid_exact_evm_payload_recipient_mismatch\",payer:r.authorization.from}:BigInt(r.authorization.validBefore)<BigInt(Math.floor(Date.now()/1e3)+6)?{isValid:!1,invalidReason:\"invalid_exact_evm_payload_authorization_valid_before\",payer:r.authorization.from}:BigInt(r.authorization.validAfter)>BigInt(Math.floor(Date.now()/1e3))?{isValid:!1,invalidReason:\"invalid_exact_evm_payload_authorization_valid_after\",payer:r.authorization.from}:await kct(e,a,r.authorization.from)<BigInt(n.maxAmountRequired)?{isValid:!1,invalidReason:\"insufficient_funds\",payer:r.authorization.from}:BigInt(r.authorization.value)<BigInt(n.maxAmountRequired)?{isValid:!1,invalidReason:\"invalid_exact_evm_payload_authorization_value\",payer:r.authorization.from}:{isValid:!0,invalidReason:void 0,payer:r.authorization.from}:{isValid:!1,invalidReason:\"invalid_exact_evm_payload_signature\",payer:r.authorization.from}}async function x$t(e,t,n){let r=t.payload,o=await Cmt(e,t,n);if(!o.isValid)return{success:!1,network:t.network,transaction:\"\",errorReason:o.invalidReason??\"invalid_scheme\",payer:r.authorization.from};let{signature:i}=Ole(r.signature),a=await e.writeContract({address:n.asset,abi:FI,functionName:\"transferWithAuthorization\",args:[r.authorization.from,r.authorization.to,BigInt(r.authorization.value),BigInt(r.authorization.validAfter),BigInt(r.authorization.validBefore),r.authorization.nonce,i],chain:e.chain});return(await e.waitForTransactionReceipt({hash:a})).status!==\"success\"?{success:!1,errorReason:\"invalid_transaction_state\",transaction:a,network:t.network,payer:r.authorization.from}:{success:!0,transaction:a,network:t.network,payer:r.authorization.from}}var LAe={};as(LAe,{confirmSignedTransaction:()=>Lmt,createAndSignPayment:()=>rut,createPaymentHeader:()=>nut,getValidatedTransferCheckedInstruction:()=>Dmt,sendAndConfirmSignedTransaction:()=>Umt,sendSignedTransaction:()=>Bmt,settle:()=>E$t,transactionIntrospection:()=>Imt,verify:()=>BAe,verifyComputeLimitInstruction:()=>Omt,verifyComputePriceInstruction:()=>Nmt,verifyCreateATAInstruction:()=>Pmt,verifySchemesAndNetworks:()=>Rmt,verifyTransactionInstructions:()=>kmt,verifyTransferCheckedInstruction:()=>Mmt,verifyTransferInstruction:()=>DAe});f();f();f();f();async function BAe(e,t,n,r){try{Rmt(t,n);let o=t.payload,i=VI(o),a=Py(n.network,r?.svmConfig?.rpcUrl);if(await Imt(o,n,r),(await Kct(e,i,a)).value?.err)throw new Error(\"invalid_exact_svm_payload_transaction_simulation_failed\");return{isValid:!0,invalidReason:void 0,payer:sD(i)}}catch(o){return o instanceof Error&&Jz.includes(o.message)?{isValid:!1,invalidReason:o.message,payer:(()=>{try{let i=VI(t.payload);return sD(i)}catch{return}})()}:(console.error(o),{isValid:!1,invalidReason:\"unexpected_verify_error\",payer:(()=>{try{let i=VI(t.payload);return sD(i)}catch{return}})()})}}function Rmt(e,t){if(e.scheme!==f4||t.scheme!==f4)throw new Error(\"unsupported_scheme\");if(e.network!==t.network||!O1.includes(t.network))throw new Error(\"invalid_network\")}async function Imt(e,t,n){let r=Py(t.network,n?.svmConfig?.rpcUrl),o=VI(e),i=iD().decode(o.messageBytes),a=_re(i);await kmt(a,t,r)}async function kmt(e,t,n){if(e.instructions.length!==3&&e.instructions.length!==4)throw new Error(\"invalid_exact_svm_payload_transaction_instructions_length\");Omt(e.instructions[0]),Nmt(e.instructions[1]),e.instructions.length===3?await DAe(e.instructions[2],t,{txHasCreateDestATAInstruction:!1},n):(Pmt(e.instructions[2],t),await DAe(e.instructions[3],t,{txHasCreateDestATAInstruction:!0},n))}function Omt(e){try{if(e.programAddress.toString()!==uD.toString()||e.data?.[0]!==2)throw new Error(\"invalid_exact_svm_payload_transaction_instructions_compute_limit_instruction\");Xct(e)}catch(t){throw console.error(t),new Error(\"invalid_exact_svm_payload_transaction_instructions_compute_limit_instruction\")}}function Nmt(e){if(e.programAddress.toString()!==uD.toString()||e.data?.[0]!==3)throw new Error(\"invalid_exact_svm_payload_transaction_instructions_compute_price_instruction\");if($ct(e).data.microLamports>5*1e6)throw new Error(\"invalid_exact_svm_payload_transaction_instructions_compute_price_instruction_too_high\")}function Pmt(e,t){let n;try{$xe(e),e2e(e),n=Vct({...e,data:new Uint8Array(e.data)})}catch(r){throw console.error(r),new Error(\"invalid_exact_svm_payload_transaction_create_ata_instruction\")}if(n.accounts.owner.address!==t.payTo)throw new Error(\"invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_payee\");if(n.accounts.mint.address!==t.asset)throw new Error(\"invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_asset\")}async function DAe(e,t,{txHasCreateDestATAInstruction:n},r){let o=Dmt(e);await Mmt(o,t,{txHasCreateDestATAInstruction:n},r)}async function Mmt(e,t,{txHasCreateDestATAInstruction:n},r){let o=e.programAddress.toString()===px.toString()?px:hx,i=await AC({mint:t.asset,owner:t.payTo,tokenProgram:o});if(e.accounts.destination.address!==i[0])throw new Error(\"invalid_exact_svm_payload_transaction_transfer_to_incorrect_ata\");let a=[e.accounts.source.address,i[0]],l=(await dre(r,a)).filter(h=>!h.exists);for(let h of l){if(h.address===e.accounts.source.address)throw new Error(\"invalid_exact_svm_payload_transaction_sender_ata_not_found\");if(h.address===i[0]&&!n)throw new Error(\"invalid_exact_svm_payload_transaction_receiver_ata_not_found\")}let d=e.data.amount,m=BigInt(t.maxAmountRequired);if(d!==m)throw new Error(\"invalid_exact_svm_payload_transaction_amount_mismatch\")}function Dmt(e){try{e2e(e),$xe(e)}catch(n){throw console.error(n),new Error(\"invalid_exact_svm_payload_transaction_instructions\")}let t;if(e.programAddress.toString()===px.toString()){if(Pct(e)!==U2e.TransferChecked)throw new Error(\"invalid_exact_svm_payload_transaction_instruction_not_spl_token_transfer_checked\");t=Mct({...e,data:new Uint8Array(e.data)})}else if(e.programAddress.toString()===hx.toString()){if(zct(e)!==F2e.TransferChecked)throw new Error(\"invalid_exact_svm_payload_transaction_instruction_not_token_2022_transfer_checked\");t=qct({...e,data:new Uint8Array(e.data)})}else throw new Error(\"invalid_exact_svm_payload_transaction_not_a_transfer_instruction\");return t}async function E$t(e,t,n,r){let o=await BAe(e,t,n,r);if(!o.isValid)return{success:!1,errorReason:o.invalidReason,network:t.network,transaction:\"\"};let i=t.payload,a=VI(i),c=await vct([e.keyPair],a),l=sD(a),d=Py(n.network,r?.svmConfig?.rpcUrl),m=Rct(n.network,r?.svmConfig?.rpcUrl);try{let{success:h,errorReason:g,signature:y}=await Umt(c,d,m);return{success:h,errorReason:g,payer:l,transaction:y,network:t.network}}catch(h){return console.error(\"Unexpected error during transaction settlement:\",h),{success:!1,errorReason:\"unexpected_settle_error\",network:t.network,transaction:Kz(c),payer:l}}}async function Bmt(e,t,n={skipPreflight:!0,encoding:\"base64\"}){let r=EC(e);return await t.sendTransaction(r,n).send()}async function Lmt(e,t,n){let r=Kz(e),o=new AbortController,i=setTimeout(()=>{o.abort(\"Transaction confirmation timed out after 60 seconds\")},6e4);try{let a=iD().decode(e.messageBytes),c=await Tct(a,t);lct(c);let l={...e,lifetimeConstraint:c.lifetimeConstraint},d=\"confirmed\",m=Sct({rpc:t,rpcSubscriptions:n}),h=Act({rpc:t,rpcSubscriptions:n}),g={abortSignal:o.signal,commitment:d,getBlockHeightExceedencePromise:h,getRecentSignatureConfirmationPromise:m};return await _ct({...g,transaction:l}),{success:!0,signature:r}}catch(a){if(console.error(a),pA(a,az))return{success:!1,errorReason:\"settle_exact_svm_block_height_exceeded\",signature:r};if(a instanceof DOMException&&a.name===\"AbortError\")return{success:!1,errorReason:\"settle_exact_svm_transaction_confirmation_timed_out\",signature:r};throw a}finally{clearTimeout(i)}}async function Umt(e,t,n){return await Bmt(e,t),await Lmt(e,t,n)}var f4=\"exact\";f();var UAe=ge(We());function Rie({className:e=\"\"}){return(0,UAe.jsx)(\"div\",{className:`inline-flex items-center justify-center ${e}`,children:(0,UAe.jsx)(\"div\",{className:\"animate-spin border-2 border-gray-200 border-t-gray-400 rounded-full w-4 h-4\",style:{animation:\"spin 1s linear infinite\",borderTopWidth:\"2px\"}})})}f();var $C=ge(at());f();function FAe(e){if(e===null||typeof e!=\"object\")return e;if(e instanceof Date)return new Date(e.getTime());if(Array.isArray(e))return e.map(n=>FAe(n));let t={};for(let n in e)n===\"__proto__\"||n===\"constructor\"||n===\"prototype\"||Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=FAe(e[n]));return t}function Iie(e){let t=FAe(e);if(window.x402?.amount)try{let n=Math.round(window.x402.amount*1e6);t.maxAmountRequired=n.toString()}catch(n){console.error(\"Failed to parse amount:\",n)}return(!t.maxAmountRequired||!/^\\\\d+$/.test(t.maxAmountRequired))&&(t.maxAmountRequired=\"10000\"),t}var Fmt=async e=>{let t=window.x402?.sessionTokenEndpoint;return t?(await(await fetch(t,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({addresses:[{address:e,blockchains:[\"base\"]}],assets:[\"USDC\"]})})).json()).token:void 0};var A$t=300*1e3;function Hmt(e){let[t,n]=(0,$C.useState)(),[r,o]=(0,$C.useState)(null),i=(0,$C.useCallback)(()=>r?Date.now()-r>A$t:!0,[r]),a=(0,$C.useCallback)(async()=>{if(e&&(!t||i())){let c=await Fmt(e);n(c),o(Date.now())}},[e,t,i]);return(0,$C.useEffect)(()=>{e?a():(n(void 0),o(null))},[e,a]),{sessionToken:t}}var wo=ge(We());function zmt({paymentRequirement:e,onSuccessfulResponse:t}){let{address:n,isConnected:r,chainId:o}=xr(),{switchChainAsync:i}=R3(),{data:a}=Ude(),{sessionToken:c}=Hmt(n),[l,d]=(0,mh.useState)(\"\"),[m,h]=(0,mh.useState)(null),[g,y]=(0,mh.useState)(!1),[w,x]=(0,mh.useState)(\"\"),[I,C]=(0,mh.useState)(!0),M=window.x402,B=typeof M.amount==\"number\"?M.amount:Number(e.maxAmountRequired??0)/1e6,z=e.network,G=z===\"base-sepolia\"?Cs:fr,J=G.id,ne=Ure(z),ie=aut(z),ae=!!(!ie&&r&&M.sessionTokenEndpoint);(0,mh.useEffect)(()=>{n&&(F(),Z())},[n]);let te=vE({chain:G,transport:hl()}).extend(fO);(0,mh.useEffect)(()=>{r&&J===o?(h(!0),d(\"\")):r&&J!==o?(h(!1),d(`On the wrong network. Please switch to ${ne}.`)):(h(null),d(\"\"))},[J,o,r,ne]);let Z=(0,mh.useCallback)(async()=>{if(!n)return;let O=await L2e(te,n),U=ba(O,6);x(U)},[n,te]),X=(0,mh.useMemo)(()=>{if(c)return XI({presetFiatAmount:2,fiatCurrency:\"USD\",sessionToken:c})},[c]),F=(0,mh.useCallback)(async()=>{if(!m)try{d(\"\"),await i({chainId:J}),await new Promise(O=>setTimeout(O,100))}catch(O){d(O instanceof Error?O.message:\"Failed to switch network\")}},[i,J,m]),R=(0,mh.useCallback)(async()=>{if(!n||!M)return;if(await F(),!a){d(\"Wallet client not available. Please reconnect your wallet.\");return}let O=a.extend(fO);y(!0);try{if(d(\"Checking USDC balance...\"),await L2e(te,n)===0n)throw new Error(`Insufficient balance. Make sure you have USDC on ${ne}`);d(\"Creating payment signature...\");let P=Iie(e),L=await UA.evm.createPayment(O,1,P),W=UA.evm.encodePayment(L);d(\"Requesting content with payment...\");let q=await fetch(M.currentUrl,{headers:{\"X-PAYMENT\":W,\"Access-Control-Expose-Headers\":\"X-PAYMENT-RESPONSE\"}});if(q.ok)await t(q);else if(q.status===402){let H=await q.json().catch(()=>({}));if(H&&typeof H.x402Version==\"number\"){let k=await UA.evm.createPayment(O,H.x402Version,P);k.x402Version=H.x402Version;let V=UA.evm.encodePayment(k),oe=await fetch(M.currentUrl,{headers:{\"X-PAYMENT\":V,\"Access-Control-Expose-Headers\":\"X-PAYMENT-RESPONSE\"}});if(oe.ok){await t(oe);return}else throw new Error(`Payment retry failed: ${oe.statusText}`)}else throw new Error(`Payment failed: ${q.statusText}`)}else throw new Error(`Request failed: ${q.status} ${q.statusText}`)}catch(U){d(U instanceof Error?U.message:\"Payment failed\")}finally{y(!1)}},[n,M,e,F,a,te,ne,t]);return M?(0,wo.jsxs)(\"div\",{className:\"container gap-8\",children:[(0,wo.jsxs)(\"div\",{className:\"header\",children:[(0,wo.jsx)(\"h1\",{className:\"title\",children:\"Payment Required\"}),(0,wo.jsxs)(\"p\",{children:[e.description&&`${e.description}.`,\" To access this content, please pay $\",B,\" \",ne,\" USDC.\"]}),ie&&(0,wo.jsxs)(\"p\",{className:\"instructions\",children:[\"Need \",ne,\" USDC?\",\" \",(0,wo.jsxs)(\"a\",{href:\"https://faucet.circle.com/\",target:\"_blank\",rel:\"noopener noreferrer\",children:[\"Get some \",(0,wo.jsx)(\"u\",{children:\"here\"}),\".\"]})]})]}),(0,wo.jsxs)(\"div\",{className:\"content w-full\",children:[(0,wo.jsxs)(r7,{className:\"w-full\",children:[(0,wo.jsxs)(P1,{className:\"w-full py-3\",disconnectedLabel:\"Connect wallet\",children:[(0,wo.jsx)(ph,{className:\"h-5 w-5 opacity-80\"}),(0,wo.jsx)(Em,{className:\"opacity-80 text-sm\"})]}),(0,wo.jsx)(XC,{children:(0,wo.jsx)(aW,{className:\"opacity-80\"})})]}),r&&(0,wo.jsxs)(\"div\",{id:\"payment-section\",children:[(0,wo.jsxs)(\"div\",{className:\"payment-details\",children:[(0,wo.jsxs)(\"div\",{className:\"payment-row\",children:[(0,wo.jsx)(\"span\",{className:\"payment-label\",children:\"Wallet:\"}),(0,wo.jsx)(\"span\",{className:\"payment-value\",children:n?`${n.slice(0,6)}...${n.slice(-4)}`:\"Loading...\"})]}),(0,wo.jsxs)(\"div\",{className:\"payment-row\",children:[(0,wo.jsx)(\"span\",{className:\"payment-label\",children:\"Available balance:\"}),(0,wo.jsx)(\"span\",{className:\"payment-value\",children:(0,wo.jsx)(\"button\",{className:\"balance-button\",onClick:()=>C(O=>!O),children:w&&!I?`$${w} USDC`:\"\\\\u2022\\\\u2022\\\\u2022\\\\u2022\\\\u2022 USDC\"})})]}),(0,wo.jsxs)(\"div\",{className:\"payment-row\",children:[(0,wo.jsx)(\"span\",{className:\"payment-label\",children:\"Amount:\"}),(0,wo.jsxs)(\"span\",{className:\"payment-value\",children:[\"$\",B,\" USDC\"]})]}),(0,wo.jsxs)(\"div\",{className:\"payment-row\",children:[(0,wo.jsx)(\"span\",{className:\"payment-label\",children:\"Network:\"}),(0,wo.jsx)(\"span\",{className:\"payment-value\",children:ne})]})]}),m?(0,wo.jsxs)(\"div\",{className:\"cta-container\",children:[ae&&(0,wo.jsx)(yj,{fundingUrl:X,text:\"Get more USDC\",hideIcon:!0,className:\"button button-positive\"}),(0,wo.jsx)(\"button\",{className:\"button button-primary\",onClick:R,disabled:g,children:g?(0,wo.jsx)(Rie,{}):\"Pay now\"})]}):(0,wo.jsxs)(\"button\",{className:\"button button-primary\",onClick:F,children:[\"Switch to \",ne]})]}),l&&(0,wo.jsx)(\"div\",{className:\"status\",children:l})]})]}):null}f();var cu=ge(at());gn();f();var S$t=function(e,t,n,r){if(n===\"a\"&&!r)throw new TypeError(\"Private accessor was defined without a getter\");if(typeof t==\"function\"?e!==t||!r:!t.has(e))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return n===\"m\"?r:n===\"a\"?r.call(e):r?r.value:t.get(e)},_$t=function(e,t,n,r,o){if(r===\"m\")throw new TypeError(\"Private method is not writable\");if(r===\"a\"&&!o)throw new TypeError(\"Private accessor was defined without a setter\");if(typeof t==\"function\"?e!==t||!o:!t.has(e))throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");return r===\"a\"?o.call(e,n):o?o.value=n:t.set(e,n),n},kie,cW,Oie=new Set;function T$t(e){uW=void 0,Oie.add(e)}function C$t(e){uW=void 0,Oie.delete(e)}var i7={};function Vmt(){if(cW||(cW=Object.freeze({register:jmt,get:R$t,on:I$t}),typeof window>\"u\"))return cW;let e=Object.freeze({register:jmt});try{window.addEventListener(\"wallet-standard:register-wallet\",({detail:t})=>t(e))}catch(t){console.error(`wallet-standard:register-wallet event listener could not be added\\n`,t)}try{window.dispatchEvent(new HAe(e))}catch(t){console.error(`wallet-standard:app-ready event could not be dispatched\\n`,t)}return cW}function jmt(...e){return e=e.filter(t=>!Oie.has(t)),e.length?(e.forEach(t=>T$t(t)),i7.register?.forEach(t=>Wmt(()=>t(...e))),function(){e.forEach(n=>C$t(n)),i7.unregister?.forEach(n=>Wmt(()=>n(...e)))}):()=>{}}var uW;function R$t(){return uW||(uW=[...Oie]),uW}function I$t(e,t){return i7[e]?.push(t)||(i7[e]=[t]),function(){i7[e]=i7[e]?.filter(r=>t!==r)}}function Wmt(e){try{e()}catch(t){console.error(t)}}var HAe=class extends Event{get detail(){return S$t(this,kie,\"f\")}get type(){return\"wallet-standard:app-ready\"}constructor(t){super(\"wallet-standard:app-ready\",{bubbles:!1,cancelable:!1,composed:!1}),kie.set(this,void 0),_$t(this,kie,t,\"f\")}preventDefault(){throw new Error(\"preventDefault cannot be called\")}stopImmediatePropagation(){throw new Error(\"stopImmediatePropagation cannot be called\")}stopPropagation(){throw new Error(\"stopPropagation cannot be called\")}};kie=new WeakMap;f();var Gmt=\"standard:connect\";f();var zAe=\"standard:disconnect\";f();var jAe=\"solana:signTransaction\";var xo=ge(We());function qmt({paymentRequirement:e,onSuccessfulResponse:t}){let[n,r]=(0,cu.useState)(\"\"),[o,i]=(0,cu.useState)(!1),[a,c]=(0,cu.useState)([]),[l,d]=(0,cu.useState)(\"\"),[m,h]=(0,cu.useState)(null),[g,y]=(0,cu.useState)(null),[w,x]=(0,cu.useState)(null),[I,C]=(0,cu.useState)(\"\"),[M,B]=(0,cu.useState)(!0),[z,G]=(0,cu.useState)(!1),J=window.x402,ne=typeof J.amount==\"number\"?J.amount:Number(e.maxAmountRequired??0)/1e6,ie=e.network,ae=Ure(ie),te=ie===\"solana\"?\"solana:mainnet\":\"solana:devnet\";(0,cu.useEffect)(()=>{let U=Vmt();function P(){return U.get().filter(k$t).map(q=>({value:q.name,wallet:q}))}c(P());let L=U.on(\"register\",()=>{c(P())}),W=U.on(\"unregister\",()=>{c(P())});return()=>{L(),W()}},[]);let Z=(0,cu.useMemo)(()=>{if(!m||!g)return null;let U=m.features[jAe];if(!U)return null;let P=pre(g.address),L=I2e(),W=Tre();return{address:P,async signTransactions(q){let H=[];for(let k of q){let V=L.encode(k),[oe]=await U.signTransaction({account:g,transaction:V,chain:te}),ue=W.decode(oe.signedTransaction).signatures[P];if(!ue)throw new Error(\"Wallet did not return a signature for the selected account.\");H.push(Object.freeze({[P]:ue}))}return H}}},[m,g,te]),X=(0,cu.useCallback)(async()=>{if(!g){x(null),C(\"\");return}try{G(!0);let U=Py(e.network),P=await Mre(U,e.asset),L=P.programAddress,[W]=await AC({mint:e.asset,owner:pre(g.address),tokenProgram:L}),q=0n;if(L.toString()===px.toString()){let H=await Nct(U,W);H.exists&&(q=H.data.amount)}else if(L.toString()===hx.toString()){let H=await Hct(U,W);H.exists&&(q=H.data.amount)}x(q),C(ba(q,P.data.decimals))}catch(U){console.error(\"Failed to fetch Solana USDC balance\",U),r(\"Unable to read your USDC balance. Please retry.\"),x(null),C(\"\")}finally{G(!1)}},[g,e]);(0,cu.useEffect)(()=>{g&&X()},[g,X]);let F=(0,cu.useCallback)(async()=>{let U=a.find(L=>L.value===l)?.wallet;if(!U){r(\"Select a Solana wallet to continue.\");return}let P=U.features[Gmt];if(!P){r(\"Selected wallet does not support standard connect.\");return}try{r(\"Connecting to wallet...\");let{accounts:L}=await P.connect();if(!L?.length)throw new Error(\"Wallet did not provide any accounts.\");let W=L.find(q=>q.chains?.includes(te))??L[0];h(U),y(W),r(\"\")}catch(L){console.error(\"Failed to connect wallet\",L),r(L instanceof Error?L.message:\"Failed to connect wallet.\")}},[a,l,te]),R=(0,cu.useCallback)(async()=>{m?.features[zAe]&&await m.features[zAe].disconnect().catch(console.error),h(null),y(null),x(null),C(\"\"),r(\"\")},[m]),O=(0,cu.useCallback)(async()=>{if(J){if(!Z||!g){r(\"Connect a Solana wallet before paying.\");return}i(!0);try{if((w===null||w===0n)&&(r(\"Checking USDC balance...\"),await X(),!w||w===0n))throw new Error(`Insufficient balance. Make sure you have USDC on ${ae}.`);r(\"Creating payment transaction...\");let U=Iie(e);async function P(q){return UA.svm.createPaymentHeader(Z,q,U)}let L=await P(1);r(\"Requesting content with payment...\");let W=await fetch(J.currentUrl,{headers:{\"X-PAYMENT\":L,\"Access-Control-Expose-Headers\":\"X-PAYMENT-RESPONSE\"}});if(W.ok){await t(W);return}if(W.status===402){let q=await W.json().catch(()=>({}));if(q&&typeof q.x402Version==\"number\"){let H=await P(q.x402Version),k=await fetch(J.currentUrl,{headers:{\"X-PAYMENT\":H,\"Access-Control-Expose-Headers\":\"X-PAYMENT-RESPONSE\"}});if(k.ok){await t(k);return}throw new Error(`Payment retry failed: ${k.statusText}`)}}throw new Error(`Payment failed: ${W.status} ${W.statusText}`)}catch(U){r(U instanceof Error?U.message:\"Payment failed.\")}finally{i(!1)}}},[J,Z,g,w,X,ae,e,t]);return(0,xo.jsxs)(\"div\",{className:\"container gap-8\",children:[(0,xo.jsxs)(\"div\",{className:\"header\",children:[(0,xo.jsx)(\"h1\",{className:\"title\",children:\"Payment Required\"}),(0,xo.jsxs)(\"p\",{children:[e.description&&`${e.description}.`,\" To access this content, please pay $\",ne,\" \",ae,\" USDC.\"]}),ie===\"solana-devnet\"&&(0,xo.jsxs)(\"p\",{className:\"instructions\",children:[\"Need Solana Devnet USDC?\",\" \",(0,xo.jsxs)(\"a\",{href:\"https://faucet.circle.com/\",target:\"_blank\",rel:\"noopener noreferrer\",children:[\"Request some \",(0,xo.jsx)(\"u\",{children:\"here\"}),\".\"]})]})]}),(0,xo.jsxs)(\"div\",{className:\"content w-full\",children:[(0,xo.jsxs)(\"div\",{className:\"payment-details\",children:[(0,xo.jsxs)(\"div\",{className:\"payment-row\",children:[(0,xo.jsx)(\"span\",{className:\"payment-label\",children:\"Wallet:\"}),(0,xo.jsx)(\"span\",{className:\"payment-value\",children:g?`${g.address.slice(0,6)}...${g.address.slice(-4)}`:\"-\"})]}),(0,xo.jsxs)(\"div\",{className:\"payment-row\",children:[(0,xo.jsx)(\"span\",{className:\"payment-label\",children:\"Available balance:\"}),(0,xo.jsx)(\"span\",{className:\"payment-value\",children:(0,xo.jsx)(\"button\",{className:\"balance-button\",onClick:()=>B(U=>!U),children:!M&&I?`$${I} USDC`:z?\"Loading...\":\"\\\\u2022\\\\u2022\\\\u2022\\\\u2022\\\\u2022 USDC\"})})]}),(0,xo.jsxs)(\"div\",{className:\"payment-row\",children:[(0,xo.jsx)(\"span\",{className:\"payment-label\",children:\"Amount:\"}),(0,xo.jsxs)(\"span\",{className:\"payment-value\",children:[\"$\",ne,\" USDC\"]})]}),(0,xo.jsxs)(\"div\",{className:\"payment-row\",children:[(0,xo.jsx)(\"span\",{className:\"payment-label\",children:\"Network:\"}),(0,xo.jsx)(\"span\",{className:\"payment-value\",children:ae})]})]}),(0,xo.jsxs)(\"div\",{className:\"cta-container\",children:[g?(0,xo.jsx)(\"button\",{className:\"button button-secondary\",onClick:R,children:\"Disconnect\"}):(0,xo.jsxs)(xo.Fragment,{children:[(0,xo.jsxs)(\"select\",{className:\"input\",value:l,onChange:U=>d(U.target.value),children:[(0,xo.jsx)(\"option\",{value:\"\",disabled:!0,children:\"Select a wallet\"}),a.map(U=>(0,xo.jsx)(\"option\",{value:U.value,children:U.wallet.name},U.value))]}),(0,xo.jsx)(\"button\",{className:\"button button-primary\",onClick:F,disabled:!l,children:\"Connect wallet\"})]}),g&&(0,xo.jsx)(\"button\",{className:\"button button-primary\",onClick:O,disabled:o,children:o?(0,xo.jsx)(Rie,{}):\"Pay now\"})]}),!a.length&&(0,xo.jsx)(\"div\",{className:\"status\",children:\"Install a Solana wallet such as Phantom to continue, then refresh this page.\"}),n&&(0,xo.jsx)(\"div\",{className:\"status\",children:n})]})]})}function k$t(e){return jAe in e.features}var jy=ge(We());function Kmt(){let e=window.x402,t=e.testnet??!0,n=(0,Nie.useMemo)(()=>Bre(e.paymentRequirements,t),[t,e.paymentRequirements]),r=(0,Nie.useCallback)(async o=>{let i=o.headers.get(\"content-type\");if(i&&i.includes(\"text/html\"))document.documentElement.innerHTML=await o.text();else{let a=await o.blob(),c=window.URL.createObjectURL(a);window.location.href=c}},[]);return n?Lre(n.network)?(0,jy.jsx)(zmt,{paymentRequirement:n,onSuccessfulResponse:r}):iut(n.network)?(0,jy.jsx)(qmt,{paymentRequirement:n,onSuccessfulResponse:r}):(0,jy.jsx)(\"div\",{className:\"container\",children:(0,jy.jsxs)(\"div\",{className:\"header\",children:[(0,jy.jsx)(\"h1\",{className:\"title\",children:\"Payment Required\"}),(0,jy.jsx)(\"p\",{className:\"subtitle\",children:\"Unsupported network configuration for this paywall. Please contact the application developer.\"})]})}):(0,jy.jsx)(\"div\",{className:\"container\",children:(0,jy.jsxs)(\"div\",{className:\"header\",children:[(0,jy.jsx)(\"h1\",{className:\"title\",children:\"Payment Required\"}),(0,jy.jsx)(\"p\",{className:\"subtitle\",children:\"Loading payment details...\"})]})})}var WAe=ge(We());window.addEventListener(\"load\",()=>{let e=document.getElementById(\"root\");if(!e){console.error(\"Root element not found\");return}(0,Ymt.createRoot)(e).render((0,WAe.jsx)(sut,{children:(0,WAe.jsx)(Kmt,{})}))});})();\\n/*! Bundled license information:\\n\\nieee754/index.js:\\n  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)\\n\\nbuffer/index.js:\\n  (*!\\n   * The buffer module from node.js, for the browser.\\n   *\\n   * @author   Feross Aboukhadijeh <https://feross.org>\\n   * @license  MIT\\n   *)\\n\\nscheduler/cjs/scheduler.development.js:\\n  (**\\n   * @license React\\n   * scheduler.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact/cjs/react.development.js:\\n  (**\\n   * @license React\\n   * react.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom.development.js:\\n  (**\\n   * @license React\\n   * react-dom.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom-client.development.js:\\n  (**\\n   * @license React\\n   * react-dom-client.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\n@noble/hashes/esm/utils.js:\\n@noble/hashes/utils.js:\\n@noble/hashes/esm/utils.js:\\n  (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)\\n\\nreact/cjs/react-jsx-runtime.development.js:\\n  (**\\n   * @license React\\n   * react-jsx-runtime.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\n@noble/curves/esm/abstract/utils.js:\\n@noble/curves/esm/abstract/modular.js:\\n@noble/curves/esm/abstract/curve.js:\\n@noble/curves/esm/abstract/weierstrass.js:\\n@noble/curves/esm/_shortw_utils.js:\\n@noble/curves/esm/secp256k1.js:\\n@noble/curves/esm/utils.js:\\n@noble/curves/esm/abstract/modular.js:\\n@noble/curves/esm/abstract/curve.js:\\n@noble/curves/esm/abstract/weierstrass.js:\\n@noble/curves/esm/_shortw_utils.js:\\n@noble/curves/esm/secp256k1.js:\\n@noble/curves/esm/nist.js:\\n@noble/curves/esm/p256.js:\\n@noble/curves/esm/abstract/edwards.js:\\n@noble/curves/esm/ed25519.js:\\n  (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)\\n\\nuse-sync-external-store/cjs/use-sync-external-store-shim.development.js:\\n  (**\\n   * @license React\\n   * use-sync-external-store-shim.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nuse-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js:\\n  (**\\n   * @license React\\n   * use-sync-external-store-shim/with-selector.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\n@scure/bip39/esm/index.js:\\n  (*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)\\n\\nsafe-buffer/index.js:\\n  (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)\\n\\neventemitter2/lib/eventemitter2.js:\\n  (*!\\n   * EventEmitter2\\n   * https://github.com/hij1nx/EventEmitter2\\n   *\\n   * Copyright (c) 2013 hij1nx\\n   * Licensed under the MIT license.\\n   *)\\n\\n@solana/buffer-layout/lib/Layout.js:\\n  (**\\n   * Support for translating between Uint8Array instances and JavaScript\\n   * native types.\\n   *\\n   * {@link module:Layout~Layout|Layout} is the basis of a class\\n   * hierarchy that associates property names with sequences of encoded\\n   * bytes.\\n   *\\n   * Layouts are supported for these scalar (numeric) types:\\n   * * {@link module:Layout~UInt|Unsigned integers in little-endian\\n   *   format} with {@link module:Layout.u8|8-bit}, {@link\\n   *   module:Layout.u16|16-bit}, {@link module:Layout.u24|24-bit},\\n   *   {@link module:Layout.u32|32-bit}, {@link\\n   *   module:Layout.u40|40-bit}, and {@link module:Layout.u48|48-bit}\\n   *   representation ranges;\\n   * * {@link module:Layout~UIntBE|Unsigned integers in big-endian\\n   *   format} with {@link module:Layout.u16be|16-bit}, {@link\\n   *   module:Layout.u24be|24-bit}, {@link module:Layout.u32be|32-bit},\\n   *   {@link module:Layout.u40be|40-bit}, and {@link\\n   *   module:Layout.u48be|48-bit} representation ranges;\\n   * * {@link module:Layout~Int|Signed integers in little-endian\\n   *   format} with {@link module:Layout.s8|8-bit}, {@link\\n   *   module:Layout.s16|16-bit}, {@link module:Layout.s24|24-bit},\\n   *   {@link module:Layout.s32|32-bit}, {@link\\n   *   module:Layout.s40|40-bit}, and {@link module:Layout.s48|48-bit}\\n   *   representation ranges;\\n   * * {@link module:Layout~IntBE|Signed integers in big-endian format}\\n   *   with {@link module:Layout.s16be|16-bit}, {@link\\n   *   module:Layout.s24be|24-bit}, {@link module:Layout.s32be|32-bit},\\n   *   {@link module:Layout.s40be|40-bit}, and {@link\\n   *   module:Layout.s48be|48-bit} representation ranges;\\n   * * 64-bit integral values that decode to an exact (if magnitude is\\n   *   less than 2^53) or nearby integral Number in {@link\\n   *   module:Layout.nu64|unsigned little-endian}, {@link\\n   *   module:Layout.nu64be|unsigned big-endian}, {@link\\n   *   module:Layout.ns64|signed little-endian}, and {@link\\n   *   module:Layout.ns64be|unsigned big-endian} encodings;\\n   * * 32-bit floating point values with {@link\\n   *   module:Layout.f32|little-endian} and {@link\\n   *   module:Layout.f32be|big-endian} representations;\\n   * * 64-bit floating point values with {@link\\n   *   module:Layout.f64|little-endian} and {@link\\n   *   module:Layout.f64be|big-endian} representations;\\n   * * {@link module:Layout.const|Constants} that take no space in the\\n   *   encoded expression.\\n   *\\n   * and for these aggregate types:\\n   * * {@link module:Layout.seq|Sequence}s of instances of a {@link\\n   *   module:Layout~Layout|Layout}, with JavaScript representation as\\n   *   an Array and constant or data-dependent {@link\\n   *   module:Layout~Sequence#count|length};\\n   * * {@link module:Layout.struct|Structure}s that aggregate a\\n   *   heterogeneous sequence of {@link module:Layout~Layout|Layout}\\n   *   instances, with JavaScript representation as an Object;\\n   * * {@link module:Layout.union|Union}s that support multiple {@link\\n   *   module:Layout~VariantLayout|variant layouts} over a fixed\\n   *   (padded) or variable (not padded) span of bytes, using an\\n   *   unsigned integer at the start of the data or a separate {@link\\n   *   module:Layout.unionLayoutDiscriminator|layout element} to\\n   *   determine which layout to use when interpreting the buffer\\n   *   contents;\\n   * * {@link module:Layout.bits|BitStructure}s that contain a sequence\\n   *   of individual {@link\\n   *   module:Layout~BitStructure#addField|BitField}s packed into an 8,\\n   *   16, 24, or 32-bit unsigned integer starting at the least- or\\n   *   most-significant bit;\\n   * * {@link module:Layout.cstr|C strings} of varying length;\\n   * * {@link module:Layout.blob|Blobs} of fixed- or variable-{@link\\n   *   module:Layout~Blob#length|length} raw data.\\n   *\\n   * All {@link module:Layout~Layout|Layout} instances are immutable\\n   * after construction, to prevent internal state from becoming\\n   * inconsistent.\\n   *\\n   * @local Layout\\n   * @local ExternalLayout\\n   * @local GreedyCount\\n   * @local OffsetLayout\\n   * @local UInt\\n   * @local UIntBE\\n   * @local Int\\n   * @local IntBE\\n   * @local NearUInt64\\n   * @local NearUInt64BE\\n   * @local NearInt64\\n   * @local NearInt64BE\\n   * @local Float\\n   * @local FloatBE\\n   * @local Double\\n   * @local DoubleBE\\n   * @local Sequence\\n   * @local Structure\\n   * @local UnionDiscriminator\\n   * @local UnionLayoutDiscriminator\\n   * @local Union\\n   * @local VariantLayout\\n   * @local BitStructure\\n   * @local BitField\\n   * @local Boolean\\n   * @local Blob\\n   * @local CString\\n   * @local Constant\\n   * @local bindConstructorLayout\\n   * @module Layout\\n   * @license MIT\\n   * @author Peter A. Bigot\\n   * @see {@link https://github.com/pabigot/buffer-layout|buffer-layout on GitHub}\\n   *)\\n\\nreact-dom/cjs/react-dom-server-legacy.browser.development.js:\\n  (**\\n   * @license React\\n   * react-dom-server-legacy.browser.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\nreact-dom/cjs/react-dom-server.browser.development.js:\\n  (**\\n   * @license React\\n   * react-dom-server.browser.development.js\\n   *\\n   * Copyright (c) Meta Platforms, Inc. and affiliates.\\n   *\\n   * This source code is licensed under the MIT license found in the\\n   * LICENSE file in the root directory of this source tree.\\n   *)\\n\\ncomlink/dist/esm/comlink.mjs:\\n  (**\\n   * @license\\n   * Copyright 2019 Google LLC\\n   * SPDX-License-Identifier: Apache-2.0\\n   *)\\n*/\\n</script></body></html>';\n","import { PAYWALL_TEMPLATE } from \"./gen/template\";\nimport { config } from \"../types/shared/evm/config\";\nimport { PaymentRequirements } from \"../types/verify\";\n\ninterface PaywallOptions {\n  amount: number;\n  paymentRequirements: PaymentRequirements[];\n  currentUrl: string;\n  testnet: boolean;\n  cdpClientKey?: string;\n  appName?: string;\n  appLogo?: string;\n  sessionTokenEndpoint?: string;\n}\n\n/**\n * Escapes a string for safe injection into JavaScript string literals\n *\n * @param str - The string to escape\n * @returns The escaped string\n */\nfunction escapeString(str: string): string {\n  return str\n    .replace(/\\\\/g, \"\\\\\\\\\")\n    .replace(/\"/g, '\\\\\"')\n    .replace(/'/g, \"\\\\'\")\n    .replace(/\\n/g, \"\\\\n\")\n    .replace(/\\r/g, \"\\\\r\")\n    .replace(/\\t/g, \"\\\\t\");\n}\n\n/**\n * Generates an HTML paywall page that allows users to pay for content access\n *\n * @param options - The options for generating the paywall\n * @param options.amount - The amount to be paid in USD\n * @param options.paymentRequirements - The payment requirements for the content\n * @param options.currentUrl - The URL of the content being accessed\n * @param options.testnet - Whether to use testnet or mainnet\n * @param options.cdpClientKey - CDP client API key for OnchainKit\n * @param options.appName - The name of the application to display in the wallet connection modal\n * @param options.appLogo - The logo of the application to display in the wallet connection modal\n * @param options.sessionTokenEndpoint - The API endpoint for generating session tokens for Onramp authentication\n * @returns An HTML string containing the paywall page\n */\nexport function getPaywallHtml({\n  amount,\n  testnet,\n  paymentRequirements,\n  currentUrl,\n  cdpClientKey,\n  appName,\n  appLogo,\n  sessionTokenEndpoint,\n}: PaywallOptions): string {\n  const logOnTestnet = testnet\n    ? \"console.log('Payment requirements initialized:', window.x402);\"\n    : \"\";\n\n  // Create the configuration script to inject with proper escaping\n  const configScript = `\n  <script>\n    window.x402 = {\n      amount: ${amount},\n      paymentRequirements: ${JSON.stringify(paymentRequirements)},\n      testnet: ${testnet},\n      currentUrl: \"${escapeString(currentUrl)}\",\n      config: {\n        chainConfig: ${JSON.stringify(config)},\n      },\n      cdpClientKey: \"${escapeString(cdpClientKey || \"\")}\",\n      appName: \"${escapeString(appName || \"\")}\",\n      appLogo: \"${escapeString(appLogo || \"\")}\",\n      sessionTokenEndpoint: \"${escapeString(sessionTokenEndpoint || \"\")}\",\n    };\n    ${logOnTestnet}\n  </script>`;\n\n  // Inject the configuration script into the head\n  return PAYWALL_TEMPLATE.replace(\"</head>\", `${configScript}\\n</head>`);\n}\n"],"mappings":";;;;;;AAIO,IAAM,mBACX;;;ACgBF,SAAS,aAAa,KAAqB;AACzC,SAAO,IACJ,QAAQ,OAAO,MAAM,EACrB,QAAQ,MAAM,KAAK,EACnB,QAAQ,MAAM,KAAK,EACnB,QAAQ,OAAO,KAAK,EACpB,QAAQ,OAAO,KAAK,EACpB,QAAQ,OAAO,KAAK;AACzB;AAgBO,SAAS,eAAe;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA2B;AACzB,QAAM,eAAe,UACjB,mEACA;AAGJ,QAAM,eAAe;AAAA;AAAA;AAAA,gBAGP,MAAM;AAAA,6BACO,KAAK,UAAU,mBAAmB,CAAC;AAAA,iBAC/C,OAAO;AAAA,qBACH,aAAa,UAAU,CAAC;AAAA;AAAA,uBAEtB,KAAK,UAAU,MAAM,CAAC;AAAA;AAAA,uBAEtB,aAAa,gBAAgB,EAAE,CAAC;AAAA,kBACrC,aAAa,WAAW,EAAE,CAAC;AAAA,kBAC3B,aAAa,WAAW,EAAE,CAAC;AAAA,+BACd,aAAa,wBAAwB,EAAE,CAAC;AAAA;AAAA,MAEjE,YAAY;AAAA;AAIhB,SAAO,iBAAiB,QAAQ,WAAW,GAAG,YAAY;AAAA,QAAW;AACvE;","names":[]}