From 4fc966eaa7e790d4d2e6bf4651f6c264340658c3 Mon Sep 17 00:00:00 2001 From: Michael Ruoss Date: Fri, 13 Dec 2024 21:45:13 +0100 Subject: [PATCH] publish v2.0.0 --- CHANGELOG.md | 4 +++- README.md | 15 +++++---------- lib/assets/get_cell/build/main.css | 2 +- lib/assets/get_cell/build/main.js | 14 +++++++------- mix.exs | 2 +- mix.lock | 1 + 6 files changed, 18 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28df351..edf197f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,11 +12,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [2.0.0] - 2024-12-13 + ## Changed -* Use [`@livebook/kino-bundler`](https://github.com/livebook-dev/kino-bundler) to bundle the JS/CSS. [#365](https://github.com/mruoss/kino_k8s/pull/365) * Switch Kubernetes Client to [`kubereq`](https://github.com/mruoss/kubereq) - [#398](https://github.com/mruoss/kino_k8s/pull/398) * Consolidate all smart cells into a single cell - [#398](https://github.com/mruoss/kino_k8s/pull/398) +* Use [`@livebook/kino-bundler`](https://github.com/livebook-dev/kino-bundler) to bundle the JS/CSS. [#365](https://github.com/mruoss/kino_k8s/pull/365) ## [1.2.4] - 2024-08-21 diff --git a/README.md b/README.md index 3001483..55499be 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ A Livebook Kino for learning to use the k8s Elixir library. Install the latest 1.x version: ```elixir -Mix.install([{:kino_k8s, "~> 1.0"}]) +Mix.install([{:kino_k8s, "~> 2.0"}]) ``` To install the latest from `main` branch: @@ -25,16 +25,11 @@ Mix.install([{:kino_k8s, github: "mruoss/kino_k8s"}]) ## Smart Cells -`kino_k8s` brings the following Smart Cells to your [Livebook](https://livebook.dev): +`kino_k8s` brings the **Kubernetes Client** Smart Cell to your +[Livebook](https://livebook.dev). It lets you perform a set of operations on +your Kubernetes cluster and learn how to work with the +[`kubereq`](https://github.com/mruoss/kubereq) library -- **Cluster Connection** - Connect to a Kubernetes Cluster -- **Get / List / Watch Resources** -- **Create / Update / Apply Resource** - Modify resources in your cluster -- **Connect to Pod (Exec/Logs)** - Renders a terminal using xterm.js (Formerly `kino_k8s_term`). - -The smart cells require a connection to a Kubernetes Cluster in form of a -`%K8s.Conn{}` object. To add such a connection to your Livebook, you can add -the `Cluster Connection` smart cell before adding any other smart cells. ## Development diff --git a/lib/assets/get_cell/build/main.css b/lib/assets/get_cell/build/main.css index 72f8f05..4ab846c 100644 --- a/lib/assets/get_cell/build/main.css +++ b/lib/assets/get_cell/build/main.css @@ -1 +1 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(101 131 255 / .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(101 131 255 / .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:#e1e8f0}: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;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:JetBrains Mono,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:#91a4b7}input::placeholder,textarea::placeholder{opacity:1;color:#91a4b7}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}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.inset-y-0{top:0;bottom:0}.left-0{left:0}.right-0{right:0}.mb-1{margin-bottom:.25rem}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.h-5{height:1.25rem}.h-6{height:1.5rem}.max-h-36{max-height:9rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.min-w-full{min-width:100%}.max-w-full{max-width:100%}.flex-none{flex:none}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row{flex-direction:row}.items-center{align-items:center}.items-baseline{align-items:baseline}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.gap-y-3{row-gap:.75rem}.overflow-auto{overflow:auto}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity))}.border-green-800{--tw-border-opacity: 1;border-color:rgb(13 98 25 / var(--tw-border-opacity))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(188 18 39 / var(--tw-border-opacity))}.border-b-gray-300{--tw-border-opacity: 1;border-bottom-color:rgb(202 213 224 / var(--tw-border-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:rgb(210 231 209 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity))}.bg-\[length\:10px\]{background-size:10px}.bg-\[center_right_10px\]{background-position:center right 10px}.bg-no-repeat{background-repeat:no-repeat}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.pl-3{padding-left:.75rem}.pl-9{padding-left:2.25rem}.pr-1{padding-right:.25rem}.pr-5{padding-right:1.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.text-gray-400{--tw-text-opacity: 1;color:rgb(145 164 183 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(13 98 25 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(226 71 77 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(188 18 39 / var(--tw-text-opacity))}.opacity-60{opacity:.6}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(101 131 255 / var(--tw-border-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(101 131 255 / var(--tw-ring-opacity))} +*,: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(101 131 255 / .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(101 131 255 / .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:#e1e8f0}: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;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:JetBrains Mono,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:#91a4b7}input::placeholder,textarea::placeholder{opacity:1;color:#91a4b7}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}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.inset-y-0{top:0;bottom:0}.left-0{left:0}.right-0{right:0}.mb-1{margin-bottom:.25rem}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.h-5{height:1.25rem}.h-6{height:1.5rem}.max-h-36{max-height:9rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.min-w-full{min-width:100%}.max-w-full{max-width:100%}.flex-none{flex:none}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row{flex-direction:row}.items-center{align-items:center}.items-baseline{align-items:baseline}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.gap-y-3{row-gap:.75rem}.overflow-auto{overflow:auto}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity, 1))}.border-green-800{--tw-border-opacity: 1;border-color:rgb(13 98 25 / var(--tw-border-opacity, 1))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(188 18 39 / var(--tw-border-opacity, 1))}.border-b-gray-300{--tw-border-opacity: 1;border-bottom-color:rgb(202 213 224 / var(--tw-border-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.bg-green-200{--tw-bg-opacity: 1;background-color:rgb(210 231 209 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity, 1))}.bg-\[length\:10px\]{background-size:10px}.bg-\[center_right_10px\]{background-position:center right 10px}.bg-no-repeat{background-repeat:no-repeat}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.pl-3{padding-left:.75rem}.pl-9{padding-left:2.25rem}.pr-1{padding-right:.25rem}.pr-5{padding-right:1.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.text-gray-400{--tw-text-opacity: 1;color:rgb(145 164 183 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(13 98 25 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(226 71 77 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(188 18 39 / var(--tw-text-opacity, 1))}.opacity-60{opacity:.6}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(101 131 255 / var(--tw-border-opacity, 1))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(101 131 255 / var(--tw-ring-opacity, 1))} diff --git a/lib/assets/get_cell/build/main.js b/lib/assets/get_cell/build/main.js index a0e73be..2031824 100644 --- a/lib/assets/get_cell/build/main.js +++ b/lib/assets/get_cell/build/main.js @@ -1,11 +1,11 @@ -var ot=Object.create;var G5=Object.defineProperty,nt=Object.defineProperties,ct=Object.getOwnPropertyDescriptor,mt=Object.getOwnPropertyDescriptors,wt=Object.getOwnPropertyNames,h4=Object.getOwnPropertySymbols,ht=Object.getPrototypeOf,j5=Object.prototype.hasOwnProperty,V3=Object.prototype.propertyIsEnumerable;var L3=(e,t,l)=>t in e?G5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,I1=(e,t)=>{for(var l in t||(t={}))j5.call(t,l)&&L3(e,l,t[l]);if(h4)for(var l of h4(t))V3.call(t,l)&&L3(e,l,t[l]);return e},d2=(e,t)=>nt(e,mt(t));var b5=(e,t)=>{var l={};for(var i in e)j5.call(e,i)&&t.indexOf(i)<0&&(l[i]=e[i]);if(e!=null&&h4)for(var i of h4(e))t.indexOf(i)<0&&V3.call(e,i)&&(l[i]=e[i]);return l};var e2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ht=(e,t,l,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of wt(t))!j5.call(e,r)&&r!==l&&G5(e,r,{get:()=>t[r],enumerable:!(i=ct(t,r))||i.enumerable});return e};var J=(e,t,l)=>(l=e!=null?ot(ht(e)):{},Ht(t||!e||!e.__esModule?G5(l,"default",{value:e,enumerable:!0}):l,e));var B3=e2(N=>{"use strict";var v0=Symbol.for("react.element"),Lt=Symbol.for("react.portal"),Vt=Symbol.for("react.fragment"),gt=Symbol.for("react.strict_mode"),vt=Symbol.for("react.profiler"),Mt=Symbol.for("react.provider"),xt=Symbol.for("react.context"),Zt=Symbol.for("react.forward_ref"),dt=Symbol.for("react.suspense"),pt=Symbol.for("react.memo"),ut=Symbol.for("react.lazy"),g3=Symbol.iterator;function Et(e){return e===null||typeof e!="object"?null:(e=g3&&e[g3]||e["@@iterator"],typeof e=="function"?e:null)}var x3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z3=Object.assign,d3={};function I2(e,t,l){this.props=e,this.context=t,this.refs=d3,this.updater=l||x3}I2.prototype.isReactComponent={};I2.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)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")};I2.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function p3(){}p3.prototype=I2.prototype;function K5(e,t,l){this.props=e,this.context=t,this.refs=d3,this.updater=l||x3}var $5=K5.prototype=new p3;$5.constructor=K5;Z3($5,I2.prototype);$5.isPureReactComponent=!0;var v3=Array.isArray,u3=Object.prototype.hasOwnProperty,X5={current:null},E3={key:!0,ref:!0,__self:!0,__source:!0};function N3(e,t,l){var i,r={},s=null,C=null;if(t!=null)for(i in t.ref!==void 0&&(C=t.ref),t.key!==void 0&&(s=""+t.key),t)u3.call(t,i)&&!E3.hasOwnProperty(i)&&(r[i]=t[i]);var a=arguments.length-2;if(a===1)r.children=l;else if(1{"use strict";R3.exports=B3()});var U3=e2(z=>{"use strict";function t9(e,t){var l=e.length;e.push(t);e:for(;0>>1,r=e[i];if(0>>1;ig4(a,l))og4(c,a)?(e[i]=c,e[o]=l,i=o):(e[i]=a,e[C]=l,i=C);else if(og4(c,l))e[i]=c,e[o]=l,i=o;else break e}}return t}function g4(e,t){var l=e.sortIndex-t.sortIndex;return l!==0?l:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(z3=performance,z.unstable_now=function(){return z3.now()}):(J5=Date,F3=J5.now(),z.unstable_now=function(){return J5.now()-F3});var z3,J5,F3,P1=[],t2=[],zt=1,x1=null,q=3,x4=!1,p2=!1,x0=!1,k3=typeof setTimeout=="function"?setTimeout:null,P3=typeof clearTimeout=="function"?clearTimeout:null,y3=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function l9(e){for(var t=f1(t2);t!==null;){if(t.callback===null)M4(t2);else if(t.startTime<=e)M4(t2),t.sortIndex=t.expirationTime,t9(P1,t);else break;t=f1(t2)}}function i9(e){if(x0=!1,l9(e),!p2)if(f1(P1)!==null)p2=!0,s9(r9);else{var t=f1(t2);t!==null&&C9(i9,t.startTime-e)}}function r9(e,t){p2=!1,x0&&(x0=!1,P3(Z0),Z0=-1),x4=!0;var l=q;try{for(l9(t),x1=f1(P1);x1!==null&&(!(x1.expirationTime>t)||e&&!A3());){var i=x1.callback;if(typeof i=="function"){x1.callback=null,q=x1.priorityLevel;var r=i(x1.expirationTime<=t);t=z.unstable_now(),typeof r=="function"?x1.callback=r:x1===f1(P1)&&M4(P1),l9(t)}else M4(P1);x1=f1(P1)}if(x1!==null)var s=!0;else{var C=f1(t2);C!==null&&C9(i9,C.startTime-t),s=!1}return s}finally{x1=null,q=l,x4=!1}}var Z4=!1,v4=null,Z0=-1,T3=5,D3=-1;function A3(){return!(z.unstable_now()-D3e||125i?(e.sortIndex=l,t9(t2,e),f1(P1)===null&&e===f1(t2)&&(x0?(P3(Z0),Z0=-1):x0=!0,C9(i9,l-i))):(e.sortIndex=r,t9(P1,e),p2||x4||(p2=!0,s9(r9))),e};z.unstable_shouldYield=A3;z.unstable_wrapCallback=function(e){var t=q;return function(){var l=q;q=t;try{return e.apply(this,arguments)}finally{q=l}}}});var I3=e2((qi,_3)=>{"use strict";_3.exports=U3()});var je=e2(M1=>{"use strict";var Ft=o1(),g1=I3();function V(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,l=1;lt}return!1}function a1(e,t,l,i,r,s,C){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=l,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=C}var X={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){X[e]=new a1(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];X[t]=new a1(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){X[e]=new a1(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){X[e]=new a1(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){X[e]=new a1(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){X[e]=new a1(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){X[e]=new a1(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){X[e]=new a1(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){X[e]=new a1(e,5,!1,e.toLowerCase(),null,!1,!1)});var Z7=/[\-:]([a-z])/g;function d7(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Z7,d7);X[t]=new a1(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Z7,d7);X[t]=new a1(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Z7,d7);X[t]=new a1(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){X[e]=new a1(e,1,!1,e.toLowerCase(),null,!1,!1)});X.xlinkHref=new a1("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){X[e]=new a1(e,1,!1,e.toLowerCase(),null,!0,!0)});function p7(e,t,l,i){var r=X.hasOwnProperty(t)?X[t]:null;(r!==null?r.type!==0:i||!(2t in e?G5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,_1=(e,t)=>{for(var l in t||(t={}))j5.call(t,l)&&H3(e,l,t[l]);if(h4)for(var l of h4(t))V3.call(t,l)&&H3(e,l,t[l]);return e},d2=(e,t)=>nt(e,mt(t));var b5=(e,t)=>{var l={};for(var i in e)j5.call(e,i)&&t.indexOf(i)<0&&(l[i]=e[i]);if(e!=null&&h4)for(var i of h4(e))t.indexOf(i)<0&&V3.call(e,i)&&(l[i]=e[i]);return l};var e2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Lt=(e,t,l,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of wt(t))!j5.call(e,r)&&r!==l&&G5(e,r,{get:()=>t[r],enumerable:!(i=ct(t,r))||i.enumerable});return e};var J=(e,t,l)=>(l=e!=null?ot(ht(e)):{},Lt(t||!e||!e.__esModule?G5(l,"default",{value:e,enumerable:!0}):l,e));var B3=e2(N=>{"use strict";var v0=Symbol.for("react.element"),Ht=Symbol.for("react.portal"),Vt=Symbol.for("react.fragment"),gt=Symbol.for("react.strict_mode"),vt=Symbol.for("react.profiler"),Mt=Symbol.for("react.provider"),Zt=Symbol.for("react.context"),xt=Symbol.for("react.forward_ref"),dt=Symbol.for("react.suspense"),pt=Symbol.for("react.memo"),ut=Symbol.for("react.lazy"),g3=Symbol.iterator;function Et(e){return e===null||typeof e!="object"?null:(e=g3&&e[g3]||e["@@iterator"],typeof e=="function"?e:null)}var Z3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x3=Object.assign,d3={};function _2(e,t,l){this.props=e,this.context=t,this.refs=d3,this.updater=l||Z3}_2.prototype.isReactComponent={};_2.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)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")};_2.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function p3(){}p3.prototype=_2.prototype;function K5(e,t,l){this.props=e,this.context=t,this.refs=d3,this.updater=l||Z3}var $5=K5.prototype=new p3;$5.constructor=K5;x3($5,_2.prototype);$5.isPureReactComponent=!0;var v3=Array.isArray,u3=Object.prototype.hasOwnProperty,X5={current:null},E3={key:!0,ref:!0,__self:!0,__source:!0};function N3(e,t,l){var i,r={},C=null,s=null;if(t!=null)for(i in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(C=""+t.key),t)u3.call(t,i)&&!E3.hasOwnProperty(i)&&(r[i]=t[i]);var a=arguments.length-2;if(a===1)r.children=l;else if(1{"use strict";R3.exports=B3()});var U3=e2(z=>{"use strict";function t9(e,t){var l=e.length;e.push(t);e:for(;0>>1,r=e[i];if(0>>1;ig4(a,l))og4(c,a)?(e[i]=c,e[o]=l,i=o):(e[i]=a,e[s]=l,i=s);else if(og4(c,l))e[i]=c,e[o]=l,i=o;else break e}}return t}function g4(e,t){var l=e.sortIndex-t.sortIndex;return l!==0?l:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(z3=performance,z.unstable_now=function(){return z3.now()}):(J5=Date,F3=J5.now(),z.unstable_now=function(){return J5.now()-F3});var z3,J5,F3,P1=[],t2=[],zt=1,Z1=null,q=3,Z4=!1,p2=!1,Z0=!1,k3=typeof setTimeout=="function"?setTimeout:null,P3=typeof clearTimeout=="function"?clearTimeout:null,y3=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function l9(e){for(var t=f1(t2);t!==null;){if(t.callback===null)M4(t2);else if(t.startTime<=e)M4(t2),t.sortIndex=t.expirationTime,t9(P1,t);else break;t=f1(t2)}}function i9(e){if(Z0=!1,l9(e),!p2)if(f1(P1)!==null)p2=!0,C9(r9);else{var t=f1(t2);t!==null&&s9(i9,t.startTime-e)}}function r9(e,t){p2=!1,Z0&&(Z0=!1,P3(x0),x0=-1),Z4=!0;var l=q;try{for(l9(t),Z1=f1(P1);Z1!==null&&(!(Z1.expirationTime>t)||e&&!A3());){var i=Z1.callback;if(typeof i=="function"){Z1.callback=null,q=Z1.priorityLevel;var r=i(Z1.expirationTime<=t);t=z.unstable_now(),typeof r=="function"?Z1.callback=r:Z1===f1(P1)&&M4(P1),l9(t)}else M4(P1);Z1=f1(P1)}if(Z1!==null)var C=!0;else{var s=f1(t2);s!==null&&s9(i9,s.startTime-t),C=!1}return C}finally{Z1=null,q=l,Z4=!1}}var x4=!1,v4=null,x0=-1,T3=5,D3=-1;function A3(){return!(z.unstable_now()-D3e||125i?(e.sortIndex=l,t9(t2,e),f1(P1)===null&&e===f1(t2)&&(Z0?(P3(x0),x0=-1):Z0=!0,s9(i9,l-i))):(e.sortIndex=r,t9(P1,e),p2||Z4||(p2=!0,C9(r9))),e};z.unstable_shouldYield=A3;z.unstable_wrapCallback=function(e){var t=q;return function(){var l=q;q=t;try{return e.apply(this,arguments)}finally{q=l}}}});var _3=e2((qi,I3)=>{"use strict";I3.exports=U3()});var je=e2(M1=>{"use strict";var Ft=o1(),g1=_3();function V(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,l=1;lt}return!1}function a1(e,t,l,i,r,C,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=l,this.propertyName=e,this.type=t,this.sanitizeURL=C,this.removeEmptyString=s}var X={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){X[e]=new a1(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];X[t]=new a1(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){X[e]=new a1(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){X[e]=new a1(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){X[e]=new a1(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){X[e]=new a1(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){X[e]=new a1(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){X[e]=new a1(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){X[e]=new a1(e,5,!1,e.toLowerCase(),null,!1,!1)});var x7=/[\-:]([a-z])/g;function d7(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(x7,d7);X[t]=new a1(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(x7,d7);X[t]=new a1(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(x7,d7);X[t]=new a1(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){X[e]=new a1(e,1,!1,e.toLowerCase(),null,!1,!1)});X.xlinkHref=new a1("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){X[e]=new a1(e,1,!1,e.toLowerCase(),null,!0,!0)});function p7(e,t,l,i){var r=X.hasOwnProperty(t)?X[t]:null;(r!==null?r.type!==0:i||!(2a||r[C]!==s[a]){var o=` -`+r[C].replace(" at new "," at ");return e.displayName&&o.includes("")&&(o=o.replace("",e.displayName)),o}while(1<=C&&0<=a);break}}}finally{o9=!1,Error.prepareStackTrace=l}return(e=e?e.displayName||e.name:"")?z0(e):""}function Tt(e){switch(e.tag){case 5:return z0(e.type);case 16:return z0("Lazy");case 13:return z0("Suspense");case 19:return z0("SuspenseList");case 0:case 2:case 15:return e=n9(e.type,!1),e;case 11:return e=n9(e.type.render,!1),e;case 1:return e=n9(e.type,!0),e;default:return""}}function S9(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j2:return"Fragment";case G2:return"Portal";case z9:return"Profiler";case u7:return"StrictMode";case F9:return"Suspense";case y9:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X8:return(e.displayName||"Context")+".Consumer";case $8:return(e._context.displayName||"Context")+".Provider";case E7:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case N7:return t=e.displayName||null,t!==null?t:S9(e.type)||"Memo";case i2:t=e._payload,e=e._init;try{return S9(e(t))}catch(l){}}return null}function Dt(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return S9(t);case 8:return t===u7?"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 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function g2(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function J8(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function At(e){var t=J8(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof l!="undefined"&&typeof l.get=="function"&&typeof l.set=="function"){var r=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(C){i=""+C,s.call(this,C)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(C){i=""+C},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function p4(e){e._valueTracker||(e._valueTracker=At(e))}function q8(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),i="";return e&&(i=J8(e)?e.checked?"true":"false":e.value),e=i,e!==l?(t.setValue(e),!0):!1}function Y4(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function k9(e,t){var l=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l!=null?l:e._wrapperState.initialChecked})}function j3(e,t){var l=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;l=g2(t.value!=null?t.value:l),e._wrapperState={initialChecked:i,initialValue:l,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function e6(e,t){t=t.checked,t!=null&&p7(e,"checked",t,!1)}function P9(e,t){e6(e,t);var l=g2(t.value),i=t.type;if(l!=null)i==="number"?(l===0&&e.value===""||e.value!=l)&&(e.value=""+l):e.value!==""+l&&(e.value=""+l);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?T9(e,t.type,l):t.hasOwnProperty("defaultValue")&&T9(e,t.type,g2(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function b3(e,t,l){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,l||t===e.value||(e.value=t),e.defaultValue=t}l=e.name,l!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,l!==""&&(e.name=l)}function T9(e,t,l){(t!=="number"||Y4(e.ownerDocument)!==e)&&(l==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+l&&(e.defaultValue=""+l))}var F0=Array.isArray;function l0(e,t,l,i){if(e=e.options,t){t={};for(var r=0;r"+t.valueOf().toString()+"",t=u4.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function G0(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var k0={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ut=["Webkit","ms","Moz","O"];Object.keys(k0).forEach(function(e){Ut.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),k0[t]=k0[e]})});function r6(e,t,l){return t==null||typeof t=="boolean"||t===""?"":l||typeof t!="number"||t===0||k0.hasOwnProperty(e)&&k0[e]?(""+t).trim():t+"px"}function s6(e,t){e=e.style;for(var l in t)if(t.hasOwnProperty(l)){var i=l.indexOf("--")===0,r=r6(l,t[l],i);l==="float"&&(l="cssFloat"),i?e.setProperty(l,r):e[l]=r}}var _t=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function U9(e,t){if(t){if(_t[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function _9(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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":return!1;default:return!0}}var I9=null;function f7(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var O9=null,i0=null,r0=null;function $3(e){if(e=o4(e)){if(typeof O9!="function")throw Error(V(280));var t=e.stateNode;t&&(t=E5(t),O9(e.stateNode,e.type,t))}}function C6(e){i0?r0?r0.push(e):r0=[e]:i0=e}function a6(){if(i0){var e=i0,t=r0;if(r0=i0=null,$3(e),t)for(e=0;e>>=0,e===0?32:31-(Yt(e)/Jt|0)|0}var E4=64,N4=4194304;function y0(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function t5(e,t){var l=e.pendingLanes;if(l===0)return 0;var i=0,r=e.suspendedLanes,s=e.pingedLanes,C=l&268435455;if(C!==0){var a=C&~r;a!==0?i=y0(a):(s&=C,s!==0&&(i=y0(s)))}else C=l&~r,C!==0?i=y0(C):s!==0&&(i=y0(s));if(i===0)return 0;if(t!==0&&t!==i&&!(t&r)&&(r=i&-i,s=t&-t,r>=s||r===16&&(s&4194240)!==0))return t;if(i&4&&(i|=l&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0l;l++)t.push(e);return t}function C4(e,t,l){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-y1(t),e[t]=l}function ll(e,t){var l=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0=T0),r8=" ",s8=!1;function f6(e,t){switch(e){case"keyup":return zl.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function B6(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var b2=!1;function yl(e,t){switch(e){case"compositionend":return B6(t);case"keypress":return t.which!==32?null:(s8=!0,r8);case"textInput":return e=t.data,e===r8&&s8?null:e;default:return null}}function Sl(e,t){if(b2)return e==="compositionend"||!P7&&f6(e,t)?(e=E6(),O4=y7=a2=null,b2=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=o8(l)}}function y6(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?y6(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function S6(){for(var e=window,t=Y4();t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch(i){l=!1}if(l)e=t.contentWindow;else break;t=Y4(e.document)}return t}function T7(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ol(e){var t=S6(),l=e.focusedElem,i=e.selectionRange;if(t!==l&&l&&l.ownerDocument&&y6(l.ownerDocument.documentElement,l)){if(i!==null&&T7(l)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in l)l.selectionStart=t,l.selectionEnd=Math.min(e,l.value.length);else if(e=(t=l.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=l.textContent.length,s=Math.min(i.start,r);i=i.end===void 0?s:Math.min(i.end,r),!e.extend&&s>i&&(r=i,i=s,s=r),r=n8(l,s);var C=n8(l,i);r&&C&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==C.node||e.focusOffset!==C.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),s>i?(e.addRange(t),e.extend(C.node,C.offset)):(t.setEnd(C.node,C.offset),e.addRange(t)))}}for(t=[],e=l;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l=document.documentMode,Q2=null,K9=null,A0=null,$9=!1;function c8(e,t,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;$9||Q2==null||Q2!==Y4(i)||(i=Q2,"selectionStart"in i&&T7(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),A0&&X0(A0,i)||(A0=i,i=r5(K9,"onSelect"),0X2||(e.current=t7[X2],t7[X2]=null,X2--)}function F(e,t){X2++,t7[X2]=e.current,e.current=t}var v2={},i1=x2(v2),m1=x2(!1),F2=v2;function n0(e,t){var l=e.type.contextTypes;if(!l)return v2;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r={},s;for(s in l)r[s]=t[s];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function w1(e){return e=e.childContextTypes,e!=null}function C5(){S(m1),S(i1)}function M8(e,t,l){if(i1.current!==v2)throw Error(V(168));F(i1,t),F(m1,l)}function O6(e,t,l){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return l;i=i.getChildContext();for(var r in i)if(!(r in t))throw Error(V(108,Dt(e)||"Unknown",r));return D({},l,i)}function a5(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||v2,F2=i1.current,F(i1,e),F(m1,m1.current),!0}function x8(e,t,l){var i=e.stateNode;if(!i)throw Error(V(169));l?(e=O6(e,t,F2),i.__reactInternalMemoizedMergedChildContext=e,S(m1),S(i1),F(i1,e)):S(m1),F(m1,l)}var W1=null,N5=!1,x9=!1;function W6(e){W1===null?W1=[e]:W1.push(e)}function Jl(e){N5=!0,W6(e)}function Z2(){if(!x9&&W1!==null){x9=!0;var e=0,t=R;try{var l=W1;for(R=1;e>=C,r-=C,G1=1<<32-y1(t)+r|l<E?(G=u,u=null):G=u.sibling;var B=H(m,u,w[E],g);if(B===null){u===null&&(u=G);break}e&&u&&B.alternate===null&&t(m,u),n=s(B,n,E),p===null?d=B:p.sibling=B,p=B,u=G}if(E===w.length)return l(m,u),k&&u2(m,E),d;if(u===null){for(;EE?(G=u,u=null):G=u.sibling;var q1=H(m,u,B.value,g);if(q1===null){u===null&&(u=G);break}e&&u&&q1.alternate===null&&t(m,u),n=s(q1,n,E),p===null?d=q1:p.sibling=q1,p=q1,u=G}if(B.done)return l(m,u),k&&u2(m,E),d;if(u===null){for(;!B.done;E++,B=w.next())B=L(m,B.value,g),B!==null&&(n=s(B,n,E),p===null?d=B:p.sibling=B,p=B);return k&&u2(m,E),d}for(u=i(m,u);!B.done;E++,B=w.next())B=v(u,m,E,B.value,g),B!==null&&(e&&B.alternate!==null&&u.delete(B.key===null?E:B.key),n=s(B,n,E),p===null?d=B:p.sibling=B,p=B);return e&&u.forEach(function(at){return t(m,at)}),k&&u2(m,E),d}function U(m,n,w,g){if(typeof w=="object"&&w!==null&&w.type===j2&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case d4:e:{for(var d=w.key,p=n;p!==null;){if(p.key===d){if(d=w.type,d===j2){if(p.tag===7){l(m,p.sibling),n=r(p,w.props.children),n.return=m,m=n;break e}}else if(p.elementType===d||typeof d=="object"&&d!==null&&d.$$typeof===i2&&p8(d)===p.type){l(m,p.sibling),n=r(p,w.props),n.ref=N0(m,p,w),n.return=m,m=n;break e}l(m,p);break}else t(m,p);p=p.sibling}w.type===j2?(n=z2(w.props.children,m.mode,g,w.key),n.return=m,m=n):(g=X4(w.type,w.key,w.props,null,m.mode,g),g.ref=N0(m,n,w),g.return=m,m=g)}return C(m);case G2:e:{for(p=w.key;n!==null;){if(n.key===p)if(n.tag===4&&n.stateNode.containerInfo===w.containerInfo&&n.stateNode.implementation===w.implementation){l(m,n.sibling),n=r(n,w.children||[]),n.return=m,m=n;break e}else{l(m,n);break}else t(m,n);n=n.sibling}n=B9(w,m.mode,g),n.return=m,m=n}return C(m);case i2:return p=w._init,U(m,n,p(w._payload),g)}if(F0(w))return x(m,n,w,g);if(d0(w))return Z(m,n,w,g);D4(m,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,n!==null&&n.tag===6?(l(m,n.sibling),n=r(n,w),n.return=m,m=n):(l(m,n),n=f9(w,m.mode,g),n.return=m,m=n),C(m)):l(m,n)}return U}var m0=Q6(!0),K6=Q6(!1),c5=x2(null),m5=null,q2=null,_7=null;function I7(){_7=q2=m5=null}function O7(e){var t=c5.current;S(c5),e._currentValue=t}function r7(e,t,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===l)break;e=e.return}}function C0(e,t){m5=e,_7=q2=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(c1=!0),e.firstContext=null)}function E1(e){var t=e._currentValue;if(_7!==e)if(e={context:e,memoizedValue:t,next:null},q2===null){if(m5===null)throw Error(V(308));q2=e,m5.dependencies={lanes:0,firstContext:e}}else q2=q2.next=e;return t}var f2=null;function W7(e){f2===null?f2=[e]:f2.push(e)}function $6(e,t,l,i){var r=t.interleaved;return r===null?(l.next=l,W7(t)):(l.next=r.next,r.next=l),t.interleaved=l,$1(e,i)}function $1(e,t){e.lanes|=t;var l=e.alternate;for(l!==null&&(l.lanes|=t),l=e,e=e.return;e!==null;)e.childLanes|=t,l=e.alternate,l!==null&&(l.childLanes|=t),l=e,e=e.return;return l.tag===3?l.stateNode:null}var r2=!1;function G7(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function X6(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function b1(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function h2(e,t,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,f&2){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,$1(e,l)}return r=i.interleaved,r===null?(t.next=t,W7(i)):(t.next=r.next,r.next=t),i.interleaved=t,$1(e,l)}function G4(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,R7(e,l)}}function u8(e,t){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var r=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var C={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};s===null?r=s=C:s=s.next=C,l=l.next}while(l!==null);s===null?r=s=t:s=s.next=t}else r=s=t;l={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:i.shared,effects:i.effects},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}function w5(e,t,l,i){var r=e.updateQueue;r2=!1;var s=r.firstBaseUpdate,C=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var o=a,c=o.next;o.next=null,C===null?s=c:C.next=c,C=o;var h=e.alternate;h!==null&&(h=h.updateQueue,a=h.lastBaseUpdate,a!==C&&(a===null?h.firstBaseUpdate=c:a.next=c,h.lastBaseUpdate=o))}if(s!==null){var L=r.baseState;C=0,h=c=o=null,a=s;do{var H=a.lane,v=a.eventTime;if((i&H)===H){h!==null&&(h=h.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,Z=a;switch(H=t,v=l,Z.tag){case 1:if(x=Z.payload,typeof x=="function"){L=x.call(v,L,H);break e}L=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=Z.payload,H=typeof x=="function"?x.call(v,L,H):x,H==null)break e;L=D({},L,H);break e;case 2:r2=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,H=r.effects,H===null?r.effects=[a]:H.push(a))}else v={eventTime:v,lane:H,tag:a.tag,payload:a.payload,callback:a.callback,next:null},h===null?(c=h=v,o=L):h=h.next=v,C|=H;if(a=a.next,a===null){if(a=r.shared.pending,a===null)break;H=a,a=H.next,H.next=null,r.lastBaseUpdate=H,r.shared.pending=null}}while(!0);if(h===null&&(o=L),r.baseState=o,r.firstBaseUpdate=c,r.lastBaseUpdate=h,t=r.shared.interleaved,t!==null){r=t;do C|=r.lane,r=r.next;while(r!==t)}else s===null&&(r.shared.lanes=0);k2|=C,e.lanes=C,e.memoizedState=L}}function E8(e,t,l){if(e=t.effects,t.effects=null,e!==null)for(t=0;tl?l:4,e(!0);var i=d9.transition;d9.transition={};try{e(!1),t()}finally{R=l,d9.transition=i}}function he(){return N1().memoizedState}function li(e,t,l){var i=L2(e);if(l={lane:i,action:l,hasEagerState:!1,eagerState:null,next:null},He(e))Le(t,l);else if(l=$6(e,t,l,i),l!==null){var r=C1();S1(l,e,i,r),Ve(l,t,i)}}function ii(e,t,l){var i=L2(e),r={lane:i,action:l,hasEagerState:!1,eagerState:null,next:null};if(He(e))Le(t,r);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var C=t.lastRenderedState,a=s(C,l);if(r.hasEagerState=!0,r.eagerState=a,k1(a,C)){var o=t.interleaved;o===null?(r.next=r,W7(t)):(r.next=o.next,o.next=r),t.interleaved=r;return}}catch(c){}finally{}l=$6(e,t,r,i),l!==null&&(r=C1(),S1(l,e,i,r),Ve(l,t,i))}}function He(e){var t=e.alternate;return e===T||t!==null&&t===T}function Le(e,t){U0=H5=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Ve(e,t,l){if(l&4194240){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,R7(e,l)}}var L5={readContext:E1,useCallback:e1,useContext:e1,useEffect:e1,useImperativeHandle:e1,useInsertionEffect:e1,useLayoutEffect:e1,useMemo:e1,useReducer:e1,useRef:e1,useState:e1,useDebugValue:e1,useDeferredValue:e1,useTransition:e1,useMutableSource:e1,useSyncExternalStore:e1,useId:e1,unstable_isNewReconciler:!1},ri={readContext:E1,useCallback:function(e,t){return D1().memoizedState=[e,t===void 0?null:t],e},useContext:E1,useEffect:f8,useImperativeHandle:function(e,t,l){return l=l!=null?l.concat([e]):null,b4(4194308,4,oe.bind(null,t,e),l)},useLayoutEffect:function(e,t){return b4(4194308,4,e,t)},useInsertionEffect:function(e,t){return b4(4,2,e,t)},useMemo:function(e,t){var l=D1();return t=t===void 0?null:t,e=e(),l.memoizedState=[e,t],e},useReducer:function(e,t,l){var i=D1();return t=l!==void 0?l(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=li.bind(null,T,e),[i.memoizedState,e]},useRef:function(e){var t=D1();return e={current:e},t.memoizedState=e},useState:N8,useDebugValue:J7,useDeferredValue:function(e){return D1().memoizedState=e},useTransition:function(){var e=N8(!1),t=e[0];return e=ti.bind(null,e[1]),D1().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,l){var i=T,r=D1();if(k){if(l===void 0)throw Error(V(407));l=l()}else{if(l=t(),b===null)throw Error(V(349));S2&30||ee(i,t,l)}r.memoizedState=l;var s={value:l,getSnapshot:t};return r.queue=s,f8(le.bind(null,i,s,e),[e]),i.flags|=2048,r4(9,te.bind(null,i,s,l,t),void 0,null),l},useId:function(){var e=D1(),t=b.identifierPrefix;if(k){var l=j1,i=G1;l=(i&~(1<<32-y1(i)-1)).toString(32)+l,t=":"+t+"R"+l,l=l4++,0<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=C.createElement(l,{is:i.is}):(e=C.createElement(l),l==="select"&&(C=e,i.multiple?C.multiple=!0:i.size&&(C.size=i.size))):e=C.createElementNS(e,l),e[A1]=t,e[q0]=i,Ne(e,t,!1,!1),t.stateNode=e;e:{switch(C=_9(l,i),l){case"dialog":y("cancel",e),y("close",e),r=i;break;case"iframe":case"object":case"embed":y("load",e),r=i;break;case"video":case"audio":for(r=0;rH0&&(t.flags|=128,i=!0,f0(s,!1),t.lanes=4194304)}else{if(!i)if(e=h5(C),e!==null){if(t.flags|=128,i=!0,l=e.updateQueue,l!==null&&(t.updateQueue=l,t.flags|=4),f0(s,!0),s.tail===null&&s.tailMode==="hidden"&&!C.alternate&&!k)return t1(t),null}else 2*_()-s.renderingStartTime>H0&&l!==1073741824&&(t.flags|=128,i=!0,f0(s,!1),t.lanes=4194304);s.isBackwards?(C.sibling=t.child,t.child=C):(l=s.last,l!==null?l.sibling=C:t.child=C,s.last=C)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=_(),t.sibling=null,l=P.current,F(P,i?l&1|2:l&1),t):(t1(t),null);case 22:case 23:return r3(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?H1&1073741824&&(t1(t),t.subtreeFlags&6&&(t.flags|=8192)):t1(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function wi(e,t){switch(A7(t),t.tag){case 1:return w1(t.type)&&C5(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return w0(),S(m1),S(i1),Q7(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return b7(t),null;case 13:if(S(P),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));c0()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return S(P),null;case 4:return w0(),null;case 10:return O7(t.type._context),null;case 22:case 23:return r3(),null;case 24:return null;default:return null}}var U4=!1,l1=!1,hi=typeof WeakSet=="function"?WeakSet:Set,M=null;function e0(e,t){var l=e.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(i){A(e,t,i)}else l.current=null}function h7(e,t,l){try{l()}catch(i){A(e,t,i)}}var A8=!1;function Hi(e,t){if(X9=l5,e=S6(),T7(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var r=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{l.nodeType,s.nodeType}catch(g){l=null;break e}var C=0,a=-1,o=-1,c=0,h=0,L=e,H=null;t:for(;;){for(var v;L!==l||r!==0&&L.nodeType!==3||(a=C+r),L!==s||i!==0&&L.nodeType!==3||(o=C+i),L.nodeType===3&&(C+=L.nodeValue.length),(v=L.firstChild)!==null;)H=L,L=v;for(;;){if(L===e)break t;if(H===l&&++c===r&&(a=C),H===s&&++h===i&&(o=C),(v=L.nextSibling)!==null)break;L=H,H=L.parentNode}L=v}l=a===-1||o===-1?null:{start:a,end:o}}else l=null}l=l||{start:0,end:0}}else l=null;for(Y9={focusedElem:e,selectionRange:l},l5=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var Z=x.memoizedProps,U=x.memoizedState,m=t.stateNode,n=m.getSnapshotBeforeUpdate(t.elementType===t.type?Z:R1(t.type,Z),U);m.__reactInternalSnapshotBeforeUpdate=n}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(g){A(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return x=A8,A8=!1,x}function _0(e,t,l){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&e)===e){var s=r.destroy;r.destroy=void 0,s!==void 0&&h7(t,l,s)}r=r.next}while(r!==i)}}function R5(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var l=t=t.next;do{if((l.tag&e)===e){var i=l.create;l.destroy=i()}l=l.next}while(l!==t)}}function H7(e){var t=e.ref;if(t!==null){var l=e.stateNode;switch(e.tag){case 5:e=l;break;default:e=l}typeof t=="function"?t(e):t.current=e}}function Re(e){var t=e.alternate;t!==null&&(e.alternate=null,Re(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[A1],delete t[q0],delete t[e7],delete t[Xl],delete t[Yl])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ze(e){return e.tag===5||e.tag===3||e.tag===4}function U8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ze(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function L7(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?l.nodeType===8?l.parentNode.insertBefore(e,t):l.insertBefore(e,t):(l.nodeType===8?(t=l.parentNode,t.insertBefore(e,l)):(t=l,t.appendChild(e)),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=s5));else if(i!==4&&(e=e.child,e!==null))for(L7(e,t,l),e=e.sibling;e!==null;)L7(e,t,l),e=e.sibling}function V7(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(V7(e,t,l),e=e.sibling;e!==null;)V7(e,t,l),e=e.sibling}var K=null,z1=!1;function l2(e,t,l){for(l=l.child;l!==null;)Fe(e,t,l),l=l.sibling}function Fe(e,t,l){if(U1&&typeof U1.onCommitFiberUnmount=="function")try{U1.onCommitFiberUnmount(Z5,l)}catch(a){}switch(l.tag){case 5:l1||e0(l,t);case 6:var i=K,r=z1;K=null,l2(e,t,l),K=i,z1=r,K!==null&&(z1?(e=K,l=l.stateNode,e.nodeType===8?e.parentNode.removeChild(l):e.removeChild(l)):K.removeChild(l.stateNode));break;case 18:K!==null&&(z1?(e=K,l=l.stateNode,e.nodeType===8?M9(e.parentNode,l):e.nodeType===1&&M9(e,l),K0(e)):M9(K,l.stateNode));break;case 4:i=K,r=z1,K=l.stateNode.containerInfo,z1=!0,l2(e,t,l),K=i,z1=r;break;case 0:case 11:case 14:case 15:if(!l1&&(i=l.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var s=r,C=s.destroy;s=s.tag,C!==void 0&&(s&2||s&4)&&h7(l,t,C),r=r.next}while(r!==i)}l2(e,t,l);break;case 1:if(!l1&&(e0(l,t),i=l.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=l.memoizedProps,i.state=l.memoizedState,i.componentWillUnmount()}catch(a){A(l,t,a)}l2(e,t,l);break;case 21:l2(e,t,l);break;case 22:l.mode&1?(l1=(i=l1)||l.memoizedState!==null,l2(e,t,l),l1=i):l2(e,t,l);break;default:l2(e,t,l)}}function _8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var l=e.stateNode;l===null&&(l=e.stateNode=new hi),t.forEach(function(i){var r=pi.bind(null,e,i);l.has(i)||(l.add(i),i.then(r,r))})}}function B1(e,t){var l=t.deletions;if(l!==null)for(var i=0;ir&&(r=C),i&=~s}if(i=r,i=_()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Vi(i/1960))-i,10e?16:e,o2===null)var i=!1;else{if(e=o2,o2=null,v5=0,f&6)throw Error(V(331));var r=f;for(f|=4,M=e.current;M!==null;){var s=M,C=s.child;if(M.flags&16){var a=s.deletions;if(a!==null){for(var o=0;o_()-l3?R2(e,0):t3|=l),h1(e,t)}function Ue(e,t){t===0&&(e.mode&1?(t=N4,N4<<=1,!(N4&130023424)&&(N4=4194304)):t=1);var l=C1();e=$1(e,t),e!==null&&(C4(e,t,l),h1(e,l))}function di(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ue(e,l)}function pi(e,t){var l=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(l=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(V(314))}i!==null&&i.delete(t),Ue(e,l)}var _e;_e=function(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps||m1.current)c1=!0;else{if(!(e.lanes&l)&&!(t.flags&128))return c1=!1,ci(e,t,l);c1=!!(e.flags&131072)}else c1=!1,k&&t.flags&1048576&&G6(t,n5,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Q4(e,t),e=t.pendingProps;var r=n0(t,i1.current);C0(t,l),r=$7(null,t,i,e,r,l);var s=X7();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,w1(i)?(s=!0,a5(t)):s=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,G7(t),r.updater=B5,t.stateNode=r,r._reactInternals=t,C7(t,i,e,l),t=n7(null,t,i,!0,s,l)):(t.tag=0,k&&s&&D7(t),s1(null,t,r,l),t=t.child),t;case 16:i=t.elementType;e:{switch(Q4(e,t),e=t.pendingProps,r=i._init,i=r(i._payload),t.type=i,r=t.tag=Ei(i),e=R1(i,e),r){case 0:t=o7(null,t,i,e,l);break e;case 1:t=P8(null,t,i,e,l);break e;case 11:t=S8(null,t,i,e,l);break e;case 14:t=k8(null,t,i,R1(i.type,e),l);break e}throw Error(V(306,i,""))}return t;case 0:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:R1(i,r),o7(e,t,i,r,l);case 1:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:R1(i,r),P8(e,t,i,r,l);case 3:e:{if(pe(t),e===null)throw Error(V(387));i=t.pendingProps,s=t.memoizedState,r=s.element,X6(e,t),w5(t,i,null,l);var C=t.memoizedState;if(i=C.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){r=h0(Error(V(423)),t),t=T8(e,t,i,l,r);break e}else if(i!==r){r=h0(Error(V(424)),t),t=T8(e,t,i,l,r);break e}else for(L1=w2(t.stateNode.containerInfo.firstChild),V1=t,k=!0,F1=null,l=K6(t,null,i,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(c0(),i===r){t=X1(e,t,l);break e}s1(e,t,i,l)}t=t.child}return t;case 5:return Y6(t),e===null&&i7(t),i=t.type,r=t.pendingProps,s=e!==null?e.memoizedProps:null,C=r.children,J9(i,r)?C=null:s!==null&&J9(i,s)&&(t.flags|=32),de(e,t),s1(e,t,C,l),t.child;case 6:return e===null&&i7(t),null;case 13:return ue(e,t,l);case 4:return j7(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=m0(t,null,i,l):s1(e,t,i,l),t.child;case 11:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:R1(i,r),S8(e,t,i,r,l);case 7:return s1(e,t,t.pendingProps,l),t.child;case 8:return s1(e,t,t.pendingProps.children,l),t.child;case 12:return s1(e,t,t.pendingProps.children,l),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,s=t.memoizedProps,C=r.value,F(c5,i._currentValue),i._currentValue=C,s!==null)if(k1(s.value,C)){if(s.children===r.children&&!m1.current){t=X1(e,t,l);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){C=s.child;for(var o=a.firstContext;o!==null;){if(o.context===i){if(s.tag===1){o=b1(-1,l&-l),o.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?o.next=o:(o.next=h.next,h.next=o),c.pending=o}}s.lanes|=l,o=s.alternate,o!==null&&(o.lanes|=l),r7(s.return,l,t),a.lanes|=l;break}o=o.next}}else if(s.tag===10)C=s.type===t.type?null:s.child;else if(s.tag===18){if(C=s.return,C===null)throw Error(V(341));C.lanes|=l,a=C.alternate,a!==null&&(a.lanes|=l),r7(C,l,t),C=s.sibling}else C=s.child;if(C!==null)C.return=s;else for(C=s;C!==null;){if(C===t){C=null;break}if(s=C.sibling,s!==null){s.return=C.return,C=s;break}C=C.return}s=C}s1(e,t,r.children,l),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,C0(t,l),r=E1(r),i=i(r),t.flags|=1,s1(e,t,i,l),t.child;case 14:return i=t.type,r=R1(i,t.pendingProps),r=R1(i.type,r),k8(e,t,i,r,l);case 15:return xe(e,t,t.type,t.pendingProps,l);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:R1(i,r),Q4(e,t),t.tag=1,w1(i)?(e=!0,a5(t)):e=!1,C0(t,l),ge(t,i,r),C7(t,i,r,l),n7(null,t,i,!0,e,l);case 19:return Ee(e,t,l);case 22:return Ze(e,t,l)}throw Error(V(156,t.tag))};function Ie(e,t){return H6(e,t)}function ui(e,t,l,i){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function p1(e,t,l,i){return new ui(e,t,l,i)}function C3(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ei(e){if(typeof e=="function")return C3(e)?1:0;if(e!=null){if(e=e.$$typeof,e===E7)return 11;if(e===N7)return 14}return 2}function V2(e,t){var l=e.alternate;return l===null?(l=p1(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&14680064,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l}function X4(e,t,l,i,r,s){var C=2;if(i=e,typeof e=="function")C3(e)&&(C=1);else if(typeof e=="string")C=5;else e:switch(e){case j2:return z2(l.children,r,s,t);case u7:C=8,r|=8;break;case z9:return e=p1(12,l,t,r|2),e.elementType=z9,e.lanes=s,e;case F9:return e=p1(13,l,t,r),e.elementType=F9,e.lanes=s,e;case y9:return e=p1(19,l,t,r),e.elementType=y9,e.lanes=s,e;case Y8:return F5(l,r,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $8:C=10;break e;case X8:C=9;break e;case E7:C=11;break e;case N7:C=14;break e;case i2:C=16,i=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=p1(C,l,t,r),t.elementType=e,t.type=i,t.lanes=s,t}function z2(e,t,l,i){return e=p1(7,e,i,t),e.lanes=l,e}function F5(e,t,l,i){return e=p1(22,e,i,t),e.elementType=Y8,e.lanes=l,e.stateNode={isHidden:!1},e}function f9(e,t,l){return e=p1(6,e,null,t),e.lanes=l,e}function B9(e,t,l){return t=p1(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ni(e,t,l,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=m9(0),this.expirationTimes=m9(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=m9(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function a3(e,t,l,i,r,s,C,a,o){return e=new Ni(e,t,l,a,o),t===1?(t=1,s===!0&&(t|=8)):t=0,s=p1(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:i,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},G7(s),e}function fi(e,t,l){var i=3{"use strict";function be(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(be)}catch(e){console.error(e)}}be(),Qe.exports=je()});var Xe=e2(m3=>{"use strict";var $e=Ke();m3.createRoot=$e.createRoot,m3.hydrateRoot=$e.hydrateRoot;var lr});var D5=e2((ar,T5)=>{(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var r="",s=0;sA2.default.createElement(A2.default.Fragment,null,A2.default.createElement("div",{className:"flex rounded-md border border-dashed border-red-700 bg-red-100 p-2"},A2.default.createElement("svg",{className:"h-6 w-6 flex-none text-red-700",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},A2.default.createElement("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})),A2.default.createElement("div",{className:"font-inter px-2 text-sm font-medium text-red-700"},e))),Ye=yi;var Y=J(o1());var w3=J(o1());var Si=(e,t)=>{let[l,i]=w3.default.useState(t),r=s=>C=>{i(a=>d2(I1({},a),{[s]:C})),console.log(`Pushing ${s} to server`,C),e.pushEvent("update_field",{field:s,value:C})};return w3.default.useEffect(()=>{e.handleEvent("update",s=>{console.log("Field update from server",s),i(C=>I1({},Object.assign(C,s.fields)))})},[]),[l,r]},Je=Si;var A5=J(o1()),U5=J(D5()),ki=({name:e,label:t,className:l,defaultValue:i,testId:r,onChange:s,orientation:C="vert"})=>A5.default.createElement("div",{className:(0,U5.default)(l,{"flex flex-row items-baseline":C=="horiz"})},A5.default.createElement("label",{htmlFor:e,className:(0,U5.default)({block:C=="vert","pr-1 uppercase":C=="horiz"},"mb-1 text-sm font-medium")},t),A5.default.createElement("input",{type:"text","data-testid":r!=null?r:e,value:i,name:e,onChange:a=>s(a.target.value),className:(0,U5.default)({"block w-full":C=="vert"},"rounded-lg border border-gray-300 bg-gray-50 p-1.5 text-sm focus:border-blue-500 focus:ring-blue-500")})),_5=ki;var c4=J(o1(),1);var qe=r=>{var s=r,{color:e="currentColor",size:t=24,className:l}=s,i=b5(s,["color","size","className"]);return c4.default.createElement("svg",d2(I1({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},i),{className:"remixicon "+(l||"")}),c4.default.createElement("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"}))};var et=r=>{var s=r,{color:e="currentColor",size:t=24,className:l}=s,i=b5(s,["color","size","className"]);return c4.default.createElement("svg",d2(I1({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},i),{className:"remixicon "+(l||"")}),c4.default.createElement("path",{d:"M18.364 5.63604L16.9497 7.05025C15.683 5.7835 13.933 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12H21C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C14.4853 3 16.7353 4.00736 18.364 5.63604Z"}))};var I5=J(D5()),J1=J(o1()),Pi=({name:e,label:t,options:l,selectedOption:i,onChange:r,error:s,className:C="",orientation:a="vert"})=>J1.default.createElement("div",{className:(0,I5.default)({"flex flex-row items-baseline":a=="horiz"},C)},J1.default.createElement("label",{htmlFor:e,className:(0,I5.default)({block:a=="vert","pr-1 uppercase":a=="horiz"},"mb-1 text-sm font-medium")},t),J1.default.createElement("div",{className:"relative block"},J1.default.createElement("select",{id:e,value:i||void 0,onChange:o=>r(o.target.value),className:(0,I5.default)({"block w-full":a=="vert"},"appearance-none rounded-lg border border-gray-300 bg-gray-50 bg-[length:10px] bg-[center_right_10px] bg-no-repeat p-2 pr-5 text-sm focus:border-blue-500 focus:ring-blue-500")},l.map(o=>J1.default.createElement("option",{key:o.value,value:o.value},o.label))),J1.default.createElement("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-500"},J1.default.createElement(qe,{size:16}))),s&&J1.default.createElement("span",{className:"text-sm text-red-500"},s)),m4=Pi;var g0=J(o1());var lt=J(D5()),Q=J(o1());var tt=(e,t)=>{let l;return(...i)=>{clearTimeout(l),l=setTimeout(()=>{e(...i)},t)}};var Ti=({name:e,selectedValue:t,searchTerm:l,onSearch:i,placeholder:r,disabled:s=!1})=>{let C=tt(c=>{i(c.toLowerCase())},300),[a,o]=Q.default.useState(l!=null?l:"");return Q.default.useEffect(()=>{t&&o(t)},[t]),Q.default.createElement(Q.default.Fragment,null,Q.default.createElement("div",{className:"relative"},Q.default.createElement("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"},Q.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",strokeWidth:1.5,stroke:"currentColor",className:(0,lt.default)("h-5 w-5",{"bg-green-200":t,"text-green-800":t,"border-green-800":t,"rounded-lg":t})},t?Q.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 01-1.043 3.296 3.745 3.745 0 01-3.296 1.043A3.745 3.745 0 0112 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 01-3.296-1.043 3.745 3.745 0 01-1.043-3.296A3.745 3.745 0 013 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 011.043-3.296 3.746 3.746 0 013.296-1.043A3.746 3.746 0 0112 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 013.296 1.043 3.746 3.746 0 011.043 3.296A3.745 3.745 0 0121 12z"}):Q.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"}))),Q.default.createElement("input",{type:"text",value:a,name:e,disabled:s,autoComplete:"off",placeholder:r,onInput:c=>{o(c.target.value),C(c.target.value)},className:"block w-full rounded-lg border border-gray-300 bg-gray-50 p-2 pl-9 text-sm focus:border-blue-500 focus:ring-blue-500"})))},Di=({resultItems:e,itemRenderer:t,onSelect:l,resultItemsKeyField:i})=>Q.default.createElement("div",{className:"max-h-36 overflow-auto rounded-b-lg border-b border-l border-r border-gray-300"},Q.default.createElement("div",{className:"w-max min-w-full"},e.map(r=>Q.default.createElement("div",{key:r[i],onClick:()=>l(r),className:"border-b-solid last:border-b-none cursor-pointer border-b border-b-gray-300 bg-gray-50 px-2 py-0.5 hover:bg-blue-600 hover:text-white"},t(r))))),Ai=({name:e,label:t,searchTerm:l,onSearch:i,resultItems:r,resultItemsKeyField:s,itemRenderer:C,className:a="",onSelect:o,selectedValue:c,placeholder:h,disabled:L=!1})=>Q.default.createElement("div",{className:a},Q.default.createElement("label",{htmlFor:e,className:"mb-1 block text-sm font-medium"},t),Q.default.createElement(Ti,{name:e,onSearch:i,searchTerm:l,selectedValue:c,placeholder:h,disabled:L}),(r&&r.length)>0&&Q.default.createElement(Di,{resultItems:r,itemRenderer:C,onSelect:o,resultItemsKeyField:s})),O5=Ai;var w4=J(o1()),Ui=({gvk:e})=>w4.default.createElement(w4.default.Fragment,null,w4.default.createElement("div",{className:"text-xs text-gray-400"},e.api_version),w4.default.createElement("div",{className:"text-sm"},e.kind)),W5=Ui;var h3=J(o1());var _i=e=>e.options.length>0?h3.default.createElement(m4,I1({},e)):h3.default.createElement(_5,d2(I1({},e),{defaultValue:e.selectedOption})),U2=_i;var Ii=({fields:e,updateField:t})=>{var l,i;return g0.default.createElement("div",{className:"flex gap-x-5 p-3"},g0.default.createElement(O5,{className:"max-w-full",name:"gvk",label:"Resource Kind",onSearch:t("search_term"),searchTerm:e.search_term,resultItemsKeyField:"index",resultItems:e.search_result_items,onSelect:t("gvk"),itemRenderer:r=>g0.default.createElement(W5,{gvk:r}),selectedValue:(l=e.gvk)==null?void 0:l.kind,placeholder:"apps/v1 Deployment"}),e.namespaces&&g0.default.createElement(U2,{name:"namespace",label:"Namespace",options:e.namespaces.map(r=>({label:r,value:r})),selectedOption:e.namespace,onChange:t("namespace")}),e.gvk&&e.resources&&g0.default.createElement(U2,{name:"resource",label:(i=e.gvk)==null?void 0:i.kind,options:e.resources.map(r=>({label:r,value:r})),selectedOption:e.resource,onChange:t("resource")}))},it=Ii;var _2=J(o1());var Oi=({fields:e,updateField:t})=>{var l;return _2.default.createElement("div",{className:"flex gap-x-5 p-3"},_2.default.createElement(O5,{className:"opacity-60",name:"gvk",label:"Resource Kind",onSearch:t("search_term"),searchTerm:e.search_term,resultItemsKeyField:"index",resultItems:e.search_result_items,onSelect:t("gvk"),itemRenderer:i=>_2.default.createElement(W5,{gvk:i}),selectedValue:(l=e.gvk)==null?void 0:l.kind,placeholder:"apps/v1 Deployment",disabled:!0}),e.namespaces&&_2.default.createElement(U2,{name:"namespace",label:"Namespace",options:e.namespaces.map(i=>({label:i,value:i})),selectedOption:e.namespace,onChange:t("namespace")}),e.resources&&_2.default.createElement(U2,{name:"resource",label:e.gvk.kind,options:e.resources.map(i=>({label:i,value:i})),selectedOption:e.resource,onChange:t("resource")}),e.containers&&_2.default.createElement(U2,{name:"container",label:"Container",options:e.containers.map(i=>({label:i,value:i})),selectedOption:e.container,onChange:t("container")}))},rt=Oi;var Wi=["get","list","watch"],Gi=["exec","logs"],ji=({payload:e,ctx:t})=>{let[l,i]=Je(t,e.fields),[r,s]=Y.default.useState(e.connection_state);return Y.default.useEffect(()=>t.handleEvent("connectionState",s),[]),Y.default.createElement(Y.default.Fragment,null,Y.default.createElement("div",{className:"font-inter rounded-md border border-solid border-gray-300 font-medium text-gray-600"},Y.default.createElement("div",{className:"border-b-solid flex gap-x-5 gap-y-3 border-b border-b-gray-300 bg-blue-100 p-3"},Y.default.createElement(m4,{name:"operation",label:"Operation",options:l.operations.map(C=>({label:C.toUpperCase(),value:C})),selectedOption:l.operation,onChange:i("operation"),orientation:"horiz"}),Y.default.createElement(_5,{label:"Assign To",name:"assign_to",className:"ml-auto",defaultValue:l.result_variable,onChange:i("result_variable"),orientation:"horiz"})),Y.default.createElement("div",{className:"border-b-solid flex gap-x-5 gap-y-3 border-b border-b-gray-300 bg-gray-200 p-3"},Y.default.createElement(m4,{name:"context",label:"Context",options:l.contexts.map(C=>({label:C,value:C})),selectedOption:l.context,onChange:i("context"),orientation:"vert",error:r==null?void 0:r.message})),Y.default.createElement(Y.default.Fragment,null,(r==null?void 0:r.state)=="loading"&&Y.default.createElement("span",{className:"flex items-center gap-x-1 p-3"},Y.default.createElement(et,{size:32,className:"animate-spin"})," Connecting to the cluster..."),(r==null?void 0:r.state)=="ok"&&Wi.includes(l.operation)&&Y.default.createElement(it,{fields:l,updateField:i}),(r==null?void 0:r.state)=="ok"&&Gi.includes(l.operation)&&Y.default.createElement(rt,{fields:l,updateField:i}))))},st=ji;var _r=async(e,t)=>{e.root.innerHTML="loading...",e.importCSS("main.css"),e.importCSS("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap");let l=(0,Ct.createRoot)(e.root);if(t.fields.error)return l.render(H3.default.createElement(Ye,{message:t.fields.error}));l.render(H3.default.createElement(st,{payload:t,ctx:e}))};export{_r as init}; +`),C=i.stack.split(` +`),s=r.length-1,a=C.length-1;1<=s&&0<=a&&r[s]!==C[a];)a--;for(;1<=s&&0<=a;s--,a--)if(r[s]!==C[a]){if(s!==1||a!==1)do if(s--,a--,0>a||r[s]!==C[a]){var o=` +`+r[s].replace(" at new "," at ");return e.displayName&&o.includes("")&&(o=o.replace("",e.displayName)),o}while(1<=s&&0<=a);break}}}finally{o9=!1,Error.prepareStackTrace=l}return(e=e?e.displayName||e.name:"")?z0(e):""}function Tt(e){switch(e.tag){case 5:return z0(e.type);case 16:return z0("Lazy");case 13:return z0("Suspense");case 19:return z0("SuspenseList");case 0:case 2:case 15:return e=n9(e.type,!1),e;case 11:return e=n9(e.type.render,!1),e;case 1:return e=n9(e.type,!0),e;default:return""}}function S9(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j2:return"Fragment";case G2:return"Portal";case z9:return"Profiler";case u7:return"StrictMode";case F9:return"Suspense";case y9:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X8:return(e.displayName||"Context")+".Consumer";case $8:return(e._context.displayName||"Context")+".Provider";case E7:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case N7:return t=e.displayName||null,t!==null?t:S9(e.type)||"Memo";case i2:t=e._payload,e=e._init;try{return S9(e(t))}catch(l){}}return null}function Dt(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return S9(t);case 8:return t===u7?"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 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function g2(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function J8(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function At(e){var t=J8(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof l!="undefined"&&typeof l.get=="function"&&typeof l.set=="function"){var r=l.get,C=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){i=""+s,C.call(this,s)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function p4(e){e._valueTracker||(e._valueTracker=At(e))}function q8(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),i="";return e&&(i=J8(e)?e.checked?"true":"false":e.value),e=i,e!==l?(t.setValue(e),!0):!1}function Y4(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function k9(e,t){var l=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l!=null?l:e._wrapperState.initialChecked})}function j3(e,t){var l=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;l=g2(t.value!=null?t.value:l),e._wrapperState={initialChecked:i,initialValue:l,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function e6(e,t){t=t.checked,t!=null&&p7(e,"checked",t,!1)}function P9(e,t){e6(e,t);var l=g2(t.value),i=t.type;if(l!=null)i==="number"?(l===0&&e.value===""||e.value!=l)&&(e.value=""+l):e.value!==""+l&&(e.value=""+l);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?T9(e,t.type,l):t.hasOwnProperty("defaultValue")&&T9(e,t.type,g2(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function b3(e,t,l){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,l||t===e.value||(e.value=t),e.defaultValue=t}l=e.name,l!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,l!==""&&(e.name=l)}function T9(e,t,l){(t!=="number"||Y4(e.ownerDocument)!==e)&&(l==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+l&&(e.defaultValue=""+l))}var F0=Array.isArray;function l0(e,t,l,i){if(e=e.options,t){t={};for(var r=0;r"+t.valueOf().toString()+"",t=u4.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function G0(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var k0={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ut=["Webkit","ms","Moz","O"];Object.keys(k0).forEach(function(e){Ut.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),k0[t]=k0[e]})});function r6(e,t,l){return t==null||typeof t=="boolean"||t===""?"":l||typeof t!="number"||t===0||k0.hasOwnProperty(e)&&k0[e]?(""+t).trim():t+"px"}function C6(e,t){e=e.style;for(var l in t)if(t.hasOwnProperty(l)){var i=l.indexOf("--")===0,r=r6(l,t[l],i);l==="float"&&(l="cssFloat"),i?e.setProperty(l,r):e[l]=r}}var It=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function U9(e,t){if(t){if(It[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function I9(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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":return!1;default:return!0}}var _9=null;function f7(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var O9=null,i0=null,r0=null;function $3(e){if(e=o4(e)){if(typeof O9!="function")throw Error(V(280));var t=e.stateNode;t&&(t=E5(t),O9(e.stateNode,e.type,t))}}function s6(e){i0?r0?r0.push(e):r0=[e]:i0=e}function a6(){if(i0){var e=i0,t=r0;if(r0=i0=null,$3(e),t)for(e=0;e>>=0,e===0?32:31-(Yt(e)/Jt|0)|0}var E4=64,N4=4194304;function y0(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function t5(e,t){var l=e.pendingLanes;if(l===0)return 0;var i=0,r=e.suspendedLanes,C=e.pingedLanes,s=l&268435455;if(s!==0){var a=s&~r;a!==0?i=y0(a):(C&=s,C!==0&&(i=y0(C)))}else s=l&~r,s!==0?i=y0(s):C!==0&&(i=y0(C));if(i===0)return 0;if(t!==0&&t!==i&&!(t&r)&&(r=i&-i,C=t&-t,r>=C||r===16&&(C&4194240)!==0))return t;if(i&4&&(i|=l&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0l;l++)t.push(e);return t}function s4(e,t,l){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-y1(t),e[t]=l}function ll(e,t){var l=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0=T0),r8=" ",C8=!1;function f6(e,t){switch(e){case"keyup":return zl.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function B6(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var b2=!1;function yl(e,t){switch(e){case"compositionend":return B6(t);case"keypress":return t.which!==32?null:(C8=!0,r8);case"textInput":return e=t.data,e===r8&&C8?null:e;default:return null}}function Sl(e,t){if(b2)return e==="compositionend"||!P7&&f6(e,t)?(e=E6(),O4=y7=a2=null,b2=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=o8(l)}}function y6(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?y6(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function S6(){for(var e=window,t=Y4();t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch(i){l=!1}if(l)e=t.contentWindow;else break;t=Y4(e.document)}return t}function T7(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ol(e){var t=S6(),l=e.focusedElem,i=e.selectionRange;if(t!==l&&l&&l.ownerDocument&&y6(l.ownerDocument.documentElement,l)){if(i!==null&&T7(l)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in l)l.selectionStart=t,l.selectionEnd=Math.min(e,l.value.length);else if(e=(t=l.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=l.textContent.length,C=Math.min(i.start,r);i=i.end===void 0?C:Math.min(i.end,r),!e.extend&&C>i&&(r=i,i=C,C=r),r=n8(l,C);var s=n8(l,i);r&&s&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),C>i?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=l;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l=document.documentMode,Q2=null,K9=null,A0=null,$9=!1;function c8(e,t,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;$9||Q2==null||Q2!==Y4(i)||(i=Q2,"selectionStart"in i&&T7(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),A0&&X0(A0,i)||(A0=i,i=r5(K9,"onSelect"),0X2||(e.current=t7[X2],t7[X2]=null,X2--)}function F(e,t){X2++,t7[X2]=e.current,e.current=t}var v2={},i1=Z2(v2),m1=Z2(!1),F2=v2;function n0(e,t){var l=e.type.contextTypes;if(!l)return v2;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r={},C;for(C in l)r[C]=t[C];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function w1(e){return e=e.childContextTypes,e!=null}function s5(){S(m1),S(i1)}function M8(e,t,l){if(i1.current!==v2)throw Error(V(168));F(i1,t),F(m1,l)}function O6(e,t,l){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return l;i=i.getChildContext();for(var r in i)if(!(r in t))throw Error(V(108,Dt(e)||"Unknown",r));return D({},l,i)}function a5(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||v2,F2=i1.current,F(i1,e),F(m1,m1.current),!0}function Z8(e,t,l){var i=e.stateNode;if(!i)throw Error(V(169));l?(e=O6(e,t,F2),i.__reactInternalMemoizedMergedChildContext=e,S(m1),S(i1),F(i1,e)):S(m1),F(m1,l)}var W1=null,N5=!1,Z9=!1;function W6(e){W1===null?W1=[e]:W1.push(e)}function Jl(e){N5=!0,W6(e)}function x2(){if(!Z9&&W1!==null){Z9=!0;var e=0,t=R;try{var l=W1;for(R=1;e>=s,r-=s,G1=1<<32-y1(t)+r|l<E?(G=u,u=null):G=u.sibling;var B=L(m,u,w[E],g);if(B===null){u===null&&(u=G);break}e&&u&&B.alternate===null&&t(m,u),n=C(B,n,E),p===null?d=B:p.sibling=B,p=B,u=G}if(E===w.length)return l(m,u),k&&u2(m,E),d;if(u===null){for(;EE?(G=u,u=null):G=u.sibling;var q1=L(m,u,B.value,g);if(q1===null){u===null&&(u=G);break}e&&u&&q1.alternate===null&&t(m,u),n=C(q1,n,E),p===null?d=q1:p.sibling=q1,p=q1,u=G}if(B.done)return l(m,u),k&&u2(m,E),d;if(u===null){for(;!B.done;E++,B=w.next())B=H(m,B.value,g),B!==null&&(n=C(B,n,E),p===null?d=B:p.sibling=B,p=B);return k&&u2(m,E),d}for(u=i(m,u);!B.done;E++,B=w.next())B=v(u,m,E,B.value,g),B!==null&&(e&&B.alternate!==null&&u.delete(B.key===null?E:B.key),n=C(B,n,E),p===null?d=B:p.sibling=B,p=B);return e&&u.forEach(function(at){return t(m,at)}),k&&u2(m,E),d}function U(m,n,w,g){if(typeof w=="object"&&w!==null&&w.type===j2&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case d4:e:{for(var d=w.key,p=n;p!==null;){if(p.key===d){if(d=w.type,d===j2){if(p.tag===7){l(m,p.sibling),n=r(p,w.props.children),n.return=m,m=n;break e}}else if(p.elementType===d||typeof d=="object"&&d!==null&&d.$$typeof===i2&&p8(d)===p.type){l(m,p.sibling),n=r(p,w.props),n.ref=N0(m,p,w),n.return=m,m=n;break e}l(m,p);break}else t(m,p);p=p.sibling}w.type===j2?(n=z2(w.props.children,m.mode,g,w.key),n.return=m,m=n):(g=X4(w.type,w.key,w.props,null,m.mode,g),g.ref=N0(m,n,w),g.return=m,m=g)}return s(m);case G2:e:{for(p=w.key;n!==null;){if(n.key===p)if(n.tag===4&&n.stateNode.containerInfo===w.containerInfo&&n.stateNode.implementation===w.implementation){l(m,n.sibling),n=r(n,w.children||[]),n.return=m,m=n;break e}else{l(m,n);break}else t(m,n);n=n.sibling}n=B9(w,m.mode,g),n.return=m,m=n}return s(m);case i2:return p=w._init,U(m,n,p(w._payload),g)}if(F0(w))return Z(m,n,w,g);if(d0(w))return x(m,n,w,g);D4(m,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,n!==null&&n.tag===6?(l(m,n.sibling),n=r(n,w),n.return=m,m=n):(l(m,n),n=f9(w,m.mode,g),n.return=m,m=n),s(m)):l(m,n)}return U}var m0=Q6(!0),K6=Q6(!1),c5=Z2(null),m5=null,q2=null,I7=null;function _7(){I7=q2=m5=null}function O7(e){var t=c5.current;S(c5),e._currentValue=t}function r7(e,t,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===l)break;e=e.return}}function s0(e,t){m5=e,I7=q2=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(c1=!0),e.firstContext=null)}function E1(e){var t=e._currentValue;if(I7!==e)if(e={context:e,memoizedValue:t,next:null},q2===null){if(m5===null)throw Error(V(308));q2=e,m5.dependencies={lanes:0,firstContext:e}}else q2=q2.next=e;return t}var f2=null;function W7(e){f2===null?f2=[e]:f2.push(e)}function $6(e,t,l,i){var r=t.interleaved;return r===null?(l.next=l,W7(t)):(l.next=r.next,r.next=l),t.interleaved=l,$1(e,i)}function $1(e,t){e.lanes|=t;var l=e.alternate;for(l!==null&&(l.lanes|=t),l=e,e=e.return;e!==null;)e.childLanes|=t,l=e.alternate,l!==null&&(l.childLanes|=t),l=e,e=e.return;return l.tag===3?l.stateNode:null}var r2=!1;function G7(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function X6(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function b1(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function h2(e,t,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,f&2){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,$1(e,l)}return r=i.interleaved,r===null?(t.next=t,W7(i)):(t.next=r.next,r.next=t),i.interleaved=t,$1(e,l)}function G4(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,R7(e,l)}}function u8(e,t){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var r=null,C=null;if(l=l.firstBaseUpdate,l!==null){do{var s={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};C===null?r=C=s:C=C.next=s,l=l.next}while(l!==null);C===null?r=C=t:C=C.next=t}else r=C=t;l={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:C,shared:i.shared,effects:i.effects},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}function w5(e,t,l,i){var r=e.updateQueue;r2=!1;var C=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var o=a,c=o.next;o.next=null,s===null?C=c:s.next=c,s=o;var h=e.alternate;h!==null&&(h=h.updateQueue,a=h.lastBaseUpdate,a!==s&&(a===null?h.firstBaseUpdate=c:a.next=c,h.lastBaseUpdate=o))}if(C!==null){var H=r.baseState;s=0,h=c=o=null,a=C;do{var L=a.lane,v=a.eventTime;if((i&L)===L){h!==null&&(h=h.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var Z=e,x=a;switch(L=t,v=l,x.tag){case 1:if(Z=x.payload,typeof Z=="function"){H=Z.call(v,H,L);break e}H=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=x.payload,L=typeof Z=="function"?Z.call(v,H,L):Z,L==null)break e;H=D({},H,L);break e;case 2:r2=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,L=r.effects,L===null?r.effects=[a]:L.push(a))}else v={eventTime:v,lane:L,tag:a.tag,payload:a.payload,callback:a.callback,next:null},h===null?(c=h=v,o=H):h=h.next=v,s|=L;if(a=a.next,a===null){if(a=r.shared.pending,a===null)break;L=a,a=L.next,L.next=null,r.lastBaseUpdate=L,r.shared.pending=null}}while(!0);if(h===null&&(o=H),r.baseState=o,r.firstBaseUpdate=c,r.lastBaseUpdate=h,t=r.shared.interleaved,t!==null){r=t;do s|=r.lane,r=r.next;while(r!==t)}else C===null&&(r.shared.lanes=0);k2|=s,e.lanes=s,e.memoizedState=H}}function E8(e,t,l){if(e=t.effects,t.effects=null,e!==null)for(t=0;tl?l:4,e(!0);var i=d9.transition;d9.transition={};try{e(!1),t()}finally{R=l,d9.transition=i}}function he(){return N1().memoizedState}function li(e,t,l){var i=H2(e);if(l={lane:i,action:l,hasEagerState:!1,eagerState:null,next:null},Le(e))He(t,l);else if(l=$6(e,t,l,i),l!==null){var r=s1();S1(l,e,i,r),Ve(l,t,i)}}function ii(e,t,l){var i=H2(e),r={lane:i,action:l,hasEagerState:!1,eagerState:null,next:null};if(Le(e))He(t,r);else{var C=e.alternate;if(e.lanes===0&&(C===null||C.lanes===0)&&(C=t.lastRenderedReducer,C!==null))try{var s=t.lastRenderedState,a=C(s,l);if(r.hasEagerState=!0,r.eagerState=a,k1(a,s)){var o=t.interleaved;o===null?(r.next=r,W7(t)):(r.next=o.next,o.next=r),t.interleaved=r;return}}catch(c){}finally{}l=$6(e,t,r,i),l!==null&&(r=s1(),S1(l,e,i,r),Ve(l,t,i))}}function Le(e){var t=e.alternate;return e===T||t!==null&&t===T}function He(e,t){U0=L5=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Ve(e,t,l){if(l&4194240){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,R7(e,l)}}var H5={readContext:E1,useCallback:e1,useContext:e1,useEffect:e1,useImperativeHandle:e1,useInsertionEffect:e1,useLayoutEffect:e1,useMemo:e1,useReducer:e1,useRef:e1,useState:e1,useDebugValue:e1,useDeferredValue:e1,useTransition:e1,useMutableSource:e1,useSyncExternalStore:e1,useId:e1,unstable_isNewReconciler:!1},ri={readContext:E1,useCallback:function(e,t){return D1().memoizedState=[e,t===void 0?null:t],e},useContext:E1,useEffect:f8,useImperativeHandle:function(e,t,l){return l=l!=null?l.concat([e]):null,b4(4194308,4,oe.bind(null,t,e),l)},useLayoutEffect:function(e,t){return b4(4194308,4,e,t)},useInsertionEffect:function(e,t){return b4(4,2,e,t)},useMemo:function(e,t){var l=D1();return t=t===void 0?null:t,e=e(),l.memoizedState=[e,t],e},useReducer:function(e,t,l){var i=D1();return t=l!==void 0?l(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=li.bind(null,T,e),[i.memoizedState,e]},useRef:function(e){var t=D1();return e={current:e},t.memoizedState=e},useState:N8,useDebugValue:J7,useDeferredValue:function(e){return D1().memoizedState=e},useTransition:function(){var e=N8(!1),t=e[0];return e=ti.bind(null,e[1]),D1().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,l){var i=T,r=D1();if(k){if(l===void 0)throw Error(V(407));l=l()}else{if(l=t(),b===null)throw Error(V(349));S2&30||ee(i,t,l)}r.memoizedState=l;var C={value:l,getSnapshot:t};return r.queue=C,f8(le.bind(null,i,C,e),[e]),i.flags|=2048,r4(9,te.bind(null,i,C,l,t),void 0,null),l},useId:function(){var e=D1(),t=b.identifierPrefix;if(k){var l=j1,i=G1;l=(i&~(1<<32-y1(i)-1)).toString(32)+l,t=":"+t+"R"+l,l=l4++,0<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=s.createElement(l,{is:i.is}):(e=s.createElement(l),l==="select"&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,l),e[A1]=t,e[q0]=i,Ne(e,t,!1,!1),t.stateNode=e;e:{switch(s=I9(l,i),l){case"dialog":y("cancel",e),y("close",e),r=i;break;case"iframe":case"object":case"embed":y("load",e),r=i;break;case"video":case"audio":for(r=0;rL0&&(t.flags|=128,i=!0,f0(C,!1),t.lanes=4194304)}else{if(!i)if(e=h5(s),e!==null){if(t.flags|=128,i=!0,l=e.updateQueue,l!==null&&(t.updateQueue=l,t.flags|=4),f0(C,!0),C.tail===null&&C.tailMode==="hidden"&&!s.alternate&&!k)return t1(t),null}else 2*I()-C.renderingStartTime>L0&&l!==1073741824&&(t.flags|=128,i=!0,f0(C,!1),t.lanes=4194304);C.isBackwards?(s.sibling=t.child,t.child=s):(l=C.last,l!==null?l.sibling=s:t.child=s,C.last=s)}return C.tail!==null?(t=C.tail,C.rendering=t,C.tail=t.sibling,C.renderingStartTime=I(),t.sibling=null,l=P.current,F(P,i?l&1|2:l&1),t):(t1(t),null);case 22:case 23:return r3(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?L1&1073741824&&(t1(t),t.subtreeFlags&6&&(t.flags|=8192)):t1(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function wi(e,t){switch(A7(t),t.tag){case 1:return w1(t.type)&&s5(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return w0(),S(m1),S(i1),Q7(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return b7(t),null;case 13:if(S(P),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));c0()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return S(P),null;case 4:return w0(),null;case 10:return O7(t.type._context),null;case 22:case 23:return r3(),null;case 24:return null;default:return null}}var U4=!1,l1=!1,hi=typeof WeakSet=="function"?WeakSet:Set,M=null;function e0(e,t){var l=e.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(i){A(e,t,i)}else l.current=null}function h7(e,t,l){try{l()}catch(i){A(e,t,i)}}var A8=!1;function Li(e,t){if(X9=l5,e=S6(),T7(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var r=i.anchorOffset,C=i.focusNode;i=i.focusOffset;try{l.nodeType,C.nodeType}catch(g){l=null;break e}var s=0,a=-1,o=-1,c=0,h=0,H=e,L=null;t:for(;;){for(var v;H!==l||r!==0&&H.nodeType!==3||(a=s+r),H!==C||i!==0&&H.nodeType!==3||(o=s+i),H.nodeType===3&&(s+=H.nodeValue.length),(v=H.firstChild)!==null;)L=H,H=v;for(;;){if(H===e)break t;if(L===l&&++c===r&&(a=s),L===C&&++h===i&&(o=s),(v=H.nextSibling)!==null)break;H=L,L=H.parentNode}H=v}l=a===-1||o===-1?null:{start:a,end:o}}else l=null}l=l||{start:0,end:0}}else l=null;for(Y9={focusedElem:e,selectionRange:l},l5=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var Z=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Z!==null){var x=Z.memoizedProps,U=Z.memoizedState,m=t.stateNode,n=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:R1(t.type,x),U);m.__reactInternalSnapshotBeforeUpdate=n}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(g){A(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return Z=A8,A8=!1,Z}function I0(e,t,l){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&e)===e){var C=r.destroy;r.destroy=void 0,C!==void 0&&h7(t,l,C)}r=r.next}while(r!==i)}}function R5(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var l=t=t.next;do{if((l.tag&e)===e){var i=l.create;l.destroy=i()}l=l.next}while(l!==t)}}function L7(e){var t=e.ref;if(t!==null){var l=e.stateNode;switch(e.tag){case 5:e=l;break;default:e=l}typeof t=="function"?t(e):t.current=e}}function Re(e){var t=e.alternate;t!==null&&(e.alternate=null,Re(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[A1],delete t[q0],delete t[e7],delete t[Xl],delete t[Yl])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ze(e){return e.tag===5||e.tag===3||e.tag===4}function U8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ze(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function H7(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?l.nodeType===8?l.parentNode.insertBefore(e,t):l.insertBefore(e,t):(l.nodeType===8?(t=l.parentNode,t.insertBefore(e,l)):(t=l,t.appendChild(e)),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=C5));else if(i!==4&&(e=e.child,e!==null))for(H7(e,t,l),e=e.sibling;e!==null;)H7(e,t,l),e=e.sibling}function V7(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(V7(e,t,l),e=e.sibling;e!==null;)V7(e,t,l),e=e.sibling}var K=null,z1=!1;function l2(e,t,l){for(l=l.child;l!==null;)Fe(e,t,l),l=l.sibling}function Fe(e,t,l){if(U1&&typeof U1.onCommitFiberUnmount=="function")try{U1.onCommitFiberUnmount(x5,l)}catch(a){}switch(l.tag){case 5:l1||e0(l,t);case 6:var i=K,r=z1;K=null,l2(e,t,l),K=i,z1=r,K!==null&&(z1?(e=K,l=l.stateNode,e.nodeType===8?e.parentNode.removeChild(l):e.removeChild(l)):K.removeChild(l.stateNode));break;case 18:K!==null&&(z1?(e=K,l=l.stateNode,e.nodeType===8?M9(e.parentNode,l):e.nodeType===1&&M9(e,l),K0(e)):M9(K,l.stateNode));break;case 4:i=K,r=z1,K=l.stateNode.containerInfo,z1=!0,l2(e,t,l),K=i,z1=r;break;case 0:case 11:case 14:case 15:if(!l1&&(i=l.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var C=r,s=C.destroy;C=C.tag,s!==void 0&&(C&2||C&4)&&h7(l,t,s),r=r.next}while(r!==i)}l2(e,t,l);break;case 1:if(!l1&&(e0(l,t),i=l.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=l.memoizedProps,i.state=l.memoizedState,i.componentWillUnmount()}catch(a){A(l,t,a)}l2(e,t,l);break;case 21:l2(e,t,l);break;case 22:l.mode&1?(l1=(i=l1)||l.memoizedState!==null,l2(e,t,l),l1=i):l2(e,t,l);break;default:l2(e,t,l)}}function I8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var l=e.stateNode;l===null&&(l=e.stateNode=new hi),t.forEach(function(i){var r=pi.bind(null,e,i);l.has(i)||(l.add(i),i.then(r,r))})}}function B1(e,t){var l=t.deletions;if(l!==null)for(var i=0;ir&&(r=s),i&=~C}if(i=r,i=I()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Vi(i/1960))-i,10e?16:e,o2===null)var i=!1;else{if(e=o2,o2=null,v5=0,f&6)throw Error(V(331));var r=f;for(f|=4,M=e.current;M!==null;){var C=M,s=C.child;if(M.flags&16){var a=C.deletions;if(a!==null){for(var o=0;oI()-l3?R2(e,0):t3|=l),h1(e,t)}function Ue(e,t){t===0&&(e.mode&1?(t=N4,N4<<=1,!(N4&130023424)&&(N4=4194304)):t=1);var l=s1();e=$1(e,t),e!==null&&(s4(e,t,l),h1(e,l))}function di(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ue(e,l)}function pi(e,t){var l=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(l=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(V(314))}i!==null&&i.delete(t),Ue(e,l)}var Ie;Ie=function(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps||m1.current)c1=!0;else{if(!(e.lanes&l)&&!(t.flags&128))return c1=!1,ci(e,t,l);c1=!!(e.flags&131072)}else c1=!1,k&&t.flags&1048576&&G6(t,n5,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Q4(e,t),e=t.pendingProps;var r=n0(t,i1.current);s0(t,l),r=$7(null,t,i,e,r,l);var C=X7();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,w1(i)?(C=!0,a5(t)):C=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,G7(t),r.updater=B5,t.stateNode=r,r._reactInternals=t,s7(t,i,e,l),t=n7(null,t,i,!0,C,l)):(t.tag=0,k&&C&&D7(t),C1(null,t,r,l),t=t.child),t;case 16:i=t.elementType;e:{switch(Q4(e,t),e=t.pendingProps,r=i._init,i=r(i._payload),t.type=i,r=t.tag=Ei(i),e=R1(i,e),r){case 0:t=o7(null,t,i,e,l);break e;case 1:t=P8(null,t,i,e,l);break e;case 11:t=S8(null,t,i,e,l);break e;case 14:t=k8(null,t,i,R1(i.type,e),l);break e}throw Error(V(306,i,""))}return t;case 0:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:R1(i,r),o7(e,t,i,r,l);case 1:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:R1(i,r),P8(e,t,i,r,l);case 3:e:{if(pe(t),e===null)throw Error(V(387));i=t.pendingProps,C=t.memoizedState,r=C.element,X6(e,t),w5(t,i,null,l);var s=t.memoizedState;if(i=s.element,C.isDehydrated)if(C={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=C,t.memoizedState=C,t.flags&256){r=h0(Error(V(423)),t),t=T8(e,t,i,l,r);break e}else if(i!==r){r=h0(Error(V(424)),t),t=T8(e,t,i,l,r);break e}else for(H1=w2(t.stateNode.containerInfo.firstChild),V1=t,k=!0,F1=null,l=K6(t,null,i,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(c0(),i===r){t=X1(e,t,l);break e}C1(e,t,i,l)}t=t.child}return t;case 5:return Y6(t),e===null&&i7(t),i=t.type,r=t.pendingProps,C=e!==null?e.memoizedProps:null,s=r.children,J9(i,r)?s=null:C!==null&&J9(i,C)&&(t.flags|=32),de(e,t),C1(e,t,s,l),t.child;case 6:return e===null&&i7(t),null;case 13:return ue(e,t,l);case 4:return j7(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=m0(t,null,i,l):C1(e,t,i,l),t.child;case 11:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:R1(i,r),S8(e,t,i,r,l);case 7:return C1(e,t,t.pendingProps,l),t.child;case 8:return C1(e,t,t.pendingProps.children,l),t.child;case 12:return C1(e,t,t.pendingProps.children,l),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,C=t.memoizedProps,s=r.value,F(c5,i._currentValue),i._currentValue=s,C!==null)if(k1(C.value,s)){if(C.children===r.children&&!m1.current){t=X1(e,t,l);break e}}else for(C=t.child,C!==null&&(C.return=t);C!==null;){var a=C.dependencies;if(a!==null){s=C.child;for(var o=a.firstContext;o!==null;){if(o.context===i){if(C.tag===1){o=b1(-1,l&-l),o.tag=2;var c=C.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?o.next=o:(o.next=h.next,h.next=o),c.pending=o}}C.lanes|=l,o=C.alternate,o!==null&&(o.lanes|=l),r7(C.return,l,t),a.lanes|=l;break}o=o.next}}else if(C.tag===10)s=C.type===t.type?null:C.child;else if(C.tag===18){if(s=C.return,s===null)throw Error(V(341));s.lanes|=l,a=s.alternate,a!==null&&(a.lanes|=l),r7(s,l,t),s=C.sibling}else s=C.child;if(s!==null)s.return=C;else for(s=C;s!==null;){if(s===t){s=null;break}if(C=s.sibling,C!==null){C.return=s.return,s=C;break}s=s.return}C=s}C1(e,t,r.children,l),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,s0(t,l),r=E1(r),i=i(r),t.flags|=1,C1(e,t,i,l),t.child;case 14:return i=t.type,r=R1(i,t.pendingProps),r=R1(i.type,r),k8(e,t,i,r,l);case 15:return Ze(e,t,t.type,t.pendingProps,l);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:R1(i,r),Q4(e,t),t.tag=1,w1(i)?(e=!0,a5(t)):e=!1,s0(t,l),ge(t,i,r),s7(t,i,r,l),n7(null,t,i,!0,e,l);case 19:return Ee(e,t,l);case 22:return xe(e,t,l)}throw Error(V(156,t.tag))};function _e(e,t){return L6(e,t)}function ui(e,t,l,i){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function p1(e,t,l,i){return new ui(e,t,l,i)}function s3(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ei(e){if(typeof e=="function")return s3(e)?1:0;if(e!=null){if(e=e.$$typeof,e===E7)return 11;if(e===N7)return 14}return 2}function V2(e,t){var l=e.alternate;return l===null?(l=p1(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&14680064,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l}function X4(e,t,l,i,r,C){var s=2;if(i=e,typeof e=="function")s3(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case j2:return z2(l.children,r,C,t);case u7:s=8,r|=8;break;case z9:return e=p1(12,l,t,r|2),e.elementType=z9,e.lanes=C,e;case F9:return e=p1(13,l,t,r),e.elementType=F9,e.lanes=C,e;case y9:return e=p1(19,l,t,r),e.elementType=y9,e.lanes=C,e;case Y8:return F5(l,r,C,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $8:s=10;break e;case X8:s=9;break e;case E7:s=11;break e;case N7:s=14;break e;case i2:s=16,i=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=p1(s,l,t,r),t.elementType=e,t.type=i,t.lanes=C,t}function z2(e,t,l,i){return e=p1(7,e,i,t),e.lanes=l,e}function F5(e,t,l,i){return e=p1(22,e,i,t),e.elementType=Y8,e.lanes=l,e.stateNode={isHidden:!1},e}function f9(e,t,l){return e=p1(6,e,null,t),e.lanes=l,e}function B9(e,t,l){return t=p1(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ni(e,t,l,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=m9(0),this.expirationTimes=m9(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=m9(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function a3(e,t,l,i,r,C,s,a,o){return e=new Ni(e,t,l,a,o),t===1?(t=1,C===!0&&(t|=8)):t=0,C=p1(3,null,null,t),e.current=C,C.stateNode=e,C.memoizedState={element:i,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},G7(C),e}function fi(e,t,l){var i=3{"use strict";function be(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(be)}catch(e){console.error(e)}}be(),Qe.exports=je()});var Xe=e2(m3=>{"use strict";var $e=Ke();m3.createRoot=$e.createRoot,m3.hydrateRoot=$e.hydrateRoot;var lr});var D5=e2((ar,T5)=>{(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var r="",C=0;CA2.default.createElement(A2.default.Fragment,null,A2.default.createElement("div",{className:"flex rounded-md border border-dashed border-red-700 bg-red-100 p-2"},A2.default.createElement("svg",{className:"h-6 w-6 flex-none text-red-700",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},A2.default.createElement("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})),A2.default.createElement("div",{className:"font-inter px-2 text-sm font-medium text-red-700"},e))),Ye=yi;var Y=J(o1());var w3=J(o1());var Si=(e,t)=>{let[l,i]=w3.default.useState(t),r=C=>s=>{i(a=>d2(_1({},a),{[C]:s})),console.log(`Pushing ${C} to server`,s),e.pushEvent("update_field",{field:C,value:s})};return w3.default.useEffect(()=>{e.handleEvent("update",C=>{console.log("Field update from server",C),i(s=>_1({},Object.assign(s,C.fields)))})},[]),[l,r]},Je=Si;var A5=J(o1()),U5=J(D5()),ki=({name:e,label:t,className:l,defaultValue:i,testId:r,onChange:C,orientation:s="vert"})=>A5.default.createElement("div",{className:(0,U5.default)(l,{"flex flex-row items-baseline":s=="horiz"})},A5.default.createElement("label",{htmlFor:e,className:(0,U5.default)({block:s=="vert","pr-1 uppercase":s=="horiz"},"mb-1 text-sm font-medium")},t),A5.default.createElement("input",{type:"text","data-testid":r!=null?r:e,value:i,name:e,onChange:a=>C(a.target.value),className:(0,U5.default)({"block w-full":s=="vert"},"rounded-lg border border-gray-300 bg-gray-50 p-1.5 text-sm focus:border-blue-500 focus:ring-blue-500")})),I5=ki;var c4=J(o1(),1);var qe=r=>{var C=r,{color:e="currentColor",size:t=24,className:l}=C,i=b5(C,["color","size","className"]);return c4.default.createElement("svg",d2(_1({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},i),{className:"remixicon "+(l||"")}),c4.default.createElement("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"}))};var et=r=>{var C=r,{color:e="currentColor",size:t=24,className:l}=C,i=b5(C,["color","size","className"]);return c4.default.createElement("svg",d2(_1({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},i),{className:"remixicon "+(l||"")}),c4.default.createElement("path",{d:"M18.364 5.63604L16.9497 7.05025C15.683 5.7835 13.933 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12H21C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C14.4853 3 16.7353 4.00736 18.364 5.63604Z"}))};var _5=J(D5()),J1=J(o1()),Pi=({name:e,label:t,options:l,selectedOption:i,onChange:r,error:C,className:s="",orientation:a="vert"})=>J1.default.createElement("div",{className:(0,_5.default)({"flex flex-row items-baseline":a=="horiz"},s)},J1.default.createElement("label",{htmlFor:e,className:(0,_5.default)({block:a=="vert","pr-1 uppercase":a=="horiz"},"mb-1 text-sm font-medium")},t),J1.default.createElement("div",{className:"relative block"},J1.default.createElement("select",{id:e,value:i||void 0,onChange:o=>r(o.target.value),className:(0,_5.default)({"block w-full":a=="vert"},"appearance-none rounded-lg border border-gray-300 bg-gray-50 bg-[length:10px] bg-[center_right_10px] bg-no-repeat p-2 pr-5 text-sm focus:border-blue-500 focus:ring-blue-500")},l.map(o=>J1.default.createElement("option",{key:o.value,value:o.value},o.label))),J1.default.createElement("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-500"},J1.default.createElement(qe,{size:16}))),C&&J1.default.createElement("span",{className:"text-sm text-red-500"},C)),m4=Pi;var g0=J(o1());var lt=J(D5()),Q=J(o1());var tt=(e,t)=>{let l;return(...i)=>{clearTimeout(l),l=setTimeout(()=>{e(...i)},t)}};var Ti=({name:e,selectedValue:t,searchTerm:l,onSearch:i,placeholder:r,disabled:C=!1})=>{let s=tt(c=>{i(c.toLowerCase())},300),[a,o]=Q.default.useState(l!=null?l:"");return Q.default.useEffect(()=>{t&&o(t)},[t]),Q.default.createElement(Q.default.Fragment,null,Q.default.createElement("div",{className:"relative"},Q.default.createElement("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"},Q.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",strokeWidth:1.5,stroke:"currentColor",className:(0,lt.default)("h-5 w-5",{"bg-green-200":t,"text-green-800":t,"border-green-800":t,"rounded-lg":t})},t?Q.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 01-1.043 3.296 3.745 3.745 0 01-3.296 1.043A3.745 3.745 0 0112 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 01-3.296-1.043 3.745 3.745 0 01-1.043-3.296A3.745 3.745 0 013 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 011.043-3.296 3.746 3.746 0 013.296-1.043A3.746 3.746 0 0112 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 013.296 1.043 3.746 3.746 0 011.043 3.296A3.745 3.745 0 0121 12z"}):Q.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"}))),Q.default.createElement("input",{type:"text",value:a,name:e,disabled:C,autoComplete:"off",placeholder:r,onInput:c=>{o(c.target.value),s(c.target.value)},className:"block w-full rounded-lg border border-gray-300 bg-gray-50 p-2 pl-9 text-sm focus:border-blue-500 focus:ring-blue-500"})))},Di=({resultItems:e,itemRenderer:t,onSelect:l,resultItemsKeyField:i})=>Q.default.createElement("div",{className:"max-h-36 overflow-auto rounded-b-lg border-b border-l border-r border-gray-300"},Q.default.createElement("div",{className:"w-max min-w-full"},e.map(r=>Q.default.createElement("div",{key:r[i],onClick:()=>l(r),className:"border-b-solid last:border-b-none cursor-pointer border-b border-b-gray-300 bg-gray-50 px-2 py-0.5 hover:bg-blue-600 hover:text-white"},t(r))))),Ai=({name:e,label:t,searchTerm:l,onSearch:i,resultItems:r,resultItemsKeyField:C,itemRenderer:s,className:a="",onSelect:o,selectedValue:c,placeholder:h,disabled:H=!1})=>Q.default.createElement("div",{className:a},Q.default.createElement("label",{htmlFor:e,className:"mb-1 block text-sm font-medium"},t),Q.default.createElement(Ti,{name:e,onSearch:i,searchTerm:l,selectedValue:c,placeholder:h,disabled:H}),(r&&r.length)>0&&Q.default.createElement(Di,{resultItems:r,itemRenderer:s,onSelect:o,resultItemsKeyField:C})),O5=Ai;var w4=J(o1()),Ui=({gvk:e})=>w4.default.createElement(w4.default.Fragment,null,w4.default.createElement("div",{className:"text-xs text-gray-400"},e.api_version),w4.default.createElement("div",{className:"text-sm"},e.kind)),W5=Ui;var h3=J(o1());var Ii=e=>e.options.length>0?h3.default.createElement(m4,_1({},e)):h3.default.createElement(I5,d2(_1({},e),{defaultValue:e.selectedOption})),U2=Ii;var _i=({fields:e,updateField:t})=>{var l,i;return g0.default.createElement("div",{className:"flex gap-x-5 p-3"},g0.default.createElement(O5,{className:"max-w-full",name:"gvk",label:"Resource Kind",onSearch:t("search_term"),searchTerm:e.search_term,resultItemsKeyField:"index",resultItems:e.search_result_items,onSelect:t("gvk"),itemRenderer:r=>g0.default.createElement(W5,{gvk:r}),selectedValue:(l=e.gvk)==null?void 0:l.kind,placeholder:"apps/v1 Deployment"}),e.namespaces&&g0.default.createElement(U2,{name:"namespace",label:"Namespace",options:e.namespaces.map(r=>({label:r,value:r})),selectedOption:e.namespace,onChange:t("namespace")}),e.gvk&&e.resources&&g0.default.createElement(U2,{name:"resource",label:(i=e.gvk)==null?void 0:i.kind,options:e.resources.map(r=>({label:r,value:r})),selectedOption:e.resource,onChange:t("resource")}))},it=_i;var I2=J(o1());var Oi=({fields:e,updateField:t})=>{var l;return I2.default.createElement("div",{className:"flex gap-x-5 p-3"},I2.default.createElement(O5,{className:"opacity-60",name:"gvk",label:"Resource Kind",onSearch:t("search_term"),searchTerm:e.search_term,resultItemsKeyField:"index",resultItems:e.search_result_items,onSelect:t("gvk"),itemRenderer:i=>I2.default.createElement(W5,{gvk:i}),selectedValue:(l=e.gvk)==null?void 0:l.kind,placeholder:"apps/v1 Deployment",disabled:!0}),e.namespaces&&I2.default.createElement(U2,{name:"namespace",label:"Namespace",options:e.namespaces.map(i=>({label:i,value:i})),selectedOption:e.namespace,onChange:t("namespace")}),e.resources&&I2.default.createElement(U2,{name:"resource",label:e.gvk.kind,options:e.resources.map(i=>({label:i,value:i})),selectedOption:e.resource,onChange:t("resource")}),e.containers&&I2.default.createElement(U2,{name:"container",label:"Container",options:e.containers.map(i=>({label:i,value:i})),selectedOption:e.container,onChange:t("container")}))},rt=Oi;var Wi=["get","list","watch"],Gi=["exec","logs"],ji=({payload:e,ctx:t})=>{let[l,i]=Je(t,e.fields),[r,C]=Y.default.useState(e.connection_state);return Y.default.useEffect(()=>t.handleEvent("connectionState",C),[]),Y.default.createElement(Y.default.Fragment,null,Y.default.createElement("div",{className:"font-inter rounded-md border border-solid border-gray-300 font-medium text-gray-600"},Y.default.createElement("div",{className:"border-b-solid flex gap-x-5 gap-y-3 border-b border-b-gray-300 bg-blue-100 p-3"},Y.default.createElement(m4,{name:"operation",label:"Operation",options:l.operations.map(s=>({label:s.toUpperCase(),value:s})),selectedOption:l.operation,onChange:i("operation"),orientation:"horiz"}),Y.default.createElement(I5,{label:"Assign To",name:"assign_to",className:"ml-auto",defaultValue:l.result_variable,onChange:i("result_variable"),orientation:"horiz"})),Y.default.createElement("div",{className:"border-b-solid flex gap-x-5 gap-y-3 border-b border-b-gray-300 bg-gray-200 p-3"},Y.default.createElement(m4,{name:"context",label:"Context",options:l.contexts.map(s=>({label:s,value:s})),selectedOption:l.context,onChange:i("context"),orientation:"vert",error:r==null?void 0:r.message})),Y.default.createElement(Y.default.Fragment,null,(r==null?void 0:r.state)=="loading"&&Y.default.createElement("span",{className:"flex items-center gap-x-1 p-3"},Y.default.createElement(et,{size:32,className:"animate-spin"})," Connecting to the cluster..."),(r==null?void 0:r.state)=="ok"&&Wi.includes(l.operation)&&Y.default.createElement(it,{fields:l,updateField:i}),(r==null?void 0:r.state)=="ok"&&Gi.includes(l.operation)&&Y.default.createElement(rt,{fields:l,updateField:i}))))},Ct=ji;var Ir=async(e,t)=>{e.root.innerHTML="loading...",e.importCSS("main.css"),e.importCSS("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap");let l=(0,st.createRoot)(e.root);if(t.fields.error)return l.render(L3.default.createElement(Ye,{message:t.fields.error}));l.render(L3.default.createElement(Ct,{payload:t,ctx:e}))};export{Ir as init}; /*! Bundled license information: react/cjs/react.production.min.js: diff --git a/mix.exs b/mix.exs index e5f2dc7..41fbeac 100644 --- a/mix.exs +++ b/mix.exs @@ -2,7 +2,7 @@ defmodule KinoK8s.MixProject do use Mix.Project @source_url "https://github.com/mruoss/kino_k8s" - @version "1.2.4" + @version "2.0.0" def project do [ diff --git a/mix.lock b/mix.lock index ccbb879..8c0df89 100644 --- a/mix.lock +++ b/mix.lock @@ -10,6 +10,7 @@ "jason": {:hex, :jason, "1.4.1", "af1504e35f629ddcdd6addb3513c3853991f694921b1b9368b0bd32beb9f1b63", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "fbb01ecdfd565b56261302f7e1fcc27c4fb8f32d56eab74db621fc154604a7a1"}, "k8s": {:hex, :k8s, "2.6.1", "ef949e268a65fc45e4481e1071b96c8aa7eae028f0f451052c301d72aae649a2", [:mix], [{:castore, "~> 1.0", [hex: :castore, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mint, "~> 1.0", [hex: :mint, repo: "hexpm", optional: false]}, {:mint_web_socket, "~> 1.0", [hex: :mint_web_socket, repo: "hexpm", optional: false]}, {:poolboy, "~> 1.5", [hex: :poolboy, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:yaml_elixir, "~> 2.8", [hex: :yaml_elixir, repo: "hexpm", optional: false]}], "hexpm", "a95bde29b60ea94b2ba341969f911e94ae38fc635a332549c39e726ba76ebe10"}, "kino": {:hex, :kino, "0.14.0", "d0e18f8bcbf81de41dbafdad9c7b9f0607f5e87c2d881cd46e567477abf0fd37", [:mix], [{:fss, "~> 0.1.0", [hex: :fss, repo: "hexpm", optional: false]}, {:nx, "~> 0.1", [hex: :nx, repo: "hexpm", optional: true]}, {:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: true]}, {:table, "~> 0.1.2", [hex: :table, repo: "hexpm", optional: false]}], "hexpm", "91bcc77cc58a6ed69697d6e2bdf5f577b03f93476a26270dea66b1a770b1fc76"}, + "kubereq": {:hex, :kubereq, "0.4.0", "06fe6cd160fb68e00bbbb53b0c03f50a21d7df7a8b7b634a977c09e816dcb98a", [:mix], [{:fresh, "~> 0.4.4", [hex: :fresh, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mint, "~> 1.0", [hex: :mint, repo: "hexpm", optional: false]}, {:mint_web_socket, "~> 1.0", [hex: :mint_web_socket, repo: "hexpm", optional: false]}, {:pluggable, "~> 1.0", [hex: :pluggable, repo: "hexpm", optional: false]}, {:req, "~> 0.5.0", [hex: :req, repo: "hexpm", optional: false]}, {:yaml_elixir, "~> 2.0", [hex: :yaml_elixir, repo: "hexpm", optional: false]}], "hexpm", "8bd33a00f114b51ba8e1e1c2dc2bd4579d6934efdaecff92ea473c24af1a2ff4"}, "makeup": {:hex, :makeup, "1.1.2", "9ba8837913bdf757787e71c1581c21f9d2455f4dd04cfca785c70bbfff1a76a3", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "cce1566b81fbcbd21eca8ffe808f33b221f9eee2cbc7a1706fc3da9ff18e6cac"}, "makeup_elixir": {:hex, :makeup_elixir, "0.16.2", "627e84b8e8bf22e60a2579dad15067c755531fea049ae26ef1020cad58fe9578", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "41193978704763f6bbe6cc2758b84909e62984c7752b3784bd3c218bb341706b"}, "makeup_erlang": {:hex, :makeup_erlang, "1.0.0", "6f0eff9c9c489f26b69b61440bf1b238d95badae49adac77973cbacae87e3c2e", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "ea7a9307de9d1548d2a72d299058d1fd2339e3d398560a0e46c27dab4891e4d2"},