@cravern/bpmn-flow-designer 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,4 @@
1
- (function(Pt,Te){typeof exports=="object"&&typeof module<"u"?Te(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],Te):(Pt=typeof globalThis<"u"?globalThis:Pt||self,Te(Pt.BpmnFlowDesigner={},Pt.React))})(this,(function(Pt,Te){"use strict";var Gr=document.createElement("style");Gr.textContent=`@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}body{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-family:Inter,Inter Var,system-ui,sans-serif}.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}}.bpmn-io-style .djs-palette{display:none!important}.bpmn-io-style .djs-container{background-color:transparent!important}.bjs-powered-by{display:none!important}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-right-4{right:-1rem}.top-0{top:0}.top-1\\/2{top:50%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.mr-1{margin-right:.25rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-auto{margin-top:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-14{height:3.5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-5{height:1.25rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-3{width:.75rem}.w-5{width:1.25rem}.w-80{width:20rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-7xl{max-width:80rem}.flex-1{flex:1 1 0%}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-grab{cursor:grab}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-8{gap:2rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity, 1))}.border-slate-100{--tw-border-opacity: 1;border-color:rgb(241 245 249 / var(--tw-border-opacity, 1))}.border-slate-200{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity, 1))}.border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity, 1))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.bg-slate-50\\/50{background-color:#f8fafc80}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\\/80{background-color:#fffc}.bg-\\[radial-gradient\\(\\#e5e7eb_1px\\,transparent_1px\\)\\]{background-image:radial-gradient(#e5e7eb 1px,transparent 1px)}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pl-4{padding-left:1rem}.pt-6{padding-top:1.5rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[10px\\]{font-size:10px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tracking-tight{letter-spacing:-.025em}.tracking-tighter{letter-spacing:-.05em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity, 1))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-40{opacity:.4}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.\\[background-size\\:24px_24px\\]{background-size:24px 24px}.hover\\:border-indigo-400:hover{--tw-border-opacity: 1;border-color:rgb(129 140 248 / var(--tw-border-opacity, 1))}.hover\\:bg-indigo-200:hover{--tw-bg-opacity: 1;background-color:rgb(199 210 254 / var(--tw-bg-opacity, 1))}.hover\\:bg-indigo-50\\/50:hover{background-color:#eef2ff80}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.hover\\:bg-slate-200:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}.hover\\:text-indigo-600:hover{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.hover\\:text-slate-700:hover{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.hover\\:shadow-sm:hover{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:bg-slate-300:disabled{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}.group:hover .group-hover\\:opacity-100{opacity:1}@media(min-width:1024px){.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}
2
- /*$vite$:1*/`,document.head.appendChild(Gr);function Ml(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var $n={exports:{}},vn={};/**
1
+ (function(Mn,gd){typeof exports=="object"&&typeof module<"u"?gd(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],gd):(Mn=typeof globalThis<"u"?globalThis:Mn||self,gd(Mn.React,Mn.ReactDOM))})(this,(function(Mn,gd){"use strict";function Db(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var fv={exports:{}},ep={};/**
3
2
  * @license React
4
3
  * react-jsx-runtime.production.js
5
4
  *
@@ -7,7 +6,7 @@
7
6
  *
8
7
  * This source code is licensed under the MIT license found in the
9
8
  * LICENSE file in the root directory of this source tree.
10
- */var qr;function Il(){if(qr)return vn;qr=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,r,o){var l=null;if(o!==void 0&&(l=""+o),r.key!==void 0&&(l=""+r.key),"key"in r){o={};for(var u in r)u!=="key"&&(o[u]=r[u])}else o=r;return r=o.ref,{$$typeof:n,type:i,key:l,ref:r!==void 0?r:null,props:o}}return vn.Fragment=e,vn.jsx=t,vn.jsxs=t,vn}var _n={};/**
9
+ */var nE;function xb(){if(nE)return ep;nE=1;var c=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function a(r,f,y){var C=null;if(y!==void 0&&(C=""+y),f.key!==void 0&&(C=""+f.key),"key"in f){y={};for(var E in f)E!=="key"&&(y[E]=f[E])}else y=f;return f=y.ref,{$$typeof:c,type:r,key:C,ref:f!==void 0?f:null,props:y}}return ep.Fragment=l,ep.jsx=a,ep.jsxs=a,ep}var tp={};/**
11
10
  * @license React
12
11
  * react-jsx-runtime.development.js
13
12
  *
@@ -15,227 +14,452 @@
15
14
  *
16
15
  * This source code is licensed under the MIT license found in the
17
16
  * LICENSE file in the root directory of this source tree.
18
- */var Hr;function Pl(){return Hr||(Hr=1,process.env.NODE_ENV!=="production"&&(function(){function n(m){if(m==null)return null;if(typeof m=="function")return m.$$typeof===O?null:m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case D:return"Fragment";case T:return"Profiler";case F:return"StrictMode";case I:return"Suspense";case R:return"SuspenseList";case P:return"Activity"}if(typeof m=="object")switch(typeof m.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),m.$$typeof){case b:return"Portal";case A:return m.displayName||"Context";case k:return(m._context.displayName||"Context")+".Consumer";case S:var _=m.render;return m=m.displayName,m||(m=_.displayName||_.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case M:return _=m.displayName||null,_!==null?_:n(m.type)||"Memo";case C:_=m._payload,m=m._init;try{return n(m(_))}catch{}}return null}function e(m){return""+m}function t(m){try{e(m);var _=!1}catch{_=!0}if(_){_=console;var v=_.error,E=typeof Symbol=="function"&&Symbol.toStringTag&&m[Symbol.toStringTag]||m.constructor.name||"Object";return v.call(_,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",E),e(m)}}function i(m){if(m===D)return"<>";if(typeof m=="object"&&m!==null&&m.$$typeof===C)return"<...>";try{var _=n(m);return _?"<"+_+">":"<...>"}catch{return"<...>"}}function r(){var m=U.A;return m===null?null:m.getOwner()}function o(){return Error("react-stack-top-frame")}function l(m){if($.call(m,"key")){var _=Object.getOwnPropertyDescriptor(m,"key").get;if(_&&_.isReactWarning)return!1}return m.key!==void 0}function u(m,_){function v(){ce||(ce=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",_))}v.isReactWarning=!0,Object.defineProperty(m,"key",{get:v,configurable:!0})}function c(){var m=n(this.type);return ne[m]||(ne[m]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),m=this.props.ref,m!==void 0?m:null}function f(m,_,v,E,N,Z){var ee=v.ref;return m={$$typeof:w,type:m,key:_,props:v,_owner:E},(ee!==void 0?ee:null)!==null?Object.defineProperty(m,"ref",{enumerable:!1,get:c}):Object.defineProperty(m,"ref",{enumerable:!1,value:null}),m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(m,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(m,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:N}),Object.defineProperty(m,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m}function d(m,_,v,E,N,Z){var ee=_.children;if(ee!==void 0)if(E)if(te(ee)){for(E=0;E<ee.length;E++)h(ee[E]);Object.freeze&&Object.freeze(ee)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(ee);if($.call(_,"key")){ee=n(m);var oe=Object.keys(_).filter(function(ye){return ye!=="key"});E=0<oe.length?"{key: someKey, "+oe.join(": ..., ")+": ...}":"{key: someKey}",p[ee+E]||(oe=0<oe.length?"{"+oe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var lE;function Ub(){return lE||(lE=1,process.env.NODE_ENV!=="production"&&(function(){function c(ee){if(ee==null)return null;if(typeof ee=="function")return ee.$$typeof===ht?null:ee.displayName||ee.name||null;if(typeof ee=="string")return ee;switch(ee){case se:return"Fragment";case de:return"Profiler";case fe:return"StrictMode";case Oe:return"Suspense";case Be:return"SuspenseList";case ue:return"Activity"}if(typeof ee=="object")switch(typeof ee.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),ee.$$typeof){case ie:return"Portal";case Te:return ee.displayName||"Context";case me:return(ee._context.displayName||"Context")+".Consumer";case Re:var ve=ee.render;return ee=ee.displayName,ee||(ee=ve.displayName||ve.name||"",ee=ee!==""?"ForwardRef("+ee+")":"ForwardRef"),ee;case Ne:return ve=ee.displayName||null,ve!==null?ve:c(ee.type)||"Memo";case De:ve=ee._payload,ee=ee._init;try{return c(ee(ve))}catch{}}return null}function l(ee){return""+ee}function a(ee){try{l(ee);var ve=!1}catch{ve=!0}if(ve){ve=console;var Ae=ve.error,Me=typeof Symbol=="function"&&Symbol.toStringTag&&ee[Symbol.toStringTag]||ee.constructor.name||"Object";return Ae.call(ve,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Me),l(ee)}}function r(ee){if(ee===se)return"<>";if(typeof ee=="object"&&ee!==null&&ee.$$typeof===De)return"<...>";try{var ve=c(ee);return ve?"<"+ve+">":"<...>"}catch{return"<...>"}}function f(){var ee=tt.A;return ee===null?null:ee.getOwner()}function y(){return Error("react-stack-top-frame")}function C(ee){if(Pe.call(ee,"key")){var ve=Object.getOwnPropertyDescriptor(ee,"key").get;if(ve&&ve.isReactWarning)return!1}return ee.key!==void 0}function E(ee,ve){function Ae(){Y||(Y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ve))}Ae.isReactWarning=!0,Object.defineProperty(ee,"key",{get:Ae,configurable:!0})}function b(){var ee=c(this.type);return le[ee]||(le[ee]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),ee=this.props.ref,ee!==void 0?ee:null}function A(ee,ve,Ae,Me,rn,da){var Xt=Ae.ref;return ee={$$typeof:F,type:ee,key:ve,props:Ae,_owner:Me},(Xt!==void 0?Xt:null)!==null?Object.defineProperty(ee,"ref",{enumerable:!1,get:b}):Object.defineProperty(ee,"ref",{enumerable:!1,value:null}),ee._store={},Object.defineProperty(ee._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(ee,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(ee,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:rn}),Object.defineProperty(ee,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:da}),Object.freeze&&(Object.freeze(ee.props),Object.freeze(ee)),ee}function D(ee,ve,Ae,Me,rn,da){var Xt=ve.children;if(Xt!==void 0)if(Me)if(Bt(Xt)){for(Me=0;Me<Xt.length;Me++)N(Xt[Me]);Object.freeze&&Object.freeze(Xt)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else N(Xt);if(Pe.call(ve,"key")){Xt=c(ee);var ha=Object.keys(ve).filter(function(Mc){return Mc!=="key"});Me=0<ha.length?"{key: someKey, "+ha.join(": ..., ")+": ...}":"{key: someKey}",qe[Xt+Me]||(ha=0<ha.length?"{"+ha.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
19
18
  let props = %s;
20
19
  <%s {...props} />
21
20
  React keys must be passed directly to JSX without using spread:
22
21
  let props = %s;
23
- <%s key={someKey} {...props} />`,E,ee,oe,ee),p[ee+E]=!0)}if(ee=null,v!==void 0&&(t(v),ee=""+v),l(_)&&(t(_.key),ee=""+_.key),"key"in _){v={};for(var Ae in _)Ae!=="key"&&(v[Ae]=_[Ae])}else v=_;return ee&&u(v,typeof m=="function"?m.displayName||m.name||"Unknown":m),f(m,ee,v,r(),N,Z)}function h(m){g(m)?m._store&&(m._store.validated=1):typeof m=="object"&&m!==null&&m.$$typeof===C&&(m._payload.status==="fulfilled"?g(m._payload.value)&&m._payload.value._store&&(m._payload.value._store.validated=1):m._store&&(m._store.validated=1))}function g(m){return typeof m=="object"&&m!==null&&m.$$typeof===w}var x=Te,w=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),A=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),O=Symbol.for("react.client.reference"),U=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,te=Array.isArray,Fe=console.createTask?console.createTask:function(){return null};x={react_stack_bottom_frame:function(m){return m()}};var ce,ne={},qe=x.react_stack_bottom_frame.bind(x,o)(),y=Fe(i(o)),p={};_n.Fragment=D,_n.jsx=function(m,_,v){var E=1e4>U.recentlyCreatedOwnerStacks++;return d(m,_,v,!1,E?Error("react-stack-top-frame"):qe,E?Fe(i(m)):y)},_n.jsxs=function(m,_,v){var E=1e4>U.recentlyCreatedOwnerStacks++;return d(m,_,v,!0,E?Error("react-stack-top-frame"):qe,E?Fe(i(m)):y)}})()),_n}var Wr;function kl(){return Wr||(Wr=1,process.env.NODE_ENV==="production"?$n.exports=Il():$n.exports=Pl()),$n.exports}var V=kl();function et(n,e){e&&(n.super_=e,n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}const xn=Object.prototype.toString,Nl=Object.prototype.hasOwnProperty;function Di(n){return n===void 0}function Wt(n){return n!==void 0}function zr(n){return n==null}function Ke(n){return xn.call(n)==="[object Array]"}function kt(n){return xn.call(n)==="[object Object]"}function gt(n){return xn.call(n)==="[object Number]"}function yt(n){const e=xn.call(n);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"||e==="[object Proxy]"}function tt(n){return xn.call(n)==="[object String]"}function Gn(n,e){return!zr(n)&&Nl.call(n,e)}function Je(n,e){const t=Li(e);let i;return q(n,function(r,o){if(t(r,o))return i=r,!1}),i}function Dl(n,e){const t=Li(e);let i=Ke(n)?-1:void 0;return q(n,function(r,o){if(t(r,o))return i=o,!1}),i}function zt(n,e){const t=Li(e);let i=[];return q(n,function(r,o){t(r,o)&&i.push(r)}),i}function q(n,e){let t,i;if(Di(n))return;const r=Ke(n)?Vl:Fl;for(let o in n)if(Gn(n,o)&&(t=n[o],i=e(t,r(o)),i===!1))return t}function Yt(n,e,t){return q(n,function(i,r){t=e(t,i,r)}),t}function Yr(n,e){return!!Yt(n,function(t,i,r){return t&&e(i,r)},!0)}function Kr(n,e){return!!Je(n,e)}function Ll(n,e){let t=[];return q(n,function(i,r){t.push(e(i,r))}),t}function Jr(n){return function(e){return Yr(n,function(t,i){return e[i]===t})}}function Li(n){return yt(n)?n:e=>e===n}function Fl(n){return n}function Vl(n){return Number(n)}function Bl(n,e){let t,i,r,o;function l(h){let g=Date.now(),x=h?0:o+e-g;if(x>0)return u(x);n.apply(r,i),c()}function u(h){t=setTimeout(l,h)}function c(){t&&clearTimeout(t),t=o=i=r=void 0}function f(){t&&l(!0),c()}function d(...h){o=Date.now(),i=h,r=this,t||u(e)}return d.flush=f,d.cancel=c,d}function vt(n,e){return n.bind(e)}function Y(n,...e){return Object.assign(n,...e)}function Ol(n,e,t){let i=n;return q(e,function(r,o){if(typeof r!="number"&&typeof r!="string")throw new Error("illegal key type: "+typeof r+". Key should be of type number or string.");if(r==="constructor")throw new Error("illegal key: constructor");if(r==="__proto__")throw new Error("illegal key: __proto__");let l=e[o+1],u=i[r];Wt(l)&&zr(u)&&(u=i[r]=isNaN(+l)?{}:[]),Di(l)?Di(t)?delete i[r]:i[r]=t:i=u}),n}function Ul(n,e){let t={},i=Object(n);return q(e,function(r){r in i&&(t[r]=n[r])}),t}function $l(n,e){let t={},i=Object(n);return q(i,function(r,o){e.indexOf(o)===-1&&(t[o]=r)}),t}var Gl=1e3;function ut(n,e){var t=this;e=e||Gl,n.on(["render.shape","render.connection"],e,function(i,r){var o=i.type,l=r.element,u=r.gfx,c=r.attrs;if(t.canRender(l))return o==="render.shape"?t.drawShape(u,l,c):t.drawConnection(u,l,c)}),n.on(["render.getShapePath","render.getConnectionPath"],e,function(i,r){if(t.canRender(r))return i.type==="render.getShapePath"?t.getShapePath(r):t.getConnectionPath(r)})}ut.prototype.canRender=function(n){},ut.prototype.drawShape=function(n,e){},ut.prototype.drawConnection=function(n,e){},ut.prototype.getShapePath=function(n){},ut.prototype.getConnectionPath=function(n){};function K(n,e){var t=ve(n);return t&&typeof t.$instanceOf=="function"&&t.$instanceOf(e)}function ql(n,e){return Kr(e,function(t){return K(n,t)})}function ve(n){return n&&n.businessObject||n}function Kt(n){return n&&n.di}function Fi(n,e){return K(n,"bpmn:CallActivity")?!1:K(n,"bpmn:SubProcess")?(e=e||Kt(n),e&&K(e,"bpmndi:BPMNPlane")?!0:e&&!!e.isExpanded):K(n,"bpmn:Participant")?!!ve(n).processRef:!0}function Hl(n){return n&&!!ve(n).triggeredByEvent}function Wl(n){return kt(n)&&Gn(n,"waypoints")}var qn={width:90,height:20},Zr=15;function zl(n){return K(n,"bpmn:Event")||K(n,"bpmn:Gateway")||K(n,"bpmn:DataStoreReference")||K(n,"bpmn:DataObjectReference")||K(n,"bpmn:DataInput")||K(n,"bpmn:DataOutput")||K(n,"bpmn:SequenceFlow")||K(n,"bpmn:MessageFlow")||K(n,"bpmn:Group")}function Yl(n){var e=n.length/2-1,t=n[Math.floor(e)],i=n[Math.ceil(e+.01)],r=Kl(n),o=Math.atan((i.y-t.y)/(i.x-t.x)),l=r.x,u=r.y;return Math.abs(o)<Math.PI/2?u-=Zr:l+=Zr,{x:l,y:u}}function Kl(n){var e=n.length/2-1,t=n[Math.floor(e)],i=n[Math.ceil(e+.01)];return{x:t.x+(i.x-t.x)/2,y:t.y+(i.y-t.y)/2}}function Jl(n){return n.waypoints?Yl(n.waypoints):K(n,"bpmn:Group")?{x:n.x+n.width/2,y:n.y+qn.height/2}:{x:n.x+n.width/2,y:n.y+n.height+qn.height/2}}function Zl(n,e){var t,i,r,o=n.label;return o&&o.bounds?(r=o.bounds,i={width:Math.max(qn.width,r.width),height:r.height},t={x:r.x+r.width/2,y:r.y+r.height/2}):(t=Jl(e),i=qn),Y({x:t.x-i.width/2,y:t.y-i.height/2},i)}function Xl(n){if(K(n,"bpmn:FlowElement")||K(n,"bpmn:Participant")||K(n,"bpmn:Lane")||K(n,"bpmn:SequenceFlow")||K(n,"bpmn:MessageFlow")||K(n,"bpmn:DataInput")||K(n,"bpmn:DataOutput"))return"name";if(K(n,"bpmn:TextAnnotation"))return"text";if(K(n,"bpmn:Group"))return"categoryValueRef"}function Ql(n){var e=n.categoryValueRef;return e&&e.value||""}function Hn(n){var e=n.businessObject,t=Xl(e);if(t)return t==="categoryValueRef"?Ql(e):e[t]||""}function jl(n,e){if(n.ownerDocument!==e.ownerDocument)try{return e.ownerDocument.importNode(n,!0)}catch{}return n}function eu(n,e){return e.appendChild(jl(n,e))}function _e(n,e){return eu(e,n),n}var Vi=2,Xr={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":Vi,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":Vi,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function tu(n,e){return Xr[e]?n.style[e]:n.getAttributeNS(null,e)}function Qr(n,e,t){var i=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=Xr[i];r?(r===Vi&&typeof t=="number"&&(t=String(t)+"px"),n.style[i]=t):n.setAttributeNS(null,e,t)}function nu(n,e){var t=Object.keys(e),i,r;for(i=0,r;r=t[i];i++)Qr(n,r,e[r])}function le(n,e,t){if(typeof e=="string")if(t!==void 0)Qr(n,e,t);else return tu(n,e);else nu(n,e);return n}const iu=Object.prototype.toString;function Oe(n){return new _t(n)}function _t(n){if(!n||!n.nodeType)throw new Error("A DOM element reference is required");this.el=n,this.list=n.classList}_t.prototype.add=function(n){return this.list.add(n),this},_t.prototype.remove=function(n){return iu.call(n)=="[object RegExp]"?this.removeMatching(n):(this.list.remove(n),this)},_t.prototype.removeMatching=function(n){const e=this.array();for(let t=0;t<e.length;t++)n.test(e[t])&&this.remove(e[t]);return this},_t.prototype.toggle=function(n,e){return typeof e<"u"?e!==this.list.toggle(n,e)&&this.list.toggle(n):this.list.toggle(n),this},_t.prototype.array=function(){return Array.from(this.list)},_t.prototype.has=_t.prototype.contains=function(n){return this.list.contains(n)};function ru(n){for(var e;e=n.firstChild;)n.removeChild(e);return n}var Bi={svg:"http://www.w3.org/2000/svg"},jr='<svg xmlns="'+Bi.svg+'"';function ou(n){var e=!1;n.substring(0,4)==="<svg"?n.indexOf(Bi.svg)===-1&&(n=jr+n.substring(4)):(n=jr+">"+n+"</svg>",e=!0);var t=su(n);if(!e)return t;for(var i=document.createDocumentFragment(),r=t.firstChild;r.firstChild;)i.appendChild(r.firstChild);return i}function su(n){var e;return e=new DOMParser,e.async=!1,e.parseFromString(n,"text/xml")}function de(n,e){var t;return n=n.trim(),n.charAt(0)==="<"?(t=ou(n).firstChild,t=document.importNode(t,!0)):t=document.createElementNS(Bi.svg,n),e&&le(t,e),t}var Oi=null;function eo(){return Oi===null&&(Oi=de("svg")),Oi}function to(n,e){var t,i,r=Object.keys(e);for(t=0;i=r[t];t++)n[i]=e[i];return n}function au(n,e,t,i,r,o){var l=eo().createSVGMatrix();switch(arguments.length){case 0:return l;case 1:return to(l,n);case 6:return to(l,{a:n,b:e,c:t,d:i,e:r,f:o})}}function Cn(n){return eo().createSVGTransform()}var no=/([&<>]{1})/g,lu=/([&<>\n\r"]{1})/g,uu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"'"};function Ui(n,e){function t(i,r){return uu[r]||r}return n.replace(e,t)}function io(n,e){var t,i,r,o,l;switch(n.nodeType){case 3:e.push(Ui(n.textContent,no));break;case 1:if(e.push("<",n.tagName),n.hasAttributes())for(r=n.attributes,t=0,i=r.length;t<i;++t)o=r.item(t),e.push(" ",o.name,'="',Ui(o.value,lu),'"');if(n.hasChildNodes()){for(e.push(">"),l=n.childNodes,t=0,i=l.length;t<i;++t)io(l.item(t),e);e.push("</",n.tagName,">")}else e.push("/>");break;case 8:e.push("<!--",Ui(n.nodeValue,no),"-->");break;case 4:e.push("<![CDATA[",n.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+n.nodeType)}return e}function cu(n){for(var e=n.firstChild,t=[];e;)io(e,t),e=e.nextSibling;return t.join("")}function ro(n,e){return cu(n)}function En(n){var e=n.parentNode;return e&&e.removeChild(n),n}function fu(n,e){return e instanceof SVGMatrix?n.createSVGTransformFromMatrix(e):e}function du(n,e){var t,i;for(n.clear(),t=0;i=e[t];t++)n.appendItem(fu(n,i))}function Tn(n,e){var t=n.transform.baseVal;return e&&(Array.isArray(e)||(e=[e]),du(t,e)),t.consolidate()}function Nt(n){return n.flat().join(",").replace(/,?([A-z]),?/g,"$1")}function pu(n){return["M",n.x,n.y]}function $i(n){return["L",n.x,n.y]}function hu(n,e,t){return["C",n.x,n.y,e.x,e.y,t.x,t.y]}function mu(n,e){const t=n.length,i=[pu(n[0])];for(let r=1;r<t;r++){const o=n[r-1],l=n[r],u=n[r+1];if(!u||!e){i.push($i(l));continue}const c=Math.min(e,Gi(l.x-o.x,l.y-o.y),Gi(u.x-l.x,u.y-l.y));if(!c){i.push($i(l));continue}const f=Wn(l,o,c),d=Wn(l,o,c*.5),h=Wn(l,u,c),g=Wn(l,u,c*.5);i.push($i(f)),i.push(hu(d,g,h))}return i}function Wn(n,e,t){const i=e.x-n.x,r=e.y-n.y,o=Gi(i,r),l=t/o;return{x:n.x+i*l,y:n.y+r*l}}function Gi(n,e){return Math.sqrt(Math.pow(n,2)+Math.pow(e,2))}function qi(n,e,t){gt(e)&&(t=e,e=null),e||(e={});const i=de("path",e);return gt(t)&&(i.dataset.cornerRadius=String(t)),oo(i,n)}function oo(n,e){const t=parseInt(n.dataset.cornerRadius,10)||0;return le(n,{d:Nt(mu(e,t))}),n}var wn="hsl(225, 10%, 15%)";function nt(n,e){return Kr(n.eventDefinitions,function(t){return t.$type===e})}function gu(n){return n.$type==="bpmn:IntermediateThrowEvent"||n.$type==="bpmn:EndEvent"}function yu(n){var e=n.dataObjectRef;return n.isCollection||e&&e.isCollection}function re(n,e){var t=Kt(n);return t.get("color:background-color")||t.get("bioc:fill")||e||"white"}function B(n,e){var t=Kt(n);return t.get("color:border-color")||t.get("bioc:stroke")||e||wn}function Sn(n,e,t){var i=Kt(n),r=i.get("label");return r&&r.get("color:color")||e||B(n,t)}function vu(n){var e=n.x+n.width/2,t=n.y+n.height/2,i=n.width/2,r=[["M",e,t],["m",0,-i],["a",i,i,0,1,1,0,2*i],["a",i,i,0,1,1,0,-2*i],["z"]];return Nt(r)}function _u(n,e){var t=n.x,i=n.y,r=n.width,o=n.height,l=[["M",t+e,i],["l",r-e*2,0],["a",e,e,0,0,1,e,e],["l",0,o-e*2],["a",e,e,0,0,1,-e,e],["l",e*2-r,0],["a",e,e,0,0,1,-e,-e],["l",0,e*2-o],["a",e,e,0,0,1,e,-e],["z"]];return Nt(l)}function xu(n){var e=n.width,t=n.height,i=n.x,r=n.y,o=e/2,l=t/2,u=[["M",i+o,r],["l",o,l],["l",-o,l],["l",-o,-l],["z"]];return Nt(u)}function Cu(n){var e=n.x,t=n.y,i=n.width,r=n.height,o=[["M",e,t],["l",i,0],["l",0,r],["l",-i,0],["z"]];return Nt(o)}function Eu(n,e){return e.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(i){if(i!=="default"&&!(i in n)){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}})}),Object.freeze(n)}const Tu=Object.prototype.toString,wu=Object.prototype.hasOwnProperty;function Su(n){return n===void 0}function Au(n){return Tu.call(n)==="[object Array]"}function bu(n,e){return wu.call(n,e)}function so(n,e){let t,i;if(Su(n))return;const r=Au(n)?Mu:Ru;for(let o in n)if(bu(n,o)&&(t=n[o],i=e(t,r(o)),i===!1))return t}function Ru(n){return n}function Mu(n){return Number(n)}function Ve(n,...e){const t=n.style;return so(e,function(i){i&&so(i,function(r,o){t[o]=r})}),n}function Iu(n,e,t){return arguments.length==2?n.getAttribute(e):t===null?n.removeAttribute(e):(n.setAttribute(e,t),n)}const Pu=Object.prototype.toString;function zn(n){return new xt(n)}function xt(n){if(!n||!n.nodeType)throw new Error("A DOM element reference is required");this.el=n,this.list=n.classList}xt.prototype.add=function(n){return this.list.add(n),this},xt.prototype.remove=function(n){return Pu.call(n)=="[object RegExp]"?this.removeMatching(n):(this.list.remove(n),this)},xt.prototype.removeMatching=function(n){const e=this.array();for(let t=0;t<e.length;t++)n.test(e[t])&&this.remove(e[t]);return this},xt.prototype.toggle=function(n,e){return typeof e<"u"?e!==this.list.toggle(n,e)&&this.list.toggle(n):this.list.toggle(n),this},xt.prototype.array=function(){return Array.from(this.list)},xt.prototype.has=xt.prototype.contains=function(n){return this.list.contains(n)};function ao(n){for(var e;e=n.firstChild;)n.removeChild(e);return n}function ku(n,e,t){var i=t?n:n.parentNode;return i&&typeof i.closest=="function"&&i.closest(e)||null}var Yn={},Kn,Hi,Wi;function lo(){Kn=window.addEventListener?"addEventListener":"attachEvent",Hi=window.removeEventListener?"removeEventListener":"detachEvent",Wi=Kn!=="addEventListener"?"on":""}var Nu=Yn.bind=function(n,e,t,i){return Kn||lo(),n[Kn](Wi+e,t,i||!1),t},Du=Yn.unbind=function(n,e,t,i){return Hi||lo(),n[Hi](Wi+e,t,i||!1),t},zi=Eu({__proto__:null,bind:Nu,unbind:Du,default:Yn},[Yn]),uo=["focus","blur"];function Lu(n,e,t,i,r){return uo.indexOf(t)!==-1&&(r=!0),zi.bind(n,t,function(o){var l=o.target||o.srcElement;o.delegateTarget=ku(l,e,!0),o.delegateTarget&&i.call(n,o)},r)}function Fu(n,e,t,i){return uo.indexOf(e)!==-1&&(i=!0),zi.unbind(n,e,t,i)}var Yi={bind:Lu,unbind:Fu},Vu=Bu,co=!1,Jn;typeof document<"u"&&(Jn=document.createElement("div"),Jn.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',co=!Jn.getElementsByTagName("link").length,Jn=void 0);var Ce={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:co?[1,"X<div>","</div>"]:[0,"",""]};Ce.td=Ce.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],Ce.option=Ce.optgroup=[1,'<select multiple="multiple">',"</select>"],Ce.thead=Ce.tbody=Ce.colgroup=Ce.caption=Ce.tfoot=[1,"<table>","</table>"],Ce.polyline=Ce.ellipse=Ce.polygon=Ce.circle=Ce.text=Ce.line=Ce.path=Ce.rect=Ce.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function Bu(n,e){if(typeof n!="string")throw new TypeError("String expected");e||(e=document);var t=/<([\w:]+)/.exec(n);if(!t)return e.createTextNode(n);n=n.replace(/^\s+|\s+$/g,"");var i=t[1];if(i=="body"){var c=e.createElement("html");return c.innerHTML=n,c.removeChild(c.lastChild)}var r=Object.prototype.hasOwnProperty.call(Ce,i)?Ce[i]:Ce._default,o=r[0],l=r[1],u=r[2],c=e.createElement("div");for(c.innerHTML=l+n+u;o--;)c=c.lastChild;if(c.firstChild==c.lastChild)return c.removeChild(c.firstChild);for(var f=e.createDocumentFragment();c.firstChild;)f.appendChild(c.removeChild(c.firstChild));return f}var it=Vu;function Ze(n,e){return e=e||document,e.querySelector(n)}function Ou(n,e){return e=e||document,e.querySelectorAll(n)}function Zn(n){n.parentNode&&n.parentNode.removeChild(n)}function fo(n,e,t,i,r){var o=Cn();o.setTranslate(e,t);var l=Cn();l.setRotate(i||0,0,0);var u=Cn();u.setScale(1,1),Tn(n,[o,l,u])}function po(n,e,t){var i=Cn();i.setTranslate(e,t),Tn(n,i)}function Uu(n,e){var t=Cn();t.setRotate(e,0,0),Tn(n,t)}function $u(n,e){return e={exports:{}},n(e,e.exports),e.exports}var Gu=$u(function(n){var e=n.exports=function(t,i){if(i||(i=16),t===void 0&&(t=128),t<=0)return"0";for(var r=Math.log(Math.pow(2,t))/Math.log(i),o=2;r===1/0;o*=2)r=Math.log(Math.pow(2,t/o))/Math.log(i)*o;for(var l=r-Math.floor(r),u="",o=0;o<Math.floor(r);o++){var c=Math.floor(Math.random()*i).toString(i);u=c+u}if(l){var f=Math.pow(i,l),c=Math.floor(Math.random()*f).toString(i);u=c+u}var d=parseInt(u,i);return d!==1/0&&d>=Math.pow(2,t)?e(t,i):u};e.rack=function(t,i,r){var o=function(u){var c=0;do{if(c++>10)if(r)t+=r;else throw new Error("too many ID collisions, use more bits");var f=e(t,i)}while(Object.hasOwnProperty.call(l,f));return l[f]=u,f},l=o.hats={};return o.get=function(u){return o.hats[u]},o.set=function(u,c){return o.hats[u]=c,o},o.bits=t||128,o.base=i||16,o}});function ct(n){if(!(this instanceof ct))return new ct(n);n=n||[128,36,1],this._seed=n.length?Gu.rack(n[0],n[1],n[2]):n}ct.prototype.next=function(n){return this._seed(n||!0)},ct.prototype.nextPrefixed=function(n,e){var t;do t=n+this.next(!0);while(this.assigned(t));return this.claim(t,e),t},ct.prototype.claim=function(n,e){this._seed.set(n,e||!0)},ct.prototype.assigned=function(n){return this._seed.get(n)||!1},ct.prototype.unclaim=function(n){delete this._seed.hats[n]},ct.prototype.clear=function(){var n=this._seed.hats,e;for(e in n)this.unclaim(e)};var qu=new ct,Xn=10,Ki=3,Jt=.95,Hu=.35,Wu=10;function Dt(n,e,t,i,r,o,l){ut.call(this,e,l);var u=n&&n.defaultFillColor,c=n&&n.defaultStrokeColor,f=n&&n.defaultLabelColor,d=qu.next(),h={};function g(y){return t.computeStyle(y,{strokeLinecap:"round",strokeLinejoin:"round",stroke:wn,strokeWidth:2,fill:"white"})}function x(y){return t.computeStyle(y,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:wn,strokeWidth:2})}function w(y,p){var{ref:m={x:0,y:0},scale:_=1,element:v}=p,E=de("marker",{id:y,viewBox:"0 0 20 20",refX:m.x,refY:m.y,markerWidth:20*_,markerHeight:20*_,orient:"auto"});_e(E,v);var N=Ze("defs",r._svg);N||(N=de("defs"),_e(r._svg,N)),_e(N,E),h[y]=E}function b(y){return y.replace(/[^0-9a-zA-Z]+/g,"_")}function D(y,p,m){var _=y+"-"+b(p)+"-"+b(m)+"-"+d;return h[_]||F(_,y,p,m),"url(#"+_+")"}function F(y,p,m,_){if(p==="sequenceflow-end"){var v=de("path",{d:"M 1 5 L 11 10 L 1 15 Z",...g({fill:_,stroke:_,strokeWidth:1})});w(y,{element:v,ref:{x:11,y:10},scale:.5})}if(p==="messageflow-start"){var E=de("circle",{cx:6,cy:6,r:3.5,...g({fill:m,stroke:_,strokeWidth:1,strokeDasharray:[1e4,1]})});w(y,{element:E,ref:{x:6,y:6}})}if(p==="messageflow-end"){var N=de("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...g({fill:m,stroke:_,strokeWidth:1,strokeDasharray:[1e4,1]})});w(y,{element:N,ref:{x:8.5,y:5}})}if(p==="association-start"){var Z=de("path",{d:"M 11 5 L 1 10 L 11 15",...x({fill:"none",stroke:_,strokeWidth:1.5,strokeDasharray:[1e4,1]})});w(y,{element:Z,ref:{x:1,y:10},scale:.5})}if(p==="association-end"){var ee=de("path",{d:"M 1 5 L 11 10 L 1 15",...x({fill:"none",stroke:_,strokeWidth:1.5,strokeDasharray:[1e4,1]})});w(y,{element:ee,ref:{x:11,y:10},scale:.5})}if(p==="conditional-flow-marker"){var oe=de("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...g({fill:m,stroke:_})});w(y,{element:oe,ref:{x:-1,y:10},scale:.5})}if(p==="conditional-default-flow-marker"){var Ae=de("path",{d:"M 6 4 L 10 16",...g({stroke:_})});w(y,{element:Ae,ref:{x:0,y:10},scale:.5})}}function T(y,p,m,_,v){kt(_)&&(v=_,_=0),_=_||0,v=g(v),v.fill==="none"&&delete v.fillOpacity;var E=p/2,N=m/2,Z=de("circle",{cx:E,cy:N,r:Math.round((p+m)/4-_),...v});return _e(y,Z),Z}function k(y,p,m,_,v,E){kt(v)&&(E=v,v=0),v=v||0,E=g(E);var N=de("rect",{x:v,y:v,width:p-v*2,height:m-v*2,rx:_,ry:_,...E});return _e(y,N),N}function A(y,p,m,_){var v=p/2,E=m/2,N=[{x:v,y:0},{x:p,y:E},{x:v,y:m},{x:0,y:E}],Z=N.map(function(oe){return oe.x+","+oe.y}).join(" ");_=g(_);var ee=de("polygon",{..._,points:Z});return _e(y,ee),ee}function S(y,p,m,_){m=x(m);var v=qi(p,m,_);return _e(y,v),v}function I(y,p,m){return S(y,p,m,5)}function R(y,p,m){m=x(m);var _=de("path",{...m,d:p});return _e(y,_),_}function M(y,p,m,_){return R(p,m,Y({"data-marker":y},_))}function C(y){return ce[y]}function P(y){return function(p,m,_){return C(y)(p,m,_)}}function O(y,p){var m=ve(y),_=gu(m);return m.eventDefinitions&&m.eventDefinitions.length>1?m.parallelMultiple?C("bpmn:ParallelMultipleEventDefinition")(p,y,_):C("bpmn:MultipleEventDefinition")(p,y,_):nt(m,"bpmn:MessageEventDefinition")?C("bpmn:MessageEventDefinition")(p,y,_):nt(m,"bpmn:TimerEventDefinition")?C("bpmn:TimerEventDefinition")(p,y,_):nt(m,"bpmn:ConditionalEventDefinition")?C("bpmn:ConditionalEventDefinition")(p,y):nt(m,"bpmn:SignalEventDefinition")?C("bpmn:SignalEventDefinition")(p,y,_):nt(m,"bpmn:EscalationEventDefinition")?C("bpmn:EscalationEventDefinition")(p,y,_):nt(m,"bpmn:LinkEventDefinition")?C("bpmn:LinkEventDefinition")(p,y,_):nt(m,"bpmn:ErrorEventDefinition")?C("bpmn:ErrorEventDefinition")(p,y,_):nt(m,"bpmn:CancelEventDefinition")?C("bpmn:CancelEventDefinition")(p,y,_):nt(m,"bpmn:CompensateEventDefinition")?C("bpmn:CompensateEventDefinition")(p,y,_):nt(m,"bpmn:TerminateEventDefinition")?C("bpmn:TerminateEventDefinition")(p,y,_):null}function U(y,p,m){m=Y({size:{width:100}},m);var _=o.createText(p||"",m);return Oe(_).add("djs-label"),_e(y,_),_}function $(y,p,m){var _=ve(p);return U(y,_.name,{box:p,align:m,padding:7,style:{fill:Sn(p,f,c)}})}function te(y,p){var m={width:90,height:30,x:p.width/2+p.x,y:p.height/2+p.y};return U(y,Hn(p),{box:m,fitBox:!0,style:Y({},o.getExternalStyle(),{fill:Sn(p,f,c)})})}function Fe(y,p,m){var _=U(y,p,{box:{height:30,width:m.height},align:"center-middle",style:{fill:Sn(m,f,c)}}),v=-1*m.height;fo(_,0,-v,270)}var ce=this.handlers={"bpmn:Event":function(y,p,m){return"fillOpacity"in m||(m.fillOpacity=Jt),T(y,p.width,p.height,m)},"bpmn:StartEvent":function(y,p,m){var _={fill:re(p,u),stroke:B(p,c)},v=ve(p);v.isInterrupting||(_={strokeDasharray:"6",fill:re(p,u),stroke:B(p,c)});var E=C("bpmn:Event")(y,p,_);return(!m||m.renderIcon!==!1)&&O(p,y),E},"bpmn:MessageEventDefinition":function(y,p,m){var _=i.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:p.width,containerHeight:p.height,position:{mx:.235,my:.315}}),v=m?B(p,c):re(p,u),E=m?re(p,u):B(p,c),N=R(y,_,{strokeWidth:1,fill:v,stroke:E});return N},"bpmn:TimerEventDefinition":function(y,p){var m=T(y,p.width,p.height,.2*p.height,{strokeWidth:2,fill:re(p,u),stroke:B(p,c)}),_=i.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:p.width,containerHeight:p.height,position:{mx:.5,my:.5}});R(y,_,{strokeWidth:2,stroke:B(p,c)});for(var v=0;v<12;v++){var E=i.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:p.width,containerHeight:p.height,position:{mx:.5,my:.5}}),N=p.width/2,Z=p.height/2;R(y,E,{strokeWidth:1,transform:"rotate("+v*30+","+Z+","+N+")",stroke:B(p,c)})}return m},"bpmn:EscalationEventDefinition":function(y,p,m){var _=i.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:p.width,containerHeight:p.height,position:{mx:.5,my:.2}}),v=m?B(p,c):"none";return R(y,_,{strokeWidth:1,fill:v,stroke:B(p,c)})},"bpmn:ConditionalEventDefinition":function(y,p){var m=i.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:p.width,containerHeight:p.height,position:{mx:.5,my:.222}});return R(y,m,{strokeWidth:1,stroke:B(p,c)})},"bpmn:LinkEventDefinition":function(y,p,m){var _=i.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:p.width,containerHeight:p.height,position:{mx:.57,my:.263}}),v=m?B(p,c):"none";return R(y,_,{strokeWidth:1,fill:v,stroke:B(p,c)})},"bpmn:ErrorEventDefinition":function(y,p,m){var _=i.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:p.width,containerHeight:p.height,position:{mx:.2,my:.722}}),v=m?B(p,c):"none";return R(y,_,{strokeWidth:1,fill:v,stroke:B(p,c)})},"bpmn:CancelEventDefinition":function(y,p,m){var _=i.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:p.width,containerHeight:p.height,position:{mx:.638,my:-.055}}),v=m?B(p,c):"none",E=R(y,_,{strokeWidth:1,fill:v,stroke:B(p,c)});return Uu(E,45),E},"bpmn:CompensateEventDefinition":function(y,p,m){var _=i.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:p.width,containerHeight:p.height,position:{mx:.22,my:.5}}),v=m?B(p,c):"none";return R(y,_,{strokeWidth:1,fill:v,stroke:B(p,c)})},"bpmn:SignalEventDefinition":function(y,p,m){var _=i.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:p.width,containerHeight:p.height,position:{mx:.5,my:.2}}),v=m?B(p,c):"none";return R(y,_,{strokeWidth:1,fill:v,stroke:B(p,c)})},"bpmn:MultipleEventDefinition":function(y,p,m){var _=i.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:p.width,containerHeight:p.height,position:{mx:.222,my:.36}}),v=m?B(p,c):"none";return R(y,_,{strokeWidth:1,fill:v})},"bpmn:ParallelMultipleEventDefinition":function(y,p){var m=i.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:p.width,containerHeight:p.height,position:{mx:.458,my:.194}});return R(y,m,{strokeWidth:1,fill:B(p,c),stroke:B(p,c)})},"bpmn:EndEvent":function(y,p,m){var _=C("bpmn:Event")(y,p,{strokeWidth:4,fill:re(p,u),stroke:B(p,c)});return(!m||m.renderIcon!==!1)&&O(p,y),_},"bpmn:TerminateEventDefinition":function(y,p){var m=T(y,p.width,p.height,8,{strokeWidth:4,fill:B(p,c),stroke:B(p,c)});return m},"bpmn:IntermediateEvent":function(y,p,m){var _=C("bpmn:Event")(y,p,{strokeWidth:1.5,fill:re(p,u),stroke:B(p,c)});return T(y,p.width,p.height,Ki,{strokeWidth:1.5,fill:re(p,"none"),stroke:B(p,c)}),(!m||m.renderIcon!==!1)&&O(p,y),_},"bpmn:IntermediateCatchEvent":P("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":P("bpmn:IntermediateEvent"),"bpmn:Activity":function(y,p,m){return m=m||{},"fillOpacity"in m||(m.fillOpacity=Jt),k(y,p.width,p.height,Xn,m)},"bpmn:Task":function(y,p){var m={fill:re(p,u),stroke:B(p,c)},_=C("bpmn:Activity")(y,p,m);return $(y,p,"center-middle"),ne(y,p),_},"bpmn:ServiceTask":function(y,p){var m=C("bpmn:Task")(y,p),_=i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}});R(y,_,{strokeWidth:1,fill:re(p,u),stroke:B(p,c)});var v=i.getScaledPath("TASK_TYPE_SERVICE_FILL",{abspos:{x:17.2,y:18}});R(y,v,{strokeWidth:0,fill:re(p,u)});var E=i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}});return R(y,E,{strokeWidth:1,fill:re(p,u),stroke:B(p,c)}),m},"bpmn:UserTask":function(y,p){var m=C("bpmn:Task")(y,p),_=15,v=12,E=i.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:_,y:v}});R(y,E,{strokeWidth:.5,fill:re(p,u),stroke:B(p,c)});var N=i.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:_,y:v}});R(y,N,{strokeWidth:.5,fill:re(p,u),stroke:B(p,c)});var Z=i.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:_,y:v}});return R(y,Z,{strokeWidth:.5,fill:B(p,c),stroke:B(p,c)}),m},"bpmn:ManualTask":function(y,p){var m=C("bpmn:Task")(y,p),_=i.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}});return R(y,_,{strokeWidth:.5,fill:re(p,u),stroke:B(p,c)}),m},"bpmn:SendTask":function(y,p){var m=C("bpmn:Task")(y,p),_=i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}});return R(y,_,{strokeWidth:1,fill:B(p,c),stroke:re(p,u)}),m},"bpmn:ReceiveTask":function(y,p){var m=ve(p),_=C("bpmn:Task")(y,p),v;return m.instantiate?(T(y,28,28,20*.22,{strokeWidth:1}),v=i.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):v=i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),R(y,v,{strokeWidth:1,fill:re(p,u),stroke:B(p,c)}),_},"bpmn:ScriptTask":function(y,p){var m=C("bpmn:Task")(y,p),_=i.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}});return R(y,_,{strokeWidth:1,stroke:B(p,c)}),m},"bpmn:BusinessRuleTask":function(y,p){var m=C("bpmn:Task")(y,p),_=i.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}),v=R(y,_);le(v,{strokeWidth:1,fill:re(p,"#aaaaaa"),stroke:B(p,c)});var E=i.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}),N=R(y,E);return le(N,{strokeWidth:1,stroke:B(p,c)}),m},"bpmn:SubProcess":function(y,p,m){m={fill:re(p,u),stroke:B(p,c),...m};var _=C("bpmn:Activity")(y,p,m),v=Fi(p);return Hl(p)&&le(_,{strokeDasharray:"0, 5.5",strokeWidth:2.5}),$(y,p,v?"center-top":"center-middle"),v?ne(y,p):ne(y,p,["SubProcessMarker"]),_},"bpmn:AdHocSubProcess":function(y,p){return C("bpmn:SubProcess")(y,p)},"bpmn:Transaction":function(y,p){var m=C("bpmn:SubProcess")(y,p,{strokeWidth:1.5}),_=t.style(["no-fill","no-events"],{stroke:B(p,c),strokeWidth:1.5});return k(y,p.width,p.height,Xn-3,Ki,_),m},"bpmn:CallActivity":function(y,p){return C("bpmn:SubProcess")(y,p,{strokeWidth:5})},"bpmn:Participant":function(y,p){var m=1.5,_={fillOpacity:Jt,fill:re(p,u),stroke:B(p,c),strokeWidth:m},v=C("bpmn:Lane")(y,p,_),E=Fi(p);if(E){S(y,[{x:30,y:0},{x:30,y:p.height}],{stroke:B(p,c),strokeWidth:m});var N=ve(p).name;Fe(y,N,p)}else{var Z=ve(p).name;U(y,Z,{box:p,align:"center-middle",style:{fill:Sn(p,f,c)}})}var ee=!!ve(p).participantMultiplicity;return ee&&C("ParticipantMultiplicityMarker")(y,p),v},"bpmn:Lane":function(y,p,m){var _=k(y,p.width,p.height,0,{fill:re(p,u),fillOpacity:Hu,stroke:B(p,c),strokeWidth:1.5,...m}),v=ve(p);if(v.$type==="bpmn:Lane"){var E=v.name;Fe(y,E,p)}return _},"bpmn:InclusiveGateway":function(y,p){var m=C("bpmn:Gateway")(y,p);return T(y,p.width,p.height,p.height*.24,{strokeWidth:2.5,fill:re(p,u),stroke:B(p,c)}),m},"bpmn:ExclusiveGateway":function(y,p){var m=C("bpmn:Gateway")(y,p),_=i.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:p.width,containerHeight:p.height,position:{mx:.32,my:.3}});return Kt(p).isMarkerVisible&&R(y,_,{strokeWidth:1,fill:B(p,c),stroke:B(p,c)}),m},"bpmn:ComplexGateway":function(y,p){var m=C("bpmn:Gateway")(y,p),_=i.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:p.width,containerHeight:p.height,position:{mx:.46,my:.26}});return R(y,_,{strokeWidth:1,fill:B(p,c),stroke:B(p,c)}),m},"bpmn:ParallelGateway":function(y,p){var m=C("bpmn:Gateway")(y,p),_=i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:p.width,containerHeight:p.height,position:{mx:.46,my:.2}});return R(y,_,{strokeWidth:1,fill:B(p,c),stroke:B(p,c)}),m},"bpmn:EventBasedGateway":function(y,p){var m=ve(p),_=C("bpmn:Gateway")(y,p);T(y,p.width,p.height,p.height*.2,{strokeWidth:1,fill:"none",stroke:B(p,c)});var v=m.eventGatewayType,E=!!m.instantiate;function N(){var ee=i.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:p.width,containerHeight:p.height,position:{mx:.36,my:.44}});R(y,ee,{strokeWidth:2,fill:re(p,"none"),stroke:B(p,c)})}if(v==="Parallel"){var Z=i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:p.width,containerHeight:p.height,position:{mx:.474,my:.296}});R(y,Z,{strokeWidth:1,fill:"none"})}else v==="Exclusive"&&(E||T(y,p.width,p.height,p.height*.26,{strokeWidth:1,fill:"none",stroke:B(p,c)}),N());return _},"bpmn:Gateway":function(y,p){return A(y,p.width,p.height,{fill:re(p,u),fillOpacity:Jt,stroke:B(p,c)})},"bpmn:SequenceFlow":function(y,p){var m=re(p,u),_=B(p,c),v=I(y,p.waypoints,{markerEnd:D("sequenceflow-end",m,_),stroke:B(p,c)}),E=ve(p),N;return p.source&&(N=p.source.businessObject,E.conditionExpression&&N.$instanceOf("bpmn:Activity")&&le(v,{markerStart:D("conditional-flow-marker",m,_)}),N.default&&(N.$instanceOf("bpmn:Gateway")||N.$instanceOf("bpmn:Activity"))&&N.default===E&&le(v,{markerStart:D("conditional-default-flow-marker",m,_)})),v},"bpmn:Association":function(y,p,m){var _=ve(p),v=re(p,u),E=B(p,c);return m={strokeDasharray:"0, 5",stroke:B(p,c),...m},(_.associationDirection==="One"||_.associationDirection==="Both")&&(m.markerEnd=D("association-end",v,E)),_.associationDirection==="Both"&&(m.markerStart=D("association-start",v,E)),I(y,p.waypoints,m)},"bpmn:DataInputAssociation":function(y,p){var m=re(p,u),_=B(p,c);return C("bpmn:Association")(y,p,{markerEnd:D("association-end",m,_)})},"bpmn:DataOutputAssociation":function(y,p){var m=re(p,u),_=B(p,c);return C("bpmn:Association")(y,p,{markerEnd:D("association-end",m,_)})},"bpmn:MessageFlow":function(y,p){var m=ve(p),_=Kt(p),v=re(p,u),E=B(p,c),N=I(y,p.waypoints,{markerEnd:D("messageflow-end",v,E),markerStart:D("messageflow-start",v,E),strokeDasharray:"10, 11",strokeWidth:1.5,stroke:B(p,c)});if(m.messageRef){var Z=N.getPointAtLength(N.getTotalLength()/2),ee=i.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:Z.x,y:Z.y}}),oe={strokeWidth:1};_.messageVisibleKind==="initiating"?(oe.fill="white",oe.stroke=wn):(oe.fill="#888",oe.stroke="white");var Ae=R(y,ee,oe),ye=m.messageRef.name,Ye=U(y,ye,{align:"center-top",fitBox:!0,style:{fill:B(p,f)}}),Qe=Ae.getBBox(),he=Ye.getBBox(),be=Z.x-he.width/2,mt=Z.y+Qe.height/2+Wu;fo(Ye,be,mt,0)}return N},"bpmn:DataObject":function(y,p){var m=i.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:p.width,containerHeight:p.height,position:{mx:.474,my:.296}}),_=R(y,m,{fill:re(p,u),fillOpacity:Jt,stroke:B(p,c)}),v=ve(p);return yu(v)&&qe(y,p),_},"bpmn:DataObjectReference":P("bpmn:DataObject"),"bpmn:DataInput":function(y,p){var m=i.getRawPath("DATA_ARROW"),_=C("bpmn:DataObject")(y,p);return R(y,m,{strokeWidth:1}),_},"bpmn:DataOutput":function(y,p){var m=i.getRawPath("DATA_ARROW"),_=C("bpmn:DataObject")(y,p);return R(y,m,{strokeWidth:1,fill:wn}),_},"bpmn:DataStoreReference":function(y,p){var m=i.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:p.width,containerHeight:p.height,position:{mx:0,my:.133}}),_=R(y,m,{strokeWidth:2,fill:re(p,u),fillOpacity:Jt,stroke:B(p,c)});return _},"bpmn:BoundaryEvent":function(y,p,m){var _=ve(p),v=_.cancelActivity,E={strokeWidth:1.5,fill:re(p,u),stroke:B(p,c)};v||(E.strokeDasharray="6");var N={...E,fillOpacity:1},Z={...E,fill:"none"},ee=C("bpmn:Event")(y,p,N);return T(y,p.width,p.height,Ki,Z),(!m||m.renderIcon!==!1)&&O(p,y),ee},"bpmn:Group":function(y,p){return k(y,p.width,p.height,Xn,{stroke:B(p,c),strokeWidth:1.5,strokeDasharray:"10,6,0,6",fill:"none",pointerEvents:"none"})},label:function(y,p){return te(y,p)},"bpmn:TextAnnotation":function(y,p){var m=k(y,p.width,p.height,0,0,{fill:"none",stroke:"none"}),_=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:p.width,containerHeight:p.height,position:{mx:0,my:0}});R(y,_,{stroke:B(p,c)});var v=ve(p).text||"";return U(y,v,{box:p,align:"left-top",padding:7,style:{fill:Sn(p,f,c)}}),m},ParticipantMultiplicityMarker:function(y,p){var m=i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:p.width,containerHeight:p.height,position:{mx:p.width/2/p.width,my:(p.height-15)/p.height}});M("participant-multiplicity",y,m,{strokeWidth:2,fill:re(p,u),stroke:B(p,c)})},SubProcessMarker:function(y,p){var m=k(y,14,14,0,{strokeWidth:1,fill:re(p,u),stroke:B(p,c)});po(m,p.width/2-7.5,p.height-20);var _=i.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:p.width,containerHeight:p.height,position:{mx:(p.width/2-7.5)/p.width,my:(p.height-20)/p.height}});M("sub-process",y,_,{fill:re(p,u),stroke:B(p,c)})},ParallelMarker:function(y,p,m){var _=i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:p.width,containerHeight:p.height,position:{mx:(p.width/2+m.parallel)/p.width,my:(p.height-20)/p.height}});M("parallel",y,_,{fill:re(p,u),stroke:B(p,c)})},SequentialMarker:function(y,p,m){var _=i.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:p.width,containerHeight:p.height,position:{mx:(p.width/2+m.seq)/p.width,my:(p.height-19)/p.height}});M("sequential",y,_,{fill:re(p,u),stroke:B(p,c)})},CompensationMarker:function(y,p,m){var _=i.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:p.width,containerHeight:p.height,position:{mx:(p.width/2+m.compensation)/p.width,my:(p.height-13)/p.height}});M("compensation",y,_,{strokeWidth:1,fill:re(p,u),stroke:B(p,c)})},LoopMarker:function(y,p,m){var _=i.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:p.width,containerHeight:p.height,position:{mx:(p.width/2+m.loop)/p.width,my:(p.height-7)/p.height}});M("loop",y,_,{strokeWidth:1.5,fill:re(p,u),stroke:B(p,c),strokeMiterlimit:.5})},AdhocMarker:function(y,p,m){var _=i.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:p.width,containerHeight:p.height,position:{mx:(p.width/2+m.adhoc)/p.width,my:(p.height-15)/p.height}});M("adhoc",y,_,{strokeWidth:1,fill:B(p,c),stroke:B(p,c)})}};function ne(y,p,m){var _=ve(p),v=m&&m.indexOf("SubProcessMarker")!==-1,E;v?E={seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:E={seq:-3,parallel:-6,compensation:-27,loop:0,adhoc:10},q(m,function(ee){C(ee)(y,p,E)}),_.isForCompensation&&C("CompensationMarker")(y,p,E),_.$type==="bpmn:AdHocSubProcess"&&C("AdhocMarker")(y,p,E);var N=_.loopCharacteristics,Z=N&&N.isSequential;N&&(Z===void 0&&C("LoopMarker")(y,p,E),Z===!1&&C("ParallelMarker")(y,p,E),Z===!0&&C("SequentialMarker")(y,p,E))}function qe(y,p){var m=(p.height-18)/p.height,_=i.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:p.width,containerHeight:p.height,position:{mx:.33,my:m}});R(y,_,{strokeWidth:2})}this._drawPath=R,this._renderer=C}et(Dt,ut),Dt.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],Dt.prototype.canRender=function(n){return K(n,"bpmn:BaseElement")},Dt.prototype.drawShape=function(n,e){var t=e.type,i=this._renderer(t);return i(n,e)},Dt.prototype.drawConnection=function(n,e){var t=e.type,i=this._renderer(t);return i(n,e)},Dt.prototype.getShapePath=function(n){return K(n,"bpmn:Event")?vu(n):K(n,"bpmn:Activity")?_u(n,Xn):K(n,"bpmn:Gateway")?xu(n):Cu(n)};var zu=0,Yu={width:150,height:50};function Ku(n){var e=n.split("-");return{horizontal:e[0]||"center",vertical:e[1]||"top"}}function Ju(n){return kt(n)?Y({top:0,left:0,right:0,bottom:0},n):{top:n,left:n,right:n,bottom:n}}function Zu(n,e){e.textContent=n;var t;try{var i,r=n==="";return e.textContent=r?"dummy":n,t=e.getBBox(),i={width:t.width+t.x*2,height:t.height},r&&(i.width=0),i}catch{return{width:0,height:0}}}function Xu(n,e,t){for(var i=n.shift(),r=i,o;;){if(o=Zu(r,t),o.width=r?o.width:0,r===" "||r===""||o.width<Math.round(e)||r.length<2)return Qu(n,r,i,o);r=ec(r,o.width,e)}}function Qu(n,e,t,i){if(e.length<t.length){var r=t.slice(e.length).trim();n.unshift(r)}return{width:i.width,height:i.height,text:e}}var ho="­";function ju(n,e){var t=n.split(/(\s|-|\u00AD)/g),i,r=[],o=0;if(t.length>1)for(;i=t.shift();)if(i.length+o<e)r.push(i),o+=i.length;else{(i==="-"||i===ho)&&r.pop();break}var l=r[r.length-1];return l&&l===ho&&(r[r.length-1]="-"),r.join("")}function ec(n,e,t){var i=Math.max(n.length*(t/e),1),r=ju(n,i);return r||(r=n.slice(0,Math.max(Math.round(i-1),1))),r}function tc(){var n=document.getElementById("helper-svg");return n||(n=de("svg"),le(n,{id:"helper-svg"}),Ve(n,{visibility:"hidden",position:"fixed",width:0,height:0}),document.body.appendChild(n)),n}function Qn(n){this._config=Y({},{size:Yu,padding:zu,style:{},align:"center-top"},n||{})}Qn.prototype.createText=function(n,e){return this.layoutText(n,e).element},Qn.prototype.getDimensions=function(n,e){return this.layoutText(n,e).dimensions},Qn.prototype.layoutText=function(n,e){var t=Y({},this._config.size,e.box),i=Y({},this._config.style,e.style),r=Ku(e.align||this._config.align),o=Ju(e.padding!==void 0?e.padding:this._config.padding),l=e.fitBox||!1,u=nc(i),c=n.split(/\u00AD?\r?\n/),f=[],d=t.width-o.left-o.right,h=de("text");le(h,{x:0,y:0}),le(h,i);var g=tc();for(_e(g,h);c.length;)f.push(Xu(c,d,h));r.vertical==="middle"&&(o.top=o.bottom=0);var x=Yt(f,function(T,k,A){return T+(u||k.height)},0)+o.top+o.bottom,w=Yt(f,function(T,k,A){return k.width>T?k.width:T},0),b=o.top;r.vertical==="middle"&&(b+=(t.height-x)/2),b-=(u||f[0].height)/4;var D=de("text");le(D,i),q(f,function(T){var k;switch(b+=u||T.height,r.horizontal){case"left":k=o.left;break;case"right":k=(l?w:d)-o.right-T.width;break;default:k=Math.max(((l?w:d)-T.width)/2+o.left,0)}var A=de("tspan");le(A,{x:k,y:b}),A.textContent=T.text,_e(D,A)}),En(h);var F={width:w,height:x};return{dimensions:F,element:D}};function nc(n){if("fontSize"in n&&"lineHeight"in n)return n.lineHeight*parseInt(n.fontSize,10)}var ic=12,rc=1.2,oc=30;function mo(n){var e=Y({fontFamily:"Arial, sans-serif",fontSize:ic,fontWeight:"normal",lineHeight:rc},n&&n.defaultStyle||{}),t=parseInt(e.fontSize,10)-1,i=Y({},e,{fontSize:t},n&&n.externalStyle||{}),r=new Qn({style:e});this.getExternalLabelBounds=function(o,l){var u=r.getDimensions(l,{box:{width:90,height:30},style:i});return{x:Math.round(o.x+o.width/2-u.width/2),y:Math.round(o.y),width:Math.ceil(u.width),height:Math.ceil(u.height)}},this.getTextAnnotationBounds=function(o,l){var u=r.getDimensions(l,{box:o,style:e,align:"left-top",padding:5});return{x:o.x,y:o.y,width:o.width,height:Math.max(oc,Math.round(u.height))}},this.createText=function(o,l){return r.createText(o,l||{})},this.getDefaultStyle=function(){return e},this.getExternalStyle=function(){return i}}mo.$inject=["config.textRenderer"];function sc(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(e){return this.pathMap[e].d},this.getScaledPath=function(e,t){var i=this.pathMap[e],r,o;t.abspos?(r=t.abspos.x,o=t.abspos.y):(r=t.containerWidth*t.position.mx,o=t.containerHeight*t.position.my);var l={};if(t.position){for(var u=t.containerHeight/i.height*t.yScaleFactor,c=t.containerWidth/i.width*t.xScaleFactor,f=0;f<i.heightElements.length;f++)l["y"+f]=i.heightElements[f]*u;for(var d=0;d<i.widthElements.length;d++)l["x"+d]=i.widthElements[d]*c}var h=cc(i.d,{mx:r,my:o,e:l});return h}}var ac=/\{([^{}]+)\}/g,lc=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;function uc(n,e,t){var i=t;return e.replace(lc,function(r,o,l,u,c){o=o||u,i&&(o in i&&(i=i[o]),typeof i=="function"&&c&&(i=i()))}),i=(i==null||i==t?n:i)+"",i}function cc(n,e){return String(n).replace(ac,function(t,i){return uc(t,i,e)})}const fc={__init__:["bpmnRenderer"],bpmnRenderer:["type",Dt],textRenderer:["type",mo],pathMap:["type",sc]};function dc(n,e){return e=e||{},n.replace(/{([^}]+)}/g,function(t,i){return e[i]||"{"+i+"}"})}const go={translate:["value",dc]};function pc(n){return{x:Math.round(n.x),y:Math.round(n.y)}}function Ji(n){return{top:n.y,right:n.x+(n.width||0),bottom:n.y+(n.height||0),left:n.x}}function hc(n){return{x:n.left,y:n.top,width:n.right-n.left,height:n.bottom-n.top}}function mc(n){return pc({x:n.x+(n.width||0)/2,y:n.y+(n.height||0)/2})}function gc(n){for(var e=n.waypoints,t=e.reduce(function(f,d,h){var g=e[h-1];if(g){var x=f[f.length-1],w=x&&x.endLength||0,b=yc(g,d);f.push({start:g,end:d,startLength:w,endLength:w+b,length:b})}return f},[]),i=t.reduce(function(f,d){return f+d.length},0),r=i/2,o=0,l=t[o];l.endLength<r;)l=t[++o];var u=(r-l.startLength)/l.length,c={x:l.start.x+(l.end.x-l.start.x)*u,y:l.start.y+(l.end.y-l.start.y)*u};return c}function Zi(n){return Wl(n)?gc(n):mc(n)}function yc(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function Re(n){return n?"<"+n.$type+(n.id?' id="'+n.id:"")+'" />':"<null>"}function jn(n,e,t){return Y({id:n.id,type:n.$type,businessObject:n,di:e},t)}function vc(n,e,t){var i=n.waypoint;return!i||i.length<2?[Zi(e),Zi(t)]:i.map(function(r){return{x:r.x,y:r.y}})}function yo(n,e,t,i){return new Error(n("element {element} referenced by {referenced}#{property} not yet drawn",{element:Re(t),referenced:Re(e),property:i}))}function ft(n,e,t,i,r,o){this._eventBus=n,this._canvas=e,this._elementFactory=t,this._elementRegistry=i,this._translate=r,this._textRenderer=o}ft.$inject=["eventBus","canvas","elementFactory","elementRegistry","translate","textRenderer"],ft.prototype.add=function(n,e,t){var i,r=this._translate,o,l;if(K(e,"bpmndi:BPMNPlane")){var u=K(n,"bpmn:SubProcess")?{id:n.id+"_plane"}:{};i=this._elementFactory.createRoot(jn(n,e,u)),this._canvas.addRootElement(i)}else if(K(e,"bpmndi:BPMNShape")){var c=!Fi(n,e),f=xc(n);o=t&&(t.hidden||t.collapsed);var d=e.bounds;i=this._elementFactory.createShape(jn(n,e,{collapsed:c,hidden:o,x:Math.round(d.x),y:Math.round(d.y),width:Math.round(d.width),height:Math.round(d.height),isFrame:f})),K(n,"bpmn:BoundaryEvent")&&this._attachBoundary(n,i),K(n,"bpmn:Lane")&&(l=0),K(n,"bpmn:DataStoreReference")&&(_c(t,Zi(d))||(t=this._canvas.findRoot(t))),this._canvas.addShape(i,t,l)}else if(K(e,"bpmndi:BPMNEdge")){var h=this._getSource(n),g=this._getTarget(n);o=t&&(t.hidden||t.collapsed),i=this._elementFactory.createConnection(jn(n,e,{hidden:o,source:h,target:g,waypoints:vc(e,h,g)})),K(n,"bpmn:DataAssociation")&&(t=this._canvas.findRoot(t)),this._canvas.addConnection(i,t,l)}else throw new Error(r("unknown di {di} for element {semantic}",{di:Re(e),semantic:Re(n)}));return zl(n)&&Hn(i)&&this.addLabel(n,e,i),this._eventBus.fire("bpmnElement.added",{element:i}),i},ft.prototype._attachBoundary=function(n,e){var t=this._translate,i=n.attachedToRef;if(!i)throw new Error(t("missing {semantic}#attachedToRef",{semantic:Re(n)}));var r=this._elementRegistry.get(i.id),o=r&&r.attachers;if(!r)throw yo(t,n,i,"attachedToRef");e.host=r,o||(r.attachers=o=[]),o.indexOf(e)===-1&&o.push(e)},ft.prototype.addLabel=function(n,e,t){var i,r,o;return i=Zl(e,t),r=Hn(t),r&&(i=this._textRenderer.getExternalLabelBounds(i,r)),o=this._elementFactory.createLabel(jn(n,e,{id:n.id+"_label",labelTarget:t,type:"label",hidden:t.hidden||!Hn(t),x:Math.round(i.x),y:Math.round(i.y),width:Math.round(i.width),height:Math.round(i.height)})),this._canvas.addShape(o,t.parent)},ft.prototype._getConnectedElement=function(n,e){var t,i,r=n.$type,o=this._translate;if(i=n[e+"Ref"],e==="source"&&r==="bpmn:DataInputAssociation"&&(i=i&&i[0]),(e==="source"&&r==="bpmn:DataOutputAssociation"||e==="target"&&r==="bpmn:DataInputAssociation")&&(i=n.$parent),t=i&&this._getElement(i),t)return t;throw i?yo(o,n,i,e+"Ref"):new Error(o("{semantic}#{side} Ref not specified",{semantic:Re(n),side:e}))},ft.prototype._getSource=function(n){return this._getConnectedElement(n,"source")},ft.prototype._getTarget=function(n){return this._getConnectedElement(n,"target")},ft.prototype._getElement=function(n){return this._elementRegistry.get(n.id)};function _c(n,e){var t=e.x,i=e.y;return t>=n.x&&t<=n.x+n.width&&i>=n.y&&i<=n.y+n.height}function xc(n){return K(n,"bpmn:Group")}const Cc={__depends__:[fc,{__depends__:[go],bpmnImporter:["type",ft]}]};function Xi(n){return n.originalEvent||n.srcEvent}function Ec(){return/mac/i.test(navigator.platform)}function vo(n,e){return(Xi(n)||n).button===e}function An(n){return vo(n,0)}function Tc(n){return vo(n,1)}function wc(n){var e=Xi(n)||n;return An(n)?Ec()?e.metaKey:e.ctrlKey:!1}function Sc(n){var e=Xi(n)||n;return An(n)&&e.shiftKey}function Ac(n){return!0}function ei(n){return An(n)||Tc(n)}var _o=500;function xo(n,e,t){var i=this;function r(M,C,P){if(!u(M,C)){var O,U,$;P?U=e.getGraphics(P):(O=C.delegateTarget||C.target,O&&(U=O,P=e.get(U))),!(!U||!P)&&($=n.fire(M,{element:P,gfx:U,originalEvent:C}),$===!1&&(C.stopPropagation(),C.preventDefault()))}}var o={};function l(M){return o[M]}function u(M,C){var P=f[M]||An;return!P(C)}var c={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},f={"element.contextmenu":Ac,"element.mousedown":ei,"element.mouseup":ei,"element.click":ei,"element.dblclick":ei};function d(M,C,P){var O=c[M];if(!O)throw new Error("unmapped DOM event name <"+M+">");return r(O,C,P)}var h="svg, .djs-element";function g(M,C,P,O){var U=o[P]=function($){r(P,$)};O&&(f[P]=O),U.$delegate=Yi.bind(M,h,C,U)}function x(M,C,P){var O=l(P);O&&Yi.unbind(M,C,O.$delegate)}function w(M){q(c,function(C,P){g(M,P,C)})}function b(M){q(c,function(C,P){x(M,P,C)})}n.on("canvas.destroy",function(M){b(M.svg)}),n.on("canvas.init",function(M){w(M.svg)}),n.on(["shape.added","connection.added"],function(M){var C=M.element,P=M.gfx;n.fire("interactionEvents.createHit",{element:C,gfx:P})}),n.on(["shape.changed","connection.changed"],_o,function(M){var C=M.element,P=M.gfx;n.fire("interactionEvents.updateHit",{element:C,gfx:P})}),n.on("interactionEvents.createHit",_o,function(M){var C=M.element,P=M.gfx;i.createDefaultHit(C,P)}),n.on("interactionEvents.updateHit",function(M){var C=M.element,P=M.gfx;i.updateDefaultHit(C,P)});var D=S("djs-hit djs-hit-stroke"),F=S("djs-hit djs-hit-click-stroke"),T=S("djs-hit djs-hit-all"),k=S("djs-hit djs-hit-no-move"),A={all:T,"click-stroke":F,stroke:D,"no-move":k};function S(M,C){return C=Y({stroke:"white",strokeWidth:15},C||{}),t.cls(M,["no-fill","no-border"],C)}function I(M,C){var P=A[C];if(!P)throw new Error("invalid hit type <"+C+">");return le(M,P),M}function R(M,C){_e(M,C)}this.removeHits=function(M){var C=Ou(".djs-hit",M);q(C,En)},this.createDefaultHit=function(M,C){var P=M.waypoints,O=M.isFrame,U;return P?this.createWaypointsHit(C,P):(U=O?"stroke":"all",this.createBoxHit(C,U,{width:M.width,height:M.height}))},this.createWaypointsHit=function(M,C){var P=qi(C);return I(P,"stroke"),R(M,P),P},this.createBoxHit=function(M,C,P){P=Y({x:0,y:0},P);var O=de("rect");return I(O,C),le(O,P),R(M,O),O},this.updateDefaultHit=function(M,C){var P=Ze(".djs-hit",C);if(P)return M.waypoints?oo(P,M.waypoints):le(P,{width:M.width,height:M.height}),P},this.fire=r,this.triggerMouseEvent=d,this.mouseHandler=l,this.registerEvent=g,this.unregisterEvent=x}xo.$inject=["eventBus","elementRegistry","styles"];const bc={__init__:["interactionEvents"],interactionEvents:["type",xo]};function Lt(n,e){e=!!e,Ke(n)||(n=[n]);var t,i,r,o;return q(n,function(l){var u=l;l.waypoints&&!e&&(u=Lt(l.waypoints,!0));var c=u.x,f=u.y,d=u.height||0,h=u.width||0;(c<t||t===void 0)&&(t=c),(f<i||i===void 0)&&(i=f),(c+h>r||r===void 0)&&(r=c+h),(f+d>o||o===void 0)&&(o=f+d)}),{x:t,y:i,height:o-i,width:r-t}}function Co(n){return"waypoints"in n?"connection":"x"in n?"shape":"root"}function Eo(n){return!!(n&&n.isFrame)}var Rc=500,Mc=1e3;function Ft(n,e){this._eventBus=n,this.offset=5;var t=e.cls("djs-outline",["no-fill"]),i=this;function r(o){var l=de("rect");return le(l,Y({x:0,y:0,rx:4,width:100,height:100},t)),l}n.on(["shape.added","shape.changed"],Rc,function(o){var l=o.element,u=o.gfx,c=Ze(".djs-outline",u);c||(c=i.getOutline(l)||r(),_e(u,c)),i.updateShapeOutline(c,l)}),n.on(["connection.added","connection.changed"],function(o){var l=o.element,u=o.gfx,c=Ze(".djs-outline",u);c||(c=r(),_e(u,c)),i.updateConnectionOutline(c,l)})}Ft.prototype.updateShapeOutline=function(n,e){var t=!1,i=this._getProviders();i.length&&q(i,function(r){t=t||r.updateOutline(e,n)}),t||le(n,{x:-this.offset,y:-this.offset,width:e.width+this.offset*2,height:e.height+this.offset*2})},Ft.prototype.updateConnectionOutline=function(n,e){var t=Lt(e);le(n,{x:t.x-this.offset,y:t.y-this.offset,width:t.width+this.offset*2,height:t.height+this.offset*2})},Ft.prototype.registerProvider=function(n,e){e||(e=n,n=Mc),this._eventBus.on("outline.getProviders",n,function(t){t.providers.push(e)})},Ft.prototype._getProviders=function(){var n=this._eventBus.createEvent({type:"outline.getProviders",providers:[]});return this._eventBus.fire(n),n.providers},Ft.prototype.getOutline=function(n){var e,t=this._getProviders();return q(t,function(i){yt(i.getOutline)&&(e=e||i.getOutline(n))}),e},Ft.$inject=["eventBus","styles","elementRegistry"];const Ic={__init__:["outline"],outline:["type",Ft]};function Zt(n,e){this._eventBus=n,this._canvas=e,this._selectedElements=[];var t=this;n.on(["shape.remove","connection.remove"],function(i){var r=i.element;t.deselect(r)}),n.on(["diagram.clear","root.set"],function(i){t.select(null)})}Zt.$inject=["eventBus","canvas"],Zt.prototype.deselect=function(n){var e=this._selectedElements,t=e.indexOf(n);if(t!==-1){var i=e.slice();e.splice(t,1),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:e})}},Zt.prototype.get=function(){return this._selectedElements},Zt.prototype.isSelected=function(n){return this._selectedElements.indexOf(n)!==-1},Zt.prototype.select=function(n,e){var t=this._selectedElements,i=t.slice();Ke(n)||(n=n?[n]:[]);var r=this._canvas,o=r.getRootElement();n=n.filter(function(l){var u=r.findRoot(l);return o===u}),e?q(n,function(l){t.indexOf(l)===-1&&t.push(l)}):this._selectedElements=t=n.slice(),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:t})};var To="hover",wo="selected",ti=6;function Qi(n,e,t){this._canvas=n;var i=this;this._multiSelectionBox=null;function r(l,u){n.addMarker(l,u)}function o(l,u){n.removeMarker(l,u)}e.on("element.hover",function(l){r(l.element,To)}),e.on("element.out",function(l){o(l.element,To)}),e.on("selection.changed",function(l){function u(h){o(h,wo)}function c(h){r(h,wo)}var f=l.oldSelection,d=l.newSelection;q(f,function(h){d.indexOf(h)===-1&&u(h)}),q(d,function(h){f.indexOf(h)===-1&&c(h)}),i._updateSelectionOutline(d)}),e.on("element.changed",function(l){t.isSelected(l.element)&&i._updateSelectionOutline(t.get())})}Qi.$inject=["canvas","eventBus","selection"],Qi.prototype._updateSelectionOutline=function(n){var e=this._canvas.getLayer("selectionOutline");ru(e);var t=n.length>1,i=this._canvas.getContainer();if(Oe(i)[t?"add":"remove"]("djs-multi-select"),!!t){var r=Pc(Lt(n)),o=de("rect");le(o,Y({rx:3},r)),Oe(o).add("djs-selection-outline"),_e(e,o)}};function Pc(n){return{x:n.x-ti,y:n.y-ti,width:n.width+ti*2,height:n.height+ti*2}}function So(n,e,t,i){n.on("create.end",500,function(r){var o=r.context,l=o.canExecute,u=o.elements,c=o.hints||{},f=c.autoSelect;if(l){if(f===!1)return;Ke(f)?e.select(f):e.select(u.filter(kc))}}),n.on("connect.end",500,function(r){var o=r.context,l=o.connection;l&&e.select(l)}),n.on("shape.move.end",500,function(r){var o=r.previousSelection||[],l=i.get(r.context.shape.id),u=Je(o,function(c){return l.id===c.id});u||e.select(l)}),n.on("element.click",function(r){if(An(r)){var o=r.element;o===t.getRootElement()&&(o=null);var l=e.isSelected(o),u=e.get().length>1,c=wc(r)||Sc(r);if(l&&u)return c?e.deselect(o):e.select(o);l?e.deselect(o):e.select(o,c)}})}So.$inject=["eventBus","selection","canvas","elementRegistry"];function kc(n){return!n.hidden}const Nc={__init__:["selectionVisuals","selectionBehavior"],__depends__:[bc,Ic],selection:["type",Zt],selectionVisuals:["type",Qi],selectionBehavior:["type",So]};function Ao(n){this._counter=0,this._prefix=(n?n+"-":"")+Math.floor(Math.random()*1e9)+"-"}Ao.prototype.next=function(){return this._prefix+ ++this._counter};var Dc=new Ao("ov"),Lc=500;function Se(n,e,t,i){this._eventBus=e,this._canvas=t,this._elementRegistry=i,this._ids=Dc,this._overlayDefaults=Y({show:null,scale:!0},n&&n.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=Fc(t.getContainer()),this._init()}Se.$inject=["config.overlays","eventBus","canvas","elementRegistry"],Se.prototype.get=function(n){if(tt(n)&&(n={id:n}),tt(n.element)&&(n.element=this._elementRegistry.get(n.element)),n.element){var e=this._getOverlayContainer(n.element,!0);return e?n.type?zt(e.overlays,Jr({type:n.type})):e.overlays.slice():[]}else return n.type?zt(this._overlays,Jr({type:n.type})):n.id?this._overlays[n.id]:null},Se.prototype.add=function(n,e,t){if(kt(e)&&(t=e,e=null),n.id||(n=this._elementRegistry.get(n)),!t.position)throw new Error("must specifiy overlay position");if(!t.html)throw new Error("must specifiy overlay html");if(!n)throw new Error("invalid element specified");var i=this._ids.next();return t=Y({},this._overlayDefaults,t,{id:i,type:e,element:n,html:t.html}),this._addOverlay(t),i},Se.prototype.remove=function(n){var e=this.get(n)||[];Ke(e)||(e=[e]);var t=this;q(e,function(i){var r=t._getOverlayContainer(i.element,!0);if(i&&(Zn(i.html),Zn(i.htmlContainer),delete i.htmlContainer,delete i.element,delete t._overlays[i.id]),r){var o=r.overlays.indexOf(i);o!==-1&&r.overlays.splice(o,1)}})},Se.prototype.isShown=function(){return this._overlayRoot.style.display!=="none"},Se.prototype.show=function(){ni(this._overlayRoot)},Se.prototype.hide=function(){ni(this._overlayRoot,!1)},Se.prototype.clear=function(){this._overlays={},this._overlayContainers=[],ao(this._overlayRoot)},Se.prototype._updateOverlayContainer=function(n){var e=n.element,t=n.html,i=e.x,r=e.y;if(e.waypoints){var o=Lt(e);i=o.x,r=o.y}bo(t,i,r),Iu(n.html,"data-container-id",e.id)},Se.prototype._updateOverlay=function(n){var e=n.position,t=n.htmlContainer,i=n.element,r=e.left,o=e.top;if(e.right!==void 0){var l;i.waypoints?l=Lt(i).width:l=i.width,r=e.right*-1+l}if(e.bottom!==void 0){var u;i.waypoints?u=Lt(i).height:u=i.height,o=e.bottom*-1+u}bo(t,r||0,o||0),this._updateOverlayVisibilty(n,this._canvas.viewbox())},Se.prototype._createOverlayContainer=function(n){var e=it('<div class="djs-overlays" />');Ve(e,{position:"absolute"}),this._overlayRoot.appendChild(e);var t={html:e,element:n,overlays:[]};return this._updateOverlayContainer(t),this._overlayContainers.push(t),t},Se.prototype._updateRoot=function(n){var e=n.scale||1,t="matrix("+[e,0,0,e,-1*n.x*e,-1*n.y*e].join(",")+")";Ro(this._overlayRoot,t)},Se.prototype._getOverlayContainer=function(n,e){var t=Je(this._overlayContainers,function(i){return i.element===n});return!t&&!e?this._createOverlayContainer(n):t},Se.prototype._addOverlay=function(n){var e=n.id,t=n.element,i=n.html,r,o;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),tt(i)&&(i=it(i)),o=this._getOverlayContainer(t),r=it('<div class="djs-overlay" data-overlay-id="'+e+'">'),Ve(r,{position:"absolute"}),r.appendChild(i),n.type&&zn(r).add("djs-overlay-"+n.type);var l=this._canvas.findRoot(t),u=this._canvas.getRootElement();ni(r,l===u),n.htmlContainer=r,o.overlays.push(n),o.html.appendChild(r),this._overlays[e]=n,this._updateOverlay(n),this._updateOverlayVisibilty(n,this._canvas.viewbox())},Se.prototype._updateOverlayVisibilty=function(n,e){var t=n.show,i=this._canvas.findRoot(n.element),r=t&&t.minZoom,o=t&&t.maxZoom,l=n.htmlContainer,u=this._canvas.getRootElement(),c=!0;(i!==u||t&&(Wt(r)&&r>e.scale||Wt(o)&&o<e.scale))&&(c=!1),ni(l,c),this._updateOverlayScale(n,e)},Se.prototype._updateOverlayScale=function(n,e){var t=n.scale,i,r,o=n.htmlContainer,l,u="";t!==!0&&(t===!1?(i=1,r=1):(i=t.min,r=t.max),Wt(i)&&e.scale<i&&(l=(1/e.scale||1)*i),Wt(r)&&e.scale>r&&(l=(1/e.scale||1)*r)),Wt(l)&&(u="scale("+l+","+l+")"),Ro(o,u)},Se.prototype._updateOverlaysVisibilty=function(n){var e=this;q(this._overlays,function(t){e._updateOverlayVisibilty(t,n)})},Se.prototype._init=function(){var n=this._eventBus,e=this;function t(i){e._updateRoot(i),e._updateOverlaysVisibilty(i),e.show()}n.on("canvas.viewbox.changing",function(i){e.hide()}),n.on("canvas.viewbox.changed",function(i){t(i.viewbox)}),n.on(["shape.remove","connection.remove"],function(i){var r=i.element,o=e.get({element:r});q(o,function(c){e.remove(c.id)});var l=e._getOverlayContainer(r);if(l){Zn(l.html);var u=e._overlayContainers.indexOf(l);u!==-1&&e._overlayContainers.splice(u,1)}}),n.on("element.changed",Lc,function(i){var r=i.element,o=e._getOverlayContainer(r,!0);o&&(q(o.overlays,function(l){e._updateOverlay(l)}),e._updateOverlayContainer(o))}),n.on("element.marker.update",function(i){var r=e._getOverlayContainer(i.element,!0);r&&zn(r.html)[i.add?"add":"remove"](i.marker)}),n.on("root.set",function(){e._updateOverlaysVisibilty(e._canvas.viewbox())}),n.on("diagram.clear",this.clear,this)};function Fc(n){var e=it('<div class="djs-overlay-container" />');return Ve(e,{position:"absolute",width:0,height:0}),n.insertBefore(e,n.firstChild),e}function bo(n,e,t){Ve(n,{left:e+"px",top:t+"px"})}function ni(n,e){n.style.display=e===!1?"none":""}function Ro(n,e){n.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(t){n.style[t+"transform"]=e})}const Mo={__init__:["overlays"],overlays:["type",Se]};function Io(n,e,t,i){n.on("element.changed",function(r){var o=r.element;(o.parent||o===e.getRootElement())&&(r.gfx=t.getGraphics(o)),r.gfx&&n.fire(Co(o)+".changed",r)}),n.on("elements.changed",function(r){var o=r.elements;o.forEach(function(l){n.fire("element.changed",{element:l})}),i.updateContainments(o)}),n.on("shape.changed",function(r){i.update("shape",r.element,r.gfx)}),n.on("connection.changed",function(r){i.update("connection",r.element,r.gfx)})}Io.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const Vc={__init__:["changeSupport"],changeSupport:["type",Io]};var Bc=1e3;function Pe(n){this._eventBus=n}Pe.$inject=["eventBus"];function Oc(n,e){return function(t){return n.call(e||null,t.context,t.command,t)}}Pe.prototype.on=function(n,e,t,i,r,o){if((yt(e)||gt(e))&&(o=r,r=i,i=t,t=e,e=null),yt(t)&&(o=r,r=i,i=t,t=Bc),kt(r)&&(o=r,r=!1),!yt(i))throw new Error("handlerFn must be a function");Ke(n)||(n=[n]);var l=this._eventBus;q(n,function(u){var c=["commandStack",u,e].filter(function(f){return f}).join(".");l.on(c,t,r?Oc(i,o):i,o)})},Pe.prototype.canExecute=dt("canExecute"),Pe.prototype.preExecute=dt("preExecute"),Pe.prototype.preExecuted=dt("preExecuted"),Pe.prototype.execute=dt("execute"),Pe.prototype.executed=dt("executed"),Pe.prototype.postExecute=dt("postExecute"),Pe.prototype.postExecuted=dt("postExecuted"),Pe.prototype.revert=dt("revert"),Pe.prototype.reverted=dt("reverted");function dt(n){return function(t,i,r,o,l){(yt(t)||gt(t))&&(l=o,o=r,r=i,i=t,t=null),this.on(t,n,i,r,o,l)}}function ji(n,e){e.invoke(Pe,this),this.executed(function(t){var i=t.context;i.rootElement?n.setRootElement(i.rootElement):i.rootElement=n.getRootElement()}),this.revert(function(t){var i=t.context;i.rootElement&&n.setRootElement(i.rootElement)})}et(ji,Pe),ji.$inject=["canvas","injector"];const Uc={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",ji]};var $c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Gc(n){return n=""+n,n&&n.replace(/[&<>"']/g,function(e){return $c[e]})}var qc="_plane";function er(n){var e=n.id;return K(n,"bpmn:SubProcess")?Hc(e):e}function Hc(n){return n+qc}var Wc="bjs-breadcrumbs-shown";function Po(n,e,t){var i=it('<ul class="bjs-breadcrumbs"></ul>'),r=t.getContainer(),o=zn(r);r.appendChild(i);var l=[];n.on("element.changed",function(c){var f=c.element,d=ve(f),h=Je(l,function(g){return g===d});h&&u()});function u(c){c&&(l=zc(c));var f=l.map(function(h){var g=Gc(h.name||h.id),x=it('<li><span class="bjs-crumb"><a title="'+g+'">'+g+"</a></span></li>"),w=t.findRoot(er(h))||t.findRoot(h.id);if(!w&&K(h,"bpmn:Process")){var b=e.find(function(D){var F=ve(D);return F&&F.get("processRef")&&F.get("processRef")===h});w=t.findRoot(b.id)}return x.addEventListener("click",function(){t.setRootElement(w)}),x});i.innerHTML="";var d=f.length>1;o.toggle(Wc,d),f.forEach(function(h){i.appendChild(h)})}n.on("root.set",function(c){u(c.element)})}Po.$inject=["eventBus","elementRegistry","canvas"];function zc(n){for(var e=ve(n),t=[],i=e;i;i=i.$parent)(K(i,"bpmn:SubProcess")||K(i,"bpmn:Process"))&&t.push(i);return t.reverse()}function ko(n,e){var t=null,i=new Yc;n.on("root.set",function(r){var o=r.element,l=e.viewbox(),u=i.get(o);if(i.set(t,{x:l.x,y:l.y,zoom:l.scale}),t=o,!(K(o,"bpmn:Collaboration")&&!u)){u=u||{x:0,y:0,zoom:1};var c=(l.x-u.x)*l.scale,f=(l.y-u.y)*l.scale;(c!==0||f!==0)&&e.scroll({dx:c,dy:f}),u.zoom!==l.scale&&e.zoom(u.zoom,{x:0,y:0})}}),n.on("diagram.clear",function(){i.clear(),t=null})}ko.$inject=["eventBus","canvas"];function Yc(){this._entries=[],this.set=function(n,e){var t=!1;for(var i in this._entries)if(this._entries[i][0]===n){this._entries[i][1]=e,t=!0;break}t||this._entries.push([n,e])},this.get=function(n){for(var e in this._entries)if(this._entries[e][0]===n)return this._entries[e][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(n){var e=-1;for(var t in this._entries)if(this._entries[t][0]===n){e=t;break}e!==-1&&this._entries.splice(e,1)}}var No={x:180,y:160};function Vt(n,e){this._eventBus=n,this._moddle=e;var t=this;n.on("import.render.start",1500,function(i,r){t._handleImport(r.definitions)})}Vt.prototype._handleImport=function(n){if(n.diagrams){var e=this;this._definitions=n,this._processToDiagramMap={},n.diagrams.forEach(function(i){!i.plane||!i.plane.bpmnElement||(e._processToDiagramMap[i.plane.bpmnElement.id]=i)});var t=[];n.diagrams.forEach(function(i){var r=e._createNewDiagrams(i.plane);Array.prototype.push.apply(t,r)}),t.forEach(function(i){e._movePlaneElementsToOrigin(i.plane)})}},Vt.prototype._createNewDiagrams=function(n){var e=this,t=[],i=[];n.get("planeElement").forEach(function(o){var l=o.bpmnElement;if(l){var u=l.$parent;K(l,"bpmn:SubProcess")&&!o.isExpanded&&t.push(l),Jc(l,n)&&i.push({diElement:o,parent:u})}});var r=[];return t.forEach(function(o){if(!e._processToDiagramMap[o.id]){var l=e._createDiagram(o);e._processToDiagramMap[o.id]=l,r.push(l)}}),i.forEach(function(o){for(var l=o.diElement,u=o.parent;u&&t.indexOf(u)===-1;)u=u.$parent;if(u){var c=e._processToDiagramMap[u.id];e._moveToDiPlane(l,c.plane)}}),r},Vt.prototype._movePlaneElementsToOrigin=function(n){var e=n.get("planeElement"),t=Kc(n),i={x:t.x-No.x,y:t.y-No.y};e.forEach(function(r){r.waypoint?r.waypoint.forEach(function(o){o.x=o.x-i.x,o.y=o.y-i.y}):r.bounds&&(r.bounds.x=r.bounds.x-i.x,r.bounds.y=r.bounds.y-i.y)})},Vt.prototype._moveToDiPlane=function(n,e){var t=Do(n),i=t.plane.get("planeElement");i.splice(i.indexOf(n),1),e.get("planeElement").push(n)},Vt.prototype._createDiagram=function(n){var e=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:n}),t=this._moddle.create("bpmndi:BPMNDiagram",{plane:e});return e.$parent=t,e.bpmnElement=n,t.$parent=this._definitions,this._definitions.diagrams.push(t),t},Vt.$inject=["eventBus","moddle"];function Do(n){return K(n,"bpmndi:BPMNDiagram")?n:Do(n.$parent)}function Kc(n){var e={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return n.planeElement.forEach(function(t){if(t.bounds){var i=Ji(t.bounds);e.top=Math.min(i.top,e.top),e.left=Math.min(i.left,e.left)}}),hc(e)}function Jc(n,e){var t=n.$parent;return!(!K(t,"bpmn:SubProcess")||t===e.bpmnElement||ql(n,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))}var ii=250,Zc='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg>',Xc="bjs-drilldown-empty";function Ct(n,e,t,i){Pe.call(this,e),this._canvas=n,this._eventBus=e,this._elementRegistry=t,this._overlays=i;var r=this;this.executed("shape.toggleCollapse",ii,function(o){var l=o.shape;r._canDrillDown(l)?r._addOverlay(l):r._removeOverlay(l)},!0),this.reverted("shape.toggleCollapse",ii,function(o){var l=o.shape;r._canDrillDown(l)?r._addOverlay(l):r._removeOverlay(l)},!0),this.executed(["shape.create","shape.move","shape.delete"],ii,function(o){var l=o.oldParent,u=o.newParent||o.parent,c=o.shape;r._canDrillDown(c)&&r._addOverlay(c),r._updateDrilldownOverlay(l),r._updateDrilldownOverlay(u),r._updateDrilldownOverlay(c)},!0),this.reverted(["shape.create","shape.move","shape.delete"],ii,function(o){var l=o.oldParent,u=o.newParent||o.parent,c=o.shape;r._canDrillDown(c)&&r._addOverlay(c),r._updateDrilldownOverlay(l),r._updateDrilldownOverlay(u),r._updateDrilldownOverlay(c)},!0),e.on("import.render.complete",function(){t.filter(function(o){return r._canDrillDown(o)}).map(function(o){r._addOverlay(o)})})}et(Ct,Pe),Ct.prototype._updateDrilldownOverlay=function(n){var e=this._canvas;if(n){var t=e.findRoot(n);t&&this._updateOverlayVisibility(t)}},Ct.prototype._canDrillDown=function(n){var e=this._canvas;return K(n,"bpmn:SubProcess")&&e.findRoot(er(n))},Ct.prototype._updateOverlayVisibility=function(n){var e=this._overlays,t=ve(n),i=e.get({element:t.id,type:"drilldown"})[0];if(i){var r=t&&t.get("flowElements")&&t.get("flowElements").length;zn(i.html).toggle(Xc,!r)}},Ct.prototype._addOverlay=function(n){var e=this._canvas,t=this._overlays,i=t.get({element:n,type:"drilldown"});i.length&&this._removeOverlay(n);var r=it('<button class="bjs-drilldown">'+Zc+"</button>");r.addEventListener("click",function(){e.setRootElement(e.findRoot(er(n)))}),t.add(n,"drilldown",{position:{bottom:-7,right:-8},html:r}),this._updateOverlayVisibility(n)},Ct.prototype._removeOverlay=function(n){var e=this._overlays;e.remove({element:n,type:"drilldown"})},Ct.$inject=["canvas","eventBus","elementRegistry","overlays"];const Qc={__depends__:[Mo,Vc,Uc],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",Po],drilldownCentering:["type",ko],drilldownOverlayBehavior:["type",Ct],subprocessCompatibility:["type",Vt]},jc=/^class[ {]/;function ef(n){return jc.test(n.toString())}function tr(n){return Array.isArray(n)}function nr(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function ri(...n){n.length===1&&tr(n[0])&&(n=n[0]),n=[...n];const e=n.pop();return e.$inject=n,e}const tf=/constructor\s*[^(]*\(\s*([^)]*)\)/m,nf=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,rf=/\/\*([^*]*)\*\//m;function of(n){if(typeof n!="function")throw new Error(`Cannot annotate "${n}". Expected a function!`);const e=n.toString().match(ef(n)?tf:nf);if(!e)return[];const t=e[1]||e[2];return t&&t.split(",").map(i=>{const r=i.match(rf);return(r&&r[1]||i).trim()})||[]}function Lo(n,e){e=e||{get:function(T,k){if(t.push(T),k===!1)return null;throw l(`No provider for "${T}"!`)}};const t=[],i=this._providers=Object.create(e._providers||null),r=this._instances=Object.create(null),o=r.injector=this,l=function(T){const k=t.join(" -> ");return t.length=0,new Error(k?`${T} (Resolving: ${k})`:T)};function u(T,k){if(!i[T]&&T.indexOf(".")!==-1){const A=T.split(".");let S=u(A.shift());for(;A.length;)S=S[A.shift()];return S}if(nr(r,T))return r[T];if(nr(i,T)){if(t.indexOf(T)!==-1)throw t.push(T),l("Cannot resolve circular dependency!");return t.push(T),r[T]=i[T][0](i[T][1]),t.pop(),r[T]}return e.get(T,k)}function c(T,k){if(typeof k>"u"&&(k={}),typeof T!="function")if(tr(T))T=ri(T.slice());else throw l(`Cannot invoke "${T}". Expected a function!`);const S=(T.$inject||of(T)).map(I=>nr(k,I)?k[I]:u(I));return{fn:T,dependencies:S}}function f(T){const{fn:k,dependencies:A}=c(T),S=Function.prototype.bind.apply(k,[null].concat(A));return new S}function d(T,k,A){const{fn:S,dependencies:I}=c(T,A);return S.apply(k,I)}function h(T){return ri(k=>T.get(k))}function g(T,k){if(k&&k.length){const A=Object.create(null),S=Object.create(null),I=[],R=[],M=[];let C,P,O,U;for(let $ in i)C=i[$],k.indexOf($)!==-1&&(C[2]==="private"?(P=I.indexOf(C[3]),P===-1?(O=C[3].createChild([],k),U=h(O),I.push(C[3]),R.push(O),M.push(U),A[$]=[U,$,"private",O]):A[$]=[M[P],$,"private",R[P]]):A[$]=[C[2],C[1]],S[$]=!0),(C[2]==="factory"||C[2]==="type")&&C[1].$scope&&k.forEach(te=>{C[1].$scope.indexOf(te)!==-1&&(A[$]=[C[2],C[1]],S[te]=!0)});k.forEach($=>{if(!S[$])throw new Error('No provider for "'+$+'". Cannot use provider from the parent!')}),T.unshift(A)}return new Lo(T,o)}const x={factory:d,type:f,value:function(T){return T}};function w(T,k){const A=T.__init__||[];return function(){A.forEach(S=>{typeof S=="string"?k.get(S):k.invoke(S)})}}function b(T){const k=T.__exports__;if(k){const A=T.__modules__,S=Object.keys(T).reduce((P,O)=>(O!=="__exports__"&&O!=="__modules__"&&O!=="__init__"&&O!=="__depends__"&&(P[O]=T[O]),P),Object.create(null)),I=(A||[]).concat(S),R=g(I),M=ri(function(P){return R.get(P)});k.forEach(function(P){i[P]=[M,P,"private",R]});const C=(T.__init__||[]).slice();return C.unshift(function(){R.init()}),T=Object.assign({},T,{__init__:C}),w(T,R)}return Object.keys(T).forEach(function(A){if(A==="__init__"||A==="__depends__")return;if(T[A][2]==="private"){i[A]=T[A];return}const S=T[A][0],I=T[A][1];i[A]=[x[S],sf(S,I),S]}),w(T,o)}function D(T,k){return T.indexOf(k)!==-1||(T=(k.__depends__||[]).reduce(D,T),T.indexOf(k)!==-1)?T:T.concat(k)}function F(T){const k=T.reduce(D,[]).map(b);let A=!1;return function(){A||(A=!0,k.forEach(S=>S()))}}this.get=u,this.invoke=d,this.instantiate=f,this.createChild=g,this.init=F(n)}function sf(n,e){return n!=="value"&&tr(e)&&(e=ri(e.slice())),e}var af=1;function Et(n,e){ut.call(this,n,af),this.CONNECTION_STYLE=e.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=e.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=e.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}et(Et,ut),Et.prototype.canRender=function(){return!0},Et.prototype.drawShape=function(e,t,i){var r=de("rect");return le(r,{x:0,y:0,width:t.width||0,height:t.height||0}),Eo(t)?le(r,Y({},this.FRAME_STYLE,i||{})):le(r,Y({},this.SHAPE_STYLE,i||{})),_e(e,r),r},Et.prototype.drawConnection=function(e,t,i){var r=qi(t.waypoints,Y({},this.CONNECTION_STYLE,i||{}));return _e(e,r),r},Et.prototype.getShapePath=function(e){var t=e.x,i=e.y,r=e.width,o=e.height,l=[["M",t,i],["l",r,0],["l",0,o],["l",-r,0],["z"]];return Nt(l)},Et.prototype.getConnectionPath=function(e){var t=e.waypoints,i,r,o=[];for(i=0;r=t[i];i++)r=r.original||r,o.push([i===0?"M":"L",r.x,r.y]);return Nt(o)},Et.$inject=["eventBus","styles"];function lf(){var n={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},e=this;this.cls=function(t,i,r){var o=this.style(i,r);return Y(o,{class:t})},this.style=function(t,i){!Ke(t)&&!i&&(i=t,t=[]);var r=Yt(t,function(o,l){return Y(o,n[l]||{})},{});return i?Y(r,i):r},this.computeStyle=function(t,i,r){return Ke(i)||(r=i,i=[]),e.style(i||[],Y({},r,t||{}))}}const uf={__init__:["defaultRenderer"],defaultRenderer:["type",Et],styles:["type",lf]};function cf(n,e){if(!n||!e)return-1;var t=n.indexOf(e);return t!==-1&&n.splice(t,1),t}function ff(n,e,t){if(!(!n||!e)){typeof t!="number"&&(t=-1);var i=n.indexOf(e);if(i!==-1){if(i===t)return;if(t!==-1)n.splice(i,1);else return}t!==-1?n.splice(t,0,e):n.push(e)}}function oi(n,e){return Math.round(n*e)/e}function Fo(n){return gt(n)?n+"px":n}function df(n){for(;n.parent;)n=n.parent;return n}function pf(n){n=Y({},{width:"100%",height:"100%"},n);const e=n.container||document.body,t=document.createElement("div");return t.setAttribute("class","djs-container djs-parent"),Ve(t,{position:"relative",overflow:"hidden",width:Fo(n.width),height:Fo(n.height)}),e.appendChild(t),t}function Vo(n,e,t){const i=de("g");Oe(i).add(e);const r=t!==void 0?t:n.childNodes.length-1;return n.insertBefore(i,n.childNodes[r]||null),i}const hf="base",Bo=0,mf=1,gf={shape:["x","y","width","height"],connection:["waypoints"]};function J(n,e,t,i){this._eventBus=e,this._elementRegistry=i,this._graphicsFactory=t,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._init(n||{})}J.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],J.prototype._init=function(n){const e=this._eventBus,t=this._container=pf(n),i=this._svg=de("svg");le(i,{width:"100%",height:"100%"}),_e(t,i);const r=this._viewport=Vo(i,"viewport");n.deferUpdate&&(this._viewboxChanged=Bl(vt(this._viewboxChanged,this),300)),e.on("diagram.init",()=>{e.fire("canvas.init",{svg:i,viewport:r})}),e.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],()=>{delete this._cachedViewbox}),e.on("diagram.destroy",500,this._destroy,this),e.on("diagram.clear",500,this._clear,this)},J.prototype._destroy=function(){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});const n=this._container.parentNode;n&&n.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport},J.prototype._clear=function(){this._elementRegistry.getAll().forEach(e=>{const t=Co(e);t==="root"?this.removeRootElement(e):this._removeElement(e,t)}),this._planes=[],this._rootElement=null,delete this._cachedViewbox},J.prototype.getDefaultLayer=function(){return this.getLayer(hf,Bo)},J.prototype.getLayer=function(n,e){if(!n)throw new Error("must specify a name");let t=this._layers[n];if(t||(t=this._layers[n]=this._createLayer(n,e)),typeof e<"u"&&t.index!==e)throw new Error("layer <"+n+"> already created at index <"+e+">");return t.group},J.prototype._getChildIndex=function(n){return Yt(this._layers,function(e,t){return t.visible&&n>=t.index&&e++,e},0)},J.prototype._createLayer=function(n,e){typeof e>"u"&&(e=mf);const t=this._getChildIndex(e);return{group:Vo(this._viewport,"layer-"+n,t),index:e,visible:!0}},J.prototype.showLayer=function(n){if(!n)throw new Error("must specify a name");const e=this._layers[n];if(!e)throw new Error("layer <"+n+"> does not exist");const t=this._viewport,i=e.group,r=e.index;if(e.visible)return i;const o=this._getChildIndex(r);return t.insertBefore(i,t.childNodes[o]||null),e.visible=!0,i},J.prototype.hideLayer=function(n){if(!n)throw new Error("must specify a name");const e=this._layers[n];if(!e)throw new Error("layer <"+n+"> does not exist");const t=e.group;return e.visible&&(En(t),e.visible=!1),t},J.prototype._removeLayer=function(n){const e=this._layers[n];e&&(delete this._layers[n],En(e.group))},J.prototype.getActiveLayer=function(){const n=this._findPlaneForRoot(this.getRootElement());return n?n.layer:null},J.prototype.findRoot=function(n){return typeof n=="string"&&(n=this._elementRegistry.get(n)),n?(this._findPlaneForRoot(df(n))||{}).rootElement:void 0},J.prototype.getRootElements=function(){return this._planes.map(function(n){return n.rootElement})},J.prototype._findPlaneForRoot=function(n){return Je(this._planes,function(e){return e.rootElement===n})},J.prototype.getContainer=function(){return this._container},J.prototype._updateMarker=function(n,e,t){let i;n.id||(n=this._elementRegistry.get(n)),i=this._elementRegistry._elements[n.id],i&&(q([i.gfx,i.secondaryGfx],function(r){r&&(t?Oe(r).add(e):Oe(r).remove(e))}),this._eventBus.fire("element.marker.update",{element:n,gfx:i.gfx,marker:e,add:!!t}))},J.prototype.addMarker=function(n,e){this._updateMarker(n,e,!0)},J.prototype.removeMarker=function(n,e){this._updateMarker(n,e,!1)},J.prototype.hasMarker=function(n,e){n.id||(n=this._elementRegistry.get(n));const t=this.getGraphics(n);return Oe(t).has(e)},J.prototype.toggleMarker=function(n,e){this.hasMarker(n,e)?this.removeMarker(n,e):this.addMarker(n,e)},J.prototype.getRootElement=function(){const n=this._rootElement;return n||this._planes.length?n:this.setRootElement(this.addRootElement(null))},J.prototype.addRootElement=function(n){const e=this._rootsIdx++;n||(n={id:"__implicitroot_"+e,children:[],isImplicit:!0});const t=n.layer="root-"+e;this._ensureValid("root",n);const i=this.getLayer(t,Bo);return this.hideLayer(t),this._addRoot(n,i),this._planes.push({rootElement:n,layer:i}),n},J.prototype.removeRootElement=function(n){if(typeof n=="string"&&(n=this._elementRegistry.get(n)),!!this._findPlaneForRoot(n))return this._removeRoot(n),this._removeLayer(n.layer),this._planes=this._planes.filter(function(t){return t.rootElement!==n}),this._rootElement===n&&(this._rootElement=null),n},J.prototype.setRootElement=function(n){if(n===this._rootElement)return;let e;if(!n)throw new Error("rootElement required");return e=this._findPlaneForRoot(n),e||(n=this.addRootElement(n)),this._setRoot(n),n},J.prototype._removeRoot=function(n){const e=this._elementRegistry,t=this._eventBus;t.fire("root.remove",{element:n}),t.fire("root.removed",{element:n}),e.remove(n)},J.prototype._addRoot=function(n,e){const t=this._elementRegistry,i=this._eventBus;i.fire("root.add",{element:n}),t.add(n,e),i.fire("root.added",{element:n,gfx:e})},J.prototype._setRoot=function(n,e){const t=this._rootElement;t&&(this._elementRegistry.updateGraphics(t,null,!0),this.hideLayer(t.layer)),n&&(e||(e=this._findPlaneForRoot(n).layer),this._elementRegistry.updateGraphics(n,this._svg,!0),this.showLayer(n.layer)),this._rootElement=n,this._eventBus.fire("root.set",{element:n})},J.prototype._ensureValid=function(n,e){if(!e.id)throw new Error("element must have an id");if(this._elementRegistry.get(e.id))throw new Error("element <"+e.id+"> already exists");const t=gf[n];if(!Yr(t,function(r){return typeof e[r]<"u"}))throw new Error("must supply { "+t.join(", ")+" } with "+n)},J.prototype._setParent=function(n,e,t){ff(e.children,n,t),n.parent=e},J.prototype._addElement=function(n,e,t,i){t=t||this.getRootElement();const r=this._eventBus,o=this._graphicsFactory;this._ensureValid(n,e),r.fire(n+".add",{element:e,parent:t}),this._setParent(e,t,i);const l=o.create(n,e,i);return this._elementRegistry.add(e,l),o.update(n,e,l),r.fire(n+".added",{element:e,gfx:l}),e},J.prototype.addShape=function(n,e,t){return this._addElement("shape",n,e,t)},J.prototype.addConnection=function(n,e,t){return this._addElement("connection",n,e,t)},J.prototype._removeElement=function(n,e){const t=this._elementRegistry,i=this._graphicsFactory,r=this._eventBus;if(n=t.get(n.id||n),!!n)return r.fire(e+".remove",{element:n}),i.remove(n),cf(n.parent&&n.parent.children,n),n.parent=null,r.fire(e+".removed",{element:n}),t.remove(n),n},J.prototype.removeShape=function(n){return this._removeElement(n,"shape")},J.prototype.removeConnection=function(n){return this._removeElement(n,"connection")},J.prototype.getGraphics=function(n,e){return this._elementRegistry.getGraphics(n,e)},J.prototype._changeViewbox=function(n){this._eventBus.fire("canvas.viewbox.changing"),n.apply(this),this._cachedViewbox=null,this._viewboxChanged()},J.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},J.prototype.viewbox=function(n){if(n===void 0&&this._cachedViewbox)return this._cachedViewbox;const e=this._viewport,t=this.getSize();let i,r,o,l,u,c,f;if(n)this._changeViewbox(function(){u=Math.min(t.width/n.width,t.height/n.height);const d=this._svg.createSVGMatrix().scale(u).translate(-n.x,-n.y);Tn(e,d)});else return o=this._rootElement?this.getActiveLayer():null,i=o&&o.getBBox()||{},l=Tn(e),r=l?l.matrix:au(),u=oi(r.a,1e3),c=oi(-r.e||0,1e3),f=oi(-r.f||0,1e3),n=this._cachedViewbox={x:c?c/u:0,y:f?f/u:0,width:t.width/u,height:t.height/u,scale:u,inner:{width:i.width||0,height:i.height||0,x:i.x||0,y:i.y||0},outer:t},n;return n},J.prototype.scroll=function(n){const e=this._viewport;let t=e.getCTM();return n&&this._changeViewbox(function(){n=Y({dx:0,dy:0},n||{}),t=this._svg.createSVGMatrix().translate(n.dx,n.dy).multiply(t),Oo(e,t)}),{x:t.e,y:t.f}},J.prototype.scrollToElement=function(n,e){let t=100;typeof n=="string"&&(n=this._elementRegistry.get(n));const i=this.findRoot(n);if(i!==this.getRootElement()&&this.setRootElement(i),i===n)return;e||(e={}),typeof e=="number"&&(t=e),e={top:e.top||t,right:e.right||t,bottom:e.bottom||t,left:e.left||t};const r=Lt(n),o=Ji(r),l=this.viewbox(),u=this.zoom();let c,f;l.y+=e.top/u,l.x+=e.left/u,l.width-=(e.right+e.left)/u,l.height-=(e.bottom+e.top)/u;const d=Ji(l);if(!(r.width<l.width&&r.height<l.height))c=r.x-l.x,f=r.y-l.y;else{const g=Math.max(0,o.right-d.right),x=Math.min(0,o.left-d.left),w=Math.max(0,o.bottom-d.bottom),b=Math.min(0,o.top-d.top);c=g||x,f=w||b}this.scroll({dx:-c*u,dy:-f*u})},J.prototype.zoom=function(n,e){if(!n)return this.viewbox(n).scale;if(n==="fit-viewport")return this._fitViewport(e);let t,i;return this._changeViewbox(function(){typeof e!="object"&&(t=this.viewbox().outer,e={x:t.width/2,y:t.height/2}),i=this._setZoom(n,e)}),oi(i.a,1e3)};function Oo(n,e){const t="matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")";n.setAttribute("transform",t)}J.prototype._fitViewport=function(n){const e=this.viewbox(),t=e.outer,i=e.inner;let r,o;return i.x>=0&&i.y>=0&&i.x+i.width<=t.width&&i.y+i.height<=t.height&&!n?o={x:0,y:0,width:Math.max(i.width+i.x,t.width),height:Math.max(i.height+i.y,t.height)}:(r=Math.min(1,t.width/i.width,t.height/i.height),o={x:i.x+(n?i.width/2-t.width/r/2:0),y:i.y+(n?i.height/2-t.height/r/2:0),width:t.width/r,height:t.height/r}),this.viewbox(o),this.viewbox(!1).scale},J.prototype._setZoom=function(n,e){const t=this._svg,i=this._viewport,r=t.createSVGMatrix(),o=t.createSVGPoint();let l,u,c,f,d;c=i.getCTM();const h=c.a;return e?(l=Y(o,e),u=l.matrixTransform(c.inverse()),f=r.translate(u.x,u.y).scale(1/h*n).translate(-u.x,-u.y),d=c.multiply(f)):d=r.scale(n),Oo(this._viewport,d),d},J.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},J.prototype.getAbsoluteBBox=function(n){const e=this.viewbox();let t;n.waypoints?t=this.getGraphics(n).getBBox():t=n;const i=t.x*e.scale-e.x*e.scale,r=t.y*e.scale-e.y*e.scale,o=t.width*e.scale,l=t.height*e.scale;return{x:i,y:r,width:o,height:l}},J.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var Xt="data-element-id";function Ue(n){this._elements={},this._eventBus=n}Ue.$inject=["eventBus"],Ue.prototype.add=function(n,e,t){var i=n.id;this._validateId(i),le(e,Xt,i),t&&le(t,Xt,i),this._elements[i]={element:n,gfx:e,secondaryGfx:t}},Ue.prototype.remove=function(n){var e=this._elements,t=n.id||n,i=t&&e[t];i&&(le(i.gfx,Xt,""),i.secondaryGfx&&le(i.secondaryGfx,Xt,""),delete e[t])},Ue.prototype.updateId=function(n,e){this._validateId(e),typeof n=="string"&&(n=this.get(n)),this._eventBus.fire("element.updateId",{element:n,newId:e});var t=this.getGraphics(n),i=this.getGraphics(n,!0);this.remove(n),n.id=e,this.add(n,t,i)},Ue.prototype.updateGraphics=function(n,e,t){var i=n.id||n,r=this._elements[i];return t?r.secondaryGfx=e:r.gfx=e,e&&le(e,Xt,i),e},Ue.prototype.get=function(n){var e;typeof n=="string"?e=n:e=n&&le(n,Xt);var t=this._elements[e];return t&&t.element},Ue.prototype.filter=function(n){var e=[];return this.forEach(function(t,i){n(t,i)&&e.push(t)}),e},Ue.prototype.find=function(n){for(var e=this._elements,t=Object.keys(e),i=0;i<t.length;i++){var r=t[i],o=e[r],l=o.element,u=o.gfx;if(n(l,u))return l}},Ue.prototype.getAll=function(){return this.filter(function(n){return n})},Ue.prototype.forEach=function(n){var e=this._elements;Object.keys(e).forEach(function(t){var i=e[t],r=i.element,o=i.gfx;return n(r,o)})},Ue.prototype.getGraphics=function(n,e){var t=n.id||n,i=this._elements[t];return i&&(e?i.secondaryGfx:i.gfx)},Ue.prototype._validateId=function(n){if(!n)throw new Error("element must have an id");if(this._elements[n])throw new Error("element with id "+n+" already added")};var si={exports:{}},ai={},Uo;function $o(){if(Uo)return ai;Uo=1;function n(t,i,r,o){var l=r.inverse;return Object.defineProperty(t,"remove",{value:function(u){var c=this.indexOf(u);return c!==-1&&(this.splice(c,1),i.unset(u,l,o)),u}}),Object.defineProperty(t,"contains",{value:function(u){return this.indexOf(u)!==-1}}),Object.defineProperty(t,"add",{value:function(u,c){var f=this.indexOf(u);if(typeof c>"u"){if(f!==-1)return;c=this.length}f!==-1&&this.splice(f,1),this.splice(c,0,u),f===-1&&i.set(u,l,o)}}),Object.defineProperty(t,"__refs_collection",{value:!0}),t}function e(t){return t.__refs_collection===!0}return ai.extend=n,ai.isExtended=e,ai}var ir,Go;function yf(){if(Go)return ir;Go=1;var n=$o();function e(o,l){return Object.prototype.hasOwnProperty.call(o,l.name||l)}function t(o,l,u){var c=n.extend(u[l.name]||[],o,l,u);Object.defineProperty(u,l.name,{enumerable:l.enumerable,value:c}),c.length&&c.forEach(function(f){o.set(f,l.inverse,u)})}function i(o,l,u){var c=l.inverse,f=u[l.name];Object.defineProperty(u,l.name,{configurable:l.configurable,enumerable:l.enumerable,get:function(){return f},set:function(d){if(d!==f){var h=f;f=null,h&&o.unset(h,c,u),f=d,o.set(f,c,u)}}})}function r(o,l){if(!(this instanceof r))return new r(o,l);o.inverse=l,l.inverse=o,this.props={},this.props[o.name]=o,this.props[l.name]=l}return r.prototype.bind=function(o,l){if(typeof l=="string"){if(!this.props[l])throw new Error("no property <"+l+"> in ref");l=this.props[l]}l.collection?t(this,l,o):i(this,l,o)},r.prototype.ensureRefsCollection=function(o,l){var u=o[l.name];return n.isExtended(u)||t(this,l,o),u},r.prototype.ensureBound=function(o,l){e(o,l)||this.bind(o,l)},r.prototype.unset=function(o,l,u){o&&(this.ensureBound(o,l),l.collection?this.ensureRefsCollection(o,l).remove(u):o[l.name]=void 0)},r.prototype.set=function(o,l,u){o&&(this.ensureBound(o,l),l.collection?this.ensureRefsCollection(o,l).add(u):o[l.name]=u)},ir=r,ir}var qo;function vf(){return qo||(qo=1,si.exports=yf(),si.exports.Collection=$o()),si.exports}var _f=vf();const bn=Ml(_f);var rr=new bn({name:"children",enumerable:!0,collection:!0},{name:"parent"}),Ho=new bn({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),Wo=new bn({name:"attachers",collection:!0},{name:"host"}),zo=new bn({name:"outgoing",collection:!0},{name:"source"}),Yo=new bn({name:"incoming",collection:!0},{name:"target"});function Rn(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(n){var e=this.label,t=this.labels;!n&&e?t.remove(e):t.add(n,0)}}),rr.bind(this,"parent"),Ho.bind(this,"labels"),zo.bind(this,"outgoing"),Yo.bind(this,"incoming")}function Mn(){Rn.call(this),rr.bind(this,"children"),Wo.bind(this,"host"),Wo.bind(this,"attachers")}et(Mn,Rn);function Ko(){Rn.call(this),rr.bind(this,"children")}et(Ko,Mn);function Jo(){Mn.call(this),Ho.bind(this,"labelTarget")}et(Jo,Mn);function Zo(){Rn.call(this),zo.bind(this,"source"),Yo.bind(this,"target")}et(Zo,Rn);var xf={connection:Zo,shape:Mn,label:Jo,root:Ko};function Cf(n,e){var t=xf[n];if(!t)throw new Error("unknown type: <"+n+">");return Y(new t,e)}function Qt(){this._uid=12}Qt.prototype.createRoot=function(n){return this.create("root",n)},Qt.prototype.createLabel=function(n){return this.create("label",n)},Qt.prototype.createShape=function(n){return this.create("shape",n)},Qt.prototype.createConnection=function(n){return this.create("connection",n)},Qt.prototype.create=function(n,e){return e=Y({},e||{}),e.id||(e.id=n+"_"+this._uid++),Cf(n,e)};var li="__fn",Xo=1e3,Ef=Array.prototype.slice;function Be(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}Be.prototype.on=function(n,e,t,i){if(n=Ke(n)?n:[n],yt(e)&&(i=t,t=e,e=Xo),!gt(e))throw new Error("priority must be a number");var r=t;i&&(r=vt(t,i),r[li]=t[li]||t);var o=this;n.forEach(function(l){o._addListener(l,{priority:e,callback:r,next:null})})},Be.prototype.once=function(n,e,t,i){var r=this;if(yt(e)&&(i=t,t=e,e=Xo),!gt(e))throw new Error("priority must be a number");function o(){o.__isTomb=!0;var l=t.apply(i,arguments);return r.off(n,o),l}o[li]=t,this.on(n,e,o)},Be.prototype.off=function(n,e){n=Ke(n)?n:[n];var t=this;n.forEach(function(i){t._removeListener(i,e)})},Be.prototype.createEvent=function(n){var e=new In;return e.init(n),e},Be.prototype.fire=function(n,e){var t,i,r,o;if(o=Ef.call(arguments),typeof n=="object"&&(e=n,n=e.type),!n)throw new Error("no event type specified");if(i=this._listeners[n],!!i){e instanceof In?t=e:t=this.createEvent(e),o[0]=t;var l=t.type;n!==l&&(t.type=n);try{r=this._invokeListeners(t,o,i)}finally{n!==l&&(t.type=l)}return r===void 0&&t.defaultPrevented&&(r=!1),r}},Be.prototype.handleError=function(n){return this.fire("error",{error:n})===!1},Be.prototype._destroy=function(){this._listeners={}},Be.prototype._invokeListeners=function(n,e,t){for(var i;t&&!n.cancelBubble;)i=this._invokeListener(n,e,t),t=t.next;return i},Be.prototype._invokeListener=function(n,e,t){var i;if(t.callback.__isTomb)return i;try{i=Tf(t.callback,e),i!==void 0&&(n.returnValue=i,n.stopPropagation()),i===!1&&n.preventDefault()}catch(r){if(!this.handleError(r))throw console.error("unhandled error in event listener",r),r}return i},Be.prototype._addListener=function(n,e){var t=this._getListeners(n),i;if(!t){this._setListeners(n,e);return}for(;t;){if(t.priority<e.priority){e.next=t,i?i.next=e:this._setListeners(n,e);return}i=t,t=t.next}i.next=e},Be.prototype._getListeners=function(n){return this._listeners[n]},Be.prototype._setListeners=function(n,e){this._listeners[n]=e},Be.prototype._removeListener=function(n,e){var t=this._getListeners(n),i,r,o;if(!e){this._setListeners(n,null);return}for(;t;)i=t.next,o=t.callback,(o===e||o[li]===e)&&(r?r.next=i:this._setListeners(n,i)),r=t,t=i};function In(){}In.prototype.stopPropagation=function(){this.cancelBubble=!0},In.prototype.preventDefault=function(){this.defaultPrevented=!0},In.prototype.init=function(n){Y(this,n||{})};function Tf(n,e){return n.apply(null,e)}function wf(n){return n.childNodes[0]}function Sf(n){return n.parentNode.childNodes[1]}function $e(n,e){this._eventBus=n,this._elementRegistry=e}$e.$inject=["eventBus","elementRegistry"],$e.prototype._getChildrenContainer=function(n){var e=this._elementRegistry.getGraphics(n),t;return n.parent?(t=Sf(e),t||(t=de("g"),Oe(t).add("djs-children"),_e(e.parentNode,t))):t=e,t},$e.prototype._clear=function(n){var e=wf(n);return ao(e),e},$e.prototype._createContainer=function(n,e,t,i){var r=de("g");Oe(r).add("djs-group"),typeof t<"u"?Qo(r,e,e.childNodes[t]):_e(e,r);var o=de("g");Oe(o).add("djs-element"),Oe(o).add("djs-"+n),i&&Oe(o).add("djs-frame"),_e(r,o);var l=de("g");return Oe(l).add("djs-visual"),_e(o,l),o},$e.prototype.create=function(n,e,t){var i=this._getChildrenContainer(e.parent);return this._createContainer(n,i,t,Eo(e))},$e.prototype.updateContainments=function(n){var e=this,t=this._elementRegistry,i;i=Yt(n,function(r,o){return o.parent&&(r[o.parent.id]=o.parent),r},{}),q(i,function(r){var o=r.children;if(o){var l=e._getChildrenContainer(r);q(o.slice().reverse(),function(u){var c=t.getGraphics(u);Qo(c.parentNode,l)})}})},$e.prototype.drawShape=function(n,e,t={}){var i=this._eventBus;return i.fire("render.shape",{gfx:n,element:e,attrs:t})},$e.prototype.getShapePath=function(n){var e=this._eventBus;return e.fire("render.getShapePath",n)},$e.prototype.drawConnection=function(n,e,t={}){var i=this._eventBus;return i.fire("render.connection",{gfx:n,element:e,attrs:t})},$e.prototype.getConnectionPath=function(n){var e=this._eventBus;return e.fire("render.getConnectionPath",n)},$e.prototype.update=function(n,e,t){if(e.parent){var i=this._clear(t);if(n==="shape")this.drawShape(i,e),po(t,e.x,e.y);else if(n==="connection")this.drawConnection(i,e);else throw new Error("unknown type: "+n);e.hidden?le(t,"display","none"):le(t,"display","block")}},$e.prototype.remove=function(n){var e=this._elementRegistry.getGraphics(n);En(e.parentNode)};function Qo(n,e,t){var i=t||e.firstChild;n!==i&&e.insertBefore(n,i)}const Af={__depends__:[uf],__init__:["canvas"],canvas:["type",J],elementRegistry:["type",Ue],elementFactory:["type",Qt],eventBus:["type",Be],graphicsFactory:["type",$e]};function bf(n){var e=new Lo(n);return e.init(),e}function Rf(n){n=n||{};var e={config:["value",n]},t=[e,Af].concat(n.modules||[]);return bf(t)}function jt(n,e){this._injector=e=e||Rf(n),this.get=e.get,this.invoke=e.invoke,this.get("eventBus").fire("diagram.init")}jt.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},jt.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};function or(){}or.prototype.get=function(n){return this.$model.properties.get(this,n)},or.prototype.set=function(n,e){this.$model.properties.set(this,n,e)};function jo(n,e){this.model=n,this.properties=e}jo.prototype.createType=function(n){var e=this.model,t=this.properties,i=Object.create(or.prototype);q(n.properties,function(l){!l.isMany&&l.default!==void 0&&(i[l.name]=l.default)}),t.defineModel(i,e),t.defineDescriptor(i,n);var r=n.ns.name;function o(l){t.define(this,"$type",{value:r,enumerable:!0}),t.define(this,"$attrs",{value:{}}),t.define(this,"$parent",{writable:!0}),q(l,vt(function(u,c){this.set(c,u)},this))}return o.prototype=i,o.hasType=i.$instanceOf=this.model.hasType,t.defineModel(o,e),t.defineDescriptor(o,n),o};var Mf={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},es={String:function(n){return n},Boolean:function(n){return n==="true"},Integer:function(n){return parseInt(n,10)},Real:function(n){return parseFloat(n)}};function sr(n,e){var t=es[n];return t?t(e):e}function ar(n){return!!Mf[n]}function ts(n){return!!es[n]}function Me(n,e){var t=n.split(/:/),i,r;if(t.length===1)i=n,r=e;else if(t.length===2)i=t[1],r=t[0];else throw new Error("expected <prefix:localName> or <localName>, got "+n);return n=(r?r+":":"")+i,{name:n,prefix:r,localName:i}}function Ge(n){this.ns=n,this.name=n.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}Ge.prototype.build=function(){return Ul(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},Ge.prototype.addProperty=function(n,e,t){typeof e=="boolean"&&(t=e,e=void 0),this.addNamedProperty(n,t!==!1);var i=this.properties;e!==void 0?i.splice(e,0,n):i.push(n)},Ge.prototype.replaceProperty=function(n,e,t){var i=n.ns,r=this.properties,o=this.propertiesByName,l=n.name!==e.name;if(n.isId){if(!e.isId)throw new Error("property <"+e.ns.name+"> must be id property to refine <"+n.ns.name+">");this.setIdProperty(e,!1)}if(n.isBody){if(!e.isBody)throw new Error("property <"+e.ns.name+"> must be body property to refine <"+n.ns.name+">");this.setBodyProperty(e,!1)}var u=r.indexOf(n);if(u===-1)throw new Error("property <"+i.name+"> not found in property list");r.splice(u,1),this.addProperty(e,t?void 0:u,l),o[i.name]=o[i.localName]=e},Ge.prototype.redefineProperty=function(n,e,t){var i=n.ns.prefix,r=e.split("#"),o=Me(r[0],i),l=Me(r[1],o.prefix).name,u=this.propertiesByName[l];if(u)this.replaceProperty(u,n,t);else throw new Error("refined property <"+l+"> not found");delete n.redefines},Ge.prototype.addNamedProperty=function(n,e){var t=n.ns,i=this.propertiesByName;e&&(this.assertNotDefined(n,t.name),this.assertNotDefined(n,t.localName)),i[t.name]=i[t.localName]=n},Ge.prototype.removeNamedProperty=function(n){var e=n.ns,t=this.propertiesByName;delete t[e.name],delete t[e.localName]},Ge.prototype.setBodyProperty=function(n,e){if(e&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+n.ns.name+">)");this.bodyProperty=n},Ge.prototype.setIdProperty=function(n,e){if(e&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+n.ns.name+">)");this.idProperty=n},Ge.prototype.assertNotTrait=function(n){if((n.extends||[]).length)throw new Error(`cannot create <${n.name}> extending <${n.extends}>`)},Ge.prototype.assertNotDefined=function(n,e){var t=n.name,i=this.propertiesByName[t];if(i)throw new Error("property <"+t+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+n.definedBy.ns.name+"#"+n.ns.name+"> not allowed without redefines")},Ge.prototype.hasProperty=function(n){return this.propertiesByName[n]},Ge.prototype.addTrait=function(n,e){e&&this.assertNotTrait(n);var t=this.allTypesByName,i=this.allTypes,r=n.name;r in t||(q(n.properties,vt(function(o){o=Y({},o,{name:o.ns.localName,inherited:e}),Object.defineProperty(o,"definedBy",{value:n});var l=o.replaces,u=o.redefines;l||u?this.redefineProperty(o,l||u,l):(o.isBody&&this.setBodyProperty(o),o.isId&&this.setIdProperty(o),this.addProperty(o))},this)),i.push(n),t[r]=n)};function Tt(n,e){this.packageMap={},this.typeMap={},this.packages=[],this.properties=e,q(n,vt(this.registerPackage,this))}Tt.prototype.getPackage=function(n){return this.packageMap[n]},Tt.prototype.getPackages=function(){return this.packages},Tt.prototype.registerPackage=function(n){n=Y({},n);var e=this.packageMap;ns(e,n,"prefix"),ns(e,n,"uri"),q(n.types,vt(function(t){this.registerType(t,n)},this)),e[n.uri]=e[n.prefix]=n,this.packages.push(n)},Tt.prototype.registerType=function(n,e){n=Y({},n,{superClass:(n.superClass||[]).slice(),extends:(n.extends||[]).slice(),properties:(n.properties||[]).slice(),meta:Y(n.meta||{})});var t=Me(n.name,e.prefix),i=t.name,r={};q(n.properties,vt(function(o){var l=Me(o.name,t.prefix),u=l.name;ar(o.type)||(o.type=Me(o.type,l.prefix).name),Y(o,{ns:l,name:u}),r[u]=o},this)),Y(n,{ns:t,name:i,propertiesByName:r}),q(n.extends,vt(function(o){var l=Me(o,t.prefix),u=this.typeMap[l.name];u.traits=u.traits||[],u.traits.push(i)},this)),this.definePackage(n,e),this.typeMap[i]=n},Tt.prototype.mapTypes=function(n,e,t){var i=ar(n.name)?{name:n.name}:this.typeMap[n.name],r=this;function o(c,f){var d=Me(c,ar(c)?"":n.prefix);r.mapTypes(d,e,f)}function l(c){return o(c,!0)}function u(c){return o(c,!1)}if(!i)throw new Error("unknown type <"+n.name+">");q(i.superClass,t?l:u),e(i,!t),q(i.traits,l)},Tt.prototype.getEffectiveDescriptor=function(n){var e=Me(n),t=new Ge(e);this.mapTypes(e,function(r,o){t.addTrait(r,o)});var i=t.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i},Tt.prototype.definePackage=function(n,e){this.properties.define(n,"$pkg",{value:e})};function ns(n,e,t){var i=e[t];if(i in n)throw new Error("package with "+t+" <"+i+"> already defined")}function Bt(n){this.model=n}Bt.prototype.set=function(n,e,t){if(!tt(e)||!e.length)throw new TypeError("property name must be a non-empty string");var i=this.getProperty(n,e),r=i&&i.name;If(t)?i?delete n[r]:delete n.$attrs[lr(e)]:i?r in n?n[r]=t:is(n,i,t):n.$attrs[lr(e)]=t},Bt.prototype.get=function(n,e){var t=this.getProperty(n,e);if(!t)return n.$attrs[lr(e)];var i=t.name;return!n[i]&&t.isMany&&is(n,t,[]),n[i]},Bt.prototype.define=function(n,e,t){if(!t.writable){var i=t.value;t=Y({},t,{get:function(){return i}}),delete t.value}Object.defineProperty(n,e,t)},Bt.prototype.defineDescriptor=function(n,e){this.define(n,"$descriptor",{value:e})},Bt.prototype.defineModel=function(n,e){this.define(n,"$model",{value:e})},Bt.prototype.getProperty=function(n,e){var t=this.model,i=t.getPropertyDescriptor(n,e);if(i)return i;if(e.includes(":"))return null;const r=t.config.strict;if(typeof r<"u"){const o=new TypeError(`unknown property <${e}> on <${n.$type}>`);if(r)throw o;typeof console<"u"&&console.warn(o)}return null};function If(n){return typeof n>"u"}function is(n,e,t){Object.defineProperty(n,e.name,{enumerable:!e.isReference,writable:!0,value:t,configurable:!0})}function lr(n){return n.replace(/^:/,"")}function He(n,e={}){this.properties=new Bt(this),this.factory=new jo(this,this.properties),this.registry=new Tt(n,this.properties),this.typeCache={},this.config=e}He.prototype.create=function(n,e){var t=this.getType(n);if(!t)throw new Error("unknown type <"+n+">");return new t(e)},He.prototype.getType=function(n){var e=this.typeCache,t=tt(n)?n:n.ns.name,i=e[t];return i||(n=this.registry.getEffectiveDescriptor(t),i=e[t]=this.factory.createType(n)),i},He.prototype.createAny=function(n,e,t){var i=Me(n),r={$type:n,$instanceOf:function(l){return l===this.$type},get:function(l){return this[l]},set:function(l,u){Ol(this,[l],u)}},o={name:n,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:e}};return this.properties.defineDescriptor(r,o),this.properties.defineModel(r,this),this.properties.define(r,"get",{enumerable:!1,writable:!0}),this.properties.define(r,"set",{enumerable:!1,writable:!0}),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),q(t,function(l,u){kt(l)&&l.value!==void 0?r[l.name]=l.value:r[u]=l}),r},He.prototype.getPackage=function(n){return this.registry.getPackage(n)},He.prototype.getPackages=function(){return this.registry.getPackages()},He.prototype.getElementDescriptor=function(n){return n.$descriptor},He.prototype.hasType=function(n,e){e===void 0&&(e=n,n=this);var t=n.$model.getElementDescriptor(n);return e in t.allTypesByName},He.prototype.getPropertyDescriptor=function(n,e){return this.getElementDescriptor(n).propertiesByName[e]},He.prototype.getTypeDescriptor=function(n){return this.registry.typeMap[n]};var rs=String.fromCharCode,Pf=Object.prototype.hasOwnProperty,kf=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,Pn={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(Pn).forEach(function(n){Pn[n.toUpperCase()]=Pn[n]});function Nf(n,e,t,i){return i?Pf.call(Pn,i)?Pn[i]:"&"+i+";":rs(e||parseInt(t,16))}function Ot(n){return n.length>3&&n.indexOf("&")!==-1?n.replace(kf,Nf):n}var Df="http://www.w3.org/2001/XMLSchema-instance",Lf="xsi",os="xsi:type",ss="non-whitespace outside of root node";function en(n){return new Error(n)}function as(n){return"missing namespace for prefix <"+n+">"}function ui(n){return{get:n,enumerable:!0}}function Ff(n){var e={},t;for(t in n)e[t]=n[t];return e}function ur(n){return n+"$uri"}function Vf(n){var e={},t,i;for(t in n)i=n[t],e[i]=i,e[ur(i)]=t;return e}function ls(){return{line:0,column:0}}function Bf(n){throw n}function us(n){if(!this)return new us(n);var e=n&&n.proxy,t,i,r,o,l=Bf,u,c,f,d,h=ls,g=!1,x=!1,w=null,b=!1,D;function F(A){A instanceof Error||(A=en(A)),w=A,l(A,h)}function T(A){u&&(A instanceof Error||(A=en(A)),u(A,h))}this.on=function(A,S){if(typeof S!="function")throw en("required args <name, cb>");switch(A){case"openTag":i=S;break;case"text":t=S;break;case"closeTag":r=S;break;case"error":l=S;break;case"warn":u=S;break;case"cdata":o=S;break;case"attention":d=S;break;case"question":f=S;break;case"comment":c=S;break;default:throw en("unsupported event: "+A)}return this},this.ns=function(A){if(typeof A>"u"&&(A={}),typeof A!="object")throw en("required args <nsMap={}>");var S={},I;for(I in A)S[I]=A[I];return S[Df]=Lf,x=!0,D=S,this},this.parse=function(A){if(typeof A!="string")throw en("required args <xml=string>");return w=null,k(A),h=ls,b=!1,w},this.stop=function(){b=!0};function k(A){var S=x?[]:null,I=x?Vf(D):null,R,M=[],C=0,P=!1,O=!1,U=0,$=0,te,Fe,ce,ne,qe,y,p,m,_,v="",E=0,N;function Z(){if(N!==null)return N;var oe,Ae,ye,Ye=x&&I.xmlns,Qe=x&&g?[]:null,he=E,be=v,mt=be.length,bl,It,Ee,lt,fe,yn={},Rl={},je,z,ue;e:for(;he<mt;he++)if(je=!1,z=be.charCodeAt(he),!(z===32||z<14&&z>8)){for((z<65||z>122||z>90&&z<97)&&z!==95&&z!==58&&(T("illegal first char attribute name"),je=!0),ue=he+1;ue<mt;ue++)if(z=be.charCodeAt(ue),!(z>96&&z<123||z>64&&z<91||z>47&&z<59||z===46||z===45||z===95)){if(z===32||z<14&&z>8){T("missing attribute value"),he=ue;continue e}if(z===61)break;T("illegal attribute name char"),je=!0}if(fe=be.substring(he,ue),fe==="xmlns:xmlns"&&(T("illegal declaration of xmlns"),je=!0),z=be.charCodeAt(ue+1),z===34)ue=be.indexOf('"',he=ue+2),ue===-1&&(ue=be.indexOf("'",he),ue!==-1&&(T("attribute value quote missmatch"),je=!0));else if(z===39)ue=be.indexOf("'",he=ue+2),ue===-1&&(ue=be.indexOf('"',he),ue!==-1&&(T("attribute value quote missmatch"),je=!0));else for(T("missing attribute value quotes"),je=!0,ue=ue+1;ue<mt&&(z=be.charCodeAt(ue+1),!(z===32||z<14&&z>8));ue++);for(ue===-1&&(T("missing closing quotes"),ue=mt,je=!0),je||(Ee=be.substring(he,ue)),he=ue;ue+1<mt&&(z=be.charCodeAt(ue+1),!(z===32||z<14&&z>8));ue++)he===ue&&(T("illegal character after attribute end"),je=!0);if(he=ue+1,je)continue e;if(fe in Rl){T("attribute <"+fe+"> already defined");continue}if(Rl[fe]=!0,!x){yn[fe]=Ee;continue}if(g){if(It=fe==="xmlns"?"xmlns":fe.charCodeAt(0)===120&&fe.substr(0,6)==="xmlns:"?fe.substr(6):null,It!==null){if(oe=Ot(Ee),Ae=ur(It),lt=D[oe],!lt){if(It==="xmlns"||Ae in I&&I[Ae]!==oe)do lt="ns"+C++;while(typeof I[lt]<"u");else lt=It;D[oe]=lt}I[It]!==lt&&(bl||(I=Ff(I),bl=!0),I[It]=lt,It==="xmlns"&&(I[ur(lt)]=oe,Ye=lt),I[Ae]=oe),yn[fe]=Ee;continue}Qe.push(fe,Ee);continue}if(z=fe.indexOf(":"),z===-1){yn[fe]=Ee;continue}if(!(ye=I[fe.substring(0,z)])){T(as(fe.substring(0,z)));continue}fe=Ye===ye?fe.substr(z+1):ye+fe.substr(z),fe===os&&(z=Ee.indexOf(":"),z!==-1?(ye=Ee.substring(0,z),ye=I[ye]||ye,Ee=ye+Ee.substring(z)):Ee=Ye+":"+Ee),yn[fe]=Ee}if(g)for(he=0,mt=Qe.length;he<mt;he++){if(fe=Qe[he++],Ee=Qe[he],z=fe.indexOf(":"),z!==-1){if(!(ye=I[fe.substring(0,z)])){T(as(fe.substring(0,z)));continue}fe=Ye===ye?fe.substr(z+1):ye+fe.substr(z),fe===os&&(z=Ee.indexOf(":"),z!==-1?(ye=Ee.substring(0,z),ye=I[ye]||ye,Ee=ye+Ee.substring(z)):Ee=Ye+":"+Ee)}yn[fe]=Ee}return N=yn}function ee(){for(var oe=/(\r\n|\r|\n)/g,Ae=0,ye=0,Ye=0,Qe=$,he,be;U>=Ye&&(he=oe.exec(A),!(!he||(Qe=he[0].length+he.index,Qe>U)));)Ae+=1,Ye=Qe;return U==-1?(ye=Qe,be=A.substring($)):$===0?be=A.substring($,U):(ye=U-Ye,be=$==-1?A.substring(U):A.substring(U,$+1)),{data:be,line:Ae,column:ye}}for(h=ee,e&&(_=Object.create({},{name:ui(function(){return p}),originalName:ui(function(){return m}),attrs:ui(Z),ns:ui(function(){return I})}));$!==-1;){if(A.charCodeAt($)===60?U=$:U=A.indexOf("<",$),U===-1){if(M.length)return F("unexpected end of file");if($===0)return F("missing start tag");$<A.length&&A.substring($).trim()&&T(ss);return}if($!==U){if(M.length){if(t&&(t(A.substring($,U),Ot,h),b))return}else if(A.substring($,U).trim()&&(T(ss),b))return}if(ne=A.charCodeAt(U+1),ne===33){if(ce=A.charCodeAt(U+2),ce===91&&A.substr(U+3,6)==="CDATA["){if($=A.indexOf("]]>",U),$===-1)return F("unclosed cdata");if(o&&(o(A.substring(U+9,$),h),b))return;$+=3;continue}if(ce===45&&A.charCodeAt(U+3)===45){if($=A.indexOf("-->",U),$===-1)return F("unclosed comment");if(c&&(c(A.substring(U+4,$),Ot,h),b))return;$+=3;continue}}if(ne===63){if($=A.indexOf("?>",U),$===-1)return F("unclosed question");if(f&&(f(A.substring(U,$+2),h),b))return;$+=2;continue}for(te=U+1;;te++){if(qe=A.charCodeAt(te),isNaN(qe))return $=-1,F("unclosed tag");if(qe===34)ce=A.indexOf('"',te+1),te=ce!==-1?ce:te;else if(qe===39)ce=A.indexOf("'",te+1),te=ce!==-1?ce:te;else if(qe===62){$=te;break}}if(ne===33){if(d&&(d(A.substring(U,$+1),Ot,h),b))return;$+=1;continue}if(N={},ne===47){if(P=!1,O=!0,!M.length)return F("missing open tag");if(te=p=M.pop(),ce=U+2+te.length,A.substring(U+2,ce)!==te)return F("closing tag mismatch");for(;ce<$;ce++)if(ne=A.charCodeAt(ce),!(ne===32||ne>8&&ne<14))return F("close tag")}else{if(A.charCodeAt($-1)===47?(te=p=A.substring(U+1,$-1),P=!0,O=!0):(te=p=A.substring(U+1,$),P=!0,O=!1),!(ne>96&&ne<123||ne>64&&ne<91||ne===95||ne===58))return F("illegal first char nodeName");for(ce=1,Fe=te.length;ce<Fe;ce++)if(ne=te.charCodeAt(ce),!(ne>96&&ne<123||ne>64&&ne<91||ne>47&&ne<59||ne===45||ne===95||ne==46)){if(ne===32||ne<14&&ne>8){p=te.substring(0,ce),N=null;break}return F("invalid nodeName")}O||M.push(p)}if(x){if(R=I,P&&(O||S.push(R),N===null&&(g=te.indexOf("xmlns",ce)!==-1)&&(E=ce,v=te,Z(),g=!1)),m=p,ne=p.indexOf(":"),ne!==-1){if(y=I[p.substring(0,ne)],!y)return F("missing namespace on <"+m+">");p=p.substr(ne+1)}else y=I.xmlns;y&&(p=y+":"+p)}if(P&&(E=ce,v=te,i&&(e?i(_,Ot,O,h):i(p,Z,Ot,O,h),b)))return;if(O){if(r&&(r(e?_:p,Ot,P,h),b))return;x&&(P?I=R:I=S.pop())}$+=1}}}function cs(n){return n.xml&&n.xml.tagAlias==="lowerCase"}var Of={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},ci="xsi:type";function fs(n){return n.xml&&n.xml.serialize}function ds(n){return fs(n)===ci}function Uf(n){return fs(n)==="property"}function $f(n){return n.charAt(0).toUpperCase()+n.slice(1)}function ps(n,e){return cs(e)?n.prefix+":"+$f(n.localName):n.name}function Gf(n,e){var t=n.name,i=n.localName,r=e.xml&&e.xml.typePrefix;return r&&i.indexOf(r)===0?n.prefix+":"+i.slice(r.length):t}function qf(n,e){var t=Me(n),i=e.getPackage(t.prefix);return Gf(t,i)}function wt(n){return new Error(n)}function pt(n){return n.$descriptor}function Hf(n){Y(this,n),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw wt("expected element");var t=this.elementsById,i=pt(e),r=i.idProperty,o;if(r&&(o=e.get(r.name),o)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(o))throw new Error("illegal ID <"+o+">");if(t[o])throw wt("duplicate ID <"+o+">");t[o]=e}},this.addWarning=function(e){this.warnings.push(e)}}function kn(){}kn.prototype.handleEnd=function(){},kn.prototype.handleText=function(){},kn.prototype.handleNode=function(){};function cr(){}cr.prototype=Object.create(kn.prototype),cr.prototype.handleNode=function(){return this};function tn(){}tn.prototype=Object.create(kn.prototype),tn.prototype.handleText=function(n){this.body=(this.body||"")+n};function Nn(n,e){this.property=n,this.context=e}Nn.prototype=Object.create(tn.prototype),Nn.prototype.handleNode=function(n){if(this.element)throw wt("expected no sub nodes");return this.element=this.createReference(n),this},Nn.prototype.handleEnd=function(){this.element.id=this.body},Nn.prototype.createReference=function(n){return{property:this.property.ns.name,id:""}};function fr(n,e){this.element=e,this.propertyDesc=n}fr.prototype=Object.create(tn.prototype),fr.prototype.handleEnd=function(){var n=this.body||"",e=this.element,t=this.propertyDesc;n=sr(t.type,n),t.isMany?e.get(t.name).push(n):e.set(t.name,n)};function fi(){}fi.prototype=Object.create(tn.prototype),fi.prototype.handleNode=function(n){var e=this,t=this.element;return t?e=this.handleChild(n):(t=this.element=this.createElement(n),this.context.addElement(t)),e};function Ie(n,e,t){this.model=n,this.type=n.getType(e),this.context=t}Ie.prototype=Object.create(fi.prototype),Ie.prototype.addReference=function(n){this.context.addReference(n)},Ie.prototype.handleText=function(n){var e=this.element,t=pt(e),i=t.bodyProperty;if(!i)throw wt("unexpected body text <"+n+">");tn.prototype.handleText.call(this,n)},Ie.prototype.handleEnd=function(){var n=this.body,e=this.element,t=pt(e),i=t.bodyProperty;i&&n!==void 0&&(n=sr(i.type,n),e.set(i.name,n))},Ie.prototype.createElement=function(n){var e=n.attributes,t=this.type,i=pt(t),r=this.context,o=new t({}),l=this.model,u;return q(e,function(c,f){var d=i.propertiesByName[f],h;d&&d.isReference?d.isMany?(h=c.split(" "),q(h,function(g){r.addReference({element:o,property:d.ns.name,id:g})})):r.addReference({element:o,property:d.ns.name,id:c}):(d?c=sr(d.type,c):f!=="xmlns"&&(u=Me(f,i.ns.prefix),l.getPackage(u.prefix)&&r.addWarning({message:"unknown attribute <"+f+">",element:o,property:f,value:c})),o.set(f,c))}),o},Ie.prototype.getPropertyForNode=function(n){var e=n.name,t=Me(e),i=this.type,r=this.model,o=pt(i),l=t.name,u=o.propertiesByName[l],c,f;if(u&&!u.isAttr)return ds(u)&&(c=n.attributes[ci],c)?(c=qf(c,r),f=r.getType(c),Y({},u,{effectiveType:pt(f).name})):u;var d=r.getPackage(t.prefix);if(d){if(c=ps(t,d),f=r.getType(c),u=Je(o.properties,function(h){return!h.isVirtual&&!h.isReference&&!h.isAttribute&&f.hasType(h.type)}),u)return Y({},u,{effectiveType:pt(f).name})}else if(u=Je(o.properties,function(h){return!h.isReference&&!h.isAttribute&&h.type==="Element"}),u)return u;throw wt("unrecognized element <"+t.name+">")},Ie.prototype.toString=function(){return"ElementDescriptor["+pt(this.type).name+"]"},Ie.prototype.valueHandler=function(n,e){return new fr(n,e)},Ie.prototype.referenceHandler=function(n){return new Nn(n,this.context)},Ie.prototype.handler=function(n){return n==="Element"?new nn(this.model,n,this.context):new Ie(this.model,n,this.context)},Ie.prototype.handleChild=function(n){var e,t,i,r;if(e=this.getPropertyForNode(n),i=this.element,t=e.effectiveType||e.type,ts(t))return this.valueHandler(e,i);e.isReference?r=this.referenceHandler(e).handleNode(n):r=this.handler(t).handleNode(n);var o=r.element;return o!==void 0&&(e.isMany?i.get(e.name).push(o):i.set(e.name,o),e.isReference?(Y(o,{element:i}),this.context.addReference(o)):o.$parent=i),r};function dr(n,e,t){Ie.call(this,n,e,t)}dr.prototype=Object.create(Ie.prototype),dr.prototype.createElement=function(n){var e=n.name,t=Me(e),i=this.model,r=this.type,o=i.getPackage(t.prefix),l=o&&ps(t,o)||e;if(!r.hasType(l))throw wt("unexpected element <"+n.originalName+">");return Ie.prototype.createElement.call(this,n)};function nn(n,e,t){this.model=n,this.context=t}nn.prototype=Object.create(fi.prototype),nn.prototype.createElement=function(n){var e=n.name,t=Me(e),i=t.prefix,r=n.ns[i+"$uri"],o=n.attributes;return this.model.createAny(e,r,o)},nn.prototype.handleChild=function(n){var e=new nn(this.model,"Element",this.context).handleNode(n),t=this.element,i=e.element,r;return i!==void 0&&(r=t.$children=t.$children||[],r.push(i),i.$parent=t),e},nn.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function pr(n){n instanceof He&&(n={model:n}),Y(this,{lax:!1},n)}pr.prototype.fromXML=function(n,e,t){var i=e.rootHandler;e instanceof Ie?(i=e,e={}):typeof e=="string"?(i=this.handler(e),e={}):typeof i=="string"&&(i=this.handler(i));var r=this.model,o=this.lax,l=new Hf(Y({},e,{rootHandler:i})),u=new us({proxy:!0}),c=Wf();i.context=l,c.push(i);function f(S,I,R){var M=I(),C=M.line,P=M.column,O=M.data;O.charAt(0)==="<"&&O.indexOf(" ")!==-1&&(O=O.slice(0,O.indexOf(" "))+">");var U="unparsable content "+(O?O+" ":"")+`detected
24
- line: `+C+`
25
- column: `+P+`
26
- nested error: `+S.message;if(R)return l.addWarning({message:U,error:S}),!0;throw wt(U)}function d(S,I){return f(S,I,!0)}function h(){var S=l.elementsById,I=l.references,R,M;for(R=0;M=I[R];R++){var C=M.element,P=S[M.id],O=pt(C).propertiesByName[M.property];if(P||l.addWarning({message:"unresolved reference <"+M.id+">",element:M.element,property:M.property,value:M.id}),O.isMany){var U=C.get(O.name),$=U.indexOf(M);$===-1&&($=U.length),P?U[$]=P:U.splice($,1)}else C.set(O.name,P)}}function g(){c.pop().handleEnd()}var x=/^<\?xml /i,w=/ encoding="([^"]+)"/i,b=/^utf-8$/i;function D(S){if(x.test(S)){var I=w.exec(S),R=I&&I[1];!R||b.test(R)||l.addWarning({message:"unsupported document encoding <"+R+">, falling back to UTF-8"})}}function F(S,I){var R=c.peek();try{c.push(R.handleNode(S))}catch(M){f(M,I,o)&&c.push(new cr)}}function T(S,I){try{c.peek().handleText(S)}catch(R){d(R,I)}}function k(S,I){S.trim()&&T(S,I)}var A=r.getPackages().reduce(function(S,I){return S[I.uri]=I.prefix,S},{"http://www.w3.org/XML/1998/namespace":"xml"});return u.ns(A).on("openTag",function(S,I,R,M){var C=S.attrs||{},P=Object.keys(C).reduce(function(U,$){var te=I(C[$]);return U[$]=te,U},{}),O={name:S.name,originalName:S.originalName,attributes:P,ns:S.ns};F(O,M)}).on("question",D).on("closeTag",g).on("cdata",T).on("text",function(S,I,R){k(I(S),R)}).on("error",f).on("warn",d),new Promise(function(S,I){var R;try{u.parse(n),h()}catch(U){R=U}var M=i.element;!R&&!M&&(R=wt("failed to parse document as <"+i.type.$descriptor.name+">"));var C=l.warnings,P=l.references,O=l.elementsById;return R?(R.warnings=C,I(R)):S({rootElement:M,elementsById:O,references:P,warnings:C})})},pr.prototype.handler=function(n){return new dr(this.model,n)};function Wf(){var n=[];return Object.defineProperty(n,"peek",{value:function(){return this[this.length-1]}}),n}var zf=`<?xml version="1.0" encoding="UTF-8"?>
27
- `,Yf=/<|>|'|"|&|\n\r|\n/g,hs=/<|>|&/g;function Kf(n){var e={},t={},i={},r=[],o=[];this.byUri=function(l){return t[l]||n&&n.byUri(l)},this.add=function(l,u){t[l.uri]=l,u?r.push(l):o.push(l),this.mapPrefix(l.prefix,l.uri)},this.uriByPrefix=function(l){return e[l||"xmlns"]},this.mapPrefix=function(l,u){e[l||"xmlns"]=u},this.getNSKey=function(l){return l.prefix!==void 0?l.uri+"|"+l.prefix:l.uri},this.logUsed=function(l){var u=l.uri,c=this.getNSKey(l);i[c]=this.byUri(u),n&&n.logUsed(l)},this.getUsed=function(l){function u(d){var h=c.getNSKey(d);return i[h]}var c=this,f=[].concat(r,o);return f.filter(u)}}function Jf(n){return n.charAt(0).toLowerCase()+n.slice(1)}function Zf(n,e){return cs(e)?Jf(n):n}function ms(n,e){n.super_=e,n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}function gs(n){return tt(n)?n:(n.prefix?n.prefix+":":"")+n.localName}function Xf(n){return n.getUsed().filter(function(e){return e.prefix!=="xml"}).map(function(e){var t="xmlns"+(e.prefix?":"+e.prefix:"");return{name:t,value:e.uri}})}function Qf(n,e){return e.isGeneric?Y({localName:e.ns.localName},n):Y({localName:Zf(e.ns.localName,e.$pkg)},n)}function jf(n,e){return Y({localName:e.ns.localName},n)}function ed(n){var e=n.$descriptor;return zt(e.properties,function(t){var i=t.name;if(t.isVirtual||!Gn(n,i))return!1;var r=n[i];return r===t.default||r===null?!1:t.isMany?r.length:!0})}var td={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},nd={"<":"lt",">":"gt","&":"amp"};function ys(n,e,t){return n=tt(n)?n:""+n,n.replace(e,function(i){return"&"+t[i]+";"})}function id(n){return ys(n,Yf,td)}function rd(n){return ys(n,hs,nd)}function od(n){return zt(n,function(e){return e.isAttr})}function sd(n){return zt(n,function(e){return!e.isAttr})}function hr(n){this.tagName=n}hr.prototype.build=function(n){return this.element=n,this},hr.prototype.serializeTo=function(n){n.appendIndent().append("<"+this.tagName+">"+this.element.id+"</"+this.tagName+">").appendNewLine()};function Ut(){}Ut.prototype.serializeValue=Ut.prototype.serializeTo=function(n){n.append(this.escape?rd(this.value):this.value)},Ut.prototype.build=function(n,e){return this.value=e,n.type==="String"&&e.search(hs)!==-1&&(this.escape=!0),this};function mr(n){this.tagName=n}ms(mr,Ut),mr.prototype.serializeTo=function(n){n.appendIndent().append("<"+this.tagName+">"),this.serializeValue(n),n.append("</"+this.tagName+">").appendNewLine()};function me(n,e){this.body=[],this.attrs=[],this.parent=n,this.propertyDescriptor=e}me.prototype.build=function(n){this.element=n;var e=n.$descriptor,t=this.propertyDescriptor,i,r,o=e.isGeneric;return o?i=this.parseGeneric(n):i=this.parseNsAttributes(n),t?this.ns=this.nsPropertyTagName(t):this.ns=this.nsTagName(e),this.tagName=this.addTagName(this.ns),o||(r=ed(n),this.parseAttributes(od(r)),this.parseContainments(sd(r))),this.parseGenericAttributes(n,i),this},me.prototype.nsTagName=function(n){var e=this.logNamespaceUsed(n.ns);return Qf(e,n)},me.prototype.nsPropertyTagName=function(n){var e=this.logNamespaceUsed(n.ns);return jf(e,n)},me.prototype.isLocalNs=function(n){return n.uri===this.ns.uri},me.prototype.nsAttributeName=function(n){var e;if(tt(n)?e=Me(n):e=n.ns,n.inherited)return{localName:e.localName};var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),this.isLocalNs(t)?{localName:e.localName}:Y({localName:e.localName},t)},me.prototype.parseGeneric=function(n){var e=this,t=this.body,i=[];return q(n,function(r,o){var l;o==="$body"?t.push(new Ut().build({type:"String"},r)):o==="$children"?q(r,function(u){t.push(new me(e).build(u))}):o.indexOf("$")!==0&&(l=e.parseNsAttribute(n,o,r),l&&i.push({name:o,value:r}))}),i},me.prototype.parseNsAttribute=function(n,e,t){var i=n.$model,r=Me(e),o;if(r.prefix==="xmlns"&&(o={prefix:r.localName,uri:t}),!r.prefix&&r.localName==="xmlns"&&(o={uri:t}),!o)return{name:e,value:t};if(i&&i.getPackage(t))this.logNamespace(o,!0,!0);else{var l=this.logNamespaceUsed(o,!0);this.getNamespaces().logUsed(l)}},me.prototype.parseNsAttributes=function(n,e){var t=this,i=n.$attrs,r=[];return q(i,function(o,l){var u=t.parseNsAttribute(n,l,o);u&&r.push(u)}),r},me.prototype.parseGenericAttributes=function(n,e){var t=this;q(e,function(i){if(i.name!==ci)try{t.addAttribute(t.nsAttributeName(i.name),i.value)}catch(r){console.warn("missing namespace information for ",i.name,"=",i.value,"on",n,r)}})},me.prototype.parseContainments=function(n){var e=this,t=this.body,i=this.element;q(n,function(r){var o=i.get(r.name),l=r.isReference,u=r.isMany;if(u||(o=[o]),r.isBody)t.push(new Ut().build(r,o[0]));else if(ts(r.type))q(o,function(d){t.push(new mr(e.addTagName(e.nsPropertyTagName(r))).build(r,d))});else if(l)q(o,function(d){t.push(new hr(e.addTagName(e.nsPropertyTagName(r))).build(d))});else{var c=ds(r),f=Uf(r);q(o,function(d){var h;c?h=new di(e,r):f?h=new me(e,r):h=new me(e),t.push(h.build(d))})}})},me.prototype.getNamespaces=function(n){var e=this.namespaces,t=this.parent,i;return e||(i=t&&t.getNamespaces(),n||!i?this.namespaces=e=new Kf(i):e=i),e},me.prototype.logNamespace=function(n,e,t){var i=this.getNamespaces(t),r=n.uri,o=n.prefix,l=i.byUri(r);return(!l||t)&&i.add(n,e),i.mapPrefix(o,r),n},me.prototype.logNamespaceUsed=function(n,e){var t=this.element,i=t.$model,r=this.getNamespaces(e),o=n.prefix,l=n.uri,u,c,f;if(!o&&!l)return{localName:n.localName};if(f=Of[o]||i&&(i.getPackage(o)||{}).uri,l=l||f||r.uriByPrefix(o),!l)throw new Error("no namespace uri given for prefix <"+o+">");if(n=r.byUri(l),!n){for(u=o,c=1;r.uriByPrefix(u);)u=o+"_"+c++;n=this.logNamespace({prefix:u,uri:l},f===l)}return o&&r.mapPrefix(o,l),n},me.prototype.parseAttributes=function(n){var e=this,t=this.element;q(n,function(i){var r=t.get(i.name);if(i.isReference)if(!i.isMany)r=r.id;else{var o=[];q(r,function(l){o.push(l.id)}),r=o.join(" ")}e.addAttribute(e.nsAttributeName(i),r)})},me.prototype.addTagName=function(n){var e=this.logNamespaceUsed(n);return this.getNamespaces().logUsed(e),gs(n)},me.prototype.addAttribute=function(n,e){var t=this.attrs;tt(e)&&(e=id(e));var i=Dl(t,function(o){return o.name.localName===n.localName&&o.name.uri===n.uri&&o.name.prefix===n.prefix}),r={name:n,value:e};i!==-1?t.splice(i,1,r):t.push(r)},me.prototype.serializeAttributes=function(n){var e=this.attrs,t=this.namespaces;t&&(e=Xf(t).concat(e)),q(e,function(i){n.append(" ").append(gs(i.name)).append('="').append(i.value).append('"')})},me.prototype.serializeTo=function(n){var e=this.body[0],t=e&&e.constructor!==Ut;n.appendIndent().append("<"+this.tagName),this.serializeAttributes(n),n.append(e?">":" />"),e&&(t&&n.appendNewLine().indent(),q(this.body,function(i){i.serializeTo(n)}),t&&n.unindent().appendIndent(),n.append("</"+this.tagName+">")),n.appendNewLine()};function di(n,e){me.call(this,n,e)}ms(di,me),di.prototype.parseNsAttributes=function(n){var e=me.prototype.parseNsAttributes.call(this,n),t=n.$descriptor;if(t.name===this.propertyDescriptor.type)return e;var i=this.typeNs=this.nsTagName(t);this.getNamespaces().logUsed(this.typeNs);var r=n.$model.getPackage(i.uri),o=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(ci),(i.prefix?i.prefix+":":"")+o+t.ns.localName),e},di.prototype.isLocalNs=function(n){return n.uri===(this.typeNs||this.ns).uri};function ad(){this.value="",this.write=function(n){this.value+=n}}function ld(n,e){var t=[""];this.append=function(i){return n.write(i),this},this.appendNewLine=function(){return e&&n.write(`
28
- `),this},this.appendIndent=function(){return e&&n.write(t.join(" ")),this},this.indent=function(){return t.push(""),this},this.unindent=function(){return t.pop(),this}}function ud(n){n=Y({format:!1,preamble:!0},n||{});function e(t,i){var r=i||new ad,o=new ld(r,n.format);if(n.preamble&&o.append(zf),new me().build(t).serializeTo(o),!i)return r.value}return{toXML:e}}function pi(n,e){He.call(this,n,e)}pi.prototype=Object.create(He.prototype),pi.prototype.fromXML=function(n,e,t){tt(e)||(t=e,e="bpmn:Definitions");var i=new pr(Y({model:this,lax:!0},t)),r=i.handler(e);return i.fromXML(n,r)},pi.prototype.toXML=function(n,e){var t=new ud(e);return new Promise(function(i,r){try{var o=t.toXML(n);return i({xml:o})}catch(l){return r(l)}})};var cd="BPMN20",fd="http://www.omg.org/spec/BPMN/20100524/MODEL",dd="bpmn",pd=[],hd=[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],md=[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],gd={tagAlias:"lowerCase",typePrefix:"t"},yd={name:cd,uri:fd,prefix:dd,associations:pd,types:hd,enumerations:md,xml:gd},vd="BPMNDI",_d="http://www.omg.org/spec/BPMN/20100524/DI",xd="bpmndi",Cd=[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],Ed=[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],Td=[],wd={name:vd,uri:_d,prefix:xd,types:Cd,enumerations:Ed,associations:Td},Sd="DC",Ad="http://www.omg.org/spec/DD/20100524/DC",bd="dc",Rd=[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],Md=[],Id={name:Sd,uri:Ad,prefix:bd,types:Rd,associations:Md},Pd="DI",kd="http://www.omg.org/spec/DD/20100524/DI",Nd="di",Dd=[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],Ld=[],Fd={tagAlias:"lowerCase"},Vd={name:Pd,uri:kd,prefix:Nd,types:Dd,associations:Ld,xml:Fd},Bd="bpmn.io colors for BPMN",Od="http://bpmn.io/schema/bpmn/biocolor/1.0",Ud="bioc",$d=[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],Gd=[],qd=[],Hd={name:Bd,uri:Od,prefix:Ud,types:$d,enumerations:Gd,associations:qd},Wd="BPMN in Color",zd="http://www.omg.org/spec/BPMN/non-normative/color/1.0",Yd="color",Kd=[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],Jd=[],Zd=[],Xd={name:Wd,uri:zd,prefix:Yd,types:Kd,enumerations:Jd,associations:Zd},Qd={bpmn:yd,bpmndi:wd,dc:Id,di:Vd,bioc:Hd,color:Xd};function jd(n,e){var t=Y({},Qd,n);return new pi(t,e)}var ep="Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472";function tp(n){Gn(n,"di")||Object.defineProperty(n,"di",{enumerable:!1,get:function(){throw new Error(ep)}})}function ke(n,e){return n.$instanceOf(e)}function np(n){return Je(n.rootElements,function(e){return ke(e,"bpmn:Process")||ke(e,"bpmn:Collaboration")})}function ip(n,e){var t={},i=[],r={};function o(v,E){return function(N){v(N,E)}}function l(v){t[v.id]=v}function u(v){return t[v.id]}function c(v,E){var N=v.gfx;if(N)throw new Error(e("already rendered {element}",{element:Re(v)}));return n.element(v,r[v.id],E)}function f(v,E){return n.root(v,r[v.id],E)}function d(v,E){try{var N=r[v.id]&&c(v,E);return l(v),N}catch(Z){h(Z.message,{element:v,error:Z}),console.error(e("failed to import {element}",{element:Re(v)})),console.error(Z)}}function h(v,E){n.error(v,E)}var g=this.registerDi=function(E){var N=E.bpmnElement;N?r[N.id]?h(e("multiple DI elements defined for {element}",{element:Re(N)}),{element:N}):(r[N.id]=E,tp(N)):h(e("no bpmnElement referenced in {element}",{element:Re(E)}),{element:E})};function x(v){w(v.plane)}function w(v){g(v),q(v.planeElement,b)}function b(v){g(v)}this.handleDefinitions=function(E,N){var Z=E.diagrams;if(N&&Z.indexOf(N)===-1)throw new Error(e("diagram not part of bpmn:Definitions"));if(!N&&Z&&Z.length&&(N=Z[0]),!N)throw new Error(e("no diagram to display"));r={},x(N);var ee=N.plane;if(!ee)throw new Error(e("no plane for {element}",{element:Re(N)}));var oe=ee.bpmnElement;if(!oe)if(oe=np(E),oe)h(e("correcting missing bpmnElement on {plane} to {rootElement}",{plane:Re(ee),rootElement:Re(oe)})),ee.bpmnElement=oe,g(ee);else throw new Error(e("no process or collaboration to display"));var Ae=f(oe,ee);if(ke(oe,"bpmn:Process")||ke(oe,"bpmn:SubProcess"))F(oe,Ae);else if(ke(oe,"bpmn:Collaboration"))m(oe,Ae),T(E.rootElements,Ae);else throw new Error(e("unsupported bpmnElement for {plane}: {rootElement}",{plane:Re(ee),rootElement:Re(oe)}));D(i)};var D=this.handleDeferred=function(){for(var E;i.length;)E=i.shift(),E()};function F(v,E){qe(v,E),P(v.ioSpecification,E),C(v.artifacts,E),l(v)}function T(v,E){var N=zt(v,function(Z){return!u(Z)&&ke(Z,"bpmn:Process")&&Z.laneSets});N.forEach(o(F,E))}function k(v,E){d(v,E)}function A(v,E){q(v,o(k,E))}function S(v,E){d(v,E)}function I(v,E){d(v,E)}function R(v,E){d(v,E)}function M(v,E){d(v,E)}function C(v,E){q(v,function(N){ke(N,"bpmn:Association")?i.push(function(){M(N,E)}):M(N,E)})}function P(v,E){v&&(q(v.dataInputs,o(I,E)),q(v.dataOutputs,o(R,E)))}var O=this.handleSubProcess=function(E,N){qe(E,N),C(E.artifacts,N)};function U(v,E){var N=d(v,E);ke(v,"bpmn:SubProcess")&&O(v,N||E),ke(v,"bpmn:Activity")&&P(v.ioSpecification,E),i.push(function(){q(v.dataInputAssociations,o(S,E)),q(v.dataOutputAssociations,o(S,E))})}function $(v,E){d(v,E)}function te(v,E){d(v,E)}function Fe(v,E){i.push(function(){var N=d(v,E);v.childLaneSet&&ce(v.childLaneSet,N||E),_(v)})}function ce(v,E){q(v.lanes,o(Fe,E))}function ne(v,E){q(v,o(ce,E))}function qe(v,E){y(v.flowElements,E),v.laneSets&&ne(v.laneSets,E)}function y(v,E){q(v,function(N){ke(N,"bpmn:SequenceFlow")?i.push(function(){$(N,E)}):ke(N,"bpmn:BoundaryEvent")?i.unshift(function(){U(N,E)}):ke(N,"bpmn:FlowNode")?U(N,E):ke(N,"bpmn:DataObject")||(ke(N,"bpmn:DataStoreReference")||ke(N,"bpmn:DataObjectReference")?te(N,E):h(e("unrecognized flowElement {element} in context {context}",{element:Re(N),context:E?Re(E.businessObject):"null"}),{element:N,context:E}))})}function p(v,E){var N=d(v,E),Z=v.processRef;Z&&F(Z,N||E)}function m(v,E){q(v.participants,o(p,E)),C(v.artifacts,E),i.push(function(){A(v.messageFlows,E)})}function _(v){q(v.flowNodeRef,function(E){var N=E.get("lanes");N&&N.push(v)})}}function rp(n,e,t){var i,r,o,l,u,c=[];function f(d,h){var g={root:function(D,F){return i.add(D,F)},element:function(D,F,T){return i.add(D,F,T)},error:function(D,F){c.push({message:D,context:F})}},x=new ip(g,o);h=h||d.diagrams&&d.diagrams[0];var w=op(d,h);if(!w)throw new Error(o("no diagram to display"));q(w,function(D){x.handleDefinitions(d,D)});var b=h.plane.bpmnElement.id;l.setRootElement(l.findRoot(b+"_plane")||l.findRoot(b))}return new Promise(function(d,h){try{return i=n.get("bpmnImporter"),r=n.get("eventBus"),o=n.get("translate"),l=n.get("canvas"),r.fire("import.render.start",{definitions:e}),f(e,t),r.fire("import.render.complete",{error:u,warnings:c}),d({warnings:c})}catch(g){return g.warnings=c,h(g)}})}function op(n,e){if(e){var t=e.plane.bpmnElement,i=t;!K(t,"bpmn:Process")&&!K(t,"bpmn:Collaboration")&&(i=sp(t));var r;K(i,"bpmn:Collaboration")?r=i:r=Je(n.rootElements,function(f){if(K(f,"bpmn:Collaboration"))return Je(f.participants,function(d){return d.processRef===i})});var o=[i];r&&(o=Ll(r.participants,function(f){return f.processRef}),o.push(r));var l=vs(o),u=[e],c=[t];return q(n.diagrams,function(f){var d=f.plane.bpmnElement;l.indexOf(d)!==-1&&c.indexOf(d)===-1&&(u.push(f),c.push(d))}),u}}function vs(n){var e=[];return q(n,function(t){t&&(e.push(t),e=e.concat(vs(t.flowElements)))}),e}function sp(n){for(var e=n;e;){if(K(e,"bpmn:Process"))return e;e=e.$parent}}var ap='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>',_s=ap,xs={verticalAlign:"middle"},Cs={color:"#404040"},lp={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},up={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},cp={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},fp='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+_s+'</a><span>Web-based tooling for BPMN, DMN and forms powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>',rt;function dp(){rt=it(fp),Ve(rt,lp),Ve(Ze("svg",rt),xs),Ve(Ze(".backdrop",rt),up),Ve(Ze(".notice",rt),cp),Ve(Ze(".link",rt),Cs,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function pp(){rt||(dp(),Yi.bind(rt,".backdrop","click",function(n){document.body.removeChild(rt)})),document.body.appendChild(rt)}function xe(n){n=Y({},mp,n),this._moddle=this._createModdle(n),this._container=this._createContainer(n),yp(this._container),this._init(this._container,this._moddle,n)}et(xe,jt),xe.prototype.importXML=async function(e,t){const i=this;function r(l){return i.get("eventBus").createEvent(l)}let o=[];try{e=this._emit("import.parse.start",{xml:e})||e;let l;try{l=await this._moddle.fromXML(e,"bpmn:Definitions")}catch(g){throw this._emit("import.parse.complete",{error:g}),g}let u=l.rootElement;const c=l.references,f=l.warnings,d=l.elementsById;o=o.concat(f),u=this._emit("import.parse.complete",r({error:null,definitions:u,elementsById:d,references:c,warnings:o}))||u;const h=await this.importDefinitions(u,t);return o=o.concat(h.warnings),this._emit("import.done",{error:null,warnings:o}),{warnings:o}}catch(l){let u=l;throw o=o.concat(u.warnings||[]),hi(u,o),u=hp(u),this._emit("import.done",{error:u,warnings:u.warnings}),u}},xe.prototype.importDefinitions=async function(e,t){return this._setDefinitions(e),{warnings:(await this.open(t)).warnings}},xe.prototype.open=async function(e){const t=this._definitions;let i=e;if(!t){const o=new Error("no XML imported");throw hi(o,[]),o}if(typeof e=="string"&&(i=gp(t,e),!i)){const o=new Error("BPMNDiagram <"+e+"> not found");throw hi(o,[]),o}try{this.clear()}catch(o){throw hi(o,[]),o}const{warnings:r}=await rp(this,t,i);return{warnings:r}},xe.prototype.saveXML=async function(e){e=e||{};let t=this._definitions,i,r;try{if(!t)throw new Error("no definitions loaded");t=this._emit("saveXML.start",{definitions:t})||t,r=(await this._moddle.toXML(t,e)).xml,r=this._emit("saveXML.serialized",{xml:r})||r}catch(l){i=l}const o=i?{error:i}:{xml:r};if(this._emit("saveXML.done",o),i)throw i;return o},xe.prototype.saveSVG=async function(){this._emit("saveSVG.start");let e,t;try{const i=this.get("canvas"),r=i.getActiveLayer(),o=Ze("defs",i._svg),l=ro(r),u=o?"<defs>"+ro(o)+"</defs>":"",c=r.getBBox();e=`<?xml version="1.0" encoding="utf-8"?>
29
- <!-- created with bpmn-js / http://bpmn.io -->
30
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
31
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+c.width+'" height="'+c.height+'" viewBox="'+c.x+" "+c.y+" "+c.width+" "+c.height+'" version="1.1">'+u+l+"</svg>"}catch(i){t=i}if(this._emit("saveSVG.done",{error:t,svg:e}),t)throw t;return{svg:e}},xe.prototype._setDefinitions=function(n){this._definitions=n},xe.prototype.getModules=function(){return this._modules},xe.prototype.clear=function(){this.getDefinitions()&&jt.prototype.clear.call(this)},xe.prototype.destroy=function(){jt.prototype.destroy.call(this),Zn(this._container)},xe.prototype.on=function(n,e,t,i){return this.get("eventBus").on(n,e,t,i)},xe.prototype.off=function(n,e){this.get("eventBus").off(n,e)},xe.prototype.attachTo=function(n){if(!n)throw new Error("parentNode required");this.detach(),n.get&&n.constructor.prototype.jquery&&(n=n.get(0)),typeof n=="string"&&(n=Ze(n)),n.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},xe.prototype.getDefinitions=function(){return this._definitions},xe.prototype.detach=function(){const n=this._container,e=n.parentNode;e&&(this._emit("detach",{}),e.removeChild(n))},xe.prototype._init=function(n,e,t){const i=t.modules||this.getModules(t),r=t.additionalModules||[],o=[{bpmnjs:["value",this],moddle:["value",e]}],l=[].concat(o,i,r),u=Y($l(t,["additionalModules"]),{canvas:Y({},t.canvas,{container:n}),modules:l});jt.call(this,u),t&&t.container&&this.attachTo(t.container)},xe.prototype._emit=function(n,e){return this.get("eventBus").fire(n,e)},xe.prototype._createContainer=function(n){const e=it('<div class="bjs-container"></div>');return Ve(e,{width:Es(n.width),height:Es(n.height),position:n.position}),e},xe.prototype._createModdle=function(n){const e=Y({},this._moddleExtensions,n.moddleExtensions);return new jd(e)},xe.prototype._modules=[];function hi(n,e){return n.warnings=e,n}function hp(n){const t=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(n.message);return t&&(n.message="unparsable content <"+t[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+t[2]),n}const mp={width:"100%",height:"100%",position:"relative"};function Es(n){return n+(gt(n)?"px":"")}function gp(n,e){return e&&Je(n.diagrams,function(t){return t.id===e})||null}function yp(n){const t='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+_s+"</a>",i=it(t);Ve(Ze("svg",i),xs),Ve(i,Cs,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),n.appendChild(i),zi.bind(i,"click",function(r){pp(),r.preventDefault()})}function mi(n){xe.call(this,n)}et(mi,xe),mi.prototype._modules=[Cc,go,Nc,Mo,Qc],mi.prototype._moddleExtensions={};/**
32
- * @license lucide-react v0.460.0 - ISC
22
+ <%s key={someKey} {...props} />`,Me,Xt,ha,Xt),qe[Xt+Me]=!0)}if(Xt=null,Ae!==void 0&&(a(Ae),Xt=""+Ae),C(ve)&&(a(ve.key),Xt=""+ve.key),"key"in ve){Ae={};for(var Yl in ve)Yl!=="key"&&(Ae[Yl]=ve[Yl])}else Ae=ve;return Xt&&E(Ae,typeof ee=="function"?ee.displayName||ee.name||"Unknown":ee),A(ee,Xt,Ae,f(),rn,da)}function N(ee){z(ee)?ee._store&&(ee._store.validated=1):typeof ee=="object"&&ee!==null&&ee.$$typeof===De&&(ee._payload.status==="fulfilled"?z(ee._payload.value)&&ee._payload.value._store&&(ee._payload.value._store.validated=1):ee._store&&(ee._store.validated=1))}function z(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===F}var Z=Mn,F=Symbol.for("react.transitional.element"),ie=Symbol.for("react.portal"),se=Symbol.for("react.fragment"),fe=Symbol.for("react.strict_mode"),de=Symbol.for("react.profiler"),me=Symbol.for("react.consumer"),Te=Symbol.for("react.context"),Re=Symbol.for("react.forward_ref"),Oe=Symbol.for("react.suspense"),Be=Symbol.for("react.suspense_list"),Ne=Symbol.for("react.memo"),De=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),ht=Symbol.for("react.client.reference"),tt=Z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Pe=Object.prototype.hasOwnProperty,Bt=Array.isArray,sn=console.createTask?console.createTask:function(){return null};Z={react_stack_bottom_frame:function(ee){return ee()}};var Y,le={},oe=Z.react_stack_bottom_frame.bind(Z,y)(),we=sn(r(y)),qe={};tp.Fragment=se,tp.jsx=function(ee,ve,Ae){var Me=1e4>tt.recentlyCreatedOwnerStacks++;return D(ee,ve,Ae,!1,Me?Error("react-stack-top-frame"):oe,Me?sn(r(ee)):we)},tp.jsxs=function(ee,ve,Ae){var Me=1e4>tt.recentlyCreatedOwnerStacks++;return D(ee,ve,Ae,!0,Me?Error("react-stack-top-frame"):oe,Me?sn(r(ee)):we)}})()),tp}var aE;function Nb(){return aE||(aE=1,process.env.NODE_ENV==="production"?fv.exports=xb():fv.exports=Ub()),fv.exports}var Ie=Nb(),dv={exports:{}},np={},hv={exports:{}},nT={};/**
23
+ * @license React
24
+ * scheduler.production.js
33
25
  *
34
- * This source code is licensed under the ISC license.
35
- * See the LICENSE file in the root directory of this source tree.
36
- */const vp=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ts=(...n)=>n.filter((e,t,i)=>!!e&&e.trim()!==""&&i.indexOf(e)===t).join(" ").trim();/**
37
- * @license lucide-react v0.460.0 - ISC
26
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
27
  *
39
- * This source code is licensed under the ISC license.
40
- * See the LICENSE file in the root directory of this source tree.
41
- */var _p={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
42
- * @license lucide-react v0.460.0 - ISC
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */var iE;function zb(){return iE||(iE=1,(function(c){function l(Y,le){var oe=Y.length;Y.push(le);e:for(;0<oe;){var we=oe-1>>>1,qe=Y[we];if(0<f(qe,le))Y[we]=le,Y[oe]=qe,oe=we;else break e}}function a(Y){return Y.length===0?null:Y[0]}function r(Y){if(Y.length===0)return null;var le=Y[0],oe=Y.pop();if(oe!==le){Y[0]=oe;e:for(var we=0,qe=Y.length,ee=qe>>>1;we<ee;){var ve=2*(we+1)-1,Ae=Y[ve],Me=ve+1,rn=Y[Me];if(0>f(Ae,oe))Me<qe&&0>f(rn,Ae)?(Y[we]=rn,Y[Me]=oe,we=Me):(Y[we]=Ae,Y[ve]=oe,we=ve);else if(Me<qe&&0>f(rn,oe))Y[we]=rn,Y[Me]=oe,we=Me;else break e}}return le}function f(Y,le){var oe=Y.sortIndex-le.sortIndex;return oe!==0?oe:Y.id-le.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var y=performance;c.unstable_now=function(){return y.now()}}else{var C=Date,E=C.now();c.unstable_now=function(){return C.now()-E}}var b=[],A=[],D=1,N=null,z=3,Z=!1,F=!1,ie=!1,se=!1,fe=typeof setTimeout=="function"?setTimeout:null,de=typeof clearTimeout=="function"?clearTimeout:null,me=typeof setImmediate<"u"?setImmediate:null;function Te(Y){for(var le=a(A);le!==null;){if(le.callback===null)r(A);else if(le.startTime<=Y)r(A),le.sortIndex=le.expirationTime,l(b,le);else break;le=a(A)}}function Re(Y){if(ie=!1,Te(Y),!F)if(a(b)!==null)F=!0,Oe||(Oe=!0,tt());else{var le=a(A);le!==null&&sn(Re,le.startTime-Y)}}var Oe=!1,Be=-1,Ne=5,De=-1;function ue(){return se?!0:!(c.unstable_now()-De<Ne)}function ht(){if(se=!1,Oe){var Y=c.unstable_now();De=Y;var le=!0;try{e:{F=!1,ie&&(ie=!1,de(Be),Be=-1),Z=!0;var oe=z;try{t:{for(Te(Y),N=a(b);N!==null&&!(N.expirationTime>Y&&ue());){var we=N.callback;if(typeof we=="function"){N.callback=null,z=N.priorityLevel;var qe=we(N.expirationTime<=Y);if(Y=c.unstable_now(),typeof qe=="function"){N.callback=qe,Te(Y),le=!0;break t}N===a(b)&&r(b),Te(Y)}else r(b);N=a(b)}if(N!==null)le=!0;else{var ee=a(A);ee!==null&&sn(Re,ee.startTime-Y),le=!1}}break e}finally{N=null,z=oe,Z=!1}le=void 0}}finally{le?tt():Oe=!1}}}var tt;if(typeof me=="function")tt=function(){me(ht)};else if(typeof MessageChannel<"u"){var Pe=new MessageChannel,Bt=Pe.port2;Pe.port1.onmessage=ht,tt=function(){Bt.postMessage(null)}}else tt=function(){fe(ht,0)};function sn(Y,le){Be=fe(function(){Y(c.unstable_now())},le)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(Y){Y.callback=null},c.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ne=0<Y?Math.floor(1e3/Y):5},c.unstable_getCurrentPriorityLevel=function(){return z},c.unstable_next=function(Y){switch(z){case 1:case 2:case 3:var le=3;break;default:le=z}var oe=z;z=le;try{return Y()}finally{z=oe}},c.unstable_requestPaint=function(){se=!0},c.unstable_runWithPriority=function(Y,le){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var oe=z;z=Y;try{return le()}finally{z=oe}},c.unstable_scheduleCallback=function(Y,le,oe){var we=c.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?we+oe:we):oe=we,Y){case 1:var qe=-1;break;case 2:qe=250;break;case 5:qe=1073741823;break;case 4:qe=1e4;break;default:qe=5e3}return qe=oe+qe,Y={id:D++,callback:le,priorityLevel:Y,startTime:oe,expirationTime:qe,sortIndex:-1},oe>we?(Y.sortIndex=oe,l(A,Y),a(b)===null&&Y===a(A)&&(ie?(de(Be),Be=-1):ie=!0,sn(Re,oe-we))):(Y.sortIndex=qe,l(b,Y),F||Z||(F=!0,Oe||(Oe=!0,tt()))),Y},c.unstable_shouldYield=ue,c.unstable_wrapCallback=function(Y){var le=z;return function(){var oe=z;z=le;try{return Y.apply(this,arguments)}finally{z=oe}}}})(nT)),nT}var lT={};/**
31
+ * @license React
32
+ * scheduler.development.js
43
33
  *
44
- * This source code is licensed under the ISC license.
45
- * See the LICENSE file in the root directory of this source tree.
46
- */const xp=Te.forwardRef(({color:n="currentColor",size:e=24,strokeWidth:t=2,absoluteStrokeWidth:i,className:r="",children:o,iconNode:l,...u},c)=>Te.createElement("svg",{ref:c,..._p,width:e,height:e,stroke:n,strokeWidth:i?Number(t)*24/Number(e):t,className:Ts("lucide",r),...u},[...l.map(([f,d])=>Te.createElement(f,d)),...Array.isArray(o)?o:[o]]));/**
47
- * @license lucide-react v0.460.0 - ISC
34
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
48
35
  *
49
- * This source code is licensed under the ISC license.
50
- * See the LICENSE file in the root directory of this source tree.
51
- */const Ne=(n,e)=>{const t=Te.forwardRef(({className:i,...r},o)=>Te.createElement(xp,{ref:o,iconNode:e,className:Ts(`lucide-${vp(n)}`,i),...r}));return t.displayName=`${n}`,t};/**
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
38
+ */var oE;function Ob(){return oE||(oE=1,(function(c){process.env.NODE_ENV!=="production"&&(function(){function l(){if(Re=!1,De){var Y=c.unstable_now();tt=Y;var le=!0;try{e:{me=!1,Te&&(Te=!1,Be(ue),ue=-1),de=!0;var oe=fe;try{t:{for(C(Y),se=r(Z);se!==null&&!(se.expirationTime>Y&&b());){var we=se.callback;if(typeof we=="function"){se.callback=null,fe=se.priorityLevel;var qe=we(se.expirationTime<=Y);if(Y=c.unstable_now(),typeof qe=="function"){se.callback=qe,C(Y),le=!0;break t}se===r(Z)&&f(Z),C(Y)}else f(Z);se=r(Z)}if(se!==null)le=!0;else{var ee=r(F);ee!==null&&A(E,ee.startTime-Y),le=!1}}break e}finally{se=null,fe=oe,de=!1}le=void 0}}finally{le?Pe():De=!1}}}function a(Y,le){var oe=Y.length;Y.push(le);e:for(;0<oe;){var we=oe-1>>>1,qe=Y[we];if(0<y(qe,le))Y[we]=le,Y[oe]=qe,oe=we;else break e}}function r(Y){return Y.length===0?null:Y[0]}function f(Y){if(Y.length===0)return null;var le=Y[0],oe=Y.pop();if(oe!==le){Y[0]=oe;e:for(var we=0,qe=Y.length,ee=qe>>>1;we<ee;){var ve=2*(we+1)-1,Ae=Y[ve],Me=ve+1,rn=Y[Me];if(0>y(Ae,oe))Me<qe&&0>y(rn,Ae)?(Y[we]=rn,Y[Me]=oe,we=Me):(Y[we]=Ae,Y[ve]=oe,we=ve);else if(Me<qe&&0>y(rn,oe))Y[we]=rn,Y[Me]=oe,we=Me;else break e}}return le}function y(Y,le){var oe=Y.sortIndex-le.sortIndex;return oe!==0?oe:Y.id-le.id}function C(Y){for(var le=r(F);le!==null;){if(le.callback===null)f(F);else if(le.startTime<=Y)f(F),le.sortIndex=le.expirationTime,a(Z,le);else break;le=r(F)}}function E(Y){if(Te=!1,C(Y),!me)if(r(Z)!==null)me=!0,De||(De=!0,Pe());else{var le=r(F);le!==null&&A(E,le.startTime-Y)}}function b(){return Re?!0:!(c.unstable_now()-tt<ht)}function A(Y,le){ue=Oe(function(){Y(c.unstable_now())},le)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var D=performance;c.unstable_now=function(){return D.now()}}else{var N=Date,z=N.now();c.unstable_now=function(){return N.now()-z}}var Z=[],F=[],ie=1,se=null,fe=3,de=!1,me=!1,Te=!1,Re=!1,Oe=typeof setTimeout=="function"?setTimeout:null,Be=typeof clearTimeout=="function"?clearTimeout:null,Ne=typeof setImmediate<"u"?setImmediate:null,De=!1,ue=-1,ht=5,tt=-1;if(typeof Ne=="function")var Pe=function(){Ne(l)};else if(typeof MessageChannel<"u"){var Bt=new MessageChannel,sn=Bt.port2;Bt.port1.onmessage=l,Pe=function(){sn.postMessage(null)}}else Pe=function(){Oe(l,0)};c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(Y){Y.callback=null},c.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ht=0<Y?Math.floor(1e3/Y):5},c.unstable_getCurrentPriorityLevel=function(){return fe},c.unstable_next=function(Y){switch(fe){case 1:case 2:case 3:var le=3;break;default:le=fe}var oe=fe;fe=le;try{return Y()}finally{fe=oe}},c.unstable_requestPaint=function(){Re=!0},c.unstable_runWithPriority=function(Y,le){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var oe=fe;fe=Y;try{return le()}finally{fe=oe}},c.unstable_scheduleCallback=function(Y,le,oe){var we=c.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?we+oe:we):oe=we,Y){case 1:var qe=-1;break;case 2:qe=250;break;case 5:qe=1073741823;break;case 4:qe=1e4;break;default:qe=5e3}return qe=oe+qe,Y={id:ie++,callback:le,priorityLevel:Y,startTime:oe,expirationTime:qe,sortIndex:-1},oe>we?(Y.sortIndex=oe,a(F,Y),r(Z)===null&&Y===r(F)&&(Te?(Be(ue),ue=-1):Te=!0,A(E,oe-we))):(Y.sortIndex=qe,a(Z,Y),me||de||(me=!0,De||(De=!0,Pe()))),Y},c.unstable_shouldYield=b,c.unstable_wrapCallback=function(Y){var le=fe;return function(){var oe=fe;fe=le;try{return Y.apply(this,arguments)}finally{fe=oe}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(lT)),lT}var uE;function sE(){return uE||(uE=1,process.env.NODE_ENV==="production"?hv.exports=zb():hv.exports=Ob()),hv.exports}/**
39
+ * @license React
40
+ * react-dom-client.production.js
41
+ *
42
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
43
+ *
44
+ * This source code is licensed under the MIT license found in the
45
+ * LICENSE file in the root directory of this source tree.
46
+ */var rE;function wb(){if(rE)return np;rE=1;var c=sE(),l=Mn,a=gd;function r(n){var o="https://react.dev/errors/"+n;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)o+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+n+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function y(n){var o=n,u=n;if(n.alternate)for(;o.return;)o=o.return;else{n=o;do o=n,(o.flags&4098)!==0&&(u=o.return),n=o.return;while(n)}return o.tag===3?u:null}function C(n){if(n.tag===13){var o=n.memoizedState;if(o===null&&(n=n.alternate,n!==null&&(o=n.memoizedState)),o!==null)return o.dehydrated}return null}function E(n){if(n.tag===31){var o=n.memoizedState;if(o===null&&(n=n.alternate,n!==null&&(o=n.memoizedState)),o!==null)return o.dehydrated}return null}function b(n){if(y(n)!==n)throw Error(r(188))}function A(n){var o=n.alternate;if(!o){if(o=y(n),o===null)throw Error(r(188));return o!==n?null:n}for(var u=n,d=o;;){var v=u.return;if(v===null)break;var S=v.alternate;if(S===null){if(d=v.return,d!==null){u=d;continue}break}if(v.child===S.child){for(S=v.child;S;){if(S===u)return b(v),n;if(S===d)return b(v),o;S=S.sibling}throw Error(r(188))}if(u.return!==d.return)u=v,d=S;else{for(var M=!1,U=v.child;U;){if(U===u){M=!0,u=v,d=S;break}if(U===d){M=!0,d=v,u=S;break}U=U.sibling}if(!M){for(U=S.child;U;){if(U===u){M=!0,u=S,d=v;break}if(U===d){M=!0,d=S,u=v;break}U=U.sibling}if(!M)throw Error(r(189))}}if(u.alternate!==d)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?n:o}function D(n){var o=n.tag;if(o===5||o===26||o===27||o===6)return n;for(n=n.child;n!==null;){if(o=D(n),o!==null)return o;n=n.sibling}return null}var N=Object.assign,z=Symbol.for("react.element"),Z=Symbol.for("react.transitional.element"),F=Symbol.for("react.portal"),ie=Symbol.for("react.fragment"),se=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),de=Symbol.for("react.consumer"),me=Symbol.for("react.context"),Te=Symbol.for("react.forward_ref"),Re=Symbol.for("react.suspense"),Oe=Symbol.for("react.suspense_list"),Be=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),De=Symbol.for("react.activity"),ue=Symbol.for("react.memo_cache_sentinel"),ht=Symbol.iterator;function tt(n){return n===null||typeof n!="object"?null:(n=ht&&n[ht]||n["@@iterator"],typeof n=="function"?n:null)}var Pe=Symbol.for("react.client.reference");function Bt(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===Pe?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case ie:return"Fragment";case fe:return"Profiler";case se:return"StrictMode";case Re:return"Suspense";case Oe:return"SuspenseList";case De:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case F:return"Portal";case me:return n.displayName||"Context";case de:return(n._context.displayName||"Context")+".Consumer";case Te:var o=n.render;return n=n.displayName,n||(n=o.displayName||o.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Be:return o=n.displayName||null,o!==null?o:Bt(n.type)||"Memo";case Ne:o=n._payload,n=n._init;try{return Bt(n(o))}catch{}}return null}var sn=Array.isArray,Y=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},we=[],qe=-1;function ee(n){return{current:n}}function ve(n){0>qe||(n.current=we[qe],we[qe]=null,qe--)}function Ae(n,o){qe++,we[qe]=n.current,n.current=o}var Me=ee(null),rn=ee(null),da=ee(null),Xt=ee(null);function ha(n,o){switch(Ae(da,o),Ae(rn,n),Ae(Me,null),o.nodeType){case 9:case 11:n=(n=o.documentElement)&&(n=n.namespaceURI)?J0(n):0;break;default:if(n=o.tagName,o=o.namespaceURI)o=J0(o),n=oy(o,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}ve(Me),Ae(Me,n)}function Yl(){ve(Me),ve(rn),ve(da)}function Mc(n){n.memoizedState!==null&&Ae(Xt,n);var o=Me.current,u=oy(o,n.type);o!==u&&(Ae(rn,n),Ae(Me,u))}function ye(n){rn.current===n&&(ve(Me),ve(rn)),Xt.current===n&&(ve(Xt),Zf._currentValue=oe)}var Rc,Dc;function ci(n){if(Rc===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);Rc=o&&o[1]||"",Dc=-1<u.stack.indexOf(`
47
+ at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
48
+ `+Rc+n+Dc}var Ru=!1;function Nt(n,o){if(!n||Ru)return"";Ru=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(o){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(P){var Q=P}Reflect.construct(n,[],ne)}else{try{ne.call()}catch(P){Q=P}n.call(ne.prototype)}}else{try{throw Error()}catch(P){Q=P}(ne=n())&&typeof ne.catch=="function"&&ne.catch(function(){})}}catch(P){if(P&&Q&&typeof P.stack=="string")return[P.stack,Q.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var S=d.DetermineComponentFrameRoot(),M=S[0],U=S[1];if(M&&U){var L=M.split(`
49
+ `),X=U.split(`
50
+ `);for(v=d=0;d<L.length&&!L[d].includes("DetermineComponentFrameRoot");)d++;for(;v<X.length&&!X[v].includes("DetermineComponentFrameRoot");)v++;if(d===L.length||v===X.length)for(d=L.length-1,v=X.length-1;1<=d&&0<=v&&L[d]!==X[v];)v--;for(;1<=d&&0<=v;d--,v--)if(L[d]!==X[v]){if(d!==1||v!==1)do if(d--,v--,0>v||L[d]!==X[v]){var W=`
51
+ `+L[d].replace(" at new "," at ");return n.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",n.displayName)),W}while(1<=d&&0<=v);break}}}finally{Ru=!1,Error.prepareStackTrace=u}return(u=n?n.displayName||n.name:"")?ci(u):""}function fp(n,o){switch(n.tag){case 26:case 27:case 5:return ci(n.type);case 16:return ci("Lazy");case 13:return n.child!==o&&o!==null?ci("Suspense Fallback"):ci("Suspense");case 19:return ci("SuspenseList");case 0:case 15:return Nt(n.type,!1);case 11:return Nt(n.type.render,!1);case 1:return Nt(n.type,!0);case 31:return ci("Activity");default:return""}}function Ud(n){try{var o="",u=null;do o+=fp(n,u),u=n,n=n.return;while(n);return o}catch(d){return`
52
+ Error generating stack: `+d.message+`
53
+ `+d.stack}}var dp=Object.prototype.hasOwnProperty,qt=c.unstable_scheduleCallback,hp=c.unstable_cancelCallback,Du=c.unstable_shouldYield,Nd=c.unstable_requestPaint,$n=c.unstable_now,xT=c.unstable_getCurrentPriorityLevel,zd=c.unstable_ImmediatePriority,Od=c.unstable_UserBlockingPriority,Bo=c.unstable_NormalPriority,UT=c.unstable_LowPriority,mp=c.unstable_IdlePriority,Nv=c.log,zv=c.unstable_setDisableYieldValue,xu=null,xl=null;function lo(n){if(typeof Nv=="function"&&zv(n),xl&&typeof xl.setStrictMode=="function")try{xl.setStrictMode(xu,n)}catch{}}var fl=Math.clz32?Math.clz32:pp,Ov=Math.log,wv=Math.LN2;function pp(n){return n>>>=0,n===0?32:31-(Ov(n)/wv|0)|0}var ao=256,Na=262144,qo=4194304;function ma(n){var o=n&42;if(o!==0)return o;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function pn(n,o,u){var d=n.pendingLanes;if(d===0)return 0;var v=0,S=n.suspendedLanes,M=n.pingedLanes;n=n.warmLanes;var U=d&134217727;return U!==0?(d=U&~S,d!==0?v=ma(d):(M&=U,M!==0?v=ma(M):u||(u=U&~n,u!==0&&(v=ma(u))))):(U=d&~S,U!==0?v=ma(U):M!==0?v=ma(M):u||(u=d&~n,u!==0&&(v=ma(u)))),v===0?0:o!==0&&o!==v&&(o&S)===0&&(S=v&-v,u=o&-o,S>=u||S===32&&(u&4194048)!==0)?o:v}function za(n,o){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&o)===0}function ks(n,o){switch(n){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Uu(){var n=qo;return qo<<=1,(qo&62914560)===0&&(qo=4194304),n}function xc(n){for(var o=[],u=0;31>u;u++)o.push(n);return o}function Xs(n,o){n.pendingLanes|=o,o!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function wd(n,o,u,d,v,S){var M=n.pendingLanes;n.pendingLanes=u,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=u,n.entangledLanes&=u,n.errorRecoveryDisabledLanes&=u,n.shellSuspendCounter=0;var U=n.entanglements,L=n.expirationTimes,X=n.hiddenUpdates;for(u=M&~u;0<u;){var W=31-fl(u),ne=1<<W;U[W]=0,L[W]=-1;var Q=X[W];if(Q!==null)for(X[W]=null,W=0;W<Q.length;W++){var P=Q[W];P!==null&&(P.lane&=-536870913)}u&=~ne}d!==0&&Uc(n,d,0),S!==0&&v===0&&n.tag!==0&&(n.suspendedLanes|=S&~(M&~o))}function Uc(n,o,u){n.pendingLanes|=o,n.suspendedLanes&=~o;var d=31-fl(o);n.entangledLanes|=o,n.entanglements[d]=n.entanglements[d]|1073741824|u&261930}function fi(n,o){var u=n.entangledLanes|=o;for(n=n.entanglements;u;){var d=31-fl(u),v=1<<d;v&o|n[d]&o&&(n[d]|=o),u&=~v}}function Il(n,o){var u=o&-o;return u=(u&42)!==0?1:Vd(u),(u&(n.suspendedLanes|o))!==0?0:u}function Vd(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function gp(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Ld(){var n=le.p;return n!==0?n:(n=window.event,n===void 0?32:kf(n.type))}function yp(n,o){var u=le.p;try{return le.p=n,o()}finally{le.p=u}}var Oa=Math.random().toString(36).slice(2),zt="__reactFiber$"+Oa,dl="__reactProps$"+Oa,Go="__reactContainer$"+Oa,Hd="__reactEvents$"+Oa,vp="__reactListeners$"+Oa,Vv="__reactHandles$"+Oa,Sp="__reactResources$"+Oa,di="__reactMarker$"+Oa;function Bd(n){delete n[zt],delete n[dl],delete n[Hd],delete n[vp],delete n[Vv]}function Nu(n){var o=n[zt];if(o)return o;for(var u=n.parentNode;u;){if(o=u[Go]||u[zt]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(n=ei(n);n!==null;){if(u=n[zt])return u;n=ei(n)}return o}n=u,u=n.parentNode}return null}function zu(n){if(n=n[zt]||n[Go]){var o=n.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return n}return null}function Qs(n){var o=n.tag;if(o===5||o===26||o===27||o===6)return n.stateNode;throw Error(r(33))}function Ou(n){var o=n[Sp];return o||(o=n[Sp]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Mt(n){n[di]=!0}var wu=new Set,Yo={};function Io(n,o){hi(n,o),hi(n+"Capture",o)}function hi(n,o){for(Yo[n]=o,n=0;n<o.length;n++)wu.add(o[n])}var qd=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Gd={},Js={};function Ks(n){return dp.call(Js,n)?!0:dp.call(Gd,n)?!1:qd.test(n)?Js[n]=!0:(Gd[n]=!0,!1)}function Fs(n,o,u){if(Ks(o))if(u===null)n.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":n.removeAttribute(o);return;case"boolean":var d=o.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){n.removeAttribute(o);return}}n.setAttribute(o,""+u)}}function Yd(n,o,u){if(u===null)n.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttribute(o,""+u)}}function io(n,o,u,d){if(d===null)n.removeAttribute(u);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(u);return}n.setAttributeNS(o,u,""+d)}}function Zl(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Id(n){var o=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Tp(n,o,u){var d=Object.getOwnPropertyDescriptor(n.constructor.prototype,o);if(!n.hasOwnProperty(o)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var v=d.get,S=d.set;return Object.defineProperty(n,o,{configurable:!0,get:function(){return v.call(this)},set:function(M){u=""+M,S.call(this,M)}}),Object.defineProperty(n,o,{enumerable:d.enumerable}),{getValue:function(){return u},setValue:function(M){u=""+M},stopTracking:function(){n._valueTracker=null,delete n[o]}}}}function Zd(n){if(!n._valueTracker){var o=Id(n)?"checked":"value";n._valueTracker=Tp(n,o,""+n[o])}}function Cp(n){if(!n)return!1;var o=n._valueTracker;if(!o)return!0;var u=o.getValue(),d="";return n&&(d=Id(n)?n.checked?"true":"false":n.value),n=d,n!==u?(o.setValue(n),!0):!1}function Nc(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var NT=/[\n"\\]/g;function kl(n){return n.replace(NT,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function zc(n,o,u,d,v,S,M,U){n.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?n.type=M:n.removeAttribute("type"),o!=null?M==="number"?(o===0&&n.value===""||n.value!=o)&&(n.value=""+Zl(o)):n.value!==""+Zl(o)&&(n.value=""+Zl(o)):M!=="submit"&&M!=="reset"||n.removeAttribute("value"),o!=null?Vu(n,M,Zl(o)):u!=null?Vu(n,M,Zl(u)):d!=null&&n.removeAttribute("value"),v==null&&S!=null&&(n.defaultChecked=!!S),v!=null&&(n.checked=v&&typeof v!="function"&&typeof v!="symbol"),U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?n.name=""+Zl(U):n.removeAttribute("name")}function Oc(n,o,u,d,v,S,M,U){if(S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(n.type=S),o!=null||u!=null){if(!(S!=="submit"&&S!=="reset"||o!=null)){Zd(n);return}u=u!=null?""+Zl(u):"",o=o!=null?""+Zl(o):u,U||o===n.value||(n.value=o),n.defaultValue=o}d=d??v,d=typeof d!="function"&&typeof d!="symbol"&&!!d,n.checked=U?n.checked:!!d,n.defaultChecked=!!d,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(n.name=M),Zd(n)}function Vu(n,o,u){o==="number"&&Nc(n.ownerDocument)===n||n.defaultValue===""+u||(n.defaultValue=""+u)}function $s(n,o,u,d){if(n=n.options,o){o={};for(var v=0;v<u.length;v++)o["$"+u[v]]=!0;for(u=0;u<n.length;u++)v=o.hasOwnProperty("$"+n[u].value),n[u].selected!==v&&(n[u].selected=v),v&&d&&(n[u].defaultSelected=!0)}else{for(u=""+Zl(u),o=null,v=0;v<n.length;v++){if(n[v].value===u){n[v].selected=!0,d&&(n[v].defaultSelected=!0);return}o!==null||n[v].disabled||(o=n[v])}o!==null&&(o.selected=!0)}}function Ep(n,o,u){if(o!=null&&(o=""+Zl(o),o!==n.value&&(n.value=o),u==null)){n.defaultValue!==o&&(n.defaultValue=o);return}n.defaultValue=u!=null?""+Zl(u):""}function _p(n,o,u,d){if(o==null){if(d!=null){if(u!=null)throw Error(r(92));if(sn(d)){if(1<d.length)throw Error(r(93));d=d[0]}u=d}u==null&&(u=""),o=u}u=Zl(o),n.defaultValue=u,d=n.textContent,d===u&&d!==""&&d!==null&&(n.value=d),Zd(n)}function mi(n,o){if(o){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===3){u.nodeValue=o;return}}n.textContent=o}var Lv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Hv(n,o,u){var d=o.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?d?n.setProperty(o,""):o==="float"?n.cssFloat="":n[o]="":d?n.setProperty(o,u):typeof u!="number"||u===0||Lv.has(o)?o==="float"?n.cssFloat=u:n[o]=(""+u).trim():n[o]=u+"px"}function Bv(n,o,u){if(o!=null&&typeof o!="object")throw Error(r(62));if(n=n.style,u!=null){for(var d in u)!u.hasOwnProperty(d)||o!=null&&o.hasOwnProperty(d)||(d.indexOf("--")===0?n.setProperty(d,""):d==="float"?n.cssFloat="":n[d]="");for(var v in o)d=o[v],o.hasOwnProperty(v)&&u[v]!==d&&Hv(n,v,d)}else for(var S in o)o.hasOwnProperty(S)&&Hv(n,S,o[S])}function Ap(n){if(n.indexOf("-")===-1)return!1;switch(n){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 zT=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),wc=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function pa(n){return wc.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function wa(){}var kd=null;function Xd(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var pi=null,Lu=null;function Vc(n){var o=zu(n);if(o&&(n=o.stateNode)){var u=n[dl]||null;e:switch(n=o.stateNode,o.type){case"input":if(zc(n,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),o=u.name,u.type==="radio"&&o!=null){for(u=n;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+kl(""+o)+'"][type="radio"]'),o=0;o<u.length;o++){var d=u[o];if(d!==n&&d.form===n.form){var v=d[dl]||null;if(!v)throw Error(r(90));zc(d,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(o=0;o<u.length;o++)d=u[o],d.form===n.form&&Cp(d)}break e;case"textarea":Ep(n,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&$s(n,!!u.multiple,o,!1)}}}var Ps=!1;function bp(n,o,u){if(Ps)return n(o,u);Ps=!0;try{var d=n(o);return d}finally{if(Ps=!1,(pi!==null||Lu!==null)&&(Or(),pi&&(o=pi,n=Lu,Lu=pi=null,Vc(o),n)))for(o=0;o<n.length;o++)Vc(n[o])}}function Vn(n,o){var u=n.stateNode;if(u===null)return null;var d=u[dl]||null;if(d===null)return null;u=d[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(n=n.type,d=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!d;break e;default:n=!1}if(n)return null;if(u&&typeof u!="function")throw Error(r(231,o,typeof u));return u}var oo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lc=!1;if(oo)try{var Ws={};Object.defineProperty(Ws,"passive",{get:function(){Lc=!0}}),window.addEventListener("test",Ws,Ws),window.removeEventListener("test",Ws,Ws)}catch{Lc=!1}var uo=null,Mp=null,Qd=null;function Rp(){if(Qd)return Qd;var n,o=Mp,u=o.length,d,v="value"in uo?uo.value:uo.textContent,S=v.length;for(n=0;n<u&&o[n]===v[n];n++);var M=u-n;for(d=1;d<=M&&o[u-d]===v[S-d];d++);return Qd=v.slice(n,1<d?1-d:void 0)}function Jd(n){var o=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&o===13&&(n=13)):n=o,n===10&&(n=13),32<=n||n===13?n:0}function Hc(){return!0}function qv(){return!1}function Pn(n){function o(u,d,v,S,M){this._reactName=u,this._targetInst=v,this.type=d,this.nativeEvent=S,this.target=M,this.currentTarget=null;for(var U in n)n.hasOwnProperty(U)&&(u=n[U],this[U]=u?u(S):S[U]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?Hc:qv,this.isPropagationStopped=qv,this}return N(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Hc)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Hc)},persist:function(){},isPersistent:Hc}),o}var Zo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bc=Pn(Zo),js=N({},Zo,{view:0,detail:0}),OT=Pn(js),Dp,xp,qc,Kd=N({},js,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ga,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==qc&&(qc&&n.type==="mousemove"?(Dp=n.screenX-qc.screenX,xp=n.screenY-qc.screenY):xp=Dp=0,qc=n),Dp)},movementY:function(n){return"movementY"in n?n.movementY:xp}}),er=Pn(Kd),Gv=N({},Kd,{dataTransfer:0}),Yv=Pn(Gv),Iv=N({},js,{relatedTarget:0}),Fd=Pn(Iv),Up=N({},Zo,{animationName:0,elapsedTime:0,pseudoElement:0}),Zv=Pn(Up),Hu=N({},Zo,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Bu=Pn(Hu),Va=N({},Zo,{data:0}),kv=Pn(Va),Np={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gi={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Xv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function La(n){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(n):(n=Xv[n])?!!o[n]:!1}function ga(){return La}var $d=N({},js,{key:function(n){if(n.key){var o=Np[n.key]||n.key;if(o!=="Unidentified")return o}return n.type==="keypress"?(n=Jd(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?gi[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ga,charCode:function(n){return n.type==="keypress"?Jd(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Jd(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),Pd=Pn($d),zp=N({},Kd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ha=Pn(zp),wT=N({},js,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ga}),Qv=Pn(wT),Jv=N({},Zo,{propertyName:0,elapsedTime:0,pseudoElement:0}),VT=Pn(Jv),Op=N({},Kd,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),LT=Pn(Op),Kv=N({},Zo,{newState:0,oldState:0}),wp=Pn(Kv),Wd=[9,13,27,32],tr=oo&&"CompositionEvent"in window,qu=null;oo&&"documentMode"in document&&(qu=document.documentMode);var ll=oo&&"TextEvent"in window&&!qu,Vp=oo&&(!tr||qu&&8<qu&&11>=qu),Gc=" ",ko=!1;function jd(n,o){switch(n){case"keyup":return Wd.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lp(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Gu=!1;function Fv(n,o){switch(n){case"compositionend":return Lp(o);case"keypress":return o.which!==32?null:(ko=!0,Gc);case"textInput":return n=o.data,n===Gc&&ko?null:n;default:return null}}function HT(n,o){if(Gu)return n==="compositionend"||!tr&&jd(n,o)?(n=Rp(),Qd=Mp=uo=null,Gu=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Vp&&o.locale!=="ko"?null:o.data;default:return null}}var Hp={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function yi(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o==="input"?!!Hp[n.type]:o==="textarea"}function Bp(n,o,u,d){pi?Lu?Lu.push(d):Lu=[d]:pi=d,o=Hf(o,"onChange"),0<o.length&&(u=new Bc("onChange","change",null,u,d),n.push({event:u,listeners:o}))}var Yu=null,Xo=null;function Iu(n){k0(n,0)}function nr(n){var o=Qs(n);if(Cp(o))return n}function qp(n,o){if(n==="change")return o}var eh=!1;if(oo){var hl;if(oo){var Ba="oninput"in document;if(!Ba){var Gp=document.createElement("div");Gp.setAttribute("oninput","return;"),Ba=typeof Gp.oninput=="function"}hl=Ba}else hl=!1;eh=hl&&(!document.documentMode||9<document.documentMode)}function th(){Yu&&(Yu.detachEvent("onpropertychange",nh),Xo=Yu=null)}function nh(n){if(n.propertyName==="value"&&nr(Xo)){var o=[];Bp(o,Xo,n,Xd(n)),bp(Iu,o)}}function $v(n,o,u){n==="focusin"?(th(),Yu=o,Xo=u,Yu.attachEvent("onpropertychange",nh)):n==="focusout"&&th()}function Pv(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return nr(Xo)}function Qo(n,o){if(n==="click")return nr(o)}function Zu(n,o){if(n==="input"||n==="change")return nr(o)}function Wv(n,o){return n===o&&(n!==0||1/n===1/o)||n!==n&&o!==o}var al=typeof Object.is=="function"?Object.is:Wv;function ya(n,o){if(al(n,o))return!0;if(typeof n!="object"||n===null||typeof o!="object"||o===null)return!1;var u=Object.keys(n),d=Object.keys(o);if(u.length!==d.length)return!1;for(d=0;d<u.length;d++){var v=u[d];if(!dp.call(o,v)||!al(n[v],o[v]))return!1}return!0}function Yp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Ip(n,o){var u=Yp(n);n=0;for(var d;u;){if(u.nodeType===3){if(d=n+u.textContent.length,n<=o&&d>=o)return{node:u,offset:o-n};n=d}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Yp(u)}}function ku(n,o){return n&&o?n===o?!0:n&&n.nodeType===3?!1:o&&o.nodeType===3?ku(n,o.parentNode):"contains"in n?n.contains(o):n.compareDocumentPosition?!!(n.compareDocumentPosition(o)&16):!1:!1}function Jo(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var o=Nc(n.document);o instanceof n.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)n=o.contentWindow;else break;o=Nc(n.document)}return o}function Yc(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o&&(o==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||o==="textarea"||n.contentEditable==="true")}var Ic=oo&&"documentMode"in document&&11>=document.documentMode,Ko=null,lr=null,va=null,qa=!1;function lh(n,o,u){var d=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;qa||Ko==null||Ko!==Nc(d)||(d=Ko,"selectionStart"in d&&Yc(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),va&&ya(va,d)||(va=d,d=Hf(lr,"onSelect"),0<d.length&&(o=new Bc("onSelect","select",null,o,u),n.push({event:o,listeners:d}),o.target=Ko)))}function so(n,o){var u={};return u[n.toLowerCase()]=o.toLowerCase(),u["Webkit"+n]="webkit"+o,u["Moz"+n]="moz"+o,u}var Ga={animationend:so("Animation","AnimationEnd"),animationiteration:so("Animation","AnimationIteration"),animationstart:so("Animation","AnimationStart"),transitionrun:so("Transition","TransitionRun"),transitionstart:so("Transition","TransitionStart"),transitioncancel:so("Transition","TransitionCancel"),transitionend:so("Transition","TransitionEnd")},ar={},Fo={};oo&&(Fo=document.createElement("div").style,"AnimationEvent"in window||(delete Ga.animationend.animation,delete Ga.animationiteration.animation,delete Ga.animationstart.animation),"TransitionEvent"in window||delete Ga.transitionend.transition);function Et(n){if(ar[n])return ar[n];if(!Ga[n])return n;var o=Ga[n],u;for(u in o)if(o.hasOwnProperty(u)&&u in Fo)return ar[n]=o[u];return n}var Zc=Et("animationend"),Zp=Et("animationiteration"),ah=Et("animationstart"),Xu=Et("transitionrun"),kc=Et("transitionstart"),vi=Et("transitioncancel"),jv=Et("transitionend"),Si=new Map,ir="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ir.push("scrollEnd");function ml(n,o){Si.set(n,o),Io(o,[n])}var Qu=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Ft=[],Ln=0,Sa=0;function Xl(){for(var n=Ln,o=Sa=Ln=0;o<n;){var u=Ft[o];Ft[o++]=null;var d=Ft[o];Ft[o++]=null;var v=Ft[o];Ft[o++]=null;var S=Ft[o];if(Ft[o++]=null,d!==null&&v!==null){var M=d.pending;M===null?v.next=v:(v.next=M.next,M.next=v),d.pending=v}S!==0&&ih(u,v,S)}}function Ql(n,o,u,d){Ft[Ln++]=n,Ft[Ln++]=o,Ft[Ln++]=u,Ft[Ln++]=d,Sa|=d,n.lanes|=d,n=n.alternate,n!==null&&(n.lanes|=d)}function Ta(n,o,u,d){return Ql(n,o,u,d),Xc(n)}function ro(n,o){return Ql(n,null,null,o),Xc(n)}function ih(n,o,u){n.lanes|=u;var d=n.alternate;d!==null&&(d.lanes|=u);for(var v=!1,S=n.return;S!==null;)S.childLanes|=u,d=S.alternate,d!==null&&(d.childLanes|=u),S.tag===22&&(n=S.stateNode,n===null||n._visibility&1||(v=!0)),n=S,S=S.return;return n.tag===3?(S=n.stateNode,v&&o!==null&&(v=31-fl(u),n=S.hiddenUpdates,d=n[v],d===null?n[v]=[o]:d.push(o),o.lane=u|536870912),S):null}function Xc(n){if(50<zr)throw zr=0,Df=null,Error(r(185));for(var o=n.return;o!==null;)n=o,o=n.return;return n.tag===3?n.stateNode:null}var pl={};function e0(n,o,u,d){this.tag=n,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function cn(n,o,u,d){return new e0(n,o,u,d)}function Ju(n){return n=n.prototype,!(!n||!n.isReactComponent)}function co(n,o){var u=n.alternate;return u===null?(u=cn(n.tag,o,n.key,n.mode),u.elementType=n.elementType,u.type=n.type,u.stateNode=n.stateNode,u.alternate=n,n.alternate=u):(u.pendingProps=o,u.type=n.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=n.flags&65011712,u.childLanes=n.childLanes,u.lanes=n.lanes,u.child=n.child,u.memoizedProps=n.memoizedProps,u.memoizedState=n.memoizedState,u.updateQueue=n.updateQueue,o=n.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=n.sibling,u.index=n.index,u.ref=n.ref,u.refCleanup=n.refCleanup,u}function kp(n,o){n.flags&=65011714;var u=n.alternate;return u===null?(n.childLanes=0,n.lanes=o,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=u.childLanes,n.lanes=u.lanes,n.child=u.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=u.memoizedProps,n.memoizedState=u.memoizedState,n.updateQueue=u.updateQueue,n.type=u.type,o=u.dependencies,n.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),n}function oh(n,o,u,d,v,S){var M=0;if(d=n,typeof n=="function")Ju(n)&&(M=1);else if(typeof n=="string")M=hy(n,u,Me.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case De:return n=cn(31,u,o,v),n.elementType=De,n.lanes=S,n;case ie:return fo(u.children,v,S,o);case se:M=8,v|=24;break;case fe:return n=cn(12,u,o,v|2),n.elementType=fe,n.lanes=S,n;case Re:return n=cn(13,u,o,v),n.elementType=Re,n.lanes=S,n;case Oe:return n=cn(19,u,o,v),n.elementType=Oe,n.lanes=S,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case me:M=10;break e;case de:M=9;break e;case Te:M=11;break e;case Be:M=14;break e;case Ne:M=16,d=null;break e}M=29,u=Error(r(130,n===null?"null":typeof n,"")),d=null}return o=cn(M,u,o,v),o.elementType=n,o.type=d,o.lanes=S,o}function fo(n,o,u,d){return n=cn(7,n,d,o),n.lanes=u,n}function or(n,o,u){return n=cn(6,n,null,o),n.lanes=u,n}function Xp(n){var o=cn(18,null,null,0);return o.stateNode=n,o}function uh(n,o,u){return o=cn(4,n.children!==null?n.children:[],n.key,o),o.lanes=u,o.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},o}var Qp=new WeakMap;function Jl(n,o){if(typeof n=="object"&&n!==null){var u=Qp.get(n);return u!==void 0?u:(o={value:n,source:o,stack:Ud(o)},Qp.set(n,o),o)}return{value:n,source:o,stack:Ud(o)}}var Kl=[],Ku=0,Qc=null,gn=0,Ul=[],gl=0,Ya=null,Nl=1,Ia="";function Ca(n,o){Kl[Ku++]=gn,Kl[Ku++]=Qc,Qc=n,gn=o}function Jp(n,o,u){Ul[gl++]=Nl,Ul[gl++]=Ia,Ul[gl++]=Ya,Ya=n;var d=Nl;n=Ia;var v=32-fl(d)-1;d&=~(1<<v),u+=1;var S=32-fl(o)+v;if(30<S){var M=v-v%5;S=(d&(1<<M)-1).toString(32),d>>=M,v-=M,Nl=1<<32-fl(o)+v|u<<v|d,Ia=S+n}else Nl=1<<S|u<<v|d,Ia=n}function ur(n){n.return!==null&&(Ca(n,1),Jp(n,1,0))}function sh(n){for(;n===Qc;)Qc=Kl[--Ku],Kl[Ku]=null,gn=Kl[--Ku],Kl[Ku]=null;for(;n===Ya;)Ya=Ul[--gl],Ul[gl]=null,Ia=Ul[--gl],Ul[gl]=null,Nl=Ul[--gl],Ul[gl]=null}function Jc(n,o){Ul[gl++]=Nl,Ul[gl++]=Ia,Ul[gl++]=Ya,Nl=o.id,Ia=o.overflow,Ya=n}var Hn=null,Gt=null,ct=!1,Ti=null,Rn=!1,Ci=Error(r(519));function Ea(n){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw rr(Jl(o,n)),Ci}function Kc(n){var o=n.stateNode,u=n.type,d=n.memoizedProps;switch(o[zt]=n,o[dl]=d,u){case"dialog":rt("cancel",o),rt("close",o);break;case"iframe":case"object":case"embed":rt("load",o);break;case"video":case"audio":for(u=0;u<Br.length;u++)rt(Br[u],o);break;case"source":rt("error",o);break;case"img":case"image":case"link":rt("error",o),rt("load",o);break;case"details":rt("toggle",o);break;case"input":rt("invalid",o),Oc(o,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":rt("invalid",o);break;case"textarea":rt("invalid",o),_p(o,d.value,d.defaultValue,d.children)}u=d.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||o.textContent===""+u||d.suppressHydrationWarning===!0||ny(o.textContent,u)?(d.popover!=null&&(rt("beforetoggle",o),rt("toggle",o)),d.onScroll!=null&&rt("scroll",o),d.onScrollEnd!=null&&rt("scrollend",o),d.onClick!=null&&(o.onclick=wa),o=!0):o=!1,o||Ea(n,!0)}function sr(n){for(Hn=n.return;Hn;)switch(Hn.tag){case 5:case 31:case 13:Rn=!1;return;case 27:case 3:Rn=!0;return;default:Hn=Hn.return}}function Ei(n){if(n!==Hn)return!1;if(!ct)return sr(n),ct=!0,!1;var o=n.tag,u;if((u=o!==3&&o!==27)&&((u=o===5)&&(u=n.type,u=!(u!=="form"&&u!=="button")||Gr(n.type,n.memoizedProps)),u=!u),u&&Gt&&Ea(n),sr(n),o===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));Gt=fm(n)}else if(o===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));Gt=fm(n)}else o===27?(o=Gt,ja(n.type)?(n=Gf,Gf=null,Gt=n):Gt=o):Gt=Hn?Ml(n.stateNode.nextSibling):null;return!0}function $o(){Gt=Hn=null,ct=!1}function Kp(){var n=Ti;return n!==null&&(on===null?on=n:on.push.apply(on,n),Ti=null),n}function rr(n){Ti===null?Ti=[n]:Ti.push(n)}var rh=ee(null),ho=null,Za=null;function yl(n,o,u){Ae(rh,o._currentValue),o._currentValue=u}function ka(n){n._currentValue=rh.current,ve(rh)}function ch(n,o,u){for(;n!==null;){var d=n.alternate;if((n.childLanes&o)!==o?(n.childLanes|=o,d!==null&&(d.childLanes|=o)):d!==null&&(d.childLanes&o)!==o&&(d.childLanes|=o),n===u)break;n=n.return}}function _i(n,o,u,d){var v=n.child;for(v!==null&&(v.return=n);v!==null;){var S=v.dependencies;if(S!==null){var M=v.child;S=S.firstContext;e:for(;S!==null;){var U=S;S=v;for(var L=0;L<o.length;L++)if(U.context===o[L]){S.lanes|=u,U=S.alternate,U!==null&&(U.lanes|=u),ch(S.return,u,n),d||(M=null);break e}S=U.next}}else if(v.tag===18){if(M=v.return,M===null)throw Error(r(341));M.lanes|=u,S=M.alternate,S!==null&&(S.lanes|=u),ch(M,u,n),M=null}else M=v.child;if(M!==null)M.return=v;else for(M=v;M!==null;){if(M===n){M=null;break}if(v=M.sibling,v!==null){v.return=M.return,M=v;break}M=M.return}v=M}}function Bn(n,o,u,d){n=null;for(var v=o,S=!1;v!==null;){if(!S){if((v.flags&524288)!==0)S=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var M=v.alternate;if(M===null)throw Error(r(387));if(M=M.memoizedProps,M!==null){var U=v.type;al(v.pendingProps.value,M.value)||(n!==null?n.push(U):n=[U])}}else if(v===Xt.current){if(M=v.alternate,M===null)throw Error(r(387));M.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(n!==null?n.push(Zf):n=[Zf])}v=v.return}n!==null&&_i(o,n,u,d),o.flags|=262144}function Fu(n){for(n=n.firstContext;n!==null;){if(!al(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function ke(n){ho=n,Za=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function ae(n){return Fc(ho,n)}function mo(n,o){return ho===null&&ke(n),Fc(n,o)}function Fc(n,o){var u=o._currentValue;if(o={context:o,memoizedValue:u,next:null},Za===null){if(n===null)throw Error(r(308));Za=o,n.dependencies={lanes:0,firstContext:o},n.flags|=524288}else Za=Za.next=o;return u}var fn=typeof AbortController<"u"?AbortController:function(){var n=[],o=this.signal={aborted:!1,addEventListener:function(u,d){n.push(d)}};this.abort=function(){o.aborted=!0,n.forEach(function(u){return u()})}},Fp=c.unstable_scheduleCallback,$p=c.unstable_NormalPriority,yn={$$typeof:me,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $c(){return{controller:new fn,data:new Map,refCount:0}}function Pc(n){n.refCount--,n.refCount===0&&Fp($p,function(){n.controller.abort()})}var $u=null,Wc=0,Po=0,En=null;function Rt(n,o){if($u===null){var u=$u=[];Wc=0,Po=lm(),En={status:"pending",value:void 0,then:function(d){u.push(d)}}}return Wc++,o.then(jc,jc),o}function jc(){if(--Wc===0&&$u!==null){En!==null&&(En.status="fulfilled");var n=$u;$u=null,Po=0,En=null;for(var o=0;o<n.length;o++)(0,n[o])()}}function ef(n,o){var u=[],d={status:"pending",value:null,reason:null,then:function(v){u.push(v)}};return n.then(function(){d.status="fulfilled",d.value=o;for(var v=0;v<u.length;v++)(0,u[v])(o)},function(v){for(d.status="rejected",d.reason=v,v=0;v<u.length;v++)(0,u[v])(void 0)}),d}var po=Y.S;Y.S=function(n,o){Zg=$n(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&Rt(n,o),po!==null&&po(n,o)};var Fl=ee(null);function $l(){var n=Fl.current;return n!==null?n:wt.pooledCache}function cr(n,o){o===null?Ae(Fl,Fl.current):Ae(Fl,o.pool)}function Pu(){var n=$l();return n===null?null:{parent:yn._currentValue,pool:n}}var Wo=Error(r(460)),Wu=Error(r(474)),fr=Error(r(542)),ju={then:function(){}};function Pp(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Wp(n,o,u){switch(u=n[u],u===void 0?n.push(o):u!==o&&(o.then(wa,wa),o=u),o.status){case"fulfilled":return o.value;case"rejected":throw n=o.reason,fh(n),n;default:if(typeof o.status=="string")o.then(wa,wa);else{if(n=wt,n!==null&&100<n.shellSuspendCounter)throw Error(r(482));n=o,n.status="pending",n.then(function(d){if(o.status==="pending"){var v=o;v.status="fulfilled",v.value=d}},function(d){if(o.status==="pending"){var v=o;v.status="rejected",v.reason=d}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw n=o.reason,fh(n),n}throw eu=o,Wo}}function jo(n){try{var o=n._init;return o(n._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(eu=u,Wo):u}}var eu=null;function jp(){if(eu===null)throw Error(r(459));var n=eu;return eu=null,n}function fh(n){if(n===Wo||n===fr)throw Error(r(483))}var tu=null,es=0;function tf(n){var o=es;return es+=1,tu===null&&(tu=[]),Wp(tu,n,o)}function dr(n,o){o=o.props.ref,n.ref=o!==void 0?o:null}function nf(n,o){throw o.$$typeof===z?Error(r(525)):(n=Object.prototype.toString.call(o),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":n)))}function t0(n){function o(I,q){if(n){var k=I.deletions;k===null?(I.deletions=[q],I.flags|=16):k.push(q)}}function u(I,q){if(!n)return null;for(;q!==null;)o(I,q),q=q.sibling;return null}function d(I){for(var q=new Map;I!==null;)I.key!==null?q.set(I.key,I):q.set(I.index,I),I=I.sibling;return q}function v(I,q){return I=co(I,q),I.index=0,I.sibling=null,I}function S(I,q,k){return I.index=k,n?(k=I.alternate,k!==null?(k=k.index,k<q?(I.flags|=67108866,q):k):(I.flags|=67108866,q)):(I.flags|=1048576,q)}function M(I){return n&&I.alternate===null&&(I.flags|=67108866),I}function U(I,q,k,te){return q===null||q.tag!==6?(q=or(k,I.mode,te),q.return=I,q):(q=v(q,k),q.return=I,q)}function L(I,q,k,te){var xe=k.type;return xe===ie?W(I,q,k.props.children,te,k.key):q!==null&&(q.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===Ne&&jo(xe)===q.type)?(q=v(q,k.props),dr(q,k),q.return=I,q):(q=oh(k.type,k.key,k.props,null,I.mode,te),dr(q,k),q.return=I,q)}function X(I,q,k,te){return q===null||q.tag!==4||q.stateNode.containerInfo!==k.containerInfo||q.stateNode.implementation!==k.implementation?(q=uh(k,I.mode,te),q.return=I,q):(q=v(q,k.children||[]),q.return=I,q)}function W(I,q,k,te,xe){return q===null||q.tag!==7?(q=fo(k,I.mode,te,xe),q.return=I,q):(q=v(q,k),q.return=I,q)}function ne(I,q,k){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=or(""+q,I.mode,k),q.return=I,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case Z:return k=oh(q.type,q.key,q.props,null,I.mode,k),dr(k,q),k.return=I,k;case F:return q=uh(q,I.mode,k),q.return=I,q;case Ne:return q=jo(q),ne(I,q,k)}if(sn(q)||tt(q))return q=fo(q,I.mode,k,null),q.return=I,q;if(typeof q.then=="function")return ne(I,tf(q),k);if(q.$$typeof===me)return ne(I,mo(I,q),k);nf(I,q)}return null}function Q(I,q,k,te){var xe=q!==null?q.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return xe!==null?null:U(I,q,""+k,te);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Z:return k.key===xe?L(I,q,k,te):null;case F:return k.key===xe?X(I,q,k,te):null;case Ne:return k=jo(k),Q(I,q,k,te)}if(sn(k)||tt(k))return xe!==null?null:W(I,q,k,te,null);if(typeof k.then=="function")return Q(I,q,tf(k),te);if(k.$$typeof===me)return Q(I,q,mo(I,k),te);nf(I,k)}return null}function P(I,q,k,te,xe){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return I=I.get(k)||null,U(q,I,""+te,xe);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case Z:return I=I.get(te.key===null?k:te.key)||null,L(q,I,te,xe);case F:return I=I.get(te.key===null?k:te.key)||null,X(q,I,te,xe);case Ne:return te=jo(te),P(I,q,k,te,xe)}if(sn(te)||tt(te))return I=I.get(k)||null,W(q,I,te,xe,null);if(typeof te.then=="function")return P(I,q,k,tf(te),xe);if(te.$$typeof===me)return P(I,q,k,mo(q,te),xe);nf(q,te)}return null}function Se(I,q,k,te){for(var xe=null,vt=null,Ee=q,Ke=q=0,je=null;Ee!==null&&Ke<k.length;Ke++){Ee.index>Ke?(je=Ee,Ee=null):je=Ee.sibling;var Ct=Q(I,Ee,k[Ke],te);if(Ct===null){Ee===null&&(Ee=je);break}n&&Ee&&Ct.alternate===null&&o(I,Ee),q=S(Ct,q,Ke),vt===null?xe=Ct:vt.sibling=Ct,vt=Ct,Ee=je}if(Ke===k.length)return u(I,Ee),ct&&Ca(I,Ke),xe;if(Ee===null){for(;Ke<k.length;Ke++)Ee=ne(I,k[Ke],te),Ee!==null&&(q=S(Ee,q,Ke),vt===null?xe=Ee:vt.sibling=Ee,vt=Ee);return ct&&Ca(I,Ke),xe}for(Ee=d(Ee);Ke<k.length;Ke++)je=P(Ee,I,Ke,k[Ke],te),je!==null&&(n&&je.alternate!==null&&Ee.delete(je.key===null?Ke:je.key),q=S(je,q,Ke),vt===null?xe=je:vt.sibling=je,vt=je);return n&&Ee.forEach(function(ni){return o(I,ni)}),ct&&Ca(I,Ke),xe}function Ve(I,q,k,te){if(k==null)throw Error(r(151));for(var xe=null,vt=null,Ee=q,Ke=q=0,je=null,Ct=k.next();Ee!==null&&!Ct.done;Ke++,Ct=k.next()){Ee.index>Ke?(je=Ee,Ee=null):je=Ee.sibling;var ni=Q(I,Ee,Ct.value,te);if(ni===null){Ee===null&&(Ee=je);break}n&&Ee&&ni.alternate===null&&o(I,Ee),q=S(ni,q,Ke),vt===null?xe=ni:vt.sibling=ni,vt=ni,Ee=je}if(Ct.done)return u(I,Ee),ct&&Ca(I,Ke),xe;if(Ee===null){for(;!Ct.done;Ke++,Ct=k.next())Ct=ne(I,Ct.value,te),Ct!==null&&(q=S(Ct,q,Ke),vt===null?xe=Ct:vt.sibling=Ct,vt=Ct);return ct&&Ca(I,Ke),xe}for(Ee=d(Ee);!Ct.done;Ke++,Ct=k.next())Ct=P(Ee,I,Ke,Ct.value,te),Ct!==null&&(n&&Ct.alternate!==null&&Ee.delete(Ct.key===null?Ke:Ct.key),q=S(Ct,q,Ke),vt===null?xe=Ct:vt.sibling=Ct,vt=Ct);return n&&Ee.forEach(function(iS){return o(I,iS)}),ct&&Ca(I,Ke),xe}function Lt(I,q,k,te){if(typeof k=="object"&&k!==null&&k.type===ie&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case Z:e:{for(var xe=k.key;q!==null;){if(q.key===xe){if(xe=k.type,xe===ie){if(q.tag===7){u(I,q.sibling),te=v(q,k.props.children),te.return=I,I=te;break e}}else if(q.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===Ne&&jo(xe)===q.type){u(I,q.sibling),te=v(q,k.props),dr(te,k),te.return=I,I=te;break e}u(I,q);break}else o(I,q);q=q.sibling}k.type===ie?(te=fo(k.props.children,I.mode,te,k.key),te.return=I,I=te):(te=oh(k.type,k.key,k.props,null,I.mode,te),dr(te,k),te.return=I,I=te)}return M(I);case F:e:{for(xe=k.key;q!==null;){if(q.key===xe)if(q.tag===4&&q.stateNode.containerInfo===k.containerInfo&&q.stateNode.implementation===k.implementation){u(I,q.sibling),te=v(q,k.children||[]),te.return=I,I=te;break e}else{u(I,q);break}else o(I,q);q=q.sibling}te=uh(k,I.mode,te),te.return=I,I=te}return M(I);case Ne:return k=jo(k),Lt(I,q,k,te)}if(sn(k))return Se(I,q,k,te);if(tt(k)){if(xe=tt(k),typeof xe!="function")throw Error(r(150));return k=xe.call(k),Ve(I,q,k,te)}if(typeof k.then=="function")return Lt(I,q,tf(k),te);if(k.$$typeof===me)return Lt(I,q,mo(I,k),te);nf(I,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,q!==null&&q.tag===6?(u(I,q.sibling),te=v(q,k),te.return=I,I=te):(u(I,q),te=or(k,I.mode,te),te.return=I,I=te),M(I)):u(I,q)}return function(I,q,k,te){try{es=0;var xe=Lt(I,q,k,te);return tu=null,xe}catch(Ee){if(Ee===Wo||Ee===fr)throw Ee;var vt=cn(29,Ee,null,I.mode);return vt.lanes=te,vt.return=I,vt}finally{}}}var nu=t0(!0),eg=t0(!1),go=!1;function lf(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dh(n,o){n=n.updateQueue,o.updateQueue===n&&(o.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function yo(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Pl(n,o,u){var d=n.updateQueue;if(d===null)return null;if(d=d.shared,(Tt&2)!==0){var v=d.pending;return v===null?o.next=o:(o.next=v.next,v.next=o),d.pending=o,o=Xc(n),ih(n,null,u),o}return Ql(n,d,o,u),Xc(n)}function lu(n,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194048)!==0)){var d=o.lanes;d&=n.pendingLanes,u|=d,o.lanes=u,fi(n,u)}}function hh(n,o){var u=n.updateQueue,d=n.alternate;if(d!==null&&(d=d.updateQueue,u===d)){var v=null,S=null;if(u=u.firstBaseUpdate,u!==null){do{var M={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};S===null?v=S=M:S=S.next=M,u=u.next}while(u!==null);S===null?v=S=o:S=S.next=o}else v=S=o;u={baseState:d.baseState,firstBaseUpdate:v,lastBaseUpdate:S,shared:d.shared,callbacks:d.callbacks},n.updateQueue=u;return}n=u.lastBaseUpdate,n===null?u.firstBaseUpdate=o:n.next=o,u.lastBaseUpdate=o}var tg=!1;function au(){if(tg){var n=En;if(n!==null)throw n}}function Ai(n,o,u,d){tg=!1;var v=n.updateQueue;go=!1;var S=v.firstBaseUpdate,M=v.lastBaseUpdate,U=v.shared.pending;if(U!==null){v.shared.pending=null;var L=U,X=L.next;L.next=null,M===null?S=X:M.next=X,M=L;var W=n.alternate;W!==null&&(W=W.updateQueue,U=W.lastBaseUpdate,U!==M&&(U===null?W.firstBaseUpdate=X:U.next=X,W.lastBaseUpdate=L))}if(S!==null){var ne=v.baseState;M=0,W=X=L=null,U=S;do{var Q=U.lane&-536870913,P=Q!==U.lane;if(P?(ot&Q)===Q:(d&Q)===Q){Q!==0&&Q===Po&&(tg=!0),W!==null&&(W=W.next={lane:0,tag:U.tag,payload:U.payload,callback:null,next:null});e:{var Se=n,Ve=U;Q=o;var Lt=u;switch(Ve.tag){case 1:if(Se=Ve.payload,typeof Se=="function"){ne=Se.call(Lt,ne,Q);break e}ne=Se;break e;case 3:Se.flags=Se.flags&-65537|128;case 0:if(Se=Ve.payload,Q=typeof Se=="function"?Se.call(Lt,ne,Q):Se,Q==null)break e;ne=N({},ne,Q);break e;case 2:go=!0}}Q=U.callback,Q!==null&&(n.flags|=64,P&&(n.flags|=8192),P=v.callbacks,P===null?v.callbacks=[Q]:P.push(Q))}else P={lane:Q,tag:U.tag,payload:U.payload,callback:U.callback,next:null},W===null?(X=W=P,L=ne):W=W.next=P,M|=Q;if(U=U.next,U===null){if(U=v.shared.pending,U===null)break;P=U,U=P.next,P.next=null,v.lastBaseUpdate=P,v.shared.pending=null}}while(!0);W===null&&(L=ne),v.baseState=L,v.firstBaseUpdate=X,v.lastBaseUpdate=W,S===null&&(v.shared.lanes=0),Pa|=M,n.lanes=M,n.memoizedState=ne}}function mh(n,o){if(typeof n!="function")throw Error(r(191,n));n.call(o)}function iu(n,o){var u=n.callbacks;if(u!==null)for(n.callbacks=null,n=0;n<u.length;n++)mh(u[n],o)}var Dn=ee(null),ts=ee(0);function n0(n,o){n=$a,Ae(ts,n),Ae(Dn,o),$a=n|o.baseLanes}function af(){Ae(ts,$a),Ae(Dn,Dn.current)}function hr(){$a=ts.current,ve(Dn),ve(ts)}var vl=ee(null),Wl=null;function bi(n){var o=n.alternate;Ae($t,$t.current&1),Ae(vl,n),Wl===null&&(o===null||Dn.current!==null||o.memoizedState!==null)&&(Wl=n)}function mr(n){Ae($t,$t.current),Ae(vl,n),Wl===null&&(Wl=n)}function ph(n){n.tag===22?(Ae($t,$t.current),Ae(vl,n),Wl===null&&(Wl=n)):Xa()}function Xa(){Ae($t,$t.current),Ae(vl,vl.current)}function Sl(n){ve(vl),Wl===n&&(Wl=null),ve($t)}var $t=ee(0);function pr(n){for(var o=n;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Ma(u)||yu(u)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Mi=0,$e=null,Dt=null,vn=null,ns=!1,ls=!1,vo=!1,of=0,gr=0,ou=null,l0=0;function ln(){throw Error(r(321))}function So(n,o){if(o===null)return!1;for(var u=0;u<o.length&&u<n.length;u++)if(!al(n[u],o[u]))return!1;return!0}function uf(n,o,u,d,v,S){return Mi=S,$e=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,Y.H=n===null||n.memoizedState===null?f0:zh,vo=!1,S=u(d,v),vo=!1,ls&&(S=a0(o,u,d,v)),gh(n),S}function gh(n){Y.H=gf;var o=Dt!==null&&Dt.next!==null;if(Mi=0,vn=Dt=$e=null,ns=!1,gr=0,ou=null,o)throw Error(r(300));n===null||Sn||(n=n.dependencies,n!==null&&Fu(n)&&(Sn=!0))}function a0(n,o,u,d){$e=n;var v=0;do{if(ls&&(ou=null),gr=0,ls=!1,25<=v)throw Error(r(301));if(v+=1,vn=Dt=null,n.updateQueue!=null){var S=n.updateQueue;S.lastEffect=null,S.events=null,S.stores=null,S.memoCache!=null&&(S.memoCache.index=0)}Y.H=d0,S=o(u,d)}while(ls);return S}function BT(){var n=Y.H,o=n.useState()[0];return o=typeof o.then=="function"?is(o):o,n=n.useState()[0],(Dt!==null?Dt.memoizedState:null)!==n&&($e.flags|=1024),o}function yh(){var n=of!==0;return of=0,n}function as(n,o,u){o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~u}function sf(n){if(ns){for(n=n.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}ns=!1}Mi=0,vn=Dt=$e=null,ls=!1,gr=of=0,ou=null}function qn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vn===null?$e.memoizedState=vn=n:vn=vn.next=n,vn}function dn(){if(Dt===null){var n=$e.alternate;n=n!==null?n.memoizedState:null}else n=Dt.next;var o=vn===null?$e.memoizedState:vn.next;if(o!==null)vn=o,Dt=n;else{if(n===null)throw $e.alternate===null?Error(r(467)):Error(r(310));Dt=n,n={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},vn===null?$e.memoizedState=vn=n:vn=vn.next=n}return vn}function rf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function is(n){var o=gr;return gr+=1,ou===null&&(ou=[]),n=Wp(ou,n,o),o=$e,(vn===null?o.memoizedState:vn.next)===null&&(o=o.alternate,Y.H=o===null||o.memoizedState===null?f0:zh),n}function yr(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return is(n);if(n.$$typeof===me)return ae(n)}throw Error(r(438,String(n)))}function vh(n){var o=null,u=$e.updateQueue;if(u!==null&&(o=u.memoCache),o==null){var d=$e.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(o={data:d.data.map(function(v){return v.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=rf(),$e.updateQueue=u),u.memoCache=o,u=o.data[o.index],u===void 0)for(u=o.data[o.index]=Array(n),d=0;d<n;d++)u[d]=ue;return o.index++,u}function Ri(n,o){return typeof o=="function"?o(n):o}function Di(n){var o=dn();return Sh(o,Dt,n)}function Sh(n,o,u){var d=n.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=u;var v=n.baseQueue,S=d.pending;if(S!==null){if(v!==null){var M=v.next;v.next=S.next,S.next=M}o.baseQueue=v=S,d.pending=null}if(S=n.baseState,v===null)n.memoizedState=S;else{o=v.next;var U=M=null,L=null,X=o,W=!1;do{var ne=X.lane&-536870913;if(ne!==X.lane?(ot&ne)===ne:(Mi&ne)===ne){var Q=X.revertLane;if(Q===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),ne===Po&&(W=!0);else if((Mi&Q)===Q){X=X.next,Q===Po&&(W=!0);continue}else ne={lane:0,revertLane:X.revertLane,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},L===null?(U=L=ne,M=S):L=L.next=ne,$e.lanes|=Q,Pa|=Q;ne=X.action,vo&&u(S,ne),S=X.hasEagerState?X.eagerState:u(S,ne)}else Q={lane:ne,revertLane:X.revertLane,gesture:X.gesture,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},L===null?(U=L=Q,M=S):L=L.next=Q,$e.lanes|=ne,Pa|=ne;X=X.next}while(X!==null&&X!==o);if(L===null?M=S:L.next=U,!al(S,n.memoizedState)&&(Sn=!0,W&&(u=En,u!==null)))throw u;n.memoizedState=S,n.baseState=M,n.baseQueue=L,d.lastRenderedState=S}return v===null&&(d.lanes=0),[n.memoizedState,d.dispatch]}function Th(n){var o=dn(),u=o.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=n;var d=u.dispatch,v=u.pending,S=o.memoizedState;if(v!==null){u.pending=null;var M=v=v.next;do S=n(S,M.action),M=M.next;while(M!==v);al(S,o.memoizedState)||(Sn=!0),o.memoizedState=S,o.baseQueue===null&&(o.baseState=S),u.lastRenderedState=S}return[S,d]}function ng(n,o,u){var d=$e,v=dn(),S=ct;if(S){if(u===void 0)throw Error(r(407));u=u()}else u=o();var M=!al((Dt||v).memoizedState,u);if(M&&(v.memoizedState=u,Sn=!0),v=v.queue,bh(Ch.bind(null,d,v,n),[n]),v.getSnapshot!==o||M||vn!==null&&vn.memoizedState.tag&1){if(d.flags|=2048,us(9,{destroy:void 0},lg.bind(null,d,v,u,o),null),wt===null)throw Error(r(349));S||(Mi&127)!==0||cf(d,o,u)}return u}function cf(n,o,u){n.flags|=16384,n={getSnapshot:o,value:u},o=$e.updateQueue,o===null?(o=rf(),$e.updateQueue=o,o.stores=[n]):(u=o.stores,u===null?o.stores=[n]:u.push(n))}function lg(n,o,u,d){o.value=u,o.getSnapshot=d,Eh(o)&&_h(n)}function Ch(n,o,u){return u(function(){Eh(o)&&_h(n)})}function Eh(n){var o=n.getSnapshot;n=n.value;try{var u=o();return!al(n,u)}catch{return!0}}function _h(n){var o=ro(n,2);o!==null&&bl(o,n,2)}function ag(n){var o=qn();if(typeof n=="function"){var u=n;if(n=u(),vo){lo(!0);try{u()}finally{lo(!1)}}}return o.memoizedState=o.baseState=n,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:n},o}function Gn(n,o,u,d){return n.baseState=u,Sh(n,Dt,typeof d=="function"?d:Ri)}function i0(n,o,u,d,v){if(pf(n))throw Error(r(485));if(n=o.action,n!==null){var S={payload:v,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){S.listeners.push(M)}};Y.T!==null?u(!0):S.isTransition=!1,d(S),u=o.pending,u===null?(S.next=o.pending=S,ig(o,S)):(S.next=u.next,o.pending=u.next=S)}}function ig(n,o){var u=o.action,d=o.payload,v=n.state;if(o.isTransition){var S=Y.T,M={};Y.T=M;try{var U=u(v,d),L=Y.S;L!==null&&L(M,U),og(n,o,U)}catch(X){os(n,o,X)}finally{S!==null&&M.types!==null&&(S.types=M.types),Y.T=S}}else try{S=u(v,d),og(n,o,S)}catch(X){os(n,o,X)}}function og(n,o,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(d){ug(n,o,d)},function(d){return os(n,o,d)}):ug(n,o,u)}function ug(n,o,u){o.status="fulfilled",o.value=u,sg(o),n.state=u,o=n.pending,o!==null&&(u=o.next,u===o?n.pending=null:(u=u.next,o.next=u,ig(n,u)))}function os(n,o,u){var d=n.pending;if(n.pending=null,d!==null){d=d.next;do o.status="rejected",o.reason=u,sg(o),o=o.next;while(o!==d)}n.action=null}function sg(n){n=n.listeners;for(var o=0;o<n.length;o++)(0,n[o])()}function ff(n,o){return o}function rg(n,o){if(ct){var u=wt.formState;if(u!==null){e:{var d=$e;if(ct){if(Gt){t:{for(var v=Gt,S=Rn;v.nodeType!==8;){if(!S){v=null;break t}if(v=Ml(v.nextSibling),v===null){v=null;break t}}S=v.data,v=S==="F!"||S==="F"?v:null}if(v){Gt=Ml(v.nextSibling),d=v.data==="F!";break e}}Ea(d)}d=!1}d&&(o=u[0])}}return u=qn(),u.memoizedState=u.baseState=o,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ff,lastRenderedState:o},u.queue=d,u=Uh.bind(null,$e,d),d.dispatch=u,d=ag(!1),S=uu.bind(null,$e,!1,d.queue),d=qn(),v={state:o,dispatch:null,action:n,pending:null},d.queue=v,u=i0.bind(null,$e,v,S,u),v.dispatch=u,d.memoizedState=n,[o,u,!1]}function o0(n){var o=dn();return df(o,Dt,n)}function df(n,o,u){if(o=Sh(n,o,ff)[0],n=Di(Ri)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var d=is(o)}catch(M){throw M===Wo?fr:M}else d=o;o=dn();var v=o.queue,S=v.dispatch;return u!==o.memoizedState&&($e.flags|=2048,us(9,{destroy:void 0},cg.bind(null,v,u),null)),[d,S,n]}function cg(n,o){n.action=o}function fg(n){var o=dn(),u=Dt;if(u!==null)return df(o,u,n);dn(),o=o.memoizedState,u=dn();var d=u.queue.dispatch;return u.memoizedState=n,[o,d,!1]}function us(n,o,u,d){return n={tag:n,create:u,deps:d,inst:o,next:null},o=$e.updateQueue,o===null&&(o=rf(),$e.updateQueue=o),u=o.lastEffect,u===null?o.lastEffect=n.next=n:(d=u.next,u.next=n,n.next=d,o.lastEffect=n),n}function dg(){return dn().memoizedState}function vr(n,o,u,d){var v=qn();$e.flags|=n,v.memoizedState=us(1|o,{destroy:void 0},u,d===void 0?null:d)}function Sr(n,o,u,d){var v=dn();d=d===void 0?null:d;var S=v.memoizedState.inst;Dt!==null&&d!==null&&So(d,Dt.memoizedState.deps)?v.memoizedState=us(o,S,u,d):($e.flags|=n,v.memoizedState=us(1|o,S,u,d))}function Ah(n,o){vr(8390656,8,n,o)}function bh(n,o){Sr(2048,8,n,o)}function hg(n){$e.flags|=4;var o=$e.updateQueue;if(o===null)o=rf(),$e.updateQueue=o,o.events=[n];else{var u=o.events;u===null?o.events=[n]:u.push(n)}}function hf(n){var o=dn().memoizedState;return hg({ref:o,nextImpl:n}),function(){if((Tt&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function Mh(n,o){return Sr(4,2,n,o)}function mg(n,o){return Sr(4,4,n,o)}function Rh(n,o){if(typeof o=="function"){n=n();var u=o(n);return function(){typeof u=="function"?u():o(null)}}if(o!=null)return n=n(),o.current=n,function(){o.current=null}}function pg(n,o,u){u=u!=null?u.concat([n]):null,Sr(4,4,Rh.bind(null,o,n),u)}function Qa(){}function Dh(n,o){var u=dn();o=o===void 0?null:o;var d=u.memoizedState;return o!==null&&So(o,d[1])?d[0]:(u.memoizedState=[n,o],n)}function u0(n,o){var u=dn();o=o===void 0?null:o;var d=u.memoizedState;if(o!==null&&So(o,d[1]))return d[0];if(d=n(),vo){lo(!0);try{n()}finally{lo(!1)}}return u.memoizedState=[d,o],d}function mf(n,o,u){return u===void 0||(Mi&1073741824)!==0&&(ot&261930)===0?n.memoizedState=o:(n.memoizedState=u,n=E0(),$e.lanes|=n,Pa|=n,u)}function xi(n,o,u,d){return al(u,o)?u:Dn.current!==null?(n=mf(n,u,d),al(n,o)||(Sn=!0),n):(Mi&42)===0||(Mi&1073741824)!==0&&(ot&261930)===0?(Sn=!0,n.memoizedState=u):(n=E0(),$e.lanes|=n,Pa|=n,o)}function xh(n,o,u,d,v){var S=le.p;le.p=S!==0&&8>S?S:8;var M=Y.T,U={};Y.T=U,uu(n,!1,o,u);try{var L=v(),X=Y.S;if(X!==null&&X(U,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){var W=ef(L,d);To(n,o,W,Vl(n))}else To(n,o,d,Vl(n))}catch(ne){To(n,o,{then:function(){},status:"rejected",reason:ne},Vl())}finally{le.p=S,M!==null&&U.types!==null&&(M.types=U.types),Y.T=M}}function s0(){}function Tr(n,o,u,d){if(n.tag!==5)throw Error(r(476));var v=Cr(n).queue;xh(n,v,o,oe,u===null?s0:function(){return Ot(n),u(d)})}function Cr(n){var o=n.memoizedState;if(o!==null)return o;o={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:oe},next:null};var u={};return o.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:u},next:null},n.memoizedState=o,n=n.alternate,n!==null&&(n.memoizedState=o),o}function Ot(n){var o=Cr(n);o.next===null&&(o=n.alternate.memoizedState),To(n,o.next.queue,{},Vl())}function gg(){return ae(Zf)}function r0(){return dn().memoizedState}function yg(){return dn().memoizedState}function Ui(n){for(var o=n.return;o!==null;){switch(o.tag){case 24:case 3:var u=Vl();n=yo(u);var d=Pl(o,n,u);d!==null&&(bl(d,o,u),lu(d,o,u)),o={cache:$c()},n.payload=o;return}o=o.return}}function c0(n,o,u){var d=Vl();u={lane:d,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},pf(n)?Nh(o,u):(u=Ta(n,o,u,d),u!==null&&(bl(u,n,d),vg(u,o,d)))}function Uh(n,o,u){var d=Vl();To(n,o,u,d)}function To(n,o,u,d){var v={lane:d,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(pf(n))Nh(o,v);else{var S=n.alternate;if(n.lanes===0&&(S===null||S.lanes===0)&&(S=o.lastRenderedReducer,S!==null))try{var M=o.lastRenderedState,U=S(M,u);if(v.hasEagerState=!0,v.eagerState=U,al(U,M))return Ql(n,o,v,0),wt===null&&Xl(),!1}catch{}finally{}if(u=Ta(n,o,v,d),u!==null)return bl(u,n,d),vg(u,o,d),!0}return!1}function uu(n,o,u,d){if(d={lane:2,revertLane:lm(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},pf(n)){if(o)throw Error(r(479))}else o=Ta(n,u,d,2),o!==null&&bl(o,n,2)}function pf(n){var o=n.alternate;return n===$e||o!==null&&o===$e}function Nh(n,o){ls=ns=!0;var u=n.pending;u===null?o.next=o:(o.next=u.next,u.next=o),n.pending=o}function vg(n,o,u){if((u&4194048)!==0){var d=o.lanes;d&=n.pendingLanes,u|=d,o.lanes=u,fi(n,u)}}var gf={readContext:ae,use:yr,useCallback:ln,useContext:ln,useEffect:ln,useImperativeHandle:ln,useLayoutEffect:ln,useInsertionEffect:ln,useMemo:ln,useReducer:ln,useRef:ln,useState:ln,useDebugValue:ln,useDeferredValue:ln,useTransition:ln,useSyncExternalStore:ln,useId:ln,useHostTransitionStatus:ln,useFormState:ln,useActionState:ln,useOptimistic:ln,useMemoCache:ln,useCacheRefresh:ln};gf.useEffectEvent=ln;var f0={readContext:ae,use:yr,useCallback:function(n,o){return qn().memoizedState=[n,o===void 0?null:o],n},useContext:ae,useEffect:Ah,useImperativeHandle:function(n,o,u){u=u!=null?u.concat([n]):null,vr(4194308,4,Rh.bind(null,o,n),u)},useLayoutEffect:function(n,o){return vr(4194308,4,n,o)},useInsertionEffect:function(n,o){vr(4,2,n,o)},useMemo:function(n,o){var u=qn();o=o===void 0?null:o;var d=n();if(vo){lo(!0);try{n()}finally{lo(!1)}}return u.memoizedState=[d,o],d},useReducer:function(n,o,u){var d=qn();if(u!==void 0){var v=u(o);if(vo){lo(!0);try{u(o)}finally{lo(!1)}}}else v=o;return d.memoizedState=d.baseState=v,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:v},d.queue=n,n=n.dispatch=c0.bind(null,$e,n),[d.memoizedState,n]},useRef:function(n){var o=qn();return n={current:n},o.memoizedState=n},useState:function(n){n=ag(n);var o=n.queue,u=Uh.bind(null,$e,o);return o.dispatch=u,[n.memoizedState,u]},useDebugValue:Qa,useDeferredValue:function(n,o){var u=qn();return mf(u,n,o)},useTransition:function(){var n=ag(!1);return n=xh.bind(null,$e,n.queue,!0,!1),qn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,o,u){var d=$e,v=qn();if(ct){if(u===void 0)throw Error(r(407));u=u()}else{if(u=o(),wt===null)throw Error(r(349));(ot&127)!==0||cf(d,o,u)}v.memoizedState=u;var S={value:u,getSnapshot:o};return v.queue=S,Ah(Ch.bind(null,d,S,n),[n]),d.flags|=2048,us(9,{destroy:void 0},lg.bind(null,d,S,u,o),null),u},useId:function(){var n=qn(),o=wt.identifierPrefix;if(ct){var u=Ia,d=Nl;u=(d&~(1<<32-fl(d)-1)).toString(32)+u,o="_"+o+"R_"+u,u=of++,0<u&&(o+="H"+u.toString(32)),o+="_"}else u=l0++,o="_"+o+"r_"+u.toString(32)+"_";return n.memoizedState=o},useHostTransitionStatus:gg,useFormState:rg,useActionState:rg,useOptimistic:function(n){var o=qn();o.memoizedState=o.baseState=n;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=uu.bind(null,$e,!0,u),u.dispatch=o,[n,o]},useMemoCache:vh,useCacheRefresh:function(){return qn().memoizedState=Ui.bind(null,$e)},useEffectEvent:function(n){var o=qn(),u={impl:n};return o.memoizedState=u,function(){if((Tt&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},zh={readContext:ae,use:yr,useCallback:Dh,useContext:ae,useEffect:bh,useImperativeHandle:pg,useInsertionEffect:Mh,useLayoutEffect:mg,useMemo:u0,useReducer:Di,useRef:dg,useState:function(){return Di(Ri)},useDebugValue:Qa,useDeferredValue:function(n,o){var u=dn();return xi(u,Dt.memoizedState,n,o)},useTransition:function(){var n=Di(Ri)[0],o=dn().memoizedState;return[typeof n=="boolean"?n:is(n),o]},useSyncExternalStore:ng,useId:r0,useHostTransitionStatus:gg,useFormState:o0,useActionState:o0,useOptimistic:function(n,o){var u=dn();return Gn(u,Dt,n,o)},useMemoCache:vh,useCacheRefresh:yg};zh.useEffectEvent=hf;var d0={readContext:ae,use:yr,useCallback:Dh,useContext:ae,useEffect:bh,useImperativeHandle:pg,useInsertionEffect:Mh,useLayoutEffect:mg,useMemo:u0,useReducer:Th,useRef:dg,useState:function(){return Th(Ri)},useDebugValue:Qa,useDeferredValue:function(n,o){var u=dn();return Dt===null?mf(u,n,o):xi(u,Dt.memoizedState,n,o)},useTransition:function(){var n=Th(Ri)[0],o=dn().memoizedState;return[typeof n=="boolean"?n:is(n),o]},useSyncExternalStore:ng,useId:r0,useHostTransitionStatus:gg,useFormState:fg,useActionState:fg,useOptimistic:function(n,o){var u=dn();return Dt!==null?Gn(u,Dt,n,o):(u.baseState=n,[n,u.queue.dispatch])},useMemoCache:vh,useCacheRefresh:yg};d0.useEffectEvent=hf;function ss(n,o,u,d){o=n.memoizedState,u=u(d,o),u=u==null?o:N({},o,u),n.memoizedState=u,n.lanes===0&&(n.updateQueue.baseState=u)}var _a={enqueueSetState:function(n,o,u){n=n._reactInternals;var d=Vl(),v=yo(d);v.payload=o,u!=null&&(v.callback=u),o=Pl(n,v,d),o!==null&&(bl(o,n,d),lu(o,n,d))},enqueueReplaceState:function(n,o,u){n=n._reactInternals;var d=Vl(),v=yo(d);v.tag=1,v.payload=o,u!=null&&(v.callback=u),o=Pl(n,v,d),o!==null&&(bl(o,n,d),lu(o,n,d))},enqueueForceUpdate:function(n,o){n=n._reactInternals;var u=Vl(),d=yo(u);d.tag=2,o!=null&&(d.callback=o),o=Pl(n,d,u),o!==null&&(bl(o,n,u),lu(o,n,u))}};function Sg(n,o,u,d,v,S,M){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(d,S,M):o.prototype&&o.prototype.isPureReactComponent?!ya(u,d)||!ya(v,S):!0}function h0(n,o,u,d){n=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,d),o.state!==n&&_a.enqueueReplaceState(o,o.state,null)}function su(n,o){var u=o;if("ref"in o){u={};for(var d in o)d!=="ref"&&(u[d]=o[d])}if(n=n.defaultProps){u===o&&(u=N({},u));for(var v in n)u[v]===void 0&&(u[v]=n[v])}return u}function Oh(n){Qu(n)}function Tg(n){console.error(n)}function wh(n){Qu(n)}function Er(n,o){try{var u=n.onUncaughtError;u(o.value,{componentStack:o.stack})}catch(d){setTimeout(function(){throw d})}}function yf(n,o,u){try{var d=n.onCaughtError;d(u.value,{componentStack:u.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Cg(n,o,u){return u=yo(u),u.tag=3,u.payload={element:null},u.callback=function(){Er(n,o)},u}function Eg(n){return n=yo(n),n.tag=3,n}function _g(n,o,u,d){var v=u.type.getDerivedStateFromError;if(typeof v=="function"){var S=d.value;n.payload=function(){return v(S)},n.callback=function(){yf(o,u,d)}}var M=u.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(n.callback=function(){yf(o,u,d),typeof v!="function"&&(Pt===null?Pt=new Set([this]):Pt.add(this));var U=d.stack;this.componentDidCatch(d.value,{componentStack:U!==null?U:""})})}function qT(n,o,u,d,v){if(u.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(o=u.alternate,o!==null&&Bn(o,u,v,!0),u=vl.current,u!==null){switch(u.tag){case 31:case 13:return Wl===null?jh():u.alternate===null&&It===0&&(It=3),u.flags&=-257,u.flags|=65536,u.lanes=v,d===ju?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([d]):o.add(d),Nf(n,d,v)),!1;case 22:return u.flags|=65536,d===ju?u.flags|=16384:(o=u.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([d])},u.updateQueue=o):(u=o.retryQueue,u===null?o.retryQueue=new Set([d]):u.add(d)),Nf(n,d,v)),!1}throw Error(r(435,u.tag))}return Nf(n,d,v),jh(),!1}if(ct)return o=vl.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=v,d!==Ci&&(n=Error(r(422),{cause:d}),rr(Jl(n,u)))):(d!==Ci&&(o=Error(r(423),{cause:d}),rr(Jl(o,u))),n=n.current.alternate,n.flags|=65536,v&=-v,n.lanes|=v,d=Jl(d,u),v=Cg(n.stateNode,d,v),hh(n,v),It!==4&&(It=2)),!1;var S=Error(r(520),{cause:d});if(S=Jl(S,u),Rf===null?Rf=[S]:Rf.push(S),It!==4&&(It=2),o===null)return!0;d=Jl(d,u),u=o;do{switch(u.tag){case 3:return u.flags|=65536,n=v&-v,u.lanes|=n,n=Cg(u.stateNode,d,n),hh(u,n),!1;case 1:if(o=u.type,S=u.stateNode,(u.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Pt===null||!Pt.has(S))))return u.flags|=65536,v&=-v,u.lanes|=v,v=Eg(v),_g(v,n,u,d),hh(u,v),!1}u=u.return}while(u!==null);return!1}var Vh=Error(r(461)),Sn=!1;function Qt(n,o,u,d){o.child=n===null?eg(o,null,u,d):nu(o,n.child,u,d)}function Ag(n,o,u,d,v){u=u.render;var S=o.ref;if("ref"in d){var M={};for(var U in d)U!=="ref"&&(M[U]=d[U])}else M=d;return ke(o),d=uf(n,o,u,M,S,v),U=yh(),n!==null&&!Sn?(as(n,o,v),ta(n,o,v)):(ct&&U&&ur(o),o.flags|=1,Qt(n,o,d,v),o.child)}function bg(n,o,u,d,v){if(n===null){var S=u.type;return typeof S=="function"&&!Ju(S)&&S.defaultProps===void 0&&u.compare===null?(o.tag=15,o.type=S,Mg(n,o,S,d,v)):(n=oh(u.type,null,d,o,o.mode,v),n.ref=o.ref,n.return=o,o.child=n)}if(S=n.child,!Bh(n,v)){var M=S.memoizedProps;if(u=u.compare,u=u!==null?u:ya,u(M,d)&&n.ref===o.ref)return ta(n,o,v)}return o.flags|=1,n=co(S,d),n.ref=o.ref,n.return=o,o.child=n}function Mg(n,o,u,d,v){if(n!==null){var S=n.memoizedProps;if(ya(S,d)&&n.ref===o.ref)if(Sn=!1,o.pendingProps=d=S,Bh(n,v))(n.flags&131072)!==0&&(Sn=!0);else return o.lanes=n.lanes,ta(n,o,v)}return Lh(n,o,u,d,v)}function m0(n,o,u,d){var v=d.children,S=n!==null?n.memoizedState:null;if(n===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((o.flags&128)!==0){if(S=S!==null?S.baseLanes|u:u,n!==null){for(d=o.child=n.child,v=0;d!==null;)v=v|d.lanes|d.childLanes,d=d.sibling;d=v&~S}else d=0,o.child=null;return Tl(n,o,S,u,d)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},n!==null&&cr(o,S!==null?S.cachePool:null),S!==null?n0(o,S):af(),ph(o);else return d=o.lanes=536870912,Tl(n,o,S!==null?S.baseLanes|u:u,u,d)}else S!==null?(cr(o,S.cachePool),n0(o,S),Xa(),o.memoizedState=null):(n!==null&&cr(o,null),af(),Xa());return Qt(n,o,v,u),o.child}function ru(n,o){return n!==null&&n.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function Tl(n,o,u,d,v){var S=$l();return S=S===null?null:{parent:yn._currentValue,pool:S},o.memoizedState={baseLanes:u,cachePool:S},n!==null&&cr(o,null),af(),ph(o),n!==null&&Bn(n,o,d,!0),o.childLanes=v,null}function vf(n,o){return o=Cf({mode:o.mode,children:o.children},n.mode),o.ref=n.ref,n.child=o,o.return=n,o}function Cl(n,o,u){return nu(o,n.child,null,u),n=vf(o,o.pendingProps),n.flags|=2,Sl(o),o.memoizedState=null,n}function p0(n,o,u){var d=o.pendingProps,v=(o.flags&128)!==0;if(o.flags&=-129,n===null){if(ct){if(d.mode==="hidden")return n=vf(o,d),o.lanes=536870912,ru(null,n);if(mr(o),(n=Gt)?(n=$0(n,Rn),n=n!==null&&n.data==="&"?n:null,n!==null&&(o.memoizedState={dehydrated:n,treeContext:Ya!==null?{id:Nl,overflow:Ia}:null,retryLane:536870912,hydrationErrors:null},u=Xp(n),u.return=o,o.child=u,Hn=o,Gt=null)):n=null,n===null)throw Ea(o);return o.lanes=536870912,null}return vf(o,d)}var S=n.memoizedState;if(S!==null){var M=S.dehydrated;if(mr(o),v)if(o.flags&256)o.flags&=-257,o=Cl(n,o,u);else if(o.memoizedState!==null)o.child=n.child,o.flags|=128,o=null;else throw Error(r(558));else if(Sn||Bn(n,o,u,!1),v=(u&n.childLanes)!==0,Sn||v){if(d=wt,d!==null&&(M=Il(d,u),M!==0&&M!==S.retryLane))throw S.retryLane=M,ro(n,M),bl(d,n,M),Vh;jh(),o=Cl(n,o,u)}else n=S.treeContext,Gt=Ml(M.nextSibling),Hn=o,ct=!0,Ti=null,Rn=!1,n!==null&&Jc(o,n),o=vf(o,d),o.flags|=4096;return o}return n=co(n.child,{mode:d.mode,children:d.children}),n.ref=o.ref,o.child=n,n.return=o,n}function jl(n,o){var u=o.ref;if(u===null)n!==null&&n.ref!==null&&(o.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(n===null||n.ref!==u)&&(o.flags|=4194816)}}function Lh(n,o,u,d,v){return ke(o),u=uf(n,o,u,d,void 0,v),d=yh(),n!==null&&!Sn?(as(n,o,v),ta(n,o,v)):(ct&&d&&ur(o),o.flags|=1,Qt(n,o,u,v),o.child)}function cu(n,o,u,d,v,S){return ke(o),o.updateQueue=null,u=a0(o,d,u,v),gh(n),d=yh(),n!==null&&!Sn?(as(n,o,S),ta(n,o,S)):(ct&&d&&ur(o),o.flags|=1,Qt(n,o,u,S),o.child)}function Rg(n,o,u,d,v){if(ke(o),o.stateNode===null){var S=pl,M=u.contextType;typeof M=="object"&&M!==null&&(S=ae(M)),S=new u(d,S),o.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,S.updater=_a,o.stateNode=S,S._reactInternals=o,S=o.stateNode,S.props=d,S.state=o.memoizedState,S.refs={},lf(o),M=u.contextType,S.context=typeof M=="object"&&M!==null?ae(M):pl,S.state=o.memoizedState,M=u.getDerivedStateFromProps,typeof M=="function"&&(ss(o,u,M,d),S.state=o.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(M=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),M!==S.state&&_a.enqueueReplaceState(S,S.state,null),Ai(o,d,S,v),au(),S.state=o.memoizedState),typeof S.componentDidMount=="function"&&(o.flags|=4194308),d=!0}else if(n===null){S=o.stateNode;var U=o.memoizedProps,L=su(u,U);S.props=L;var X=S.context,W=u.contextType;M=pl,typeof W=="object"&&W!==null&&(M=ae(W));var ne=u.getDerivedStateFromProps;W=typeof ne=="function"||typeof S.getSnapshotBeforeUpdate=="function",U=o.pendingProps!==U,W||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(U||X!==M)&&h0(o,S,d,M),go=!1;var Q=o.memoizedState;S.state=Q,Ai(o,d,S,v),au(),X=o.memoizedState,U||Q!==X||go?(typeof ne=="function"&&(ss(o,u,ne,d),X=o.memoizedState),(L=go||Sg(o,u,L,d,Q,X,M))?(W||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(o.flags|=4194308)):(typeof S.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=X),S.props=d,S.state=X,S.context=M,d=L):(typeof S.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{S=o.stateNode,dh(n,o),M=o.memoizedProps,W=su(u,M),S.props=W,ne=o.pendingProps,Q=S.context,X=u.contextType,L=pl,typeof X=="object"&&X!==null&&(L=ae(X)),U=u.getDerivedStateFromProps,(X=typeof U=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(M!==ne||Q!==L)&&h0(o,S,d,L),go=!1,Q=o.memoizedState,S.state=Q,Ai(o,d,S,v),au();var P=o.memoizedState;M!==ne||Q!==P||go||n!==null&&n.dependencies!==null&&Fu(n.dependencies)?(typeof U=="function"&&(ss(o,u,U,d),P=o.memoizedState),(W=go||Sg(o,u,W,d,Q,P,L)||n!==null&&n.dependencies!==null&&Fu(n.dependencies))?(X||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(d,P,L),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(d,P,L)),typeof S.componentDidUpdate=="function"&&(o.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof S.componentDidUpdate!="function"||M===n.memoizedProps&&Q===n.memoizedState||(o.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||M===n.memoizedProps&&Q===n.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=P),S.props=d,S.state=P,S.context=L,d=W):(typeof S.componentDidUpdate!="function"||M===n.memoizedProps&&Q===n.memoizedState||(o.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||M===n.memoizedProps&&Q===n.memoizedState||(o.flags|=1024),d=!1)}return S=d,jl(n,o),d=(o.flags&128)!==0,S||d?(S=o.stateNode,u=d&&typeof u.getDerivedStateFromError!="function"?null:S.render(),o.flags|=1,n!==null&&d?(o.child=nu(o,n.child,null,v),o.child=nu(o,null,u,v)):Qt(n,o,u,v),o.memoizedState=S.state,n=o.child):n=ta(n,o,v),n}function Ja(n,o,u,d){return $o(),o.flags|=256,Qt(n,o,u,d),o.child}var Sf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tf(n){return{baseLanes:n,cachePool:Pu()}}function ea(n,o,u){return n=n!==null?n.childLanes&~u:0,o&&(n|=Al),n}function Dg(n,o,u){var d=o.pendingProps,v=!1,S=(o.flags&128)!==0,M;if((M=S)||(M=n!==null&&n.memoizedState===null?!1:($t.current&2)!==0),M&&(v=!0,o.flags&=-129),M=(o.flags&32)!==0,o.flags&=-33,n===null){if(ct){if(v?bi(o):Xa(),(n=Gt)?(n=$0(n,Rn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(o.memoizedState={dehydrated:n,treeContext:Ya!==null?{id:Nl,overflow:Ia}:null,retryLane:536870912,hydrationErrors:null},u=Xp(n),u.return=o,o.child=u,Hn=o,Gt=null)):n=null,n===null)throw Ea(o);return yu(n)?o.lanes=32:o.lanes=536870912,null}var U=d.children;return d=d.fallback,v?(Xa(),v=o.mode,U=Cf({mode:"hidden",children:U},v),d=fo(d,v,u,null),U.return=o,d.return=o,U.sibling=d,o.child=U,d=o.child,d.memoizedState=Tf(u),d.childLanes=ea(n,M,u),o.memoizedState=Sf,ru(null,d)):(bi(o),fu(o,U))}var L=n.memoizedState;if(L!==null&&(U=L.dehydrated,U!==null)){if(S)o.flags&256?(bi(o),o.flags&=-257,o=rs(n,o,u)):o.memoizedState!==null?(Xa(),o.child=n.child,o.flags|=128,o=null):(Xa(),U=d.fallback,v=o.mode,d=Cf({mode:"visible",children:d.children},v),U=fo(U,v,u,null),U.flags|=2,d.return=o,U.return=o,d.sibling=U,o.child=d,nu(o,n.child,null,u),d=o.child,d.memoizedState=Tf(u),d.childLanes=ea(n,M,u),o.memoizedState=Sf,o=ru(null,d));else if(bi(o),yu(U)){if(M=U.nextSibling&&U.nextSibling.dataset,M)var X=M.dgst;M=X,d=Error(r(419)),d.stack="",d.digest=M,rr({value:d,source:null,stack:null}),o=rs(n,o,u)}else if(Sn||Bn(n,o,u,!1),M=(u&n.childLanes)!==0,Sn||M){if(M=wt,M!==null&&(d=Il(M,u),d!==0&&d!==L.retryLane))throw L.retryLane=d,ro(n,d),bl(M,n,d),Vh;Ma(U)||jh(),o=rs(n,o,u)}else Ma(U)?(o.flags|=192,o.child=n.child,o=null):(n=L.treeContext,Gt=Ml(U.nextSibling),Hn=o,ct=!0,Ti=null,Rn=!1,n!==null&&Jc(o,n),o=fu(o,d.children),o.flags|=4096);return o}return v?(Xa(),U=d.fallback,v=o.mode,L=n.child,X=L.sibling,d=co(L,{mode:"hidden",children:d.children}),d.subtreeFlags=L.subtreeFlags&65011712,X!==null?U=co(X,U):(U=fo(U,v,u,null),U.flags|=2),U.return=o,d.return=o,d.sibling=U,o.child=d,ru(null,d),d=o.child,U=n.child.memoizedState,U===null?U=Tf(u):(v=U.cachePool,v!==null?(L=yn._currentValue,v=v.parent!==L?{parent:L,pool:L}:v):v=Pu(),U={baseLanes:U.baseLanes|u,cachePool:v}),d.memoizedState=U,d.childLanes=ea(n,M,u),o.memoizedState=Sf,ru(n.child,d)):(bi(o),u=n.child,n=u.sibling,u=co(u,{mode:"visible",children:d.children}),u.return=o,u.sibling=null,n!==null&&(M=o.deletions,M===null?(o.deletions=[n],o.flags|=16):M.push(n)),o.child=u,o.memoizedState=null,u)}function fu(n,o){return o=Cf({mode:"visible",children:o},n.mode),o.return=n,n.child=o}function Cf(n,o){return n=cn(22,n,null,o),n.lanes=0,n}function rs(n,o,u){return nu(o,n.child,null,u),n=fu(o,o.pendingProps.children),n.flags|=2,o.memoizedState=null,n}function cs(n,o,u){n.lanes|=o;var d=n.alternate;d!==null&&(d.lanes|=o),ch(n.return,o,u)}function Hh(n,o,u,d,v,S){var M=n.memoizedState;M===null?n.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:u,tailMode:v,treeForkCount:S}:(M.isBackwards=o,M.rendering=null,M.renderingStartTime=0,M.last=d,M.tail=u,M.tailMode=v,M.treeForkCount=S)}function xg(n,o,u){var d=o.pendingProps,v=d.revealOrder,S=d.tail;d=d.children;var M=$t.current,U=(M&2)!==0;if(U?(M=M&1|2,o.flags|=128):M&=1,Ae($t,M),Qt(n,o,d,u),d=ct?gn:0,!U&&n!==null&&(n.flags&128)!==0)e:for(n=o.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&cs(n,u,o);else if(n.tag===19)cs(n,u,o);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===o)break e;for(;n.sibling===null;){if(n.return===null||n.return===o)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(v){case"forwards":for(u=o.child,v=null;u!==null;)n=u.alternate,n!==null&&pr(n)===null&&(v=u),u=u.sibling;u=v,u===null?(v=o.child,o.child=null):(v=u.sibling,u.sibling=null),Hh(o,!1,v,u,S,d);break;case"backwards":case"unstable_legacy-backwards":for(u=null,v=o.child,o.child=null;v!==null;){if(n=v.alternate,n!==null&&pr(n)===null){o.child=v;break}n=v.sibling,v.sibling=u,u=v,v=n}Hh(o,!0,u,null,S,d);break;case"together":Hh(o,!1,null,null,void 0,d);break;default:o.memoizedState=null}return o.child}function ta(n,o,u){if(n!==null&&(o.dependencies=n.dependencies),Pa|=o.lanes,(u&o.childLanes)===0)if(n!==null){if(Bn(n,o,u,!1),(u&o.childLanes)===0)return null}else return null;if(n!==null&&o.child!==n.child)throw Error(r(153));if(o.child!==null){for(n=o.child,u=co(n,n.pendingProps),o.child=u,u.return=o;n.sibling!==null;)n=n.sibling,u=u.sibling=co(n,n.pendingProps),u.return=o;u.sibling=null}return o.child}function Bh(n,o){return(n.lanes&o)!==0?!0:(n=n.dependencies,!!(n!==null&&Fu(n)))}function qh(n,o,u){switch(o.tag){case 3:ha(o,o.stateNode.containerInfo),yl(o,yn,n.memoizedState.cache),$o();break;case 27:case 5:Mc(o);break;case 4:ha(o,o.stateNode.containerInfo);break;case 10:yl(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,mr(o),null;break;case 13:var d=o.memoizedState;if(d!==null)return d.dehydrated!==null?(bi(o),o.flags|=128,null):(u&o.child.childLanes)!==0?Dg(n,o,u):(bi(o),n=ta(n,o,u),n!==null?n.sibling:null);bi(o);break;case 19:var v=(n.flags&128)!==0;if(d=(u&o.childLanes)!==0,d||(Bn(n,o,u,!1),d=(u&o.childLanes)!==0),v){if(d)return xg(n,o,u);o.flags|=128}if(v=o.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),Ae($t,$t.current),d)break;return null;case 22:return o.lanes=0,m0(n,o,u,o.pendingProps);case 24:yl(o,yn,n.memoizedState.cache)}return ta(n,o,u)}function Ug(n,o,u){if(n!==null)if(n.memoizedProps!==o.pendingProps)Sn=!0;else{if(!Bh(n,u)&&(o.flags&128)===0)return Sn=!1,qh(n,o,u);Sn=(n.flags&131072)!==0}else Sn=!1,ct&&(o.flags&1048576)!==0&&Jp(o,gn,o.index);switch(o.lanes=0,o.tag){case 16:e:{var d=o.pendingProps;if(n=jo(o.elementType),o.type=n,typeof n=="function")Ju(n)?(d=su(n,d),o.tag=1,o=Rg(null,o,n,d,u)):(o.tag=0,o=Lh(null,o,n,d,u));else{if(n!=null){var v=n.$$typeof;if(v===Te){o.tag=11,o=Ag(null,o,n,d,u);break e}else if(v===Be){o.tag=14,o=bg(null,o,n,d,u);break e}}throw o=Bt(n)||n,Error(r(306,o,""))}}return o;case 0:return Lh(n,o,o.type,o.pendingProps,u);case 1:return d=o.type,v=su(d,o.pendingProps),Rg(n,o,d,v,u);case 3:e:{if(ha(o,o.stateNode.containerInfo),n===null)throw Error(r(387));d=o.pendingProps;var S=o.memoizedState;v=S.element,dh(n,o),Ai(o,d,null,u);var M=o.memoizedState;if(d=M.cache,yl(o,yn,d),d!==S.cache&&_i(o,[yn],u,!0),au(),d=M.element,S.isDehydrated)if(S={element:d,isDehydrated:!1,cache:M.cache},o.updateQueue.baseState=S,o.memoizedState=S,o.flags&256){o=Ja(n,o,d,u);break e}else if(d!==v){v=Jl(Error(r(424)),o),rr(v),o=Ja(n,o,d,u);break e}else{switch(n=o.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Gt=Ml(n.firstChild),Hn=o,ct=!0,Ti=null,Rn=!0,u=eg(o,null,d,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if($o(),d===v){o=ta(n,o,u);break e}Qt(n,o,d,u)}o=o.child}return o;case 26:return jl(n,o),n===null?(u=kr(o.type,null,o.pendingProps,null))?o.memoizedState=u:ct||(u=o.type,n=o.pendingProps,d=gu(da.current).createElement(u),d[zt]=o,d[dl]=n,Wn(d,u,n),Mt(d),o.stateNode=d):o.memoizedState=kr(o.type,n.memoizedProps,o.pendingProps,n.memoizedState),null;case 27:return Mc(o),n===null&&ct&&(d=o.stateNode=Ir(o.type,o.pendingProps,da.current),Hn=o,Rn=!0,v=Gt,ja(o.type)?(Gf=v,Gt=Ml(d.firstChild)):Gt=v),Qt(n,o,o.pendingProps.children,u),jl(n,o),n===null&&(o.flags|=4194304),o.child;case 5:return n===null&&ct&&((v=d=Gt)&&(d=IT(d,o.type,o.pendingProps,Rn),d!==null?(o.stateNode=d,Hn=o,Gt=Ml(d.firstChild),Rn=!1,v=!0):v=!1),v||Ea(o)),Mc(o),v=o.type,S=o.pendingProps,M=n!==null?n.memoizedProps:null,d=S.children,Gr(v,S)?d=null:M!==null&&Gr(v,M)&&(o.flags|=32),o.memoizedState!==null&&(v=uf(n,o,BT,null,null,u),Zf._currentValue=v),jl(n,o),Qt(n,o,d,u),o.child;case 6:return n===null&&ct&&((n=u=Gt)&&(u=nt(u,o.pendingProps,Rn),u!==null?(o.stateNode=u,Hn=o,Gt=null,n=!0):n=!1),n||Ea(o)),null;case 13:return Dg(n,o,u);case 4:return ha(o,o.stateNode.containerInfo),d=o.pendingProps,n===null?o.child=nu(o,null,d,u):Qt(n,o,d,u),o.child;case 11:return Ag(n,o,o.type,o.pendingProps,u);case 7:return Qt(n,o,o.pendingProps,u),o.child;case 8:return Qt(n,o,o.pendingProps.children,u),o.child;case 12:return Qt(n,o,o.pendingProps.children,u),o.child;case 10:return d=o.pendingProps,yl(o,o.type,d.value),Qt(n,o,d.children,u),o.child;case 9:return v=o.type._context,d=o.pendingProps.children,ke(o),v=ae(v),d=d(v),o.flags|=1,Qt(n,o,d,u),o.child;case 14:return bg(n,o,o.type,o.pendingProps,u);case 15:return Mg(n,o,o.type,o.pendingProps,u);case 19:return xg(n,o,u);case 31:return p0(n,o,u);case 22:return m0(n,o,u,o.pendingProps);case 24:return ke(o),d=ae(yn),n===null?(v=$l(),v===null&&(v=wt,S=$c(),v.pooledCache=S,S.refCount++,S!==null&&(v.pooledCacheLanes|=u),v=S),o.memoizedState={parent:d,cache:v},lf(o),yl(o,yn,v)):((n.lanes&u)!==0&&(dh(n,o),Ai(o,null,null,u),au()),v=n.memoizedState,S=o.memoizedState,v.parent!==d?(v={parent:d,cache:d},o.memoizedState=v,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=v),yl(o,yn,d)):(d=S.cache,yl(o,yn,d),d!==v.cache&&_i(o,[yn],u,!0))),Qt(n,o,o.pendingProps.children,u),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function Ni(n){n.flags|=4}function Ng(n,o,u,d,v){if((o=(n.mode&32)!==0)&&(o=!1),o){if(n.flags|=16777216,(v&335544128)===v)if(n.stateNode.complete)n.flags|=8192;else if(b0())n.flags|=8192;else throw eu=ju,Wu}else n.flags&=-16777217}function zg(n,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Hl(o))if(b0())n.flags|=8192;else throw eu=ju,Wu}function il(n,o){o!==null&&(n.flags|=4),n.flags&16384&&(o=n.tag!==22?Uu():536870912,n.lanes|=o,an|=o)}function _r(n,o){if(!ct)switch(n.tailMode){case"hidden":o=n.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?n.tail=null:u.sibling=null;break;case"collapsed":u=n.tail;for(var d=null;u!==null;)u.alternate!==null&&(d=u),u=u.sibling;d===null?o||n.tail===null?n.tail=null:n.tail.sibling=null:d.sibling=null}}function Ye(n){var o=n.alternate!==null&&n.alternate.child===n.child,u=0,d=0;if(o)for(var v=n.child;v!==null;)u|=v.lanes|v.childLanes,d|=v.subtreeFlags&65011712,d|=v.flags&65011712,v.return=n,v=v.sibling;else for(v=n.child;v!==null;)u|=v.lanes|v.childLanes,d|=v.subtreeFlags,d|=v.flags,v.return=n,v=v.sibling;return n.subtreeFlags|=d,n.childLanes=u,o}function g0(n,o,u){var d=o.pendingProps;switch(sh(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(o),null;case 1:return Ye(o),null;case 3:return u=o.stateNode,d=null,n!==null&&(d=n.memoizedState.cache),o.memoizedState.cache!==d&&(o.flags|=2048),ka(yn),Yl(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(Ei(o)?Ni(o):n===null||n.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Kp())),Ye(o),null;case 26:var v=o.type,S=o.memoizedState;return n===null?(Ni(o),S!==null?(Ye(o),zg(o,S)):(Ye(o),Ng(o,v,null,d,u))):S?S!==n.memoizedState?(Ni(o),Ye(o),zg(o,S)):(Ye(o),o.flags&=-16777217):(n=n.memoizedProps,n!==d&&Ni(o),Ye(o),Ng(o,v,n,d,u)),null;case 27:if(ye(o),u=da.current,v=o.type,n!==null&&o.stateNode!=null)n.memoizedProps!==d&&Ni(o);else{if(!d){if(o.stateNode===null)throw Error(r(166));return Ye(o),null}n=Me.current,Ei(o)?Kc(o):(n=Ir(v,d,u),o.stateNode=n,Ni(o))}return Ye(o),null;case 5:if(ye(o),v=o.type,n!==null&&o.stateNode!=null)n.memoizedProps!==d&&Ni(o);else{if(!d){if(o.stateNode===null)throw Error(r(166));return Ye(o),null}if(S=Me.current,Ei(o))Kc(o);else{var M=gu(da.current);switch(S){case 1:S=M.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:S=M.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":S=M.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":S=M.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":S=M.createElement("div"),S.innerHTML="<script><\/script>",S=S.removeChild(S.firstChild);break;case"select":S=typeof d.is=="string"?M.createElement("select",{is:d.is}):M.createElement("select"),d.multiple?S.multiple=!0:d.size&&(S.size=d.size);break;default:S=typeof d.is=="string"?M.createElement(v,{is:d.is}):M.createElement(v)}}S[zt]=o,S[dl]=d;e:for(M=o.child;M!==null;){if(M.tag===5||M.tag===6)S.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===o)break e;for(;M.sibling===null;){if(M.return===null||M.return===o)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}o.stateNode=S;e:switch(Wn(S,v,d),v){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&Ni(o)}}return Ye(o),Ng(o,o.type,n===null?null:n.memoizedProps,o.pendingProps,u),null;case 6:if(n&&o.stateNode!=null)n.memoizedProps!==d&&Ni(o);else{if(typeof d!="string"&&o.stateNode===null)throw Error(r(166));if(n=da.current,Ei(o)){if(n=o.stateNode,u=o.memoizedProps,d=null,v=Hn,v!==null)switch(v.tag){case 27:case 5:d=v.memoizedProps}n[zt]=o,n=!!(n.nodeValue===u||d!==null&&d.suppressHydrationWarning===!0||ny(n.nodeValue,u)),n||Ea(o,!0)}else n=gu(n).createTextNode(d),n[zt]=o,o.stateNode=n}return Ye(o),null;case 31:if(u=o.memoizedState,n===null||n.memoizedState!==null){if(d=Ei(o),u!==null){if(n===null){if(!d)throw Error(r(318));if(n=o.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(557));n[zt]=o}else $o(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Ye(o),n=!1}else u=Kp(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=u),n=!0;if(!n)return o.flags&256?(Sl(o),o):(Sl(o),null);if((o.flags&128)!==0)throw Error(r(558))}return Ye(o),null;case 13:if(d=o.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(v=Ei(o),d!==null&&d.dehydrated!==null){if(n===null){if(!v)throw Error(r(318));if(v=o.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[zt]=o}else $o(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Ye(o),v=!1}else v=Kp(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=v),v=!0;if(!v)return o.flags&256?(Sl(o),o):(Sl(o),null)}return Sl(o),(o.flags&128)!==0?(o.lanes=u,o):(u=d!==null,n=n!==null&&n.memoizedState!==null,u&&(d=o.child,v=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(v=d.alternate.memoizedState.cachePool.pool),S=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(S=d.memoizedState.cachePool.pool),S!==v&&(d.flags|=2048)),u!==n&&u&&(o.child.flags|=8192),il(o,o.updateQueue),Ye(o),null);case 4:return Yl(),n===null&&qr(o.stateNode.containerInfo),Ye(o),null;case 10:return ka(o.type),Ye(o),null;case 19:if(ve($t),d=o.memoizedState,d===null)return Ye(o),null;if(v=(o.flags&128)!==0,S=d.rendering,S===null)if(v)_r(d,!1);else{if(It!==0||n!==null&&(n.flags&128)!==0)for(n=o.child;n!==null;){if(S=pr(n),S!==null){for(o.flags|=128,_r(d,!1),n=S.updateQueue,o.updateQueue=n,il(o,n),o.subtreeFlags=0,n=u,u=o.child;u!==null;)kp(u,n),u=u.sibling;return Ae($t,$t.current&1|2),ct&&Ca(o,d.treeForkCount),o.child}n=n.sibling}d.tail!==null&&$n()>_t&&(o.flags|=128,v=!0,_r(d,!1),o.lanes=4194304)}else{if(!v)if(n=pr(S),n!==null){if(o.flags|=128,v=!0,n=n.updateQueue,o.updateQueue=n,il(o,n),_r(d,!0),d.tail===null&&d.tailMode==="hidden"&&!S.alternate&&!ct)return Ye(o),null}else 2*$n()-d.renderingStartTime>_t&&u!==536870912&&(o.flags|=128,v=!0,_r(d,!1),o.lanes=4194304);d.isBackwards?(S.sibling=o.child,o.child=S):(n=d.last,n!==null?n.sibling=S:o.child=S,d.last=S)}return d.tail!==null?(n=d.tail,d.rendering=n,d.tail=n.sibling,d.renderingStartTime=$n(),n.sibling=null,u=$t.current,Ae($t,v?u&1|2:u&1),ct&&Ca(o,d.treeForkCount),n):(Ye(o),null);case 22:case 23:return Sl(o),hr(),d=o.memoizedState!==null,n!==null?n.memoizedState!==null!==d&&(o.flags|=8192):d&&(o.flags|=8192),d?(u&536870912)!==0&&(o.flags&128)===0&&(Ye(o),o.subtreeFlags&6&&(o.flags|=8192)):Ye(o),u=o.updateQueue,u!==null&&il(o,u.retryQueue),u=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),d=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==u&&(o.flags|=2048),n!==null&&ve(Fl),null;case 24:return u=null,n!==null&&(u=n.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),ka(yn),Ye(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function y0(n,o){switch(sh(o),o.tag){case 1:return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 3:return ka(yn),Yl(),n=o.flags,(n&65536)!==0&&(n&128)===0?(o.flags=n&-65537|128,o):null;case 26:case 27:case 5:return ye(o),null;case 31:if(o.memoizedState!==null){if(Sl(o),o.alternate===null)throw Error(r(340));$o()}return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 13:if(Sl(o),n=o.memoizedState,n!==null&&n.dehydrated!==null){if(o.alternate===null)throw Error(r(340));$o()}return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 19:return ve($t),null;case 4:return Yl(),null;case 10:return ka(o.type),null;case 22:case 23:return Sl(o),hr(),n!==null&&ve(Fl),n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 24:return ka(yn),null;case 25:return null;default:return null}}function v0(n,o){switch(sh(o),o.tag){case 3:ka(yn),Yl();break;case 26:case 27:case 5:ye(o);break;case 4:Yl();break;case 31:o.memoizedState!==null&&Sl(o);break;case 13:Sl(o);break;case 19:ve($t);break;case 10:ka(o.type);break;case 22:case 23:Sl(o),hr(),n!==null&&ve(Fl);break;case 24:ka(yn)}}function Aa(n,o){try{var u=o.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var v=d.next;u=v;do{if((u.tag&n)===n){d=void 0;var S=u.create,M=u.inst;d=S(),M.destroy=d}u=u.next}while(u!==v)}}catch(U){Ut(o,o.return,U)}}function na(n,o,u){try{var d=o.updateQueue,v=d!==null?d.lastEffect:null;if(v!==null){var S=v.next;d=S;do{if((d.tag&n)===n){var M=d.inst,U=M.destroy;if(U!==void 0){M.destroy=void 0,v=o;var L=u,X=U;try{X()}catch(W){Ut(v,L,W)}}}d=d.next}while(d!==S)}}catch(W){Ut(o,o.return,W)}}function Gh(n){var o=n.updateQueue;if(o!==null){var u=n.stateNode;try{iu(o,u)}catch(d){Ut(n,n.return,d)}}}function du(n,o,u){u.props=su(n.type,n.memoizedProps),u.state=n.memoizedState;try{u.componentWillUnmount()}catch(d){Ut(n,o,d)}}function zi(n,o){try{var u=n.ref;if(u!==null){switch(n.tag){case 26:case 27:case 5:var d=n.stateNode;break;case 30:d=n.stateNode;break;default:d=n.stateNode}typeof u=="function"?n.refCleanup=u(d):u.current=d}}catch(v){Ut(n,o,v)}}function Ka(n,o){var u=n.ref,d=n.refCleanup;if(u!==null)if(typeof d=="function")try{d()}catch(v){Ut(n,o,v)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){Ut(n,o,v)}else u.current=null}function Og(n){var o=n.type,u=n.memoizedProps,d=n.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":u.autoFocus&&d.focus();break e;case"img":u.src?d.src=u.src:u.srcSet&&(d.srcset=u.srcSet)}}catch(v){Ut(n,n.return,v)}}function Yh(n,o,u){try{var d=n.stateNode;ay(d,n.type,u,o),d[dl]=o}catch(v){Ut(n,n.return,v)}}function wg(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ja(n.type)||n.tag===4}function Ar(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||wg(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&ja(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function br(n,o,u){var d=n.tag;if(d===5||d===6)n=n.stateNode,o?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(n,o):(o=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,o.appendChild(n),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=wa));else if(d!==4&&(d===27&&ja(n.type)&&(u=n.stateNode,o=null),n=n.child,n!==null))for(br(n,o,u),n=n.sibling;n!==null;)br(n,o,u),n=n.sibling}function Mr(n,o,u){var d=n.tag;if(d===5||d===6)n=n.stateNode,o?u.insertBefore(n,o):u.appendChild(n);else if(d!==4&&(d===27&&ja(n.type)&&(u=n.stateNode),n=n.child,n!==null))for(Mr(n,o,u),n=n.sibling;n!==null;)Mr(n,o,u),n=n.sibling}function Vg(n){var o=n.stateNode,u=n.memoizedProps;try{for(var d=n.type,v=o.attributes;v.length;)o.removeAttributeNode(v[0]);Wn(o,d,u),o[zt]=n,o[dl]=u}catch(S){Ut(n,n.return,S)}}var Co=!1,_n=!1,Ih=!1,Lg=typeof WeakSet=="function"?WeakSet:Set,Yn=null;function Rr(n,o){if(n=n.containerInfo,sm=Un,n=Jo(n),Yc(n)){if("selectionStart"in n)var u={start:n.selectionStart,end:n.selectionEnd};else e:{u=(u=n.ownerDocument)&&u.defaultView||window;var d=u.getSelection&&u.getSelection();if(d&&d.rangeCount!==0){u=d.anchorNode;var v=d.anchorOffset,S=d.focusNode;d=d.focusOffset;try{u.nodeType,S.nodeType}catch{u=null;break e}var M=0,U=-1,L=-1,X=0,W=0,ne=n,Q=null;t:for(;;){for(var P;ne!==u||v!==0&&ne.nodeType!==3||(U=M+v),ne!==S||d!==0&&ne.nodeType!==3||(L=M+d),ne.nodeType===3&&(M+=ne.nodeValue.length),(P=ne.firstChild)!==null;)Q=ne,ne=P;for(;;){if(ne===n)break t;if(Q===u&&++X===v&&(U=M),Q===S&&++W===d&&(L=M),(P=ne.nextSibling)!==null)break;ne=Q,Q=ne.parentNode}ne=P}u=U===-1||L===-1?null:{start:U,end:L}}else u=null}u=u||{start:0,end:0}}else u=null;for(rm={focusedElem:n,selectionRange:u},Un=!1,Yn=o;Yn!==null;)if(o=Yn,n=o.child,(o.subtreeFlags&1028)!==0&&n!==null)n.return=o,Yn=n;else for(;Yn!==null;){switch(o=Yn,S=o.alternate,n=o.flags,o.tag){case 0:if((n&4)!==0&&(n=o.updateQueue,n=n!==null?n.events:null,n!==null))for(u=0;u<n.length;u++)v=n[u],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&S!==null){n=void 0,u=o,v=S.memoizedProps,S=S.memoizedState,d=u.stateNode;try{var Se=su(u.type,v);n=d.getSnapshotBeforeUpdate(Se,S),d.__reactInternalSnapshotBeforeUpdate=n}catch(Ve){Ut(u,u.return,Ve)}}break;case 3:if((n&1024)!==0){if(n=o.stateNode.containerInfo,u=n.nodeType,u===9)qf(n);else if(u===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":qf(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(r(163))}if(n=o.sibling,n!==null){n.return=o.return,Yn=n;break}Yn=o.return}}function Ef(n,o,u){var d=u.flags;switch(u.tag){case 0:case 11:case 15:Eo(n,u),d&4&&Aa(5,u);break;case 1:if(Eo(n,u),d&4)if(n=u.stateNode,o===null)try{n.componentDidMount()}catch(M){Ut(u,u.return,M)}else{var v=su(u.type,o.memoizedProps);o=o.memoizedState;try{n.componentDidUpdate(v,o,n.__reactInternalSnapshotBeforeUpdate)}catch(M){Ut(u,u.return,M)}}d&64&&Gh(u),d&512&&zi(u,u.return);break;case 3:if(Eo(n,u),d&64&&(n=u.updateQueue,n!==null)){if(o=null,u.child!==null)switch(u.child.tag){case 27:case 5:o=u.child.stateNode;break;case 1:o=u.child.stateNode}try{iu(n,o)}catch(M){Ut(u,u.return,M)}}break;case 27:o===null&&d&4&&Vg(u);case 26:case 5:Eo(n,u),o===null&&d&4&&Og(u),d&512&&zi(u,u.return);break;case 12:Eo(n,u);break;case 31:Eo(n,u),d&4&&S0(n,u);break;case 13:Eo(n,u),d&4&&qg(n,u),d&64&&(n=u.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(u=la.bind(null,u),Yr(n,u))));break;case 22:if(d=u.memoizedState!==null||Co,!d){o=o!==null&&o.memoizedState!==null||_n,v=Co;var S=_n;Co=d,(_n=o)&&!S?Fa(n,u,(u.subtreeFlags&8772)!==0):Eo(n,u),Co=v,_n=S}break;case 30:break;default:Eo(n,u)}}function Hg(n){var o=n.alternate;o!==null&&(n.alternate=null,Hg(o)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(o=n.stateNode,o!==null&&Bd(o)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Yt=null,El=!1;function Oi(n,o,u){for(u=u.child;u!==null;)Bg(n,o,u),u=u.sibling}function Bg(n,o,u){if(xl&&typeof xl.onCommitFiberUnmount=="function")try{xl.onCommitFiberUnmount(xu,u)}catch{}switch(u.tag){case 26:_n||Ka(u,o),Oi(n,o,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:_n||Ka(u,o);var d=Yt,v=El;ja(u.type)&&(Yt=u.stateNode,El=!1),Oi(n,o,u),vs(u.stateNode),Yt=d,El=v;break;case 5:_n||Ka(u,o);case 6:if(d=Yt,v=El,Yt=null,Oi(n,o,u),Yt=d,El=v,Yt!==null)if(El)try{(Yt.nodeType===9?Yt.body:Yt.nodeName==="HTML"?Yt.ownerDocument.body:Yt).removeChild(u.stateNode)}catch(S){Ut(u,o,S)}else try{Yt.removeChild(u.stateNode)}catch(S){Ut(u,o,S)}break;case 18:Yt!==null&&(El?(n=Yt,sy(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,u.stateNode),Wr(n)):sy(Yt,u.stateNode));break;case 4:d=Yt,v=El,Yt=u.stateNode.containerInfo,El=!0,Oi(n,o,u),Yt=d,El=v;break;case 0:case 11:case 14:case 15:na(2,u,o),_n||na(4,u,o),Oi(n,o,u);break;case 1:_n||(Ka(u,o),d=u.stateNode,typeof d.componentWillUnmount=="function"&&du(u,o,d)),Oi(n,o,u);break;case 21:Oi(n,o,u);break;case 22:_n=(d=_n)||u.memoizedState!==null,Oi(n,o,u),_n=d;break;default:Oi(n,o,u)}}function S0(n,o){if(o.memoizedState===null&&(n=o.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Wr(n)}catch(u){Ut(o,o.return,u)}}}function qg(n,o){if(o.memoizedState===null&&(n=o.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Wr(n)}catch(u){Ut(o,o.return,u)}}function _f(n){switch(n.tag){case 31:case 13:case 19:var o=n.stateNode;return o===null&&(o=n.stateNode=new Lg),o;case 22:return n=n.stateNode,o=n._retryCache,o===null&&(o=n._retryCache=new Lg),o;default:throw Error(r(435,n.tag))}}function Af(n,o){var u=_f(n);o.forEach(function(d){if(!u.has(d)){u.add(d);var v=G0.bind(null,n,d);d.then(v,v)}})}function _l(n,o){var u=o.deletions;if(u!==null)for(var d=0;d<u.length;d++){var v=u[d],S=n,M=o,U=M;e:for(;U!==null;){switch(U.tag){case 27:if(ja(U.type)){Yt=U.stateNode,El=!1;break e}break;case 5:Yt=U.stateNode,El=!1;break e;case 3:case 4:Yt=U.stateNode.containerInfo,El=!0;break e}U=U.return}if(Yt===null)throw Error(r(160));Bg(S,M,v),Yt=null,El=!1,S=v.alternate,S!==null&&(S.return=null),v.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)Zh(o,n),o=o.sibling}var We=null;function Zh(n,o){var u=n.alternate,d=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:_l(o,n),zl(n),d&4&&(na(3,n,n.return),Aa(3,n),na(5,n,n.return));break;case 1:_l(o,n),zl(n),d&512&&(_n||u===null||Ka(u,u.return)),d&64&&Co&&(n=n.updateQueue,n!==null&&(d=n.callbacks,d!==null&&(u=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=u===null?d:u.concat(d))));break;case 26:var v=We;if(_l(o,n),zl(n),d&512&&(_n||u===null||Ka(u,u.return)),d&4){var S=u!==null?u.memoizedState:null;if(d=n.memoizedState,u===null)if(d===null)if(n.stateNode===null){e:{d=n.type,u=n.memoizedProps,v=v.ownerDocument||v;t:switch(d){case"title":S=v.getElementsByTagName("title")[0],(!S||S[di]||S[zt]||S.namespaceURI==="http://www.w3.org/2000/svg"||S.hasAttribute("itemprop"))&&(S=v.createElement(d),v.head.insertBefore(S,v.querySelector("head > title"))),Wn(S,d,u),S[zt]=n,Mt(S),d=S;break e;case"link":var M=dy("link","href",v).get(d+(u.href||""));if(M){for(var U=0;U<M.length;U++)if(S=M[U],S.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&S.getAttribute("rel")===(u.rel==null?null:u.rel)&&S.getAttribute("title")===(u.title==null?null:u.title)&&S.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){M.splice(U,1);break t}}S=v.createElement(d),Wn(S,d,u),v.head.appendChild(S);break;case"meta":if(M=dy("meta","content",v).get(d+(u.content||""))){for(U=0;U<M.length;U++)if(S=M[U],S.getAttribute("content")===(u.content==null?null:""+u.content)&&S.getAttribute("name")===(u.name==null?null:u.name)&&S.getAttribute("property")===(u.property==null?null:u.property)&&S.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&S.getAttribute("charset")===(u.charSet==null?null:u.charSet)){M.splice(U,1);break t}}S=v.createElement(d),Wn(S,d,u),v.head.appendChild(S);break;default:throw Error(r(468,d))}S[zt]=n,Mt(S),d=S}n.stateNode=d}else mm(v,n.type,n.stateNode);else n.stateNode=fy(v,d,n.memoizedProps);else S!==d?(S===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):S.count--,d===null?mm(v,n.type,n.stateNode):fy(v,d,n.memoizedProps)):d===null&&n.stateNode!==null&&Yh(n,n.memoizedProps,u.memoizedProps)}break;case 27:_l(o,n),zl(n),d&512&&(_n||u===null||Ka(u,u.return)),u!==null&&d&4&&Yh(n,n.memoizedProps,u.memoizedProps);break;case 5:if(_l(o,n),zl(n),d&512&&(_n||u===null||Ka(u,u.return)),n.flags&32){v=n.stateNode;try{mi(v,"")}catch(Se){Ut(n,n.return,Se)}}d&4&&n.stateNode!=null&&(v=n.memoizedProps,Yh(n,v,u!==null?u.memoizedProps:v)),d&1024&&(Ih=!0);break;case 6:if(_l(o,n),zl(n),d&4){if(n.stateNode===null)throw Error(r(162));d=n.memoizedProps,u=n.stateNode;try{u.nodeValue=d}catch(Se){Ut(n,n.return,Se)}}break;case 3:if(Jr=null,v=We,We=ol(o.containerInfo),_l(o,n),We=v,zl(n),d&4&&u!==null&&u.memoizedState.isDehydrated)try{Wr(o.containerInfo)}catch(Se){Ut(n,n.return,Se)}Ih&&(Ih=!1,Gg(n));break;case 4:d=We,We=ol(n.stateNode.containerInfo),_l(o,n),zl(n),We=d;break;case 12:_l(o,n),zl(n);break;case 31:_l(o,n),zl(n),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,Af(n,d)));break;case 13:_l(o,n),zl(n),n.child.flags&8192&&n.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Wa=$n()),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,Af(n,d)));break;case 22:v=n.memoizedState!==null;var L=u!==null&&u.memoizedState!==null,X=Co,W=_n;if(Co=X||v,_n=W||L,_l(o,n),_n=W,Co=X,zl(n),d&8192)e:for(o=n.stateNode,o._visibility=v?o._visibility&-2:o._visibility|1,v&&(u===null||L||Co||_n||fs(n)),u=null,o=n;;){if(o.tag===5||o.tag===26){if(u===null){L=u=o;try{if(S=L.stateNode,v)M=S.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none";else{U=L.stateNode;var ne=L.memoizedProps.style,Q=ne!=null&&ne.hasOwnProperty("display")?ne.display:null;U.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(Se){Ut(L,L.return,Se)}}}else if(o.tag===6){if(u===null){L=o;try{L.stateNode.nodeValue=v?"":L.memoizedProps}catch(Se){Ut(L,L.return,Se)}}}else if(o.tag===18){if(u===null){L=o;try{var P=L.stateNode;v?Tn(P,!0):Tn(L.stateNode,!1)}catch(Se){Ut(L,L.return,Se)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===n)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break e;for(;o.sibling===null;){if(o.return===null||o.return===n)break e;u===o&&(u=null),o=o.return}u===o&&(u=null),o.sibling.return=o.return,o=o.sibling}d&4&&(d=n.updateQueue,d!==null&&(u=d.retryQueue,u!==null&&(d.retryQueue=null,Af(n,u))));break;case 19:_l(o,n),zl(n),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,Af(n,d)));break;case 30:break;case 21:break;default:_l(o,n),zl(n)}}function zl(n){var o=n.flags;if(o&2){try{for(var u,d=n.return;d!==null;){if(wg(d)){u=d;break}d=d.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var v=u.stateNode,S=Ar(n);Mr(n,S,v);break;case 5:var M=u.stateNode;u.flags&32&&(mi(M,""),u.flags&=-33);var U=Ar(n);Mr(n,U,M);break;case 3:case 4:var L=u.stateNode.containerInfo,X=Ar(n);br(n,X,L);break;default:throw Error(r(161))}}catch(W){Ut(n,n.return,W)}n.flags&=-3}o&4096&&(n.flags&=-4097)}function Gg(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var o=n;Gg(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),n=n.sibling}}function Eo(n,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)Ef(n,o.alternate,o),o=o.sibling}function fs(n){for(n=n.child;n!==null;){var o=n;switch(o.tag){case 0:case 11:case 14:case 15:na(4,o,o.return),fs(o);break;case 1:Ka(o,o.return);var u=o.stateNode;typeof u.componentWillUnmount=="function"&&du(o,o.return,u),fs(o);break;case 27:vs(o.stateNode);case 26:case 5:Ka(o,o.return),fs(o);break;case 22:o.memoizedState===null&&fs(o);break;case 30:fs(o);break;default:fs(o)}n=n.sibling}}function Fa(n,o,u){for(u=u&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var d=o.alternate,v=n,S=o,M=S.flags;switch(S.tag){case 0:case 11:case 15:Fa(v,S,u),Aa(4,S);break;case 1:if(Fa(v,S,u),d=S,v=d.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(X){Ut(d,d.return,X)}if(d=S,v=d.updateQueue,v!==null){var U=d.stateNode;try{var L=v.shared.hiddenCallbacks;if(L!==null)for(v.shared.hiddenCallbacks=null,v=0;v<L.length;v++)mh(L[v],U)}catch(X){Ut(d,d.return,X)}}u&&M&64&&Gh(S),zi(S,S.return);break;case 27:Vg(S);case 26:case 5:Fa(v,S,u),u&&d===null&&M&4&&Og(S),zi(S,S.return);break;case 12:Fa(v,S,u);break;case 31:Fa(v,S,u),u&&M&4&&S0(v,S);break;case 13:Fa(v,S,u),u&&M&4&&qg(v,S);break;case 22:S.memoizedState===null&&Fa(v,S,u),zi(S,S.return);break;case 30:break;default:Fa(v,S,u)}o=o.sibling}}function kh(n,o){var u=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==u&&(n!=null&&n.refCount++,u!=null&&Pc(u))}function Xh(n,o){n=null,o.alternate!==null&&(n=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==n&&(o.refCount++,n!=null&&Pc(n))}function ba(n,o,u,d){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)Dr(n,o,u,d),o=o.sibling}function Dr(n,o,u,d){var v=o.flags;switch(o.tag){case 0:case 11:case 15:ba(n,o,u,d),v&2048&&Aa(9,o);break;case 1:ba(n,o,u,d);break;case 3:ba(n,o,u,d),v&2048&&(n=null,o.alternate!==null&&(n=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==n&&(o.refCount++,n!=null&&Pc(n)));break;case 12:if(v&2048){ba(n,o,u,d),n=o.stateNode;try{var S=o.memoizedProps,M=S.id,U=S.onPostCommit;typeof U=="function"&&U(M,o.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(L){Ut(o,o.return,L)}}else ba(n,o,u,d);break;case 31:ba(n,o,u,d);break;case 13:ba(n,o,u,d);break;case 23:break;case 22:S=o.stateNode,M=o.alternate,o.memoizedState!==null?S._visibility&2?ba(n,o,u,d):bf(n,o):S._visibility&2?ba(n,o,u,d):(S._visibility|=2,xr(n,o,u,d,(o.subtreeFlags&10256)!==0||!1)),v&2048&&kh(M,o);break;case 24:ba(n,o,u,d),v&2048&&Xh(o.alternate,o);break;default:ba(n,o,u,d)}}function xr(n,o,u,d,v){for(v=v&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var S=n,M=o,U=u,L=d,X=M.flags;switch(M.tag){case 0:case 11:case 15:xr(S,M,U,L,v),Aa(8,M);break;case 23:break;case 22:var W=M.stateNode;M.memoizedState!==null?W._visibility&2?xr(S,M,U,L,v):bf(S,M):(W._visibility|=2,xr(S,M,U,L,v)),v&&X&2048&&kh(M.alternate,M);break;case 24:xr(S,M,U,L,v),v&&X&2048&&Xh(M.alternate,M);break;default:xr(S,M,U,L,v)}o=o.sibling}}function bf(n,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var u=n,d=o,v=d.flags;switch(d.tag){case 22:bf(u,d),v&2048&&kh(d.alternate,d);break;case 24:bf(u,d),v&2048&&Xh(d.alternate,d);break;default:bf(u,d)}o=o.sibling}}var Ol=8192;function wi(n,o,u){if(n.subtreeFlags&Ol)for(n=n.child;n!==null;)T0(n,o,u),n=n.sibling}function T0(n,o,u){switch(n.tag){case 26:wi(n,o,u),n.flags&Ol&&n.memoizedState!==null&&qi(u,We,n.memoizedState,n.memoizedProps);break;case 5:wi(n,o,u);break;case 3:case 4:var d=We;We=ol(n.stateNode.containerInfo),wi(n,o,u),We=d;break;case 22:n.memoizedState===null&&(d=n.alternate,d!==null&&d.memoizedState!==null?(d=Ol,Ol=16777216,wi(n,o,u),Ol=d):wi(n,o,u));break;default:wi(n,o,u)}}function Qh(n){var o=n.alternate;if(o!==null&&(n=o.child,n!==null)){o.child=null;do o=n.sibling,n.sibling=null,n=o;while(n!==null)}}function Ur(n){var o=n.deletions;if((n.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var d=o[u];Yn=d,Jh(d,n)}Qh(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Yg(n),n=n.sibling}function Yg(n){switch(n.tag){case 0:case 11:case 15:Ur(n),n.flags&2048&&na(9,n,n.return);break;case 3:Ur(n);break;case 12:Ur(n);break;case 22:var o=n.stateNode;n.memoizedState!==null&&o._visibility&2&&(n.return===null||n.return.tag!==13)?(o._visibility&=-3,Mf(n)):Ur(n);break;default:Ur(n)}}function Mf(n){var o=n.deletions;if((n.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var d=o[u];Yn=d,Jh(d,n)}Qh(n)}for(n=n.child;n!==null;){switch(o=n,o.tag){case 0:case 11:case 15:na(8,o,o.return),Mf(o);break;case 22:u=o.stateNode,u._visibility&2&&(u._visibility&=-3,Mf(o));break;default:Mf(o)}n=n.sibling}}function Jh(n,o){for(;Yn!==null;){var u=Yn;switch(u.tag){case 0:case 11:case 15:na(8,u,o);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var d=u.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:Pc(u.memoizedState.cache)}if(d=u.child,d!==null)d.return=u,Yn=d;else e:for(u=n;Yn!==null;){d=Yn;var v=d.sibling,S=d.return;if(Hg(d),d===u){Yn=null;break e}if(v!==null){v.return=S,Yn=v;break e}Yn=S}}}var C0={getCacheForType:function(n){var o=ae(yn),u=o.data.get(n);return u===void 0&&(u=n(),o.data.set(n,u)),u},cacheSignal:function(){return ae(yn).controller.signal}},Ig=typeof WeakMap=="function"?WeakMap:Map,Tt=0,wt=null,ft=null,ot=0,xt=0,He=null,Vi=!1,hu=!1,Kh=!1,$a=0,It=0,Pa=0,ds=0,Fh=0,Al=0,an=0,Rf=null,on=null,$h=!1,Wa=0,Zg=0,_t=1/0,Nr=null,Pt=null,xn=0,_o=null,mu=null,Li=0,wl=0,Ph=null,Wh=null,zr=0,Df=null;function Vl(){return(Tt&2)!==0&&ot!==0?ot&-ot:Y.T!==null?lm():Ld()}function E0(){if(Al===0)if((ot&536870912)===0||ct){var n=Na;Na<<=1,(Na&3932160)===0&&(Na=262144),Al=n}else Al=536870912;return n=vl.current,n!==null&&(n.flags|=32),Al}function bl(n,o,u){(n===wt&&(xt===2||xt===9)||n.cancelPendingCommit!==null)&&(Hi(n,0),Ao(n,ot,Al,!1)),Xs(n,u),((Tt&2)===0||n!==wt)&&(n===wt&&((Tt&2)===0&&(ds|=u),It===4&&Ao(n,ot,Al,!1)),Bi(n))}function _0(n,o,u){if((Tt&6)!==0)throw Error(r(327));var d=!u&&(o&127)===0&&(o&n.expiredLanes)===0||za(n,o),v=d?D0(n,o):em(n,o,!0),S=d;do{if(v===0){hu&&!d&&Ao(n,o,0,!1);break}else{if(u=n.current.alternate,S&&!A0(u)){v=em(n,o,!1),S=!1;continue}if(v===2){if(S=o,n.errorRecoveryDisabledLanes&S)var M=0;else M=n.pendingLanes&-536870913,M=M!==0?M:M&536870912?536870912:0;if(M!==0){o=M;e:{var U=n;v=Rf;var L=U.current.memoizedState.isDehydrated;if(L&&(Hi(U,M).flags|=256),M=em(U,M,!1),M!==2){if(Kh&&!L){U.errorRecoveryDisabledLanes|=S,ds|=S,v=4;break e}S=on,on=v,S!==null&&(on===null?on=S:on.push.apply(on,S))}v=M}if(S=!1,v!==2)continue}}if(v===1){Hi(n,0),Ao(n,o,0,!0);break}e:{switch(d=n,S=v,S){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:Ao(d,o,Al,!Vi);break e;case 2:on=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(v=Wa+300-$n(),10<v)){if(Ao(d,o,Al,!Vi),pn(d,0,!0)!==0)break e;Li=o,d.timeoutHandle=Bf(xf.bind(null,d,u,on,Nr,$h,o,Al,ds,an,Vi,S,"Throttled",-0,0),v);break e}xf(d,u,on,Nr,$h,o,Al,ds,an,Vi,S,null,-0,0)}}break}while(!0);Bi(n)}function xf(n,o,u,d,v,S,M,U,L,X,W,ne,Q,P){if(n.timeoutHandle=-1,ne=o.subtreeFlags,ne&8192||(ne&16785408)===16785408){ne={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:wa},T0(o,S,ne);var Se=(S&62914560)===S?Wa-$n():(S&4194048)===S?Zg-$n():0;if(Se=my(ne,Se),Se!==null){Li=S,n.cancelPendingCommit=Se(z0.bind(null,n,o,S,u,d,v,M,U,L,W,ne,null,Q,P)),Ao(n,S,M,!X);return}}z0(n,o,S,u,d,v,M,U,L)}function A0(n){for(var o=n;;){var u=o.tag;if((u===0||u===11||u===15)&&o.flags&16384&&(u=o.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var d=0;d<u.length;d++){var v=u[d],S=v.getSnapshot;v=v.value;try{if(!al(S(),v))return!1}catch{return!1}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Ao(n,o,u,d){o&=~Fh,o&=~ds,n.suspendedLanes|=o,n.pingedLanes&=~o,d&&(n.warmLanes|=o),d=n.expirationTimes;for(var v=o;0<v;){var S=31-fl(v),M=1<<S;d[S]=-1,v&=~M}u!==0&&Uc(n,u,o)}function Or(){return(Tt&6)===0?(Mo(0),!1):!0}function kg(){if(ft!==null){if(xt===0)var n=ft.return;else n=ft,Za=ho=null,sf(n),tu=null,es=0,n=ft;for(;n!==null;)v0(n.alternate,n),n=n.return;ft=null}}function Hi(n,o){var u=n.timeoutHandle;u!==-1&&(n.timeoutHandle=-1,K0(u)),u=n.cancelPendingCommit,u!==null&&(n.cancelPendingCommit=null,u()),Li=0,kg(),wt=n,ft=u=co(n.current,null),ot=o,xt=0,He=null,Vi=!1,hu=za(n,o),Kh=!1,an=Al=Fh=ds=Pa=It=0,on=Rf=null,$h=!1,(o&8)!==0&&(o|=o&32);var d=n.entangledLanes;if(d!==0)for(n=n.entanglements,d&=o;0<d;){var v=31-fl(d),S=1<<v;o|=n[v],d&=~S}return $a=o,Xl(),u}function wr(n,o){$e=null,Y.H=gf,o===Wo||o===fr?(o=jp(),xt=3):o===Wu?(o=jp(),xt=4):xt=o===Vh?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,He=o,ft===null&&(It=1,Er(n,Jl(o,n.current)))}function b0(){var n=vl.current;return n===null?!0:(ot&4194048)===ot?Wl===null:(ot&62914560)===ot||(ot&536870912)!==0?n===Wl:!1}function M0(){var n=Y.H;return Y.H=gf,n===null?gf:n}function R0(){var n=Y.A;return Y.A=C0,n}function jh(){It=4,Vi||(ot&4194048)!==ot&&vl.current!==null||(hu=!0),(Pa&134217727)===0&&(ds&134217727)===0||wt===null||Ao(wt,ot,Al,!1)}function em(n,o,u){var d=Tt;Tt|=2;var v=M0(),S=R0();(wt!==n||ot!==o)&&(Nr=null,Hi(n,o)),o=!1;var M=It;e:do try{if(xt!==0&&ft!==null){var U=ft,L=He;switch(xt){case 8:kg(),M=6;break e;case 3:case 2:case 9:case 6:vl.current===null&&(o=!0);var X=xt;if(xt=0,He=null,hs(n,U,L,X),u&&hu){M=0;break e}break;default:X=xt,xt=0,He=null,hs(n,U,L,X)}}GT(),M=It;break}catch(W){wr(n,W)}while(!0);return o&&n.shellSuspendCounter++,Za=ho=null,Tt=d,Y.H=v,Y.A=S,ft===null&&(wt=null,ot=0,Xl()),M}function GT(){for(;ft!==null;)x0(ft)}function D0(n,o){var u=Tt;Tt|=2;var d=M0(),v=R0();wt!==n||ot!==o?(Nr=null,_t=$n()+500,Hi(n,o)):hu=za(n,o);e:do try{if(xt!==0&&ft!==null){o=ft;var S=He;t:switch(xt){case 1:xt=0,He=null,hs(n,o,S,1);break;case 2:case 9:if(Pp(S)){xt=0,He=null,U0(o);break}o=function(){xt!==2&&xt!==9||wt!==n||(xt=7),Bi(n)},S.then(o,o);break e;case 3:xt=7;break e;case 4:xt=5;break e;case 7:Pp(S)?(xt=0,He=null,U0(o)):(xt=0,He=null,hs(n,o,S,7));break;case 5:var M=null;switch(ft.tag){case 26:M=ft.memoizedState;case 5:case 27:var U=ft;if(M?Hl(M):U.stateNode.complete){xt=0,He=null;var L=U.sibling;if(L!==null)ft=L;else{var X=U.return;X!==null?(ft=X,Uf(X)):ft=null}break t}}xt=0,He=null,hs(n,o,S,5);break;case 6:xt=0,He=null,hs(n,o,S,6);break;case 8:kg(),It=6;break e;default:throw Error(r(462))}}pu();break}catch(W){wr(n,W)}while(!0);return Za=ho=null,Y.H=d,Y.A=v,Tt=u,ft!==null?0:(wt=null,ot=0,Xl(),It)}function pu(){for(;ft!==null&&!Du();)x0(ft)}function x0(n){var o=Ug(n.alternate,n,$a);n.memoizedProps=n.pendingProps,o===null?Uf(n):ft=o}function U0(n){var o=n,u=o.alternate;switch(o.tag){case 15:case 0:o=cu(u,o,o.pendingProps,o.type,void 0,ot);break;case 11:o=cu(u,o,o.pendingProps,o.type.render,o.ref,ot);break;case 5:sf(o);default:v0(u,o),o=ft=kp(o,$a),o=Ug(u,o,$a)}n.memoizedProps=n.pendingProps,o===null?Uf(n):ft=o}function hs(n,o,u,d){Za=ho=null,sf(o),tu=null,es=0;var v=o.return;try{if(qT(n,v,o,u,ot)){It=1,Er(n,Jl(u,n.current)),ft=null;return}}catch(S){if(v!==null)throw ft=v,S;It=1,Er(n,Jl(u,n.current)),ft=null;return}o.flags&32768?(ct||d===1?n=!0:hu||(ot&536870912)!==0?n=!1:(Vi=n=!0,(d===2||d===9||d===3||d===6)&&(d=vl.current,d!==null&&d.tag===13&&(d.flags|=16384))),N0(o,n)):Uf(o)}function Uf(n){var o=n;do{if((o.flags&32768)!==0){N0(o,Vi);return}n=o.return;var u=g0(o.alternate,o,$a);if(u!==null){ft=u;return}if(o=o.sibling,o!==null){ft=o;return}ft=o=n}while(o!==null);It===0&&(It=5)}function N0(n,o){do{var u=y0(n.alternate,n);if(u!==null){u.flags&=32767,ft=u;return}if(u=n.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!o&&(n=n.sibling,n!==null)){ft=n;return}ft=n=u}while(n!==null);It=6,ft=null}function z0(n,o,u,d,v,S,M,U,L){n.cancelPendingCommit=null;do Vr();while(xn!==0);if((Tt&6)!==0)throw Error(r(327));if(o!==null){if(o===n.current)throw Error(r(177));if(S=o.lanes|o.childLanes,S|=Sa,wd(n,u,S,M,U,L),n===wt&&(ft=wt=null,ot=0),mu=o,_o=n,Li=u,wl=S,Ph=v,Wh=d,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,Y0(Bo,function(){return H0(),null})):(n.callbackNode=null,n.callbackPriority=0),d=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||d){d=Y.T,Y.T=null,v=le.p,le.p=2,M=Tt,Tt|=4;try{Rr(n,o,u)}finally{Tt=M,le.p=v,Y.T=d}}xn=1,O0(),w0(),V0()}}function O0(){if(xn===1){xn=0;var n=_o,o=mu,u=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||u){u=Y.T,Y.T=null;var d=le.p;le.p=2;var v=Tt;Tt|=4;try{Zh(o,n);var S=rm,M=Jo(n.containerInfo),U=S.focusedElem,L=S.selectionRange;if(M!==U&&U&&U.ownerDocument&&ku(U.ownerDocument.documentElement,U)){if(L!==null&&Yc(U)){var X=L.start,W=L.end;if(W===void 0&&(W=X),"selectionStart"in U)U.selectionStart=X,U.selectionEnd=Math.min(W,U.value.length);else{var ne=U.ownerDocument||document,Q=ne&&ne.defaultView||window;if(Q.getSelection){var P=Q.getSelection(),Se=U.textContent.length,Ve=Math.min(L.start,Se),Lt=L.end===void 0?Ve:Math.min(L.end,Se);!P.extend&&Ve>Lt&&(M=Lt,Lt=Ve,Ve=M);var I=Ip(U,Ve),q=Ip(U,Lt);if(I&&q&&(P.rangeCount!==1||P.anchorNode!==I.node||P.anchorOffset!==I.offset||P.focusNode!==q.node||P.focusOffset!==q.offset)){var k=ne.createRange();k.setStart(I.node,I.offset),P.removeAllRanges(),Ve>Lt?(P.addRange(k),P.extend(q.node,q.offset)):(k.setEnd(q.node,q.offset),P.addRange(k))}}}}for(ne=[],P=U;P=P.parentNode;)P.nodeType===1&&ne.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof U.focus=="function"&&U.focus(),U=0;U<ne.length;U++){var te=ne[U];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Un=!!sm,rm=sm=null}finally{Tt=v,le.p=d,Y.T=u}}n.current=o,xn=2}}function w0(){if(xn===2){xn=0;var n=_o,o=mu,u=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||u){u=Y.T,Y.T=null;var d=le.p;le.p=2;var v=Tt;Tt|=4;try{Ef(n,o.alternate,o)}finally{Tt=v,le.p=d,Y.T=u}}xn=3}}function V0(){if(xn===4||xn===3){xn=0,Nd();var n=_o,o=mu,u=Li,d=Wh;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?xn=5:(xn=0,mu=_o=null,L0(n,n.pendingLanes));var v=n.pendingLanes;if(v===0&&(Pt=null),gp(u),o=o.stateNode,xl&&typeof xl.onCommitFiberRoot=="function")try{xl.onCommitFiberRoot(xu,o,void 0,(o.current.flags&128)===128)}catch{}if(d!==null){o=Y.T,v=le.p,le.p=2,Y.T=null;try{for(var S=n.onRecoverableError,M=0;M<d.length;M++){var U=d[M];S(U.value,{componentStack:U.stack})}}finally{Y.T=o,le.p=v}}(Li&3)!==0&&Vr(),Bi(n),v=n.pendingLanes,(u&261930)!==0&&(v&42)!==0?n===Df?zr++:(zr=0,Df=n):zr=0,Mo(0)}}function L0(n,o){(n.pooledCacheLanes&=o)===0&&(o=n.pooledCache,o!=null&&(n.pooledCache=null,Pc(o)))}function Vr(){return O0(),w0(),V0(),H0()}function H0(){if(xn!==5)return!1;var n=_o,o=wl;wl=0;var u=gp(Li),d=Y.T,v=le.p;try{le.p=32>u?32:u,Y.T=null,u=Ph,Ph=null;var S=_o,M=Li;if(xn=0,mu=_o=null,Li=0,(Tt&6)!==0)throw Error(r(331));var U=Tt;if(Tt|=4,Yg(S.current),Dr(S,S.current,M,u),Tt=U,Mo(0,!1),xl&&typeof xl.onPostCommitFiberRoot=="function")try{xl.onPostCommitFiberRoot(xu,S)}catch{}return!0}finally{le.p=v,Y.T=d,L0(n,o)}}function B0(n,o,u){o=Jl(u,o),o=Cg(n.stateNode,o,2),n=Pl(n,o,2),n!==null&&(Xs(n,2),Bi(n))}function Ut(n,o,u){if(n.tag===3)B0(n,n,u);else for(;o!==null;){if(o.tag===3){B0(o,n,u);break}else if(o.tag===1){var d=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Pt===null||!Pt.has(d))){n=Jl(u,n),u=Eg(2),d=Pl(o,u,2),d!==null&&(_g(u,d,o,n),Xs(d,2),Bi(d));break}}o=o.return}}function Nf(n,o,u){var d=n.pingCache;if(d===null){d=n.pingCache=new Ig;var v=new Set;d.set(o,v)}else v=d.get(o),v===void 0&&(v=new Set,d.set(o,v));v.has(u)||(Kh=!0,v.add(u),n=Xg.bind(null,n,o,u),o.then(n,n))}function Xg(n,o,u){var d=n.pingCache;d!==null&&d.delete(o),n.pingedLanes|=n.suspendedLanes&u,n.warmLanes&=~u,wt===n&&(ot&u)===u&&(It===4||It===3&&(ot&62914560)===ot&&300>$n()-Wa?(Tt&2)===0&&Hi(n,0):Fh|=u,an===ot&&(an=0)),Bi(n)}function q0(n,o){o===0&&(o=Uu()),n=ro(n,o),n!==null&&(Xs(n,o),Bi(n))}function la(n){var o=n.memoizedState,u=0;o!==null&&(u=o.retryLane),q0(n,u)}function G0(n,o){var u=0;switch(n.tag){case 31:case 13:var d=n.stateNode,v=n.memoizedState;v!==null&&(u=v.retryLane);break;case 19:d=n.stateNode;break;case 22:d=n.stateNode._retryCache;break;default:throw Error(r(314))}d!==null&&d.delete(o),q0(n,u)}function Y0(n,o){return qt(n,o)}var Lr=null,ms=null,Qg=!1,tm=!1,Jg=!1,bo=0;function Bi(n){n!==ms&&n.next===null&&(ms===null?Lr=ms=n:ms=ms.next=n),tm=!0,Qg||(Qg=!0,Of())}function Mo(n,o){if(!Jg&&tm){Jg=!0;do for(var u=!1,d=Lr;d!==null;){if(n!==0){var v=d.pendingLanes;if(v===0)var S=0;else{var M=d.suspendedLanes,U=d.pingedLanes;S=(1<<31-fl(42|n)+1)-1,S&=v&~(M&~U),S=S&201326741?S&201326741|1:S?S|2:0}S!==0&&(u=!0,ps(d,S))}else S=ot,S=pn(d,d===wt?S:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(S&3)===0||za(d,S)||(u=!0,ps(d,S));d=d.next}while(u);Jg=!1}}function nm(){Kg()}function Kg(){tm=Qg=!1;var n=0;bo!==0&&YT()&&(n=bo);for(var o=$n(),u=null,d=Lr;d!==null;){var v=d.next,S=Fg(d,o);S===0?(d.next=null,u===null?Lr=v:u.next=v,v===null&&(ms=u)):(u=d,(n!==0||(S&3)!==0)&&(tm=!0)),d=v}xn!==0&&xn!==5||Mo(n),bo!==0&&(bo=0)}function Fg(n,o){for(var u=n.suspendedLanes,d=n.pingedLanes,v=n.expirationTimes,S=n.pendingLanes&-62914561;0<S;){var M=31-fl(S),U=1<<M,L=v[M];L===-1?((U&u)===0||(U&d)!==0)&&(v[M]=ks(U,o)):L<=o&&(n.expiredLanes|=U),S&=~U}if(o=wt,u=ot,u=pn(n,n===o?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),d=n.callbackNode,u===0||n===o&&(xt===2||xt===9)||n.cancelPendingCommit!==null)return d!==null&&d!==null&&hp(d),n.callbackNode=null,n.callbackPriority=0;if((u&3)===0||za(n,u)){if(o=u&-u,o===n.callbackPriority)return o;switch(d!==null&&hp(d),gp(u)){case 2:case 8:u=Od;break;case 32:u=Bo;break;case 268435456:u=mp;break;default:u=Bo}return d=zf.bind(null,n),u=qt(u,d),n.callbackPriority=o,n.callbackNode=u,o}return d!==null&&d!==null&&hp(d),n.callbackPriority=2,n.callbackNode=null,2}function zf(n,o){if(xn!==0&&xn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var u=n.callbackNode;if(Vr()&&n.callbackNode!==u)return null;var d=ot;return d=pn(n,n===wt?d:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),d===0?null:(_0(n,d,o),Fg(n,$n()),n.callbackNode!=null&&n.callbackNode===u?zf.bind(null,n):null)}function ps(n,o){if(Vr())return null;_0(n,o,!0)}function Of(){F0(function(){(Tt&6)!==0?qt(zd,nm):Kg()})}function lm(){if(bo===0){var n=Po;n===0&&(n=ao,ao<<=1,(ao&261888)===0&&(ao=256)),bo=n}return bo}function I0(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:pa(""+n)}function gs(n,o){var u=o.ownerDocument.createElement("input");return u.name=o.name,u.value=o.value,n.id&&u.setAttribute("form",n.id),o.parentNode.insertBefore(u,o),n=new FormData(n),u.parentNode.removeChild(u),n}function wf(n,o,u,d,v){if(o==="submit"&&u&&u.stateNode===v){var S=I0((v[dl]||null).action),M=d.submitter;M&&(o=(o=M[dl]||null)?I0(o.formAction):M.getAttribute("formAction"),o!==null&&(S=o,M=null));var U=new Bc("action","action",null,d,v);n.push({event:U,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(bo!==0){var L=M?gs(v,M):new FormData(v);Tr(u,{pending:!0,data:L,method:v.method,action:S},null,L)}}else typeof S=="function"&&(U.preventDefault(),L=M?gs(v,M):new FormData(v),Tr(u,{pending:!0,data:L,method:v.method,action:S},S,L))},currentTarget:v}]})}}for(var am=0;am<ir.length;am++){var Hr=ir[am],$g=Hr.toLowerCase(),Pg=Hr[0].toUpperCase()+Hr.slice(1);ml($g,"on"+Pg)}ml(Zc,"onAnimationEnd"),ml(Zp,"onAnimationIteration"),ml(ah,"onAnimationStart"),ml("dblclick","onDoubleClick"),ml("focusin","onFocus"),ml("focusout","onBlur"),ml(Xu,"onTransitionRun"),ml(kc,"onTransitionStart"),ml(vi,"onTransitionCancel"),ml(jv,"onTransitionEnd"),hi("onMouseEnter",["mouseout","mouseover"]),hi("onMouseLeave",["mouseout","mouseover"]),hi("onPointerEnter",["pointerout","pointerover"]),hi("onPointerLeave",["pointerout","pointerover"]),Io("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Io("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Io("onBeforeInput",["compositionend","keypress","textInput","paste"]),Io("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Io("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Io("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Br="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Z0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Br));function k0(n,o){o=(o&4)!==0;for(var u=0;u<n.length;u++){var d=n[u],v=d.event;d=d.listeners;e:{var S=void 0;if(o)for(var M=d.length-1;0<=M;M--){var U=d[M],L=U.instance,X=U.currentTarget;if(U=U.listener,L!==S&&v.isPropagationStopped())break e;S=U,v.currentTarget=X;try{S(v)}catch(W){Qu(W)}v.currentTarget=null,S=L}else for(M=0;M<d.length;M++){if(U=d[M],L=U.instance,X=U.currentTarget,U=U.listener,L!==S&&v.isPropagationStopped())break e;S=U,v.currentTarget=X;try{S(v)}catch(W){Qu(W)}v.currentTarget=null,S=L}}}}function rt(n,o){var u=o[Hd];u===void 0&&(u=o[Hd]=new Set);var d=n+"__bubble";u.has(d)||(Vf(o,n,2,!1),u.add(d))}function Wg(n,o,u){var d=0;o&&(d|=4),Vf(u,n,d,o)}var im="_reactListening"+Math.random().toString(36).slice(2);function qr(n){if(!n[im]){n[im]=!0,wu.forEach(function(u){u!=="selectionchange"&&(Z0.has(u)||Wg(u,!1,n),Wg(u,!0,n))});var o=n.nodeType===9?n:n.ownerDocument;o===null||o[im]||(o[im]=!0,Wg("selectionchange",!1,o))}}function Vf(n,o,u,d){switch(kf(o)){case 2:var v=Gi;break;case 8:v=Yi;break;default:v=jn}u=v.bind(null,o,u,n),v=void 0,!Lc||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(v=!0),d?v!==void 0?n.addEventListener(o,u,{capture:!0,passive:v}):n.addEventListener(o,u,!0):v!==void 0?n.addEventListener(o,u,{passive:v}):n.addEventListener(o,u,!1)}function jg(n,o,u,d,v){var S=d;if((o&1)===0&&(o&2)===0&&d!==null)e:for(;;){if(d===null)return;var M=d.tag;if(M===3||M===4){var U=d.stateNode.containerInfo;if(U===v)break;if(M===4)for(M=d.return;M!==null;){var L=M.tag;if((L===3||L===4)&&M.stateNode.containerInfo===v)return;M=M.return}for(;U!==null;){if(M=Nu(U),M===null)return;if(L=M.tag,L===5||L===6||L===26||L===27){d=S=M;continue e}U=U.parentNode}}d=d.return}bp(function(){var X=S,W=Xd(u),ne=[];e:{var Q=Si.get(n);if(Q!==void 0){var P=Bc,Se=n;switch(n){case"keypress":if(Jd(u)===0)break e;case"keydown":case"keyup":P=Pd;break;case"focusin":Se="focus",P=Fd;break;case"focusout":Se="blur",P=Fd;break;case"beforeblur":case"afterblur":P=Fd;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=er;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=Yv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=Qv;break;case Zc:case Zp:case ah:P=Zv;break;case jv:P=VT;break;case"scroll":case"scrollend":P=OT;break;case"wheel":P=LT;break;case"copy":case"cut":case"paste":P=Bu;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=Ha;break;case"toggle":case"beforetoggle":P=wp}var Ve=(o&4)!==0,Lt=!Ve&&(n==="scroll"||n==="scrollend"),I=Ve?Q!==null?Q+"Capture":null:Q;Ve=[];for(var q=X,k;q!==null;){var te=q;if(k=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||k===null||I===null||(te=Vn(q,I),te!=null&&Ve.push(Lf(q,te,k))),Lt)break;q=q.return}0<Ve.length&&(Q=new P(Q,Se,null,u,W),ne.push({event:Q,listeners:Ve}))}}if((o&7)===0){e:{if(Q=n==="mouseover"||n==="pointerover",P=n==="mouseout"||n==="pointerout",Q&&u!==kd&&(Se=u.relatedTarget||u.fromElement)&&(Nu(Se)||Se[Go]))break e;if((P||Q)&&(Q=W.window===W?W:(Q=W.ownerDocument)?Q.defaultView||Q.parentWindow:window,P?(Se=u.relatedTarget||u.toElement,P=X,Se=Se?Nu(Se):null,Se!==null&&(Lt=y(Se),Ve=Se.tag,Se!==Lt||Ve!==5&&Ve!==27&&Ve!==6)&&(Se=null)):(P=null,Se=X),P!==Se)){if(Ve=er,te="onMouseLeave",I="onMouseEnter",q="mouse",(n==="pointerout"||n==="pointerover")&&(Ve=Ha,te="onPointerLeave",I="onPointerEnter",q="pointer"),Lt=P==null?Q:Qs(P),k=Se==null?Q:Qs(Se),Q=new Ve(te,q+"leave",P,u,W),Q.target=Lt,Q.relatedTarget=k,te=null,Nu(W)===X&&(Ve=new Ve(I,q+"enter",Se,u,W),Ve.target=k,Ve.relatedTarget=Lt,te=Ve),Lt=te,P&&Se)t:{for(Ve=X0,I=P,q=Se,k=0,te=I;te;te=Ve(te))k++;te=0;for(var xe=q;xe;xe=Ve(xe))te++;for(;0<k-te;)I=Ve(I),k--;for(;0<te-k;)q=Ve(q),te--;for(;k--;){if(I===q||q!==null&&I===q.alternate){Ve=I;break t}I=Ve(I),q=Ve(q)}Ve=null}else Ve=null;P!==null&&om(ne,Q,P,Ve,!1),Se!==null&&Lt!==null&&om(ne,Lt,Se,Ve,!0)}}e:{if(Q=X?Qs(X):window,P=Q.nodeName&&Q.nodeName.toLowerCase(),P==="select"||P==="input"&&Q.type==="file")var vt=qp;else if(yi(Q))if(eh)vt=Zu;else{vt=Pv;var Ee=$v}else P=Q.nodeName,!P||P.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?X&&Ap(X.elementType)&&(vt=qp):vt=Qo;if(vt&&(vt=vt(n,X))){Bp(ne,vt,u,W);break e}Ee&&Ee(n,Q,X),n==="focusout"&&X&&Q.type==="number"&&X.memoizedProps.value!=null&&Vu(Q,"number",Q.value)}switch(Ee=X?Qs(X):window,n){case"focusin":(yi(Ee)||Ee.contentEditable==="true")&&(Ko=Ee,lr=X,va=null);break;case"focusout":va=lr=Ko=null;break;case"mousedown":qa=!0;break;case"contextmenu":case"mouseup":case"dragend":qa=!1,lh(ne,u,W);break;case"selectionchange":if(Ic)break;case"keydown":case"keyup":lh(ne,u,W)}var Ke;if(tr)e:{switch(n){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else Gu?jd(n,u)&&(je="onCompositionEnd"):n==="keydown"&&u.keyCode===229&&(je="onCompositionStart");je&&(Vp&&u.locale!=="ko"&&(Gu||je!=="onCompositionStart"?je==="onCompositionEnd"&&Gu&&(Ke=Rp()):(uo=W,Mp="value"in uo?uo.value:uo.textContent,Gu=!0)),Ee=Hf(X,je),0<Ee.length&&(je=new kv(je,n,null,u,W),ne.push({event:je,listeners:Ee}),Ke?je.data=Ke:(Ke=Lp(u),Ke!==null&&(je.data=Ke)))),(Ke=ll?Fv(n,u):HT(n,u))&&(je=Hf(X,"onBeforeInput"),0<je.length&&(Ee=new kv("onBeforeInput","beforeinput",null,u,W),ne.push({event:Ee,listeners:je}),Ee.data=Ke)),wf(ne,n,X,u,W)}k0(ne,o)})}function Lf(n,o,u){return{instance:n,listener:o,currentTarget:u}}function Hf(n,o){for(var u=o+"Capture",d=[];n!==null;){var v=n,S=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||S===null||(v=Vn(n,u),v!=null&&d.unshift(Lf(n,v,S)),v=Vn(n,o),v!=null&&d.push(Lf(n,v,S))),n.tag===3)return d;n=n.return}return[]}function X0(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function om(n,o,u,d,v){for(var S=o._reactName,M=[];u!==null&&u!==d;){var U=u,L=U.alternate,X=U.stateNode;if(U=U.tag,L!==null&&L===d)break;U!==5&&U!==26&&U!==27||X===null||(L=X,v?(X=Vn(u,S),X!=null&&M.unshift(Lf(u,X,L))):v||(X=Vn(u,S),X!=null&&M.push(Lf(u,X,L)))),u=u.return}M.length!==0&&n.push({event:o,listeners:M})}var Q0=/\r\n?/g,ey=/\u0000|\uFFFD/g;function ty(n){return(typeof n=="string"?n:""+n).replace(Q0,`
54
+ `).replace(ey,"")}function ny(n,o){return o=ty(o),ty(n)===o}function Vt(n,o,u,d,v,S){switch(u){case"children":typeof d=="string"?o==="body"||o==="textarea"&&d===""||mi(n,d):(typeof d=="number"||typeof d=="bigint")&&o!=="body"&&mi(n,""+d);break;case"className":Yd(n,"class",d);break;case"tabIndex":Yd(n,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Yd(n,u,d);break;case"style":Bv(n,d,S);break;case"data":if(o!=="object"){Yd(n,"data",d);break}case"src":case"href":if(d===""&&(o!=="a"||u!=="href")){n.removeAttribute(u);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){n.removeAttribute(u);break}d=pa(""+d),n.setAttribute(u,d);break;case"action":case"formAction":if(typeof d=="function"){n.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof S=="function"&&(u==="formAction"?(o!=="input"&&Vt(n,o,"name",v.name,v,null),Vt(n,o,"formEncType",v.formEncType,v,null),Vt(n,o,"formMethod",v.formMethod,v,null),Vt(n,o,"formTarget",v.formTarget,v,null)):(Vt(n,o,"encType",v.encType,v,null),Vt(n,o,"method",v.method,v,null),Vt(n,o,"target",v.target,v,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){n.removeAttribute(u);break}d=pa(""+d),n.setAttribute(u,d);break;case"onClick":d!=null&&(n.onclick=wa);break;case"onScroll":d!=null&&rt("scroll",n);break;case"onScrollEnd":d!=null&&rt("scrollend",n);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(r(61));if(u=d.__html,u!=null){if(v.children!=null)throw Error(r(60));n.innerHTML=u}}break;case"multiple":n.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":n.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){n.removeAttribute("xlink:href");break}u=pa(""+d),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(u,""+d):n.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(u,""):n.removeAttribute(u);break;case"capture":case"download":d===!0?n.setAttribute(u,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(u,d):n.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?n.setAttribute(u,d):n.removeAttribute(u);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?n.removeAttribute(u):n.setAttribute(u,d);break;case"popover":rt("beforetoggle",n),rt("toggle",n),Fs(n,"popover",d);break;case"xlinkActuate":io(n,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":io(n,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":io(n,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":io(n,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":io(n,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":io(n,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":io(n,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":io(n,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":io(n,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":Fs(n,"is",d);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=zT.get(u)||u,Fs(n,u,d))}}function ly(n,o,u,d,v,S){switch(u){case"style":Bv(n,d,S);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(r(61));if(u=d.__html,u!=null){if(v.children!=null)throw Error(r(60));n.innerHTML=u}}break;case"children":typeof d=="string"?mi(n,d):(typeof d=="number"||typeof d=="bigint")&&mi(n,""+d);break;case"onScroll":d!=null&&rt("scroll",n);break;case"onScrollEnd":d!=null&&rt("scrollend",n);break;case"onClick":d!=null&&(n.onclick=wa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yo.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(v=u.endsWith("Capture"),o=u.slice(2,v?u.length-7:void 0),S=n[dl]||null,S=S!=null?S[u]:null,typeof S=="function"&&n.removeEventListener(o,S,v),typeof d=="function")){typeof S!="function"&&S!==null&&(u in n?n[u]=null:n.hasAttribute(u)&&n.removeAttribute(u)),n.addEventListener(o,d,v);break e}u in n?n[u]=d:d===!0?n.setAttribute(u,""):Fs(n,u,d)}}}function Wn(n,o,u){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":rt("error",n),rt("load",n);var d=!1,v=!1,S;for(S in u)if(u.hasOwnProperty(S)){var M=u[S];if(M!=null)switch(S){case"src":d=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:Vt(n,o,S,M,u,null)}}v&&Vt(n,o,"srcSet",u.srcSet,u,null),d&&Vt(n,o,"src",u.src,u,null);return;case"input":rt("invalid",n);var U=S=M=v=null,L=null,X=null;for(d in u)if(u.hasOwnProperty(d)){var W=u[d];if(W!=null)switch(d){case"name":v=W;break;case"type":M=W;break;case"checked":L=W;break;case"defaultChecked":X=W;break;case"value":S=W;break;case"defaultValue":U=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(r(137,o));break;default:Vt(n,o,d,W,u,null)}}Oc(n,S,U,L,X,M,v,!1);return;case"select":rt("invalid",n),d=M=S=null;for(v in u)if(u.hasOwnProperty(v)&&(U=u[v],U!=null))switch(v){case"value":S=U;break;case"defaultValue":M=U;break;case"multiple":d=U;default:Vt(n,o,v,U,u,null)}o=S,u=M,n.multiple=!!d,o!=null?$s(n,!!d,o,!1):u!=null&&$s(n,!!d,u,!0);return;case"textarea":rt("invalid",n),S=v=d=null;for(M in u)if(u.hasOwnProperty(M)&&(U=u[M],U!=null))switch(M){case"value":d=U;break;case"defaultValue":v=U;break;case"children":S=U;break;case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(91));break;default:Vt(n,o,M,U,u,null)}_p(n,d,v,S);return;case"option":for(L in u)if(u.hasOwnProperty(L)&&(d=u[L],d!=null))switch(L){case"selected":n.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:Vt(n,o,L,d,u,null)}return;case"dialog":rt("beforetoggle",n),rt("toggle",n),rt("cancel",n),rt("close",n);break;case"iframe":case"object":rt("load",n);break;case"video":case"audio":for(d=0;d<Br.length;d++)rt(Br[d],n);break;case"image":rt("error",n),rt("load",n);break;case"details":rt("toggle",n);break;case"embed":case"source":case"link":rt("error",n),rt("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in u)if(u.hasOwnProperty(X)&&(d=u[X],d!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:Vt(n,o,X,d,u,null)}return;default:if(Ap(o)){for(W in u)u.hasOwnProperty(W)&&(d=u[W],d!==void 0&&ly(n,o,W,d,u,void 0));return}}for(U in u)u.hasOwnProperty(U)&&(d=u[U],d!=null&&Vt(n,o,U,d,u,null))}function ay(n,o,u,d){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,S=null,M=null,U=null,L=null,X=null,W=null;for(P in u){var ne=u[P];if(u.hasOwnProperty(P)&&ne!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":L=ne;default:d.hasOwnProperty(P)||Vt(n,o,P,null,d,ne)}}for(var Q in d){var P=d[Q];if(ne=u[Q],d.hasOwnProperty(Q)&&(P!=null||ne!=null))switch(Q){case"type":S=P;break;case"name":v=P;break;case"checked":X=P;break;case"defaultChecked":W=P;break;case"value":M=P;break;case"defaultValue":U=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(137,o));break;default:P!==ne&&Vt(n,o,Q,P,d,ne)}}zc(n,M,U,L,X,W,S,v);return;case"select":P=M=U=Q=null;for(S in u)if(L=u[S],u.hasOwnProperty(S)&&L!=null)switch(S){case"value":break;case"multiple":P=L;default:d.hasOwnProperty(S)||Vt(n,o,S,null,d,L)}for(v in d)if(S=d[v],L=u[v],d.hasOwnProperty(v)&&(S!=null||L!=null))switch(v){case"value":Q=S;break;case"defaultValue":U=S;break;case"multiple":M=S;default:S!==L&&Vt(n,o,v,S,d,L)}o=U,u=M,d=P,Q!=null?$s(n,!!u,Q,!1):!!d!=!!u&&(o!=null?$s(n,!!u,o,!0):$s(n,!!u,u?[]:"",!1));return;case"textarea":P=Q=null;for(U in u)if(v=u[U],u.hasOwnProperty(U)&&v!=null&&!d.hasOwnProperty(U))switch(U){case"value":break;case"children":break;default:Vt(n,o,U,null,d,v)}for(M in d)if(v=d[M],S=u[M],d.hasOwnProperty(M)&&(v!=null||S!=null))switch(M){case"value":Q=v;break;case"defaultValue":P=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==S&&Vt(n,o,M,v,d,S)}Ep(n,Q,P);return;case"option":for(var Se in u)if(Q=u[Se],u.hasOwnProperty(Se)&&Q!=null&&!d.hasOwnProperty(Se))switch(Se){case"selected":n.selected=!1;break;default:Vt(n,o,Se,null,d,Q)}for(L in d)if(Q=d[L],P=u[L],d.hasOwnProperty(L)&&Q!==P&&(Q!=null||P!=null))switch(L){case"selected":n.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:Vt(n,o,L,Q,d,P)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ve in u)Q=u[Ve],u.hasOwnProperty(Ve)&&Q!=null&&!d.hasOwnProperty(Ve)&&Vt(n,o,Ve,null,d,Q);for(X in d)if(Q=d[X],P=u[X],d.hasOwnProperty(X)&&Q!==P&&(Q!=null||P!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,o));break;default:Vt(n,o,X,Q,d,P)}return;default:if(Ap(o)){for(var Lt in u)Q=u[Lt],u.hasOwnProperty(Lt)&&Q!==void 0&&!d.hasOwnProperty(Lt)&&ly(n,o,Lt,void 0,d,Q);for(W in d)Q=d[W],P=u[W],!d.hasOwnProperty(W)||Q===P||Q===void 0&&P===void 0||ly(n,o,W,Q,d,P);return}}for(var I in u)Q=u[I],u.hasOwnProperty(I)&&Q!=null&&!d.hasOwnProperty(I)&&Vt(n,o,I,null,d,Q);for(ne in d)Q=d[ne],P=u[ne],!d.hasOwnProperty(ne)||Q===P||Q==null&&P==null||Vt(n,o,ne,Q,d,P)}function um(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function iy(){if(typeof performance.getEntriesByType=="function"){for(var n=0,o=0,u=performance.getEntriesByType("resource"),d=0;d<u.length;d++){var v=u[d],S=v.transferSize,M=v.initiatorType,U=v.duration;if(S&&U&&um(M)){for(M=0,U=v.responseEnd,d+=1;d<u.length;d++){var L=u[d],X=L.startTime;if(X>U)break;var W=L.transferSize,ne=L.initiatorType;W&&um(ne)&&(L=L.responseEnd,M+=W*(L<U?1:(U-X)/(L-X)))}if(--d,o+=8*(S+M)/(v.duration/1e3),n++,10<n)break}}if(0<n)return o/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var sm=null,rm=null;function gu(n){return n.nodeType===9?n:n.ownerDocument}function J0(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function oy(n,o){if(n===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&o==="foreignObject"?0:n}function Gr(n,o){return n==="textarea"||n==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var cm=null;function YT(){var n=window.event;return n&&n.type==="popstate"?n===cm?!1:(cm=n,!0):(cm=null,!1)}var Bf=typeof setTimeout=="function"?setTimeout:void 0,K0=typeof clearTimeout=="function"?clearTimeout:void 0,ys=typeof Promise=="function"?Promise:void 0,F0=typeof queueMicrotask=="function"?queueMicrotask:typeof ys<"u"?function(n){return ys.resolve(null).then(n).catch(uy)}:Bf;function uy(n){setTimeout(function(){throw n})}function ja(n){return n==="head"}function sy(n,o){var u=o,d=0;do{var v=u.nextSibling;if(n.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"||u==="/&"){if(d===0){n.removeChild(v),Wr(o);return}d--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")d++;else if(u==="html")vs(n.ownerDocument.documentElement);else if(u==="head"){u=n.ownerDocument.head,vs(u);for(var S=u.firstChild;S;){var M=S.nextSibling,U=S.nodeName;S[di]||U==="SCRIPT"||U==="STYLE"||U==="LINK"&&S.rel.toLowerCase()==="stylesheet"||u.removeChild(S),S=M}}else u==="body"&&vs(n.ownerDocument.body);u=v}while(u);Wr(o)}function Tn(n,o){var u=n;n=0;do{var d=u.nextSibling;if(u.nodeType===1?o?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(o?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),d&&d.nodeType===8)if(u=d.data,u==="/$"){if(n===0)break;n--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||n++;u=d}while(u)}function qf(n){var o=n.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var u=o;switch(o=o.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":qf(u),Bd(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}n.removeChild(u)}}function IT(n,o,u,d){for(;n.nodeType===1;){var v=u;if(n.nodeName.toLowerCase()!==o.toLowerCase()){if(!d&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(d){if(!n[di])switch(o){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(S=n.getAttribute("rel"),S==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(S!==v.rel||n.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||n.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||n.getAttribute("title")!==(v.title==null?null:v.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(S=n.getAttribute("src"),(S!==(v.src==null?null:v.src)||n.getAttribute("type")!==(v.type==null?null:v.type)||n.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&S&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(o==="input"&&n.type==="hidden"){var S=v.name==null?null:""+v.name;if(v.type==="hidden"&&n.getAttribute("name")===S)return n}else return n;if(n=Ml(n.nextSibling),n===null)break}return null}function nt(n,o,u){if(o==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!u||(n=Ml(n.nextSibling),n===null))return null;return n}function $0(n,o){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=Ml(n.nextSibling),n===null))return null;return n}function Ma(n){return n.data==="$?"||n.data==="$~"}function yu(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function Yr(n,o){var u=n.ownerDocument;if(n.data==="$~")n._reactRetry=o;else if(n.data!=="$?"||u.readyState!=="loading")o();else{var d=function(){o(),u.removeEventListener("DOMContentLoaded",d)};u.addEventListener("DOMContentLoaded",d),n._reactRetry=d}}function Ml(n){for(;n!=null;n=n.nextSibling){var o=n.nodeType;if(o===1||o===3)break;if(o===8){if(o=n.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return n}var Gf=null;function fm(n){n=n.nextSibling;for(var o=0;n;){if(n.nodeType===8){var u=n.data;if(u==="/$"||u==="/&"){if(o===0)return Ml(n.nextSibling);o--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||o++}n=n.nextSibling}return null}function ei(n){n=n.previousSibling;for(var o=0;n;){if(n.nodeType===8){var u=n.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(o===0)return n;o--}else u!=="/$"&&u!=="/&"||o++}n=n.previousSibling}return null}function Ir(n,o,u){switch(o=gu(u),n){case"html":if(n=o.documentElement,!n)throw Error(r(452));return n;case"head":if(n=o.head,!n)throw Error(r(453));return n;case"body":if(n=o.body,!n)throw Error(r(454));return n;default:throw Error(r(451))}}function vs(n){for(var o=n.attributes;o.length;)n.removeAttributeNode(o[0]);Bd(n)}var Ll=new Map,Yf=new Set;function ol(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var ti=le.d;le.d={f:ZT,r:P0,D:$,C:At,L:kT,m:ry,X:Ro,S:cy,M:vu};function ZT(){var n=ti.f(),o=Or();return n||o}function P0(n){var o=zu(n);o!==null&&o.tag===5&&o.type==="form"?Ot(o):ti.r(n)}var Zr=typeof document>"u"?null:document;function An(n,o,u){var d=Zr;if(d&&typeof o=="string"&&o){var v=kl(o);v='link[rel="'+n+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),Yf.has(v)||(Yf.add(v),n={rel:n,crossOrigin:u,href:o},d.querySelector(v)===null&&(o=d.createElement("link"),Wn(o,"link",n),Mt(o),d.head.appendChild(o)))}}function $(n){ti.D(n),An("dns-prefetch",n,null)}function At(n,o){ti.C(n,o),An("preconnect",n,o)}function kT(n,o,u){ti.L(n,o,u);var d=Zr;if(d&&n&&o){var v='link[rel="preload"][as="'+kl(o)+'"]';o==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+kl(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+kl(u.imageSizes)+'"]')):v+='[href="'+kl(n)+'"]';var S=v;switch(o){case"style":S=aa(n);break;case"script":S=Ss(n)}Ll.has(S)||(n=N({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:n,as:o},u),Ll.set(S,n),d.querySelector(v)!==null||o==="style"&&d.querySelector(Su(S))||o==="script"&&d.querySelector(Qr(S))||(o=d.createElement("link"),Wn(o,"link",n),Mt(o),d.head.appendChild(o)))}}function ry(n,o){ti.m(n,o);var u=Zr;if(u&&n){var d=o&&typeof o.as=="string"?o.as:"script",v='link[rel="modulepreload"][as="'+kl(d)+'"][href="'+kl(n)+'"]',S=v;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":S=Ss(n)}if(!Ll.has(S)&&(n=N({rel:"modulepreload",href:n},o),Ll.set(S,n),u.querySelector(v)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Qr(S)))return}d=u.createElement("link"),Wn(d,"link",n),Mt(d),u.head.appendChild(d)}}}function cy(n,o,u){ti.S(n,o,u);var d=Zr;if(d&&n){var v=Ou(d).hoistableStyles,S=aa(n);o=o||"default";var M=v.get(S);if(!M){var U={loading:0,preload:null};if(M=d.querySelector(Su(S)))U.loading=5;else{n=N({rel:"stylesheet",href:n,"data-precedence":o},u),(u=Ll.get(S))&&dm(n,u);var L=M=d.createElement("link");Mt(L),Wn(L,"link",n),L._p=new Promise(function(X,W){L.onload=X,L.onerror=W}),L.addEventListener("load",function(){U.loading|=1}),L.addEventListener("error",function(){U.loading|=2}),U.loading|=4,If(M,o,d)}M={type:"stylesheet",instance:M,count:1,state:U},v.set(S,M)}}}function Ro(n,o){ti.X(n,o);var u=Zr;if(u&&n){var d=Ou(u).hoistableScripts,v=Ss(n),S=d.get(v);S||(S=u.querySelector(Qr(v)),S||(n=N({src:n,async:!0},o),(o=Ll.get(v))&&hm(n,o),S=u.createElement("script"),Mt(S),Wn(S,"link",n),u.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},d.set(v,S))}}function vu(n,o){ti.M(n,o);var u=Zr;if(u&&n){var d=Ou(u).hoistableScripts,v=Ss(n),S=d.get(v);S||(S=u.querySelector(Qr(v)),S||(n=N({src:n,async:!0,type:"module"},o),(o=Ll.get(v))&&hm(n,o),S=u.createElement("script"),Mt(S),Wn(S,"link",n),u.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},d.set(v,S))}}function kr(n,o,u,d){var v=(v=da.current)?ol(v):null;if(!v)throw Error(r(446));switch(n){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(o=aa(u.href),u=Ou(v).hoistableStyles,d=u.get(o),d||(d={type:"style",instance:null,count:0,state:null},u.set(o,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){n=aa(u.href);var S=Ou(v).hoistableStyles,M=S.get(n);if(M||(v=v.ownerDocument||v,M={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},S.set(n,M),(S=v.querySelector(Su(n)))&&!S._p&&(M.instance=S,M.state.loading=5),Ll.has(n)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Ll.set(n,u),S||W0(v,n,u,M.state))),o&&d===null)throw Error(r(528,""));return M}if(o&&d!==null)throw Error(r(529,""));return null;case"script":return o=u.async,u=u.src,typeof u=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=Ss(u),u=Ou(v).hoistableScripts,d=u.get(o),d||(d={type:"script",instance:null,count:0,state:null},u.set(o,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,n))}}function aa(n){return'href="'+kl(n)+'"'}function Su(n){return'link[rel="stylesheet"]['+n+"]"}function Xr(n){return N({},n,{"data-precedence":n.precedence,precedence:null})}function W0(n,o,u,d){n.querySelector('link[rel="preload"][as="style"]['+o+"]")?d.loading=1:(o=n.createElement("link"),d.preload=o,o.addEventListener("load",function(){return d.loading|=1}),o.addEventListener("error",function(){return d.loading|=2}),Wn(o,"link",u),Mt(o),n.head.appendChild(o))}function Ss(n){return'[src="'+kl(n)+'"]'}function Qr(n){return"script[async]"+n}function fy(n,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var d=n.querySelector('style[data-href~="'+kl(u.href)+'"]');if(d)return o.instance=d,Mt(d),d;var v=N({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return d=(n.ownerDocument||n).createElement("style"),Mt(d),Wn(d,"style",v),If(d,u.precedence,n),o.instance=d;case"stylesheet":v=aa(u.href);var S=n.querySelector(Su(v));if(S)return o.state.loading|=4,o.instance=S,Mt(S),S;d=Xr(u),(v=Ll.get(v))&&dm(d,v),S=(n.ownerDocument||n).createElement("link"),Mt(S);var M=S;return M._p=new Promise(function(U,L){M.onload=U,M.onerror=L}),Wn(S,"link",d),o.state.loading|=4,If(S,u.precedence,n),o.instance=S;case"script":return S=Ss(u.src),(v=n.querySelector(Qr(S)))?(o.instance=v,Mt(v),v):(d=u,(v=Ll.get(S))&&(d=N({},u),hm(d,v)),n=n.ownerDocument||n,v=n.createElement("script"),Mt(v),Wn(v,"link",d),n.head.appendChild(v),o.instance=v);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(d=o.instance,o.state.loading|=4,If(d,u.precedence,n));return o.instance}function If(n,o,u){for(var d=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=d.length?d[d.length-1]:null,S=v,M=0;M<d.length;M++){var U=d[M];if(U.dataset.precedence===o)S=U;else if(S!==v)break}S?S.parentNode.insertBefore(n,S.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(n,o.firstChild))}function dm(n,o){n.crossOrigin==null&&(n.crossOrigin=o.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=o.referrerPolicy),n.title==null&&(n.title=o.title)}function hm(n,o){n.crossOrigin==null&&(n.crossOrigin=o.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=o.referrerPolicy),n.integrity==null&&(n.integrity=o.integrity)}var Jr=null;function dy(n,o,u){if(Jr===null){var d=new Map,v=Jr=new Map;v.set(u,d)}else v=Jr,d=v.get(u),d||(d=new Map,v.set(u,d));if(d.has(n))return d;for(d.set(n,null),u=u.getElementsByTagName(n),v=0;v<u.length;v++){var S=u[v];if(!(S[di]||S[zt]||n==="link"&&S.getAttribute("rel")==="stylesheet")&&S.namespaceURI!=="http://www.w3.org/2000/svg"){var M=S.getAttribute(o)||"";M=n+M;var U=d.get(M);U?U.push(S):d.set(M,[S])}}return d}function mm(n,o,u){n=n.ownerDocument||n,n.head.insertBefore(u,o==="title"?n.querySelector("head > title"):null)}function hy(n,o,u){if(u===1||o.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return n=o.disabled,typeof o.precedence=="string"&&n==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function Hl(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function qi(n,o,u,d){if(u.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var v=aa(d.href),S=o.querySelector(Su(v));if(S){o=S._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(n.count++,n=pm.bind(n),o.then(n,n)),u.state.loading|=4,u.instance=S,Mt(S);return}S=o.ownerDocument||o,d=Xr(d),(v=Ll.get(v))&&dm(d,v),S=S.createElement("link"),Mt(S);var M=S;M._p=new Promise(function(U,L){M.onload=U,M.onerror=L}),Wn(S,"link",d),u.instance=S}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(u,o),(o=u.state.preload)&&(u.state.loading&3)===0&&(n.count++,u=pm.bind(n),o.addEventListener("load",u),o.addEventListener("error",u))}}var ia=0;function my(n,o){return n.stylesheets&&n.count===0&&ym(n,n.stylesheets),0<n.count||0<n.imgCount?function(u){var d=setTimeout(function(){if(n.stylesheets&&ym(n,n.stylesheets),n.unsuspend){var S=n.unsuspend;n.unsuspend=null,S()}},6e4+o);0<n.imgBytes&&ia===0&&(ia=62500*iy());var v=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&ym(n,n.stylesheets),n.unsuspend)){var S=n.unsuspend;n.unsuspend=null,S()}},(n.imgBytes>ia?50:800)+o);return n.unsuspend=u,function(){n.unsuspend=null,clearTimeout(d),clearTimeout(v)}}:null}function pm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ym(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var gm=null;function ym(n,o){n.stylesheets=null,n.unsuspend!==null&&(n.count++,gm=new Map,o.forEach(In,n),gm=null,pm.call(n))}function In(n,o){if(!(o.state.loading&4)){var u=gm.get(n);if(u)var d=u.get(null);else{u=new Map,gm.set(n,u);for(var v=n.querySelectorAll("link[data-precedence],style[data-precedence]"),S=0;S<v.length;S++){var M=v[S];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(u.set(M.dataset.precedence,M),d=M)}d&&u.set(null,d)}v=o.instance,M=v.getAttribute("data-precedence"),S=u.get(M)||d,S===d&&u.set(null,v),u.set(M,v),this.count++,d=pm.bind(this),v.addEventListener("load",d),v.addEventListener("error",d),S?S.parentNode.insertBefore(v,S.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(v,n.firstChild)),o.state.loading|=4}}var Zf={$$typeof:me,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function py(n,o,u,d,v,S,M,U,L){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xc(0),this.hiddenUpdates=xc(null),this.identifierPrefix=d,this.onUncaughtError=v,this.onCaughtError=S,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map}function vm(n,o,u,d,v,S,M,U,L,X,W,ne){return n=new py(n,o,u,M,L,X,W,ne,U),o=1,S===!0&&(o|=24),S=cn(3,null,null,o),n.current=S,S.stateNode=n,o=$c(),o.refCount++,n.pooledCache=o,o.refCount++,S.memoizedState={element:d,isDehydrated:u,cache:o},lf(S),n}function Ts(n){return n?(n=pl,n):pl}function j0(n,o,u,d,v,S){v=Ts(v),d.context===null?d.context=v:d.pendingContext=v,d=yo(o),d.payload={element:u},S=S===void 0?null:S,S!==null&&(d.callback=S),u=Pl(n,d,o),u!==null&&(bl(u,n,o),lu(u,n,o))}function Sm(n,o){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var u=n.retryLane;n.retryLane=u!==0&&u<o?u:o}}function gy(n,o){Sm(n,o),(n=n.alternate)&&Sm(n,o)}function eS(n){if(n.tag===13||n.tag===31){var o=ro(n,67108864);o!==null&&bl(o,n,67108864),gy(n,67108864)}}function Cs(n){if(n.tag===13||n.tag===31){var o=Vl();o=Vd(o);var u=ro(n,o);u!==null&&bl(u,n,o),gy(n,o)}}var Un=!0;function Gi(n,o,u,d){var v=Y.T;Y.T=null;var S=le.p;try{le.p=2,jn(n,o,u,d)}finally{le.p=S,Y.T=v}}function Yi(n,o,u,d){var v=Y.T;Y.T=null;var S=le.p;try{le.p=8,jn(n,o,u,d)}finally{le.p=S,Y.T=v}}function jn(n,o,u,d){if(Un){var v=yy(d);if(v===null)jg(n,o,d,Tm,u),Do(n,d);else if(XT(v,n,o,u,d))d.stopPropagation();else if(Do(n,d),o&4&&-1<Rl.indexOf(n)){for(;v!==null;){var S=zu(v);if(S!==null)switch(S.tag){case 3:if(S=S.stateNode,S.current.memoizedState.isDehydrated){var M=ma(S.pendingLanes);if(M!==0){var U=S;for(U.pendingLanes|=2,U.entangledLanes|=2;M;){var L=1<<31-fl(M);U.entanglements[1]|=L,M&=~L}Bi(S),(Tt&6)===0&&(_t=$n()+500,Mo(0))}}break;case 31:case 13:U=ro(S,2),U!==null&&bl(U,S,2),Or(),gy(S,2)}if(S=yy(d),S===null&&jg(n,o,d,Tm,u),S===v)break;v=S}v!==null&&d.stopPropagation()}else jg(n,o,d,null,u)}}function yy(n){return n=Xd(n),Kr(n)}var Tm=null;function Kr(n){if(Tm=null,n=Nu(n),n!==null){var o=y(n);if(o===null)n=null;else{var u=o.tag;if(u===13){if(n=C(o),n!==null)return n;n=null}else if(u===31){if(n=E(o),n!==null)return n;n=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}return Tm=n,null}function kf(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xT()){case zd:return 2;case Od:return 8;case Bo:case UT:return 32;case mp:return 268435456;default:return 32}default:return 32}}var Fr=!1,Nn=null,el=null,ul=null,Tu=new Map,Ra=new Map,Wt=[],Rl="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Do(n,o){switch(n){case"focusin":case"focusout":Nn=null;break;case"dragenter":case"dragleave":el=null;break;case"mouseover":case"mouseout":ul=null;break;case"pointerover":case"pointerout":Tu.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ra.delete(o.pointerId)}}function Es(n,o,u,d,v,S){return n===null||n.nativeEvent!==S?(n={blockedOn:o,domEventName:u,eventSystemFlags:d,nativeEvent:S,targetContainers:[v]},o!==null&&(o=zu(o),o!==null&&eS(o)),n):(n.eventSystemFlags|=d,o=n.targetContainers,v!==null&&o.indexOf(v)===-1&&o.push(v),n)}function XT(n,o,u,d,v){switch(o){case"focusin":return Nn=Es(Nn,n,o,u,d,v),!0;case"dragenter":return el=Es(el,n,o,u,d,v),!0;case"mouseover":return ul=Es(ul,n,o,u,d,v),!0;case"pointerover":var S=v.pointerId;return Tu.set(S,Es(Tu.get(S)||null,n,o,u,d,v)),!0;case"gotpointercapture":return S=v.pointerId,Ra.set(S,Es(Ra.get(S)||null,n,o,u,d,v)),!0}return!1}function tS(n){var o=Nu(n.target);if(o!==null){var u=y(o);if(u!==null){if(o=u.tag,o===13){if(o=C(u),o!==null){n.blockedOn=o,yp(n.priority,function(){Cs(u)});return}}else if(o===31){if(o=E(u),o!==null){n.blockedOn=o,yp(n.priority,function(){Cs(u)});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){n.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Xf(n){if(n.blockedOn!==null)return!1;for(var o=n.targetContainers;0<o.length;){var u=yy(n.nativeEvent);if(u===null){u=n.nativeEvent;var d=new u.constructor(u.type,u);kd=d,u.target.dispatchEvent(d),kd=null}else return o=zu(u),o!==null&&eS(o),n.blockedOn=u,!1;o.shift()}return!0}function $r(n,o,u){Xf(n)&&u.delete(o)}function nS(){Fr=!1,Nn!==null&&Xf(Nn)&&(Nn=null),el!==null&&Xf(el)&&(el=null),ul!==null&&Xf(ul)&&(ul=null),Tu.forEach($r),Ra.forEach($r)}function Ii(n,o){n.blockedOn===o&&(n.blockedOn=null,Fr||(Fr=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,nS)))}var Pr=null;function lS(n){Pr!==n&&(Pr=n,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){Pr===n&&(Pr=null);for(var o=0;o<n.length;o+=3){var u=n[o],d=n[o+1],v=n[o+2];if(typeof d!="function"){if(Kr(d||u)===null)continue;break}var S=zu(u);S!==null&&(n.splice(o,3),o-=3,Tr(S,{pending:!0,data:v,method:u.method,action:d},d,v))}}))}function Wr(n){function o(L){return Ii(L,n)}Nn!==null&&Ii(Nn,n),el!==null&&Ii(el,n),ul!==null&&Ii(ul,n),Tu.forEach(o),Ra.forEach(o);for(var u=0;u<Wt.length;u++){var d=Wt[u];d.blockedOn===n&&(d.blockedOn=null)}for(;0<Wt.length&&(u=Wt[0],u.blockedOn===null);)tS(u),u.blockedOn===null&&Wt.shift();if(u=(n.ownerDocument||n).$$reactFormReplay,u!=null)for(d=0;d<u.length;d+=3){var v=u[d],S=u[d+1],M=v[dl]||null;if(typeof S=="function")M||lS(u);else if(M){var U=null;if(S&&S.hasAttribute("formAction")){if(v=S,M=S[dl]||null)U=M.formAction;else if(Kr(v)!==null)continue}else U=M.action;typeof U=="function"?u[d+1]=U:(u.splice(d,3),d-=3),lS(u)}}}function vy(){function n(S){S.canIntercept&&S.info==="react-transition"&&S.intercept({handler:function(){return new Promise(function(M){return v=M})},focusReset:"manual",scroll:"manual"})}function o(){v!==null&&(v(),v=null),d||setTimeout(u,20)}function u(){if(!d&&!navigation.transition){var S=navigation.currentEntry;S&&S.url!=null&&navigation.navigate(S.url,{state:S.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,v=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(u,100),function(){d=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),v!==null&&(v(),v=null)}}}function Cm(n){this._internalRoot=n}Em.prototype.render=Cm.prototype.render=function(n){var o=this._internalRoot;if(o===null)throw Error(r(409));var u=o.current,d=Vl();j0(u,d,n,o,null,null)},Em.prototype.unmount=Cm.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var o=n.containerInfo;j0(n.current,2,null,n,null,null),Or(),o[Go]=null}};function Em(n){this._internalRoot=n}Em.prototype.unstable_scheduleHydration=function(n){if(n){var o=Ld();n={blockedOn:null,target:n,priority:o};for(var u=0;u<Wt.length&&o!==0&&o<Wt[u].priority;u++);Wt.splice(u,0,n),u===0&&tS(n)}};var Sy=l.version;if(Sy!=="19.2.3")throw Error(r(527,Sy,"19.2.3"));le.findDOMNode=function(n){var o=n._reactInternals;if(o===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=A(o),n=n!==null?D(n):null,n=n===null?null:n.stateNode,n};var aS={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:Y,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qf.isDisabled&&Qf.supportsFiber)try{xu=Qf.inject(aS),xl=Qf}catch{}}return np.createRoot=function(n,o){if(!f(n))throw Error(r(299));var u=!1,d="",v=Oh,S=Tg,M=wh;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onUncaughtError!==void 0&&(v=o.onUncaughtError),o.onCaughtError!==void 0&&(S=o.onCaughtError),o.onRecoverableError!==void 0&&(M=o.onRecoverableError)),o=vm(n,1,!1,null,null,u,d,null,v,S,M,vy),n[Go]=o.current,qr(n),new Cm(o)},np.hydrateRoot=function(n,o,u){if(!f(n))throw Error(r(299));var d=!1,v="",S=Oh,M=Tg,U=wh,L=null;return u!=null&&(u.unstable_strictMode===!0&&(d=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(S=u.onUncaughtError),u.onCaughtError!==void 0&&(M=u.onCaughtError),u.onRecoverableError!==void 0&&(U=u.onRecoverableError),u.formState!==void 0&&(L=u.formState)),o=vm(n,1,!0,o,u??null,d,v,L,S,M,U,vy),o.context=Ts(null),u=o.current,d=Vl(),d=Vd(d),v=yo(d),v.callback=null,Pl(u,v,d),u=d,o.current.lanes=u,Xs(o,u),Bi(o),n[Go]=o.current,qr(n),new Em(o)},np.version="19.2.3",np}var lp={};/**
55
+ * @license React
56
+ * react-dom-client.development.js
57
+ *
58
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
59
+ *
60
+ * This source code is licensed under the MIT license found in the
61
+ * LICENSE file in the root directory of this source tree.
62
+ */var cE;function Vb(){return cE||(cE=1,process.env.NODE_ENV!=="production"&&(function(){function c(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function l(e,t,i,s){if(i>=t.length)return s;var h=t[i],p=An(e)?e.slice():nt({},e);return p[h]=l(e[h],t,i+1,s),p}function a(e,t,i){if(t.length!==i.length)console.warn("copyWithRename() expects paths of the same length");else{for(var s=0;s<i.length-1;s++)if(t[s]!==i[s]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return r(e,t,i,0)}}function r(e,t,i,s){var h=t[s],p=An(e)?e.slice():nt({},e);return s+1===t.length?(p[i[s]]=p[h],An(p)?p.splice(h,1):delete p[h]):p[h]=r(e[h],t,i,s+1),p}function f(e,t,i){var s=t[i],h=An(e)?e.slice():nt({},e);return i+1===t.length?(An(h)?h.splice(s,1):delete h[s],h):(h[s]=f(e[s],t,i+1),h)}function y(){return!1}function C(){return null}function E(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function b(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function A(){}function D(){}function N(e){var t=[];return e.forEach(function(i){t.push(i)}),t.sort().join(", ")}function z(e,t,i,s){return new HT(e,t,i,s)}function Z(e,t){e.context===nc&&(om(e.current,2,t,e,null,null),na())}function F(e,t){if(Xi!==null){var i=t.staleFamilies;t=t.updatedFamilies,_f(),Fv(e.current,t,i),na()}}function ie(e){Xi=e}function se(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function fe(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function de(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function me(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Te(e){if(fe(e)!==e)throw Error("Unable to find node on an unmounted component.")}function Re(e){var t=e.alternate;if(!t){if(t=fe(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var i=e,s=t;;){var h=i.return;if(h===null)break;var p=h.alternate;if(p===null){if(s=h.return,s!==null){i=s;continue}break}if(h.child===p.child){for(p=h.child;p;){if(p===i)return Te(h),e;if(p===s)return Te(h),t;p=p.sibling}throw Error("Unable to find node on an unmounted component.")}if(i.return!==s.return)i=h,s=p;else{for(var T=!1,_=h.child;_;){if(_===i){T=!0,i=h,s=p;break}if(_===s){T=!0,s=h,i=p;break}_=_.sibling}if(!T){for(_=p.child;_;){if(_===i){T=!0,i=p,s=h;break}if(_===s){T=!0,s=p,i=h;break}_=_.sibling}if(!T)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(i.alternate!==s)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(i.tag!==3)throw Error("Unable to find node on an unmounted component.");return i.stateNode.current===i?e:t}function Oe(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Oe(e),t!==null)return t;e=e.sibling}return null}function Be(e){return e===null||typeof e!="object"?null:(e=P0&&e[P0]||e["@@iterator"],typeof e=="function"?e:null)}function Ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Zr?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Yr:return"Fragment";case Gf:return"Profiler";case Ml:return"StrictMode";case vs:return"Suspense";case Ll:return"SuspenseList";case ti:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case yu:return"Portal";case ei:return e.displayName||"Context";case fm:return(e._context.displayName||"Context")+".Consumer";case Ir:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yf:return t=e.displayName||null,t!==null?t:Ne(e.type)||"Memo";case ol:t=e._payload,e=e._init;try{return Ne(e(t))}catch{}}return null}function De(e){return typeof e.tag=="number"?ue(e):typeof e.name=="string"?e.name:null}function ue(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";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 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ne(t);case 8:return t===Ml?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var i=t.length-1;0<=i;i--)if(typeof t[i].name=="string")return t[i].name}if(e.return!==null)return ue(e.return)}return null}function ht(e){return{current:e}}function tt(e,t){0>Ro?console.error("Unexpected pop."):(t!==cy[Ro]&&console.error("Unexpected Fiber popped."),e.current=ry[Ro],ry[Ro]=null,cy[Ro]=null,Ro--)}function Pe(e,t,i){Ro++,ry[Ro]=e.current,cy[Ro]=i,e.current=t}function Bt(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function sn(e,t){Pe(aa,t,e),Pe(kr,e,e),Pe(vu,null,e);var i=t.nodeType;switch(i){case 9:case 11:i=i===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?A0(t):Ls;break;default:if(i=t.tagName,t=t.namespaceURI)t=A0(t),t=Ao(t,i);else switch(i){case"svg":t=Wm;break;case"math":t=FS;break;default:t=Ls}}i=i.toLowerCase(),i=Cp(null,i),i={context:t,ancestorInfo:i},tt(vu,e),Pe(vu,i,e)}function Y(e){tt(vu,e),tt(kr,e),tt(aa,e)}function le(){return Bt(vu.current)}function oe(e){e.memoizedState!==null&&Pe(Su,e,e);var t=Bt(vu.current),i=e.type,s=Ao(t.context,i);i=Cp(t.ancestorInfo,i),s={context:s,ancestorInfo:i},t!==s&&(Pe(kr,e,e),Pe(vu,s,e))}function we(e){kr.current===e&&(tt(vu,e),tt(kr,e)),Su.current===e&&(tt(Su,e),sv._currentValue=pd)}function qe(){}function ee(){if(Xr===0){W0=console.log,Ss=console.info,Qr=console.warn,fy=console.error,If=console.group,dm=console.groupCollapsed,hm=console.groupEnd;var e={configurable:!0,enumerable:!0,value:qe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Xr++}function ve(){if(Xr--,Xr===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:nt({},e,{value:W0}),info:nt({},e,{value:Ss}),warn:nt({},e,{value:Qr}),error:nt({},e,{value:fy}),group:nt({},e,{value:If}),groupCollapsed:nt({},e,{value:dm}),groupEnd:nt({},e,{value:hm})})}0>Xr&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Ae(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
63
+ `)&&(e=e.slice(29)),t=e.indexOf(`
64
+ `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
65
+ `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function Me(e){if(Jr===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);Jr=t&&t[1]||"",dy=-1<i.stack.indexOf(`
66
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
67
+ `+Jr+e+dy}function rn(e,t){if(!e||mm)return"";var i=hy.get(e);if(i!==void 0)return i;mm=!0,i=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var s=null;s=$.H,$.H=null,ee();try{var h={DetermineComponentFrameRoot:function(){try{if(t){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(ce){var J=ce}Reflect.construct(e,[],w)}else{try{w.call()}catch(ce){J=ce}e.call(w.prototype)}}else{try{throw Error()}catch(ce){J=ce}(w=e())&&typeof w.catch=="function"&&w.catch(function(){})}}catch(ce){if(ce&&J&&typeof ce.stack=="string")return[ce.stack,J.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var T=h.DetermineComponentFrameRoot(),_=T[0],R=T[1];if(_&&R){var x=_.split(`
68
+ `),B=R.split(`
69
+ `);for(T=p=0;p<x.length&&!x[p].includes("DetermineComponentFrameRoot");)p++;for(;T<B.length&&!B[T].includes("DetermineComponentFrameRoot");)T++;if(p===x.length||T===B.length)for(p=x.length-1,T=B.length-1;1<=p&&0<=T&&x[p]!==B[T];)T--;for(;1<=p&&0<=T;p--,T--)if(x[p]!==B[T]){if(p!==1||T!==1)do if(p--,T--,0>T||x[p]!==B[T]){var G=`
70
+ `+x[p].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),typeof e=="function"&&hy.set(e,G),G}while(1<=p&&0<=T);break}}}finally{mm=!1,$.H=s,ve(),Error.prepareStackTrace=i}return x=(x=e?e.displayName||e.name:"")?Me(x):"",typeof e=="function"&&hy.set(e,x),x}function da(e,t){switch(e.tag){case 26:case 27:case 5:return Me(e.type);case 16:return Me("Lazy");case 13:return e.child!==t&&t!==null?Me("Suspense Fallback"):Me("Suspense");case 19:return Me("SuspenseList");case 0:case 15:return rn(e.type,!1);case 11:return rn(e.type.render,!1);case 1:return rn(e.type,!0);case 31:return Me("Activity");default:return""}}function Xt(e){try{var t="",i=null;do{t+=da(e,i);var s=e._debugInfo;if(s)for(var h=s.length-1;0<=h;h--){var p=s[h];if(typeof p.name=="string"){var T=t;e:{var _=p.name,R=p.env,x=p.debugLocation;if(x!=null){var B=Ae(x),G=B.lastIndexOf(`
71
+ `),w=G===-1?B:B.slice(G+1);if(w.indexOf(_)!==-1){var J=`
72
+ `+w;break e}}J=Me(_+(R?" ["+R+"]":""))}t=T+J}}i=e,e=e.return}while(e);return t}catch(ce){return`
73
+ Error generating stack: `+ce.message+`
74
+ `+ce.stack}}function ha(e){return(e=e?e.displayName||e.name:"")?Me(e):""}function Yl(){if(Hl===null)return null;var e=Hl._debugOwner;return e!=null?De(e):null}function Mc(){if(Hl===null)return"";var e=Hl;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Me(e.type);break;case 13:t+=Me("Suspense");break;case 19:t+=Me("SuspenseList");break;case 31:t+=Me("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=ha(e.type));break;case 11:e._debugOwner||t!==""||(t+=ha(e.type.render))}for(;e;)if(typeof e.tag=="number"){var i=e;e=i._debugOwner;var s=i._debugStack;if(e&&s){var h=Ae(s);h!==""&&(t+=`
75
+ `+h)}}else if(e.debugStack!=null){var p=e.debugStack;(e=e.owner)&&p&&(t+=`
76
+ `+Ae(p))}else break;var T=t}catch(_){T=`
77
+ Error generating stack: `+_.message+`
78
+ `+_.stack}return T}function ye(e,t,i,s,h,p,T){var _=Hl;Rc(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,i,s,h,p,T)):t(i,s,h,p,T)}finally{Rc(_)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Rc(e){$.getCurrentStack=e===null?null:Mc,qi=!1,Hl=e}function Dc(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function ci(e){try{return Ru(e),!1}catch{return!0}}function Ru(e){return""+e}function Nt(e,t){if(ci(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Dc(e)),Ru(e)}function fp(e,t){if(ci(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Dc(e)),Ru(e)}function Ud(e){if(ci(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Dc(e)),Ru(e)}function dp(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Cs=t.inject(e),Un=t}catch(i){console.error("React instrumentation encountered an error: %o.",i)}return!!t.checkDCE}function qt(e){if(typeof gy=="function"&&eS(e),Un&&typeof Un.setStrictMode=="function")try{Un.setStrictMode(Cs,e)}catch(t){Gi||(Gi=!0,console.error("React instrumentation encountered an error: %o",t))}}function hp(e){return e>>>=0,e===0?32:31-(yy(e)/Tm|0)|0}function Du(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function Nd(e,t,i){var s=e.pendingLanes;if(s===0)return 0;var h=0,p=e.suspendedLanes,T=e.pingedLanes;e=e.warmLanes;var _=s&134217727;return _!==0?(s=_&~p,s!==0?h=Du(s):(T&=_,T!==0?h=Du(T):i||(i=_&~e,i!==0&&(h=Du(i))))):(_=s&~p,_!==0?h=Du(_):T!==0?h=Du(T):i||(i=s&~e,i!==0&&(h=Du(i)))),h===0?0:t!==0&&t!==h&&(t&p)===0&&(p=h&-h,i=t&-t,p>=i||p===32&&(i&4194048)!==0)?t:h}function $n(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function xT(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function zd(){var e=Fr;return Fr<<=1,(Fr&62914560)===0&&(Fr=4194304),e}function Od(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function Bo(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function UT(e,t,i,s,h,p){var T=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var _=e.entanglements,R=e.expirationTimes,x=e.hiddenUpdates;for(i=T&~i;0<i;){var B=31-jn(i),G=1<<B;_[B]=0,R[B]=-1;var w=x[B];if(w!==null)for(x[B]=null,B=0;B<w.length;B++){var J=w[B];J!==null&&(J.lane&=-536870913)}i&=~G}s!==0&&mp(e,s,0),p!==0&&h===0&&e.tag!==0&&(e.suspendedLanes|=p&~(T&~t))}function mp(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-jn(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|i&261930}function Nv(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var s=31-jn(i),h=1<<s;h&t|e[s]&t&&(e[s]|=t),i&=~h}}function zv(e,t){var i=t&-t;return i=(i&42)!==0?1:xu(i),(i&(e.suspendedLanes|t))!==0?0:i}function xu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function xl(e,t,i){if(Yi)for(e=e.pendingUpdatersLaneMap;0<i;){var s=31-jn(i),h=1<<s;e[s].add(t),i&=~h}}function lo(e,t){if(Yi)for(var i=e.pendingUpdatersLaneMap,s=e.memoizedUpdaters;0<t;){var h=31-jn(t);e=1<<h,h=i[h],0<h.size&&(h.forEach(function(p){var T=p.alternate;T!==null&&s.has(T)||s.add(p)}),h.clear()),t&=~e}}function fl(e){return e&=-e,Nn<e?el<e?(e&134217727)!==0?ul:Tu:el:Nn}function Ov(){var e=At.p;return e!==0?e:(e=window.event,e===void 0?ul:sm(e.type))}function wv(e,t){var i=At.p;try{return At.p=e,t()}finally{At.p=i}}function pp(e){delete e[Wt],delete e[Rl],delete e[Es],delete e[XT],delete e[tS]}function ao(e){var t=e[Wt];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Do]||i[Wt]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=ms(e);e!==null;){if(i=e[Wt])return i;e=ms(e)}return t}e=i,i=e.parentNode}return null}function Na(e){if(e=e[Wt]||e[Do]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function qo(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function ma(e){var t=e[Xf];return t||(t=e[Xf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function pn(e){e[$r]=!0}function za(e,t){ks(e,t),ks(e+"Capture",t)}function ks(e,t){Ii[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ii[e]=t;var i=e.toLowerCase();for(Pr[i]=e,e==="onDoubleClick"&&(Pr.ondblclick=e),e=0;e<t.length;e++)nS.add(t[e])}function Uu(e,t){lS[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function xc(e){return ia.call(Cm,e)?!0:ia.call(vy,e)?!1:Wr.test(e)?Cm[e]=!0:(vy[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Xs(e,t,i){if(xc(t)){if(!e.hasAttribute(t)){switch(typeof i){case"symbol":case"object":return i;case"function":return i;case"boolean":if(i===!1)return i}return i===void 0?void 0:null}return e=e.getAttribute(t),e===""&&i===!0?!0:(Nt(i,t),e===""+i?i:e)}}function wd(e,t,i){if(xc(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}Nt(i,t),e.setAttribute(t,""+i)}}function Uc(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}Nt(i,t),e.setAttribute(t,""+i)}}function fi(e,t,i,s){if(s===null)e.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}Nt(s,i),e.setAttributeNS(t,i,""+s)}}function Il(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Ud(e),e;default:return""}}function Vd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gp(e,t,i){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var h=s.get,p=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return h.call(this)},set:function(T){Ud(T),i=""+T,p.call(this,T)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return i},setValue:function(T){Ud(T),i=""+T},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ld(e){if(!e._valueTracker){var t=Vd(e)?"checked":"value";e._valueTracker=gp(e,t,""+e[t])}}function yp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),s="";return e&&(s=Vd(e)?e.checked?"true":"false":e.value),e=s,e!==i?(t.setValue(e),!0):!1}function Oa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zt(e){return e.replace(Em,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function dl(e,t){t.checked===void 0||t.defaultChecked===void 0||aS||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Yl()||"A component",t.type),aS=!0),t.value===void 0||t.defaultValue===void 0||Sy||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Yl()||"A component",t.type),Sy=!0)}function Go(e,t,i,s,h,p,T,_){e.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?(Nt(T,"type"),e.type=T):e.removeAttribute("type"),t!=null?T==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Il(t)):e.value!==""+Il(t)&&(e.value=""+Il(t)):T!=="submit"&&T!=="reset"||e.removeAttribute("value"),t!=null?vp(e,T,Il(t)):i!=null?vp(e,T,Il(i)):s!=null&&e.removeAttribute("value"),h==null&&p!=null&&(e.defaultChecked=!!p),h!=null&&(e.checked=h&&typeof h!="function"&&typeof h!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?(Nt(_,"name"),e.name=""+Il(_)):e.removeAttribute("name")}function Hd(e,t,i,s,h,p,T,_){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(Nt(p,"type"),e.type=p),t!=null||i!=null){if(!(p!=="submit"&&p!=="reset"||t!=null)){Ld(e);return}i=i!=null?""+Il(i):"",t=t!=null?""+Il(t):i,_||t===e.value||(e.value=t),e.defaultValue=t}s=s??h,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=_?e.checked:!!s,e.defaultChecked=!!s,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(Nt(T,"name"),e.name=T),Ld(e)}function vp(e,t,i){t==="number"&&Oa(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Vv(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?qf.Children.forEach(t.children,function(i){i==null||typeof i=="string"||typeof i=="number"||typeof i=="bigint"||n||(n=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||o||(o=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||Qf||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Qf=!0)}function Sp(){var e=Yl();return e?`
79
+
80
+ Check the render method of \``+e+"`.":""}function di(e,t,i,s){if(e=e.options,t){t={};for(var h=0;h<i.length;h++)t["$"+i[h]]=!0;for(i=0;i<e.length;i++)h=t.hasOwnProperty("$"+e[i].value),e[i].selected!==h&&(e[i].selected=h),h&&s&&(e[i].defaultSelected=!0)}else{for(i=""+Il(i),t=null,h=0;h<e.length;h++){if(e[h].value===i){e[h].selected=!0,s&&(e[h].defaultSelected=!0);return}t!==null||e[h].disabled||(t=e[h])}t!==null&&(t.selected=!0)}}function Bd(e,t){for(e=0;e<d.length;e++){var i=d[e];if(t[i]!=null){var s=An(t[i]);t.multiple&&!s?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",i,Sp()):!t.multiple&&s&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",i,Sp())}}t.value===void 0||t.defaultValue===void 0||u||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),u=!0)}function Nu(e,t){t.value===void 0||t.defaultValue===void 0||v||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Yl()||"A component"),v=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function zu(e,t,i){if(t!=null&&(t=""+Il(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+Il(i):""}function Qs(e,t,i,s){if(t==null){if(s!=null){if(i!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(An(s)){if(1<s.length)throw Error("<textarea> can only have at most one child.");s=s[0]}i=s}i==null&&(i=""),t=i}i=Il(t),e.defaultValue=i,s=e.textContent,s===i&&s!==""&&s!==null&&(e.value=s),Ld(e)}function Ou(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Ou(e.children[0],t):e}function Mt(e){return" "+" ".repeat(e)}function wu(e){return"+ "+" ".repeat(e)}function Yo(e){return"- "+" ".repeat(e)}function Io(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function hi(e,t){return S.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function qd(e,t,i){var s=120-2*i;if(t===null)return wu(i)+hi(e,s)+`
81
+ `;if(typeof t=="string"){for(var h=0;h<t.length&&h<e.length&&t.charCodeAt(h)===e.charCodeAt(h);h++);return h>s-8&&10<h&&(e="..."+e.slice(h-8),t="..."+t.slice(h-8)),wu(i)+hi(e,s)+`
82
+ `+Yo(i)+hi(t,s)+`
83
+ `}return Mt(i)+hi(e,s)+`
84
+ `}function Gd(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,i){return i})}function Js(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(An(e))return"[...]";if(e.$$typeof===Ma)return(t=Ne(e.type))?"<"+t+">":"<...>";var i=Gd(e);if(i==="Object"){i="",t-=2;for(var s in e)if(e.hasOwnProperty(s)){var h=JSON.stringify(s);if(h!=='"'+s+'"'&&(s=h),t-=s.length-2,h=Js(e[s],15>t?t:15),t-=h.length,0>t){i+=i===""?"...":", ...";break}i+=(i===""?"":",")+s+":"+h}return"{"+i+"}"}return i;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Ks(e,t){return typeof e!="string"||S.test(e)?"{"+Js(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function Fs(e,t,i){var s=120-i.length-e.length,h=[],p;for(p in t)if(t.hasOwnProperty(p)&&p!=="children"){var T=Ks(t[p],120-i.length-p.length-1);s-=p.length+T.length+2,h.push(p+"="+T)}return h.length===0?i+"<"+e+`>
85
+ `:0<s?i+"<"+e+" "+h.join(" ")+`>
86
+ `:i+"<"+e+`
87
+ `+i+" "+h.join(`
88
+ `+i+" ")+`
89
+ `+i+`>
90
+ `}function Yd(e,t,i){var s="",h=nt({},t),p;for(p in e)if(e.hasOwnProperty(p)){delete h[p];var T=120-2*i-p.length-2,_=Js(e[p],T);t.hasOwnProperty(p)?(T=Js(t[p],T),s+=wu(i)+p+": "+_+`
91
+ `,s+=Yo(i)+p+": "+T+`
92
+ `):s+=wu(i)+p+": "+_+`
93
+ `}for(var R in h)h.hasOwnProperty(R)&&(e=Js(h[R],120-2*i-R.length-2),s+=Yo(i)+R+": "+e+`
94
+ `);return s}function io(e,t,i,s){var h="",p=new Map;for(x in i)i.hasOwnProperty(x)&&p.set(x.toLowerCase(),x);if(p.size===1&&p.has("children"))h+=Fs(e,t,Mt(s));else{for(var T in t)if(t.hasOwnProperty(T)&&T!=="children"){var _=120-2*(s+1)-T.length-1,R=p.get(T.toLowerCase());if(R!==void 0){p.delete(T.toLowerCase());var x=t[T];R=i[R];var B=Ks(x,_);_=Ks(R,_),typeof x=="object"&&x!==null&&typeof R=="object"&&R!==null&&Gd(x)==="Object"&&Gd(R)==="Object"&&(2<Object.keys(x).length||2<Object.keys(R).length||-1<B.indexOf("...")||-1<_.indexOf("..."))?h+=Mt(s+1)+T+`={{
95
+ `+Yd(x,R,s+2)+Mt(s+1)+`}}
96
+ `:(h+=wu(s+1)+T+"="+B+`
97
+ `,h+=Yo(s+1)+T+"="+_+`
98
+ `)}else h+=Mt(s+1)+T+"="+Ks(t[T],_)+`
99
+ `}p.forEach(function(G){if(G!=="children"){var w=120-2*(s+1)-G.length-1;h+=Yo(s+1)+G+"="+Ks(i[G],w)+`
100
+ `}}),h=h===""?Mt(s)+"<"+e+`>
101
+ `:Mt(s)+"<"+e+`
102
+ `+h+Mt(s)+`>
103
+ `}return e=i.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(p="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(p=""+t),h+=qd(p,""+e,s+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(h=e==null?h+qd(""+t,null,s+1):h+qd(""+t,void 0,s+1)),h}function Zl(e,t){var i=Io(e);if(i===null){for(i="",e=e.child;e;)i+=Zl(e,t),e=e.sibling;return i}return Mt(t)+"<"+i+`>
104
+ `}function Id(e,t){var i=Ou(e,t);if(i!==e&&(e.children.length!==1||e.children[0]!==i))return Mt(t)+`...
105
+ `+Id(i,t+1);i="";var s=e.fiber._debugInfo;if(s)for(var h=0;h<s.length;h++){var p=s[h].name;typeof p=="string"&&(i+=Mt(t)+"<"+p+`>
106
+ `,t++)}if(s="",h=e.fiber.pendingProps,e.fiber.tag===6)s=qd(h,e.serverProps,t),t++;else if(p=Io(e.fiber),p!==null)if(e.serverProps===void 0){s=t;var T=120-2*s-p.length-2,_="";for(x in h)if(h.hasOwnProperty(x)&&x!=="children"){var R=Ks(h[x],15);if(T-=x.length+R.length+2,0>T){_+=" ...";break}_+=" "+x+"="+R}s=Mt(s)+"<"+p+_+`>
107
+ `,t++}else e.serverProps===null?(s=Fs(p,h,wu(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(s=io(p,h,e.serverProps,t),t++);var x="";for(h=e.fiber.child,p=0;h&&p<e.children.length;)T=e.children[p],T.fiber===h?(x+=Id(T,t),p++):x+=Zl(h,t),h=h.sibling;for(h&&0<e.children.length&&(x+=Mt(t)+`...
108
+ `),h=e.serverTail,e.serverProps===null&&t--,e=0;e<h.length;e++)p=h[e],x=typeof p=="string"?x+(Yo(t)+hi(p,120-2*t)+`
109
+ `):x+Fs(p.type,p.props,Yo(t));return i+s+x}function Tp(e){try{return`
110
+
111
+ `+Id(e,0)}catch{return""}}function Zd(e,t,i){for(var s=t,h=null,p=0;s;)s===e&&(p=0),h={fiber:s,children:h!==null?[h]:[],serverProps:s===t?i:s===e?null:void 0,serverTail:[],distanceFromLeaf:p},p++,s=s.return;return h!==null?Tp(h).replaceAll(/^[+-]/gm,">"):""}function Cp(e,t){var i=nt({},e||W),s={tag:t};return U.indexOf(t)!==-1&&(i.aTagInScope=null,i.buttonTagInScope=null,i.nobrTagInScope=null),L.indexOf(t)!==-1&&(i.pTagInButtonScope=null),M.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(i.listItemTagAutoclosing=null,i.dlItemTagAutoclosing=null),i.current=s,t==="form"&&(i.formTag=s),t==="a"&&(i.aTagInScope=s),t==="button"&&(i.buttonTagInScope=s),t==="nobr"&&(i.nobrTagInScope=s),t==="p"&&(i.pTagInButtonScope=s),t==="li"&&(i.listItemTagAutoclosing=s),(t==="dd"||t==="dt")&&(i.dlItemTagAutoclosing=s),t==="#document"||t==="html"?i.containerTagInScope=null:i.containerTagInScope||(i.containerTagInScope=s),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?i.implicitRootScope===!0&&(i.implicitRootScope=!1):i.implicitRootScope=!0,i}function Nc(e,t,i){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(i)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!i)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return X.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return i||t===null;case"html":return i&&t==="#document"||t===null;case"body":return i&&(t==="#document"||t==="html")||t===null}return!0}function NT(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function kl(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function zc(e,t){t=t||W;var i=t.current;if(t=(i=Nc(e,i&&i.tag,t.implicitRootScope)?null:i)?null:NT(e,t),t=i||t,!t)return!0;var s=t.tag;if(t=String(!!i)+"|"+e+"|"+s,ne[t])return!1;ne[t]=!0;var h=(t=Hl)?kl(t.return,s):null,p=t!==null&&h!==null?Zd(h,t,null):"",T="<"+e+">";return i?(i="",s==="table"&&e==="tr"&&(i+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
112
+ This will cause a hydration error.%s`,T,s,i,p)):console.error(`In HTML, %s cannot be a descendant of <%s>.
113
+ This will cause a hydration error.%s`,T,s,p),t&&(e=t.return,h===null||e===null||h===e&&e._debugOwner===t._debugOwner||ye(h,function(){console.error(`<%s> cannot contain a nested %s.
114
+ See this log for the ancestor stack trace.`,s,T)})),!1}function Oc(e,t,i){if(i||Nc("#text",t,!1))return!0;if(i="#text|"+t,ne[i])return!1;ne[i]=!0;var s=(i=Hl)?kl(i,t):null;return i=i!==null&&s!==null?Zd(s,i,i.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
115
+ This will cause a hydration error.%s`,t,i):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
116
+ This will cause a hydration error.%s`,t,i),!1}function Vu(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}function $s(e){return e.replace(I,function(t,i){return i.toUpperCase()})}function Ep(e,t,i){var s=t.indexOf("--")===0;s||(-1<t.indexOf("-")?k.hasOwnProperty(t)&&k[t]||(k[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,$s(t.replace(Lt,"ms-")))):Ve.test(t)?k.hasOwnProperty(t)&&k[t]||(k[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!q.test(i)||te.hasOwnProperty(i)&&te[i]||(te[i]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,i.replace(q,""))),typeof i=="number"&&(isNaN(i)?xe||(xe=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(i)||vt||(vt=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),i==null||typeof i=="boolean"||i===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,i):typeof i!="number"||i===0||Ee.has(t)?t==="float"?e.cssFloat=i:(fp(i,t),e[t]=(""+i).trim()):e[t]=i+"px"}function _p(e,t,i){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,i!=null){if(t){var s={};if(i){for(var h in i)if(i.hasOwnProperty(h)&&!t.hasOwnProperty(h))for(var p=Q[h]||[h],T=0;T<p.length;T++)s[p[T]]=h}for(var _ in t)if(t.hasOwnProperty(_)&&(!i||i[_]!==t[_]))for(h=Q[_]||[_],p=0;p<h.length;p++)s[h[p]]=_;_={};for(var R in t)for(h=Q[R]||[R],p=0;p<h.length;p++)_[h[p]]=R;R={};for(var x in s)if(h=s[x],(p=_[x])&&h!==p&&(T=h+","+p,!R[T])){R[T]=!0,T=console;var B=t[h];T.error.call(T,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",B==null||typeof B=="boolean"||B===""?"Removing":"Updating",h,p)}}for(var G in i)!i.hasOwnProperty(G)||t!=null&&t.hasOwnProperty(G)||(G.indexOf("--")===0?e.setProperty(G,""):G==="float"?e.cssFloat="":e[G]="");for(var w in t)x=t[w],t.hasOwnProperty(w)&&i[w]!==x&&Ep(e,w,x)}else for(s in t)t.hasOwnProperty(s)&&Ep(e,s,t[s])}function mi(e){if(e.indexOf("-")===-1)return!1;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}}function Lv(e){return Ct.get(e)||e}function Hv(e,t){if(ia.call(_m,t)&&_m[t])return!0;if(Uz.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=iS.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),_m[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),_m[t]=!0}if(xz.test(t)){if(e=t.toLowerCase(),e=iS.hasOwnProperty(e)?e:null,e==null)return _m[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),_m[t]=!0)}return!0}function Bv(e,t){var i=[],s;for(s in t)Hv(e,s)||i.push(s);t=i.map(function(h){return"`"+h+"`"}).join(", "),i.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<i.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function Ap(e,t,i,s){if(ia.call(oa,t)&&oa[t])return!0;var h=t.toLowerCase();if(h==="onfocusin"||h==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),oa[t]=!0;if(typeof i=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(s!=null){if(e=s.possibleRegistrationNames,s.registrationNameDependencies.hasOwnProperty(t))return!0;if(s=e.hasOwnProperty(h)?e[h]:null,s!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,s),oa[t]=!0;if(S1.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),oa[t]=!0}else if(S1.test(t))return Nz.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),oa[t]=!0;if(zz.test(t)||Oz.test(t))return!0;if(h==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),oa[t]=!0;if(h==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),oa[t]=!0;if(h==="is"&&i!==null&&i!==void 0&&typeof i!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof i),oa[t]=!0;if(typeof i=="number"&&isNaN(i))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),oa[t]=!0;if(ni.hasOwnProperty(h)){if(h=ni[h],h!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,h),oa[t]=!0}else if(t!==h)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,h),oa[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof i){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return h=t.toLowerCase().slice(0,5),h==="data-"||h==="aria-"?!0:(i?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',i,t,t,i,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',i,t,t,i,t,t,t),oa[t]=!0)}case"function":case"symbol":return oa[t]=!0,!1;case"string":if(i==="false"||i==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",i,t,i==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,i),oa[t]=!0}}return!0}function zT(e,t,i){var s=[],h;for(h in t)Ap(e,h,t[h],i)||s.push(h);t=s.map(function(p){return"`"+p+"`"}).join(", "),s.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<s.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function wc(e){return wz.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function pa(){}function wa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function kd(e){var t=Na(e);if(t&&(e=t.stateNode)){var i=e[Rl]||null;e:switch(e=t.stateNode,t.type){case"input":if(Go(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(Nt(t,"name"),i=i.querySelectorAll('input[name="'+zt(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var s=i[t];if(s!==e&&s.form===e.form){var h=s[Rl]||null;if(!h)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Go(s,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(t=0;t<i.length;t++)s=i[t],s.form===e.form&&yp(s)}break e;case"textarea":zu(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&di(e,!!i.multiple,t,!1)}}}function Xd(e,t,i){if(QT)return e(t,i);QT=!0;try{var s=e(t);return s}finally{if(QT=!1,(Am!==null||bm!==null)&&(na(),Am&&(t=Am,e=bm,bm=Am=null,kd(t),e)))for(t=0;t<e.length;t++)kd(e[t])}}function pi(e,t){var i=e.stateNode;if(i===null)return null;var s=i[Rl]||null;if(s===null)return null;i=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof i+"` type.");return i}function Lu(){if(oS)return oS;var e,t=KT,i=t.length,s,h="value"in jr?jr.value:jr.textContent,p=h.length;for(e=0;e<i&&t[e]===h[e];e++);var T=i-e;for(s=1;s<=T&&t[i-s]===h[p-s];s++);return oS=h.slice(e,1<s?1-s:void 0)}function Vc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ps(){return!0}function bp(){return!1}function Vn(e){function t(i,s,h,p,T){this._reactName=i,this._targetInst=h,this.type=s,this.nativeEvent=p,this.target=T,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(i=e[_],this[_]=i?i(p):p[_]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Ps:bp,this.isPropagationStopped=bp,this}return nt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Ps)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Ps)},persist:function(){},isPersistent:Ps}),t}function oo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jz[e])?!!t[e]:!1}function Lc(){return oo}function Ws(e,t){switch(e){case"keyup":return i4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==_1;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function Mp(e,t){switch(e){case"compositionend":return uo(t);case"keypress":return t.which!==b1?null:(R1=!0,M1);case"textInput":return e=t.data,e===M1&&R1?null:e;default:return null}}function Qd(e,t){if(Mm)return e==="compositionend"||!WT&&Ws(e,t)?(e=Lu(),oS=KT=jr=null,Mm=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return A1&&t.locale!=="ko"?null:t.data;default:return null}}function Rp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!u4[e.type]:t==="textarea"}function Jd(e){if(!Cu)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function Hc(e,t,i,s){Am?bm?bm.push(s):bm=[s]:Am=s,t=Pa(t,"onChange"),0<t.length&&(i=new uS("onChange","change",null,i,s),e.push({event:i,listeners:t}))}function qv(e){xt(e,0)}function Pn(e){var t=qo(e);if(yp(t))return e}function Zo(e,t){if(e==="change")return t}function Bc(){by&&(by.detachEvent("onpropertychange",js),My=by=null)}function js(e){if(e.propertyName==="value"&&Pn(My)){var t=[];Hc(t,My,e,wa(e)),Xd(qv,t)}}function OT(e,t,i){e==="focusin"?(Bc(),by=t,My=i,by.attachEvent("onpropertychange",js)):e==="focusout"&&Bc()}function Dp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pn(My)}function xp(e,t){if(e==="click")return Pn(t)}function qc(e,t){if(e==="input"||e==="change")return Pn(t)}function Kd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function er(e,t){if(ua(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var h=i[s];if(!ia.call(t,h)||!ua(e[h],t[h]))return!1}return!0}function Gv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yv(e,t){var i=Gv(e);e=0;for(var s;i;){if(i.nodeType===3){if(s=e+i.textContent.length,e<=t&&s>=t)return{node:i,offset:t-e};e=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Gv(i)}}function Iv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Iv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Oa(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Oa(e.document)}return t}function Up(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 Zv(e,t,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;eC||Rm==null||Rm!==Oa(s)||(s=Rm,"selectionStart"in s&&Up(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Ry&&er(Ry,s)||(Ry=s,s=Pa(jT,"onSelect"),0<s.length&&(t=new uS("onSelect","select",null,t,i),e.push({event:t,listeners:s}),t.target=Rm)))}function Hu(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}function Bu(e){if(tC[e])return tC[e];if(!Dm[e])return e;var t=Dm[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in x1)return tC[e]=t[i];return e}function Va(e,t){w1.set(e,t),za(t,[e])}function kv(e){for(var t=rS,i=0;i<e.length;i++){var s=e[i];if(typeof s=="object"&&s!==null)if(An(s)&&s.length===2&&typeof s[0]=="string"){if(t!==rS&&t!==oC)return aC;t=oC}else return aC;else{if(typeof s=="function"||typeof s=="string"&&50<s.length||t!==rS&&t!==iC)return aC;t=iC}}return t}function Np(e,t,i,s){for(var h in e)ia.call(e,h)&&h[0]!=="_"&&gi(h,e[h],t,i,s)}function gi(e,t,i,s,h){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Ma){var p=Ne(t.type)||"…",T=t.key;t=t.props;var _=Object.keys(t),R=_.length;if(T==null&&R===0){t="<"+p+" />";break}if(3>s||R===1&&_[0]==="children"&&T==null){t="<"+p+" … />";break}i.push([h+"  ".repeat(s)+e,"<"+p]),T!==null&&gi("key",T,i,s+1,h),e=!1;for(var x in t)x==="children"?t.children!=null&&(!An(t.children)||0<t.children.length)&&(e=!0):ia.call(t,x)&&x[0]!=="_"&&gi(x,t[x],i,s+1,h);i.push(["",e?">…</"+p+">":"/>"]);return}if(p=Object.prototype.toString.call(t),p=p.slice(8,p.length-1),p==="Array"){if(x=kv(t),x===iC||x===rS){t=JSON.stringify(t);break}else if(x===oC){for(i.push([h+"  ".repeat(s)+e,""]),e=0;e<t.length;e++)p=t[e],gi(p[0],p[1],i,s+1,h);return}}if(p==="Promise"){if(t.status==="fulfilled"){if(p=i.length,gi(e,t.value,i,s,h),i.length>p){i=i[p],i[1]="Promise<"+(i[1]||"Object")+">";return}}else if(t.status==="rejected"&&(p=i.length,gi(e,t.reason,i,s,h),i.length>p)){i=i[p],i[1]="Rejected Promise<"+i[1]+">";return}i.push(["  ".repeat(s)+e,"Promise"]);return}p==="Object"&&(x=Object.getPrototypeOf(t))&&typeof x.constructor=="function"&&(p=x.constructor.name),i.push([h+"  ".repeat(s)+e,p==="Object"?3>s?"":"…":p]),3>s&&Np(t,i,s+1,h);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===m4?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}i.push([h+"  ".repeat(s)+e,t])}function Xv(e,t,i,s){var h=!0;for(T in e)T in t||(i.push([cS+"  ".repeat(s)+T,"…"]),h=!1);for(var p in t)if(p in e){var T=e[p],_=t[p];if(T!==_){if(s===0&&p==="children")h="  ".repeat(s)+p,i.push([cS+h,"…"],[fS+h,"…"]);else{if(!(3<=s)){if(typeof T=="object"&&typeof _=="object"&&T!==null&&_!==null&&T.$$typeof===_.$$typeof)if(_.$$typeof===Ma){if(T.type===_.type&&T.key===_.key){T=Ne(_.type)||"…",h="  ".repeat(s)+p,T="<"+T+" … />",i.push([cS+h,T],[fS+h,T]),h=!1;continue}}else{var R=Object.prototype.toString.call(T),x=Object.prototype.toString.call(_);if(R===x&&(x==="[object Object]"||x==="[object Array]")){R=[H1+"  ".repeat(s)+p,x==="[object Array]"?"Array":""],i.push(R),x=i.length,Xv(T,_,i,s+1)?x===i.length&&(R[1]="Referentially unequal but deeply equal objects. Consider memoization."):h=!1;continue}}else if(typeof T=="function"&&typeof _=="function"&&T.name===_.name&&T.length===_.length&&(R=Function.prototype.toString.call(T),x=Function.prototype.toString.call(_),R===x)){T=_.name===""?"() => {}":_.name+"() {}",i.push([H1+"  ".repeat(s)+p,T+" Referentially unequal function closure. Consider memoization."]);continue}}gi(p,T,i,s,cS),gi(p,_,i,s,fS)}h=!1}}else i.push([fS+"  ".repeat(s)+p,"…"]),h=!1;return h}function La(e){gt=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function ga(e,t,i,s){jt&&(tc.start=t,tc.end=i,_s.color="warning",_s.tooltipText=s,_s.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,s,tc)):performance.measure(s,tc))}function $d(e,t,i){ga(e,t,i,"Reconnect")}function Pd(e,t,i,s,h){var p=ue(e);if(p!==null&&jt){var T=e.alternate,_=e.actualDuration;if(T===null||T.child!==e.child)for(var R=e.child;R!==null;R=R.sibling)_-=R.actualDuration;s=.5>_?s?"tertiary-light":"primary-light":10>_?s?"tertiary":"primary":100>_?s?"tertiary-dark":"primary-dark":"error";var x=e.memoizedProps;_=e._debugTask,x!==null&&T!==null&&T.memoizedProps!==x?(R=[p4],x=Xv(T.memoizedProps,x,R,0),1<R.length&&(x&&!ec&&(T.lanes&h)===0&&100<e.actualDuration?(ec=!0,R[0]=g4,_s.color="warning",_s.tooltipText=B1):(_s.color=s,_s.tooltipText=p),_s.properties=R,tc.start=t,tc.end=i,_!=null?_.run(performance.measure.bind(performance,"​"+p,tc)):performance.measure("​"+p,tc))):_!=null?_.run(console.timeStamp.bind(console,p,t,i,Zi,void 0,s)):console.timeStamp(p,t,i,Zi,void 0,s)}}function zp(e,t,i,s){if(jt){var h=ue(e);if(h!==null){for(var p=null,T=[],_=0;_<s.length;_++){var R=s[_];p==null&&R.source!==null&&(p=R.source._debugTask),R=R.value,T.push(["Error",typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R)])}e.key!==null&&gi("key",e.key,T,0,""),e.memoizedProps!==null&&Np(e.memoizedProps,T,0,""),p==null&&(p=e._debugTask),e={start:t,end:i,detail:{devtools:{color:"error",track:Zi,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:T}}},p?p.run(performance.measure.bind(performance,"​"+h,e)):performance.measure("​"+h,e)}}}function Ha(e,t,i,s,h){if(h!==null){if(jt){var p=ue(e);if(p!==null){s=[];for(var T=0;T<h.length;T++){var _=h[T].value;s.push(["Error",typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_)])}e.key!==null&&gi("key",e.key,s,0,""),e.memoizedProps!==null&&Np(e.memoizedProps,s,0,""),t={start:t,end:i,detail:{devtools:{color:"error",track:Zi,tooltipText:"A lifecycle or effect errored",properties:s}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+p,t)):performance.measure("​"+p,t)}}}else p=ue(e),p!==null&&jt&&(h=1>s?"secondary-light":100>s?"secondary":500>s?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,p,t,i,Zi,void 0,h)):console.timeStamp(p,t,i,Zi,void 0,h))}function wT(e,t,i,s){if(jt&&!(t<=e)){var h=(i&738197653)===i?"tertiary-dark":"primary-dark";i=(i&536870912)===i?"Prepared":(i&201326741)===i?"Hydrated":"Render",s?s.run(console.timeStamp.bind(console,i,e,t,gt,mt,h)):console.timeStamp(i,e,t,gt,mt,h)}}function Qv(e,t,i,s){!jt||t<=e||(i=(i&738197653)===i?"tertiary-dark":"primary-dark",s?s.run(console.timeStamp.bind(console,"Prewarm",e,t,gt,mt,i)):console.timeStamp("Prewarm",e,t,gt,mt,i))}function Jv(e,t,i,s){!jt||t<=e||(i=(i&738197653)===i?"tertiary-dark":"primary-dark",s?s.run(console.timeStamp.bind(console,"Suspended",e,t,gt,mt,i)):console.timeStamp("Suspended",e,t,gt,mt,i))}function VT(e,t,i,s,h,p){if(jt&&!(t<=e)){i=[];for(var T=0;T<s.length;T++){var _=s[T].value;i.push(["Recoverable Error",typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:gt,trackGroup:mt,tooltipText:h?"Hydration Failed":"Recovered after Error",properties:i}}},p?p.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function Op(e,t,i,s){!jt||t<=e||(s?s.run(console.timeStamp.bind(console,"Errored",e,t,gt,mt,"error")):console.timeStamp("Errored",e,t,gt,mt,"error"))}function LT(e,t,i,s){!jt||t<=e||(s?s.run(console.timeStamp.bind(console,i,e,t,gt,mt,"secondary-light")):console.timeStamp(i,e,t,gt,mt,"secondary-light"))}function Kv(e,t,i,s,h){if(jt&&!(t<=e)){for(var p=[],T=0;T<i.length;T++){var _=i[T].value;p.push(["Error",typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_)])}e={start:e,end:t,detail:{devtools:{color:"error",track:gt,trackGroup:mt,tooltipText:s?"Remaining Effects Errored":"Commit Errored",properties:p}}},h?h.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function wp(e,t,i){!jt||t<=e||console.timeStamp("Animating",e,t,gt,mt,"secondary-dark")}function Wd(){for(var e=xm,t=uC=xm=0;t<e;){var i=ki[t];ki[t++]=null;var s=ki[t];ki[t++]=null;var h=ki[t];ki[t++]=null;var p=ki[t];if(ki[t++]=null,s!==null&&h!==null){var T=s.pending;T===null?h.next=h:(h.next=T.next,T.next=h),s.pending=h}p!==0&&Vp(i,h,p)}}function tr(e,t,i,s){ki[xm++]=e,ki[xm++]=t,ki[xm++]=i,ki[xm++]=s,uC|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function qu(e,t,i,s){return tr(e,t,i,s),Gc(e)}function ll(e,t){return tr(e,null,null,t),Gc(e)}function Vp(e,t,i){e.lanes|=i;var s=e.alternate;s!==null&&(s.lanes|=i);for(var h=!1,p=e.return;p!==null;)p.childLanes|=i,s=p.alternate,s!==null&&(s.childLanes|=i),p.tag===22&&(e=p.stateNode,e===null||e._visibility&Dy||(h=!0)),e=p,p=p.return;return e.tag===3?(p=e.stateNode,h&&t!==null&&(h=31-jn(i),e=p.hiddenUpdates,s=e[h],s===null?e[h]=[t]:s.push(t),t.lane=i|536870912),p):null}function Gc(e){if(tv>z4)throw rd=tv=0,nv=GC=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");rd>O4&&(rd=0,nv=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&ba(e);for(var t=e,i=t.return;i!==null;)t.alternate===null&&(t.flags&4098)!==0&&ba(e),t=i,i=t.return;return t.tag===3?t.stateNode:null}function ko(e){if(Xi===null)return e;var t=Xi(e);return t===void 0?e:t.current}function jd(e){if(Xi===null)return e;var t=Xi(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=ko(e.render),e.render!==t)?(t={$$typeof:Ir,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Lp(e,t){if(Xi===null)return!1;var i=e.elementType;t=t.type;var s=!1,h=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(s=!0);break;case 0:(typeof t=="function"||h===ol)&&(s=!0);break;case 11:(h===Ir||h===ol)&&(s=!0);break;case 14:case 15:(h===Yf||h===ol)&&(s=!0);break;default:return!1}return!!(s&&(e=Xi(i),e!==void 0&&e===Xi(t)))}function Gu(e){Xi!==null&&typeof WeakSet=="function"&&(Um===null&&(Um=new WeakSet),Um.add(e))}function Fv(e,t,i){do{var s=e,h=s.alternate,p=s.child,T=s.sibling,_=s.tag;s=s.type;var R=null;switch(_){case 0:case 15:case 1:R=s;break;case 11:R=s.render}if(Xi===null)throw Error("Expected resolveFamily to be set during hot reload.");var x=!1;if(s=!1,R!==null&&(R=Xi(R),R!==void 0&&(i.has(R)?s=!0:t.has(R)&&(_===1?s=!0:x=!0))),Um!==null&&(Um.has(e)||h!==null&&Um.has(h))&&(s=!0),s&&(e._debugNeedsRemount=!0),(s||x)&&(h=ll(e,2),h!==null&&Ye(h,e,2)),p===null||s||Fv(p,t,i),T===null)break;e=T}while(!0)}function HT(e,t,i,s){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,q1||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Hp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yi(e,t){var i=e.alternate;switch(i===null?(i=z(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i._debugOwner=e._debugOwner,i._debugStack=e._debugStack,i._debugTask=e._debugTask,i._debugHookTypes=e._debugHookTypes,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null,i.actualDuration=-0,i.actualStartTime=-1.1),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i.selfBaseDuration=e.selfBaseDuration,i.treeBaseDuration=e.treeBaseDuration,i._debugInfo=e._debugInfo,i._debugNeedsRemount=e._debugNeedsRemount,i.tag){case 0:case 15:i.type=ko(e.type);break;case 1:i.type=ko(e.type);break;case 11:i.type=jd(e.type)}return i}function Bp(e,t){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=i.selfBaseDuration,e.treeBaseDuration=i.treeBaseDuration),e}function Yu(e,t,i,s,h,p){var T=0,_=e;if(typeof e=="function")Hp(e)&&(T=1),_=ko(_);else if(typeof e=="string")T=le(),T=k0(e,i,T)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ti:return t=z(31,i,t,h),t.elementType=ti,t.lanes=p,t;case Yr:return Iu(i.children,h,p,t);case Ml:T=8,h|=Bl,h|=xo;break;case Gf:return e=i,s=h,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=z(12,e,t,s|lt),t.elementType=Gf,t.lanes=p,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case vs:return t=z(13,i,t,h),t.elementType=vs,t.lanes=p,t;case Ll:return t=z(19,i,t,h),t.elementType=Ll,t.lanes=p,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ei:T=10;break e;case fm:T=9;break e;case Ir:T=11,_=jd(_);break e;case Yf:T=14;break e;case ol:T=16,_=null;break e}_="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?i="null":An(e)?i="array":e!==void 0&&e.$$typeof===Ma?(i="<"+(Ne(e.type)||"Unknown")+" />",_=" Did you accidentally export a JSX literal instead of a component?"):i=typeof e,(T=s?De(s):null)&&(_+=`
117
+
118
+ Check the render method of \``+T+"`."),T=29,i=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(i+"."+_)),_=null}return t=z(T,i,t,h),t.elementType=e,t.type=_,t.lanes=p,t._debugOwner=s,t}function Xo(e,t,i){return t=Yu(e.type,e.key,e.props,e._owner,t,i),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Iu(e,t,i,s){return e=z(7,e,s,t),e.lanes=i,e}function nr(e,t,i){return e=z(6,e,null,t),e.lanes=i,e}function qp(e){var t=z(18,null,null,Ge);return t.stateNode=e,t}function eh(e,t,i){return t=z(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hl(e,t){if(typeof e=="object"&&e!==null){var i=sC.get(e);return i!==void 0?i:(t={value:e,source:t,stack:Xt(t)},sC.set(e,t),t)}return{value:e,source:t,stack:Xt(t)}}function Ba(e,t){Qo(),Nm[zm++]=xy,Nm[zm++]=dS,dS=e,xy=t}function Gp(e,t,i){Qo(),Qi[Ji++]=bs,Qi[Ji++]=Ms,Qi[Ji++]=Kf,Kf=e;var s=bs;e=Ms;var h=32-jn(s)-1;s&=~(1<<h),i+=1;var p=32-jn(t)+h;if(30<p){var T=h-h%5;p=(s&(1<<T)-1).toString(32),s>>=T,h-=T,bs=1<<32-jn(t)+h|i<<h|s,Ms=p+e}else bs=1<<p|i<<h|s,Ms=e}function th(e){Qo(),e.return!==null&&(Ba(e,1),Gp(e,1,0))}function nh(e){for(;e===dS;)dS=Nm[--zm],Nm[zm]=null,xy=Nm[--zm],Nm[zm]=null;for(;e===Kf;)Kf=Qi[--Ji],Qi[Ji]=null,Ms=Qi[--Ji],Qi[Ji]=null,bs=Qi[--Ji],Qi[Ji]=null}function $v(){return Qo(),Kf!==null?{id:bs,overflow:Ms}:null}function Pv(e,t){Qo(),Qi[Ji++]=bs,Qi[Ji++]=Ms,Qi[Ji++]=Kf,bs=t.id,Ms=t.overflow,Kf=e}function Qo(){dt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Zu(e,t){if(e.return===null){if(li===null)li={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(li.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");li.distanceFromLeaf>t&&(li.distanceFromLeaf=t)}return li}var i=Zu(e.return,t+1).children;return 0<i.length&&i[i.length-1].fiber===e?(i=i[i.length-1],i.distanceFromLeaf>t&&(i.distanceFromLeaf=t),i):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},i.push(t),t)}function Wv(){dt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function al(e,t){Eu||(e=Zu(e,0),e.serverProps=null,t!==null&&(t=G0(t),e.serverTail.push(t)))}function ya(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,i="",s=li;throw s!==null&&(li=null,i=Tp(s)),Ic(hl(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
119
+
120
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
121
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
122
+ - Date formatting in a user's locale which doesn't match the server.
123
+ - External changing data without sending a snapshot of it along with the HTML.
124
+ - Invalid HTML tag nesting.
125
+
126
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
127
+
128
+ https://react.dev/link/hydration-mismatch`+i),e)),rC}function Yp(e){var t=e.stateNode,i=e.type,s=e.memoizedProps;switch(t[Wt]=e,t[Rl]=s,Al(i,s),i){case"dialog":He("cancel",t),He("close",t);break;case"iframe":case"object":case"embed":He("load",t);break;case"video":case"audio":for(i=0;i<lv.length;i++)He(lv[i],t);break;case"source":He("error",t);break;case"img":case"image":case"link":He("error",t),He("load",t);break;case"details":He("toggle",t);break;case"input":Uu("input",s),He("invalid",t),dl(t,s),Hd(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"option":Vv(t,s);break;case"select":Uu("select",s),He("invalid",t),Bd(t,s);break;case"textarea":Uu("textarea",s),He("invalid",t),Nu(t,s),Qs(t,s.value,s.defaultValue,s.children)}i=s.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||s.suppressHydrationWarning===!0||Zg(t.textContent,i)?(s.popover!=null&&(He("beforetoggle",t),He("toggle",t)),s.onScroll!=null&&He("scroll",t),s.onScrollEnd!=null&&He("scrollend",t),s.onClick!=null&&(t.onclick=pa),t=!0):t=!1,t||ya(e,!0)}function Ip(e){for(Dl=e.return;Dl;)switch(Dl.tag){case 5:case 31:case 13:Ki=!1;return;case 27:case 3:Ki=!0;return;default:Dl=Dl.return}}function ku(e){if(e!==Dl)return!1;if(!dt)return Ip(e),dt=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||Or(e.type,e.memoizedProps)),i=!i),i&&en){for(i=en;i;){var s=Zu(e,0),h=G0(i);s.serverTail.push(h),i=h.type==="Suspense"?Lr(i):la(i.nextSibling)}ya(e)}if(Ip(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");en=Lr(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");en=Lr(e)}else t===27?(t=en,pu(e.type)?(e=WC,WC=null,en=e):en=t):en=Dl?la(e.stateNode.nextSibling):null;return!0}function Jo(){en=Dl=null,Eu=dt=!1}function Yc(){var e=lc;return e!==null&&(fa===null?fa=e:fa.push.apply(fa,e),lc=null),e}function Ic(e){lc===null?lc=[e]:lc.push(e)}function Ko(){var e=li;if(e!==null){li=null;for(var t=Tp(e);0<e.children.length;)e=e.children[0];ye(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
129
+
130
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
131
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
132
+ - Date formatting in a user's locale which doesn't match the server.
133
+ - External changing data without sending a snapshot of it along with the HTML.
134
+ - Invalid HTML tag nesting.
135
+
136
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
137
+
138
+ %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function lr(){Om=hS=null,wm=!1}function va(e,t,i){Pe(cC,t._currentValue,e),t._currentValue=i,Pe(fC,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==Y1&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=Y1}function qa(e,t){e._currentValue=cC.current;var i=fC.current;tt(fC,t),e._currentRenderer=i,tt(cC,t)}function lh(e,t,i){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===i)break;e=e.return}e!==i&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function so(e,t,i,s){var h=e.child;for(h!==null&&(h.return=e);h!==null;){var p=h.dependencies;if(p!==null){var T=h.child;p=p.firstContext;e:for(;p!==null;){var _=p;p=h;for(var R=0;R<t.length;R++)if(_.context===t[R]){p.lanes|=i,_=p.alternate,_!==null&&(_.lanes|=i),lh(p.return,i,e),s||(T=null);break e}p=_.next}}else if(h.tag===18){if(T=h.return,T===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");T.lanes|=i,p=T.alternate,p!==null&&(p.lanes|=i),lh(T,i,e),T=null}else T=h.child;if(T!==null)T.return=h;else for(T=h;T!==null;){if(T===e){T=null;break}if(h=T.sibling,h!==null){h.return=T.return,T=h;break}T=T.return}h=T}}function Ga(e,t,i,s){e=null;for(var h=t,p=!1;h!==null;){if(!p){if((h.flags&524288)!==0)p=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var T=h.alternate;if(T===null)throw Error("Should have a current fiber. This is a bug in React.");if(T=T.memoizedProps,T!==null){var _=h.type;ua(h.pendingProps.value,T.value)||(e!==null?e.push(_):e=[_])}}else if(h===Su.current){if(T=h.alternate,T===null)throw Error("Should have a current fiber. This is a bug in React.");T.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(e!==null?e.push(sv):e=[sv])}h=h.return}e!==null&&so(t,e,i,s),t.flags|=262144}function ar(e){for(e=e.firstContext;e!==null;){if(!ua(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Fo(e){hS=e,Om=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Et(e){return wm&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Zp(hS,e)}function Zc(e,t){return hS===null&&Fo(e),Zp(e,t)}function Zp(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},Om===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Om=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Om=Om.next=t;return i}function ah(){return{controller:new S4,data:new Map,refCount:0}}function Xu(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function kc(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&T4(C4,function(){e.controller.abort()})}function vi(e,t,i){(e&127)!==0?0>_u&&(_u=kn(),Ny=mS(t),dC=t,i!=null&&(hC=ue(i)),(St&(nl|oi))!==cl&&(Cn=!0,ic=Uy),e=wr(),t=Hi(),e!==Vm||t!==zy?Vm=-1.1:t!==null&&(ic=Uy),Pf=e,zy=t):(e&4194048)!==0&&0>Fi&&(Fi=kn(),Oy=mS(t),I1=t,i!=null&&(Z1=ue(i)),0>Us)&&(e=wr(),t=Hi(),(e!==uc||t!==Wf)&&(uc=-1.1),oc=e,Wf=t)}function jv(e){if(0>_u){_u=kn(),Ny=e._debugTask!=null?e._debugTask:null,(St&(nl|oi))!==cl&&(ic=Uy);var t=wr(),i=Hi();t!==Vm||i!==zy?Vm=-1.1:i!==null&&(ic=Uy),Pf=t,zy=i}0>Fi&&(Fi=kn(),Oy=e._debugTask!=null?e._debugTask:null,0>Us)&&(e=wr(),t=Hi(),(e!==uc||t!==Wf)&&(uc=-1.1),oc=e,Wf=t)}function Si(){var e=Ff;return Ff=0,e}function ir(e){var t=Ff;return Ff=e,t}function ml(e){var t=Ff;return Ff+=e,t}function Qu(){Le=ze=-1.1}function Ft(){var e=ze;return ze=-1.1,e}function Ln(e){0<=e&&(ze=e)}function Sa(){var e=hn;return hn=-0,e}function Xl(e){0<=e&&(hn=e)}function Ql(){var e=un;return un=null,e}function Ta(){var e=Cn;return Cn=!1,e}function ro(e){sa=kn(),0>e.actualStartTime&&(e.actualStartTime=sa)}function ih(e){if(0<=sa){var t=kn()-sa;e.actualDuration+=t,e.selfBaseDuration=t,sa=-1}}function Xc(e){if(0<=sa){var t=kn()-sa;e.actualDuration+=t,sa=-1}}function pl(){if(0<=sa){var e=kn(),t=e-sa;sa=-1,Ff+=t,hn+=t,Le=e}}function e0(e){un===null&&(un=[]),un.push(e),Ds===null&&(Ds=[]),Ds.push(e)}function cn(){sa=kn(),0>ze&&(ze=sa)}function Ju(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function co(e,t){if(Vy===null){var i=Vy=[];pC=0,jf=Ig(),Lm={status:"pending",value:void 0,then:function(s){i.push(s)}}}return pC++,t.then(kp,kp),t}function kp(){if(--pC===0&&(-1<Fi||(Us=-1.1),Vy!==null)){Lm!==null&&(Lm.status="fulfilled");var e=Vy;Vy=null,jf=0,Lm=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function oh(e,t){var i=[],s={status:"pending",value:null,reason:null,then:function(h){i.push(h)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var h=0;h<i.length;h++)(0,i[h])(t)},function(h){for(s.status="rejected",s.reason=h,h=0;h<i.length;h++)(0,i[h])(void 0)}),s}function fo(){var e=ed.current;return e!==null?e:kt.pooledCache}function or(e,t){t===null?Pe(ed,ed.current,e):Pe(ed,t.pool,e)}function Xp(){var e=fo();return e===null?null:{parent:Zn._currentValue,pool:e}}function uh(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Qp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Jl(e,t,i){$.actQueue!==null&&($.didUsePromise=!0);var s=e.thenables;if(i=s[i],i===void 0?s.push(t):i!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(pa,pa),t=i),t._debugInfo===void 0){e=performance.now(),s=t.displayName;var h={name:typeof s=="string"?s:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:h}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){h.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Qc(e),e;default:if(typeof t.status=="string")t.then(pa,pa);else{if(e=kt,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(p){if(t.status==="pending"){var T=t;T.status="fulfilled",T.value=p}},function(p){if(t.status==="pending"){var T=t;T.status="rejected",T.reason=p}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Qc(e),e}throw nd=t,Iy=!0,Hm}}function Kl(e){try{return M4(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(nd=t,Iy=!0,Hm):t}}function Ku(){if(nd===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=nd;return nd=null,Iy=!1,e}function Qc(e){if(e===Hm||e===ES)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function gn(e){var t=at;return e!=null&&(at=t===null?e:t.concat(e)),t}function Ul(){var e=at;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var i=e[t].debugTask;if(i!=null)return i}}return null}function gl(e,t,i){for(var s=Object.keys(e.props),h=0;h<s.length;h++){var p=s[h];if(p!=="children"&&p!=="key"){t===null&&(t=Xo(e,i.mode,0),t._debugInfo=at,t.return=i),ye(t,function(T){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",T)},p);break}}}function Ya(e){var t=Zy;return Zy+=1,Bm===null&&(Bm=uh()),Jl(Bm,e,t)}function Nl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ia(e,t){throw t.$$typeof===$0?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
139
+ - Multiple copies of the "react" package is used.
140
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
141
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function Ca(e,t){var i=Ul();i!==null?i.run(Ia.bind(null,e,t)):Ia(e,t)}function Jp(e,t){var i=ue(e)||"Component";rA[i]||(rA[i]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
142
+ root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
143
+ <%s>{%s}</%s>`,t,t,i,t,i))}function ur(e,t){var i=Ul();i!==null?i.run(Jp.bind(null,e,t)):Jp(e,t)}function sh(e,t){var i=ue(e)||"Component";cA[i]||(cA[i]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
144
+ root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
145
+ <%s>%s</%s>`,i,t,i))}function Jc(e,t){var i=Ul();i!==null?i.run(sh.bind(null,e,t)):sh(e,t)}function Hn(e){function t(O,V){if(e){var H=O.deletions;H===null?(O.deletions=[V],O.flags|=16):H.push(V)}}function i(O,V){if(!e)return null;for(;V!==null;)t(O,V),V=V.sibling;return null}function s(O){for(var V=new Map;O!==null;)O.key!==null?V.set(O.key,O):V.set(O.index,O),O=O.sibling;return V}function h(O,V){return O=yi(O,V),O.index=0,O.sibling=null,O}function p(O,V,H){return O.index=H,e?(H=O.alternate,H!==null?(H=H.index,H<V?(O.flags|=67108866,V):H):(O.flags|=67108866,V)):(O.flags|=1048576,V)}function T(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function _(O,V,H,j){return V===null||V.tag!==6?(V=nr(H,O.mode,j),V.return=O,V._debugOwner=O,V._debugTask=O._debugTask,V._debugInfo=at,V):(V=h(V,H),V.return=O,V._debugInfo=at,V)}function R(O,V,H,j){var he=H.type;return he===Yr?(V=B(O,V,H.props.children,j,H.key),gl(H,V,O),V):V!==null&&(V.elementType===he||Lp(V,H)||typeof he=="object"&&he!==null&&he.$$typeof===ol&&Kl(he)===V.type)?(V=h(V,H.props),Nl(V,H),V.return=O,V._debugOwner=H._owner,V._debugInfo=at,V):(V=Xo(H,O.mode,j),Nl(V,H),V.return=O,V._debugInfo=at,V)}function x(O,V,H,j){return V===null||V.tag!==4||V.stateNode.containerInfo!==H.containerInfo||V.stateNode.implementation!==H.implementation?(V=eh(H,O.mode,j),V.return=O,V._debugInfo=at,V):(V=h(V,H.children||[]),V.return=O,V._debugInfo=at,V)}function B(O,V,H,j,he){return V===null||V.tag!==7?(V=Iu(H,O.mode,j,he),V.return=O,V._debugOwner=O,V._debugTask=O._debugTask,V._debugInfo=at,V):(V=h(V,H),V.return=O,V._debugInfo=at,V)}function G(O,V,H){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=nr(""+V,O.mode,H),V.return=O,V._debugOwner=O,V._debugTask=O._debugTask,V._debugInfo=at,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case Ma:return H=Xo(V,O.mode,H),Nl(H,V),H.return=O,O=gn(V._debugInfo),H._debugInfo=at,at=O,H;case yu:return V=eh(V,O.mode,H),V.return=O,V._debugInfo=at,V;case ol:var j=gn(V._debugInfo);return V=Kl(V),O=G(O,V,H),at=j,O}if(An(V)||Be(V))return H=Iu(V,O.mode,H,null),H.return=O,H._debugOwner=O,H._debugTask=O._debugTask,O=gn(V._debugInfo),H._debugInfo=at,at=O,H;if(typeof V.then=="function")return j=gn(V._debugInfo),O=G(O,Ya(V),H),at=j,O;if(V.$$typeof===ei)return G(O,Zc(O,V),H);Ca(O,V)}return typeof V=="function"&&ur(O,V),typeof V=="symbol"&&Jc(O,V),null}function w(O,V,H,j){var he=V!==null?V.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return he!==null?null:_(O,V,""+H,j);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case Ma:return H.key===he?(he=gn(H._debugInfo),O=R(O,V,H,j),at=he,O):null;case yu:return H.key===he?x(O,V,H,j):null;case ol:return he=gn(H._debugInfo),H=Kl(H),O=w(O,V,H,j),at=he,O}if(An(H)||Be(H))return he!==null?null:(he=gn(H._debugInfo),O=B(O,V,H,j,null),at=he,O);if(typeof H.then=="function")return he=gn(H._debugInfo),O=w(O,V,Ya(H),j),at=he,O;if(H.$$typeof===ei)return w(O,V,Zc(O,H),j);Ca(O,H)}return typeof H=="function"&&ur(O,H),typeof H=="symbol"&&Jc(O,H),null}function J(O,V,H,j,he){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return O=O.get(H)||null,_(V,O,""+j,he);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Ma:return H=O.get(j.key===null?H:j.key)||null,O=gn(j._debugInfo),V=R(V,H,j,he),at=O,V;case yu:return O=O.get(j.key===null?H:j.key)||null,x(V,O,j,he);case ol:var Qe=gn(j._debugInfo);return j=Kl(j),V=J(O,V,H,j,he),at=Qe,V}if(An(j)||Be(j))return H=O.get(H)||null,O=gn(j._debugInfo),V=B(V,H,j,he,null),at=O,V;if(typeof j.then=="function")return Qe=gn(j._debugInfo),V=J(O,V,H,Ya(j),he),at=Qe,V;if(j.$$typeof===ei)return J(O,V,H,Zc(V,j),he);Ca(V,j)}return typeof j=="function"&&ur(V,j),typeof j=="symbol"&&Jc(V,j),null}function ce(O,V,H,j){if(typeof H!="object"||H===null)return j;switch(H.$$typeof){case Ma:case yu:D(O,V,H);var he=H.key;if(typeof he!="string")break;if(j===null){j=new Set,j.add(he);break}if(!j.has(he)){j.add(he);break}ye(V,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",he)});break;case ol:H=Kl(H),ce(O,V,H,j)}return j}function pe(O,V,H,j){for(var he=null,Qe=null,Ue=null,_e=V,et=V=0,tn=null;_e!==null&&et<H.length;et++){_e.index>et?(tn=_e,_e=null):tn=_e.sibling;var On=w(O,_e,H[et],j);if(On===null){_e===null&&(_e=tn);break}he=ce(O,On,H[et],he),e&&_e&&On.alternate===null&&t(O,_e),V=p(On,V,et),Ue===null?Qe=On:Ue.sibling=On,Ue=On,_e=tn}if(et===H.length)return i(O,_e),dt&&Ba(O,et),Qe;if(_e===null){for(;et<H.length;et++)_e=G(O,H[et],j),_e!==null&&(he=ce(O,_e,H[et],he),V=p(_e,V,et),Ue===null?Qe=_e:Ue.sibling=_e,Ue=_e);return dt&&Ba(O,et),Qe}for(_e=s(_e);et<H.length;et++)tn=J(_e,O,et,H[et],j),tn!==null&&(he=ce(O,tn,H[et],he),e&&tn.alternate!==null&&_e.delete(tn.key===null?et:tn.key),V=p(tn,V,et),Ue===null?Qe=tn:Ue.sibling=tn,Ue=tn);return e&&_e.forEach(function(Bs){return t(O,Bs)}),dt&&Ba(O,et),Qe}function Jt(O,V,H,j){if(H==null)throw Error("An iterable object provided no iterator.");for(var he=null,Qe=null,Ue=V,_e=V=0,et=null,tn=null,On=H.next();Ue!==null&&!On.done;_e++,On=H.next()){Ue.index>_e?(et=Ue,Ue=null):et=Ue.sibling;var Bs=w(O,Ue,On.value,j);if(Bs===null){Ue===null&&(Ue=et);break}tn=ce(O,Bs,On.value,tn),e&&Ue&&Bs.alternate===null&&t(O,Ue),V=p(Bs,V,_e),Qe===null?he=Bs:Qe.sibling=Bs,Qe=Bs,Ue=et}if(On.done)return i(O,Ue),dt&&Ba(O,_e),he;if(Ue===null){for(;!On.done;_e++,On=H.next())Ue=G(O,On.value,j),Ue!==null&&(tn=ce(O,Ue,On.value,tn),V=p(Ue,V,_e),Qe===null?he=Ue:Qe.sibling=Ue,Qe=Ue);return dt&&Ba(O,_e),he}for(Ue=s(Ue);!On.done;_e++,On=H.next())et=J(Ue,O,_e,On.value,j),et!==null&&(tn=ce(O,et,On.value,tn),e&&et.alternate!==null&&Ue.delete(et.key===null?_e:et.key),V=p(et,V,_e),Qe===null?he=et:Qe.sibling=et,Qe=et);return e&&Ue.forEach(function($4){return t(O,$4)}),dt&&Ba(O,_e),he}function pt(O,V,H,j){if(typeof H=="object"&&H!==null&&H.type===Yr&&H.key===null&&(gl(H,null,O),H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case Ma:var he=gn(H._debugInfo);e:{for(var Qe=H.key;V!==null;){if(V.key===Qe){if(Qe=H.type,Qe===Yr){if(V.tag===7){i(O,V.sibling),j=h(V,H.props.children),j.return=O,j._debugOwner=H._owner,j._debugInfo=at,gl(H,j,O),O=j;break e}}else if(V.elementType===Qe||Lp(V,H)||typeof Qe=="object"&&Qe!==null&&Qe.$$typeof===ol&&Kl(Qe)===V.type){i(O,V.sibling),j=h(V,H.props),Nl(j,H),j.return=O,j._debugOwner=H._owner,j._debugInfo=at,O=j;break e}i(O,V);break}else t(O,V);V=V.sibling}H.type===Yr?(j=Iu(H.props.children,O.mode,j,H.key),j.return=O,j._debugOwner=O,j._debugTask=O._debugTask,j._debugInfo=at,gl(H,j,O),O=j):(j=Xo(H,O.mode,j),Nl(j,H),j.return=O,j._debugInfo=at,O=j)}return O=T(O),at=he,O;case yu:e:{for(he=H,H=he.key;V!==null;){if(V.key===H)if(V.tag===4&&V.stateNode.containerInfo===he.containerInfo&&V.stateNode.implementation===he.implementation){i(O,V.sibling),j=h(V,he.children||[]),j.return=O,O=j;break e}else{i(O,V);break}else t(O,V);V=V.sibling}j=eh(he,O.mode,j),j.return=O,O=j}return T(O);case ol:return he=gn(H._debugInfo),H=Kl(H),O=pt(O,V,H,j),at=he,O}if(An(H))return he=gn(H._debugInfo),O=pe(O,V,H,j),at=he,O;if(Be(H)){if(he=gn(H._debugInfo),Qe=Be(H),typeof Qe!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ue=Qe.call(H);return Ue===H?(O.tag!==0||Object.prototype.toString.call(O.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ue)!=="[object Generator]")&&(uA||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),uA=!0):H.entries!==Qe||SC||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),SC=!0),O=Jt(O,V,Ue,j),at=he,O}if(typeof H.then=="function")return he=gn(H._debugInfo),O=pt(O,V,Ya(H),j),at=he,O;if(H.$$typeof===ei)return pt(O,V,Zc(O,H),j);Ca(O,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(he=""+H,V!==null&&V.tag===6?(i(O,V.sibling),j=h(V,he),j.return=O,O=j):(i(O,V),j=nr(he,O.mode,j),j.return=O,j._debugOwner=O,j._debugTask=O._debugTask,j._debugInfo=at,O=j),T(O)):(typeof H=="function"&&ur(O,H),typeof H=="symbol"&&Jc(O,H),i(O,V))}return function(O,V,H,j){var he=at;at=null;try{Zy=0;var Qe=pt(O,V,H,j);return Bm=null,Qe}catch(tn){if(tn===Hm||tn===ES)throw tn;var Ue=z(29,tn,null,O.mode);Ue.lanes=j,Ue.return=O;var _e=Ue._debugInfo=at;if(Ue._debugOwner=O._debugOwner,Ue._debugTask=O._debugTask,_e!=null){for(var et=_e.length-1;0<=et;et--)if(typeof _e[et].stack=="string"){Ue._debugOwner=_e[et],Ue._debugTask=_e[et].debugTask;break}}return Ue}finally{at=he}}}function Gt(e,t){var i=An(e);return e=!i&&typeof Be(e)=="function",i||e?(i=i?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",i,t,i),!1):!0}function ct(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ti(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Rn(e){return{lane:e,tag:dA,payload:null,callback:null,next:null}}function Ci(e,t,i){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,CC===s&&!pA){var h=ue(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
146
+
147
+ Please update the following component: %s`,h),pA=!0}return(St&nl)!==cl?(h=s.pending,h===null?t.next=t:(t.next=h.next,h.next=t),s.pending=t,t=Gc(e),Vp(e,null,i),t):(tr(e,s,t,i),Gc(e))}function Ea(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,i|=s,t.lanes=i,Nv(e,i)}}function Kc(e,t){var i=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var h=null,p=null;if(i=i.firstBaseUpdate,i!==null){do{var T={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};p===null?h=p=T:p=p.next=T,i=i.next}while(i!==null);p===null?h=p=t:p=p.next=t}else h=p=t;i={baseState:s.baseState,firstBaseUpdate:h,lastBaseUpdate:p,shared:s.shared,callbacks:s.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}function sr(){if(EC){var e=Lm;if(e!==null)throw e}}function Ei(e,t,i,s){EC=!1;var h=e.updateQueue;sc=!1,CC=h.shared;var p=h.firstBaseUpdate,T=h.lastBaseUpdate,_=h.shared.pending;if(_!==null){h.shared.pending=null;var R=_,x=R.next;R.next=null,T===null?p=x:T.next=x,T=R;var B=e.alternate;B!==null&&(B=B.updateQueue,_=B.lastBaseUpdate,_!==T&&(_===null?B.firstBaseUpdate=x:_.next=x,B.lastBaseUpdate=R))}if(p!==null){var G=h.baseState;T=0,B=x=R=null,_=p;do{var w=_.lane&-536870913,J=w!==_.lane;if(J?(it&w)===w:(s&w)===w){w!==0&&w===jf&&(EC=!0),B!==null&&(B=B.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{w=e;var ce=_,pe=t,Jt=i;switch(ce.tag){case hA:if(ce=ce.payload,typeof ce=="function"){wm=!0;var pt=ce.call(Jt,G,pe);if(w.mode&Bl){qt(!0);try{ce.call(Jt,G,pe)}finally{qt(!1)}}wm=!1,G=pt;break e}G=ce;break e;case TC:w.flags=w.flags&-65537|128;case dA:if(pt=ce.payload,typeof pt=="function"){if(wm=!0,ce=pt.call(Jt,G,pe),w.mode&Bl){qt(!0);try{pt.call(Jt,G,pe)}finally{qt(!1)}}wm=!1}else ce=pt;if(ce==null)break e;G=nt({},G,ce);break e;case mA:sc=!0}}w=_.callback,w!==null&&(e.flags|=64,J&&(e.flags|=8192),J=h.callbacks,J===null?h.callbacks=[w]:J.push(w))}else J={lane:w,tag:_.tag,payload:_.payload,callback:_.callback,next:null},B===null?(x=B=J,R=G):B=B.next=J,T|=w;if(_=_.next,_===null){if(_=h.shared.pending,_===null)break;J=_,_=J.next,J.next=null,h.lastBaseUpdate=J,h.shared.pending=null}}while(!0);B===null&&(R=G),h.baseState=R,h.firstBaseUpdate=x,h.lastBaseUpdate=B,p===null&&(h.shared.lanes=0),fc|=T,e.lanes=T,e.memoizedState=G}CC=null}function $o(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Kp(e,t){var i=e.shared.hiddenCallbacks;if(i!==null)for(e.shared.hiddenCallbacks=null,e=0;e<i.length;e++)$o(i[e],t)}function rr(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)$o(i[e],t)}function rh(e,t){var i=bu;Pe(AS,i,e),Pe(qm,t,e),bu=i|t.baseLanes}function ho(e){Pe(AS,bu,e),Pe(qm,qm.current,e)}function Za(e){bu=AS.current,tt(qm,e),tt(AS,e)}function yl(e){var t=e.alternate;Pe(zn,zn.current&Gm,e),Pe(ai,e,e),$i===null&&(t===null||qm.current!==null||t.memoizedState!==null)&&($i=e)}function ka(e){Pe(zn,zn.current,e),Pe(ai,e,e),$i===null&&($i=e)}function ch(e){e.tag===22?(Pe(zn,zn.current,e),Pe(ai,e,e),$i===null&&($i=e)):_i(e)}function _i(e){Pe(zn,zn.current,e),Pe(ai,ai.current,e)}function Bn(e){tt(ai,e),$i===e&&($i=null),tt(zn,e)}function Fu(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Nf(i)||Xg(i)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ke(){var e=K;Wi===null?Wi=[e]:Wi.push(e)}function ae(){var e=K;if(Wi!==null&&(Os++,Wi[Os]!==e)){var t=ue(Xe);if(!gA.has(t)&&(gA.add(t),Wi!==null)){for(var i="",s=0;s<=Os;s++){var h=Wi[s],p=s===Os?e:h;for(h=s+1+". "+h;30>h.length;)h+=" ";h+=p+`
148
+ `,i+=h}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
149
+
150
+ Previous render Next render
151
+ ------------------------------------------------------
152
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
153
+ `,t,i)}}}function mo(e){e==null||An(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",K,typeof e)}function Fc(){var e=ue(Xe);vA.has(e)||(vA.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function fn(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
154
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
155
+ 2. You might be breaking the Rules of Hooks
156
+ 3. You might have more than one copy of React in the same app
157
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Fp(e,t){if(Qy)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",K),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
158
+
159
+ Previous: %s
160
+ Incoming: %s`,K,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var i=0;i<t.length&&i<e.length;i++)if(!ua(e[i],t[i]))return!1;return!0}function $p(e,t,i,s,h,p){Ns=p,Xe=t,Wi=e!==null?e._debugHookTypes:null,Os=-1,Qy=e!==null&&e.type!==t.type,(Object.prototype.toString.call(i)==="[object AsyncFunction]"||Object.prototype.toString.call(i)==="[object AsyncGeneratorFunction]")&&(p=ue(Xe),_C.has(p)||(_C.add(p),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",p===null?"An unknown Component":"<"+p+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,$.H=e!==null&&e.memoizedState!==null?bC:Wi!==null?SA:AC,ad=p=(t.mode&Bl)!==Ge;var T=gC(i,s,h);if(ad=!1,Im&&(T=$c(t,i,s,h)),p){qt(!0);try{T=$c(t,i,s,h)}finally{qt(!1)}}return yn(e,t),T}function yn(e,t){t._debugHookTypes=Wi,t.dependencies===null?zs!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:zs}):t.dependencies._debugThenableState=zs,$.H=Jy;var i=Zt!==null&&Zt.next!==null;if(Ns=0,Wi=K=Xn=Zt=Xe=null,Os=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),MS=!1,Xy=0,zs=null,i)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Qn||(e=e.dependencies,e!==null&&ar(e)&&(Qn=!0)),Iy?(Iy=!1,e=!0):e=!1,e&&(t=ue(t)||"Unknown",yA.has(t)||_C.has(t)||(yA.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function $c(e,t,i,s){Xe=e;var h=0;do{if(Im&&(zs=null),Xy=0,Im=!1,h>=D4)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(h+=1,Qy=!1,Xn=Zt=null,e.updateQueue!=null){var p=e.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}Os=-1,$.H=TA,p=gC(t,i,s)}while(Im);return p}function Pc(){var e=$.H,t=e.useState()[0];return t=typeof t.then=="function"?ef(t):t,e=e.useState()[0],(Zt!==null?Zt.memoizedState:null)!==e&&(Xe.flags|=1024),t}function $u(){var e=RS!==0;return RS=0,e}function Wc(e,t,i){t.updateQueue=e.updateQueue,t.flags=(t.mode&xo)!==Ge?t.flags&-402655237:t.flags&-2053,e.lanes&=~i}function Po(e){if(MS){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}MS=!1}Ns=0,Wi=Xn=Zt=Xe=null,Os=-1,K=null,Im=!1,Xy=RS=0,zs=null}function En(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xn===null?Xe.memoizedState=Xn=e:Xn=Xn.next=e,Xn}function Rt(){if(Zt===null){var e=Xe.alternate;e=e!==null?e.memoizedState:null}else e=Zt.next;var t=Xn===null?Xe.memoizedState:Xn.next;if(t!==null)Xn=t,Zt=e;else{if(e===null)throw Xe.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Zt=e,e={memoizedState:Zt.memoizedState,baseState:Zt.baseState,baseQueue:Zt.baseQueue,queue:Zt.queue,next:null},Xn===null?Xe.memoizedState=Xn=e:Xn=Xn.next=e}return Xn}function jc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ef(e){var t=Xy;return Xy+=1,zs===null&&(zs=uh()),e=Jl(zs,e,t),t=Xe,(Xn===null?t.memoizedState:Xn.next)===null&&(t=t.alternate,$.H=t!==null&&t.memoizedState!==null?bC:AC),e}function po(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ef(e);if(e.$$typeof===ei)return Et(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Fl(e){var t=null,i=Xe.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var s=Xe.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(h){return h.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=jc(),Xe.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0||Qy)for(i=t.data[t.index]=Array(e),s=0;s<e;s++)i[s]=ZT;else i.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",i.length,e);return t.index++,i}function $l(e,t){return typeof t=="function"?t(e):t}function cr(e,t,i){var s=En();if(i!==void 0){var h=i(t);if(ad){qt(!0);try{i(t)}finally{qt(!1)}}}else h=t;return s.memoizedState=s.baseState=h,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:h},s.queue=e,e=e.dispatch=BT.bind(null,Xe,e),[s.memoizedState,e]}function Pu(e){var t=Rt();return Wo(t,Zt,e)}function Wo(e,t,i){var s=e.queue;if(s===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");s.lastRenderedReducer=i;var h=e.baseQueue,p=s.pending;if(p!==null){if(h!==null){var T=h.next;h.next=p.next,p.next=T}t.baseQueue!==h&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=h=p,s.pending=null}if(p=e.baseState,h===null)e.memoizedState=p;else{t=h.next;var _=T=null,R=null,x=t,B=!1;do{var G=x.lane&-536870913;if(G!==x.lane?(it&G)===G:(Ns&G)===G){var w=x.revertLane;if(w===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),G===jf&&(B=!0);else if((Ns&w)===w){x=x.next,w===jf&&(B=!0);continue}else G={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},R===null?(_=R=G,T=p):R=R.next=G,Xe.lanes|=w,fc|=w;G=x.action,ad&&i(p,G),p=x.hasEagerState?x.eagerState:i(p,G)}else w={lane:G,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},R===null?(_=R=w,T=p):R=R.next=w,Xe.lanes|=G,fc|=G;x=x.next}while(x!==null&&x!==t);if(R===null?T=p:R.next=_,!ua(p,e.memoizedState)&&(Qn=!0,B&&(i=Lm,i!==null)))throw i;e.memoizedState=p,e.baseState=T,e.baseQueue=R,s.lastRenderedState=p}return h===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Wu(e){var t=Rt(),i=t.queue;if(i===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");i.lastRenderedReducer=e;var s=i.dispatch,h=i.pending,p=t.memoizedState;if(h!==null){i.pending=null;var T=h=h.next;do p=e(p,T.action),T=T.next;while(T!==h);ua(p,t.memoizedState)||(Qn=!0),t.memoizedState=p,t.baseQueue===null&&(t.baseState=p),i.lastRenderedState=p}return[p,s]}function fr(e,t,i){var s=Xe,h=En();if(dt){if(i===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var p=i();Ym||p===i()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Ym=!0)}else{if(p=t(),Ym||(i=t(),ua(p,i)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ym=!0)),kt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(it&127)!==0||Pp(s,t,p)}return h.memoizedState=p,i={value:p,getSnapshot:t},h.queue=i,ts(jo.bind(null,s,i,e),[e]),s.flags|=2048,Ai(Pi|ca,{destroy:void 0},Wp.bind(null,s,i,p,t),null),p}function ju(e,t,i){var s=Xe,h=Rt(),p=dt;if(p){if(i===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");i=i()}else if(i=t(),!Ym){var T=t();ua(i,T)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ym=!0)}(T=!ua((Zt||h).memoizedState,i))&&(h.memoizedState=i,Qn=!0),h=h.queue;var _=jo.bind(null,s,h,e);if(Dn(2048,ca,_,[e]),h.getSnapshot!==t||T||Xn!==null&&Xn.memoizedState.tag&Pi){if(s.flags|=2048,Ai(Pi|ca,{destroy:void 0},Wp.bind(null,s,h,i,t),null),kt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");p||(Ns&127)!==0||Pp(s,t,i)}return i}function Pp(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=Xe.updateQueue,t===null?(t=jc(),Xe.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function Wp(e,t,i,s){t.value=i,t.getSnapshot=s,eu(t)&&jp(e)}function jo(e,t,i){return i(function(){eu(t)&&(vi(2,"updateSyncExternalStore()",e),jp(e))})}function eu(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!ua(e,i)}catch{return!0}}function jp(e){var t=ll(e,2);t!==null&&Ye(t,e,2)}function fh(e){var t=En();if(typeof e=="function"){var i=e;if(e=i(),ad){qt(!0);try{i()}finally{qt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$l,lastRenderedState:e},t}function tu(e){e=fh(e);var t=e.queue,i=yh.bind(null,Xe,t);return t.dispatch=i,[e.memoizedState,i]}function es(e){var t=En();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=sf.bind(null,Xe,!0,i),i.dispatch=t,[e,t]}function tf(e,t){var i=Rt();return dr(i,Zt,e,t)}function dr(e,t,i,s){return e.baseState=i,Wo(e,Zt,typeof s=="function"?s:$l)}function nf(e,t){var i=Rt();return Zt!==null?dr(i,Zt,e,t):(i.baseState=e,[e,i.queue.dispatch])}function t0(e,t,i,s,h){if(qn(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var p={payload:h,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){p.listeners.push(T)}};$.T!==null?i(!0):p.isTransition=!1,s(p),i=t.pending,i===null?(p.next=t.pending=p,nu(t,p)):(p.next=i.next,t.pending=i.next=p)}}function nu(e,t){var i=t.action,s=t.payload,h=e.state;if(t.isTransition){var p=$.T,T={};T._updatedFibers=new Set,$.T=T;try{var _=i(h,s),R=$.S;R!==null&&R(T,_),eg(e,t,_)}catch(x){lf(e,t,x)}finally{p!==null&&T.types!==null&&(p.types!==null&&p.types!==T.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),p.types=T.types),$.T=p,p===null&&T._updatedFibers&&(e=T._updatedFibers.size,T._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{T=i(h,s),eg(e,t,T)}catch(x){lf(e,t,x)}}function eg(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?($.asyncTransitions++,i.then(ns,ns),i.then(function(s){go(e,t,s)},function(s){return lf(e,t,s)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):go(e,t,i)}function go(e,t,i){t.status="fulfilled",t.value=i,dh(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,nu(e,i)))}function lf(e,t,i){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=i,dh(t),t=t.next;while(t!==s)}e.action=null}function dh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function yo(e,t){return t}function Pl(e,t){if(dt){var i=kt.formState;if(i!==null){e:{var s=Xe;if(dt){if(en){t:{for(var h=en,p=Ki;h.nodeType!==8;){if(!p){h=null;break t}if(h=la(h.nextSibling),h===null){h=null;break t}}p=h.data,h=p===KC||p===ib?h:null}if(h){en=la(h.nextSibling),s=h.data===KC;break e}}ya(s)}s=!1}s&&(t=i[0])}}return i=En(),i.memoizedState=i.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yo,lastRenderedState:t},i.queue=s,i=yh.bind(null,Xe,s),s.dispatch=i,s=fh(!1),p=sf.bind(null,Xe,!1,s.queue),s=En(),h={state:t,dispatch:null,action:e,pending:null},s.queue=h,i=t0.bind(null,Xe,h,p,i),h.dispatch=i,s.memoizedState=e,[t,i,!1]}function lu(e){var t=Rt();return hh(t,Zt,e)}function hh(e,t,i){if(t=Wo(e,t,yo)[0],e=Pu($l)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=ef(t)}catch(T){throw T===Hm?ES:T}else s=t;t=Rt();var h=t.queue,p=h.dispatch;return i!==t.memoizedState&&(Xe.flags|=2048,Ai(Pi|ca,{destroy:void 0},tg.bind(null,h,i),null)),[s,p,e]}function tg(e,t){e.action=t}function au(e){var t=Rt(),i=Zt;if(i!==null)return hh(t,i,e);Rt(),t=t.memoizedState,i=Rt();var s=i.queue.dispatch;return i.memoizedState=e,[t,s,!1]}function Ai(e,t,i,s){return e={tag:e,create:i,deps:s,inst:t,next:null},t=Xe.updateQueue,t===null&&(t=jc(),Xe.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(s=i.next,i.next=e,e.next=s,t.lastEffect=e),e}function mh(e){var t=En();return e={current:e},t.memoizedState=e}function iu(e,t,i,s){var h=En();Xe.flags|=e,h.memoizedState=Ai(Pi|t,{destroy:void 0},i,s===void 0?null:s)}function Dn(e,t,i,s){var h=Rt();s=s===void 0?null:s;var p=h.memoizedState.inst;Zt!==null&&s!==null&&Fp(s,Zt.memoizedState.deps)?h.memoizedState=Ai(t,p,i,s):(Xe.flags|=e,h.memoizedState=Ai(Pi|t,p,i,s))}function ts(e,t){(Xe.mode&xo)!==Ge?iu(276826112,ca,e,t):iu(8390656,ca,e,t)}function n0(e){Xe.flags|=4;var t=Xe.updateQueue;if(t===null)t=jc(),Xe.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function af(e){var t=En(),i={impl:e};return t.memoizedState=i,function(){if((St&nl)!==cl)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return i.impl.apply(void 0,arguments)}}function hr(e){var t=Rt().memoizedState;return n0({ref:t,nextImpl:e}),function(){if((St&nl)!==cl)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function vl(e,t){var i=4194308;return(Xe.mode&xo)!==Ge&&(i|=134217728),iu(i,ii,e,t)}function Wl(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function bi(e,t,i){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),i=i!=null?i.concat([e]):null;var s=4194308;(Xe.mode&xo)!==Ge&&(s|=134217728),iu(s,ii,Wl.bind(null,t,e),i)}function mr(e,t,i){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),i=i!=null?i.concat([e]):null,Dn(4,ii,Wl.bind(null,t,e),i)}function ph(e,t){return En().memoizedState=[e,t===void 0?null:t],e}function Xa(e,t){var i=Rt();t=t===void 0?null:t;var s=i.memoizedState;return t!==null&&Fp(t,s[1])?s[0]:(i.memoizedState=[e,t],e)}function Sl(e,t){var i=En();t=t===void 0?null:t;var s=e();if(ad){qt(!0);try{e()}finally{qt(!1)}}return i.memoizedState=[s,t],s}function $t(e,t){var i=Rt();t=t===void 0?null:t;var s=i.memoizedState;if(t!==null&&Fp(t,s[1]))return s[0];if(s=e(),ad){qt(!0);try{e()}finally{qt(!1)}}return i.memoizedState=[s,t],s}function pr(e,t){var i=En();return Dt(i,e,t)}function Mi(e,t){var i=Rt();return vn(i,Zt.memoizedState,e,t)}function $e(e,t){var i=Rt();return Zt===null?Dt(i,e,t):vn(i,Zt.memoizedState,e,t)}function Dt(e,t,i){return i===void 0||(Ns&1073741824)!==0&&(it&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=_r(),Xe.lanes|=e,fc|=e,i)}function vn(e,t,i,s){return ua(i,t)?i:qm.current!==null?(e=Dt(e,i,s),ua(e,t)||(Qn=!0),e):(Ns&42)===0||(Ns&1073741824)!==0&&(it&261930)===0?(Qn=!0,e.memoizedState=i):(e=_r(),Xe.lanes|=e,fc|=e,t)}function ns(){$.asyncTransitions--}function ls(e,t,i,s,h){var p=At.p;At.p=p!==0&&p<el?p:el;var T=$.T,_={};_._updatedFibers=new Set,$.T=_,sf(e,!1,t,i);try{var R=h(),x=$.S;if(x!==null&&x(_,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){$.asyncTransitions++,R.then(ns,ns);var B=oh(R,s);as(e,t,B,il(e))}else as(e,t,s,il(e))}catch(G){as(e,t,{then:function(){},status:"rejected",reason:G},il(e))}finally{At.p=p,T!==null&&_.types!==null&&(T.types!==null&&T.types!==_.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),T.types=_.types),$.T=T,T===null&&_._updatedFibers&&(e=_._updatedFibers.size,_._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function vo(e,t,i,s){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var h=of(e).queue;jv(e),ls(e,h,t,pd,i===null?A:function(){return gr(e),i(s)})}function of(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:pd,baseState:pd,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$l,lastRenderedState:pd},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$l,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function gr(e){$.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=of(e);t.next===null&&(t=e.alternate.memoizedState),as(e,t.next.queue,{},il(e))}function ou(){var e=fh(!1);return e=ls.bind(null,Xe,e.queue,!0,!1),En().memoizedState=e,[!1,e]}function l0(){var e=Pu($l)[0],t=Rt().memoizedState;return[typeof e=="boolean"?e:ef(e),t]}function ln(){var e=Wu($l)[0],t=Rt().memoizedState;return[typeof e=="boolean"?e:ef(e),t]}function So(){return Et(sv)}function uf(){var e=En(),t=kt.identifierPrefix;if(dt){var i=Ms,s=bs;i=(s&~(1<<32-jn(s)-1)).toString(32)+i,t="_"+t+"R_"+i,i=RS++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=R4++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t}function gh(){return En().memoizedState=a0.bind(null,Xe)}function a0(e,t){for(var i=e.return;i!==null;){switch(i.tag){case 24:case 3:var s=il(i),h=Rn(s),p=Ci(i,h,s);p!==null&&(vi(s,"refresh()",e),Ye(p,i,s),Ea(p,i,s)),e=ah(),t!=null&&p!==null&&console.error("The seed argument is not enabled outside experimental channels."),h.payload={cache:e};return}i=i.return}}function BT(e,t,i){var s=arguments;typeof s[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),s=il(e);var h={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};qn(e)?dn(t,h):(h=qu(e,t,h,s),h!==null&&(vi(s,"dispatch()",e),Ye(h,e,s),rf(h,t,s)))}function yh(e,t,i){var s=arguments;typeof s[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),s=il(e),as(e,t,i,s)&&vi(s,"setState()",e)}function as(e,t,i,s){var h={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(qn(e))dn(t,h);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=t.lastRenderedReducer,p!==null)){var T=$.H;$.H=No;try{var _=t.lastRenderedState,R=p(_,i);if(h.hasEagerState=!0,h.eagerState=R,ua(R,_))return tr(e,t,h,0),kt===null&&Wd(),!1}catch{}finally{$.H=T}}if(i=qu(e,t,h,s),i!==null)return Ye(i,e,s),rf(i,t,s),!0}return!1}function sf(e,t,i,s){if($.T===null&&jf===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),s={lane:2,revertLane:Ig(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},qn(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=qu(e,i,s,2),t!==null&&(vi(2,"setOptimistic()",e),Ye(t,e,2))}function qn(e){var t=e.alternate;return e===Xe||t!==null&&t===Xe}function dn(e,t){Im=MS=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function rf(e,t,i){if((i&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,i|=s,t.lanes=i,Nv(e,i)}}function is(e){if(e!==null&&typeof e!="function"){var t=String(e);NA.has(t)||(NA.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function yr(e,t,i,s){var h=e.memoizedState,p=i(s,h);if(e.mode&Bl){qt(!0);try{p=i(s,h)}finally{qt(!1)}}p===void 0&&(t=Ne(t)||"Component",RA.has(t)||(RA.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),h=p==null?h:nt({},h,p),e.memoizedState=h,e.lanes===0&&(e.updateQueue.baseState=h)}function vh(e,t,i,s,h,p,T){var _=e.stateNode;if(typeof _.shouldComponentUpdate=="function"){if(i=_.shouldComponentUpdate(s,p,T),e.mode&Bl){qt(!0);try{i=_.shouldComponentUpdate(s,p,T)}finally{qt(!1)}}return i===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Ne(t)||"Component"),i}return t.prototype&&t.prototype.isPureReactComponent?!er(i,s)||!er(h,p):!0}function Ri(e,t,i,s){var h=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,s),t.state!==h&&(e=ue(e)||"Component",EA.has(e)||(EA.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),MC.enqueueReplaceState(t,t.state,null))}function Di(e,t){var i=t;if("ref"in t){i={};for(var s in t)s!=="ref"&&(i[s]=t[s])}if(e=e.defaultProps){i===t&&(i=nt({},i));for(var h in e)i[h]===void 0&&(i[h]=e[h])}return i}function Sh(e){lC(e),console.warn(`%s
161
+
162
+ %s
163
+ `,Zm?"An error occurred in the <"+Zm+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
164
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Th(e){var t=Zm?"The above error occurred in the <"+Zm+"> component.":"The above error occurred in one of your React components.",i="React will try to recreate this component tree from scratch using the error boundary you provided, "+((RC||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var s=e.environmentName;e=[`%o
165
+
166
+ %s
167
+
168
+ %s
169
+ `,e,t,i].slice(0),typeof e[0]=="string"?e.splice(0,1,hb+" "+e[0],mb,WS+s+WS,pb):e.splice(0,0,hb,mb,WS+s+WS,pb),e.unshift(console),s=K4.apply(console.error,e),s()}else console.error(`%o
170
+
171
+ %s
172
+
173
+ %s
174
+ `,e,t,i)}function ng(e){lC(e)}function cf(e,t){try{Zm=t.source?ue(t.source):null,RC=null;var i=t.value;if($.actQueue!==null)$.thrownErrors.push(i);else{var s=e.onUncaughtError;s(i,{componentStack:t.stack})}}catch(h){setTimeout(function(){throw h})}}function lg(e,t,i){try{Zm=i.source?ue(i.source):null,RC=ue(t);var s=e.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Ch(e,t,i){return i=Rn(i),i.tag=TC,i.payload={element:null},i.callback=function(){ye(t.source,cf,e,t)},i}function Eh(e){return e=Rn(e),e.tag=TC,e}function _h(e,t,i,s){var h=i.type.getDerivedStateFromError;if(typeof h=="function"){var p=s.value;e.payload=function(){return h(p)},e.callback=function(){Gu(i),ye(s.source,lg,t,i,s)}}var T=i.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(e.callback=function(){Gu(i),ye(s.source,lg,t,i,s),typeof h!="function"&&(hc===null?hc=new Set([this]):hc.add(this)),_4(this,s),typeof h=="function"||(i.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",ue(i)||"Unknown")})}function ag(e,t,i,s,h){if(i.flags|=32768,Yi&&Dr(e,h),s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=i.alternate,t!==null&&Ga(t,i,h,!0),dt&&(Eu=!0),i=ai.current,i!==null){switch(i.tag){case 31:case 13:return $i===null?br():i.alternate===null&&mn===Vs&&(mn=US),i.flags&=-257,i.flags|=65536,i.lanes=h,s===_S?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([s]):t.add(s),Zh(e,s,h)),!1;case 22:return i.flags|=65536,s===_S?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([s]):i.add(s)),Zh(e,s,h)),!1}throw Error("Unexpected Suspense handler tag ("+i.tag+"). This is a bug in React.")}return Zh(e,s,h),br(),!1}if(dt)return Eu=!0,t=ai.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=h,s!==rC&&Ic(hl(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:s}),i))):(s!==rC&&Ic(hl(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:s}),i)),e=e.current.alternate,e.flags|=65536,h&=-h,e.lanes|=h,s=hl(s,i),h=Ch(e.stateNode,s,h),Kc(e,h),mn!==rc&&(mn=id)),!1;var p=hl(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:s}),i);if(jy===null?jy=[p]:jy.push(p),mn!==rc&&(mn=id),t===null)return!0;s=hl(s,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=h&-h,i.lanes|=e,e=Ch(i.stateNode,s,e),Kc(i,e),!1;case 1:if(t=i.type,p=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(hc===null||!hc.has(p))))return i.flags|=65536,h&=-h,i.lanes|=h,h=Eh(h),_h(h,e,i,s),Kc(i,h),!1}i=i.return}while(i!==null);return!1}function Gn(e,t,i,s){t.child=e===null?fA(t,null,i,s):ld(t,e.child,i,s)}function i0(e,t,i,s,h){i=i.render;var p=t.ref;if("ref"in s){var T={};for(var _ in s)_!=="ref"&&(T[_]=s[_])}else T=s;return Fo(t),s=$p(e,t,i,T,p,h),_=$u(),e!==null&&!Qn?(Wc(e,t,h),Qa(e,t,h)):(dt&&_&&th(t),t.flags|=1,Gn(e,t,s,h),t.child)}function ig(e,t,i,s,h){if(e===null){var p=i.type;return typeof p=="function"&&!Hp(p)&&p.defaultProps===void 0&&i.compare===null?(i=ko(p),t.tag=15,t.type=i,vr(t,p),og(e,t,i,s,h)):(e=Yu(i.type,null,s,t,t.mode,h),e.ref=t.ref,e.return=t,t.child=e)}if(p=e.child,!Dh(e,h)){var T=p.memoizedProps;if(i=i.compare,i=i!==null?i:er,i(T,s)&&e.ref===t.ref)return Qa(e,t,h)}return t.flags|=1,e=yi(p,s),e.ref=t.ref,e.return=t,t.child=e}function og(e,t,i,s,h){if(e!==null){var p=e.memoizedProps;if(er(p,s)&&e.ref===t.ref&&t.type===e.type)if(Qn=!1,t.pendingProps=s=p,Dh(e,h))(e.flags&131072)!==0&&(Qn=!0);else return t.lanes=e.lanes,Qa(e,t,h)}return cg(e,t,i,s,h)}function ug(e,t,i,s){var h=s.children,p=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Dy,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(p=p!==null?p.baseLanes|i:i,e!==null){for(s=t.child=e.child,h=0;s!==null;)h=h|s.lanes|s.childLanes,s=s.sibling;s=h&~p}else s=0,t.child=null;return sg(e,t,p,i,s)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&or(t,p!==null?p.cachePool:null),p!==null?rh(t,p):ho(t),ch(t);else return s=t.lanes=536870912,sg(e,t,p!==null?p.baseLanes|i:i,i,s)}else p!==null?(or(t,p.cachePool),rh(t,p),_i(t),t.memoizedState=null):(e!==null&&or(t,null),ho(t),_i(t));return Gn(e,t,h,i),t.child}function os(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Dy,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sg(e,t,i,s,h){var p=fo();return p=p===null?null:{parent:Zn._currentValue,pool:p},t.memoizedState={baseLanes:i,cachePool:p},e!==null&&or(t,null),ho(t),ch(t),e!==null&&Ga(e,t,s,!0),t.childLanes=h,null}function ff(e,t){var i=t.hidden;return i!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
175
+ - <Activity %s>
176
+ + <Activity %s>`,i===!0?"hidden":i===!1?"hidden={false}":"hidden={...}",i?'mode="hidden"':'mode="visible"'),t=hf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function rg(e,t,i){return ld(t,e.child,null,i),e=ff(t,t.pendingProps),e.flags|=2,Bn(t),t.memoizedState=null,e}function o0(e,t,i){var s=t.pendingProps,h=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(dt){if(s.mode==="hidden")return e=ff(t,s),t.lanes=536870912,os(null,e);if(ka(t),(e=en)?(i=Ut(e,Ki),i=i!==null&&i.data===fd?i:null,i!==null&&(s={dehydrated:i,treeContext:$v(),retryLane:536870912,hydrationErrors:null},t.memoizedState=s,s=qp(i),s.return=t,t.child=s,Dl=t,en=null)):i=null,i===null)throw al(t,e),ya(t);return t.lanes=536870912,null}return ff(t,s)}var p=e.memoizedState;if(p!==null){var T=p.dehydrated;if(ka(t),h)if(t.flags&256)t.flags&=-257,t=rg(e,t,i);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(Wv(),(i&536870912)!==0&&Ar(t),Qn||Ga(e,t,i,!1),h=(i&e.childLanes)!==0,Qn||h){if(s=kt,s!==null&&(T=zv(s,i),T!==0&&T!==p.retryLane))throw p.retryLane=T,ll(e,T),Ye(s,e,T),DC;br(),t=rg(e,t,i)}else e=p.treeContext,en=la(T.nextSibling),Dl=t,dt=!0,lc=null,Eu=!1,li=null,Ki=!1,e!==null&&Pv(t,e),t=ff(t,s),t.flags|=4096;return t}return p=e.child,s={mode:s.mode,children:s.children},(i&536870912)!==0&&(i&e.lanes)!==0&&Ar(t),e=yi(p,s),e.ref=t.ref,t.child=e,e.return=t,e}function df(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==i)&&(t.flags|=4194816)}}function cg(e,t,i,s,h){if(i.prototype&&typeof i.prototype.render=="function"){var p=Ne(i)||"Unknown";zA[p]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",p,p),zA[p]=!0)}return t.mode&Bl&&Uo.recordLegacyContextWarning(t,null),e===null&&(vr(t,t.type),i.contextTypes&&(p=Ne(i)||"Unknown",wA[p]||(wA[p]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",p)))),Fo(t),i=$p(e,t,i,s,void 0,h),s=$u(),e!==null&&!Qn?(Wc(e,t,h),Qa(e,t,h)):(dt&&s&&th(t),t.flags|=1,Gn(e,t,i,h),t.child)}function fg(e,t,i,s,h,p){return Fo(t),Os=-1,Qy=e!==null&&e.type!==t.type,t.updateQueue=null,i=$c(t,s,i,h),yn(e,t),s=$u(),e!==null&&!Qn?(Wc(e,t,p),Qa(e,t,p)):(dt&&s&&th(t),t.flags|=1,Gn(e,t,i,p),t.child)}function us(e,t,i,s,h){switch(C(t)){case!1:var p=t.stateNode,T=new t.type(t.memoizedProps,p.context).state;p.updater.enqueueSetState(p,T,null);break;case!0:t.flags|=128,t.flags|=65536,p=Error("Simulated error coming from DevTools");var _=h&-h;if(t.lanes|=_,T=kt,T===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");_=Eh(_),_h(_,T,t,hl(p,t)),Kc(t,_)}if(Fo(t),t.stateNode===null){if(T=nc,p=i.contextType,"contextType"in i&&p!==null&&(p===void 0||p.$$typeof!==ei)&&!UA.has(i)&&(UA.add(i),_=p===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof p!="object"?" However, it is set to a "+typeof p+".":p.$$typeof===fm?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(p).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Ne(i)||"Component",_)),typeof p=="object"&&p!==null&&(T=Et(p)),p=new i(s,T),t.mode&Bl){qt(!0);try{p=new i(s,T)}finally{qt(!1)}}if(T=t.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=MC,t.stateNode=p,p._reactInternals=t,p._reactInternalInstance=CA,typeof i.getDerivedStateFromProps=="function"&&T===null&&(T=Ne(i)||"Component",_A.has(T)||(_A.add(T),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",T,p.state===null?"null":"undefined",T))),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"){var R=_=T=null;if(typeof p.componentWillMount=="function"&&p.componentWillMount.__suppressDeprecationWarning!==!0?T="componentWillMount":typeof p.UNSAFE_componentWillMount=="function"&&(T="UNSAFE_componentWillMount"),typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps.__suppressDeprecationWarning!==!0?_="componentWillReceiveProps":typeof p.UNSAFE_componentWillReceiveProps=="function"&&(_="UNSAFE_componentWillReceiveProps"),typeof p.componentWillUpdate=="function"&&p.componentWillUpdate.__suppressDeprecationWarning!==!0?R="componentWillUpdate":typeof p.UNSAFE_componentWillUpdate=="function"&&(R="UNSAFE_componentWillUpdate"),T!==null||_!==null||R!==null){p=Ne(i)||"Component";var x=typeof i.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";bA.has(p)||(bA.add(p),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
177
+
178
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
179
+
180
+ The above lifecycles should be removed. Learn more about this warning here:
181
+ https://react.dev/link/unsafe-component-lifecycles`,p,x,T!==null?`
182
+ `+T:"",_!==null?`
183
+ `+_:"",R!==null?`
184
+ `+R:""))}}p=t.stateNode,T=Ne(i)||"Component",p.render||(i.prototype&&typeof i.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",T):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",T)),!p.getInitialState||p.getInitialState.isReactClassApproved||p.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",T),p.getDefaultProps&&!p.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",T),p.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",T),i.childContextTypes&&!xA.has(i)&&(xA.add(i),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",T)),i.contextTypes&&!DA.has(i)&&(DA.add(i),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",T)),typeof p.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",T),i.prototype&&i.prototype.isPureReactComponent&&typeof p.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Ne(i)||"A pure component"),typeof p.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",T),typeof p.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",T),typeof p.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",T),typeof p.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",T),_=p.props!==s,p.props!==void 0&&_&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",T),p.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",T,T),typeof p.getSnapshotBeforeUpdate!="function"||typeof p.componentDidUpdate=="function"||AA.has(i)||(AA.add(i),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Ne(i))),typeof p.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",T),typeof p.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",T),typeof i.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",T),(_=p.state)&&(typeof _!="object"||An(_))&&console.error("%s.state: must be set to an object or null",T),typeof p.getChildContext=="function"&&typeof i.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",T),p=t.stateNode,p.props=s,p.state=t.memoizedState,p.refs={},ct(t),T=i.contextType,p.context=typeof T=="object"&&T!==null?Et(T):nc,p.state===s&&(T=Ne(i)||"Component",MA.has(T)||(MA.add(T),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",T))),t.mode&Bl&&Uo.recordLegacyContextWarning(t,p),Uo.recordUnsafeLifecycleWarnings(t,p),p.state=t.memoizedState,T=i.getDerivedStateFromProps,typeof T=="function"&&(yr(t,i,T,s),p.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(T=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),T!==p.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ue(t)||"Component"),MC.enqueueReplaceState(p,p.state,null)),Ei(t,s,p,h),sr(),p.state=t.memoizedState),typeof p.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&xo)!==Ge&&(t.flags|=134217728),p=!0}else if(e===null){p=t.stateNode;var B=t.memoizedProps;_=Di(i,B),p.props=_;var G=p.context;R=i.contextType,T=nc,typeof R=="object"&&R!==null&&(T=Et(R)),x=i.getDerivedStateFromProps,R=typeof x=="function"||typeof p.getSnapshotBeforeUpdate=="function",B=t.pendingProps!==B,R||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(B||G!==T)&&Ri(t,p,s,T),sc=!1;var w=t.memoizedState;p.state=w,Ei(t,s,p,h),sr(),G=t.memoizedState,B||w!==G||sc?(typeof x=="function"&&(yr(t,i,x,s),G=t.memoizedState),(_=sc||vh(t,i,_,s,w,G,T))?(R||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&xo)!==Ge&&(t.flags|=134217728)):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&xo)!==Ge&&(t.flags|=134217728),t.memoizedProps=s,t.memoizedState=G),p.props=s,p.state=G,p.context=T,p=_):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&xo)!==Ge&&(t.flags|=134217728),p=!1)}else{p=t.stateNode,Ti(e,t),T=t.memoizedProps,R=Di(i,T),p.props=R,x=t.pendingProps,w=p.context,G=i.contextType,_=nc,typeof G=="object"&&G!==null&&(_=Et(G)),B=i.getDerivedStateFromProps,(G=typeof B=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(T!==x||w!==_)&&Ri(t,p,s,_),sc=!1,w=t.memoizedState,p.state=w,Ei(t,s,p,h),sr();var J=t.memoizedState;T!==x||w!==J||sc||e!==null&&e.dependencies!==null&&ar(e.dependencies)?(typeof B=="function"&&(yr(t,i,B,s),J=t.memoizedState),(R=sc||vh(t,i,R,s,w,J,_)||e!==null&&e.dependencies!==null&&ar(e.dependencies))?(G||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(s,J,_),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(s,J,_)),typeof p.componentDidUpdate=="function"&&(t.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof p.componentDidUpdate!="function"||T===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||T===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=J),p.props=s,p.state=J,p.context=_,p=R):(typeof p.componentDidUpdate!="function"||T===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||T===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),p=!1)}if(_=p,df(e,t),T=(t.flags&128)!==0,_||T){if(_=t.stateNode,Rc(t),T&&typeof i.getDerivedStateFromError!="function")i=null,sa=-1;else if(i=P1(_),t.mode&Bl){qt(!0);try{P1(_)}finally{qt(!1)}}t.flags|=1,e!==null&&T?(t.child=ld(t,e.child,null,h),t.child=ld(t,null,i,h)):Gn(e,t,i,h),t.memoizedState=_.state,e=t.child}else e=Qa(e,t,h);return h=t.stateNode,p&&h.props!==s&&(km||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ue(t)||"a component"),km=!0),e}function dg(e,t,i,s){return Jo(),t.flags|=256,Gn(e,t,i,s),t.child}function vr(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
185
+ %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=Ne(t)||"Unknown",VA[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),VA[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=Ne(t)||"Unknown",OA[t]||(console.error("%s: Function components do not support contextType.",t),OA[t]=!0))}function Sr(e){return{baseLanes:e,cachePool:Xp()}}function Ah(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=Ua),e}function bh(e,t,i){var s,h=t.pendingProps;y(t)&&(t.flags|=128);var p=!1,T=(t.flags&128)!==0;if((s=T)||(s=e!==null&&e.memoizedState===null?!1:(zn.current&ky)!==0),s&&(p=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(dt){if(p?yl(t):_i(t),(e=en)?(i=Ut(e,Ki),i=i!==null&&i.data!==fd?i:null,i!==null&&(s={dehydrated:i,treeContext:$v(),retryLane:536870912,hydrationErrors:null},t.memoizedState=s,s=qp(i),s.return=t,t.child=s,Dl=t,en=null)):i=null,i===null)throw al(t,e),ya(t);return Xg(i)?t.lanes=32:t.lanes=536870912,null}var _=h.children;if(h=h.fallback,p){_i(t);var R=t.mode;return _=hf({mode:"hidden",children:_},R),h=Iu(h,R,i,null),_.return=t,h.return=t,_.sibling=h,t.child=_,h=t.child,h.memoizedState=Sr(i),h.childLanes=Ah(e,s,i),t.memoizedState=xC,os(null,h)}return yl(t),hg(t,_)}var x=e.memoizedState;if(x!==null){var B=x.dehydrated;if(B!==null){if(T)t.flags&256?(yl(t),t.flags&=-257,t=Mh(e,t,i)):t.memoizedState!==null?(_i(t),t.child=e.child,t.flags|=128,t=null):(_i(t),_=h.fallback,R=t.mode,h=hf({mode:"visible",children:h.children},R),_=Iu(_,R,i,null),_.flags|=2,h.return=t,_.return=t,h.sibling=_,t.child=h,ld(t,e.child,null,i),h=t.child,h.memoizedState=Sr(i),h.childLanes=Ah(e,s,i),t.memoizedState=xC,t=os(null,h));else if(yl(t),Wv(),(i&536870912)!==0&&Ar(t),Xg(B)){if(s=B.nextSibling&&B.nextSibling.dataset,s){_=s.dgst;var G=s.msg;R=s.stck;var w=s.cstck}p=G,s=_,h=R,B=w,_=p,R=B,_=Error(_||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),_.stack=h||"",_.digest=s,s=R===void 0?null:R,h={value:_,source:null,stack:s},typeof s=="string"&&sC.set(_,h),Ic(h),t=Mh(e,t,i)}else if(Qn||Ga(e,t,i,!1),s=(i&e.childLanes)!==0,Qn||s){if(s=kt,s!==null&&(h=zv(s,i),h!==0&&h!==x.retryLane))throw x.retryLane=h,ll(e,h),Ye(s,e,h),DC;Nf(B)||br(),t=Mh(e,t,i)}else Nf(B)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,en=la(B.nextSibling),Dl=t,dt=!0,lc=null,Eu=!1,li=null,Ki=!1,e!==null&&Pv(t,e),t=hg(t,h.children),t.flags|=4096);return t}}return p?(_i(t),_=h.fallback,R=t.mode,w=e.child,B=w.sibling,h=yi(w,{mode:"hidden",children:h.children}),h.subtreeFlags=w.subtreeFlags&65011712,B!==null?_=yi(B,_):(_=Iu(_,R,i,null),_.flags|=2),_.return=t,h.return=t,h.sibling=_,t.child=h,os(null,h),h=t.child,_=e.child.memoizedState,_===null?_=Sr(i):(R=_.cachePool,R!==null?(w=Zn._currentValue,R=R.parent!==w?{parent:w,pool:w}:R):R=Xp(),_={baseLanes:_.baseLanes|i,cachePool:R}),h.memoizedState=_,h.childLanes=Ah(e,s,i),t.memoizedState=xC,os(e.child,h)):(x!==null&&(i&62914560)===i&&(i&e.lanes)!==0&&Ar(t),yl(t),i=e.child,e=i.sibling,i=yi(i,{mode:"visible",children:h.children}),i.return=t,i.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=i,t.memoizedState=null,i)}function hg(e,t){return t=hf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function hf(e,t){return e=z(22,e,null,t),e.lanes=0,e}function Mh(e,t,i){return ld(t,e.child,null,i),e=hg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mg(e,t,i){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),lh(e.return,t,i)}function Rh(e,t,i,s,h,p){var T=e.memoizedState;T===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:h,treeForkCount:p}:(T.isBackwards=t,T.rendering=null,T.renderingStartTime=0,T.last=s,T.tail=i,T.tailMode=h,T.treeForkCount=p)}function pg(e,t,i){var s=t.pendingProps,h=s.revealOrder,p=s.tail,T=s.children,_=zn.current;if((s=(_&ky)!==0)?(_=_&Gm|ky,t.flags|=128):_&=Gm,Pe(zn,_,t),_=h??"null",h!=="forwards"&&h!=="unstable_legacy-backwards"&&h!=="together"&&h!=="independent"&&!LA[_])if(LA[_]=!0,h==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(h==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof h=="string")switch(h.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',h,h.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',h,h.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',h)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',h);_=p??"null",xS[_]||(p==null?(h==="forwards"||h==="backwards"||h==="unstable_legacy-backwards")&&(xS[_]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):p!=="visible"&&p!=="collapsed"&&p!=="hidden"?(xS[_]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',p)):h!=="forwards"&&h!=="backwards"&&h!=="unstable_legacy-backwards"&&(xS[_]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',p)));e:if((h==="forwards"||h==="backwards"||h==="unstable_legacy-backwards")&&T!==void 0&&T!==null&&T!==!1)if(An(T)){for(_=0;_<T.length;_++)if(!Gt(T[_],_))break e}else if(_=Be(T),typeof _=="function"){if(_=_.call(T))for(var R=_.next(),x=0;!R.done;R=_.next()){if(!Gt(R.value,x))break e;x++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',h);if(Gn(e,t,T,i),dt?(Qo(),T=xy):T=0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mg(e,i,t);else if(e.tag===19)mg(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(h){case"forwards":for(i=t.child,h=null;i!==null;)e=i.alternate,e!==null&&Fu(e)===null&&(h=i),i=i.sibling;i=h,i===null?(h=t.child,t.child=null):(h=i.sibling,i.sibling=null),Rh(t,!1,h,i,p,T);break;case"backwards":case"unstable_legacy-backwards":for(i=null,h=t.child,t.child=null;h!==null;){if(e=h.alternate,e!==null&&Fu(e)===null){t.child=h;break}e=h.sibling,h.sibling=i,i=h,h=e}Rh(t,!0,i,null,p,T);break;case"together":Rh(t,!1,null,null,void 0,T);break;default:t.memoizedState=null}return t.child}function Qa(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),sa=-1,fc|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(Ga(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,i=yi(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=yi(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function Dh(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ar(e)))}function u0(e,t,i){switch(t.tag){case 3:sn(t,t.stateNode.containerInfo),va(t,Zn,e.memoizedState.cache),Jo();break;case 27:case 5:oe(t);break;case 4:sn(t,t.stateNode.containerInfo);break;case 10:va(t,t.type,t.memoizedProps.value);break;case 12:(i&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var s=t.stateNode;s.effectDuration=-0,s.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,ka(t),null;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(yl(t),t.flags|=128,null):(i&t.child.childLanes)!==0?bh(e,t,i):(yl(t),e=Qa(e,t,i),e!==null?e.sibling:null);yl(t);break;case 19:var h=(e.flags&128)!==0;if(s=(i&t.childLanes)!==0,s||(Ga(e,t,i,!1),s=(i&t.childLanes)!==0),h){if(s)return pg(e,t,i);t.flags|=128}if(h=t.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Pe(zn,zn.current,t),s)break;return null;case 22:return t.lanes=0,ug(e,t,i,t.pendingProps);case 24:va(t,Zn,e.memoizedState.cache)}return Qa(e,t,i)}function mf(e,t,i){if(t._debugNeedsRemount&&e!==null){i=Yu(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),i._debugStack=t._debugStack,i._debugTask=t._debugTask;var s=t.return;if(s===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,i.index=t.index,i.sibling=t.sibling,i.return=t.return,i.ref=t.ref,i._debugInfo=t._debugInfo,t===s.child)s.child=i;else{var h=s.child;if(h===null)throw Error("Expected parent to have a child.");for(;h.sibling!==t;)if(h=h.sibling,h===null)throw Error("Expected to find the previous sibling.");h.sibling=i}return t=s.deletions,t===null?(s.deletions=[e],s.flags|=16):t.push(e),i.flags|=2,i}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Qn=!0;else{if(!Dh(e,i)&&(t.flags&128)===0)return Qn=!1,u0(e,t,i);Qn=(e.flags&131072)!==0}else Qn=!1,(s=dt)&&(Qo(),s=(t.flags&1048576)!==0),s&&(s=t.index,Qo(),Gp(t,xy,s));switch(t.lanes=0,t.tag){case 16:e:if(s=t.pendingProps,e=Kl(t.elementType),t.type=e,typeof e=="function")Hp(e)?(s=Di(e,s),t.tag=1,t.type=e=ko(e),t=us(null,t,e,s,i)):(t.tag=0,vr(t,e),t.type=e=ko(e),t=cg(null,t,e,s,i));else{if(e!=null){if(h=e.$$typeof,h===Ir){t.tag=11,t.type=e=jd(e),t=i0(null,t,e,s,i);break e}else if(h===Yf){t.tag=14,t=ig(null,t,e,s,i);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===ol&&(t=" Did you wrap a component in React.lazy() more than once?"),i=Ne(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+i+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return cg(e,t,t.type,t.pendingProps,i);case 1:return s=t.type,h=Di(s,t.pendingProps),us(e,t,s,h,i);case 3:e:{if(sn(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");s=t.pendingProps;var p=t.memoizedState;h=p.element,Ti(e,t),Ei(t,s,null,i);var T=t.memoizedState;if(s=T.cache,va(t,Zn,s),s!==p.cache&&so(t,[Zn],i,!0),sr(),s=T.element,p.isDehydrated)if(p={element:s,isDehydrated:!1,cache:T.cache},t.updateQueue.baseState=p,t.memoizedState=p,t.flags&256){t=dg(e,t,s,i);break e}else if(s!==h){h=hl(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Ic(h),t=dg(e,t,s,i);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(en=la(e.firstChild),Dl=t,dt=!0,lc=null,Eu=!1,li=null,Ki=!0,i=fA(t,null,s,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Jo(),s===h){t=Qa(e,t,i);break e}Gn(e,t,s,i)}t=t.child}return t;case 26:return df(e,t),e===null?(i=Fg(t.type,null,t.pendingProps,null))?t.memoizedState=i:dt||(i=t.type,e=t.pendingProps,s=Bt(aa.current),s=xf(s).createElement(i),s[Wt]=t,s[Rl]=e,Pt(s,i,e),pn(s),t.stateNode=s):t.memoizedState=Fg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return oe(t),e===null&&dt&&(s=Bt(aa.current),h=le(),s=t.stateNode=bo(t.type,t.pendingProps,s,h,!1),Eu||(h=Vl(s,t.type,t.pendingProps,h),h!==null&&(Zu(t,0).serverProps=h)),Dl=t,Ki=!0,h=en,pu(t.type)?(WC=h,en=la(s.firstChild)):en=h),Gn(e,t,t.pendingProps.children,i),df(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&dt&&(p=le(),s=zc(t.type,p.ancestorInfo),h=en,(T=!h)||(T=H0(h,t.type,t.pendingProps,Ki),T!==null?(t.stateNode=T,Eu||(p=Vl(T,t.type,t.pendingProps,p),p!==null&&(Zu(t,0).serverProps=p)),Dl=t,en=la(T.firstChild),Ki=!1,p=!0):p=!1,T=!p),T&&(s&&al(t,h),ya(t))),oe(t),h=t.type,p=t.pendingProps,T=e!==null?e.memoizedProps:null,s=p.children,Or(h,p)?s=null:T!==null&&Or(h,T)&&(t.flags|=32),t.memoizedState!==null&&(h=$p(e,t,Pc,null,null,i),sv._currentValue=h),df(e,t),Gn(e,t,s,i),t.child;case 6:return e===null&&dt&&(i=t.pendingProps,e=le(),s=e.ancestorInfo.current,i=s!=null?Oc(i,s.tag,e.ancestorInfo.implicitRootScope):!0,e=en,(s=!e)||(s=B0(e,t.pendingProps,Ki),s!==null?(t.stateNode=s,Dl=t,en=null,s=!0):s=!1,s=!s),s&&(i&&al(t,e),ya(t))),null;case 13:return bh(e,t,i);case 4:return sn(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=ld(t,null,s,i):Gn(e,t,s,i),t.child;case 11:return i0(e,t,t.type,t.pendingProps,i);case 7:return Gn(e,t,t.pendingProps,i),t.child;case 8:return Gn(e,t,t.pendingProps.children,i),t.child;case 12:return t.flags|=4,t.flags|=2048,s=t.stateNode,s.effectDuration=-0,s.passiveEffectDuration=-0,Gn(e,t,t.pendingProps.children,i),t.child;case 10:return s=t.type,h=t.pendingProps,p=h.value,"value"in h||HA||(HA=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),va(t,s,p),Gn(e,t,h.children,i),t.child;case 9:return h=t.type._context,s=t.pendingProps.children,typeof s!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Fo(t),h=Et(h),s=gC(s,h,void 0),t.flags|=1,Gn(e,t,s,i),t.child;case 14:return ig(e,t,t.type,t.pendingProps,i);case 15:return og(e,t,t.type,t.pendingProps,i);case 19:return pg(e,t,i);case 31:return o0(e,t,i);case 22:return ug(e,t,i,t.pendingProps);case 24:return Fo(t),s=Et(Zn),e===null?(h=fo(),h===null&&(h=kt,p=ah(),h.pooledCache=p,Xu(p),p!==null&&(h.pooledCacheLanes|=i),h=p),t.memoizedState={parent:s,cache:h},ct(t),va(t,Zn,h)):((e.lanes&i)!==0&&(Ti(e,t),Ei(t,null,null,i),sr()),h=e.memoizedState,p=t.memoizedState,h.parent!==s?(h={parent:s,cache:s},t.memoizedState=h,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=h),va(t,Zn,s)):(s=p.cache,va(t,Zn,s),s!==h.cache&&so(t,[Zn],i,!0))),Gn(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function xi(e){e.flags|=4}function xh(e,t,i,s,h){if((t=(e.mode&v4)!==Ge)&&(t=!1),t){if(e.flags|=16777216,(h&335544128)===h)if(e.stateNode.complete)e.flags|=8192;else if(Og())e.flags|=8192;else throw nd=_S,vC}else e.flags&=-16777217}function s0(e,t){if(t.type!=="stylesheet"||(t.state.loading&ji)!==md)e.flags&=-16777217;else if(e.flags|=16777216,!rt(t))if(Og())e.flags|=8192;else throw nd=_S,vC}function Tr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?zd():536870912,e.lanes|=t,sd|=t)}function Cr(e,t){if(!dt)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Ot(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,s=0;if(t)if((e.mode&lt)!==Ge){for(var h=e.selfBaseDuration,p=e.child;p!==null;)i|=p.lanes|p.childLanes,s|=p.subtreeFlags&65011712,s|=p.flags&65011712,h+=p.treeBaseDuration,p=p.sibling;e.treeBaseDuration=h}else for(h=e.child;h!==null;)i|=h.lanes|h.childLanes,s|=h.subtreeFlags&65011712,s|=h.flags&65011712,h.return=e,h=h.sibling;else if((e.mode&lt)!==Ge){h=e.actualDuration,p=e.selfBaseDuration;for(var T=e.child;T!==null;)i|=T.lanes|T.childLanes,s|=T.subtreeFlags,s|=T.flags,h+=T.actualDuration,p+=T.treeBaseDuration,T=T.sibling;e.actualDuration=h,e.treeBaseDuration=p}else for(h=e.child;h!==null;)i|=h.lanes|h.childLanes,s|=h.subtreeFlags,s|=h.flags,h.return=e,h=h.sibling;return e.subtreeFlags|=s,e.childLanes=i,t}function gg(e,t,i){var s=t.pendingProps;switch(nh(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(t),null;case 1:return Ot(t),null;case 3:return i=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),qa(Zn,t),Y(t),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(ku(t)?(Ko(),xi(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Yc())),Ot(t),null;case 26:var h=t.type,p=t.memoizedState;return e===null?(xi(t),p!==null?(Ot(t),s0(t,p)):(Ot(t),xh(t,h,null,s,i))):p?p!==e.memoizedState?(xi(t),Ot(t),s0(t,p)):(Ot(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&xi(t),Ot(t),xh(t,h,e,s,i)),null;case 27:if(we(t),i=Bt(aa.current),h=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&xi(t);else{if(!s){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ot(t),null}e=le(),ku(t)?Yp(t):(e=bo(h,s,i,e,!0),t.stateNode=e,xi(t))}return Ot(t),null;case 5:if(we(t),h=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&xi(t);else{if(!s){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ot(t),null}var T=le();if(ku(t))Yp(t);else{switch(p=Bt(aa.current),zc(h,T.ancestorInfo),T=T.context,p=xf(p),T){case Wm:p=p.createElementNS(je,h);break;case FS:p=p.createElementNS(Ke,h);break;default:switch(h){case"svg":p=p.createElementNS(je,h);break;case"math":p=p.createElementNS(Ke,h);break;case"script":p=p.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof s.is=="string"?p.createElement("select",{is:s.is}):p.createElement("select"),s.multiple?p.multiple=!0:s.size&&(p.size=s.size);break;default:p=typeof s.is=="string"?p.createElement(h,{is:s.is}):p.createElement(h),h.indexOf("-")===-1&&(h!==h.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",h),Object.prototype.toString.call(p)!=="[object HTMLUnknownElement]"||ia.call(ub,h)||(ub[h]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",h)))}}p[Wt]=t,p[Rl]=s;e:for(T=t.child;T!==null;){if(T.tag===5||T.tag===6)p.appendChild(T.stateNode);else if(T.tag!==4&&T.tag!==27&&T.child!==null){T.child.return=T,T=T.child;continue}if(T===t)break e;for(;T.sibling===null;){if(T.return===null||T.return===t)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}t.stateNode=p;e:switch(Pt(p,h,s),h){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&xi(t)}}return Ot(t),xh(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&xi(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Bt(aa.current),i=le(),ku(t)){if(e=t.stateNode,i=t.memoizedProps,h=!Eu,s=null,p=Dl,p!==null)switch(p.tag){case 3:h&&(h=Y0(e,i,s),h!==null&&(Zu(t,0).serverProps=h));break;case 27:case 5:s=p.memoizedProps,h&&(h=Y0(e,i,s),h!==null&&(Zu(t,0).serverProps=h))}e[Wt]=t,e=!!(e.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||Zg(e.nodeValue,i)),e||ya(t,!0)}else h=i.ancestorInfo.current,h!=null&&Oc(s,h.tag,i.ancestorInfo.implicitRootScope),e=xf(e).createTextNode(s),e[Wt]=t,t.stateNode=e}return Ot(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(s=ku(t),i!==null){if(e===null){if(!s)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[Wt]=t,Ot(t),(t.mode&lt)!==Ge&&i!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Ko(),Jo(),(t.flags&128)===0&&(i=t.memoizedState=null),t.flags|=4,Ot(t),(t.mode&lt)!==Ge&&i!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else i=Yc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(Bn(t),t):(Bn(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Ot(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(h=s,p=ku(t),h!==null&&h.dehydrated!==null){if(e===null){if(!p)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(p=t.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");p[Wt]=t,Ot(t),(t.mode&lt)!==Ge&&h!==null&&(h=t.child,h!==null&&(t.treeBaseDuration-=h.treeBaseDuration))}else Ko(),Jo(),(t.flags&128)===0&&(h=t.memoizedState=null),t.flags|=4,Ot(t),(t.mode&lt)!==Ge&&h!==null&&(h=t.child,h!==null&&(t.treeBaseDuration-=h.treeBaseDuration));h=!1}else h=Yc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=h),h=!0;if(!h)return t.flags&256?(Bn(t),t):(Bn(t),null)}return Bn(t),(t.flags&128)!==0?(t.lanes=i,(t.mode&lt)!==Ge&&Ju(t),t):(i=s!==null,e=e!==null&&e.memoizedState!==null,i&&(s=t.child,h=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(h=s.alternate.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==h&&(s.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),Tr(t,t.updateQueue),Ot(t),(t.mode&lt)!==Ge&&i&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return Y(t),e===null&&hu(t.stateNode.containerInfo),Ot(t),null;case 10:return qa(t.type,t),Ot(t),null;case 19:if(tt(zn,t),s=t.memoizedState,s===null)return Ot(t),null;if(h=(t.flags&128)!==0,p=s.rendering,p===null)if(h)Cr(s,!1);else{if(mn!==Vs||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(p=Fu(e),p!==null){for(t.flags|=128,Cr(s,!1),e=p.updateQueue,t.updateQueue=e,Tr(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)Bp(i,e),i=i.sibling;return Pe(zn,zn.current&Gm|ky,t),dt&&Ba(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&In()>LS&&(t.flags|=128,h=!0,Cr(s,!1),t.lanes=4194304)}else{if(!h)if(e=Fu(p),e!==null){if(t.flags|=128,h=!0,e=e.updateQueue,t.updateQueue=e,Tr(t,e),Cr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!p.alternate&&!dt)return Ot(t),null}else 2*In()-s.renderingStartTime>LS&&i!==536870912&&(t.flags|=128,h=!0,Cr(s,!1),t.lanes=4194304);s.isBackwards?(p.sibling=t.child,t.child=p):(e=s.last,e!==null?e.sibling=p:t.child=p,s.last=p)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=In(),e.sibling=null,i=zn.current,i=h?i&Gm|ky:i&Gm,Pe(zn,i,t),dt&&Ba(t,s.treeForkCount),e):(Ot(t),null);case 22:case 23:return Bn(t),Za(t),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(i&536870912)!==0&&(t.flags&128)===0&&(Ot(t),t.subtreeFlags&6&&(t.flags|=8192)):Ot(t),i=t.updateQueue,i!==null&&Tr(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==i&&(t.flags|=2048),e!==null&&tt(ed,t),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),qa(Zn,t),Ot(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function r0(e,t){switch(nh(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&lt)!==Ge&&Ju(t),t):null;case 3:return qa(Zn,t),Y(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return we(t),null;case 31:if(t.memoizedState!==null){if(Bn(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Jo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&lt)!==Ge&&Ju(t),t):null;case 13:if(Bn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Jo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&lt)!==Ge&&Ju(t),t):null;case 19:return tt(zn,t),null;case 4:return Y(t),null;case 10:return qa(t.type,t),null;case 22:case 23:return Bn(t),Za(t),e!==null&&tt(ed,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&lt)!==Ge&&Ju(t),t):null;case 24:return qa(Zn,t),null;case 25:return null;default:return null}}function yg(e,t){switch(nh(t),t.tag){case 3:qa(Zn,t),Y(t);break;case 26:case 27:case 5:we(t);break;case 4:Y(t);break;case 31:t.memoizedState!==null&&Bn(t);break;case 13:Bn(t);break;case 19:tt(zn,t);break;case 10:qa(t.type,t);break;case 22:case 23:Bn(t),Za(t),e!==null&&tt(ed,t);break;case 24:qa(Zn,t)}}function Ui(e){return(e.mode&lt)!==Ge}function c0(e,t){Ui(e)?(cn(),To(t,e),pl()):To(t,e)}function Uh(e,t,i){Ui(e)?(cn(),uu(i,e,t),pl()):uu(i,e,t)}function To(e,t){try{var i=t.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var h=s.next;i=h;do{if((i.tag&e)===e&&(s=void 0,(e&ra)!==bS&&(Fm=!0),s=ye(t,A4,i),(e&ra)!==bS&&(Fm=!1),s!==void 0&&typeof s!="function")){var p=void 0;p=(i.tag&ii)!==0?"useLayoutEffect":(i.tag&ra)!==0?"useInsertionEffect":"useEffect";var T=void 0;T=s===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof s.then=="function"?`
186
+
187
+ It looks like you wrote `+p+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
188
+
189
+ `+p+`(() => {
190
+ async function fetchData() {
191
+ // You can await here
192
+ const response = await MyAPI.getData(someId);
193
+ // ...
194
+ }
195
+ fetchData();
196
+ }, [someId]); // Or [] if effect doesn't need props or state
197
+
198
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+s,ye(t,function(_,R){console.error("%s must not return anything besides a function, which is used for clean-up.%s",_,R)},p,T)}i=i.next}while(i!==h)}}catch(_){We(t,t.return,_)}}function uu(e,t,i){try{var s=t.updateQueue,h=s!==null?s.lastEffect:null;if(h!==null){var p=h.next;s=p;do{if((s.tag&e)===e){var T=s.inst,_=T.destroy;_!==void 0&&(T.destroy=void 0,(e&ra)!==bS&&(Fm=!0),h=t,ye(h,b4,h,i,_),(e&ra)!==bS&&(Fm=!1))}s=s.next}while(s!==p)}}catch(R){We(t,t.return,R)}}function pf(e,t){Ui(e)?(cn(),To(t,e),pl()):To(t,e)}function Nh(e,t,i){Ui(e)?(cn(),uu(i,e,t),pl()):uu(i,e,t)}function vg(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||km||(i.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ue(e)||"instance"),i.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ue(e)||"instance"));try{ye(e,rr,t,i)}catch(s){We(e,e.return,s)}}}function gf(e,t,i){return e.getSnapshotBeforeUpdate(t,i)}function f0(e,t){var i=t.memoizedProps,s=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||km||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ue(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ue(e)||"instance"));try{var h=Di(e.type,i),p=ye(e,gf,t,h,s);i=BA,p!==void 0||i.has(e.type)||(i.add(e.type),ye(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ue(e))})),t.__reactInternalSnapshotBeforeUpdate=p}catch(T){We(e,e.return,T)}}function zh(e,t,i){i.props=Di(e.type,e.memoizedProps),i.state=e.memoizedState,Ui(e)?(cn(),ye(e,lA,e,t,i),pl()):ye(e,lA,e,t,i)}function d0(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}if(typeof t=="function")if(Ui(e))try{cn(),e.refCleanup=t(i)}finally{pl()}else e.refCleanup=t(i);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ue(e)),t.current=i}}function ss(e,t){try{ye(e,d0,e)}catch(i){We(e,t,i)}}function _a(e,t){var i=e.ref,s=e.refCleanup;if(i!==null)if(typeof s=="function")try{if(Ui(e))try{cn(),ye(e,s)}finally{pl(e)}else ye(e,s)}catch(h){We(e,t,h)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{if(Ui(e))try{cn(),ye(e,i,null)}finally{pl(e)}else ye(e,i,null)}catch(h){We(e,t,h)}else i.current=null}function Sg(e,t,i,s){var h=e.memoizedProps,p=h.id,T=h.onCommit;h=h.onRender,t=t===null?"mount":"update",SS&&(t="nested-update"),typeof h=="function"&&h(p,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,i),typeof T=="function"&&T(p,t,s,i)}function h0(e,t,i,s){var h=e.memoizedProps;e=h.id,h=h.onPostCommit,t=t===null?"mount":"update",SS&&(t="nested-update"),typeof h=="function"&&h(e,t,s,i)}function su(e){var t=e.type,i=e.memoizedProps,s=e.stateNode;try{ye(e,M0,s,t,i,e)}catch(h){We(e,e.return,h)}}function Oh(e,t,i){try{ye(e,jh,e.stateNode,e.type,i,t,e)}catch(s){We(e,e.return,s)}}function Tg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&pu(e.type)||e.tag===4}function wh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&pu(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Er(e,t,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(D0(i),(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t)):(D0(i),t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=pa));else if(s!==4&&(s===27&&pu(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(Er(e,t,i),e=e.sibling;e!==null;)Er(e,t,i),e=e.sibling}function yf(e,t,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(s!==4&&(s===27&&pu(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(yf(e,t,i),e=e.sibling;e!==null;)yf(e,t,i),e=e.sibling}function Cg(e){for(var t,i=e.return;i!==null;){if(Tg(i)){t=i;break}i=i.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,i=wh(e),yf(e,i,t);break;case 5:i=t.stateNode,t.flags&32&&(em(i),t.flags&=-33),t=wh(e),yf(e,t,i);break;case 3:case 4:t=t.stateNode.containerInfo,i=wh(e),Er(e,i,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Eg(e){var t=e.stateNode,i=e.memoizedProps;try{ye(e,Bi,e.type,i,t,e)}catch(s){We(e,e.return,s)}}function _g(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function qT(e,t){if(e=e.containerInfo,FC=jS,e=Fd(e),Up(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var h=s.anchorOffset,p=s.focusNode;s=s.focusOffset;try{i.nodeType,p.nodeType}catch{i=null;break e}var T=0,_=-1,R=-1,x=0,B=0,G=e,w=null;t:for(;;){for(var J;G!==i||h!==0&&G.nodeType!==3||(_=T+h),G!==p||s!==0&&G.nodeType!==3||(R=T+s),G.nodeType===3&&(T+=G.nodeValue.length),(J=G.firstChild)!==null;)w=G,G=J;for(;;){if(G===e)break t;if(w===i&&++x===h&&(_=T),w===p&&++B===s&&(R=T),(J=G.nextSibling)!==null)break;G=w,w=G.parentNode}G=J}i=_===-1||R===-1?null:{start:_,end:R}}else i=null}i=i||{start:0,end:0}}else i=null;for($C={focusedElem:e,selectionRange:i},jS=!1,rl=t;rl!==null;)if(t=rl,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,rl=e;else for(;rl!==null;){switch(e=t=rl,i=e.alternate,h=e.flags,e.tag){case 0:if((h&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)h=e[i],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:(h&1024)!==0&&i!==null&&f0(e,i);break;case 3:if((h&1024)!==0){if(e=e.stateNode.containerInfo,i=e.nodeType,i===9)Vr(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Vr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((h&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,rl=e;break}rl=t.return}}function Vh(e,t,i){var s=Ft(),h=Sa(),p=Ql(),T=Ta(),_=i.flags;switch(i.tag){case 0:case 11:case 15:jl(e,i),_&4&&c0(i,ii|Pi);break;case 1:if(jl(e,i),_&4)if(e=i.stateNode,t===null)i.type.defaultProps||"ref"in i.memoizedProps||km||(e.props!==i.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ue(i)||"instance"),e.state!==i.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ue(i)||"instance")),Ui(i)?(cn(),ye(i,yC,i,e),pl()):ye(i,yC,i,e);else{var R=Di(i.type,t.memoizedProps);t=t.memoizedState,i.type.defaultProps||"ref"in i.memoizedProps||km||(e.props!==i.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ue(i)||"instance"),e.state!==i.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ue(i)||"instance")),Ui(i)?(cn(),ye(i,eA,i,e,R,t,e.__reactInternalSnapshotBeforeUpdate),pl()):ye(i,eA,i,e,R,t,e.__reactInternalSnapshotBeforeUpdate)}_&64&&vg(i),_&512&&ss(i,i.return);break;case 3:if(t=Si(),jl(e,i),_&64&&(_=i.updateQueue,_!==null)){if(R=null,i.child!==null)switch(i.child.tag){case 27:case 5:R=i.child.stateNode;break;case 1:R=i.child.stateNode}try{ye(i,rr,_,R)}catch(B){We(i,i.return,B)}}e.effectDuration+=ir(t);break;case 27:t===null&&_&4&&Eg(i);case 26:case 5:if(jl(e,i),t===null){if(_&4)su(i);else if(_&64){e=i.type,t=i.memoizedProps,R=i.stateNode;try{ye(i,R0,R,e,t,i)}catch(B){We(i,i.return,B)}}}_&512&&ss(i,i.return);break;case 12:if(_&4){_=Si(),jl(e,i),e=i.stateNode,e.effectDuration+=ml(_);try{ye(i,Sg,i,t,ac,e.effectDuration)}catch(B){We(i,i.return,B)}}else jl(e,i);break;case 31:jl(e,i),_&4&&bg(e,i);break;case 13:jl(e,i),_&4&&Mg(e,i),_&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(_=Eo.bind(null,i),q0(e,_))));break;case 22:if(_=i.memoizedState!==null||ws,!_){t=t!==null&&t.memoizedState!==null||Jn,R=ws;var x=Jn;ws=_,(Jn=t)&&!x?(Ja(e,i,(i.subtreeFlags&8772)!==0),(i.mode&lt)!==Ge&&0<=ze&&0<=Le&&.05<Le-ze&&$d(i,ze,Le)):jl(e,i),ws=R,Jn=x}break;case 30:break;default:jl(e,i)}(i.mode&lt)!==Ge&&0<=ze&&0<=Le&&((Cn||.05<hn)&&Ha(i,ze,Le,hn,un),i.alternate===null&&i.return!==null&&i.return.alternate!==null&&.05<Le-ze&&(_g(i.return.alternate,i.return)||ga(i,ze,Le,"Mount"))),Ln(s),Xl(h),un=p,Cn=T}function Sn(e){var t=e.alternate;t!==null&&(e.alternate=null,Sn(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&pp(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Qt(e,t,i){for(i=i.child;i!==null;)Ag(e,t,i),i=i.sibling}function Ag(e,t,i){if(Un&&typeof Un.onCommitFiberUnmount=="function")try{Un.onCommitFiberUnmount(Cs,i)}catch(x){Gi||(Gi=!0,console.error("React instrumentation encountered an error: %o",x))}var s=Ft(),h=Sa(),p=Ql(),T=Ta();switch(i.tag){case 26:Jn||_a(i,t),Qt(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(e=i.stateNode,e.parentNode.removeChild(e));break;case 27:Jn||_a(i,t);var _=Kn,R=Da;pu(i.type)&&(Kn=i.stateNode,Da=!1),Qt(e,t,i),ye(i,Mo,i.stateNode),Kn=_,Da=R;break;case 5:Jn||_a(i,t);case 6:if(_=Kn,R=Da,Kn=null,Qt(e,t,i),Kn=_,Da=R,Kn!==null)if(Da)try{ye(i,U0,Kn,i.stateNode)}catch(x){We(i,t,x)}else try{ye(i,x0,Kn,i.stateNode)}catch(x){We(i,t,x)}break;case 18:Kn!==null&&(Da?(e=Kn,hs(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),ys(e)):hs(Kn,i.stateNode));break;case 4:_=Kn,R=Da,Kn=i.stateNode.containerInfo,Da=!0,Qt(e,t,i),Kn=_,Da=R;break;case 0:case 11:case 14:case 15:uu(ra,i,t),Jn||Uh(i,t,ii),Qt(e,t,i);break;case 1:Jn||(_a(i,t),_=i.stateNode,typeof _.componentWillUnmount=="function"&&zh(i,t,_)),Qt(e,t,i);break;case 21:Qt(e,t,i);break;case 22:Jn=(_=Jn)||i.memoizedState!==null,Qt(e,t,i),Jn=_;break;default:Qt(e,t,i)}(i.mode&lt)!==Ge&&0<=ze&&0<=Le&&(Cn||.05<hn)&&Ha(i,ze,Le,hn,un),Ln(s),Xl(h),un=p,Cn=T}function bg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ye(t,tm,e)}catch(i){We(t,t.return,i)}}}function Mg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ye(t,Jg,e)}catch(i){We(t,t.return,i)}}function m0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new qA),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new qA),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function ru(e,t){var i=m0(e);t.forEach(function(s){if(!i.has(s)){if(i.add(s),Yi)if(Xm!==null&&Qm!==null)Dr(Qm,Xm);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var h=fs.bind(null,e,s);s.then(h,h)}})}function Tl(e,t){var i=t.deletions;if(i!==null)for(var s=0;s<i.length;s++){var h=e,p=t,T=i[s],_=Ft(),R=p;e:for(;R!==null;){switch(R.tag){case 27:if(pu(R.type)){Kn=R.stateNode,Da=!1;break e}break;case 5:Kn=R.stateNode,Da=!1;break e;case 3:case 4:Kn=R.stateNode.containerInfo,Da=!0;break e}R=R.return}if(Kn===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Ag(h,p,T),Kn=null,Da=!1,(T.mode&lt)!==Ge&&0<=ze&&0<=Le&&.05<Le-ze&&ga(T,ze,Le,"Unmount"),Ln(_),h=T,p=h.alternate,p!==null&&(p.return=null),h.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)vf(t,e),t=t.sibling}function vf(e,t){var i=Ft(),s=Sa(),h=Ql(),p=Ta(),T=e.alternate,_=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Tl(t,e),Cl(e),_&4&&(uu(ra|Pi,e,e.return),To(ra|Pi,e),Uh(e,e.return,ii|Pi));break;case 1:if(Tl(t,e),Cl(e),_&512&&(Jn||T===null||_a(T,T.return)),_&64&&ws&&(_=e.updateQueue,_!==null&&(T=_.callbacks,T!==null))){var R=_.shared.hiddenCallbacks;_.shared.hiddenCallbacks=R===null?T:R.concat(T)}break;case 26:if(R=zo,Tl(t,e),Cl(e),_&512&&(Jn||T===null||_a(T,T.return)),_&4){var x=T!==null?T.memoizedState:null;if(_=e.memoizedState,T===null)if(_===null)if(e.stateNode===null){e:{_=e.type,T=e.memoizedProps,R=R.ownerDocument||R;t:switch(_){case"title":x=R.getElementsByTagName("title")[0],(!x||x[$r]||x[Wt]||x.namespaceURI===je||x.hasAttribute("itemprop"))&&(x=R.createElement(_),R.head.insertBefore(x,R.querySelector("head > title"))),Pt(x,_,T),x[Wt]=e,pn(x),_=x;break e;case"link":var B=Br("link","href",R).get(_+(T.href||""));if(B){for(var G=0;G<B.length;G++)if(x=B[G],x.getAttribute("href")===(T.href==null||T.href===""?null:T.href)&&x.getAttribute("rel")===(T.rel==null?null:T.rel)&&x.getAttribute("title")===(T.title==null?null:T.title)&&x.getAttribute("crossorigin")===(T.crossOrigin==null?null:T.crossOrigin)){B.splice(G,1);break t}}x=R.createElement(_),Pt(x,_,T),R.head.appendChild(x);break;case"meta":if(B=Br("meta","content",R).get(_+(T.content||""))){for(G=0;G<B.length;G++)if(x=B[G],Nt(T.content,"content"),x.getAttribute("content")===(T.content==null?null:""+T.content)&&x.getAttribute("name")===(T.name==null?null:T.name)&&x.getAttribute("property")===(T.property==null?null:T.property)&&x.getAttribute("http-equiv")===(T.httpEquiv==null?null:T.httpEquiv)&&x.getAttribute("charset")===(T.charSet==null?null:T.charSet)){B.splice(G,1);break t}}x=R.createElement(_),Pt(x,_,T),R.head.appendChild(x);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+_+'". This is a bug in React.')}x[Wt]=e,pn(x),_=x}e.stateNode=_}else Z0(R,e.type,e.stateNode);else e.stateNode=am(R,_,e.memoizedProps);else x!==_?(x===null?T.stateNode!==null&&(T=T.stateNode,T.parentNode.removeChild(T)):x.count--,_===null?Z0(R,e.type,e.stateNode):am(R,_,e.memoizedProps)):_===null&&e.stateNode!==null&&Oh(e,e.memoizedProps,T.memoizedProps)}break;case 27:Tl(t,e),Cl(e),_&512&&(Jn||T===null||_a(T,T.return)),T!==null&&_&4&&Oh(e,e.memoizedProps,T.memoizedProps);break;case 5:if(Tl(t,e),Cl(e),_&512&&(Jn||T===null||_a(T,T.return)),e.flags&32){R=e.stateNode;try{ye(e,em,R)}catch(pe){We(e,e.return,pe)}}_&4&&e.stateNode!=null&&(R=e.memoizedProps,Oh(e,R,T!==null?T.memoizedProps:R)),_&1024&&(UC=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Tl(t,e),Cl(e),_&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");_=e.memoizedProps,T=T!==null?T.memoizedProps:_,R=e.stateNode;try{ye(e,GT,R,T,_)}catch(pe){We(e,e.return,pe)}}break;case 3:if(R=Si(),$S=null,x=zo,zo=nm(t.containerInfo),Tl(t,e),zo=x,Cl(e),_&4&&T!==null&&T.memoizedState.isDehydrated)try{ye(e,Qg,t.containerInfo)}catch(pe){We(e,e.return,pe)}UC&&(UC=!1,p0(e)),t.effectDuration+=ir(R);break;case 4:_=zo,zo=nm(e.stateNode.containerInfo),Tl(t,e),Cl(e),zo=_;break;case 12:_=Si(),Tl(t,e),Cl(e),e.stateNode.effectDuration+=ml(_);break;case 31:Tl(t,e),Cl(e),_&4&&(_=e.updateQueue,_!==null&&(e.updateQueue=null,ru(e,_)));break;case 13:Tl(t,e),Cl(e),e.child.flags&8192&&e.memoizedState!==null!=(T!==null&&T.memoizedState!==null)&&(VS=In()),_&4&&(_=e.updateQueue,_!==null&&(e.updateQueue=null,ru(e,_)));break;case 22:R=e.memoizedState!==null;var w=T!==null&&T.memoizedState!==null,J=ws,ce=Jn;if(ws=J||R,Jn=ce||w,Tl(t,e),Jn=ce,ws=J,w&&!R&&!J&&!ce&&(e.mode&lt)!==Ge&&0<=ze&&0<=Le&&.05<Le-ze&&$d(e,ze,Le),Cl(e),_&8192)e:for(t=e.stateNode,t._visibility=R?t._visibility&~Dy:t._visibility|Dy,!R||T===null||w||ws||Jn||(cu(e),(e.mode&lt)!==Ge&&0<=ze&&0<=Le&&.05<Le-ze&&ga(e,ze,Le,"Disconnect")),T=null,t=e;;){if(t.tag===5||t.tag===26){if(T===null){w=T=t;try{x=w.stateNode,R?ye(w,z0,x):ye(w,V0,w.stateNode,w.memoizedProps)}catch(pe){We(w,w.return,pe)}}}else if(t.tag===6){if(T===null){w=t;try{B=w.stateNode,R?ye(w,O0,B):ye(w,L0,B,w.memoizedProps)}catch(pe){We(w,w.return,pe)}}}else if(t.tag===18){if(T===null){w=t;try{G=w.stateNode,R?ye(w,N0,G):ye(w,w0,w.stateNode)}catch(pe){We(w,w.return,pe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;T===t&&(T=null),t=t.return}T===t&&(T=null),t.sibling.return=t.return,t=t.sibling}_&4&&(_=e.updateQueue,_!==null&&(T=_.retryQueue,T!==null&&(_.retryQueue=null,ru(e,T))));break;case 19:Tl(t,e),Cl(e),_&4&&(_=e.updateQueue,_!==null&&(e.updateQueue=null,ru(e,_)));break;case 30:break;case 21:break;default:Tl(t,e),Cl(e)}(e.mode&lt)!==Ge&&0<=ze&&0<=Le&&((Cn||.05<hn)&&Ha(e,ze,Le,hn,un),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<Le-ze&&(_g(e.return.alternate,e.return)||ga(e,ze,Le,"Mount"))),Ln(i),Xl(s),un=h,Cn=p}function Cl(e){var t=e.flags;if(t&2){try{ye(e,Cg,e)}catch(i){We(e,e.return,i)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function p0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;p0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function jl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Vh(e,t.alternate,t),t=t.sibling}function Lh(e){var t=Ft(),i=Sa(),s=Ql(),h=Ta();switch(e.tag){case 0:case 11:case 14:case 15:Uh(e,e.return,ii),cu(e);break;case 1:_a(e,e.return);var p=e.stateNode;typeof p.componentWillUnmount=="function"&&zh(e,e.return,p),cu(e);break;case 27:ye(e,Mo,e.stateNode);case 26:case 5:_a(e,e.return),cu(e);break;case 22:e.memoizedState===null&&cu(e);break;case 30:cu(e);break;default:cu(e)}(e.mode&lt)!==Ge&&0<=ze&&0<=Le&&(Cn||.05<hn)&&Ha(e,ze,Le,hn,un),Ln(t),Xl(i),un=s,Cn=h}function cu(e){for(e=e.child;e!==null;)Lh(e),e=e.sibling}function Rg(e,t,i,s){var h=Ft(),p=Sa(),T=Ql(),_=Ta(),R=i.flags;switch(i.tag){case 0:case 11:case 15:Ja(e,i,s),c0(i,ii);break;case 1:if(Ja(e,i,s),t=i.stateNode,typeof t.componentDidMount=="function"&&ye(i,yC,i,t),t=i.updateQueue,t!==null){e=i.stateNode;try{ye(i,Kp,t,e)}catch(x){We(i,i.return,x)}}s&&R&64&&vg(i),ss(i,i.return);break;case 27:Eg(i);case 26:case 5:Ja(e,i,s),s&&t===null&&R&4&&su(i),ss(i,i.return);break;case 12:if(s&&R&4){R=Si(),Ja(e,i,s),s=i.stateNode,s.effectDuration+=ml(R);try{ye(i,Sg,i,t,ac,s.effectDuration)}catch(x){We(i,i.return,x)}}else Ja(e,i,s);break;case 31:Ja(e,i,s),s&&R&4&&bg(e,i);break;case 13:Ja(e,i,s),s&&R&4&&Mg(e,i);break;case 22:i.memoizedState===null&&Ja(e,i,s),ss(i,i.return);break;case 30:break;default:Ja(e,i,s)}(i.mode&lt)!==Ge&&0<=ze&&0<=Le&&(Cn||.05<hn)&&Ha(i,ze,Le,hn,un),Ln(h),Xl(p),un=T,Cn=_}function Ja(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Rg(e,t.alternate,t,i),t=t.sibling}function Sf(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&Xu(e),i!=null&&kc(i))}function Tf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Xu(t),e!=null&&kc(e))}function ea(e,t,i,s,h){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var p=t.sibling;Dg(e,t,i,s,p!==null?p.actualStartTime:h),t=p}}function Dg(e,t,i,s,h){var p=Ft(),T=Sa(),_=Ql(),R=Ta(),x=ec,B=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&lt)!==Ge&&0<t.actualStartTime&&(t.flags&1)!==0&&Pd(t,t.actualStartTime,h,tl,i),ea(e,t,i,s,h),B&2048&&pf(t,ca|Pi);break;case 1:(t.mode&lt)!==Ge&&0<t.actualStartTime&&((t.flags&128)!==0?zp(t,t.actualStartTime,h,[]):(t.flags&1)!==0&&Pd(t,t.actualStartTime,h,tl,i)),ea(e,t,i,s,h);break;case 3:var G=Si(),w=tl;tl=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,ea(e,t,i,s,h),tl=w,B&2048&&(i=null,t.alternate!==null&&(i=t.alternate.memoizedState.cache),s=t.memoizedState.cache,s!==i&&(Xu(s),i!=null&&kc(i))),e.passiveEffectDuration+=ir(G);break;case 12:if(B&2048){B=Si(),ea(e,t,i,s,h),e=t.stateNode,e.passiveEffectDuration+=ml(B);try{ye(t,h0,t,t.alternate,ac,e.passiveEffectDuration)}catch(J){We(t,t.return,J)}}else ea(e,t,i,s,h);break;case 31:B=tl,G=t.alternate!==null?t.alternate.memoizedState:null,w=t.memoizedState,G!==null&&w===null?(w=t.deletions,w!==null&&0<w.length&&w[0].tag===18?(tl=!1,G=G.hydrationErrors,G!==null&&zp(t,t.actualStartTime,h,G)):tl=!0):tl=!1,ea(e,t,i,s,h),tl=B;break;case 13:B=tl,G=t.alternate!==null?t.alternate.memoizedState:null,w=t.memoizedState,G===null||G.dehydrated===null||w!==null&&w.dehydrated!==null?tl=!1:(w=t.deletions,w!==null&&0<w.length&&w[0].tag===18?(tl=!1,G=G.hydrationErrors,G!==null&&zp(t,t.actualStartTime,h,G)):tl=!0),ea(e,t,i,s,h),tl=B;break;case 23:break;case 22:w=t.stateNode,G=t.alternate,t.memoizedState!==null?w._visibility&As?ea(e,t,i,s,h):rs(e,t,i,s,h):w._visibility&As?ea(e,t,i,s,h):(w._visibility|=As,fu(e,t,i,s,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),h),(t.mode&lt)===Ge||tl||(e=t.actualStartTime,0<=e&&.05<h-e&&$d(t,e,h),0<=ze&&0<=Le&&.05<Le-ze&&$d(t,ze,Le))),B&2048&&Sf(G,t);break;case 24:ea(e,t,i,s,h),B&2048&&Tf(t.alternate,t);break;default:ea(e,t,i,s,h)}(t.mode&lt)!==Ge&&((e=!tl&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(i=t.actualStartTime,0<=i&&.05<h-i&&ga(t,i,h,"Mount")),0<=ze&&0<=Le&&((Cn||.05<hn)&&Ha(t,ze,Le,hn,un),e&&.05<Le-ze&&ga(t,ze,Le,"Mount"))),Ln(p),Xl(T),un=_,Cn=R,ec=x}function fu(e,t,i,s,h,p){for(h=h&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var T=t.sibling;Cf(e,t,i,s,h,T!==null?T.actualStartTime:p),t=T}}function Cf(e,t,i,s,h,p){var T=Ft(),_=Sa(),R=Ql(),x=Ta(),B=ec;h&&(t.mode&lt)!==Ge&&0<t.actualStartTime&&(t.flags&1)!==0&&Pd(t,t.actualStartTime,p,tl,i);var G=t.flags;switch(t.tag){case 0:case 11:case 15:fu(e,t,i,s,h,p),pf(t,ca);break;case 23:break;case 22:var w=t.stateNode;t.memoizedState!==null?w._visibility&As?fu(e,t,i,s,h,p):rs(e,t,i,s,p):(w._visibility|=As,fu(e,t,i,s,h,p)),h&&G&2048&&Sf(t.alternate,t);break;case 24:fu(e,t,i,s,h,p),h&&G&2048&&Tf(t.alternate,t);break;default:fu(e,t,i,s,h,p)}(t.mode&lt)!==Ge&&0<=ze&&0<=Le&&(Cn||.05<hn)&&Ha(t,ze,Le,hn,un),Ln(T),Xl(_),un=R,Cn=x,ec=B}function rs(e,t,i,s,h){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var p=t.child;p!==null;){t=p.sibling;var T=e,_=i,R=s,x=t!==null?t.actualStartTime:h,B=ec;(p.mode&lt)!==Ge&&0<p.actualStartTime&&(p.flags&1)!==0&&Pd(p,p.actualStartTime,x,tl,_);var G=p.flags;switch(p.tag){case 22:rs(T,p,_,R,x),G&2048&&Sf(p.alternate,p);break;case 24:rs(T,p,_,R,x),G&2048&&Tf(p.alternate,p);break;default:rs(T,p,_,R,x)}ec=B,p=t}}function cs(e,t,i){if(e.subtreeFlags&Ky)for(e=e.child;e!==null;)Hh(e,t,i),e=e.sibling}function Hh(e,t,i){switch(e.tag){case 26:cs(e,t,i),e.flags&Ky&&e.memoizedState!==null&&Wg(i,zo,e.memoizedState,e.memoizedProps);break;case 5:cs(e,t,i);break;case 3:case 4:var s=zo;zo=nm(e.stateNode.containerInfo),cs(e,t,i),zo=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Ky,Ky=16777216,cs(e,t,i),Ky=s):cs(e,t,i));break;default:cs(e,t,i)}}function xg(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ta(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var s=t[i],h=Ft();rl=s,Ni(s,e),(s.mode&lt)!==Ge&&0<=ze&&0<=Le&&.05<Le-ze&&ga(s,ze,Le,"Unmount"),Ln(h)}xg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bh(e),e=e.sibling}function Bh(e){var t=Ft(),i=Sa(),s=Ql(),h=Ta();switch(e.tag){case 0:case 11:case 15:ta(e),e.flags&2048&&Nh(e,e.return,ca|Pi);break;case 3:var p=Si();ta(e),e.stateNode.passiveEffectDuration+=ir(p);break;case 12:p=Si(),ta(e),e.stateNode.passiveEffectDuration+=ml(p);break;case 22:p=e.stateNode,e.memoizedState!==null&&p._visibility&As&&(e.return===null||e.return.tag!==13)?(p._visibility&=~As,qh(e),(e.mode&lt)!==Ge&&0<=ze&&0<=Le&&.05<Le-ze&&ga(e,ze,Le,"Disconnect")):ta(e);break;default:ta(e)}(e.mode&lt)!==Ge&&0<=ze&&0<=Le&&(Cn||.05<hn)&&Ha(e,ze,Le,hn,un),Ln(t),Xl(i),Cn=h,un=s}function qh(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var s=t[i],h=Ft();rl=s,Ni(s,e),(s.mode&lt)!==Ge&&0<=ze&&0<=Le&&.05<Le-ze&&ga(s,ze,Le,"Unmount"),Ln(h)}xg(e)}for(e=e.child;e!==null;)Ug(e),e=e.sibling}function Ug(e){var t=Ft(),i=Sa(),s=Ql(),h=Ta();switch(e.tag){case 0:case 11:case 15:Nh(e,e.return,ca),qh(e);break;case 22:var p=e.stateNode;p._visibility&As&&(p._visibility&=~As,qh(e));break;default:qh(e)}(e.mode&lt)!==Ge&&0<=ze&&0<=Le&&(Cn||.05<hn)&&Ha(e,ze,Le,hn,un),Ln(t),Xl(i),Cn=h,un=s}function Ni(e,t){for(;rl!==null;){var i=rl,s=i,h=t,p=Ft(),T=Sa(),_=Ql(),R=Ta();switch(s.tag){case 0:case 11:case 15:Nh(s,h,ca);break;case 23:case 22:s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool,h!=null&&Xu(h));break;case 24:kc(s.memoizedState.cache)}if((s.mode&lt)!==Ge&&0<=ze&&0<=Le&&(Cn||.05<hn)&&Ha(s,ze,Le,hn,un),Ln(p),Xl(T),Cn=R,un=_,s=i.child,s!==null)s.return=i,rl=s;else e:for(i=e;rl!==null;){if(s=rl,p=s.sibling,T=s.return,Sn(s),s===i){rl=null;break e}if(p!==null){p.return=T,rl=p;break e}rl=T}}}function Ng(){U4.forEach(function(e){return e()})}function zg(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||$.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function il(e){if((St&nl)!==cl&&it!==0)return it&-it;var t=$.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Ig()):Ov()}function _r(){if(Ua===0)if((it&536870912)===0||dt){var e=kf;kf<<=1,(kf&3932160)===0&&(kf=262144),Ua=e}else Ua=536870912;return e=ai.current,e!==null&&(e.flags|=32),Ua}function Ye(e,t,i){if(Fm&&console.error("useInsertionEffect must not schedule updates."),YC&&(qS=!0),(e===kt&&(Ht===od||Ht===ud)||e.cancelPendingCommit!==null)&&(zi(e,0),Aa(e,it,Ua,!1)),Bo(e,i),(St&nl)!==cl&&e===kt){if(qi)switch(t.tag){case 0:case 11:case 15:e=ut&&ue(ut)||"Unknown",eb.has(e)||(eb.add(e),t=ue(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:jA||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),jA=!0)}}else Yi&&xl(e,t,i),bf(t),e===kt&&((St&nl)===cl&&(dc|=i),mn===rc&&Aa(e,it,Ua,!1)),Ol(e)}function g0(e,t,i){if((St&(nl|oi))!==cl)throw Error("Should not already be working.");if(it!==0&&ut!==null){var s=ut,h=In();switch(Q1){case Py:case od:var p=wy;jt&&((s=s._debugTask)?s.run(console.timeStamp.bind(console,"Suspended",p,h,Zi,void 0,"primary-light")):console.timeStamp("Suspended",p,h,Zi,void 0,"primary-light"));break;case ud:p=wy,jt&&((s=s._debugTask)?s.run(console.timeStamp.bind(console,"Action",p,h,Zi,void 0,"primary-light")):console.timeStamp("Action",p,h,Zi,void 0,"primary-light"));break;default:jt&&(s=h-wy,3>s||console.timeStamp("Blocked",wy,h,Zi,void 0,5>s?"primary-light":10>s?"primary":100>s?"primary-dark":"error"))}}p=(i=!i&&(t&127)===0&&(t&e.expiredLanes)===0||$n(e,t))?Co(e,t):Mr(e,t,!0);var T=i;do{if(p===Vs){Jm&&!i&&Aa(e,t,0,!1),t=Ht,wy=kn(),Q1=t;break}else{if(s=In(),h=e.current.alternate,T&&!v0(h)){La(t),h=sl,p=s,!jt||p<=h||(bn?bn.run(console.timeStamp.bind(console,"Teared Render",h,p,gt,mt,"error")):console.timeStamp("Teared Render",h,p,gt,mt,"error")),du(t,s),p=Mr(e,t,!1),T=!1;continue}if(p===id){if(T=t,e.errorRecoveryDisabledLanes&T)var _=0;else _=e.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){La(t),Op(sl,s,t,bn),du(t,s),t=_;e:{s=e,p=T,T=jy;var R=s.current.memoizedState.isDehydrated;if(R&&(zi(s,_).flags|=256),_=Mr(s,_,!1),_!==id){if(OC&&!R){s.errorRecoveryDisabledLanes|=p,dc|=p,p=rc;break e}s=fa,fa=T,s!==null&&(fa===null?fa=s:fa.push.apply(fa,s))}p=_}if(T=!1,p!==id)continue;s=In()}}if(p===$y){La(t),Op(sl,s,t,bn),du(t,s),zi(e,0),Aa(e,t,0,!0);break}e:{switch(i=e,p){case Vs:case $y:throw Error("Root did not complete. This is a bug in React.");case rc:if((t&4194048)!==t)break;case NS:La(t),Qv(sl,s,t,bn),du(t,s),h=t,(h&127)!==0?gS=s:(h&4194048)!==0&&(yS=s),Aa(i,t,Ua,!cc);break e;case id:fa=null;break;case US:case GA:break;default:throw Error("Unknown root exit status.")}if($.actQueue!==null)Yt(i,h,t,fa,ev,wS,Ua,dc,sd,p,null,null,sl,s);else{if((t&62914560)===t&&(T=VS+ZA-In(),10<T)){if(Aa(i,t,Ua,!cc),Nd(i,0,!0)!==0)break e;Oo=t,i.timeoutHandle=sb(y0.bind(null,i,h,fa,ev,wS,t,Ua,dc,sd,cc,p,"Throttled",sl,s),T);break e}y0(i,h,fa,ev,wS,t,Ua,dc,sd,cc,p,null,sl,s)}}}break}while(!0);Ol(e)}function y0(e,t,i,s,h,p,T,_,R,x,B,G,w,J){e.timeoutHandle=hd;var ce=t.subtreeFlags,pe=null;if((ce&8192||(ce&16785408)===16785408)&&(pe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pa},Hh(t,p,pe),ce=(p&62914560)===p?VS-In():(p&4194048)===p?IA-In():0,ce=im(pe,ce),ce!==null)){Oo=p,e.cancelPendingCommit=ce(Yt.bind(null,e,t,p,i,s,h,T,_,R,B,pe,pe.waitingForViewTransition?"Waiting for the previous Animation":0<pe.count?0<pe.imgCount?"Suspended on CSS and Images":"Suspended on CSS":pe.imgCount===1?"Suspended on an Image":0<pe.imgCount?"Suspended on Images":null,w,J)),Aa(e,p,T,!x);return}Yt(e,t,p,i,s,h,T,_,R,B,pe,G,w,J)}function v0(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var s=0;s<i.length;s++){var h=i[s],p=h.getSnapshot;h=h.value;try{if(!ua(p(),h))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Aa(e,t,i,s){t&=~wC,t&=~dc,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var h=t;0<h;){var p=31-jn(h),T=1<<p;s[p]=-1,h&=~T}i!==0&&mp(e,i,t)}function na(){return(St&(nl|oi))===cl?(wi(0),!1):!0}function Gh(){if(ut!==null){if(Ht===xa)var e=ut.return;else e=ut,lr(),Po(e),Bm=null,Zy=0,e=ut;for(;e!==null;)yg(e.alternate,e),e=e.return;ut=null}}function du(e,t){(e&127)!==0&&($f=t),(e&4194048)!==0&&(xs=t),(e&62914560)!==0&&(k1=t),(e&2080374784)!==0&&(X1=t)}function zi(e,t){jt&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",mt,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",mt,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",mt,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",mt,"primary-light"));var i=sl;if(sl=kn(),it!==0&&0<i){if(La(it),mn===US||mn===rc)Qv(i,sl,t,bn);else{var s=sl,h=bn;if(jt&&!(s<=i)){var p=(t&738197653)===t?"tertiary-dark":"primary-dark",T=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";h?h.run(console.timeStamp.bind(console,T,i,s,gt,mt,p)):console.timeStamp(T,i,s,gt,mt,p)}}du(it,sl)}if(i=bn,bn=null,(t&127)!==0){bn=Ny,h=0<=_u&&_u<$f?$f:_u,s=0<=Pf&&Pf<$f?$f:Pf,p=0<=s?s:0<=h?h:sl,0<=gS?(La(2),Jv(gS,p,t,i)):vS&127,i=h;var _=s,R=zy,x=0<Vm,B=ic===Uy,G=ic===pS;if(h=sl,s=Ny,p=dC,T=hC,jt){if(gt="Blocking",0<i?i>h&&(i=h):i=h,0<_?_>i&&(_=i):_=i,R!==null&&i>_){var w=x?"secondary-light":"warning";s?s.run(console.timeStamp.bind(console,x?"Consecutive":"Event: "+R,_,i,gt,mt,w)):console.timeStamp(x?"Consecutive":"Event: "+R,_,i,gt,mt,w)}h>i&&(_=B?"error":(t&738197653)===t?"tertiary-light":"primary-light",B=G?"Promise Resolved":B?"Cascading Update":5<h-i?"Update Blocked":"Update",G=[],T!=null&&G.push(["Component name",T]),p!=null&&G.push(["Method name",p]),i={start:i,end:h,detail:{devtools:{properties:G,track:gt,trackGroup:mt,color:_}}},s?s.run(performance.measure.bind(performance,B,i)):performance.measure(B,i))}_u=-1.1,ic=0,hC=dC=null,gS=-1.1,Vm=Pf,Pf=-1.1,$f=kn()}if((t&4194048)!==0&&(bn=Oy,h=0<=Us&&Us<xs?xs:Us,i=0<=Fi&&Fi<xs?xs:Fi,s=0<=oc&&oc<xs?xs:oc,p=0<=s?s:0<=i?i:sl,0<=yS?(La(256),Jv(yS,p,t,bn)):vS&4194048,G=s,_=Wf,R=0<uc,x=mC===pS,p=sl,s=Oy,T=I1,B=Z1,jt&&(gt="Transition",0<i?i>p&&(i=p):i=p,0<h?h>i&&(h=i):h=i,0<G?G>h&&(G=h):G=h,h>G&&_!==null&&(w=R?"secondary-light":"warning",s?s.run(console.timeStamp.bind(console,R?"Consecutive":"Event: "+_,G,h,gt,mt,w)):console.timeStamp(R?"Consecutive":"Event: "+_,G,h,gt,mt,w)),i>h&&(s?s.run(console.timeStamp.bind(console,"Action",h,i,gt,mt,"primary-dark")):console.timeStamp("Action",h,i,gt,mt,"primary-dark")),p>i&&(h=x?"Promise Resolved":5<p-i?"Update Blocked":"Update",G=[],B!=null&&G.push(["Component name",B]),T!=null&&G.push(["Method name",T]),i={start:i,end:p,detail:{devtools:{properties:G,track:gt,trackGroup:mt,color:"primary-light"}}},s?s.run(performance.measure.bind(performance,h,i)):performance.measure(h,i))),Fi=Us=-1.1,mC=0,yS=-1.1,uc=oc,oc=-1.1,xs=kn()),(t&62914560)!==0&&(vS&62914560)!==0&&(La(4194304),wp(k1,sl)),(t&2080374784)!==0&&(vS&2080374784)!==0&&(La(268435456),wp(X1,sl)),i=e.timeoutHandle,i!==hd&&(e.timeoutHandle=hd,Z4(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Oo=0,Gh(),kt=e,ut=i=yi(e.current,null),it=t,Ht=xa,ui=null,cc=!1,Jm=$n(e,t),OC=!1,mn=Vs,sd=Ua=wC=dc=fc=0,fa=jy=null,wS=!1,(t&8)!==0&&(t|=t&32),s=e.entangledLanes,s!==0)for(e=e.entanglements,s&=t;0<s;)h=31-jn(s),p=1<<h,t|=e[h],s&=~p;return bu=t,Wd(),e=L1(),1e3<e-V1&&($.recentlyCreatedOwnerStacks=0,V1=e),Uo.discardPendingWarnings(),i}function Ka(e,t){Xe=null,$.H=Jy,$.getCurrentStack=null,qi=!1,Hl=null,t===Hm||t===ES?(t=Ku(),Ht=Py):t===vC?(t=Ku(),Ht=YA):Ht=t===DC?zC:t!==null&&typeof t=="object"&&typeof t.then=="function"?Wy:zS,ui=t;var i=ut;i===null?(mn=$y,cf(e,hl(t,e.current))):i.mode&lt&&ih(i)}function Og(){var e=ai.current;return e===null?!0:(it&4194048)===it?$i===null:(it&62914560)===it||(it&536870912)!==0?e===$i:!1}function Yh(){var e=$.H;return $.H=Jy,e===null?Jy:e}function wg(){var e=$.A;return $.A=x4,e}function Ar(e){bn===null&&(bn=e._debugTask==null?null:e._debugTask)}function br(){mn=rc,cc||(it&4194048)!==it&&ai.current!==null||(Jm=!0),(fc&134217727)===0&&(dc&134217727)===0||kt===null||Aa(kt,it,Ua,!1)}function Mr(e,t,i){var s=St;St|=nl;var h=Yh(),p=wg();if(kt!==e||it!==t){if(Yi){var T=e.memoizedUpdaters;0<T.size&&(Dr(e,it),T.clear()),lo(e,t)}ev=null,zi(e,t)}t=!1,T=mn;e:do try{if(Ht!==xa&&ut!==null){var _=ut,R=ui;switch(Ht){case zC:Gh(),T=NS;break e;case Py:case od:case ud:case Wy:ai.current===null&&(t=!0);var x=Ht;if(Ht=xa,ui=null,Rr(e,_,R,x),i&&Jm){T=Vs;break e}break;default:x=Ht,Ht=xa,ui=null,Rr(e,_,R,x)}}Vg(),T=mn;break}catch(B){Ka(e,B)}while(!0);return t&&e.shellSuspendCounter++,lr(),St=s,$.H=h,$.A=p,ut===null&&(kt=null,it=0,Wd()),T}function Vg(){for(;ut!==null;)Ih(ut)}function Co(e,t){var i=St;St|=nl;var s=Yh(),h=wg();if(kt!==e||it!==t){if(Yi){var p=e.memoizedUpdaters;0<p.size&&(Dr(e,it),p.clear()),lo(e,t)}ev=null,LS=In()+kA,zi(e,t)}else Jm=$n(e,t);e:do try{if(Ht!==xa&&ut!==null)t:switch(t=ut,p=ui,Ht){case zS:Ht=xa,ui=null,Rr(e,t,p,zS);break;case od:case ud:if(Qp(p)){Ht=xa,ui=null,Lg(t);break}t=function(){Ht!==od&&Ht!==ud||kt!==e||(Ht=OS),Ol(e)},p.then(t,t);break e;case Py:Ht=OS;break e;case YA:Ht=NC;break e;case OS:Qp(p)?(Ht=xa,ui=null,Lg(t)):(Ht=xa,ui=null,Rr(e,t,p,OS));break;case NC:var T=null;switch(ut.tag){case 26:T=ut.memoizedState;case 5:case 27:var _=ut;if(T?rt(T):_.stateNode.complete){Ht=xa,ui=null;var R=_.sibling;if(R!==null)ut=R;else{var x=_.return;x!==null?(ut=x,Ef(x)):ut=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Ht=xa,ui=null,Rr(e,t,p,NC);break;case Wy:Ht=xa,ui=null,Rr(e,t,p,Wy);break;case zC:Gh(),mn=NS;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}$.actQueue!==null?Vg():_n();break}catch(B){Ka(e,B)}while(!0);return lr(),$.H=s,$.A=h,St=i,ut!==null?Vs:(kt=null,it=0,Wd(),mn)}function _n(){for(;ut!==null&&!gm();)Ih(ut)}function Ih(e){var t=e.alternate;(e.mode&lt)!==Ge?(ro(e),t=ye(e,mf,t,e,bu),ih(e)):t=ye(e,mf,t,e,bu),e.memoizedProps=e.pendingProps,t===null?Ef(e):ut=t}function Lg(e){var t=ye(e,Yn,e);e.memoizedProps=e.pendingProps,t===null?Ef(e):ut=t}function Yn(e){var t=e.alternate,i=(e.mode&lt)!==Ge;switch(i&&ro(e),e.tag){case 15:case 0:t=fg(t,e,e.pendingProps,e.type,void 0,it);break;case 11:t=fg(t,e,e.pendingProps,e.type.render,e.ref,it);break;case 5:Po(e);default:yg(t,e),e=ut=Bp(e,bu),t=mf(t,e,bu)}return i&&ih(e),t}function Rr(e,t,i,s){lr(),Po(t),Bm=null,Zy=0;var h=t.return;try{if(ag(e,h,t,i,it)){mn=$y,cf(e,hl(i,e.current)),ut=null;return}}catch(p){if(h!==null)throw ut=h,p;mn=$y,cf(e,hl(i,e.current)),ut=null;return}t.flags&32768?(dt||s===zS?e=!0:Jm||(it&536870912)!==0?e=!1:(cc=e=!0,(s===od||s===ud||s===Py||s===Wy)&&(s=ai.current,s!==null&&s.tag===13&&(s.flags|=16384))),Hg(t,e)):Ef(t)}function Ef(e){var t=e;do{if((t.flags&32768)!==0){Hg(t,cc);return}var i=t.alternate;if(e=t.return,ro(t),i=ye(t,gg,i,t,bu),(t.mode&lt)!==Ge&&Xc(t),i!==null){ut=i;return}if(t=t.sibling,t!==null){ut=t;return}ut=t=e}while(t!==null);mn===Vs&&(mn=GA)}function Hg(e,t){do{var i=r0(e.alternate,e);if(i!==null){i.flags&=32767,ut=i;return}if((e.mode&lt)!==Ge){Xc(e),i=e.actualDuration;for(var s=e.child;s!==null;)i+=s.actualDuration,s=s.sibling;e.actualDuration=i}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){ut=e;return}ut=e=i}while(e!==null);mn=NS,ut=null}function Yt(e,t,i,s,h,p,T,_,R,x,B,G,w,J){e.cancelPendingCommit=null;do _f();while(Fn!==mc);if(Uo.flushLegacyContextWarning(),Uo.flushPendingUnsafeLifecycleWarnings(),(St&(nl|oi))!==cl)throw Error("Should not already be working.");if(La(i),x===id?Op(w,J,i,bn):s!==null?VT(w,J,i,s,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,bn):wT(w,J,i,bn),t!==null){if(i===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(p=t.lanes|t.childLanes,p|=uC,UT(e,i,p,T,_,R),e===kt&&(ut=kt=null,it=0),Km=t,pc=e,Oo=i,HC=p,qC=h,$A=s,BC=J,PA=G,wo=HS,WA=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,xr(Ts,function(){return ov=window.event,wo===HS&&(wo=LC),Af(),null})):(e.callbackNode=null,e.callbackPriority=0),Ds=null,ac=kn(),G!==null&&LT(J,ac,G,bn),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=$.T,$.T=null,h=At.p,At.p=Nn,T=St,St|=oi;try{qT(e,t,i)}finally{St=T,At.p=h,$.T=s}}Fn=QA,El(),Oi(),Bg()}}function El(){if(Fn===QA){Fn=mc;var e=pc,t=Km,i=Oo,s=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||s){s=$.T,$.T=null;var h=At.p;At.p=Nn;var p=St;St|=oi;try{Xm=i,Qm=e,Qu(),vf(t,e),Qm=Xm=null,i=$C;var T=Fd(e.containerInfo),_=i.focusedElem,R=i.selectionRange;if(T!==_&&_&&_.ownerDocument&&Iv(_.ownerDocument.documentElement,_)){if(R!==null&&Up(_)){var x=R.start,B=R.end;if(B===void 0&&(B=x),"selectionStart"in _)_.selectionStart=x,_.selectionEnd=Math.min(B,_.value.length);else{var G=_.ownerDocument||document,w=G&&G.defaultView||window;if(w.getSelection){var J=w.getSelection(),ce=_.textContent.length,pe=Math.min(R.start,ce),Jt=R.end===void 0?pe:Math.min(R.end,ce);!J.extend&&pe>Jt&&(T=Jt,Jt=pe,pe=T);var pt=Yv(_,pe),O=Yv(_,Jt);if(pt&&O&&(J.rangeCount!==1||J.anchorNode!==pt.node||J.anchorOffset!==pt.offset||J.focusNode!==O.node||J.focusOffset!==O.offset)){var V=G.createRange();V.setStart(pt.node,pt.offset),J.removeAllRanges(),pe>Jt?(J.addRange(V),J.extend(O.node,O.offset)):(V.setEnd(O.node,O.offset),J.addRange(V))}}}}for(G=[],J=_;J=J.parentNode;)J.nodeType===1&&G.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<G.length;_++){var H=G[_];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}jS=!!FC,$C=FC=null}finally{St=p,At.p=h,$.T=s}}e.current=t,Fn=JA}}function Oi(){if(Fn===JA){Fn=mc;var e=WA;if(e!==null){ac=kn();var t=Rs,i=ac;!jt||i<=t||console.timeStamp(e,t,i,gt,mt,"secondary-light")}e=pc,t=Km,i=Oo;var s=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||s){s=$.T,$.T=null;var h=At.p;At.p=Nn;var p=St;St|=oi;try{Xm=i,Qm=e,Qu(),Vh(e,t.alternate,t),Qm=Xm=null}finally{St=p,At.p=h,$.T=s}}e=BC,t=PA,Rs=kn(),e=t===null?e:ac,t=Rs,i=wo===VC,s=bn,Ds!==null?Kv(e,t,Ds,!1,s):!jt||t<=e||(s?s.run(console.timeStamp.bind(console,i?"Commit Interrupted View Transition":"Commit",e,t,gt,mt,i?"error":"secondary-dark")):console.timeStamp(i?"Commit Interrupted View Transition":"Commit",e,t,gt,mt,i?"error":"secondary-dark")),Fn=KA}}function Bg(){if(Fn===FA||Fn===KA){if(Fn===FA){var e=Rs;Rs=kn();var t=Rs,i=wo===VC;!jt||t<=e||console.timeStamp(i?"Interrupted View Transition":"Starting Animation",e,t,gt,mt,i?" error":"secondary-light"),wo!==VC&&(wo=XA)}Fn=mc,ym(),e=pc;var s=Km;t=Oo,i=$A;var h=s.actualDuration!==0||(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0;h?Fn=BS:(Fn=mc,Km=pc=null,qg(e,e.pendingLanes),rd=0,nv=null);var p=e.pendingLanes;if(p===0&&(hc=null),h||Xh(e),p=fl(t),s=s.stateNode,Un&&typeof Un.onCommitFiberRoot=="function")try{var T=(s.current.flags&128)===128;switch(p){case Nn:var _=py;break;case el:_=vm;break;case ul:_=Ts;break;case Tu:_=Sm;break;default:_=Ts}Un.onCommitFiberRoot(Cs,s,_,T)}catch(G){Gi||(Gi=!0,console.error("React instrumentation encountered an error: %o",G))}if(Yi&&e.memoizedUpdaters.clear(),Ng(),i!==null){T=$.T,_=At.p,At.p=Nn,$.T=null;try{var R=e.onRecoverableError;for(s=0;s<i.length;s++){var x=i[s],B=S0(x.stack);ye(x.source,R,x.value,B)}}finally{$.T=T,At.p=_}}(Oo&3)!==0&&_f(),Ol(e),p=e.pendingLanes,(t&261930)!==0&&(p&42)!==0?(TS=!0,e===GC?tv++:(tv=0,GC=e)):tv=0,h||du(t,Rs),wi(0)}}function S0(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function qg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,kc(t)))}function _f(){return El(),Oi(),Bg(),Af()}function Af(){if(Fn!==BS)return!1;var e=pc,t=HC;HC=0;var i=fl(Oo),s=ul>i?ul:i;i=$.T;var h=At.p;try{At.p=s,$.T=null;var p=qC;qC=null,s=pc;var T=Oo;if(Fn=mc,Km=pc=null,Oo=0,(St&(nl|oi))!==cl)throw Error("Cannot flush passive effects while already rendering.");La(T),YC=!0,qS=!1;var _=0;if(Ds=null,_=In(),wo===XA)wp(Rs,_,E4);else{var R=Rs,x=_,B=wo===LC;!jt||x<=R||(bn?bn.run(console.timeStamp.bind(console,B?"Waiting for Paint":"Waiting",R,x,gt,mt,"secondary-light")):console.timeStamp(B?"Waiting for Paint":"Waiting",R,x,gt,mt,"secondary-light"))}R=St,St|=oi;var G=s.current;Qu(),Bh(G);var w=s.current;G=BC,Qu(),Dg(s,w,T,p,G),Xh(s),St=R;var J=In();if(w=_,G=bn,Ds!==null?Kv(w,J,Ds,!0,G):!jt||J<=w||(G?G.run(console.timeStamp.bind(console,"Remaining Effects",w,J,gt,mt,"secondary-dark")):console.timeStamp("Remaining Effects",w,J,gt,mt,"secondary-dark")),du(T,J),wi(0,!1),qS?s===nv?rd++:(rd=0,nv=s):rd=0,qS=YC=!1,Un&&typeof Un.onPostCommitFiberRoot=="function")try{Un.onPostCommitFiberRoot(Cs,s)}catch(pe){Gi||(Gi=!0,console.error("React instrumentation encountered an error: %o",pe))}var ce=s.current.stateNode;return ce.effectDuration=0,ce.passiveEffectDuration=0,!0}finally{At.p=h,$.T=i,qg(e,t)}}function _l(e,t,i){t=hl(i,t),e0(t),t=Ch(e.stateNode,t,2),e=Ci(e,t,2),e!==null&&(Bo(e,2),Ol(e))}function We(e,t,i){if(Fm=!1,e.tag===3)_l(e,e,i);else{for(;t!==null;){if(t.tag===3){_l(t,e,i);return}if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(hc===null||!hc.has(s))){e=hl(i,e),e0(e),i=Eh(2),s=Ci(t,i,2),s!==null&&(_h(i,s,t,e),Bo(s,2),Ol(s));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
199
+
200
+ Error message:
201
+
202
+ %s`,i)}}function Zh(e,t,i){var s=e.pingCache;if(s===null){s=e.pingCache=new N4;var h=new Set;s.set(t,h)}else h=s.get(t),h===void 0&&(h=new Set,s.set(t,h));h.has(i)||(OC=!0,h.add(i),s=zl.bind(null,e,t,i),Yi&&Dr(e,i),t.then(s,s))}function zl(e,t,i){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,(i&127)!==0?0>_u&&($f=_u=kn(),Ny=mS("Promise Resolved"),ic=pS):(i&4194048)!==0&&0>Fi&&(xs=Fi=kn(),Oy=mS("Promise Resolved"),mC=pS),zg()&&$.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
203
+
204
+ When testing, code that resolves suspended data should be wrapped into act(...):
205
+
206
+ act(() => {
207
+ /* finish loading suspended data */
208
+ });
209
+ /* assert on the output */
210
+
211
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),kt===e&&(it&i)===i&&(mn===rc||mn===US&&(it&62914560)===it&&In()-VS<ZA?(St&nl)===cl&&zi(e,0):wC|=i,sd===it&&(sd=0)),Ol(e)}function Gg(e,t){t===0&&(t=zd()),e=ll(e,t),e!==null&&(Bo(e,t),Ol(e))}function Eo(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),Gg(e,i)}function fs(e,t){var i=0;switch(e.tag){case 31:case 13:var s=e.stateNode,h=e.memoizedState;h!==null&&(i=h.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}s!==null&&s.delete(t),Gg(e,i)}function Fa(e,t,i){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var s=e,h=t,p=h.type===Ml;p=i||p,h.tag!==22?h.flags&67108864?p&&ye(h,kh,s,h):Fa(s,h,p):h.memoizedState===null&&(p&&h.flags&8192?ye(h,kh,s,h):h.subtreeFlags&67108864&&ye(h,Fa,s,h,p)),t=t.sibling}}function kh(e,t){qt(!0);try{Lh(t),Ug(t),Rg(e,t.alternate,t,!1),Cf(e,t,0,null,!1,0)}finally{qt(!1)}}function Xh(e){var t=!0;e.current.mode&(Bl|xo)||(t=!1),Fa(e,e.current,t)}function ba(e){if((St&nl)===cl){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=ue(e)||"ReactComponent",GS!==null){if(GS.has(t))return;GS.add(t)}else GS=new Set([t]);ye(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Dr(e,t){Yi&&e.memoizedUpdaters.forEach(function(i){xl(e,i,t)})}function xr(e,t){var i=$.actQueue;return i!==null?(i.push(t),w4):my(e,t)}function bf(e){zg()&&$.actQueue===null&&ye(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
212
+
213
+ When testing, code that causes React state updates should be wrapped into act(...):
214
+
215
+ act(() => {
216
+ /* fire events that update state */
217
+ });
218
+ /* assert on the output */
219
+
220
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,ue(e))})}function Ol(e){e!==$m&&e.next===null&&($m===null?YS=$m=e:$m=$m.next=e),IS=!0,$.actQueue!==null?ZC||(ZC=!0,C0()):IC||(IC=!0,C0())}function wi(e,t){if(!kC&&IS){kC=!0;do for(var i=!1,s=YS;s!==null;){if(e!==0){var h=s.pendingLanes;if(h===0)var p=0;else{var T=s.suspendedLanes,_=s.pingedLanes;p=(1<<31-jn(42|e)+1)-1,p&=h&~(T&~_),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(i=!0,Mf(s,p))}else p=it,p=Nd(s,s===kt?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==hd),(p&3)===0||$n(s,p)||(i=!0,Mf(s,p));s=s.next}while(i);kC=!1}}function T0(){ov=window.event,Qh()}function Qh(){IS=ZC=IC=!1;var e=0;gc!==0&&kg()&&(e=gc);for(var t=In(),i=null,s=YS;s!==null;){var h=s.next,p=Ur(s,t);p===0?(s.next=null,i===null?YS=h:i.next=h,h===null&&($m=i)):(i=s,(e!==0||(p&3)!==0)&&(IS=!0)),s=h}Fn!==mc&&Fn!==BS||wi(e),gc!==0&&(gc=0)}function Ur(e,t){for(var i=e.suspendedLanes,s=e.pingedLanes,h=e.expirationTimes,p=e.pendingLanes&-62914561;0<p;){var T=31-jn(p),_=1<<T,R=h[T];R===-1?((_&i)===0||(_&s)!==0)&&(h[T]=xT(_,t)):R<=t&&(e.expiredLanes|=_),p&=~_}if(t=kt,i=it,i=Nd(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==hd),s=e.callbackNode,i===0||e===t&&(Ht===od||Ht===ud)||e.cancelPendingCommit!==null)return s!==null&&Jh(s),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||$n(e,i)){if(t=i&-i,t!==e.callbackPriority||$.actQueue!==null&&s!==XC)Jh(s);else return t;switch(fl(i)){case Nn:case el:i=vm;break;case ul:i=Ts;break;case Tu:i=Sm;break;default:i=Ts}return s=Yg.bind(null,e),$.actQueue!==null?($.actQueue.push(s),i=XC):i=my(i,s),e.callbackPriority=t,e.callbackNode=i,t}return s!==null&&Jh(s),e.callbackPriority=2,e.callbackNode=null,2}function Yg(e,t){if(TS=SS=!1,ov=window.event,Fn!==mc&&Fn!==BS)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(wo===HS&&(wo=LC),_f()&&e.callbackNode!==i)return null;var s=it;return s=Nd(e,e===kt?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==hd),s===0?null:(g0(e,s,t),Ur(e,In()),e.callbackNode!=null&&e.callbackNode===i?Yg.bind(null,e):null)}function Mf(e,t){if(_f())return null;SS=TS,TS=!1,g0(e,t,!0)}function Jh(e){e!==XC&&e!==null&&pm(e)}function C0(){$.actQueue!==null&&$.actQueue.push(function(){return Qh(),null}),k4(function(){(St&(nl|oi))!==cl?my(py,T0):Qh()})}function Ig(){if(gc===0){var e=jf;e===0&&(e=Kr,Kr<<=1,(Kr&261888)===0&&(Kr=256)),gc=e}return gc}function Tt(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(Nt(e,"action"),wc(""+e))}function wt(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function ft(e,t,i,s,h){if(t==="submit"&&i&&i.stateNode===h){var p=Tt((h[Rl]||null).action),T=s.submitter;T&&(t=(t=T[Rl]||null)?Tt(t.formAction):T.getAttribute("formAction"),t!==null&&(p=t,T=null));var _=new uS("action","action",null,s,h);e.push({event:_,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(gc!==0){var R=T?wt(h,T):new FormData(h),x={pending:!0,data:R,method:h.method,action:p};Object.freeze(x),vo(i,x,null,R)}}else typeof p=="function"&&(_.preventDefault(),R=T?wt(h,T):new FormData(h),x={pending:!0,data:R,method:h.method,action:p},Object.freeze(x),vo(i,x,p,R))},currentTarget:h}]})}}function ot(e,t,i){e.currentTarget=i;try{t(e)}catch(s){lC(s)}e.currentTarget=null}function xt(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var s=e[i];e:{var h=void 0,p=s.event;if(s=s.listeners,t)for(var T=s.length-1;0<=T;T--){var _=s[T],R=_.instance,x=_.currentTarget;if(_=_.listener,R!==h&&p.isPropagationStopped())break e;R!==null?ye(R,ot,p,_,x):ot(p,_,x),h=R}else for(T=0;T<s.length;T++){if(_=s[T],R=_.instance,x=_.currentTarget,_=_.listener,R!==h&&p.isPropagationStopped())break e;R!==null?ye(R,ot,p,_,x):ot(p,_,x),h=R}}}}function He(e,t){QC.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var i=t[Es];i===void 0&&(i=t[Es]=new Set);var s=e+"__bubble";i.has(s)||(Kh(t,e,2,!1),i.add(s))}function Vi(e,t,i){QC.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var s=0;t&&(s|=4),Kh(i,e,s,t)}function hu(e){if(!e[ZS]){e[ZS]=!0,nS.forEach(function(i){i!=="selectionchange"&&(QC.has(i)||Vi(i,!1,e),Vi(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ZS]||(t[ZS]=!0,Vi("selectionchange",!1,t))}}function Kh(e,t,i,s){switch(sm(t)){case Nn:var h=ly;break;case el:h=Wn;break;default:h=ay}i=h.bind(null,t,i,e),h=void 0,!JT||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(h=!0),s?h!==void 0?e.addEventListener(t,i,{capture:!0,passive:h}):e.addEventListener(t,i,!0):h!==void 0?e.addEventListener(t,i,{passive:h}):e.addEventListener(t,i,!1)}function $a(e,t,i,s,h){var p=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var T=s.tag;if(T===3||T===4){var _=s.stateNode.containerInfo;if(_===h)break;if(T===4)for(T=s.return;T!==null;){var R=T.tag;if((R===3||R===4)&&T.stateNode.containerInfo===h)return;T=T.return}for(;_!==null;){if(T=ao(_),T===null)return;if(R=T.tag,R===5||R===6||R===26||R===27){s=p=T;continue e}_=_.parentNode}}s=s.return}Xd(function(){var x=p,B=wa(i),G=[];e:{var w=w1.get(e);if(w!==void 0){var J=uS,ce=e;switch(e){case"keypress":if(Vc(i)===0)break e;case"keydown":case"keyup":J=Fz;break;case"focusin":ce="focus",J=PT;break;case"focusout":ce="blur",J=PT;break;case"beforeblur":case"afterblur":J=PT;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=T1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=Hz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=Wz;break;case U1:case N1:case z1:J=Gz;break;case O1:J=e4;break;case"scroll":case"scrollend":J=Vz;break;case"wheel":J=n4;break;case"copy":case"cut":case"paste":J=Iz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=E1;break;case"toggle":case"beforetoggle":J=a4}var pe=(t&4)!==0,Jt=!pe&&(e==="scroll"||e==="scrollend"),pt=pe?w!==null?w+"Capture":null:w;pe=[];for(var O=x,V;O!==null;){var H=O;if(V=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||V===null||pt===null||(H=pi(O,pt),H!=null&&pe.push(It(O,H,V))),Jt)break;O=O.return}0<pe.length&&(w=new J(w,ce,null,i,B),G.push({event:w,listeners:pe}))}}if((t&7)===0){e:{if(w=e==="mouseover"||e==="pointerover",J=e==="mouseout"||e==="pointerout",w&&i!==Ty&&(ce=i.relatedTarget||i.fromElement)&&(ao(ce)||ce[Do]))break e;if((J||w)&&(w=B.window===B?B:(w=B.ownerDocument)?w.defaultView||w.parentWindow:window,J?(ce=i.relatedTarget||i.toElement,J=x,ce=ce?ao(ce):null,ce!==null&&(Jt=fe(ce),pe=ce.tag,ce!==Jt||pe!==5&&pe!==27&&pe!==6)&&(ce=null)):(J=null,ce=x),J!==ce)){if(pe=T1,H="onMouseLeave",pt="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(pe=E1,H="onPointerLeave",pt="onPointerEnter",O="pointer"),Jt=J==null?w:qo(J),V=ce==null?w:qo(ce),w=new pe(H,O+"leave",J,i,B),w.target=Jt,w.relatedTarget=V,H=null,ao(B)===x&&(pe=new pe(pt,O+"enter",ce,i,B),pe.target=V,pe.relatedTarget=Jt,H=pe),Jt=H,J&&ce)t:{for(pe=ds,pt=J,O=ce,V=0,H=pt;H;H=pe(H))V++;H=0;for(var j=O;j;j=pe(j))H++;for(;0<V-H;)pt=pe(pt),V--;for(;0<H-V;)O=pe(O),H--;for(;V--;){if(pt===O||O!==null&&pt===O.alternate){pe=pt;break t}pt=pe(pt),O=pe(O)}pe=null}else pe=null;J!==null&&Fh(G,w,J,pe,!1),ce!==null&&Jt!==null&&Fh(G,Jt,ce,pe,!0)}}e:{if(w=x?qo(x):window,J=w.nodeName&&w.nodeName.toLowerCase(),J==="select"||J==="input"&&w.type==="file")var he=Zo;else if(Rp(w))if(D1)he=qc;else{he=Dp;var Qe=OT}else J=w.nodeName,!J||J.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?x&&mi(x.elementType)&&(he=Zo):he=xp;if(he&&(he=he(e,x))){Hc(G,he,i,B);break e}Qe&&Qe(e,w,x),e==="focusout"&&x&&w.type==="number"&&x.memoizedProps.value!=null&&vp(w,"number",w.value)}switch(Qe=x?qo(x):window,e){case"focusin":(Rp(Qe)||Qe.contentEditable==="true")&&(Rm=Qe,jT=x,Ry=null);break;case"focusout":Ry=jT=Rm=null;break;case"mousedown":eC=!0;break;case"contextmenu":case"mouseup":case"dragend":eC=!1,Zv(G,i,B);break;case"selectionchange":if(s4)break;case"keydown":case"keyup":Zv(G,i,B)}var Ue;if(WT)e:{switch(e){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else Mm?Ws(e,i)&&(_e="onCompositionEnd"):e==="keydown"&&i.keyCode===_1&&(_e="onCompositionStart");_e&&(A1&&i.locale!=="ko"&&(Mm||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&Mm&&(Ue=Lu()):(jr=B,KT="value"in jr?jr.value:jr.textContent,Mm=!0)),Qe=Pa(x,_e),0<Qe.length&&(_e=new C1(_e,e,null,i,B),G.push({event:_e,listeners:Qe}),Ue?_e.data=Ue:(Ue=uo(i),Ue!==null&&(_e.data=Ue)))),(Ue=o4?Mp(e,i):Qd(e,i))&&(_e=Pa(x,"onBeforeInput"),0<_e.length&&(Qe=new kz("onBeforeInput","beforeinput",null,i,B),G.push({event:Qe,listeners:_e}),Qe.data=Ue)),ft(G,e,x,i,B)}xt(G,t)})}function It(e,t,i){return{instance:e,listener:t,currentTarget:i}}function Pa(e,t){for(var i=t+"Capture",s=[];e!==null;){var h=e,p=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||p===null||(h=pi(e,i),h!=null&&s.unshift(It(e,h,p)),h=pi(e,t),h!=null&&s.push(It(e,h,p))),e.tag===3)return s;e=e.return}return[]}function ds(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Fh(e,t,i,s,h){for(var p=t._reactName,T=[];i!==null&&i!==s;){var _=i,R=_.alternate,x=_.stateNode;if(_=_.tag,R!==null&&R===s)break;_!==5&&_!==26&&_!==27||x===null||(R=x,h?(x=pi(i,p),x!=null&&T.unshift(It(i,x,R))):h||(x=pi(i,p),x!=null&&T.push(It(i,x,R)))),i=i.return}T.length!==0&&e.push({event:t,listeners:T})}function Al(e,t){Bv(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||v1||(v1=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var i={registrationNameDependencies:Ii,possibleRegistrationNames:Pr};mi(e)||typeof t.is=="string"||zT(e,t,i),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function an(e,t,i,s){t!==i&&(i=Wa(i),Wa(t)!==i&&(s[e]=t))}function Rf(e,t,i){t.forEach(function(s){i[_o(s)]=s==="style"?mu(e):e.getAttribute(s)})}function on(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function $h(e,t){return e=e.namespaceURI===Ke||e.namespaceURI===je?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Wa(e){return ci(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Dc(e)),Ru(e)),(typeof e=="string"?e:""+e).replace(V4,`
221
+ `).replace(L4,"")}function Zg(e,t){return t=Wa(t),Wa(e)===t}function _t(e,t,i,s,h,p){switch(i){case"children":typeof s=="string"?(Oc(s,t,!1),t==="body"||t==="textarea"&&s===""||Vu(e,s)):(typeof s=="number"||typeof s=="bigint")&&(Oc(""+s,t,!1),t!=="body"&&Vu(e,""+s));break;case"className":Uc(e,"class",s);break;case"tabIndex":Uc(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Uc(e,i,s);break;case"style":_p(e,s,p);break;case"data":if(t!=="object"){Uc(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||i!=="href")){console.error(i==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',i,i),e.removeAttribute(i);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(i);break}Nt(s,i),s=wc(""+s),e.setAttribute(i,s);break;case"action":case"formAction":if(s!=null&&(t==="form"?i==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof s=="function"&&(h.encType==null&&h.method==null||QS||(QS=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),h.target==null||XS||(XS=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?i==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||h.type==="submit"||h.type==="image"||kS?t!=="button"||h.type==null||h.type==="submit"||kS?typeof s=="function"&&(h.name==null||lb||(lb=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),h.formEncType==null&&h.formMethod==null||QS||(QS=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),h.formTarget==null||XS||(XS=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(kS=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(kS=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(i==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof s=="function"){e.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(i==="formAction"?(t!=="input"&&_t(e,t,"name",h.name,h,null),_t(e,t,"formEncType",h.formEncType,h,null),_t(e,t,"formMethod",h.formMethod,h,null),_t(e,t,"formTarget",h.formTarget,h,null)):(_t(e,t,"encType",h.encType,h,null),_t(e,t,"method",h.method,h,null),_t(e,t,"target",h.target,h,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(i);break}Nt(s,i),s=wc(""+s),e.setAttribute(i,s);break;case"onClick":s!=null&&(typeof s!="function"&&on(i,s),e.onclick=pa);break;case"onScroll":s!=null&&(typeof s!="function"&&on(i,s),He("scroll",e));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&on(i,s),He("scrollend",e));break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(i=s.__html,i!=null){if(h.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=i}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}Nt(s,i),i=wc(""+s),e.setAttributeNS(cd,"xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?(Nt(s,i),e.setAttribute(i,""+s)):e.removeAttribute(i);break;case"inert":s!==""||JS[i]||(JS[i]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",i));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":s===!0?e.setAttribute(i,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?(Nt(s,i),e.setAttribute(i,s)):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?(Nt(s,i),e.setAttribute(i,s)):e.removeAttribute(i);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(i):(Nt(s,i),e.setAttribute(i,s));break;case"popover":He("beforetoggle",e),He("toggle",e),wd(e,"popover",s);break;case"xlinkActuate":fi(e,cd,"xlink:actuate",s);break;case"xlinkArcrole":fi(e,cd,"xlink:arcrole",s);break;case"xlinkRole":fi(e,cd,"xlink:role",s);break;case"xlinkShow":fi(e,cd,"xlink:show",s);break;case"xlinkTitle":fi(e,cd,"xlink:title",s);break;case"xlinkType":fi(e,cd,"xlink:type",s);break;case"xmlBase":fi(e,JC,"xml:base",s);break;case"xmlLang":fi(e,JC,"xml:lang",s);break;case"xmlSpace":fi(e,JC,"xml:space",s);break;case"is":p!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),wd(e,"is",s);break;case"innerText":case"textContent":break;case"popoverTarget":ab||s==null||typeof s!="object"||(ab=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",s));default:!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N"?(i=Lv(i),wd(e,i,s)):Ii.hasOwnProperty(i)&&s!=null&&typeof s!="function"&&on(i,s)}}function Nr(e,t,i,s,h,p){switch(i){case"style":_p(e,s,p);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(i=s.__html,i!=null){if(h.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=i}}break;case"children":typeof s=="string"?Vu(e,s):(typeof s=="number"||typeof s=="bigint")&&Vu(e,""+s);break;case"onScroll":s!=null&&(typeof s!="function"&&on(i,s),He("scroll",e));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&on(i,s),He("scrollend",e));break;case"onClick":s!=null&&(typeof s!="function"&&on(i,s),e.onclick=pa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ii.hasOwnProperty(i))s!=null&&typeof s!="function"&&on(i,s);else e:{if(i[0]==="o"&&i[1]==="n"&&(h=i.endsWith("Capture"),t=i.slice(2,h?i.length-7:void 0),p=e[Rl]||null,p=p!=null?p[i]:null,typeof p=="function"&&e.removeEventListener(t,p,h),typeof s=="function")){typeof p!="function"&&p!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,s,h);break e}i in e?e[i]=s:s===!0?e.setAttribute(i,""):wd(e,i,s)}}}function Pt(e,t,i){switch(Al(t,i),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":He("error",e),He("load",e);var s=!1,h=!1,p;for(p in i)if(i.hasOwnProperty(p)){var T=i[p];if(T!=null)switch(p){case"src":s=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:_t(e,t,p,T,i,null)}}h&&_t(e,t,"srcSet",i.srcSet,i,null),s&&_t(e,t,"src",i.src,i,null);return;case"input":Uu("input",i),He("invalid",e);var _=p=T=h=null,R=null,x=null;for(s in i)if(i.hasOwnProperty(s)){var B=i[s];if(B!=null)switch(s){case"name":h=B;break;case"type":T=B;break;case"checked":R=B;break;case"defaultChecked":x=B;break;case"value":p=B;break;case"defaultValue":_=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_t(e,t,s,B,i,null)}}dl(e,i),Hd(e,p,_,R,x,T,h,!1);return;case"select":Uu("select",i),He("invalid",e),s=T=p=null;for(h in i)if(i.hasOwnProperty(h)&&(_=i[h],_!=null))switch(h){case"value":p=_;break;case"defaultValue":T=_;break;case"multiple":s=_;default:_t(e,t,h,_,i,null)}Bd(e,i),t=p,i=T,e.multiple=!!s,t!=null?di(e,!!s,t,!1):i!=null&&di(e,!!s,i,!0);return;case"textarea":Uu("textarea",i),He("invalid",e),p=h=s=null;for(T in i)if(i.hasOwnProperty(T)&&(_=i[T],_!=null))switch(T){case"value":s=_;break;case"defaultValue":h=_;break;case"children":p=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:_t(e,t,T,_,i,null)}Nu(e,i),Qs(e,s,h,p);return;case"option":Vv(e,i);for(R in i)if(i.hasOwnProperty(R)&&(s=i[R],s!=null))switch(R){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:_t(e,t,R,s,i,null)}return;case"dialog":He("beforetoggle",e),He("toggle",e),He("cancel",e),He("close",e);break;case"iframe":case"object":He("load",e);break;case"video":case"audio":for(s=0;s<lv.length;s++)He(lv[s],e);break;case"image":He("error",e),He("load",e);break;case"details":He("toggle",e);break;case"embed":case"source":case"link":He("error",e),He("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(x in i)if(i.hasOwnProperty(x)&&(s=i[x],s!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:_t(e,t,x,s,i,null)}return;default:if(mi(t)){for(B in i)i.hasOwnProperty(B)&&(s=i[B],s!==void 0&&Nr(e,t,B,s,i,void 0));return}}for(_ in i)i.hasOwnProperty(_)&&(s=i[_],s!=null&&_t(e,t,_,s,i,null))}function xn(e,t,i,s){switch(Al(t,s),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,p=null,T=null,_=null,R=null,x=null,B=null;for(J in i){var G=i[J];if(i.hasOwnProperty(J)&&G!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":R=G;default:s.hasOwnProperty(J)||_t(e,t,J,null,s,G)}}for(var w in s){var J=s[w];if(G=i[w],s.hasOwnProperty(w)&&(J!=null||G!=null))switch(w){case"type":p=J;break;case"name":h=J;break;case"checked":x=J;break;case"defaultChecked":B=J;break;case"value":T=J;break;case"defaultValue":_=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:J!==G&&_t(e,t,w,J,s,G)}}t=i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null,s=s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null,t||!s||nb||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),nb=!0),!t||s||tb||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),tb=!0),Go(e,T,_,R,x,B,p,h);return;case"select":J=T=_=w=null;for(p in i)if(R=i[p],i.hasOwnProperty(p)&&R!=null)switch(p){case"value":break;case"multiple":J=R;default:s.hasOwnProperty(p)||_t(e,t,p,null,s,R)}for(h in s)if(p=s[h],R=i[h],s.hasOwnProperty(h)&&(p!=null||R!=null))switch(h){case"value":w=p;break;case"defaultValue":_=p;break;case"multiple":T=p;default:p!==R&&_t(e,t,h,p,s,R)}s=_,t=T,i=J,w!=null?di(e,!!t,w,!1):!!i!=!!t&&(s!=null?di(e,!!t,s,!0):di(e,!!t,t?[]:"",!1));return;case"textarea":J=w=null;for(_ in i)if(h=i[_],i.hasOwnProperty(_)&&h!=null&&!s.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:_t(e,t,_,null,s,h)}for(T in s)if(h=s[T],p=i[T],s.hasOwnProperty(T)&&(h!=null||p!=null))switch(T){case"value":w=h;break;case"defaultValue":J=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:h!==p&&_t(e,t,T,h,s,p)}zu(e,w,J);return;case"option":for(var ce in i)if(w=i[ce],i.hasOwnProperty(ce)&&w!=null&&!s.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:_t(e,t,ce,null,s,w)}for(R in s)if(w=s[R],J=i[R],s.hasOwnProperty(R)&&w!==J&&(w!=null||J!=null))switch(R){case"selected":e.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:_t(e,t,R,w,s,J)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var pe in i)w=i[pe],i.hasOwnProperty(pe)&&w!=null&&!s.hasOwnProperty(pe)&&_t(e,t,pe,null,s,w);for(x in s)if(w=s[x],J=i[x],s.hasOwnProperty(x)&&w!==J&&(w!=null||J!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_t(e,t,x,w,s,J)}return;default:if(mi(t)){for(var Jt in i)w=i[Jt],i.hasOwnProperty(Jt)&&w!==void 0&&!s.hasOwnProperty(Jt)&&Nr(e,t,Jt,void 0,s,w);for(B in s)w=s[B],J=i[B],!s.hasOwnProperty(B)||w===J||w===void 0&&J===void 0||Nr(e,t,B,w,s,J);return}}for(var pt in i)w=i[pt],i.hasOwnProperty(pt)&&w!=null&&!s.hasOwnProperty(pt)&&_t(e,t,pt,null,s,w);for(G in s)w=s[G],J=i[G],!s.hasOwnProperty(G)||w===J||w==null&&J==null||_t(e,t,G,w,s,J)}function _o(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function mu(e){var t={};e=e.style;for(var i=0;i<e.length;i++){var s=e[i];t[s]=e.getPropertyValue(s)}return t}function Li(e,t,i){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var s,h=s="",p;for(p in t)if(t.hasOwnProperty(p)){var T=t[p];T!=null&&typeof T!="boolean"&&T!==""&&(p.indexOf("--")===0?(fp(T,p),s+=h+p+":"+(""+T).trim()):typeof T!="number"||T===0||Ee.has(p)?(fp(T,p),s+=h+p.replace(P,"-$1").toLowerCase().replace(Se,"-ms-")+":"+(""+T).trim()):s+=h+p.replace(P,"-$1").toLowerCase().replace(Se,"-ms-")+":"+T+"px",h=";")}s=s||null,t=e.getAttribute("style"),t!==s&&(s=Wa(s),Wa(t)!==s&&(i.style=mu(e)))}}function wl(e,t,i,s,h,p){if(h.delete(i),e=e.getAttribute(i),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(Nt(s,t),e===""+s)return}an(t,e,s,p)}function Ph(e,t,i,s,h,p){if(h.delete(i),e=e.getAttribute(i),e===null){switch(typeof s){case"function":case"symbol":return}if(!s)return}else switch(typeof s){case"function":case"symbol":break;default:if(s)return}an(t,e,s,p)}function Wh(e,t,i,s,h,p){if(h.delete(i),e=e.getAttribute(i),e===null)switch(typeof s){case"undefined":case"function":case"symbol":return}else if(s!=null)switch(typeof s){case"function":case"symbol":break;default:if(Nt(s,i),e===""+s)return}an(t,e,s,p)}function zr(e,t,i,s,h,p){if(h.delete(i),e=e.getAttribute(i),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(s))return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(!isNaN(s)&&(Nt(s,t),e===""+s))return}an(t,e,s,p)}function Df(e,t,i,s,h,p){if(h.delete(i),e=e.getAttribute(i),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(Nt(s,t),i=wc(""+s),e===i)return}an(t,e,s,p)}function Vl(e,t,i,s){for(var h={},p=new Set,T=e.attributes,_=0;_<T.length;_++)switch(T[_].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:p.add(T[_].name)}if(mi(t)){for(var R in i)if(i.hasOwnProperty(R)){var x=i[R];if(x!=null){if(Ii.hasOwnProperty(R))typeof x!="function"&&on(R,x);else if(i.suppressHydrationWarning!==!0)switch(R){case"children":typeof x!="string"&&typeof x!="number"||an("children",e.textContent,x,h);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":T=e.innerHTML,x=x?x.__html:void 0,x!=null&&(x=$h(e,x),an(R,T,x,h));continue;case"style":p.delete(R),Li(e,x,h);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":p.delete(R.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",R);continue;case"className":p.delete("class"),T=Xs(e,"class",x),an("className",T,x,h);continue;default:s.context===Ls&&t!=="svg"&&t!=="math"?p.delete(R.toLowerCase()):p.delete(R),T=Xs(e,R,x),an(R,T,x,h)}}}}else for(x in i)if(i.hasOwnProperty(x)&&(R=i[x],R!=null)){if(Ii.hasOwnProperty(x))typeof R!="function"&&on(x,R);else if(i.suppressHydrationWarning!==!0)switch(x){case"children":typeof R!="string"&&typeof R!="number"||an("children",e.textContent,R,h);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":T=e.innerHTML,R=R?R.__html:void 0,R!=null&&(R=$h(e,R),T!==R&&(h[x]={__html:T}));continue;case"className":wl(e,x,"class",R,p,h);continue;case"tabIndex":wl(e,x,"tabindex",R,p,h);continue;case"style":p.delete(x),Li(e,R,h);continue;case"multiple":p.delete(x),an(x,e.multiple,R,h);continue;case"muted":p.delete(x),an(x,e.muted,R,h);continue;case"autoFocus":p.delete("autofocus"),an(x,e.autofocus,R,h);continue;case"data":if(t!=="object"){p.delete(x),T=e.getAttribute("data"),an(x,T,R,h);continue}case"src":case"href":if(!(R!==""||t==="a"&&x==="href"||t==="object"&&x==="data")){console.error(x==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',x,x);continue}Df(e,x,x,R,p,h);continue;case"action":case"formAction":if(T=e.getAttribute(x),typeof R=="function"){p.delete(x.toLowerCase()),x==="formAction"?(p.delete("name"),p.delete("formenctype"),p.delete("formmethod"),p.delete("formtarget")):(p.delete("enctype"),p.delete("method"),p.delete("target"));continue}else if(T===H4){p.delete(x.toLowerCase()),an(x,"function",R,h);continue}Df(e,x,x.toLowerCase(),R,p,h);continue;case"xlinkHref":Df(e,x,"xlink:href",R,p,h);continue;case"contentEditable":Wh(e,x,"contenteditable",R,p,h);continue;case"spellCheck":Wh(e,x,"spellcheck",R,p,h);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Wh(e,x,x,R,p,h);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Ph(e,x,x.toLowerCase(),R,p,h);continue;case"capture":case"download":e:{_=e;var B=T=x,G=h;if(p.delete(B),_=_.getAttribute(B),_===null)switch(typeof R){case"undefined":case"function":case"symbol":break e;default:if(R===!1)break e}else if(R!=null)switch(typeof R){case"function":case"symbol":break;case"boolean":if(R===!0&&_==="")break e;break;default:if(Nt(R,T),_===""+R)break e}an(T,_,R,G)}continue;case"cols":case"rows":case"size":case"span":e:{if(_=e,B=T=x,G=h,p.delete(B),_=_.getAttribute(B),_===null)switch(typeof R){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(R)||1>R)break e}else if(R!=null)switch(typeof R){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(R)||1>R)&&(Nt(R,T),_===""+R))break e}an(T,_,R,G)}continue;case"rowSpan":zr(e,x,"rowspan",R,p,h);continue;case"start":zr(e,x,x,R,p,h);continue;case"xHeight":wl(e,x,"x-height",R,p,h);continue;case"xlinkActuate":wl(e,x,"xlink:actuate",R,p,h);continue;case"xlinkArcrole":wl(e,x,"xlink:arcrole",R,p,h);continue;case"xlinkRole":wl(e,x,"xlink:role",R,p,h);continue;case"xlinkShow":wl(e,x,"xlink:show",R,p,h);continue;case"xlinkTitle":wl(e,x,"xlink:title",R,p,h);continue;case"xlinkType":wl(e,x,"xlink:type",R,p,h);continue;case"xmlBase":wl(e,x,"xml:base",R,p,h);continue;case"xmlLang":wl(e,x,"xml:lang",R,p,h);continue;case"xmlSpace":wl(e,x,"xml:space",R,p,h);continue;case"inert":R!==""||JS[x]||(JS[x]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",x)),Ph(e,x,x,R,p,h);continue;default:if(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N"){_=Lv(x),T=!1,s.context===Ls&&t!=="svg"&&t!=="math"?p.delete(_.toLowerCase()):(B=x.toLowerCase(),B=ni.hasOwnProperty(B)&&ni[B]||null,B!==null&&B!==x&&(T=!0,p.delete(B)),p.delete(_));e:if(B=e,G=_,_=R,xc(G))if(B.hasAttribute(G))B=B.getAttribute(G),Nt(_,G),_=B===""+_?_:B;else{switch(typeof _){case"function":case"symbol":break e;case"boolean":if(B=G.toLowerCase().slice(0,5),B!=="data-"&&B!=="aria-")break e}_=_===void 0?void 0:null}else _=void 0;T||an(x,_,R,h)}}}return 0<p.size&&i.suppressHydrationWarning!==!0&&Rf(e,p,h),Object.keys(h).length===0?null:h}function E0(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function bl(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),s=0;s<i.length;s++){var h=i[s],p=h.transferSize,T=h.initiatorType,_=h.duration;if(p&&_&&bl(T)){for(T=0,_=h.responseEnd,s+=1;s<i.length;s++){var R=i[s],x=R.startTime;if(x>_)break;var B=R.transferSize,G=R.initiatorType;B&&bl(G)&&(R=R.responseEnd,T+=B*(R<_?1:(_-x)/(R-x)))}if(--s,t+=8*(p+T)/(h.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function xf(e){return e.nodeType===9?e:e.ownerDocument}function A0(e){switch(e){case je:return Wm;case Ke:return FS;default:return Ls}}function Ao(e,t){if(e===Ls)switch(t){case"svg":return Wm;case"math":return FS;default:return Ls}return e===Wm&&t==="foreignObject"?Ls:e}function Or(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function kg(){var e=window.event;return e&&e.type==="popstate"?e===PC?!1:(PC=e,!0):(PC=null,!1)}function Hi(){var e=window.event;return e&&e!==ov?e.type:null}function wr(){var e=window.event;return e&&e!==ov?e.timeStamp:-1.1}function b0(e){setTimeout(function(){throw e})}function M0(e,t,i){switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&e.focus();break;case"img":i.src?e.src=i.src:i.srcSet&&(e.srcset=i.srcSet)}}function R0(){}function jh(e,t,i,s){xn(e,t,i,s),e[Rl]=s}function em(e){Vu(e,"")}function GT(e,t,i){e.nodeValue=i}function D0(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Rl]||null;if(t!==null){var i=Na(e);i!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,ye(i,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,ye(i,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function pu(e){return e==="head"}function x0(e,t){e.removeChild(t)}function U0(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function hs(e,t){var i=t,s=0;do{var h=i.nextSibling;if(e.removeChild(i),h&&h.nodeType===8)if(i=h.data,i===iv||i===KS){if(s===0){e.removeChild(h),ys(t);return}s--}else if(i===av||i===yc||i===dd||i===Pm||i===fd)s++;else if(i===q4)Mo(e.ownerDocument.documentElement);else if(i===Y4){i=e.ownerDocument.head,Mo(i);for(var p=i.firstChild;p;){var T=p.nextSibling,_=p.nodeName;p[$r]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&p.rel.toLowerCase()==="stylesheet"||i.removeChild(p),p=T}}else i===G4&&Mo(e.ownerDocument.body);i=h}while(i);ys(t)}function Uf(e,t){var i=e;e=0;do{var s=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),s&&s.nodeType===8)if(i=s.data,i===iv){if(e===0)break;e--}else i!==av&&i!==yc&&i!==dd&&i!==Pm||e++;i=s}while(i)}function N0(e){Uf(e,!0)}function z0(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function O0(e){e.nodeValue=""}function w0(e){Uf(e,!1)}function V0(e,t){t=t[I4],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function L0(e,t){e.nodeValue=t}function Vr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Vr(i),pp(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function H0(e,t,i,s){for(;e.nodeType===1;){var h=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[$r])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(p=e.getAttribute("rel"),p==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(p!==h.rel||e.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||e.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||e.getAttribute("title")!==(h.title==null?null:h.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(p=e.getAttribute("src"),(p!==(h.src==null?null:h.src)||e.getAttribute("type")!==(h.type==null?null:h.type)||e.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&p&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){Nt(h.name,"name");var p=h.name==null?null:""+h.name;if(h.type==="hidden"&&e.getAttribute("name")===p)return e}else return e;if(e=la(e.nextSibling),e===null)break}return null}function B0(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=la(e.nextSibling),e===null))return null;return e}function Ut(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=la(e.nextSibling),e===null))return null;return e}function Nf(e){return e.data===yc||e.data===dd}function Xg(e){return e.data===Pm||e.data===yc&&e.ownerDocument.readyState!==ob}function q0(e,t){var i=e.ownerDocument;if(e.data===dd)e._reactRetry=t;else if(e.data!==yc||i.readyState!==ob)t();else{var s=function(){t(),i.removeEventListener("DOMContentLoaded",s)};i.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function la(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===av||t===Pm||t===yc||t===dd||t===fd||t===KC||t===ib)break;if(t===iv||t===KS)return null}}return e}function G0(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),i={},s=e.attributes,h=0;h<s.length;h++){var p=s[h];i[_o(p.name)]=p.name.toLowerCase()==="style"?mu(e):p.value}return{type:t,props:i}}return e.nodeType===8?e.data===fd?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function Y0(e,t,i){return i===null||i[B4]!==!0?(e.nodeValue===t?e=null:(t=Wa(t),e=Wa(e.nodeValue)===t?null:e.nodeValue),e):null}function Lr(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i===iv||i===KS){if(t===0)return la(e.nextSibling);t--}else i!==av&&i!==Pm&&i!==yc&&i!==dd&&i!==fd||t++}e=e.nextSibling}return null}function ms(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i===av||i===Pm||i===yc||i===dd||i===fd){if(t===0)return e;t--}else i!==iv&&i!==KS||t++}e=e.previousSibling}return null}function Qg(e){ys(e)}function tm(e){ys(e)}function Jg(e){ys(e)}function bo(e,t,i,s,h){switch(h&&zc(e,s.ancestorInfo),t=xf(i),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Bi(e,t,i,s){if(!i[Do]&&Na(i)){var h=i.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",h,h,h)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(h=i.attributes;h.length;)i.removeAttributeNode(h[0]);Pt(i,e,t),i[Wt]=s,i[Rl]=t}function Mo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);pp(e)}function nm(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Kg(e,t,i){var s=jm;if(s&&typeof t=="string"&&t){var h=zt(t);h='link[rel="'+e+'"][href="'+h+'"]',typeof i=="string"&&(h+='[crossorigin="'+i+'"]'),db.has(h)||(db.add(h),e={rel:e,crossOrigin:i,href:t},s.querySelector(h)===null&&(t=s.createElement("link"),Pt(t,"link",e),pn(t),s.head.appendChild(t)))}}function Fg(e,t,i,s){var h=(h=aa.current)?nm(h):null;if(!h)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(i=ps(i.href),t=ma(h).hoistableStyles,s=t.get(i),s||(s={type:"style",instance:null,count:0,state:null},t.set(i,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=ps(i.href);var p=ma(h).hoistableStyles,T=p.get(e);if(!T&&(h=h.ownerDocument||h,T={type:"stylesheet",instance:null,count:0,state:{loading:md,preload:null}},p.set(e,T),(p=h.querySelector(Of(e)))&&!p._p&&(T.instance=p,T.state.loading=uv|ji),!eo.has(e))){var _={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy};eo.set(e,_),p||I0(h,e,_,T.state)}if(t&&s===null)throw i=`
222
+
223
+ - `+zf(t)+`
224
+ + `+zf(i),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+i);return T}if(t&&s!==null)throw i=`
225
+
226
+ - `+zf(t)+`
227
+ + `+zf(i),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+i);return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(i=gs(i),t=ma(h).hoistableScripts,s=t.get(i),s||(s={type:"script",instance:null,count:0,state:null},t.set(i,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function zf(e){var t=0,i="<link";return typeof e.rel=="string"?(t++,i+=' rel="'+e.rel+'"'):ia.call(e,"rel")&&(t++,i+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,i+=' href="'+e.href+'"'):ia.call(e,"href")&&(t++,i+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,i+=' precedence="'+e.precedence+'"'):ia.call(e,"precedence")&&(t++,i+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(i+=" ..."),i+" />"}function ps(e){return'href="'+zt(e)+'"'}function Of(e){return'link[rel="stylesheet"]['+e+"]"}function lm(e){return nt({},e,{"data-precedence":e.precedence,precedence:null})}function I0(e,t,i,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=uv:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=uv}),t.addEventListener("error",function(){return s.loading|=cb}),Pt(t,"link",i),pn(t),e.head.appendChild(t))}function gs(e){return'[src="'+zt(e)+'"]'}function wf(e){return"script[async]"+e}function am(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+zt(i.href)+'"]');if(s)return t.instance=s,pn(s),s;var h=nt({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),pn(s),Pt(s,"style",h),Hr(s,i.precedence,e),t.instance=s;case"stylesheet":h=ps(i.href);var p=e.querySelector(Of(h));if(p)return t.state.loading|=ji,t.instance=p,pn(p),p;s=lm(i),(h=eo.get(h))&&$g(s,h),p=(e.ownerDocument||e).createElement("link"),pn(p);var T=p;return T._p=new Promise(function(_,R){T.onload=_,T.onerror=R}),Pt(p,"link",s),t.state.loading|=ji,Hr(p,i.precedence,e),t.instance=p;case"script":return p=gs(i.src),(h=e.querySelector(wf(p)))?(t.instance=h,pn(h),h):(s=i,(h=eo.get(p))&&(s=nt({},i),Pg(s,h)),e=e.ownerDocument||e,h=e.createElement("script"),pn(h),Pt(h,"link",s),e.head.appendChild(h),t.instance=h);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&ji)===md&&(s=t.instance,t.state.loading|=ji,Hr(s,i.precedence,e));return t.instance}function Hr(e,t,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=s.length?s[s.length-1]:null,p=h,T=0;T<s.length;T++){var _=s[T];if(_.dataset.precedence===t)p=_;else if(p!==h)break}p?p.parentNode.insertBefore(e,p.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function $g(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Pg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function Br(e,t,i){if($S===null){var s=new Map,h=$S=new Map;h.set(i,s)}else h=$S,s=h.get(i),s||(s=new Map,h.set(i,s));if(s.has(e))return s;for(s.set(e,null),i=i.getElementsByTagName(e),h=0;h<i.length;h++){var p=i[h];if(!(p[$r]||p[Wt]||e==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!==je){var T=p.getAttribute(t)||"";T=e+T;var _=s.get(T);_?_.push(p):s.set(T,[p])}}return s}function Z0(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function k0(e,t,i){var s=!i.ancestorInfo.containerTagInScope;if(i.context===Wm||t.itemProp!=null)return!s||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){s&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var h=t.onError,p=t.disabled;i=[],t.onLoad&&i.push("`onLoad`"),h&&i.push("`onError`"),p!=null&&i.push("`disabled`"),h=E0(i,"and"),h+=i.length===1?" prop":" props",p=i.length===1?"an "+h:"the "+h,i.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,p,h)}s&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!="string"&&s&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){s&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":s&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function rt(e){return!(e.type==="stylesheet"&&(e.state.loading&fb)===md)}function Wg(e,t,i,s){if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&ji)===md){if(i.instance===null){var h=ps(s.href),p=t.querySelector(Of(h));if(p){t=p._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=qr.bind(e),t.then(e,e)),i.state.loading|=ji,i.instance=p,pn(p);return}p=t.ownerDocument||t,s=lm(s),(h=eo.get(h))&&$g(s,h),p=p.createElement("link"),pn(p);var T=p;T._p=new Promise(function(_,R){T.onload=_,T.onerror=R}),Pt(p,"link",s),i.instance=p}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&fb)===md&&(e.count++,i=qr.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}function im(e,t){return e.stylesheets&&e.count===0&&Vf(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var s=setTimeout(function(){if(e.stylesheets&&Vf(e,e.stylesheets),e.unsuspend){var p=e.unsuspend;e.unsuspend=null,p()}},X4+t);0<e.imgBytes&&jC===0&&(jC=125*_0()*J4);var h=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vf(e,e.stylesheets),e.unsuspend)){var p=e.unsuspend;e.unsuspend=null,p()}},(e.imgBytes>jC?50:Q4)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(h)}}:null}function qr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Vf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,PS=new Map,t.forEach(jg,e),PS=null,qr.call(e))}function jg(e,t){if(!(t.state.loading&ji)){var i=PS.get(e);if(i)var s=i.get(eE);else{i=new Map,PS.set(e,i);for(var h=e.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<h.length;p++){var T=h[p];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(i.set(T.dataset.precedence,T),s=T)}s&&i.set(eE,s)}h=t.instance,T=h.getAttribute("data-precedence"),p=i.get(T)||s,p===s&&i.set(eE,h),i.set(T,h),this.count++,s=qr.bind(this),h.addEventListener("load",s),h.addEventListener("error",s),p?p.parentNode.insertBefore(h,p.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(h,e.firstChild)),t.state.loading|=ji}}function Lf(e,t,i,s,h,p,T,_,R){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=hd,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Od(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Od(0),this.hiddenUpdates=Od(null),this.identifierPrefix=s,this.onUncaughtError=h,this.onCaughtError=p,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=i?"hydrateRoot()":"createRoot()"}function Hf(e,t,i,s,h,p,T,_,R,x,B,G){return e=new Lf(e,t,i,T,R,x,B,G,_),t=y4,p===!0&&(t|=Bl|xo),t|=lt,p=z(3,null,null,t),e.current=p,p.stateNode=e,t=ah(),Xu(t),e.pooledCache=t,Xu(t),p.memoizedState={element:s,isDehydrated:i,cache:t},ct(p),e}function X0(e){return e?(e=nc,e):nc}function om(e,t,i,s,h,p){if(Un&&typeof Un.onScheduleFiberRoot=="function")try{Un.onScheduleFiberRoot(Cs,s,i)}catch(T){Gi||(Gi=!0,console.error("React instrumentation encountered an error: %o",T))}h=X0(h),s.context===null?s.context=h:s.pendingContext=h,qi&&Hl!==null&&!gb&&(gb=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
228
+
229
+ Check the render method of %s.`,ue(Hl)||"Unknown")),s=Rn(t),s.payload={element:i},p=p===void 0?null:p,p!==null&&(typeof p!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",p),s.callback=p),i=Ci(e,s,t),i!==null&&(vi(t,"root.render()",null),Ye(i,e,t),Ea(i,e,t))}function Q0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function ey(e,t){Q0(e,t),(e=e.alternate)&&Q0(e,t)}function ty(e){if(e.tag===13||e.tag===31){var t=ll(e,67108864);t!==null&&Ye(t,e,67108864),ey(e,67108864)}}function ny(e){if(e.tag===13||e.tag===31){var t=il(e);t=xu(t);var i=ll(e,t);i!==null&&Ye(i,e,t),ey(e,t)}}function Vt(){return Hl}function ly(e,t,i,s){var h=$.T;$.T=null;var p=At.p;try{At.p=Nn,ay(e,t,i,s)}finally{At.p=p,$.T=h}}function Wn(e,t,i,s){var h=$.T;$.T=null;var p=At.p;try{At.p=el,ay(e,t,i,s)}finally{At.p=p,$.T=h}}function ay(e,t,i,s){if(jS){var h=um(s);if(h===null)$a(e,t,s,eT,i),rm(e,s);else if(J0(h,e,t,i,s))s.stopPropagation();else if(rm(e,s),t&4&&-1<F4.indexOf(e)){for(;h!==null;){var p=Na(h);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var T=Du(p.pendingLanes);if(T!==0){var _=p;for(_.pendingLanes|=2,_.entangledLanes|=2;T;){var R=1<<31-jn(T);_.entanglements[1]|=R,T&=~R}Ol(p),(St&(nl|oi))===cl&&(LS=In()+kA,wi(0))}}break;case 31:case 13:_=ll(p,2),_!==null&&Ye(_,p,2),na(),ey(p,2)}if(p=um(s),p===null&&$a(e,t,s,eT,i),p===h)break;h=p}h!==null&&s.stopPropagation()}else $a(e,t,s,null,i)}}function um(e){return e=wa(e),iy(e)}function iy(e){if(eT=null,e=ao(e),e!==null){var t=fe(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=de(t),e!==null)return e;e=null}else if(i===31){if(e=me(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return eT=e,null}function sm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Nn;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return el;case"message":switch(Zf()){case py:return Nn;case vm:return el;case Ts:case j0:return ul;case Sm:return Tu;default:return ul}default:return ul}}function rm(e,t){switch(e){case"focusin":case"focusout":vc=null;break;case"dragenter":case"dragleave":Sc=null;break;case"mouseover":case"mouseout":Tc=null;break;case"pointerover":case"pointerout":rv.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":cv.delete(t.pointerId)}}function gu(e,t,i,s,h,p){return e===null||e.nativeEvent!==p?(e={blockedOn:t,domEventName:i,eventSystemFlags:s,nativeEvent:p,targetContainers:[h]},t!==null&&(t=Na(t),t!==null&&ty(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,h!==null&&t.indexOf(h)===-1&&t.push(h),e)}function J0(e,t,i,s,h){switch(t){case"focusin":return vc=gu(vc,e,t,i,s,h),!0;case"dragenter":return Sc=gu(Sc,e,t,i,s,h),!0;case"mouseover":return Tc=gu(Tc,e,t,i,s,h),!0;case"pointerover":var p=h.pointerId;return rv.set(p,gu(rv.get(p)||null,e,t,i,s,h)),!0;case"gotpointercapture":return p=h.pointerId,cv.set(p,gu(cv.get(p)||null,e,t,i,s,h)),!0}return!1}function oy(e){var t=ao(e.target);if(t!==null){var i=fe(t);if(i!==null){if(t=i.tag,t===13){if(t=de(i),t!==null){e.blockedOn=t,wv(e.priority,function(){ny(i)});return}}else if(t===31){if(t=me(i),t!==null){e.blockedOn=t,wv(e.priority,function(){ny(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Gr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=um(e.nativeEvent);if(i===null){i=e.nativeEvent;var s=new i.constructor(i.type,i),h=s;Ty!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Ty=h,i.target.dispatchEvent(s),Ty===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Ty=null}else return t=Na(i),t!==null&&ty(t),e.blockedOn=i,!1;t.shift()}return!0}function cm(e,t,i){Gr(e)&&i.delete(t)}function YT(){tE=!1,vc!==null&&Gr(vc)&&(vc=null),Sc!==null&&Gr(Sc)&&(Sc=null),Tc!==null&&Gr(Tc)&&(Tc=null),rv.forEach(cm),cv.forEach(cm)}function Bf(e,t){e.blockedOn===t&&(e.blockedOn=null,tE||(tE=!0,Tn.unstable_scheduleCallback(Tn.unstable_NormalPriority,YT)))}function K0(e){tT!==e&&(tT=e,Tn.unstable_scheduleCallback(Tn.unstable_NormalPriority,function(){tT===e&&(tT=null);for(var t=0;t<e.length;t+=3){var i=e[t],s=e[t+1],h=e[t+2];if(typeof s!="function"){if(iy(s||i)===null)continue;break}var p=Na(i);p!==null&&(e.splice(t,3),t-=3,i={pending:!0,data:h,method:i.method,action:s},Object.freeze(i),vo(p,i,s,h))}}))}function ys(e){function t(R){return Bf(R,e)}vc!==null&&Bf(vc,e),Sc!==null&&Bf(Sc,e),Tc!==null&&Bf(Tc,e),rv.forEach(t),cv.forEach(t);for(var i=0;i<Cc.length;i++){var s=Cc[i];s.blockedOn===e&&(s.blockedOn=null)}for(;0<Cc.length&&(i=Cc[0],i.blockedOn===null);)oy(i),i.blockedOn===null&&Cc.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(s=0;s<i.length;s+=3){var h=i[s],p=i[s+1],T=h[Rl]||null;if(typeof p=="function")T||K0(i);else if(T){var _=null;if(p&&p.hasAttribute("formAction")){if(h=p,T=p[Rl]||null)_=T.formAction;else if(iy(h)!==null)continue}else _=T.action;typeof _=="function"?i[s+1]=_:(i.splice(s,3),s-=3),K0(i)}}}function F0(){function e(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(T){return h=T})},focusReset:"manual",scroll:"manual"})}function t(){h!==null&&(h(),h=null),s||setTimeout(i,20)}function i(){if(!s&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,h=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),h!==null&&(h(),h=null)}}}function uy(e){this._internalRoot=e}function ja(e){this._internalRoot=e}function sy(e){e[Do]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Tn=sE(),qf=Mn,IT=gd,nt=Object.assign,$0=Symbol.for("react.element"),Ma=Symbol.for("react.transitional.element"),yu=Symbol.for("react.portal"),Yr=Symbol.for("react.fragment"),Ml=Symbol.for("react.strict_mode"),Gf=Symbol.for("react.profiler"),fm=Symbol.for("react.consumer"),ei=Symbol.for("react.context"),Ir=Symbol.for("react.forward_ref"),vs=Symbol.for("react.suspense"),Ll=Symbol.for("react.suspense_list"),Yf=Symbol.for("react.memo"),ol=Symbol.for("react.lazy"),ti=Symbol.for("react.activity"),ZT=Symbol.for("react.memo_cache_sentinel"),P0=Symbol.iterator,Zr=Symbol.for("react.client.reference"),An=Array.isArray,$=qf.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,At=IT.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,kT=Object.freeze({pending:!1,data:null,method:null,action:null}),ry=[],cy=[],Ro=-1,vu=ht(null),kr=ht(null),aa=ht(null),Su=ht(null),Xr=0,W0,Ss,Qr,fy,If,dm,hm;qe.__reactDisabledLog=!0;var Jr,dy,mm=!1,hy=new(typeof WeakMap=="function"?WeakMap:Map),Hl=null,qi=!1,ia=Object.prototype.hasOwnProperty,my=Tn.unstable_scheduleCallback,pm=Tn.unstable_cancelCallback,gm=Tn.unstable_shouldYield,ym=Tn.unstable_requestPaint,In=Tn.unstable_now,Zf=Tn.unstable_getCurrentPriorityLevel,py=Tn.unstable_ImmediatePriority,vm=Tn.unstable_UserBlockingPriority,Ts=Tn.unstable_NormalPriority,j0=Tn.unstable_LowPriority,Sm=Tn.unstable_IdlePriority,gy=Tn.log,eS=Tn.unstable_setDisableYieldValue,Cs=null,Un=null,Gi=!1,Yi=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",jn=Math.clz32?Math.clz32:hp,yy=Math.log,Tm=Math.LN2,Kr=256,kf=262144,Fr=4194304,Nn=2,el=8,ul=32,Tu=268435456,Ra=Math.random().toString(36).slice(2),Wt="__reactFiber$"+Ra,Rl="__reactProps$"+Ra,Do="__reactContainer$"+Ra,Es="__reactEvents$"+Ra,XT="__reactListeners$"+Ra,tS="__reactHandles$"+Ra,Xf="__reactResources$"+Ra,$r="__reactMarker$"+Ra,nS=new Set,Ii={},Pr={},lS={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Wr=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),vy={},Cm={},Em=/[\n"\\]/g,Sy=!1,aS=!1,Qf=!1,n=!1,o=!1,u=!1,d=["value","defaultValue"],v=!1,S=/["'&<>\n\t]|^\s|\s$/,M="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),U="applet caption html table td th marquee object template foreignObject desc title".split(" "),L=U.concat(["button"]),X="dd dt li option optgroup p rp rt".split(" "),W={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},ne={},Q={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},P=/([A-Z])/g,Se=/^ms-/,Ve=/^(?:webkit|moz|o)[A-Z]/,Lt=/^-ms-/,I=/-(.)/g,q=/;\s*$/,k={},te={},xe=!1,vt=!1,Ee=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Ke="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",Ct=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ni={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},iS={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},_m={},xz=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Uz=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),v1=!1,oa={},S1=/^on./,Nz=/^on[^A-Z]/,zz=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Oz=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),wz=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Ty=null,Am=null,bm=null,QT=!1,Cu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),JT=!1;if(Cu)try{var Cy={};Object.defineProperty(Cy,"passive",{get:function(){JT=!0}}),window.addEventListener("test",Cy,Cy),window.removeEventListener("test",Cy,Cy)}catch{JT=!1}var jr=null,KT=null,oS=null,Jf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uS=Vn(Jf),Ey=nt({},Jf,{view:0,detail:0}),Vz=Vn(Ey),FT,$T,_y,sS=nt({},Ey,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==_y&&(_y&&e.type==="mousemove"?(FT=e.screenX-_y.screenX,$T=e.screenY-_y.screenY):$T=FT=0,_y=e),FT)},movementY:function(e){return"movementY"in e?e.movementY:$T}}),T1=Vn(sS),Lz=nt({},sS,{dataTransfer:0}),Hz=Vn(Lz),Bz=nt({},Ey,{relatedTarget:0}),PT=Vn(Bz),qz=nt({},Jf,{animationName:0,elapsedTime:0,pseudoElement:0}),Gz=Vn(qz),Yz=nt({},Jf,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Iz=Vn(Yz),Zz=nt({},Jf,{data:0}),C1=Vn(Zz),kz=C1,Xz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qz={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Jz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Kz=nt({},Ey,{key:function(e){if(e.key){var t=Xz[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Qz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lc,charCode:function(e){return e.type==="keypress"?Vc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fz=Vn(Kz),$z=nt({},sS,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),E1=Vn($z),Pz=nt({},Ey,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lc}),Wz=Vn(Pz),jz=nt({},Jf,{propertyName:0,elapsedTime:0,pseudoElement:0}),e4=Vn(jz),t4=nt({},sS,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),n4=Vn(t4),l4=nt({},Jf,{newState:0,oldState:0}),a4=Vn(l4),i4=[9,13,27,32],_1=229,WT=Cu&&"CompositionEvent"in window,Ay=null;Cu&&"documentMode"in document&&(Ay=document.documentMode);var o4=Cu&&"TextEvent"in window&&!Ay,A1=Cu&&(!WT||Ay&&8<Ay&&11>=Ay),b1=32,M1=String.fromCharCode(b1),R1=!1,Mm=!1,u4={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},by=null,My=null,D1=!1;Cu&&(D1=Jd("input")&&(!document.documentMode||9<document.documentMode));var ua=typeof Object.is=="function"?Object.is:Kd,s4=Cu&&"documentMode"in document&&11>=document.documentMode,Rm=null,jT=null,Ry=null,eC=!1,Dm={animationend:Hu("Animation","AnimationEnd"),animationiteration:Hu("Animation","AnimationIteration"),animationstart:Hu("Animation","AnimationStart"),transitionrun:Hu("Transition","TransitionRun"),transitionstart:Hu("Transition","TransitionStart"),transitioncancel:Hu("Transition","TransitionCancel"),transitionend:Hu("Transition","TransitionEnd")},tC={},x1={};Cu&&(x1=document.createElement("div").style,"AnimationEvent"in window||(delete Dm.animationend.animation,delete Dm.animationiteration.animation,delete Dm.animationstart.animation),"TransitionEvent"in window||delete Dm.transitionend.transition);var U1=Bu("animationend"),N1=Bu("animationiteration"),z1=Bu("animationstart"),r4=Bu("transitionrun"),c4=Bu("transitionstart"),f4=Bu("transitioncancel"),O1=Bu("transitionend"),w1=new Map,nC="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");nC.push("scrollEnd");var V1=0;if(typeof performance=="object"&&typeof performance.now=="function")var d4=performance,L1=function(){return d4.now()};else{var h4=Date;L1=function(){return h4.now()}}var lC=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},m4="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",rS=0,aC=1,iC=2,oC=3,cS="– ",fS="+ ",H1="  ",jt=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Zi="Components ⚛",mt="Scheduler ⚛",gt="Blocking",ec=!1,_s={color:"primary",properties:null,tooltipText:"",track:Zi},tc={start:-0,end:-0,detail:{devtools:_s}},p4=["Changed Props",""],B1="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",g4=["Changed Props",B1],Dy=1,As=2,ki=[],xm=0,uC=0,nc={};Object.freeze(nc);var Xi=null,Um=null,Ge=0,y4=1,lt=2,Bl=8,xo=16,v4=32,q1=!1;try{var G1=Object.preventExtensions({})}catch{q1=!0}var sC=new WeakMap,Nm=[],zm=0,dS=null,xy=0,Qi=[],Ji=0,Kf=null,bs=1,Ms="",Dl=null,en=null,dt=!1,Eu=!1,li=null,lc=null,Ki=!1,rC=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),cC=ht(null),fC=ht(null),Y1={},hS=null,Om=null,wm=!1,S4=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},T4=Tn.unstable_scheduleCallback,C4=Tn.unstable_NormalPriority,Zn={$$typeof:ei,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},kn=Tn.unstable_now,mS=console.createTask?console.createTask:function(){return null},Uy=1,pS=2,sl=-0,ac=-0,Rs=-0,Ds=null,sa=-1.1,Ff=-0,hn=-0,ze=-1.1,Le=-1.1,un=null,Cn=!1,$f=-0,_u=-1.1,Ny=null,ic=0,dC=null,hC=null,Pf=-1.1,zy=null,Vm=-1.1,gS=-1.1,xs=-0,Us=-1.1,Fi=-1.1,mC=0,Oy=null,I1=null,Z1=null,oc=-1.1,Wf=null,uc=-1.1,yS=-1.1,k1=-0,X1=-0,vS=0,E4=null,Q1=0,wy=-1.1,SS=!1,TS=!1,Vy=null,pC=0,jf=0,Lm=null,J1=$.S;$.S=function(e,t){if(IA=In(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>Us&&0>Fi){Us=kn();var i=wr(),s=Hi();(i!==uc||s!==Wf)&&(uc=-1.1),oc=i,Wf=s}co(e,t)}J1!==null&&J1(e,t)};var ed=ht(null),Uo={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Ly=[],Hy=[],By=[],qy=[],Gy=[],Yy=[],td=new Set;Uo.recordUnsafeLifecycleWarnings=function(e,t){td.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Ly.push(e),e.mode&Bl&&typeof t.UNSAFE_componentWillMount=="function"&&Hy.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&By.push(e),e.mode&Bl&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&qy.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Gy.push(e),e.mode&Bl&&typeof t.UNSAFE_componentWillUpdate=="function"&&Yy.push(e))},Uo.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Ly.length&&(Ly.forEach(function(_){e.add(ue(_)||"Component"),td.add(_.type)}),Ly=[]);var t=new Set;0<Hy.length&&(Hy.forEach(function(_){t.add(ue(_)||"Component"),td.add(_.type)}),Hy=[]);var i=new Set;0<By.length&&(By.forEach(function(_){i.add(ue(_)||"Component"),td.add(_.type)}),By=[]);var s=new Set;0<qy.length&&(qy.forEach(function(_){s.add(ue(_)||"Component"),td.add(_.type)}),qy=[]);var h=new Set;0<Gy.length&&(Gy.forEach(function(_){h.add(ue(_)||"Component"),td.add(_.type)}),Gy=[]);var p=new Set;if(0<Yy.length&&(Yy.forEach(function(_){p.add(ue(_)||"Component"),td.add(_.type)}),Yy=[]),0<t.size){var T=N(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
230
+
231
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
232
+
233
+ Please update the following components: %s`,T)}0<s.size&&(T=N(s),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
234
+
235
+ * Move data fetching code or side effects to componentDidUpdate.
236
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
237
+
238
+ Please update the following components: %s`,T)),0<p.size&&(T=N(p),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
239
+
240
+ * Move data fetching code or side effects to componentDidUpdate.
241
+
242
+ Please update the following components: %s`,T)),0<e.size&&(T=N(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
243
+
244
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
245
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
246
+
247
+ Please update the following components: %s`,T)),0<i.size&&(T=N(i),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
248
+
249
+ * Move data fetching code or side effects to componentDidUpdate.
250
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
251
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
252
+
253
+ Please update the following components: %s`,T)),0<h.size&&(T=N(h),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
254
+
255
+ * Move data fetching code or side effects to componentDidUpdate.
256
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
257
+
258
+ Please update the following components: %s`,T))};var CS=new Map,K1=new Set;Uo.recordLegacyContextWarning=function(e,t){for(var i=null,s=e;s!==null;)s.mode&Bl&&(i=s),s=s.return;i===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!K1.has(e.type)&&(s=CS.get(i),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(s===void 0&&(s=[],CS.set(i,s)),s.push(e))},Uo.flushLegacyContextWarning=function(){CS.forEach(function(e){if(e.length!==0){var t=e[0],i=new Set;e.forEach(function(h){i.add(ue(h)||"Component"),K1.add(h.type)});var s=N(i);ye(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
259
+
260
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
261
+
262
+ Please update the following components: %s
263
+
264
+ Learn more about this warning here: https://react.dev/link/legacy-context`,s)})}})},Uo.discardPendingWarnings=function(){Ly=[],Hy=[],By=[],qy=[],Gy=[],Yy=[],CS=new Map};var F1={react_stack_bottom_frame:function(e,t,i){var s=qi;qi=!0;try{return e(t,i)}finally{qi=s}}},gC=F1.react_stack_bottom_frame.bind(F1),$1={react_stack_bottom_frame:function(e){var t=qi;qi=!0;try{return e.render()}finally{qi=t}}},P1=$1.react_stack_bottom_frame.bind($1),W1={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(i){We(e,e.return,i)}}},yC=W1.react_stack_bottom_frame.bind(W1),j1={react_stack_bottom_frame:function(e,t,i,s,h){try{t.componentDidUpdate(i,s,h)}catch(p){We(e,e.return,p)}}},eA=j1.react_stack_bottom_frame.bind(j1),tA={react_stack_bottom_frame:function(e,t){var i=t.stack;e.componentDidCatch(t.value,{componentStack:i!==null?i:""})}},_4=tA.react_stack_bottom_frame.bind(tA),nA={react_stack_bottom_frame:function(e,t,i){try{i.componentWillUnmount()}catch(s){We(e,t,s)}}},lA=nA.react_stack_bottom_frame.bind(nA),aA={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},A4=aA.react_stack_bottom_frame.bind(aA),iA={react_stack_bottom_frame:function(e,t,i){try{i()}catch(s){We(e,t,s)}}},b4=iA.react_stack_bottom_frame.bind(iA),oA={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},M4=oA.react_stack_bottom_frame.bind(oA),Hm=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),vC=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),ES=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),_S={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},nd=null,Iy=!1,Bm=null,Zy=0,at=null,SC,uA=SC=!1,sA={},rA={},cA={};D=function(e,t,i){if(i!==null&&typeof i=="object"&&i._store&&(!i._store.validated&&i.key==null||i._store.validated===2)){if(typeof i._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");i._store.validated=1;var s=ue(e),h=s||"null";if(!sA[h]){sA[h]=!0,i=i._owner,e=e._debugOwner;var p="";e&&typeof e.tag=="number"&&(h=ue(e))&&(p=`
265
+
266
+ Check the render method of \``+h+"`."),p||s&&(p=`
267
+
268
+ Check the top-level render call using <`+s+">.");var T="";i!=null&&e!==i&&(s=null,typeof i.tag=="number"?s=ue(i):typeof i.name=="string"&&(s=i.name),s&&(T=" It was passed a child from "+s+".")),ye(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',p,T)})}}};var ld=Hn(!0),fA=Hn(!1),dA=0,hA=1,mA=2,TC=3,sc=!1,pA=!1,CC=null,EC=!1,qm=ht(null),AS=ht(0),ai=ht(null),$i=null,Gm=1,ky=2,zn=ht(0),bS=0,Pi=1,ra=2,ii=4,ca=8,Ym,gA=new Set,yA=new Set,_C=new Set,vA=new Set,Ns=0,Xe=null,Zt=null,Xn=null,MS=!1,Im=!1,ad=!1,RS=0,Xy=0,zs=null,R4=0,D4=25,K=null,Wi=null,Os=-1,Qy=!1,Jy={readContext:Et,use:po,useCallback:fn,useContext:fn,useEffect:fn,useImperativeHandle:fn,useLayoutEffect:fn,useInsertionEffect:fn,useMemo:fn,useReducer:fn,useRef:fn,useState:fn,useDebugValue:fn,useDeferredValue:fn,useTransition:fn,useSyncExternalStore:fn,useId:fn,useHostTransitionStatus:fn,useFormState:fn,useActionState:fn,useOptimistic:fn,useMemoCache:fn,useCacheRefresh:fn};Jy.useEffectEvent=fn;var AC=null,SA=null,bC=null,TA=null,Au=null,No=null,DS=null;AC={readContext:function(e){return Et(e)},use:po,useCallback:function(e,t){return K="useCallback",ke(),mo(t),ph(e,t)},useContext:function(e){return K="useContext",ke(),Et(e)},useEffect:function(e,t){return K="useEffect",ke(),mo(t),ts(e,t)},useImperativeHandle:function(e,t,i){return K="useImperativeHandle",ke(),mo(i),bi(e,t,i)},useInsertionEffect:function(e,t){K="useInsertionEffect",ke(),mo(t),iu(4,ra,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",ke(),mo(t),vl(e,t)},useMemo:function(e,t){K="useMemo",ke(),mo(t);var i=$.H;$.H=Au;try{return Sl(e,t)}finally{$.H=i}},useReducer:function(e,t,i){K="useReducer",ke();var s=$.H;$.H=Au;try{return cr(e,t,i)}finally{$.H=s}},useRef:function(e){return K="useRef",ke(),mh(e)},useState:function(e){K="useState",ke();var t=$.H;$.H=Au;try{return tu(e)}finally{$.H=t}},useDebugValue:function(){K="useDebugValue",ke()},useDeferredValue:function(e,t){return K="useDeferredValue",ke(),pr(e,t)},useTransition:function(){return K="useTransition",ke(),ou()},useSyncExternalStore:function(e,t,i){return K="useSyncExternalStore",ke(),fr(e,t,i)},useId:function(){return K="useId",ke(),uf()},useFormState:function(e,t){return K="useFormState",ke(),Fc(),Pl(e,t)},useActionState:function(e,t){return K="useActionState",ke(),Pl(e,t)},useOptimistic:function(e){return K="useOptimistic",ke(),es(e)},useHostTransitionStatus:So,useMemoCache:Fl,useCacheRefresh:function(){return K="useCacheRefresh",ke(),gh()},useEffectEvent:function(e){return K="useEffectEvent",ke(),af(e)}},SA={readContext:function(e){return Et(e)},use:po,useCallback:function(e,t){return K="useCallback",ae(),ph(e,t)},useContext:function(e){return K="useContext",ae(),Et(e)},useEffect:function(e,t){return K="useEffect",ae(),ts(e,t)},useImperativeHandle:function(e,t,i){return K="useImperativeHandle",ae(),bi(e,t,i)},useInsertionEffect:function(e,t){K="useInsertionEffect",ae(),iu(4,ra,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",ae(),vl(e,t)},useMemo:function(e,t){K="useMemo",ae();var i=$.H;$.H=Au;try{return Sl(e,t)}finally{$.H=i}},useReducer:function(e,t,i){K="useReducer",ae();var s=$.H;$.H=Au;try{return cr(e,t,i)}finally{$.H=s}},useRef:function(e){return K="useRef",ae(),mh(e)},useState:function(e){K="useState",ae();var t=$.H;$.H=Au;try{return tu(e)}finally{$.H=t}},useDebugValue:function(){K="useDebugValue",ae()},useDeferredValue:function(e,t){return K="useDeferredValue",ae(),pr(e,t)},useTransition:function(){return K="useTransition",ae(),ou()},useSyncExternalStore:function(e,t,i){return K="useSyncExternalStore",ae(),fr(e,t,i)},useId:function(){return K="useId",ae(),uf()},useActionState:function(e,t){return K="useActionState",ae(),Pl(e,t)},useFormState:function(e,t){return K="useFormState",ae(),Fc(),Pl(e,t)},useOptimistic:function(e){return K="useOptimistic",ae(),es(e)},useHostTransitionStatus:So,useMemoCache:Fl,useCacheRefresh:function(){return K="useCacheRefresh",ae(),gh()},useEffectEvent:function(e){return K="useEffectEvent",ae(),af(e)}},bC={readContext:function(e){return Et(e)},use:po,useCallback:function(e,t){return K="useCallback",ae(),Xa(e,t)},useContext:function(e){return K="useContext",ae(),Et(e)},useEffect:function(e,t){K="useEffect",ae(),Dn(2048,ca,e,t)},useImperativeHandle:function(e,t,i){return K="useImperativeHandle",ae(),mr(e,t,i)},useInsertionEffect:function(e,t){return K="useInsertionEffect",ae(),Dn(4,ra,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",ae(),Dn(4,ii,e,t)},useMemo:function(e,t){K="useMemo",ae();var i=$.H;$.H=No;try{return $t(e,t)}finally{$.H=i}},useReducer:function(e,t,i){K="useReducer",ae();var s=$.H;$.H=No;try{return Pu(e,t,i)}finally{$.H=s}},useRef:function(){return K="useRef",ae(),Rt().memoizedState},useState:function(){K="useState",ae();var e=$.H;$.H=No;try{return Pu($l)}finally{$.H=e}},useDebugValue:function(){K="useDebugValue",ae()},useDeferredValue:function(e,t){return K="useDeferredValue",ae(),Mi(e,t)},useTransition:function(){return K="useTransition",ae(),l0()},useSyncExternalStore:function(e,t,i){return K="useSyncExternalStore",ae(),ju(e,t,i)},useId:function(){return K="useId",ae(),Rt().memoizedState},useFormState:function(e){return K="useFormState",ae(),Fc(),lu(e)},useActionState:function(e){return K="useActionState",ae(),lu(e)},useOptimistic:function(e,t){return K="useOptimistic",ae(),tf(e,t)},useHostTransitionStatus:So,useMemoCache:Fl,useCacheRefresh:function(){return K="useCacheRefresh",ae(),Rt().memoizedState},useEffectEvent:function(e){return K="useEffectEvent",ae(),hr(e)}},TA={readContext:function(e){return Et(e)},use:po,useCallback:function(e,t){return K="useCallback",ae(),Xa(e,t)},useContext:function(e){return K="useContext",ae(),Et(e)},useEffect:function(e,t){K="useEffect",ae(),Dn(2048,ca,e,t)},useImperativeHandle:function(e,t,i){return K="useImperativeHandle",ae(),mr(e,t,i)},useInsertionEffect:function(e,t){return K="useInsertionEffect",ae(),Dn(4,ra,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",ae(),Dn(4,ii,e,t)},useMemo:function(e,t){K="useMemo",ae();var i=$.H;$.H=DS;try{return $t(e,t)}finally{$.H=i}},useReducer:function(e,t,i){K="useReducer",ae();var s=$.H;$.H=DS;try{return Wu(e,t,i)}finally{$.H=s}},useRef:function(){return K="useRef",ae(),Rt().memoizedState},useState:function(){K="useState",ae();var e=$.H;$.H=DS;try{return Wu($l)}finally{$.H=e}},useDebugValue:function(){K="useDebugValue",ae()},useDeferredValue:function(e,t){return K="useDeferredValue",ae(),$e(e,t)},useTransition:function(){return K="useTransition",ae(),ln()},useSyncExternalStore:function(e,t,i){return K="useSyncExternalStore",ae(),ju(e,t,i)},useId:function(){return K="useId",ae(),Rt().memoizedState},useFormState:function(e){return K="useFormState",ae(),Fc(),au(e)},useActionState:function(e){return K="useActionState",ae(),au(e)},useOptimistic:function(e,t){return K="useOptimistic",ae(),nf(e,t)},useHostTransitionStatus:So,useMemoCache:Fl,useCacheRefresh:function(){return K="useCacheRefresh",ae(),Rt().memoizedState},useEffectEvent:function(e){return K="useEffectEvent",ae(),hr(e)}},Au={readContext:function(e){return b(),Et(e)},use:function(e){return E(),po(e)},useCallback:function(e,t){return K="useCallback",E(),ke(),ph(e,t)},useContext:function(e){return K="useContext",E(),ke(),Et(e)},useEffect:function(e,t){return K="useEffect",E(),ke(),ts(e,t)},useImperativeHandle:function(e,t,i){return K="useImperativeHandle",E(),ke(),bi(e,t,i)},useInsertionEffect:function(e,t){K="useInsertionEffect",E(),ke(),iu(4,ra,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",E(),ke(),vl(e,t)},useMemo:function(e,t){K="useMemo",E(),ke();var i=$.H;$.H=Au;try{return Sl(e,t)}finally{$.H=i}},useReducer:function(e,t,i){K="useReducer",E(),ke();var s=$.H;$.H=Au;try{return cr(e,t,i)}finally{$.H=s}},useRef:function(e){return K="useRef",E(),ke(),mh(e)},useState:function(e){K="useState",E(),ke();var t=$.H;$.H=Au;try{return tu(e)}finally{$.H=t}},useDebugValue:function(){K="useDebugValue",E(),ke()},useDeferredValue:function(e,t){return K="useDeferredValue",E(),ke(),pr(e,t)},useTransition:function(){return K="useTransition",E(),ke(),ou()},useSyncExternalStore:function(e,t,i){return K="useSyncExternalStore",E(),ke(),fr(e,t,i)},useId:function(){return K="useId",E(),ke(),uf()},useFormState:function(e,t){return K="useFormState",E(),ke(),Pl(e,t)},useActionState:function(e,t){return K="useActionState",E(),ke(),Pl(e,t)},useOptimistic:function(e){return K="useOptimistic",E(),ke(),es(e)},useMemoCache:function(e){return E(),Fl(e)},useHostTransitionStatus:So,useCacheRefresh:function(){return K="useCacheRefresh",ke(),gh()},useEffectEvent:function(e){return K="useEffectEvent",E(),ke(),af(e)}},No={readContext:function(e){return b(),Et(e)},use:function(e){return E(),po(e)},useCallback:function(e,t){return K="useCallback",E(),ae(),Xa(e,t)},useContext:function(e){return K="useContext",E(),ae(),Et(e)},useEffect:function(e,t){K="useEffect",E(),ae(),Dn(2048,ca,e,t)},useImperativeHandle:function(e,t,i){return K="useImperativeHandle",E(),ae(),mr(e,t,i)},useInsertionEffect:function(e,t){return K="useInsertionEffect",E(),ae(),Dn(4,ra,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",E(),ae(),Dn(4,ii,e,t)},useMemo:function(e,t){K="useMemo",E(),ae();var i=$.H;$.H=No;try{return $t(e,t)}finally{$.H=i}},useReducer:function(e,t,i){K="useReducer",E(),ae();var s=$.H;$.H=No;try{return Pu(e,t,i)}finally{$.H=s}},useRef:function(){return K="useRef",E(),ae(),Rt().memoizedState},useState:function(){K="useState",E(),ae();var e=$.H;$.H=No;try{return Pu($l)}finally{$.H=e}},useDebugValue:function(){K="useDebugValue",E(),ae()},useDeferredValue:function(e,t){return K="useDeferredValue",E(),ae(),Mi(e,t)},useTransition:function(){return K="useTransition",E(),ae(),l0()},useSyncExternalStore:function(e,t,i){return K="useSyncExternalStore",E(),ae(),ju(e,t,i)},useId:function(){return K="useId",E(),ae(),Rt().memoizedState},useFormState:function(e){return K="useFormState",E(),ae(),lu(e)},useActionState:function(e){return K="useActionState",E(),ae(),lu(e)},useOptimistic:function(e,t){return K="useOptimistic",E(),ae(),tf(e,t)},useMemoCache:function(e){return E(),Fl(e)},useHostTransitionStatus:So,useCacheRefresh:function(){return K="useCacheRefresh",ae(),Rt().memoizedState},useEffectEvent:function(e){return K="useEffectEvent",E(),ae(),hr(e)}},DS={readContext:function(e){return b(),Et(e)},use:function(e){return E(),po(e)},useCallback:function(e,t){return K="useCallback",E(),ae(),Xa(e,t)},useContext:function(e){return K="useContext",E(),ae(),Et(e)},useEffect:function(e,t){K="useEffect",E(),ae(),Dn(2048,ca,e,t)},useImperativeHandle:function(e,t,i){return K="useImperativeHandle",E(),ae(),mr(e,t,i)},useInsertionEffect:function(e,t){return K="useInsertionEffect",E(),ae(),Dn(4,ra,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",E(),ae(),Dn(4,ii,e,t)},useMemo:function(e,t){K="useMemo",E(),ae();var i=$.H;$.H=No;try{return $t(e,t)}finally{$.H=i}},useReducer:function(e,t,i){K="useReducer",E(),ae();var s=$.H;$.H=No;try{return Wu(e,t,i)}finally{$.H=s}},useRef:function(){return K="useRef",E(),ae(),Rt().memoizedState},useState:function(){K="useState",E(),ae();var e=$.H;$.H=No;try{return Wu($l)}finally{$.H=e}},useDebugValue:function(){K="useDebugValue",E(),ae()},useDeferredValue:function(e,t){return K="useDeferredValue",E(),ae(),$e(e,t)},useTransition:function(){return K="useTransition",E(),ae(),ln()},useSyncExternalStore:function(e,t,i){return K="useSyncExternalStore",E(),ae(),ju(e,t,i)},useId:function(){return K="useId",E(),ae(),Rt().memoizedState},useFormState:function(e){return K="useFormState",E(),ae(),au(e)},useActionState:function(e){return K="useActionState",E(),ae(),au(e)},useOptimistic:function(e,t){return K="useOptimistic",E(),ae(),nf(e,t)},useMemoCache:function(e){return E(),Fl(e)},useHostTransitionStatus:So,useCacheRefresh:function(){return K="useCacheRefresh",ae(),Rt().memoizedState},useEffectEvent:function(e){return K="useEffectEvent",E(),ae(),hr(e)}};var CA={},EA=new Set,_A=new Set,AA=new Set,bA=new Set,MA=new Set,RA=new Set,DA=new Set,xA=new Set,UA=new Set,NA=new Set;Object.freeze(CA);var MC={enqueueSetState:function(e,t,i){e=e._reactInternals;var s=il(e),h=Rn(s);h.payload=t,i!=null&&(is(i),h.callback=i),t=Ci(e,h,s),t!==null&&(vi(s,"this.setState()",e),Ye(t,e,s),Ea(t,e,s))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var s=il(e),h=Rn(s);h.tag=hA,h.payload=t,i!=null&&(is(i),h.callback=i),t=Ci(e,h,s),t!==null&&(vi(s,"this.replaceState()",e),Ye(t,e,s),Ea(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=il(e),s=Rn(i);s.tag=mA,t!=null&&(is(t),s.callback=t),t=Ci(e,s,i),t!==null&&(vi(i,"this.forceUpdate()",e),Ye(t,e,i),Ea(t,e,i))}},Zm=null,RC=null,DC=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Qn=!1,zA={},OA={},wA={},VA={},km=!1,LA={},xS={},xC={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},HA=!1,BA=null;BA=new Set;var ws=!1,Jn=!1,UC=!1,qA=typeof WeakSet=="function"?WeakSet:Set,rl=null,Xm=null,Qm=null,Kn=null,Da=!1,zo=null,tl=!1,Ky=8192,x4={getCacheForType:function(e){var t=Et(Zn),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return Et(Zn).controller.signal},getOwner:function(){return Hl}};if(typeof Symbol=="function"&&Symbol.for){var Fy=Symbol.for;Fy("selector.component"),Fy("selector.has_pseudo_class"),Fy("selector.role"),Fy("selector.test_id"),Fy("selector.text")}var U4=[],N4=typeof WeakMap=="function"?WeakMap:Map,cl=0,nl=2,oi=4,Vs=0,$y=1,id=2,US=3,rc=4,NS=6,GA=5,St=cl,kt=null,ut=null,it=0,xa=0,zS=1,od=2,Py=3,YA=4,NC=5,Wy=6,OS=7,zC=8,ud=9,Ht=xa,ui=null,cc=!1,Jm=!1,OC=!1,bu=0,mn=Vs,fc=0,dc=0,wC=0,Ua=0,sd=0,jy=null,fa=null,wS=!1,VS=0,IA=0,ZA=300,LS=1/0,kA=500,ev=null,bn=null,hc=null,HS=0,VC=1,LC=2,XA=3,mc=0,QA=1,JA=2,KA=3,FA=4,BS=5,Fn=0,pc=null,Km=null,Oo=0,HC=0,BC=-0,qC=null,$A=null,PA=null,wo=HS,WA=null,z4=50,tv=0,GC=null,YC=!1,qS=!1,O4=50,rd=0,nv=null,Fm=!1,GS=null,jA=!1,eb=new Set,w4={},YS=null,$m=null,IC=!1,ZC=!1,IS=!1,kC=!1,gc=0,XC={};(function(){for(var e=0;e<nC.length;e++){var t=nC[e],i=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Va(i,"on"+t)}Va(U1,"onAnimationEnd"),Va(N1,"onAnimationIteration"),Va(z1,"onAnimationStart"),Va("dblclick","onDoubleClick"),Va("focusin","onFocus"),Va("focusout","onBlur"),Va(r4,"onTransitionRun"),Va(c4,"onTransitionStart"),Va(f4,"onTransitionCancel"),Va(O1,"onTransitionEnd")})(),ks("onMouseEnter",["mouseout","mouseover"]),ks("onMouseLeave",["mouseout","mouseover"]),ks("onPointerEnter",["pointerout","pointerover"]),ks("onPointerLeave",["pointerout","pointerover"]),za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),za("onBeforeInput",["compositionend","keypress","textInput","paste"]),za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lv="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),QC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lv)),ZS="_reactListening"+Math.random().toString(36).slice(2),tb=!1,nb=!1,kS=!1,lb=!1,XS=!1,QS=!1,ab=!1,JS={},V4=/\r\n?/g,L4=/\u0000|\uFFFD/g,cd="http://www.w3.org/1999/xlink",JC="http://www.w3.org/XML/1998/namespace",H4="javascript:throw new Error('React form unexpectedly submitted.')",B4="suppressHydrationWarning",fd="&",KS="/&",av="$",iv="/$",yc="$?",dd="$~",Pm="$!",q4="html",G4="body",Y4="head",KC="F!",ib="F",ob="loading",I4="style",Ls=0,Wm=1,FS=2,FC=null,$C=null,ub={dialog:!0,webview:!0},PC=null,ov=void 0,sb=typeof setTimeout=="function"?setTimeout:void 0,Z4=typeof clearTimeout=="function"?clearTimeout:void 0,hd=-1,rb=typeof Promise=="function"?Promise:void 0,k4=typeof queueMicrotask=="function"?queueMicrotask:typeof rb<"u"?function(e){return rb.resolve(null).then(e).catch(b0)}:sb,WC=null,md=0,uv=1,cb=2,fb=3,ji=4,eo=new Map,db=new Set,Hs=At.d;At.d={f:function(){var e=Hs.f(),t=na();return e||t},r:function(e){var t=Na(e);t!==null&&t.tag===5&&t.type==="form"?gr(t):Hs.r(e)},D:function(e){Hs.D(e),Kg("dns-prefetch",e,null)},C:function(e,t){Hs.C(e,t),Kg("preconnect",e,t)},L:function(e,t,i){Hs.L(e,t,i);var s=jm;if(s&&e&&t){var h='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&i&&i.imageSrcSet?(h+='[imagesrcset="'+zt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(h+='[imagesizes="'+zt(i.imageSizes)+'"]')):h+='[href="'+zt(e)+'"]';var p=h;switch(t){case"style":p=ps(e);break;case"script":p=gs(e)}eo.has(p)||(e=nt({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),eo.set(p,e),s.querySelector(h)!==null||t==="style"&&s.querySelector(Of(p))||t==="script"&&s.querySelector(wf(p))||(t=s.createElement("link"),Pt(t,"link",e),pn(t),s.head.appendChild(t)))}},m:function(e,t){Hs.m(e,t);var i=jm;if(i&&e){var s=t&&typeof t.as=="string"?t.as:"script",h='link[rel="modulepreload"][as="'+zt(s)+'"][href="'+zt(e)+'"]',p=h;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=gs(e)}if(!eo.has(p)&&(e=nt({rel:"modulepreload",href:e},t),eo.set(p,e),i.querySelector(h)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(wf(p)))return}s=i.createElement("link"),Pt(s,"link",e),pn(s),i.head.appendChild(s)}}},X:function(e,t){Hs.X(e,t);var i=jm;if(i&&e){var s=ma(i).hoistableScripts,h=gs(e),p=s.get(h);p||(p=i.querySelector(wf(h)),p||(e=nt({src:e,async:!0},t),(t=eo.get(h))&&Pg(e,t),p=i.createElement("script"),pn(p),Pt(p,"link",e),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(h,p))}},S:function(e,t,i){Hs.S(e,t,i);var s=jm;if(s&&e){var h=ma(s).hoistableStyles,p=ps(e);t=t||"default";var T=h.get(p);if(!T){var _={loading:md,preload:null};if(T=s.querySelector(Of(p)))_.loading=uv|ji;else{e=nt({rel:"stylesheet",href:e,"data-precedence":t},i),(i=eo.get(p))&&$g(e,i);var R=T=s.createElement("link");pn(R),Pt(R,"link",e),R._p=new Promise(function(x,B){R.onload=x,R.onerror=B}),R.addEventListener("load",function(){_.loading|=uv}),R.addEventListener("error",function(){_.loading|=cb}),_.loading|=ji,Hr(T,t,s)}T={type:"stylesheet",instance:T,count:1,state:_},h.set(p,T)}}},M:function(e,t){Hs.M(e,t);var i=jm;if(i&&e){var s=ma(i).hoistableScripts,h=gs(e),p=s.get(h);p||(p=i.querySelector(wf(h)),p||(e=nt({src:e,async:!0,type:"module"},t),(t=eo.get(h))&&Pg(e,t),p=i.createElement("script"),pn(p),Pt(p,"link",e),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(h,p))}}};var jm=typeof document>"u"?null:document,$S=null,X4=6e4,Q4=800,J4=500,jC=0,eE=null,PS=null,pd=kT,sv={$$typeof:ei,Provider:null,Consumer:null,_currentValue:pd,_currentValue2:pd,_threadCount:0},hb="%c%s%c",mb="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",pb="",WS=" ",K4=Function.prototype.bind,gb=!1,yb=null,vb=null,Sb=null,Tb=null,Cb=null,Eb=null,_b=null,Ab=null,bb=null,Mb=null;yb=function(e,t,i,s){t=c(e,t),t!==null&&(i=l(t.memoizedState,i,0,s),t.memoizedState=i,t.baseState=i,e.memoizedProps=nt({},e.memoizedProps),i=ll(e,2),i!==null&&Ye(i,e,2))},vb=function(e,t,i){t=c(e,t),t!==null&&(i=f(t.memoizedState,i,0),t.memoizedState=i,t.baseState=i,e.memoizedProps=nt({},e.memoizedProps),i=ll(e,2),i!==null&&Ye(i,e,2))},Sb=function(e,t,i,s){t=c(e,t),t!==null&&(i=a(t.memoizedState,i,s),t.memoizedState=i,t.baseState=i,e.memoizedProps=nt({},e.memoizedProps),i=ll(e,2),i!==null&&Ye(i,e,2))},Tb=function(e,t,i){e.pendingProps=l(e.memoizedProps,t,0,i),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=ll(e,2),t!==null&&Ye(t,e,2)},Cb=function(e,t){e.pendingProps=f(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=ll(e,2),t!==null&&Ye(t,e,2)},Eb=function(e,t,i){e.pendingProps=a(e.memoizedProps,t,i),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=ll(e,2),t!==null&&Ye(t,e,2)},_b=function(e){var t=ll(e,2);t!==null&&Ye(t,e,2)},Ab=function(e){var t=zd(),i=ll(e,t);i!==null&&Ye(i,e,t)},bb=function(e){C=e},Mb=function(e){y=e};var jS=!0,eT=null,tE=!1,vc=null,Sc=null,Tc=null,rv=new Map,cv=new Map,Cc=[],F4="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),tT=null;if(ja.prototype.render=uy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var i=arguments;typeof i[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):se(i[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof i[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),i=e;var s=t.current,h=il(s);om(s,h,i,t,null,null)},ja.prototype.unmount=uy.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(St&(nl|oi))!==cl&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),om(e.current,2,null,e,null,null),na(),t[Do]=null}},ja.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ov();e={blockedOn:null,target:e,priority:t};for(var i=0;i<Cc.length&&t!==0&&t<Cc[i].priority;i++);Cc.splice(i,0,e),i===0&&oy(e)}},(function(){var e=qf.version;if(e!=="19.2.3")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
269
+ - react: `+(e+`
270
+ - react-dom: 19.2.3
271
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),At.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=Re(t),e=e!==null?Oe(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:$,reconcilerVersion:"19.2.3"};return e.overrideHookState=yb,e.overrideHookStateDeletePath=vb,e.overrideHookStateRenamePath=Sb,e.overrideProps=Tb,e.overridePropsDeletePath=Cb,e.overridePropsRenamePath=Eb,e.scheduleUpdate=_b,e.scheduleRetry=Ab,e.setErrorHandler=bb,e.setSuspenseHandler=Mb,e.scheduleRefresh=F,e.scheduleRoot=Z,e.setRefreshHandler=ie,e.getCurrentFiber=Vt,dp(e)})()&&Cu&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var Rb=window.location.protocol;/^(https?|file):$/.test(Rb)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(Rb==="file:"?`
272
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}lp.createRoot=function(e,t){if(!se(e))throw Error("Target container is not a DOM element.");sy(e);var i=!1,s="",h=Sh,p=Th,T=ng;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Ma&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
273
+
274
+ let root = createRoot(domContainer);
275
+ root.render(<App />);`),t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(h=t.onUncaughtError),t.onCaughtError!==void 0&&(p=t.onCaughtError),t.onRecoverableError!==void 0&&(T=t.onRecoverableError)),t=Hf(e,1,!1,null,null,i,s,null,h,p,T,F0),e[Do]=t.current,hu(e),new uy(t)},lp.hydrateRoot=function(e,t,i){if(!se(e))throw Error("Target container is not a DOM element.");sy(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var s=!1,h="",p=Sh,T=Th,_=ng,R=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(h=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(T=i.onCaughtError),i.onRecoverableError!==void 0&&(_=i.onRecoverableError),i.formState!==void 0&&(R=i.formState)),t=Hf(e,1,!0,t,i??null,s,h,R,p,T,_,F0),t.context=X0(null),i=t.current,s=il(i),s=xu(s),h=Rn(s),h.callback=null,Ci(i,h,s),vi(s,"hydrateRoot()",null),i=s,t.current.lanes=i,Bo(t,i),Ol(t),e[Do]=t.current,hu(e),new ja(t)},lp.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),lp}var fE;function Lb(){if(fE)return dv.exports;fE=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(l){console.error(l)}}}return process.env.NODE_ENV==="production"?(c(),dv.exports=wb()):dv.exports=Vb(),dv.exports}var Hb=Lb();const Bb=Db(Hb);/**
52
276
  * @license lucide-react v0.460.0 - ISC
53
277
  *
54
278
  * This source code is licensed under the ISC license.
55
279
  * See the LICENSE file in the root directory of this source tree.
56
- */const Cp=Ne("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
280
+ */const qb=c=>c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dE=(...c)=>c.filter((l,a,r)=>!!l&&l.trim()!==""&&r.indexOf(l)===a).join(" ").trim();/**
57
281
  * @license lucide-react v0.460.0 - ISC
58
282
  *
59
283
  * This source code is licensed under the ISC license.
60
284
  * See the LICENSE file in the root directory of this source tree.
61
- */const Ep=Ne("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
285
+ */var Gb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
62
286
  * @license lucide-react v0.460.0 - ISC
63
287
  *
64
288
  * This source code is licensed under the ISC license.
65
289
  * See the LICENSE file in the root directory of this source tree.
66
- */const Tp=Ne("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
290
+ */const Yb=Mn.forwardRef(({color:c="currentColor",size:l=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:f="",children:y,iconNode:C,...E},b)=>Mn.createElement("svg",{ref:b,...Gb,width:l,height:l,stroke:c,strokeWidth:r?Number(a)*24/Number(l):a,className:dE("lucide",f),...E},[...C.map(([A,D])=>Mn.createElement(A,D)),...Array.isArray(y)?y:[y]]));/**
67
291
  * @license lucide-react v0.460.0 - ISC
68
292
  *
69
293
  * This source code is licensed under the ISC license.
70
294
  * See the LICENSE file in the root directory of this source tree.
71
- */const gi=Ne("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
295
+ */const to=(c,l)=>{const a=Mn.forwardRef(({className:r,...f},y)=>Mn.createElement(Yb,{ref:y,iconNode:l,className:dE(`lucide-${qb(c)}`,r),...f}));return a.displayName=`${c}`,a};/**
72
296
  * @license lucide-react v0.460.0 - ISC
73
297
  *
74
298
  * This source code is licensed under the ISC license.
75
299
  * See the LICENSE file in the root directory of this source tree.
76
- */const wp=Ne("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
300
+ */const Ib=to("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
77
301
  * @license lucide-react v0.460.0 - ISC
78
302
  *
79
303
  * This source code is licensed under the ISC license.
80
304
  * See the LICENSE file in the root directory of this source tree.
81
- */const Sp=Ne("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
305
+ */const Zb=to("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
82
306
  * @license lucide-react v0.460.0 - ISC
83
307
  *
84
308
  * This source code is licensed under the ISC license.
85
309
  * See the LICENSE file in the root directory of this source tree.
86
- */const Ap=Ne("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
310
+ */const hE=to("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
87
311
  * @license lucide-react v0.460.0 - ISC
88
312
  *
89
313
  * This source code is licensed under the ISC license.
90
314
  * See the LICENSE file in the root directory of this source tree.
91
- */const bp=Ne("GitCommitHorizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/**
315
+ */const kb=to("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
92
316
  * @license lucide-react v0.460.0 - ISC
93
317
  *
94
318
  * This source code is licensed under the ISC license.
95
319
  * See the LICENSE file in the root directory of this source tree.
96
- */const Rp=Ne("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
320
+ */const Xb=to("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
97
321
  * @license lucide-react v0.460.0 - ISC
98
322
  *
99
323
  * This source code is licensed under the ISC license.
100
324
  * See the LICENSE file in the root directory of this source tree.
101
- */const Mp=Ne("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
325
+ */const Qb=to("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
102
326
  * @license lucide-react v0.460.0 - ISC
103
327
  *
104
328
  * This source code is licensed under the ISC license.
105
329
  * See the LICENSE file in the root directory of this source tree.
106
- */const ws=Ne("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
330
+ */const Jb=to("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
107
331
  * @license lucide-react v0.460.0 - ISC
108
332
  *
109
333
  * This source code is licensed under the ISC license.
110
334
  * See the LICENSE file in the root directory of this source tree.
111
- */const Ip=Ne("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
335
+ */const Kb=to("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
112
336
  * @license lucide-react v0.460.0 - ISC
113
337
  *
114
338
  * This source code is licensed under the ISC license.
115
339
  * See the LICENSE file in the root directory of this source tree.
116
- */const Pp=Ne("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
340
+ */const mE=to("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
117
341
  * @license lucide-react v0.460.0 - ISC
118
342
  *
119
343
  * This source code is licensed under the ISC license.
120
344
  * See the LICENSE file in the root directory of this source tree.
121
- */const kp=Ne("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
345
+ */const Fb=to("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
122
346
  * @license lucide-react v0.460.0 - ISC
123
347
  *
124
348
  * This source code is licensed under the ISC license.
125
349
  * See the LICENSE file in the root directory of this source tree.
126
- */const Np=Ne("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);var ae;(function(n){n.assertEqual=r=>{};function e(r){}n.assertIs=e;function t(r){throw new Error}n.assertNever=t,n.arrayToEnum=r=>{const o={};for(const l of r)o[l]=l;return o},n.getValidEnumValues=r=>{const o=n.objectKeys(r).filter(u=>typeof r[r[u]]!="number"),l={};for(const u of o)l[u]=r[u];return n.objectValues(l)},n.objectValues=r=>n.objectKeys(r).map(function(o){return r[o]}),n.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const o=[];for(const l in r)Object.prototype.hasOwnProperty.call(r,l)&&o.push(l);return o},n.find=(r,o)=>{for(const l of r)if(o(l))return l},n.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function i(r,o=" | "){return r.map(l=>typeof l=="string"?`'${l}'`:l).join(o)}n.joinValues=i,n.jsonStringifyReplacer=(r,o)=>typeof o=="bigint"?o.toString():o})(ae||(ae={}));var Ss;(function(n){n.mergeShapes=(e,t)=>({...e,...t})})(Ss||(Ss={}));const H=ae.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),St=n=>{switch(typeof n){case"undefined":return H.undefined;case"string":return H.string;case"number":return Number.isNaN(n)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(n)?H.array:n===null?H.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?H.promise:typeof Map<"u"&&n instanceof Map?H.map:typeof Set<"u"&&n instanceof Set?H.set:typeof Date<"u"&&n instanceof Date?H.date:H.object;default:return H.unknown}},L=ae.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ht extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(o){return o.message},i={_errors:[]},r=o=>{for(const l of o.issues)if(l.code==="invalid_union")l.unionErrors.map(r);else if(l.code==="invalid_return_type")r(l.returnTypeError);else if(l.code==="invalid_arguments")r(l.argumentsError);else if(l.path.length===0)i._errors.push(t(l));else{let u=i,c=0;for(;c<l.path.length;){const f=l.path[c];c===l.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(t(l))):u[f]=u[f]||{_errors:[]},u=u[f],c++}}};return r(this),i}static assert(e){if(!(e instanceof ht))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ae.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},i=[];for(const r of this.issues)if(r.path.length>0){const o=r.path[0];t[o]=t[o]||[],t[o].push(e(r))}else i.push(e(r));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}ht.create=n=>new ht(n);const gr=(n,e)=>{let t;switch(n.code){case L.invalid_type:n.received===H.undefined?t="Required":t=`Expected ${n.expected}, received ${n.received}`;break;case L.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(n.expected,ae.jsonStringifyReplacer)}`;break;case L.unrecognized_keys:t=`Unrecognized key(s) in object: ${ae.joinValues(n.keys,", ")}`;break;case L.invalid_union:t="Invalid input";break;case L.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${ae.joinValues(n.options)}`;break;case L.invalid_enum_value:t=`Invalid enum value. Expected ${ae.joinValues(n.options)}, received '${n.received}'`;break;case L.invalid_arguments:t="Invalid function arguments";break;case L.invalid_return_type:t="Invalid function return type";break;case L.invalid_date:t="Invalid date";break;case L.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(t=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?t=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?t=`Invalid input: must end with "${n.validation.endsWith}"`:ae.assertNever(n.validation):n.validation!=="regex"?t=`Invalid ${n.validation}`:t="Invalid";break;case L.too_small:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?t=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:t="Invalid input";break;case L.too_big:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?t=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:t="Invalid input";break;case L.custom:t="Invalid input";break;case L.invalid_intersection_types:t="Intersection results could not be merged";break;case L.not_multiple_of:t=`Number must be a multiple of ${n.multipleOf}`;break;case L.not_finite:t="Number must be finite";break;default:t=e.defaultError,ae.assertNever(n)}return{message:t}};let Dp=gr;function Lp(){return Dp}const Fp=n=>{const{data:e,path:t,errorMaps:i,issueData:r}=n,o=[...t,...r.path||[]],l={...r,path:o};if(r.message!==void 0)return{...r,path:o,message:r.message};let u="";const c=i.filter(f=>!!f).slice().reverse();for(const f of c)u=f(l,{data:e,defaultError:u}).message;return{...r,path:o,message:u}};function G(n,e){const t=Lp(),i=Fp({issueData:e,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,t,t===gr?void 0:gr].filter(r=>!!r)});n.common.issues.push(i)}class De{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const i=[];for(const r of t){if(r.status==="aborted")return j;r.status==="dirty"&&e.dirty(),i.push(r.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){const i=[];for(const r of t){const o=await r.key,l=await r.value;i.push({key:o,value:l})}return De.mergeObjectSync(e,i)}static mergeObjectSync(e,t){const i={};for(const r of t){const{key:o,value:l}=r;if(o.status==="aborted"||l.status==="aborted")return j;o.status==="dirty"&&e.dirty(),l.status==="dirty"&&e.dirty(),o.value!=="__proto__"&&(typeof l.value<"u"||r.alwaysSet)&&(i[o.value]=l.value)}return{status:e.value,value:i}}}const j=Object.freeze({status:"aborted"}),Dn=n=>({status:"dirty",value:n}),We=n=>({status:"valid",value:n}),As=n=>n.status==="aborted",bs=n=>n.status==="dirty",rn=n=>n.status==="valid",yi=n=>typeof Promise<"u"&&n instanceof Promise;var W;(function(n){n.errToObj=e=>typeof e=="string"?{message:e}:e||{},n.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(W||(W={}));class ot{constructor(e,t,i,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Rs=(n,e)=>{if(rn(e))return{success:!0,data:e.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new ht(n.common.issues);return this._error=t,this._error}}};function ie(n){if(!n)return{};const{errorMap:e,invalid_type_error:t,required_error:i,description:r}=n;if(e&&(t||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:r}:{errorMap:(l,u)=>{const{message:c}=n;return l.code==="invalid_enum_value"?{message:c??u.defaultError}:typeof u.data>"u"?{message:c??i??u.defaultError}:l.code!=="invalid_type"?{message:u.defaultError}:{message:c??t??u.defaultError}},description:r}}class se{get description(){return this._def.description}_getType(e){return St(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:St(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new De,ctx:{common:e.parent.common,data:e.data,parsedType:St(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(yi(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){const i={common:{issues:[],async:(t==null?void 0:t.async)??!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:St(e)},r=this._parseSync({data:e,path:i.path,parent:i});return Rs(i,r)}"~validate"(e){var i,r;const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:St(e)};if(!this["~standard"].async)try{const o=this._parseSync({data:e,path:[],parent:t});return rn(o)?{value:o.value}:{issues:t.common.issues}}catch(o){(r=(i=o==null?void 0:o.message)==null?void 0:i.toLowerCase())!=null&&r.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(o=>rn(o)?{value:o.value}:{issues:t.common.issues})}async parseAsync(e,t){const i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){const i={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:St(e)},r=this._parse({data:e,path:i.path,parent:i}),o=await(yi(r)?r:Promise.resolve(r));return Rs(i,o)}refine(e,t){const i=r=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(r):t;return this._refinement((r,o)=>{const l=e(r),u=()=>o.addIssue({code:L.custom,...i(r)});return typeof Promise<"u"&&l instanceof Promise?l.then(c=>c?!0:(u(),!1)):l?!0:(u(),!1)})}refinement(e,t){return this._refinement((i,r)=>e(i)?!0:(r.addIssue(typeof t=="function"?t(i,r):t),!1))}_refinement(e){return new ln({schema:this,typeName:Q.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return bt.create(this,this._def)}nullable(){return un.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return at.create(this)}promise(){return Ei.create(this,this._def)}or(e){return _i.create([this,e],this._def)}and(e){return xi.create(this,e,this._def)}transform(e){return new ln({...ie(this._def),schema:this,typeName:Q.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new Cr({...ie(this._def),innerType:this,defaultValue:t,typeName:Q.ZodDefault})}brand(){return new oh({typeName:Q.ZodBranded,type:this,...ie(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new Er({...ie(this._def),innerType:this,catchValue:t,typeName:Q.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return Tr.create(this,e)}readonly(){return wr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Vp=/^c[^\s-]{8,}$/i,Bp=/^[0-9a-z]+$/,Op=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Up=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,$p=/^[a-z0-9_-]{21}$/i,Gp=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,qp=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Hp=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Wp="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let yr;const zp=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Yp=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Kp=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Jp=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Zp=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Xp=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ms="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Qp=new RegExp(`^${Ms}$`);function Is(n){let e="[0-5]\\d";n.precision?e=`${e}\\.\\d{${n.precision}}`:n.precision==null&&(e=`${e}(\\.\\d+)?`);const t=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`}function jp(n){return new RegExp(`^${Is(n)}$`)}function eh(n){let e=`${Ms}T${Is(n)}`;const t=[];return t.push(n.local?"Z?":"Z"),n.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function th(n,e){return!!((e==="v4"||!e)&&zp.test(n)||(e==="v6"||!e)&&Kp.test(n))}function nh(n,e){if(!Gp.test(n))return!1;try{const[t]=n.split(".");if(!t)return!1;const i=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),r=JSON.parse(atob(i));return!(typeof r!="object"||r===null||"typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||e&&r.alg!==e)}catch{return!1}}function ih(n,e){return!!((e==="v4"||!e)&&Yp.test(n)||(e==="v6"||!e)&&Jp.test(n))}class st extends se{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==H.string){const o=this._getOrReturnCtx(e);return G(o,{code:L.invalid_type,expected:H.string,received:o.parsedType}),j}const i=new De;let r;for(const o of this._def.checks)if(o.kind==="min")e.data.length<o.value&&(r=this._getOrReturnCtx(e,r),G(r,{code:L.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="max")e.data.length>o.value&&(r=this._getOrReturnCtx(e,r),G(r,{code:L.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="length"){const l=e.data.length>o.value,u=e.data.length<o.value;(l||u)&&(r=this._getOrReturnCtx(e,r),l?G(r,{code:L.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):u&&G(r,{code:L.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind==="email")Hp.test(e.data)||(r=this._getOrReturnCtx(e,r),G(r,{validation:"email",code:L.invalid_string,message:o.message}),i.dirty());else if(o.kind==="emoji")yr||(yr=new RegExp(Wp,"u")),yr.test(e.data)||(r=this._getOrReturnCtx(e,r),G(r,{validation:"emoji",code:L.invalid_string,message:o.message}),i.dirty());else if(o.kind==="uuid")Up.test(e.data)||(r=this._getOrReturnCtx(e,r),G(r,{validation:"uuid",code:L.invalid_string,message:o.message}),i.dirty());else if(o.kind==="nanoid")$p.test(e.data)||(r=this._getOrReturnCtx(e,r),G(r,{validation:"nanoid",code:L.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid")Vp.test(e.data)||(r=this._getOrReturnCtx(e,r),G(r,{validation:"cuid",code:L.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid2")Bp.test(e.data)||(r=this._getOrReturnCtx(e,r),G(r,{validation:"cuid2",code:L.invalid_string,message:o.message}),i.dirty());else if(o.kind==="ulid")Op.test(e.data)||(r=this._getOrReturnCtx(e,r),G(r,{validation:"ulid",code:L.invalid_string,message:o.message}),i.dirty());else if(o.kind==="url")try{new URL(e.data)}catch{r=this._getOrReturnCtx(e,r),G(r,{validation:"url",code:L.invalid_string,message:o.message}),i.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(e.data)||(r=this._getOrReturnCtx(e,r),G(r,{validation:"regex",code:L.invalid_string,message:o.message}),i.dirty())):o.kind==="trim"?e.data=e.data.trim():o.kind==="includes"?e.data.includes(o.value,o.position)||(r=this._getOrReturnCtx(e,r),G(r,{code:L.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind==="toLowerCase"?e.data=e.data.toLowerCase():o.kind==="toUpperCase"?e.data=e.data.toUpperCase():o.kind==="startsWith"?e.data.startsWith(o.value)||(r=this._getOrReturnCtx(e,r),G(r,{code:L.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind==="endsWith"?e.data.endsWith(o.value)||(r=this._getOrReturnCtx(e,r),G(r,{code:L.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind==="datetime"?eh(o).test(e.data)||(r=this._getOrReturnCtx(e,r),G(r,{code:L.invalid_string,validation:"datetime",message:o.message}),i.dirty()):o.kind==="date"?Qp.test(e.data)||(r=this._getOrReturnCtx(e,r),G(r,{code:L.invalid_string,validation:"date",message:o.message}),i.dirty()):o.kind==="time"?jp(o).test(e.data)||(r=this._getOrReturnCtx(e,r),G(r,{code:L.invalid_string,validation:"time",message:o.message}),i.dirty()):o.kind==="duration"?qp.test(e.data)||(r=this._getOrReturnCtx(e,r),G(r,{validation:"duration",code:L.invalid_string,message:o.message}),i.dirty()):o.kind==="ip"?th(e.data,o.version)||(r=this._getOrReturnCtx(e,r),G(r,{validation:"ip",code:L.invalid_string,message:o.message}),i.dirty()):o.kind==="jwt"?nh(e.data,o.alg)||(r=this._getOrReturnCtx(e,r),G(r,{validation:"jwt",code:L.invalid_string,message:o.message}),i.dirty()):o.kind==="cidr"?ih(e.data,o.version)||(r=this._getOrReturnCtx(e,r),G(r,{validation:"cidr",code:L.invalid_string,message:o.message}),i.dirty()):o.kind==="base64"?Zp.test(e.data)||(r=this._getOrReturnCtx(e,r),G(r,{validation:"base64",code:L.invalid_string,message:o.message}),i.dirty()):o.kind==="base64url"?Xp.test(e.data)||(r=this._getOrReturnCtx(e,r),G(r,{validation:"base64url",code:L.invalid_string,message:o.message}),i.dirty()):ae.assertNever(o);return{status:i.value,value:e.data}}_regex(e,t,i){return this.refinement(r=>e.test(r),{validation:t,code:L.invalid_string,...W.errToObj(i)})}_addCheck(e){return new st({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...W.errToObj(e)})}url(e){return this._addCheck({kind:"url",...W.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...W.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...W.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...W.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...W.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...W.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...W.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...W.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...W.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...W.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...W.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...W.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...W.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...W.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...W.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...W.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...W.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...W.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...W.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...W.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...W.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...W.errToObj(t)})}nonempty(e){return this.min(1,W.errToObj(e))}trim(){return new st({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new st({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new st({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}st.create=n=>new st({checks:[],typeName:Q.ZodString,coerce:(n==null?void 0:n.coerce)??!1,...ie(n)});function rh(n,e){const t=(n.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,r=t>i?t:i,o=Number.parseInt(n.toFixed(r).replace(".","")),l=Number.parseInt(e.toFixed(r).replace(".",""));return o%l/10**r}class $t extends se{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==H.number){const o=this._getOrReturnCtx(e);return G(o,{code:L.invalid_type,expected:H.number,received:o.parsedType}),j}let i;const r=new De;for(const o of this._def.checks)o.kind==="int"?ae.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{code:L.invalid_type,expected:"integer",received:"float",message:o.message}),r.dirty()):o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(i=this._getOrReturnCtx(e,i),G(i,{code:L.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(i=this._getOrReturnCtx(e,i),G(i,{code:L.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind==="multipleOf"?rh(e.data,o.value)!==0&&(i=this._getOrReturnCtx(e,i),G(i,{code:L.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):o.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{code:L.not_finite,message:o.message}),r.dirty()):ae.assertNever(o);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,W.toString(t))}gt(e,t){return this.setLimit("min",e,!1,W.toString(t))}lte(e,t){return this.setLimit("max",e,!0,W.toString(t))}lt(e,t){return this.setLimit("max",e,!1,W.toString(t))}setLimit(e,t,i,r){return new $t({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:W.toString(r)}]})}_addCheck(e){return new $t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:W.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:W.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:W.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:W.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:W.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:W.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:W.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:W.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:W.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&ae.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(t===null||i.value>t)&&(t=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(t)&&Number.isFinite(e)}}$t.create=n=>new $t({checks:[],typeName:Q.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...ie(n)});class Gt extends se{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==H.bigint)return this._getInvalidInput(e);let i;const r=new De;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(i=this._getOrReturnCtx(e,i),G(i,{code:L.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(i=this._getOrReturnCtx(e,i),G(i,{code:L.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind==="multipleOf"?e.data%o.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),G(i,{code:L.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):ae.assertNever(o);return{status:r.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return G(t,{code:L.invalid_type,expected:H.bigint,received:t.parsedType}),j}gte(e,t){return this.setLimit("min",e,!0,W.toString(t))}gt(e,t){return this.setLimit("min",e,!1,W.toString(t))}lte(e,t){return this.setLimit("max",e,!0,W.toString(t))}lt(e,t){return this.setLimit("max",e,!1,W.toString(t))}setLimit(e,t,i,r){return new Gt({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:W.toString(r)}]})}_addCheck(e){return new Gt({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:W.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:W.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:W.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:W.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:W.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}Gt.create=n=>new Gt({checks:[],typeName:Q.ZodBigInt,coerce:(n==null?void 0:n.coerce)??!1,...ie(n)});class vi extends se{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==H.boolean){const i=this._getOrReturnCtx(e);return G(i,{code:L.invalid_type,expected:H.boolean,received:i.parsedType}),j}return We(e.data)}}vi.create=n=>new vi({typeName:Q.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...ie(n)});class on extends se{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==H.date){const o=this._getOrReturnCtx(e);return G(o,{code:L.invalid_type,expected:H.date,received:o.parsedType}),j}if(Number.isNaN(e.data.getTime())){const o=this._getOrReturnCtx(e);return G(o,{code:L.invalid_date}),j}const i=new De;let r;for(const o of this._def.checks)o.kind==="min"?e.data.getTime()<o.value&&(r=this._getOrReturnCtx(e,r),G(r,{code:L.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),i.dirty()):o.kind==="max"?e.data.getTime()>o.value&&(r=this._getOrReturnCtx(e,r),G(r,{code:L.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),i.dirty()):ae.assertNever(o);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new on({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:W.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:W.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}on.create=n=>new on({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:Q.ZodDate,...ie(n)});class Ps extends se{_parse(e){if(this._getType(e)!==H.symbol){const i=this._getOrReturnCtx(e);return G(i,{code:L.invalid_type,expected:H.symbol,received:i.parsedType}),j}return We(e.data)}}Ps.create=n=>new Ps({typeName:Q.ZodSymbol,...ie(n)});class ks extends se{_parse(e){if(this._getType(e)!==H.undefined){const i=this._getOrReturnCtx(e);return G(i,{code:L.invalid_type,expected:H.undefined,received:i.parsedType}),j}return We(e.data)}}ks.create=n=>new ks({typeName:Q.ZodUndefined,...ie(n)});class Ns extends se{_parse(e){if(this._getType(e)!==H.null){const i=this._getOrReturnCtx(e);return G(i,{code:L.invalid_type,expected:H.null,received:i.parsedType}),j}return We(e.data)}}Ns.create=n=>new Ns({typeName:Q.ZodNull,...ie(n)});class Ds extends se{constructor(){super(...arguments),this._any=!0}_parse(e){return We(e.data)}}Ds.create=n=>new Ds({typeName:Q.ZodAny,...ie(n)});class vr extends se{constructor(){super(...arguments),this._unknown=!0}_parse(e){return We(e.data)}}vr.create=n=>new vr({typeName:Q.ZodUnknown,...ie(n)});class At extends se{_parse(e){const t=this._getOrReturnCtx(e);return G(t,{code:L.invalid_type,expected:H.never,received:t.parsedType}),j}}At.create=n=>new At({typeName:Q.ZodNever,...ie(n)});class Ls extends se{_parse(e){if(this._getType(e)!==H.undefined){const i=this._getOrReturnCtx(e);return G(i,{code:L.invalid_type,expected:H.void,received:i.parsedType}),j}return We(e.data)}}Ls.create=n=>new Ls({typeName:Q.ZodVoid,...ie(n)});class at extends se{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),r=this._def;if(t.parsedType!==H.array)return G(t,{code:L.invalid_type,expected:H.array,received:t.parsedType}),j;if(r.exactLength!==null){const l=t.data.length>r.exactLength.value,u=t.data.length<r.exactLength.value;(l||u)&&(G(t,{code:l?L.too_big:L.too_small,minimum:u?r.exactLength.value:void 0,maximum:l?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),i.dirty())}if(r.minLength!==null&&t.data.length<r.minLength.value&&(G(t,{code:L.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),r.maxLength!==null&&t.data.length>r.maxLength.value&&(G(t,{code:L.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((l,u)=>r.type._parseAsync(new ot(t,l,t.path,u)))).then(l=>De.mergeArray(i,l));const o=[...t.data].map((l,u)=>r.type._parseSync(new ot(t,l,t.path,u)));return De.mergeArray(i,o)}get element(){return this._def.type}min(e,t){return new at({...this._def,minLength:{value:e,message:W.toString(t)}})}max(e,t){return new at({...this._def,maxLength:{value:e,message:W.toString(t)}})}length(e,t){return new at({...this._def,exactLength:{value:e,message:W.toString(t)}})}nonempty(e){return this.min(1,e)}}at.create=(n,e)=>new at({type:n,minLength:null,maxLength:null,exactLength:null,typeName:Q.ZodArray,...ie(e)});function sn(n){if(n instanceof we){const e={};for(const t in n.shape){const i=n.shape[t];e[t]=bt.create(sn(i))}return new we({...n._def,shape:()=>e})}else return n instanceof at?new at({...n._def,type:sn(n.element)}):n instanceof bt?bt.create(sn(n.unwrap())):n instanceof un?un.create(sn(n.unwrap())):n instanceof qt?qt.create(n.items.map(e=>sn(e))):n}class we extends se{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=ae.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==H.object){const f=this._getOrReturnCtx(e);return G(f,{code:L.invalid_type,expected:H.object,received:f.parsedType}),j}const{status:i,ctx:r}=this._processInputParams(e),{shape:o,keys:l}=this._getCached(),u=[];if(!(this._def.catchall instanceof At&&this._def.unknownKeys==="strip"))for(const f in r.data)l.includes(f)||u.push(f);const c=[];for(const f of l){const d=o[f],h=r.data[f];c.push({key:{status:"valid",value:f},value:d._parse(new ot(r,h,r.path,f)),alwaysSet:f in r.data})}if(this._def.catchall instanceof At){const f=this._def.unknownKeys;if(f==="passthrough")for(const d of u)c.push({key:{status:"valid",value:d},value:{status:"valid",value:r.data[d]}});else if(f==="strict")u.length>0&&(G(r,{code:L.unrecognized_keys,keys:u}),i.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const d of u){const h=r.data[d];c.push({key:{status:"valid",value:d},value:f._parse(new ot(r,h,r.path,d)),alwaysSet:d in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const f=[];for(const d of c){const h=await d.key,g=await d.value;f.push({key:h,value:g,alwaysSet:d.alwaysSet})}return f}).then(f=>De.mergeObjectSync(i,f)):De.mergeObjectSync(i,c)}get shape(){return this._def.shape()}strict(e){return W.errToObj,new we({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,i)=>{var o,l;const r=((l=(o=this._def).errorMap)==null?void 0:l.call(o,t,i).message)??i.defaultError;return t.code==="unrecognized_keys"?{message:W.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new we({...this._def,unknownKeys:"strip"})}passthrough(){return new we({...this._def,unknownKeys:"passthrough"})}extend(e){return new we({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new we({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Q.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new we({...this._def,catchall:e})}pick(e){const t={};for(const i of ae.objectKeys(e))e[i]&&this.shape[i]&&(t[i]=this.shape[i]);return new we({...this._def,shape:()=>t})}omit(e){const t={};for(const i of ae.objectKeys(this.shape))e[i]||(t[i]=this.shape[i]);return new we({...this._def,shape:()=>t})}deepPartial(){return sn(this)}partial(e){const t={};for(const i of ae.objectKeys(this.shape)){const r=this.shape[i];e&&!e[i]?t[i]=r:t[i]=r.optional()}return new we({...this._def,shape:()=>t})}required(e){const t={};for(const i of ae.objectKeys(this.shape))if(e&&!e[i])t[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof bt;)o=o._def.innerType;t[i]=o}return new we({...this._def,shape:()=>t})}keyof(){return Bs(ae.objectKeys(this.shape))}}we.create=(n,e)=>new we({shape:()=>n,unknownKeys:"strip",catchall:At.create(),typeName:Q.ZodObject,...ie(e)}),we.strictCreate=(n,e)=>new we({shape:()=>n,unknownKeys:"strict",catchall:At.create(),typeName:Q.ZodObject,...ie(e)}),we.lazycreate=(n,e)=>new we({shape:n,unknownKeys:"strip",catchall:At.create(),typeName:Q.ZodObject,...ie(e)});class _i extends se{_parse(e){const{ctx:t}=this._processInputParams(e),i=this._def.options;function r(o){for(const u of o)if(u.result.status==="valid")return u.result;for(const u of o)if(u.result.status==="dirty")return t.common.issues.push(...u.ctx.common.issues),u.result;const l=o.map(u=>new ht(u.ctx.common.issues));return G(t,{code:L.invalid_union,unionErrors:l}),j}if(t.common.async)return Promise.all(i.map(async o=>{const l={...t,common:{...t.common,issues:[]},parent:null};return{result:await o._parseAsync({data:t.data,path:t.path,parent:l}),ctx:l}})).then(r);{let o;const l=[];for(const c of i){const f={...t,common:{...t.common,issues:[]},parent:null},d=c._parseSync({data:t.data,path:t.path,parent:f});if(d.status==="valid")return d;d.status==="dirty"&&!o&&(o={result:d,ctx:f}),f.common.issues.length&&l.push(f.common.issues)}if(o)return t.common.issues.push(...o.ctx.common.issues),o.result;const u=l.map(c=>new ht(c));return G(t,{code:L.invalid_union,unionErrors:u}),j}}get options(){return this._def.options}}_i.create=(n,e)=>new _i({options:n,typeName:Q.ZodUnion,...ie(e)});function _r(n,e){const t=St(n),i=St(e);if(n===e)return{valid:!0,data:n};if(t===H.object&&i===H.object){const r=ae.objectKeys(e),o=ae.objectKeys(n).filter(u=>r.indexOf(u)!==-1),l={...n,...e};for(const u of o){const c=_r(n[u],e[u]);if(!c.valid)return{valid:!1};l[u]=c.data}return{valid:!0,data:l}}else if(t===H.array&&i===H.array){if(n.length!==e.length)return{valid:!1};const r=[];for(let o=0;o<n.length;o++){const l=n[o],u=e[o],c=_r(l,u);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return t===H.date&&i===H.date&&+n==+e?{valid:!0,data:n}:{valid:!1}}class xi extends se{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),r=(o,l)=>{if(As(o)||As(l))return j;const u=_r(o.value,l.value);return u.valid?((bs(o)||bs(l))&&t.dirty(),{status:t.value,value:u.data}):(G(i,{code:L.invalid_intersection_types}),j)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,l])=>r(o,l)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}xi.create=(n,e,t)=>new xi({left:n,right:e,typeName:Q.ZodIntersection,...ie(t)});class qt extends se{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==H.array)return G(i,{code:L.invalid_type,expected:H.array,received:i.parsedType}),j;if(i.data.length<this._def.items.length)return G(i,{code:L.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),j;!this._def.rest&&i.data.length>this._def.items.length&&(G(i,{code:L.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const o=[...i.data].map((l,u)=>{const c=this._def.items[u]||this._def.rest;return c?c._parse(new ot(i,l,i.path,u)):null}).filter(l=>!!l);return i.common.async?Promise.all(o).then(l=>De.mergeArray(t,l)):De.mergeArray(t,o)}get items(){return this._def.items}rest(e){return new qt({...this._def,rest:e})}}qt.create=(n,e)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new qt({items:n,typeName:Q.ZodTuple,rest:null,...ie(e)})};class Ci extends se{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==H.object)return G(i,{code:L.invalid_type,expected:H.object,received:i.parsedType}),j;const r=[],o=this._def.keyType,l=this._def.valueType;for(const u in i.data)r.push({key:o._parse(new ot(i,u,i.path,u)),value:l._parse(new ot(i,i.data[u],i.path,u)),alwaysSet:u in i.data});return i.common.async?De.mergeObjectAsync(t,r):De.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,i){return t instanceof se?new Ci({keyType:e,valueType:t,typeName:Q.ZodRecord,...ie(i)}):new Ci({keyType:st.create(),valueType:e,typeName:Q.ZodRecord,...ie(t)})}}class Fs extends se{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==H.map)return G(i,{code:L.invalid_type,expected:H.map,received:i.parsedType}),j;const r=this._def.keyType,o=this._def.valueType,l=[...i.data.entries()].map(([u,c],f)=>({key:r._parse(new ot(i,u,i.path,[f,"key"])),value:o._parse(new ot(i,c,i.path,[f,"value"]))}));if(i.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const c of l){const f=await c.key,d=await c.value;if(f.status==="aborted"||d.status==="aborted")return j;(f.status==="dirty"||d.status==="dirty")&&t.dirty(),u.set(f.value,d.value)}return{status:t.value,value:u}})}else{const u=new Map;for(const c of l){const f=c.key,d=c.value;if(f.status==="aborted"||d.status==="aborted")return j;(f.status==="dirty"||d.status==="dirty")&&t.dirty(),u.set(f.value,d.value)}return{status:t.value,value:u}}}}Fs.create=(n,e,t)=>new Fs({valueType:e,keyType:n,typeName:Q.ZodMap,...ie(t)});class Ln extends se{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==H.set)return G(i,{code:L.invalid_type,expected:H.set,received:i.parsedType}),j;const r=this._def;r.minSize!==null&&i.data.size<r.minSize.value&&(G(i,{code:L.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),r.maxSize!==null&&i.data.size>r.maxSize.value&&(G(i,{code:L.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const o=this._def.valueType;function l(c){const f=new Set;for(const d of c){if(d.status==="aborted")return j;d.status==="dirty"&&t.dirty(),f.add(d.value)}return{status:t.value,value:f}}const u=[...i.data.values()].map((c,f)=>o._parse(new ot(i,c,i.path,f)));return i.common.async?Promise.all(u).then(c=>l(c)):l(u)}min(e,t){return new Ln({...this._def,minSize:{value:e,message:W.toString(t)}})}max(e,t){return new Ln({...this._def,maxSize:{value:e,message:W.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Ln.create=(n,e)=>new Ln({valueType:n,minSize:null,maxSize:null,typeName:Q.ZodSet,...ie(e)});class xr extends se{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}xr.create=(n,e)=>new xr({getter:n,typeName:Q.ZodLazy,...ie(e)});class Vs extends se{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return G(t,{received:t.data,code:L.invalid_literal,expected:this._def.value}),j}return{status:"valid",value:e.data}}get value(){return this._def.value}}Vs.create=(n,e)=>new Vs({value:n,typeName:Q.ZodLiteral,...ie(e)});function Bs(n,e){return new an({values:n,typeName:Q.ZodEnum,...ie(e)})}class an extends se{_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),i=this._def.values;return G(t,{expected:ae.joinValues(i),received:t.parsedType,code:L.invalid_type}),j}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return G(t,{received:t.data,code:L.invalid_enum_value,options:i}),j}return We(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return an.create(e,{...this._def,...t})}exclude(e,t=this._def){return an.create(this.options.filter(i=>!e.includes(i)),{...this._def,...t})}}an.create=Bs;class Os extends se{_parse(e){const t=ae.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==H.string&&i.parsedType!==H.number){const r=ae.objectValues(t);return G(i,{expected:ae.joinValues(r),received:i.parsedType,code:L.invalid_type}),j}if(this._cache||(this._cache=new Set(ae.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const r=ae.objectValues(t);return G(i,{received:i.data,code:L.invalid_enum_value,options:r}),j}return We(e.data)}get enum(){return this._def.values}}Os.create=(n,e)=>new Os({values:n,typeName:Q.ZodNativeEnum,...ie(e)});class Ei extends se{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==H.promise&&t.common.async===!1)return G(t,{code:L.invalid_type,expected:H.promise,received:t.parsedType}),j;const i=t.parsedType===H.promise?t.data:Promise.resolve(t.data);return We(i.then(r=>this._def.type.parseAsync(r,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Ei.create=(n,e)=>new Ei({type:n,typeName:Q.ZodPromise,...ie(e)});class ln extends se{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Q.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:i}=this._processInputParams(e),r=this._def.effect||null,o={addIssue:l=>{G(i,l),l.fatal?t.abort():t.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),r.type==="preprocess"){const l=r.transform(i.data,o);if(i.common.async)return Promise.resolve(l).then(async u=>{if(t.value==="aborted")return j;const c=await this._def.schema._parseAsync({data:u,path:i.path,parent:i});return c.status==="aborted"?j:c.status==="dirty"||t.value==="dirty"?Dn(c.value):c});{if(t.value==="aborted")return j;const u=this._def.schema._parseSync({data:l,path:i.path,parent:i});return u.status==="aborted"?j:u.status==="dirty"||t.value==="dirty"?Dn(u.value):u}}if(r.type==="refinement"){const l=u=>{const c=r.refinement(u,o);if(i.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(i.common.async===!1){const u=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return u.status==="aborted"?j:(u.status==="dirty"&&t.dirty(),l(u.value),{status:t.value,value:u.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(u=>u.status==="aborted"?j:(u.status==="dirty"&&t.dirty(),l(u.value).then(()=>({status:t.value,value:u.value}))))}if(r.type==="transform")if(i.common.async===!1){const l=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!rn(l))return j;const u=r.transform(l.value,o);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:u}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(l=>rn(l)?Promise.resolve(r.transform(l.value,o)).then(u=>({status:t.value,value:u})):j);ae.assertNever(r)}}ln.create=(n,e,t)=>new ln({schema:n,typeName:Q.ZodEffects,effect:e,...ie(t)}),ln.createWithPreprocess=(n,e,t)=>new ln({schema:e,effect:{type:"preprocess",transform:n},typeName:Q.ZodEffects,...ie(t)});class bt extends se{_parse(e){return this._getType(e)===H.undefined?We(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}bt.create=(n,e)=>new bt({innerType:n,typeName:Q.ZodOptional,...ie(e)});class un extends se{_parse(e){return this._getType(e)===H.null?We(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}un.create=(n,e)=>new un({innerType:n,typeName:Q.ZodNullable,...ie(e)});class Cr extends se{_parse(e){const{ctx:t}=this._processInputParams(e);let i=t.data;return t.parsedType===H.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Cr.create=(n,e)=>new Cr({innerType:n,typeName:Q.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ie(e)});class Er extends se{_parse(e){const{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return yi(r)?r.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ht(i.common.issues)},input:i.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new ht(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Er.create=(n,e)=>new Er({innerType:n,typeName:Q.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ie(e)});class Us extends se{_parse(e){if(this._getType(e)!==H.nan){const i=this._getOrReturnCtx(e);return G(i,{code:L.invalid_type,expected:H.nan,received:i.parsedType}),j}return{status:"valid",value:e.data}}}Us.create=n=>new Us({typeName:Q.ZodNaN,...ie(n)});class oh extends se{_parse(e){const{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class Tr extends se{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?j:o.status==="dirty"?(t.dirty(),Dn(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{const r=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?j:r.status==="dirty"?(t.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:i.path,parent:i})}}static create(e,t){return new Tr({in:e,out:t,typeName:Q.ZodPipeline})}}class wr extends se{_parse(e){const t=this._def.innerType._parse(e),i=r=>(rn(r)&&(r.value=Object.freeze(r.value)),r);return yi(t)?t.then(r=>i(r)):i(t)}unwrap(){return this._def.innerType}}wr.create=(n,e)=>new wr({innerType:n,typeName:Q.ZodReadonly,...ie(e)});var Q;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(Q||(Q={}));const Ht=st.create,$s=$t.create;Gt.create;const sh=vi.create;on.create;const Gs=vr.create;At.create;const Fn=at.create,ah=we.create,lh=_i.create;xi.create,qt.create;const uh=Ci.create,ch=xr.create,fh=an.create;Ei.create,bt.create,un.create;const cn={string:(n=>st.create({...n,coerce:!0})),number:(n=>$t.create({...n,coerce:!0})),boolean:(n=>vi.create({...n,coerce:!0})),bigint:(n=>Gt.create({...n,coerce:!0})),date:(n=>on.create({...n,coerce:!0}))};/**
350
+ */const $b=to("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);var bt;(function(c){c.assertEqual=f=>{};function l(f){}c.assertIs=l;function a(f){throw new Error}c.assertNever=a,c.arrayToEnum=f=>{const y={};for(const C of f)y[C]=C;return y},c.getValidEnumValues=f=>{const y=c.objectKeys(f).filter(E=>typeof f[f[E]]!="number"),C={};for(const E of y)C[E]=f[E];return c.objectValues(C)},c.objectValues=f=>c.objectKeys(f).map(function(y){return f[y]}),c.objectKeys=typeof Object.keys=="function"?f=>Object.keys(f):f=>{const y=[];for(const C in f)Object.prototype.hasOwnProperty.call(f,C)&&y.push(C);return y},c.find=(f,y)=>{for(const C of f)if(y(C))return C},c.isInteger=typeof Number.isInteger=="function"?f=>Number.isInteger(f):f=>typeof f=="number"&&Number.isFinite(f)&&Math.floor(f)===f;function r(f,y=" | "){return f.map(C=>typeof C=="string"?`'${C}'`:C).join(y)}c.joinValues=r,c.jsonStringifyReplacer=(f,y)=>typeof y=="bigint"?y.toString():y})(bt||(bt={}));var pE;(function(c){c.mergeShapes=(l,a)=>({...l,...a})})(pE||(pE={}));const Ce=bt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),qs=c=>{switch(typeof c){case"undefined":return Ce.undefined;case"string":return Ce.string;case"number":return Number.isNaN(c)?Ce.nan:Ce.number;case"boolean":return Ce.boolean;case"function":return Ce.function;case"bigint":return Ce.bigint;case"symbol":return Ce.symbol;case"object":return Array.isArray(c)?Ce.array:c===null?Ce.null:c.then&&typeof c.then=="function"&&c.catch&&typeof c.catch=="function"?Ce.promise:typeof Map<"u"&&c instanceof Map?Ce.map:typeof Set<"u"&&c instanceof Set?Ce.set:typeof Date<"u"&&c instanceof Date?Ce.date:Ce.object;default:return Ce.unknown}},re=bt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Mu extends Error{get errors(){return this.issues}constructor(l){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=l}format(l){const a=l||function(y){return y.message},r={_errors:[]},f=y=>{for(const C of y.issues)if(C.code==="invalid_union")C.unionErrors.map(f);else if(C.code==="invalid_return_type")f(C.returnTypeError);else if(C.code==="invalid_arguments")f(C.argumentsError);else if(C.path.length===0)r._errors.push(a(C));else{let E=r,b=0;for(;b<C.path.length;){const A=C.path[b];b===C.path.length-1?(E[A]=E[A]||{_errors:[]},E[A]._errors.push(a(C))):E[A]=E[A]||{_errors:[]},E=E[A],b++}}};return f(this),r}static assert(l){if(!(l instanceof Mu))throw new Error(`Not a ZodError: ${l}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,bt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(l=a=>a.message){const a={},r=[];for(const f of this.issues)if(f.path.length>0){const y=f.path[0];a[y]=a[y]||[],a[y].push(l(f))}else r.push(l(f));return{formErrors:r,fieldErrors:a}}get formErrors(){return this.flatten()}}Mu.create=c=>new Mu(c);const aT=(c,l)=>{let a;switch(c.code){case re.invalid_type:c.received===Ce.undefined?a="Required":a=`Expected ${c.expected}, received ${c.received}`;break;case re.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(c.expected,bt.jsonStringifyReplacer)}`;break;case re.unrecognized_keys:a=`Unrecognized key(s) in object: ${bt.joinValues(c.keys,", ")}`;break;case re.invalid_union:a="Invalid input";break;case re.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${bt.joinValues(c.options)}`;break;case re.invalid_enum_value:a=`Invalid enum value. Expected ${bt.joinValues(c.options)}, received '${c.received}'`;break;case re.invalid_arguments:a="Invalid function arguments";break;case re.invalid_return_type:a="Invalid function return type";break;case re.invalid_date:a="Invalid date";break;case re.invalid_string:typeof c.validation=="object"?"includes"in c.validation?(a=`Invalid input: must include "${c.validation.includes}"`,typeof c.validation.position=="number"&&(a=`${a} at one or more positions greater than or equal to ${c.validation.position}`)):"startsWith"in c.validation?a=`Invalid input: must start with "${c.validation.startsWith}"`:"endsWith"in c.validation?a=`Invalid input: must end with "${c.validation.endsWith}"`:bt.assertNever(c.validation):c.validation!=="regex"?a=`Invalid ${c.validation}`:a="Invalid";break;case re.too_small:c.type==="array"?a=`Array must contain ${c.exact?"exactly":c.inclusive?"at least":"more than"} ${c.minimum} element(s)`:c.type==="string"?a=`String must contain ${c.exact?"exactly":c.inclusive?"at least":"over"} ${c.minimum} character(s)`:c.type==="number"?a=`Number must be ${c.exact?"exactly equal to ":c.inclusive?"greater than or equal to ":"greater than "}${c.minimum}`:c.type==="bigint"?a=`Number must be ${c.exact?"exactly equal to ":c.inclusive?"greater than or equal to ":"greater than "}${c.minimum}`:c.type==="date"?a=`Date must be ${c.exact?"exactly equal to ":c.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(c.minimum))}`:a="Invalid input";break;case re.too_big:c.type==="array"?a=`Array must contain ${c.exact?"exactly":c.inclusive?"at most":"less than"} ${c.maximum} element(s)`:c.type==="string"?a=`String must contain ${c.exact?"exactly":c.inclusive?"at most":"under"} ${c.maximum} character(s)`:c.type==="number"?a=`Number must be ${c.exact?"exactly":c.inclusive?"less than or equal to":"less than"} ${c.maximum}`:c.type==="bigint"?a=`BigInt must be ${c.exact?"exactly":c.inclusive?"less than or equal to":"less than"} ${c.maximum}`:c.type==="date"?a=`Date must be ${c.exact?"exactly":c.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(c.maximum))}`:a="Invalid input";break;case re.custom:a="Invalid input";break;case re.invalid_intersection_types:a="Intersection results could not be merged";break;case re.not_multiple_of:a=`Number must be a multiple of ${c.multipleOf}`;break;case re.not_finite:a="Number must be finite";break;default:a=l.defaultError,bt.assertNever(c)}return{message:a}};let Pb=aT;function Wb(){return Pb}const jb=c=>{const{data:l,path:a,errorMaps:r,issueData:f}=c,y=[...a,...f.path||[]],C={...f,path:y};if(f.message!==void 0)return{...f,path:y,message:f.message};let E="";const b=r.filter(A=>!!A).slice().reverse();for(const A of b)E=A(C,{data:l,defaultError:E}).message;return{...f,path:y,message:E}};function ge(c,l){const a=Wb(),r=jb({issueData:l,data:c.data,path:c.path,errorMaps:[c.common.contextualErrorMap,c.schemaErrorMap,a,a===aT?void 0:aT].filter(f=>!!f)});c.common.issues.push(r)}class ql{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(l,a){const r=[];for(const f of a){if(f.status==="aborted")return Fe;f.status==="dirty"&&l.dirty(),r.push(f.value)}return{status:l.value,value:r}}static async mergeObjectAsync(l,a){const r=[];for(const f of a){const y=await f.key,C=await f.value;r.push({key:y,value:C})}return ql.mergeObjectSync(l,r)}static mergeObjectSync(l,a){const r={};for(const f of a){const{key:y,value:C}=f;if(y.status==="aborted"||C.status==="aborted")return Fe;y.status==="dirty"&&l.dirty(),C.status==="dirty"&&l.dirty(),y.value!=="__proto__"&&(typeof C.value<"u"||f.alwaysSet)&&(r[y.value]=C.value)}return{status:l.value,value:r}}}const Fe=Object.freeze({status:"aborted"}),ap=c=>({status:"dirty",value:c}),si=c=>({status:"valid",value:c}),gE=c=>c.status==="aborted",yE=c=>c.status==="dirty",yd=c=>c.status==="valid",mv=c=>typeof Promise<"u"&&c instanceof Promise;var be;(function(c){c.errToObj=l=>typeof l=="string"?{message:l}:l||{},c.toString=l=>typeof l=="string"?l:l==null?void 0:l.message})(be||(be={}));class Vo{constructor(l,a,r,f){this._cachedPath=[],this.parent=l,this.data=a,this._path=r,this._key=f}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const vE=(c,l)=>{if(yd(l))return{success:!0,data:l.value};if(!c.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const a=new Mu(c.common.issues);return this._error=a,this._error}}};function st(c){if(!c)return{};const{errorMap:l,invalid_type_error:a,required_error:r,description:f}=c;if(l&&(a||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return l?{errorMap:l,description:f}:{errorMap:(C,E)=>{const{message:b}=c;return C.code==="invalid_enum_value"?{message:b??E.defaultError}:typeof E.data>"u"?{message:b??r??E.defaultError}:C.code!=="invalid_type"?{message:E.defaultError}:{message:b??a??E.defaultError}},description:f}}class yt{get description(){return this._def.description}_getType(l){return qs(l.data)}_getOrReturnCtx(l,a){return a||{common:l.parent.common,data:l.data,parsedType:qs(l.data),schemaErrorMap:this._def.errorMap,path:l.path,parent:l.parent}}_processInputParams(l){return{status:new ql,ctx:{common:l.parent.common,data:l.data,parsedType:qs(l.data),schemaErrorMap:this._def.errorMap,path:l.path,parent:l.parent}}}_parseSync(l){const a=this._parse(l);if(mv(a))throw new Error("Synchronous parse encountered promise.");return a}_parseAsync(l){const a=this._parse(l);return Promise.resolve(a)}parse(l,a){const r=this.safeParse(l,a);if(r.success)return r.data;throw r.error}safeParse(l,a){const r={common:{issues:[],async:(a==null?void 0:a.async)??!1,contextualErrorMap:a==null?void 0:a.errorMap},path:(a==null?void 0:a.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:l,parsedType:qs(l)},f=this._parseSync({data:l,path:r.path,parent:r});return vE(r,f)}"~validate"(l){var r,f;const a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:l,parsedType:qs(l)};if(!this["~standard"].async)try{const y=this._parseSync({data:l,path:[],parent:a});return yd(y)?{value:y.value}:{issues:a.common.issues}}catch(y){(f=(r=y==null?void 0:y.message)==null?void 0:r.toLowerCase())!=null&&f.includes("encountered")&&(this["~standard"].async=!0),a.common={issues:[],async:!0}}return this._parseAsync({data:l,path:[],parent:a}).then(y=>yd(y)?{value:y.value}:{issues:a.common.issues})}async parseAsync(l,a){const r=await this.safeParseAsync(l,a);if(r.success)return r.data;throw r.error}async safeParseAsync(l,a){const r={common:{issues:[],contextualErrorMap:a==null?void 0:a.errorMap,async:!0},path:(a==null?void 0:a.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:l,parsedType:qs(l)},f=this._parse({data:l,path:r.path,parent:r}),y=await(mv(f)?f:Promise.resolve(f));return vE(r,y)}refine(l,a){const r=f=>typeof a=="string"||typeof a>"u"?{message:a}:typeof a=="function"?a(f):a;return this._refinement((f,y)=>{const C=l(f),E=()=>y.addIssue({code:re.custom,...r(f)});return typeof Promise<"u"&&C instanceof Promise?C.then(b=>b?!0:(E(),!1)):C?!0:(E(),!1)})}refinement(l,a){return this._refinement((r,f)=>l(r)?!0:(f.addIssue(typeof a=="function"?a(r,f):a),!1))}_refinement(l){return new Cd({schema:this,typeName:Je.ZodEffects,effect:{type:"refinement",refinement:l}})}superRefine(l){return this._refinement(l)}constructor(l){this.spa=this.safeParseAsync,this._def=l,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:a=>this["~validate"](a)}}optional(){return Ys.create(this,this._def)}nullable(){return Ed.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ho.create(this)}promise(){return Sv.create(this,this._def)}or(l){return gv.create([this,l],this._def)}and(l){return yv.create(this,l,this._def)}transform(l){return new Cd({...st(this._def),schema:this,typeName:Je.ZodEffects,effect:{type:"transform",transform:l}})}default(l){const a=typeof l=="function"?l:()=>l;return new rT({...st(this._def),innerType:this,defaultValue:a,typeName:Je.ZodDefault})}brand(){return new EM({typeName:Je.ZodBranded,type:this,...st(this._def)})}catch(l){const a=typeof l=="function"?l:()=>l;return new cT({...st(this._def),innerType:this,catchValue:a,typeName:Je.ZodCatch})}describe(l){const a=this.constructor;return new a({...this._def,description:l})}pipe(l){return fT.create(this,l)}readonly(){return dT.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const eM=/^c[^\s-]{8,}$/i,tM=/^[0-9a-z]+$/,nM=/^[0-9A-HJKMNP-TV-Z]{26}$/i,lM=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,aM=/^[a-z0-9_-]{21}$/i,iM=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,oM=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,uM=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,sM="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let iT;const rM=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,cM=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,fM=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,dM=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,hM=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,mM=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,SE="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",pM=new RegExp(`^${SE}$`);function TE(c){let l="[0-5]\\d";c.precision?l=`${l}\\.\\d{${c.precision}}`:c.precision==null&&(l=`${l}(\\.\\d+)?`);const a=c.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${l})${a}`}function gM(c){return new RegExp(`^${TE(c)}$`)}function yM(c){let l=`${SE}T${TE(c)}`;const a=[];return a.push(c.local?"Z?":"Z"),c.offset&&a.push("([+-]\\d{2}:?\\d{2})"),l=`${l}(${a.join("|")})`,new RegExp(`^${l}$`)}function vM(c,l){return!!((l==="v4"||!l)&&rM.test(c)||(l==="v6"||!l)&&fM.test(c))}function SM(c,l){if(!iM.test(c))return!1;try{const[a]=c.split(".");if(!a)return!1;const r=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),f=JSON.parse(atob(r));return!(typeof f!="object"||f===null||"typ"in f&&(f==null?void 0:f.typ)!=="JWT"||!f.alg||l&&f.alg!==l)}catch{return!1}}function TM(c,l){return!!((l==="v4"||!l)&&cM.test(c)||(l==="v6"||!l)&&dM.test(c))}class Lo extends yt{_parse(l){if(this._def.coerce&&(l.data=String(l.data)),this._getType(l)!==Ce.string){const y=this._getOrReturnCtx(l);return ge(y,{code:re.invalid_type,expected:Ce.string,received:y.parsedType}),Fe}const r=new ql;let f;for(const y of this._def.checks)if(y.kind==="min")l.data.length<y.value&&(f=this._getOrReturnCtx(l,f),ge(f,{code:re.too_small,minimum:y.value,type:"string",inclusive:!0,exact:!1,message:y.message}),r.dirty());else if(y.kind==="max")l.data.length>y.value&&(f=this._getOrReturnCtx(l,f),ge(f,{code:re.too_big,maximum:y.value,type:"string",inclusive:!0,exact:!1,message:y.message}),r.dirty());else if(y.kind==="length"){const C=l.data.length>y.value,E=l.data.length<y.value;(C||E)&&(f=this._getOrReturnCtx(l,f),C?ge(f,{code:re.too_big,maximum:y.value,type:"string",inclusive:!0,exact:!0,message:y.message}):E&&ge(f,{code:re.too_small,minimum:y.value,type:"string",inclusive:!0,exact:!0,message:y.message}),r.dirty())}else if(y.kind==="email")uM.test(l.data)||(f=this._getOrReturnCtx(l,f),ge(f,{validation:"email",code:re.invalid_string,message:y.message}),r.dirty());else if(y.kind==="emoji")iT||(iT=new RegExp(sM,"u")),iT.test(l.data)||(f=this._getOrReturnCtx(l,f),ge(f,{validation:"emoji",code:re.invalid_string,message:y.message}),r.dirty());else if(y.kind==="uuid")lM.test(l.data)||(f=this._getOrReturnCtx(l,f),ge(f,{validation:"uuid",code:re.invalid_string,message:y.message}),r.dirty());else if(y.kind==="nanoid")aM.test(l.data)||(f=this._getOrReturnCtx(l,f),ge(f,{validation:"nanoid",code:re.invalid_string,message:y.message}),r.dirty());else if(y.kind==="cuid")eM.test(l.data)||(f=this._getOrReturnCtx(l,f),ge(f,{validation:"cuid",code:re.invalid_string,message:y.message}),r.dirty());else if(y.kind==="cuid2")tM.test(l.data)||(f=this._getOrReturnCtx(l,f),ge(f,{validation:"cuid2",code:re.invalid_string,message:y.message}),r.dirty());else if(y.kind==="ulid")nM.test(l.data)||(f=this._getOrReturnCtx(l,f),ge(f,{validation:"ulid",code:re.invalid_string,message:y.message}),r.dirty());else if(y.kind==="url")try{new URL(l.data)}catch{f=this._getOrReturnCtx(l,f),ge(f,{validation:"url",code:re.invalid_string,message:y.message}),r.dirty()}else y.kind==="regex"?(y.regex.lastIndex=0,y.regex.test(l.data)||(f=this._getOrReturnCtx(l,f),ge(f,{validation:"regex",code:re.invalid_string,message:y.message}),r.dirty())):y.kind==="trim"?l.data=l.data.trim():y.kind==="includes"?l.data.includes(y.value,y.position)||(f=this._getOrReturnCtx(l,f),ge(f,{code:re.invalid_string,validation:{includes:y.value,position:y.position},message:y.message}),r.dirty()):y.kind==="toLowerCase"?l.data=l.data.toLowerCase():y.kind==="toUpperCase"?l.data=l.data.toUpperCase():y.kind==="startsWith"?l.data.startsWith(y.value)||(f=this._getOrReturnCtx(l,f),ge(f,{code:re.invalid_string,validation:{startsWith:y.value},message:y.message}),r.dirty()):y.kind==="endsWith"?l.data.endsWith(y.value)||(f=this._getOrReturnCtx(l,f),ge(f,{code:re.invalid_string,validation:{endsWith:y.value},message:y.message}),r.dirty()):y.kind==="datetime"?yM(y).test(l.data)||(f=this._getOrReturnCtx(l,f),ge(f,{code:re.invalid_string,validation:"datetime",message:y.message}),r.dirty()):y.kind==="date"?pM.test(l.data)||(f=this._getOrReturnCtx(l,f),ge(f,{code:re.invalid_string,validation:"date",message:y.message}),r.dirty()):y.kind==="time"?gM(y).test(l.data)||(f=this._getOrReturnCtx(l,f),ge(f,{code:re.invalid_string,validation:"time",message:y.message}),r.dirty()):y.kind==="duration"?oM.test(l.data)||(f=this._getOrReturnCtx(l,f),ge(f,{validation:"duration",code:re.invalid_string,message:y.message}),r.dirty()):y.kind==="ip"?vM(l.data,y.version)||(f=this._getOrReturnCtx(l,f),ge(f,{validation:"ip",code:re.invalid_string,message:y.message}),r.dirty()):y.kind==="jwt"?SM(l.data,y.alg)||(f=this._getOrReturnCtx(l,f),ge(f,{validation:"jwt",code:re.invalid_string,message:y.message}),r.dirty()):y.kind==="cidr"?TM(l.data,y.version)||(f=this._getOrReturnCtx(l,f),ge(f,{validation:"cidr",code:re.invalid_string,message:y.message}),r.dirty()):y.kind==="base64"?hM.test(l.data)||(f=this._getOrReturnCtx(l,f),ge(f,{validation:"base64",code:re.invalid_string,message:y.message}),r.dirty()):y.kind==="base64url"?mM.test(l.data)||(f=this._getOrReturnCtx(l,f),ge(f,{validation:"base64url",code:re.invalid_string,message:y.message}),r.dirty()):bt.assertNever(y);return{status:r.value,value:l.data}}_regex(l,a,r){return this.refinement(f=>l.test(f),{validation:a,code:re.invalid_string,...be.errToObj(r)})}_addCheck(l){return new Lo({...this._def,checks:[...this._def.checks,l]})}email(l){return this._addCheck({kind:"email",...be.errToObj(l)})}url(l){return this._addCheck({kind:"url",...be.errToObj(l)})}emoji(l){return this._addCheck({kind:"emoji",...be.errToObj(l)})}uuid(l){return this._addCheck({kind:"uuid",...be.errToObj(l)})}nanoid(l){return this._addCheck({kind:"nanoid",...be.errToObj(l)})}cuid(l){return this._addCheck({kind:"cuid",...be.errToObj(l)})}cuid2(l){return this._addCheck({kind:"cuid2",...be.errToObj(l)})}ulid(l){return this._addCheck({kind:"ulid",...be.errToObj(l)})}base64(l){return this._addCheck({kind:"base64",...be.errToObj(l)})}base64url(l){return this._addCheck({kind:"base64url",...be.errToObj(l)})}jwt(l){return this._addCheck({kind:"jwt",...be.errToObj(l)})}ip(l){return this._addCheck({kind:"ip",...be.errToObj(l)})}cidr(l){return this._addCheck({kind:"cidr",...be.errToObj(l)})}datetime(l){return typeof l=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:l}):this._addCheck({kind:"datetime",precision:typeof(l==null?void 0:l.precision)>"u"?null:l==null?void 0:l.precision,offset:(l==null?void 0:l.offset)??!1,local:(l==null?void 0:l.local)??!1,...be.errToObj(l==null?void 0:l.message)})}date(l){return this._addCheck({kind:"date",message:l})}time(l){return typeof l=="string"?this._addCheck({kind:"time",precision:null,message:l}):this._addCheck({kind:"time",precision:typeof(l==null?void 0:l.precision)>"u"?null:l==null?void 0:l.precision,...be.errToObj(l==null?void 0:l.message)})}duration(l){return this._addCheck({kind:"duration",...be.errToObj(l)})}regex(l,a){return this._addCheck({kind:"regex",regex:l,...be.errToObj(a)})}includes(l,a){return this._addCheck({kind:"includes",value:l,position:a==null?void 0:a.position,...be.errToObj(a==null?void 0:a.message)})}startsWith(l,a){return this._addCheck({kind:"startsWith",value:l,...be.errToObj(a)})}endsWith(l,a){return this._addCheck({kind:"endsWith",value:l,...be.errToObj(a)})}min(l,a){return this._addCheck({kind:"min",value:l,...be.errToObj(a)})}max(l,a){return this._addCheck({kind:"max",value:l,...be.errToObj(a)})}length(l,a){return this._addCheck({kind:"length",value:l,...be.errToObj(a)})}nonempty(l){return this.min(1,be.errToObj(l))}trim(){return new Lo({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Lo({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Lo({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(l=>l.kind==="datetime")}get isDate(){return!!this._def.checks.find(l=>l.kind==="date")}get isTime(){return!!this._def.checks.find(l=>l.kind==="time")}get isDuration(){return!!this._def.checks.find(l=>l.kind==="duration")}get isEmail(){return!!this._def.checks.find(l=>l.kind==="email")}get isURL(){return!!this._def.checks.find(l=>l.kind==="url")}get isEmoji(){return!!this._def.checks.find(l=>l.kind==="emoji")}get isUUID(){return!!this._def.checks.find(l=>l.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(l=>l.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(l=>l.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(l=>l.kind==="cuid2")}get isULID(){return!!this._def.checks.find(l=>l.kind==="ulid")}get isIP(){return!!this._def.checks.find(l=>l.kind==="ip")}get isCIDR(){return!!this._def.checks.find(l=>l.kind==="cidr")}get isBase64(){return!!this._def.checks.find(l=>l.kind==="base64")}get isBase64url(){return!!this._def.checks.find(l=>l.kind==="base64url")}get minLength(){let l=null;for(const a of this._def.checks)a.kind==="min"&&(l===null||a.value>l)&&(l=a.value);return l}get maxLength(){let l=null;for(const a of this._def.checks)a.kind==="max"&&(l===null||a.value<l)&&(l=a.value);return l}}Lo.create=c=>new Lo({checks:[],typeName:Je.ZodString,coerce:(c==null?void 0:c.coerce)??!1,...st(c)});function CM(c,l){const a=(c.toString().split(".")[1]||"").length,r=(l.toString().split(".")[1]||"").length,f=a>r?a:r,y=Number.parseInt(c.toFixed(f).replace(".","")),C=Number.parseInt(l.toFixed(f).replace(".",""));return y%C/10**f}class Ec extends yt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(l){if(this._def.coerce&&(l.data=Number(l.data)),this._getType(l)!==Ce.number){const y=this._getOrReturnCtx(l);return ge(y,{code:re.invalid_type,expected:Ce.number,received:y.parsedType}),Fe}let r;const f=new ql;for(const y of this._def.checks)y.kind==="int"?bt.isInteger(l.data)||(r=this._getOrReturnCtx(l,r),ge(r,{code:re.invalid_type,expected:"integer",received:"float",message:y.message}),f.dirty()):y.kind==="min"?(y.inclusive?l.data<y.value:l.data<=y.value)&&(r=this._getOrReturnCtx(l,r),ge(r,{code:re.too_small,minimum:y.value,type:"number",inclusive:y.inclusive,exact:!1,message:y.message}),f.dirty()):y.kind==="max"?(y.inclusive?l.data>y.value:l.data>=y.value)&&(r=this._getOrReturnCtx(l,r),ge(r,{code:re.too_big,maximum:y.value,type:"number",inclusive:y.inclusive,exact:!1,message:y.message}),f.dirty()):y.kind==="multipleOf"?CM(l.data,y.value)!==0&&(r=this._getOrReturnCtx(l,r),ge(r,{code:re.not_multiple_of,multipleOf:y.value,message:y.message}),f.dirty()):y.kind==="finite"?Number.isFinite(l.data)||(r=this._getOrReturnCtx(l,r),ge(r,{code:re.not_finite,message:y.message}),f.dirty()):bt.assertNever(y);return{status:f.value,value:l.data}}gte(l,a){return this.setLimit("min",l,!0,be.toString(a))}gt(l,a){return this.setLimit("min",l,!1,be.toString(a))}lte(l,a){return this.setLimit("max",l,!0,be.toString(a))}lt(l,a){return this.setLimit("max",l,!1,be.toString(a))}setLimit(l,a,r,f){return new Ec({...this._def,checks:[...this._def.checks,{kind:l,value:a,inclusive:r,message:be.toString(f)}]})}_addCheck(l){return new Ec({...this._def,checks:[...this._def.checks,l]})}int(l){return this._addCheck({kind:"int",message:be.toString(l)})}positive(l){return this._addCheck({kind:"min",value:0,inclusive:!1,message:be.toString(l)})}negative(l){return this._addCheck({kind:"max",value:0,inclusive:!1,message:be.toString(l)})}nonpositive(l){return this._addCheck({kind:"max",value:0,inclusive:!0,message:be.toString(l)})}nonnegative(l){return this._addCheck({kind:"min",value:0,inclusive:!0,message:be.toString(l)})}multipleOf(l,a){return this._addCheck({kind:"multipleOf",value:l,message:be.toString(a)})}finite(l){return this._addCheck({kind:"finite",message:be.toString(l)})}safe(l){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:be.toString(l)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:be.toString(l)})}get minValue(){let l=null;for(const a of this._def.checks)a.kind==="min"&&(l===null||a.value>l)&&(l=a.value);return l}get maxValue(){let l=null;for(const a of this._def.checks)a.kind==="max"&&(l===null||a.value<l)&&(l=a.value);return l}get isInt(){return!!this._def.checks.find(l=>l.kind==="int"||l.kind==="multipleOf"&&bt.isInteger(l.value))}get isFinite(){let l=null,a=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(a===null||r.value>a)&&(a=r.value):r.kind==="max"&&(l===null||r.value<l)&&(l=r.value)}return Number.isFinite(a)&&Number.isFinite(l)}}Ec.create=c=>new Ec({checks:[],typeName:Je.ZodNumber,coerce:(c==null?void 0:c.coerce)||!1,...st(c)});class _c extends yt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(l){if(this._def.coerce)try{l.data=BigInt(l.data)}catch{return this._getInvalidInput(l)}if(this._getType(l)!==Ce.bigint)return this._getInvalidInput(l);let r;const f=new ql;for(const y of this._def.checks)y.kind==="min"?(y.inclusive?l.data<y.value:l.data<=y.value)&&(r=this._getOrReturnCtx(l,r),ge(r,{code:re.too_small,type:"bigint",minimum:y.value,inclusive:y.inclusive,message:y.message}),f.dirty()):y.kind==="max"?(y.inclusive?l.data>y.value:l.data>=y.value)&&(r=this._getOrReturnCtx(l,r),ge(r,{code:re.too_big,type:"bigint",maximum:y.value,inclusive:y.inclusive,message:y.message}),f.dirty()):y.kind==="multipleOf"?l.data%y.value!==BigInt(0)&&(r=this._getOrReturnCtx(l,r),ge(r,{code:re.not_multiple_of,multipleOf:y.value,message:y.message}),f.dirty()):bt.assertNever(y);return{status:f.value,value:l.data}}_getInvalidInput(l){const a=this._getOrReturnCtx(l);return ge(a,{code:re.invalid_type,expected:Ce.bigint,received:a.parsedType}),Fe}gte(l,a){return this.setLimit("min",l,!0,be.toString(a))}gt(l,a){return this.setLimit("min",l,!1,be.toString(a))}lte(l,a){return this.setLimit("max",l,!0,be.toString(a))}lt(l,a){return this.setLimit("max",l,!1,be.toString(a))}setLimit(l,a,r,f){return new _c({...this._def,checks:[...this._def.checks,{kind:l,value:a,inclusive:r,message:be.toString(f)}]})}_addCheck(l){return new _c({...this._def,checks:[...this._def.checks,l]})}positive(l){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:be.toString(l)})}negative(l){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:be.toString(l)})}nonpositive(l){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:be.toString(l)})}nonnegative(l){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:be.toString(l)})}multipleOf(l,a){return this._addCheck({kind:"multipleOf",value:l,message:be.toString(a)})}get minValue(){let l=null;for(const a of this._def.checks)a.kind==="min"&&(l===null||a.value>l)&&(l=a.value);return l}get maxValue(){let l=null;for(const a of this._def.checks)a.kind==="max"&&(l===null||a.value<l)&&(l=a.value);return l}}_c.create=c=>new _c({checks:[],typeName:Je.ZodBigInt,coerce:(c==null?void 0:c.coerce)??!1,...st(c)});class pv extends yt{_parse(l){if(this._def.coerce&&(l.data=!!l.data),this._getType(l)!==Ce.boolean){const r=this._getOrReturnCtx(l);return ge(r,{code:re.invalid_type,expected:Ce.boolean,received:r.parsedType}),Fe}return si(l.data)}}pv.create=c=>new pv({typeName:Je.ZodBoolean,coerce:(c==null?void 0:c.coerce)||!1,...st(c)});class vd extends yt{_parse(l){if(this._def.coerce&&(l.data=new Date(l.data)),this._getType(l)!==Ce.date){const y=this._getOrReturnCtx(l);return ge(y,{code:re.invalid_type,expected:Ce.date,received:y.parsedType}),Fe}if(Number.isNaN(l.data.getTime())){const y=this._getOrReturnCtx(l);return ge(y,{code:re.invalid_date}),Fe}const r=new ql;let f;for(const y of this._def.checks)y.kind==="min"?l.data.getTime()<y.value&&(f=this._getOrReturnCtx(l,f),ge(f,{code:re.too_small,message:y.message,inclusive:!0,exact:!1,minimum:y.value,type:"date"}),r.dirty()):y.kind==="max"?l.data.getTime()>y.value&&(f=this._getOrReturnCtx(l,f),ge(f,{code:re.too_big,message:y.message,inclusive:!0,exact:!1,maximum:y.value,type:"date"}),r.dirty()):bt.assertNever(y);return{status:r.value,value:new Date(l.data.getTime())}}_addCheck(l){return new vd({...this._def,checks:[...this._def.checks,l]})}min(l,a){return this._addCheck({kind:"min",value:l.getTime(),message:be.toString(a)})}max(l,a){return this._addCheck({kind:"max",value:l.getTime(),message:be.toString(a)})}get minDate(){let l=null;for(const a of this._def.checks)a.kind==="min"&&(l===null||a.value>l)&&(l=a.value);return l!=null?new Date(l):null}get maxDate(){let l=null;for(const a of this._def.checks)a.kind==="max"&&(l===null||a.value<l)&&(l=a.value);return l!=null?new Date(l):null}}vd.create=c=>new vd({checks:[],coerce:(c==null?void 0:c.coerce)||!1,typeName:Je.ZodDate,...st(c)});class CE extends yt{_parse(l){if(this._getType(l)!==Ce.symbol){const r=this._getOrReturnCtx(l);return ge(r,{code:re.invalid_type,expected:Ce.symbol,received:r.parsedType}),Fe}return si(l.data)}}CE.create=c=>new CE({typeName:Je.ZodSymbol,...st(c)});class EE extends yt{_parse(l){if(this._getType(l)!==Ce.undefined){const r=this._getOrReturnCtx(l);return ge(r,{code:re.invalid_type,expected:Ce.undefined,received:r.parsedType}),Fe}return si(l.data)}}EE.create=c=>new EE({typeName:Je.ZodUndefined,...st(c)});class _E extends yt{_parse(l){if(this._getType(l)!==Ce.null){const r=this._getOrReturnCtx(l);return ge(r,{code:re.invalid_type,expected:Ce.null,received:r.parsedType}),Fe}return si(l.data)}}_E.create=c=>new _E({typeName:Je.ZodNull,...st(c)});class AE extends yt{constructor(){super(...arguments),this._any=!0}_parse(l){return si(l.data)}}AE.create=c=>new AE({typeName:Je.ZodAny,...st(c)});class oT extends yt{constructor(){super(...arguments),this._unknown=!0}_parse(l){return si(l.data)}}oT.create=c=>new oT({typeName:Je.ZodUnknown,...st(c)});class Gs extends yt{_parse(l){const a=this._getOrReturnCtx(l);return ge(a,{code:re.invalid_type,expected:Ce.never,received:a.parsedType}),Fe}}Gs.create=c=>new Gs({typeName:Je.ZodNever,...st(c)});class bE extends yt{_parse(l){if(this._getType(l)!==Ce.undefined){const r=this._getOrReturnCtx(l);return ge(r,{code:re.invalid_type,expected:Ce.void,received:r.parsedType}),Fe}return si(l.data)}}bE.create=c=>new bE({typeName:Je.ZodVoid,...st(c)});class Ho extends yt{_parse(l){const{ctx:a,status:r}=this._processInputParams(l),f=this._def;if(a.parsedType!==Ce.array)return ge(a,{code:re.invalid_type,expected:Ce.array,received:a.parsedType}),Fe;if(f.exactLength!==null){const C=a.data.length>f.exactLength.value,E=a.data.length<f.exactLength.value;(C||E)&&(ge(a,{code:C?re.too_big:re.too_small,minimum:E?f.exactLength.value:void 0,maximum:C?f.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:f.exactLength.message}),r.dirty())}if(f.minLength!==null&&a.data.length<f.minLength.value&&(ge(a,{code:re.too_small,minimum:f.minLength.value,type:"array",inclusive:!0,exact:!1,message:f.minLength.message}),r.dirty()),f.maxLength!==null&&a.data.length>f.maxLength.value&&(ge(a,{code:re.too_big,maximum:f.maxLength.value,type:"array",inclusive:!0,exact:!1,message:f.maxLength.message}),r.dirty()),a.common.async)return Promise.all([...a.data].map((C,E)=>f.type._parseAsync(new Vo(a,C,a.path,E)))).then(C=>ql.mergeArray(r,C));const y=[...a.data].map((C,E)=>f.type._parseSync(new Vo(a,C,a.path,E)));return ql.mergeArray(r,y)}get element(){return this._def.type}min(l,a){return new Ho({...this._def,minLength:{value:l,message:be.toString(a)}})}max(l,a){return new Ho({...this._def,maxLength:{value:l,message:be.toString(a)}})}length(l,a){return new Ho({...this._def,exactLength:{value:l,message:be.toString(a)}})}nonempty(l){return this.min(1,l)}}Ho.create=(c,l)=>new Ho({type:c,minLength:null,maxLength:null,exactLength:null,typeName:Je.ZodArray,...st(l)});function Sd(c){if(c instanceof wn){const l={};for(const a in c.shape){const r=c.shape[a];l[a]=Ys.create(Sd(r))}return new wn({...c._def,shape:()=>l})}else return c instanceof Ho?new Ho({...c._def,type:Sd(c.element)}):c instanceof Ys?Ys.create(Sd(c.unwrap())):c instanceof Ed?Ed.create(Sd(c.unwrap())):c instanceof Ac?Ac.create(c.items.map(l=>Sd(l))):c}class wn extends yt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const l=this._def.shape(),a=bt.objectKeys(l);return this._cached={shape:l,keys:a},this._cached}_parse(l){if(this._getType(l)!==Ce.object){const A=this._getOrReturnCtx(l);return ge(A,{code:re.invalid_type,expected:Ce.object,received:A.parsedType}),Fe}const{status:r,ctx:f}=this._processInputParams(l),{shape:y,keys:C}=this._getCached(),E=[];if(!(this._def.catchall instanceof Gs&&this._def.unknownKeys==="strip"))for(const A in f.data)C.includes(A)||E.push(A);const b=[];for(const A of C){const D=y[A],N=f.data[A];b.push({key:{status:"valid",value:A},value:D._parse(new Vo(f,N,f.path,A)),alwaysSet:A in f.data})}if(this._def.catchall instanceof Gs){const A=this._def.unknownKeys;if(A==="passthrough")for(const D of E)b.push({key:{status:"valid",value:D},value:{status:"valid",value:f.data[D]}});else if(A==="strict")E.length>0&&(ge(f,{code:re.unrecognized_keys,keys:E}),r.dirty());else if(A!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const A=this._def.catchall;for(const D of E){const N=f.data[D];b.push({key:{status:"valid",value:D},value:A._parse(new Vo(f,N,f.path,D)),alwaysSet:D in f.data})}}return f.common.async?Promise.resolve().then(async()=>{const A=[];for(const D of b){const N=await D.key,z=await D.value;A.push({key:N,value:z,alwaysSet:D.alwaysSet})}return A}).then(A=>ql.mergeObjectSync(r,A)):ql.mergeObjectSync(r,b)}get shape(){return this._def.shape()}strict(l){return be.errToObj,new wn({...this._def,unknownKeys:"strict",...l!==void 0?{errorMap:(a,r)=>{var y,C;const f=((C=(y=this._def).errorMap)==null?void 0:C.call(y,a,r).message)??r.defaultError;return a.code==="unrecognized_keys"?{message:be.errToObj(l).message??f}:{message:f}}}:{}})}strip(){return new wn({...this._def,unknownKeys:"strip"})}passthrough(){return new wn({...this._def,unknownKeys:"passthrough"})}extend(l){return new wn({...this._def,shape:()=>({...this._def.shape(),...l})})}merge(l){return new wn({unknownKeys:l._def.unknownKeys,catchall:l._def.catchall,shape:()=>({...this._def.shape(),...l._def.shape()}),typeName:Je.ZodObject})}setKey(l,a){return this.augment({[l]:a})}catchall(l){return new wn({...this._def,catchall:l})}pick(l){const a={};for(const r of bt.objectKeys(l))l[r]&&this.shape[r]&&(a[r]=this.shape[r]);return new wn({...this._def,shape:()=>a})}omit(l){const a={};for(const r of bt.objectKeys(this.shape))l[r]||(a[r]=this.shape[r]);return new wn({...this._def,shape:()=>a})}deepPartial(){return Sd(this)}partial(l){const a={};for(const r of bt.objectKeys(this.shape)){const f=this.shape[r];l&&!l[r]?a[r]=f:a[r]=f.optional()}return new wn({...this._def,shape:()=>a})}required(l){const a={};for(const r of bt.objectKeys(this.shape))if(l&&!l[r])a[r]=this.shape[r];else{let y=this.shape[r];for(;y instanceof Ys;)y=y._def.innerType;a[r]=y}return new wn({...this._def,shape:()=>a})}keyof(){return DE(bt.objectKeys(this.shape))}}wn.create=(c,l)=>new wn({shape:()=>c,unknownKeys:"strip",catchall:Gs.create(),typeName:Je.ZodObject,...st(l)}),wn.strictCreate=(c,l)=>new wn({shape:()=>c,unknownKeys:"strict",catchall:Gs.create(),typeName:Je.ZodObject,...st(l)}),wn.lazycreate=(c,l)=>new wn({shape:c,unknownKeys:"strip",catchall:Gs.create(),typeName:Je.ZodObject,...st(l)});class gv extends yt{_parse(l){const{ctx:a}=this._processInputParams(l),r=this._def.options;function f(y){for(const E of y)if(E.result.status==="valid")return E.result;for(const E of y)if(E.result.status==="dirty")return a.common.issues.push(...E.ctx.common.issues),E.result;const C=y.map(E=>new Mu(E.ctx.common.issues));return ge(a,{code:re.invalid_union,unionErrors:C}),Fe}if(a.common.async)return Promise.all(r.map(async y=>{const C={...a,common:{...a.common,issues:[]},parent:null};return{result:await y._parseAsync({data:a.data,path:a.path,parent:C}),ctx:C}})).then(f);{let y;const C=[];for(const b of r){const A={...a,common:{...a.common,issues:[]},parent:null},D=b._parseSync({data:a.data,path:a.path,parent:A});if(D.status==="valid")return D;D.status==="dirty"&&!y&&(y={result:D,ctx:A}),A.common.issues.length&&C.push(A.common.issues)}if(y)return a.common.issues.push(...y.ctx.common.issues),y.result;const E=C.map(b=>new Mu(b));return ge(a,{code:re.invalid_union,unionErrors:E}),Fe}}get options(){return this._def.options}}gv.create=(c,l)=>new gv({options:c,typeName:Je.ZodUnion,...st(l)});function uT(c,l){const a=qs(c),r=qs(l);if(c===l)return{valid:!0,data:c};if(a===Ce.object&&r===Ce.object){const f=bt.objectKeys(l),y=bt.objectKeys(c).filter(E=>f.indexOf(E)!==-1),C={...c,...l};for(const E of y){const b=uT(c[E],l[E]);if(!b.valid)return{valid:!1};C[E]=b.data}return{valid:!0,data:C}}else if(a===Ce.array&&r===Ce.array){if(c.length!==l.length)return{valid:!1};const f=[];for(let y=0;y<c.length;y++){const C=c[y],E=l[y],b=uT(C,E);if(!b.valid)return{valid:!1};f.push(b.data)}return{valid:!0,data:f}}else return a===Ce.date&&r===Ce.date&&+c==+l?{valid:!0,data:c}:{valid:!1}}class yv extends yt{_parse(l){const{status:a,ctx:r}=this._processInputParams(l),f=(y,C)=>{if(gE(y)||gE(C))return Fe;const E=uT(y.value,C.value);return E.valid?((yE(y)||yE(C))&&a.dirty(),{status:a.value,value:E.data}):(ge(r,{code:re.invalid_intersection_types}),Fe)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([y,C])=>f(y,C)):f(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}yv.create=(c,l,a)=>new yv({left:c,right:l,typeName:Je.ZodIntersection,...st(a)});class Ac extends yt{_parse(l){const{status:a,ctx:r}=this._processInputParams(l);if(r.parsedType!==Ce.array)return ge(r,{code:re.invalid_type,expected:Ce.array,received:r.parsedType}),Fe;if(r.data.length<this._def.items.length)return ge(r,{code:re.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Fe;!this._def.rest&&r.data.length>this._def.items.length&&(ge(r,{code:re.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),a.dirty());const y=[...r.data].map((C,E)=>{const b=this._def.items[E]||this._def.rest;return b?b._parse(new Vo(r,C,r.path,E)):null}).filter(C=>!!C);return r.common.async?Promise.all(y).then(C=>ql.mergeArray(a,C)):ql.mergeArray(a,y)}get items(){return this._def.items}rest(l){return new Ac({...this._def,rest:l})}}Ac.create=(c,l)=>{if(!Array.isArray(c))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ac({items:c,typeName:Je.ZodTuple,rest:null,...st(l)})};class vv extends yt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(l){const{status:a,ctx:r}=this._processInputParams(l);if(r.parsedType!==Ce.object)return ge(r,{code:re.invalid_type,expected:Ce.object,received:r.parsedType}),Fe;const f=[],y=this._def.keyType,C=this._def.valueType;for(const E in r.data)f.push({key:y._parse(new Vo(r,E,r.path,E)),value:C._parse(new Vo(r,r.data[E],r.path,E)),alwaysSet:E in r.data});return r.common.async?ql.mergeObjectAsync(a,f):ql.mergeObjectSync(a,f)}get element(){return this._def.valueType}static create(l,a,r){return a instanceof yt?new vv({keyType:l,valueType:a,typeName:Je.ZodRecord,...st(r)}):new vv({keyType:Lo.create(),valueType:l,typeName:Je.ZodRecord,...st(a)})}}class ME extends yt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(l){const{status:a,ctx:r}=this._processInputParams(l);if(r.parsedType!==Ce.map)return ge(r,{code:re.invalid_type,expected:Ce.map,received:r.parsedType}),Fe;const f=this._def.keyType,y=this._def.valueType,C=[...r.data.entries()].map(([E,b],A)=>({key:f._parse(new Vo(r,E,r.path,[A,"key"])),value:y._parse(new Vo(r,b,r.path,[A,"value"]))}));if(r.common.async){const E=new Map;return Promise.resolve().then(async()=>{for(const b of C){const A=await b.key,D=await b.value;if(A.status==="aborted"||D.status==="aborted")return Fe;(A.status==="dirty"||D.status==="dirty")&&a.dirty(),E.set(A.value,D.value)}return{status:a.value,value:E}})}else{const E=new Map;for(const b of C){const A=b.key,D=b.value;if(A.status==="aborted"||D.status==="aborted")return Fe;(A.status==="dirty"||D.status==="dirty")&&a.dirty(),E.set(A.value,D.value)}return{status:a.value,value:E}}}}ME.create=(c,l,a)=>new ME({valueType:l,keyType:c,typeName:Je.ZodMap,...st(a)});class ip extends yt{_parse(l){const{status:a,ctx:r}=this._processInputParams(l);if(r.parsedType!==Ce.set)return ge(r,{code:re.invalid_type,expected:Ce.set,received:r.parsedType}),Fe;const f=this._def;f.minSize!==null&&r.data.size<f.minSize.value&&(ge(r,{code:re.too_small,minimum:f.minSize.value,type:"set",inclusive:!0,exact:!1,message:f.minSize.message}),a.dirty()),f.maxSize!==null&&r.data.size>f.maxSize.value&&(ge(r,{code:re.too_big,maximum:f.maxSize.value,type:"set",inclusive:!0,exact:!1,message:f.maxSize.message}),a.dirty());const y=this._def.valueType;function C(b){const A=new Set;for(const D of b){if(D.status==="aborted")return Fe;D.status==="dirty"&&a.dirty(),A.add(D.value)}return{status:a.value,value:A}}const E=[...r.data.values()].map((b,A)=>y._parse(new Vo(r,b,r.path,A)));return r.common.async?Promise.all(E).then(b=>C(b)):C(E)}min(l,a){return new ip({...this._def,minSize:{value:l,message:be.toString(a)}})}max(l,a){return new ip({...this._def,maxSize:{value:l,message:be.toString(a)}})}size(l,a){return this.min(l,a).max(l,a)}nonempty(l){return this.min(1,l)}}ip.create=(c,l)=>new ip({valueType:c,minSize:null,maxSize:null,typeName:Je.ZodSet,...st(l)});class sT extends yt{get schema(){return this._def.getter()}_parse(l){const{ctx:a}=this._processInputParams(l);return this._def.getter()._parse({data:a.data,path:a.path,parent:a})}}sT.create=(c,l)=>new sT({getter:c,typeName:Je.ZodLazy,...st(l)});class RE extends yt{_parse(l){if(l.data!==this._def.value){const a=this._getOrReturnCtx(l);return ge(a,{received:a.data,code:re.invalid_literal,expected:this._def.value}),Fe}return{status:"valid",value:l.data}}get value(){return this._def.value}}RE.create=(c,l)=>new RE({value:c,typeName:Je.ZodLiteral,...st(l)});function DE(c,l){return new Td({values:c,typeName:Je.ZodEnum,...st(l)})}class Td extends yt{_parse(l){if(typeof l.data!="string"){const a=this._getOrReturnCtx(l),r=this._def.values;return ge(a,{expected:bt.joinValues(r),received:a.parsedType,code:re.invalid_type}),Fe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(l.data)){const a=this._getOrReturnCtx(l),r=this._def.values;return ge(a,{received:a.data,code:re.invalid_enum_value,options:r}),Fe}return si(l.data)}get options(){return this._def.values}get enum(){const l={};for(const a of this._def.values)l[a]=a;return l}get Values(){const l={};for(const a of this._def.values)l[a]=a;return l}get Enum(){const l={};for(const a of this._def.values)l[a]=a;return l}extract(l,a=this._def){return Td.create(l,{...this._def,...a})}exclude(l,a=this._def){return Td.create(this.options.filter(r=>!l.includes(r)),{...this._def,...a})}}Td.create=DE;class xE extends yt{_parse(l){const a=bt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(l);if(r.parsedType!==Ce.string&&r.parsedType!==Ce.number){const f=bt.objectValues(a);return ge(r,{expected:bt.joinValues(f),received:r.parsedType,code:re.invalid_type}),Fe}if(this._cache||(this._cache=new Set(bt.getValidEnumValues(this._def.values))),!this._cache.has(l.data)){const f=bt.objectValues(a);return ge(r,{received:r.data,code:re.invalid_enum_value,options:f}),Fe}return si(l.data)}get enum(){return this._def.values}}xE.create=(c,l)=>new xE({values:c,typeName:Je.ZodNativeEnum,...st(l)});class Sv extends yt{unwrap(){return this._def.type}_parse(l){const{ctx:a}=this._processInputParams(l);if(a.parsedType!==Ce.promise&&a.common.async===!1)return ge(a,{code:re.invalid_type,expected:Ce.promise,received:a.parsedType}),Fe;const r=a.parsedType===Ce.promise?a.data:Promise.resolve(a.data);return si(r.then(f=>this._def.type.parseAsync(f,{path:a.path,errorMap:a.common.contextualErrorMap})))}}Sv.create=(c,l)=>new Sv({type:c,typeName:Je.ZodPromise,...st(l)});class Cd extends yt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Je.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(l){const{status:a,ctx:r}=this._processInputParams(l),f=this._def.effect||null,y={addIssue:C=>{ge(r,C),C.fatal?a.abort():a.dirty()},get path(){return r.path}};if(y.addIssue=y.addIssue.bind(y),f.type==="preprocess"){const C=f.transform(r.data,y);if(r.common.async)return Promise.resolve(C).then(async E=>{if(a.value==="aborted")return Fe;const b=await this._def.schema._parseAsync({data:E,path:r.path,parent:r});return b.status==="aborted"?Fe:b.status==="dirty"||a.value==="dirty"?ap(b.value):b});{if(a.value==="aborted")return Fe;const E=this._def.schema._parseSync({data:C,path:r.path,parent:r});return E.status==="aborted"?Fe:E.status==="dirty"||a.value==="dirty"?ap(E.value):E}}if(f.type==="refinement"){const C=E=>{const b=f.refinement(E,y);if(r.common.async)return Promise.resolve(b);if(b instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return E};if(r.common.async===!1){const E=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return E.status==="aborted"?Fe:(E.status==="dirty"&&a.dirty(),C(E.value),{status:a.value,value:E.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(E=>E.status==="aborted"?Fe:(E.status==="dirty"&&a.dirty(),C(E.value).then(()=>({status:a.value,value:E.value}))))}if(f.type==="transform")if(r.common.async===!1){const C=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!yd(C))return Fe;const E=f.transform(C.value,y);if(E instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:a.value,value:E}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(C=>yd(C)?Promise.resolve(f.transform(C.value,y)).then(E=>({status:a.value,value:E})):Fe);bt.assertNever(f)}}Cd.create=(c,l,a)=>new Cd({schema:c,typeName:Je.ZodEffects,effect:l,...st(a)}),Cd.createWithPreprocess=(c,l,a)=>new Cd({schema:l,effect:{type:"preprocess",transform:c},typeName:Je.ZodEffects,...st(a)});class Ys extends yt{_parse(l){return this._getType(l)===Ce.undefined?si(void 0):this._def.innerType._parse(l)}unwrap(){return this._def.innerType}}Ys.create=(c,l)=>new Ys({innerType:c,typeName:Je.ZodOptional,...st(l)});class Ed extends yt{_parse(l){return this._getType(l)===Ce.null?si(null):this._def.innerType._parse(l)}unwrap(){return this._def.innerType}}Ed.create=(c,l)=>new Ed({innerType:c,typeName:Je.ZodNullable,...st(l)});class rT extends yt{_parse(l){const{ctx:a}=this._processInputParams(l);let r=a.data;return a.parsedType===Ce.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:a.path,parent:a})}removeDefault(){return this._def.innerType}}rT.create=(c,l)=>new rT({innerType:c,typeName:Je.ZodDefault,defaultValue:typeof l.default=="function"?l.default:()=>l.default,...st(l)});class cT extends yt{_parse(l){const{ctx:a}=this._processInputParams(l),r={...a,common:{...a.common,issues:[]}},f=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return mv(f)?f.then(y=>({status:"valid",value:y.status==="valid"?y.value:this._def.catchValue({get error(){return new Mu(r.common.issues)},input:r.data})})):{status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new Mu(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}cT.create=(c,l)=>new cT({innerType:c,typeName:Je.ZodCatch,catchValue:typeof l.catch=="function"?l.catch:()=>l.catch,...st(l)});class UE extends yt{_parse(l){if(this._getType(l)!==Ce.nan){const r=this._getOrReturnCtx(l);return ge(r,{code:re.invalid_type,expected:Ce.nan,received:r.parsedType}),Fe}return{status:"valid",value:l.data}}}UE.create=c=>new UE({typeName:Je.ZodNaN,...st(c)});class EM extends yt{_parse(l){const{ctx:a}=this._processInputParams(l),r=a.data;return this._def.type._parse({data:r,path:a.path,parent:a})}unwrap(){return this._def.type}}class fT extends yt{_parse(l){const{status:a,ctx:r}=this._processInputParams(l);if(r.common.async)return(async()=>{const y=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return y.status==="aborted"?Fe:y.status==="dirty"?(a.dirty(),ap(y.value)):this._def.out._parseAsync({data:y.value,path:r.path,parent:r})})();{const f=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return f.status==="aborted"?Fe:f.status==="dirty"?(a.dirty(),{status:"dirty",value:f.value}):this._def.out._parseSync({data:f.value,path:r.path,parent:r})}}static create(l,a){return new fT({in:l,out:a,typeName:Je.ZodPipeline})}}class dT extends yt{_parse(l){const a=this._def.innerType._parse(l),r=f=>(yd(f)&&(f.value=Object.freeze(f.value)),f);return mv(a)?a.then(f=>r(f)):r(a)}unwrap(){return this._def.innerType}}dT.create=(c,l)=>new dT({innerType:c,typeName:Je.ZodReadonly,...st(l)});var Je;(function(c){c.ZodString="ZodString",c.ZodNumber="ZodNumber",c.ZodNaN="ZodNaN",c.ZodBigInt="ZodBigInt",c.ZodBoolean="ZodBoolean",c.ZodDate="ZodDate",c.ZodSymbol="ZodSymbol",c.ZodUndefined="ZodUndefined",c.ZodNull="ZodNull",c.ZodAny="ZodAny",c.ZodUnknown="ZodUnknown",c.ZodNever="ZodNever",c.ZodVoid="ZodVoid",c.ZodArray="ZodArray",c.ZodObject="ZodObject",c.ZodUnion="ZodUnion",c.ZodDiscriminatedUnion="ZodDiscriminatedUnion",c.ZodIntersection="ZodIntersection",c.ZodTuple="ZodTuple",c.ZodRecord="ZodRecord",c.ZodMap="ZodMap",c.ZodSet="ZodSet",c.ZodFunction="ZodFunction",c.ZodLazy="ZodLazy",c.ZodLiteral="ZodLiteral",c.ZodEnum="ZodEnum",c.ZodEffects="ZodEffects",c.ZodNativeEnum="ZodNativeEnum",c.ZodOptional="ZodOptional",c.ZodNullable="ZodNullable",c.ZodDefault="ZodDefault",c.ZodCatch="ZodCatch",c.ZodPromise="ZodPromise",c.ZodBranded="ZodBranded",c.ZodPipeline="ZodPipeline",c.ZodReadonly="ZodReadonly"})(Je||(Je={}));const bc=Lo.create,NE=Ec.create;_c.create;const _M=pv.create;vd.create;const zE=oT.create;Gs.create;const op=Ho.create,AM=wn.create,bM=gv.create;yv.create,Ac.create;const MM=vv.create,RM=sT.create,DM=Td.create;Sv.create,Ys.create,Ed.create;const _d={string:(c=>Lo.create({...c,coerce:!0})),number:(c=>Ec.create({...c,coerce:!0})),boolean:(c=>pv.create({...c,coerce:!0})),bigint:(c=>_c.create({...c,coerce:!0})),date:(c=>vd.create({...c,coerce:!0}))};/**
127
351
  * @license
128
352
  * Copyright 2025 Google LLC
129
353
  * SPDX-License-Identifier: Apache-2.0
130
- */let dh,ph;function hh(){return{geminiUrl:dh,vertexUrl:ph}}function mh(n,e,t){var i,r,o;if(!(!((i=n.httpOptions)===null||i===void 0)&&i.baseUrl)){const l=hh();return n.vertexai?(r=l.vertexUrl)!==null&&r!==void 0?r:e:(o=l.geminiUrl)!==null&&o!==void 0?o:t}return n.httpOptions.baseUrl}/**
354
+ */let xM,UM;function NM(){return{geminiUrl:xM,vertexUrl:UM}}function zM(c,l,a){var r,f,y;if(!(!((r=c.httpOptions)===null||r===void 0)&&r.baseUrl)){const C=NM();return c.vertexai?(f=C.vertexUrl)!==null&&f!==void 0?f:l:(y=C.geminiUrl)!==null&&y!==void 0?y:a}return c.httpOptions.baseUrl}/**
131
355
  * @license
132
356
  * Copyright 2025 Google LLC
133
357
  * SPDX-License-Identifier: Apache-2.0
134
- */class fn{}function X(n,e){const t=/\{([^}]+)\}/g;return n.replace(t,(i,r)=>{if(Object.prototype.hasOwnProperty.call(e,r)){const o=e[r];return o!=null?String(o):""}else throw new Error(`Key '${r}' not found in valueMap.`)})}function a(n,e,t){for(let o=0;o<e.length-1;o++){const l=e[o];if(l.endsWith("[]")){const u=l.slice(0,-2);if(!(u in n))if(Array.isArray(t))n[u]=Array.from({length:t.length},()=>({}));else throw new Error(`Value must be a list given an array path ${l}`);if(Array.isArray(n[u])){const c=n[u];if(Array.isArray(t))for(let f=0;f<c.length;f++){const d=c[f];a(d,e.slice(o+1),t[f])}else for(const f of c)a(f,e.slice(o+1),t)}return}else if(l.endsWith("[0]")){const u=l.slice(0,-3);u in n||(n[u]=[{}]);const c=n[u];a(c[0],e.slice(o+1),t);return}(!n[l]||typeof n[l]!="object")&&(n[l]={}),n=n[l]}const i=e[e.length-1],r=n[i];if(r!==void 0){if(!t||typeof t=="object"&&Object.keys(t).length===0||t===r)return;if(typeof r=="object"&&typeof t=="object"&&r!==null&&t!==null)Object.assign(r,t);else throw new Error(`Cannot set value for an existing key. Key: ${i}`)}else n[i]=t}function s(n,e){try{if(e.length===1&&e[0]==="_self")return n;for(let t=0;t<e.length;t++){if(typeof n!="object"||n===null)return;const i=e[t];if(i.endsWith("[]")){const r=i.slice(0,-2);if(r in n){const o=n[r];return Array.isArray(o)?o.map(l=>s(l,e.slice(t+1))):void 0}else return}else n=n[i]}return n}catch(t){if(t instanceof TypeError)return;throw t}}/**
358
+ */class Ad{}function Ze(c,l){const a=/\{([^}]+)\}/g;return c.replace(a,(r,f)=>{if(Object.prototype.hasOwnProperty.call(l,f)){const y=l[f];return y!=null?String(y):""}else throw new Error(`Key '${f}' not found in valueMap.`)})}function g(c,l,a){for(let y=0;y<l.length-1;y++){const C=l[y];if(C.endsWith("[]")){const E=C.slice(0,-2);if(!(E in c))if(Array.isArray(a))c[E]=Array.from({length:a.length},()=>({}));else throw new Error(`Value must be a list given an array path ${C}`);if(Array.isArray(c[E])){const b=c[E];if(Array.isArray(a))for(let A=0;A<b.length;A++){const D=b[A];g(D,l.slice(y+1),a[A])}else for(const A of b)g(A,l.slice(y+1),a)}return}else if(C.endsWith("[0]")){const E=C.slice(0,-3);E in c||(c[E]=[{}]);const b=c[E];g(b[0],l.slice(y+1),a);return}(!c[C]||typeof c[C]!="object")&&(c[C]={}),c=c[C]}const r=l[l.length-1],f=c[r];if(f!==void 0){if(!a||typeof a=="object"&&Object.keys(a).length===0||a===f)return;if(typeof f=="object"&&typeof a=="object"&&f!==null&&a!==null)Object.assign(f,a);else throw new Error(`Cannot set value for an existing key. Key: ${r}`)}else c[r]=a}function m(c,l){try{if(l.length===1&&l[0]==="_self")return c;for(let a=0;a<l.length;a++){if(typeof c!="object"||c===null)return;const r=l[a];if(r.endsWith("[]")){const f=r.slice(0,-2);if(f in c){const y=c[f];return Array.isArray(y)?y.map(C=>m(C,l.slice(a+1))):void 0}else return}else c=c[r]}return c}catch(a){if(a instanceof TypeError)return;throw a}}/**
135
359
  * @license
136
360
  * Copyright 2025 Google LLC
137
361
  * SPDX-License-Identifier: Apache-2.0
138
- */var qs;(function(n){n.OUTCOME_UNSPECIFIED="OUTCOME_UNSPECIFIED",n.OUTCOME_OK="OUTCOME_OK",n.OUTCOME_FAILED="OUTCOME_FAILED",n.OUTCOME_DEADLINE_EXCEEDED="OUTCOME_DEADLINE_EXCEEDED"})(qs||(qs={}));var Hs;(function(n){n.LANGUAGE_UNSPECIFIED="LANGUAGE_UNSPECIFIED",n.PYTHON="PYTHON"})(Hs||(Hs={}));var ze;(function(n){n.TYPE_UNSPECIFIED="TYPE_UNSPECIFIED",n.STRING="STRING",n.NUMBER="NUMBER",n.INTEGER="INTEGER",n.BOOLEAN="BOOLEAN",n.ARRAY="ARRAY",n.OBJECT="OBJECT",n.NULL="NULL"})(ze||(ze={}));var Ws;(function(n){n.HARM_CATEGORY_UNSPECIFIED="HARM_CATEGORY_UNSPECIFIED",n.HARM_CATEGORY_HATE_SPEECH="HARM_CATEGORY_HATE_SPEECH",n.HARM_CATEGORY_DANGEROUS_CONTENT="HARM_CATEGORY_DANGEROUS_CONTENT",n.HARM_CATEGORY_HARASSMENT="HARM_CATEGORY_HARASSMENT",n.HARM_CATEGORY_SEXUALLY_EXPLICIT="HARM_CATEGORY_SEXUALLY_EXPLICIT",n.HARM_CATEGORY_CIVIC_INTEGRITY="HARM_CATEGORY_CIVIC_INTEGRITY"})(Ws||(Ws={}));var zs;(function(n){n.HARM_BLOCK_METHOD_UNSPECIFIED="HARM_BLOCK_METHOD_UNSPECIFIED",n.SEVERITY="SEVERITY",n.PROBABILITY="PROBABILITY"})(zs||(zs={}));var Ys;(function(n){n.HARM_BLOCK_THRESHOLD_UNSPECIFIED="HARM_BLOCK_THRESHOLD_UNSPECIFIED",n.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",n.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",n.BLOCK_ONLY_HIGH="BLOCK_ONLY_HIGH",n.BLOCK_NONE="BLOCK_NONE",n.OFF="OFF"})(Ys||(Ys={}));var Ks;(function(n){n.MODE_UNSPECIFIED="MODE_UNSPECIFIED",n.MODE_DYNAMIC="MODE_DYNAMIC"})(Ks||(Ks={}));var Js;(function(n){n.AUTH_TYPE_UNSPECIFIED="AUTH_TYPE_UNSPECIFIED",n.NO_AUTH="NO_AUTH",n.API_KEY_AUTH="API_KEY_AUTH",n.HTTP_BASIC_AUTH="HTTP_BASIC_AUTH",n.GOOGLE_SERVICE_ACCOUNT_AUTH="GOOGLE_SERVICE_ACCOUNT_AUTH",n.OAUTH="OAUTH",n.OIDC_AUTH="OIDC_AUTH"})(Js||(Js={}));var Zs;(function(n){n.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",n.STOP="STOP",n.MAX_TOKENS="MAX_TOKENS",n.SAFETY="SAFETY",n.RECITATION="RECITATION",n.LANGUAGE="LANGUAGE",n.OTHER="OTHER",n.BLOCKLIST="BLOCKLIST",n.PROHIBITED_CONTENT="PROHIBITED_CONTENT",n.SPII="SPII",n.MALFORMED_FUNCTION_CALL="MALFORMED_FUNCTION_CALL",n.IMAGE_SAFETY="IMAGE_SAFETY",n.UNEXPECTED_TOOL_CALL="UNEXPECTED_TOOL_CALL"})(Zs||(Zs={}));var Xs;(function(n){n.HARM_PROBABILITY_UNSPECIFIED="HARM_PROBABILITY_UNSPECIFIED",n.NEGLIGIBLE="NEGLIGIBLE",n.LOW="LOW",n.MEDIUM="MEDIUM",n.HIGH="HIGH"})(Xs||(Xs={}));var Qs;(function(n){n.HARM_SEVERITY_UNSPECIFIED="HARM_SEVERITY_UNSPECIFIED",n.HARM_SEVERITY_NEGLIGIBLE="HARM_SEVERITY_NEGLIGIBLE",n.HARM_SEVERITY_LOW="HARM_SEVERITY_LOW",n.HARM_SEVERITY_MEDIUM="HARM_SEVERITY_MEDIUM",n.HARM_SEVERITY_HIGH="HARM_SEVERITY_HIGH"})(Qs||(Qs={}));var js;(function(n){n.BLOCKED_REASON_UNSPECIFIED="BLOCKED_REASON_UNSPECIFIED",n.SAFETY="SAFETY",n.OTHER="OTHER",n.BLOCKLIST="BLOCKLIST",n.PROHIBITED_CONTENT="PROHIBITED_CONTENT"})(js||(js={}));var ea;(function(n){n.TRAFFIC_TYPE_UNSPECIFIED="TRAFFIC_TYPE_UNSPECIFIED",n.ON_DEMAND="ON_DEMAND",n.PROVISIONED_THROUGHPUT="PROVISIONED_THROUGHPUT"})(ea||(ea={}));var Ti;(function(n){n.MODALITY_UNSPECIFIED="MODALITY_UNSPECIFIED",n.TEXT="TEXT",n.IMAGE="IMAGE",n.AUDIO="AUDIO"})(Ti||(Ti={}));var ta;(function(n){n.MEDIA_RESOLUTION_UNSPECIFIED="MEDIA_RESOLUTION_UNSPECIFIED",n.MEDIA_RESOLUTION_LOW="MEDIA_RESOLUTION_LOW",n.MEDIA_RESOLUTION_MEDIUM="MEDIA_RESOLUTION_MEDIUM",n.MEDIA_RESOLUTION_HIGH="MEDIA_RESOLUTION_HIGH"})(ta||(ta={}));var Sr;(function(n){n.JOB_STATE_UNSPECIFIED="JOB_STATE_UNSPECIFIED",n.JOB_STATE_QUEUED="JOB_STATE_QUEUED",n.JOB_STATE_PENDING="JOB_STATE_PENDING",n.JOB_STATE_RUNNING="JOB_STATE_RUNNING",n.JOB_STATE_SUCCEEDED="JOB_STATE_SUCCEEDED",n.JOB_STATE_FAILED="JOB_STATE_FAILED",n.JOB_STATE_CANCELLING="JOB_STATE_CANCELLING",n.JOB_STATE_CANCELLED="JOB_STATE_CANCELLED",n.JOB_STATE_PAUSED="JOB_STATE_PAUSED",n.JOB_STATE_EXPIRED="JOB_STATE_EXPIRED",n.JOB_STATE_UPDATING="JOB_STATE_UPDATING",n.JOB_STATE_PARTIALLY_SUCCEEDED="JOB_STATE_PARTIALLY_SUCCEEDED"})(Sr||(Sr={}));var na;(function(n){n.ADAPTER_SIZE_UNSPECIFIED="ADAPTER_SIZE_UNSPECIFIED",n.ADAPTER_SIZE_ONE="ADAPTER_SIZE_ONE",n.ADAPTER_SIZE_TWO="ADAPTER_SIZE_TWO",n.ADAPTER_SIZE_FOUR="ADAPTER_SIZE_FOUR",n.ADAPTER_SIZE_EIGHT="ADAPTER_SIZE_EIGHT",n.ADAPTER_SIZE_SIXTEEN="ADAPTER_SIZE_SIXTEEN",n.ADAPTER_SIZE_THIRTY_TWO="ADAPTER_SIZE_THIRTY_TWO"})(na||(na={}));var ia;(function(n){n.FEATURE_SELECTION_PREFERENCE_UNSPECIFIED="FEATURE_SELECTION_PREFERENCE_UNSPECIFIED",n.PRIORITIZE_QUALITY="PRIORITIZE_QUALITY",n.BALANCED="BALANCED",n.PRIORITIZE_COST="PRIORITIZE_COST"})(ia||(ia={}));var ra;(function(n){n.UNSPECIFIED="UNSPECIFIED",n.BLOCKING="BLOCKING",n.NON_BLOCKING="NON_BLOCKING"})(ra||(ra={}));var oa;(function(n){n.MODE_UNSPECIFIED="MODE_UNSPECIFIED",n.MODE_DYNAMIC="MODE_DYNAMIC"})(oa||(oa={}));var sa;(function(n){n.MODE_UNSPECIFIED="MODE_UNSPECIFIED",n.AUTO="AUTO",n.ANY="ANY",n.NONE="NONE"})(sa||(sa={}));var aa;(function(n){n.URL_RETRIEVAL_STATUS_UNSPECIFIED="URL_RETRIEVAL_STATUS_UNSPECIFIED",n.URL_RETRIEVAL_STATUS_SUCCESS="URL_RETRIEVAL_STATUS_SUCCESS",n.URL_RETRIEVAL_STATUS_ERROR="URL_RETRIEVAL_STATUS_ERROR"})(aa||(aa={}));var la;(function(n){n.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",n.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",n.BLOCK_ONLY_HIGH="BLOCK_ONLY_HIGH",n.BLOCK_NONE="BLOCK_NONE"})(la||(la={}));var ua;(function(n){n.DONT_ALLOW="DONT_ALLOW",n.ALLOW_ADULT="ALLOW_ADULT",n.ALLOW_ALL="ALLOW_ALL"})(ua||(ua={}));var ca;(function(n){n.auto="auto",n.en="en",n.ja="ja",n.ko="ko",n.hi="hi"})(ca||(ca={}));var fa;(function(n){n.MASK_MODE_DEFAULT="MASK_MODE_DEFAULT",n.MASK_MODE_USER_PROVIDED="MASK_MODE_USER_PROVIDED",n.MASK_MODE_BACKGROUND="MASK_MODE_BACKGROUND",n.MASK_MODE_FOREGROUND="MASK_MODE_FOREGROUND",n.MASK_MODE_SEMANTIC="MASK_MODE_SEMANTIC"})(fa||(fa={}));var da;(function(n){n.CONTROL_TYPE_DEFAULT="CONTROL_TYPE_DEFAULT",n.CONTROL_TYPE_CANNY="CONTROL_TYPE_CANNY",n.CONTROL_TYPE_SCRIBBLE="CONTROL_TYPE_SCRIBBLE",n.CONTROL_TYPE_FACE_MESH="CONTROL_TYPE_FACE_MESH"})(da||(da={}));var pa;(function(n){n.SUBJECT_TYPE_DEFAULT="SUBJECT_TYPE_DEFAULT",n.SUBJECT_TYPE_PERSON="SUBJECT_TYPE_PERSON",n.SUBJECT_TYPE_ANIMAL="SUBJECT_TYPE_ANIMAL",n.SUBJECT_TYPE_PRODUCT="SUBJECT_TYPE_PRODUCT"})(pa||(pa={}));var ha;(function(n){n.EDIT_MODE_DEFAULT="EDIT_MODE_DEFAULT",n.EDIT_MODE_INPAINT_REMOVAL="EDIT_MODE_INPAINT_REMOVAL",n.EDIT_MODE_INPAINT_INSERTION="EDIT_MODE_INPAINT_INSERTION",n.EDIT_MODE_OUTPAINT="EDIT_MODE_OUTPAINT",n.EDIT_MODE_CONTROLLED_EDITING="EDIT_MODE_CONTROLLED_EDITING",n.EDIT_MODE_STYLE="EDIT_MODE_STYLE",n.EDIT_MODE_BGSWAP="EDIT_MODE_BGSWAP",n.EDIT_MODE_PRODUCT_IMAGE="EDIT_MODE_PRODUCT_IMAGE"})(ha||(ha={}));var ma;(function(n){n.STATE_UNSPECIFIED="STATE_UNSPECIFIED",n.PROCESSING="PROCESSING",n.ACTIVE="ACTIVE",n.FAILED="FAILED"})(ma||(ma={}));var ga;(function(n){n.SOURCE_UNSPECIFIED="SOURCE_UNSPECIFIED",n.UPLOADED="UPLOADED",n.GENERATED="GENERATED"})(ga||(ga={}));var ya;(function(n){n.MODALITY_UNSPECIFIED="MODALITY_UNSPECIFIED",n.TEXT="TEXT",n.IMAGE="IMAGE",n.VIDEO="VIDEO",n.AUDIO="AUDIO",n.DOCUMENT="DOCUMENT"})(ya||(ya={}));var va;(function(n){n.START_SENSITIVITY_UNSPECIFIED="START_SENSITIVITY_UNSPECIFIED",n.START_SENSITIVITY_HIGH="START_SENSITIVITY_HIGH",n.START_SENSITIVITY_LOW="START_SENSITIVITY_LOW"})(va||(va={}));var _a;(function(n){n.END_SENSITIVITY_UNSPECIFIED="END_SENSITIVITY_UNSPECIFIED",n.END_SENSITIVITY_HIGH="END_SENSITIVITY_HIGH",n.END_SENSITIVITY_LOW="END_SENSITIVITY_LOW"})(_a||(_a={}));var xa;(function(n){n.ACTIVITY_HANDLING_UNSPECIFIED="ACTIVITY_HANDLING_UNSPECIFIED",n.START_OF_ACTIVITY_INTERRUPTS="START_OF_ACTIVITY_INTERRUPTS",n.NO_INTERRUPTION="NO_INTERRUPTION"})(xa||(xa={}));var Ca;(function(n){n.TURN_COVERAGE_UNSPECIFIED="TURN_COVERAGE_UNSPECIFIED",n.TURN_INCLUDES_ONLY_ACTIVITY="TURN_INCLUDES_ONLY_ACTIVITY",n.TURN_INCLUDES_ALL_INPUT="TURN_INCLUDES_ALL_INPUT"})(Ca||(Ca={}));var Ea;(function(n){n.SCHEDULING_UNSPECIFIED="SCHEDULING_UNSPECIFIED",n.SILENT="SILENT",n.WHEN_IDLE="WHEN_IDLE",n.INTERRUPT="INTERRUPT"})(Ea||(Ea={}));var Ta;(function(n){n.SCALE_UNSPECIFIED="SCALE_UNSPECIFIED",n.C_MAJOR_A_MINOR="C_MAJOR_A_MINOR",n.D_FLAT_MAJOR_B_FLAT_MINOR="D_FLAT_MAJOR_B_FLAT_MINOR",n.D_MAJOR_B_MINOR="D_MAJOR_B_MINOR",n.E_FLAT_MAJOR_C_MINOR="E_FLAT_MAJOR_C_MINOR",n.E_MAJOR_D_FLAT_MINOR="E_MAJOR_D_FLAT_MINOR",n.F_MAJOR_D_MINOR="F_MAJOR_D_MINOR",n.G_FLAT_MAJOR_E_FLAT_MINOR="G_FLAT_MAJOR_E_FLAT_MINOR",n.G_MAJOR_E_MINOR="G_MAJOR_E_MINOR",n.A_FLAT_MAJOR_F_MINOR="A_FLAT_MAJOR_F_MINOR",n.A_MAJOR_G_FLAT_MINOR="A_MAJOR_G_FLAT_MINOR",n.B_FLAT_MAJOR_G_MINOR="B_FLAT_MAJOR_G_MINOR",n.B_MAJOR_A_FLAT_MINOR="B_MAJOR_A_FLAT_MINOR"})(Ta||(Ta={}));var dn;(function(n){n.PLAYBACK_CONTROL_UNSPECIFIED="PLAYBACK_CONTROL_UNSPECIFIED",n.PLAY="PLAY",n.PAUSE="PAUSE",n.STOP="STOP",n.RESET_CONTEXT="RESET_CONTEXT"})(dn||(dn={}));class Vn{get text(){var e,t,i,r,o,l,u,c;if(((r=(i=(t=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||t===void 0?void 0:t.content)===null||i===void 0?void 0:i.parts)===null||r===void 0?void 0:r.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning text from the first one.");let f="",d=!1;const h=[];for(const g of(c=(u=(l=(o=this.candidates)===null||o===void 0?void 0:o[0])===null||l===void 0?void 0:l.content)===null||u===void 0?void 0:u.parts)!==null&&c!==void 0?c:[]){for(const[x,w]of Object.entries(g))x!=="text"&&x!=="thought"&&(w!==null||w!==void 0)&&h.push(x);if(typeof g.text=="string"){if(typeof g.thought=="boolean"&&g.thought)continue;d=!0,f+=g.text}}return h.length>0&&console.warn(`there are non-text parts ${h} in the response, returning concatenation of all text parts. Please refer to the non text parts for a full response from model.`),d?f:void 0}get data(){var e,t,i,r,o,l,u,c;if(((r=(i=(t=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||t===void 0?void 0:t.content)===null||i===void 0?void 0:i.parts)===null||r===void 0?void 0:r.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning data from the first one.");let f="";const d=[];for(const h of(c=(u=(l=(o=this.candidates)===null||o===void 0?void 0:o[0])===null||l===void 0?void 0:l.content)===null||u===void 0?void 0:u.parts)!==null&&c!==void 0?c:[]){for(const[g,x]of Object.entries(h))g!=="inlineData"&&(x!==null||x!==void 0)&&d.push(g);h.inlineData&&typeof h.inlineData.data=="string"&&(f+=atob(h.inlineData.data))}return d.length>0&&console.warn(`there are non-data parts ${d} in the response, returning concatenation of all data parts. Please refer to the non data parts for a full response from model.`),f.length>0?btoa(f):void 0}get functionCalls(){var e,t,i,r,o,l,u,c;if(((r=(i=(t=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||t===void 0?void 0:t.content)===null||i===void 0?void 0:i.parts)===null||r===void 0?void 0:r.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning function calls from the first one.");const f=(c=(u=(l=(o=this.candidates)===null||o===void 0?void 0:o[0])===null||l===void 0?void 0:l.content)===null||u===void 0?void 0:u.parts)===null||c===void 0?void 0:c.filter(d=>d.functionCall).map(d=>d.functionCall).filter(d=>d!==void 0);if((f==null?void 0:f.length)!==0)return f}get executableCode(){var e,t,i,r,o,l,u,c,f;if(((r=(i=(t=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||t===void 0?void 0:t.content)===null||i===void 0?void 0:i.parts)===null||r===void 0?void 0:r.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning executable code from the first one.");const d=(c=(u=(l=(o=this.candidates)===null||o===void 0?void 0:o[0])===null||l===void 0?void 0:l.content)===null||u===void 0?void 0:u.parts)===null||c===void 0?void 0:c.filter(h=>h.executableCode).map(h=>h.executableCode).filter(h=>h!==void 0);if((d==null?void 0:d.length)!==0)return(f=d==null?void 0:d[0])===null||f===void 0?void 0:f.code}get codeExecutionResult(){var e,t,i,r,o,l,u,c,f;if(((r=(i=(t=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||t===void 0?void 0:t.content)===null||i===void 0?void 0:i.parts)===null||r===void 0?void 0:r.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning code execution result from the first one.");const d=(c=(u=(l=(o=this.candidates)===null||o===void 0?void 0:o[0])===null||l===void 0?void 0:l.content)===null||u===void 0?void 0:u.parts)===null||c===void 0?void 0:c.filter(h=>h.codeExecutionResult).map(h=>h.codeExecutionResult).filter(h=>h!==void 0);if((d==null?void 0:d.length)!==0)return(f=d==null?void 0:d[0])===null||f===void 0?void 0:f.output}}class wa{}class Sa{}class gh{}class yh{}class Aa{}class ba{}class Ra{}class vh{}class Ma{}class Ia{}class Pa{}class _h{}class Ar{constructor(e){const t={};for(const i of e.headers.entries())t[i[0]]=i[1];this.headers=t,this.responseInternal=e}json(){return this.responseInternal.json()}}class xh{}class Ch{}class Eh{get text(){var e,t,i;let r="",o=!1;const l=[];for(const u of(i=(t=(e=this.serverContent)===null||e===void 0?void 0:e.modelTurn)===null||t===void 0?void 0:t.parts)!==null&&i!==void 0?i:[]){for(const[c,f]of Object.entries(u))c!=="text"&&c!=="thought"&&f!==null&&l.push(c);if(typeof u.text=="string"){if(typeof u.thought=="boolean"&&u.thought)continue;o=!0,r+=u.text}}return l.length>0&&console.warn(`there are non-text parts ${l} in the response, returning concatenation of all text parts. Please refer to the non text parts for a full response from model.`),o?r:void 0}get data(){var e,t,i;let r="";const o=[];for(const l of(i=(t=(e=this.serverContent)===null||e===void 0?void 0:e.modelTurn)===null||t===void 0?void 0:t.parts)!==null&&i!==void 0?i:[]){for(const[u,c]of Object.entries(l))u!=="inlineData"&&c!==null&&o.push(u);l.inlineData&&typeof l.inlineData.data=="string"&&(r+=atob(l.inlineData.data))}return o.length>0&&console.warn(`there are non-data parts ${o} in the response, returning concatenation of all data parts. Please refer to the non data parts for a full response from model.`),r.length>0?btoa(r):void 0}}class Th{get audioChunk(){if(this.serverContent&&this.serverContent.audioChunks&&this.serverContent.audioChunks.length>0)return this.serverContent.audioChunks[0]}}/**
362
+ */var OE;(function(c){c.OUTCOME_UNSPECIFIED="OUTCOME_UNSPECIFIED",c.OUTCOME_OK="OUTCOME_OK",c.OUTCOME_FAILED="OUTCOME_FAILED",c.OUTCOME_DEADLINE_EXCEEDED="OUTCOME_DEADLINE_EXCEEDED"})(OE||(OE={}));var wE;(function(c){c.LANGUAGE_UNSPECIFIED="LANGUAGE_UNSPECIFIED",c.PYTHON="PYTHON"})(wE||(wE={}));var ri;(function(c){c.TYPE_UNSPECIFIED="TYPE_UNSPECIFIED",c.STRING="STRING",c.NUMBER="NUMBER",c.INTEGER="INTEGER",c.BOOLEAN="BOOLEAN",c.ARRAY="ARRAY",c.OBJECT="OBJECT",c.NULL="NULL"})(ri||(ri={}));var VE;(function(c){c.HARM_CATEGORY_UNSPECIFIED="HARM_CATEGORY_UNSPECIFIED",c.HARM_CATEGORY_HATE_SPEECH="HARM_CATEGORY_HATE_SPEECH",c.HARM_CATEGORY_DANGEROUS_CONTENT="HARM_CATEGORY_DANGEROUS_CONTENT",c.HARM_CATEGORY_HARASSMENT="HARM_CATEGORY_HARASSMENT",c.HARM_CATEGORY_SEXUALLY_EXPLICIT="HARM_CATEGORY_SEXUALLY_EXPLICIT",c.HARM_CATEGORY_CIVIC_INTEGRITY="HARM_CATEGORY_CIVIC_INTEGRITY"})(VE||(VE={}));var LE;(function(c){c.HARM_BLOCK_METHOD_UNSPECIFIED="HARM_BLOCK_METHOD_UNSPECIFIED",c.SEVERITY="SEVERITY",c.PROBABILITY="PROBABILITY"})(LE||(LE={}));var HE;(function(c){c.HARM_BLOCK_THRESHOLD_UNSPECIFIED="HARM_BLOCK_THRESHOLD_UNSPECIFIED",c.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",c.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",c.BLOCK_ONLY_HIGH="BLOCK_ONLY_HIGH",c.BLOCK_NONE="BLOCK_NONE",c.OFF="OFF"})(HE||(HE={}));var BE;(function(c){c.MODE_UNSPECIFIED="MODE_UNSPECIFIED",c.MODE_DYNAMIC="MODE_DYNAMIC"})(BE||(BE={}));var qE;(function(c){c.AUTH_TYPE_UNSPECIFIED="AUTH_TYPE_UNSPECIFIED",c.NO_AUTH="NO_AUTH",c.API_KEY_AUTH="API_KEY_AUTH",c.HTTP_BASIC_AUTH="HTTP_BASIC_AUTH",c.GOOGLE_SERVICE_ACCOUNT_AUTH="GOOGLE_SERVICE_ACCOUNT_AUTH",c.OAUTH="OAUTH",c.OIDC_AUTH="OIDC_AUTH"})(qE||(qE={}));var GE;(function(c){c.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",c.STOP="STOP",c.MAX_TOKENS="MAX_TOKENS",c.SAFETY="SAFETY",c.RECITATION="RECITATION",c.LANGUAGE="LANGUAGE",c.OTHER="OTHER",c.BLOCKLIST="BLOCKLIST",c.PROHIBITED_CONTENT="PROHIBITED_CONTENT",c.SPII="SPII",c.MALFORMED_FUNCTION_CALL="MALFORMED_FUNCTION_CALL",c.IMAGE_SAFETY="IMAGE_SAFETY",c.UNEXPECTED_TOOL_CALL="UNEXPECTED_TOOL_CALL"})(GE||(GE={}));var YE;(function(c){c.HARM_PROBABILITY_UNSPECIFIED="HARM_PROBABILITY_UNSPECIFIED",c.NEGLIGIBLE="NEGLIGIBLE",c.LOW="LOW",c.MEDIUM="MEDIUM",c.HIGH="HIGH"})(YE||(YE={}));var IE;(function(c){c.HARM_SEVERITY_UNSPECIFIED="HARM_SEVERITY_UNSPECIFIED",c.HARM_SEVERITY_NEGLIGIBLE="HARM_SEVERITY_NEGLIGIBLE",c.HARM_SEVERITY_LOW="HARM_SEVERITY_LOW",c.HARM_SEVERITY_MEDIUM="HARM_SEVERITY_MEDIUM",c.HARM_SEVERITY_HIGH="HARM_SEVERITY_HIGH"})(IE||(IE={}));var ZE;(function(c){c.BLOCKED_REASON_UNSPECIFIED="BLOCKED_REASON_UNSPECIFIED",c.SAFETY="SAFETY",c.OTHER="OTHER",c.BLOCKLIST="BLOCKLIST",c.PROHIBITED_CONTENT="PROHIBITED_CONTENT"})(ZE||(ZE={}));var kE;(function(c){c.TRAFFIC_TYPE_UNSPECIFIED="TRAFFIC_TYPE_UNSPECIFIED",c.ON_DEMAND="ON_DEMAND",c.PROVISIONED_THROUGHPUT="PROVISIONED_THROUGHPUT"})(kE||(kE={}));var Tv;(function(c){c.MODALITY_UNSPECIFIED="MODALITY_UNSPECIFIED",c.TEXT="TEXT",c.IMAGE="IMAGE",c.AUDIO="AUDIO"})(Tv||(Tv={}));var XE;(function(c){c.MEDIA_RESOLUTION_UNSPECIFIED="MEDIA_RESOLUTION_UNSPECIFIED",c.MEDIA_RESOLUTION_LOW="MEDIA_RESOLUTION_LOW",c.MEDIA_RESOLUTION_MEDIUM="MEDIA_RESOLUTION_MEDIUM",c.MEDIA_RESOLUTION_HIGH="MEDIA_RESOLUTION_HIGH"})(XE||(XE={}));var hT;(function(c){c.JOB_STATE_UNSPECIFIED="JOB_STATE_UNSPECIFIED",c.JOB_STATE_QUEUED="JOB_STATE_QUEUED",c.JOB_STATE_PENDING="JOB_STATE_PENDING",c.JOB_STATE_RUNNING="JOB_STATE_RUNNING",c.JOB_STATE_SUCCEEDED="JOB_STATE_SUCCEEDED",c.JOB_STATE_FAILED="JOB_STATE_FAILED",c.JOB_STATE_CANCELLING="JOB_STATE_CANCELLING",c.JOB_STATE_CANCELLED="JOB_STATE_CANCELLED",c.JOB_STATE_PAUSED="JOB_STATE_PAUSED",c.JOB_STATE_EXPIRED="JOB_STATE_EXPIRED",c.JOB_STATE_UPDATING="JOB_STATE_UPDATING",c.JOB_STATE_PARTIALLY_SUCCEEDED="JOB_STATE_PARTIALLY_SUCCEEDED"})(hT||(hT={}));var QE;(function(c){c.ADAPTER_SIZE_UNSPECIFIED="ADAPTER_SIZE_UNSPECIFIED",c.ADAPTER_SIZE_ONE="ADAPTER_SIZE_ONE",c.ADAPTER_SIZE_TWO="ADAPTER_SIZE_TWO",c.ADAPTER_SIZE_FOUR="ADAPTER_SIZE_FOUR",c.ADAPTER_SIZE_EIGHT="ADAPTER_SIZE_EIGHT",c.ADAPTER_SIZE_SIXTEEN="ADAPTER_SIZE_SIXTEEN",c.ADAPTER_SIZE_THIRTY_TWO="ADAPTER_SIZE_THIRTY_TWO"})(QE||(QE={}));var JE;(function(c){c.FEATURE_SELECTION_PREFERENCE_UNSPECIFIED="FEATURE_SELECTION_PREFERENCE_UNSPECIFIED",c.PRIORITIZE_QUALITY="PRIORITIZE_QUALITY",c.BALANCED="BALANCED",c.PRIORITIZE_COST="PRIORITIZE_COST"})(JE||(JE={}));var KE;(function(c){c.UNSPECIFIED="UNSPECIFIED",c.BLOCKING="BLOCKING",c.NON_BLOCKING="NON_BLOCKING"})(KE||(KE={}));var FE;(function(c){c.MODE_UNSPECIFIED="MODE_UNSPECIFIED",c.MODE_DYNAMIC="MODE_DYNAMIC"})(FE||(FE={}));var $E;(function(c){c.MODE_UNSPECIFIED="MODE_UNSPECIFIED",c.AUTO="AUTO",c.ANY="ANY",c.NONE="NONE"})($E||($E={}));var PE;(function(c){c.URL_RETRIEVAL_STATUS_UNSPECIFIED="URL_RETRIEVAL_STATUS_UNSPECIFIED",c.URL_RETRIEVAL_STATUS_SUCCESS="URL_RETRIEVAL_STATUS_SUCCESS",c.URL_RETRIEVAL_STATUS_ERROR="URL_RETRIEVAL_STATUS_ERROR"})(PE||(PE={}));var WE;(function(c){c.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",c.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",c.BLOCK_ONLY_HIGH="BLOCK_ONLY_HIGH",c.BLOCK_NONE="BLOCK_NONE"})(WE||(WE={}));var jE;(function(c){c.DONT_ALLOW="DONT_ALLOW",c.ALLOW_ADULT="ALLOW_ADULT",c.ALLOW_ALL="ALLOW_ALL"})(jE||(jE={}));var e_;(function(c){c.auto="auto",c.en="en",c.ja="ja",c.ko="ko",c.hi="hi"})(e_||(e_={}));var t_;(function(c){c.MASK_MODE_DEFAULT="MASK_MODE_DEFAULT",c.MASK_MODE_USER_PROVIDED="MASK_MODE_USER_PROVIDED",c.MASK_MODE_BACKGROUND="MASK_MODE_BACKGROUND",c.MASK_MODE_FOREGROUND="MASK_MODE_FOREGROUND",c.MASK_MODE_SEMANTIC="MASK_MODE_SEMANTIC"})(t_||(t_={}));var n_;(function(c){c.CONTROL_TYPE_DEFAULT="CONTROL_TYPE_DEFAULT",c.CONTROL_TYPE_CANNY="CONTROL_TYPE_CANNY",c.CONTROL_TYPE_SCRIBBLE="CONTROL_TYPE_SCRIBBLE",c.CONTROL_TYPE_FACE_MESH="CONTROL_TYPE_FACE_MESH"})(n_||(n_={}));var l_;(function(c){c.SUBJECT_TYPE_DEFAULT="SUBJECT_TYPE_DEFAULT",c.SUBJECT_TYPE_PERSON="SUBJECT_TYPE_PERSON",c.SUBJECT_TYPE_ANIMAL="SUBJECT_TYPE_ANIMAL",c.SUBJECT_TYPE_PRODUCT="SUBJECT_TYPE_PRODUCT"})(l_||(l_={}));var a_;(function(c){c.EDIT_MODE_DEFAULT="EDIT_MODE_DEFAULT",c.EDIT_MODE_INPAINT_REMOVAL="EDIT_MODE_INPAINT_REMOVAL",c.EDIT_MODE_INPAINT_INSERTION="EDIT_MODE_INPAINT_INSERTION",c.EDIT_MODE_OUTPAINT="EDIT_MODE_OUTPAINT",c.EDIT_MODE_CONTROLLED_EDITING="EDIT_MODE_CONTROLLED_EDITING",c.EDIT_MODE_STYLE="EDIT_MODE_STYLE",c.EDIT_MODE_BGSWAP="EDIT_MODE_BGSWAP",c.EDIT_MODE_PRODUCT_IMAGE="EDIT_MODE_PRODUCT_IMAGE"})(a_||(a_={}));var i_;(function(c){c.STATE_UNSPECIFIED="STATE_UNSPECIFIED",c.PROCESSING="PROCESSING",c.ACTIVE="ACTIVE",c.FAILED="FAILED"})(i_||(i_={}));var o_;(function(c){c.SOURCE_UNSPECIFIED="SOURCE_UNSPECIFIED",c.UPLOADED="UPLOADED",c.GENERATED="GENERATED"})(o_||(o_={}));var u_;(function(c){c.MODALITY_UNSPECIFIED="MODALITY_UNSPECIFIED",c.TEXT="TEXT",c.IMAGE="IMAGE",c.VIDEO="VIDEO",c.AUDIO="AUDIO",c.DOCUMENT="DOCUMENT"})(u_||(u_={}));var s_;(function(c){c.START_SENSITIVITY_UNSPECIFIED="START_SENSITIVITY_UNSPECIFIED",c.START_SENSITIVITY_HIGH="START_SENSITIVITY_HIGH",c.START_SENSITIVITY_LOW="START_SENSITIVITY_LOW"})(s_||(s_={}));var r_;(function(c){c.END_SENSITIVITY_UNSPECIFIED="END_SENSITIVITY_UNSPECIFIED",c.END_SENSITIVITY_HIGH="END_SENSITIVITY_HIGH",c.END_SENSITIVITY_LOW="END_SENSITIVITY_LOW"})(r_||(r_={}));var c_;(function(c){c.ACTIVITY_HANDLING_UNSPECIFIED="ACTIVITY_HANDLING_UNSPECIFIED",c.START_OF_ACTIVITY_INTERRUPTS="START_OF_ACTIVITY_INTERRUPTS",c.NO_INTERRUPTION="NO_INTERRUPTION"})(c_||(c_={}));var f_;(function(c){c.TURN_COVERAGE_UNSPECIFIED="TURN_COVERAGE_UNSPECIFIED",c.TURN_INCLUDES_ONLY_ACTIVITY="TURN_INCLUDES_ONLY_ACTIVITY",c.TURN_INCLUDES_ALL_INPUT="TURN_INCLUDES_ALL_INPUT"})(f_||(f_={}));var d_;(function(c){c.SCHEDULING_UNSPECIFIED="SCHEDULING_UNSPECIFIED",c.SILENT="SILENT",c.WHEN_IDLE="WHEN_IDLE",c.INTERRUPT="INTERRUPT"})(d_||(d_={}));var h_;(function(c){c.SCALE_UNSPECIFIED="SCALE_UNSPECIFIED",c.C_MAJOR_A_MINOR="C_MAJOR_A_MINOR",c.D_FLAT_MAJOR_B_FLAT_MINOR="D_FLAT_MAJOR_B_FLAT_MINOR",c.D_MAJOR_B_MINOR="D_MAJOR_B_MINOR",c.E_FLAT_MAJOR_C_MINOR="E_FLAT_MAJOR_C_MINOR",c.E_MAJOR_D_FLAT_MINOR="E_MAJOR_D_FLAT_MINOR",c.F_MAJOR_D_MINOR="F_MAJOR_D_MINOR",c.G_FLAT_MAJOR_E_FLAT_MINOR="G_FLAT_MAJOR_E_FLAT_MINOR",c.G_MAJOR_E_MINOR="G_MAJOR_E_MINOR",c.A_FLAT_MAJOR_F_MINOR="A_FLAT_MAJOR_F_MINOR",c.A_MAJOR_G_FLAT_MINOR="A_MAJOR_G_FLAT_MINOR",c.B_FLAT_MAJOR_G_MINOR="B_FLAT_MAJOR_G_MINOR",c.B_MAJOR_A_FLAT_MINOR="B_MAJOR_A_FLAT_MINOR"})(h_||(h_={}));var bd;(function(c){c.PLAYBACK_CONTROL_UNSPECIFIED="PLAYBACK_CONTROL_UNSPECIFIED",c.PLAY="PLAY",c.PAUSE="PAUSE",c.STOP="STOP",c.RESET_CONTEXT="RESET_CONTEXT"})(bd||(bd={}));class up{get text(){var l,a,r,f,y,C,E,b;if(((f=(r=(a=(l=this.candidates)===null||l===void 0?void 0:l[0])===null||a===void 0?void 0:a.content)===null||r===void 0?void 0:r.parts)===null||f===void 0?void 0:f.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning text from the first one.");let A="",D=!1;const N=[];for(const z of(b=(E=(C=(y=this.candidates)===null||y===void 0?void 0:y[0])===null||C===void 0?void 0:C.content)===null||E===void 0?void 0:E.parts)!==null&&b!==void 0?b:[]){for(const[Z,F]of Object.entries(z))Z!=="text"&&Z!=="thought"&&(F!==null||F!==void 0)&&N.push(Z);if(typeof z.text=="string"){if(typeof z.thought=="boolean"&&z.thought)continue;D=!0,A+=z.text}}return N.length>0&&console.warn(`there are non-text parts ${N} in the response, returning concatenation of all text parts. Please refer to the non text parts for a full response from model.`),D?A:void 0}get data(){var l,a,r,f,y,C,E,b;if(((f=(r=(a=(l=this.candidates)===null||l===void 0?void 0:l[0])===null||a===void 0?void 0:a.content)===null||r===void 0?void 0:r.parts)===null||f===void 0?void 0:f.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning data from the first one.");let A="";const D=[];for(const N of(b=(E=(C=(y=this.candidates)===null||y===void 0?void 0:y[0])===null||C===void 0?void 0:C.content)===null||E===void 0?void 0:E.parts)!==null&&b!==void 0?b:[]){for(const[z,Z]of Object.entries(N))z!=="inlineData"&&(Z!==null||Z!==void 0)&&D.push(z);N.inlineData&&typeof N.inlineData.data=="string"&&(A+=atob(N.inlineData.data))}return D.length>0&&console.warn(`there are non-data parts ${D} in the response, returning concatenation of all data parts. Please refer to the non data parts for a full response from model.`),A.length>0?btoa(A):void 0}get functionCalls(){var l,a,r,f,y,C,E,b;if(((f=(r=(a=(l=this.candidates)===null||l===void 0?void 0:l[0])===null||a===void 0?void 0:a.content)===null||r===void 0?void 0:r.parts)===null||f===void 0?void 0:f.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning function calls from the first one.");const A=(b=(E=(C=(y=this.candidates)===null||y===void 0?void 0:y[0])===null||C===void 0?void 0:C.content)===null||E===void 0?void 0:E.parts)===null||b===void 0?void 0:b.filter(D=>D.functionCall).map(D=>D.functionCall).filter(D=>D!==void 0);if((A==null?void 0:A.length)!==0)return A}get executableCode(){var l,a,r,f,y,C,E,b,A;if(((f=(r=(a=(l=this.candidates)===null||l===void 0?void 0:l[0])===null||a===void 0?void 0:a.content)===null||r===void 0?void 0:r.parts)===null||f===void 0?void 0:f.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning executable code from the first one.");const D=(b=(E=(C=(y=this.candidates)===null||y===void 0?void 0:y[0])===null||C===void 0?void 0:C.content)===null||E===void 0?void 0:E.parts)===null||b===void 0?void 0:b.filter(N=>N.executableCode).map(N=>N.executableCode).filter(N=>N!==void 0);if((D==null?void 0:D.length)!==0)return(A=D==null?void 0:D[0])===null||A===void 0?void 0:A.code}get codeExecutionResult(){var l,a,r,f,y,C,E,b,A;if(((f=(r=(a=(l=this.candidates)===null||l===void 0?void 0:l[0])===null||a===void 0?void 0:a.content)===null||r===void 0?void 0:r.parts)===null||f===void 0?void 0:f.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning code execution result from the first one.");const D=(b=(E=(C=(y=this.candidates)===null||y===void 0?void 0:y[0])===null||C===void 0?void 0:C.content)===null||E===void 0?void 0:E.parts)===null||b===void 0?void 0:b.filter(N=>N.codeExecutionResult).map(N=>N.codeExecutionResult).filter(N=>N!==void 0);if((D==null?void 0:D.length)!==0)return(A=D==null?void 0:D[0])===null||A===void 0?void 0:A.output}}class m_{}class p_{}class OM{}class wM{}class g_{}class y_{}class v_{}class VM{}class S_{}class T_{}class C_{}class LM{}class mT{constructor(l){const a={};for(const r of l.headers.entries())a[r[0]]=r[1];this.headers=a,this.responseInternal=l}json(){return this.responseInternal.json()}}class HM{}class BM{}class qM{get text(){var l,a,r;let f="",y=!1;const C=[];for(const E of(r=(a=(l=this.serverContent)===null||l===void 0?void 0:l.modelTurn)===null||a===void 0?void 0:a.parts)!==null&&r!==void 0?r:[]){for(const[b,A]of Object.entries(E))b!=="text"&&b!=="thought"&&A!==null&&C.push(b);if(typeof E.text=="string"){if(typeof E.thought=="boolean"&&E.thought)continue;y=!0,f+=E.text}}return C.length>0&&console.warn(`there are non-text parts ${C} in the response, returning concatenation of all text parts. Please refer to the non text parts for a full response from model.`),y?f:void 0}get data(){var l,a,r;let f="";const y=[];for(const C of(r=(a=(l=this.serverContent)===null||l===void 0?void 0:l.modelTurn)===null||a===void 0?void 0:a.parts)!==null&&r!==void 0?r:[]){for(const[E,b]of Object.entries(C))E!=="inlineData"&&b!==null&&y.push(E);C.inlineData&&typeof C.inlineData.data=="string"&&(f+=atob(C.inlineData.data))}return y.length>0&&console.warn(`there are non-data parts ${y} in the response, returning concatenation of all data parts. Please refer to the non data parts for a full response from model.`),f.length>0?btoa(f):void 0}}class GM{get audioChunk(){if(this.serverContent&&this.serverContent.audioChunks&&this.serverContent.audioChunks.length>0)return this.serverContent.audioChunks[0]}}/**
139
363
  * @license
140
364
  * Copyright 2025 Google LLC
141
365
  * SPDX-License-Identifier: Apache-2.0
142
- */function pe(n,e){if(!e||typeof e!="string")throw new Error("model is required and must be a string");if(n.isVertexAI()){if(e.startsWith("publishers/")||e.startsWith("projects/")||e.startsWith("models/"))return e;if(e.indexOf("/")>=0){const t=e.split("/",2);return`publishers/${t[0]}/models/${t[1]}`}else return`publishers/google/models/${e}`}else return e.startsWith("models/")||e.startsWith("tunedModels/")?e:`models/${e}`}function ka(n,e){const t=pe(n,e);return t?t.startsWith("publishers/")&&n.isVertexAI()?`projects/${n.getProject()}/locations/${n.getLocation()}/${t}`:t.startsWith("models/")&&n.isVertexAI()?`projects/${n.getProject()}/locations/${n.getLocation()}/publishers/google/${t}`:t:""}function Na(n,e){return Array.isArray(e)?e.map(t=>wi(n,t)):[wi(n,e)]}function wi(n,e){if(typeof e=="object"&&e!==null)return e;throw new Error(`Could not parse input as Blob. Unsupported blob type: ${typeof e}`)}function wh(n,e){const t=wi(n,e);if(t.mimeType&&t.mimeType.startsWith("image/"))return t;throw new Error(`Unsupported mime type: ${t.mimeType}`)}function Sh(n,e){const t=wi(n,e);if(t.mimeType&&t.mimeType.startsWith("audio/"))return t;throw new Error(`Unsupported mime type: ${t.mimeType}`)}function Da(n,e){if(e==null)throw new Error("PartUnion is required");if(typeof e=="object")return e;if(typeof e=="string")return{text:e};throw new Error(`Unsupported part type: ${typeof e}`)}function La(n,e){if(e==null||Array.isArray(e)&&e.length===0)throw new Error("PartListUnion is required");return Array.isArray(e)?e.map(t=>Da(n,t)):[Da(n,e)]}function br(n){return n!=null&&typeof n=="object"&&"parts"in n&&Array.isArray(n.parts)}function Fa(n){return n!=null&&typeof n=="object"&&"functionCall"in n}function Va(n){return n!=null&&typeof n=="object"&&"functionResponse"in n}function Le(n,e){if(e==null)throw new Error("ContentUnion is required");return br(e)?e:{role:"user",parts:La(n,e)}}function Ba(n,e){if(!e)return[];if(n.isVertexAI()&&Array.isArray(e))return e.flatMap(t=>{const i=Le(n,t);return i.parts&&i.parts.length>0&&i.parts[0].text!==void 0?[i.parts[0].text]:[]});if(n.isVertexAI()){const t=Le(n,e);return t.parts&&t.parts.length>0&&t.parts[0].text!==void 0?[t.parts[0].text]:[]}return Array.isArray(e)?e.map(t=>Le(n,t)):[Le(n,e)]}function Xe(n,e){if(e==null||Array.isArray(e)&&e.length===0)throw new Error("contents are required");if(!Array.isArray(e)){if(Fa(e)||Va(e))throw new Error("To specify functionCall or functionResponse parts, please wrap them in a Content object, specifying the role for them");return[Le(n,e)]}const t=[],i=[],r=br(e[0]);for(const o of e){const l=br(o);if(l!=r)throw new Error("Mixing Content and Parts is not supported, please group the parts into a the appropriate Content objects and specify the roles for them");if(l)t.push(o);else{if(Fa(o)||Va(o))throw new Error("To specify functionCall or functionResponse parts, please wrap them, and any other parts, in Content objects as appropriate, specifying the role for them");i.push(o)}}return r||t.push({role:"user",parts:La(n,i)}),t}const Ah=new Set(["type","format","title","description","default","items","minItems","maxItems","enum","properties","required","minProperties","maxProperties","minimum","maximum","minLength","maxLength","pattern","anyOf","propertyOrdering"]),Oa=fh(["string","number","integer","object","array","boolean","null"]),bh=lh([Oa,Fn(Oa)]);function Rh(n=!0){const e=ch(()=>{const t=ah({type:bh.optional(),format:Ht().optional(),title:Ht().optional(),description:Ht().optional(),default:Gs().optional(),items:e.optional(),minItems:cn.string().optional(),maxItems:cn.string().optional(),enum:Fn(Gs()).optional(),properties:uh(Ht(),e).optional(),required:Fn(Ht()).optional(),minProperties:cn.string().optional(),maxProperties:cn.string().optional(),propertyOrdering:Fn(Ht()).optional(),minimum:$s().optional(),maximum:$s().optional(),minLength:cn.string().optional(),maxLength:cn.string().optional(),pattern:Ht().optional(),anyOf:Fn(e).optional(),additionalProperties:sh().optional()});return n?t.strict():t});return e}function Mh(n,e){n.includes("null")&&(e.nullable=!0);const t=n.filter(i=>i!=="null");if(t.length===1)e.type=Object.keys(ze).includes(t[0].toUpperCase())?ze[t[0].toUpperCase()]:ze.TYPE_UNSPECIFIED;else{e.anyOf=[];for(const i of t)e.anyOf.push({type:Object.keys(ze).includes(i.toUpperCase())?ze[i.toUpperCase()]:ze.TYPE_UNSPECIFIED})}}function pn(n){const e={},t=["items"],i=["anyOf"],r=["properties"];if(n.type&&n.anyOf)throw new Error("type and anyOf cannot be both populated.");const o=n.anyOf;o!=null&&o.length==2&&(o[0].type==="null"?(e.nullable=!0,n=o[1]):o[1].type==="null"&&(e.nullable=!0,n=o[0])),n.type instanceof Array&&Mh(n.type,e);for(const[l,u]of Object.entries(n))if(u!=null)if(l=="type"){if(u==="null")throw new Error("type: null can not be the only possible type for the field.");if(u instanceof Array)continue;e.type=Object.keys(ze).includes(u.toUpperCase())?u.toUpperCase():ze.TYPE_UNSPECIFIED}else if(t.includes(l))e[l]=pn(u);else if(i.includes(l)){const c=[];for(const f of u){if(f.type=="null"){e.nullable=!0;continue}c.push(pn(f))}e[l]=c}else if(r.includes(l)){const c={};for(const[f,d]of Object.entries(u))c[f]=pn(d);e[l]=c}else{if(l==="additionalProperties")continue;e[l]=u}return e}function Si(n,e){if(Object.keys(e).includes("$schema")){delete e.$schema;const t=Rh().parse(e);return pn(t)}else return pn(e)}function Ua(n,e){if(typeof e=="object")return e;if(typeof e=="string")return{voiceConfig:{prebuiltVoiceConfig:{voiceName:e}}};throw new Error(`Unsupported speechConfig type: ${typeof e}`)}function Rr(n,e){if("multiSpeakerVoiceConfig"in e)throw new Error("multiSpeakerVoiceConfig is not supported in the live API.");return e}function Bn(n,e){if(e.functionDeclarations)for(const t of e.functionDeclarations)t.parameters&&(t.parameters=Si(n,t.parameters)),t.response&&(t.response=Si(n,t.response));return e}function On(n,e){if(e==null)throw new Error("tools is required");if(!Array.isArray(e))throw new Error("tools is required and must be an array of Tools");const t=[];for(const i of e)t.push(i);return t}function Ih(n,e,t,i=1){const r=!e.startsWith(`${t}/`)&&e.split("/").length===i;return n.isVertexAI()?e.startsWith("projects/")?e:e.startsWith("locations/")?`projects/${n.getProject()}/${e}`:e.startsWith(`${t}/`)?`projects/${n.getProject()}/locations/${n.getLocation()}/${e}`:r?`projects/${n.getProject()}/locations/${n.getLocation()}/${t}/${e}`:e:r?`${t}/${e}`:e}function Rt(n,e){if(typeof e!="string")throw new Error("name must be a string");return Ih(n,e,"cachedContents")}function $a(n,e){switch(e){case"STATE_UNSPECIFIED":return"JOB_STATE_UNSPECIFIED";case"CREATING":return"JOB_STATE_RUNNING";case"ACTIVE":return"JOB_STATE_SUCCEEDED";case"FAILED":return"JOB_STATE_FAILED";default:return e}}function Mt(n,e){if(typeof e!="string")throw new Error("fromImageBytes must be a string");return e}function Ph(n){return n!=null&&typeof n=="object"&&"name"in n}function kh(n){return n!=null&&typeof n=="object"&&"video"in n}function Nh(n){return n!=null&&typeof n=="object"&&"uri"in n}function Ga(n,e){var t;let i;if(Ph(e)&&(i=e.name),!(Nh(e)&&(i=e.uri,i===void 0))&&!(kh(e)&&(i=(t=e.video)===null||t===void 0?void 0:t.uri,i===void 0))){if(typeof e=="string"&&(i=e),i===void 0)throw new Error("Could not extract file name from the provided input.");if(i.startsWith("https://")){const o=i.split("files/")[1].match(/[a-z0-9]+/);if(o===null)throw new Error(`Could not extract file name from URI ${i}`);i=o[0]}else i.startsWith("files/")&&(i=i.split("files/")[1]);return i}}function qa(n,e){let t;return n.isVertexAI()?t=e?"publishers/google/models":"models":t=e?"models":"tunedModels",t}function Ha(n,e){for(const t of["models","tunedModels","publisherModels"])if(Dh(e,t))return e[t];return[]}function Dh(n,e){return n!==null&&typeof n=="object"&&e in n}function Lh(n,e={}){const t=n,i={name:t.name,description:t.description,parameters:pn(Ai(t.inputSchema))};return e.behavior&&(i.behavior=e.behavior),{functionDeclarations:[i]}}function Fh(n,e={}){const t=[],i=new Set;for(const r of n){const o=r.name;if(i.has(o))throw new Error(`Duplicate function name ${o} found in MCP tools. Please ensure function names are unique.`);i.add(o);const l=Lh(r,e);l.functionDeclarations&&t.push(...l.functionDeclarations)}return{functionDeclarations:t}}function Vh(n){const e=[];for(const t of n)e.push(Ai(t));return e}function Bh(n){const e={};for(const[t,i]of Object.entries(n)){const r=i;e[t]=Ai(r)}return e}function Ai(n){const e=new Set(["items"]),t=new Set(["anyOf"]),i=new Set(["properties"]),r={};for(const[o,l]of Object.entries(n))if(e.has(o))r[o]=Ai(l);else if(t.has(o))r[o]=Vh(l);else if(i.has(o))r[o]=Bh(l);else if(o==="type"){const u=l.toUpperCase();r[o]=Object.keys(ze).includes(u)?u:ze.TYPE_UNSPECIFIED}else Ah.has(o)&&(r[o]=l);return r}/**
366
+ */function Kt(c,l){if(!l||typeof l!="string")throw new Error("model is required and must be a string");if(c.isVertexAI()){if(l.startsWith("publishers/")||l.startsWith("projects/")||l.startsWith("models/"))return l;if(l.indexOf("/")>=0){const a=l.split("/",2);return`publishers/${a[0]}/models/${a[1]}`}else return`publishers/google/models/${l}`}else return l.startsWith("models/")||l.startsWith("tunedModels/")?l:`models/${l}`}function E_(c,l){const a=Kt(c,l);return a?a.startsWith("publishers/")&&c.isVertexAI()?`projects/${c.getProject()}/locations/${c.getLocation()}/${a}`:a.startsWith("models/")&&c.isVertexAI()?`projects/${c.getProject()}/locations/${c.getLocation()}/publishers/google/${a}`:a:""}function __(c,l){return Array.isArray(l)?l.map(a=>Cv(c,a)):[Cv(c,l)]}function Cv(c,l){if(typeof l=="object"&&l!==null)return l;throw new Error(`Could not parse input as Blob. Unsupported blob type: ${typeof l}`)}function YM(c,l){const a=Cv(c,l);if(a.mimeType&&a.mimeType.startsWith("image/"))return a;throw new Error(`Unsupported mime type: ${a.mimeType}`)}function IM(c,l){const a=Cv(c,l);if(a.mimeType&&a.mimeType.startsWith("audio/"))return a;throw new Error(`Unsupported mime type: ${a.mimeType}`)}function A_(c,l){if(l==null)throw new Error("PartUnion is required");if(typeof l=="object")return l;if(typeof l=="string")return{text:l};throw new Error(`Unsupported part type: ${typeof l}`)}function b_(c,l){if(l==null||Array.isArray(l)&&l.length===0)throw new Error("PartListUnion is required");return Array.isArray(l)?l.map(a=>A_(c,a)):[A_(c,l)]}function pT(c){return c!=null&&typeof c=="object"&&"parts"in c&&Array.isArray(c.parts)}function M_(c){return c!=null&&typeof c=="object"&&"functionCall"in c}function R_(c){return c!=null&&typeof c=="object"&&"functionResponse"in c}function Gl(c,l){if(l==null)throw new Error("ContentUnion is required");return pT(l)?l:{role:"user",parts:b_(c,l)}}function D_(c,l){if(!l)return[];if(c.isVertexAI()&&Array.isArray(l))return l.flatMap(a=>{const r=Gl(c,a);return r.parts&&r.parts.length>0&&r.parts[0].text!==void 0?[r.parts[0].text]:[]});if(c.isVertexAI()){const a=Gl(c,l);return a.parts&&a.parts.length>0&&a.parts[0].text!==void 0?[a.parts[0].text]:[]}return Array.isArray(l)?l.map(a=>Gl(c,a)):[Gl(c,l)]}function no(c,l){if(l==null||Array.isArray(l)&&l.length===0)throw new Error("contents are required");if(!Array.isArray(l)){if(M_(l)||R_(l))throw new Error("To specify functionCall or functionResponse parts, please wrap them in a Content object, specifying the role for them");return[Gl(c,l)]}const a=[],r=[],f=pT(l[0]);for(const y of l){const C=pT(y);if(C!=f)throw new Error("Mixing Content and Parts is not supported, please group the parts into a the appropriate Content objects and specify the roles for them");if(C)a.push(y);else{if(M_(y)||R_(y))throw new Error("To specify functionCall or functionResponse parts, please wrap them, and any other parts, in Content objects as appropriate, specifying the role for them");r.push(y)}}return f||a.push({role:"user",parts:b_(c,r)}),a}const ZM=new Set(["type","format","title","description","default","items","minItems","maxItems","enum","properties","required","minProperties","maxProperties","minimum","maximum","minLength","maxLength","pattern","anyOf","propertyOrdering"]),x_=DM(["string","number","integer","object","array","boolean","null"]),kM=bM([x_,op(x_)]);function XM(c=!0){const l=RM(()=>{const a=AM({type:kM.optional(),format:bc().optional(),title:bc().optional(),description:bc().optional(),default:zE().optional(),items:l.optional(),minItems:_d.string().optional(),maxItems:_d.string().optional(),enum:op(zE()).optional(),properties:MM(bc(),l).optional(),required:op(bc()).optional(),minProperties:_d.string().optional(),maxProperties:_d.string().optional(),propertyOrdering:op(bc()).optional(),minimum:NE().optional(),maximum:NE().optional(),minLength:_d.string().optional(),maxLength:_d.string().optional(),pattern:bc().optional(),anyOf:op(l).optional(),additionalProperties:_M().optional()});return c?a.strict():a});return l}function QM(c,l){c.includes("null")&&(l.nullable=!0);const a=c.filter(r=>r!=="null");if(a.length===1)l.type=Object.keys(ri).includes(a[0].toUpperCase())?ri[a[0].toUpperCase()]:ri.TYPE_UNSPECIFIED;else{l.anyOf=[];for(const r of a)l.anyOf.push({type:Object.keys(ri).includes(r.toUpperCase())?ri[r.toUpperCase()]:ri.TYPE_UNSPECIFIED})}}function Md(c){const l={},a=["items"],r=["anyOf"],f=["properties"];if(c.type&&c.anyOf)throw new Error("type and anyOf cannot be both populated.");const y=c.anyOf;y!=null&&y.length==2&&(y[0].type==="null"?(l.nullable=!0,c=y[1]):y[1].type==="null"&&(l.nullable=!0,c=y[0])),c.type instanceof Array&&QM(c.type,l);for(const[C,E]of Object.entries(c))if(E!=null)if(C=="type"){if(E==="null")throw new Error("type: null can not be the only possible type for the field.");if(E instanceof Array)continue;l.type=Object.keys(ri).includes(E.toUpperCase())?E.toUpperCase():ri.TYPE_UNSPECIFIED}else if(a.includes(C))l[C]=Md(E);else if(r.includes(C)){const b=[];for(const A of E){if(A.type=="null"){l.nullable=!0;continue}b.push(Md(A))}l[C]=b}else if(f.includes(C)){const b={};for(const[A,D]of Object.entries(E))b[A]=Md(D);l[C]=b}else{if(C==="additionalProperties")continue;l[C]=E}return l}function Ev(c,l){if(Object.keys(l).includes("$schema")){delete l.$schema;const a=XM().parse(l);return Md(a)}else return Md(l)}function U_(c,l){if(typeof l=="object")return l;if(typeof l=="string")return{voiceConfig:{prebuiltVoiceConfig:{voiceName:l}}};throw new Error(`Unsupported speechConfig type: ${typeof l}`)}function gT(c,l){if("multiSpeakerVoiceConfig"in l)throw new Error("multiSpeakerVoiceConfig is not supported in the live API.");return l}function sp(c,l){if(l.functionDeclarations)for(const a of l.functionDeclarations)a.parameters&&(a.parameters=Ev(c,a.parameters)),a.response&&(a.response=Ev(c,a.response));return l}function rp(c,l){if(l==null)throw new Error("tools is required");if(!Array.isArray(l))throw new Error("tools is required and must be an array of Tools");const a=[];for(const r of l)a.push(r);return a}function JM(c,l,a,r=1){const f=!l.startsWith(`${a}/`)&&l.split("/").length===r;return c.isVertexAI()?l.startsWith("projects/")?l:l.startsWith("locations/")?`projects/${c.getProject()}/${l}`:l.startsWith(`${a}/`)?`projects/${c.getProject()}/locations/${c.getLocation()}/${l}`:f?`projects/${c.getProject()}/locations/${c.getLocation()}/${a}/${l}`:l:f?`${a}/${l}`:l}function Is(c,l){if(typeof l!="string")throw new Error("name must be a string");return JM(c,l,"cachedContents")}function N_(c,l){switch(l){case"STATE_UNSPECIFIED":return"JOB_STATE_UNSPECIFIED";case"CREATING":return"JOB_STATE_RUNNING";case"ACTIVE":return"JOB_STATE_SUCCEEDED";case"FAILED":return"JOB_STATE_FAILED";default:return l}}function Zs(c,l){if(typeof l!="string")throw new Error("fromImageBytes must be a string");return l}function KM(c){return c!=null&&typeof c=="object"&&"name"in c}function FM(c){return c!=null&&typeof c=="object"&&"video"in c}function $M(c){return c!=null&&typeof c=="object"&&"uri"in c}function z_(c,l){var a;let r;if(KM(l)&&(r=l.name),!($M(l)&&(r=l.uri,r===void 0))&&!(FM(l)&&(r=(a=l.video)===null||a===void 0?void 0:a.uri,r===void 0))){if(typeof l=="string"&&(r=l),r===void 0)throw new Error("Could not extract file name from the provided input.");if(r.startsWith("https://")){const y=r.split("files/")[1].match(/[a-z0-9]+/);if(y===null)throw new Error(`Could not extract file name from URI ${r}`);r=y[0]}else r.startsWith("files/")&&(r=r.split("files/")[1]);return r}}function O_(c,l){let a;return c.isVertexAI()?a=l?"publishers/google/models":"models":a=l?"models":"tunedModels",a}function w_(c,l){for(const a of["models","tunedModels","publisherModels"])if(PM(l,a))return l[a];return[]}function PM(c,l){return c!==null&&typeof c=="object"&&l in c}function WM(c,l={}){const a=c,r={name:a.name,description:a.description,parameters:Md(_v(a.inputSchema))};return l.behavior&&(r.behavior=l.behavior),{functionDeclarations:[r]}}function jM(c,l={}){const a=[],r=new Set;for(const f of c){const y=f.name;if(r.has(y))throw new Error(`Duplicate function name ${y} found in MCP tools. Please ensure function names are unique.`);r.add(y);const C=WM(f,l);C.functionDeclarations&&a.push(...C.functionDeclarations)}return{functionDeclarations:a}}function eR(c){const l=[];for(const a of c)l.push(_v(a));return l}function tR(c){const l={};for(const[a,r]of Object.entries(c)){const f=r;l[a]=_v(f)}return l}function _v(c){const l=new Set(["items"]),a=new Set(["anyOf"]),r=new Set(["properties"]),f={};for(const[y,C]of Object.entries(c))if(l.has(y))f[y]=_v(C);else if(a.has(y))f[y]=eR(C);else if(r.has(y))f[y]=tR(C);else if(y==="type"){const E=C.toUpperCase();f[y]=Object.keys(ri).includes(E)?E:ri.TYPE_UNSPECIFIED}else ZM.has(y)&&(f[y]=C);return f}/**
143
367
  * @license
144
368
  * Copyright 2025 Google LLC
145
369
  * SPDX-License-Identifier: Apache-2.0
146
- */function Oh(n,e){const t={},i=s(e,["fps"]);i!=null&&a(t,["fps"],i);const r=s(e,["endOffset"]);r!=null&&a(t,["endOffset"],r);const o=s(e,["startOffset"]);return o!=null&&a(t,["startOffset"],o),t}function Uh(n,e){const t={};if(s(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const i=s(e,["data"]);i!=null&&a(t,["data"],i);const r=s(e,["mimeType"]);return r!=null&&a(t,["mimeType"],r),t}function $h(n,e){const t={};if(s(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const i=s(e,["fileUri"]);i!=null&&a(t,["fileUri"],i);const r=s(e,["mimeType"]);return r!=null&&a(t,["mimeType"],r),t}function Gh(n,e){const t={},i=s(e,["videoMetadata"]);i!=null&&a(t,["videoMetadata"],Oh(n,i));const r=s(e,["thought"]);r!=null&&a(t,["thought"],r);const o=s(e,["inlineData"]);o!=null&&a(t,["inlineData"],Uh(n,o));const l=s(e,["fileData"]);l!=null&&a(t,["fileData"],$h(n,l));const u=s(e,["thoughtSignature"]);u!=null&&a(t,["thoughtSignature"],u);const c=s(e,["codeExecutionResult"]);c!=null&&a(t,["codeExecutionResult"],c);const f=s(e,["executableCode"]);f!=null&&a(t,["executableCode"],f);const d=s(e,["functionCall"]);d!=null&&a(t,["functionCall"],d);const h=s(e,["functionResponse"]);h!=null&&a(t,["functionResponse"],h);const g=s(e,["text"]);return g!=null&&a(t,["text"],g),t}function Wa(n,e){const t={},i=s(e,["parts"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(l=>Gh(n,l))),a(t,["parts"],o)}const r=s(e,["role"]);return r!=null&&a(t,["role"],r),t}function qh(n,e){const t={},i=s(e,["behavior"]);i!=null&&a(t,["behavior"],i);const r=s(e,["description"]);r!=null&&a(t,["description"],r);const o=s(e,["name"]);o!=null&&a(t,["name"],o);const l=s(e,["parameters"]);l!=null&&a(t,["parameters"],l);const u=s(e,["response"]);return u!=null&&a(t,["response"],u),t}function Hh(n,e){const t={},i=s(e,["startTime"]);i!=null&&a(t,["startTime"],i);const r=s(e,["endTime"]);return r!=null&&a(t,["endTime"],r),t}function Wh(n,e){const t={},i=s(e,["timeRangeFilter"]);return i!=null&&a(t,["timeRangeFilter"],Hh(n,i)),t}function zh(n,e){const t={},i=s(e,["mode"]);i!=null&&a(t,["mode"],i);const r=s(e,["dynamicThreshold"]);return r!=null&&a(t,["dynamicThreshold"],r),t}function Yh(n,e){const t={},i=s(e,["dynamicRetrievalConfig"]);return i!=null&&a(t,["dynamicRetrievalConfig"],zh(n,i)),t}function Kh(){return{}}function Jh(n,e){const t={},i=s(e,["functionDeclarations"]);if(i!=null){let c=i;Array.isArray(c)&&(c=c.map(f=>qh(n,f))),a(t,["functionDeclarations"],c)}if(s(e,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const r=s(e,["googleSearch"]);r!=null&&a(t,["googleSearch"],Wh(n,r));const o=s(e,["googleSearchRetrieval"]);if(o!=null&&a(t,["googleSearchRetrieval"],Yh(n,o)),s(e,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");if(s(e,["googleMaps"])!==void 0)throw new Error("googleMaps parameter is not supported in Gemini API.");s(e,["urlContext"])!=null&&a(t,["urlContext"],Kh());const u=s(e,["codeExecution"]);return u!=null&&a(t,["codeExecution"],u),t}function Zh(n,e){const t={},i=s(e,["mode"]);i!=null&&a(t,["mode"],i);const r=s(e,["allowedFunctionNames"]);return r!=null&&a(t,["allowedFunctionNames"],r),t}function Xh(n,e){const t={},i=s(e,["latitude"]);i!=null&&a(t,["latitude"],i);const r=s(e,["longitude"]);return r!=null&&a(t,["longitude"],r),t}function Qh(n,e){const t={},i=s(e,["latLng"]);i!=null&&a(t,["latLng"],Xh(n,i));const r=s(e,["languageCode"]);return r!=null&&a(t,["languageCode"],r),t}function jh(n,e){const t={},i=s(e,["functionCallingConfig"]);i!=null&&a(t,["functionCallingConfig"],Zh(n,i));const r=s(e,["retrievalConfig"]);return r!=null&&a(t,["retrievalConfig"],Qh(n,r)),t}function em(n,e,t){const i={},r=s(e,["ttl"]);t!==void 0&&r!=null&&a(t,["ttl"],r);const o=s(e,["expireTime"]);t!==void 0&&o!=null&&a(t,["expireTime"],o);const l=s(e,["displayName"]);t!==void 0&&l!=null&&a(t,["displayName"],l);const u=s(e,["contents"]);if(t!==void 0&&u!=null){let h=Xe(n,u);Array.isArray(h)&&(h=h.map(g=>Wa(n,g))),a(t,["contents"],h)}const c=s(e,["systemInstruction"]);t!==void 0&&c!=null&&a(t,["systemInstruction"],Wa(n,Le(n,c)));const f=s(e,["tools"]);if(t!==void 0&&f!=null){let h=f;Array.isArray(h)&&(h=h.map(g=>Jh(n,g))),a(t,["tools"],h)}const d=s(e,["toolConfig"]);if(t!==void 0&&d!=null&&a(t,["toolConfig"],jh(n,d)),s(e,["kmsKeyName"])!==void 0)throw new Error("kmsKeyName parameter is not supported in Gemini API.");return i}function tm(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["model"],ka(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],em(n,r,t)),t}function nm(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["_url","name"],Rt(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],r),t}function im(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["_url","name"],Rt(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],r),t}function rm(n,e,t){const i={},r=s(e,["ttl"]);t!==void 0&&r!=null&&a(t,["ttl"],r);const o=s(e,["expireTime"]);return t!==void 0&&o!=null&&a(t,["expireTime"],o),i}function om(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["_url","name"],Rt(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],rm(n,r,t)),t}function sm(n,e,t){const i={},r=s(e,["pageSize"]);t!==void 0&&r!=null&&a(t,["_query","pageSize"],r);const o=s(e,["pageToken"]);return t!==void 0&&o!=null&&a(t,["_query","pageToken"],o),i}function am(n,e){const t={},i=s(e,["config"]);return i!=null&&a(t,["config"],sm(n,i,t)),t}function lm(n,e){const t={},i=s(e,["fps"]);i!=null&&a(t,["fps"],i);const r=s(e,["endOffset"]);r!=null&&a(t,["endOffset"],r);const o=s(e,["startOffset"]);return o!=null&&a(t,["startOffset"],o),t}function um(n,e){const t={},i=s(e,["displayName"]);i!=null&&a(t,["displayName"],i);const r=s(e,["data"]);r!=null&&a(t,["data"],r);const o=s(e,["mimeType"]);return o!=null&&a(t,["mimeType"],o),t}function cm(n,e){const t={},i=s(e,["displayName"]);i!=null&&a(t,["displayName"],i);const r=s(e,["fileUri"]);r!=null&&a(t,["fileUri"],r);const o=s(e,["mimeType"]);return o!=null&&a(t,["mimeType"],o),t}function fm(n,e){const t={},i=s(e,["videoMetadata"]);i!=null&&a(t,["videoMetadata"],lm(n,i));const r=s(e,["thought"]);r!=null&&a(t,["thought"],r);const o=s(e,["inlineData"]);o!=null&&a(t,["inlineData"],um(n,o));const l=s(e,["fileData"]);l!=null&&a(t,["fileData"],cm(n,l));const u=s(e,["thoughtSignature"]);u!=null&&a(t,["thoughtSignature"],u);const c=s(e,["codeExecutionResult"]);c!=null&&a(t,["codeExecutionResult"],c);const f=s(e,["executableCode"]);f!=null&&a(t,["executableCode"],f);const d=s(e,["functionCall"]);d!=null&&a(t,["functionCall"],d);const h=s(e,["functionResponse"]);h!=null&&a(t,["functionResponse"],h);const g=s(e,["text"]);return g!=null&&a(t,["text"],g),t}function za(n,e){const t={},i=s(e,["parts"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(l=>fm(n,l))),a(t,["parts"],o)}const r=s(e,["role"]);return r!=null&&a(t,["role"],r),t}function dm(n,e){const t={};if(s(e,["behavior"])!==void 0)throw new Error("behavior parameter is not supported in Vertex AI.");const i=s(e,["description"]);i!=null&&a(t,["description"],i);const r=s(e,["name"]);r!=null&&a(t,["name"],r);const o=s(e,["parameters"]);o!=null&&a(t,["parameters"],o);const l=s(e,["response"]);return l!=null&&a(t,["response"],l),t}function pm(n,e){const t={},i=s(e,["startTime"]);i!=null&&a(t,["startTime"],i);const r=s(e,["endTime"]);return r!=null&&a(t,["endTime"],r),t}function hm(n,e){const t={},i=s(e,["timeRangeFilter"]);return i!=null&&a(t,["timeRangeFilter"],pm(n,i)),t}function mm(n,e){const t={},i=s(e,["mode"]);i!=null&&a(t,["mode"],i);const r=s(e,["dynamicThreshold"]);return r!=null&&a(t,["dynamicThreshold"],r),t}function gm(n,e){const t={},i=s(e,["dynamicRetrievalConfig"]);return i!=null&&a(t,["dynamicRetrievalConfig"],mm(n,i)),t}function ym(){return{}}function vm(n,e){const t={},i=s(e,["apiKeyString"]);return i!=null&&a(t,["apiKeyString"],i),t}function _m(n,e){const t={},i=s(e,["apiKeyConfig"]);i!=null&&a(t,["apiKeyConfig"],vm(n,i));const r=s(e,["authType"]);r!=null&&a(t,["authType"],r);const o=s(e,["googleServiceAccountConfig"]);o!=null&&a(t,["googleServiceAccountConfig"],o);const l=s(e,["httpBasicAuthConfig"]);l!=null&&a(t,["httpBasicAuthConfig"],l);const u=s(e,["oauthConfig"]);u!=null&&a(t,["oauthConfig"],u);const c=s(e,["oidcConfig"]);return c!=null&&a(t,["oidcConfig"],c),t}function xm(n,e){const t={},i=s(e,["authConfig"]);return i!=null&&a(t,["authConfig"],_m(n,i)),t}function Cm(n,e){const t={},i=s(e,["functionDeclarations"]);if(i!=null){let d=i;Array.isArray(d)&&(d=d.map(h=>dm(n,h))),a(t,["functionDeclarations"],d)}const r=s(e,["retrieval"]);r!=null&&a(t,["retrieval"],r);const o=s(e,["googleSearch"]);o!=null&&a(t,["googleSearch"],hm(n,o));const l=s(e,["googleSearchRetrieval"]);l!=null&&a(t,["googleSearchRetrieval"],gm(n,l)),s(e,["enterpriseWebSearch"])!=null&&a(t,["enterpriseWebSearch"],ym());const c=s(e,["googleMaps"]);if(c!=null&&a(t,["googleMaps"],xm(n,c)),s(e,["urlContext"])!==void 0)throw new Error("urlContext parameter is not supported in Vertex AI.");const f=s(e,["codeExecution"]);return f!=null&&a(t,["codeExecution"],f),t}function Em(n,e){const t={},i=s(e,["mode"]);i!=null&&a(t,["mode"],i);const r=s(e,["allowedFunctionNames"]);return r!=null&&a(t,["allowedFunctionNames"],r),t}function Tm(n,e){const t={},i=s(e,["latitude"]);i!=null&&a(t,["latitude"],i);const r=s(e,["longitude"]);return r!=null&&a(t,["longitude"],r),t}function wm(n,e){const t={},i=s(e,["latLng"]);i!=null&&a(t,["latLng"],Tm(n,i));const r=s(e,["languageCode"]);return r!=null&&a(t,["languageCode"],r),t}function Sm(n,e){const t={},i=s(e,["functionCallingConfig"]);i!=null&&a(t,["functionCallingConfig"],Em(n,i));const r=s(e,["retrievalConfig"]);return r!=null&&a(t,["retrievalConfig"],wm(n,r)),t}function Am(n,e,t){const i={},r=s(e,["ttl"]);t!==void 0&&r!=null&&a(t,["ttl"],r);const o=s(e,["expireTime"]);t!==void 0&&o!=null&&a(t,["expireTime"],o);const l=s(e,["displayName"]);t!==void 0&&l!=null&&a(t,["displayName"],l);const u=s(e,["contents"]);if(t!==void 0&&u!=null){let g=Xe(n,u);Array.isArray(g)&&(g=g.map(x=>za(n,x))),a(t,["contents"],g)}const c=s(e,["systemInstruction"]);t!==void 0&&c!=null&&a(t,["systemInstruction"],za(n,Le(n,c)));const f=s(e,["tools"]);if(t!==void 0&&f!=null){let g=f;Array.isArray(g)&&(g=g.map(x=>Cm(n,x))),a(t,["tools"],g)}const d=s(e,["toolConfig"]);t!==void 0&&d!=null&&a(t,["toolConfig"],Sm(n,d));const h=s(e,["kmsKeyName"]);return t!==void 0&&h!=null&&a(t,["encryption_spec","kmsKeyName"],h),i}function bm(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["model"],ka(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],Am(n,r,t)),t}function Rm(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["_url","name"],Rt(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],r),t}function Mm(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["_url","name"],Rt(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],r),t}function Im(n,e,t){const i={},r=s(e,["ttl"]);t!==void 0&&r!=null&&a(t,["ttl"],r);const o=s(e,["expireTime"]);return t!==void 0&&o!=null&&a(t,["expireTime"],o),i}function Pm(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["_url","name"],Rt(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],Im(n,r,t)),t}function km(n,e,t){const i={},r=s(e,["pageSize"]);t!==void 0&&r!=null&&a(t,["_query","pageSize"],r);const o=s(e,["pageToken"]);return t!==void 0&&o!=null&&a(t,["_query","pageToken"],o),i}function Nm(n,e){const t={},i=s(e,["config"]);return i!=null&&a(t,["config"],km(n,i,t)),t}function bi(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["name"],i);const r=s(e,["displayName"]);r!=null&&a(t,["displayName"],r);const o=s(e,["model"]);o!=null&&a(t,["model"],o);const l=s(e,["createTime"]);l!=null&&a(t,["createTime"],l);const u=s(e,["updateTime"]);u!=null&&a(t,["updateTime"],u);const c=s(e,["expireTime"]);c!=null&&a(t,["expireTime"],c);const f=s(e,["usageMetadata"]);return f!=null&&a(t,["usageMetadata"],f),t}function Dm(){return{}}function Lm(n,e){const t={},i=s(e,["nextPageToken"]);i!=null&&a(t,["nextPageToken"],i);const r=s(e,["cachedContents"]);if(r!=null){let o=r;Array.isArray(o)&&(o=o.map(l=>bi(n,l))),a(t,["cachedContents"],o)}return t}function Ri(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["name"],i);const r=s(e,["displayName"]);r!=null&&a(t,["displayName"],r);const o=s(e,["model"]);o!=null&&a(t,["model"],o);const l=s(e,["createTime"]);l!=null&&a(t,["createTime"],l);const u=s(e,["updateTime"]);u!=null&&a(t,["updateTime"],u);const c=s(e,["expireTime"]);c!=null&&a(t,["expireTime"],c);const f=s(e,["usageMetadata"]);return f!=null&&a(t,["usageMetadata"],f),t}function Fm(){return{}}function Vm(n,e){const t={},i=s(e,["nextPageToken"]);i!=null&&a(t,["nextPageToken"],i);const r=s(e,["cachedContents"]);if(r!=null){let o=r;Array.isArray(o)&&(o=o.map(l=>Ri(n,l))),a(t,["cachedContents"],o)}return t}/**
370
+ */function nR(c,l){const a={},r=m(l,["fps"]);r!=null&&g(a,["fps"],r);const f=m(l,["endOffset"]);f!=null&&g(a,["endOffset"],f);const y=m(l,["startOffset"]);return y!=null&&g(a,["startOffset"],y),a}function lR(c,l){const a={};if(m(l,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const r=m(l,["data"]);r!=null&&g(a,["data"],r);const f=m(l,["mimeType"]);return f!=null&&g(a,["mimeType"],f),a}function aR(c,l){const a={};if(m(l,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const r=m(l,["fileUri"]);r!=null&&g(a,["fileUri"],r);const f=m(l,["mimeType"]);return f!=null&&g(a,["mimeType"],f),a}function iR(c,l){const a={},r=m(l,["videoMetadata"]);r!=null&&g(a,["videoMetadata"],nR(c,r));const f=m(l,["thought"]);f!=null&&g(a,["thought"],f);const y=m(l,["inlineData"]);y!=null&&g(a,["inlineData"],lR(c,y));const C=m(l,["fileData"]);C!=null&&g(a,["fileData"],aR(c,C));const E=m(l,["thoughtSignature"]);E!=null&&g(a,["thoughtSignature"],E);const b=m(l,["codeExecutionResult"]);b!=null&&g(a,["codeExecutionResult"],b);const A=m(l,["executableCode"]);A!=null&&g(a,["executableCode"],A);const D=m(l,["functionCall"]);D!=null&&g(a,["functionCall"],D);const N=m(l,["functionResponse"]);N!=null&&g(a,["functionResponse"],N);const z=m(l,["text"]);return z!=null&&g(a,["text"],z),a}function V_(c,l){const a={},r=m(l,["parts"]);if(r!=null){let y=r;Array.isArray(y)&&(y=y.map(C=>iR(c,C))),g(a,["parts"],y)}const f=m(l,["role"]);return f!=null&&g(a,["role"],f),a}function oR(c,l){const a={},r=m(l,["behavior"]);r!=null&&g(a,["behavior"],r);const f=m(l,["description"]);f!=null&&g(a,["description"],f);const y=m(l,["name"]);y!=null&&g(a,["name"],y);const C=m(l,["parameters"]);C!=null&&g(a,["parameters"],C);const E=m(l,["response"]);return E!=null&&g(a,["response"],E),a}function uR(c,l){const a={},r=m(l,["startTime"]);r!=null&&g(a,["startTime"],r);const f=m(l,["endTime"]);return f!=null&&g(a,["endTime"],f),a}function sR(c,l){const a={},r=m(l,["timeRangeFilter"]);return r!=null&&g(a,["timeRangeFilter"],uR(c,r)),a}function rR(c,l){const a={},r=m(l,["mode"]);r!=null&&g(a,["mode"],r);const f=m(l,["dynamicThreshold"]);return f!=null&&g(a,["dynamicThreshold"],f),a}function cR(c,l){const a={},r=m(l,["dynamicRetrievalConfig"]);return r!=null&&g(a,["dynamicRetrievalConfig"],rR(c,r)),a}function fR(){return{}}function dR(c,l){const a={},r=m(l,["functionDeclarations"]);if(r!=null){let b=r;Array.isArray(b)&&(b=b.map(A=>oR(c,A))),g(a,["functionDeclarations"],b)}if(m(l,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const f=m(l,["googleSearch"]);f!=null&&g(a,["googleSearch"],sR(c,f));const y=m(l,["googleSearchRetrieval"]);if(y!=null&&g(a,["googleSearchRetrieval"],cR(c,y)),m(l,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");if(m(l,["googleMaps"])!==void 0)throw new Error("googleMaps parameter is not supported in Gemini API.");m(l,["urlContext"])!=null&&g(a,["urlContext"],fR());const E=m(l,["codeExecution"]);return E!=null&&g(a,["codeExecution"],E),a}function hR(c,l){const a={},r=m(l,["mode"]);r!=null&&g(a,["mode"],r);const f=m(l,["allowedFunctionNames"]);return f!=null&&g(a,["allowedFunctionNames"],f),a}function mR(c,l){const a={},r=m(l,["latitude"]);r!=null&&g(a,["latitude"],r);const f=m(l,["longitude"]);return f!=null&&g(a,["longitude"],f),a}function pR(c,l){const a={},r=m(l,["latLng"]);r!=null&&g(a,["latLng"],mR(c,r));const f=m(l,["languageCode"]);return f!=null&&g(a,["languageCode"],f),a}function gR(c,l){const a={},r=m(l,["functionCallingConfig"]);r!=null&&g(a,["functionCallingConfig"],hR(c,r));const f=m(l,["retrievalConfig"]);return f!=null&&g(a,["retrievalConfig"],pR(c,f)),a}function yR(c,l,a){const r={},f=m(l,["ttl"]);a!==void 0&&f!=null&&g(a,["ttl"],f);const y=m(l,["expireTime"]);a!==void 0&&y!=null&&g(a,["expireTime"],y);const C=m(l,["displayName"]);a!==void 0&&C!=null&&g(a,["displayName"],C);const E=m(l,["contents"]);if(a!==void 0&&E!=null){let N=no(c,E);Array.isArray(N)&&(N=N.map(z=>V_(c,z))),g(a,["contents"],N)}const b=m(l,["systemInstruction"]);a!==void 0&&b!=null&&g(a,["systemInstruction"],V_(c,Gl(c,b)));const A=m(l,["tools"]);if(a!==void 0&&A!=null){let N=A;Array.isArray(N)&&(N=N.map(z=>dR(c,z))),g(a,["tools"],N)}const D=m(l,["toolConfig"]);if(a!==void 0&&D!=null&&g(a,["toolConfig"],gR(c,D)),m(l,["kmsKeyName"])!==void 0)throw new Error("kmsKeyName parameter is not supported in Gemini API.");return r}function vR(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["model"],E_(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],yR(c,f,a)),a}function SR(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["_url","name"],Is(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],f),a}function TR(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["_url","name"],Is(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],f),a}function CR(c,l,a){const r={},f=m(l,["ttl"]);a!==void 0&&f!=null&&g(a,["ttl"],f);const y=m(l,["expireTime"]);return a!==void 0&&y!=null&&g(a,["expireTime"],y),r}function ER(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["_url","name"],Is(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],CR(c,f,a)),a}function _R(c,l,a){const r={},f=m(l,["pageSize"]);a!==void 0&&f!=null&&g(a,["_query","pageSize"],f);const y=m(l,["pageToken"]);return a!==void 0&&y!=null&&g(a,["_query","pageToken"],y),r}function AR(c,l){const a={},r=m(l,["config"]);return r!=null&&g(a,["config"],_R(c,r,a)),a}function bR(c,l){const a={},r=m(l,["fps"]);r!=null&&g(a,["fps"],r);const f=m(l,["endOffset"]);f!=null&&g(a,["endOffset"],f);const y=m(l,["startOffset"]);return y!=null&&g(a,["startOffset"],y),a}function MR(c,l){const a={},r=m(l,["displayName"]);r!=null&&g(a,["displayName"],r);const f=m(l,["data"]);f!=null&&g(a,["data"],f);const y=m(l,["mimeType"]);return y!=null&&g(a,["mimeType"],y),a}function RR(c,l){const a={},r=m(l,["displayName"]);r!=null&&g(a,["displayName"],r);const f=m(l,["fileUri"]);f!=null&&g(a,["fileUri"],f);const y=m(l,["mimeType"]);return y!=null&&g(a,["mimeType"],y),a}function DR(c,l){const a={},r=m(l,["videoMetadata"]);r!=null&&g(a,["videoMetadata"],bR(c,r));const f=m(l,["thought"]);f!=null&&g(a,["thought"],f);const y=m(l,["inlineData"]);y!=null&&g(a,["inlineData"],MR(c,y));const C=m(l,["fileData"]);C!=null&&g(a,["fileData"],RR(c,C));const E=m(l,["thoughtSignature"]);E!=null&&g(a,["thoughtSignature"],E);const b=m(l,["codeExecutionResult"]);b!=null&&g(a,["codeExecutionResult"],b);const A=m(l,["executableCode"]);A!=null&&g(a,["executableCode"],A);const D=m(l,["functionCall"]);D!=null&&g(a,["functionCall"],D);const N=m(l,["functionResponse"]);N!=null&&g(a,["functionResponse"],N);const z=m(l,["text"]);return z!=null&&g(a,["text"],z),a}function L_(c,l){const a={},r=m(l,["parts"]);if(r!=null){let y=r;Array.isArray(y)&&(y=y.map(C=>DR(c,C))),g(a,["parts"],y)}const f=m(l,["role"]);return f!=null&&g(a,["role"],f),a}function xR(c,l){const a={};if(m(l,["behavior"])!==void 0)throw new Error("behavior parameter is not supported in Vertex AI.");const r=m(l,["description"]);r!=null&&g(a,["description"],r);const f=m(l,["name"]);f!=null&&g(a,["name"],f);const y=m(l,["parameters"]);y!=null&&g(a,["parameters"],y);const C=m(l,["response"]);return C!=null&&g(a,["response"],C),a}function UR(c,l){const a={},r=m(l,["startTime"]);r!=null&&g(a,["startTime"],r);const f=m(l,["endTime"]);return f!=null&&g(a,["endTime"],f),a}function NR(c,l){const a={},r=m(l,["timeRangeFilter"]);return r!=null&&g(a,["timeRangeFilter"],UR(c,r)),a}function zR(c,l){const a={},r=m(l,["mode"]);r!=null&&g(a,["mode"],r);const f=m(l,["dynamicThreshold"]);return f!=null&&g(a,["dynamicThreshold"],f),a}function OR(c,l){const a={},r=m(l,["dynamicRetrievalConfig"]);return r!=null&&g(a,["dynamicRetrievalConfig"],zR(c,r)),a}function wR(){return{}}function VR(c,l){const a={},r=m(l,["apiKeyString"]);return r!=null&&g(a,["apiKeyString"],r),a}function LR(c,l){const a={},r=m(l,["apiKeyConfig"]);r!=null&&g(a,["apiKeyConfig"],VR(c,r));const f=m(l,["authType"]);f!=null&&g(a,["authType"],f);const y=m(l,["googleServiceAccountConfig"]);y!=null&&g(a,["googleServiceAccountConfig"],y);const C=m(l,["httpBasicAuthConfig"]);C!=null&&g(a,["httpBasicAuthConfig"],C);const E=m(l,["oauthConfig"]);E!=null&&g(a,["oauthConfig"],E);const b=m(l,["oidcConfig"]);return b!=null&&g(a,["oidcConfig"],b),a}function HR(c,l){const a={},r=m(l,["authConfig"]);return r!=null&&g(a,["authConfig"],LR(c,r)),a}function BR(c,l){const a={},r=m(l,["functionDeclarations"]);if(r!=null){let D=r;Array.isArray(D)&&(D=D.map(N=>xR(c,N))),g(a,["functionDeclarations"],D)}const f=m(l,["retrieval"]);f!=null&&g(a,["retrieval"],f);const y=m(l,["googleSearch"]);y!=null&&g(a,["googleSearch"],NR(c,y));const C=m(l,["googleSearchRetrieval"]);C!=null&&g(a,["googleSearchRetrieval"],OR(c,C)),m(l,["enterpriseWebSearch"])!=null&&g(a,["enterpriseWebSearch"],wR());const b=m(l,["googleMaps"]);if(b!=null&&g(a,["googleMaps"],HR(c,b)),m(l,["urlContext"])!==void 0)throw new Error("urlContext parameter is not supported in Vertex AI.");const A=m(l,["codeExecution"]);return A!=null&&g(a,["codeExecution"],A),a}function qR(c,l){const a={},r=m(l,["mode"]);r!=null&&g(a,["mode"],r);const f=m(l,["allowedFunctionNames"]);return f!=null&&g(a,["allowedFunctionNames"],f),a}function GR(c,l){const a={},r=m(l,["latitude"]);r!=null&&g(a,["latitude"],r);const f=m(l,["longitude"]);return f!=null&&g(a,["longitude"],f),a}function YR(c,l){const a={},r=m(l,["latLng"]);r!=null&&g(a,["latLng"],GR(c,r));const f=m(l,["languageCode"]);return f!=null&&g(a,["languageCode"],f),a}function IR(c,l){const a={},r=m(l,["functionCallingConfig"]);r!=null&&g(a,["functionCallingConfig"],qR(c,r));const f=m(l,["retrievalConfig"]);return f!=null&&g(a,["retrievalConfig"],YR(c,f)),a}function ZR(c,l,a){const r={},f=m(l,["ttl"]);a!==void 0&&f!=null&&g(a,["ttl"],f);const y=m(l,["expireTime"]);a!==void 0&&y!=null&&g(a,["expireTime"],y);const C=m(l,["displayName"]);a!==void 0&&C!=null&&g(a,["displayName"],C);const E=m(l,["contents"]);if(a!==void 0&&E!=null){let z=no(c,E);Array.isArray(z)&&(z=z.map(Z=>L_(c,Z))),g(a,["contents"],z)}const b=m(l,["systemInstruction"]);a!==void 0&&b!=null&&g(a,["systemInstruction"],L_(c,Gl(c,b)));const A=m(l,["tools"]);if(a!==void 0&&A!=null){let z=A;Array.isArray(z)&&(z=z.map(Z=>BR(c,Z))),g(a,["tools"],z)}const D=m(l,["toolConfig"]);a!==void 0&&D!=null&&g(a,["toolConfig"],IR(c,D));const N=m(l,["kmsKeyName"]);return a!==void 0&&N!=null&&g(a,["encryption_spec","kmsKeyName"],N),r}function kR(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["model"],E_(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],ZR(c,f,a)),a}function XR(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["_url","name"],Is(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],f),a}function QR(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["_url","name"],Is(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],f),a}function JR(c,l,a){const r={},f=m(l,["ttl"]);a!==void 0&&f!=null&&g(a,["ttl"],f);const y=m(l,["expireTime"]);return a!==void 0&&y!=null&&g(a,["expireTime"],y),r}function KR(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["_url","name"],Is(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],JR(c,f,a)),a}function FR(c,l,a){const r={},f=m(l,["pageSize"]);a!==void 0&&f!=null&&g(a,["_query","pageSize"],f);const y=m(l,["pageToken"]);return a!==void 0&&y!=null&&g(a,["_query","pageToken"],y),r}function $R(c,l){const a={},r=m(l,["config"]);return r!=null&&g(a,["config"],FR(c,r,a)),a}function Av(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["name"],r);const f=m(l,["displayName"]);f!=null&&g(a,["displayName"],f);const y=m(l,["model"]);y!=null&&g(a,["model"],y);const C=m(l,["createTime"]);C!=null&&g(a,["createTime"],C);const E=m(l,["updateTime"]);E!=null&&g(a,["updateTime"],E);const b=m(l,["expireTime"]);b!=null&&g(a,["expireTime"],b);const A=m(l,["usageMetadata"]);return A!=null&&g(a,["usageMetadata"],A),a}function PR(){return{}}function WR(c,l){const a={},r=m(l,["nextPageToken"]);r!=null&&g(a,["nextPageToken"],r);const f=m(l,["cachedContents"]);if(f!=null){let y=f;Array.isArray(y)&&(y=y.map(C=>Av(c,C))),g(a,["cachedContents"],y)}return a}function bv(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["name"],r);const f=m(l,["displayName"]);f!=null&&g(a,["displayName"],f);const y=m(l,["model"]);y!=null&&g(a,["model"],y);const C=m(l,["createTime"]);C!=null&&g(a,["createTime"],C);const E=m(l,["updateTime"]);E!=null&&g(a,["updateTime"],E);const b=m(l,["expireTime"]);b!=null&&g(a,["expireTime"],b);const A=m(l,["usageMetadata"]);return A!=null&&g(a,["usageMetadata"],A),a}function jR(){return{}}function eD(c,l){const a={},r=m(l,["nextPageToken"]);r!=null&&g(a,["nextPageToken"],r);const f=m(l,["cachedContents"]);if(f!=null){let y=f;Array.isArray(y)&&(y=y.map(C=>bv(c,C))),g(a,["cachedContents"],y)}return a}/**
147
371
  * @license
148
372
  * Copyright 2025 Google LLC
149
373
  * SPDX-License-Identifier: Apache-2.0
150
- */var hn;(function(n){n.PAGED_ITEM_BATCH_JOBS="batchJobs",n.PAGED_ITEM_MODELS="models",n.PAGED_ITEM_TUNING_JOBS="tuningJobs",n.PAGED_ITEM_FILES="files",n.PAGED_ITEM_CACHED_CONTENTS="cachedContents"})(hn||(hn={}));class Mi{constructor(e,t,i,r){this.pageInternal=[],this.paramsInternal={},this.requestInternal=t,this.init(e,i,r)}init(e,t,i){var r,o;this.nameInternal=e,this.pageInternal=t[this.nameInternal]||[],this.idxInternal=0;let l={config:{}};i?typeof i=="object"?l=Object.assign({},i):l=i:l={config:{}},l.config&&(l.config.pageToken=t.nextPageToken),this.paramsInternal=l,this.pageInternalSize=(o=(r=l.config)===null||r===void 0?void 0:r.pageSize)!==null&&o!==void 0?o:this.pageInternal.length}initNextPage(e){this.init(this.nameInternal,e,this.paramsInternal)}get page(){return this.pageInternal}get name(){return this.nameInternal}get pageSize(){return this.pageInternalSize}get params(){return this.paramsInternal}get pageLength(){return this.pageInternal.length}getItem(e){return this.pageInternal[e]}[Symbol.asyncIterator](){return{next:async()=>{if(this.idxInternal>=this.pageLength)if(this.hasNextPage())await this.nextPage();else return{value:void 0,done:!0};const e=this.getItem(this.idxInternal);return this.idxInternal+=1,{value:e,done:!1}},return:async()=>({value:void 0,done:!0})}}async nextPage(){if(!this.hasNextPage())throw new Error("No more pages to fetch.");const e=await this.requestInternal(this.params);return this.initNextPage(e),this.page}hasNextPage(){var e;return((e=this.params.config)===null||e===void 0?void 0:e.pageToken)!==void 0}}/**
374
+ */var Rd;(function(c){c.PAGED_ITEM_BATCH_JOBS="batchJobs",c.PAGED_ITEM_MODELS="models",c.PAGED_ITEM_TUNING_JOBS="tuningJobs",c.PAGED_ITEM_FILES="files",c.PAGED_ITEM_CACHED_CONTENTS="cachedContents"})(Rd||(Rd={}));class Mv{constructor(l,a,r,f){this.pageInternal=[],this.paramsInternal={},this.requestInternal=a,this.init(l,r,f)}init(l,a,r){var f,y;this.nameInternal=l,this.pageInternal=a[this.nameInternal]||[],this.idxInternal=0;let C={config:{}};r?typeof r=="object"?C=Object.assign({},r):C=r:C={config:{}},C.config&&(C.config.pageToken=a.nextPageToken),this.paramsInternal=C,this.pageInternalSize=(y=(f=C.config)===null||f===void 0?void 0:f.pageSize)!==null&&y!==void 0?y:this.pageInternal.length}initNextPage(l){this.init(this.nameInternal,l,this.paramsInternal)}get page(){return this.pageInternal}get name(){return this.nameInternal}get pageSize(){return this.pageInternalSize}get params(){return this.paramsInternal}get pageLength(){return this.pageInternal.length}getItem(l){return this.pageInternal[l]}[Symbol.asyncIterator](){return{next:async()=>{if(this.idxInternal>=this.pageLength)if(this.hasNextPage())await this.nextPage();else return{value:void 0,done:!0};const l=this.getItem(this.idxInternal);return this.idxInternal+=1,{value:l,done:!1}},return:async()=>({value:void 0,done:!0})}}async nextPage(){if(!this.hasNextPage())throw new Error("No more pages to fetch.");const l=await this.requestInternal(this.params);return this.initNextPage(l),this.page}hasNextPage(){var l;return((l=this.params.config)===null||l===void 0?void 0:l.pageToken)!==void 0}}/**
151
375
  * @license
152
376
  * Copyright 2025 Google LLC
153
377
  * SPDX-License-Identifier: Apache-2.0
154
- */class Bm extends fn{constructor(e){super(),this.apiClient=e,this.list=async(t={})=>new Mi(hn.PAGED_ITEM_CACHED_CONTENTS,i=>this.listInternal(i),await this.listInternal(t),t)}async create(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=bm(this.apiClient,e);return u=X("cachedContents",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(d=>d.json()),l.then(d=>Ri(this.apiClient,d))}else{const f=tm(this.apiClient,e);return u=X("cachedContents",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(d=>d.json()),l.then(d=>bi(this.apiClient,d))}}async get(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=Rm(this.apiClient,e);return u=X("{name}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(d=>d.json()),l.then(d=>Ri(this.apiClient,d))}else{const f=nm(this.apiClient,e);return u=X("{name}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(d=>d.json()),l.then(d=>bi(this.apiClient,d))}}async delete(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=Mm(this.apiClient,e);return u=X("{name}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"DELETE",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(d=>d.json()),l.then(()=>{const d=Fm(),h=new Ia;return Object.assign(h,d),h})}else{const f=im(this.apiClient,e);return u=X("{name}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"DELETE",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(d=>d.json()),l.then(()=>{const d=Dm(),h=new Ia;return Object.assign(h,d),h})}}async update(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=Pm(this.apiClient,e);return u=X("{name}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"PATCH",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(d=>d.json()),l.then(d=>Ri(this.apiClient,d))}else{const f=om(this.apiClient,e);return u=X("{name}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"PATCH",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(d=>d.json()),l.then(d=>bi(this.apiClient,d))}}async listInternal(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=Nm(this.apiClient,e);return u=X("cachedContents",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(d=>d.json()),l.then(d=>{const h=Vm(this.apiClient,d),g=new Pa;return Object.assign(g,h),g})}else{const f=am(this.apiClient,e);return u=X("cachedContents",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(d=>d.json()),l.then(d=>{const h=Lm(this.apiClient,d),g=new Pa;return Object.assign(g,h),g})}}}function Ya(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],i=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ge(n){return this instanceof ge?(this.v=n,this):new ge(n)}function mn(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t.apply(n,e||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",l),r[Symbol.asyncIterator]=function(){return this},r;function l(x){return function(w){return Promise.resolve(w).then(x,h)}}function u(x,w){i[x]&&(r[x]=function(b){return new Promise(function(D,F){o.push([x,b,D,F])>1||c(x,b)})},w&&(r[x]=w(r[x])))}function c(x,w){try{f(i[x](w))}catch(b){g(o[0][3],b)}}function f(x){x.value instanceof ge?Promise.resolve(x.value.v).then(d,h):g(o[0][2],x)}function d(x){c("next",x)}function h(x){c("throw",x)}function g(x,w){x(w),o.shift(),o.length&&c(o[0][0],o[0][1])}}function Un(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof Ya=="function"?Ya(n):n[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=n[o]&&function(l){return new Promise(function(u,c){l=n[o](l),r(u,c,l.done,l.value)})}}function r(o,l,u,c){Promise.resolve(c).then(function(f){o({value:f,done:u})},l)}}typeof SuppressedError=="function"&&SuppressedError;/**
378
+ */class tD extends Ad{constructor(l){super(),this.apiClient=l,this.list=async(a={})=>new Mv(Rd.PAGED_ITEM_CACHED_CONTENTS,r=>this.listInternal(r),await this.listInternal(a),a)}async create(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=kR(this.apiClient,l);return E=Ze("cachedContents",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"POST",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(D=>D.json()),C.then(D=>bv(this.apiClient,D))}else{const A=vR(this.apiClient,l);return E=Ze("cachedContents",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"POST",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}).then(D=>D.json()),C.then(D=>Av(this.apiClient,D))}}async get(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=XR(this.apiClient,l);return E=Ze("{name}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"GET",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(D=>D.json()),C.then(D=>bv(this.apiClient,D))}else{const A=SR(this.apiClient,l);return E=Ze("{name}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"GET",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}).then(D=>D.json()),C.then(D=>Av(this.apiClient,D))}}async delete(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=QR(this.apiClient,l);return E=Ze("{name}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"DELETE",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(D=>D.json()),C.then(()=>{const D=jR(),N=new T_;return Object.assign(N,D),N})}else{const A=TR(this.apiClient,l);return E=Ze("{name}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"DELETE",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}).then(D=>D.json()),C.then(()=>{const D=PR(),N=new T_;return Object.assign(N,D),N})}}async update(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=KR(this.apiClient,l);return E=Ze("{name}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"PATCH",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(D=>D.json()),C.then(D=>bv(this.apiClient,D))}else{const A=ER(this.apiClient,l);return E=Ze("{name}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"PATCH",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}).then(D=>D.json()),C.then(D=>Av(this.apiClient,D))}}async listInternal(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=$R(this.apiClient,l);return E=Ze("cachedContents",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"GET",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(D=>D.json()),C.then(D=>{const N=eD(this.apiClient,D),z=new C_;return Object.assign(z,N),z})}else{const A=AR(this.apiClient,l);return E=Ze("cachedContents",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"GET",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}).then(D=>D.json()),C.then(D=>{const N=WR(this.apiClient,D),z=new C_;return Object.assign(z,N),z})}}}function H_(c){var l=typeof Symbol=="function"&&Symbol.iterator,a=l&&c[l],r=0;if(a)return a.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&r>=c.length&&(c=void 0),{value:c&&c[r++],done:!c}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}function nn(c){return this instanceof nn?(this.v=c,this):new nn(c)}function Dd(c,l,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=a.apply(c,l||[]),f,y=[];return f=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),E("next"),E("throw"),E("return",C),f[Symbol.asyncIterator]=function(){return this},f;function C(Z){return function(F){return Promise.resolve(F).then(Z,N)}}function E(Z,F){r[Z]&&(f[Z]=function(ie){return new Promise(function(se,fe){y.push([Z,ie,se,fe])>1||b(Z,ie)})},F&&(f[Z]=F(f[Z])))}function b(Z,F){try{A(r[Z](F))}catch(ie){z(y[0][3],ie)}}function A(Z){Z.value instanceof nn?Promise.resolve(Z.value.v).then(D,N):z(y[0][2],Z)}function D(Z){b("next",Z)}function N(Z){b("throw",Z)}function z(Z,F){Z(F),y.shift(),y.length&&b(y[0][0],y[0][1])}}function cp(c){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=c[Symbol.asyncIterator],a;return l?l.call(c):(c=typeof H_=="function"?H_(c):c[Symbol.iterator](),a={},r("next"),r("throw"),r("return"),a[Symbol.asyncIterator]=function(){return this},a);function r(y){a[y]=c[y]&&function(C){return new Promise(function(E,b){C=c[y](C),f(E,b,C.done,C.value)})}}function f(y,C,E,b){Promise.resolve(b).then(function(A){y({value:A,done:E})},C)}}typeof SuppressedError=="function"&&SuppressedError;/**
155
379
  * @license
156
380
  * Copyright 2025 Google LLC
157
381
  * SPDX-License-Identifier: Apache-2.0
158
- */function Om(n){var e;if(n.candidates==null||n.candidates.length===0)return!1;const t=(e=n.candidates[0])===null||e===void 0?void 0:e.content;return t===void 0?!1:Ka(t)}function Ka(n){if(n.parts===void 0||n.parts.length===0)return!1;for(const e of n.parts)if(e===void 0||Object.keys(e).length===0||!e.thought&&e.text!==void 0&&e.text==="")return!1;return!0}function Um(n){if(n.length!==0){for(const e of n)if(e.role!=="user"&&e.role!=="model")throw new Error(`Role must be user or model, but got ${e.role}.`)}}function Ja(n){if(n===void 0||n.length===0)return[];const e=[],t=n.length;let i=0;for(;i<t;)if(n[i].role==="user")e.push(n[i]),i++;else{const r=[];let o=!0;for(;i<t&&n[i].role==="model";)r.push(n[i]),o&&!Ka(n[i])&&(o=!1),i++;o?e.push(...r):e.pop()}return e}class $m{constructor(e,t){this.modelsModule=e,this.apiClient=t}create(e){return new Gm(this.apiClient,this.modelsModule,e.model,e.config,structuredClone(e.history))}}class Gm{constructor(e,t,i,r={},o=[]){this.apiClient=e,this.modelsModule=t,this.model=i,this.config=r,this.history=o,this.sendPromise=Promise.resolve(),Um(o)}async sendMessage(e){var t;await this.sendPromise;const i=Le(this.apiClient,e.message),r=this.modelsModule.generateContent({model:this.model,contents:this.getHistory(!0).concat(i),config:(t=e.config)!==null&&t!==void 0?t:this.config});return this.sendPromise=(async()=>{var o,l,u;const c=await r,f=(l=(o=c.candidates)===null||o===void 0?void 0:o[0])===null||l===void 0?void 0:l.content,d=c.automaticFunctionCallingHistory,h=this.getHistory(!0).length;let g=[];d!=null&&(g=(u=d.slice(h))!==null&&u!==void 0?u:[]);const x=f?[f]:[];this.recordHistory(i,x,g)})(),await this.sendPromise.catch(()=>{this.sendPromise=Promise.resolve()}),r}async sendMessageStream(e){var t;await this.sendPromise;const i=Le(this.apiClient,e.message),r=this.modelsModule.generateContentStream({model:this.model,contents:this.getHistory(!0).concat(i),config:(t=e.config)!==null&&t!==void 0?t:this.config});this.sendPromise=r.then(()=>{}).catch(()=>{});const o=await r;return this.processStreamResponse(o,i)}getHistory(e=!1){const t=e?Ja(this.history):this.history;return structuredClone(t)}processStreamResponse(e,t){var i,r;return mn(this,arguments,function*(){var l,u,c,f;const d=[];try{for(var h=!0,g=Un(e),x;x=yield ge(g.next()),l=x.done,!l;h=!0){f=x.value,h=!1;const w=f;if(Om(w)){const b=(r=(i=w.candidates)===null||i===void 0?void 0:i[0])===null||r===void 0?void 0:r.content;b!==void 0&&d.push(b)}yield yield ge(w)}}catch(w){u={error:w}}finally{try{!h&&!l&&(c=g.return)&&(yield ge(c.call(g)))}finally{if(u)throw u.error}}this.recordHistory(t,d)})}recordHistory(e,t,i){let r=[];t.length>0&&t.every(o=>o.role!==void 0)?r=t:r.push({role:"model",parts:[]}),i&&i.length>0?this.history.push(...Ja(i)):this.history.push(e),this.history.push(...r)}}/**
382
+ */function nD(c){var l;if(c.candidates==null||c.candidates.length===0)return!1;const a=(l=c.candidates[0])===null||l===void 0?void 0:l.content;return a===void 0?!1:B_(a)}function B_(c){if(c.parts===void 0||c.parts.length===0)return!1;for(const l of c.parts)if(l===void 0||Object.keys(l).length===0||!l.thought&&l.text!==void 0&&l.text==="")return!1;return!0}function lD(c){if(c.length!==0){for(const l of c)if(l.role!=="user"&&l.role!=="model")throw new Error(`Role must be user or model, but got ${l.role}.`)}}function q_(c){if(c===void 0||c.length===0)return[];const l=[],a=c.length;let r=0;for(;r<a;)if(c[r].role==="user")l.push(c[r]),r++;else{const f=[];let y=!0;for(;r<a&&c[r].role==="model";)f.push(c[r]),y&&!B_(c[r])&&(y=!1),r++;y?l.push(...f):l.pop()}return l}class aD{constructor(l,a){this.modelsModule=l,this.apiClient=a}create(l){return new iD(this.apiClient,this.modelsModule,l.model,l.config,structuredClone(l.history))}}class iD{constructor(l,a,r,f={},y=[]){this.apiClient=l,this.modelsModule=a,this.model=r,this.config=f,this.history=y,this.sendPromise=Promise.resolve(),lD(y)}async sendMessage(l){var a;await this.sendPromise;const r=Gl(this.apiClient,l.message),f=this.modelsModule.generateContent({model:this.model,contents:this.getHistory(!0).concat(r),config:(a=l.config)!==null&&a!==void 0?a:this.config});return this.sendPromise=(async()=>{var y,C,E;const b=await f,A=(C=(y=b.candidates)===null||y===void 0?void 0:y[0])===null||C===void 0?void 0:C.content,D=b.automaticFunctionCallingHistory,N=this.getHistory(!0).length;let z=[];D!=null&&(z=(E=D.slice(N))!==null&&E!==void 0?E:[]);const Z=A?[A]:[];this.recordHistory(r,Z,z)})(),await this.sendPromise.catch(()=>{this.sendPromise=Promise.resolve()}),f}async sendMessageStream(l){var a;await this.sendPromise;const r=Gl(this.apiClient,l.message),f=this.modelsModule.generateContentStream({model:this.model,contents:this.getHistory(!0).concat(r),config:(a=l.config)!==null&&a!==void 0?a:this.config});this.sendPromise=f.then(()=>{}).catch(()=>{});const y=await f;return this.processStreamResponse(y,r)}getHistory(l=!1){const a=l?q_(this.history):this.history;return structuredClone(a)}processStreamResponse(l,a){var r,f;return Dd(this,arguments,function*(){var C,E,b,A;const D=[];try{for(var N=!0,z=cp(l),Z;Z=yield nn(z.next()),C=Z.done,!C;N=!0){A=Z.value,N=!1;const F=A;if(nD(F)){const ie=(f=(r=F.candidates)===null||r===void 0?void 0:r[0])===null||f===void 0?void 0:f.content;ie!==void 0&&D.push(ie)}yield yield nn(F)}}catch(F){E={error:F}}finally{try{!N&&!C&&(b=z.return)&&(yield nn(b.call(z)))}finally{if(E)throw E.error}}this.recordHistory(a,D)})}recordHistory(l,a,r){let f=[];a.length>0&&a.every(y=>y.role!==void 0)?f=a:f.push({role:"model",parts:[]}),r&&r.length>0?this.history.push(...q_(r)):this.history.push(l),this.history.push(...f)}}/**
159
383
  * @license
160
384
  * Copyright 2025 Google LLC
161
385
  * SPDX-License-Identifier: Apache-2.0
162
- */function qm(n,e,t){const i={},r=s(e,["pageSize"]);t!==void 0&&r!=null&&a(t,["_query","pageSize"],r);const o=s(e,["pageToken"]);return t!==void 0&&o!=null&&a(t,["_query","pageToken"],o),i}function Hm(n,e){const t={},i=s(e,["config"]);return i!=null&&a(t,["config"],qm(n,i,t)),t}function Wm(n,e){const t={},i=s(e,["details"]);i!=null&&a(t,["details"],i);const r=s(e,["message"]);r!=null&&a(t,["message"],r);const o=s(e,["code"]);return o!=null&&a(t,["code"],o),t}function zm(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["name"],i);const r=s(e,["displayName"]);r!=null&&a(t,["displayName"],r);const o=s(e,["mimeType"]);o!=null&&a(t,["mimeType"],o);const l=s(e,["sizeBytes"]);l!=null&&a(t,["sizeBytes"],l);const u=s(e,["createTime"]);u!=null&&a(t,["createTime"],u);const c=s(e,["expirationTime"]);c!=null&&a(t,["expirationTime"],c);const f=s(e,["updateTime"]);f!=null&&a(t,["updateTime"],f);const d=s(e,["sha256Hash"]);d!=null&&a(t,["sha256Hash"],d);const h=s(e,["uri"]);h!=null&&a(t,["uri"],h);const g=s(e,["downloadUri"]);g!=null&&a(t,["downloadUri"],g);const x=s(e,["state"]);x!=null&&a(t,["state"],x);const w=s(e,["source"]);w!=null&&a(t,["source"],w);const b=s(e,["videoMetadata"]);b!=null&&a(t,["videoMetadata"],b);const D=s(e,["error"]);return D!=null&&a(t,["error"],Wm(n,D)),t}function Ym(n,e){const t={},i=s(e,["file"]);i!=null&&a(t,["file"],zm(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],r),t}function Km(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["_url","file"],Ga(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],r),t}function Jm(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["_url","file"],Ga(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],r),t}function Zm(n,e){const t={},i=s(e,["details"]);i!=null&&a(t,["details"],i);const r=s(e,["message"]);r!=null&&a(t,["message"],r);const o=s(e,["code"]);return o!=null&&a(t,["code"],o),t}function Mr(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["name"],i);const r=s(e,["displayName"]);r!=null&&a(t,["displayName"],r);const o=s(e,["mimeType"]);o!=null&&a(t,["mimeType"],o);const l=s(e,["sizeBytes"]);l!=null&&a(t,["sizeBytes"],l);const u=s(e,["createTime"]);u!=null&&a(t,["createTime"],u);const c=s(e,["expirationTime"]);c!=null&&a(t,["expirationTime"],c);const f=s(e,["updateTime"]);f!=null&&a(t,["updateTime"],f);const d=s(e,["sha256Hash"]);d!=null&&a(t,["sha256Hash"],d);const h=s(e,["uri"]);h!=null&&a(t,["uri"],h);const g=s(e,["downloadUri"]);g!=null&&a(t,["downloadUri"],g);const x=s(e,["state"]);x!=null&&a(t,["state"],x);const w=s(e,["source"]);w!=null&&a(t,["source"],w);const b=s(e,["videoMetadata"]);b!=null&&a(t,["videoMetadata"],b);const D=s(e,["error"]);return D!=null&&a(t,["error"],Zm(n,D)),t}function Xm(n,e){const t={},i=s(e,["nextPageToken"]);i!=null&&a(t,["nextPageToken"],i);const r=s(e,["files"]);if(r!=null){let o=r;Array.isArray(o)&&(o=o.map(l=>Mr(n,l))),a(t,["files"],o)}return t}function Qm(){return{}}function jm(){return{}}/**
386
+ */function oD(c,l,a){const r={},f=m(l,["pageSize"]);a!==void 0&&f!=null&&g(a,["_query","pageSize"],f);const y=m(l,["pageToken"]);return a!==void 0&&y!=null&&g(a,["_query","pageToken"],y),r}function uD(c,l){const a={},r=m(l,["config"]);return r!=null&&g(a,["config"],oD(c,r,a)),a}function sD(c,l){const a={},r=m(l,["details"]);r!=null&&g(a,["details"],r);const f=m(l,["message"]);f!=null&&g(a,["message"],f);const y=m(l,["code"]);return y!=null&&g(a,["code"],y),a}function rD(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["name"],r);const f=m(l,["displayName"]);f!=null&&g(a,["displayName"],f);const y=m(l,["mimeType"]);y!=null&&g(a,["mimeType"],y);const C=m(l,["sizeBytes"]);C!=null&&g(a,["sizeBytes"],C);const E=m(l,["createTime"]);E!=null&&g(a,["createTime"],E);const b=m(l,["expirationTime"]);b!=null&&g(a,["expirationTime"],b);const A=m(l,["updateTime"]);A!=null&&g(a,["updateTime"],A);const D=m(l,["sha256Hash"]);D!=null&&g(a,["sha256Hash"],D);const N=m(l,["uri"]);N!=null&&g(a,["uri"],N);const z=m(l,["downloadUri"]);z!=null&&g(a,["downloadUri"],z);const Z=m(l,["state"]);Z!=null&&g(a,["state"],Z);const F=m(l,["source"]);F!=null&&g(a,["source"],F);const ie=m(l,["videoMetadata"]);ie!=null&&g(a,["videoMetadata"],ie);const se=m(l,["error"]);return se!=null&&g(a,["error"],sD(c,se)),a}function cD(c,l){const a={},r=m(l,["file"]);r!=null&&g(a,["file"],rD(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],f),a}function fD(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["_url","file"],z_(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],f),a}function dD(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["_url","file"],z_(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],f),a}function hD(c,l){const a={},r=m(l,["details"]);r!=null&&g(a,["details"],r);const f=m(l,["message"]);f!=null&&g(a,["message"],f);const y=m(l,["code"]);return y!=null&&g(a,["code"],y),a}function yT(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["name"],r);const f=m(l,["displayName"]);f!=null&&g(a,["displayName"],f);const y=m(l,["mimeType"]);y!=null&&g(a,["mimeType"],y);const C=m(l,["sizeBytes"]);C!=null&&g(a,["sizeBytes"],C);const E=m(l,["createTime"]);E!=null&&g(a,["createTime"],E);const b=m(l,["expirationTime"]);b!=null&&g(a,["expirationTime"],b);const A=m(l,["updateTime"]);A!=null&&g(a,["updateTime"],A);const D=m(l,["sha256Hash"]);D!=null&&g(a,["sha256Hash"],D);const N=m(l,["uri"]);N!=null&&g(a,["uri"],N);const z=m(l,["downloadUri"]);z!=null&&g(a,["downloadUri"],z);const Z=m(l,["state"]);Z!=null&&g(a,["state"],Z);const F=m(l,["source"]);F!=null&&g(a,["source"],F);const ie=m(l,["videoMetadata"]);ie!=null&&g(a,["videoMetadata"],ie);const se=m(l,["error"]);return se!=null&&g(a,["error"],hD(c,se)),a}function mD(c,l){const a={},r=m(l,["nextPageToken"]);r!=null&&g(a,["nextPageToken"],r);const f=m(l,["files"]);if(f!=null){let y=f;Array.isArray(y)&&(y=y.map(C=>yT(c,C))),g(a,["files"],y)}return a}function pD(){return{}}function gD(){return{}}/**
163
387
  * @license
164
388
  * Copyright 2025 Google LLC
165
389
  * SPDX-License-Identifier: Apache-2.0
166
- */class eg extends fn{constructor(e){super(),this.apiClient=e,this.list=async(t={})=>new Mi(hn.PAGED_ITEM_FILES,i=>this.listInternal(i),await this.listInternal(t),t)}async upload(e){if(this.apiClient.isVertexAI())throw new Error("Vertex AI does not support uploading files. You can share files through a GCS bucket.");return this.apiClient.uploadFile(e.file,e.config).then(t=>Mr(this.apiClient,t))}async download(e){await this.apiClient.downloadFile(e)}async listInternal(e){var t,i;let r,o="",l={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const u=Hm(this.apiClient,e);return o=X("files",u._url),l=u._query,delete u.config,delete u._url,delete u._query,r=this.apiClient.request({path:o,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(c=>c.json()),r.then(c=>{const f=Xm(this.apiClient,c),d=new _h;return Object.assign(d,f),d})}}async createInternal(e){var t,i;let r,o="",l={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const u=Ym(this.apiClient,e);return o=X("upload/v1beta/files",u._url),l=u._query,delete u.config,delete u._url,delete u._query,r=this.apiClient.request({path:o,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(c=>c.json()),r.then(()=>{const c=Qm(),f=new xh;return Object.assign(f,c),f})}}async get(e){var t,i;let r,o="",l={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const u=Km(this.apiClient,e);return o=X("files/{file}",u._url),l=u._query,delete u.config,delete u._url,delete u._query,r=this.apiClient.request({path:o,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(c=>c.json()),r.then(c=>Mr(this.apiClient,c))}}async delete(e){var t,i;let r,o="",l={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const u=Jm(this.apiClient,e);return o=X("files/{file}",u._url),l=u._query,delete u.config,delete u._url,delete u._query,r=this.apiClient.request({path:o,queryParams:l,body:JSON.stringify(u),httpMethod:"DELETE",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(c=>c.json()),r.then(()=>{const c=jm(),f=new Ch;return Object.assign(f,c),f})}}}/**
390
+ */class yD extends Ad{constructor(l){super(),this.apiClient=l,this.list=async(a={})=>new Mv(Rd.PAGED_ITEM_FILES,r=>this.listInternal(r),await this.listInternal(a),a)}async upload(l){if(this.apiClient.isVertexAI())throw new Error("Vertex AI does not support uploading files. You can share files through a GCS bucket.");return this.apiClient.uploadFile(l.file,l.config).then(a=>yT(this.apiClient,a))}async download(l){await this.apiClient.downloadFile(l)}async listInternal(l){var a,r;let f,y="",C={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const E=uD(this.apiClient,l);return y=Ze("files",E._url),C=E._query,delete E.config,delete E._url,delete E._query,f=this.apiClient.request({path:y,queryParams:C,body:JSON.stringify(E),httpMethod:"GET",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(b=>b.json()),f.then(b=>{const A=mD(this.apiClient,b),D=new LM;return Object.assign(D,A),D})}}async createInternal(l){var a,r;let f,y="",C={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const E=cD(this.apiClient,l);return y=Ze("upload/v1beta/files",E._url),C=E._query,delete E.config,delete E._url,delete E._query,f=this.apiClient.request({path:y,queryParams:C,body:JSON.stringify(E),httpMethod:"POST",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(b=>b.json()),f.then(()=>{const b=pD(),A=new HM;return Object.assign(A,b),A})}}async get(l){var a,r;let f,y="",C={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const E=fD(this.apiClient,l);return y=Ze("files/{file}",E._url),C=E._query,delete E.config,delete E._url,delete E._query,f=this.apiClient.request({path:y,queryParams:C,body:JSON.stringify(E),httpMethod:"GET",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(b=>b.json()),f.then(b=>yT(this.apiClient,b))}}async delete(l){var a,r;let f,y="",C={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const E=dD(this.apiClient,l);return y=Ze("files/{file}",E._url),C=E._query,delete E.config,delete E._url,delete E._query,f=this.apiClient.request({path:y,queryParams:C,body:JSON.stringify(E),httpMethod:"DELETE",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(b=>b.json()),f.then(()=>{const b=gD(),A=new BM;return Object.assign(A,b),A})}}}/**
167
391
  * @license
168
392
  * Copyright 2025 Google LLC
169
393
  * SPDX-License-Identifier: Apache-2.0
170
- */function tg(n,e){const t={},i=s(e,["voiceName"]);return i!=null&&a(t,["voiceName"],i),t}function ng(n,e){const t={},i=s(e,["voiceName"]);return i!=null&&a(t,["voiceName"],i),t}function Za(n,e){const t={},i=s(e,["prebuiltVoiceConfig"]);return i!=null&&a(t,["prebuiltVoiceConfig"],tg(n,i)),t}function ig(n,e){const t={},i=s(e,["prebuiltVoiceConfig"]);return i!=null&&a(t,["prebuiltVoiceConfig"],ng(n,i)),t}function rg(n,e){const t={},i=s(e,["speaker"]);i!=null&&a(t,["speaker"],i);const r=s(e,["voiceConfig"]);return r!=null&&a(t,["voiceConfig"],Za(n,r)),t}function og(n,e){const t={},i=s(e,["speakerVoiceConfigs"]);if(i!=null){let r=i;Array.isArray(r)&&(r=r.map(o=>rg(n,o))),a(t,["speakerVoiceConfigs"],r)}return t}function sg(n,e){const t={},i=s(e,["voiceConfig"]);i!=null&&a(t,["voiceConfig"],Za(n,i));const r=s(e,["multiSpeakerVoiceConfig"]);r!=null&&a(t,["multiSpeakerVoiceConfig"],og(n,r));const o=s(e,["languageCode"]);return o!=null&&a(t,["languageCode"],o),t}function ag(n,e){const t={},i=s(e,["voiceConfig"]);if(i!=null&&a(t,["voiceConfig"],ig(n,i)),s(e,["multiSpeakerVoiceConfig"])!==void 0)throw new Error("multiSpeakerVoiceConfig parameter is not supported in Vertex AI.");const r=s(e,["languageCode"]);return r!=null&&a(t,["languageCode"],r),t}function lg(n,e){const t={},i=s(e,["fps"]);i!=null&&a(t,["fps"],i);const r=s(e,["endOffset"]);r!=null&&a(t,["endOffset"],r);const o=s(e,["startOffset"]);return o!=null&&a(t,["startOffset"],o),t}function ug(n,e){const t={},i=s(e,["fps"]);i!=null&&a(t,["fps"],i);const r=s(e,["endOffset"]);r!=null&&a(t,["endOffset"],r);const o=s(e,["startOffset"]);return o!=null&&a(t,["startOffset"],o),t}function cg(n,e){const t={};if(s(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const i=s(e,["data"]);i!=null&&a(t,["data"],i);const r=s(e,["mimeType"]);return r!=null&&a(t,["mimeType"],r),t}function fg(n,e){const t={},i=s(e,["displayName"]);i!=null&&a(t,["displayName"],i);const r=s(e,["data"]);r!=null&&a(t,["data"],r);const o=s(e,["mimeType"]);return o!=null&&a(t,["mimeType"],o),t}function dg(n,e){const t={};if(s(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const i=s(e,["fileUri"]);i!=null&&a(t,["fileUri"],i);const r=s(e,["mimeType"]);return r!=null&&a(t,["mimeType"],r),t}function pg(n,e){const t={},i=s(e,["displayName"]);i!=null&&a(t,["displayName"],i);const r=s(e,["fileUri"]);r!=null&&a(t,["fileUri"],r);const o=s(e,["mimeType"]);return o!=null&&a(t,["mimeType"],o),t}function hg(n,e){const t={},i=s(e,["videoMetadata"]);i!=null&&a(t,["videoMetadata"],lg(n,i));const r=s(e,["thought"]);r!=null&&a(t,["thought"],r);const o=s(e,["inlineData"]);o!=null&&a(t,["inlineData"],cg(n,o));const l=s(e,["fileData"]);l!=null&&a(t,["fileData"],dg(n,l));const u=s(e,["thoughtSignature"]);u!=null&&a(t,["thoughtSignature"],u);const c=s(e,["codeExecutionResult"]);c!=null&&a(t,["codeExecutionResult"],c);const f=s(e,["executableCode"]);f!=null&&a(t,["executableCode"],f);const d=s(e,["functionCall"]);d!=null&&a(t,["functionCall"],d);const h=s(e,["functionResponse"]);h!=null&&a(t,["functionResponse"],h);const g=s(e,["text"]);return g!=null&&a(t,["text"],g),t}function mg(n,e){const t={},i=s(e,["videoMetadata"]);i!=null&&a(t,["videoMetadata"],ug(n,i));const r=s(e,["thought"]);r!=null&&a(t,["thought"],r);const o=s(e,["inlineData"]);o!=null&&a(t,["inlineData"],fg(n,o));const l=s(e,["fileData"]);l!=null&&a(t,["fileData"],pg(n,l));const u=s(e,["thoughtSignature"]);u!=null&&a(t,["thoughtSignature"],u);const c=s(e,["codeExecutionResult"]);c!=null&&a(t,["codeExecutionResult"],c);const f=s(e,["executableCode"]);f!=null&&a(t,["executableCode"],f);const d=s(e,["functionCall"]);d!=null&&a(t,["functionCall"],d);const h=s(e,["functionResponse"]);h!=null&&a(t,["functionResponse"],h);const g=s(e,["text"]);return g!=null&&a(t,["text"],g),t}function gg(n,e){const t={},i=s(e,["parts"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(l=>hg(n,l))),a(t,["parts"],o)}const r=s(e,["role"]);return r!=null&&a(t,["role"],r),t}function yg(n,e){const t={},i=s(e,["parts"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(l=>mg(n,l))),a(t,["parts"],o)}const r=s(e,["role"]);return r!=null&&a(t,["role"],r),t}function vg(n,e){const t={},i=s(e,["behavior"]);i!=null&&a(t,["behavior"],i);const r=s(e,["description"]);r!=null&&a(t,["description"],r);const o=s(e,["name"]);o!=null&&a(t,["name"],o);const l=s(e,["parameters"]);l!=null&&a(t,["parameters"],l);const u=s(e,["response"]);return u!=null&&a(t,["response"],u),t}function _g(n,e){const t={};if(s(e,["behavior"])!==void 0)throw new Error("behavior parameter is not supported in Vertex AI.");const i=s(e,["description"]);i!=null&&a(t,["description"],i);const r=s(e,["name"]);r!=null&&a(t,["name"],r);const o=s(e,["parameters"]);o!=null&&a(t,["parameters"],o);const l=s(e,["response"]);return l!=null&&a(t,["response"],l),t}function xg(n,e){const t={},i=s(e,["startTime"]);i!=null&&a(t,["startTime"],i);const r=s(e,["endTime"]);return r!=null&&a(t,["endTime"],r),t}function Cg(n,e){const t={},i=s(e,["startTime"]);i!=null&&a(t,["startTime"],i);const r=s(e,["endTime"]);return r!=null&&a(t,["endTime"],r),t}function Eg(n,e){const t={},i=s(e,["timeRangeFilter"]);return i!=null&&a(t,["timeRangeFilter"],xg(n,i)),t}function Tg(n,e){const t={},i=s(e,["timeRangeFilter"]);return i!=null&&a(t,["timeRangeFilter"],Cg(n,i)),t}function wg(n,e){const t={},i=s(e,["mode"]);i!=null&&a(t,["mode"],i);const r=s(e,["dynamicThreshold"]);return r!=null&&a(t,["dynamicThreshold"],r),t}function Sg(n,e){const t={},i=s(e,["mode"]);i!=null&&a(t,["mode"],i);const r=s(e,["dynamicThreshold"]);return r!=null&&a(t,["dynamicThreshold"],r),t}function Ag(n,e){const t={},i=s(e,["dynamicRetrievalConfig"]);return i!=null&&a(t,["dynamicRetrievalConfig"],wg(n,i)),t}function bg(n,e){const t={},i=s(e,["dynamicRetrievalConfig"]);return i!=null&&a(t,["dynamicRetrievalConfig"],Sg(n,i)),t}function Rg(){return{}}function Mg(n,e){const t={},i=s(e,["apiKeyString"]);return i!=null&&a(t,["apiKeyString"],i),t}function Ig(n,e){const t={},i=s(e,["apiKeyConfig"]);i!=null&&a(t,["apiKeyConfig"],Mg(n,i));const r=s(e,["authType"]);r!=null&&a(t,["authType"],r);const o=s(e,["googleServiceAccountConfig"]);o!=null&&a(t,["googleServiceAccountConfig"],o);const l=s(e,["httpBasicAuthConfig"]);l!=null&&a(t,["httpBasicAuthConfig"],l);const u=s(e,["oauthConfig"]);u!=null&&a(t,["oauthConfig"],u);const c=s(e,["oidcConfig"]);return c!=null&&a(t,["oidcConfig"],c),t}function Pg(n,e){const t={},i=s(e,["authConfig"]);return i!=null&&a(t,["authConfig"],Ig(n,i)),t}function kg(){return{}}function Ng(n,e){const t={},i=s(e,["functionDeclarations"]);if(i!=null){let c=i;Array.isArray(c)&&(c=c.map(f=>vg(n,f))),a(t,["functionDeclarations"],c)}if(s(e,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const r=s(e,["googleSearch"]);r!=null&&a(t,["googleSearch"],Eg(n,r));const o=s(e,["googleSearchRetrieval"]);if(o!=null&&a(t,["googleSearchRetrieval"],Ag(n,o)),s(e,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");if(s(e,["googleMaps"])!==void 0)throw new Error("googleMaps parameter is not supported in Gemini API.");s(e,["urlContext"])!=null&&a(t,["urlContext"],kg());const u=s(e,["codeExecution"]);return u!=null&&a(t,["codeExecution"],u),t}function Dg(n,e){const t={},i=s(e,["functionDeclarations"]);if(i!=null){let d=i;Array.isArray(d)&&(d=d.map(h=>_g(n,h))),a(t,["functionDeclarations"],d)}const r=s(e,["retrieval"]);r!=null&&a(t,["retrieval"],r);const o=s(e,["googleSearch"]);o!=null&&a(t,["googleSearch"],Tg(n,o));const l=s(e,["googleSearchRetrieval"]);l!=null&&a(t,["googleSearchRetrieval"],bg(n,l)),s(e,["enterpriseWebSearch"])!=null&&a(t,["enterpriseWebSearch"],Rg());const c=s(e,["googleMaps"]);if(c!=null&&a(t,["googleMaps"],Pg(n,c)),s(e,["urlContext"])!==void 0)throw new Error("urlContext parameter is not supported in Vertex AI.");const f=s(e,["codeExecution"]);return f!=null&&a(t,["codeExecution"],f),t}function Lg(n,e){const t={},i=s(e,["handle"]);if(i!=null&&a(t,["handle"],i),s(e,["transparent"])!==void 0)throw new Error("transparent parameter is not supported in Gemini API.");return t}function Fg(n,e){const t={},i=s(e,["handle"]);i!=null&&a(t,["handle"],i);const r=s(e,["transparent"]);return r!=null&&a(t,["transparent"],r),t}function Xa(){return{}}function Qa(){return{}}function Vg(n,e){const t={},i=s(e,["disabled"]);i!=null&&a(t,["disabled"],i);const r=s(e,["startOfSpeechSensitivity"]);r!=null&&a(t,["startOfSpeechSensitivity"],r);const o=s(e,["endOfSpeechSensitivity"]);o!=null&&a(t,["endOfSpeechSensitivity"],o);const l=s(e,["prefixPaddingMs"]);l!=null&&a(t,["prefixPaddingMs"],l);const u=s(e,["silenceDurationMs"]);return u!=null&&a(t,["silenceDurationMs"],u),t}function Bg(n,e){const t={},i=s(e,["disabled"]);i!=null&&a(t,["disabled"],i);const r=s(e,["startOfSpeechSensitivity"]);r!=null&&a(t,["startOfSpeechSensitivity"],r);const o=s(e,["endOfSpeechSensitivity"]);o!=null&&a(t,["endOfSpeechSensitivity"],o);const l=s(e,["prefixPaddingMs"]);l!=null&&a(t,["prefixPaddingMs"],l);const u=s(e,["silenceDurationMs"]);return u!=null&&a(t,["silenceDurationMs"],u),t}function Og(n,e){const t={},i=s(e,["automaticActivityDetection"]);i!=null&&a(t,["automaticActivityDetection"],Vg(n,i));const r=s(e,["activityHandling"]);r!=null&&a(t,["activityHandling"],r);const o=s(e,["turnCoverage"]);return o!=null&&a(t,["turnCoverage"],o),t}function Ug(n,e){const t={},i=s(e,["automaticActivityDetection"]);i!=null&&a(t,["automaticActivityDetection"],Bg(n,i));const r=s(e,["activityHandling"]);r!=null&&a(t,["activityHandling"],r);const o=s(e,["turnCoverage"]);return o!=null&&a(t,["turnCoverage"],o),t}function $g(n,e){const t={},i=s(e,["targetTokens"]);return i!=null&&a(t,["targetTokens"],i),t}function Gg(n,e){const t={},i=s(e,["targetTokens"]);return i!=null&&a(t,["targetTokens"],i),t}function qg(n,e){const t={},i=s(e,["triggerTokens"]);i!=null&&a(t,["triggerTokens"],i);const r=s(e,["slidingWindow"]);return r!=null&&a(t,["slidingWindow"],$g(n,r)),t}function Hg(n,e){const t={},i=s(e,["triggerTokens"]);i!=null&&a(t,["triggerTokens"],i);const r=s(e,["slidingWindow"]);return r!=null&&a(t,["slidingWindow"],Gg(n,r)),t}function Wg(n,e){const t={},i=s(e,["proactiveAudio"]);return i!=null&&a(t,["proactiveAudio"],i),t}function zg(n,e){const t={},i=s(e,["proactiveAudio"]);return i!=null&&a(t,["proactiveAudio"],i),t}function Yg(n,e,t){const i={},r=s(e,["generationConfig"]);t!==void 0&&r!=null&&a(t,["setup","generationConfig"],r);const o=s(e,["responseModalities"]);t!==void 0&&o!=null&&a(t,["setup","generationConfig","responseModalities"],o);const l=s(e,["temperature"]);t!==void 0&&l!=null&&a(t,["setup","generationConfig","temperature"],l);const u=s(e,["topP"]);t!==void 0&&u!=null&&a(t,["setup","generationConfig","topP"],u);const c=s(e,["topK"]);t!==void 0&&c!=null&&a(t,["setup","generationConfig","topK"],c);const f=s(e,["maxOutputTokens"]);t!==void 0&&f!=null&&a(t,["setup","generationConfig","maxOutputTokens"],f);const d=s(e,["mediaResolution"]);t!==void 0&&d!=null&&a(t,["setup","generationConfig","mediaResolution"],d);const h=s(e,["seed"]);t!==void 0&&h!=null&&a(t,["setup","generationConfig","seed"],h);const g=s(e,["speechConfig"]);t!==void 0&&g!=null&&a(t,["setup","generationConfig","speechConfig"],sg(n,Rr(n,g)));const x=s(e,["enableAffectiveDialog"]);t!==void 0&&x!=null&&a(t,["setup","generationConfig","enableAffectiveDialog"],x);const w=s(e,["systemInstruction"]);t!==void 0&&w!=null&&a(t,["setup","systemInstruction"],gg(n,Le(n,w)));const b=s(e,["tools"]);if(t!==void 0&&b!=null){let I=On(n,b);Array.isArray(I)&&(I=I.map(R=>Ng(n,Bn(n,R)))),a(t,["setup","tools"],I)}const D=s(e,["sessionResumption"]);t!==void 0&&D!=null&&a(t,["setup","sessionResumption"],Lg(n,D));const F=s(e,["inputAudioTranscription"]);t!==void 0&&F!=null&&a(t,["setup","inputAudioTranscription"],Xa());const T=s(e,["outputAudioTranscription"]);t!==void 0&&T!=null&&a(t,["setup","outputAudioTranscription"],Xa());const k=s(e,["realtimeInputConfig"]);t!==void 0&&k!=null&&a(t,["setup","realtimeInputConfig"],Og(n,k));const A=s(e,["contextWindowCompression"]);t!==void 0&&A!=null&&a(t,["setup","contextWindowCompression"],qg(n,A));const S=s(e,["proactivity"]);return t!==void 0&&S!=null&&a(t,["setup","proactivity"],Wg(n,S)),i}function Kg(n,e,t){const i={},r=s(e,["generationConfig"]);t!==void 0&&r!=null&&a(t,["setup","generationConfig"],r);const o=s(e,["responseModalities"]);t!==void 0&&o!=null&&a(t,["setup","generationConfig","responseModalities"],o);const l=s(e,["temperature"]);t!==void 0&&l!=null&&a(t,["setup","generationConfig","temperature"],l);const u=s(e,["topP"]);t!==void 0&&u!=null&&a(t,["setup","generationConfig","topP"],u);const c=s(e,["topK"]);t!==void 0&&c!=null&&a(t,["setup","generationConfig","topK"],c);const f=s(e,["maxOutputTokens"]);t!==void 0&&f!=null&&a(t,["setup","generationConfig","maxOutputTokens"],f);const d=s(e,["mediaResolution"]);t!==void 0&&d!=null&&a(t,["setup","generationConfig","mediaResolution"],d);const h=s(e,["seed"]);t!==void 0&&h!=null&&a(t,["setup","generationConfig","seed"],h);const g=s(e,["speechConfig"]);t!==void 0&&g!=null&&a(t,["setup","generationConfig","speechConfig"],ag(n,Rr(n,g)));const x=s(e,["enableAffectiveDialog"]);t!==void 0&&x!=null&&a(t,["setup","generationConfig","enableAffectiveDialog"],x);const w=s(e,["systemInstruction"]);t!==void 0&&w!=null&&a(t,["setup","systemInstruction"],yg(n,Le(n,w)));const b=s(e,["tools"]);if(t!==void 0&&b!=null){let I=On(n,b);Array.isArray(I)&&(I=I.map(R=>Dg(n,Bn(n,R)))),a(t,["setup","tools"],I)}const D=s(e,["sessionResumption"]);t!==void 0&&D!=null&&a(t,["setup","sessionResumption"],Fg(n,D));const F=s(e,["inputAudioTranscription"]);t!==void 0&&F!=null&&a(t,["setup","inputAudioTranscription"],Qa());const T=s(e,["outputAudioTranscription"]);t!==void 0&&T!=null&&a(t,["setup","outputAudioTranscription"],Qa());const k=s(e,["realtimeInputConfig"]);t!==void 0&&k!=null&&a(t,["setup","realtimeInputConfig"],Ug(n,k));const A=s(e,["contextWindowCompression"]);t!==void 0&&A!=null&&a(t,["setup","contextWindowCompression"],Hg(n,A));const S=s(e,["proactivity"]);return t!==void 0&&S!=null&&a(t,["setup","proactivity"],zg(n,S)),i}function Jg(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["setup","model"],pe(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],Yg(n,r,t)),t}function Zg(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["setup","model"],pe(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],Kg(n,r,t)),t}function Xg(){return{}}function Qg(){return{}}function jg(){return{}}function ey(){return{}}function ty(n,e){const t={},i=s(e,["media"]);i!=null&&a(t,["mediaChunks"],Na(n,i));const r=s(e,["audio"]);r!=null&&a(t,["audio"],Sh(n,r));const o=s(e,["audioStreamEnd"]);o!=null&&a(t,["audioStreamEnd"],o);const l=s(e,["video"]);l!=null&&a(t,["video"],wh(n,l));const u=s(e,["text"]);return u!=null&&a(t,["text"],u),s(e,["activityStart"])!=null&&a(t,["activityStart"],Xg()),s(e,["activityEnd"])!=null&&a(t,["activityEnd"],jg()),t}function ny(n,e){const t={},i=s(e,["media"]);if(i!=null&&a(t,["mediaChunks"],Na(n,i)),s(e,["audio"])!==void 0)throw new Error("audio parameter is not supported in Vertex AI.");const r=s(e,["audioStreamEnd"]);if(r!=null&&a(t,["audioStreamEnd"],r),s(e,["video"])!==void 0)throw new Error("video parameter is not supported in Vertex AI.");if(s(e,["text"])!==void 0)throw new Error("text parameter is not supported in Vertex AI.");return s(e,["activityStart"])!=null&&a(t,["activityStart"],Qg()),s(e,["activityEnd"])!=null&&a(t,["activityEnd"],ey()),t}function ja(n,e){const t={},i=s(e,["text"]);i!=null&&a(t,["text"],i);const r=s(e,["weight"]);return r!=null&&a(t,["weight"],r),t}function iy(n,e){const t={},i=s(e,["weightedPrompts"]);if(i!=null){let r=i;Array.isArray(r)&&(r=r.map(o=>ja(n,o))),a(t,["weightedPrompts"],r)}return t}function el(n,e){const t={},i=s(e,["temperature"]);i!=null&&a(t,["temperature"],i);const r=s(e,["topK"]);r!=null&&a(t,["topK"],r);const o=s(e,["seed"]);o!=null&&a(t,["seed"],o);const l=s(e,["guidance"]);l!=null&&a(t,["guidance"],l);const u=s(e,["bpm"]);u!=null&&a(t,["bpm"],u);const c=s(e,["density"]);c!=null&&a(t,["density"],c);const f=s(e,["brightness"]);f!=null&&a(t,["brightness"],f);const d=s(e,["scale"]);d!=null&&a(t,["scale"],d);const h=s(e,["muteBass"]);h!=null&&a(t,["muteBass"],h);const g=s(e,["muteDrums"]);g!=null&&a(t,["muteDrums"],g);const x=s(e,["onlyBassAndDrums"]);return x!=null&&a(t,["onlyBassAndDrums"],x),t}function ry(n,e){const t={},i=s(e,["musicGenerationConfig"]);return i!=null&&a(t,["musicGenerationConfig"],el(n,i)),t}function tl(n,e){const t={},i=s(e,["model"]);return i!=null&&a(t,["model"],i),t}function nl(n,e){const t={},i=s(e,["weightedPrompts"]);if(i!=null){let r=i;Array.isArray(r)&&(r=r.map(o=>ja(n,o))),a(t,["weightedPrompts"],r)}return t}function Ir(n,e){const t={},i=s(e,["setup"]);i!=null&&a(t,["setup"],tl(n,i));const r=s(e,["clientContent"]);r!=null&&a(t,["clientContent"],nl(n,r));const o=s(e,["musicGenerationConfig"]);o!=null&&a(t,["musicGenerationConfig"],el(n,o));const l=s(e,["playbackControl"]);return l!=null&&a(t,["playbackControl"],l),t}function oy(){return{}}function sy(){return{}}function ay(n,e){const t={},i=s(e,["fps"]);i!=null&&a(t,["fps"],i);const r=s(e,["endOffset"]);r!=null&&a(t,["endOffset"],r);const o=s(e,["startOffset"]);return o!=null&&a(t,["startOffset"],o),t}function ly(n,e){const t={},i=s(e,["fps"]);i!=null&&a(t,["fps"],i);const r=s(e,["endOffset"]);r!=null&&a(t,["endOffset"],r);const o=s(e,["startOffset"]);return o!=null&&a(t,["startOffset"],o),t}function uy(n,e){const t={},i=s(e,["data"]);i!=null&&a(t,["data"],i);const r=s(e,["mimeType"]);return r!=null&&a(t,["mimeType"],r),t}function cy(n,e){const t={},i=s(e,["displayName"]);i!=null&&a(t,["displayName"],i);const r=s(e,["data"]);r!=null&&a(t,["data"],r);const o=s(e,["mimeType"]);return o!=null&&a(t,["mimeType"],o),t}function fy(n,e){const t={},i=s(e,["fileUri"]);i!=null&&a(t,["fileUri"],i);const r=s(e,["mimeType"]);return r!=null&&a(t,["mimeType"],r),t}function dy(n,e){const t={},i=s(e,["displayName"]);i!=null&&a(t,["displayName"],i);const r=s(e,["fileUri"]);r!=null&&a(t,["fileUri"],r);const o=s(e,["mimeType"]);return o!=null&&a(t,["mimeType"],o),t}function py(n,e){const t={},i=s(e,["videoMetadata"]);i!=null&&a(t,["videoMetadata"],ay(n,i));const r=s(e,["thought"]);r!=null&&a(t,["thought"],r);const o=s(e,["inlineData"]);o!=null&&a(t,["inlineData"],uy(n,o));const l=s(e,["fileData"]);l!=null&&a(t,["fileData"],fy(n,l));const u=s(e,["thoughtSignature"]);u!=null&&a(t,["thoughtSignature"],u);const c=s(e,["codeExecutionResult"]);c!=null&&a(t,["codeExecutionResult"],c);const f=s(e,["executableCode"]);f!=null&&a(t,["executableCode"],f);const d=s(e,["functionCall"]);d!=null&&a(t,["functionCall"],d);const h=s(e,["functionResponse"]);h!=null&&a(t,["functionResponse"],h);const g=s(e,["text"]);return g!=null&&a(t,["text"],g),t}function hy(n,e){const t={},i=s(e,["videoMetadata"]);i!=null&&a(t,["videoMetadata"],ly(n,i));const r=s(e,["thought"]);r!=null&&a(t,["thought"],r);const o=s(e,["inlineData"]);o!=null&&a(t,["inlineData"],cy(n,o));const l=s(e,["fileData"]);l!=null&&a(t,["fileData"],dy(n,l));const u=s(e,["thoughtSignature"]);u!=null&&a(t,["thoughtSignature"],u);const c=s(e,["codeExecutionResult"]);c!=null&&a(t,["codeExecutionResult"],c);const f=s(e,["executableCode"]);f!=null&&a(t,["executableCode"],f);const d=s(e,["functionCall"]);d!=null&&a(t,["functionCall"],d);const h=s(e,["functionResponse"]);h!=null&&a(t,["functionResponse"],h);const g=s(e,["text"]);return g!=null&&a(t,["text"],g),t}function my(n,e){const t={},i=s(e,["parts"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(l=>py(n,l))),a(t,["parts"],o)}const r=s(e,["role"]);return r!=null&&a(t,["role"],r),t}function gy(n,e){const t={},i=s(e,["parts"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(l=>hy(n,l))),a(t,["parts"],o)}const r=s(e,["role"]);return r!=null&&a(t,["role"],r),t}function il(n,e){const t={},i=s(e,["text"]);i!=null&&a(t,["text"],i);const r=s(e,["finished"]);return r!=null&&a(t,["finished"],r),t}function rl(n,e){const t={},i=s(e,["text"]);i!=null&&a(t,["text"],i);const r=s(e,["finished"]);return r!=null&&a(t,["finished"],r),t}function yy(n,e){const t={},i=s(e,["retrievedUrl"]);i!=null&&a(t,["retrievedUrl"],i);const r=s(e,["urlRetrievalStatus"]);return r!=null&&a(t,["urlRetrievalStatus"],r),t}function vy(n,e){const t={},i=s(e,["urlMetadata"]);if(i!=null){let r=i;Array.isArray(r)&&(r=r.map(o=>yy(n,o))),a(t,["urlMetadata"],r)}return t}function _y(n,e){const t={},i=s(e,["modelTurn"]);i!=null&&a(t,["modelTurn"],my(n,i));const r=s(e,["turnComplete"]);r!=null&&a(t,["turnComplete"],r);const o=s(e,["interrupted"]);o!=null&&a(t,["interrupted"],o);const l=s(e,["groundingMetadata"]);l!=null&&a(t,["groundingMetadata"],l);const u=s(e,["generationComplete"]);u!=null&&a(t,["generationComplete"],u);const c=s(e,["inputTranscription"]);c!=null&&a(t,["inputTranscription"],il(n,c));const f=s(e,["outputTranscription"]);f!=null&&a(t,["outputTranscription"],il(n,f));const d=s(e,["urlContextMetadata"]);return d!=null&&a(t,["urlContextMetadata"],vy(n,d)),t}function xy(n,e){const t={},i=s(e,["modelTurn"]);i!=null&&a(t,["modelTurn"],gy(n,i));const r=s(e,["turnComplete"]);r!=null&&a(t,["turnComplete"],r);const o=s(e,["interrupted"]);o!=null&&a(t,["interrupted"],o);const l=s(e,["groundingMetadata"]);l!=null&&a(t,["groundingMetadata"],l);const u=s(e,["generationComplete"]);u!=null&&a(t,["generationComplete"],u);const c=s(e,["inputTranscription"]);c!=null&&a(t,["inputTranscription"],rl(n,c));const f=s(e,["outputTranscription"]);return f!=null&&a(t,["outputTranscription"],rl(n,f)),t}function Cy(n,e){const t={},i=s(e,["id"]);i!=null&&a(t,["id"],i);const r=s(e,["args"]);r!=null&&a(t,["args"],r);const o=s(e,["name"]);return o!=null&&a(t,["name"],o),t}function Ey(n,e){const t={},i=s(e,["args"]);i!=null&&a(t,["args"],i);const r=s(e,["name"]);return r!=null&&a(t,["name"],r),t}function Ty(n,e){const t={},i=s(e,["functionCalls"]);if(i!=null){let r=i;Array.isArray(r)&&(r=r.map(o=>Cy(n,o))),a(t,["functionCalls"],r)}return t}function wy(n,e){const t={},i=s(e,["functionCalls"]);if(i!=null){let r=i;Array.isArray(r)&&(r=r.map(o=>Ey(n,o))),a(t,["functionCalls"],r)}return t}function Sy(n,e){const t={},i=s(e,["ids"]);return i!=null&&a(t,["ids"],i),t}function Ay(n,e){const t={},i=s(e,["ids"]);return i!=null&&a(t,["ids"],i),t}function Ii(n,e){const t={},i=s(e,["modality"]);i!=null&&a(t,["modality"],i);const r=s(e,["tokenCount"]);return r!=null&&a(t,["tokenCount"],r),t}function Pi(n,e){const t={},i=s(e,["modality"]);i!=null&&a(t,["modality"],i);const r=s(e,["tokenCount"]);return r!=null&&a(t,["tokenCount"],r),t}function by(n,e){const t={},i=s(e,["promptTokenCount"]);i!=null&&a(t,["promptTokenCount"],i);const r=s(e,["cachedContentTokenCount"]);r!=null&&a(t,["cachedContentTokenCount"],r);const o=s(e,["responseTokenCount"]);o!=null&&a(t,["responseTokenCount"],o);const l=s(e,["toolUsePromptTokenCount"]);l!=null&&a(t,["toolUsePromptTokenCount"],l);const u=s(e,["thoughtsTokenCount"]);u!=null&&a(t,["thoughtsTokenCount"],u);const c=s(e,["totalTokenCount"]);c!=null&&a(t,["totalTokenCount"],c);const f=s(e,["promptTokensDetails"]);if(f!=null){let x=f;Array.isArray(x)&&(x=x.map(w=>Ii(n,w))),a(t,["promptTokensDetails"],x)}const d=s(e,["cacheTokensDetails"]);if(d!=null){let x=d;Array.isArray(x)&&(x=x.map(w=>Ii(n,w))),a(t,["cacheTokensDetails"],x)}const h=s(e,["responseTokensDetails"]);if(h!=null){let x=h;Array.isArray(x)&&(x=x.map(w=>Ii(n,w))),a(t,["responseTokensDetails"],x)}const g=s(e,["toolUsePromptTokensDetails"]);if(g!=null){let x=g;Array.isArray(x)&&(x=x.map(w=>Ii(n,w))),a(t,["toolUsePromptTokensDetails"],x)}return t}function Ry(n,e){const t={},i=s(e,["promptTokenCount"]);i!=null&&a(t,["promptTokenCount"],i);const r=s(e,["cachedContentTokenCount"]);r!=null&&a(t,["cachedContentTokenCount"],r);const o=s(e,["candidatesTokenCount"]);o!=null&&a(t,["responseTokenCount"],o);const l=s(e,["toolUsePromptTokenCount"]);l!=null&&a(t,["toolUsePromptTokenCount"],l);const u=s(e,["thoughtsTokenCount"]);u!=null&&a(t,["thoughtsTokenCount"],u);const c=s(e,["totalTokenCount"]);c!=null&&a(t,["totalTokenCount"],c);const f=s(e,["promptTokensDetails"]);if(f!=null){let w=f;Array.isArray(w)&&(w=w.map(b=>Pi(n,b))),a(t,["promptTokensDetails"],w)}const d=s(e,["cacheTokensDetails"]);if(d!=null){let w=d;Array.isArray(w)&&(w=w.map(b=>Pi(n,b))),a(t,["cacheTokensDetails"],w)}const h=s(e,["candidatesTokensDetails"]);if(h!=null){let w=h;Array.isArray(w)&&(w=w.map(b=>Pi(n,b))),a(t,["responseTokensDetails"],w)}const g=s(e,["toolUsePromptTokensDetails"]);if(g!=null){let w=g;Array.isArray(w)&&(w=w.map(b=>Pi(n,b))),a(t,["toolUsePromptTokensDetails"],w)}const x=s(e,["trafficType"]);return x!=null&&a(t,["trafficType"],x),t}function My(n,e){const t={},i=s(e,["timeLeft"]);return i!=null&&a(t,["timeLeft"],i),t}function Iy(n,e){const t={},i=s(e,["timeLeft"]);return i!=null&&a(t,["timeLeft"],i),t}function Py(n,e){const t={},i=s(e,["newHandle"]);i!=null&&a(t,["newHandle"],i);const r=s(e,["resumable"]);r!=null&&a(t,["resumable"],r);const o=s(e,["lastConsumedClientMessageIndex"]);return o!=null&&a(t,["lastConsumedClientMessageIndex"],o),t}function ky(n,e){const t={},i=s(e,["newHandle"]);i!=null&&a(t,["newHandle"],i);const r=s(e,["resumable"]);r!=null&&a(t,["resumable"],r);const o=s(e,["lastConsumedClientMessageIndex"]);return o!=null&&a(t,["lastConsumedClientMessageIndex"],o),t}function Ny(n,e){const t={};s(e,["setupComplete"])!=null&&a(t,["setupComplete"],oy());const r=s(e,["serverContent"]);r!=null&&a(t,["serverContent"],_y(n,r));const o=s(e,["toolCall"]);o!=null&&a(t,["toolCall"],Ty(n,o));const l=s(e,["toolCallCancellation"]);l!=null&&a(t,["toolCallCancellation"],Sy(n,l));const u=s(e,["usageMetadata"]);u!=null&&a(t,["usageMetadata"],by(n,u));const c=s(e,["goAway"]);c!=null&&a(t,["goAway"],My(n,c));const f=s(e,["sessionResumptionUpdate"]);return f!=null&&a(t,["sessionResumptionUpdate"],Py(n,f)),t}function Dy(n,e){const t={};s(e,["setupComplete"])!=null&&a(t,["setupComplete"],sy());const r=s(e,["serverContent"]);r!=null&&a(t,["serverContent"],xy(n,r));const o=s(e,["toolCall"]);o!=null&&a(t,["toolCall"],wy(n,o));const l=s(e,["toolCallCancellation"]);l!=null&&a(t,["toolCallCancellation"],Ay(n,l));const u=s(e,["usageMetadata"]);u!=null&&a(t,["usageMetadata"],Ry(n,u));const c=s(e,["goAway"]);c!=null&&a(t,["goAway"],Iy(n,c));const f=s(e,["sessionResumptionUpdate"]);return f!=null&&a(t,["sessionResumptionUpdate"],ky(n,f)),t}function Ly(){return{}}function Fy(n,e){const t={},i=s(e,["text"]);i!=null&&a(t,["text"],i);const r=s(e,["weight"]);return r!=null&&a(t,["weight"],r),t}function Vy(n,e){const t={},i=s(e,["weightedPrompts"]);if(i!=null){let r=i;Array.isArray(r)&&(r=r.map(o=>Fy(n,o))),a(t,["weightedPrompts"],r)}return t}function By(n,e){const t={},i=s(e,["temperature"]);i!=null&&a(t,["temperature"],i);const r=s(e,["topK"]);r!=null&&a(t,["topK"],r);const o=s(e,["seed"]);o!=null&&a(t,["seed"],o);const l=s(e,["guidance"]);l!=null&&a(t,["guidance"],l);const u=s(e,["bpm"]);u!=null&&a(t,["bpm"],u);const c=s(e,["density"]);c!=null&&a(t,["density"],c);const f=s(e,["brightness"]);f!=null&&a(t,["brightness"],f);const d=s(e,["scale"]);d!=null&&a(t,["scale"],d);const h=s(e,["muteBass"]);h!=null&&a(t,["muteBass"],h);const g=s(e,["muteDrums"]);g!=null&&a(t,["muteDrums"],g);const x=s(e,["onlyBassAndDrums"]);return x!=null&&a(t,["onlyBassAndDrums"],x),t}function Oy(n,e){const t={},i=s(e,["clientContent"]);i!=null&&a(t,["clientContent"],Vy(n,i));const r=s(e,["musicGenerationConfig"]);return r!=null&&a(t,["musicGenerationConfig"],By(n,r)),t}function Uy(n,e){const t={},i=s(e,["data"]);i!=null&&a(t,["data"],i);const r=s(e,["mimeType"]);r!=null&&a(t,["mimeType"],r);const o=s(e,["sourceMetadata"]);return o!=null&&a(t,["sourceMetadata"],Oy(n,o)),t}function $y(n,e){const t={},i=s(e,["audioChunks"]);if(i!=null){let r=i;Array.isArray(r)&&(r=r.map(o=>Uy(n,o))),a(t,["audioChunks"],r)}return t}function Gy(n,e){const t={},i=s(e,["text"]);i!=null&&a(t,["text"],i);const r=s(e,["filteredReason"]);return r!=null&&a(t,["filteredReason"],r),t}function qy(n,e){const t={};s(e,["setupComplete"])!=null&&a(t,["setupComplete"],Ly());const r=s(e,["serverContent"]);r!=null&&a(t,["serverContent"],$y(n,r));const o=s(e,["filteredPrompt"]);return o!=null&&a(t,["filteredPrompt"],Gy(n,o)),t}/**
394
+ */function vD(c,l){const a={},r=m(l,["voiceName"]);return r!=null&&g(a,["voiceName"],r),a}function SD(c,l){const a={},r=m(l,["voiceName"]);return r!=null&&g(a,["voiceName"],r),a}function G_(c,l){const a={},r=m(l,["prebuiltVoiceConfig"]);return r!=null&&g(a,["prebuiltVoiceConfig"],vD(c,r)),a}function TD(c,l){const a={},r=m(l,["prebuiltVoiceConfig"]);return r!=null&&g(a,["prebuiltVoiceConfig"],SD(c,r)),a}function CD(c,l){const a={},r=m(l,["speaker"]);r!=null&&g(a,["speaker"],r);const f=m(l,["voiceConfig"]);return f!=null&&g(a,["voiceConfig"],G_(c,f)),a}function ED(c,l){const a={},r=m(l,["speakerVoiceConfigs"]);if(r!=null){let f=r;Array.isArray(f)&&(f=f.map(y=>CD(c,y))),g(a,["speakerVoiceConfigs"],f)}return a}function _D(c,l){const a={},r=m(l,["voiceConfig"]);r!=null&&g(a,["voiceConfig"],G_(c,r));const f=m(l,["multiSpeakerVoiceConfig"]);f!=null&&g(a,["multiSpeakerVoiceConfig"],ED(c,f));const y=m(l,["languageCode"]);return y!=null&&g(a,["languageCode"],y),a}function AD(c,l){const a={},r=m(l,["voiceConfig"]);if(r!=null&&g(a,["voiceConfig"],TD(c,r)),m(l,["multiSpeakerVoiceConfig"])!==void 0)throw new Error("multiSpeakerVoiceConfig parameter is not supported in Vertex AI.");const f=m(l,["languageCode"]);return f!=null&&g(a,["languageCode"],f),a}function bD(c,l){const a={},r=m(l,["fps"]);r!=null&&g(a,["fps"],r);const f=m(l,["endOffset"]);f!=null&&g(a,["endOffset"],f);const y=m(l,["startOffset"]);return y!=null&&g(a,["startOffset"],y),a}function MD(c,l){const a={},r=m(l,["fps"]);r!=null&&g(a,["fps"],r);const f=m(l,["endOffset"]);f!=null&&g(a,["endOffset"],f);const y=m(l,["startOffset"]);return y!=null&&g(a,["startOffset"],y),a}function RD(c,l){const a={};if(m(l,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const r=m(l,["data"]);r!=null&&g(a,["data"],r);const f=m(l,["mimeType"]);return f!=null&&g(a,["mimeType"],f),a}function DD(c,l){const a={},r=m(l,["displayName"]);r!=null&&g(a,["displayName"],r);const f=m(l,["data"]);f!=null&&g(a,["data"],f);const y=m(l,["mimeType"]);return y!=null&&g(a,["mimeType"],y),a}function xD(c,l){const a={};if(m(l,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const r=m(l,["fileUri"]);r!=null&&g(a,["fileUri"],r);const f=m(l,["mimeType"]);return f!=null&&g(a,["mimeType"],f),a}function UD(c,l){const a={},r=m(l,["displayName"]);r!=null&&g(a,["displayName"],r);const f=m(l,["fileUri"]);f!=null&&g(a,["fileUri"],f);const y=m(l,["mimeType"]);return y!=null&&g(a,["mimeType"],y),a}function ND(c,l){const a={},r=m(l,["videoMetadata"]);r!=null&&g(a,["videoMetadata"],bD(c,r));const f=m(l,["thought"]);f!=null&&g(a,["thought"],f);const y=m(l,["inlineData"]);y!=null&&g(a,["inlineData"],RD(c,y));const C=m(l,["fileData"]);C!=null&&g(a,["fileData"],xD(c,C));const E=m(l,["thoughtSignature"]);E!=null&&g(a,["thoughtSignature"],E);const b=m(l,["codeExecutionResult"]);b!=null&&g(a,["codeExecutionResult"],b);const A=m(l,["executableCode"]);A!=null&&g(a,["executableCode"],A);const D=m(l,["functionCall"]);D!=null&&g(a,["functionCall"],D);const N=m(l,["functionResponse"]);N!=null&&g(a,["functionResponse"],N);const z=m(l,["text"]);return z!=null&&g(a,["text"],z),a}function zD(c,l){const a={},r=m(l,["videoMetadata"]);r!=null&&g(a,["videoMetadata"],MD(c,r));const f=m(l,["thought"]);f!=null&&g(a,["thought"],f);const y=m(l,["inlineData"]);y!=null&&g(a,["inlineData"],DD(c,y));const C=m(l,["fileData"]);C!=null&&g(a,["fileData"],UD(c,C));const E=m(l,["thoughtSignature"]);E!=null&&g(a,["thoughtSignature"],E);const b=m(l,["codeExecutionResult"]);b!=null&&g(a,["codeExecutionResult"],b);const A=m(l,["executableCode"]);A!=null&&g(a,["executableCode"],A);const D=m(l,["functionCall"]);D!=null&&g(a,["functionCall"],D);const N=m(l,["functionResponse"]);N!=null&&g(a,["functionResponse"],N);const z=m(l,["text"]);return z!=null&&g(a,["text"],z),a}function OD(c,l){const a={},r=m(l,["parts"]);if(r!=null){let y=r;Array.isArray(y)&&(y=y.map(C=>ND(c,C))),g(a,["parts"],y)}const f=m(l,["role"]);return f!=null&&g(a,["role"],f),a}function wD(c,l){const a={},r=m(l,["parts"]);if(r!=null){let y=r;Array.isArray(y)&&(y=y.map(C=>zD(c,C))),g(a,["parts"],y)}const f=m(l,["role"]);return f!=null&&g(a,["role"],f),a}function VD(c,l){const a={},r=m(l,["behavior"]);r!=null&&g(a,["behavior"],r);const f=m(l,["description"]);f!=null&&g(a,["description"],f);const y=m(l,["name"]);y!=null&&g(a,["name"],y);const C=m(l,["parameters"]);C!=null&&g(a,["parameters"],C);const E=m(l,["response"]);return E!=null&&g(a,["response"],E),a}function LD(c,l){const a={};if(m(l,["behavior"])!==void 0)throw new Error("behavior parameter is not supported in Vertex AI.");const r=m(l,["description"]);r!=null&&g(a,["description"],r);const f=m(l,["name"]);f!=null&&g(a,["name"],f);const y=m(l,["parameters"]);y!=null&&g(a,["parameters"],y);const C=m(l,["response"]);return C!=null&&g(a,["response"],C),a}function HD(c,l){const a={},r=m(l,["startTime"]);r!=null&&g(a,["startTime"],r);const f=m(l,["endTime"]);return f!=null&&g(a,["endTime"],f),a}function BD(c,l){const a={},r=m(l,["startTime"]);r!=null&&g(a,["startTime"],r);const f=m(l,["endTime"]);return f!=null&&g(a,["endTime"],f),a}function qD(c,l){const a={},r=m(l,["timeRangeFilter"]);return r!=null&&g(a,["timeRangeFilter"],HD(c,r)),a}function GD(c,l){const a={},r=m(l,["timeRangeFilter"]);return r!=null&&g(a,["timeRangeFilter"],BD(c,r)),a}function YD(c,l){const a={},r=m(l,["mode"]);r!=null&&g(a,["mode"],r);const f=m(l,["dynamicThreshold"]);return f!=null&&g(a,["dynamicThreshold"],f),a}function ID(c,l){const a={},r=m(l,["mode"]);r!=null&&g(a,["mode"],r);const f=m(l,["dynamicThreshold"]);return f!=null&&g(a,["dynamicThreshold"],f),a}function ZD(c,l){const a={},r=m(l,["dynamicRetrievalConfig"]);return r!=null&&g(a,["dynamicRetrievalConfig"],YD(c,r)),a}function kD(c,l){const a={},r=m(l,["dynamicRetrievalConfig"]);return r!=null&&g(a,["dynamicRetrievalConfig"],ID(c,r)),a}function XD(){return{}}function QD(c,l){const a={},r=m(l,["apiKeyString"]);return r!=null&&g(a,["apiKeyString"],r),a}function JD(c,l){const a={},r=m(l,["apiKeyConfig"]);r!=null&&g(a,["apiKeyConfig"],QD(c,r));const f=m(l,["authType"]);f!=null&&g(a,["authType"],f);const y=m(l,["googleServiceAccountConfig"]);y!=null&&g(a,["googleServiceAccountConfig"],y);const C=m(l,["httpBasicAuthConfig"]);C!=null&&g(a,["httpBasicAuthConfig"],C);const E=m(l,["oauthConfig"]);E!=null&&g(a,["oauthConfig"],E);const b=m(l,["oidcConfig"]);return b!=null&&g(a,["oidcConfig"],b),a}function KD(c,l){const a={},r=m(l,["authConfig"]);return r!=null&&g(a,["authConfig"],JD(c,r)),a}function FD(){return{}}function $D(c,l){const a={},r=m(l,["functionDeclarations"]);if(r!=null){let b=r;Array.isArray(b)&&(b=b.map(A=>VD(c,A))),g(a,["functionDeclarations"],b)}if(m(l,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const f=m(l,["googleSearch"]);f!=null&&g(a,["googleSearch"],qD(c,f));const y=m(l,["googleSearchRetrieval"]);if(y!=null&&g(a,["googleSearchRetrieval"],ZD(c,y)),m(l,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");if(m(l,["googleMaps"])!==void 0)throw new Error("googleMaps parameter is not supported in Gemini API.");m(l,["urlContext"])!=null&&g(a,["urlContext"],FD());const E=m(l,["codeExecution"]);return E!=null&&g(a,["codeExecution"],E),a}function PD(c,l){const a={},r=m(l,["functionDeclarations"]);if(r!=null){let D=r;Array.isArray(D)&&(D=D.map(N=>LD(c,N))),g(a,["functionDeclarations"],D)}const f=m(l,["retrieval"]);f!=null&&g(a,["retrieval"],f);const y=m(l,["googleSearch"]);y!=null&&g(a,["googleSearch"],GD(c,y));const C=m(l,["googleSearchRetrieval"]);C!=null&&g(a,["googleSearchRetrieval"],kD(c,C)),m(l,["enterpriseWebSearch"])!=null&&g(a,["enterpriseWebSearch"],XD());const b=m(l,["googleMaps"]);if(b!=null&&g(a,["googleMaps"],KD(c,b)),m(l,["urlContext"])!==void 0)throw new Error("urlContext parameter is not supported in Vertex AI.");const A=m(l,["codeExecution"]);return A!=null&&g(a,["codeExecution"],A),a}function WD(c,l){const a={},r=m(l,["handle"]);if(r!=null&&g(a,["handle"],r),m(l,["transparent"])!==void 0)throw new Error("transparent parameter is not supported in Gemini API.");return a}function jD(c,l){const a={},r=m(l,["handle"]);r!=null&&g(a,["handle"],r);const f=m(l,["transparent"]);return f!=null&&g(a,["transparent"],f),a}function Y_(){return{}}function I_(){return{}}function e2(c,l){const a={},r=m(l,["disabled"]);r!=null&&g(a,["disabled"],r);const f=m(l,["startOfSpeechSensitivity"]);f!=null&&g(a,["startOfSpeechSensitivity"],f);const y=m(l,["endOfSpeechSensitivity"]);y!=null&&g(a,["endOfSpeechSensitivity"],y);const C=m(l,["prefixPaddingMs"]);C!=null&&g(a,["prefixPaddingMs"],C);const E=m(l,["silenceDurationMs"]);return E!=null&&g(a,["silenceDurationMs"],E),a}function t2(c,l){const a={},r=m(l,["disabled"]);r!=null&&g(a,["disabled"],r);const f=m(l,["startOfSpeechSensitivity"]);f!=null&&g(a,["startOfSpeechSensitivity"],f);const y=m(l,["endOfSpeechSensitivity"]);y!=null&&g(a,["endOfSpeechSensitivity"],y);const C=m(l,["prefixPaddingMs"]);C!=null&&g(a,["prefixPaddingMs"],C);const E=m(l,["silenceDurationMs"]);return E!=null&&g(a,["silenceDurationMs"],E),a}function n2(c,l){const a={},r=m(l,["automaticActivityDetection"]);r!=null&&g(a,["automaticActivityDetection"],e2(c,r));const f=m(l,["activityHandling"]);f!=null&&g(a,["activityHandling"],f);const y=m(l,["turnCoverage"]);return y!=null&&g(a,["turnCoverage"],y),a}function l2(c,l){const a={},r=m(l,["automaticActivityDetection"]);r!=null&&g(a,["automaticActivityDetection"],t2(c,r));const f=m(l,["activityHandling"]);f!=null&&g(a,["activityHandling"],f);const y=m(l,["turnCoverage"]);return y!=null&&g(a,["turnCoverage"],y),a}function a2(c,l){const a={},r=m(l,["targetTokens"]);return r!=null&&g(a,["targetTokens"],r),a}function i2(c,l){const a={},r=m(l,["targetTokens"]);return r!=null&&g(a,["targetTokens"],r),a}function o2(c,l){const a={},r=m(l,["triggerTokens"]);r!=null&&g(a,["triggerTokens"],r);const f=m(l,["slidingWindow"]);return f!=null&&g(a,["slidingWindow"],a2(c,f)),a}function u2(c,l){const a={},r=m(l,["triggerTokens"]);r!=null&&g(a,["triggerTokens"],r);const f=m(l,["slidingWindow"]);return f!=null&&g(a,["slidingWindow"],i2(c,f)),a}function s2(c,l){const a={},r=m(l,["proactiveAudio"]);return r!=null&&g(a,["proactiveAudio"],r),a}function r2(c,l){const a={},r=m(l,["proactiveAudio"]);return r!=null&&g(a,["proactiveAudio"],r),a}function c2(c,l,a){const r={},f=m(l,["generationConfig"]);a!==void 0&&f!=null&&g(a,["setup","generationConfig"],f);const y=m(l,["responseModalities"]);a!==void 0&&y!=null&&g(a,["setup","generationConfig","responseModalities"],y);const C=m(l,["temperature"]);a!==void 0&&C!=null&&g(a,["setup","generationConfig","temperature"],C);const E=m(l,["topP"]);a!==void 0&&E!=null&&g(a,["setup","generationConfig","topP"],E);const b=m(l,["topK"]);a!==void 0&&b!=null&&g(a,["setup","generationConfig","topK"],b);const A=m(l,["maxOutputTokens"]);a!==void 0&&A!=null&&g(a,["setup","generationConfig","maxOutputTokens"],A);const D=m(l,["mediaResolution"]);a!==void 0&&D!=null&&g(a,["setup","generationConfig","mediaResolution"],D);const N=m(l,["seed"]);a!==void 0&&N!=null&&g(a,["setup","generationConfig","seed"],N);const z=m(l,["speechConfig"]);a!==void 0&&z!=null&&g(a,["setup","generationConfig","speechConfig"],_D(c,gT(c,z)));const Z=m(l,["enableAffectiveDialog"]);a!==void 0&&Z!=null&&g(a,["setup","generationConfig","enableAffectiveDialog"],Z);const F=m(l,["systemInstruction"]);a!==void 0&&F!=null&&g(a,["setup","systemInstruction"],OD(c,Gl(c,F)));const ie=m(l,["tools"]);if(a!==void 0&&ie!=null){let Oe=rp(c,ie);Array.isArray(Oe)&&(Oe=Oe.map(Be=>$D(c,sp(c,Be)))),g(a,["setup","tools"],Oe)}const se=m(l,["sessionResumption"]);a!==void 0&&se!=null&&g(a,["setup","sessionResumption"],WD(c,se));const fe=m(l,["inputAudioTranscription"]);a!==void 0&&fe!=null&&g(a,["setup","inputAudioTranscription"],Y_());const de=m(l,["outputAudioTranscription"]);a!==void 0&&de!=null&&g(a,["setup","outputAudioTranscription"],Y_());const me=m(l,["realtimeInputConfig"]);a!==void 0&&me!=null&&g(a,["setup","realtimeInputConfig"],n2(c,me));const Te=m(l,["contextWindowCompression"]);a!==void 0&&Te!=null&&g(a,["setup","contextWindowCompression"],o2(c,Te));const Re=m(l,["proactivity"]);return a!==void 0&&Re!=null&&g(a,["setup","proactivity"],s2(c,Re)),r}function f2(c,l,a){const r={},f=m(l,["generationConfig"]);a!==void 0&&f!=null&&g(a,["setup","generationConfig"],f);const y=m(l,["responseModalities"]);a!==void 0&&y!=null&&g(a,["setup","generationConfig","responseModalities"],y);const C=m(l,["temperature"]);a!==void 0&&C!=null&&g(a,["setup","generationConfig","temperature"],C);const E=m(l,["topP"]);a!==void 0&&E!=null&&g(a,["setup","generationConfig","topP"],E);const b=m(l,["topK"]);a!==void 0&&b!=null&&g(a,["setup","generationConfig","topK"],b);const A=m(l,["maxOutputTokens"]);a!==void 0&&A!=null&&g(a,["setup","generationConfig","maxOutputTokens"],A);const D=m(l,["mediaResolution"]);a!==void 0&&D!=null&&g(a,["setup","generationConfig","mediaResolution"],D);const N=m(l,["seed"]);a!==void 0&&N!=null&&g(a,["setup","generationConfig","seed"],N);const z=m(l,["speechConfig"]);a!==void 0&&z!=null&&g(a,["setup","generationConfig","speechConfig"],AD(c,gT(c,z)));const Z=m(l,["enableAffectiveDialog"]);a!==void 0&&Z!=null&&g(a,["setup","generationConfig","enableAffectiveDialog"],Z);const F=m(l,["systemInstruction"]);a!==void 0&&F!=null&&g(a,["setup","systemInstruction"],wD(c,Gl(c,F)));const ie=m(l,["tools"]);if(a!==void 0&&ie!=null){let Oe=rp(c,ie);Array.isArray(Oe)&&(Oe=Oe.map(Be=>PD(c,sp(c,Be)))),g(a,["setup","tools"],Oe)}const se=m(l,["sessionResumption"]);a!==void 0&&se!=null&&g(a,["setup","sessionResumption"],jD(c,se));const fe=m(l,["inputAudioTranscription"]);a!==void 0&&fe!=null&&g(a,["setup","inputAudioTranscription"],I_());const de=m(l,["outputAudioTranscription"]);a!==void 0&&de!=null&&g(a,["setup","outputAudioTranscription"],I_());const me=m(l,["realtimeInputConfig"]);a!==void 0&&me!=null&&g(a,["setup","realtimeInputConfig"],l2(c,me));const Te=m(l,["contextWindowCompression"]);a!==void 0&&Te!=null&&g(a,["setup","contextWindowCompression"],u2(c,Te));const Re=m(l,["proactivity"]);return a!==void 0&&Re!=null&&g(a,["setup","proactivity"],r2(c,Re)),r}function d2(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["setup","model"],Kt(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],c2(c,f,a)),a}function h2(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["setup","model"],Kt(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],f2(c,f,a)),a}function m2(){return{}}function p2(){return{}}function g2(){return{}}function y2(){return{}}function v2(c,l){const a={},r=m(l,["media"]);r!=null&&g(a,["mediaChunks"],__(c,r));const f=m(l,["audio"]);f!=null&&g(a,["audio"],IM(c,f));const y=m(l,["audioStreamEnd"]);y!=null&&g(a,["audioStreamEnd"],y);const C=m(l,["video"]);C!=null&&g(a,["video"],YM(c,C));const E=m(l,["text"]);return E!=null&&g(a,["text"],E),m(l,["activityStart"])!=null&&g(a,["activityStart"],m2()),m(l,["activityEnd"])!=null&&g(a,["activityEnd"],g2()),a}function S2(c,l){const a={},r=m(l,["media"]);if(r!=null&&g(a,["mediaChunks"],__(c,r)),m(l,["audio"])!==void 0)throw new Error("audio parameter is not supported in Vertex AI.");const f=m(l,["audioStreamEnd"]);if(f!=null&&g(a,["audioStreamEnd"],f),m(l,["video"])!==void 0)throw new Error("video parameter is not supported in Vertex AI.");if(m(l,["text"])!==void 0)throw new Error("text parameter is not supported in Vertex AI.");return m(l,["activityStart"])!=null&&g(a,["activityStart"],p2()),m(l,["activityEnd"])!=null&&g(a,["activityEnd"],y2()),a}function Z_(c,l){const a={},r=m(l,["text"]);r!=null&&g(a,["text"],r);const f=m(l,["weight"]);return f!=null&&g(a,["weight"],f),a}function T2(c,l){const a={},r=m(l,["weightedPrompts"]);if(r!=null){let f=r;Array.isArray(f)&&(f=f.map(y=>Z_(c,y))),g(a,["weightedPrompts"],f)}return a}function k_(c,l){const a={},r=m(l,["temperature"]);r!=null&&g(a,["temperature"],r);const f=m(l,["topK"]);f!=null&&g(a,["topK"],f);const y=m(l,["seed"]);y!=null&&g(a,["seed"],y);const C=m(l,["guidance"]);C!=null&&g(a,["guidance"],C);const E=m(l,["bpm"]);E!=null&&g(a,["bpm"],E);const b=m(l,["density"]);b!=null&&g(a,["density"],b);const A=m(l,["brightness"]);A!=null&&g(a,["brightness"],A);const D=m(l,["scale"]);D!=null&&g(a,["scale"],D);const N=m(l,["muteBass"]);N!=null&&g(a,["muteBass"],N);const z=m(l,["muteDrums"]);z!=null&&g(a,["muteDrums"],z);const Z=m(l,["onlyBassAndDrums"]);return Z!=null&&g(a,["onlyBassAndDrums"],Z),a}function C2(c,l){const a={},r=m(l,["musicGenerationConfig"]);return r!=null&&g(a,["musicGenerationConfig"],k_(c,r)),a}function X_(c,l){const a={},r=m(l,["model"]);return r!=null&&g(a,["model"],r),a}function Q_(c,l){const a={},r=m(l,["weightedPrompts"]);if(r!=null){let f=r;Array.isArray(f)&&(f=f.map(y=>Z_(c,y))),g(a,["weightedPrompts"],f)}return a}function vT(c,l){const a={},r=m(l,["setup"]);r!=null&&g(a,["setup"],X_(c,r));const f=m(l,["clientContent"]);f!=null&&g(a,["clientContent"],Q_(c,f));const y=m(l,["musicGenerationConfig"]);y!=null&&g(a,["musicGenerationConfig"],k_(c,y));const C=m(l,["playbackControl"]);return C!=null&&g(a,["playbackControl"],C),a}function E2(){return{}}function _2(){return{}}function A2(c,l){const a={},r=m(l,["fps"]);r!=null&&g(a,["fps"],r);const f=m(l,["endOffset"]);f!=null&&g(a,["endOffset"],f);const y=m(l,["startOffset"]);return y!=null&&g(a,["startOffset"],y),a}function b2(c,l){const a={},r=m(l,["fps"]);r!=null&&g(a,["fps"],r);const f=m(l,["endOffset"]);f!=null&&g(a,["endOffset"],f);const y=m(l,["startOffset"]);return y!=null&&g(a,["startOffset"],y),a}function M2(c,l){const a={},r=m(l,["data"]);r!=null&&g(a,["data"],r);const f=m(l,["mimeType"]);return f!=null&&g(a,["mimeType"],f),a}function R2(c,l){const a={},r=m(l,["displayName"]);r!=null&&g(a,["displayName"],r);const f=m(l,["data"]);f!=null&&g(a,["data"],f);const y=m(l,["mimeType"]);return y!=null&&g(a,["mimeType"],y),a}function D2(c,l){const a={},r=m(l,["fileUri"]);r!=null&&g(a,["fileUri"],r);const f=m(l,["mimeType"]);return f!=null&&g(a,["mimeType"],f),a}function x2(c,l){const a={},r=m(l,["displayName"]);r!=null&&g(a,["displayName"],r);const f=m(l,["fileUri"]);f!=null&&g(a,["fileUri"],f);const y=m(l,["mimeType"]);return y!=null&&g(a,["mimeType"],y),a}function U2(c,l){const a={},r=m(l,["videoMetadata"]);r!=null&&g(a,["videoMetadata"],A2(c,r));const f=m(l,["thought"]);f!=null&&g(a,["thought"],f);const y=m(l,["inlineData"]);y!=null&&g(a,["inlineData"],M2(c,y));const C=m(l,["fileData"]);C!=null&&g(a,["fileData"],D2(c,C));const E=m(l,["thoughtSignature"]);E!=null&&g(a,["thoughtSignature"],E);const b=m(l,["codeExecutionResult"]);b!=null&&g(a,["codeExecutionResult"],b);const A=m(l,["executableCode"]);A!=null&&g(a,["executableCode"],A);const D=m(l,["functionCall"]);D!=null&&g(a,["functionCall"],D);const N=m(l,["functionResponse"]);N!=null&&g(a,["functionResponse"],N);const z=m(l,["text"]);return z!=null&&g(a,["text"],z),a}function N2(c,l){const a={},r=m(l,["videoMetadata"]);r!=null&&g(a,["videoMetadata"],b2(c,r));const f=m(l,["thought"]);f!=null&&g(a,["thought"],f);const y=m(l,["inlineData"]);y!=null&&g(a,["inlineData"],R2(c,y));const C=m(l,["fileData"]);C!=null&&g(a,["fileData"],x2(c,C));const E=m(l,["thoughtSignature"]);E!=null&&g(a,["thoughtSignature"],E);const b=m(l,["codeExecutionResult"]);b!=null&&g(a,["codeExecutionResult"],b);const A=m(l,["executableCode"]);A!=null&&g(a,["executableCode"],A);const D=m(l,["functionCall"]);D!=null&&g(a,["functionCall"],D);const N=m(l,["functionResponse"]);N!=null&&g(a,["functionResponse"],N);const z=m(l,["text"]);return z!=null&&g(a,["text"],z),a}function z2(c,l){const a={},r=m(l,["parts"]);if(r!=null){let y=r;Array.isArray(y)&&(y=y.map(C=>U2(c,C))),g(a,["parts"],y)}const f=m(l,["role"]);return f!=null&&g(a,["role"],f),a}function O2(c,l){const a={},r=m(l,["parts"]);if(r!=null){let y=r;Array.isArray(y)&&(y=y.map(C=>N2(c,C))),g(a,["parts"],y)}const f=m(l,["role"]);return f!=null&&g(a,["role"],f),a}function J_(c,l){const a={},r=m(l,["text"]);r!=null&&g(a,["text"],r);const f=m(l,["finished"]);return f!=null&&g(a,["finished"],f),a}function K_(c,l){const a={},r=m(l,["text"]);r!=null&&g(a,["text"],r);const f=m(l,["finished"]);return f!=null&&g(a,["finished"],f),a}function w2(c,l){const a={},r=m(l,["retrievedUrl"]);r!=null&&g(a,["retrievedUrl"],r);const f=m(l,["urlRetrievalStatus"]);return f!=null&&g(a,["urlRetrievalStatus"],f),a}function V2(c,l){const a={},r=m(l,["urlMetadata"]);if(r!=null){let f=r;Array.isArray(f)&&(f=f.map(y=>w2(c,y))),g(a,["urlMetadata"],f)}return a}function L2(c,l){const a={},r=m(l,["modelTurn"]);r!=null&&g(a,["modelTurn"],z2(c,r));const f=m(l,["turnComplete"]);f!=null&&g(a,["turnComplete"],f);const y=m(l,["interrupted"]);y!=null&&g(a,["interrupted"],y);const C=m(l,["groundingMetadata"]);C!=null&&g(a,["groundingMetadata"],C);const E=m(l,["generationComplete"]);E!=null&&g(a,["generationComplete"],E);const b=m(l,["inputTranscription"]);b!=null&&g(a,["inputTranscription"],J_(c,b));const A=m(l,["outputTranscription"]);A!=null&&g(a,["outputTranscription"],J_(c,A));const D=m(l,["urlContextMetadata"]);return D!=null&&g(a,["urlContextMetadata"],V2(c,D)),a}function H2(c,l){const a={},r=m(l,["modelTurn"]);r!=null&&g(a,["modelTurn"],O2(c,r));const f=m(l,["turnComplete"]);f!=null&&g(a,["turnComplete"],f);const y=m(l,["interrupted"]);y!=null&&g(a,["interrupted"],y);const C=m(l,["groundingMetadata"]);C!=null&&g(a,["groundingMetadata"],C);const E=m(l,["generationComplete"]);E!=null&&g(a,["generationComplete"],E);const b=m(l,["inputTranscription"]);b!=null&&g(a,["inputTranscription"],K_(c,b));const A=m(l,["outputTranscription"]);return A!=null&&g(a,["outputTranscription"],K_(c,A)),a}function B2(c,l){const a={},r=m(l,["id"]);r!=null&&g(a,["id"],r);const f=m(l,["args"]);f!=null&&g(a,["args"],f);const y=m(l,["name"]);return y!=null&&g(a,["name"],y),a}function q2(c,l){const a={},r=m(l,["args"]);r!=null&&g(a,["args"],r);const f=m(l,["name"]);return f!=null&&g(a,["name"],f),a}function G2(c,l){const a={},r=m(l,["functionCalls"]);if(r!=null){let f=r;Array.isArray(f)&&(f=f.map(y=>B2(c,y))),g(a,["functionCalls"],f)}return a}function Y2(c,l){const a={},r=m(l,["functionCalls"]);if(r!=null){let f=r;Array.isArray(f)&&(f=f.map(y=>q2(c,y))),g(a,["functionCalls"],f)}return a}function I2(c,l){const a={},r=m(l,["ids"]);return r!=null&&g(a,["ids"],r),a}function Z2(c,l){const a={},r=m(l,["ids"]);return r!=null&&g(a,["ids"],r),a}function Rv(c,l){const a={},r=m(l,["modality"]);r!=null&&g(a,["modality"],r);const f=m(l,["tokenCount"]);return f!=null&&g(a,["tokenCount"],f),a}function Dv(c,l){const a={},r=m(l,["modality"]);r!=null&&g(a,["modality"],r);const f=m(l,["tokenCount"]);return f!=null&&g(a,["tokenCount"],f),a}function k2(c,l){const a={},r=m(l,["promptTokenCount"]);r!=null&&g(a,["promptTokenCount"],r);const f=m(l,["cachedContentTokenCount"]);f!=null&&g(a,["cachedContentTokenCount"],f);const y=m(l,["responseTokenCount"]);y!=null&&g(a,["responseTokenCount"],y);const C=m(l,["toolUsePromptTokenCount"]);C!=null&&g(a,["toolUsePromptTokenCount"],C);const E=m(l,["thoughtsTokenCount"]);E!=null&&g(a,["thoughtsTokenCount"],E);const b=m(l,["totalTokenCount"]);b!=null&&g(a,["totalTokenCount"],b);const A=m(l,["promptTokensDetails"]);if(A!=null){let Z=A;Array.isArray(Z)&&(Z=Z.map(F=>Rv(c,F))),g(a,["promptTokensDetails"],Z)}const D=m(l,["cacheTokensDetails"]);if(D!=null){let Z=D;Array.isArray(Z)&&(Z=Z.map(F=>Rv(c,F))),g(a,["cacheTokensDetails"],Z)}const N=m(l,["responseTokensDetails"]);if(N!=null){let Z=N;Array.isArray(Z)&&(Z=Z.map(F=>Rv(c,F))),g(a,["responseTokensDetails"],Z)}const z=m(l,["toolUsePromptTokensDetails"]);if(z!=null){let Z=z;Array.isArray(Z)&&(Z=Z.map(F=>Rv(c,F))),g(a,["toolUsePromptTokensDetails"],Z)}return a}function X2(c,l){const a={},r=m(l,["promptTokenCount"]);r!=null&&g(a,["promptTokenCount"],r);const f=m(l,["cachedContentTokenCount"]);f!=null&&g(a,["cachedContentTokenCount"],f);const y=m(l,["candidatesTokenCount"]);y!=null&&g(a,["responseTokenCount"],y);const C=m(l,["toolUsePromptTokenCount"]);C!=null&&g(a,["toolUsePromptTokenCount"],C);const E=m(l,["thoughtsTokenCount"]);E!=null&&g(a,["thoughtsTokenCount"],E);const b=m(l,["totalTokenCount"]);b!=null&&g(a,["totalTokenCount"],b);const A=m(l,["promptTokensDetails"]);if(A!=null){let F=A;Array.isArray(F)&&(F=F.map(ie=>Dv(c,ie))),g(a,["promptTokensDetails"],F)}const D=m(l,["cacheTokensDetails"]);if(D!=null){let F=D;Array.isArray(F)&&(F=F.map(ie=>Dv(c,ie))),g(a,["cacheTokensDetails"],F)}const N=m(l,["candidatesTokensDetails"]);if(N!=null){let F=N;Array.isArray(F)&&(F=F.map(ie=>Dv(c,ie))),g(a,["responseTokensDetails"],F)}const z=m(l,["toolUsePromptTokensDetails"]);if(z!=null){let F=z;Array.isArray(F)&&(F=F.map(ie=>Dv(c,ie))),g(a,["toolUsePromptTokensDetails"],F)}const Z=m(l,["trafficType"]);return Z!=null&&g(a,["trafficType"],Z),a}function Q2(c,l){const a={},r=m(l,["timeLeft"]);return r!=null&&g(a,["timeLeft"],r),a}function J2(c,l){const a={},r=m(l,["timeLeft"]);return r!=null&&g(a,["timeLeft"],r),a}function K2(c,l){const a={},r=m(l,["newHandle"]);r!=null&&g(a,["newHandle"],r);const f=m(l,["resumable"]);f!=null&&g(a,["resumable"],f);const y=m(l,["lastConsumedClientMessageIndex"]);return y!=null&&g(a,["lastConsumedClientMessageIndex"],y),a}function F2(c,l){const a={},r=m(l,["newHandle"]);r!=null&&g(a,["newHandle"],r);const f=m(l,["resumable"]);f!=null&&g(a,["resumable"],f);const y=m(l,["lastConsumedClientMessageIndex"]);return y!=null&&g(a,["lastConsumedClientMessageIndex"],y),a}function $2(c,l){const a={};m(l,["setupComplete"])!=null&&g(a,["setupComplete"],E2());const f=m(l,["serverContent"]);f!=null&&g(a,["serverContent"],L2(c,f));const y=m(l,["toolCall"]);y!=null&&g(a,["toolCall"],G2(c,y));const C=m(l,["toolCallCancellation"]);C!=null&&g(a,["toolCallCancellation"],I2(c,C));const E=m(l,["usageMetadata"]);E!=null&&g(a,["usageMetadata"],k2(c,E));const b=m(l,["goAway"]);b!=null&&g(a,["goAway"],Q2(c,b));const A=m(l,["sessionResumptionUpdate"]);return A!=null&&g(a,["sessionResumptionUpdate"],K2(c,A)),a}function P2(c,l){const a={};m(l,["setupComplete"])!=null&&g(a,["setupComplete"],_2());const f=m(l,["serverContent"]);f!=null&&g(a,["serverContent"],H2(c,f));const y=m(l,["toolCall"]);y!=null&&g(a,["toolCall"],Y2(c,y));const C=m(l,["toolCallCancellation"]);C!=null&&g(a,["toolCallCancellation"],Z2(c,C));const E=m(l,["usageMetadata"]);E!=null&&g(a,["usageMetadata"],X2(c,E));const b=m(l,["goAway"]);b!=null&&g(a,["goAway"],J2(c,b));const A=m(l,["sessionResumptionUpdate"]);return A!=null&&g(a,["sessionResumptionUpdate"],F2(c,A)),a}function W2(){return{}}function j2(c,l){const a={},r=m(l,["text"]);r!=null&&g(a,["text"],r);const f=m(l,["weight"]);return f!=null&&g(a,["weight"],f),a}function ex(c,l){const a={},r=m(l,["weightedPrompts"]);if(r!=null){let f=r;Array.isArray(f)&&(f=f.map(y=>j2(c,y))),g(a,["weightedPrompts"],f)}return a}function tx(c,l){const a={},r=m(l,["temperature"]);r!=null&&g(a,["temperature"],r);const f=m(l,["topK"]);f!=null&&g(a,["topK"],f);const y=m(l,["seed"]);y!=null&&g(a,["seed"],y);const C=m(l,["guidance"]);C!=null&&g(a,["guidance"],C);const E=m(l,["bpm"]);E!=null&&g(a,["bpm"],E);const b=m(l,["density"]);b!=null&&g(a,["density"],b);const A=m(l,["brightness"]);A!=null&&g(a,["brightness"],A);const D=m(l,["scale"]);D!=null&&g(a,["scale"],D);const N=m(l,["muteBass"]);N!=null&&g(a,["muteBass"],N);const z=m(l,["muteDrums"]);z!=null&&g(a,["muteDrums"],z);const Z=m(l,["onlyBassAndDrums"]);return Z!=null&&g(a,["onlyBassAndDrums"],Z),a}function nx(c,l){const a={},r=m(l,["clientContent"]);r!=null&&g(a,["clientContent"],ex(c,r));const f=m(l,["musicGenerationConfig"]);return f!=null&&g(a,["musicGenerationConfig"],tx(c,f)),a}function lx(c,l){const a={},r=m(l,["data"]);r!=null&&g(a,["data"],r);const f=m(l,["mimeType"]);f!=null&&g(a,["mimeType"],f);const y=m(l,["sourceMetadata"]);return y!=null&&g(a,["sourceMetadata"],nx(c,y)),a}function ax(c,l){const a={},r=m(l,["audioChunks"]);if(r!=null){let f=r;Array.isArray(f)&&(f=f.map(y=>lx(c,y))),g(a,["audioChunks"],f)}return a}function ix(c,l){const a={},r=m(l,["text"]);r!=null&&g(a,["text"],r);const f=m(l,["filteredReason"]);return f!=null&&g(a,["filteredReason"],f),a}function ox(c,l){const a={};m(l,["setupComplete"])!=null&&g(a,["setupComplete"],W2());const f=m(l,["serverContent"]);f!=null&&g(a,["serverContent"],ax(c,f));const y=m(l,["filteredPrompt"]);return y!=null&&g(a,["filteredPrompt"],ix(c,y)),a}/**
171
395
  * @license
172
396
  * Copyright 2025 Google LLC
173
397
  * SPDX-License-Identifier: Apache-2.0
174
- */function Hy(n,e){const t={},i=s(e,["fps"]);i!=null&&a(t,["fps"],i);const r=s(e,["endOffset"]);r!=null&&a(t,["endOffset"],r);const o=s(e,["startOffset"]);return o!=null&&a(t,["startOffset"],o),t}function Wy(n,e){const t={};if(s(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const i=s(e,["data"]);i!=null&&a(t,["data"],i);const r=s(e,["mimeType"]);return r!=null&&a(t,["mimeType"],r),t}function zy(n,e){const t={};if(s(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const i=s(e,["fileUri"]);i!=null&&a(t,["fileUri"],i);const r=s(e,["mimeType"]);return r!=null&&a(t,["mimeType"],r),t}function Yy(n,e){const t={},i=s(e,["videoMetadata"]);i!=null&&a(t,["videoMetadata"],Hy(n,i));const r=s(e,["thought"]);r!=null&&a(t,["thought"],r);const o=s(e,["inlineData"]);o!=null&&a(t,["inlineData"],Wy(n,o));const l=s(e,["fileData"]);l!=null&&a(t,["fileData"],zy(n,l));const u=s(e,["thoughtSignature"]);u!=null&&a(t,["thoughtSignature"],u);const c=s(e,["codeExecutionResult"]);c!=null&&a(t,["codeExecutionResult"],c);const f=s(e,["executableCode"]);f!=null&&a(t,["executableCode"],f);const d=s(e,["functionCall"]);d!=null&&a(t,["functionCall"],d);const h=s(e,["functionResponse"]);h!=null&&a(t,["functionResponse"],h);const g=s(e,["text"]);return g!=null&&a(t,["text"],g),t}function ki(n,e){const t={},i=s(e,["parts"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(l=>Yy(n,l))),a(t,["parts"],o)}const r=s(e,["role"]);return r!=null&&a(t,["role"],r),t}function Ky(n,e){const t={},i=s(e,["anyOf"]);i!=null&&a(t,["anyOf"],i);const r=s(e,["default"]);r!=null&&a(t,["default"],r);const o=s(e,["description"]);o!=null&&a(t,["description"],o);const l=s(e,["enum"]);l!=null&&a(t,["enum"],l);const u=s(e,["example"]);u!=null&&a(t,["example"],u);const c=s(e,["format"]);c!=null&&a(t,["format"],c);const f=s(e,["items"]);f!=null&&a(t,["items"],f);const d=s(e,["maxItems"]);d!=null&&a(t,["maxItems"],d);const h=s(e,["maxLength"]);h!=null&&a(t,["maxLength"],h);const g=s(e,["maxProperties"]);g!=null&&a(t,["maxProperties"],g);const x=s(e,["maximum"]);x!=null&&a(t,["maximum"],x);const w=s(e,["minItems"]);w!=null&&a(t,["minItems"],w);const b=s(e,["minLength"]);b!=null&&a(t,["minLength"],b);const D=s(e,["minProperties"]);D!=null&&a(t,["minProperties"],D);const F=s(e,["minimum"]);F!=null&&a(t,["minimum"],F);const T=s(e,["nullable"]);T!=null&&a(t,["nullable"],T);const k=s(e,["pattern"]);k!=null&&a(t,["pattern"],k);const A=s(e,["properties"]);A!=null&&a(t,["properties"],A);const S=s(e,["propertyOrdering"]);S!=null&&a(t,["propertyOrdering"],S);const I=s(e,["required"]);I!=null&&a(t,["required"],I);const R=s(e,["title"]);R!=null&&a(t,["title"],R);const M=s(e,["type"]);return M!=null&&a(t,["type"],M),t}function Jy(n,e){const t={};if(s(e,["method"])!==void 0)throw new Error("method parameter is not supported in Gemini API.");const i=s(e,["category"]);i!=null&&a(t,["category"],i);const r=s(e,["threshold"]);return r!=null&&a(t,["threshold"],r),t}function Zy(n,e){const t={},i=s(e,["behavior"]);i!=null&&a(t,["behavior"],i);const r=s(e,["description"]);r!=null&&a(t,["description"],r);const o=s(e,["name"]);o!=null&&a(t,["name"],o);const l=s(e,["parameters"]);l!=null&&a(t,["parameters"],l);const u=s(e,["response"]);return u!=null&&a(t,["response"],u),t}function Xy(n,e){const t={},i=s(e,["startTime"]);i!=null&&a(t,["startTime"],i);const r=s(e,["endTime"]);return r!=null&&a(t,["endTime"],r),t}function Qy(n,e){const t={},i=s(e,["timeRangeFilter"]);return i!=null&&a(t,["timeRangeFilter"],Xy(n,i)),t}function jy(n,e){const t={},i=s(e,["mode"]);i!=null&&a(t,["mode"],i);const r=s(e,["dynamicThreshold"]);return r!=null&&a(t,["dynamicThreshold"],r),t}function ev(n,e){const t={},i=s(e,["dynamicRetrievalConfig"]);return i!=null&&a(t,["dynamicRetrievalConfig"],jy(n,i)),t}function tv(){return{}}function nv(n,e){const t={},i=s(e,["functionDeclarations"]);if(i!=null){let c=i;Array.isArray(c)&&(c=c.map(f=>Zy(n,f))),a(t,["functionDeclarations"],c)}if(s(e,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const r=s(e,["googleSearch"]);r!=null&&a(t,["googleSearch"],Qy(n,r));const o=s(e,["googleSearchRetrieval"]);if(o!=null&&a(t,["googleSearchRetrieval"],ev(n,o)),s(e,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");if(s(e,["googleMaps"])!==void 0)throw new Error("googleMaps parameter is not supported in Gemini API.");s(e,["urlContext"])!=null&&a(t,["urlContext"],tv());const u=s(e,["codeExecution"]);return u!=null&&a(t,["codeExecution"],u),t}function iv(n,e){const t={},i=s(e,["mode"]);i!=null&&a(t,["mode"],i);const r=s(e,["allowedFunctionNames"]);return r!=null&&a(t,["allowedFunctionNames"],r),t}function rv(n,e){const t={},i=s(e,["latitude"]);i!=null&&a(t,["latitude"],i);const r=s(e,["longitude"]);return r!=null&&a(t,["longitude"],r),t}function ov(n,e){const t={},i=s(e,["latLng"]);i!=null&&a(t,["latLng"],rv(n,i));const r=s(e,["languageCode"]);return r!=null&&a(t,["languageCode"],r),t}function sv(n,e){const t={},i=s(e,["functionCallingConfig"]);i!=null&&a(t,["functionCallingConfig"],iv(n,i));const r=s(e,["retrievalConfig"]);return r!=null&&a(t,["retrievalConfig"],ov(n,r)),t}function av(n,e){const t={},i=s(e,["voiceName"]);return i!=null&&a(t,["voiceName"],i),t}function ol(n,e){const t={},i=s(e,["prebuiltVoiceConfig"]);return i!=null&&a(t,["prebuiltVoiceConfig"],av(n,i)),t}function lv(n,e){const t={},i=s(e,["speaker"]);i!=null&&a(t,["speaker"],i);const r=s(e,["voiceConfig"]);return r!=null&&a(t,["voiceConfig"],ol(n,r)),t}function uv(n,e){const t={},i=s(e,["speakerVoiceConfigs"]);if(i!=null){let r=i;Array.isArray(r)&&(r=r.map(o=>lv(n,o))),a(t,["speakerVoiceConfigs"],r)}return t}function cv(n,e){const t={},i=s(e,["voiceConfig"]);i!=null&&a(t,["voiceConfig"],ol(n,i));const r=s(e,["multiSpeakerVoiceConfig"]);r!=null&&a(t,["multiSpeakerVoiceConfig"],uv(n,r));const o=s(e,["languageCode"]);return o!=null&&a(t,["languageCode"],o),t}function fv(n,e){const t={},i=s(e,["includeThoughts"]);i!=null&&a(t,["includeThoughts"],i);const r=s(e,["thinkingBudget"]);return r!=null&&a(t,["thinkingBudget"],r),t}function dv(n,e,t){const i={},r=s(e,["systemInstruction"]);t!==void 0&&r!=null&&a(t,["systemInstruction"],ki(n,Le(n,r)));const o=s(e,["temperature"]);o!=null&&a(i,["temperature"],o);const l=s(e,["topP"]);l!=null&&a(i,["topP"],l);const u=s(e,["topK"]);u!=null&&a(i,["topK"],u);const c=s(e,["candidateCount"]);c!=null&&a(i,["candidateCount"],c);const f=s(e,["maxOutputTokens"]);f!=null&&a(i,["maxOutputTokens"],f);const d=s(e,["stopSequences"]);d!=null&&a(i,["stopSequences"],d);const h=s(e,["responseLogprobs"]);h!=null&&a(i,["responseLogprobs"],h);const g=s(e,["logprobs"]);g!=null&&a(i,["logprobs"],g);const x=s(e,["presencePenalty"]);x!=null&&a(i,["presencePenalty"],x);const w=s(e,["frequencyPenalty"]);w!=null&&a(i,["frequencyPenalty"],w);const b=s(e,["seed"]);b!=null&&a(i,["seed"],b);const D=s(e,["responseMimeType"]);D!=null&&a(i,["responseMimeType"],D);const F=s(e,["responseSchema"]);if(F!=null&&a(i,["responseSchema"],Ky(n,Si(n,F))),s(e,["routingConfig"])!==void 0)throw new Error("routingConfig parameter is not supported in Gemini API.");if(s(e,["modelSelectionConfig"])!==void 0)throw new Error("modelSelectionConfig parameter is not supported in Gemini API.");const T=s(e,["safetySettings"]);if(t!==void 0&&T!=null){let P=T;Array.isArray(P)&&(P=P.map(O=>Jy(n,O))),a(t,["safetySettings"],P)}const k=s(e,["tools"]);if(t!==void 0&&k!=null){let P=On(n,k);Array.isArray(P)&&(P=P.map(O=>nv(n,Bn(n,O)))),a(t,["tools"],P)}const A=s(e,["toolConfig"]);if(t!==void 0&&A!=null&&a(t,["toolConfig"],sv(n,A)),s(e,["labels"])!==void 0)throw new Error("labels parameter is not supported in Gemini API.");const S=s(e,["cachedContent"]);t!==void 0&&S!=null&&a(t,["cachedContent"],Rt(n,S));const I=s(e,["responseModalities"]);I!=null&&a(i,["responseModalities"],I);const R=s(e,["mediaResolution"]);R!=null&&a(i,["mediaResolution"],R);const M=s(e,["speechConfig"]);if(M!=null&&a(i,["speechConfig"],cv(n,Ua(n,M))),s(e,["audioTimestamp"])!==void 0)throw new Error("audioTimestamp parameter is not supported in Gemini API.");const C=s(e,["thinkingConfig"]);return C!=null&&a(i,["thinkingConfig"],fv(n,C)),i}function sl(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","model"],pe(n,i));const r=s(e,["contents"]);if(r!=null){let l=Xe(n,r);Array.isArray(l)&&(l=l.map(u=>ki(n,u))),a(t,["contents"],l)}const o=s(e,["config"]);return o!=null&&a(t,["generationConfig"],dv(n,o,t)),t}function pv(n,e,t){const i={},r=s(e,["taskType"]);t!==void 0&&r!=null&&a(t,["requests[]","taskType"],r);const o=s(e,["title"]);t!==void 0&&o!=null&&a(t,["requests[]","title"],o);const l=s(e,["outputDimensionality"]);if(t!==void 0&&l!=null&&a(t,["requests[]","outputDimensionality"],l),s(e,["mimeType"])!==void 0)throw new Error("mimeType parameter is not supported in Gemini API.");if(s(e,["autoTruncate"])!==void 0)throw new Error("autoTruncate parameter is not supported in Gemini API.");return i}function hv(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","model"],pe(n,i));const r=s(e,["contents"]);r!=null&&a(t,["requests[]","content"],Ba(n,r));const o=s(e,["config"]);o!=null&&a(t,["config"],pv(n,o,t));const l=s(e,["model"]);return l!==void 0&&a(t,["requests[]","model"],pe(n,l)),t}function mv(n,e,t){const i={};if(s(e,["outputGcsUri"])!==void 0)throw new Error("outputGcsUri parameter is not supported in Gemini API.");if(s(e,["negativePrompt"])!==void 0)throw new Error("negativePrompt parameter is not supported in Gemini API.");const r=s(e,["numberOfImages"]);t!==void 0&&r!=null&&a(t,["parameters","sampleCount"],r);const o=s(e,["aspectRatio"]);t!==void 0&&o!=null&&a(t,["parameters","aspectRatio"],o);const l=s(e,["guidanceScale"]);if(t!==void 0&&l!=null&&a(t,["parameters","guidanceScale"],l),s(e,["seed"])!==void 0)throw new Error("seed parameter is not supported in Gemini API.");const u=s(e,["safetyFilterLevel"]);t!==void 0&&u!=null&&a(t,["parameters","safetySetting"],u);const c=s(e,["personGeneration"]);t!==void 0&&c!=null&&a(t,["parameters","personGeneration"],c);const f=s(e,["includeSafetyAttributes"]);t!==void 0&&f!=null&&a(t,["parameters","includeSafetyAttributes"],f);const d=s(e,["includeRaiReason"]);t!==void 0&&d!=null&&a(t,["parameters","includeRaiReason"],d);const h=s(e,["language"]);t!==void 0&&h!=null&&a(t,["parameters","language"],h);const g=s(e,["outputMimeType"]);t!==void 0&&g!=null&&a(t,["parameters","outputOptions","mimeType"],g);const x=s(e,["outputCompressionQuality"]);if(t!==void 0&&x!=null&&a(t,["parameters","outputOptions","compressionQuality"],x),s(e,["addWatermark"])!==void 0)throw new Error("addWatermark parameter is not supported in Gemini API.");if(s(e,["enhancePrompt"])!==void 0)throw new Error("enhancePrompt parameter is not supported in Gemini API.");return i}function gv(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","model"],pe(n,i));const r=s(e,["prompt"]);r!=null&&a(t,["instances[0]","prompt"],r);const o=s(e,["config"]);return o!=null&&a(t,["config"],mv(n,o,t)),t}function yv(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","name"],pe(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],r),t}function vv(n,e,t){const i={},r=s(e,["pageSize"]);t!==void 0&&r!=null&&a(t,["_query","pageSize"],r);const o=s(e,["pageToken"]);t!==void 0&&o!=null&&a(t,["_query","pageToken"],o);const l=s(e,["filter"]);t!==void 0&&l!=null&&a(t,["_query","filter"],l);const u=s(e,["queryBase"]);return t!==void 0&&u!=null&&a(t,["_url","models_url"],qa(n,u)),i}function _v(n,e){const t={},i=s(e,["config"]);return i!=null&&a(t,["config"],vv(n,i,t)),t}function xv(n,e,t){const i={},r=s(e,["displayName"]);t!==void 0&&r!=null&&a(t,["displayName"],r);const o=s(e,["description"]);t!==void 0&&o!=null&&a(t,["description"],o);const l=s(e,["defaultCheckpointId"]);return t!==void 0&&l!=null&&a(t,["defaultCheckpointId"],l),i}function Cv(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","name"],pe(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],xv(n,r,t)),t}function Ev(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","name"],pe(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],r),t}function Tv(n,e){const t={};if(s(e,["systemInstruction"])!==void 0)throw new Error("systemInstruction parameter is not supported in Gemini API.");if(s(e,["tools"])!==void 0)throw new Error("tools parameter is not supported in Gemini API.");if(s(e,["generationConfig"])!==void 0)throw new Error("generationConfig parameter is not supported in Gemini API.");return t}function wv(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","model"],pe(n,i));const r=s(e,["contents"]);if(r!=null){let l=Xe(n,r);Array.isArray(l)&&(l=l.map(u=>ki(n,u))),a(t,["contents"],l)}const o=s(e,["config"]);return o!=null&&a(t,["config"],Tv(n,o)),t}function Sv(n,e){const t={};if(s(e,["gcsUri"])!==void 0)throw new Error("gcsUri parameter is not supported in Gemini API.");const i=s(e,["imageBytes"]);i!=null&&a(t,["bytesBase64Encoded"],Mt(n,i));const r=s(e,["mimeType"]);return r!=null&&a(t,["mimeType"],r),t}function Av(n,e,t){const i={},r=s(e,["numberOfVideos"]);if(t!==void 0&&r!=null&&a(t,["parameters","sampleCount"],r),s(e,["outputGcsUri"])!==void 0)throw new Error("outputGcsUri parameter is not supported in Gemini API.");if(s(e,["fps"])!==void 0)throw new Error("fps parameter is not supported in Gemini API.");const o=s(e,["durationSeconds"]);if(t!==void 0&&o!=null&&a(t,["parameters","durationSeconds"],o),s(e,["seed"])!==void 0)throw new Error("seed parameter is not supported in Gemini API.");const l=s(e,["aspectRatio"]);if(t!==void 0&&l!=null&&a(t,["parameters","aspectRatio"],l),s(e,["resolution"])!==void 0)throw new Error("resolution parameter is not supported in Gemini API.");const u=s(e,["personGeneration"]);if(t!==void 0&&u!=null&&a(t,["parameters","personGeneration"],u),s(e,["pubsubTopic"])!==void 0)throw new Error("pubsubTopic parameter is not supported in Gemini API.");const c=s(e,["negativePrompt"]);if(t!==void 0&&c!=null&&a(t,["parameters","negativePrompt"],c),s(e,["enhancePrompt"])!==void 0)throw new Error("enhancePrompt parameter is not supported in Gemini API.");if(s(e,["generateAudio"])!==void 0)throw new Error("generateAudio parameter is not supported in Gemini API.");return i}function bv(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","model"],pe(n,i));const r=s(e,["prompt"]);r!=null&&a(t,["instances[0]","prompt"],r);const o=s(e,["image"]);o!=null&&a(t,["instances[0]","image"],Sv(n,o));const l=s(e,["config"]);return l!=null&&a(t,["config"],Av(n,l,t)),t}function Rv(n,e){const t={},i=s(e,["fps"]);i!=null&&a(t,["fps"],i);const r=s(e,["endOffset"]);r!=null&&a(t,["endOffset"],r);const o=s(e,["startOffset"]);return o!=null&&a(t,["startOffset"],o),t}function Mv(n,e){const t={},i=s(e,["displayName"]);i!=null&&a(t,["displayName"],i);const r=s(e,["data"]);r!=null&&a(t,["data"],r);const o=s(e,["mimeType"]);return o!=null&&a(t,["mimeType"],o),t}function Iv(n,e){const t={},i=s(e,["displayName"]);i!=null&&a(t,["displayName"],i);const r=s(e,["fileUri"]);r!=null&&a(t,["fileUri"],r);const o=s(e,["mimeType"]);return o!=null&&a(t,["mimeType"],o),t}function Pv(n,e){const t={},i=s(e,["videoMetadata"]);i!=null&&a(t,["videoMetadata"],Rv(n,i));const r=s(e,["thought"]);r!=null&&a(t,["thought"],r);const o=s(e,["inlineData"]);o!=null&&a(t,["inlineData"],Mv(n,o));const l=s(e,["fileData"]);l!=null&&a(t,["fileData"],Iv(n,l));const u=s(e,["thoughtSignature"]);u!=null&&a(t,["thoughtSignature"],u);const c=s(e,["codeExecutionResult"]);c!=null&&a(t,["codeExecutionResult"],c);const f=s(e,["executableCode"]);f!=null&&a(t,["executableCode"],f);const d=s(e,["functionCall"]);d!=null&&a(t,["functionCall"],d);const h=s(e,["functionResponse"]);h!=null&&a(t,["functionResponse"],h);const g=s(e,["text"]);return g!=null&&a(t,["text"],g),t}function gn(n,e){const t={},i=s(e,["parts"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(l=>Pv(n,l))),a(t,["parts"],o)}const r=s(e,["role"]);return r!=null&&a(t,["role"],r),t}function kv(n,e){const t={},i=s(e,["anyOf"]);i!=null&&a(t,["anyOf"],i);const r=s(e,["default"]);r!=null&&a(t,["default"],r);const o=s(e,["description"]);o!=null&&a(t,["description"],o);const l=s(e,["enum"]);l!=null&&a(t,["enum"],l);const u=s(e,["example"]);u!=null&&a(t,["example"],u);const c=s(e,["format"]);c!=null&&a(t,["format"],c);const f=s(e,["items"]);f!=null&&a(t,["items"],f);const d=s(e,["maxItems"]);d!=null&&a(t,["maxItems"],d);const h=s(e,["maxLength"]);h!=null&&a(t,["maxLength"],h);const g=s(e,["maxProperties"]);g!=null&&a(t,["maxProperties"],g);const x=s(e,["maximum"]);x!=null&&a(t,["maximum"],x);const w=s(e,["minItems"]);w!=null&&a(t,["minItems"],w);const b=s(e,["minLength"]);b!=null&&a(t,["minLength"],b);const D=s(e,["minProperties"]);D!=null&&a(t,["minProperties"],D);const F=s(e,["minimum"]);F!=null&&a(t,["minimum"],F);const T=s(e,["nullable"]);T!=null&&a(t,["nullable"],T);const k=s(e,["pattern"]);k!=null&&a(t,["pattern"],k);const A=s(e,["properties"]);A!=null&&a(t,["properties"],A);const S=s(e,["propertyOrdering"]);S!=null&&a(t,["propertyOrdering"],S);const I=s(e,["required"]);I!=null&&a(t,["required"],I);const R=s(e,["title"]);R!=null&&a(t,["title"],R);const M=s(e,["type"]);return M!=null&&a(t,["type"],M),t}function Nv(n,e){const t={},i=s(e,["featureSelectionPreference"]);return i!=null&&a(t,["featureSelectionPreference"],i),t}function Dv(n,e){const t={},i=s(e,["method"]);i!=null&&a(t,["method"],i);const r=s(e,["category"]);r!=null&&a(t,["category"],r);const o=s(e,["threshold"]);return o!=null&&a(t,["threshold"],o),t}function Lv(n,e){const t={};if(s(e,["behavior"])!==void 0)throw new Error("behavior parameter is not supported in Vertex AI.");const i=s(e,["description"]);i!=null&&a(t,["description"],i);const r=s(e,["name"]);r!=null&&a(t,["name"],r);const o=s(e,["parameters"]);o!=null&&a(t,["parameters"],o);const l=s(e,["response"]);return l!=null&&a(t,["response"],l),t}function Fv(n,e){const t={},i=s(e,["startTime"]);i!=null&&a(t,["startTime"],i);const r=s(e,["endTime"]);return r!=null&&a(t,["endTime"],r),t}function Vv(n,e){const t={},i=s(e,["timeRangeFilter"]);return i!=null&&a(t,["timeRangeFilter"],Fv(n,i)),t}function Bv(n,e){const t={},i=s(e,["mode"]);i!=null&&a(t,["mode"],i);const r=s(e,["dynamicThreshold"]);return r!=null&&a(t,["dynamicThreshold"],r),t}function Ov(n,e){const t={},i=s(e,["dynamicRetrievalConfig"]);return i!=null&&a(t,["dynamicRetrievalConfig"],Bv(n,i)),t}function Uv(){return{}}function $v(n,e){const t={},i=s(e,["apiKeyString"]);return i!=null&&a(t,["apiKeyString"],i),t}function Gv(n,e){const t={},i=s(e,["apiKeyConfig"]);i!=null&&a(t,["apiKeyConfig"],$v(n,i));const r=s(e,["authType"]);r!=null&&a(t,["authType"],r);const o=s(e,["googleServiceAccountConfig"]);o!=null&&a(t,["googleServiceAccountConfig"],o);const l=s(e,["httpBasicAuthConfig"]);l!=null&&a(t,["httpBasicAuthConfig"],l);const u=s(e,["oauthConfig"]);u!=null&&a(t,["oauthConfig"],u);const c=s(e,["oidcConfig"]);return c!=null&&a(t,["oidcConfig"],c),t}function qv(n,e){const t={},i=s(e,["authConfig"]);return i!=null&&a(t,["authConfig"],Gv(n,i)),t}function al(n,e){const t={},i=s(e,["functionDeclarations"]);if(i!=null){let d=i;Array.isArray(d)&&(d=d.map(h=>Lv(n,h))),a(t,["functionDeclarations"],d)}const r=s(e,["retrieval"]);r!=null&&a(t,["retrieval"],r);const o=s(e,["googleSearch"]);o!=null&&a(t,["googleSearch"],Vv(n,o));const l=s(e,["googleSearchRetrieval"]);l!=null&&a(t,["googleSearchRetrieval"],Ov(n,l)),s(e,["enterpriseWebSearch"])!=null&&a(t,["enterpriseWebSearch"],Uv());const c=s(e,["googleMaps"]);if(c!=null&&a(t,["googleMaps"],qv(n,c)),s(e,["urlContext"])!==void 0)throw new Error("urlContext parameter is not supported in Vertex AI.");const f=s(e,["codeExecution"]);return f!=null&&a(t,["codeExecution"],f),t}function Hv(n,e){const t={},i=s(e,["mode"]);i!=null&&a(t,["mode"],i);const r=s(e,["allowedFunctionNames"]);return r!=null&&a(t,["allowedFunctionNames"],r),t}function Wv(n,e){const t={},i=s(e,["latitude"]);i!=null&&a(t,["latitude"],i);const r=s(e,["longitude"]);return r!=null&&a(t,["longitude"],r),t}function zv(n,e){const t={},i=s(e,["latLng"]);i!=null&&a(t,["latLng"],Wv(n,i));const r=s(e,["languageCode"]);return r!=null&&a(t,["languageCode"],r),t}function Yv(n,e){const t={},i=s(e,["functionCallingConfig"]);i!=null&&a(t,["functionCallingConfig"],Hv(n,i));const r=s(e,["retrievalConfig"]);return r!=null&&a(t,["retrievalConfig"],zv(n,r)),t}function Kv(n,e){const t={},i=s(e,["voiceName"]);return i!=null&&a(t,["voiceName"],i),t}function Jv(n,e){const t={},i=s(e,["prebuiltVoiceConfig"]);return i!=null&&a(t,["prebuiltVoiceConfig"],Kv(n,i)),t}function Zv(n,e){const t={},i=s(e,["voiceConfig"]);if(i!=null&&a(t,["voiceConfig"],Jv(n,i)),s(e,["multiSpeakerVoiceConfig"])!==void 0)throw new Error("multiSpeakerVoiceConfig parameter is not supported in Vertex AI.");const r=s(e,["languageCode"]);return r!=null&&a(t,["languageCode"],r),t}function Xv(n,e){const t={},i=s(e,["includeThoughts"]);i!=null&&a(t,["includeThoughts"],i);const r=s(e,["thinkingBudget"]);return r!=null&&a(t,["thinkingBudget"],r),t}function Qv(n,e,t){const i={},r=s(e,["systemInstruction"]);t!==void 0&&r!=null&&a(t,["systemInstruction"],gn(n,Le(n,r)));const o=s(e,["temperature"]);o!=null&&a(i,["temperature"],o);const l=s(e,["topP"]);l!=null&&a(i,["topP"],l);const u=s(e,["topK"]);u!=null&&a(i,["topK"],u);const c=s(e,["candidateCount"]);c!=null&&a(i,["candidateCount"],c);const f=s(e,["maxOutputTokens"]);f!=null&&a(i,["maxOutputTokens"],f);const d=s(e,["stopSequences"]);d!=null&&a(i,["stopSequences"],d);const h=s(e,["responseLogprobs"]);h!=null&&a(i,["responseLogprobs"],h);const g=s(e,["logprobs"]);g!=null&&a(i,["logprobs"],g);const x=s(e,["presencePenalty"]);x!=null&&a(i,["presencePenalty"],x);const w=s(e,["frequencyPenalty"]);w!=null&&a(i,["frequencyPenalty"],w);const b=s(e,["seed"]);b!=null&&a(i,["seed"],b);const D=s(e,["responseMimeType"]);D!=null&&a(i,["responseMimeType"],D);const F=s(e,["responseSchema"]);F!=null&&a(i,["responseSchema"],kv(n,Si(n,F)));const T=s(e,["routingConfig"]);T!=null&&a(i,["routingConfig"],T);const k=s(e,["modelSelectionConfig"]);k!=null&&a(i,["modelConfig"],Nv(n,k));const A=s(e,["safetySettings"]);if(t!==void 0&&A!=null){let te=A;Array.isArray(te)&&(te=te.map(Fe=>Dv(n,Fe))),a(t,["safetySettings"],te)}const S=s(e,["tools"]);if(t!==void 0&&S!=null){let te=On(n,S);Array.isArray(te)&&(te=te.map(Fe=>al(n,Bn(n,Fe)))),a(t,["tools"],te)}const I=s(e,["toolConfig"]);t!==void 0&&I!=null&&a(t,["toolConfig"],Yv(n,I));const R=s(e,["labels"]);t!==void 0&&R!=null&&a(t,["labels"],R);const M=s(e,["cachedContent"]);t!==void 0&&M!=null&&a(t,["cachedContent"],Rt(n,M));const C=s(e,["responseModalities"]);C!=null&&a(i,["responseModalities"],C);const P=s(e,["mediaResolution"]);P!=null&&a(i,["mediaResolution"],P);const O=s(e,["speechConfig"]);O!=null&&a(i,["speechConfig"],Zv(n,Ua(n,O)));const U=s(e,["audioTimestamp"]);U!=null&&a(i,["audioTimestamp"],U);const $=s(e,["thinkingConfig"]);return $!=null&&a(i,["thinkingConfig"],Xv(n,$)),i}function ll(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","model"],pe(n,i));const r=s(e,["contents"]);if(r!=null){let l=Xe(n,r);Array.isArray(l)&&(l=l.map(u=>gn(n,u))),a(t,["contents"],l)}const o=s(e,["config"]);return o!=null&&a(t,["generationConfig"],Qv(n,o,t)),t}function jv(n,e,t){const i={},r=s(e,["taskType"]);t!==void 0&&r!=null&&a(t,["instances[]","task_type"],r);const o=s(e,["title"]);t!==void 0&&o!=null&&a(t,["instances[]","title"],o);const l=s(e,["outputDimensionality"]);t!==void 0&&l!=null&&a(t,["parameters","outputDimensionality"],l);const u=s(e,["mimeType"]);t!==void 0&&u!=null&&a(t,["instances[]","mimeType"],u);const c=s(e,["autoTruncate"]);return t!==void 0&&c!=null&&a(t,["parameters","autoTruncate"],c),i}function e0(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","model"],pe(n,i));const r=s(e,["contents"]);r!=null&&a(t,["instances[]","content"],Ba(n,r));const o=s(e,["config"]);return o!=null&&a(t,["config"],jv(n,o,t)),t}function t0(n,e,t){const i={},r=s(e,["outputGcsUri"]);t!==void 0&&r!=null&&a(t,["parameters","storageUri"],r);const o=s(e,["negativePrompt"]);t!==void 0&&o!=null&&a(t,["parameters","negativePrompt"],o);const l=s(e,["numberOfImages"]);t!==void 0&&l!=null&&a(t,["parameters","sampleCount"],l);const u=s(e,["aspectRatio"]);t!==void 0&&u!=null&&a(t,["parameters","aspectRatio"],u);const c=s(e,["guidanceScale"]);t!==void 0&&c!=null&&a(t,["parameters","guidanceScale"],c);const f=s(e,["seed"]);t!==void 0&&f!=null&&a(t,["parameters","seed"],f);const d=s(e,["safetyFilterLevel"]);t!==void 0&&d!=null&&a(t,["parameters","safetySetting"],d);const h=s(e,["personGeneration"]);t!==void 0&&h!=null&&a(t,["parameters","personGeneration"],h);const g=s(e,["includeSafetyAttributes"]);t!==void 0&&g!=null&&a(t,["parameters","includeSafetyAttributes"],g);const x=s(e,["includeRaiReason"]);t!==void 0&&x!=null&&a(t,["parameters","includeRaiReason"],x);const w=s(e,["language"]);t!==void 0&&w!=null&&a(t,["parameters","language"],w);const b=s(e,["outputMimeType"]);t!==void 0&&b!=null&&a(t,["parameters","outputOptions","mimeType"],b);const D=s(e,["outputCompressionQuality"]);t!==void 0&&D!=null&&a(t,["parameters","outputOptions","compressionQuality"],D);const F=s(e,["addWatermark"]);t!==void 0&&F!=null&&a(t,["parameters","addWatermark"],F);const T=s(e,["enhancePrompt"]);return t!==void 0&&T!=null&&a(t,["parameters","enhancePrompt"],T),i}function n0(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","model"],pe(n,i));const r=s(e,["prompt"]);r!=null&&a(t,["instances[0]","prompt"],r);const o=s(e,["config"]);return o!=null&&a(t,["config"],t0(n,o,t)),t}function Pr(n,e){const t={},i=s(e,["gcsUri"]);i!=null&&a(t,["gcsUri"],i);const r=s(e,["imageBytes"]);r!=null&&a(t,["bytesBase64Encoded"],Mt(n,r));const o=s(e,["mimeType"]);return o!=null&&a(t,["mimeType"],o),t}function i0(n,e){const t={},i=s(e,["maskMode"]);i!=null&&a(t,["maskMode"],i);const r=s(e,["segmentationClasses"]);r!=null&&a(t,["maskClasses"],r);const o=s(e,["maskDilation"]);return o!=null&&a(t,["dilation"],o),t}function r0(n,e){const t={},i=s(e,["controlType"]);i!=null&&a(t,["controlType"],i);const r=s(e,["enableControlImageComputation"]);return r!=null&&a(t,["computeControl"],r),t}function o0(n,e){const t={},i=s(e,["styleDescription"]);return i!=null&&a(t,["styleDescription"],i),t}function s0(n,e){const t={},i=s(e,["subjectType"]);i!=null&&a(t,["subjectType"],i);const r=s(e,["subjectDescription"]);return r!=null&&a(t,["subjectDescription"],r),t}function a0(n,e){const t={},i=s(e,["referenceImage"]);i!=null&&a(t,["referenceImage"],Pr(n,i));const r=s(e,["referenceId"]);r!=null&&a(t,["referenceId"],r);const o=s(e,["referenceType"]);o!=null&&a(t,["referenceType"],o);const l=s(e,["maskImageConfig"]);l!=null&&a(t,["maskImageConfig"],i0(n,l));const u=s(e,["controlImageConfig"]);u!=null&&a(t,["controlImageConfig"],r0(n,u));const c=s(e,["styleImageConfig"]);c!=null&&a(t,["styleImageConfig"],o0(n,c));const f=s(e,["subjectImageConfig"]);return f!=null&&a(t,["subjectImageConfig"],s0(n,f)),t}function l0(n,e,t){const i={},r=s(e,["outputGcsUri"]);t!==void 0&&r!=null&&a(t,["parameters","storageUri"],r);const o=s(e,["negativePrompt"]);t!==void 0&&o!=null&&a(t,["parameters","negativePrompt"],o);const l=s(e,["numberOfImages"]);t!==void 0&&l!=null&&a(t,["parameters","sampleCount"],l);const u=s(e,["aspectRatio"]);t!==void 0&&u!=null&&a(t,["parameters","aspectRatio"],u);const c=s(e,["guidanceScale"]);t!==void 0&&c!=null&&a(t,["parameters","guidanceScale"],c);const f=s(e,["seed"]);t!==void 0&&f!=null&&a(t,["parameters","seed"],f);const d=s(e,["safetyFilterLevel"]);t!==void 0&&d!=null&&a(t,["parameters","safetySetting"],d);const h=s(e,["personGeneration"]);t!==void 0&&h!=null&&a(t,["parameters","personGeneration"],h);const g=s(e,["includeSafetyAttributes"]);t!==void 0&&g!=null&&a(t,["parameters","includeSafetyAttributes"],g);const x=s(e,["includeRaiReason"]);t!==void 0&&x!=null&&a(t,["parameters","includeRaiReason"],x);const w=s(e,["language"]);t!==void 0&&w!=null&&a(t,["parameters","language"],w);const b=s(e,["outputMimeType"]);t!==void 0&&b!=null&&a(t,["parameters","outputOptions","mimeType"],b);const D=s(e,["outputCompressionQuality"]);t!==void 0&&D!=null&&a(t,["parameters","outputOptions","compressionQuality"],D);const F=s(e,["editMode"]);t!==void 0&&F!=null&&a(t,["parameters","editMode"],F);const T=s(e,["baseSteps"]);return t!==void 0&&T!=null&&a(t,["parameters","editConfig","baseSteps"],T),i}function u0(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","model"],pe(n,i));const r=s(e,["prompt"]);r!=null&&a(t,["instances[0]","prompt"],r);const o=s(e,["referenceImages"]);if(o!=null){let u=o;Array.isArray(u)&&(u=u.map(c=>a0(n,c))),a(t,["instances[0]","referenceImages"],u)}const l=s(e,["config"]);return l!=null&&a(t,["config"],l0(n,l,t)),t}function c0(n,e,t){const i={},r=s(e,["includeRaiReason"]);t!==void 0&&r!=null&&a(t,["parameters","includeRaiReason"],r);const o=s(e,["outputMimeType"]);t!==void 0&&o!=null&&a(t,["parameters","outputOptions","mimeType"],o);const l=s(e,["outputCompressionQuality"]);t!==void 0&&l!=null&&a(t,["parameters","outputOptions","compressionQuality"],l);const u=s(e,["numberOfImages"]);t!==void 0&&u!=null&&a(t,["parameters","sampleCount"],u);const c=s(e,["mode"]);return t!==void 0&&c!=null&&a(t,["parameters","mode"],c),i}function f0(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","model"],pe(n,i));const r=s(e,["image"]);r!=null&&a(t,["instances[0]","image"],Pr(n,r));const o=s(e,["upscaleFactor"]);o!=null&&a(t,["parameters","upscaleConfig","upscaleFactor"],o);const l=s(e,["config"]);return l!=null&&a(t,["config"],c0(n,l,t)),t}function d0(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","name"],pe(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],r),t}function p0(n,e,t){const i={},r=s(e,["pageSize"]);t!==void 0&&r!=null&&a(t,["_query","pageSize"],r);const o=s(e,["pageToken"]);t!==void 0&&o!=null&&a(t,["_query","pageToken"],o);const l=s(e,["filter"]);t!==void 0&&l!=null&&a(t,["_query","filter"],l);const u=s(e,["queryBase"]);return t!==void 0&&u!=null&&a(t,["_url","models_url"],qa(n,u)),i}function h0(n,e){const t={},i=s(e,["config"]);return i!=null&&a(t,["config"],p0(n,i,t)),t}function m0(n,e,t){const i={},r=s(e,["displayName"]);t!==void 0&&r!=null&&a(t,["displayName"],r);const o=s(e,["description"]);t!==void 0&&o!=null&&a(t,["description"],o);const l=s(e,["defaultCheckpointId"]);return t!==void 0&&l!=null&&a(t,["defaultCheckpointId"],l),i}function g0(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","model"],pe(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],m0(n,r,t)),t}function y0(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","name"],pe(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],r),t}function v0(n,e,t){const i={},r=s(e,["systemInstruction"]);t!==void 0&&r!=null&&a(t,["systemInstruction"],gn(n,Le(n,r)));const o=s(e,["tools"]);if(t!==void 0&&o!=null){let u=o;Array.isArray(u)&&(u=u.map(c=>al(n,c))),a(t,["tools"],u)}const l=s(e,["generationConfig"]);return t!==void 0&&l!=null&&a(t,["generationConfig"],l),i}function _0(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","model"],pe(n,i));const r=s(e,["contents"]);if(r!=null){let l=Xe(n,r);Array.isArray(l)&&(l=l.map(u=>gn(n,u))),a(t,["contents"],l)}const o=s(e,["config"]);return o!=null&&a(t,["config"],v0(n,o,t)),t}function x0(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","model"],pe(n,i));const r=s(e,["contents"]);if(r!=null){let l=Xe(n,r);Array.isArray(l)&&(l=l.map(u=>gn(n,u))),a(t,["contents"],l)}const o=s(e,["config"]);return o!=null&&a(t,["config"],o),t}function C0(n,e,t){const i={},r=s(e,["numberOfVideos"]);t!==void 0&&r!=null&&a(t,["parameters","sampleCount"],r);const o=s(e,["outputGcsUri"]);t!==void 0&&o!=null&&a(t,["parameters","storageUri"],o);const l=s(e,["fps"]);t!==void 0&&l!=null&&a(t,["parameters","fps"],l);const u=s(e,["durationSeconds"]);t!==void 0&&u!=null&&a(t,["parameters","durationSeconds"],u);const c=s(e,["seed"]);t!==void 0&&c!=null&&a(t,["parameters","seed"],c);const f=s(e,["aspectRatio"]);t!==void 0&&f!=null&&a(t,["parameters","aspectRatio"],f);const d=s(e,["resolution"]);t!==void 0&&d!=null&&a(t,["parameters","resolution"],d);const h=s(e,["personGeneration"]);t!==void 0&&h!=null&&a(t,["parameters","personGeneration"],h);const g=s(e,["pubsubTopic"]);t!==void 0&&g!=null&&a(t,["parameters","pubsubTopic"],g);const x=s(e,["negativePrompt"]);t!==void 0&&x!=null&&a(t,["parameters","negativePrompt"],x);const w=s(e,["enhancePrompt"]);t!==void 0&&w!=null&&a(t,["parameters","enhancePrompt"],w);const b=s(e,["generateAudio"]);return t!==void 0&&b!=null&&a(t,["parameters","generateAudio"],b),i}function E0(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["_url","model"],pe(n,i));const r=s(e,["prompt"]);r!=null&&a(t,["instances[0]","prompt"],r);const o=s(e,["image"]);o!=null&&a(t,["instances[0]","image"],Pr(n,o));const l=s(e,["config"]);return l!=null&&a(t,["config"],C0(n,l,t)),t}function T0(n,e){const t={},i=s(e,["fps"]);i!=null&&a(t,["fps"],i);const r=s(e,["endOffset"]);r!=null&&a(t,["endOffset"],r);const o=s(e,["startOffset"]);return o!=null&&a(t,["startOffset"],o),t}function w0(n,e){const t={},i=s(e,["data"]);i!=null&&a(t,["data"],i);const r=s(e,["mimeType"]);return r!=null&&a(t,["mimeType"],r),t}function S0(n,e){const t={},i=s(e,["fileUri"]);i!=null&&a(t,["fileUri"],i);const r=s(e,["mimeType"]);return r!=null&&a(t,["mimeType"],r),t}function A0(n,e){const t={},i=s(e,["videoMetadata"]);i!=null&&a(t,["videoMetadata"],T0(n,i));const r=s(e,["thought"]);r!=null&&a(t,["thought"],r);const o=s(e,["inlineData"]);o!=null&&a(t,["inlineData"],w0(n,o));const l=s(e,["fileData"]);l!=null&&a(t,["fileData"],S0(n,l));const u=s(e,["thoughtSignature"]);u!=null&&a(t,["thoughtSignature"],u);const c=s(e,["codeExecutionResult"]);c!=null&&a(t,["codeExecutionResult"],c);const f=s(e,["executableCode"]);f!=null&&a(t,["executableCode"],f);const d=s(e,["functionCall"]);d!=null&&a(t,["functionCall"],d);const h=s(e,["functionResponse"]);h!=null&&a(t,["functionResponse"],h);const g=s(e,["text"]);return g!=null&&a(t,["text"],g),t}function b0(n,e){const t={},i=s(e,["parts"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(l=>A0(n,l))),a(t,["parts"],o)}const r=s(e,["role"]);return r!=null&&a(t,["role"],r),t}function R0(n,e){const t={},i=s(e,["citationSources"]);return i!=null&&a(t,["citations"],i),t}function M0(n,e){const t={},i=s(e,["retrievedUrl"]);i!=null&&a(t,["retrievedUrl"],i);const r=s(e,["urlRetrievalStatus"]);return r!=null&&a(t,["urlRetrievalStatus"],r),t}function I0(n,e){const t={},i=s(e,["urlMetadata"]);if(i!=null){let r=i;Array.isArray(r)&&(r=r.map(o=>M0(n,o))),a(t,["urlMetadata"],r)}return t}function P0(n,e){const t={},i=s(e,["content"]);i!=null&&a(t,["content"],b0(n,i));const r=s(e,["citationMetadata"]);r!=null&&a(t,["citationMetadata"],R0(n,r));const o=s(e,["tokenCount"]);o!=null&&a(t,["tokenCount"],o);const l=s(e,["finishReason"]);l!=null&&a(t,["finishReason"],l);const u=s(e,["urlContextMetadata"]);u!=null&&a(t,["urlContextMetadata"],I0(n,u));const c=s(e,["avgLogprobs"]);c!=null&&a(t,["avgLogprobs"],c);const f=s(e,["groundingMetadata"]);f!=null&&a(t,["groundingMetadata"],f);const d=s(e,["index"]);d!=null&&a(t,["index"],d);const h=s(e,["logprobsResult"]);h!=null&&a(t,["logprobsResult"],h);const g=s(e,["safetyRatings"]);return g!=null&&a(t,["safetyRatings"],g),t}function ul(n,e){const t={},i=s(e,["candidates"]);if(i!=null){let u=i;Array.isArray(u)&&(u=u.map(c=>P0(n,c))),a(t,["candidates"],u)}const r=s(e,["modelVersion"]);r!=null&&a(t,["modelVersion"],r);const o=s(e,["promptFeedback"]);o!=null&&a(t,["promptFeedback"],o);const l=s(e,["usageMetadata"]);return l!=null&&a(t,["usageMetadata"],l),t}function k0(n,e){const t={},i=s(e,["values"]);return i!=null&&a(t,["values"],i),t}function N0(){return{}}function D0(n,e){const t={},i=s(e,["embeddings"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(l=>k0(n,l))),a(t,["embeddings"],o)}return s(e,["metadata"])!=null&&a(t,["metadata"],N0()),t}function L0(n,e){const t={},i=s(e,["bytesBase64Encoded"]);i!=null&&a(t,["imageBytes"],Mt(n,i));const r=s(e,["mimeType"]);return r!=null&&a(t,["mimeType"],r),t}function cl(n,e){const t={},i=s(e,["safetyAttributes","categories"]);i!=null&&a(t,["categories"],i);const r=s(e,["safetyAttributes","scores"]);r!=null&&a(t,["scores"],r);const o=s(e,["contentType"]);return o!=null&&a(t,["contentType"],o),t}function F0(n,e){const t={},i=s(e,["_self"]);i!=null&&a(t,["image"],L0(n,i));const r=s(e,["raiFilteredReason"]);r!=null&&a(t,["raiFilteredReason"],r);const o=s(e,["_self"]);return o!=null&&a(t,["safetyAttributes"],cl(n,o)),t}function V0(n,e){const t={},i=s(e,["predictions"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(l=>F0(n,l))),a(t,["generatedImages"],o)}const r=s(e,["positivePromptSafetyAttributes"]);return r!=null&&a(t,["positivePromptSafetyAttributes"],cl(n,r)),t}function B0(n,e){const t={},i=s(e,["baseModel"]);i!=null&&a(t,["baseModel"],i);const r=s(e,["createTime"]);r!=null&&a(t,["createTime"],r);const o=s(e,["updateTime"]);return o!=null&&a(t,["updateTime"],o),t}function kr(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["name"],i);const r=s(e,["displayName"]);r!=null&&a(t,["displayName"],r);const o=s(e,["description"]);o!=null&&a(t,["description"],o);const l=s(e,["version"]);l!=null&&a(t,["version"],l);const u=s(e,["_self"]);u!=null&&a(t,["tunedModelInfo"],B0(n,u));const c=s(e,["inputTokenLimit"]);c!=null&&a(t,["inputTokenLimit"],c);const f=s(e,["outputTokenLimit"]);f!=null&&a(t,["outputTokenLimit"],f);const d=s(e,["supportedGenerationMethods"]);return d!=null&&a(t,["supportedActions"],d),t}function O0(n,e){const t={},i=s(e,["nextPageToken"]);i!=null&&a(t,["nextPageToken"],i);const r=s(e,["_self"]);if(r!=null){let o=Ha(n,r);Array.isArray(o)&&(o=o.map(l=>kr(n,l))),a(t,["models"],o)}return t}function U0(){return{}}function $0(n,e){const t={},i=s(e,["totalTokens"]);i!=null&&a(t,["totalTokens"],i);const r=s(e,["cachedContentTokenCount"]);return r!=null&&a(t,["cachedContentTokenCount"],r),t}function G0(n,e){const t={},i=s(e,["video","uri"]);i!=null&&a(t,["uri"],i);const r=s(e,["video","encodedVideo"]);r!=null&&a(t,["videoBytes"],Mt(n,r));const o=s(e,["encoding"]);return o!=null&&a(t,["mimeType"],o),t}function q0(n,e){const t={},i=s(e,["_self"]);return i!=null&&a(t,["video"],G0(n,i)),t}function H0(n,e){const t={},i=s(e,["generatedSamples"]);if(i!=null){let l=i;Array.isArray(l)&&(l=l.map(u=>q0(n,u))),a(t,["generatedVideos"],l)}const r=s(e,["raiMediaFilteredCount"]);r!=null&&a(t,["raiMediaFilteredCount"],r);const o=s(e,["raiMediaFilteredReasons"]);return o!=null&&a(t,["raiMediaFilteredReasons"],o),t}function W0(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["name"],i);const r=s(e,["metadata"]);r!=null&&a(t,["metadata"],r);const o=s(e,["done"]);o!=null&&a(t,["done"],o);const l=s(e,["error"]);l!=null&&a(t,["error"],l);const u=s(e,["response","generateVideoResponse"]);return u!=null&&a(t,["response"],H0(n,u)),t}function z0(n,e){const t={},i=s(e,["fps"]);i!=null&&a(t,["fps"],i);const r=s(e,["endOffset"]);r!=null&&a(t,["endOffset"],r);const o=s(e,["startOffset"]);return o!=null&&a(t,["startOffset"],o),t}function Y0(n,e){const t={},i=s(e,["displayName"]);i!=null&&a(t,["displayName"],i);const r=s(e,["data"]);r!=null&&a(t,["data"],r);const o=s(e,["mimeType"]);return o!=null&&a(t,["mimeType"],o),t}function K0(n,e){const t={},i=s(e,["displayName"]);i!=null&&a(t,["displayName"],i);const r=s(e,["fileUri"]);r!=null&&a(t,["fileUri"],r);const o=s(e,["mimeType"]);return o!=null&&a(t,["mimeType"],o),t}function J0(n,e){const t={},i=s(e,["videoMetadata"]);i!=null&&a(t,["videoMetadata"],z0(n,i));const r=s(e,["thought"]);r!=null&&a(t,["thought"],r);const o=s(e,["inlineData"]);o!=null&&a(t,["inlineData"],Y0(n,o));const l=s(e,["fileData"]);l!=null&&a(t,["fileData"],K0(n,l));const u=s(e,["thoughtSignature"]);u!=null&&a(t,["thoughtSignature"],u);const c=s(e,["codeExecutionResult"]);c!=null&&a(t,["codeExecutionResult"],c);const f=s(e,["executableCode"]);f!=null&&a(t,["executableCode"],f);const d=s(e,["functionCall"]);d!=null&&a(t,["functionCall"],d);const h=s(e,["functionResponse"]);h!=null&&a(t,["functionResponse"],h);const g=s(e,["text"]);return g!=null&&a(t,["text"],g),t}function Z0(n,e){const t={},i=s(e,["parts"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(l=>J0(n,l))),a(t,["parts"],o)}const r=s(e,["role"]);return r!=null&&a(t,["role"],r),t}function X0(n,e){const t={},i=s(e,["citations"]);return i!=null&&a(t,["citations"],i),t}function Q0(n,e){const t={},i=s(e,["content"]);i!=null&&a(t,["content"],Z0(n,i));const r=s(e,["citationMetadata"]);r!=null&&a(t,["citationMetadata"],X0(n,r));const o=s(e,["finishMessage"]);o!=null&&a(t,["finishMessage"],o);const l=s(e,["finishReason"]);l!=null&&a(t,["finishReason"],l);const u=s(e,["avgLogprobs"]);u!=null&&a(t,["avgLogprobs"],u);const c=s(e,["groundingMetadata"]);c!=null&&a(t,["groundingMetadata"],c);const f=s(e,["index"]);f!=null&&a(t,["index"],f);const d=s(e,["logprobsResult"]);d!=null&&a(t,["logprobsResult"],d);const h=s(e,["safetyRatings"]);return h!=null&&a(t,["safetyRatings"],h),t}function fl(n,e){const t={},i=s(e,["candidates"]);if(i!=null){let f=i;Array.isArray(f)&&(f=f.map(d=>Q0(n,d))),a(t,["candidates"],f)}const r=s(e,["createTime"]);r!=null&&a(t,["createTime"],r);const o=s(e,["responseId"]);o!=null&&a(t,["responseId"],o);const l=s(e,["modelVersion"]);l!=null&&a(t,["modelVersion"],l);const u=s(e,["promptFeedback"]);u!=null&&a(t,["promptFeedback"],u);const c=s(e,["usageMetadata"]);return c!=null&&a(t,["usageMetadata"],c),t}function j0(n,e){const t={},i=s(e,["truncated"]);i!=null&&a(t,["truncated"],i);const r=s(e,["token_count"]);return r!=null&&a(t,["tokenCount"],r),t}function e_(n,e){const t={},i=s(e,["values"]);i!=null&&a(t,["values"],i);const r=s(e,["statistics"]);return r!=null&&a(t,["statistics"],j0(n,r)),t}function t_(n,e){const t={},i=s(e,["billableCharacterCount"]);return i!=null&&a(t,["billableCharacterCount"],i),t}function n_(n,e){const t={},i=s(e,["predictions[]","embeddings"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(l=>e_(n,l))),a(t,["embeddings"],o)}const r=s(e,["metadata"]);return r!=null&&a(t,["metadata"],t_(n,r)),t}function i_(n,e){const t={},i=s(e,["gcsUri"]);i!=null&&a(t,["gcsUri"],i);const r=s(e,["bytesBase64Encoded"]);r!=null&&a(t,["imageBytes"],Mt(n,r));const o=s(e,["mimeType"]);return o!=null&&a(t,["mimeType"],o),t}function dl(n,e){const t={},i=s(e,["safetyAttributes","categories"]);i!=null&&a(t,["categories"],i);const r=s(e,["safetyAttributes","scores"]);r!=null&&a(t,["scores"],r);const o=s(e,["contentType"]);return o!=null&&a(t,["contentType"],o),t}function Nr(n,e){const t={},i=s(e,["_self"]);i!=null&&a(t,["image"],i_(n,i));const r=s(e,["raiFilteredReason"]);r!=null&&a(t,["raiFilteredReason"],r);const o=s(e,["_self"]);o!=null&&a(t,["safetyAttributes"],dl(n,o));const l=s(e,["prompt"]);return l!=null&&a(t,["enhancedPrompt"],l),t}function r_(n,e){const t={},i=s(e,["predictions"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(l=>Nr(n,l))),a(t,["generatedImages"],o)}const r=s(e,["positivePromptSafetyAttributes"]);return r!=null&&a(t,["positivePromptSafetyAttributes"],dl(n,r)),t}function o_(n,e){const t={},i=s(e,["predictions"]);if(i!=null){let r=i;Array.isArray(r)&&(r=r.map(o=>Nr(n,o))),a(t,["generatedImages"],r)}return t}function s_(n,e){const t={},i=s(e,["predictions"]);if(i!=null){let r=i;Array.isArray(r)&&(r=r.map(o=>Nr(n,o))),a(t,["generatedImages"],r)}return t}function a_(n,e){const t={},i=s(e,["endpoint"]);i!=null&&a(t,["name"],i);const r=s(e,["deployedModelId"]);return r!=null&&a(t,["deployedModelId"],r),t}function l_(n,e){const t={},i=s(e,["labels","google-vertex-llm-tuning-base-model-id"]);i!=null&&a(t,["baseModel"],i);const r=s(e,["createTime"]);r!=null&&a(t,["createTime"],r);const o=s(e,["updateTime"]);return o!=null&&a(t,["updateTime"],o),t}function u_(n,e){const t={},i=s(e,["checkpointId"]);i!=null&&a(t,["checkpointId"],i);const r=s(e,["epoch"]);r!=null&&a(t,["epoch"],r);const o=s(e,["step"]);return o!=null&&a(t,["step"],o),t}function Dr(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["name"],i);const r=s(e,["displayName"]);r!=null&&a(t,["displayName"],r);const o=s(e,["description"]);o!=null&&a(t,["description"],o);const l=s(e,["versionId"]);l!=null&&a(t,["version"],l);const u=s(e,["deployedModels"]);if(u!=null){let g=u;Array.isArray(g)&&(g=g.map(x=>a_(n,x))),a(t,["endpoints"],g)}const c=s(e,["labels"]);c!=null&&a(t,["labels"],c);const f=s(e,["_self"]);f!=null&&a(t,["tunedModelInfo"],l_(n,f));const d=s(e,["defaultCheckpointId"]);d!=null&&a(t,["defaultCheckpointId"],d);const h=s(e,["checkpoints"]);if(h!=null){let g=h;Array.isArray(g)&&(g=g.map(x=>u_(n,x))),a(t,["checkpoints"],g)}return t}function c_(n,e){const t={},i=s(e,["nextPageToken"]);i!=null&&a(t,["nextPageToken"],i);const r=s(e,["_self"]);if(r!=null){let o=Ha(n,r);Array.isArray(o)&&(o=o.map(l=>Dr(n,l))),a(t,["models"],o)}return t}function f_(){return{}}function d_(n,e){const t={},i=s(e,["totalTokens"]);return i!=null&&a(t,["totalTokens"],i),t}function p_(n,e){const t={},i=s(e,["tokensInfo"]);return i!=null&&a(t,["tokensInfo"],i),t}function h_(n,e){const t={},i=s(e,["gcsUri"]);i!=null&&a(t,["uri"],i);const r=s(e,["bytesBase64Encoded"]);r!=null&&a(t,["videoBytes"],Mt(n,r));const o=s(e,["mimeType"]);return o!=null&&a(t,["mimeType"],o),t}function m_(n,e){const t={},i=s(e,["_self"]);return i!=null&&a(t,["video"],h_(n,i)),t}function g_(n,e){const t={},i=s(e,["videos"]);if(i!=null){let l=i;Array.isArray(l)&&(l=l.map(u=>m_(n,u))),a(t,["generatedVideos"],l)}const r=s(e,["raiMediaFilteredCount"]);r!=null&&a(t,["raiMediaFilteredCount"],r);const o=s(e,["raiMediaFilteredReasons"]);return o!=null&&a(t,["raiMediaFilteredReasons"],o),t}function y_(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["name"],i);const r=s(e,["metadata"]);r!=null&&a(t,["metadata"],r);const o=s(e,["done"]);o!=null&&a(t,["done"],o);const l=s(e,["error"]);l!=null&&a(t,["error"],l);const u=s(e,["response"]);return u!=null&&a(t,["response"],g_(n,u)),t}/**
398
+ */function ux(c,l){const a={},r=m(l,["fps"]);r!=null&&g(a,["fps"],r);const f=m(l,["endOffset"]);f!=null&&g(a,["endOffset"],f);const y=m(l,["startOffset"]);return y!=null&&g(a,["startOffset"],y),a}function sx(c,l){const a={};if(m(l,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const r=m(l,["data"]);r!=null&&g(a,["data"],r);const f=m(l,["mimeType"]);return f!=null&&g(a,["mimeType"],f),a}function rx(c,l){const a={};if(m(l,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const r=m(l,["fileUri"]);r!=null&&g(a,["fileUri"],r);const f=m(l,["mimeType"]);return f!=null&&g(a,["mimeType"],f),a}function cx(c,l){const a={},r=m(l,["videoMetadata"]);r!=null&&g(a,["videoMetadata"],ux(c,r));const f=m(l,["thought"]);f!=null&&g(a,["thought"],f);const y=m(l,["inlineData"]);y!=null&&g(a,["inlineData"],sx(c,y));const C=m(l,["fileData"]);C!=null&&g(a,["fileData"],rx(c,C));const E=m(l,["thoughtSignature"]);E!=null&&g(a,["thoughtSignature"],E);const b=m(l,["codeExecutionResult"]);b!=null&&g(a,["codeExecutionResult"],b);const A=m(l,["executableCode"]);A!=null&&g(a,["executableCode"],A);const D=m(l,["functionCall"]);D!=null&&g(a,["functionCall"],D);const N=m(l,["functionResponse"]);N!=null&&g(a,["functionResponse"],N);const z=m(l,["text"]);return z!=null&&g(a,["text"],z),a}function xv(c,l){const a={},r=m(l,["parts"]);if(r!=null){let y=r;Array.isArray(y)&&(y=y.map(C=>cx(c,C))),g(a,["parts"],y)}const f=m(l,["role"]);return f!=null&&g(a,["role"],f),a}function fx(c,l){const a={},r=m(l,["anyOf"]);r!=null&&g(a,["anyOf"],r);const f=m(l,["default"]);f!=null&&g(a,["default"],f);const y=m(l,["description"]);y!=null&&g(a,["description"],y);const C=m(l,["enum"]);C!=null&&g(a,["enum"],C);const E=m(l,["example"]);E!=null&&g(a,["example"],E);const b=m(l,["format"]);b!=null&&g(a,["format"],b);const A=m(l,["items"]);A!=null&&g(a,["items"],A);const D=m(l,["maxItems"]);D!=null&&g(a,["maxItems"],D);const N=m(l,["maxLength"]);N!=null&&g(a,["maxLength"],N);const z=m(l,["maxProperties"]);z!=null&&g(a,["maxProperties"],z);const Z=m(l,["maximum"]);Z!=null&&g(a,["maximum"],Z);const F=m(l,["minItems"]);F!=null&&g(a,["minItems"],F);const ie=m(l,["minLength"]);ie!=null&&g(a,["minLength"],ie);const se=m(l,["minProperties"]);se!=null&&g(a,["minProperties"],se);const fe=m(l,["minimum"]);fe!=null&&g(a,["minimum"],fe);const de=m(l,["nullable"]);de!=null&&g(a,["nullable"],de);const me=m(l,["pattern"]);me!=null&&g(a,["pattern"],me);const Te=m(l,["properties"]);Te!=null&&g(a,["properties"],Te);const Re=m(l,["propertyOrdering"]);Re!=null&&g(a,["propertyOrdering"],Re);const Oe=m(l,["required"]);Oe!=null&&g(a,["required"],Oe);const Be=m(l,["title"]);Be!=null&&g(a,["title"],Be);const Ne=m(l,["type"]);return Ne!=null&&g(a,["type"],Ne),a}function dx(c,l){const a={};if(m(l,["method"])!==void 0)throw new Error("method parameter is not supported in Gemini API.");const r=m(l,["category"]);r!=null&&g(a,["category"],r);const f=m(l,["threshold"]);return f!=null&&g(a,["threshold"],f),a}function hx(c,l){const a={},r=m(l,["behavior"]);r!=null&&g(a,["behavior"],r);const f=m(l,["description"]);f!=null&&g(a,["description"],f);const y=m(l,["name"]);y!=null&&g(a,["name"],y);const C=m(l,["parameters"]);C!=null&&g(a,["parameters"],C);const E=m(l,["response"]);return E!=null&&g(a,["response"],E),a}function mx(c,l){const a={},r=m(l,["startTime"]);r!=null&&g(a,["startTime"],r);const f=m(l,["endTime"]);return f!=null&&g(a,["endTime"],f),a}function px(c,l){const a={},r=m(l,["timeRangeFilter"]);return r!=null&&g(a,["timeRangeFilter"],mx(c,r)),a}function gx(c,l){const a={},r=m(l,["mode"]);r!=null&&g(a,["mode"],r);const f=m(l,["dynamicThreshold"]);return f!=null&&g(a,["dynamicThreshold"],f),a}function yx(c,l){const a={},r=m(l,["dynamicRetrievalConfig"]);return r!=null&&g(a,["dynamicRetrievalConfig"],gx(c,r)),a}function vx(){return{}}function Sx(c,l){const a={},r=m(l,["functionDeclarations"]);if(r!=null){let b=r;Array.isArray(b)&&(b=b.map(A=>hx(c,A))),g(a,["functionDeclarations"],b)}if(m(l,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const f=m(l,["googleSearch"]);f!=null&&g(a,["googleSearch"],px(c,f));const y=m(l,["googleSearchRetrieval"]);if(y!=null&&g(a,["googleSearchRetrieval"],yx(c,y)),m(l,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");if(m(l,["googleMaps"])!==void 0)throw new Error("googleMaps parameter is not supported in Gemini API.");m(l,["urlContext"])!=null&&g(a,["urlContext"],vx());const E=m(l,["codeExecution"]);return E!=null&&g(a,["codeExecution"],E),a}function Tx(c,l){const a={},r=m(l,["mode"]);r!=null&&g(a,["mode"],r);const f=m(l,["allowedFunctionNames"]);return f!=null&&g(a,["allowedFunctionNames"],f),a}function Cx(c,l){const a={},r=m(l,["latitude"]);r!=null&&g(a,["latitude"],r);const f=m(l,["longitude"]);return f!=null&&g(a,["longitude"],f),a}function Ex(c,l){const a={},r=m(l,["latLng"]);r!=null&&g(a,["latLng"],Cx(c,r));const f=m(l,["languageCode"]);return f!=null&&g(a,["languageCode"],f),a}function _x(c,l){const a={},r=m(l,["functionCallingConfig"]);r!=null&&g(a,["functionCallingConfig"],Tx(c,r));const f=m(l,["retrievalConfig"]);return f!=null&&g(a,["retrievalConfig"],Ex(c,f)),a}function Ax(c,l){const a={},r=m(l,["voiceName"]);return r!=null&&g(a,["voiceName"],r),a}function F_(c,l){const a={},r=m(l,["prebuiltVoiceConfig"]);return r!=null&&g(a,["prebuiltVoiceConfig"],Ax(c,r)),a}function bx(c,l){const a={},r=m(l,["speaker"]);r!=null&&g(a,["speaker"],r);const f=m(l,["voiceConfig"]);return f!=null&&g(a,["voiceConfig"],F_(c,f)),a}function Mx(c,l){const a={},r=m(l,["speakerVoiceConfigs"]);if(r!=null){let f=r;Array.isArray(f)&&(f=f.map(y=>bx(c,y))),g(a,["speakerVoiceConfigs"],f)}return a}function Rx(c,l){const a={},r=m(l,["voiceConfig"]);r!=null&&g(a,["voiceConfig"],F_(c,r));const f=m(l,["multiSpeakerVoiceConfig"]);f!=null&&g(a,["multiSpeakerVoiceConfig"],Mx(c,f));const y=m(l,["languageCode"]);return y!=null&&g(a,["languageCode"],y),a}function Dx(c,l){const a={},r=m(l,["includeThoughts"]);r!=null&&g(a,["includeThoughts"],r);const f=m(l,["thinkingBudget"]);return f!=null&&g(a,["thinkingBudget"],f),a}function xx(c,l,a){const r={},f=m(l,["systemInstruction"]);a!==void 0&&f!=null&&g(a,["systemInstruction"],xv(c,Gl(c,f)));const y=m(l,["temperature"]);y!=null&&g(r,["temperature"],y);const C=m(l,["topP"]);C!=null&&g(r,["topP"],C);const E=m(l,["topK"]);E!=null&&g(r,["topK"],E);const b=m(l,["candidateCount"]);b!=null&&g(r,["candidateCount"],b);const A=m(l,["maxOutputTokens"]);A!=null&&g(r,["maxOutputTokens"],A);const D=m(l,["stopSequences"]);D!=null&&g(r,["stopSequences"],D);const N=m(l,["responseLogprobs"]);N!=null&&g(r,["responseLogprobs"],N);const z=m(l,["logprobs"]);z!=null&&g(r,["logprobs"],z);const Z=m(l,["presencePenalty"]);Z!=null&&g(r,["presencePenalty"],Z);const F=m(l,["frequencyPenalty"]);F!=null&&g(r,["frequencyPenalty"],F);const ie=m(l,["seed"]);ie!=null&&g(r,["seed"],ie);const se=m(l,["responseMimeType"]);se!=null&&g(r,["responseMimeType"],se);const fe=m(l,["responseSchema"]);if(fe!=null&&g(r,["responseSchema"],fx(c,Ev(c,fe))),m(l,["routingConfig"])!==void 0)throw new Error("routingConfig parameter is not supported in Gemini API.");if(m(l,["modelSelectionConfig"])!==void 0)throw new Error("modelSelectionConfig parameter is not supported in Gemini API.");const de=m(l,["safetySettings"]);if(a!==void 0&&de!=null){let ue=de;Array.isArray(ue)&&(ue=ue.map(ht=>dx(c,ht))),g(a,["safetySettings"],ue)}const me=m(l,["tools"]);if(a!==void 0&&me!=null){let ue=rp(c,me);Array.isArray(ue)&&(ue=ue.map(ht=>Sx(c,sp(c,ht)))),g(a,["tools"],ue)}const Te=m(l,["toolConfig"]);if(a!==void 0&&Te!=null&&g(a,["toolConfig"],_x(c,Te)),m(l,["labels"])!==void 0)throw new Error("labels parameter is not supported in Gemini API.");const Re=m(l,["cachedContent"]);a!==void 0&&Re!=null&&g(a,["cachedContent"],Is(c,Re));const Oe=m(l,["responseModalities"]);Oe!=null&&g(r,["responseModalities"],Oe);const Be=m(l,["mediaResolution"]);Be!=null&&g(r,["mediaResolution"],Be);const Ne=m(l,["speechConfig"]);if(Ne!=null&&g(r,["speechConfig"],Rx(c,U_(c,Ne))),m(l,["audioTimestamp"])!==void 0)throw new Error("audioTimestamp parameter is not supported in Gemini API.");const De=m(l,["thinkingConfig"]);return De!=null&&g(r,["thinkingConfig"],Dx(c,De)),r}function $_(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","model"],Kt(c,r));const f=m(l,["contents"]);if(f!=null){let C=no(c,f);Array.isArray(C)&&(C=C.map(E=>xv(c,E))),g(a,["contents"],C)}const y=m(l,["config"]);return y!=null&&g(a,["generationConfig"],xx(c,y,a)),a}function Ux(c,l,a){const r={},f=m(l,["taskType"]);a!==void 0&&f!=null&&g(a,["requests[]","taskType"],f);const y=m(l,["title"]);a!==void 0&&y!=null&&g(a,["requests[]","title"],y);const C=m(l,["outputDimensionality"]);if(a!==void 0&&C!=null&&g(a,["requests[]","outputDimensionality"],C),m(l,["mimeType"])!==void 0)throw new Error("mimeType parameter is not supported in Gemini API.");if(m(l,["autoTruncate"])!==void 0)throw new Error("autoTruncate parameter is not supported in Gemini API.");return r}function Nx(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","model"],Kt(c,r));const f=m(l,["contents"]);f!=null&&g(a,["requests[]","content"],D_(c,f));const y=m(l,["config"]);y!=null&&g(a,["config"],Ux(c,y,a));const C=m(l,["model"]);return C!==void 0&&g(a,["requests[]","model"],Kt(c,C)),a}function zx(c,l,a){const r={};if(m(l,["outputGcsUri"])!==void 0)throw new Error("outputGcsUri parameter is not supported in Gemini API.");if(m(l,["negativePrompt"])!==void 0)throw new Error("negativePrompt parameter is not supported in Gemini API.");const f=m(l,["numberOfImages"]);a!==void 0&&f!=null&&g(a,["parameters","sampleCount"],f);const y=m(l,["aspectRatio"]);a!==void 0&&y!=null&&g(a,["parameters","aspectRatio"],y);const C=m(l,["guidanceScale"]);if(a!==void 0&&C!=null&&g(a,["parameters","guidanceScale"],C),m(l,["seed"])!==void 0)throw new Error("seed parameter is not supported in Gemini API.");const E=m(l,["safetyFilterLevel"]);a!==void 0&&E!=null&&g(a,["parameters","safetySetting"],E);const b=m(l,["personGeneration"]);a!==void 0&&b!=null&&g(a,["parameters","personGeneration"],b);const A=m(l,["includeSafetyAttributes"]);a!==void 0&&A!=null&&g(a,["parameters","includeSafetyAttributes"],A);const D=m(l,["includeRaiReason"]);a!==void 0&&D!=null&&g(a,["parameters","includeRaiReason"],D);const N=m(l,["language"]);a!==void 0&&N!=null&&g(a,["parameters","language"],N);const z=m(l,["outputMimeType"]);a!==void 0&&z!=null&&g(a,["parameters","outputOptions","mimeType"],z);const Z=m(l,["outputCompressionQuality"]);if(a!==void 0&&Z!=null&&g(a,["parameters","outputOptions","compressionQuality"],Z),m(l,["addWatermark"])!==void 0)throw new Error("addWatermark parameter is not supported in Gemini API.");if(m(l,["enhancePrompt"])!==void 0)throw new Error("enhancePrompt parameter is not supported in Gemini API.");return r}function Ox(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","model"],Kt(c,r));const f=m(l,["prompt"]);f!=null&&g(a,["instances[0]","prompt"],f);const y=m(l,["config"]);return y!=null&&g(a,["config"],zx(c,y,a)),a}function wx(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","name"],Kt(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],f),a}function Vx(c,l,a){const r={},f=m(l,["pageSize"]);a!==void 0&&f!=null&&g(a,["_query","pageSize"],f);const y=m(l,["pageToken"]);a!==void 0&&y!=null&&g(a,["_query","pageToken"],y);const C=m(l,["filter"]);a!==void 0&&C!=null&&g(a,["_query","filter"],C);const E=m(l,["queryBase"]);return a!==void 0&&E!=null&&g(a,["_url","models_url"],O_(c,E)),r}function Lx(c,l){const a={},r=m(l,["config"]);return r!=null&&g(a,["config"],Vx(c,r,a)),a}function Hx(c,l,a){const r={},f=m(l,["displayName"]);a!==void 0&&f!=null&&g(a,["displayName"],f);const y=m(l,["description"]);a!==void 0&&y!=null&&g(a,["description"],y);const C=m(l,["defaultCheckpointId"]);return a!==void 0&&C!=null&&g(a,["defaultCheckpointId"],C),r}function Bx(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","name"],Kt(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],Hx(c,f,a)),a}function qx(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","name"],Kt(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],f),a}function Gx(c,l){const a={};if(m(l,["systemInstruction"])!==void 0)throw new Error("systemInstruction parameter is not supported in Gemini API.");if(m(l,["tools"])!==void 0)throw new Error("tools parameter is not supported in Gemini API.");if(m(l,["generationConfig"])!==void 0)throw new Error("generationConfig parameter is not supported in Gemini API.");return a}function Yx(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","model"],Kt(c,r));const f=m(l,["contents"]);if(f!=null){let C=no(c,f);Array.isArray(C)&&(C=C.map(E=>xv(c,E))),g(a,["contents"],C)}const y=m(l,["config"]);return y!=null&&g(a,["config"],Gx(c,y)),a}function Ix(c,l){const a={};if(m(l,["gcsUri"])!==void 0)throw new Error("gcsUri parameter is not supported in Gemini API.");const r=m(l,["imageBytes"]);r!=null&&g(a,["bytesBase64Encoded"],Zs(c,r));const f=m(l,["mimeType"]);return f!=null&&g(a,["mimeType"],f),a}function Zx(c,l,a){const r={},f=m(l,["numberOfVideos"]);if(a!==void 0&&f!=null&&g(a,["parameters","sampleCount"],f),m(l,["outputGcsUri"])!==void 0)throw new Error("outputGcsUri parameter is not supported in Gemini API.");if(m(l,["fps"])!==void 0)throw new Error("fps parameter is not supported in Gemini API.");const y=m(l,["durationSeconds"]);if(a!==void 0&&y!=null&&g(a,["parameters","durationSeconds"],y),m(l,["seed"])!==void 0)throw new Error("seed parameter is not supported in Gemini API.");const C=m(l,["aspectRatio"]);if(a!==void 0&&C!=null&&g(a,["parameters","aspectRatio"],C),m(l,["resolution"])!==void 0)throw new Error("resolution parameter is not supported in Gemini API.");const E=m(l,["personGeneration"]);if(a!==void 0&&E!=null&&g(a,["parameters","personGeneration"],E),m(l,["pubsubTopic"])!==void 0)throw new Error("pubsubTopic parameter is not supported in Gemini API.");const b=m(l,["negativePrompt"]);if(a!==void 0&&b!=null&&g(a,["parameters","negativePrompt"],b),m(l,["enhancePrompt"])!==void 0)throw new Error("enhancePrompt parameter is not supported in Gemini API.");if(m(l,["generateAudio"])!==void 0)throw new Error("generateAudio parameter is not supported in Gemini API.");return r}function kx(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","model"],Kt(c,r));const f=m(l,["prompt"]);f!=null&&g(a,["instances[0]","prompt"],f);const y=m(l,["image"]);y!=null&&g(a,["instances[0]","image"],Ix(c,y));const C=m(l,["config"]);return C!=null&&g(a,["config"],Zx(c,C,a)),a}function Xx(c,l){const a={},r=m(l,["fps"]);r!=null&&g(a,["fps"],r);const f=m(l,["endOffset"]);f!=null&&g(a,["endOffset"],f);const y=m(l,["startOffset"]);return y!=null&&g(a,["startOffset"],y),a}function Qx(c,l){const a={},r=m(l,["displayName"]);r!=null&&g(a,["displayName"],r);const f=m(l,["data"]);f!=null&&g(a,["data"],f);const y=m(l,["mimeType"]);return y!=null&&g(a,["mimeType"],y),a}function Jx(c,l){const a={},r=m(l,["displayName"]);r!=null&&g(a,["displayName"],r);const f=m(l,["fileUri"]);f!=null&&g(a,["fileUri"],f);const y=m(l,["mimeType"]);return y!=null&&g(a,["mimeType"],y),a}function Kx(c,l){const a={},r=m(l,["videoMetadata"]);r!=null&&g(a,["videoMetadata"],Xx(c,r));const f=m(l,["thought"]);f!=null&&g(a,["thought"],f);const y=m(l,["inlineData"]);y!=null&&g(a,["inlineData"],Qx(c,y));const C=m(l,["fileData"]);C!=null&&g(a,["fileData"],Jx(c,C));const E=m(l,["thoughtSignature"]);E!=null&&g(a,["thoughtSignature"],E);const b=m(l,["codeExecutionResult"]);b!=null&&g(a,["codeExecutionResult"],b);const A=m(l,["executableCode"]);A!=null&&g(a,["executableCode"],A);const D=m(l,["functionCall"]);D!=null&&g(a,["functionCall"],D);const N=m(l,["functionResponse"]);N!=null&&g(a,["functionResponse"],N);const z=m(l,["text"]);return z!=null&&g(a,["text"],z),a}function xd(c,l){const a={},r=m(l,["parts"]);if(r!=null){let y=r;Array.isArray(y)&&(y=y.map(C=>Kx(c,C))),g(a,["parts"],y)}const f=m(l,["role"]);return f!=null&&g(a,["role"],f),a}function Fx(c,l){const a={},r=m(l,["anyOf"]);r!=null&&g(a,["anyOf"],r);const f=m(l,["default"]);f!=null&&g(a,["default"],f);const y=m(l,["description"]);y!=null&&g(a,["description"],y);const C=m(l,["enum"]);C!=null&&g(a,["enum"],C);const E=m(l,["example"]);E!=null&&g(a,["example"],E);const b=m(l,["format"]);b!=null&&g(a,["format"],b);const A=m(l,["items"]);A!=null&&g(a,["items"],A);const D=m(l,["maxItems"]);D!=null&&g(a,["maxItems"],D);const N=m(l,["maxLength"]);N!=null&&g(a,["maxLength"],N);const z=m(l,["maxProperties"]);z!=null&&g(a,["maxProperties"],z);const Z=m(l,["maximum"]);Z!=null&&g(a,["maximum"],Z);const F=m(l,["minItems"]);F!=null&&g(a,["minItems"],F);const ie=m(l,["minLength"]);ie!=null&&g(a,["minLength"],ie);const se=m(l,["minProperties"]);se!=null&&g(a,["minProperties"],se);const fe=m(l,["minimum"]);fe!=null&&g(a,["minimum"],fe);const de=m(l,["nullable"]);de!=null&&g(a,["nullable"],de);const me=m(l,["pattern"]);me!=null&&g(a,["pattern"],me);const Te=m(l,["properties"]);Te!=null&&g(a,["properties"],Te);const Re=m(l,["propertyOrdering"]);Re!=null&&g(a,["propertyOrdering"],Re);const Oe=m(l,["required"]);Oe!=null&&g(a,["required"],Oe);const Be=m(l,["title"]);Be!=null&&g(a,["title"],Be);const Ne=m(l,["type"]);return Ne!=null&&g(a,["type"],Ne),a}function $x(c,l){const a={},r=m(l,["featureSelectionPreference"]);return r!=null&&g(a,["featureSelectionPreference"],r),a}function Px(c,l){const a={},r=m(l,["method"]);r!=null&&g(a,["method"],r);const f=m(l,["category"]);f!=null&&g(a,["category"],f);const y=m(l,["threshold"]);return y!=null&&g(a,["threshold"],y),a}function Wx(c,l){const a={};if(m(l,["behavior"])!==void 0)throw new Error("behavior parameter is not supported in Vertex AI.");const r=m(l,["description"]);r!=null&&g(a,["description"],r);const f=m(l,["name"]);f!=null&&g(a,["name"],f);const y=m(l,["parameters"]);y!=null&&g(a,["parameters"],y);const C=m(l,["response"]);return C!=null&&g(a,["response"],C),a}function jx(c,l){const a={},r=m(l,["startTime"]);r!=null&&g(a,["startTime"],r);const f=m(l,["endTime"]);return f!=null&&g(a,["endTime"],f),a}function eU(c,l){const a={},r=m(l,["timeRangeFilter"]);return r!=null&&g(a,["timeRangeFilter"],jx(c,r)),a}function tU(c,l){const a={},r=m(l,["mode"]);r!=null&&g(a,["mode"],r);const f=m(l,["dynamicThreshold"]);return f!=null&&g(a,["dynamicThreshold"],f),a}function nU(c,l){const a={},r=m(l,["dynamicRetrievalConfig"]);return r!=null&&g(a,["dynamicRetrievalConfig"],tU(c,r)),a}function lU(){return{}}function aU(c,l){const a={},r=m(l,["apiKeyString"]);return r!=null&&g(a,["apiKeyString"],r),a}function iU(c,l){const a={},r=m(l,["apiKeyConfig"]);r!=null&&g(a,["apiKeyConfig"],aU(c,r));const f=m(l,["authType"]);f!=null&&g(a,["authType"],f);const y=m(l,["googleServiceAccountConfig"]);y!=null&&g(a,["googleServiceAccountConfig"],y);const C=m(l,["httpBasicAuthConfig"]);C!=null&&g(a,["httpBasicAuthConfig"],C);const E=m(l,["oauthConfig"]);E!=null&&g(a,["oauthConfig"],E);const b=m(l,["oidcConfig"]);return b!=null&&g(a,["oidcConfig"],b),a}function oU(c,l){const a={},r=m(l,["authConfig"]);return r!=null&&g(a,["authConfig"],iU(c,r)),a}function P_(c,l){const a={},r=m(l,["functionDeclarations"]);if(r!=null){let D=r;Array.isArray(D)&&(D=D.map(N=>Wx(c,N))),g(a,["functionDeclarations"],D)}const f=m(l,["retrieval"]);f!=null&&g(a,["retrieval"],f);const y=m(l,["googleSearch"]);y!=null&&g(a,["googleSearch"],eU(c,y));const C=m(l,["googleSearchRetrieval"]);C!=null&&g(a,["googleSearchRetrieval"],nU(c,C)),m(l,["enterpriseWebSearch"])!=null&&g(a,["enterpriseWebSearch"],lU());const b=m(l,["googleMaps"]);if(b!=null&&g(a,["googleMaps"],oU(c,b)),m(l,["urlContext"])!==void 0)throw new Error("urlContext parameter is not supported in Vertex AI.");const A=m(l,["codeExecution"]);return A!=null&&g(a,["codeExecution"],A),a}function uU(c,l){const a={},r=m(l,["mode"]);r!=null&&g(a,["mode"],r);const f=m(l,["allowedFunctionNames"]);return f!=null&&g(a,["allowedFunctionNames"],f),a}function sU(c,l){const a={},r=m(l,["latitude"]);r!=null&&g(a,["latitude"],r);const f=m(l,["longitude"]);return f!=null&&g(a,["longitude"],f),a}function rU(c,l){const a={},r=m(l,["latLng"]);r!=null&&g(a,["latLng"],sU(c,r));const f=m(l,["languageCode"]);return f!=null&&g(a,["languageCode"],f),a}function cU(c,l){const a={},r=m(l,["functionCallingConfig"]);r!=null&&g(a,["functionCallingConfig"],uU(c,r));const f=m(l,["retrievalConfig"]);return f!=null&&g(a,["retrievalConfig"],rU(c,f)),a}function fU(c,l){const a={},r=m(l,["voiceName"]);return r!=null&&g(a,["voiceName"],r),a}function dU(c,l){const a={},r=m(l,["prebuiltVoiceConfig"]);return r!=null&&g(a,["prebuiltVoiceConfig"],fU(c,r)),a}function hU(c,l){const a={},r=m(l,["voiceConfig"]);if(r!=null&&g(a,["voiceConfig"],dU(c,r)),m(l,["multiSpeakerVoiceConfig"])!==void 0)throw new Error("multiSpeakerVoiceConfig parameter is not supported in Vertex AI.");const f=m(l,["languageCode"]);return f!=null&&g(a,["languageCode"],f),a}function mU(c,l){const a={},r=m(l,["includeThoughts"]);r!=null&&g(a,["includeThoughts"],r);const f=m(l,["thinkingBudget"]);return f!=null&&g(a,["thinkingBudget"],f),a}function pU(c,l,a){const r={},f=m(l,["systemInstruction"]);a!==void 0&&f!=null&&g(a,["systemInstruction"],xd(c,Gl(c,f)));const y=m(l,["temperature"]);y!=null&&g(r,["temperature"],y);const C=m(l,["topP"]);C!=null&&g(r,["topP"],C);const E=m(l,["topK"]);E!=null&&g(r,["topK"],E);const b=m(l,["candidateCount"]);b!=null&&g(r,["candidateCount"],b);const A=m(l,["maxOutputTokens"]);A!=null&&g(r,["maxOutputTokens"],A);const D=m(l,["stopSequences"]);D!=null&&g(r,["stopSequences"],D);const N=m(l,["responseLogprobs"]);N!=null&&g(r,["responseLogprobs"],N);const z=m(l,["logprobs"]);z!=null&&g(r,["logprobs"],z);const Z=m(l,["presencePenalty"]);Z!=null&&g(r,["presencePenalty"],Z);const F=m(l,["frequencyPenalty"]);F!=null&&g(r,["frequencyPenalty"],F);const ie=m(l,["seed"]);ie!=null&&g(r,["seed"],ie);const se=m(l,["responseMimeType"]);se!=null&&g(r,["responseMimeType"],se);const fe=m(l,["responseSchema"]);fe!=null&&g(r,["responseSchema"],Fx(c,Ev(c,fe)));const de=m(l,["routingConfig"]);de!=null&&g(r,["routingConfig"],de);const me=m(l,["modelSelectionConfig"]);me!=null&&g(r,["modelConfig"],$x(c,me));const Te=m(l,["safetySettings"]);if(a!==void 0&&Te!=null){let Bt=Te;Array.isArray(Bt)&&(Bt=Bt.map(sn=>Px(c,sn))),g(a,["safetySettings"],Bt)}const Re=m(l,["tools"]);if(a!==void 0&&Re!=null){let Bt=rp(c,Re);Array.isArray(Bt)&&(Bt=Bt.map(sn=>P_(c,sp(c,sn)))),g(a,["tools"],Bt)}const Oe=m(l,["toolConfig"]);a!==void 0&&Oe!=null&&g(a,["toolConfig"],cU(c,Oe));const Be=m(l,["labels"]);a!==void 0&&Be!=null&&g(a,["labels"],Be);const Ne=m(l,["cachedContent"]);a!==void 0&&Ne!=null&&g(a,["cachedContent"],Is(c,Ne));const De=m(l,["responseModalities"]);De!=null&&g(r,["responseModalities"],De);const ue=m(l,["mediaResolution"]);ue!=null&&g(r,["mediaResolution"],ue);const ht=m(l,["speechConfig"]);ht!=null&&g(r,["speechConfig"],hU(c,U_(c,ht)));const tt=m(l,["audioTimestamp"]);tt!=null&&g(r,["audioTimestamp"],tt);const Pe=m(l,["thinkingConfig"]);return Pe!=null&&g(r,["thinkingConfig"],mU(c,Pe)),r}function W_(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","model"],Kt(c,r));const f=m(l,["contents"]);if(f!=null){let C=no(c,f);Array.isArray(C)&&(C=C.map(E=>xd(c,E))),g(a,["contents"],C)}const y=m(l,["config"]);return y!=null&&g(a,["generationConfig"],pU(c,y,a)),a}function gU(c,l,a){const r={},f=m(l,["taskType"]);a!==void 0&&f!=null&&g(a,["instances[]","task_type"],f);const y=m(l,["title"]);a!==void 0&&y!=null&&g(a,["instances[]","title"],y);const C=m(l,["outputDimensionality"]);a!==void 0&&C!=null&&g(a,["parameters","outputDimensionality"],C);const E=m(l,["mimeType"]);a!==void 0&&E!=null&&g(a,["instances[]","mimeType"],E);const b=m(l,["autoTruncate"]);return a!==void 0&&b!=null&&g(a,["parameters","autoTruncate"],b),r}function yU(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","model"],Kt(c,r));const f=m(l,["contents"]);f!=null&&g(a,["instances[]","content"],D_(c,f));const y=m(l,["config"]);return y!=null&&g(a,["config"],gU(c,y,a)),a}function vU(c,l,a){const r={},f=m(l,["outputGcsUri"]);a!==void 0&&f!=null&&g(a,["parameters","storageUri"],f);const y=m(l,["negativePrompt"]);a!==void 0&&y!=null&&g(a,["parameters","negativePrompt"],y);const C=m(l,["numberOfImages"]);a!==void 0&&C!=null&&g(a,["parameters","sampleCount"],C);const E=m(l,["aspectRatio"]);a!==void 0&&E!=null&&g(a,["parameters","aspectRatio"],E);const b=m(l,["guidanceScale"]);a!==void 0&&b!=null&&g(a,["parameters","guidanceScale"],b);const A=m(l,["seed"]);a!==void 0&&A!=null&&g(a,["parameters","seed"],A);const D=m(l,["safetyFilterLevel"]);a!==void 0&&D!=null&&g(a,["parameters","safetySetting"],D);const N=m(l,["personGeneration"]);a!==void 0&&N!=null&&g(a,["parameters","personGeneration"],N);const z=m(l,["includeSafetyAttributes"]);a!==void 0&&z!=null&&g(a,["parameters","includeSafetyAttributes"],z);const Z=m(l,["includeRaiReason"]);a!==void 0&&Z!=null&&g(a,["parameters","includeRaiReason"],Z);const F=m(l,["language"]);a!==void 0&&F!=null&&g(a,["parameters","language"],F);const ie=m(l,["outputMimeType"]);a!==void 0&&ie!=null&&g(a,["parameters","outputOptions","mimeType"],ie);const se=m(l,["outputCompressionQuality"]);a!==void 0&&se!=null&&g(a,["parameters","outputOptions","compressionQuality"],se);const fe=m(l,["addWatermark"]);a!==void 0&&fe!=null&&g(a,["parameters","addWatermark"],fe);const de=m(l,["enhancePrompt"]);return a!==void 0&&de!=null&&g(a,["parameters","enhancePrompt"],de),r}function SU(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","model"],Kt(c,r));const f=m(l,["prompt"]);f!=null&&g(a,["instances[0]","prompt"],f);const y=m(l,["config"]);return y!=null&&g(a,["config"],vU(c,y,a)),a}function ST(c,l){const a={},r=m(l,["gcsUri"]);r!=null&&g(a,["gcsUri"],r);const f=m(l,["imageBytes"]);f!=null&&g(a,["bytesBase64Encoded"],Zs(c,f));const y=m(l,["mimeType"]);return y!=null&&g(a,["mimeType"],y),a}function TU(c,l){const a={},r=m(l,["maskMode"]);r!=null&&g(a,["maskMode"],r);const f=m(l,["segmentationClasses"]);f!=null&&g(a,["maskClasses"],f);const y=m(l,["maskDilation"]);return y!=null&&g(a,["dilation"],y),a}function CU(c,l){const a={},r=m(l,["controlType"]);r!=null&&g(a,["controlType"],r);const f=m(l,["enableControlImageComputation"]);return f!=null&&g(a,["computeControl"],f),a}function EU(c,l){const a={},r=m(l,["styleDescription"]);return r!=null&&g(a,["styleDescription"],r),a}function _U(c,l){const a={},r=m(l,["subjectType"]);r!=null&&g(a,["subjectType"],r);const f=m(l,["subjectDescription"]);return f!=null&&g(a,["subjectDescription"],f),a}function AU(c,l){const a={},r=m(l,["referenceImage"]);r!=null&&g(a,["referenceImage"],ST(c,r));const f=m(l,["referenceId"]);f!=null&&g(a,["referenceId"],f);const y=m(l,["referenceType"]);y!=null&&g(a,["referenceType"],y);const C=m(l,["maskImageConfig"]);C!=null&&g(a,["maskImageConfig"],TU(c,C));const E=m(l,["controlImageConfig"]);E!=null&&g(a,["controlImageConfig"],CU(c,E));const b=m(l,["styleImageConfig"]);b!=null&&g(a,["styleImageConfig"],EU(c,b));const A=m(l,["subjectImageConfig"]);return A!=null&&g(a,["subjectImageConfig"],_U(c,A)),a}function bU(c,l,a){const r={},f=m(l,["outputGcsUri"]);a!==void 0&&f!=null&&g(a,["parameters","storageUri"],f);const y=m(l,["negativePrompt"]);a!==void 0&&y!=null&&g(a,["parameters","negativePrompt"],y);const C=m(l,["numberOfImages"]);a!==void 0&&C!=null&&g(a,["parameters","sampleCount"],C);const E=m(l,["aspectRatio"]);a!==void 0&&E!=null&&g(a,["parameters","aspectRatio"],E);const b=m(l,["guidanceScale"]);a!==void 0&&b!=null&&g(a,["parameters","guidanceScale"],b);const A=m(l,["seed"]);a!==void 0&&A!=null&&g(a,["parameters","seed"],A);const D=m(l,["safetyFilterLevel"]);a!==void 0&&D!=null&&g(a,["parameters","safetySetting"],D);const N=m(l,["personGeneration"]);a!==void 0&&N!=null&&g(a,["parameters","personGeneration"],N);const z=m(l,["includeSafetyAttributes"]);a!==void 0&&z!=null&&g(a,["parameters","includeSafetyAttributes"],z);const Z=m(l,["includeRaiReason"]);a!==void 0&&Z!=null&&g(a,["parameters","includeRaiReason"],Z);const F=m(l,["language"]);a!==void 0&&F!=null&&g(a,["parameters","language"],F);const ie=m(l,["outputMimeType"]);a!==void 0&&ie!=null&&g(a,["parameters","outputOptions","mimeType"],ie);const se=m(l,["outputCompressionQuality"]);a!==void 0&&se!=null&&g(a,["parameters","outputOptions","compressionQuality"],se);const fe=m(l,["editMode"]);a!==void 0&&fe!=null&&g(a,["parameters","editMode"],fe);const de=m(l,["baseSteps"]);return a!==void 0&&de!=null&&g(a,["parameters","editConfig","baseSteps"],de),r}function MU(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","model"],Kt(c,r));const f=m(l,["prompt"]);f!=null&&g(a,["instances[0]","prompt"],f);const y=m(l,["referenceImages"]);if(y!=null){let E=y;Array.isArray(E)&&(E=E.map(b=>AU(c,b))),g(a,["instances[0]","referenceImages"],E)}const C=m(l,["config"]);return C!=null&&g(a,["config"],bU(c,C,a)),a}function RU(c,l,a){const r={},f=m(l,["includeRaiReason"]);a!==void 0&&f!=null&&g(a,["parameters","includeRaiReason"],f);const y=m(l,["outputMimeType"]);a!==void 0&&y!=null&&g(a,["parameters","outputOptions","mimeType"],y);const C=m(l,["outputCompressionQuality"]);a!==void 0&&C!=null&&g(a,["parameters","outputOptions","compressionQuality"],C);const E=m(l,["numberOfImages"]);a!==void 0&&E!=null&&g(a,["parameters","sampleCount"],E);const b=m(l,["mode"]);return a!==void 0&&b!=null&&g(a,["parameters","mode"],b),r}function DU(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","model"],Kt(c,r));const f=m(l,["image"]);f!=null&&g(a,["instances[0]","image"],ST(c,f));const y=m(l,["upscaleFactor"]);y!=null&&g(a,["parameters","upscaleConfig","upscaleFactor"],y);const C=m(l,["config"]);return C!=null&&g(a,["config"],RU(c,C,a)),a}function xU(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","name"],Kt(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],f),a}function UU(c,l,a){const r={},f=m(l,["pageSize"]);a!==void 0&&f!=null&&g(a,["_query","pageSize"],f);const y=m(l,["pageToken"]);a!==void 0&&y!=null&&g(a,["_query","pageToken"],y);const C=m(l,["filter"]);a!==void 0&&C!=null&&g(a,["_query","filter"],C);const E=m(l,["queryBase"]);return a!==void 0&&E!=null&&g(a,["_url","models_url"],O_(c,E)),r}function NU(c,l){const a={},r=m(l,["config"]);return r!=null&&g(a,["config"],UU(c,r,a)),a}function zU(c,l,a){const r={},f=m(l,["displayName"]);a!==void 0&&f!=null&&g(a,["displayName"],f);const y=m(l,["description"]);a!==void 0&&y!=null&&g(a,["description"],y);const C=m(l,["defaultCheckpointId"]);return a!==void 0&&C!=null&&g(a,["defaultCheckpointId"],C),r}function OU(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","model"],Kt(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],zU(c,f,a)),a}function wU(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","name"],Kt(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],f),a}function VU(c,l,a){const r={},f=m(l,["systemInstruction"]);a!==void 0&&f!=null&&g(a,["systemInstruction"],xd(c,Gl(c,f)));const y=m(l,["tools"]);if(a!==void 0&&y!=null){let E=y;Array.isArray(E)&&(E=E.map(b=>P_(c,b))),g(a,["tools"],E)}const C=m(l,["generationConfig"]);return a!==void 0&&C!=null&&g(a,["generationConfig"],C),r}function LU(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","model"],Kt(c,r));const f=m(l,["contents"]);if(f!=null){let C=no(c,f);Array.isArray(C)&&(C=C.map(E=>xd(c,E))),g(a,["contents"],C)}const y=m(l,["config"]);return y!=null&&g(a,["config"],VU(c,y,a)),a}function HU(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","model"],Kt(c,r));const f=m(l,["contents"]);if(f!=null){let C=no(c,f);Array.isArray(C)&&(C=C.map(E=>xd(c,E))),g(a,["contents"],C)}const y=m(l,["config"]);return y!=null&&g(a,["config"],y),a}function BU(c,l,a){const r={},f=m(l,["numberOfVideos"]);a!==void 0&&f!=null&&g(a,["parameters","sampleCount"],f);const y=m(l,["outputGcsUri"]);a!==void 0&&y!=null&&g(a,["parameters","storageUri"],y);const C=m(l,["fps"]);a!==void 0&&C!=null&&g(a,["parameters","fps"],C);const E=m(l,["durationSeconds"]);a!==void 0&&E!=null&&g(a,["parameters","durationSeconds"],E);const b=m(l,["seed"]);a!==void 0&&b!=null&&g(a,["parameters","seed"],b);const A=m(l,["aspectRatio"]);a!==void 0&&A!=null&&g(a,["parameters","aspectRatio"],A);const D=m(l,["resolution"]);a!==void 0&&D!=null&&g(a,["parameters","resolution"],D);const N=m(l,["personGeneration"]);a!==void 0&&N!=null&&g(a,["parameters","personGeneration"],N);const z=m(l,["pubsubTopic"]);a!==void 0&&z!=null&&g(a,["parameters","pubsubTopic"],z);const Z=m(l,["negativePrompt"]);a!==void 0&&Z!=null&&g(a,["parameters","negativePrompt"],Z);const F=m(l,["enhancePrompt"]);a!==void 0&&F!=null&&g(a,["parameters","enhancePrompt"],F);const ie=m(l,["generateAudio"]);return a!==void 0&&ie!=null&&g(a,["parameters","generateAudio"],ie),r}function qU(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["_url","model"],Kt(c,r));const f=m(l,["prompt"]);f!=null&&g(a,["instances[0]","prompt"],f);const y=m(l,["image"]);y!=null&&g(a,["instances[0]","image"],ST(c,y));const C=m(l,["config"]);return C!=null&&g(a,["config"],BU(c,C,a)),a}function GU(c,l){const a={},r=m(l,["fps"]);r!=null&&g(a,["fps"],r);const f=m(l,["endOffset"]);f!=null&&g(a,["endOffset"],f);const y=m(l,["startOffset"]);return y!=null&&g(a,["startOffset"],y),a}function YU(c,l){const a={},r=m(l,["data"]);r!=null&&g(a,["data"],r);const f=m(l,["mimeType"]);return f!=null&&g(a,["mimeType"],f),a}function IU(c,l){const a={},r=m(l,["fileUri"]);r!=null&&g(a,["fileUri"],r);const f=m(l,["mimeType"]);return f!=null&&g(a,["mimeType"],f),a}function ZU(c,l){const a={},r=m(l,["videoMetadata"]);r!=null&&g(a,["videoMetadata"],GU(c,r));const f=m(l,["thought"]);f!=null&&g(a,["thought"],f);const y=m(l,["inlineData"]);y!=null&&g(a,["inlineData"],YU(c,y));const C=m(l,["fileData"]);C!=null&&g(a,["fileData"],IU(c,C));const E=m(l,["thoughtSignature"]);E!=null&&g(a,["thoughtSignature"],E);const b=m(l,["codeExecutionResult"]);b!=null&&g(a,["codeExecutionResult"],b);const A=m(l,["executableCode"]);A!=null&&g(a,["executableCode"],A);const D=m(l,["functionCall"]);D!=null&&g(a,["functionCall"],D);const N=m(l,["functionResponse"]);N!=null&&g(a,["functionResponse"],N);const z=m(l,["text"]);return z!=null&&g(a,["text"],z),a}function kU(c,l){const a={},r=m(l,["parts"]);if(r!=null){let y=r;Array.isArray(y)&&(y=y.map(C=>ZU(c,C))),g(a,["parts"],y)}const f=m(l,["role"]);return f!=null&&g(a,["role"],f),a}function XU(c,l){const a={},r=m(l,["citationSources"]);return r!=null&&g(a,["citations"],r),a}function QU(c,l){const a={},r=m(l,["retrievedUrl"]);r!=null&&g(a,["retrievedUrl"],r);const f=m(l,["urlRetrievalStatus"]);return f!=null&&g(a,["urlRetrievalStatus"],f),a}function JU(c,l){const a={},r=m(l,["urlMetadata"]);if(r!=null){let f=r;Array.isArray(f)&&(f=f.map(y=>QU(c,y))),g(a,["urlMetadata"],f)}return a}function KU(c,l){const a={},r=m(l,["content"]);r!=null&&g(a,["content"],kU(c,r));const f=m(l,["citationMetadata"]);f!=null&&g(a,["citationMetadata"],XU(c,f));const y=m(l,["tokenCount"]);y!=null&&g(a,["tokenCount"],y);const C=m(l,["finishReason"]);C!=null&&g(a,["finishReason"],C);const E=m(l,["urlContextMetadata"]);E!=null&&g(a,["urlContextMetadata"],JU(c,E));const b=m(l,["avgLogprobs"]);b!=null&&g(a,["avgLogprobs"],b);const A=m(l,["groundingMetadata"]);A!=null&&g(a,["groundingMetadata"],A);const D=m(l,["index"]);D!=null&&g(a,["index"],D);const N=m(l,["logprobsResult"]);N!=null&&g(a,["logprobsResult"],N);const z=m(l,["safetyRatings"]);return z!=null&&g(a,["safetyRatings"],z),a}function j_(c,l){const a={},r=m(l,["candidates"]);if(r!=null){let E=r;Array.isArray(E)&&(E=E.map(b=>KU(c,b))),g(a,["candidates"],E)}const f=m(l,["modelVersion"]);f!=null&&g(a,["modelVersion"],f);const y=m(l,["promptFeedback"]);y!=null&&g(a,["promptFeedback"],y);const C=m(l,["usageMetadata"]);return C!=null&&g(a,["usageMetadata"],C),a}function FU(c,l){const a={},r=m(l,["values"]);return r!=null&&g(a,["values"],r),a}function $U(){return{}}function PU(c,l){const a={},r=m(l,["embeddings"]);if(r!=null){let y=r;Array.isArray(y)&&(y=y.map(C=>FU(c,C))),g(a,["embeddings"],y)}return m(l,["metadata"])!=null&&g(a,["metadata"],$U()),a}function WU(c,l){const a={},r=m(l,["bytesBase64Encoded"]);r!=null&&g(a,["imageBytes"],Zs(c,r));const f=m(l,["mimeType"]);return f!=null&&g(a,["mimeType"],f),a}function e1(c,l){const a={},r=m(l,["safetyAttributes","categories"]);r!=null&&g(a,["categories"],r);const f=m(l,["safetyAttributes","scores"]);f!=null&&g(a,["scores"],f);const y=m(l,["contentType"]);return y!=null&&g(a,["contentType"],y),a}function jU(c,l){const a={},r=m(l,["_self"]);r!=null&&g(a,["image"],WU(c,r));const f=m(l,["raiFilteredReason"]);f!=null&&g(a,["raiFilteredReason"],f);const y=m(l,["_self"]);return y!=null&&g(a,["safetyAttributes"],e1(c,y)),a}function eN(c,l){const a={},r=m(l,["predictions"]);if(r!=null){let y=r;Array.isArray(y)&&(y=y.map(C=>jU(c,C))),g(a,["generatedImages"],y)}const f=m(l,["positivePromptSafetyAttributes"]);return f!=null&&g(a,["positivePromptSafetyAttributes"],e1(c,f)),a}function tN(c,l){const a={},r=m(l,["baseModel"]);r!=null&&g(a,["baseModel"],r);const f=m(l,["createTime"]);f!=null&&g(a,["createTime"],f);const y=m(l,["updateTime"]);return y!=null&&g(a,["updateTime"],y),a}function TT(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["name"],r);const f=m(l,["displayName"]);f!=null&&g(a,["displayName"],f);const y=m(l,["description"]);y!=null&&g(a,["description"],y);const C=m(l,["version"]);C!=null&&g(a,["version"],C);const E=m(l,["_self"]);E!=null&&g(a,["tunedModelInfo"],tN(c,E));const b=m(l,["inputTokenLimit"]);b!=null&&g(a,["inputTokenLimit"],b);const A=m(l,["outputTokenLimit"]);A!=null&&g(a,["outputTokenLimit"],A);const D=m(l,["supportedGenerationMethods"]);return D!=null&&g(a,["supportedActions"],D),a}function nN(c,l){const a={},r=m(l,["nextPageToken"]);r!=null&&g(a,["nextPageToken"],r);const f=m(l,["_self"]);if(f!=null){let y=w_(c,f);Array.isArray(y)&&(y=y.map(C=>TT(c,C))),g(a,["models"],y)}return a}function lN(){return{}}function aN(c,l){const a={},r=m(l,["totalTokens"]);r!=null&&g(a,["totalTokens"],r);const f=m(l,["cachedContentTokenCount"]);return f!=null&&g(a,["cachedContentTokenCount"],f),a}function iN(c,l){const a={},r=m(l,["video","uri"]);r!=null&&g(a,["uri"],r);const f=m(l,["video","encodedVideo"]);f!=null&&g(a,["videoBytes"],Zs(c,f));const y=m(l,["encoding"]);return y!=null&&g(a,["mimeType"],y),a}function oN(c,l){const a={},r=m(l,["_self"]);return r!=null&&g(a,["video"],iN(c,r)),a}function uN(c,l){const a={},r=m(l,["generatedSamples"]);if(r!=null){let C=r;Array.isArray(C)&&(C=C.map(E=>oN(c,E))),g(a,["generatedVideos"],C)}const f=m(l,["raiMediaFilteredCount"]);f!=null&&g(a,["raiMediaFilteredCount"],f);const y=m(l,["raiMediaFilteredReasons"]);return y!=null&&g(a,["raiMediaFilteredReasons"],y),a}function sN(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["name"],r);const f=m(l,["metadata"]);f!=null&&g(a,["metadata"],f);const y=m(l,["done"]);y!=null&&g(a,["done"],y);const C=m(l,["error"]);C!=null&&g(a,["error"],C);const E=m(l,["response","generateVideoResponse"]);return E!=null&&g(a,["response"],uN(c,E)),a}function rN(c,l){const a={},r=m(l,["fps"]);r!=null&&g(a,["fps"],r);const f=m(l,["endOffset"]);f!=null&&g(a,["endOffset"],f);const y=m(l,["startOffset"]);return y!=null&&g(a,["startOffset"],y),a}function cN(c,l){const a={},r=m(l,["displayName"]);r!=null&&g(a,["displayName"],r);const f=m(l,["data"]);f!=null&&g(a,["data"],f);const y=m(l,["mimeType"]);return y!=null&&g(a,["mimeType"],y),a}function fN(c,l){const a={},r=m(l,["displayName"]);r!=null&&g(a,["displayName"],r);const f=m(l,["fileUri"]);f!=null&&g(a,["fileUri"],f);const y=m(l,["mimeType"]);return y!=null&&g(a,["mimeType"],y),a}function dN(c,l){const a={},r=m(l,["videoMetadata"]);r!=null&&g(a,["videoMetadata"],rN(c,r));const f=m(l,["thought"]);f!=null&&g(a,["thought"],f);const y=m(l,["inlineData"]);y!=null&&g(a,["inlineData"],cN(c,y));const C=m(l,["fileData"]);C!=null&&g(a,["fileData"],fN(c,C));const E=m(l,["thoughtSignature"]);E!=null&&g(a,["thoughtSignature"],E);const b=m(l,["codeExecutionResult"]);b!=null&&g(a,["codeExecutionResult"],b);const A=m(l,["executableCode"]);A!=null&&g(a,["executableCode"],A);const D=m(l,["functionCall"]);D!=null&&g(a,["functionCall"],D);const N=m(l,["functionResponse"]);N!=null&&g(a,["functionResponse"],N);const z=m(l,["text"]);return z!=null&&g(a,["text"],z),a}function hN(c,l){const a={},r=m(l,["parts"]);if(r!=null){let y=r;Array.isArray(y)&&(y=y.map(C=>dN(c,C))),g(a,["parts"],y)}const f=m(l,["role"]);return f!=null&&g(a,["role"],f),a}function mN(c,l){const a={},r=m(l,["citations"]);return r!=null&&g(a,["citations"],r),a}function pN(c,l){const a={},r=m(l,["content"]);r!=null&&g(a,["content"],hN(c,r));const f=m(l,["citationMetadata"]);f!=null&&g(a,["citationMetadata"],mN(c,f));const y=m(l,["finishMessage"]);y!=null&&g(a,["finishMessage"],y);const C=m(l,["finishReason"]);C!=null&&g(a,["finishReason"],C);const E=m(l,["avgLogprobs"]);E!=null&&g(a,["avgLogprobs"],E);const b=m(l,["groundingMetadata"]);b!=null&&g(a,["groundingMetadata"],b);const A=m(l,["index"]);A!=null&&g(a,["index"],A);const D=m(l,["logprobsResult"]);D!=null&&g(a,["logprobsResult"],D);const N=m(l,["safetyRatings"]);return N!=null&&g(a,["safetyRatings"],N),a}function t1(c,l){const a={},r=m(l,["candidates"]);if(r!=null){let A=r;Array.isArray(A)&&(A=A.map(D=>pN(c,D))),g(a,["candidates"],A)}const f=m(l,["createTime"]);f!=null&&g(a,["createTime"],f);const y=m(l,["responseId"]);y!=null&&g(a,["responseId"],y);const C=m(l,["modelVersion"]);C!=null&&g(a,["modelVersion"],C);const E=m(l,["promptFeedback"]);E!=null&&g(a,["promptFeedback"],E);const b=m(l,["usageMetadata"]);return b!=null&&g(a,["usageMetadata"],b),a}function gN(c,l){const a={},r=m(l,["truncated"]);r!=null&&g(a,["truncated"],r);const f=m(l,["token_count"]);return f!=null&&g(a,["tokenCount"],f),a}function yN(c,l){const a={},r=m(l,["values"]);r!=null&&g(a,["values"],r);const f=m(l,["statistics"]);return f!=null&&g(a,["statistics"],gN(c,f)),a}function vN(c,l){const a={},r=m(l,["billableCharacterCount"]);return r!=null&&g(a,["billableCharacterCount"],r),a}function SN(c,l){const a={},r=m(l,["predictions[]","embeddings"]);if(r!=null){let y=r;Array.isArray(y)&&(y=y.map(C=>yN(c,C))),g(a,["embeddings"],y)}const f=m(l,["metadata"]);return f!=null&&g(a,["metadata"],vN(c,f)),a}function TN(c,l){const a={},r=m(l,["gcsUri"]);r!=null&&g(a,["gcsUri"],r);const f=m(l,["bytesBase64Encoded"]);f!=null&&g(a,["imageBytes"],Zs(c,f));const y=m(l,["mimeType"]);return y!=null&&g(a,["mimeType"],y),a}function n1(c,l){const a={},r=m(l,["safetyAttributes","categories"]);r!=null&&g(a,["categories"],r);const f=m(l,["safetyAttributes","scores"]);f!=null&&g(a,["scores"],f);const y=m(l,["contentType"]);return y!=null&&g(a,["contentType"],y),a}function CT(c,l){const a={},r=m(l,["_self"]);r!=null&&g(a,["image"],TN(c,r));const f=m(l,["raiFilteredReason"]);f!=null&&g(a,["raiFilteredReason"],f);const y=m(l,["_self"]);y!=null&&g(a,["safetyAttributes"],n1(c,y));const C=m(l,["prompt"]);return C!=null&&g(a,["enhancedPrompt"],C),a}function CN(c,l){const a={},r=m(l,["predictions"]);if(r!=null){let y=r;Array.isArray(y)&&(y=y.map(C=>CT(c,C))),g(a,["generatedImages"],y)}const f=m(l,["positivePromptSafetyAttributes"]);return f!=null&&g(a,["positivePromptSafetyAttributes"],n1(c,f)),a}function EN(c,l){const a={},r=m(l,["predictions"]);if(r!=null){let f=r;Array.isArray(f)&&(f=f.map(y=>CT(c,y))),g(a,["generatedImages"],f)}return a}function _N(c,l){const a={},r=m(l,["predictions"]);if(r!=null){let f=r;Array.isArray(f)&&(f=f.map(y=>CT(c,y))),g(a,["generatedImages"],f)}return a}function AN(c,l){const a={},r=m(l,["endpoint"]);r!=null&&g(a,["name"],r);const f=m(l,["deployedModelId"]);return f!=null&&g(a,["deployedModelId"],f),a}function bN(c,l){const a={},r=m(l,["labels","google-vertex-llm-tuning-base-model-id"]);r!=null&&g(a,["baseModel"],r);const f=m(l,["createTime"]);f!=null&&g(a,["createTime"],f);const y=m(l,["updateTime"]);return y!=null&&g(a,["updateTime"],y),a}function MN(c,l){const a={},r=m(l,["checkpointId"]);r!=null&&g(a,["checkpointId"],r);const f=m(l,["epoch"]);f!=null&&g(a,["epoch"],f);const y=m(l,["step"]);return y!=null&&g(a,["step"],y),a}function ET(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["name"],r);const f=m(l,["displayName"]);f!=null&&g(a,["displayName"],f);const y=m(l,["description"]);y!=null&&g(a,["description"],y);const C=m(l,["versionId"]);C!=null&&g(a,["version"],C);const E=m(l,["deployedModels"]);if(E!=null){let z=E;Array.isArray(z)&&(z=z.map(Z=>AN(c,Z))),g(a,["endpoints"],z)}const b=m(l,["labels"]);b!=null&&g(a,["labels"],b);const A=m(l,["_self"]);A!=null&&g(a,["tunedModelInfo"],bN(c,A));const D=m(l,["defaultCheckpointId"]);D!=null&&g(a,["defaultCheckpointId"],D);const N=m(l,["checkpoints"]);if(N!=null){let z=N;Array.isArray(z)&&(z=z.map(Z=>MN(c,Z))),g(a,["checkpoints"],z)}return a}function RN(c,l){const a={},r=m(l,["nextPageToken"]);r!=null&&g(a,["nextPageToken"],r);const f=m(l,["_self"]);if(f!=null){let y=w_(c,f);Array.isArray(y)&&(y=y.map(C=>ET(c,C))),g(a,["models"],y)}return a}function DN(){return{}}function xN(c,l){const a={},r=m(l,["totalTokens"]);return r!=null&&g(a,["totalTokens"],r),a}function UN(c,l){const a={},r=m(l,["tokensInfo"]);return r!=null&&g(a,["tokensInfo"],r),a}function NN(c,l){const a={},r=m(l,["gcsUri"]);r!=null&&g(a,["uri"],r);const f=m(l,["bytesBase64Encoded"]);f!=null&&g(a,["videoBytes"],Zs(c,f));const y=m(l,["mimeType"]);return y!=null&&g(a,["mimeType"],y),a}function zN(c,l){const a={},r=m(l,["_self"]);return r!=null&&g(a,["video"],NN(c,r)),a}function ON(c,l){const a={},r=m(l,["videos"]);if(r!=null){let C=r;Array.isArray(C)&&(C=C.map(E=>zN(c,E))),g(a,["generatedVideos"],C)}const f=m(l,["raiMediaFilteredCount"]);f!=null&&g(a,["raiMediaFilteredCount"],f);const y=m(l,["raiMediaFilteredReasons"]);return y!=null&&g(a,["raiMediaFilteredReasons"],y),a}function wN(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["name"],r);const f=m(l,["metadata"]);f!=null&&g(a,["metadata"],f);const y=m(l,["done"]);y!=null&&g(a,["done"],y);const C=m(l,["error"]);C!=null&&g(a,["error"],C);const E=m(l,["response"]);return E!=null&&g(a,["response"],ON(c,E)),a}/**
175
399
  * @license
176
400
  * Copyright 2025 Google LLC
177
401
  * SPDX-License-Identifier: Apache-2.0
178
- */const v_="Content-Type",__="X-Server-Timeout",x_="User-Agent",Lr="x-goog-api-client",C_="google-genai-sdk/1.3.0",E_="v1beta1",T_="v1beta",pl=/^data: (.*)(?:\n\n|\r\r|\r\n\r\n)/;class hl extends Error{constructor(e,t){t?super(e,{cause:t}):super(e,{cause:new Error().stack}),this.message=e,this.name="ClientError"}}class Fr extends Error{constructor(e,t){t?super(e,{cause:t}):super(e,{cause:new Error().stack}),this.message=e,this.name="ServerError"}}class w_{constructor(e){var t,i;this.clientOptions=Object.assign(Object.assign({},e),{project:e.project,location:e.location,apiKey:e.apiKey,vertexai:e.vertexai});const r={};this.clientOptions.vertexai?(r.apiVersion=(t=this.clientOptions.apiVersion)!==null&&t!==void 0?t:E_,r.baseUrl=this.baseUrlFromProjectLocation(),this.normalizeAuthParameters()):(r.apiVersion=(i=this.clientOptions.apiVersion)!==null&&i!==void 0?i:T_,r.baseUrl="https://generativelanguage.googleapis.com/"),r.headers=this.getDefaultHeaders(),this.clientOptions.httpOptions=r,e.httpOptions&&(this.clientOptions.httpOptions=this.patchHttpOptions(r,e.httpOptions))}baseUrlFromProjectLocation(){return this.clientOptions.project&&this.clientOptions.location&&this.clientOptions.location!=="global"?`https://${this.clientOptions.location}-aiplatform.googleapis.com/`:"https://aiplatform.googleapis.com/"}normalizeAuthParameters(){if(this.clientOptions.project&&this.clientOptions.location){this.clientOptions.apiKey=void 0;return}this.clientOptions.project=void 0,this.clientOptions.location=void 0}isVertexAI(){var e;return(e=this.clientOptions.vertexai)!==null&&e!==void 0?e:!1}getProject(){return this.clientOptions.project}getLocation(){return this.clientOptions.location}getApiVersion(){if(this.clientOptions.httpOptions&&this.clientOptions.httpOptions.apiVersion!==void 0)return this.clientOptions.httpOptions.apiVersion;throw new Error("API version is not set.")}getBaseUrl(){if(this.clientOptions.httpOptions&&this.clientOptions.httpOptions.baseUrl!==void 0)return this.clientOptions.httpOptions.baseUrl;throw new Error("Base URL is not set.")}getRequestUrl(){return this.getRequestUrlInternal(this.clientOptions.httpOptions)}getHeaders(){if(this.clientOptions.httpOptions&&this.clientOptions.httpOptions.headers!==void 0)return this.clientOptions.httpOptions.headers;throw new Error("Headers are not set.")}getRequestUrlInternal(e){if(!e||e.baseUrl===void 0||e.apiVersion===void 0)throw new Error("HTTP options are not correctly set.");const i=[e.baseUrl.endsWith("/")?e.baseUrl.slice(0,-1):e.baseUrl];return e.apiVersion&&e.apiVersion!==""&&i.push(e.apiVersion),i.join("/")}getBaseResourcePath(){return`projects/${this.clientOptions.project}/locations/${this.clientOptions.location}`}getApiKey(){return this.clientOptions.apiKey}getWebsocketBaseUrl(){const e=this.getBaseUrl(),t=new URL(e);return t.protocol=t.protocol=="http:"?"ws":"wss",t.toString()}setBaseUrl(e){if(this.clientOptions.httpOptions)this.clientOptions.httpOptions.baseUrl=e;else throw new Error("HTTP options are not correctly set.")}constructUrl(e,t,i){const r=[this.getRequestUrlInternal(t)];return i&&r.push(this.getBaseResourcePath()),e!==""&&r.push(e),new URL(`${r.join("/")}`)}shouldPrependVertexProjectPath(e){return!(this.clientOptions.apiKey||!this.clientOptions.vertexai||e.path.startsWith("projects/")||e.httpMethod==="GET"&&e.path.startsWith("publishers/google/models"))}async request(e){let t=this.clientOptions.httpOptions;e.httpOptions&&(t=this.patchHttpOptions(this.clientOptions.httpOptions,e.httpOptions));const i=this.shouldPrependVertexProjectPath(e),r=this.constructUrl(e.path,t,i);if(e.queryParams)for(const[l,u]of Object.entries(e.queryParams))r.searchParams.append(l,String(u));let o={};if(e.httpMethod==="GET"){if(e.body&&e.body!=="{}")throw new Error("Request body should be empty for GET request, but got non empty request body")}else o.body=e.body;return o=await this.includeExtraHttpOptionsToRequestInit(o,t,e.abortSignal),this.unaryApiCall(r,o,e.httpMethod)}patchHttpOptions(e,t){const i=JSON.parse(JSON.stringify(e));for(const[r,o]of Object.entries(t))typeof o=="object"?i[r]=Object.assign(Object.assign({},i[r]),o):o!==void 0&&(i[r]=o);return i}async requestStream(e){let t=this.clientOptions.httpOptions;e.httpOptions&&(t=this.patchHttpOptions(this.clientOptions.httpOptions,e.httpOptions));const i=this.shouldPrependVertexProjectPath(e),r=this.constructUrl(e.path,t,i);(!r.searchParams.has("alt")||r.searchParams.get("alt")!=="sse")&&r.searchParams.set("alt","sse");let o={};return o.body=e.body,o=await this.includeExtraHttpOptionsToRequestInit(o,t,e.abortSignal),this.streamApiCall(r,o,e.httpMethod)}async includeExtraHttpOptionsToRequestInit(e,t,i){if(t&&t.timeout||i){const r=new AbortController,o=r.signal;t.timeout&&(t==null?void 0:t.timeout)>0&&setTimeout(()=>r.abort(),t.timeout),i&&i.addEventListener("abort",()=>{r.abort()}),e.signal=o}return e.headers=await this.getHeadersInternal(t),e}async unaryApiCall(e,t,i){return this.apiCall(e.toString(),Object.assign(Object.assign({},t),{method:i})).then(async r=>(await ml(r),new Ar(r))).catch(r=>{throw r instanceof Error?r:new Error(JSON.stringify(r))})}async streamApiCall(e,t,i){return this.apiCall(e.toString(),Object.assign(Object.assign({},t),{method:i})).then(async r=>(await ml(r),this.processStreamResponse(r))).catch(r=>{throw r instanceof Error?r:new Error(JSON.stringify(r))})}processStreamResponse(e){var t;return mn(this,arguments,function*(){const r=(t=e==null?void 0:e.body)===null||t===void 0?void 0:t.getReader(),o=new TextDecoder("utf-8");if(!r)throw new Error("Response body is empty");try{let l="";for(;;){const{done:u,value:c}=yield ge(r.read());if(u){if(l.trim().length>0)throw new Error("Incomplete JSON segment at the end");break}const f=o.decode(c);try{const h=JSON.parse(f);if("error"in h){const g=JSON.parse(JSON.stringify(h.error)),x=g.status,w=g.code,b=`got status: ${x}. ${JSON.stringify(h)}`;if(w>=400&&w<500)throw new hl(b);if(w>=500&&w<600)throw new Fr(b)}}catch(h){const g=h;if(g.name==="ClientError"||g.name==="ServerError")throw h}l+=f;let d=l.match(pl);for(;d;){const h=d[1];try{const g=new Response(h,{headers:e==null?void 0:e.headers,status:e==null?void 0:e.status,statusText:e==null?void 0:e.statusText});yield yield ge(new Ar(g)),l=l.slice(d[0].length),d=l.match(pl)}catch(g){throw new Error(`exception parsing stream chunk ${h}. ${g}`)}}}}finally{r.releaseLock()}})}async apiCall(e,t){return fetch(e,t).catch(i=>{throw new Error(`exception ${i} sending request`)})}getDefaultHeaders(){const e={},t=C_+" "+this.clientOptions.userAgentExtra;return e[x_]=t,e[Lr]=t,e[v_]="application/json",e}async getHeadersInternal(e){const t=new Headers;if(e&&e.headers){for(const[i,r]of Object.entries(e.headers))t.append(i,r);e.timeout&&e.timeout>0&&t.append(__,String(Math.ceil(e.timeout/1e3)))}return await this.clientOptions.auth.addAuthHeaders(t),t}async uploadFile(e,t){var i;const r={};t!=null&&(r.mimeType=t.mimeType,r.name=t.name,r.displayName=t.displayName),r.name&&!r.name.startsWith("files/")&&(r.name=`files/${r.name}`);const o=this.clientOptions.uploader,l=await o.stat(e);r.sizeBytes=String(l.size);const u=(i=t==null?void 0:t.mimeType)!==null&&i!==void 0?i:l.type;if(u===void 0||u==="")throw new Error("Can not determine mimeType. Please provide mimeType in the config.");r.mimeType=u;const c=await this.fetchUploadUrl(r,t);return o.upload(e,c,this)}async downloadFile(e){await this.clientOptions.downloader.download(e,this)}async fetchUploadUrl(e,t){var i;let r={};t!=null&&t.httpOptions?r=t.httpOptions:r={apiVersion:"",headers:{"Content-Type":"application/json","X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${e.sizeBytes}`,"X-Goog-Upload-Header-Content-Type":`${e.mimeType}`}};const o={file:e},l=await this.request({path:X("upload/v1beta/files",o._url),body:JSON.stringify(o),httpMethod:"POST",httpOptions:r});if(!l||!(l!=null&&l.headers))throw new Error("Server did not return an HttpResponse or the returned HttpResponse did not have headers.");const u=(i=l==null?void 0:l.headers)===null||i===void 0?void 0:i["x-goog-upload-url"];if(u===void 0)throw new Error("Failed to get upload url. Server did not return the x-google-upload-url in the headers");return u}}async function ml(n){var e;if(n===void 0)throw new Fr("response is undefined");if(!n.ok){const t=n.status,i=n.statusText;let r;!((e=n.headers.get("content-type"))===null||e===void 0)&&e.includes("application/json")?r=await n.json():r={error:{message:await n.text(),code:n.status,status:n.statusText}};const o=`got status: ${t} ${i}. ${JSON.stringify(r)}`;throw t>=400&&t<500?new hl(o):t>=500&&t<600?new Fr(o):new Error(o)}}/**
402
+ */const VN="Content-Type",LN="X-Server-Timeout",HN="User-Agent",_T="x-goog-api-client",BN="google-genai-sdk/1.3.0",qN="v1beta1",GN="v1beta",l1=/^data: (.*)(?:\n\n|\r\r|\r\n\r\n)/;class a1 extends Error{constructor(l,a){a?super(l,{cause:a}):super(l,{cause:new Error().stack}),this.message=l,this.name="ClientError"}}class AT extends Error{constructor(l,a){a?super(l,{cause:a}):super(l,{cause:new Error().stack}),this.message=l,this.name="ServerError"}}class YN{constructor(l){var a,r;this.clientOptions=Object.assign(Object.assign({},l),{project:l.project,location:l.location,apiKey:l.apiKey,vertexai:l.vertexai});const f={};this.clientOptions.vertexai?(f.apiVersion=(a=this.clientOptions.apiVersion)!==null&&a!==void 0?a:qN,f.baseUrl=this.baseUrlFromProjectLocation(),this.normalizeAuthParameters()):(f.apiVersion=(r=this.clientOptions.apiVersion)!==null&&r!==void 0?r:GN,f.baseUrl="https://generativelanguage.googleapis.com/"),f.headers=this.getDefaultHeaders(),this.clientOptions.httpOptions=f,l.httpOptions&&(this.clientOptions.httpOptions=this.patchHttpOptions(f,l.httpOptions))}baseUrlFromProjectLocation(){return this.clientOptions.project&&this.clientOptions.location&&this.clientOptions.location!=="global"?`https://${this.clientOptions.location}-aiplatform.googleapis.com/`:"https://aiplatform.googleapis.com/"}normalizeAuthParameters(){if(this.clientOptions.project&&this.clientOptions.location){this.clientOptions.apiKey=void 0;return}this.clientOptions.project=void 0,this.clientOptions.location=void 0}isVertexAI(){var l;return(l=this.clientOptions.vertexai)!==null&&l!==void 0?l:!1}getProject(){return this.clientOptions.project}getLocation(){return this.clientOptions.location}getApiVersion(){if(this.clientOptions.httpOptions&&this.clientOptions.httpOptions.apiVersion!==void 0)return this.clientOptions.httpOptions.apiVersion;throw new Error("API version is not set.")}getBaseUrl(){if(this.clientOptions.httpOptions&&this.clientOptions.httpOptions.baseUrl!==void 0)return this.clientOptions.httpOptions.baseUrl;throw new Error("Base URL is not set.")}getRequestUrl(){return this.getRequestUrlInternal(this.clientOptions.httpOptions)}getHeaders(){if(this.clientOptions.httpOptions&&this.clientOptions.httpOptions.headers!==void 0)return this.clientOptions.httpOptions.headers;throw new Error("Headers are not set.")}getRequestUrlInternal(l){if(!l||l.baseUrl===void 0||l.apiVersion===void 0)throw new Error("HTTP options are not correctly set.");const r=[l.baseUrl.endsWith("/")?l.baseUrl.slice(0,-1):l.baseUrl];return l.apiVersion&&l.apiVersion!==""&&r.push(l.apiVersion),r.join("/")}getBaseResourcePath(){return`projects/${this.clientOptions.project}/locations/${this.clientOptions.location}`}getApiKey(){return this.clientOptions.apiKey}getWebsocketBaseUrl(){const l=this.getBaseUrl(),a=new URL(l);return a.protocol=a.protocol=="http:"?"ws":"wss",a.toString()}setBaseUrl(l){if(this.clientOptions.httpOptions)this.clientOptions.httpOptions.baseUrl=l;else throw new Error("HTTP options are not correctly set.")}constructUrl(l,a,r){const f=[this.getRequestUrlInternal(a)];return r&&f.push(this.getBaseResourcePath()),l!==""&&f.push(l),new URL(`${f.join("/")}`)}shouldPrependVertexProjectPath(l){return!(this.clientOptions.apiKey||!this.clientOptions.vertexai||l.path.startsWith("projects/")||l.httpMethod==="GET"&&l.path.startsWith("publishers/google/models"))}async request(l){let a=this.clientOptions.httpOptions;l.httpOptions&&(a=this.patchHttpOptions(this.clientOptions.httpOptions,l.httpOptions));const r=this.shouldPrependVertexProjectPath(l),f=this.constructUrl(l.path,a,r);if(l.queryParams)for(const[C,E]of Object.entries(l.queryParams))f.searchParams.append(C,String(E));let y={};if(l.httpMethod==="GET"){if(l.body&&l.body!=="{}")throw new Error("Request body should be empty for GET request, but got non empty request body")}else y.body=l.body;return y=await this.includeExtraHttpOptionsToRequestInit(y,a,l.abortSignal),this.unaryApiCall(f,y,l.httpMethod)}patchHttpOptions(l,a){const r=JSON.parse(JSON.stringify(l));for(const[f,y]of Object.entries(a))typeof y=="object"?r[f]=Object.assign(Object.assign({},r[f]),y):y!==void 0&&(r[f]=y);return r}async requestStream(l){let a=this.clientOptions.httpOptions;l.httpOptions&&(a=this.patchHttpOptions(this.clientOptions.httpOptions,l.httpOptions));const r=this.shouldPrependVertexProjectPath(l),f=this.constructUrl(l.path,a,r);(!f.searchParams.has("alt")||f.searchParams.get("alt")!=="sse")&&f.searchParams.set("alt","sse");let y={};return y.body=l.body,y=await this.includeExtraHttpOptionsToRequestInit(y,a,l.abortSignal),this.streamApiCall(f,y,l.httpMethod)}async includeExtraHttpOptionsToRequestInit(l,a,r){if(a&&a.timeout||r){const f=new AbortController,y=f.signal;a.timeout&&(a==null?void 0:a.timeout)>0&&setTimeout(()=>f.abort(),a.timeout),r&&r.addEventListener("abort",()=>{f.abort()}),l.signal=y}return l.headers=await this.getHeadersInternal(a),l}async unaryApiCall(l,a,r){return this.apiCall(l.toString(),Object.assign(Object.assign({},a),{method:r})).then(async f=>(await i1(f),new mT(f))).catch(f=>{throw f instanceof Error?f:new Error(JSON.stringify(f))})}async streamApiCall(l,a,r){return this.apiCall(l.toString(),Object.assign(Object.assign({},a),{method:r})).then(async f=>(await i1(f),this.processStreamResponse(f))).catch(f=>{throw f instanceof Error?f:new Error(JSON.stringify(f))})}processStreamResponse(l){var a;return Dd(this,arguments,function*(){const f=(a=l==null?void 0:l.body)===null||a===void 0?void 0:a.getReader(),y=new TextDecoder("utf-8");if(!f)throw new Error("Response body is empty");try{let C="";for(;;){const{done:E,value:b}=yield nn(f.read());if(E){if(C.trim().length>0)throw new Error("Incomplete JSON segment at the end");break}const A=y.decode(b);try{const N=JSON.parse(A);if("error"in N){const z=JSON.parse(JSON.stringify(N.error)),Z=z.status,F=z.code,ie=`got status: ${Z}. ${JSON.stringify(N)}`;if(F>=400&&F<500)throw new a1(ie);if(F>=500&&F<600)throw new AT(ie)}}catch(N){const z=N;if(z.name==="ClientError"||z.name==="ServerError")throw N}C+=A;let D=C.match(l1);for(;D;){const N=D[1];try{const z=new Response(N,{headers:l==null?void 0:l.headers,status:l==null?void 0:l.status,statusText:l==null?void 0:l.statusText});yield yield nn(new mT(z)),C=C.slice(D[0].length),D=C.match(l1)}catch(z){throw new Error(`exception parsing stream chunk ${N}. ${z}`)}}}}finally{f.releaseLock()}})}async apiCall(l,a){return fetch(l,a).catch(r=>{throw new Error(`exception ${r} sending request`)})}getDefaultHeaders(){const l={},a=BN+" "+this.clientOptions.userAgentExtra;return l[HN]=a,l[_T]=a,l[VN]="application/json",l}async getHeadersInternal(l){const a=new Headers;if(l&&l.headers){for(const[r,f]of Object.entries(l.headers))a.append(r,f);l.timeout&&l.timeout>0&&a.append(LN,String(Math.ceil(l.timeout/1e3)))}return await this.clientOptions.auth.addAuthHeaders(a),a}async uploadFile(l,a){var r;const f={};a!=null&&(f.mimeType=a.mimeType,f.name=a.name,f.displayName=a.displayName),f.name&&!f.name.startsWith("files/")&&(f.name=`files/${f.name}`);const y=this.clientOptions.uploader,C=await y.stat(l);f.sizeBytes=String(C.size);const E=(r=a==null?void 0:a.mimeType)!==null&&r!==void 0?r:C.type;if(E===void 0||E==="")throw new Error("Can not determine mimeType. Please provide mimeType in the config.");f.mimeType=E;const b=await this.fetchUploadUrl(f,a);return y.upload(l,b,this)}async downloadFile(l){await this.clientOptions.downloader.download(l,this)}async fetchUploadUrl(l,a){var r;let f={};a!=null&&a.httpOptions?f=a.httpOptions:f={apiVersion:"",headers:{"Content-Type":"application/json","X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${l.sizeBytes}`,"X-Goog-Upload-Header-Content-Type":`${l.mimeType}`}};const y={file:l},C=await this.request({path:Ze("upload/v1beta/files",y._url),body:JSON.stringify(y),httpMethod:"POST",httpOptions:f});if(!C||!(C!=null&&C.headers))throw new Error("Server did not return an HttpResponse or the returned HttpResponse did not have headers.");const E=(r=C==null?void 0:C.headers)===null||r===void 0?void 0:r["x-goog-upload-url"];if(E===void 0)throw new Error("Failed to get upload url. Server did not return the x-google-upload-url in the headers");return E}}async function i1(c){var l;if(c===void 0)throw new AT("response is undefined");if(!c.ok){const a=c.status,r=c.statusText;let f;!((l=c.headers.get("content-type"))===null||l===void 0)&&l.includes("application/json")?f=await c.json():f={error:{message:await c.text(),code:c.status,status:c.statusText}};const y=`got status: ${a} ${r}. ${JSON.stringify(f)}`;throw a>=400&&a<500?new a1(y):a>=500&&a<600?new AT(y):new Error(y)}}/**
179
403
  * @license
180
404
  * Copyright 2025 Google LLC
181
405
  * SPDX-License-Identifier: Apache-2.0
182
- */const S_="mcp_used/unknown";function gl(n){for(const e of n)if(Vr(e)||typeof e=="object"&&"inputSchema"in e)return!0;return!1}function yl(n){var e;const t=(e=n[Lr])!==null&&e!==void 0?e:"";n[Lr]=(t+` ${S_}`).trimStart()}function A_(n){var e,t,i;return(i=(t=(e=n.config)===null||e===void 0?void 0:e.tools)===null||t===void 0?void 0:t.some(r=>Vr(r)))!==null&&i!==void 0?i:!1}function b_(n){var e,t,i;return(i=(t=(e=n.config)===null||e===void 0?void 0:e.tools)===null||t===void 0?void 0:t.some(r=>!Vr(r)))!==null&&i!==void 0?i:!1}function Vr(n){return n!==null&&typeof n=="object"&&n instanceof Br}function R_(n,e=100){return mn(this,arguments,function*(){let i,r=0;for(;r<e;){const o=yield ge(n.listTools({cursor:i}));for(const l of o.tools)yield yield ge(l),r++;if(!o.nextCursor)break;i=o.nextCursor}})}class Br{constructor(e=[],t){this.mcpTools=[],this.functionNameToMcpClient={},this.mcpClients=e,this.config=t}static create(e,t){return new Br(e,t)}async initialize(){var e,t,i,r;if(this.mcpTools.length>0)return;const o={},l=[];for(const d of this.mcpClients)try{for(var u=!0,c=(t=void 0,Un(R_(d))),f;f=await c.next(),e=f.done,!e;u=!0){r=f.value,u=!1;const h=r;l.push(h);const g=h.name;if(o[g])throw new Error(`Duplicate function name ${g} found in MCP tools. Please ensure function names are unique.`);o[g]=d}}catch(h){t={error:h}}finally{try{!u&&!e&&(i=c.return)&&await i.call(c)}finally{if(t)throw t.error}}this.mcpTools=l,this.functionNameToMcpClient=o}async tool(){return await this.initialize(),Fh(this.mcpTools,this.config)}async callTool(e){await this.initialize();const t=[];for(const i of e)if(i.name in this.functionNameToMcpClient){const o=await this.functionNameToMcpClient[i.name].callTool({name:i.name,arguments:i.args});t.push({functionResponse:{name:i.name,response:o.isError?{error:o}:o}})}return t}}/**
406
+ */const IN="mcp_used/unknown";function o1(c){for(const l of c)if(bT(l)||typeof l=="object"&&"inputSchema"in l)return!0;return!1}function u1(c){var l;const a=(l=c[_T])!==null&&l!==void 0?l:"";c[_T]=(a+` ${IN}`).trimStart()}function ZN(c){var l,a,r;return(r=(a=(l=c.config)===null||l===void 0?void 0:l.tools)===null||a===void 0?void 0:a.some(f=>bT(f)))!==null&&r!==void 0?r:!1}function kN(c){var l,a,r;return(r=(a=(l=c.config)===null||l===void 0?void 0:l.tools)===null||a===void 0?void 0:a.some(f=>!bT(f)))!==null&&r!==void 0?r:!1}function bT(c){return c!==null&&typeof c=="object"&&c instanceof MT}function XN(c,l=100){return Dd(this,arguments,function*(){let r,f=0;for(;f<l;){const y=yield nn(c.listTools({cursor:r}));for(const C of y.tools)yield yield nn(C),f++;if(!y.nextCursor)break;r=y.nextCursor}})}class MT{constructor(l=[],a){this.mcpTools=[],this.functionNameToMcpClient={},this.mcpClients=l,this.config=a}static create(l,a){return new MT(l,a)}async initialize(){var l,a,r,f;if(this.mcpTools.length>0)return;const y={},C=[];for(const D of this.mcpClients)try{for(var E=!0,b=(a=void 0,cp(XN(D))),A;A=await b.next(),l=A.done,!l;E=!0){f=A.value,E=!1;const N=f;C.push(N);const z=N.name;if(y[z])throw new Error(`Duplicate function name ${z} found in MCP tools. Please ensure function names are unique.`);y[z]=D}}catch(N){a={error:N}}finally{try{!E&&!l&&(r=b.return)&&await r.call(b)}finally{if(a)throw a.error}}this.mcpTools=C,this.functionNameToMcpClient=y}async tool(){return await this.initialize(),jM(this.mcpTools,this.config)}async callTool(l){await this.initialize();const a=[];for(const r of l)if(r.name in this.functionNameToMcpClient){const y=await this.functionNameToMcpClient[r.name].callTool({name:r.name,arguments:r.args});a.push({functionResponse:{name:r.name,response:y.isError?{error:y}:y}})}return a}}/**
183
407
  * @license
184
408
  * Copyright 2025 Google LLC
185
409
  * SPDX-License-Identifier: Apache-2.0
186
- */async function M_(n,e,t){const i=new Th;let r;t.data instanceof Blob?r=JSON.parse(await t.data.text()):r=JSON.parse(t.data);const o=qy(n,r);Object.assign(i,o),e(i)}class I_{constructor(e,t,i){this.apiClient=e,this.auth=t,this.webSocketFactory=i}async connect(e){var t,i;if(this.apiClient.isVertexAI())throw new Error("Live music is not supported for Vertex AI.");console.warn("Live music generation is experimental and may change in future versions.");const r=this.apiClient.getWebsocketBaseUrl(),o=this.apiClient.getApiVersion(),l=N_(this.apiClient.getDefaultHeaders()),u=this.apiClient.getApiKey(),c=`${r}/ws/google.ai.generativelanguage.${o}.GenerativeService.BidiGenerateMusic?key=${u}`;let f=()=>{};const d=new Promise(k=>{f=k}),h=e.callbacks,g=function(){f({})},x=this.apiClient,w={onopen:g,onmessage:k=>{M_(x,h.onmessage,k)},onerror:(t=h==null?void 0:h.onerror)!==null&&t!==void 0?t:function(k){},onclose:(i=h==null?void 0:h.onclose)!==null&&i!==void 0?i:function(k){}},b=this.webSocketFactory.create(c,k_(l),w);b.connect(),await d;const D=pe(this.apiClient,e.model),F=tl(this.apiClient,{model:D}),T=Ir(this.apiClient,{setup:F});return b.send(JSON.stringify(T)),new P_(b,this.apiClient)}}class P_{constructor(e,t){this.conn=e,this.apiClient=t}async setWeightedPrompts(e){if(!e.weightedPrompts||Object.keys(e.weightedPrompts).length===0)throw new Error("Weighted prompts must be set and contain at least one entry.");const t=iy(this.apiClient,e),i=nl(this.apiClient,t);this.conn.send(JSON.stringify({clientContent:i}))}async setMusicGenerationConfig(e){e.musicGenerationConfig||(e.musicGenerationConfig={});const t=ry(this.apiClient,e),i=Ir(this.apiClient,t);this.conn.send(JSON.stringify(i))}sendPlaybackControl(e){const t=Ir(this.apiClient,{playbackControl:e});this.conn.send(JSON.stringify(t))}play(){this.sendPlaybackControl(dn.PLAY)}pause(){this.sendPlaybackControl(dn.PAUSE)}stop(){this.sendPlaybackControl(dn.STOP)}resetContext(){this.sendPlaybackControl(dn.RESET_CONTEXT)}close(){this.conn.close()}}function k_(n){const e={};return n.forEach((t,i)=>{e[i]=t}),e}function N_(n){const e=new Headers;for(const[t,i]of Object.entries(n))e.append(t,i);return e}/**
410
+ */async function QN(c,l,a){const r=new GM;let f;a.data instanceof Blob?f=JSON.parse(await a.data.text()):f=JSON.parse(a.data);const y=ox(c,f);Object.assign(r,y),l(r)}class JN{constructor(l,a,r){this.apiClient=l,this.auth=a,this.webSocketFactory=r}async connect(l){var a,r;if(this.apiClient.isVertexAI())throw new Error("Live music is not supported for Vertex AI.");console.warn("Live music generation is experimental and may change in future versions.");const f=this.apiClient.getWebsocketBaseUrl(),y=this.apiClient.getApiVersion(),C=$N(this.apiClient.getDefaultHeaders()),E=this.apiClient.getApiKey(),b=`${f}/ws/google.ai.generativelanguage.${y}.GenerativeService.BidiGenerateMusic?key=${E}`;let A=()=>{};const D=new Promise(me=>{A=me}),N=l.callbacks,z=function(){A({})},Z=this.apiClient,F={onopen:z,onmessage:me=>{QN(Z,N.onmessage,me)},onerror:(a=N==null?void 0:N.onerror)!==null&&a!==void 0?a:function(me){},onclose:(r=N==null?void 0:N.onclose)!==null&&r!==void 0?r:function(me){}},ie=this.webSocketFactory.create(b,FN(C),F);ie.connect(),await D;const se=Kt(this.apiClient,l.model),fe=X_(this.apiClient,{model:se}),de=vT(this.apiClient,{setup:fe});return ie.send(JSON.stringify(de)),new KN(ie,this.apiClient)}}class KN{constructor(l,a){this.conn=l,this.apiClient=a}async setWeightedPrompts(l){if(!l.weightedPrompts||Object.keys(l.weightedPrompts).length===0)throw new Error("Weighted prompts must be set and contain at least one entry.");const a=T2(this.apiClient,l),r=Q_(this.apiClient,a);this.conn.send(JSON.stringify({clientContent:r}))}async setMusicGenerationConfig(l){l.musicGenerationConfig||(l.musicGenerationConfig={});const a=C2(this.apiClient,l),r=vT(this.apiClient,a);this.conn.send(JSON.stringify(r))}sendPlaybackControl(l){const a=vT(this.apiClient,{playbackControl:l});this.conn.send(JSON.stringify(a))}play(){this.sendPlaybackControl(bd.PLAY)}pause(){this.sendPlaybackControl(bd.PAUSE)}stop(){this.sendPlaybackControl(bd.STOP)}resetContext(){this.sendPlaybackControl(bd.RESET_CONTEXT)}close(){this.conn.close()}}function FN(c){const l={};return c.forEach((a,r)=>{l[r]=a}),l}function $N(c){const l=new Headers;for(const[a,r]of Object.entries(c))l.append(a,r);return l}/**
187
411
  * @license
188
412
  * Copyright 2025 Google LLC
189
413
  * SPDX-License-Identifier: Apache-2.0
190
- */const D_="FunctionResponse request must have an `id` field from the response of a ToolCall.FunctionalCalls in Google AI.";async function L_(n,e,t){const i=new Eh;let r;if(t.data instanceof Blob?r=JSON.parse(await t.data.text()):r=JSON.parse(t.data),n.isVertexAI()){const o=Dy(n,r);Object.assign(i,o)}else{const o=Ny(n,r);Object.assign(i,o)}e(i)}class F_{constructor(e,t,i){this.apiClient=e,this.auth=t,this.webSocketFactory=i,this.music=new I_(this.apiClient,this.auth,this.webSocketFactory)}async connect(e){var t,i,r,o,l,u;const c=this.apiClient.getWebsocketBaseUrl(),f=this.apiClient.getApiVersion();let d;const h=this.apiClient.getDefaultHeaders();e.config&&e.config.tools&&gl(e.config.tools)&&yl(h);const g=U_(h);if(this.apiClient.isVertexAI())d=`${c}/ws/google.cloud.aiplatform.${f}.LlmBidiService/BidiGenerateContent`,await this.auth.addAuthHeaders(g);else{const C=this.apiClient.getApiKey();let P="BidiGenerateContent",O="key";C!=null&&C.startsWith("auth_tokens/")&&(console.warn("Warning: Ephemeral token support is experimental and may change in future versions."),P="BidiGenerateContentConstrained",O="access_token"),d=`${c}/ws/google.ai.generativelanguage.${f}.GenerativeService.${P}?${O}=${C}`}let x=()=>{};const w=new Promise(C=>{x=C}),b=e.callbacks,D=function(){var C;(C=b==null?void 0:b.onopen)===null||C===void 0||C.call(b),x({})},F=this.apiClient,T={onopen:D,onmessage:C=>{L_(F,b.onmessage,C)},onerror:(t=b==null?void 0:b.onerror)!==null&&t!==void 0?t:function(C){},onclose:(i=b==null?void 0:b.onclose)!==null&&i!==void 0?i:function(C){}},k=this.webSocketFactory.create(d,O_(g),T);k.connect(),await w;let A=pe(this.apiClient,e.model);if(this.apiClient.isVertexAI()&&A.startsWith("publishers/")){const C=this.apiClient.getProject(),P=this.apiClient.getLocation();A=`projects/${C}/locations/${P}/`+A}let S={};this.apiClient.isVertexAI()&&((r=e.config)===null||r===void 0?void 0:r.responseModalities)===void 0&&(e.config===void 0?e.config={responseModalities:[Ti.AUDIO]}:e.config.responseModalities=[Ti.AUDIO]),!((o=e.config)===null||o===void 0)&&o.generationConfig&&console.warn("Setting `LiveConnectConfig.generation_config` is deprecated, please set the fields on `LiveConnectConfig` directly. This will become an error in a future version (not before Q3 2025).");const I=(u=(l=e.config)===null||l===void 0?void 0:l.tools)!==null&&u!==void 0?u:[],R=[];for(const C of I)if(this.isCallableTool(C)){const P=C;R.push(await P.tool())}else R.push(C);R.length>0&&(e.config.tools=R);const M={model:A,config:e.config,callbacks:e.callbacks};return this.apiClient.isVertexAI()?S=Zg(this.apiClient,M):S=Jg(this.apiClient,M),delete S.config,k.send(JSON.stringify(S)),new B_(k,this.apiClient)}isCallableTool(e){return"callTool"in e&&typeof e.callTool=="function"}}const V_={turnComplete:!0};class B_{constructor(e,t){this.conn=e,this.apiClient=t}tLiveClientContent(e,t){if(t.turns!==null&&t.turns!==void 0){let i=[];try{i=Xe(e,t.turns),e.isVertexAI()?i=i.map(r=>gn(e,r)):i=i.map(r=>ki(e,r))}catch{throw new Error(`Failed to parse client content "turns", type: '${typeof t.turns}'`)}return{clientContent:{turns:i,turnComplete:t.turnComplete}}}return{clientContent:{turnComplete:t.turnComplete}}}tLiveClienttToolResponse(e,t){let i=[];if(t.functionResponses==null)throw new Error("functionResponses is required.");if(Array.isArray(t.functionResponses)?i=t.functionResponses:i=[t.functionResponses],i.length===0)throw new Error("functionResponses is required.");for(const o of i){if(typeof o!="object"||o===null||!("name"in o)||!("response"in o))throw new Error(`Could not parse function response, type '${typeof o}'.`);if(!e.isVertexAI()&&!("id"in o))throw new Error(D_)}return{toolResponse:{functionResponses:i}}}sendClientContent(e){e=Object.assign(Object.assign({},V_),e);const t=this.tLiveClientContent(this.apiClient,e);this.conn.send(JSON.stringify(t))}sendRealtimeInput(e){let t={};this.apiClient.isVertexAI()?t={realtimeInput:ny(this.apiClient,e)}:t={realtimeInput:ty(this.apiClient,e)},this.conn.send(JSON.stringify(t))}sendToolResponse(e){if(e.functionResponses==null)throw new Error("Tool response parameters are required.");const t=this.tLiveClienttToolResponse(this.apiClient,e);this.conn.send(JSON.stringify(t))}close(){this.conn.close()}}function O_(n){const e={};return n.forEach((t,i)=>{e[i]=t}),e}function U_(n){const e=new Headers;for(const[t,i]of Object.entries(n))e.append(t,i);return e}/**
414
+ */const PN="FunctionResponse request must have an `id` field from the response of a ToolCall.FunctionalCalls in Google AI.";async function WN(c,l,a){const r=new qM;let f;if(a.data instanceof Blob?f=JSON.parse(await a.data.text()):f=JSON.parse(a.data),c.isVertexAI()){const y=P2(c,f);Object.assign(r,y)}else{const y=$2(c,f);Object.assign(r,y)}l(r)}class jN{constructor(l,a,r){this.apiClient=l,this.auth=a,this.webSocketFactory=r,this.music=new JN(this.apiClient,this.auth,this.webSocketFactory)}async connect(l){var a,r,f,y,C,E;const b=this.apiClient.getWebsocketBaseUrl(),A=this.apiClient.getApiVersion();let D;const N=this.apiClient.getDefaultHeaders();l.config&&l.config.tools&&o1(l.config.tools)&&u1(N);const z=l3(N);if(this.apiClient.isVertexAI())D=`${b}/ws/google.cloud.aiplatform.${A}.LlmBidiService/BidiGenerateContent`,await this.auth.addAuthHeaders(z);else{const De=this.apiClient.getApiKey();let ue="BidiGenerateContent",ht="key";De!=null&&De.startsWith("auth_tokens/")&&(console.warn("Warning: Ephemeral token support is experimental and may change in future versions."),ue="BidiGenerateContentConstrained",ht="access_token"),D=`${b}/ws/google.ai.generativelanguage.${A}.GenerativeService.${ue}?${ht}=${De}`}let Z=()=>{};const F=new Promise(De=>{Z=De}),ie=l.callbacks,se=function(){var De;(De=ie==null?void 0:ie.onopen)===null||De===void 0||De.call(ie),Z({})},fe=this.apiClient,de={onopen:se,onmessage:De=>{WN(fe,ie.onmessage,De)},onerror:(a=ie==null?void 0:ie.onerror)!==null&&a!==void 0?a:function(De){},onclose:(r=ie==null?void 0:ie.onclose)!==null&&r!==void 0?r:function(De){}},me=this.webSocketFactory.create(D,n3(z),de);me.connect(),await F;let Te=Kt(this.apiClient,l.model);if(this.apiClient.isVertexAI()&&Te.startsWith("publishers/")){const De=this.apiClient.getProject(),ue=this.apiClient.getLocation();Te=`projects/${De}/locations/${ue}/`+Te}let Re={};this.apiClient.isVertexAI()&&((f=l.config)===null||f===void 0?void 0:f.responseModalities)===void 0&&(l.config===void 0?l.config={responseModalities:[Tv.AUDIO]}:l.config.responseModalities=[Tv.AUDIO]),!((y=l.config)===null||y===void 0)&&y.generationConfig&&console.warn("Setting `LiveConnectConfig.generation_config` is deprecated, please set the fields on `LiveConnectConfig` directly. This will become an error in a future version (not before Q3 2025).");const Oe=(E=(C=l.config)===null||C===void 0?void 0:C.tools)!==null&&E!==void 0?E:[],Be=[];for(const De of Oe)if(this.isCallableTool(De)){const ue=De;Be.push(await ue.tool())}else Be.push(De);Be.length>0&&(l.config.tools=Be);const Ne={model:Te,config:l.config,callbacks:l.callbacks};return this.apiClient.isVertexAI()?Re=h2(this.apiClient,Ne):Re=d2(this.apiClient,Ne),delete Re.config,me.send(JSON.stringify(Re)),new t3(me,this.apiClient)}isCallableTool(l){return"callTool"in l&&typeof l.callTool=="function"}}const e3={turnComplete:!0};class t3{constructor(l,a){this.conn=l,this.apiClient=a}tLiveClientContent(l,a){if(a.turns!==null&&a.turns!==void 0){let r=[];try{r=no(l,a.turns),l.isVertexAI()?r=r.map(f=>xd(l,f)):r=r.map(f=>xv(l,f))}catch{throw new Error(`Failed to parse client content "turns", type: '${typeof a.turns}'`)}return{clientContent:{turns:r,turnComplete:a.turnComplete}}}return{clientContent:{turnComplete:a.turnComplete}}}tLiveClienttToolResponse(l,a){let r=[];if(a.functionResponses==null)throw new Error("functionResponses is required.");if(Array.isArray(a.functionResponses)?r=a.functionResponses:r=[a.functionResponses],r.length===0)throw new Error("functionResponses is required.");for(const y of r){if(typeof y!="object"||y===null||!("name"in y)||!("response"in y))throw new Error(`Could not parse function response, type '${typeof y}'.`);if(!l.isVertexAI()&&!("id"in y))throw new Error(PN)}return{toolResponse:{functionResponses:r}}}sendClientContent(l){l=Object.assign(Object.assign({},e3),l);const a=this.tLiveClientContent(this.apiClient,l);this.conn.send(JSON.stringify(a))}sendRealtimeInput(l){let a={};this.apiClient.isVertexAI()?a={realtimeInput:S2(this.apiClient,l)}:a={realtimeInput:v2(this.apiClient,l)},this.conn.send(JSON.stringify(a))}sendToolResponse(l){if(l.functionResponses==null)throw new Error("Tool response parameters are required.");const a=this.tLiveClienttToolResponse(this.apiClient,l);this.conn.send(JSON.stringify(a))}close(){this.conn.close()}}function n3(c){const l={};return c.forEach((a,r)=>{l[r]=a}),l}function l3(c){const l=new Headers;for(const[a,r]of Object.entries(c))l.append(a,r);return l}/**
191
415
  * @license
192
416
  * Copyright 2025 Google LLC
193
417
  * SPDX-License-Identifier: Apache-2.0
194
- */const vl=10;function _l(n){var e,t,i;if(!((e=n==null?void 0:n.automaticFunctionCalling)===null||e===void 0)&&e.disable)return!0;let r=!1;for(const l of(t=n==null?void 0:n.tools)!==null&&t!==void 0?t:[])if(Ni(l)){r=!0;break}if(!r)return!0;const o=(i=n==null?void 0:n.automaticFunctionCalling)===null||i===void 0?void 0:i.maximumRemoteCalls;return o&&(o<0||!Number.isInteger(o))||o==0?(console.warn("Invalid maximumRemoteCalls value provided for automatic function calling. Disabled automatic function calling. Please provide a valid integer value greater than 0. maximumRemoteCalls provided:",o),!0):!1}function Ni(n){return"callTool"in n&&typeof n.callTool=="function"}function xl(n){var e;return!(!((e=n==null?void 0:n.automaticFunctionCalling)===null||e===void 0)&&e.ignoreCallHistory)}/**
418
+ */const s1=10;function r1(c){var l,a,r;if(!((l=c==null?void 0:c.automaticFunctionCalling)===null||l===void 0)&&l.disable)return!0;let f=!1;for(const C of(a=c==null?void 0:c.tools)!==null&&a!==void 0?a:[])if(Uv(C)){f=!0;break}if(!f)return!0;const y=(r=c==null?void 0:c.automaticFunctionCalling)===null||r===void 0?void 0:r.maximumRemoteCalls;return y&&(y<0||!Number.isInteger(y))||y==0?(console.warn("Invalid maximumRemoteCalls value provided for automatic function calling. Disabled automatic function calling. Please provide a valid integer value greater than 0. maximumRemoteCalls provided:",y),!0):!1}function Uv(c){return"callTool"in c&&typeof c.callTool=="function"}function c1(c){var l;return!(!((l=c==null?void 0:c.automaticFunctionCalling)===null||l===void 0)&&l.ignoreCallHistory)}/**
195
419
  * @license
196
420
  * Copyright 2025 Google LLC
197
421
  * SPDX-License-Identifier: Apache-2.0
198
- */class $_ extends fn{constructor(e){super(),this.apiClient=e,this.generateContent=async t=>{var i,r,o,l,u;const c=await this.processParamsForMcpUsage(t);if(!A_(t)||_l(t.config))return await this.generateContentInternal(c);if(b_(t))throw new Error("Automatic function calling with CallableTools and Tools is not yet supported.");let f,d;const h=Xe(this.apiClient,c.contents),g=(o=(r=(i=c.config)===null||i===void 0?void 0:i.automaticFunctionCalling)===null||r===void 0?void 0:r.maximumRemoteCalls)!==null&&o!==void 0?o:vl;let x=0;for(;x<g&&(f=await this.generateContentInternal(c),!(!f.functionCalls||f.functionCalls.length===0));){const w=f.candidates[0].content,b=[];for(const D of(u=(l=t.config)===null||l===void 0?void 0:l.tools)!==null&&u!==void 0?u:[])if(Ni(D)){const T=await D.callTool(f.functionCalls);b.push(...T)}x++,d={role:"user",parts:b},c.contents=Xe(this.apiClient,c.contents),c.contents.push(w),c.contents.push(d),xl(c.config)&&(h.push(w),h.push(d))}return xl(c.config)&&(f.automaticFunctionCallingHistory=h),f},this.generateContentStream=async t=>{if(_l(t.config)){const i=await this.processParamsForMcpUsage(t);return await this.generateContentStreamInternal(i)}else return await this.processAfcStream(t)},this.generateImages=async t=>await this.generateImagesInternal(t).then(i=>{var r;let o;const l=[];if(i!=null&&i.generatedImages)for(const c of i.generatedImages)c&&(c!=null&&c.safetyAttributes)&&((r=c==null?void 0:c.safetyAttributes)===null||r===void 0?void 0:r.contentType)==="Positive Prompt"?o=c==null?void 0:c.safetyAttributes:l.push(c);let u;return o?u={generatedImages:l,positivePromptSafetyAttributes:o}:u={generatedImages:l},u}),this.list=async t=>{var i;const l={config:Object.assign(Object.assign({},{queryBase:!0}),t==null?void 0:t.config)};if(this.apiClient.isVertexAI()&&!l.config.queryBase){if(!((i=l.config)===null||i===void 0)&&i.filter)throw new Error("Filtering tuned models list for Vertex AI is not currently supported");l.config.filter="labels.tune-type:*"}return new Mi(hn.PAGED_ITEM_MODELS,u=>this.listInternal(u),await this.listInternal(l),l)},this.editImage=async t=>{const i={model:t.model,prompt:t.prompt,referenceImages:[],config:t.config};return t.referenceImages&&t.referenceImages&&(i.referenceImages=t.referenceImages.map(r=>r.toReferenceImageAPI())),await this.editImageInternal(i)},this.upscaleImage=async t=>{let i={numberOfImages:1,mode:"upscale"};t.config&&(i=Object.assign(Object.assign({},i),t.config));const r={model:t.model,image:t.image,upscaleFactor:t.upscaleFactor,config:i};return await this.upscaleImageInternal(r)}}async processParamsForMcpUsage(e){var t,i,r;const o=(t=e.config)===null||t===void 0?void 0:t.tools;if(!o)return e;const l=await Promise.all(o.map(async c=>Ni(c)?await c.tool():c)),u={model:e.model,contents:e.contents,config:Object.assign(Object.assign({},e.config),{tools:l})};if(u.config.tools=l,e.config&&e.config.tools&&gl(e.config.tools)){const c=(r=(i=e.config.httpOptions)===null||i===void 0?void 0:i.headers)!==null&&r!==void 0?r:{};let f=Object.assign({},c);Object.keys(f).length===0&&(f=this.apiClient.getDefaultHeaders()),yl(f),u.config.httpOptions=Object.assign(Object.assign({},e.config.httpOptions),{headers:f})}return u}async initAfcToolsMap(e){var t,i,r;const o=new Map;for(const l of(i=(t=e.config)===null||t===void 0?void 0:t.tools)!==null&&i!==void 0?i:[])if(Ni(l)){const u=l,c=await u.tool();for(const f of(r=c.functionDeclarations)!==null&&r!==void 0?r:[]){if(!f.name)throw new Error("Function declaration name is required.");if(o.has(f.name))throw new Error(`Duplicate tool declaration name: ${f.name}`);o.set(f.name,u)}}return o}async processAfcStream(e){var t,i,r;const o=(r=(i=(t=e.config)===null||t===void 0?void 0:t.automaticFunctionCalling)===null||i===void 0?void 0:i.maximumRemoteCalls)!==null&&r!==void 0?r:vl;let l=!1,u=0;const c=await this.initAfcToolsMap(e);return(function(f,d,h){var g,x;return mn(this,arguments,function*(){for(var w,b,D,F;u<o;){l&&(u++,l=!1);const S=yield ge(f.processParamsForMcpUsage(h)),I=yield ge(f.generateContentStreamInternal(S)),R=[],M=[];try{for(var T=!0,k=(b=void 0,Un(I)),A;A=yield ge(k.next()),w=A.done,!w;T=!0){F=A.value,T=!1;const C=F;if(yield yield ge(C),C.candidates&&(!((g=C.candidates[0])===null||g===void 0)&&g.content)){M.push(C.candidates[0].content);for(const P of(x=C.candidates[0].content.parts)!==null&&x!==void 0?x:[])if(u<o&&P.functionCall){if(!P.functionCall.name)throw new Error("Function call name was not returned by the model.");if(d.has(P.functionCall.name)){const O=yield ge(d.get(P.functionCall.name).callTool([P.functionCall]));R.push(...O)}else throw new Error(`Automatic function calling was requested, but not all the tools the model used implement the CallableTool interface. Available tools: ${d.keys()}, mising tool: ${P.functionCall.name}`)}}}}catch(C){b={error:C}}finally{try{!T&&!w&&(D=k.return)&&(yield ge(D.call(k)))}finally{if(b)throw b.error}}if(R.length>0){l=!0;const C=new Vn;C.candidates=[{content:{role:"user",parts:R}}],yield yield ge(C);const P=[];P.push(...M),P.push({role:"user",parts:R});const O=Xe(f.apiClient,h.contents).concat(P);h.contents=O}else break}})})(this,c,e)}async generateContentInternal(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=ll(this.apiClient,e);return u=X("{model}:generateContent",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(d=>d.json()),l.then(d=>{const h=fl(this.apiClient,d),g=new Vn;return Object.assign(g,h),g})}else{const f=sl(this.apiClient,e);return u=X("{model}:generateContent",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(d=>d.json()),l.then(d=>{const h=ul(this.apiClient,d),g=new Vn;return Object.assign(g,h),g})}}async generateContentStreamInternal(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=ll(this.apiClient,e);u=X("{model}:streamGenerateContent?alt=sse",f._url),c=f._query,delete f.config,delete f._url,delete f._query;const d=this.apiClient;return l=d.requestStream({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}),l.then(function(h){return mn(this,arguments,function*(){var g,x,w,b;try{for(var D=!0,F=Un(h),T;T=yield ge(F.next()),g=T.done,!g;D=!0){b=T.value,D=!1;const A=fl(d,yield ge(b.json())),S=new Vn;Object.assign(S,A),yield yield ge(S)}}catch(k){x={error:k}}finally{try{!D&&!g&&(w=F.return)&&(yield ge(w.call(F)))}finally{if(x)throw x.error}}})})}else{const f=sl(this.apiClient,e);u=X("{model}:streamGenerateContent?alt=sse",f._url),c=f._query,delete f.config,delete f._url,delete f._query;const d=this.apiClient;return l=d.requestStream({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}),l.then(function(h){return mn(this,arguments,function*(){var g,x,w,b;try{for(var D=!0,F=Un(h),T;T=yield ge(F.next()),g=T.done,!g;D=!0){b=T.value,D=!1;const A=ul(d,yield ge(b.json())),S=new Vn;Object.assign(S,A),yield yield ge(S)}}catch(k){x={error:k}}finally{try{!D&&!g&&(w=F.return)&&(yield ge(w.call(F)))}finally{if(x)throw x.error}}})})}}async embedContent(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=e0(this.apiClient,e);return u=X("{model}:predict",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(d=>d.json()),l.then(d=>{const h=n_(this.apiClient,d),g=new wa;return Object.assign(g,h),g})}else{const f=hv(this.apiClient,e);return u=X("{model}:batchEmbedContents",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(d=>d.json()),l.then(d=>{const h=D0(this.apiClient,d),g=new wa;return Object.assign(g,h),g})}}async generateImagesInternal(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=n0(this.apiClient,e);return u=X("{model}:predict",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(d=>d.json()),l.then(d=>{const h=r_(this.apiClient,d),g=new Sa;return Object.assign(g,h),g})}else{const f=gv(this.apiClient,e);return u=X("{model}:predict",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(d=>d.json()),l.then(d=>{const h=V0(this.apiClient,d),g=new Sa;return Object.assign(g,h),g})}}async editImageInternal(e){var t,i;let r,o="",l={};if(this.apiClient.isVertexAI()){const u=u0(this.apiClient,e);return o=X("{model}:predict",u._url),l=u._query,delete u.config,delete u._url,delete u._query,r=this.apiClient.request({path:o,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(c=>c.json()),r.then(c=>{const f=o_(this.apiClient,c),d=new gh;return Object.assign(d,f),d})}else throw new Error("This method is only supported by the Vertex AI.")}async upscaleImageInternal(e){var t,i;let r,o="",l={};if(this.apiClient.isVertexAI()){const u=f0(this.apiClient,e);return o=X("{model}:predict",u._url),l=u._query,delete u.config,delete u._url,delete u._query,r=this.apiClient.request({path:o,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(c=>c.json()),r.then(c=>{const f=s_(this.apiClient,c),d=new yh;return Object.assign(d,f),d})}else throw new Error("This method is only supported by the Vertex AI.")}async get(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=d0(this.apiClient,e);return u=X("{name}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(d=>d.json()),l.then(d=>Dr(this.apiClient,d))}else{const f=yv(this.apiClient,e);return u=X("{name}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(d=>d.json()),l.then(d=>kr(this.apiClient,d))}}async listInternal(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=h0(this.apiClient,e);return u=X("{models_url}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(d=>d.json()),l.then(d=>{const h=c_(this.apiClient,d),g=new Aa;return Object.assign(g,h),g})}else{const f=_v(this.apiClient,e);return u=X("{models_url}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(d=>d.json()),l.then(d=>{const h=O0(this.apiClient,d),g=new Aa;return Object.assign(g,h),g})}}async update(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=g0(this.apiClient,e);return u=X("{model}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"PATCH",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(d=>d.json()),l.then(d=>Dr(this.apiClient,d))}else{const f=Cv(this.apiClient,e);return u=X("{name}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"PATCH",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(d=>d.json()),l.then(d=>kr(this.apiClient,d))}}async delete(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=y0(this.apiClient,e);return u=X("{name}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"DELETE",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(d=>d.json()),l.then(()=>{const d=f_(),h=new ba;return Object.assign(h,d),h})}else{const f=Ev(this.apiClient,e);return u=X("{name}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"DELETE",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(d=>d.json()),l.then(()=>{const d=U0(),h=new ba;return Object.assign(h,d),h})}}async countTokens(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=_0(this.apiClient,e);return u=X("{model}:countTokens",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(d=>d.json()),l.then(d=>{const h=d_(this.apiClient,d),g=new Ra;return Object.assign(g,h),g})}else{const f=wv(this.apiClient,e);return u=X("{model}:countTokens",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(d=>d.json()),l.then(d=>{const h=$0(this.apiClient,d),g=new Ra;return Object.assign(g,h),g})}}async computeTokens(e){var t,i;let r,o="",l={};if(this.apiClient.isVertexAI()){const u=x0(this.apiClient,e);return o=X("{model}:computeTokens",u._url),l=u._query,delete u.config,delete u._url,delete u._query,r=this.apiClient.request({path:o,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(c=>c.json()),r.then(c=>{const f=p_(this.apiClient,c),d=new vh;return Object.assign(d,f),d})}else throw new Error("This method is only supported by the Vertex AI.")}async generateVideos(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=E0(this.apiClient,e);return u=X("{model}:predictLongRunning",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(d=>d.json()),l.then(d=>y_(this.apiClient,d))}else{const f=bv(this.apiClient,e);return u=X("{model}:predictLongRunning",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"POST",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(d=>d.json()),l.then(d=>W0(this.apiClient,d))}}}/**
422
+ */class a3 extends Ad{constructor(l){super(),this.apiClient=l,this.generateContent=async a=>{var r,f,y,C,E;const b=await this.processParamsForMcpUsage(a);if(!ZN(a)||r1(a.config))return await this.generateContentInternal(b);if(kN(a))throw new Error("Automatic function calling with CallableTools and Tools is not yet supported.");let A,D;const N=no(this.apiClient,b.contents),z=(y=(f=(r=b.config)===null||r===void 0?void 0:r.automaticFunctionCalling)===null||f===void 0?void 0:f.maximumRemoteCalls)!==null&&y!==void 0?y:s1;let Z=0;for(;Z<z&&(A=await this.generateContentInternal(b),!(!A.functionCalls||A.functionCalls.length===0));){const F=A.candidates[0].content,ie=[];for(const se of(E=(C=a.config)===null||C===void 0?void 0:C.tools)!==null&&E!==void 0?E:[])if(Uv(se)){const de=await se.callTool(A.functionCalls);ie.push(...de)}Z++,D={role:"user",parts:ie},b.contents=no(this.apiClient,b.contents),b.contents.push(F),b.contents.push(D),c1(b.config)&&(N.push(F),N.push(D))}return c1(b.config)&&(A.automaticFunctionCallingHistory=N),A},this.generateContentStream=async a=>{if(r1(a.config)){const r=await this.processParamsForMcpUsage(a);return await this.generateContentStreamInternal(r)}else return await this.processAfcStream(a)},this.generateImages=async a=>await this.generateImagesInternal(a).then(r=>{var f;let y;const C=[];if(r!=null&&r.generatedImages)for(const b of r.generatedImages)b&&(b!=null&&b.safetyAttributes)&&((f=b==null?void 0:b.safetyAttributes)===null||f===void 0?void 0:f.contentType)==="Positive Prompt"?y=b==null?void 0:b.safetyAttributes:C.push(b);let E;return y?E={generatedImages:C,positivePromptSafetyAttributes:y}:E={generatedImages:C},E}),this.list=async a=>{var r;const C={config:Object.assign(Object.assign({},{queryBase:!0}),a==null?void 0:a.config)};if(this.apiClient.isVertexAI()&&!C.config.queryBase){if(!((r=C.config)===null||r===void 0)&&r.filter)throw new Error("Filtering tuned models list for Vertex AI is not currently supported");C.config.filter="labels.tune-type:*"}return new Mv(Rd.PAGED_ITEM_MODELS,E=>this.listInternal(E),await this.listInternal(C),C)},this.editImage=async a=>{const r={model:a.model,prompt:a.prompt,referenceImages:[],config:a.config};return a.referenceImages&&a.referenceImages&&(r.referenceImages=a.referenceImages.map(f=>f.toReferenceImageAPI())),await this.editImageInternal(r)},this.upscaleImage=async a=>{let r={numberOfImages:1,mode:"upscale"};a.config&&(r=Object.assign(Object.assign({},r),a.config));const f={model:a.model,image:a.image,upscaleFactor:a.upscaleFactor,config:r};return await this.upscaleImageInternal(f)}}async processParamsForMcpUsage(l){var a,r,f;const y=(a=l.config)===null||a===void 0?void 0:a.tools;if(!y)return l;const C=await Promise.all(y.map(async b=>Uv(b)?await b.tool():b)),E={model:l.model,contents:l.contents,config:Object.assign(Object.assign({},l.config),{tools:C})};if(E.config.tools=C,l.config&&l.config.tools&&o1(l.config.tools)){const b=(f=(r=l.config.httpOptions)===null||r===void 0?void 0:r.headers)!==null&&f!==void 0?f:{};let A=Object.assign({},b);Object.keys(A).length===0&&(A=this.apiClient.getDefaultHeaders()),u1(A),E.config.httpOptions=Object.assign(Object.assign({},l.config.httpOptions),{headers:A})}return E}async initAfcToolsMap(l){var a,r,f;const y=new Map;for(const C of(r=(a=l.config)===null||a===void 0?void 0:a.tools)!==null&&r!==void 0?r:[])if(Uv(C)){const E=C,b=await E.tool();for(const A of(f=b.functionDeclarations)!==null&&f!==void 0?f:[]){if(!A.name)throw new Error("Function declaration name is required.");if(y.has(A.name))throw new Error(`Duplicate tool declaration name: ${A.name}`);y.set(A.name,E)}}return y}async processAfcStream(l){var a,r,f;const y=(f=(r=(a=l.config)===null||a===void 0?void 0:a.automaticFunctionCalling)===null||r===void 0?void 0:r.maximumRemoteCalls)!==null&&f!==void 0?f:s1;let C=!1,E=0;const b=await this.initAfcToolsMap(l);return(function(A,D,N){var z,Z;return Dd(this,arguments,function*(){for(var F,ie,se,fe;E<y;){C&&(E++,C=!1);const Re=yield nn(A.processParamsForMcpUsage(N)),Oe=yield nn(A.generateContentStreamInternal(Re)),Be=[],Ne=[];try{for(var de=!0,me=(ie=void 0,cp(Oe)),Te;Te=yield nn(me.next()),F=Te.done,!F;de=!0){fe=Te.value,de=!1;const De=fe;if(yield yield nn(De),De.candidates&&(!((z=De.candidates[0])===null||z===void 0)&&z.content)){Ne.push(De.candidates[0].content);for(const ue of(Z=De.candidates[0].content.parts)!==null&&Z!==void 0?Z:[])if(E<y&&ue.functionCall){if(!ue.functionCall.name)throw new Error("Function call name was not returned by the model.");if(D.has(ue.functionCall.name)){const ht=yield nn(D.get(ue.functionCall.name).callTool([ue.functionCall]));Be.push(...ht)}else throw new Error(`Automatic function calling was requested, but not all the tools the model used implement the CallableTool interface. Available tools: ${D.keys()}, mising tool: ${ue.functionCall.name}`)}}}}catch(De){ie={error:De}}finally{try{!de&&!F&&(se=me.return)&&(yield nn(se.call(me)))}finally{if(ie)throw ie.error}}if(Be.length>0){C=!0;const De=new up;De.candidates=[{content:{role:"user",parts:Be}}],yield yield nn(De);const ue=[];ue.push(...Ne),ue.push({role:"user",parts:Be});const ht=no(A.apiClient,N.contents).concat(ue);N.contents=ht}else break}})})(this,b,l)}async generateContentInternal(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=W_(this.apiClient,l);return E=Ze("{model}:generateContent",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"POST",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(D=>D.json()),C.then(D=>{const N=t1(this.apiClient,D),z=new up;return Object.assign(z,N),z})}else{const A=$_(this.apiClient,l);return E=Ze("{model}:generateContent",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"POST",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}).then(D=>D.json()),C.then(D=>{const N=j_(this.apiClient,D),z=new up;return Object.assign(z,N),z})}}async generateContentStreamInternal(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=W_(this.apiClient,l);E=Ze("{model}:streamGenerateContent?alt=sse",A._url),b=A._query,delete A.config,delete A._url,delete A._query;const D=this.apiClient;return C=D.requestStream({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"POST",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}),C.then(function(N){return Dd(this,arguments,function*(){var z,Z,F,ie;try{for(var se=!0,fe=cp(N),de;de=yield nn(fe.next()),z=de.done,!z;se=!0){ie=de.value,se=!1;const Te=t1(D,yield nn(ie.json())),Re=new up;Object.assign(Re,Te),yield yield nn(Re)}}catch(me){Z={error:me}}finally{try{!se&&!z&&(F=fe.return)&&(yield nn(F.call(fe)))}finally{if(Z)throw Z.error}}})})}else{const A=$_(this.apiClient,l);E=Ze("{model}:streamGenerateContent?alt=sse",A._url),b=A._query,delete A.config,delete A._url,delete A._query;const D=this.apiClient;return C=D.requestStream({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"POST",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}),C.then(function(N){return Dd(this,arguments,function*(){var z,Z,F,ie;try{for(var se=!0,fe=cp(N),de;de=yield nn(fe.next()),z=de.done,!z;se=!0){ie=de.value,se=!1;const Te=j_(D,yield nn(ie.json())),Re=new up;Object.assign(Re,Te),yield yield nn(Re)}}catch(me){Z={error:me}}finally{try{!se&&!z&&(F=fe.return)&&(yield nn(F.call(fe)))}finally{if(Z)throw Z.error}}})})}}async embedContent(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=yU(this.apiClient,l);return E=Ze("{model}:predict",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"POST",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(D=>D.json()),C.then(D=>{const N=SN(this.apiClient,D),z=new m_;return Object.assign(z,N),z})}else{const A=Nx(this.apiClient,l);return E=Ze("{model}:batchEmbedContents",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"POST",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}).then(D=>D.json()),C.then(D=>{const N=PU(this.apiClient,D),z=new m_;return Object.assign(z,N),z})}}async generateImagesInternal(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=SU(this.apiClient,l);return E=Ze("{model}:predict",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"POST",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(D=>D.json()),C.then(D=>{const N=CN(this.apiClient,D),z=new p_;return Object.assign(z,N),z})}else{const A=Ox(this.apiClient,l);return E=Ze("{model}:predict",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"POST",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}).then(D=>D.json()),C.then(D=>{const N=eN(this.apiClient,D),z=new p_;return Object.assign(z,N),z})}}async editImageInternal(l){var a,r;let f,y="",C={};if(this.apiClient.isVertexAI()){const E=MU(this.apiClient,l);return y=Ze("{model}:predict",E._url),C=E._query,delete E.config,delete E._url,delete E._query,f=this.apiClient.request({path:y,queryParams:C,body:JSON.stringify(E),httpMethod:"POST",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(b=>b.json()),f.then(b=>{const A=EN(this.apiClient,b),D=new OM;return Object.assign(D,A),D})}else throw new Error("This method is only supported by the Vertex AI.")}async upscaleImageInternal(l){var a,r;let f,y="",C={};if(this.apiClient.isVertexAI()){const E=DU(this.apiClient,l);return y=Ze("{model}:predict",E._url),C=E._query,delete E.config,delete E._url,delete E._query,f=this.apiClient.request({path:y,queryParams:C,body:JSON.stringify(E),httpMethod:"POST",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(b=>b.json()),f.then(b=>{const A=_N(this.apiClient,b),D=new wM;return Object.assign(D,A),D})}else throw new Error("This method is only supported by the Vertex AI.")}async get(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=xU(this.apiClient,l);return E=Ze("{name}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"GET",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(D=>D.json()),C.then(D=>ET(this.apiClient,D))}else{const A=wx(this.apiClient,l);return E=Ze("{name}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"GET",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}).then(D=>D.json()),C.then(D=>TT(this.apiClient,D))}}async listInternal(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=NU(this.apiClient,l);return E=Ze("{models_url}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"GET",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(D=>D.json()),C.then(D=>{const N=RN(this.apiClient,D),z=new g_;return Object.assign(z,N),z})}else{const A=Lx(this.apiClient,l);return E=Ze("{models_url}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"GET",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}).then(D=>D.json()),C.then(D=>{const N=nN(this.apiClient,D),z=new g_;return Object.assign(z,N),z})}}async update(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=OU(this.apiClient,l);return E=Ze("{model}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"PATCH",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(D=>D.json()),C.then(D=>ET(this.apiClient,D))}else{const A=Bx(this.apiClient,l);return E=Ze("{name}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"PATCH",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}).then(D=>D.json()),C.then(D=>TT(this.apiClient,D))}}async delete(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=wU(this.apiClient,l);return E=Ze("{name}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"DELETE",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(D=>D.json()),C.then(()=>{const D=DN(),N=new y_;return Object.assign(N,D),N})}else{const A=qx(this.apiClient,l);return E=Ze("{name}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"DELETE",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}).then(D=>D.json()),C.then(()=>{const D=lN(),N=new y_;return Object.assign(N,D),N})}}async countTokens(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=LU(this.apiClient,l);return E=Ze("{model}:countTokens",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"POST",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(D=>D.json()),C.then(D=>{const N=xN(this.apiClient,D),z=new v_;return Object.assign(z,N),z})}else{const A=Yx(this.apiClient,l);return E=Ze("{model}:countTokens",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"POST",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}).then(D=>D.json()),C.then(D=>{const N=aN(this.apiClient,D),z=new v_;return Object.assign(z,N),z})}}async computeTokens(l){var a,r;let f,y="",C={};if(this.apiClient.isVertexAI()){const E=HU(this.apiClient,l);return y=Ze("{model}:computeTokens",E._url),C=E._query,delete E.config,delete E._url,delete E._query,f=this.apiClient.request({path:y,queryParams:C,body:JSON.stringify(E),httpMethod:"POST",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(b=>b.json()),f.then(b=>{const A=UN(this.apiClient,b),D=new VM;return Object.assign(D,A),D})}else throw new Error("This method is only supported by the Vertex AI.")}async generateVideos(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=qU(this.apiClient,l);return E=Ze("{model}:predictLongRunning",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"POST",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(D=>D.json()),C.then(D=>wN(this.apiClient,D))}else{const A=kx(this.apiClient,l);return E=Ze("{model}:predictLongRunning",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"POST",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}).then(D=>D.json()),C.then(D=>sN(this.apiClient,D))}}}/**
199
423
  * @license
200
424
  * Copyright 2025 Google LLC
201
425
  * SPDX-License-Identifier: Apache-2.0
202
- */function G_(n,e){const t={},i=s(e,["operationName"]);i!=null&&a(t,["_url","operationName"],i);const r=s(e,["config"]);return r!=null&&a(t,["config"],r),t}function q_(n,e){const t={},i=s(e,["operationName"]);i!=null&&a(t,["_url","operationName"],i);const r=s(e,["config"]);return r!=null&&a(t,["config"],r),t}function H_(n,e){const t={},i=s(e,["operationName"]);i!=null&&a(t,["operationName"],i);const r=s(e,["resourceName"]);r!=null&&a(t,["_url","resourceName"],r);const o=s(e,["config"]);return o!=null&&a(t,["config"],o),t}function W_(n,e){const t={},i=s(e,["video","uri"]);i!=null&&a(t,["uri"],i);const r=s(e,["video","encodedVideo"]);r!=null&&a(t,["videoBytes"],Mt(n,r));const o=s(e,["encoding"]);return o!=null&&a(t,["mimeType"],o),t}function z_(n,e){const t={},i=s(e,["_self"]);return i!=null&&a(t,["video"],W_(n,i)),t}function Y_(n,e){const t={},i=s(e,["generatedSamples"]);if(i!=null){let l=i;Array.isArray(l)&&(l=l.map(u=>z_(n,u))),a(t,["generatedVideos"],l)}const r=s(e,["raiMediaFilteredCount"]);r!=null&&a(t,["raiMediaFilteredCount"],r);const o=s(e,["raiMediaFilteredReasons"]);return o!=null&&a(t,["raiMediaFilteredReasons"],o),t}function K_(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["name"],i);const r=s(e,["metadata"]);r!=null&&a(t,["metadata"],r);const o=s(e,["done"]);o!=null&&a(t,["done"],o);const l=s(e,["error"]);l!=null&&a(t,["error"],l);const u=s(e,["response","generateVideoResponse"]);return u!=null&&a(t,["response"],Y_(n,u)),t}function J_(n,e){const t={},i=s(e,["gcsUri"]);i!=null&&a(t,["uri"],i);const r=s(e,["bytesBase64Encoded"]);r!=null&&a(t,["videoBytes"],Mt(n,r));const o=s(e,["mimeType"]);return o!=null&&a(t,["mimeType"],o),t}function Z_(n,e){const t={},i=s(e,["_self"]);return i!=null&&a(t,["video"],J_(n,i)),t}function X_(n,e){const t={},i=s(e,["videos"]);if(i!=null){let l=i;Array.isArray(l)&&(l=l.map(u=>Z_(n,u))),a(t,["generatedVideos"],l)}const r=s(e,["raiMediaFilteredCount"]);r!=null&&a(t,["raiMediaFilteredCount"],r);const o=s(e,["raiMediaFilteredReasons"]);return o!=null&&a(t,["raiMediaFilteredReasons"],o),t}function Cl(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["name"],i);const r=s(e,["metadata"]);r!=null&&a(t,["metadata"],r);const o=s(e,["done"]);o!=null&&a(t,["done"],o);const l=s(e,["error"]);l!=null&&a(t,["error"],l);const u=s(e,["response"]);return u!=null&&a(t,["response"],X_(n,u)),t}/**
426
+ */function i3(c,l){const a={},r=m(l,["operationName"]);r!=null&&g(a,["_url","operationName"],r);const f=m(l,["config"]);return f!=null&&g(a,["config"],f),a}function o3(c,l){const a={},r=m(l,["operationName"]);r!=null&&g(a,["_url","operationName"],r);const f=m(l,["config"]);return f!=null&&g(a,["config"],f),a}function u3(c,l){const a={},r=m(l,["operationName"]);r!=null&&g(a,["operationName"],r);const f=m(l,["resourceName"]);f!=null&&g(a,["_url","resourceName"],f);const y=m(l,["config"]);return y!=null&&g(a,["config"],y),a}function s3(c,l){const a={},r=m(l,["video","uri"]);r!=null&&g(a,["uri"],r);const f=m(l,["video","encodedVideo"]);f!=null&&g(a,["videoBytes"],Zs(c,f));const y=m(l,["encoding"]);return y!=null&&g(a,["mimeType"],y),a}function r3(c,l){const a={},r=m(l,["_self"]);return r!=null&&g(a,["video"],s3(c,r)),a}function c3(c,l){const a={},r=m(l,["generatedSamples"]);if(r!=null){let C=r;Array.isArray(C)&&(C=C.map(E=>r3(c,E))),g(a,["generatedVideos"],C)}const f=m(l,["raiMediaFilteredCount"]);f!=null&&g(a,["raiMediaFilteredCount"],f);const y=m(l,["raiMediaFilteredReasons"]);return y!=null&&g(a,["raiMediaFilteredReasons"],y),a}function f3(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["name"],r);const f=m(l,["metadata"]);f!=null&&g(a,["metadata"],f);const y=m(l,["done"]);y!=null&&g(a,["done"],y);const C=m(l,["error"]);C!=null&&g(a,["error"],C);const E=m(l,["response","generateVideoResponse"]);return E!=null&&g(a,["response"],c3(c,E)),a}function d3(c,l){const a={},r=m(l,["gcsUri"]);r!=null&&g(a,["uri"],r);const f=m(l,["bytesBase64Encoded"]);f!=null&&g(a,["videoBytes"],Zs(c,f));const y=m(l,["mimeType"]);return y!=null&&g(a,["mimeType"],y),a}function h3(c,l){const a={},r=m(l,["_self"]);return r!=null&&g(a,["video"],d3(c,r)),a}function m3(c,l){const a={},r=m(l,["videos"]);if(r!=null){let C=r;Array.isArray(C)&&(C=C.map(E=>h3(c,E))),g(a,["generatedVideos"],C)}const f=m(l,["raiMediaFilteredCount"]);f!=null&&g(a,["raiMediaFilteredCount"],f);const y=m(l,["raiMediaFilteredReasons"]);return y!=null&&g(a,["raiMediaFilteredReasons"],y),a}function f1(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["name"],r);const f=m(l,["metadata"]);f!=null&&g(a,["metadata"],f);const y=m(l,["done"]);y!=null&&g(a,["done"],y);const C=m(l,["error"]);C!=null&&g(a,["error"],C);const E=m(l,["response"]);return E!=null&&g(a,["response"],m3(c,E)),a}/**
203
427
  * @license
204
428
  * Copyright 2025 Google LLC
205
429
  * SPDX-License-Identifier: Apache-2.0
206
- */class Q_ extends fn{constructor(e){super(),this.apiClient=e}async getVideosOperation(e){const t=e.operation,i=e.config;if(t.name===void 0||t.name==="")throw new Error("Operation name is required.");if(this.apiClient.isVertexAI()){const r=t.name.split("/operations/")[0];let o;return i&&"httpOptions"in i&&(o=i.httpOptions),this.fetchPredictVideosOperationInternal({operationName:t.name,resourceName:r,config:{httpOptions:o}})}else return this.getVideosOperationInternal({operationName:t.name,config:i})}async getVideosOperationInternal(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=q_(this.apiClient,e);return u=X("{operationName}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(d=>d.json()),l.then(d=>Cl(this.apiClient,d))}else{const f=G_(this.apiClient,e);return u=X("{operationName}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(d=>d.json()),l.then(d=>K_(this.apiClient,d))}}async fetchPredictVideosOperationInternal(e){var t,i;let r,o="",l={};if(this.apiClient.isVertexAI()){const u=H_(this.apiClient,e);return o=X("{resourceName}:fetchPredictOperation",u._url),l=u._query,delete u.config,delete u._url,delete u._query,r=this.apiClient.request({path:o,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(c=>c.json()),r.then(c=>Cl(this.apiClient,c))}else throw new Error("This method is only supported by the Vertex AI.")}}/**
430
+ */class p3 extends Ad{constructor(l){super(),this.apiClient=l}async getVideosOperation(l){const a=l.operation,r=l.config;if(a.name===void 0||a.name==="")throw new Error("Operation name is required.");if(this.apiClient.isVertexAI()){const f=a.name.split("/operations/")[0];let y;return r&&"httpOptions"in r&&(y=r.httpOptions),this.fetchPredictVideosOperationInternal({operationName:a.name,resourceName:f,config:{httpOptions:y}})}else return this.getVideosOperationInternal({operationName:a.name,config:r})}async getVideosOperationInternal(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=o3(this.apiClient,l);return E=Ze("{operationName}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"GET",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(D=>D.json()),C.then(D=>f1(this.apiClient,D))}else{const A=i3(this.apiClient,l);return E=Ze("{operationName}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"GET",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}).then(D=>D.json()),C.then(D=>f3(this.apiClient,D))}}async fetchPredictVideosOperationInternal(l){var a,r;let f,y="",C={};if(this.apiClient.isVertexAI()){const E=u3(this.apiClient,l);return y=Ze("{resourceName}:fetchPredictOperation",E._url),C=E._query,delete E.config,delete E._url,delete E._query,f=this.apiClient.request({path:y,queryParams:C,body:JSON.stringify(E),httpMethod:"POST",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(b=>b.json()),f.then(b=>f1(this.apiClient,b))}else throw new Error("This method is only supported by the Vertex AI.")}}/**
207
431
  * @license
208
432
  * Copyright 2025 Google LLC
209
433
  * SPDX-License-Identifier: Apache-2.0
210
- */function j_(n,e){const t={},i=s(e,["voiceName"]);return i!=null&&a(t,["voiceName"],i),t}function El(n,e){const t={},i=s(e,["prebuiltVoiceConfig"]);return i!=null&&a(t,["prebuiltVoiceConfig"],j_(n,i)),t}function ex(n,e){const t={},i=s(e,["speaker"]);i!=null&&a(t,["speaker"],i);const r=s(e,["voiceConfig"]);return r!=null&&a(t,["voiceConfig"],El(n,r)),t}function tx(n,e){const t={},i=s(e,["speakerVoiceConfigs"]);if(i!=null){let r=i;Array.isArray(r)&&(r=r.map(o=>ex(n,o))),a(t,["speakerVoiceConfigs"],r)}return t}function nx(n,e){const t={},i=s(e,["voiceConfig"]);i!=null&&a(t,["voiceConfig"],El(n,i));const r=s(e,["multiSpeakerVoiceConfig"]);r!=null&&a(t,["multiSpeakerVoiceConfig"],tx(n,r));const o=s(e,["languageCode"]);return o!=null&&a(t,["languageCode"],o),t}function ix(n,e){const t={},i=s(e,["fps"]);i!=null&&a(t,["fps"],i);const r=s(e,["endOffset"]);r!=null&&a(t,["endOffset"],r);const o=s(e,["startOffset"]);return o!=null&&a(t,["startOffset"],o),t}function rx(n,e){const t={};if(s(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const i=s(e,["data"]);i!=null&&a(t,["data"],i);const r=s(e,["mimeType"]);return r!=null&&a(t,["mimeType"],r),t}function ox(n,e){const t={};if(s(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const i=s(e,["fileUri"]);i!=null&&a(t,["fileUri"],i);const r=s(e,["mimeType"]);return r!=null&&a(t,["mimeType"],r),t}function sx(n,e){const t={},i=s(e,["videoMetadata"]);i!=null&&a(t,["videoMetadata"],ix(n,i));const r=s(e,["thought"]);r!=null&&a(t,["thought"],r);const o=s(e,["inlineData"]);o!=null&&a(t,["inlineData"],rx(n,o));const l=s(e,["fileData"]);l!=null&&a(t,["fileData"],ox(n,l));const u=s(e,["thoughtSignature"]);u!=null&&a(t,["thoughtSignature"],u);const c=s(e,["codeExecutionResult"]);c!=null&&a(t,["codeExecutionResult"],c);const f=s(e,["executableCode"]);f!=null&&a(t,["executableCode"],f);const d=s(e,["functionCall"]);d!=null&&a(t,["functionCall"],d);const h=s(e,["functionResponse"]);h!=null&&a(t,["functionResponse"],h);const g=s(e,["text"]);return g!=null&&a(t,["text"],g),t}function ax(n,e){const t={},i=s(e,["parts"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(l=>sx(n,l))),a(t,["parts"],o)}const r=s(e,["role"]);return r!=null&&a(t,["role"],r),t}function lx(n,e){const t={},i=s(e,["behavior"]);i!=null&&a(t,["behavior"],i);const r=s(e,["description"]);r!=null&&a(t,["description"],r);const o=s(e,["name"]);o!=null&&a(t,["name"],o);const l=s(e,["parameters"]);l!=null&&a(t,["parameters"],l);const u=s(e,["response"]);return u!=null&&a(t,["response"],u),t}function ux(n,e){const t={},i=s(e,["startTime"]);i!=null&&a(t,["startTime"],i);const r=s(e,["endTime"]);return r!=null&&a(t,["endTime"],r),t}function cx(n,e){const t={},i=s(e,["timeRangeFilter"]);return i!=null&&a(t,["timeRangeFilter"],ux(n,i)),t}function fx(n,e){const t={},i=s(e,["mode"]);i!=null&&a(t,["mode"],i);const r=s(e,["dynamicThreshold"]);return r!=null&&a(t,["dynamicThreshold"],r),t}function dx(n,e){const t={},i=s(e,["dynamicRetrievalConfig"]);return i!=null&&a(t,["dynamicRetrievalConfig"],fx(n,i)),t}function px(){return{}}function hx(n,e){const t={},i=s(e,["functionDeclarations"]);if(i!=null){let c=i;Array.isArray(c)&&(c=c.map(f=>lx(n,f))),a(t,["functionDeclarations"],c)}if(s(e,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const r=s(e,["googleSearch"]);r!=null&&a(t,["googleSearch"],cx(n,r));const o=s(e,["googleSearchRetrieval"]);if(o!=null&&a(t,["googleSearchRetrieval"],dx(n,o)),s(e,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");if(s(e,["googleMaps"])!==void 0)throw new Error("googleMaps parameter is not supported in Gemini API.");s(e,["urlContext"])!=null&&a(t,["urlContext"],px());const u=s(e,["codeExecution"]);return u!=null&&a(t,["codeExecution"],u),t}function mx(n,e){const t={},i=s(e,["handle"]);if(i!=null&&a(t,["handle"],i),s(e,["transparent"])!==void 0)throw new Error("transparent parameter is not supported in Gemini API.");return t}function Tl(){return{}}function gx(n,e){const t={},i=s(e,["disabled"]);i!=null&&a(t,["disabled"],i);const r=s(e,["startOfSpeechSensitivity"]);r!=null&&a(t,["startOfSpeechSensitivity"],r);const o=s(e,["endOfSpeechSensitivity"]);o!=null&&a(t,["endOfSpeechSensitivity"],o);const l=s(e,["prefixPaddingMs"]);l!=null&&a(t,["prefixPaddingMs"],l);const u=s(e,["silenceDurationMs"]);return u!=null&&a(t,["silenceDurationMs"],u),t}function yx(n,e){const t={},i=s(e,["automaticActivityDetection"]);i!=null&&a(t,["automaticActivityDetection"],gx(n,i));const r=s(e,["activityHandling"]);r!=null&&a(t,["activityHandling"],r);const o=s(e,["turnCoverage"]);return o!=null&&a(t,["turnCoverage"],o),t}function vx(n,e){const t={},i=s(e,["targetTokens"]);return i!=null&&a(t,["targetTokens"],i),t}function _x(n,e){const t={},i=s(e,["triggerTokens"]);i!=null&&a(t,["triggerTokens"],i);const r=s(e,["slidingWindow"]);return r!=null&&a(t,["slidingWindow"],vx(n,r)),t}function xx(n,e){const t={},i=s(e,["proactiveAudio"]);return i!=null&&a(t,["proactiveAudio"],i),t}function Cx(n,e,t){const i={},r=s(e,["generationConfig"]);t!==void 0&&r!=null&&a(t,["setup","generationConfig"],r);const o=s(e,["responseModalities"]);t!==void 0&&o!=null&&a(t,["setup","generationConfig","responseModalities"],o);const l=s(e,["temperature"]);t!==void 0&&l!=null&&a(t,["setup","generationConfig","temperature"],l);const u=s(e,["topP"]);t!==void 0&&u!=null&&a(t,["setup","generationConfig","topP"],u);const c=s(e,["topK"]);t!==void 0&&c!=null&&a(t,["setup","generationConfig","topK"],c);const f=s(e,["maxOutputTokens"]);t!==void 0&&f!=null&&a(t,["setup","generationConfig","maxOutputTokens"],f);const d=s(e,["mediaResolution"]);t!==void 0&&d!=null&&a(t,["setup","generationConfig","mediaResolution"],d);const h=s(e,["seed"]);t!==void 0&&h!=null&&a(t,["setup","generationConfig","seed"],h);const g=s(e,["speechConfig"]);t!==void 0&&g!=null&&a(t,["setup","generationConfig","speechConfig"],nx(n,Rr(n,g)));const x=s(e,["enableAffectiveDialog"]);t!==void 0&&x!=null&&a(t,["setup","generationConfig","enableAffectiveDialog"],x);const w=s(e,["systemInstruction"]);t!==void 0&&w!=null&&a(t,["setup","systemInstruction"],ax(n,Le(n,w)));const b=s(e,["tools"]);if(t!==void 0&&b!=null){let I=On(n,b);Array.isArray(I)&&(I=I.map(R=>hx(n,Bn(n,R)))),a(t,["setup","tools"],I)}const D=s(e,["sessionResumption"]);t!==void 0&&D!=null&&a(t,["setup","sessionResumption"],mx(n,D));const F=s(e,["inputAudioTranscription"]);t!==void 0&&F!=null&&a(t,["setup","inputAudioTranscription"],Tl());const T=s(e,["outputAudioTranscription"]);t!==void 0&&T!=null&&a(t,["setup","outputAudioTranscription"],Tl());const k=s(e,["realtimeInputConfig"]);t!==void 0&&k!=null&&a(t,["setup","realtimeInputConfig"],yx(n,k));const A=s(e,["contextWindowCompression"]);t!==void 0&&A!=null&&a(t,["setup","contextWindowCompression"],_x(n,A));const S=s(e,["proactivity"]);return t!==void 0&&S!=null&&a(t,["setup","proactivity"],xx(n,S)),i}function Ex(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["setup","model"],pe(n,i));const r=s(e,["config"]);return r!=null&&a(t,["config"],Cx(n,r,t)),t}function Tx(n,e,t){const i={},r=s(e,["expireTime"]);t!==void 0&&r!=null&&a(t,["expireTime"],r);const o=s(e,["newSessionExpireTime"]);t!==void 0&&o!=null&&a(t,["newSessionExpireTime"],o);const l=s(e,["uses"]);t!==void 0&&l!=null&&a(t,["uses"],l);const u=s(e,["liveConnectConstraints"]);t!==void 0&&u!=null&&a(t,["bidiGenerateContentSetup"],Ex(n,u));const c=s(e,["lockAdditionalFields"]);return t!==void 0&&c!=null&&a(t,["fieldMask"],c),i}function wx(n,e){const t={},i=s(e,["config"]);return i!=null&&a(t,["config"],Tx(n,i,t)),t}function Sx(n,e){const t={},i=s(e,["name"]);return i!=null&&a(t,["name"],i),t}/**
434
+ */function g3(c,l){const a={},r=m(l,["voiceName"]);return r!=null&&g(a,["voiceName"],r),a}function d1(c,l){const a={},r=m(l,["prebuiltVoiceConfig"]);return r!=null&&g(a,["prebuiltVoiceConfig"],g3(c,r)),a}function y3(c,l){const a={},r=m(l,["speaker"]);r!=null&&g(a,["speaker"],r);const f=m(l,["voiceConfig"]);return f!=null&&g(a,["voiceConfig"],d1(c,f)),a}function v3(c,l){const a={},r=m(l,["speakerVoiceConfigs"]);if(r!=null){let f=r;Array.isArray(f)&&(f=f.map(y=>y3(c,y))),g(a,["speakerVoiceConfigs"],f)}return a}function S3(c,l){const a={},r=m(l,["voiceConfig"]);r!=null&&g(a,["voiceConfig"],d1(c,r));const f=m(l,["multiSpeakerVoiceConfig"]);f!=null&&g(a,["multiSpeakerVoiceConfig"],v3(c,f));const y=m(l,["languageCode"]);return y!=null&&g(a,["languageCode"],y),a}function T3(c,l){const a={},r=m(l,["fps"]);r!=null&&g(a,["fps"],r);const f=m(l,["endOffset"]);f!=null&&g(a,["endOffset"],f);const y=m(l,["startOffset"]);return y!=null&&g(a,["startOffset"],y),a}function C3(c,l){const a={};if(m(l,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const r=m(l,["data"]);r!=null&&g(a,["data"],r);const f=m(l,["mimeType"]);return f!=null&&g(a,["mimeType"],f),a}function E3(c,l){const a={};if(m(l,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const r=m(l,["fileUri"]);r!=null&&g(a,["fileUri"],r);const f=m(l,["mimeType"]);return f!=null&&g(a,["mimeType"],f),a}function _3(c,l){const a={},r=m(l,["videoMetadata"]);r!=null&&g(a,["videoMetadata"],T3(c,r));const f=m(l,["thought"]);f!=null&&g(a,["thought"],f);const y=m(l,["inlineData"]);y!=null&&g(a,["inlineData"],C3(c,y));const C=m(l,["fileData"]);C!=null&&g(a,["fileData"],E3(c,C));const E=m(l,["thoughtSignature"]);E!=null&&g(a,["thoughtSignature"],E);const b=m(l,["codeExecutionResult"]);b!=null&&g(a,["codeExecutionResult"],b);const A=m(l,["executableCode"]);A!=null&&g(a,["executableCode"],A);const D=m(l,["functionCall"]);D!=null&&g(a,["functionCall"],D);const N=m(l,["functionResponse"]);N!=null&&g(a,["functionResponse"],N);const z=m(l,["text"]);return z!=null&&g(a,["text"],z),a}function A3(c,l){const a={},r=m(l,["parts"]);if(r!=null){let y=r;Array.isArray(y)&&(y=y.map(C=>_3(c,C))),g(a,["parts"],y)}const f=m(l,["role"]);return f!=null&&g(a,["role"],f),a}function b3(c,l){const a={},r=m(l,["behavior"]);r!=null&&g(a,["behavior"],r);const f=m(l,["description"]);f!=null&&g(a,["description"],f);const y=m(l,["name"]);y!=null&&g(a,["name"],y);const C=m(l,["parameters"]);C!=null&&g(a,["parameters"],C);const E=m(l,["response"]);return E!=null&&g(a,["response"],E),a}function M3(c,l){const a={},r=m(l,["startTime"]);r!=null&&g(a,["startTime"],r);const f=m(l,["endTime"]);return f!=null&&g(a,["endTime"],f),a}function R3(c,l){const a={},r=m(l,["timeRangeFilter"]);return r!=null&&g(a,["timeRangeFilter"],M3(c,r)),a}function D3(c,l){const a={},r=m(l,["mode"]);r!=null&&g(a,["mode"],r);const f=m(l,["dynamicThreshold"]);return f!=null&&g(a,["dynamicThreshold"],f),a}function x3(c,l){const a={},r=m(l,["dynamicRetrievalConfig"]);return r!=null&&g(a,["dynamicRetrievalConfig"],D3(c,r)),a}function U3(){return{}}function N3(c,l){const a={},r=m(l,["functionDeclarations"]);if(r!=null){let b=r;Array.isArray(b)&&(b=b.map(A=>b3(c,A))),g(a,["functionDeclarations"],b)}if(m(l,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const f=m(l,["googleSearch"]);f!=null&&g(a,["googleSearch"],R3(c,f));const y=m(l,["googleSearchRetrieval"]);if(y!=null&&g(a,["googleSearchRetrieval"],x3(c,y)),m(l,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");if(m(l,["googleMaps"])!==void 0)throw new Error("googleMaps parameter is not supported in Gemini API.");m(l,["urlContext"])!=null&&g(a,["urlContext"],U3());const E=m(l,["codeExecution"]);return E!=null&&g(a,["codeExecution"],E),a}function z3(c,l){const a={},r=m(l,["handle"]);if(r!=null&&g(a,["handle"],r),m(l,["transparent"])!==void 0)throw new Error("transparent parameter is not supported in Gemini API.");return a}function h1(){return{}}function O3(c,l){const a={},r=m(l,["disabled"]);r!=null&&g(a,["disabled"],r);const f=m(l,["startOfSpeechSensitivity"]);f!=null&&g(a,["startOfSpeechSensitivity"],f);const y=m(l,["endOfSpeechSensitivity"]);y!=null&&g(a,["endOfSpeechSensitivity"],y);const C=m(l,["prefixPaddingMs"]);C!=null&&g(a,["prefixPaddingMs"],C);const E=m(l,["silenceDurationMs"]);return E!=null&&g(a,["silenceDurationMs"],E),a}function w3(c,l){const a={},r=m(l,["automaticActivityDetection"]);r!=null&&g(a,["automaticActivityDetection"],O3(c,r));const f=m(l,["activityHandling"]);f!=null&&g(a,["activityHandling"],f);const y=m(l,["turnCoverage"]);return y!=null&&g(a,["turnCoverage"],y),a}function V3(c,l){const a={},r=m(l,["targetTokens"]);return r!=null&&g(a,["targetTokens"],r),a}function L3(c,l){const a={},r=m(l,["triggerTokens"]);r!=null&&g(a,["triggerTokens"],r);const f=m(l,["slidingWindow"]);return f!=null&&g(a,["slidingWindow"],V3(c,f)),a}function H3(c,l){const a={},r=m(l,["proactiveAudio"]);return r!=null&&g(a,["proactiveAudio"],r),a}function B3(c,l,a){const r={},f=m(l,["generationConfig"]);a!==void 0&&f!=null&&g(a,["setup","generationConfig"],f);const y=m(l,["responseModalities"]);a!==void 0&&y!=null&&g(a,["setup","generationConfig","responseModalities"],y);const C=m(l,["temperature"]);a!==void 0&&C!=null&&g(a,["setup","generationConfig","temperature"],C);const E=m(l,["topP"]);a!==void 0&&E!=null&&g(a,["setup","generationConfig","topP"],E);const b=m(l,["topK"]);a!==void 0&&b!=null&&g(a,["setup","generationConfig","topK"],b);const A=m(l,["maxOutputTokens"]);a!==void 0&&A!=null&&g(a,["setup","generationConfig","maxOutputTokens"],A);const D=m(l,["mediaResolution"]);a!==void 0&&D!=null&&g(a,["setup","generationConfig","mediaResolution"],D);const N=m(l,["seed"]);a!==void 0&&N!=null&&g(a,["setup","generationConfig","seed"],N);const z=m(l,["speechConfig"]);a!==void 0&&z!=null&&g(a,["setup","generationConfig","speechConfig"],S3(c,gT(c,z)));const Z=m(l,["enableAffectiveDialog"]);a!==void 0&&Z!=null&&g(a,["setup","generationConfig","enableAffectiveDialog"],Z);const F=m(l,["systemInstruction"]);a!==void 0&&F!=null&&g(a,["setup","systemInstruction"],A3(c,Gl(c,F)));const ie=m(l,["tools"]);if(a!==void 0&&ie!=null){let Oe=rp(c,ie);Array.isArray(Oe)&&(Oe=Oe.map(Be=>N3(c,sp(c,Be)))),g(a,["setup","tools"],Oe)}const se=m(l,["sessionResumption"]);a!==void 0&&se!=null&&g(a,["setup","sessionResumption"],z3(c,se));const fe=m(l,["inputAudioTranscription"]);a!==void 0&&fe!=null&&g(a,["setup","inputAudioTranscription"],h1());const de=m(l,["outputAudioTranscription"]);a!==void 0&&de!=null&&g(a,["setup","outputAudioTranscription"],h1());const me=m(l,["realtimeInputConfig"]);a!==void 0&&me!=null&&g(a,["setup","realtimeInputConfig"],w3(c,me));const Te=m(l,["contextWindowCompression"]);a!==void 0&&Te!=null&&g(a,["setup","contextWindowCompression"],L3(c,Te));const Re=m(l,["proactivity"]);return a!==void 0&&Re!=null&&g(a,["setup","proactivity"],H3(c,Re)),r}function q3(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["setup","model"],Kt(c,r));const f=m(l,["config"]);return f!=null&&g(a,["config"],B3(c,f,a)),a}function G3(c,l,a){const r={},f=m(l,["expireTime"]);a!==void 0&&f!=null&&g(a,["expireTime"],f);const y=m(l,["newSessionExpireTime"]);a!==void 0&&y!=null&&g(a,["newSessionExpireTime"],y);const C=m(l,["uses"]);a!==void 0&&C!=null&&g(a,["uses"],C);const E=m(l,["liveConnectConstraints"]);a!==void 0&&E!=null&&g(a,["bidiGenerateContentSetup"],q3(c,E));const b=m(l,["lockAdditionalFields"]);return a!==void 0&&b!=null&&g(a,["fieldMask"],b),r}function Y3(c,l){const a={},r=m(l,["config"]);return r!=null&&g(a,["config"],G3(c,r,a)),a}function I3(c,l){const a={},r=m(l,["name"]);return r!=null&&g(a,["name"],r),a}/**
211
435
  * @license
212
436
  * Copyright 2025 Google LLC
213
437
  * SPDX-License-Identifier: Apache-2.0
214
- */function Ax(n){const e=[];for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)){const i=n[t];if(typeof i=="object"&&i!=null&&Object.keys(i).length>0){const r=Object.keys(i).map(o=>`${t}.${o}`);e.push(...r)}else e.push(t)}return e.join(",")}function bx(n,e){let t=null;const i=n.bidiGenerateContentSetup;if(typeof i=="object"&&i!==null&&"setup"in i){const o=i.setup;typeof o=="object"&&o!==null?(n.bidiGenerateContentSetup=o,t=o):delete n.bidiGenerateContentSetup}else i!==void 0&&delete n.bidiGenerateContentSetup;const r=n.fieldMask;if(t){const o=Ax(t);if(Array.isArray(e==null?void 0:e.lockAdditionalFields)&&(e==null?void 0:e.lockAdditionalFields.length)===0)o?n.fieldMask=o:delete n.fieldMask;else if(e!=null&&e.lockAdditionalFields&&e.lockAdditionalFields.length>0&&r!==null&&Array.isArray(r)&&r.length>0){const l=["temperature","topK","topP","maxOutputTokens","responseModalities","seed","speechConfig"];let u=[];r.length>0&&(u=r.map(f=>l.includes(f)?`generationConfig.${f}`:f));const c=[];o&&c.push(o),u.length>0&&c.push(...u),c.length>0?n.fieldMask=c.join(","):delete n.fieldMask}else delete n.fieldMask}else r!==null&&Array.isArray(r)&&r.length>0?n.fieldMask=r.join(","):delete n.fieldMask;return n}class Rx extends fn{constructor(e){super(),this.apiClient=e}async create(e){var t,i;let r,o="",l={};if(this.apiClient.isVertexAI())throw new Error("The client.tokens.create method is only supported by the Gemini Developer API.");{const u=wx(this.apiClient,e);o=X("auth_tokens",u._url),l=u._query,delete u.config,delete u._url,delete u._query;const c=bx(u,e.config);return r=this.apiClient.request({path:o,queryParams:l,body:JSON.stringify(c),httpMethod:"POST",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(f=>f.json()),r.then(f=>Sx(this.apiClient,f))}}}/**
438
+ */function Z3(c){const l=[];for(const a in c)if(Object.prototype.hasOwnProperty.call(c,a)){const r=c[a];if(typeof r=="object"&&r!=null&&Object.keys(r).length>0){const f=Object.keys(r).map(y=>`${a}.${y}`);l.push(...f)}else l.push(a)}return l.join(",")}function k3(c,l){let a=null;const r=c.bidiGenerateContentSetup;if(typeof r=="object"&&r!==null&&"setup"in r){const y=r.setup;typeof y=="object"&&y!==null?(c.bidiGenerateContentSetup=y,a=y):delete c.bidiGenerateContentSetup}else r!==void 0&&delete c.bidiGenerateContentSetup;const f=c.fieldMask;if(a){const y=Z3(a);if(Array.isArray(l==null?void 0:l.lockAdditionalFields)&&(l==null?void 0:l.lockAdditionalFields.length)===0)y?c.fieldMask=y:delete c.fieldMask;else if(l!=null&&l.lockAdditionalFields&&l.lockAdditionalFields.length>0&&f!==null&&Array.isArray(f)&&f.length>0){const C=["temperature","topK","topP","maxOutputTokens","responseModalities","seed","speechConfig"];let E=[];f.length>0&&(E=f.map(A=>C.includes(A)?`generationConfig.${A}`:A));const b=[];y&&b.push(y),E.length>0&&b.push(...E),b.length>0?c.fieldMask=b.join(","):delete c.fieldMask}else delete c.fieldMask}else f!==null&&Array.isArray(f)&&f.length>0?c.fieldMask=f.join(","):delete c.fieldMask;return c}class X3 extends Ad{constructor(l){super(),this.apiClient=l}async create(l){var a,r;let f,y="",C={};if(this.apiClient.isVertexAI())throw new Error("The client.tokens.create method is only supported by the Gemini Developer API.");{const E=Y3(this.apiClient,l);y=Ze("auth_tokens",E._url),C=E._query,delete E.config,delete E._url,delete E._query;const b=k3(E,l.config);return f=this.apiClient.request({path:y,queryParams:C,body:JSON.stringify(b),httpMethod:"POST",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(A=>A.json()),f.then(A=>I3(this.apiClient,A))}}}/**
215
439
  * @license
216
440
  * Copyright 2025 Google LLC
217
441
  * SPDX-License-Identifier: Apache-2.0
218
- */function Mx(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["_url","name"],i);const r=s(e,["config"]);return r!=null&&a(t,["config"],r),t}function Ix(n,e,t){const i={},r=s(e,["pageSize"]);t!==void 0&&r!=null&&a(t,["_query","pageSize"],r);const o=s(e,["pageToken"]);t!==void 0&&o!=null&&a(t,["_query","pageToken"],o);const l=s(e,["filter"]);return t!==void 0&&l!=null&&a(t,["_query","filter"],l),i}function Px(n,e){const t={},i=s(e,["config"]);return i!=null&&a(t,["config"],Ix(n,i,t)),t}function kx(n,e){const t={},i=s(e,["textInput"]);i!=null&&a(t,["textInput"],i);const r=s(e,["output"]);return r!=null&&a(t,["output"],r),t}function Nx(n,e){const t={};if(s(e,["gcsUri"])!==void 0)throw new Error("gcsUri parameter is not supported in Gemini API.");const i=s(e,["examples"]);if(i!=null){let r=i;Array.isArray(r)&&(r=r.map(o=>kx(n,o))),a(t,["examples","examples"],r)}return t}function Dx(n,e,t){const i={};if(s(e,["validationDataset"])!==void 0)throw new Error("validationDataset parameter is not supported in Gemini API.");const r=s(e,["tunedModelDisplayName"]);if(t!==void 0&&r!=null&&a(t,["displayName"],r),s(e,["description"])!==void 0)throw new Error("description parameter is not supported in Gemini API.");const o=s(e,["epochCount"]);t!==void 0&&o!=null&&a(t,["tuningTask","hyperparameters","epochCount"],o);const l=s(e,["learningRateMultiplier"]);if(l!=null&&a(i,["tuningTask","hyperparameters","learningRateMultiplier"],l),s(e,["exportLastCheckpointOnly"])!==void 0)throw new Error("exportLastCheckpointOnly parameter is not supported in Gemini API.");if(s(e,["adapterSize"])!==void 0)throw new Error("adapterSize parameter is not supported in Gemini API.");const u=s(e,["batchSize"]);t!==void 0&&u!=null&&a(t,["tuningTask","hyperparameters","batchSize"],u);const c=s(e,["learningRate"]);return t!==void 0&&c!=null&&a(t,["tuningTask","hyperparameters","learningRate"],c),i}function Lx(n,e){const t={},i=s(e,["baseModel"]);i!=null&&a(t,["baseModel"],i);const r=s(e,["trainingDataset"]);r!=null&&a(t,["tuningTask","trainingData"],Nx(n,r));const o=s(e,["config"]);return o!=null&&a(t,["config"],Dx(n,o,t)),t}function Fx(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["_url","name"],i);const r=s(e,["config"]);return r!=null&&a(t,["config"],r),t}function Vx(n,e,t){const i={},r=s(e,["pageSize"]);t!==void 0&&r!=null&&a(t,["_query","pageSize"],r);const o=s(e,["pageToken"]);t!==void 0&&o!=null&&a(t,["_query","pageToken"],o);const l=s(e,["filter"]);return t!==void 0&&l!=null&&a(t,["_query","filter"],l),i}function Bx(n,e){const t={},i=s(e,["config"]);return i!=null&&a(t,["config"],Vx(n,i,t)),t}function Ox(n,e,t){const i={},r=s(e,["gcsUri"]);if(t!==void 0&&r!=null&&a(t,["supervisedTuningSpec","trainingDatasetUri"],r),s(e,["examples"])!==void 0)throw new Error("examples parameter is not supported in Vertex AI.");return i}function Ux(n,e){const t={},i=s(e,["gcsUri"]);return i!=null&&a(t,["validationDatasetUri"],i),t}function $x(n,e,t){const i={},r=s(e,["validationDataset"]);t!==void 0&&r!=null&&a(t,["supervisedTuningSpec"],Ux(n,r));const o=s(e,["tunedModelDisplayName"]);t!==void 0&&o!=null&&a(t,["tunedModelDisplayName"],o);const l=s(e,["description"]);t!==void 0&&l!=null&&a(t,["description"],l);const u=s(e,["epochCount"]);t!==void 0&&u!=null&&a(t,["supervisedTuningSpec","hyperParameters","epochCount"],u);const c=s(e,["learningRateMultiplier"]);t!==void 0&&c!=null&&a(t,["supervisedTuningSpec","hyperParameters","learningRateMultiplier"],c);const f=s(e,["exportLastCheckpointOnly"]);t!==void 0&&f!=null&&a(t,["supervisedTuningSpec","exportLastCheckpointOnly"],f);const d=s(e,["adapterSize"]);if(t!==void 0&&d!=null&&a(t,["supervisedTuningSpec","hyperParameters","adapterSize"],d),s(e,["batchSize"])!==void 0)throw new Error("batchSize parameter is not supported in Vertex AI.");if(s(e,["learningRate"])!==void 0)throw new Error("learningRate parameter is not supported in Vertex AI.");return i}function Gx(n,e){const t={},i=s(e,["baseModel"]);i!=null&&a(t,["baseModel"],i);const r=s(e,["trainingDataset"]);r!=null&&a(t,["supervisedTuningSpec","trainingDatasetUri"],Ox(n,r,t));const o=s(e,["config"]);return o!=null&&a(t,["config"],$x(n,o,t)),t}function qx(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["model"],i);const r=s(e,["name"]);return r!=null&&a(t,["endpoint"],r),t}function wl(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["name"],i);const r=s(e,["state"]);r!=null&&a(t,["state"],$a(n,r));const o=s(e,["createTime"]);o!=null&&a(t,["createTime"],o);const l=s(e,["tuningTask","startTime"]);l!=null&&a(t,["startTime"],l);const u=s(e,["tuningTask","completeTime"]);u!=null&&a(t,["endTime"],u);const c=s(e,["updateTime"]);c!=null&&a(t,["updateTime"],c);const f=s(e,["description"]);f!=null&&a(t,["description"],f);const d=s(e,["baseModel"]);d!=null&&a(t,["baseModel"],d);const h=s(e,["_self"]);h!=null&&a(t,["tunedModel"],qx(n,h));const g=s(e,["distillationSpec"]);g!=null&&a(t,["distillationSpec"],g);const x=s(e,["experiment"]);x!=null&&a(t,["experiment"],x);const w=s(e,["labels"]);w!=null&&a(t,["labels"],w);const b=s(e,["pipelineJob"]);b!=null&&a(t,["pipelineJob"],b);const D=s(e,["serviceAccount"]);D!=null&&a(t,["serviceAccount"],D);const F=s(e,["tunedModelDisplayName"]);return F!=null&&a(t,["tunedModelDisplayName"],F),t}function Hx(n,e){const t={},i=s(e,["nextPageToken"]);i!=null&&a(t,["nextPageToken"],i);const r=s(e,["tunedModels"]);if(r!=null){let o=r;Array.isArray(o)&&(o=o.map(l=>wl(n,l))),a(t,["tuningJobs"],o)}return t}function Wx(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["name"],i);const r=s(e,["metadata"]);r!=null&&a(t,["metadata"],r);const o=s(e,["done"]);o!=null&&a(t,["done"],o);const l=s(e,["error"]);return l!=null&&a(t,["error"],l),t}function zx(n,e){const t={},i=s(e,["checkpointId"]);i!=null&&a(t,["checkpointId"],i);const r=s(e,["epoch"]);r!=null&&a(t,["epoch"],r);const o=s(e,["step"]);o!=null&&a(t,["step"],o);const l=s(e,["endpoint"]);return l!=null&&a(t,["endpoint"],l),t}function Yx(n,e){const t={},i=s(e,["model"]);i!=null&&a(t,["model"],i);const r=s(e,["endpoint"]);r!=null&&a(t,["endpoint"],r);const o=s(e,["checkpoints"]);if(o!=null){let l=o;Array.isArray(l)&&(l=l.map(u=>zx(n,u))),a(t,["checkpoints"],l)}return t}function Or(n,e){const t={},i=s(e,["name"]);i!=null&&a(t,["name"],i);const r=s(e,["state"]);r!=null&&a(t,["state"],$a(n,r));const o=s(e,["createTime"]);o!=null&&a(t,["createTime"],o);const l=s(e,["startTime"]);l!=null&&a(t,["startTime"],l);const u=s(e,["endTime"]);u!=null&&a(t,["endTime"],u);const c=s(e,["updateTime"]);c!=null&&a(t,["updateTime"],c);const f=s(e,["error"]);f!=null&&a(t,["error"],f);const d=s(e,["description"]);d!=null&&a(t,["description"],d);const h=s(e,["baseModel"]);h!=null&&a(t,["baseModel"],h);const g=s(e,["tunedModel"]);g!=null&&a(t,["tunedModel"],Yx(n,g));const x=s(e,["supervisedTuningSpec"]);x!=null&&a(t,["supervisedTuningSpec"],x);const w=s(e,["tuningDataStats"]);w!=null&&a(t,["tuningDataStats"],w);const b=s(e,["encryptionSpec"]);b!=null&&a(t,["encryptionSpec"],b);const D=s(e,["partnerModelTuningSpec"]);D!=null&&a(t,["partnerModelTuningSpec"],D);const F=s(e,["distillationSpec"]);F!=null&&a(t,["distillationSpec"],F);const T=s(e,["experiment"]);T!=null&&a(t,["experiment"],T);const k=s(e,["labels"]);k!=null&&a(t,["labels"],k);const A=s(e,["pipelineJob"]);A!=null&&a(t,["pipelineJob"],A);const S=s(e,["serviceAccount"]);S!=null&&a(t,["serviceAccount"],S);const I=s(e,["tunedModelDisplayName"]);return I!=null&&a(t,["tunedModelDisplayName"],I),t}function Kx(n,e){const t={},i=s(e,["nextPageToken"]);i!=null&&a(t,["nextPageToken"],i);const r=s(e,["tuningJobs"]);if(r!=null){let o=r;Array.isArray(o)&&(o=o.map(l=>Or(n,l))),a(t,["tuningJobs"],o)}return t}/**
442
+ */function Q3(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["_url","name"],r);const f=m(l,["config"]);return f!=null&&g(a,["config"],f),a}function J3(c,l,a){const r={},f=m(l,["pageSize"]);a!==void 0&&f!=null&&g(a,["_query","pageSize"],f);const y=m(l,["pageToken"]);a!==void 0&&y!=null&&g(a,["_query","pageToken"],y);const C=m(l,["filter"]);return a!==void 0&&C!=null&&g(a,["_query","filter"],C),r}function K3(c,l){const a={},r=m(l,["config"]);return r!=null&&g(a,["config"],J3(c,r,a)),a}function F3(c,l){const a={},r=m(l,["textInput"]);r!=null&&g(a,["textInput"],r);const f=m(l,["output"]);return f!=null&&g(a,["output"],f),a}function $3(c,l){const a={};if(m(l,["gcsUri"])!==void 0)throw new Error("gcsUri parameter is not supported in Gemini API.");const r=m(l,["examples"]);if(r!=null){let f=r;Array.isArray(f)&&(f=f.map(y=>F3(c,y))),g(a,["examples","examples"],f)}return a}function P3(c,l,a){const r={};if(m(l,["validationDataset"])!==void 0)throw new Error("validationDataset parameter is not supported in Gemini API.");const f=m(l,["tunedModelDisplayName"]);if(a!==void 0&&f!=null&&g(a,["displayName"],f),m(l,["description"])!==void 0)throw new Error("description parameter is not supported in Gemini API.");const y=m(l,["epochCount"]);a!==void 0&&y!=null&&g(a,["tuningTask","hyperparameters","epochCount"],y);const C=m(l,["learningRateMultiplier"]);if(C!=null&&g(r,["tuningTask","hyperparameters","learningRateMultiplier"],C),m(l,["exportLastCheckpointOnly"])!==void 0)throw new Error("exportLastCheckpointOnly parameter is not supported in Gemini API.");if(m(l,["adapterSize"])!==void 0)throw new Error("adapterSize parameter is not supported in Gemini API.");const E=m(l,["batchSize"]);a!==void 0&&E!=null&&g(a,["tuningTask","hyperparameters","batchSize"],E);const b=m(l,["learningRate"]);return a!==void 0&&b!=null&&g(a,["tuningTask","hyperparameters","learningRate"],b),r}function W3(c,l){const a={},r=m(l,["baseModel"]);r!=null&&g(a,["baseModel"],r);const f=m(l,["trainingDataset"]);f!=null&&g(a,["tuningTask","trainingData"],$3(c,f));const y=m(l,["config"]);return y!=null&&g(a,["config"],P3(c,y,a)),a}function j3(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["_url","name"],r);const f=m(l,["config"]);return f!=null&&g(a,["config"],f),a}function ez(c,l,a){const r={},f=m(l,["pageSize"]);a!==void 0&&f!=null&&g(a,["_query","pageSize"],f);const y=m(l,["pageToken"]);a!==void 0&&y!=null&&g(a,["_query","pageToken"],y);const C=m(l,["filter"]);return a!==void 0&&C!=null&&g(a,["_query","filter"],C),r}function tz(c,l){const a={},r=m(l,["config"]);return r!=null&&g(a,["config"],ez(c,r,a)),a}function nz(c,l,a){const r={},f=m(l,["gcsUri"]);if(a!==void 0&&f!=null&&g(a,["supervisedTuningSpec","trainingDatasetUri"],f),m(l,["examples"])!==void 0)throw new Error("examples parameter is not supported in Vertex AI.");return r}function lz(c,l){const a={},r=m(l,["gcsUri"]);return r!=null&&g(a,["validationDatasetUri"],r),a}function az(c,l,a){const r={},f=m(l,["validationDataset"]);a!==void 0&&f!=null&&g(a,["supervisedTuningSpec"],lz(c,f));const y=m(l,["tunedModelDisplayName"]);a!==void 0&&y!=null&&g(a,["tunedModelDisplayName"],y);const C=m(l,["description"]);a!==void 0&&C!=null&&g(a,["description"],C);const E=m(l,["epochCount"]);a!==void 0&&E!=null&&g(a,["supervisedTuningSpec","hyperParameters","epochCount"],E);const b=m(l,["learningRateMultiplier"]);a!==void 0&&b!=null&&g(a,["supervisedTuningSpec","hyperParameters","learningRateMultiplier"],b);const A=m(l,["exportLastCheckpointOnly"]);a!==void 0&&A!=null&&g(a,["supervisedTuningSpec","exportLastCheckpointOnly"],A);const D=m(l,["adapterSize"]);if(a!==void 0&&D!=null&&g(a,["supervisedTuningSpec","hyperParameters","adapterSize"],D),m(l,["batchSize"])!==void 0)throw new Error("batchSize parameter is not supported in Vertex AI.");if(m(l,["learningRate"])!==void 0)throw new Error("learningRate parameter is not supported in Vertex AI.");return r}function iz(c,l){const a={},r=m(l,["baseModel"]);r!=null&&g(a,["baseModel"],r);const f=m(l,["trainingDataset"]);f!=null&&g(a,["supervisedTuningSpec","trainingDatasetUri"],nz(c,f,a));const y=m(l,["config"]);return y!=null&&g(a,["config"],az(c,y,a)),a}function oz(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["model"],r);const f=m(l,["name"]);return f!=null&&g(a,["endpoint"],f),a}function m1(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["name"],r);const f=m(l,["state"]);f!=null&&g(a,["state"],N_(c,f));const y=m(l,["createTime"]);y!=null&&g(a,["createTime"],y);const C=m(l,["tuningTask","startTime"]);C!=null&&g(a,["startTime"],C);const E=m(l,["tuningTask","completeTime"]);E!=null&&g(a,["endTime"],E);const b=m(l,["updateTime"]);b!=null&&g(a,["updateTime"],b);const A=m(l,["description"]);A!=null&&g(a,["description"],A);const D=m(l,["baseModel"]);D!=null&&g(a,["baseModel"],D);const N=m(l,["_self"]);N!=null&&g(a,["tunedModel"],oz(c,N));const z=m(l,["distillationSpec"]);z!=null&&g(a,["distillationSpec"],z);const Z=m(l,["experiment"]);Z!=null&&g(a,["experiment"],Z);const F=m(l,["labels"]);F!=null&&g(a,["labels"],F);const ie=m(l,["pipelineJob"]);ie!=null&&g(a,["pipelineJob"],ie);const se=m(l,["serviceAccount"]);se!=null&&g(a,["serviceAccount"],se);const fe=m(l,["tunedModelDisplayName"]);return fe!=null&&g(a,["tunedModelDisplayName"],fe),a}function uz(c,l){const a={},r=m(l,["nextPageToken"]);r!=null&&g(a,["nextPageToken"],r);const f=m(l,["tunedModels"]);if(f!=null){let y=f;Array.isArray(y)&&(y=y.map(C=>m1(c,C))),g(a,["tuningJobs"],y)}return a}function sz(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["name"],r);const f=m(l,["metadata"]);f!=null&&g(a,["metadata"],f);const y=m(l,["done"]);y!=null&&g(a,["done"],y);const C=m(l,["error"]);return C!=null&&g(a,["error"],C),a}function rz(c,l){const a={},r=m(l,["checkpointId"]);r!=null&&g(a,["checkpointId"],r);const f=m(l,["epoch"]);f!=null&&g(a,["epoch"],f);const y=m(l,["step"]);y!=null&&g(a,["step"],y);const C=m(l,["endpoint"]);return C!=null&&g(a,["endpoint"],C),a}function cz(c,l){const a={},r=m(l,["model"]);r!=null&&g(a,["model"],r);const f=m(l,["endpoint"]);f!=null&&g(a,["endpoint"],f);const y=m(l,["checkpoints"]);if(y!=null){let C=y;Array.isArray(C)&&(C=C.map(E=>rz(c,E))),g(a,["checkpoints"],C)}return a}function RT(c,l){const a={},r=m(l,["name"]);r!=null&&g(a,["name"],r);const f=m(l,["state"]);f!=null&&g(a,["state"],N_(c,f));const y=m(l,["createTime"]);y!=null&&g(a,["createTime"],y);const C=m(l,["startTime"]);C!=null&&g(a,["startTime"],C);const E=m(l,["endTime"]);E!=null&&g(a,["endTime"],E);const b=m(l,["updateTime"]);b!=null&&g(a,["updateTime"],b);const A=m(l,["error"]);A!=null&&g(a,["error"],A);const D=m(l,["description"]);D!=null&&g(a,["description"],D);const N=m(l,["baseModel"]);N!=null&&g(a,["baseModel"],N);const z=m(l,["tunedModel"]);z!=null&&g(a,["tunedModel"],cz(c,z));const Z=m(l,["supervisedTuningSpec"]);Z!=null&&g(a,["supervisedTuningSpec"],Z);const F=m(l,["tuningDataStats"]);F!=null&&g(a,["tuningDataStats"],F);const ie=m(l,["encryptionSpec"]);ie!=null&&g(a,["encryptionSpec"],ie);const se=m(l,["partnerModelTuningSpec"]);se!=null&&g(a,["partnerModelTuningSpec"],se);const fe=m(l,["distillationSpec"]);fe!=null&&g(a,["distillationSpec"],fe);const de=m(l,["experiment"]);de!=null&&g(a,["experiment"],de);const me=m(l,["labels"]);me!=null&&g(a,["labels"],me);const Te=m(l,["pipelineJob"]);Te!=null&&g(a,["pipelineJob"],Te);const Re=m(l,["serviceAccount"]);Re!=null&&g(a,["serviceAccount"],Re);const Oe=m(l,["tunedModelDisplayName"]);return Oe!=null&&g(a,["tunedModelDisplayName"],Oe),a}function fz(c,l){const a={},r=m(l,["nextPageToken"]);r!=null&&g(a,["nextPageToken"],r);const f=m(l,["tuningJobs"]);if(f!=null){let y=f;Array.isArray(y)&&(y=y.map(C=>RT(c,C))),g(a,["tuningJobs"],y)}return a}/**
219
443
  * @license
220
444
  * Copyright 2025 Google LLC
221
445
  * SPDX-License-Identifier: Apache-2.0
222
- */class Jx extends fn{constructor(e){super(),this.apiClient=e,this.get=async t=>await this.getInternal(t),this.list=async(t={})=>new Mi(hn.PAGED_ITEM_TUNING_JOBS,i=>this.listInternal(i),await this.listInternal(t),t),this.tune=async t=>{if(this.apiClient.isVertexAI())return await this.tuneInternal(t);{const i=await this.tuneMldevInternal(t);let r="";return i.metadata!==void 0&&i.metadata.tunedModel!==void 0?r=i.metadata.tunedModel:i.name!==void 0&&i.name.includes("/operations/")&&(r=i.name.split("/operations/")[0]),{name:r,state:Sr.JOB_STATE_QUEUED}}}}async getInternal(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=Fx(this.apiClient,e);return u=X("{name}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(d=>d.json()),l.then(d=>Or(this.apiClient,d))}else{const f=Mx(this.apiClient,e);return u=X("{name}",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(d=>d.json()),l.then(d=>wl(this.apiClient,d))}}async listInternal(e){var t,i,r,o;let l,u="",c={};if(this.apiClient.isVertexAI()){const f=Bx(this.apiClient,e);return u=X("tuningJobs",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(d=>d.json()),l.then(d=>{const h=Kx(this.apiClient,d),g=new Ma;return Object.assign(g,h),g})}else{const f=Px(this.apiClient,e);return u=X("tunedModels",f._url),c=f._query,delete f.config,delete f._url,delete f._query,l=this.apiClient.request({path:u,queryParams:c,body:JSON.stringify(f),httpMethod:"GET",httpOptions:(r=e.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(o=e.config)===null||o===void 0?void 0:o.abortSignal}).then(d=>d.json()),l.then(d=>{const h=Hx(this.apiClient,d),g=new Ma;return Object.assign(g,h),g})}}async tuneInternal(e){var t,i;let r,o="",l={};if(this.apiClient.isVertexAI()){const u=Gx(this.apiClient,e);return o=X("tuningJobs",u._url),l=u._query,delete u.config,delete u._url,delete u._query,r=this.apiClient.request({path:o,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(c=>c.json()),r.then(c=>Or(this.apiClient,c))}else throw new Error("This method is only supported by the Vertex AI.")}async tuneMldevInternal(e){var t,i;let r,o="",l={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const u=Lx(this.apiClient,e);return o=X("tunedModels",u._url),l=u._query,delete u.config,delete u._url,delete u._query,r=this.apiClient.request({path:o,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(t=e.config)===null||t===void 0?void 0:t.httpOptions,abortSignal:(i=e.config)===null||i===void 0?void 0:i.abortSignal}).then(c=>c.json()),r.then(c=>Wx(this.apiClient,c))}}}/**
446
+ */class dz extends Ad{constructor(l){super(),this.apiClient=l,this.get=async a=>await this.getInternal(a),this.list=async(a={})=>new Mv(Rd.PAGED_ITEM_TUNING_JOBS,r=>this.listInternal(r),await this.listInternal(a),a),this.tune=async a=>{if(this.apiClient.isVertexAI())return await this.tuneInternal(a);{const r=await this.tuneMldevInternal(a);let f="";return r.metadata!==void 0&&r.metadata.tunedModel!==void 0?f=r.metadata.tunedModel:r.name!==void 0&&r.name.includes("/operations/")&&(f=r.name.split("/operations/")[0]),{name:f,state:hT.JOB_STATE_QUEUED}}}}async getInternal(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=j3(this.apiClient,l);return E=Ze("{name}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"GET",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(D=>D.json()),C.then(D=>RT(this.apiClient,D))}else{const A=Q3(this.apiClient,l);return E=Ze("{name}",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"GET",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}).then(D=>D.json()),C.then(D=>m1(this.apiClient,D))}}async listInternal(l){var a,r,f,y;let C,E="",b={};if(this.apiClient.isVertexAI()){const A=tz(this.apiClient,l);return E=Ze("tuningJobs",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"GET",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(D=>D.json()),C.then(D=>{const N=fz(this.apiClient,D),z=new S_;return Object.assign(z,N),z})}else{const A=K3(this.apiClient,l);return E=Ze("tunedModels",A._url),b=A._query,delete A.config,delete A._url,delete A._query,C=this.apiClient.request({path:E,queryParams:b,body:JSON.stringify(A),httpMethod:"GET",httpOptions:(f=l.config)===null||f===void 0?void 0:f.httpOptions,abortSignal:(y=l.config)===null||y===void 0?void 0:y.abortSignal}).then(D=>D.json()),C.then(D=>{const N=uz(this.apiClient,D),z=new S_;return Object.assign(z,N),z})}}async tuneInternal(l){var a,r;let f,y="",C={};if(this.apiClient.isVertexAI()){const E=iz(this.apiClient,l);return y=Ze("tuningJobs",E._url),C=E._query,delete E.config,delete E._url,delete E._query,f=this.apiClient.request({path:y,queryParams:C,body:JSON.stringify(E),httpMethod:"POST",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(b=>b.json()),f.then(b=>RT(this.apiClient,b))}else throw new Error("This method is only supported by the Vertex AI.")}async tuneMldevInternal(l){var a,r;let f,y="",C={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const E=W3(this.apiClient,l);return y=Ze("tunedModels",E._url),C=E._query,delete E.config,delete E._url,delete E._query,f=this.apiClient.request({path:y,queryParams:C,body:JSON.stringify(E),httpMethod:"POST",httpOptions:(a=l.config)===null||a===void 0?void 0:a.httpOptions,abortSignal:(r=l.config)===null||r===void 0?void 0:r.abortSignal}).then(b=>b.json()),f.then(b=>sz(this.apiClient,b))}}}/**
223
447
  * @license
224
448
  * Copyright 2025 Google LLC
225
449
  * SPDX-License-Identifier: Apache-2.0
226
- */class Zx{async download(e,t){throw new Error("Download to file is not supported in the browser, please use a browser compliant download like an <a> tag.")}}const Xx=1024*1024*8,Qx=3,jx=1e3,eC=2,Ur="x-goog-upload-status";async function tC(n,e,t){var i,r,o;let l=0,u=0,c=new Ar(new Response),f="upload";for(l=n.size;u<l;){const h=Math.min(Xx,l-u),g=n.slice(u,u+h);u+h>=l&&(f+=", finalize");let x=0,w=jx;for(;x<Qx&&(c=await t.request({path:"",body:g,httpMethod:"POST",httpOptions:{apiVersion:"",baseUrl:e,headers:{"X-Goog-Upload-Command":f,"X-Goog-Upload-Offset":String(u),"Content-Length":String(h)}}}),!(!((i=c==null?void 0:c.headers)===null||i===void 0)&&i[Ur]));)x++,await iC(w),w=w*eC;if(u+=h,((r=c==null?void 0:c.headers)===null||r===void 0?void 0:r[Ur])!=="active")break;if(l<=u)throw new Error("All content has been uploaded, but the upload status is not finalized.")}const d=await(c==null?void 0:c.json());if(((o=c==null?void 0:c.headers)===null||o===void 0?void 0:o[Ur])!=="final")throw new Error("Failed to upload file: Upload status is not finalized.");return d.file}async function nC(n){return{size:n.size,type:n.type}}function iC(n){return new Promise(e=>setTimeout(e,n))}class rC{async upload(e,t,i){if(typeof e=="string")throw new Error("File path is not supported in browser uploader.");return await tC(e,t,i)}async stat(e){if(typeof e=="string")throw new Error("File path is not supported in browser uploader.");return await nC(e)}}/**
450
+ */class hz{async download(l,a){throw new Error("Download to file is not supported in the browser, please use a browser compliant download like an <a> tag.")}}const mz=1024*1024*8,pz=3,gz=1e3,yz=2,DT="x-goog-upload-status";async function vz(c,l,a){var r,f,y;let C=0,E=0,b=new mT(new Response),A="upload";for(C=c.size;E<C;){const N=Math.min(mz,C-E),z=c.slice(E,E+N);E+N>=C&&(A+=", finalize");let Z=0,F=gz;for(;Z<pz&&(b=await a.request({path:"",body:z,httpMethod:"POST",httpOptions:{apiVersion:"",baseUrl:l,headers:{"X-Goog-Upload-Command":A,"X-Goog-Upload-Offset":String(E),"Content-Length":String(N)}}}),!(!((r=b==null?void 0:b.headers)===null||r===void 0)&&r[DT]));)Z++,await Tz(F),F=F*yz;if(E+=N,((f=b==null?void 0:b.headers)===null||f===void 0?void 0:f[DT])!=="active")break;if(C<=E)throw new Error("All content has been uploaded, but the upload status is not finalized.")}const D=await(b==null?void 0:b.json());if(((y=b==null?void 0:b.headers)===null||y===void 0?void 0:y[DT])!=="final")throw new Error("Failed to upload file: Upload status is not finalized.");return D.file}async function Sz(c){return{size:c.size,type:c.type}}function Tz(c){return new Promise(l=>setTimeout(l,c))}class Cz{async upload(l,a,r){if(typeof l=="string")throw new Error("File path is not supported in browser uploader.");return await vz(l,a,r)}async stat(l){if(typeof l=="string")throw new Error("File path is not supported in browser uploader.");return await Sz(l)}}/**
227
451
  * @license
228
452
  * Copyright 2025 Google LLC
229
453
  * SPDX-License-Identifier: Apache-2.0
230
- */class oC{create(e,t,i){return new sC(e,t,i)}}class sC{constructor(e,t,i){this.url=e,this.headers=t,this.callbacks=i}connect(){this.ws=new WebSocket(this.url),this.ws.onopen=this.callbacks.onopen,this.ws.onerror=this.callbacks.onerror,this.ws.onclose=this.callbacks.onclose,this.ws.onmessage=this.callbacks.onmessage}send(e){if(this.ws===void 0)throw new Error("WebSocket is not connected");this.ws.send(e)}close(){if(this.ws===void 0)throw new Error("WebSocket is not connected");this.ws.close()}}/**
454
+ */class Ez{create(l,a,r){return new _z(l,a,r)}}class _z{constructor(l,a,r){this.url=l,this.headers=a,this.callbacks=r}connect(){this.ws=new WebSocket(this.url),this.ws.onopen=this.callbacks.onopen,this.ws.onerror=this.callbacks.onerror,this.ws.onclose=this.callbacks.onclose,this.ws.onmessage=this.callbacks.onmessage}send(l){if(this.ws===void 0)throw new Error("WebSocket is not connected");this.ws.send(l)}close(){if(this.ws===void 0)throw new Error("WebSocket is not connected");this.ws.close()}}/**
231
455
  * @license
232
456
  * Copyright 2025 Google LLC
233
457
  * SPDX-License-Identifier: Apache-2.0
234
- */const Sl="x-goog-api-key";class aC{constructor(e){this.apiKey=e}async addAuthHeaders(e){if(e.get(Sl)===null){if(this.apiKey.startsWith("auth_tokens/"))throw new Error("Ephemeral tokens are only supported by the live API.");if(!this.apiKey)throw new Error("API key is missing. Please provide a valid API key.");e.append(Sl,this.apiKey)}}}/**
458
+ */const p1="x-goog-api-key";class Az{constructor(l){this.apiKey=l}async addAuthHeaders(l){if(l.get(p1)===null){if(this.apiKey.startsWith("auth_tokens/"))throw new Error("Ephemeral tokens are only supported by the live API.");if(!this.apiKey)throw new Error("API key is missing. Please provide a valid API key.");l.append(p1,this.apiKey)}}}/**
235
459
  * @license
236
460
  * Copyright 2025 Google LLC
237
461
  * SPDX-License-Identifier: Apache-2.0
238
- */const lC="gl-node/";class uC{constructor(e){var t;if(e.apiKey==null)throw new Error("An API Key must be set when running in a browser");if(e.project||e.location)throw new Error("Vertex AI project based authentication is not supported on browser runtimes. Please do not provide a project or location.");this.vertexai=(t=e.vertexai)!==null&&t!==void 0?t:!1,this.apiKey=e.apiKey;const i=mh(e,void 0,void 0);i&&(e.httpOptions?e.httpOptions.baseUrl=i:e.httpOptions={baseUrl:i}),this.apiVersion=e.apiVersion;const r=new aC(this.apiKey);this.apiClient=new w_({auth:r,apiVersion:this.apiVersion,apiKey:this.apiKey,vertexai:this.vertexai,httpOptions:e.httpOptions,userAgentExtra:lC+"web",uploader:new rC,downloader:new Zx}),this.models=new $_(this.apiClient),this.live=new F_(this.apiClient,r,new oC),this.chats=new $m(this.models,this.apiClient),this.caches=new Bm(this.apiClient),this.files=new eg(this.apiClient),this.operations=new Q_(this.apiClient),this.authTokens=new Rx(this.apiClient),this.tunings=new Jx(this.apiClient)}}const $r=[{id:"bp1",name:"Order to Cash",capabilities:[{id:"cap1",name:"Order Management",cycles:[{id:"cyc1",name:"Standard Order Processing",type:"cycle",practices:[{id:"pra1",name:"Validate Customer Credit",type:"practice"},{id:"pra3",name:"Check Inventory Availability",type:"practice"}]},{id:"cyc2",name:"Returns Management",type:"cycle",practices:[{id:"pra4",name:"Issue Return Material Auth",type:"practice"}]}]},{id:"cap2",name:"Invoicing & Collections",cycles:[{id:"cyc3",name:"Automated Billing Cycle",type:"cycle",practices:[]}]}]},{id:"bp2",name:"Hire to Retire",capabilities:[{id:"cap3",name:"Talent Acquisition",cycles:[{id:"cyc4",name:"Recruitment Funnel",type:"cycle",practices:[{id:"pra2",name:"Interview Evaluation",type:"practice"},{id:"pra5",name:"Background Verification",type:"practice"}]}]}]}],Al=`<?xml version="1.0" encoding="UTF-8"?>
462
+ */const bz="gl-node/";class Mz{constructor(l){var a;if(l.apiKey==null)throw new Error("An API Key must be set when running in a browser");if(l.project||l.location)throw new Error("Vertex AI project based authentication is not supported on browser runtimes. Please do not provide a project or location.");this.vertexai=(a=l.vertexai)!==null&&a!==void 0?a:!1,this.apiKey=l.apiKey;const r=zM(l,void 0,void 0);r&&(l.httpOptions?l.httpOptions.baseUrl=r:l.httpOptions={baseUrl:r}),this.apiVersion=l.apiVersion;const f=new Az(this.apiKey);this.apiClient=new YN({auth:f,apiVersion:this.apiVersion,apiKey:this.apiKey,vertexai:this.vertexai,httpOptions:l.httpOptions,userAgentExtra:bz+"web",uploader:new Cz,downloader:new hz}),this.models=new a3(this.apiClient),this.live=new jN(this.apiClient,f,new Ez),this.chats=new aD(this.models,this.apiClient),this.caches=new tD(this.apiClient),this.files=new yD(this.apiClient),this.operations=new p3(this.apiClient),this.authTokens=new X3(this.apiClient),this.tunings=new dz(this.apiClient)}}const g1=`<?xml version="1.0" encoding="UTF-8"?>
239
463
  <bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
240
464
  <bpmn:process id="Process_1" isExecutable="false">
241
465
  <bpmn:startEvent id="StartEvent_1" name="Start" />
@@ -247,4 +471,4 @@ React keys must be passed directly to JSX without using spread:
247
471
  </bpmndi:BPMNShape>
248
472
  </bpmndi:BPMNPlane>
249
473
  </bpmndi:BPMNDiagram>
250
- </bpmn:definitions>`,cC=()=>{const[n,e]=Te.useState("dashboard"),[t,i]=Te.useState($r[0].id),[r,o]=Te.useState(null),l=Te.useRef(null),u=Te.useRef(null),[c,f]=Te.useState(!0),[d,h]=Te.useState(""),[g,x]=Te.useState(!1),[w,b]=Te.useState("");Te.useEffect(()=>{if(n==="designer"&&l.current){const S=setTimeout(()=>{!u.current&&l.current&&(u.current=new mi({container:l.current}),u.current.importXML(Al).catch(console.error))},50);return()=>clearTimeout(S)}return()=>{if(u.current){try{u.current.destroy()}catch(S){console.warn("Modeler destruction warning",S)}u.current=null}}},[n]);const D=S=>{o(S),e("designer")},F=()=>{e("dashboard"),o(null),h(""),b(""),x(!1)},T=async()=>{if(u.current)try{const{xml:S}=await u.current.saveXML({format:!0}),I=new Blob([S],{type:"application/xml"}),R=document.createElement("a");R.href=URL.createObjectURL(I),R.download=`${(r==null?void 0:r.name.replace(/\s+/g,"_"))||"process"}.bpmn`,R.click()}catch(S){console.error("Error exporting BPMN",S)}},k=async()=>{if(!(!d.trim()||!u.current)){x(!0),b("Drafting flow...");try{let R=(await new uC({apiKey:"PLACEHOLDER_API_KEY"}).models.generateContent({model:"gemini-3-flash-preview",contents:`Generate a valid BPMN 2.0 XML for a ${r==null?void 0:r.type} named "${r==null?void 0:r.name}". Specific requirements: "${d}". Return ONLY the raw XML code.`})).text||"";R=R.replace(/^```xml\n/,"").replace(/\n```$/,"").trim(),R.includes("<bpmn:definitions")?(await u.current.importXML(R),b("Import successful!"),h("")):b("Generated invalid XML.")}catch(S){console.error("AI Generation error",S),b("Generation failed.")}finally{x(!1),setTimeout(()=>b(""),3e3)}}},A=(S,I)=>{if(!u.current)return;const R=u.current.get("elementFactory"),M=u.current.get("create");let C=R.createShape({type:I});C&&M.start(S,C)};if(n==="dashboard"){const S=$r.find(I=>I.id===t);return V.jsxs("div",{className:"min-h-screen bg-slate-50 text-slate-900",children:[V.jsx("header",{className:"bg-white border-b border-slate-200 px-8 py-6",children:V.jsxs("div",{className:"max-w-7xl mx-auto flex justify-between items-center",children:[V.jsxs("div",{children:[V.jsxs("h1",{className:"text-2xl font-bold tracking-tight text-slate-900 flex items-center gap-2",children:[V.jsx(Ep,{className:"text-indigo-600"}),"Enterprise Blueprint"]}),V.jsx("p",{className:"text-slate-500 text-sm",children:"Organize processes, capabilities, and work cycles."})]}),V.jsxs("button",{className:"bg-indigo-600 text-white px-4 py-2 rounded-lg text-sm font-semibold hover:bg-indigo-700 transition-colors flex items-center gap-2 shadow-sm",children:[V.jsx(Mp,{size:18})," New Process"]})]})}),V.jsx("div",{className:"bg-white border-b border-slate-200 sticky top-0 z-10",children:V.jsx("div",{className:"max-w-7xl mx-auto flex gap-8 px-8",children:$r.map(I=>V.jsx("button",{onClick:()=>i(I.id),className:`py-4 text-sm font-semibold border-b-2 transition-all ${t===I.id?"border-indigo-600 text-indigo-600":"border-transparent text-slate-500 hover:text-slate-700"}`,children:I.name},I.id))})}),V.jsx("main",{className:"max-w-7xl mx-auto p-8",children:V.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:S==null?void 0:S.capabilities.map(I=>V.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden flex flex-col h-fit",children:[V.jsxs("div",{className:"p-6 border-b border-slate-100 bg-slate-50/50",children:[V.jsxs("h3",{className:"text-lg font-bold flex items-center gap-2 text-slate-800",children:[V.jsx(kp,{className:"text-indigo-500 w-5 h-5"}),I.name]}),V.jsx("span",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest mt-1 block",children:"Capability"})]}),V.jsxs("div",{className:"p-6 space-y-4",children:[V.jsxs("h4",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider mb-2 flex items-center gap-2",children:[V.jsx(ws,{size:14})," Work Cycles & Practices"]}),V.jsx("div",{className:"space-y-4",children:I.cycles.map(R=>V.jsxs("div",{className:"rounded-xl border border-slate-100 overflow-hidden bg-white shadow-sm",children:[V.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-50/50 group border-b border-slate-100",children:[V.jsxs("div",{className:"flex items-center gap-2",children:[V.jsx(ws,{size:14,className:"text-indigo-400"}),V.jsx("span",{className:"text-sm font-bold text-slate-800",children:R.name})]}),V.jsx("button",{onClick:()=>D(R),className:"text-[10px] font-bold text-indigo-600 bg-indigo-100 px-2 py-1 rounded hover:bg-indigo-200 transition-colors uppercase tracking-tight",children:"Design Cycle"})]}),V.jsx("div",{className:"p-2 space-y-1",children:R.practices.length>0?R.practices.map(M=>V.jsxs("div",{className:"flex items-center justify-between p-2 pl-4 rounded-lg hover:bg-indigo-50/50 group transition-all",children:[V.jsxs("div",{className:"flex items-center gap-2",children:[V.jsx(bp,{size:12,className:"text-slate-300"}),V.jsx("span",{className:"text-xs font-medium text-slate-600",children:M.name})]}),V.jsxs("button",{onClick:()=>D(M),className:"text-[10px] font-semibold text-slate-400 opacity-0 group-hover:opacity-100 hover:text-indigo-600 flex items-center gap-1 transition-all",children:["Design Practice ",V.jsx(gi,{size:10})]})]},M.id)):V.jsx("div",{className:"py-2 px-4 text-[10px] italic text-slate-400",children:"No practices defined for this cycle."})})]},R.id))})]})]},I.id))})})]})}return V.jsxs("div",{className:"flex h-screen w-full bg-white overflow-hidden text-slate-800",children:[V.jsxs("div",{className:`${c?"w-80":"w-0"} transition-all duration-300 border-r border-slate-200 bg-slate-50 flex flex-col relative z-20 shadow-xl`,children:[c&&V.jsxs("div",{className:"flex-1 flex flex-col p-6 overflow-y-auto w-80",children:[V.jsxs("div",{className:"flex items-center gap-2 mb-8",children:[V.jsx("button",{onClick:S=>{S.preventDefault(),F()},className:"p-2 hover:bg-slate-200 rounded-lg transition-colors mr-1 flex items-center justify-center text-slate-600 hover:text-indigo-600 active:scale-95 cursor-pointer",title:"Back to Dashboard",children:V.jsx(Cp,{size:18})}),V.jsx("h1",{className:"font-bold text-lg tracking-tight text-slate-900 truncate",children:r==null?void 0:r.name})]}),V.jsxs("div",{className:"space-y-6",children:[V.jsxs("section",{children:[V.jsx("h3",{className:"text-xs font-bold uppercase tracking-wider text-slate-400 mb-4 flex items-center gap-2",children:"Palette"}),V.jsx("div",{className:"grid grid-cols-1 gap-2",children:[{type:"bpmn:StartEvent",icon:V.jsx(Sp,{size:18}),label:"Start",color:"bg-green-50 text-green-600"},{type:"bpmn:Task",icon:V.jsx(Pp,{size:18}),label:"Task",color:"bg-slate-100 text-slate-600"},{type:"bpmn:IntermediateCatchEvent",icon:V.jsx(Rp,{size:18}),label:"Event",color:"bg-blue-50 text-blue-600"},{type:"bpmn:EndEvent",icon:V.jsx(wp,{size:18}),label:"End",color:"bg-red-50 text-red-600"}].map(S=>V.jsxs("div",{onMouseDown:I=>A(I,S.type),className:"flex items-center gap-3 p-3 bg-white border border-slate-200 rounded-xl cursor-grab hover:border-indigo-400 hover:shadow-sm transition-all group",children:[V.jsx("div",{className:`p-2 rounded-lg ${S.color}`,children:S.icon}),V.jsx("span",{className:"text-sm font-medium",children:S.label})]},S.type))})]}),V.jsx("hr",{className:"border-slate-200"}),V.jsxs("section",{children:[V.jsxs("label",{className:"block text-xs font-bold uppercase tracking-wider text-slate-400 mb-3 flex items-center gap-2",children:[V.jsx(Ip,{className:"w-3 h-3 text-indigo-500"}),"AI Architect"]}),V.jsx("textarea",{className:"w-full h-24 p-3 text-sm border border-slate-300 rounded-xl focus:ring-2 focus:ring-indigo-500 bg-white outline-none resize-none transition-all",placeholder:"Ask AI to draft this process...",value:d,onChange:S=>h(S.target.value)}),V.jsx("button",{onClick:k,disabled:g||!d.trim(),className:"w-full mt-2 bg-indigo-600 hover:bg-indigo-700 disabled:bg-slate-300 text-white font-medium py-2 rounded-xl flex items-center justify-center gap-2 transition-all shadow-md active:scale-95",children:g?"Drafting...":"Generate Flow"}),w&&V.jsx("p",{className:"mt-2 text-[10px] text-center font-medium text-indigo-600",children:w})]}),V.jsx("section",{className:"mt-auto space-y-3 pt-6 border-t border-slate-200",children:V.jsxs("button",{onClick:()=>{u.current&&u.current.importXML(Al)},className:"w-full flex items-center gap-2 p-2 text-red-500 hover:bg-red-50 rounded-lg text-xs font-medium transition-all",children:[V.jsx(Np,{size:14})," Reset Canvas"]})})]})]}),V.jsx("button",{onClick:()=>f(!c),className:"absolute -right-4 top-1/2 -translate-y-1/2 bg-white border border-slate-200 rounded-full p-1 shadow-md hover:text-indigo-600 transition-all z-50",children:c?V.jsx(Tp,{size:20}):V.jsx(gi,{size:20})})]}),V.jsxs("div",{className:"flex-1 relative flex flex-col min-w-0",children:[V.jsxs("header",{className:"h-14 border-b border-slate-200 flex items-center justify-between px-6 bg-white/80 backdrop-blur-md z-10",children:[V.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium",children:[V.jsx("span",{className:"text-slate-400",children:"Architecture"}),V.jsx(gi,{size:12,className:"text-slate-300"}),V.jsx("span",{className:"text-slate-400 uppercase tracking-tighter",children:(r==null?void 0:r.type)==="cycle"?"Cycle":"Practice"}),V.jsx(gi,{size:12,className:"text-slate-300"}),V.jsx("span",{className:"text-slate-900 font-bold",children:r==null?void 0:r.name})]}),V.jsx("div",{className:"flex gap-2",children:V.jsxs("button",{onClick:T,className:"text-xs font-bold text-white bg-indigo-600 hover:bg-indigo-700 px-4 py-2 rounded-lg shadow-sm flex items-center gap-2 transition-all active:scale-95",children:[V.jsx(Ap,{size:14})," Export BPMN"]})})]}),V.jsxs("div",{className:"flex-1 relative overflow-hidden bg-white",children:[V.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:24px_24px] pointer-events-none opacity-40"}),V.jsx("div",{ref:l,className:"h-full w-full bpmn-io-style relative"})]})]})]})};Pt.BpmnFlowDesigner=cC,Object.defineProperty(Pt,Symbol.toStringTag,{value:"Module"})}));
474
+ </bpmn:definitions>`,Rz=({initialXml:c=g1,onSave:l,onBack:a,title:r="Flow Designer",geminiApiKey:f})=>{const y=Mn.useRef(null),C=Mn.useRef(null),[E,b]=Mn.useState(!0),[A,D]=Mn.useState(""),[N,z]=Mn.useState(!1),[Z,F]=Mn.useState("");Mn.useEffect(()=>{const me=setTimeout(async()=>{if(y.current){C.current&&C.current.destroy(),C.current=new BpmnJS({container:y.current,keyboard:{}});try{await C.current.importXML(c)}catch(Te){console.error("Error importing BPMN XML",Te)}}},50);return()=>{clearTimeout(me),C.current&&(C.current.destroy(),C.current=null)}},[c]);const ie=async()=>{if(C.current)try{const{xml:de}=await C.current.saveXML({format:!0});l&&l(de);const me=new Blob([de],{type:"application/xml"}),Te=document.createElement("a");Te.href=URL.createObjectURL(me),Te.download="process-design.bpmn",Te.click()}catch(de){console.error("Error exporting BPMN",de)}},se=async()=>{const de=f||"PLACEHOLDER_API_KEY";if(!(!A.trim()||!C.current||!de)){z(!0),F("Drafting flow...");try{let Re=(await new Mz({apiKey:de}).models.generateContent({model:"gemini-3-flash-preview",contents:`Generate a valid BPMN 2.0 XML based on this description: "${A}". Return ONLY the raw XML code without markdown blocks.`})).text||"";Re=Re.replace(/^```xml\n/,"").replace(/\n```$/,"").trim(),Re.includes("<bpmn:definitions")?(await C.current.importXML(Re),F("Import successful!"),D("")):F("Generated invalid XML. Try again.")}catch(me){console.error("AI Generation error",me),F("Generation failed.")}finally{z(!1),setTimeout(()=>F(""),3e3)}}},fe=(de,me)=>{if(!C.current)return;const Te=C.current.get("elementFactory"),Re=C.current.get("create");let Oe=Te.createShape({type:me});Oe&&Re.start(de,Oe)};return Ie.jsxs("div",{className:"flex h-screen w-full bg-white overflow-hidden text-slate-800 font-sans border border-slate-200 rounded-lg",children:[Ie.jsxs("div",{className:`${E?"w-80":"w-0"} transition-all duration-300 border-r border-slate-200 bg-slate-50 flex flex-col relative z-20 shadow-xl overflow-hidden`,children:[E&&Ie.jsxs("div",{className:"flex-1 flex flex-col p-6 overflow-y-auto w-80",children:[Ie.jsxs("div",{className:"flex items-center gap-2 mb-8",children:[a&&Ie.jsx("button",{onClick:a,className:"p-2 hover:bg-slate-200 rounded-lg transition-colors mr-1 text-slate-600 cursor-pointer",children:Ie.jsx(Ib,{size:18})}),Ie.jsx("h1",{className:"font-bold text-lg tracking-tight text-slate-900 truncate",children:r})]}),Ie.jsxs("div",{className:"space-y-6",children:[Ie.jsxs("section",{children:[Ie.jsx("h3",{className:"text-xs font-bold uppercase tracking-wider text-slate-400 mb-4",children:"Tools"}),Ie.jsx("div",{className:"grid grid-cols-1 gap-2",children:[{type:"bpmn:StartEvent",icon:Ie.jsx(Xb,{size:18}),label:"Start Event",color:"bg-green-50 text-green-600"},{type:"bpmn:Task",icon:Ie.jsx(Fb,{size:18}),label:"User Task",color:"bg-slate-100 text-slate-600"},{type:"bpmn:IntermediateCatchEvent",icon:Ie.jsx(Jb,{size:18}),label:"Message Catch",color:"bg-blue-50 text-blue-600"},{type:"bpmn:EndEvent",icon:Ie.jsx(kb,{size:18}),label:"End Event",color:"bg-red-50 text-red-600"}].map(de=>Ie.jsxs("div",{onMouseDown:me=>fe(me,de.type),className:"flex items-center gap-3 p-3 bg-white border border-slate-200 rounded-xl cursor-grab hover:border-indigo-400 hover:shadow-sm transition-all group active:scale-95",children:[Ie.jsx("div",{className:`p-2 rounded-lg ${de.color}`,children:de.icon}),Ie.jsx("span",{className:"text-sm font-medium",children:de.label})]},de.type))})]}),Ie.jsx("hr",{className:"border-slate-200"}),Ie.jsxs("section",{children:[Ie.jsxs("label",{className:"block text-xs font-bold uppercase tracking-wider text-slate-400 mb-3 flex items-center gap-2",children:[Ie.jsx(mE,{className:"w-3 h-3 text-indigo-500"}),"AI Architect"]}),Ie.jsx("textarea",{className:"w-full h-24 p-3 text-sm border border-slate-300 rounded-xl focus:ring-2 focus:ring-indigo-500 bg-white outline-none resize-none transition-all",placeholder:"Describe your business process...",value:A,onChange:de=>D(de.target.value)}),Ie.jsxs("button",{onClick:se,disabled:N||!A.trim(),className:"w-full mt-2 bg-indigo-600 hover:bg-indigo-700 disabled:bg-slate-300 text-white font-medium py-2 rounded-xl flex items-center justify-center gap-2 transition-all shadow-md active:scale-95",children:[N?Ie.jsx(Kb,{className:"animate-spin",size:16}):Ie.jsx(mE,{size:16}),N?"Processing...":"Generate Diagram"]}),Z&&Ie.jsx("p",{className:"mt-2 text-[10px] text-center font-bold text-indigo-600",children:Z})]}),Ie.jsx("section",{className:"mt-auto space-y-3 pt-6 border-t border-slate-200",children:Ie.jsxs("button",{onClick:()=>{var de;return(de=C.current)==null?void 0:de.importXML(g1)},className:"w-full flex items-center gap-2 p-2 text-red-500 hover:bg-red-50 rounded-lg text-xs font-medium transition-all",children:[Ie.jsx($b,{size:14})," Reset Canvas"]})})]})]}),Ie.jsx("button",{onClick:()=>b(!E),className:"absolute -right-4 top-1/2 -translate-y-1/2 bg-white border border-slate-200 rounded-full p-1 shadow-md hover:text-indigo-600 transition-all z-50 focus:outline-none",children:E?Ie.jsx(Zb,{size:20}):Ie.jsx(hE,{size:20})})]}),Ie.jsxs("div",{className:"flex-1 relative flex flex-col min-w-0",children:[Ie.jsxs("header",{className:"h-14 border-b border-slate-200 flex items-center justify-between px-6 bg-white/80 backdrop-blur-md z-10",children:[Ie.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium",children:[Ie.jsx("span",{className:"text-slate-400",children:"Project"}),Ie.jsx(hE,{size:12,className:"text-slate-300"}),Ie.jsx("span",{className:"text-slate-900 font-bold",children:r})]}),Ie.jsx("div",{className:"flex gap-2",children:Ie.jsxs("button",{onClick:ie,className:"text-xs font-bold text-white bg-indigo-600 hover:bg-indigo-700 px-4 py-2 rounded-lg shadow-sm flex items-center gap-2 transition-all active:scale-95",children:[Ie.jsx(Qb,{size:14})," Save & Export"]})})]}),Ie.jsxs("div",{className:"flex-1 relative overflow-hidden bg-white",children:[Ie.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:24px_24px] pointer-events-none opacity-40"}),Ie.jsx("div",{ref:y,className:"h-full w-full bpmn-io-style relative"})]})]})]})},Dz=()=>Ie.jsx(Rz,{title:"Sample Process Design",onSave:c=>console.log("Saved XML:",c)}),y1=document.getElementById("root");if(!y1)throw new Error("Could not find root element to mount to");Bb.createRoot(y1).render(Ie.jsx(Mn.StrictMode,{children:Ie.jsx(Dz,{})}))}));