c()?void 0:f()).then(()=>{t?g(x):p()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(n?.(),o),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?p():f().then(p),o)}}var Pg=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),tl(this.gcTime)&&(this.#e=Fr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zr?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Fr.clearTimeout(this.#e),this.#e=void 0)}},TI=class extends Pg{#e;#t;#r;#o;#n;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#r=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Vg(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Vg(this.options);t.data!==void 0&&(this.setState(Ag(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const r=ol(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(De).catch(De):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>ot(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===il||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>rr(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!yg(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#a?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const a=this.observers.find(l=>l.options.queryFn);a&&this.setOptions(a.options)}const r=new AbortController,n=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(this.#a=!0,r.signal)})},o=()=>{const a=Eg(this.options,t),c=(()=>{const u={client:this.#o,queryKey:this.queryKey,meta:this.meta};return n(u),u})();return this.#a=!1,this.options.persister?this.options.persister(a,c,this):a(c)},s=(()=>{const a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:o};return n(a),a})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#i({type:"fetch",meta:s.fetchOptions?.meta}),this.#n=Tg({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:a=>{a instanceof ll&&a.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(a,l)=>{this.#i({type:"failed",failureCount:a,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const a=await this.#n.start();if(a===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(a),this.#r.config.onSuccess?.(a,this),this.#r.config.onSettled?.(a,this.state.error,this),a}catch(a){if(a instanceof ll){if(a.silent)return this.#n.promise;if(a.revert){if(this.state.data===void 0)throw a;return this.state.data}}throw this.#i({type:"error",error:a}),this.#r.config.onError?.(a,this),this.#r.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#i(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ng(r.data,this.options),fetchMeta:e.meta??null};case"success":const n={...r,...Ag(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case"error":const o=e.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),Ce.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function Ng(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ig(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Ag(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Vg(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var PI=class extends mn{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#a=al(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#r=void 0;#o=void 0;#n;#s;#a;#i;#p;#h;#f;#c;#u;#l;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Rg(this.#t,this.options)?this.#d():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return cl(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cl(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ot(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#t.setOptions(this.options),t._defaulted&&!Fi(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const n=this.hasListeners();n&&_g(this.#t,r,this.options,t)&&this.#d(),this.updateResult(),n&&(this.#t!==r||ot(this.options.enabled,this.#t)!==ot(t.enabled,this.#t)||rr(this.options.staleTime,this.#t)!==rr(t.staleTime,this.#t))&&this.#m();const o=this.#v();n&&(this.#t!==r||ot(this.options.enabled,this.#t)!==ot(t.enabled,this.#t)||o!==this.#l)&&this.#b(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return AI(this,r)&&(this.#o=r,this.#s=this.options,this.#n=this.#t.state),r}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(r,n)=>(this.trackProp(n),t?.(n),n==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,n))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#d(e){this.#C();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(De)),t}#m(){this.#x();const e=rr(this.options.staleTime,this.#t);if(zr||this.#o.isStale||!tl(e))return;const r=yg(this.#o.dataUpdatedAt,e)+1;this.#c=Fr.setTimeout(()=>{this.#o.isStale||this.updateResult()},r)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#S(),this.#l=e,!(zr||ot(this.options.enabled,this.#t)===!1||!tl(this.#l)||this.#l===0)&&(this.#u=Fr.setInterval(()=>{(this.options.refetchIntervalInBackground||sl.isFocused())&&this.#d()},this.#l))}#y(){this.#m(),this.#b(this.#v())}#x(){this.#c&&(Fr.clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(Fr.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const r=this.#t,n=this.options,o=this.#o,i=this.#n,s=this.#s,l=e!==r?e.state:this.#r,{state:c}=e;let u={...c},d=!1,g;if(t._optimisticResults){const V=this.hasListeners(),E=!V&&Rg(e,t),P=V&&_g(e,r,t,n);(E||P)&&(u={...u,...Ng(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:m}=u;g=u.data;let v=!1;if(t.placeholderData!==void 0&&g===void 0&&m==="pending"){let V;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(V=o.data,v=!0):V=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,V!==void 0&&(m="success",g=ol(o?.data,V,t),d=!0)}if(t.select&&g!==void 0&&!v)if(o&&g===i?.data&&t.select===this.#p)g=this.#h;else try{this.#p=t.select,g=t.select(g),g=ol(o?.data,g,t),this.#h=g,this.#i=null}catch(V){this.#i=V}this.#i&&(f=this.#i,g=this.#h,p=Date.now(),m="error");const x=u.fetchStatus==="fetching",k=m==="pending",y=m==="error",S=k&&x,b=g!==void 0,T={status:m,fetchStatus:u.fetchStatus,isPending:k,isSuccess:m==="success",isError:y,isInitialLoading:S,isLoading:S,data:g,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!k,isLoadingError:y&&!b,isPaused:u.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:y&&b,isStale:ul(e,t),refetch:this.refetch,promise:this.#a,isEnabled:ot(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const V=N=>{T.status==="error"?N.reject(T.error):T.data!==void 0&&N.resolve(T.data)},E=()=>{const N=this.#a=T.promise=al();V(N)},P=this.#a;switch(P.status){case"pending":e.queryHash===r.queryHash&&V(P);break;case"fulfilled":(T.status==="error"||T.data!==P.value)&&E();break;case"rejected":(T.status!=="error"||T.error!==P.reason)&&E();break}}return T}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#s=this.options,this.#n.data!==void 0&&(this.#f=this.#t),Fi(t,e))return;this.#o=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,o=typeof n=="function"?n():n;if(o==="all"||!o&&!this.#g.size)return!0;const i=new Set(o??this.#g);return this.options.throwOnError&&i.add("error"),Object.keys(this.#o).some(s=>{const a=s;return this.#o[a]!==e[a]&&i.has(a)})};this.#k({listeners:r()})}#C(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#k(e){Ce.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function NI(e,t){return ot(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Rg(e,t){return NI(e,t)||e.state.data!==void 0&&cl(e,t,t.refetchOnMount)}function cl(e,t,r){if(ot(t.enabled,e)!==!1&&rr(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&ul(e,t)}return!1}function _g(e,t,r,n){return(e!==t||ot(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&ul(e,r)}function ul(e,t){return ot(t.enabled,e)!==!1&&e.isStaleByTime(rr(t.staleTime,e))}function AI(e,t){return!Fi(e.getCurrentResult(),t)}function Lg(e){return{onFetch:(t,r)=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let u=!1;const d=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},g=Eg(t.options,t.fetchOptions),f=async(p,m,v)=>{if(u)return Promise.reject();if(m==null&&p.pages.length)return Promise.resolve(p);const k=(()=>{const O={client:t.client,queryKey:t.queryKey,pageParam:m,direction:v?"backward":"forward",meta:t.options.meta};return d(O),O})(),y=await g(k),{maxPages:S}=t.options,b=v?CI:SI;return{pages:b(p.pages,y,S),pageParams:b(p.pageParams,m,S)}};if(o&&i.length){const p=o==="backward",m=p?VI:Fg,v={pages:i,pageParams:s},x=m(n,v);a=await f(v,x,p)}else{const p=e??i.length;do{const m=l===0?s[0]??n.initialPageParam:Fg(n,a);if(l>0&&m==null)break;a=await f(a,m),l++}while(lt.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function Fg(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function VI(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var RI=class extends Pg{#e;#t;#r;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#t=[],this.state=e.state||zg(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#r.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#n({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=Tg({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(i,s)=>{this.#n({type:"failed",failureCount:i,error:s})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});const n=this.state.status==="pending",o=!this.#o.canStart();try{if(n)t();else{this.#n({type:"pending",variables:e,isPaused:o}),await this.#r.config.onMutate?.(e,this,r);const s=await this.options.onMutate?.(e,r);s!==this.state.context&&this.#n({type:"pending",context:s,variables:e,isPaused:o})}const i=await this.#o.start();return await this.#r.config.onSuccess?.(i,e,this.state.context,this,r),await this.options.onSuccess?.(i,e,this.state.context,r),await this.#r.config.onSettled?.(i,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(i,null,e,this.state.context,r),this.#n({type:"success",data:i}),i}catch(i){try{throw await this.#r.config.onError?.(i,e,this.state.context,this,r),await this.options.onError?.(i,e,this.state.context,r),await this.#r.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,i,e,this.state.context,r),i}finally{this.#n({type:"error",error:i})}}finally{this.#r.runNext(this)}}#n(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Ce.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function zg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _I=class extends mn{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#r=0}#e;#t;#r;build(e,t,r){const n=new RI({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#e.add(e);const t=Di(e);if(typeof t=="string"){const r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Di(e);if(typeof t=="string"){const r=this.#t.get(t);if(r)if(r.length>1){const n=r.indexOf(e);n!==-1&&r.splice(n,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Di(e);if(typeof t=="string"){const n=this.#t.get(t)?.find(o=>o.state.status==="pending");return!n||n===e}else return!0}runNext(e){const t=Di(e);return typeof t=="string"?this.#t.get(t)?.find(n=>n!==e&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ce.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>Sg(t,r))}findAll(e={}){return this.getAll().filter(t=>Sg(e,t))}notify(e){Ce.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Ce.batch(()=>Promise.all(e.map(t=>t.continue().catch(De))))}};function Di(e){return e.options.scope?.id}var LI=class extends mn{#e;#t=void 0;#r;#o;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),Fi(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&Dr(t.mutationKey)!==Dr(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#n(),this.#s(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#n(),this.#s()}mutate(e,t){return this.#o=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#n(){const e=this.#r?.state??zg();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#s(e){Ce.batch(()=>{if(this.#o&&this.hasListeners()){const t=this.#t.variables,r=this.#t.context,n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type==="success"?(this.#o.onSuccess?.(e.data,t,r,n),this.#o.onSettled?.(e.data,null,t,r,n)):e?.type==="error"&&(this.#o.onError?.(e.error,t,r,n),this.#o.onSettled?.(void 0,e.error,t,r,n))}this.listeners.forEach(t=>{t(this.#t)})})}},FI=class extends mn{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){const n=t.queryKey,o=t.queryHash??rl(n,t);let i=this.get(o);return i||(i=new TI({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ce.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>xg(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>xg(e,r)):t}notify(e){Ce.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ce.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ce.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},zI=class{#e;#t;#r;#o;#n;#s;#a;#i;constructor(e={}){this.#e=e.queryCache||new FI,this.#t=e.mutationCache||new _I,this.#r=e.defaultOptions||{},this.#o=new Map,this.#n=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=sl.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=zi.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#e.build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(rr(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(n.queryHash)?.state.data,s=bI(t,i);if(s!==void 0)return this.#e.build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return Ce.batch(()=>this.#e.findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Ce.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#e;return Ce.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Ce.batch(()=>this.#e.findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(De).catch(De)}invalidateQueries(e,t={}){return Ce.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Ce.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,r);return r.throwOnError||(i=i.catch(De)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(De)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#e.build(this,t);return r.isStaleByTime(rr(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(De).catch(De)}fetchInfiniteQuery(e){return e.behavior=Lg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(De).catch(De)}ensureInfiniteQueryData(e){return e.behavior=Lg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return zi.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#o.set(Dr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],r={};return t.forEach(n=>{ao(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){this.#n.set(Dr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#n.values()],r={};return t.forEach(n=>{ao(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=rl(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===il&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Dg=D.createContext(void 0),Mg=e=>{const t=D.useContext(Dg);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},DI=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(Dg.Provider,{value:e,children:t})),$g=D.createContext(!1),MI=()=>D.useContext($g);$g.Provider;function $I(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var WI=D.createContext($I()),BI=()=>D.useContext(WI),HI=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},UI=e=>{D.useEffect(()=>{e.clearReset()},[e])},jI=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&e.data===void 0||Og(r,[e.error,n])),GI=e=>{if(e.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...o)=>r(n(...o)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},qI=(e,t)=>e.isLoading&&e.isFetching&&!t,KI=(e,t)=>e?.suspense&&t.isPending,Wg=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function YI(e,t,r){const n=MI(),o=BI(),i=Mg(),s=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=n?"isRestoring":"optimistic",GI(s),HI(s,o),UI(o);const a=!i.getQueryCache().get(s.queryHash),[l]=D.useState(()=>new t(i,s)),c=l.getOptimisticResult(s),u=!n&&e.subscribed!==!1;if(D.useSyncExternalStore(D.useCallback(d=>{const g=u?l.subscribe(Ce.batchCalls(d)):De;return l.updateResult(),g},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),D.useEffect(()=>{l.setOptions(s)},[s,l]),KI(s,c))throw Wg(s,l,o);if(jI({result:c,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(s,c),s.experimental_prefetchInRender&&!zr&&qI(c,n)&&(a?Wg(s,l,o):i.getQueryCache().get(s.queryHash)?.promise)?.catch(De).finally(()=>{l.updateResult()}),s.notifyOnChangeProps?c:l.trackResult(c)}function Bg(e,t){return YI(e,PI)}function Mr(e,t){const r=Mg(),[n]=D.useState(()=>new LI(r,e));D.useEffect(()=>{n.setOptions(e)},[n,e]);const o=D.useSyncExternalStore(D.useCallback(s=>n.subscribe(Ce.batchCalls(s)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=D.useCallback((s,a)=>{n.mutate(s,a).catch(De)},[n]);if(o.error&&Og(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}class Hg{_fns;constructor(){this._fns=[]}eject(t){const r=this._fns.indexOf(t);r!==-1&&(this._fns=[...this._fns.slice(0,r),...this._fns.slice(r+1)])}use(t){this._fns=[...this._fns,t]}}const Et={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"0.1.0",WITH_CREDENTIALS:!1,interceptors:{request:new Hg,response:new Hg}};var XI=(e,t,r,n,o,i,s,a)=>{let l=document.documentElement,c=["light","dark"];function u(f){(Array.isArray(e)?e:[e]).forEach(p=>{let m=p==="class",v=m&&i?o.map(x=>i[x]||x):o;m?(l.classList.remove(...v),l.classList.add(i&&i[f]?i[f]:f)):l.setAttribute(p,f)}),d(f)}function d(f){a&&c.includes(f)&&(l.style.colorScheme=f)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let f=localStorage.getItem(t)||r,p=s&&f==="system"?g():f;u(p)}catch{}},Ug=["light","dark"],jg="(prefers-color-scheme: dark)",QI=typeof window>"u",Gg=D.createContext(void 0),JI=e=>D.useContext(Gg)?D.createElement(D.Fragment,null,e.children):D.createElement(eT,{...e}),ZI=["light","dark"],eT=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:o="theme",themes:i=ZI,defaultTheme:s=r?"system":"light",attribute:a="data-theme",value:l,children:c,nonce:u,scriptProps:d})=>{let[g,f]=D.useState(()=>rT(o,s)),[p,m]=D.useState(()=>g==="system"?dl():g),v=l?Object.values(l):i,x=D.useCallback(b=>{let O=b;if(!O)return;b==="system"&&r&&(O=dl());let T=l?l[O]:O,V=t?nT(u):null,E=document.documentElement,P=N=>{N==="class"?(E.classList.remove(...v),T&&E.classList.add(T)):N.startsWith("data-")&&(T?E.setAttribute(N,T):E.removeAttribute(N))};if(Array.isArray(a)?a.forEach(P):P(a),n){let N=Ug.includes(s)?s:null,w=Ug.includes(O)?O:N;E.style.colorScheme=w}V?.()},[u]),k=D.useCallback(b=>{let O=typeof b=="function"?b(g):b;f(O);try{localStorage.setItem(o,O)}catch{}},[g]),y=D.useCallback(b=>{let O=dl(b);m(O),g==="system"&&r&&!e&&x("system")},[g,e]);D.useEffect(()=>{let b=window.matchMedia(jg);return b.addListener(y),y(b),()=>b.removeListener(y)},[y]),D.useEffect(()=>{let b=O=>{O.key===o&&(O.newValue?f(O.newValue):k(s))};return window.addEventListener("storage",b),()=>window.removeEventListener("storage",b)},[k]),D.useEffect(()=>{x(e??g)},[e,g]);let S=D.useMemo(()=>({theme:g,setTheme:k,forcedTheme:e,resolvedTheme:g==="system"?p:g,themes:r?[...i,"system"]:i,systemTheme:r?p:void 0}),[g,k,e,p,r,i]);return D.createElement(Gg.Provider,{value:S},D.createElement(tT,{forcedTheme:e,storageKey:o,attribute:a,enableSystem:r,enableColorScheme:n,defaultTheme:s,value:l,themes:i,nonce:u,scriptProps:d}),c)},tT=D.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:i,value:s,themes:a,nonce:l,scriptProps:c})=>{let u=JSON.stringify([r,t,i,e,a,s,n,o]).slice(1,-1);return D.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${XI.toString()})(${u})`}})}),rT=(e,t)=>{if(QI)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||t},nT=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},dl=e=>(e||(e=window.matchMedia(jg)),e.matches?"dark":"light");const oT=e=>h.jsx(JI,{attribute:"class",disableTransitionOnChange:!0,...e}),iT="UiServiceWorker",sT=({queueNamePattern:e,state:t,workerNamePattern:r}={},n)=>[iT,{queueNamePattern:e,state:t,workerNamePattern:r}],aT="UiServiceJobs",lT=e=>[aT];function qg(e,t){return function(){return e.apply(t,arguments)}}const{toString:cT}=Object.prototype,{getPrototypeOf:hl}=Object,{iterator:Mi,toStringTag:Kg}=Symbol,$i=(e=>t=>{const r=cT.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ht=e=>(e=e.toLowerCase(),t=>$i(t)===e),Wi=e=>t=>typeof t===e,{isArray:vn}=Array,bn=Wi("undefined");function lo(e){return e!==null&&!bn(e)&&e.constructor!==null&&!bn(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Yg=ht("ArrayBuffer");function uT(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yg(e.buffer),t}const dT=Wi("string"),Ke=Wi("function"),Xg=Wi("number"),co=e=>e!==null&&typeof e=="object",hT=e=>e===!0||e===!1,Bi=e=>{if($i(e)!=="object")return!1;const t=hl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Kg in e)&&!(Mi in e)},fT=e=>{if(!co(e)||lo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},gT=ht("Date"),pT=ht("File"),mT=ht("Blob"),vT=ht("FileList"),bT=e=>co(e)&&Ke(e.pipe),yT=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ke(e.append)&&((t=$i(e))==="formdata"||t==="object"&&Ke(e.toString)&&e.toString()==="[object FormData]"))},xT=ht("URLSearchParams"),[ST,CT,kT,wT]=["ReadableStream","Request","Response","Headers"].map(ht),ET=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function uo(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),vn(e))for(n=0,o=e.length;n0;)if(o=r[n],t===o.toLowerCase())return o;return null}const $r=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,Jg=e=>!bn(e)&&e!==$r;function fl(){const{caseless:e,skipUndefined:t}=Jg(this)&&this||{},r={},n=(o,i)=>{const s=e&&Qg(r,i)||i;Bi(r[s])&&Bi(o)?r[s]=fl(r[s],o):Bi(o)?r[s]=fl({},o):vn(o)?r[s]=o.slice():(!t||!bn(o))&&(r[s]=o)};for(let o=0,i=arguments.length;o(uo(t,(o,i)=>{r&&Ke(o)?e[i]=qg(o,r):e[i]=o},{allOwnKeys:n}),e),IT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),TT=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},PT=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&hl(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},NT=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},AT=e=>{if(!e)return null;if(vn(e))return e;let t=e.length;if(!Xg(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},VT=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hl(Uint8Array)),RT=(e,t)=>{const n=(e&&e[Mi]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},_T=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},LT=ht("HTMLFormElement"),FT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Zg=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),zT=ht("RegExp"),ep=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};uo(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},DT=e=>{ep(e,(t,r)=>{if(Ke(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ke(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},MT=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return vn(e)?n(e):n(String(e).split(t)),r},$T=()=>{},WT=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function BT(e){return!!(e&&Ke(e.append)&&e[Kg]==="FormData"&&e[Mi])}const HT=e=>{const t=new Array(10),r=(n,o)=>{if(co(n)){if(t.indexOf(n)>=0)return;if(lo(n))return n;if(!("toJSON"in n)){t[o]=n;const i=vn(n)?[]:{};return uo(n,(s,a)=>{const l=r(s,o+1);!bn(l)&&(i[a]=l)}),t[o]=void 0,i}}return n};return r(e,0)},UT=ht("AsyncFunction"),jT=e=>e&&(co(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),tp=((e,t)=>e?setImmediate:t?((r,n)=>($r.addEventListener("message",({source:o,data:i})=>{o===$r&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),$r.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ke($r.postMessage)),GT=typeof queueMicrotask<"u"?queueMicrotask.bind($r):typeof process<"u"&&process.nextTick||tp,I={isArray:vn,isArrayBuffer:Yg,isBuffer:lo,isFormData:yT,isArrayBufferView:uT,isString:dT,isNumber:Xg,isBoolean:hT,isObject:co,isPlainObject:Bi,isEmptyObject:fT,isReadableStream:ST,isRequest:CT,isResponse:kT,isHeaders:wT,isUndefined:bn,isDate:gT,isFile:pT,isBlob:mT,isRegExp:zT,isFunction:Ke,isStream:bT,isURLSearchParams:xT,isTypedArray:VT,isFileList:vT,forEach:uo,merge:fl,extend:OT,trim:ET,stripBOM:IT,inherits:TT,toFlatObject:PT,kindOf:$i,kindOfTest:ht,endsWith:NT,toArray:AT,forEachEntry:RT,matchAll:_T,isHTMLForm:LT,hasOwnProperty:Zg,hasOwnProp:Zg,reduceDescriptors:ep,freezeMethods:DT,toObjectSet:MT,toCamelCase:FT,noop:$T,toFiniteNumber:WT,findKey:Qg,global:$r,isContextDefined:Jg,isSpecCompliantForm:BT,toJSONObject:HT,isAsyncFn:UT,isThenable:jT,setImmediate:tp,asap:GT,isIterable:e=>e!=null&&Ke(e[Mi])};function j(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}I.inherits(j,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.status}}});const rp=j.prototype,np={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{np[e]={value:e}}),Object.defineProperties(j,np),Object.defineProperty(rp,"isAxiosError",{value:!0}),j.from=(e,t,r,n,o,i)=>{const s=Object.create(rp);I.toFlatObject(e,s,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const a=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return j.call(s,a,l,r,n,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const qT=null;function gl(e){return I.isPlainObject(e)||I.isArray(e)}function op(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function ip(e,t,r){return e?e.concat(t).map(function(o,i){return o=op(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function KT(e){return I.isArray(e)&&!e.some(gl)}const YT=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function Hi(e,t,r){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=I.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!I.isUndefined(v[m])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(o))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(I.isDate(p))return p.toISOString();if(I.isBoolean(p))return p.toString();if(!l&&I.isBlob(p))throw new j("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(p)||I.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,v){let x=p;if(p&&!v&&typeof p=="object"){if(I.endsWith(m,"{}"))m=n?m:m.slice(0,-2),p=JSON.stringify(p);else if(I.isArray(p)&&KT(p)||(I.isFileList(p)||I.endsWith(m,"[]"))&&(x=I.toArray(p)))return m=op(m),x.forEach(function(y,S){!(I.isUndefined(y)||y===null)&&t.append(s===!0?ip([m],S,i):s===null?m:m+"[]",c(y))}),!1}return gl(p)?!0:(t.append(ip(v,m,i),c(p)),!1)}const d=[],g=Object.assign(YT,{defaultVisitor:u,convertValue:c,isVisitable:gl});function f(p,m){if(!I.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),I.forEach(p,function(x,k){(!(I.isUndefined(x)||x===null)&&o.call(t,x,I.isString(k)?k.trim():k,m,g))===!0&&f(x,m?m.concat(k):[k])}),d.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return f(e),t}function sp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function pl(e,t){this._pairs=[],e&&Hi(e,this,t)}const ap=pl.prototype;ap.append=function(t,r){this._pairs.push([t,r])},ap.toString=function(t){const r=t?function(n){return t.call(this,n,sp)}:sp;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function XT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function lp(e,t,r){if(!t)return e;const n=r&&r.encode||XT;I.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=I.isURLSearchParams(t)?t.toString():new pl(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class cp{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(n){n!==null&&t(n)})}}const up={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},QT={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:pl,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ml=typeof window<"u"&&typeof document<"u",vl=typeof navigator=="object"&&navigator||void 0,JT=ml&&(!vl||["ReactNative","NativeScript","NS"].indexOf(vl.product)<0),ZT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eP=ml&&window.location.href||"http://localhost",Le={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ml,hasStandardBrowserEnv:JT,hasStandardBrowserWebWorkerEnv:ZT,navigator:vl,origin:eP},Symbol.toStringTag,{value:"Module"})),...QT};function tP(e,t){return Hi(e,new Le.classes.URLSearchParams,{visitor:function(r,n,o,i){return Le.isNode&&I.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function rP(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function nP(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n=r.length;return s=!s&&I.isArray(o)?o.length:s,l?(I.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!I.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&I.isArray(o[s])&&(o[s]=nP(o[s])),!a)}if(I.isFormData(e)&&I.isFunction(e.entries)){const r={};return I.forEachEntry(e,(n,o)=>{t(rP(n),o,r,0)}),r}return null}function oP(e,t,r){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ho={transitional:up,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=I.isObject(t);if(i&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return o?JSON.stringify(dp(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return tP(t,this.formSerializer).toString();if((a=I.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Hi(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),oP(t)):t}],transformResponse:[function(t){const r=this.transitional||ho.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?j.from(a,j.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Le.classes.FormData,Blob:Le.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{ho.headers[e]={}});const iP=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sP=e=>{const t={};let r,n,o;return e&&e.split(`
-`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&iP[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},hp=Symbol("internals");function fo(e){return e&&String(e).trim().toLowerCase()}function Ui(e){return e===!1||e==null?e:I.isArray(e)?e.map(Ui):String(e)}function aP(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const lP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function bl(e,t,r,n,o){if(I.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!I.isString(t)){if(I.isString(n))return t.indexOf(n)!==-1;if(I.isRegExp(n))return n.test(t)}}function cP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function uP(e,t){const r=I.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}let Ye=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(a,l,c){const u=fo(l);if(!u)throw new Error("header name must be a non-empty string");const d=I.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=Ui(a))}const s=(a,l)=>I.forEach(a,(c,u)=>i(c,u,l));if(I.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(I.isString(t)&&(t=t.trim())&&!lP(t))s(sP(t),r);else if(I.isObject(t)&&I.isIterable(t)){let a={},l,c;for(const u of t){if(!I.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?I.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}s(a,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=fo(t),t){const n=I.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return aP(o);if(I.isFunction(r))return r.call(this,o,n);if(I.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=fo(t),t){const n=I.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||bl(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=fo(s),s){const a=I.findKey(n,s);a&&(!r||bl(n,n[a],a,r))&&(delete n[a],o=!0)}}return I.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||bl(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return I.forEach(this,(o,i)=>{const s=I.findKey(n,i);if(s){r[s]=Ui(o),delete r[i];return}const a=t?cP(i):String(i).trim();a!==i&&delete r[i],r[a]=Ui(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return I.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&I.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
-`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[hp]=this[hp]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=fo(s);n[a]||(uP(o,s),n[a]=!0)}return I.isArray(t)?t.forEach(i):i(t),this}};Ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),I.reduceDescriptors(Ye.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),I.freezeMethods(Ye);function yl(e,t){const r=this||ho,n=t||r,o=Ye.from(n.headers);let i=n.data;return I.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function fp(e){return!!(e&&e.__CANCEL__)}function yn(e,t,r){j.call(this,e??"canceled",j.ERR_CANCELED,t,r),this.name="CanceledError"}I.inherits(yn,j,{__CANCEL__:!0});function gp(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new j("Request failed with status code "+r.status,[j.ERR_BAD_REQUEST,j.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function dP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function hP(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[i];s||(s=c),r[o]=l,n[o]=c;let d=i,g=0;for(;d!==o;)g+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s{r=u,o=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-r;d>=n?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},n-d)))},()=>o&&s(o)]}const ji=(e,t,r=3)=>{let n=0;const o=hP(50,250);return fP(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-n,c=o(l),u=s<=a;n=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},r)},pp=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},mp=e=>(...t)=>I.asap(()=>e(...t)),gP=Le.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Le.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Le.origin),Le.navigator&&/(msie|trident)/i.test(Le.navigator.userAgent)):()=>!0,pP=Le.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];I.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),I.isString(n)&&a.push(`path=${n}`),I.isString(o)&&a.push(`domain=${o}`),i===!0&&a.push("secure"),I.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function mP(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vP(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vp(e,t,r){let n=!mP(t);return e&&(n||r==!1)?vP(e,t):t}const bp=e=>e instanceof Ye?{...e}:e;function Wr(e,t){t=t||{};const r={};function n(c,u,d,g){return I.isPlainObject(c)&&I.isPlainObject(u)?I.merge.call({caseless:g},c,u):I.isPlainObject(u)?I.merge({},u):I.isArray(u)?u.slice():u}function o(c,u,d,g){if(I.isUndefined(u)){if(!I.isUndefined(c))return n(void 0,c,d,g)}else return n(c,u,d,g)}function i(c,u){if(!I.isUndefined(u))return n(void 0,u)}function s(c,u){if(I.isUndefined(u)){if(!I.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function a(c,u,d){if(d in t)return n(c,u);if(d in e)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u,d)=>o(bp(c),bp(u),d,!0)};return I.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||o,g=d(e[u],t[u],u);I.isUndefined(g)&&d!==a||(r[u]=g)}),r}const yp=e=>{const t=Wr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=Ye.from(s),t.url=lp(vp(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),I.isFormData(r)){if(Le.hasStandardBrowserEnv||Le.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(I.isFunction(r.getHeaders)){const l=r.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&s.set(u,d)})}}if(Le.hasStandardBrowserEnv&&(n&&I.isFunction(n)&&(n=n(t)),n||n!==!1&&gP(t.url))){const l=o&&i&&pP.read(i);l&&s.set(o,l)}return t},bP=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=yp(e);let i=o.data;const s=Ye.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,d,g,f,p;function m(){f&&f(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function x(){if(!v)return;const y=Ye.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:y,config:e,request:v};gp(function(T){r(T),m()},function(T){n(T),m()},b),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(n(new j("Request aborted",j.ECONNABORTED,e,v)),v=null)},v.onerror=function(S){const b=S&&S.message?S.message:"Network Error",O=new j(b,j.ERR_NETWORK,e,v);O.event=S||null,n(O),v=null},v.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const b=o.transitional||up;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),n(new j(S,b.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,e,v)),v=null},i===void 0&&s.setContentType(null),"setRequestHeader"in v&&I.forEach(s.toJSON(),function(S,b){v.setRequestHeader(b,S)}),I.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),c&&([g,p]=ji(c,!0),v.addEventListener("progress",g)),l&&v.upload&&([d,f]=ji(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",f)),(o.cancelToken||o.signal)&&(u=y=>{v&&(n(!y||y.type?new yn(null,e,v):y),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const k=dP(o.url);if(k&&Le.protocols.indexOf(k)===-1){n(new j("Unsupported protocol "+k+":",j.ERR_BAD_REQUEST,e));return}v.send(i||null)})},yP=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;n.abort(u instanceof j?u:new yn(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new j(`timeout ${t} of ms exceeded`,j.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>I.asap(a),l}},xP=function*(e,t){let r=e.byteLength;if(r{const o=SP(e,t);let i=0,s,a=l=>{s||(s=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let d=u.byteLength;if(r){let g=i+=d;r(g)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Sp=64*1024,{isFunction:Gi}=I,kP=(({Request:e,Response:t})=>({Request:e,Response:t}))(I.global),{ReadableStream:Cp,TextEncoder:kp}=I.global,wp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},wP=e=>{e=I.merge.call({skipUndefined:!0},kP,e);const{fetch:t,Request:r,Response:n}=e,o=t?Gi(t):typeof fetch=="function",i=Gi(r),s=Gi(n);if(!o)return!1;const a=o&&Gi(Cp),l=o&&(typeof kp=="function"?(p=>m=>p.encode(m))(new kp):async p=>new Uint8Array(await new r(p).arrayBuffer())),c=i&&a&&wp(()=>{let p=!1;const m=new r(Le.origin,{body:new Cp,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!m}),u=s&&a&&wp(()=>I.isReadableStream(new n("").body)),d={stream:u&&(p=>p.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!d[p]&&(d[p]=(m,v)=>{let x=m&&m[p];if(x)return x.call(m);throw new j(`Response type '${p}' is not supported`,j.ERR_NOT_SUPPORT,v)})});const g=async p=>{if(p==null)return 0;if(I.isBlob(p))return p.size;if(I.isSpecCompliantForm(p))return(await new r(Le.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(I.isArrayBufferView(p)||I.isArrayBuffer(p))return p.byteLength;if(I.isURLSearchParams(p)&&(p=p+""),I.isString(p))return(await l(p)).byteLength},f=async(p,m)=>{const v=I.toFiniteNumber(p.getContentLength());return v??g(m)};return async p=>{let{url:m,method:v,data:x,signal:k,cancelToken:y,timeout:S,onDownloadProgress:b,onUploadProgress:O,responseType:T,headers:V,withCredentials:E="same-origin",fetchOptions:P}=yp(p),N=t||fetch;T=T?(T+"").toLowerCase():"text";let w=yP([k,y&&y.toAbortSignal()],S),A=null;const L=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let z;try{if(O&&c&&v!=="get"&&v!=="head"&&(z=await f(V,x))!==0){let Q=new r(m,{method:"POST",body:x,duplex:"half"}),ye;if(I.isFormData(x)&&(ye=Q.headers.get("content-type"))&&V.setContentType(ye),Q.body){const[it,It]=pp(z,ji(mp(O)));x=xp(Q.body,Sp,it,It)}}I.isString(E)||(E=E?"include":"omit");const U=i&&"credentials"in r.prototype,Z={...P,signal:w,method:v.toUpperCase(),headers:V.normalize().toJSON(),body:x,duplex:"half",credentials:U?E:void 0};A=i&&new r(m,Z);let ne=await(i?N(A,P):N(m,Z));const H=u&&(T==="stream"||T==="response");if(u&&(b||H&&L)){const Q={};["status","statusText","headers"].forEach(Ht=>{Q[Ht]=ne[Ht]});const ye=I.toFiniteNumber(ne.headers.get("content-length")),[it,It]=b&&pp(ye,ji(mp(b),!0))||[];ne=new n(xp(ne.body,Sp,it,()=>{It&&It(),L&&L()}),Q)}T=T||"text";let q=await d[I.findKey(d,T)||"text"](ne,p);return!H&&L&&L(),await new Promise((Q,ye)=>{gp(Q,ye,{data:q,headers:Ye.from(ne.headers),status:ne.status,statusText:ne.statusText,config:p,request:A})})}catch(U){throw L&&L(),U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new j("Network Error",j.ERR_NETWORK,p,A),{cause:U.cause||U}):j.from(U,U&&U.code,p,A)}}},EP=new Map,Ep=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s=i.length,a=s,l,c,u=EP;for(;a--;)l=i[a],c=u.get(l),c===void 0&&u.set(l,c=a?new Map:wP(t)),u=c;return c};Ep();const xl={http:qT,xhr:bP,fetch:{get:Ep}};I.forEach(xl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Op=e=>`- ${e}`,OP=e=>I.isFunction(e)||e===null||e===!1;function IP(e,t){e=I.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?s.length>1?`since :
+)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),cw=af("width"),uw=af("height"),lf=e=>({isMin:gf(e.minMax,e.maxMin,e.min),isMax:gf(e.maxMin,e.minMax,e.max)}),{isMin:ja,isMax:cf}=lf(cw),{isMin:Ga,isMax:uf}=lf(uw),df=/print/i,hf=/^print$/i,dw=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,hw=/(\d)/,no=Number.MAX_VALUE,fw={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function ff(e){const t=dw.exec(e)||(ja(e)||Ga(e)?hw.exec(e):null);if(!t)return no;if(t[0]==="0")return 0;const r=parseFloat(t[1]),n=t[2];return r*(fw[n]||1)}function gf(e,t,r){return n=>e.test(n)||!t.test(n)&&r.test(n)}function gw(e,t){const r=df.test(e),n=hf.test(e),o=df.test(t),i=hf.test(t);return r&&o?!n&&i?1:n&&!i?-1:e.localeCompare(t):r?1:o?-1:null}const pw=Ge((e,t)=>{const r=gw(e,t);if(r!==null)return r;const n=ja(e)||Ga(e),o=cf(e)||uf(e),i=ja(t)||Ga(t),s=cf(t)||uf(t);if(n&&s)return-1;if(o&&i)return 1;const a=ff(e),l=ff(t);return a===no&&l===no?e.localeCompare(t):a===no?1:l===no?-1:a!==l?a>l?o?-1:1:o?1:-1:e.localeCompare(t)});function pf(e){return e.sort(([t],[r])=>pw(t,r))}function mf(e){const t=[],r=[],n={};for(const[s,a]of Object.entries(e))s.startsWith("@media")?t.push([s,a]):s.startsWith("@container")?r.push([s,a]):$e(a)?n[s]=mf(a):n[s]=a;const o=pf(t),i=pf(r);return{...n,...Object.fromEntries(o),...Object.fromEntries(i)}}const vf=/\s*!(important)?/i,mw=Ge(e=>at(e)?vf.test(e):!1),vw=Ge(e=>at(e)?e.replace(vf,"").trim():e);function bf(e){const{transform:t,conditions:r,normalize:n}=e,o=xw(e);return Ge(function(...s){const a=o(...s),l=n(a),c=Pi();return Ct(l,(u,d)=>{const g=mw(u);if(u==null)return;const[p,...f]=r.sort(d).map(r.resolve);g&&(u=vw(u));let m=t(p,u)??ae;m=Ct(m,v=>at(v)&&g?`${v} !important`:v,{getKey:v=>r.expandAtRule(v)}),bw(c,f.flat(),m)}),mf(c)})}function bw(e,t,r){let n=e;for(const o of t)o&&(n[o]||(n[o]=Pi()),n=n[o]);dn(n,r)}function yw(...e){return e.filter(t=>{if(!$e(t))return!1;const r=In(t);return Object.keys(r).length>0})}function xw(e){function t(r){const n=yw(...r);return n.length===1?n:n.map(o=>e.normalize(o))}return Ge(function(...n){return dn({},...t(n))})}const yf=e=>({base:ae,variants:ae,defaultVariants:ae,compoundVariants:[],...e});function Sw(e){const{css:t,conditions:r,normalize:n,layers:o}=e;function i(a={}){const l=yf(a),{base:c,defaultVariants:u,compoundVariants:d}=l,g=dt(l.variants,(y,S)=>[y,dt(S,(b,O)=>[b,n(O)])]),p=bf({conditions:r,normalize:n,transform(y,S){return g[y]?.[S]}}),f=(y={})=>{const S=n({...u,...In(y)});let b={...c};dn(b,p(S));const O=s(d,S);return o.wrap("recipes",t(b,O))},m=Object.keys(g),v=y=>{const S=qh(y,["recipe"]),[b,O]=qr(S,m),T=m.includes("colorPalette"),V=m.includes("orientation");return T||(b.colorPalette=y.colorPalette||u.colorPalette),V&&(O.orientation=y.orientation),[b,O]},x=dt(g,(y,S)=>[y,Object.keys(S)]);return Object.assign(y=>t(f(y)),{className:a.className,__cva__:!0,variantMap:x,variantKeys:m,raw:f,config:a,splitVariantProps:v,merge(y){return i(Cw(e)(this,y))}})}function s(a,l){let c=ae;return a.forEach(u=>{Object.entries(u).every(([g,p])=>g==="css"?!0:(Array.isArray(p)?p:[p]).some(m=>l[g]===m))&&(c=t(c,u.css))}),c}return i}function Cw(e){const{css:t}=e;return function(n,o){const i=yf(o.config),s=ws(n.variantKeys,Object.keys(o.variants)),a=t(n.base,i.base),l=Object.fromEntries(s.map(g=>[g,t(n.config.variants[g],i.variants[g])])),c=dn(n.config.defaultVariants,i.defaultVariants),u=[...n.compoundVariants,...i.compoundVariants];return{className:Qe(n.className,o.className),base:a,variants:l,defaultVariants:c,compoundVariants:u}}}const kw={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},xf={reset:0,base:1,tokens:2,recipes:3};function ww(e){const t=e.layers??kw,n=Object.values(t).sort((o,i)=>xf[o]-xf[i]);return{names:n,atRule:`@layer ${n.join(", ")};`,wrap(o,i){return e.disableLayers?i:{[`@layer ${t[o]}`]:i}}}}function Ew(e){const{utility:t,normalize:r}=e,{hasShorthand:n,resolveShorthand:o}=t;return function(i){return Ct(i,r,{stop:s=>Array.isArray(s),getKey:n?o:void 0})}}function Ow(e){const{preflight:t}=e;if(!t)return{};const{scope:r="",level:n="parent"}=$e(t)?t:{};let o="";r&&n==="parent"?o=`${r} `:r&&n==="element"&&(o=`&${r}`);const i={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},s={[r||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(n==="element"){const a=Object.entries(i).reduce((l,[c,u])=>(l[c]={[o]:u},l),{});Object.assign(s,a)}else o?s[o]=i:Object.assign(s,i);return s}function Iw(e){const{conditions:t,isValidProperty:r}=e;return function(o){return Ct(o,i=>i,{getKey:(i,s)=>$e(s)&&!t.has(i)&&!r(i)?Pw(i).map(a=>{const l=a.startsWith("&")?a.slice(1):a;return Tw(l)?`${l} &`:`&${l}`}).join(", "):i})}}function Tw(e){const t=e.toLowerCase();return t.startsWith(":host-context")||t.startsWith(":host")||t.startsWith("::slotted")}function Pw(e){const t=[];let r=0,n="",o=!1;for(let i=0;i{const t=o=>({base:e.base?.[o]??ae,variants:Pi(),defaultVariants:e.defaultVariants??ae,compoundVariants:e.compoundVariants?Aw(e.compoundVariants,o):lw}),n=(e.slots??[]).map(o=>[o,t(o)]);for(const[o,i]of Object.entries(e.variants??{}))for(const[s,a]of Object.entries(i))n.forEach(([l,c])=>{var u;(u=c.variants)[o]??(u[o]={}),c.variants[o][s]=a[l]??ae});return Object.fromEntries(n)},Aw=(e,t)=>e.filter(r=>r.css[t]).map(r=>({...r,css:r.css[t]}));function Vw(e){const{cva:t}=e;return function(n=ae){const o=Object.entries(Nw(n)).map(([d,g])=>[d,t(g)]);function i(d){const g=o.map(([p,f])=>[p,f(d)]);return Object.fromEntries(g)}const s=n.variants??ae,a=Object.keys(s);function l(d){const g=qh(d,["recipe"]),[p,f]=qr(g,a),m=a.includes("colorPalette"),v=a.includes("orientation");return m||(p.colorPalette=d.colorPalette||n.defaultVariants?.colorPalette),v&&(f.orientation=d.orientation),[p,f]}const c=dt(s,(d,g)=>[d,Object.keys(g)]);let u={};return n.className&&(u=Object.fromEntries(n.slots.map(d=>[d,`${n.className}__${d}`]))),Object.assign(i,{variantMap:c,variantKeys:a,splitVariantProps:l,classNameMap:u})}}const Rw=()=>e=>Array.from(new Set(e)),_w=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,Lw=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Sf=e=>(e+"").replace(_w,Lw),Cf=(e,t)=>{let r="",n=0,o="char",i="",s="";const a=[];for(;n{let t=0;const r=["("];for(;t{r instanceof Map?t[n]=Object.fromEntries(r):t[n]=r}),t}const wf=/({([^}]*)})/g,Dw=/[{}]/g,zw=/\w+\.\w+/,Ef=e=>{if(!at(e))return[];const t=e.match(wf);return t?t.map(r=>r.replace(Dw,"").trim()):[]},Mw=e=>wf.test(e);function Of(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};let r=e.value;const n=Object.keys(t);for(let o=0;ot.map(If).join(` ${e} `).replace($w,""),Tf=(...e)=>`calc(${Ni("+",...e)})`,Pf=(...e)=>`calc(${Ni("-",...e)})`,qa=(...e)=>`calc(${Ni("*",...e)})`,Nf=(...e)=>`calc(${Ni("/",...e)})`,Af=e=>{const t=If(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:qa(t,-1)},pn=Object.assign(e=>({add:(...t)=>pn(Tf(e,...t)),subtract:(...t)=>pn(Pf(e,...t)),multiply:(...t)=>pn(qa(e,...t)),divide:(...t)=>pn(Nf(e,...t)),negate:()=>pn(Af(e)),toString:()=>e.toString()}),{add:Tf,subtract:Pf,multiply:qa,divide:Nf,negate:Af}),Ww={enforce:"pre",transform(e){const{prefix:t,allTokens:r,formatCssVar:n,formatTokenName:o,registerToken:i}=e;r.filter(({extensions:a})=>a.category==="spacing").forEach(a=>{const l=a.path.slice(),c=n(l,t);if(at(a.value)&&a.value==="0rem")return;const u=[...a.path],d=u[u.length-1];d!=null&&(u[u.length-1]=`-${d}`);const g={...a,value:pn.negate(c.ref),name:o(u),path:u,extensions:{...a.extensions,negative:!0,prop:`-${a.extensions.prop}`,originalPath:l}};i(g)})}},Bw=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),Hw=[Ww,{enforce:"post",transform(e){const{allTokens:t,registerToken:r,formatTokenName:n}=e,o=t.filter(({extensions:a})=>a.category==="colors"),i=new Map,s=new Map;o.forEach(a=>{const{colorPalette:l}=a.extensions;l&&(l.keys.forEach(c=>{i.set(n(c),c)}),l.roots.forEach(c=>{const u=n(c),d=s.get(u)||[];if(d.push(a),s.set(u,d),a.extensions.default&&c.length===1){const g=l.keys[0]?.filter(Boolean);if(!g.length)return;const p=c.concat(g);i.set(n(p),[])}}))}),i.forEach(a=>{const l=["colors","colorPalette",...a].filter(Boolean),c=n(l),u=n(l.slice(1));r({name:c,value:c,originalValue:c,path:l,extensions:{condition:"base",originalPath:l,category:"colors",prop:u,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(r=>Bw.has(r.extensions.category)&&!r.extensions.negative).forEach(r=>{Object.assign(r.extensions,{pixelValue:of(r.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}}],Uw=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:r,formatCssVar:n}=t,{negative:o,originalPath:i}=e.extensions,s=o?i:e.path;return{cssVar:n(s.filter(Boolean),r)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:r,formatCssVar:n}=t,o=Ef(e.value);return o.length&&o.forEach(i=>{const s=n(i.split("."),r);e.value=e.value.replace(`{${s.ref}}`,s)}),e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let r=e.path.slice();if(r.pop(),r.shift(),r.length===0){const a=[...e.path];a.shift(),r=a}if(r.length===0)return{};const n=r.reduce((a,l,c,u)=>{const d=u.slice(0,c+1);return a.push(d),a},[]),o=r[0],i=t.formatTokenName(r),s=e.path.slice(e.path.indexOf(o)+1).reduce((a,l,c,u)=>(a.push(u.slice(c)),a),[]);return s.length===0&&s.push([""]),{colorPalette:{value:i,roots:n,keys:s}}}}],Vf=e=>$e(e)&&Object.prototype.hasOwnProperty.call(e,"value");function jw(e){return e?{breakpoints:Kh(e,t=>({value:t})),sizes:dt(e,(t,r)=>[`breakpoint-${t}`,{value:r}])}:{breakpoints:{},sizes:{}}}function Gw(e){const{prefix:t="",tokens:r={},semanticTokens:n={},breakpoints:o={}}=e,i=F=>F.join("."),s=(F,_)=>Qh(F.join("-"),{prefix:_}),a=[],l=new Map,c=new Map,u=new Map,d=new Map,g=new Map,p=new Map,f=new Map,m=new Map,v=[];function x(F,_){a.push(F),l.set(F.name,F),_&&m.forEach(K=>{K.enforce===_&&q(K,F)})}const k=jw(o),y=In({...r,breakpoints:k.breakpoints,sizes:{...r.sizes,...k.sizes}});function S(){Ct(y,(F,_)=>{const K=_.includes("DEFAULT");_=Rf(_);const te=_[0],fe=i(_),Ve=at(F)?{value:F}:F,Ut={value:Ve.value,originalValue:Ve.value,name:fe,path:_,extensions:{condition:"base",originalPath:_,category:te,prop:i(_.slice(1))}};K&&(Ut.extensions.default=!0),x(Ut)},{stop:Vf}),Ct(n,(F,_)=>{const K=_.includes("DEFAULT");_=_f(Rf(_));const te=_[0],fe=i(_),Ve=at(F.value)?{value:{base:F.value}}:F,Ut={value:Ve.value.base||"",originalValue:Ve.value.base||"",name:fe,path:_,extensions:{originalPath:_,category:te,conditions:Ve.value,condition:"base",prop:i(_.slice(1))}};K&&(Ut.extensions.default=!0),x(Ut)},{stop:Vf})}function b(F){return l.get(F)}function O(F){const{condition:_}=F.extensions;_&&(c.has(_)||c.set(_,new Set),c.get(_).add(F))}function T(F){const{category:_,prop:K}=F.extensions;_&&(f.has(_)||f.set(_,new Map),f.get(_).set(K,F))}function V(F){const{condition:_,negative:K,virtual:te,cssVar:fe}=F.extensions;K||te||!_||!fe||(u.has(_)||u.set(_,new Map),u.get(_).set(fe.var,F.value))}function E(F){const{category:_,prop:K,cssVar:te,negative:fe}=F.extensions;if(!_)return;p.has(_)||p.set(_,new Map);const Ve=fe?F.extensions.conditions?F.originalValue:F.value:te.ref;p.get(_).set(K,Ve),g.set([_,K].join("."),Ve)}function P(F){const{colorPalette:_,virtual:K,default:te}=F.extensions;!_||K||_.roots.forEach(fe=>{const Ve=i(fe);d.has(Ve)||d.set(Ve,new Map);const Ut=Kw([...F.path],[...fe]),rs=i(Ut),Al=b(rs);if(!Al||!Al.extensions.cssVar)return;const{var:C5}=Al.extensions.cssVar;if(d.get(Ve).set(C5,F.extensions.cssVar.ref),te&&fe.length===1){const k5=i(["colors","colorPalette"]),cm=b(k5);if(!cm)return;const w5=i(F.path),um=b(w5);if(!um)return;const dm=_.keys[0]?.filter(Boolean);if(!dm.length)return;const Vl=i(fe.concat(dm));d.has(Vl)||d.set(Vl,new Map),d.get(Vl).set(cm.extensions.cssVar.var,um.extensions.cssVar.ref)}})}let N={};function w(){a.forEach(F=>{O(F),T(F),V(F),E(F),P(F)}),N=kf(p)}const A=(F,_)=>{if(!F||typeof F!="string")return{invalid:!0,value:F};const[K,te]=F.split("/");if(!K||!te)return{invalid:!0,value:K};const fe=_(K),Ve=b(`opacity.${te}`)?.value;if(!Ve&&isNaN(Number(te)))return{invalid:!0,value:K};const Ut=Ve?Number(Ve)*100+"%":`${te}%`,rs=fe??K;return{invalid:!1,color:rs,value:`color-mix(in srgb, ${rs} ${Ut}, transparent)`}},L=Ge((F,_)=>g.get(F)??_),D=Ge(F=>N[F]||null),U=Ge(F=>Cf(F,_=>{if(!_)return;if(_.includes("/")){const te=A(_,fe=>L(fe));if(te.invalid)throw new Error("Invalid color mix at "+_+": "+te.value);return te.value}const K=L(_);return K||(zw.test(_)?Sf(_):_)})),Z={prefix:t,allTokens:a,tokenMap:l,registerToken:x,getByName:b,formatTokenName:i,formatCssVar:s,flatMap:g,cssVarMap:u,categoryMap:f,colorPaletteMap:d,getVar:L,getCategoryValues:D,expandReferenceInValue:U};function ne(...F){F.forEach(_=>{m.set(_.name,_)})}function H(...F){v.push(...F)}function q(F,_){if(_.extensions.references||ks(F.match)&&!F.match(_))return;const te=(fe=>F.transform(fe,Z))(_);switch(!0){case F.type==="extensions":Object.assign(_.extensions,te);break;case F.type==="value":_.value=te;break;default:_[F.type]=te;break}}function Q(F){v.forEach(_=>{_.enforce===F&&_.transform(Z)})}function ye(F){m.forEach(_=>{_.enforce===F&&a.forEach(K=>{q(_,K)})})}function it(){a.forEach(F=>{const _=qw(F);!_||_.length===0||_.forEach(K=>{x(K)})})}function It(F){const _=Ef(F),K=[];for(let te=0;te<_.length;te++){const fe=b(_[te]);fe&&K.push(fe)}return K}function Ht(){a.forEach(F=>{if(!Mw(F.value))return;const _=It(F.value);F.extensions.references=_.reduce((K,te)=>(K[te.name]=te,K),{})})}function Nl(){a.forEach(F=>{Of(F)})}function S5(){Q("pre"),ye("pre"),it(),Ht(),Nl(),Q("post"),ye("post"),w()}return S(),ne(...Uw),H(...Hw),S5(),Z}function Rf(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function _f(e){return e.filter(t=>t!=="base")}function qw(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,r=[];return Ct(t,(n,o)=>{const i=_f(o);if(!i.length)return;const s={...e,value:n,extensions:{...e.extensions,condition:i.join(":")}};r.push(s)}),r}function Kw(e,t){const r=e.findIndex((n,o)=>t.every((i,s)=>e[o+s]===i));return r===-1||(e.splice(r,t.length),e.splice(r,0,"colorPalette")),e}Rw()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function $5(e){return e}function Yw(e){return dt(e,(t,r)=>[t,r])}function Xw(e){const t=Yw(e.config),r=e.tokens,n=new Map,o=new Map;function i(V,E){t[V]=E,s(V,E)}const s=(V,E)=>{const P=m(E);P&&(o.set(V,P),d(V,E))},a=()=>{for(const[V,E]of Object.entries(t))E&&s(V,E)},l=()=>{for(const[V,E]of Object.entries(t)){const{shorthand:P}=E??{};if(!P)continue;(Array.isArray(P)?P:[P]).forEach(w=>n.set(w,V))}},c=()=>{const V=kf(r.colorPaletteMap);i("colorPalette",{values:Object.keys(V),transform:Ge(E=>V[E])})},u=new Map,d=(V,E)=>{if(!E)return;const P=m(E,w=>`type:Tokens["${w}"]`);if(typeof P=="object"&&P.type){u.set(V,new Set([`type:${P.type}`]));return}if(P){const w=new Set(Object.keys(P));u.set(V,w)}const N=u.get(V)??new Set;E.property&&u.set(V,N.add(`CssProperties["${E.property}"]`))},g=()=>{for(const[V,E]of Object.entries(t))E&&d(V,E)},p=(V,E)=>{const P=u.get(V)??new Set;u.set(V,new Set([...P,...E]))},f=()=>{const V=new Map;for(const[E,P]of u.entries()){if(P.size===0){V.set(E,["string"]);continue}const N=Array.from(P).map(w=>w.startsWith("CssProperties")?w:w.startsWith("type:")?w.replace("type:",""):JSON.stringify(w));V.set(E,N)}return V},m=(V,E)=>{const{values:P}=V,N=w=>{const A=E?.(w);return A?{[A]:A}:void 0};if(at(P))return N?.(P)??r.getCategoryValues(P)??ae;if(Array.isArray(P)){const w={};for(let A=0;A({[V]:V.startsWith("--")?r.getVar(E,E):E})),x=Object.assign(r.getVar,{raw:V=>r.getByName(V)}),k=Ge((V,E)=>{const P=b(V);at(E)&&!E.includes("_EMO_")&&(E=r.expandReferenceInValue(E));const N=t[P];if(!N)return v(P,E);const w=o.get(P)?.[E];if(!N.transform)return v(V,w??E);const A=L=>Tk(L,x);return N.transform(w??E,{raw:E,token:x,utils:{colorMix:A}})});function y(){l(),c(),a(),g()}y();const S=n.size>0,b=Ge(V=>n.get(V)??V);return{keys:()=>[...Array.from(n.keys()),...Object.keys(t)],hasShorthand:S,transform:k,shorthands:n,resolveShorthand:b,register:i,getTypes:f,addPropertyType:p}}function Lf(...e){const t=Yh(...e),{theme:r={},utilities:n={},globalCss:o={},cssVarsRoot:i=":where(:root, :host)",cssVarsPrefix:s="chakra",preflight:a}=t,l=ww(t),c=Gw({breakpoints:r.breakpoints,tokens:r.tokens,semanticTokens:r.semanticTokens,prefix:s}),u=nw(r.breakpoints??ae),d=aw({conditions:t.conditions??ae,breakpoints:u}),g=Xw({config:n,tokens:c});function p(){const{textStyles:H,layerStyles:q,animationStyles:Q}=r,ye=In({textStyle:H,layerStyle:q,animationStyle:Q});for(const[it,It]of Object.entries(ye)){const Ht=ef(It??ae,Ff);g.register(it,{values:Object.keys(Ht),transform(Nl){return y(Ht[Nl])}})}}p(),g.addPropertyType("animationName",Object.keys(r.keyframes??ae));const f=new Set(["css",...g.keys(),...d.keys()]),m=Ge(H=>f.has(H)||Jk(H)),v=H=>{if(Array.isArray(H)){const q=Pi();for(let Q=0;Q[`@keyframes ${Q}`,ye]),q=Object.assign({},H,y(k(o)));return l.wrap("base",q)}function V(H){return qr(H,m)}function E(){const H=Ow({preflight:a});return l.wrap("reset",H)}const P=Qw(c),N=(H,q)=>P.get(H)?.value||q;N.var=(H,q)=>P.get(H)?.variable||q;function w(H,q){return r.recipes?.[H]??q}function A(H,q){return r.slotRecipes?.[H]??q}function L(H){return Object.hasOwnProperty.call(r.recipes??ae,H)}function D(H){return Object.hasOwnProperty.call(r.slotRecipes??ae,H)}function U(H){return L(H)||D(H)}const Z=[E(),T(),O()],ne={layerStyles:Ka(r.layerStyles??ae),textStyles:Ka(r.textStyles??ae),animationStyles:Ka(r.animationStyles??ae),tokens:Df(c,Object.keys(r.tokens??ae),(H,q)=>!H.extensions.conditions&&!q.includes("colorPalette")),semanticTokens:Df(c,Object.keys(r.semanticTokens??ae),H=>!!H.extensions.conditions),keyframes:zf(r.keyframes??ae),breakpoints:zf(r.breakpoints??ae)};return{$$chakra:!0,_config:t,_global:Z,breakpoints:u,tokens:c,conditions:d,utility:g,token:N,properties:f,layers:l,isValidProperty:m,splitCssProps:V,normalizeValue:v,getTokenCss:O,getGlobalCss:T,getPreflightCss:E,css:y,cva:S,sva:b,getRecipe:w,getSlotRecipe:A,hasRecipe:U,isRecipe:L,isSlotRecipe:D,query:ne}}function Qw(e){const t=new Map;return e.allTokens.forEach(r=>{const{cssVar:n,virtual:o,conditions:i}=r.extensions,s=i||o?n.ref:r.value;t.set(r.name,{value:s,variable:n.ref})}),t}const Ff=e=>$e(e)&&"value"in e,Ka=e=>({list(){return Object.keys(ef(e,Ff))},search(t){return this.list().filter(r=>r.includes(t))}}),Df=(e,t,r)=>({categoryKeys:t,list(n){const o=e.categoryMap.get(n),i=o?[...o.entries()]:[],s=[];for(let a=0;ai.includes(o))}}),zf=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(r=>r.includes(t))}}),Jw={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Ya="var(--chakra-empty,/*!*/ /*!*/)",Zw=Vk({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Ya,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,Ya])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Ya])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),eE=Lk({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),tE=_k({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),Xa=Se({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),rE=Se({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px","--outline-color-legacy":"colors.colorPalette.muted","--outline-color":"colors.colorPalette.border",borderColor:"var(--outline-color, var(--outline-color-legacy))",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),Ne=Se({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:nE,defaultVariants:oE}=Xa,iE=Se({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:nE,defaultVariants:oE}),Mf=Se({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),sE=Se({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),aE=Se({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),lE=Se({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),be=Se({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),cE=Se({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:be.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),uE=Se({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),dE=Se({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),hE=Se({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),Ae=Se({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),fE=Se({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),gE=Se({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),pE=Se({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),mE=Se({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),vE=Se({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),bE={badge:Xa,button:rE,code:iE,container:sE,heading:aE,input:be,inputAddon:cE,kbd:uE,link:dE,mark:hE,separator:fE,skeleton:gE,skipNavLink:pE,spinner:mE,textarea:vE,icon:lE,checkmark:Ne,radiomark:Ae,colorSwatch:Mf},yE=Ba.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}},border:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}},border:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}},border:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}},border:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}},border:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}},border:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}},border:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.400}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}},border:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.400}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}},border:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.400}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}},border:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.400}"}}}}),xE=Ba.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),SE=Ba.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),CE=Wu.extendWith("itemBody"),kE=$("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),wE=$("alert").parts("title","description","root","indicator","content"),EE=$("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),OE=$("blockquote").parts("root","icon","content","caption"),IE=$("card").parts("root","header","body","footer","title","description"),TE=$("checkbox-card",["root","control","label","description","addon","indicator","content"]),PE=$("data-list").parts("root","item","itemLabel","itemValue"),NE=va.extendWith("header","body","footer","backdrop"),AE=va.extendWith("header","body","footer","backdrop"),VE=Pd.extendWith("textarea"),RE=$("empty-state",["root","content","indicator","title","description"]),_E=Ad.extendWith("requiredIndicator"),LE=Rd.extendWith("content"),FE=_d.extendWith("itemContent","dropzoneContent","fileText"),DE=$("list").parts("root","item","indicator"),zE=Gd.extendWith("itemCommand"),ME=$("select").parts("root","field","indicator"),$E=uh.extendWith("header","body","footer"),$f=Na.extendWith("itemAddon","itemIndicator"),WE=$f.extendWith("itemContent","itemDescription"),BE=hh.extendWith("itemIndicator"),HE=Th.extendWith("indicatorGroup"),UE=SS.extendWith("indicatorGroup","empty"),jE=Dh.extendWith("markerIndicator"),GE=$("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),qE=$("status").parts("root","indicator"),KE=$("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),YE=zh.extendWith("indicator"),XE=$("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),QE=$("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),JE=$("tabs").parts("root","trigger","list","content","contentGroup","indicator"),ZE=$("tag").parts("root","label","closeTrigger","startElement","endElement"),eO=$("timeline").parts("root","item","content","separator","indicator","connector","title","description"),tO=B1.extendWith("channelText"),rO=$("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]),nO=zu.extendWith("resizeTriggerSeparator","resizeTriggerIndicator");rd.extendWith("valueText");const oO=YS,iO=B({className:"chakra-accordion",slots:CE.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),sO=B({className:"chakra-action-bar",slots:kE.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),aO=B({slots:wE.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),lO=B({slots:Uu.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",borderColor:"var(--outline-shadow, var(--outline-shadow-legacy))"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),cO=B({className:"chakra-blockquote",slots:OE.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),uO=B({className:"chakra-breadcrumb",slots:EE.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),dO=B({className:"chakra-card",slots:IE.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}}),hO=B({className:"carousel",slots:R1.keys(),base:{root:{position:"relative",display:"flex",gap:"2",_horizontal:{flexDirection:"column"},_vertical:{flexDirection:"row"}},item:{_horizontal:{width:"100%"},_vertical:{height:"100%"}},control:{display:"flex",alignItems:"center",_horizontal:{flexDirection:"row",width:"100%"},_vertical:{flexDirection:"column",height:"100%"}},indicatorGroup:{display:"flex",justifyContent:"center",gap:"3",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},indicator:{width:"2.5",height:"2.5",borderRadius:"full",bg:"colorPalette.subtle",cursor:"button",_current:{bg:"colorPalette.solid"}}},defaultVariants:{}}),fO=B({slots:W1.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Ne.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:Ne.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:Ne.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:Ne.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:Ne.variants?.size?.lg}},variant:{outline:{control:Ne.variants?.variant?.outline},solid:{control:Ne.variants?.variant?.solid},subtle:{control:Ne.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),gO=B({slots:TE.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:Ne.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:Ne.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Ne.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Ne.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:Ne.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:Ne.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:Ne.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:Ne.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),pO=B({slots:rO.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflowX:"auto",overflowY:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative",paddingInlineEnd:"var(--code-block-padding)","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",top:"0",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",whiteSpace:"nowrap",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),mO=B({slots:Zc.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"expand-height"}},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"collapse-height"}}}}}),vO=B({className:"colorPicker",slots:tO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...Mf.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...be.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:be.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:be.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:be.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:be.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:be.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:be.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:be.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:be.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:be.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),bO=B({className:"chakra-combobox",slots:UE.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},control:{pos:"relative","--padding-factor":"1","--combobox-input-padding-end":"var(--combobox-input-padding-x)","&:has([data-part=trigger]), &:has([data-part=clear-trigger])":{"--combobox-input-padding-end":"calc(var(--combobox-input-height) * var(--padding-factor))"},"&:has([data-part=trigger]):has([data-part=clear-trigger]:not([hidden]))":{"--padding-factor":"1.5"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",ps:"var(--combobox-input-padding-x)",pe:"var(--combobox-input-padding-end)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),yO=B({slots:PE.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),xO=B({slots:NE.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),SO=B({slots:AE.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),Wf=hn({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),CO=B({slots:VE.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Wf,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Wf,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),kO=B({slots:RE.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),wO=B({className:"chakra-field",slots:_E.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),EO=B({className:"fieldset",slots:LE.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),OO=B({className:"chakra-file-upload",slots:FE.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),IO=B({className:"chakra-hover-card",slots:Ld.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderLeftWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),TO=B({className:"chakra-list",slots:DE.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),PO=B({className:"chakra-listbox",slots:oO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}}),NO=B({className:"chakra-menu",slots:zE.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),Ai=B({className:"chakra-select",slots:HE.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),AO=B({className:"chakra-native-select",slots:ME.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:Ai.variants?.variant.outline.trigger},subtle:{field:Ai.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:Ai.defaultVariants}),Bf=hn({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),VO=B({className:"chakra-number-input",slots:nh.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...be.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...Bf,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...Bf,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:be.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:be.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:be.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:be.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:dt(be.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:Hf,defaultVariants:RO}=be,_O=B({className:"chakra-pin-input",slots:ch.keys(),base:{input:{...be.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:dt(Hf.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:dt(Hf.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:RO}),LO=B({className:"chakra-popover",slots:$E.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderLeftWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),FO=B({slots:Pa.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),DO=B({className:"chakra-progress-circle",slots:Pa.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),zO=B({slots:dh.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),MO=B({className:"chakra-radio-card",slots:WE.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:Ae.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:Ae.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Ae.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Ae.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:Ae.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:Ae.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:Ae.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:Ae.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),$O=B({className:"chakra-radio-group",slots:$f.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Ae.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:Ae.variants?.variant?.outline},subtle:{itemControl:Ae.variants?.variant?.subtle},solid:{itemControl:Ae.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:Ae.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:Ae.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:Ae.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:Ae.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),WO=B({className:"chakra-rating-group",slots:BE.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),BO=B({className:"chakra-scroll-area",slots:fh.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}}),HO=B({className:"chakra-segment-group",slots:gh.keys(),base:{root:{"--segment-radius":"radii.l2","--segment-indicator-bg":{_light:"colors.bg",_dark:"colors.bg.emphasized"},"--segment-indicator-shadow":"shadows.sm",borderRadius:"var(--segment-radius)",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"var(--segment-indicator-shadow)",pos:"absolute",bg:"var(--segment-indicator-bg)",width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),UO=B({className:"chakra-slider",slots:jE.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),jO=B({slots:nO.keys(),className:"splitter",base:{resizeTrigger:{"--splitter-border-color":"colors.border","--splitter-thumb-color":"colors.bg","--splitter-thumb-size":"sizes.2","--splitter-thumb-inset":"calc(var(--splitter-thumb-size) * -0.5)","--splitter-border-size":"1px","--splitter-handle-size":"sizes.6",outline:"0",display:"grid",placeItems:"center",position:"relative",_focus:{"--splitter-border-color":"colors.border.emphasized","--splitter-thumb-color":"colors.colorPalette.subtle"},_dragging:{"--splitter-thumb-color":"colors.colorPalette.focusRing"},_horizontal:{minWidth:"var(--splitter-thumb-size)",marginInline:"var(--splitter-thumb-inset)"},_vertical:{minHeight:"var(--splitter-thumb-size)",marginBlock:"var(--splitter-thumb-inset)"}},resizeTriggerSeparator:{position:"absolute",bg:"var(--splitter-border-color)","[data-part='resize-trigger'][data-orientation=horizontal] &":{insetInlineEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetBlock:"0",insetInlineStart:"auto",w:"var(--splitter-border-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{insetBlockEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetInline:"0",insetBlockStart:"auto",h:"var(--splitter-border-size)"}},resizeTriggerIndicator:{position:"relative",rounded:"full",bg:"var(--splitter-thumb-color)",shadow:"xs",borderWidth:"1px",zIndex:"1","[data-part='resize-trigger'][data-orientation=horizontal] &":{w:"full",h:"var(--splitter-handle-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{w:"var(--splitter-handle-size)",h:"full"},"[data-part='resize-trigger'][data-focus]:focus-visible &":{outlineWidth:"2px",outlineColor:"colorPalette.focusRing",outlineStyle:"solid"},"[data-part='resize-trigger'][data-disabled] &":{visibility:"hidden"}}}}),GO=B({className:"chakra-stat",slots:GE.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),qO=B({className:"chakra-status",slots:qE.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),KO=B({className:"chakra-steps",slots:KE.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),YO=B({slots:YE.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),XO=B({className:"chakra-table",slots:XE.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),QO=B({slots:JE.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-trigger-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-trigger-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),Vi=Xa.variants?.variant,JO=B({slots:ZE.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:Vi?.subtle},solid:{root:Vi?.solid},outline:{root:Vi?.outline},surface:{root:Vi?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),ZO=B({slots:Mh.keys(),className:"tags-input",base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},control:{"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",minH:"var(--tags-input-height)","--input-height":"var(--tags-input-height)",px:"var(--tags-input-px)",py:"var(--tags-input-py)",gap:"var(--tags-input-gap)",display:"flex",flexWrap:"wrap",alignItems:"center",borderRadius:"l2",pos:"relative",transitionProperty:"border-color, box-shadow",transitionDuration:"normal",_disabled:{opacity:"0.5"},_invalid:{borderColor:"var(--error-color)"}},input:{flex:"1",minWidth:"20",outline:"none",bg:"transparent",color:"fg",px:"calc(var(--tags-input-item-px) / 1.25)",height:"var(--tags-input-item-height)",_readOnly:{display:"none"}},item:{maxWidth:"100%",minWidth:"0"},itemText:{lineClamp:"1",minWidth:"0"},itemInput:{outline:"none",bg:"transparent",minWidth:"2ch",color:"inherit",px:"var(--tags-input-item-px)",height:"var(--tags-input-item-height)"},itemPreview:{height:"var(--tags-input-item-height)",userSelect:"none",display:"inline-flex",alignItems:"center",gap:"1",rounded:"l1",px:"var(--tags-input-item-px)",maxWidth:"100%"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:"0",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},me:"-1",opacity:"0.4",_hover:{opacity:"1"},"[data-highlighted] &":{opacity:"1"},_icon:{boxSize:"80%"}},clearTrigger:{display:"flex",alignItems:"center",justifyContent:"center",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},color:"fg.muted",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1",_icon:{boxSize:"5"}}},variants:{size:{xs:{root:{"--tags-input-height":"sizes.8","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"xs"}},sm:{root:{"--tags-input-height":"sizes.9","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"sm"}},md:{root:{"--tags-input-height":"sizes.10","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.7","--tags-input-item-px":"spacing.2",textStyle:"sm"}},lg:{root:{"--tags-input-height":"sizes.11","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.8","--tags-input-item-px":"spacing.2",textStyle:"md"}}},variant:{outline:{control:{borderWidth:"1px",bg:"bg",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}},subtle:{control:{bg:"bg.muted",borderWidth:"1px",borderColor:"transparent",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"bg",borderWidth:"1px",_highlighted:{bg:"colorPalette.subtle",borderColor:"colorPalette.emphasized"}}},flushed:{control:{borderRadius:"0",px:"0",bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",_focus:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}}}},defaultVariants:{size:"md",variant:"outline"}}),e2=B({slots:eO.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{"--timeline-content-gap":"spacing.6",display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"--timeline-content-gap":"0"}},separator:{display:"var(--timeline-separator-display)",position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"var(--timeline-content-gap)",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},showLastSeparator:{true:{item:{_last:{"--timeline-separator-display":"initial"}}},false:{item:{_last:{"--timeline-separator-display":"none"}}}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid",showLastSeparator:!1}}),t2=B({slots:QE.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),r2=B({slots:Uh.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderLeftWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),Uf=hn({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}}),jf=hn({flex:"1"}),Gf=hn({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),qf=hn({_selected:{layerStyle:"fill.solid"}}),n2=B({slots:zd.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:Uf,item:Uf,itemText:jf,branchText:jf,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:Gf,item:Gf},solid:{branchControl:qf,item:qf}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),o2={accordion:iO,actionBar:sO,alert:aO,avatar:lO,blockquote:cO,breadcrumb:uO,card:dO,carousel:hO,checkbox:fO,checkboxCard:gO,codeBlock:pO,collapsible:mO,dataList:yO,dialog:xO,drawer:SO,editable:CO,emptyState:kO,field:wO,fieldset:EO,fileUpload:OO,hoverCard:IO,list:TO,listbox:PO,menu:NO,nativeSelect:AO,numberInput:VO,pinInput:_O,popover:LO,progress:FO,progressCircle:DO,radioCard:MO,radioGroup:$O,ratingGroup:WO,scrollArea:BO,segmentGroup:HO,select:Ai,combobox:bO,slider:UO,splitter:jO,stat:GO,steps:KO,switch:YO,table:XO,tabs:QO,tag:JO,tagsInput:ZO,toast:t2,tooltip:r2,status:qO,timeline:e2,colorPicker:vO,qrCode:zO,treeView:n2},i2=Rk({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),s2=ve.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),a2=ve.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),l2=ve.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),c2=ve.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),u2=ve.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),d2=ve.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),h2=ve.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),f2=ve.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),g2=ve.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),p2=ve.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),Kf='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',m2=ve.fonts({heading:{value:`Inter, ${Kf}`},body:{value:`Inter, ${Kf}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),v2=Ak({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"var(--collapsed-height, 0)"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"var(--collapsed-height, 0)"}},"expand-width":{from:{width:"var(--collapsed-width, 0)"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"var(--collapsed-width, 0)"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),b2=ve.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),y2=ve.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),x2=ve.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),Yf=ve.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),S2=ve.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),C2=ve.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),k2=ve.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),w2=ve.sizes({...S2,...Yf,...k2,...C2}),E2=ve.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),O2=Ha({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:Zw,theme:{breakpoints:Jw,keyframes:v2,tokens:{aspectRatios:a2,animations:s2,blurs:l2,borders:c2,colors:u2,durations:h2,easings:f2,fonts:m2,fontSizes:g2,fontWeights:p2,letterSpacings:b2,lineHeights:y2,radii:x2,spacing:Yf,sizes:w2,zIndex:E2,cursor:d2},semanticTokens:{colors:yE,shadows:SE,radii:xE},recipes:bE,slotRecipes:o2,textStyles:i2,layerStyles:eE,animationStyles:tE}}),Xf=Yh(Hk,O2);Lf(Xf);function I2(e){const{key:t,recipe:r}=e,n=Io();return C.useMemo(()=>{const o=r||(t!=null?n.getSlotRecipe(t):{});return n.sva(structuredClone(o))},[t,r,n])}const T2=e=>e.charAt(0).toUpperCase()+e.slice(1),oo=e=>{const{key:t,recipe:r}=e,n=T2(t||r.className||"Component"),[o,i]=Gr({name:`${n}StylesContext`,errorMessage:`use${n}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `}),[s,a]=Gr({name:`${n}ClassNameContext`,errorMessage:`use${n}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `,strict:!1}),[l,c]=Gr({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`,defaultValue:{}});function u(f){const{unstyled:m,...v}=f,x=I2({key:t,recipe:v.recipe||r}),[k,y]=C.useMemo(()=>x.splitVariantProps(v),[v,x]);return{styles:C.useMemo(()=>m?Nv:x(k),[m,k,x]),classNames:x.classNameMap,props:y}}function d(f,m={}){const{defaultProps:v}=m,x=k=>{const y=c(),S=C.useMemo(()=>On(v,y,k),[y,k]),{styles:b,classNames:O,props:T}=u(S);return h.jsx(o,{value:b,children:h.jsx(s,{value:O,children:h.jsx(f,{...T})})})};return x.displayName=f.displayName||f.name,x}return{StylesProvider:o,ClassNamesProvider:s,PropsProvider:l,usePropsContext:c,useRecipeResult:u,withProvider:(f,m,v)=>{const{defaultProps:x,...k}=v??{},y=he(f,{},k),S=C.forwardRef((b,O)=>{const T=c(),V=C.useMemo(()=>On(x??{},T,b),[T,b]),{styles:E,props:P,classNames:N}=u(V),w=N[m],A=h.jsx(o,{value:E,children:h.jsx(s,{value:N,children:h.jsx(y,{ref:O,...P,css:[E[m],V.css],className:Qe(V.className,w)})})});return v?.wrapElement?.(A,V)??A});return S.displayName=f.displayName||f.name,S},withContext:(f,m,v)=>{const x=he(f,{},v),k=C.forwardRef((y,S)=>{const{unstyled:b,...O}=y,T=i(),E=a()?.[m];return h.jsx(x,{...O,css:[!b&&m?T[m]:void 0,y.css],ref:S,className:Qe(y.className,E)})});return k.displayName=f.displayName||f.name,k},withRootProvider:d,useStyles:i,useClassNames:a}},Qf=he("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});Qf.displayName="AbsoluteCenter";const P2=e=>h.jsx(he.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:h.jsx("path",{d:"M20 6 9 17l-5-5"})}),N2=e=>h.jsx(he.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:h.jsx("path",{d:"m6 9 6 6 6-6"})}),A2=e=>h.jsx(he.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:h.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),Jf=e=>h.jsx(he.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:h.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),Zf=e=>h.jsx(he.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:h.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),eg=e=>h.jsx(he.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),[V2,R2]=Gr({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:""}),{withProvider:_2,withContext:Qa,useStyles:L2}=oo({key:"alert"}),F2=_2("div","root",{forwardAsChild:!0,wrapElement(e,t){return h.jsx(V2,{value:{status:t.status||"info"},children:e})}}),tg=Qa("div","title"),D2=Qa("div","description"),z2=Qa("div","content"),M2={info:Zf,warning:Jf,success:A2,error:Jf,neutral:Zf},$2=C.forwardRef(function(t,r){const n=R2(),o=L2(),i=typeof n.status=="string"?M2[n.status]:C.Fragment,{children:s=h.jsx(i,{}),...a}=t;return h.jsx(he.span,{ref:r,...a,css:[o.indicator,t.css],children:s})}),Ri=e=>e?"":void 0,W2=he("div",{base:{display:"inline-flex",gap:"var(--group-gap, 0.5rem)",isolation:"isolate",position:"relative","& [data-group-item]":{_focusVisible:{zIndex:1}}},variants:{orientation:{horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},attached:{true:{gap:"0!"}},grow:{true:{display:"flex","& > *":{flex:1}}},stacking:{"first-on-top":{"& > [data-group-item]":{zIndex:"calc(var(--group-count) - var(--group-index))"}},"last-on-top":{"& > [data-group-item]":{zIndex:"var(--group-index)"}}}},compoundVariants:[{orientation:"horizontal",attached:!0,css:{"& > *[data-first]":{borderEndRadius:"0!",marginEnd:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginEnd:"-1px"},"& > *[data-last]":{borderStartRadius:"0!"}}},{orientation:"vertical",attached:!0,css:{"& > *[data-first]":{borderBottomRadius:"0!",marginBottom:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginBottom:"-1px"},"& > *[data-last]":{borderTopRadius:"0!"}}}],defaultVariants:{orientation:"horizontal"}}),rg=C.memo(C.forwardRef(function(t,r){const{align:n="center",justify:o="flex-start",children:i,wrap:s,skip:a,...l}=t,c=C.useMemo(()=>{let u=C.Children.toArray(i).filter(C.isValidElement);if(u.length===1)return u;const d=u.filter(p=>!a?.(p)),g=d.length;return d.length===1?u:u.map(p=>{const f=p.props;if(a?.(p))return p;const m=d.indexOf(p);return C.cloneElement(p,{...f,"data-group-item":"","data-first":Ri(m===0),"data-last":Ri(m===g-1),"data-between":Ri(m>0&&mOn(n,t),[n,t]),i=U2(o),{loading:s,loadingText:a,children:l,spinner:c,spinnerPlacement:u,...d}=i.props;return h.jsx(he.button,{type:"button",ref:r,...d,"data-loading":Ri(s),disabled:s||d.disabled,className:Qe(i.className,o.className),css:[i.styles,o.css],children:!o.asChild&&s?h.jsx(og,{spinner:c,text:a,spinnerPlacement:u,children:l}):l})});Ce.displayName="Button";const kt=C.forwardRef(function(t,r){return h.jsx(Ce,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:r,...t})});kt.displayName="IconButton";const tr=z.forwardRef(function(t,r){return h.jsx(kt,{variant:"ghost","aria-label":"Close",ref:r,...t,children:t.children??h.jsx(eg,{})})});tr.displayName="CloseButton";const ig=he("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});ig.displayName="Center";const{withContext:G2}=Tt({key:"code"}),sg=G2("code");sg.displayName="Code";function q2(e){const{gap:t,direction:r}=e,n={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":Kh(r,o=>n[o])}}function K2(e){return C.Children.toArray(e).filter(t=>C.isValidElement(t))}const Za=C.forwardRef(function(t,r){const{direction:n="column",align:o,justify:i,gap:s="0.5rem",wrap:a,children:l,separator:c,className:u,...d}=t,g=C.useMemo(()=>q2({gap:s,direction:n}),[s,n]),p=C.useMemo(()=>C.isValidElement(c)?K2(l).map((f,m,v)=>{const x=typeof f.key<"u"?f.key:m,k=c,y=C.cloneElement(k,{css:[g,k.props.css]});return h.jsxs(C.Fragment,{children:[f,m===v.length-1?null:y]},x)}):l,[l,c,g]);return h.jsx(he.div,{ref:r,display:"flex",alignItems:o,justifyContent:i,flexDirection:n,flexWrap:a,gap:c?void 0:s,className:Qe("chakra-stack",u),...d,children:p})});Za.displayName="Stack";const{withRootProvider:ag,withContext:wt}=oo({key:"dialog"});ag(VS,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const Or=ag(AS,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});wt(Td,"trigger",{forwardAsChild:!0});const Ir=wt(Cd,"positioner",{forwardAsChild:!0}),Tr=wt(xd,"content",{forwardAsChild:!0});wt(Sd,"description",{forwardAsChild:!0});const Pr=wt(Id,"title",{forwardAsChild:!0}),Nr=wt(yd,"closeTrigger",{forwardAsChild:!0}),Ar=C.forwardRef(function(t,r){const n=Qt();return h.jsx(he.button,{...t,ref:r,onClick:()=>n.setOpen(!1)})}),Vr=wt(bd,"backdrop",{forwardAsChild:!0}),Rr=wt("div","body"),_r=wt("div","footer"),Lr=wt("div","header");function Y2(e){const{each:t,fallback:r,children:n}=e;return t?.length===0?r||null:t?.map(n)}const io=C.forwardRef(function(t,r){const{direction:n,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:c,inline:u,...d}=t;return h.jsx(he.div,{ref:r,...d,css:{display:u?"inline-flex":"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c,...t.css}})});io.displayName="Flex";const{withContext:X2}=Tt({key:"input"}),lg=X2(Nd),cg=he("div",{base:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",zIndex:2,color:"fg.muted",height:"full",fontSize:"sm",px:"3"},variants:{placement:{start:{insetInlineStart:"0"},end:{insetInlineEnd:"0"}}}}),{withContext:Q2}=Tt({key:"kbd"}),ug=Q2("kbd");ug.displayName="Kbd";const{withContext:J2}=Tt({key:"link"}),dg=J2("a");dg.displayName="Link";const{withProvider:Z2,withContext:hg}=oo({key:"list"}),fg=Z2("ul","root",{defaultProps:{role:"list"}}),gg=hg("li","item");hg("span","indicator");const{withProvider:pg,withContext:qe}=oo({key:"select"});pg(rk,"root",{forwardAsChild:!0});const eI=pg(ek,"root",{forwardAsChild:!0,defaultProps:{positioning:{sameWidth:!0}}}),tI=qe(Lh,"trigger",{forwardAsChild:!0}),rI=qe(Ih,"positioner",{forwardAsChild:!0}),nI=qe(vh,"content",{forwardAsChild:!0}),oI=qe(Fh,"valueText",{forwardAsChild:!0}),iI=qe(mh,"clearTrigger",{forwardAsChild:!0,defaultProps:{children:h.jsx(eg,{boxSize:"1em"})}});qe(Ch,"itemGroup",{forwardAsChild:!0}),qe(kh,"itemGroupLabel",{forwardAsChild:!0});const sI=qe(Sh,"item",{forwardAsChild:!0});qe(Eh,"itemText",{forwardAsChild:!0});const aI=qe(wh,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:h.jsx(P2,{})}}),lI=qe("div","indicatorGroup"),cI=qe(yh,"indicator",{forwardAsChild:!0,defaultProps:{children:h.jsx(N2,{})}}),uI=qe(bh,"control",{forwardAsChild:!0});qe(Oh,"label",{forwardAsChild:!0});const dI=zC,_i=C.forwardRef(function(t,r){return h.jsx(Za,{align:"center",...t,direction:"row",ref:r})});_i.displayName="HStack";const so=C.forwardRef(function(t,r){return h.jsx(Za,{align:"center",...t,direction:"column",ref:r})});so.displayName="VStack";const{StylesProvider:hI,ClassNamesProvider:fI,useRecipeResult:gI,withContext:Mt}=oo({key:"table"}),mg=C.forwardRef(function({native:t,...r},n){const{styles:o,props:i,classNames:s}=gI(r),a=C.useMemo(()=>t?{...o.root,"& thead":o.header,"& tbody":o.body,"& tfoot":o.footer,"& thead th":o.columnHeader,"& tr":o.row,"& td":o.cell,"& caption":o.caption}:o.root,[o,t]);return h.jsx(fI,{value:s,children:h.jsx(hI,{value:o,children:h.jsx(he.table,{ref:n,...i,css:[a,r.css],className:Qe(s?.root,r.className)})})})}),Li=Mt("tr","row");he("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const vg=Mt("thead","header");Mt("tfoot","footer");const Oe=Mt("th","columnHeader"),Ie=Mt("td","cell");Mt("caption","caption",{defaultProps:{captionSide:"bottom"}});const bg=Mt("tbody","body");Mt("colgroup"),Mt("col");const{withContext:pI}=Tt({key:"textarea"}),el=pI(Vd);el.displayName="Textarea";var mn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},mI={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},vI=class{#e=mI;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Fr=new vI;function bI(e){setTimeout(e,0)}var Dr=typeof window>"u"||"Deno"in globalThis;function ze(){}function yI(e,t){return typeof e=="function"?e(t):e}function tl(e){return typeof e=="number"&&e>=0&&e!==1/0}function yg(e,t){return Math.max(e+(t||0)-Date.now(),0)}function rr(e,t){return typeof e=="function"?e(t):e}function ot(e,t){return typeof e=="function"?e(t):e}function xg(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(n){if(t.queryHash!==rl(s,t.options))return!1}else if(!ao(t.queryKey,s))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Sg(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(zr(t.options.mutationKey)!==zr(i))return!1}else if(!ao(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function rl(e,t){return(t?.queryKeyHashFn||zr)(e)}function zr(e){return JSON.stringify(e,(t,r)=>nl(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function ao(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>ao(e[r],t[r])):!1}var xI=Object.prototype.hasOwnProperty;function Cg(e,t){if(e===t)return e;const r=kg(e)&&kg(t);if(!r&&!(nl(e)&&nl(t)))return t;const o=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),s=i.length,a=r?new Array(s):{};let l=0;for(let c=0;c{Fr.setTimeout(t,e)})}function ol(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Cg(e,t):t}function CI(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function kI(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var il=Symbol();function Eg(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===il?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Og(e,t){return typeof e=="function"?e(...t):!!e}var wI=class extends mn{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!Dr&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},sl=new wI;function al(){let e,t;const r=new Promise((o,i)=>{e=o,t=i});r.status="pending",r.catch(()=>{});function n(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{n({status:"fulfilled",value:o}),e(o)},r.reject=o=>{n({status:"rejected",reason:o}),t(o)},r}var EI=bI;function OI(){let e=[],t=0,r=a=>{a()},n=a=>{a()},o=EI;const i=a=>{t?e.push(a):o(()=>{r(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{n(()=>{a.forEach(l=>{r(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{o=a}}}var ke=OI(),II=class extends mn{#e=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!Dr&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},Di=new II;function TI(e){return Math.min(1e3*2**e,3e4)}function Ig(e){return(e??"online")==="online"?Di.isOnline():!0}var ll=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Tg(e){let t=!1,r=0,n;const o=al(),i=()=>o.status!=="pending",s=m=>{if(!i()){const v=new ll(m);g(v),e.onCancel?.(v)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>sl.isFocused()&&(e.networkMode==="always"||Di.isOnline())&&e.canRun(),u=()=>Ig(e.networkMode)&&e.canRun(),d=m=>{i()||(n?.(),o.resolve(m))},g=m=>{i()||(n?.(),o.reject(m))},p=()=>new Promise(m=>{n=v=>{(i()||c())&&m(v)},e.onPause?.()}).then(()=>{n=void 0,i()||e.onContinue?.()}),f=()=>{if(i())return;let m;const v=r===0?e.initialPromise:void 0;try{m=v??e.fn()}catch(x){m=Promise.reject(x)}Promise.resolve(m).then(d).catch(x=>{if(i())return;const k=e.retry??(Dr?0:3),y=e.retryDelay??TI,S=typeof y=="function"?y(r,x):y,b=k===!0||typeof k=="number"&&rc()?void 0:p()).then(()=>{t?g(x):f()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(n?.(),o),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?f():p().then(f),o)}}var Pg=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),tl(this.gcTime)&&(this.#e=Fr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Dr?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Fr.clearTimeout(this.#e),this.#e=void 0)}},PI=class extends Pg{#e;#t;#r;#o;#n;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#r=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Vg(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Vg(this.options);t.data!==void 0&&(this.setState(Ag(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const r=ol(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(ze).catch(ze):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>ot(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===il||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>rr(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!yg(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#a?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const a=this.observers.find(l=>l.options.queryFn);a&&this.setOptions(a.options)}const r=new AbortController,n=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(this.#a=!0,r.signal)})},o=()=>{const a=Eg(this.options,t),c=(()=>{const u={client:this.#o,queryKey:this.queryKey,meta:this.meta};return n(u),u})();return this.#a=!1,this.options.persister?this.options.persister(a,c,this):a(c)},s=(()=>{const a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:o};return n(a),a})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#i({type:"fetch",meta:s.fetchOptions?.meta}),this.#n=Tg({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:a=>{a instanceof ll&&a.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(a,l)=>{this.#i({type:"failed",failureCount:a,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const a=await this.#n.start();if(a===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(a),this.#r.config.onSuccess?.(a,this),this.#r.config.onSettled?.(a,this.state.error,this),a}catch(a){if(a instanceof ll){if(a.silent)return this.#n.promise;if(a.revert){if(this.state.data===void 0)throw a;return this.state.data}}throw this.#i({type:"error",error:a}),this.#r.config.onError?.(a,this),this.#r.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#i(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ng(r.data,this.options),fetchMeta:e.meta??null};case"success":const n={...r,...Ag(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case"error":const o=e.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),ke.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function Ng(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ig(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Ag(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Vg(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var NI=class extends mn{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#a=al(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#r=void 0;#o=void 0;#n;#s;#a;#i;#p;#h;#f;#c;#u;#l;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Rg(this.#t,this.options)?this.#d():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return cl(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cl(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ot(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#t.setOptions(this.options),t._defaulted&&!Fi(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const n=this.hasListeners();n&&_g(this.#t,r,this.options,t)&&this.#d(),this.updateResult(),n&&(this.#t!==r||ot(this.options.enabled,this.#t)!==ot(t.enabled,this.#t)||rr(this.options.staleTime,this.#t)!==rr(t.staleTime,this.#t))&&this.#m();const o=this.#v();n&&(this.#t!==r||ot(this.options.enabled,this.#t)!==ot(t.enabled,this.#t)||o!==this.#l)&&this.#b(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return VI(this,r)&&(this.#o=r,this.#s=this.options,this.#n=this.#t.state),r}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(r,n)=>(this.trackProp(n),t?.(n),n==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,n))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#d(e){this.#C();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(ze)),t}#m(){this.#x();const e=rr(this.options.staleTime,this.#t);if(Dr||this.#o.isStale||!tl(e))return;const r=yg(this.#o.dataUpdatedAt,e)+1;this.#c=Fr.setTimeout(()=>{this.#o.isStale||this.updateResult()},r)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#S(),this.#l=e,!(Dr||ot(this.options.enabled,this.#t)===!1||!tl(this.#l)||this.#l===0)&&(this.#u=Fr.setInterval(()=>{(this.options.refetchIntervalInBackground||sl.isFocused())&&this.#d()},this.#l))}#y(){this.#m(),this.#b(this.#v())}#x(){this.#c&&(Fr.clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(Fr.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const r=this.#t,n=this.options,o=this.#o,i=this.#n,s=this.#s,l=e!==r?e.state:this.#r,{state:c}=e;let u={...c},d=!1,g;if(t._optimisticResults){const V=this.hasListeners(),E=!V&&Rg(e,t),P=V&&_g(e,r,t,n);(E||P)&&(u={...u,...Ng(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:p,errorUpdatedAt:f,status:m}=u;g=u.data;let v=!1;if(t.placeholderData!==void 0&&g===void 0&&m==="pending"){let V;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(V=o.data,v=!0):V=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,V!==void 0&&(m="success",g=ol(o?.data,V,t),d=!0)}if(t.select&&g!==void 0&&!v)if(o&&g===i?.data&&t.select===this.#p)g=this.#h;else try{this.#p=t.select,g=t.select(g),g=ol(o?.data,g,t),this.#h=g,this.#i=null}catch(V){this.#i=V}this.#i&&(p=this.#i,g=this.#h,f=Date.now(),m="error");const x=u.fetchStatus==="fetching",k=m==="pending",y=m==="error",S=k&&x,b=g!==void 0,T={status:m,fetchStatus:u.fetchStatus,isPending:k,isSuccess:m==="success",isError:y,isInitialLoading:S,isLoading:S,data:g,dataUpdatedAt:u.dataUpdatedAt,error:p,errorUpdatedAt:f,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!k,isLoadingError:y&&!b,isPaused:u.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:y&&b,isStale:ul(e,t),refetch:this.refetch,promise:this.#a,isEnabled:ot(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const V=N=>{T.status==="error"?N.reject(T.error):T.data!==void 0&&N.resolve(T.data)},E=()=>{const N=this.#a=T.promise=al();V(N)},P=this.#a;switch(P.status){case"pending":e.queryHash===r.queryHash&&V(P);break;case"fulfilled":(T.status==="error"||T.data!==P.value)&&E();break;case"rejected":(T.status!=="error"||T.error!==P.reason)&&E();break}}return T}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#s=this.options,this.#n.data!==void 0&&(this.#f=this.#t),Fi(t,e))return;this.#o=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,o=typeof n=="function"?n():n;if(o==="all"||!o&&!this.#g.size)return!0;const i=new Set(o??this.#g);return this.options.throwOnError&&i.add("error"),Object.keys(this.#o).some(s=>{const a=s;return this.#o[a]!==e[a]&&i.has(a)})};this.#k({listeners:r()})}#C(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#k(e){ke.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function AI(e,t){return ot(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Rg(e,t){return AI(e,t)||e.state.data!==void 0&&cl(e,t,t.refetchOnMount)}function cl(e,t,r){if(ot(t.enabled,e)!==!1&&rr(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&ul(e,t)}return!1}function _g(e,t,r,n){return(e!==t||ot(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&ul(e,r)}function ul(e,t){return ot(t.enabled,e)!==!1&&e.isStaleByTime(rr(t.staleTime,e))}function VI(e,t){return!Fi(e.getCurrentResult(),t)}function Lg(e){return{onFetch:(t,r)=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let u=!1;const d=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},g=Eg(t.options,t.fetchOptions),p=async(f,m,v)=>{if(u)return Promise.reject();if(m==null&&f.pages.length)return Promise.resolve(f);const k=(()=>{const O={client:t.client,queryKey:t.queryKey,pageParam:m,direction:v?"backward":"forward",meta:t.options.meta};return d(O),O})(),y=await g(k),{maxPages:S}=t.options,b=v?kI:CI;return{pages:b(f.pages,y,S),pageParams:b(f.pageParams,m,S)}};if(o&&i.length){const f=o==="backward",m=f?RI:Fg,v={pages:i,pageParams:s},x=m(n,v);a=await p(v,x,f)}else{const f=e??i.length;do{const m=l===0?s[0]??n.initialPageParam:Fg(n,a);if(l>0&&m==null)break;a=await p(a,m),l++}while(lt.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function Fg(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function RI(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var _I=class extends Pg{#e;#t;#r;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#t=[],this.state=e.state||Dg(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#r.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#n({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=Tg({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(i,s)=>{this.#n({type:"failed",failureCount:i,error:s})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});const n=this.state.status==="pending",o=!this.#o.canStart();try{if(n)t();else{this.#n({type:"pending",variables:e,isPaused:o}),await this.#r.config.onMutate?.(e,this,r);const s=await this.options.onMutate?.(e,r);s!==this.state.context&&this.#n({type:"pending",context:s,variables:e,isPaused:o})}const i=await this.#o.start();return await this.#r.config.onSuccess?.(i,e,this.state.context,this,r),await this.options.onSuccess?.(i,e,this.state.context,r),await this.#r.config.onSettled?.(i,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(i,null,e,this.state.context,r),this.#n({type:"success",data:i}),i}catch(i){try{throw await this.#r.config.onError?.(i,e,this.state.context,this,r),await this.options.onError?.(i,e,this.state.context,r),await this.#r.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,i,e,this.state.context,r),i}finally{this.#n({type:"error",error:i})}}finally{this.#r.runNext(this)}}#n(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),ke.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function Dg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var LI=class extends mn{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#r=0}#e;#t;#r;build(e,t,r){const n=new _I({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#e.add(e);const t=zi(e);if(typeof t=="string"){const r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=zi(e);if(typeof t=="string"){const r=this.#t.get(t);if(r)if(r.length>1){const n=r.indexOf(e);n!==-1&&r.splice(n,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=zi(e);if(typeof t=="string"){const n=this.#t.get(t)?.find(o=>o.state.status==="pending");return!n||n===e}else return!0}runNext(e){const t=zi(e);return typeof t=="string"?this.#t.get(t)?.find(n=>n!==e&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ke.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>Sg(t,r))}findAll(e={}){return this.getAll().filter(t=>Sg(e,t))}notify(e){ke.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return ke.batch(()=>Promise.all(e.map(t=>t.continue().catch(ze))))}};function zi(e){return e.options.scope?.id}var FI=class extends mn{#e;#t=void 0;#r;#o;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),Fi(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&zr(t.mutationKey)!==zr(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#n(),this.#s(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#n(),this.#s()}mutate(e,t){return this.#o=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#n(){const e=this.#r?.state??Dg();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#s(e){ke.batch(()=>{if(this.#o&&this.hasListeners()){const t=this.#t.variables,r=this.#t.context,n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type==="success"?(this.#o.onSuccess?.(e.data,t,r,n),this.#o.onSettled?.(e.data,null,t,r,n)):e?.type==="error"&&(this.#o.onError?.(e.error,t,r,n),this.#o.onSettled?.(void 0,e.error,t,r,n))}this.listeners.forEach(t=>{t(this.#t)})})}},DI=class extends mn{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){const n=t.queryKey,o=t.queryHash??rl(n,t);let i=this.get(o);return i||(i=new PI({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ke.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>xg(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>xg(e,r)):t}notify(e){ke.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ke.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ke.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},zI=class{#e;#t;#r;#o;#n;#s;#a;#i;constructor(e={}){this.#e=e.queryCache||new DI,this.#t=e.mutationCache||new LI,this.#r=e.defaultOptions||{},this.#o=new Map,this.#n=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=sl.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Di.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#e.build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(rr(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(n.queryHash)?.state.data,s=yI(t,i);if(s!==void 0)return this.#e.build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return ke.batch(()=>this.#e.findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;ke.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#e;return ke.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=ke.batch(()=>this.#e.findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(ze).catch(ze)}invalidateQueries(e,t={}){return ke.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=ke.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,r);return r.throwOnError||(i=i.catch(ze)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(ze)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#e.build(this,t);return r.isStaleByTime(rr(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ze).catch(ze)}fetchInfiniteQuery(e){return e.behavior=Lg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ze).catch(ze)}ensureInfiniteQueryData(e){return e.behavior=Lg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Di.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#o.set(zr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],r={};return t.forEach(n=>{ao(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){this.#n.set(zr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#n.values()],r={};return t.forEach(n=>{ao(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=rl(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===il&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},zg=z.createContext(void 0),Mg=e=>{const t=z.useContext(zg);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},MI=({client:e,children:t})=>(z.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(zg.Provider,{value:e,children:t})),$g=z.createContext(!1),$I=()=>z.useContext($g);$g.Provider;function WI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var BI=z.createContext(WI()),HI=()=>z.useContext(BI),UI=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},jI=e=>{z.useEffect(()=>{e.clearReset()},[e])},GI=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&e.data===void 0||Og(r,[e.error,n])),qI=e=>{if(e.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...o)=>r(n(...o)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},KI=(e,t)=>e.isLoading&&e.isFetching&&!t,YI=(e,t)=>e?.suspense&&t.isPending,Wg=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function XI(e,t,r){const n=$I(),o=HI(),i=Mg(),s=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=n?"isRestoring":"optimistic",qI(s),UI(s,o),jI(o);const a=!i.getQueryCache().get(s.queryHash),[l]=z.useState(()=>new t(i,s)),c=l.getOptimisticResult(s),u=!n&&e.subscribed!==!1;if(z.useSyncExternalStore(z.useCallback(d=>{const g=u?l.subscribe(ke.batchCalls(d)):ze;return l.updateResult(),g},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),z.useEffect(()=>{l.setOptions(s)},[s,l]),YI(s,c))throw Wg(s,l,o);if(GI({result:c,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(s,c),s.experimental_prefetchInRender&&!Dr&&KI(c,n)&&(a?Wg(s,l,o):i.getQueryCache().get(s.queryHash)?.promise)?.catch(ze).finally(()=>{l.updateResult()}),s.notifyOnChangeProps?c:l.trackResult(c)}function Bg(e,t){return XI(e,NI)}function Mr(e,t){const r=Mg(),[n]=z.useState(()=>new FI(r,e));z.useEffect(()=>{n.setOptions(e)},[n,e]);const o=z.useSyncExternalStore(z.useCallback(s=>n.subscribe(ke.batchCalls(s)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=z.useCallback((s,a)=>{n.mutate(s,a).catch(ze)},[n]);if(o.error&&Og(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}class Hg{_fns;constructor(){this._fns=[]}eject(t){const r=this._fns.indexOf(t);r!==-1&&(this._fns=[...this._fns.slice(0,r),...this._fns.slice(r+1)])}use(t){this._fns=[...this._fns,t]}}const Et={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"0.1.0",WITH_CREDENTIALS:!1,interceptors:{request:new Hg,response:new Hg}};var QI=(e,t,r,n,o,i,s,a)=>{let l=document.documentElement,c=["light","dark"];function u(p){(Array.isArray(e)?e:[e]).forEach(f=>{let m=f==="class",v=m&&i?o.map(x=>i[x]||x):o;m?(l.classList.remove(...v),l.classList.add(i&&i[p]?i[p]:p)):l.setAttribute(f,p)}),d(p)}function d(p){a&&c.includes(p)&&(l.style.colorScheme=p)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let p=localStorage.getItem(t)||r,f=s&&p==="system"?g():p;u(f)}catch{}},Ug=["light","dark"],jg="(prefers-color-scheme: dark)",JI=typeof window>"u",Gg=z.createContext(void 0),ZI=e=>z.useContext(Gg)?z.createElement(z.Fragment,null,e.children):z.createElement(tT,{...e}),eT=["light","dark"],tT=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:o="theme",themes:i=eT,defaultTheme:s=r?"system":"light",attribute:a="data-theme",value:l,children:c,nonce:u,scriptProps:d})=>{let[g,p]=z.useState(()=>nT(o,s)),[f,m]=z.useState(()=>g==="system"?dl():g),v=l?Object.values(l):i,x=z.useCallback(b=>{let O=b;if(!O)return;b==="system"&&r&&(O=dl());let T=l?l[O]:O,V=t?oT(u):null,E=document.documentElement,P=N=>{N==="class"?(E.classList.remove(...v),T&&E.classList.add(T)):N.startsWith("data-")&&(T?E.setAttribute(N,T):E.removeAttribute(N))};if(Array.isArray(a)?a.forEach(P):P(a),n){let N=Ug.includes(s)?s:null,w=Ug.includes(O)?O:N;E.style.colorScheme=w}V?.()},[u]),k=z.useCallback(b=>{let O=typeof b=="function"?b(g):b;p(O);try{localStorage.setItem(o,O)}catch{}},[g]),y=z.useCallback(b=>{let O=dl(b);m(O),g==="system"&&r&&!e&&x("system")},[g,e]);z.useEffect(()=>{let b=window.matchMedia(jg);return b.addListener(y),y(b),()=>b.removeListener(y)},[y]),z.useEffect(()=>{let b=O=>{O.key===o&&(O.newValue?p(O.newValue):k(s))};return window.addEventListener("storage",b),()=>window.removeEventListener("storage",b)},[k]),z.useEffect(()=>{x(e??g)},[e,g]);let S=z.useMemo(()=>({theme:g,setTheme:k,forcedTheme:e,resolvedTheme:g==="system"?f:g,themes:r?[...i,"system"]:i,systemTheme:r?f:void 0}),[g,k,e,f,r,i]);return z.createElement(Gg.Provider,{value:S},z.createElement(rT,{forcedTheme:e,storageKey:o,attribute:a,enableSystem:r,enableColorScheme:n,defaultTheme:s,value:l,themes:i,nonce:u,scriptProps:d}),c)},rT=z.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:i,value:s,themes:a,nonce:l,scriptProps:c})=>{let u=JSON.stringify([r,t,i,e,a,s,n,o]).slice(1,-1);return z.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${QI.toString()})(${u})`}})}),nT=(e,t)=>{if(JI)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||t},oT=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},dl=e=>(e||(e=window.matchMedia(jg)),e.matches?"dark":"light");const iT=e=>h.jsx(ZI,{attribute:"class",disableTransitionOnChange:!0,...e}),sT="UiServiceWorker",aT=({queueNamePattern:e,state:t,workerNamePattern:r}={},n)=>[sT,{queueNamePattern:e,state:t,workerNamePattern:r}],lT="UiServiceJobs",cT=e=>[lT];function qg(e,t){return function(){return e.apply(t,arguments)}}const{toString:uT}=Object.prototype,{getPrototypeOf:hl}=Object,{iterator:Mi,toStringTag:Kg}=Symbol,$i=(e=>t=>{const r=uT.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ht=e=>(e=e.toLowerCase(),t=>$i(t)===e),Wi=e=>t=>typeof t===e,{isArray:vn}=Array,bn=Wi("undefined");function lo(e){return e!==null&&!bn(e)&&e.constructor!==null&&!bn(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Yg=ht("ArrayBuffer");function dT(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yg(e.buffer),t}const hT=Wi("string"),Ke=Wi("function"),Xg=Wi("number"),co=e=>e!==null&&typeof e=="object",fT=e=>e===!0||e===!1,Bi=e=>{if($i(e)!=="object")return!1;const t=hl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Kg in e)&&!(Mi in e)},gT=e=>{if(!co(e)||lo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},pT=ht("Date"),mT=ht("File"),vT=ht("Blob"),bT=ht("FileList"),yT=e=>co(e)&&Ke(e.pipe),xT=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ke(e.append)&&((t=$i(e))==="formdata"||t==="object"&&Ke(e.toString)&&e.toString()==="[object FormData]"))},ST=ht("URLSearchParams"),[CT,kT,wT,ET]=["ReadableStream","Request","Response","Headers"].map(ht),OT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function uo(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),vn(e))for(n=0,o=e.length;n0;)if(o=r[n],t===o.toLowerCase())return o;return null}const $r=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,Jg=e=>!bn(e)&&e!==$r;function fl(){const{caseless:e,skipUndefined:t}=Jg(this)&&this||{},r={},n=(o,i)=>{const s=e&&Qg(r,i)||i;Bi(r[s])&&Bi(o)?r[s]=fl(r[s],o):Bi(o)?r[s]=fl({},o):vn(o)?r[s]=o.slice():(!t||!bn(o))&&(r[s]=o)};for(let o=0,i=arguments.length;o(uo(t,(o,i)=>{r&&Ke(o)?e[i]=qg(o,r):e[i]=o},{allOwnKeys:n}),e),TT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),PT=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},NT=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&hl(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},AT=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},VT=e=>{if(!e)return null;if(vn(e))return e;let t=e.length;if(!Xg(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},RT=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hl(Uint8Array)),_T=(e,t)=>{const n=(e&&e[Mi]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},LT=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},FT=ht("HTMLFormElement"),DT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Zg=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),zT=ht("RegExp"),ep=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};uo(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},MT=e=>{ep(e,(t,r)=>{if(Ke(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ke(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},$T=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return vn(e)?n(e):n(String(e).split(t)),r},WT=()=>{},BT=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function HT(e){return!!(e&&Ke(e.append)&&e[Kg]==="FormData"&&e[Mi])}const UT=e=>{const t=new Array(10),r=(n,o)=>{if(co(n)){if(t.indexOf(n)>=0)return;if(lo(n))return n;if(!("toJSON"in n)){t[o]=n;const i=vn(n)?[]:{};return uo(n,(s,a)=>{const l=r(s,o+1);!bn(l)&&(i[a]=l)}),t[o]=void 0,i}}return n};return r(e,0)},jT=ht("AsyncFunction"),GT=e=>e&&(co(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),tp=((e,t)=>e?setImmediate:t?((r,n)=>($r.addEventListener("message",({source:o,data:i})=>{o===$r&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),$r.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ke($r.postMessage)),qT=typeof queueMicrotask<"u"?queueMicrotask.bind($r):typeof process<"u"&&process.nextTick||tp,I={isArray:vn,isArrayBuffer:Yg,isBuffer:lo,isFormData:xT,isArrayBufferView:dT,isString:hT,isNumber:Xg,isBoolean:fT,isObject:co,isPlainObject:Bi,isEmptyObject:gT,isReadableStream:CT,isRequest:kT,isResponse:wT,isHeaders:ET,isUndefined:bn,isDate:pT,isFile:mT,isBlob:vT,isRegExp:zT,isFunction:Ke,isStream:yT,isURLSearchParams:ST,isTypedArray:RT,isFileList:bT,forEach:uo,merge:fl,extend:IT,trim:OT,stripBOM:TT,inherits:PT,toFlatObject:NT,kindOf:$i,kindOfTest:ht,endsWith:AT,toArray:VT,forEachEntry:_T,matchAll:LT,isHTMLForm:FT,hasOwnProperty:Zg,hasOwnProp:Zg,reduceDescriptors:ep,freezeMethods:MT,toObjectSet:$T,toCamelCase:DT,noop:WT,toFiniteNumber:BT,findKey:Qg,global:$r,isContextDefined:Jg,isSpecCompliantForm:HT,toJSONObject:UT,isAsyncFn:jT,isThenable:GT,setImmediate:tp,asap:qT,isIterable:e=>e!=null&&Ke(e[Mi])};function j(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}I.inherits(j,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.status}}});const rp=j.prototype,np={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{np[e]={value:e}}),Object.defineProperties(j,np),Object.defineProperty(rp,"isAxiosError",{value:!0}),j.from=(e,t,r,n,o,i)=>{const s=Object.create(rp);I.toFlatObject(e,s,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const a=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return j.call(s,a,l,r,n,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const KT=null;function gl(e){return I.isPlainObject(e)||I.isArray(e)}function op(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function ip(e,t,r){return e?e.concat(t).map(function(o,i){return o=op(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function YT(e){return I.isArray(e)&&!e.some(gl)}const XT=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function Hi(e,t,r){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=I.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!I.isUndefined(v[m])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(o))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(I.isDate(f))return f.toISOString();if(I.isBoolean(f))return f.toString();if(!l&&I.isBlob(f))throw new j("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(f)||I.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,m,v){let x=f;if(f&&!v&&typeof f=="object"){if(I.endsWith(m,"{}"))m=n?m:m.slice(0,-2),f=JSON.stringify(f);else if(I.isArray(f)&&YT(f)||(I.isFileList(f)||I.endsWith(m,"[]"))&&(x=I.toArray(f)))return m=op(m),x.forEach(function(y,S){!(I.isUndefined(y)||y===null)&&t.append(s===!0?ip([m],S,i):s===null?m:m+"[]",c(y))}),!1}return gl(f)?!0:(t.append(ip(v,m,i),c(f)),!1)}const d=[],g=Object.assign(XT,{defaultVisitor:u,convertValue:c,isVisitable:gl});function p(f,m){if(!I.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(f),I.forEach(f,function(x,k){(!(I.isUndefined(x)||x===null)&&o.call(t,x,I.isString(k)?k.trim():k,m,g))===!0&&p(x,m?m.concat(k):[k])}),d.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return p(e),t}function sp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function pl(e,t){this._pairs=[],e&&Hi(e,this,t)}const ap=pl.prototype;ap.append=function(t,r){this._pairs.push([t,r])},ap.toString=function(t){const r=t?function(n){return t.call(this,n,sp)}:sp;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function QT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function lp(e,t,r){if(!t)return e;const n=r&&r.encode||QT;I.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=I.isURLSearchParams(t)?t.toString():new pl(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class cp{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(n){n!==null&&t(n)})}}const up={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},JT={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:pl,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ml=typeof window<"u"&&typeof document<"u",vl=typeof navigator=="object"&&navigator||void 0,ZT=ml&&(!vl||["ReactNative","NativeScript","NS"].indexOf(vl.product)<0),eP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tP=ml&&window.location.href||"http://localhost",Le={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ml,hasStandardBrowserEnv:ZT,hasStandardBrowserWebWorkerEnv:eP,navigator:vl,origin:tP},Symbol.toStringTag,{value:"Module"})),...JT};function rP(e,t){return Hi(e,new Le.classes.URLSearchParams,{visitor:function(r,n,o,i){return Le.isNode&&I.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function nP(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function oP(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n=r.length;return s=!s&&I.isArray(o)?o.length:s,l?(I.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!I.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&I.isArray(o[s])&&(o[s]=oP(o[s])),!a)}if(I.isFormData(e)&&I.isFunction(e.entries)){const r={};return I.forEachEntry(e,(n,o)=>{t(nP(n),o,r,0)}),r}return null}function iP(e,t,r){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ho={transitional:up,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=I.isObject(t);if(i&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return o?JSON.stringify(dp(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return rP(t,this.formSerializer).toString();if((a=I.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Hi(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),iP(t)):t}],transformResponse:[function(t){const r=this.transitional||ho.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?j.from(a,j.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Le.classes.FormData,Blob:Le.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{ho.headers[e]={}});const sP=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),aP=e=>{const t={};let r,n,o;return e&&e.split(`
+`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&sP[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},hp=Symbol("internals");function fo(e){return e&&String(e).trim().toLowerCase()}function Ui(e){return e===!1||e==null?e:I.isArray(e)?e.map(Ui):String(e)}function lP(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const cP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function bl(e,t,r,n,o){if(I.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!I.isString(t)){if(I.isString(n))return t.indexOf(n)!==-1;if(I.isRegExp(n))return n.test(t)}}function uP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function dP(e,t){const r=I.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}let Ye=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(a,l,c){const u=fo(l);if(!u)throw new Error("header name must be a non-empty string");const d=I.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=Ui(a))}const s=(a,l)=>I.forEach(a,(c,u)=>i(c,u,l));if(I.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(I.isString(t)&&(t=t.trim())&&!cP(t))s(aP(t),r);else if(I.isObject(t)&&I.isIterable(t)){let a={},l,c;for(const u of t){if(!I.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?I.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}s(a,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=fo(t),t){const n=I.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return lP(o);if(I.isFunction(r))return r.call(this,o,n);if(I.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=fo(t),t){const n=I.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||bl(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=fo(s),s){const a=I.findKey(n,s);a&&(!r||bl(n,n[a],a,r))&&(delete n[a],o=!0)}}return I.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||bl(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return I.forEach(this,(o,i)=>{const s=I.findKey(n,i);if(s){r[s]=Ui(o),delete r[i];return}const a=t?uP(i):String(i).trim();a!==i&&delete r[i],r[a]=Ui(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return I.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&I.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
+`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[hp]=this[hp]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=fo(s);n[a]||(dP(o,s),n[a]=!0)}return I.isArray(t)?t.forEach(i):i(t),this}};Ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),I.reduceDescriptors(Ye.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),I.freezeMethods(Ye);function yl(e,t){const r=this||ho,n=t||r,o=Ye.from(n.headers);let i=n.data;return I.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function fp(e){return!!(e&&e.__CANCEL__)}function yn(e,t,r){j.call(this,e??"canceled",j.ERR_CANCELED,t,r),this.name="CanceledError"}I.inherits(yn,j,{__CANCEL__:!0});function gp(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new j("Request failed with status code "+r.status,[j.ERR_BAD_REQUEST,j.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function hP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fP(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[i];s||(s=c),r[o]=l,n[o]=c;let d=i,g=0;for(;d!==o;)g+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s{r=u,o=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-r;d>=n?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},n-d)))},()=>o&&s(o)]}const ji=(e,t,r=3)=>{let n=0;const o=fP(50,250);return gP(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-n,c=o(l),u=s<=a;n=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},r)},pp=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},mp=e=>(...t)=>I.asap(()=>e(...t)),pP=Le.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Le.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Le.origin),Le.navigator&&/(msie|trident)/i.test(Le.navigator.userAgent)):()=>!0,mP=Le.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];I.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),I.isString(n)&&a.push(`path=${n}`),I.isString(o)&&a.push(`domain=${o}`),i===!0&&a.push("secure"),I.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function vP(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bP(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vp(e,t,r){let n=!vP(t);return e&&(n||r==!1)?bP(e,t):t}const bp=e=>e instanceof Ye?{...e}:e;function Wr(e,t){t=t||{};const r={};function n(c,u,d,g){return I.isPlainObject(c)&&I.isPlainObject(u)?I.merge.call({caseless:g},c,u):I.isPlainObject(u)?I.merge({},u):I.isArray(u)?u.slice():u}function o(c,u,d,g){if(I.isUndefined(u)){if(!I.isUndefined(c))return n(void 0,c,d,g)}else return n(c,u,d,g)}function i(c,u){if(!I.isUndefined(u))return n(void 0,u)}function s(c,u){if(I.isUndefined(u)){if(!I.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function a(c,u,d){if(d in t)return n(c,u);if(d in e)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u,d)=>o(bp(c),bp(u),d,!0)};return I.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||o,g=d(e[u],t[u],u);I.isUndefined(g)&&d!==a||(r[u]=g)}),r}const yp=e=>{const t=Wr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=Ye.from(s),t.url=lp(vp(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),I.isFormData(r)){if(Le.hasStandardBrowserEnv||Le.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(I.isFunction(r.getHeaders)){const l=r.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&s.set(u,d)})}}if(Le.hasStandardBrowserEnv&&(n&&I.isFunction(n)&&(n=n(t)),n||n!==!1&&pP(t.url))){const l=o&&i&&mP.read(i);l&&s.set(o,l)}return t},yP=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=yp(e);let i=o.data;const s=Ye.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,d,g,p,f;function m(){p&&p(),f&&f(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function x(){if(!v)return;const y=Ye.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:y,config:e,request:v};gp(function(T){r(T),m()},function(T){n(T),m()},b),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(n(new j("Request aborted",j.ECONNABORTED,e,v)),v=null)},v.onerror=function(S){const b=S&&S.message?S.message:"Network Error",O=new j(b,j.ERR_NETWORK,e,v);O.event=S||null,n(O),v=null},v.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const b=o.transitional||up;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),n(new j(S,b.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,e,v)),v=null},i===void 0&&s.setContentType(null),"setRequestHeader"in v&&I.forEach(s.toJSON(),function(S,b){v.setRequestHeader(b,S)}),I.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),c&&([g,f]=ji(c,!0),v.addEventListener("progress",g)),l&&v.upload&&([d,p]=ji(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(u=y=>{v&&(n(!y||y.type?new yn(null,e,v):y),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const k=hP(o.url);if(k&&Le.protocols.indexOf(k)===-1){n(new j("Unsupported protocol "+k+":",j.ERR_BAD_REQUEST,e));return}v.send(i||null)})},xP=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;n.abort(u instanceof j?u:new yn(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new j(`timeout ${t} of ms exceeded`,j.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>I.asap(a),l}},SP=function*(e,t){let r=e.byteLength;if(r{const o=CP(e,t);let i=0,s,a=l=>{s||(s=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let d=u.byteLength;if(r){let g=i+=d;r(g)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Sp=64*1024,{isFunction:Gi}=I,wP=(({Request:e,Response:t})=>({Request:e,Response:t}))(I.global),{ReadableStream:Cp,TextEncoder:kp}=I.global,wp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},EP=e=>{e=I.merge.call({skipUndefined:!0},wP,e);const{fetch:t,Request:r,Response:n}=e,o=t?Gi(t):typeof fetch=="function",i=Gi(r),s=Gi(n);if(!o)return!1;const a=o&&Gi(Cp),l=o&&(typeof kp=="function"?(f=>m=>f.encode(m))(new kp):async f=>new Uint8Array(await new r(f).arrayBuffer())),c=i&&a&&wp(()=>{let f=!1;const m=new r(Le.origin,{body:new Cp,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!m}),u=s&&a&&wp(()=>I.isReadableStream(new n("").body)),d={stream:u&&(f=>f.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!d[f]&&(d[f]=(m,v)=>{let x=m&&m[f];if(x)return x.call(m);throw new j(`Response type '${f}' is not supported`,j.ERR_NOT_SUPPORT,v)})});const g=async f=>{if(f==null)return 0;if(I.isBlob(f))return f.size;if(I.isSpecCompliantForm(f))return(await new r(Le.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(I.isArrayBufferView(f)||I.isArrayBuffer(f))return f.byteLength;if(I.isURLSearchParams(f)&&(f=f+""),I.isString(f))return(await l(f)).byteLength},p=async(f,m)=>{const v=I.toFiniteNumber(f.getContentLength());return v??g(m)};return async f=>{let{url:m,method:v,data:x,signal:k,cancelToken:y,timeout:S,onDownloadProgress:b,onUploadProgress:O,responseType:T,headers:V,withCredentials:E="same-origin",fetchOptions:P}=yp(f),N=t||fetch;T=T?(T+"").toLowerCase():"text";let w=xP([k,y&&y.toAbortSignal()],S),A=null;const L=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let D;try{if(O&&c&&v!=="get"&&v!=="head"&&(D=await p(V,x))!==0){let Q=new r(m,{method:"POST",body:x,duplex:"half"}),ye;if(I.isFormData(x)&&(ye=Q.headers.get("content-type"))&&V.setContentType(ye),Q.body){const[it,It]=pp(D,ji(mp(O)));x=xp(Q.body,Sp,it,It)}}I.isString(E)||(E=E?"include":"omit");const U=i&&"credentials"in r.prototype,Z={...P,signal:w,method:v.toUpperCase(),headers:V.normalize().toJSON(),body:x,duplex:"half",credentials:U?E:void 0};A=i&&new r(m,Z);let ne=await(i?N(A,P):N(m,Z));const H=u&&(T==="stream"||T==="response");if(u&&(b||H&&L)){const Q={};["status","statusText","headers"].forEach(Ht=>{Q[Ht]=ne[Ht]});const ye=I.toFiniteNumber(ne.headers.get("content-length")),[it,It]=b&&pp(ye,ji(mp(b),!0))||[];ne=new n(xp(ne.body,Sp,it,()=>{It&&It(),L&&L()}),Q)}T=T||"text";let q=await d[I.findKey(d,T)||"text"](ne,f);return!H&&L&&L(),await new Promise((Q,ye)=>{gp(Q,ye,{data:q,headers:Ye.from(ne.headers),status:ne.status,statusText:ne.statusText,config:f,request:A})})}catch(U){throw L&&L(),U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new j("Network Error",j.ERR_NETWORK,f,A),{cause:U.cause||U}):j.from(U,U&&U.code,f,A)}}},OP=new Map,Ep=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s=i.length,a=s,l,c,u=OP;for(;a--;)l=i[a],c=u.get(l),c===void 0&&u.set(l,c=a?new Map:EP(t)),u=c;return c};Ep();const xl={http:KT,xhr:yP,fetch:{get:Ep}};I.forEach(xl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Op=e=>`- ${e}`,IP=e=>I.isFunction(e)||e===null||e===!1;function TP(e,t){e=I.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?s.length>1?`since :
`+s.map(Op).join(`
-`):" "+Op(s[0]):"as no adapter specified";throw new j("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const Ip={getAdapter:IP,adapters:xl};function Sl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yn(null,e)}function Tp(e){return Sl(e),e.headers=Ye.from(e.headers),e.data=yl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ip.getAdapter(e.adapter||ho.adapter,e)(e).then(function(n){return Sl(e),n.data=yl.call(e,e.transformResponse,n),n.headers=Ye.from(n.headers),n},function(n){return fp(n)||(Sl(e),n&&n.response&&(n.response.data=yl.call(e,e.transformResponse,n.response),n.response.headers=Ye.from(n.response.headers))),Promise.reject(n)})}const Pp="1.13.2",qi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Np={};qi.transitional=function(t,r,n){function o(i,s){return"[Axios v"+Pp+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(t===!1)throw new j(o(s," has been removed"+(r?" in "+r:"")),j.ERR_DEPRECATED);return r&&!Np[s]&&(Np[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,a):!0}},qi.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function TP(e,t,r){if(typeof e!="object")throw new j("options must be an object",j.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new j("option "+i+" must be "+l,j.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new j("Unknown option "+i,j.ERR_BAD_OPTION)}}const Ki={assertOptions:TP,validators:qi},Ot=Ki.validators;let Br=class{constructor(t){this.defaults=t||{},this.interceptors={request:new cp,response:new cp}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
-`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Wr(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Ki.assertOptions(n,{silentJSONParsing:Ot.transitional(Ot.boolean),forcedJSONParsing:Ot.transitional(Ot.boolean),clarifyTimeoutError:Ot.transitional(Ot.boolean)},!1),o!=null&&(I.isFunction(o)?r.paramsSerializer={serialize:o}:Ki.assertOptions(o,{encode:Ot.function,serialize:Ot.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ki.assertOptions(r,{baseUrl:Ot.spelling("baseURL"),withXsrfToken:Ot.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&I.merge(i.common,i[r.method]);i&&I.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),r.headers=Ye.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,g;if(!l){const p=[Tp.bind(this),void 0];for(p.unshift(...a),p.push(...c),g=p.length,u=Promise.resolve(r);d{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,a){n.reason||(n.reason=new yn(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new gm(function(o){t=o}),cancel:t}}};function NP(e){return function(r){return e.apply(null,r)}}function AP(e){return I.isObject(e)&&e.isAxiosError===!0}const Cl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Cl).forEach(([e,t])=>{Cl[t]=e});function Ap(e){const t=new Br(e),r=qg(Br.prototype.request,t);return I.extend(r,Br.prototype,t,{allOwnKeys:!0}),I.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Ap(Wr(e,o))},r}const ge=Ap(ho);ge.Axios=Br,ge.CanceledError=yn,ge.CancelToken=PP,ge.isCancel=fp,ge.VERSION=Pp,ge.toFormData=Hi,ge.AxiosError=j,ge.Cancel=ge.CanceledError,ge.all=function(t){return Promise.all(t)},ge.spread=NP,ge.isAxiosError=AP,ge.mergeConfig=Wr,ge.AxiosHeaders=Ye,ge.formToJSON=e=>dp(I.isHTMLForm(e)?new FormData(e):e),ge.getAdapter=Ip.getAdapter,ge.HttpStatusCode=Cl,ge.default=ge;const{Axios:Q5,AxiosError:J5,CanceledError:Z5,isCancel:eA,CancelToken:tA,VERSION:rA,all:nA,Cancel:oA,isAxiosError:iA,spread:sA,toFormData:aA,AxiosHeaders:lA,HttpStatusCode:cA,formToJSON:uA,getAdapter:dA,mergeConfig:hA}=ge;class Vp extends Error{url;status;statusText;body;request;constructor(t,r,n){super(n),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=t}}class VP extends Error{constructor(t){super(t),this.name="CancelError"}get isCancelled(){return!0}}class RP{_isResolved;_isRejected;_isCancelled;cancelHandlers;promise;_resolve;_reject;constructor(t){this._isResolved=!1,this._isRejected=!1,this._isCancelled=!1,this.cancelHandlers=[],this.promise=new Promise((r,n)=>{this._resolve=r,this._reject=n;const o=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isResolved=!0,this._resolve&&this._resolve(a))},i=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isRejected=!0,this._reject&&this._reject(a))},s=a=>{this._isResolved||this._isRejected||this._isCancelled||this.cancelHandlers.push(a)};return Object.defineProperty(s,"isResolved",{get:()=>this._isResolved}),Object.defineProperty(s,"isRejected",{get:()=>this._isRejected}),Object.defineProperty(s,"isCancelled",{get:()=>this._isCancelled}),t(o,i,s)})}get[Symbol.toStringTag](){return"Cancellable Promise"}then(t,r){return this.promise.then(t,r)}catch(t){return this.promise.catch(t)}finally(t){return this.promise.finally(t)}cancel(){if(!(this._isResolved||this._isRejected||this._isCancelled)){if(this._isCancelled=!0,this.cancelHandlers.length)try{for(const t of this.cancelHandlers)t()}catch(t){console.warn("Cancellation threw an error",t);return}this.cancelHandlers.length=0,this._reject&&this._reject(new VP("Request aborted"))}}get isCancelled(){return this._isCancelled}}const Yi=e=>typeof e=="string",kl=e=>Yi(e)&&e!=="",Rp=e=>e instanceof Blob,_P=e=>e instanceof FormData,_p=e=>e>=200&&e<300,LP=e=>{try{return btoa(e)}catch{return Buffer.from(e).toString("base64")}},FP=e=>{const t=[],r=(o,i)=>{t.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(i))}`)},n=(o,i)=>{i!=null&&(i instanceof Date?r(o,i.toISOString()):Array.isArray(i)?i.forEach(s=>n(o,s)):typeof i=="object"?Object.entries(i).forEach(([s,a])=>n(`${o}[${s}]`,a)):r(o,i))};return Object.entries(e).forEach(([o,i])=>n(o,i)),t.length?`?${t.join("&")}`:""},zP=(e,t)=>{const r=encodeURI,n=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(i,s)=>t.path?.hasOwnProperty(s)?r(String(t.path[s])):i),o=e.BASE+n;return t.query?o+FP(t.query):o},DP=e=>{if(e.formData){const t=new FormData,r=(n,o)=>{Yi(o)||Rp(o)?t.append(n,o):t.append(n,JSON.stringify(o))};return Object.entries(e.formData).filter(([,n])=>n!=null).forEach(([n,o])=>{Array.isArray(o)?o.forEach(i=>r(n,i)):r(n,o)}),t}},Xi=async(e,t)=>t,MP=async(e,t)=>{const[r,n,o,i]=await Promise.all([Xi(t,e.TOKEN),Xi(t,e.USERNAME),Xi(t,e.PASSWORD),Xi(t,e.HEADERS)]),s=Object.entries({Accept:"application/json",...i,...t.headers}).filter(([,a])=>a!=null).reduce((a,[l,c])=>({...a,[l]:String(c)}),{});if(kl(r)&&(s.Authorization=`Bearer ${r}`),kl(n)&&kl(o)){const a=LP(`${n}:${o}`);s.Authorization=`Basic ${a}`}return t.body!==void 0?t.mediaType?s["Content-Type"]=t.mediaType:Rp(t.body)?s["Content-Type"]=t.body.type||"application/octet-stream":Yi(t.body)?s["Content-Type"]="text/plain":_P(t.body)||(s["Content-Type"]="application/json"):t.formData!==void 0&&t.mediaType&&(s["Content-Type"]=t.mediaType),s},$P=e=>{if(e.body)return e.body},WP=async(e,t,r,n,o,i,s,a)=>{const l=new AbortController;let c={data:n??o,headers:i,method:t.method,signal:l.signal,url:r,withCredentials:e.WITH_CREDENTIALS};s(()=>l.abort());for(const u of e.interceptors.request._fns)c=await u(c);try{return await a.request(c)}catch(u){const d=u;if(d.response)return d.response;throw u}},BP=(e,t)=>{if(t){const r=e.headers[t];if(Yi(r))return r}},HP=e=>{if(e.status!==204)return e.data},UP=(e,t)=>{const n={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required",...e.errors}[t.status];if(n)throw new Vp(e,t,n);if(!t.ok){const o=t.status??"unknown",i=t.statusText??"unknown",s=(()=>{try{return JSON.stringify(t.body,null,2)}catch{return}})();throw new Vp(e,t,`Generic Error: status: ${o}; status text: ${i}; body: ${s}`)}},$t=(e,t,r=ge)=>new RP(async(n,o,i)=>{try{const s=zP(e,t),a=DP(t),l=$P(t),c=await MP(e,t);if(!i.isCancelled){let u=await WP(e,t,s,l,a,c,i,r);for(const m of e.interceptors.response._fns)u=await m(u);const d=HP(u),g=BP(u,t.responseHeader);let f=d;t.responseTransformer&&_p(u.status)&&(f=await t.responseTransformer(d));const p={url:s,ok:_p(u.status),status:u.status,statusText:u.statusText,body:g??f};UP(t,p),n(p.body)}}catch(s){o(s)}});class Wt{static worker(t={}){return $t(Et,{method:"GET",url:"/edge_worker/ui/worker",query:{worker_name_pattern:t.workerNamePattern,queue_name_pattern:t.queueNamePattern,state:t.state},errors:{422:"Validation Error"}})}static jobs(){return $t(Et,{method:"GET",url:"/edge_worker/ui/jobs"})}static requestWorkerMaintenance(t){return $t(Et,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},body:t.requestBody,mediaType:"application/json",errors:{422:"Validation Error"}})}static updateWorkerMaintenance(t){return $t(Et,{method:"PATCH",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},body:t.requestBody,mediaType:"application/json",errors:{422:"Validation Error"}})}static exitWorkerMaintenance(t){return $t(Et,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static requestWorkerShutdown(t){return $t(Et,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/shutdown",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static deleteWorker(t){return $t(Et,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static addWorkerQueue(t){return $t(Et,{method:"PUT",url:"/edge_worker/ui/worker/{worker_name}/queues/{queue_name}",path:{worker_name:t.workerName,queue_name:t.queueName},errors:{422:"Validation Error"}})}static removeWorkerQueue(t){return $t(Et,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/queues/{queue_name}",path:{worker_name:t.workerName,queue_name:t.queueName},errors:{422:"Validation Error"}})}}const jP=({queueNamePattern:e,state:t,workerNamePattern:r}={},n,o)=>Bg({queryKey:sT({queueNamePattern:e,state:t,workerNamePattern:r}),queryFn:()=>Wt.worker({queueNamePattern:e,state:t,workerNamePattern:r}),...o}),GP=(e,t)=>Bg({queryKey:lT(),queryFn:()=>Wt.jobs(),...t}),qP=e=>Mr({mutationFn:({requestBody:t,workerName:r})=>Wt.requestWorkerMaintenance({requestBody:t,workerName:r}),...e}),KP=e=>Mr({mutationFn:({workerName:t})=>Wt.requestWorkerShutdown({workerName:t}),...e}),YP=e=>Mr({mutationFn:({queueName:t,workerName:r})=>Wt.addWorkerQueue({queueName:t,workerName:r}),...e}),XP=e=>Mr({mutationFn:({requestBody:t,workerName:r})=>Wt.updateWorkerMaintenance({requestBody:t,workerName:r}),...e}),QP=e=>Mr({mutationFn:({workerName:t})=>Wt.exitWorkerMaintenance({workerName:t}),...e}),JP=e=>Mr({mutationFn:({workerName:t})=>Wt.deleteWorker({workerName:t}),...e}),ZP=e=>Mr({mutationFn:({queueName:t,workerName:r})=>Wt.removeWorkerQueue({queueName:t,workerName:r}),...e});function Qi(e){const t=new Date(e);if(!Number.isNaN(t.valueOf()))return t;const r=String(e).match(/\d+/g);if(r==null||r.length<=2)return t;{const[n,o,...i]=r.map(l=>parseInt(l)),s=[n,o-1,...i];return new Date(Date.UTC(...s))}}const go=(e,t,r)=>{const n=e!==1?t+"s":t;return e+" "+n+" "+r};function wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var t=1;tDate.now();function Zi({date:e,formatter:t,component:r="time",live:n=!0,minPeriod:o=0,maxPeriod:i=Ji,title:s,now:a=eN,...l}){const[c,u]=C.useState(a());C.useEffect(()=>{if(!n)return;const T=(()=>{const V=Qi(e).valueOf();if(!V)return console.warn("[react-timeago] Invalid Date provided"),0;const E=Math.round(Math.abs(c-V)/1e3),P=E{u(a())},N):0})();return()=>{T&&clearTimeout(T)}},[e,n,i,o,a,c]),C.useEffect(()=>{u(a())},[e]);const d=r,g=Qi(e).valueOf();if(!g)return null;const f=Math.round(Math.abs(c-g)/1e3),p=g"u"?typeof e=="string"?e:Qi(e).toISOString().substring(0,16).replace("T"," "):s,k=d==="time"?{...l,dateTime:Qi(e).toISOString()}:l,y=(O=O,T=T,V=V,E=g,P=go,N=N)=>go(O,T,V),S=t||go;let b;try{b=S(m,v,p,g,y,a),b||(b=go(m,v,p,g,y,a))}catch(O){console.error("[react-timeago] Formatter threw an error:",O),b=go(m,v,p)}return D.createElement(d,wl({},k,{title:x}),b)}var zp={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Dp=C.createContext&&C.createContext(zp),tN=["attr","size","title"];function rN(e,t){if(e==null)return{};var r=nN(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function es(){return es=Object.assign?Object.assign.bind():function(e){for(var t=1;tC.createElement(t.tag,ts({key:r},t.attr),$p(t.child)))}function re(e){return t=>C.createElement(aN,es({attr:ts({},e.attr)},t),$p(e.child))}function aN(e){var t=r=>{var{attr:n,size:o,title:i}=e,s=rN(e,tN),a=o||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),C.createElement("svg",es({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:l,style:ts(ts({color:e.color||r.color},r.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&C.createElement("title",null,i),e.children)};return Dp!==void 0?C.createElement(Dp.Consumer,null,r=>t(r)):t(zp)}function lN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 10v4h4"},child:[]},{tag:"path",attr:{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5"},child:[]},{tag:"path",attr:{d:"M16 2v4"},child:[]},{tag:"path",attr:{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5"},child:[]},{tag:"path",attr:{d:"M21 22v-4h-4"},child:[]},{tag:"path",attr:{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3"},child:[]},{tag:"path",attr:{d:"M3 10h4"},child:[]},{tag:"path",attr:{d:"M8 2v4"},child:[]}]})(e)}function cN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}function Wp(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.1 2.182a10 10 0 0 1 3.8 0"},child:[]},{tag:"path",attr:{d:"M13.9 21.818a10 10 0 0 1-3.8 0"},child:[]},{tag:"path",attr:{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"},child:[]},{tag:"path",attr:{d:"M2.182 13.9a10 10 0 0 1 0-3.8"},child:[]},{tag:"path",attr:{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"},child:[]},{tag:"path",attr:{d:"M21.818 10.1a10 10 0 0 1 0 3.8"},child:[]},{tag:"path",attr:{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"},child:[]},{tag:"path",attr:{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"},child:[]}]})(e)}function uN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 2a10 10 0 0 1 7.38 16.75"},child:[]},{tag:"path",attr:{d:"m16 12-4-4-4 4"},child:[]},{tag:"path",attr:{d:"M12 16V8"},child:[]},{tag:"path",attr:{d:"M2.5 8.875a10 10 0 0 0-.5 3"},child:[]},{tag:"path",attr:{d:"M2.83 16a10 10 0 0 0 2.43 3.4"},child:[]},{tag:"path",attr:{d:"M4.636 5.235a10 10 0 0 1 .891-.857"},child:[]},{tag:"path",attr:{d:"M8.644 21.42a10 10 0 0 0 7.631-.38"},child:[]}]})(e)}function dN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h6v6"},child:[]},{tag:"path",attr:{d:"M10 14 21 3"},child:[]},{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]}]})(e)}function Bp(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 12H3"},child:[]},{tag:"path",attr:{d:"M16 6H3"},child:[]},{tag:"path",attr:{d:"M16 18H3"},child:[]},{tag:"path",attr:{d:"M21 12h-6"},child:[]}]})(e)}function Hp(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 12H3"},child:[]},{tag:"path",attr:{d:"M16 6H3"},child:[]},{tag:"path",attr:{d:"M16 18H3"},child:[]},{tag:"path",attr:{d:"M18 9v6"},child:[]},{tag:"path",attr:{d:"M21 12h-6"},child:[]}]})(e)}function hN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m15 14 5-5-5-5"},child:[]},{tag:"path",attr:{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"},child:[]}]})(e)}function fN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 6 6 18"},child:[]},{tag:"path",attr:{d:"m6 6 12 12"},child:[]}]})(e)}const El=C.forwardRef((e,t)=>h.jsx(kt,{"aria-label":"Close",ref:t,variant:"ghost",...e,children:e.children??h.jsx(fN,{})})),gN=C.forwardRef((e,t)=>{const{children:r,closable:n,endElement:o,icon:i,onClose:s,startElement:a,title:l,...c}=e;return h.jsxs(L2,{ref:t,...c,alignItems:"center",children:[a??h.jsx(M2,{children:i}),r?h.jsxs(z2,{children:[h.jsx(tg,{children:l}),h.jsx(F2,{children:r})]}):h.jsx(tg,{flex:"1",children:l}),o,n?h.jsx(El,{alignSelf:"flex-start",insetEnd:"-2",onClick:s,pos:"relative",size:"sm",top:"-2"}):void 0]})}),pN=kk({pauseOnPageIdle:!0,placement:"bottom-end"}),mN=C.forwardRef((e,t)=>{const{children:r,endElement:n,endElementProps:o,startElement:i,startElementProps:s,...a}=e;return h.jsxs(rg,{ref:t,...a,children:[i?h.jsx(cg,{pointerEvents:"none",...s,children:i}):void 0,C.cloneElement(r,{...i&&{ps:"calc(var(--input-height) - 6px)"},...n&&{pe:"calc(var(--input-height) - 6px)"},...r.props}),n?h.jsx(cg,{placement:"end",...o,children:n}):void 0]})}),vN=({block:e="start",inline:t="nearest"})=>{const[r,n]=C.useState(()=>window.location.hash);return C.useEffect(()=>{const o=()=>n(window.location.hash);return window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]),C.useEffect(()=>{if(r){const o=document.getElementById(r.slice(1));o&&o.scrollIntoView({behavior:"auto",block:e,inline:t})}},[r,e,t]),null},bN=C.forwardRef((e,t)=>{const{portalled:r=!0,portalRef:n,...o}=e;return h.jsx(er,{container:n,disabled:!r,children:h.jsx(tI,{children:h.jsx(rI,{...o,ref:t})})})}),yN=C.forwardRef((e,t)=>{const{children:r,item:n,...o}=e;return h.jsxs(iI,{item:n,...o,ref:t,children:[r,h.jsx(sI,{})]},n.value)}),xN=C.forwardRef((e,t)=>h.jsx(Z2,{...e,positioning:{sameWidth:!0,...e.positioning},ref:t})),SN=C.forwardRef((e,t)=>{const{children:r,clearable:n,isActive:o,triggerProps:i,...s}=e;return h.jsxs(cI,{...s,children:[h.jsx(eI,{ref:t,...i,children:r}),h.jsxs(aI,{_rtl:{bottom:0,left:0,right:"auto",top:0},children:[n?h.jsx(oI,{asChild:!0,children:h.jsx(El,{focusRingWidth:"2px",focusVisibleRing:"inside",pointerEvents:"auto",size:"xs",variant:"plain"})}):void 0,h.jsx(lI,{})]})]})}),CN=C.forwardRef((e,t)=>{const{children:r,...n}=e;return h.jsx(nI,{...n,ref:t,children:h.jsx(uI,{children:o=>{const i=o.selectedItems;return i.length===0?e.placeholder:r?r(i):i.length===1?o.collection.stringifyItem(i[0]):`${i.length} selected`}})})}),vo={Content:bN,Item:yN,Root:xN,Trigger:SN,ValueText:CN},Up=({error:e})=>{const t=e;if(!t)return;const r=t.body?.detail;let n;return r!==void 0&&(typeof r=="string"?n=r:Array.isArray(r)?n=r.map(o=>`${o.loc.join(".")} ${o.msg}`):n=Object.keys(r).map(o=>`${o}: ${r[o]}`)),h.jsx(gN,{status:"error",children:h.jsxs(_i,{align:"start",flexDirection:"column",gap:2,mt:-1,children:[t.status," ",t.message,n===t.message?void 0:h.jsx(He,{whiteSpace:"preserve",wordBreak:"break-all",children:n})]})})};function jp(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 18 12 15 21 9 3 6 12 2 12"},child:[]}]})(e)}function kN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"7",x2:"17",y2:"17"},child:[]},{tag:"polyline",attr:{points:"17 7 17 17 7 17"},child:[]}]})(e)}function wN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(e)}function EN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},child:[]},{tag:"path",attr:{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},child:[]}]})(e)}function ON(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"17 1 21 5 17 9"},child:[]},{tag:"path",attr:{d:"M3 11V9a4 4 0 0 1 4-4h14"},child:[]},{tag:"polyline",attr:{points:"7 23 3 19 7 15"},child:[]},{tag:"path",attr:{d:"M21 13v2a4 4 0 0 1-4 4H3"},child:[]}]})(e)}function IN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"},child:[]},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"},child:[]}]})(e)}function TN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"5 4 15 12 5 20 5 4"},child:[]},{tag:"line",attr:{x1:"19",y1:"5",x2:"19",y2:"19"},child:[]}]})(e)}function PN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"},child:[]}]})(e)}function Gp(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"7"},child:[]},{tag:"polyline",attr:{points:"12 9 12 12 13.5 13.5"},child:[]},{tag:"path",attr:{d:"M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"},child:[]}]})(e)}function NN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}function AN(e){return re({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm104,56H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm0,64H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm112-24a8,8,0,0,1-3.76,6.78l-64,40A8,8,0,0,1,168,200V120a8,8,0,0,1,12.24-6.78l64,40A8,8,0,0,1,248,160Zm-23.09,0L184,134.43v51.14Z"},child:[]}]})(e)}const VN=({state:e,...t})=>{switch(e){case"deferred":return h.jsx(Gp,{...t});case"failed":return h.jsx(NN,{...t});case"queued":return h.jsx(AN,{...t});case"removed":return h.jsx(PN,{...t});case"restarting":return h.jsx(ON,{...t});case"running":return h.jsx(jp,{...t});case"scheduled":return h.jsx(wN,{...t});case"skipped":return h.jsx(TN,{...t});case"success":return h.jsx(cN,{...t});case"up_for_reschedule":return h.jsx(lN,{...t});case"up_for_retry":return h.jsx(hN,{...t});case"upstream_failed":return h.jsx(uN,{...t});default:return h.jsx(Wp,{...t})}},RN=D.forwardRef(({children:e,state:t,...r},n)=>h.jsxs(Ja,{borderRadius:"full",colorPalette:t===null?"none":t,fontSize:"sm",px:e===void 0?1:2,py:1,ref:n,variant:"solid",...r,children:[t===void 0?void 0:h.jsx(VN,{state:t}),e]})),qp=5e3,_N=e=>{const[t,r]=C.useState(0);return C.useEffect(()=>{if(!e.current)return;const n=new ResizeObserver(o=>{for(const i of o)r(i.contentRect.width)});return n.observe(e.current),()=>{n.disconnect()}},[e]),t},LN=()=>{const{data:e,error:t}=GP(void 0,{enabled:!0,refetchInterval:qp});return e?.jobs&&e.jobs.length>0?h.jsx(Tn,{p:2,children:h.jsxs(mg,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[h.jsx(vg,{children:h.jsxs(Li,{children:[h.jsx(Oe,{children:"Dag ID"}),h.jsx(Oe,{children:"Run ID"}),h.jsx(Oe,{children:"Task ID"}),h.jsx(Oe,{children:"Map Index"}),h.jsx(Oe,{children:"Try Number"}),h.jsx(Oe,{children:"State"}),h.jsx(Oe,{children:"Queue"}),h.jsx(Oe,{children:"Queued DTTM"}),h.jsx(Oe,{children:"Edge Worker"}),h.jsx(Oe,{children:"Last Update"})]})}),h.jsx(bg,{children:e.jobs.map(r=>h.jsxs(Li,{children:[h.jsx(Ie,{children:h.jsx(st.Link,{to:`/dags/${r.dag_id}`,children:r.dag_id})}),h.jsx(Ie,{children:h.jsx(st.Link,{to:`/dags/${r.dag_id}/runs/${r.run_id}`,children:r.run_id})}),h.jsx(Ie,{children:r.map_index>=0?h.jsx(st.Link,{to:`/dags/${r.dag_id}/runs/${r.run_id}/tasks/${r.task_id}/mapped/${r.map_index}?try_number=${r.try_number}`,children:r.task_id}):h.jsx(st.Link,{to:`/dags/${r.dag_id}/runs/${r.run_id}/tasks/${r.task_id}?try_number=${r.try_number}`,children:r.task_id})}),h.jsx(Ie,{children:r.map_index>=0?r.map_index:"-"}),h.jsx(Ie,{children:r.try_number}),h.jsx(Ie,{children:h.jsx(RN,{state:r.state,children:r.state})}),h.jsx(Ie,{children:r.queue}),h.jsx(Ie,{children:r.queued_dttm?h.jsx(Zi,{date:r.queued_dttm,live:!1}):void 0}),h.jsx(Ie,{children:h.jsx(st.Link,{to:`../worker#${r.edge_worker}`,children:r.edge_worker})}),h.jsx(Ie,{children:r.last_update?h.jsx(Zi,{date:r.last_update,live:!1}):void 0})]},`${r.dag_id}.${r.run_id}.${r.task_id}.${r.map_index}.${r.try_number}`))})]})}):e?h.jsx(He,{as:"div",pl:4,pt:1,children:"Currently no jobs running. Start a Dag and then all active jobs should show up here. Note that after some (configurable) time, jobs are purged from the list."}):t?h.jsx(He,{as:"div",pl:4,pt:1,children:h.jsx(Up,{error:t})}):h.jsx(He,{as:"div",pl:4,pt:1,children:"Loading..."})},Kp=["shift","alt","meta","mod","ctrl","control"],FN={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function nr(e){return(FN[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function Yp(e){return Kp.includes(e)}function Ol(e,t=","){return e.toLowerCase().split(t)}function Il(e,t="+",r=">",n=!1,o){let i=[],s=!1;e=e.trim(),e.includes(r)?(s=!0,i=e.toLocaleLowerCase().split(r).map(c=>nr(c))):i=e.toLocaleLowerCase().split(t).map(c=>nr(c));const a={alt:i.includes("alt"),ctrl:i.includes("ctrl")||i.includes("control"),shift:i.includes("shift"),meta:i.includes("meta"),mod:i.includes("mod"),useKey:n},l=i.filter(c=>!Kp.includes(c));return{...a,keys:l,description:o,isSequence:s,hotkey:e}}typeof document<"u"&&(document.addEventListener("keydown",e=>{e.code!==void 0&&Xp([nr(e.code)])}),document.addEventListener("keyup",e=>{e.code!==void 0&&Qp([nr(e.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{Bt.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{Bt.clear()},0)}));const Bt=new Set;function Tl(e){return Array.isArray(e)}function zN(e,t=","){return(Tl(e)?e:e.split(t)).every(r=>Bt.has(r.trim().toLowerCase()))}function Xp(e){const t=Array.isArray(e)?e:[e];Bt.has("meta")&&Bt.forEach(r=>!Yp(r)&&Bt.delete(r.toLowerCase())),t.forEach(r=>Bt.add(r.toLowerCase()))}function Qp(e){const t=Array.isArray(e)?e:[e];e==="meta"?Bt.clear():t.forEach(r=>Bt.delete(r.toLowerCase()))}function DN(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function MN(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}const $N=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function WN(e){return Jp(e,$N)}function Jp(e,t=!1){const{target:r,composed:n}=e;let o,i;return BN(r)&&n?(o=e.composedPath()[0]&&e.composedPath()[0].tagName,i=e.composedPath()[0]&&e.composedPath()[0].role):(o=r&&r.tagName,i=r&&r.role),Tl(t)?!!(o&&t&&t.some(s=>s.toLowerCase()===o.toLowerCase()||s===i)):!!(o&&t&&t)}function BN(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function HN(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a '),!0):t?e.some(r=>t.includes(r))||e.includes("*"):!0}const UN=(e,t,r=!1)=>{const{alt:n,meta:o,mod:i,shift:s,ctrl:a,keys:l,useKey:c}=t,{code:u,key:d,ctrlKey:g,metaKey:f,shiftKey:p,altKey:m}=e,v=nr(u);if(c&&l?.length===1&&l.includes(d))return!0;if(!l?.includes(v)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(v))return!1;if(!r){if(n!==m&&v!=="alt"||s!==p&&v!=="shift")return!1;if(i){if(!f&&!g)return!1}else if(o!==f&&v!=="meta"&&v!=="os"||a!==g&&v!=="ctrl"&&v!=="control")return!1}return l&&l.length===1&&l.includes(v)?!0:l?zN(l):!l},jN=C.createContext(void 0),GN=()=>C.useContext(jN);function Zp(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((r,n)=>r&&Zp(e[n],t[n]),!0):e===t}const qN=C.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),KN=()=>C.useContext(qN);function YN(e){const t=C.useRef(void 0);return Zp(t.current,e)||(t.current=e),t.current}const em=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},XN=typeof window<"u"?C.useLayoutEffect:C.useEffect;function QN(e,t,r,n){const o=C.useRef(null),i=C.useRef(!1),s=Array.isArray(r)?Array.isArray(n)?void 0:n:r,a=Tl(e)?e.join(s?.delimiter):e,l=Array.isArray(r)?r:Array.isArray(n)?n:void 0,c=C.useCallback(t,l??[]),u=C.useRef(c);l?u.current=c:u.current=t;const d=YN(s),{activeScopes:g}=KN(),f=GN();return XN(()=>{if(d?.enabled===!1||!HN(g,d?.scopes))return;let p=[],m;const v=(S,b=!1)=>{if(!(WN(S)&&!Jp(S,d?.enableOnFormTags))){if(o.current!==null){const O=o.current.getRootNode();if((O instanceof Document||O instanceof ShadowRoot)&&O.activeElement!==o.current&&!o.current.contains(O.activeElement)){em(S);return}}S.target?.isContentEditable&&!d?.enableOnContentEditable||Ol(a,d?.delimiter).forEach(O=>{if(O.includes(d?.splitKey??"+")&&O.includes(d?.sequenceSplitKey??">")){console.warn(`Hotkey ${O} contains both ${d?.splitKey??"+"} and ${d?.sequenceSplitKey??">"} which is not supported.`);return}const T=Il(O,d?.splitKey,d?.sequenceSplitKey,d?.useKey,d?.description);if(T.isSequence){m=setTimeout(()=>{p=[]},d?.sequenceTimeoutMs??1e3);const V=T.useKey?S.key:nr(S.code);if(Yp(V.toLowerCase()))return;p.push(V);const E=T.keys?.[p.length-1];if(V!==E){p=[],m&&clearTimeout(m);return}p.length===T.keys?.length&&(u.current(S,T),m&&clearTimeout(m),p=[])}else if(UN(S,T,d?.ignoreModifiers)||T.keys?.includes("*")){if(d?.ignoreEventWhen?.(S)||b&&i.current)return;if(DN(S,T,d?.preventDefault),!MN(S,T,d?.enabled)){em(S);return}u.current(S,T),b||(i.current=!0)}})}},x=S=>{S.code!==void 0&&(Xp(nr(S.code)),(d?.keydown===void 0&&d?.keyup!==!0||d?.keydown)&&v(S))},k=S=>{S.code!==void 0&&(Qp(nr(S.code)),i.current=!1,d?.keyup&&v(S,!0))},y=o.current||s?.document||document;return y.addEventListener("keyup",k,s?.eventListenerOptions),y.addEventListener("keydown",x,s?.eventListenerOptions),f&&Ol(a,d?.delimiter).forEach(S=>f.addHotkey(Il(S,d?.splitKey,d?.sequenceSplitKey,d?.useKey,d?.description))),()=>{y.removeEventListener("keyup",k,s?.eventListenerOptions),y.removeEventListener("keydown",x,s?.eventListenerOptions),f&&Ol(a,d?.delimiter).forEach(S=>f.removeHotkey(Il(S,d?.splitKey,d?.sequenceSplitKey,d?.useKey,d?.description))),p=[],m&&clearTimeout(m)}},[a,d,g]),o}function JN(e,t,r,n){var o=this,i=C.useRef(null),s=C.useRef(0),a=C.useRef(0),l=C.useRef(null),c=C.useRef([]),u=C.useRef(),d=C.useRef(),g=C.useRef(e),f=C.useRef(!0);g.current=e;var p=typeof window<"u",m=!t&&t!==0&&p;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var v=!!(r=r||{}).leading,x=!("trailing"in r)||!!r.trailing,k="maxWait"in r,y="debounceOnServer"in r&&!!r.debounceOnServer,S=k?Math.max(+r.maxWait||0,t):null;C.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var b=C.useMemo(function(){var O=function(A){var L=c.current,z=u.current;return c.current=u.current=null,s.current=A,a.current=a.current||A,d.current=g.current.apply(z,L)},T=function(A,L){m&&cancelAnimationFrame(l.current),l.current=m?requestAnimationFrame(A):setTimeout(A,L)},V=function(A){if(!f.current)return!1;var L=A-i.current;return!i.current||L>=t||L<0||k&&A-s.current>=S},E=function(A){return l.current=null,x&&c.current?O(A):(c.current=u.current=null,d.current)},P=function A(){var L=Date.now();if(v&&a.current===s.current&&N(),V(L))return E(L);if(f.current){var z=t-(L-i.current),U=k?Math.min(z,S-(L-s.current)):z;T(A,U)}},N=function(){},w=function(){if(p||y){var A=Date.now(),L=V(A);if(c.current=[].slice.call(arguments),u.current=o,i.current=A,L){if(!l.current&&f.current)return s.current=i.current,T(P,t),v?O(i.current):d.current;if(k)return T(P,t),O(i.current)}return l.current||T(P,t),d.current}};return w.cancel=function(){var A=l.current;A&&(m?cancelAnimationFrame(l.current):clearTimeout(l.current)),s.current=0,c.current=i.current=u.current=l.current=null},w.isPending=function(){return!!l.current},w.flush=function(){return l.current?E(Date.now()):d.current},w},[v,k,t,S,x,m,p,y,n]);return b}const ZN=200,tm=({buttonProps:e,defaultValue:t,groupProps:r,hideAdvanced:n=!1,hotkeyDisabled:o=!1,onChange:i,placeHolder:s})=>{const a=JN(g=>i(g),ZN),l=C.useRef(null),[c,u]=C.useState(t),d=g=>{u(g.target.value),a(g.target.value)};return QN("mod+k",()=>{l.current?.focus()},{enabled:!o,preventDefault:!0}),h.jsx(mN,{...r,colorPalette:"brand",endElement:h.jsxs(h.Fragment,{children:[c?h.jsx(El,{"aria-label":"Clear search",colorPalette:"brand","data-testid":"clear-search",onClick:()=>{u(""),i("")},size:"xs"}):void 0,n?void 0:h.jsx(Ee,{fontWeight:"normal",height:28,variant:"ghost",...e,children:"Advanced"}),!o&&h.jsx(ug,{size:"sm",children:"⌘K"})]}),startElement:h.jsx(IN,{}),children:h.jsx(lg,{"data-testid":"search-workers",onChange:d,placeholder:s,pr:150,ref:l,value:c})})},e5=({onQueueUpdate:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),[i,s]=C.useState(""),a=YP({onError:c=>{e({description:`Unable to add queue to worker ${t}: ${c}`,title:"Add Queue Failed",type:"error"})},onSuccess:()=>{e({description:`Queue "${i}" was added to worker ${t}.`,title:"Queue Added",type:"success"}),r(),s("")}}),l=()=>{if(!i.trim()){e({description:"Please enter a queue name.",title:"Invalid Input",type:"error"});return}a.mutate({queueName:i.trim(),workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Add Queue",title:"Add Queue",colorPalette:"success",children:h.jsx(Hp,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Add Queue to ",t]})}),h.jsx(Rr,{children:h.jsxs(so,{gap:4,align:"stretch",children:[h.jsx(He,{children:"Enter the name of the queue to add to this worker:"}),h.jsx(lg,{placeholder:"Queue name",value:i,onChange:c=>s(c.target.value),onKeyDown:c=>{c.key==="Enter"&&l()}})]})}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ee,{variant:"outline",children:"Cancel"})}),h.jsxs(Ee,{onClick:l,colorPalette:"success",loading:a.isPending,loadingText:"Adding queue...",disabled:!i.trim(),children:[h.jsx(Hp,{}),"Add Queue"]})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})},t5=({onEditComment:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),[i,s]=C.useState(""),a=XP({onError:c=>{e({description:`Unable to update comments for worker ${t}: ${c}`,title:"Updating Comments failed",type:"error"})},onSuccess:()=>{e({description:`Worker maintenance comments for ${t} were updated.`,title:"Maintenance Comments updated",type:"success"}),r()}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost","aria-label":"Edit Comments",title:"Edit Comments",onClick:n,colorPalette:"warning",children:h.jsx(EN,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Edit maintenance comments for worker ",t]})}),h.jsx(Rr,{children:h.jsx(el,{placeholder:"Change maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ee,{variant:"outline",children:"Cancel"})}),h.jsx(Ee,{onClick:l,disabled:!i.trim(),children:"Update Comments"})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})};function rm(e){return re({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}function r5(e){return re({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75a4.5 4.5 0 0 1-4.884 4.484c-1.076-.091-2.264.071-2.95.904l-7.152 8.684a2.548 2.548 0 1 1-3.586-3.586l8.684-7.152c.833-.686.995-1.874.904-2.95a4.5 4.5 0 0 1 6.336-4.486l-3.276 3.276a3.004 3.004 0 0 0 2.25 2.25l3.276-3.276c.256.565.398 1.192.398 1.852Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}const n5=({onEnterMaintenance:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),[i,s]=C.useState(""),a=qP({onError:c=>{e({description:`Unable to set worker ${t} to maintenance mode: ${c}`,title:"Setting Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to be in maintenance mode.`,title:"Maintenance Mode activated",type:"success"})}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost","aria-label":"Enter Maintenance",title:"Enter Maintenance",onClick:n,colorPalette:"warning",children:h.jsx(rm,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Set maintenance for worker ",t]})}),h.jsx(Rr,{children:h.jsx(el,{placeholder:"Enter maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ee,{variant:"outline",children:"Cancel"})}),h.jsx(Ee,{onClick:l,disabled:!i.trim(),children:"Confirm Maintenance"})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})};function o5(e){return re({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.469 332.802l29.863 29.864L352 256 245.332 149.333l-29.863 29.865 55.469 55.469H64v42.666h205.864l-54.395 55.469zM405.334 64H106.666C83.198 64 64 83.198 64 106.666V192h42.666v-85.333h298.668v298.668H106.666V320H64v85.334C64 428.802 83.198 448 106.666 448h298.668C428.802 448 448 428.802 448 405.334V106.666C448 83.198 428.802 64 405.334 64z"},child:[]}]})(e)}const i5=({onExitMaintenance:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),i=QP({onError:a=>{e({description:`Unable to exit ${t} from maintenance mode: ${a}`,title:"Exit Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to exit maintenance mode.`,title:"Maintenance Mode deactivated",type:"success"}),r()}}),s=()=>{i.mutate({workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Exit Maintenance",title:"Exit Maintenance",colorPalette:"warning",children:h.jsx(o5,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Exit maintenance for worker ",t]})}),h.jsx(Rr,{children:h.jsxs(He,{children:["Are you sure you want to exit maintenance mode for worker ",t,"?"]})}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ee,{variant:"outline",children:"No"})}),h.jsx(Ee,{onClick:s,children:"Yes"})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})},s5=({onQueueUpdate:e,worker:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),[i,s]=C.useState(""),a=ZP({onError:u=>{e({description:`Unable to remove queue from worker ${t.worker_name}: ${u}`,title:"Remove Queue Failed",type:"error"})},onSuccess:()=>{e({description:`Queue "${i}" was removed from worker ${t.worker_name}.`,title:"Queue Removed",type:"success"}),r(),s("")}}),l=()=>{if(!i){e({description:"Please select a queue to remove.",title:"Invalid Selection",type:"error"});return}a.mutate({queueName:i,workerName:t.worker_name})},c=t.queues||[];return c.length===0?null:h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Remove Queue",title:"Remove Queue",colorPalette:"danger",children:h.jsx(Bp,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Remove Queue from ",t.worker_name]})}),h.jsx(Rr,{children:h.jsxs(so,{gap:4,align:"stretch",children:[h.jsx(He,{children:"Select a queue to remove from this worker:"}),h.jsx(so,{gap:2,align:"stretch",children:h.jsx(K2,{each:c,children:u=>h.jsx(Ee,{variant:i===u?"solid":"outline",colorPalette:i===u?"blue":"gray",onClick:()=>s(u),justifyContent:"flex-start",children:u},u)})})]})}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ee,{variant:"outline",children:"Cancel"})}),h.jsxs(Ee,{onClick:l,colorPalette:"danger",loading:a.isPending,loadingText:"Removing queue...",disabled:!i,children:[h.jsx(Bp,{}),"Remove Queue"]})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})};function nm(e){return re({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M170.5 51.6L151.5 80l145 0-19-28.4c-1.5-2.2-4-3.6-6.7-3.6l-93.7 0c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80 368 80l48 0 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-8 0 0 304c0 44.2-35.8 80-80 80l-224 0c-44.2 0-80-35.8-80-80l0-304-8 0c-13.3 0-24-10.7-24-24S10.7 80 24 80l8 0 48 0 13.8 0 36.7-55.1C140.9 9.4 158.4 0 177.1 0l93.7 0c18.7 0 36.2 9.4 46.6 24.9zM80 128l0 304c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-304L80 128zm80 64l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16z"},child:[]}]})(e)}const om=({onDelete:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),i=JP({onError:a=>{e({description:`Unable to delete worker ${t}: ${a}`,title:"Delete Worker Failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} has been deleted from the system.`,title:"Worker Deleted",type:"success"}),r()}}),s=()=>{i.mutate({workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Delete Worker",title:"Delete Worker",colorPalette:"danger",children:h.jsx(nm,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Delete worker ",t]})}),h.jsxs(Rr,{children:[h.jsxs(He,{children:["Are you sure you want to delete worker ",t,"?"]}),h.jsx(He,{fontSize:"sm",color:"red.500",mt:2,children:"This will permanently remove the worker record from the system. This action cannot be undone."})]}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ee,{variant:"outline",children:"Cancel"})}),h.jsxs(Ee,{onClick:s,colorPalette:"danger",loading:i.isPending,loadingText:"Deleting...",children:[h.jsx(nm,{style:{marginRight:"8px"}}),"Delete Worker"]})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})};function im(e){return re({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"},child:[]}]})(e)}const sm=({onShutdown:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),i=KP({onError:a=>{e({description:`Unable to request shutdown for worker ${t}: ${a}`,title:"Shutdown Request Failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to shutdown.`,title:"Shutdown Request Sent",type:"success"}),r()}}),s=()=>{i.mutate({workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Shutdown Worker",title:"Shutdown Worker",colorPalette:"danger",children:h.jsx(im,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Shutdown worker ",t]})}),h.jsxs(Rr,{children:[h.jsxs(He,{children:["Are you sure you want to request shutdown for worker ",t,"?"]}),h.jsx(He,{fontSize:"sm",color:"red.500",mt:2,children:"This stops the worker on the remote edge. You can't restart it from the UI — you need to start it remotely instead."})]}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ee,{variant:"outline",children:"Cancel"})}),h.jsxs(Ee,{onClick:s,colorPalette:"danger",loading:i.isPending,loadingText:"Shutting down...",children:[h.jsx(im,{style:{marginRight:"8px"}}),"Shutdown Worker"]})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})},a5=({onOperations:e,worker:t})=>{const r=t.worker_name,n=t.state,o=i=>{pN.create(i),e()};return n==="idle"||n==="running"?h.jsxs(io,{justifyContent:"end",gap:2,children:[h.jsx(e5,{onQueueUpdate:o,workerName:r}),h.jsx(s5,{onQueueUpdate:o,worker:t}),h.jsx(n5,{onEnterMaintenance:o,workerName:r}),h.jsx(sm,{onShutdown:o,workerName:r})]}):n==="maintenance pending"||n==="maintenance mode"||n==="maintenance request"||n==="offline maintenance"?h.jsxs(so,{gap:2,align:"stretch",children:[h.jsx(Tn,{fontSize:"sm",whiteSpace:"pre-wrap",children:t.maintenance_comments||"No comment"}),h.jsxs(io,{justifyContent:"end",gap:2,children:[h.jsx(t5,{onEditComment:o,workerName:r}),h.jsx(i5,{onExitMaintenance:o,workerName:r}),n==="offline maintenance"?h.jsx(om,{onDelete:o,workerName:r}):h.jsx(sm,{onShutdown:o,workerName:r})]})]}):n==="offline"||n==="unknown"?h.jsx(io,{justifyContent:"end",children:h.jsx(om,{onDelete:o,workerName:r})}):null};function l5(e){return re({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m22 3.41-.12-1.26-1.2.4a13.84 13.84 0 0 1-6.41.64 11.87 11.87 0 0 0-6.68.9A7.23 7.23 0 0 0 3.3 9.5a9 9 0 0 0 .39 4.58 16.6 16.6 0 0 1 1.18-2.2 9.85 9.85 0 0 1 4.07-3.43 11.16 11.16 0 0 1 5.06-1A12.08 12.08 0 0 0 9.34 9.2a9.48 9.48 0 0 0-1.86 1.53 11.38 11.38 0 0 0-1.39 1.91 16.39 16.39 0 0 0-1.57 4.54A26.42 26.42 0 0 0 4 22h2a30.69 30.69 0 0 1 .59-4.32 9.25 9.25 0 0 0 4.52 1.11 11 11 0 0 0 4.28-.87C23 14.67 22 3.86 22 3.41z"},child:[]}]})(e)}function c5(e){return re({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M93.72 183.25C49.49 198.05 16 233.1 16 288c0 66 54 112 120 112h184.37m147.45-22.26C485.24 363.3 496 341.61 496 312c0-59.82-53-85.76-96-88-8.89-89.54-71-144-144-144-26.16 0-48.79 6.93-67.6 18.14"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 448 64 64"},child:[]}]})(e)}function u5(e){return re({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.0001 18C12.7144 18 13.3704 18.2497 13.8856 18.6665L12.0001 21L10.1145 18.6665C10.6297 18.2497 11.2857 18 12.0001 18ZM2.80766 1.39343L20.4853 19.0711L19.0711 20.4853L13.8913 15.3042C13.2967 15.1069 12.6609 15 12.0001 15C10.5719 15 9.26024 15.499 8.22998 16.3322L6.97363 14.7759C8.24961 13.7442 9.84925 13.0969 11.5964 13.01L9.00025 10.414C7.55273 10.8234 6.22651 11.5217 5.0878 12.4426L3.83099 10.8868C4.89946 10.0226 6.10763 9.32438 7.41633 8.83118L5.13168 6.5451C3.98878 7.08913 2.92058 7.76472 1.94666 8.55228L0.689453 6.99674C1.60358 6.25747 2.59156 5.60589 3.64058 5.05479L1.39345 2.80765L2.80766 1.39343ZM14.5004 10.2854L12.2165 8.00243L12 8C15.0947 8 17.9369 9.08141 20.1693 10.8869L18.9123 12.4426C17.6438 11.4167 16.1427 10.6672 14.5004 10.2854ZM12.0001 3.00003C16.2849 3.00003 20.22 4.49719 23.3109 6.99691L22.0534 8.55228C19.3061 6.33062 15.8085 5.00003 12.0001 5.00003C11.122 5.00003 10.2604 5.07077 9.42075 5.20685L7.72455 3.51088C9.09498 3.17702 10.5268 3.00003 12.0001 3.00003Z"},child:[]}]})(e)}const d5=({state:e,...t})=>{switch(e){case"starting":return h.jsx(Gp,{...t});case"running":return h.jsx(jp,{...t});case"idle":return h.jsx(l5,{...t});case"shutdown request":case"terminating":return h.jsx(kN,{...t});case"offline":return h.jsx(c5,{...t});case"unknown":return h.jsx(u5,{...t});case"maintenance request":case"maintenance pending":case"maintenance exit":return h.jsx(r5,{...t});case"maintenance mode":case"offline maintenance":return h.jsx(rm,{...t});default:return h.jsx(Wp,{...t})}},h5=e=>{switch(e){case"starting":case"maintenance request":case"maintenance exit":return"yellow";case"running":return"green";case"idle":return"teal";case"shutdown request":case"terminating":return"purple";case"offline":case"offline maintenance":return"black";case"unknown":return"red";case"maintenance mode":case"maintenance pending":return"orange";default:return"gray"}},f5=e=>{switch(e){case"starting":return"Edge Worker is in initialization.";case"running":return"Edge Worker is actively running a task.";case"idle":return"Edge Worker is active and waiting for a task.";case"shutdown request":return"Request to shutdown Edge Worker is issued. It will be picked-up on the next heartbeat, tasks will drain and then worker will terminate.";case"terminating":return"Edge Worker is completing work (draining running tasks) and stopping.";case"offline":return"Edge Worker was shut down.";case"unknown":return"No heartbeat signal from worker for some time, Edge Worker probably down or got disconnected.";case"maintenance request":return"Worker was requested to enter maintenance mode. Once worker receives this message it will pause fetching tasks and drain tasks.";case"maintenance pending":return"Edge Worker received the request for maintenance, waiting for tasks to finish. Once tasks are finished will move to 'maintenance mode'.";case"maintenance mode":return"Edge Worker is in maintenance mode. It is online but pauses fetching tasks.";case"maintenance exit":return"Request Worker is requested to exit maintenance mode. Once the worker receives this state it will un-pause and fetch new tasks.";case"offline maintenance":return"Worker was shut down in maintenance mode. It will be in maintenance mode when restarted.";default:return}},Pl=D.forwardRef(({children:e,state:t,...r},n)=>h.jsxs(Ja,{borderRadius:"full",colorPalette:h5(t),fontSize:"sm",px:e===void 0?1:2,py:1,ref:n,title:f5(t),variant:"solid",...r,children:[t===void 0?void 0:h.jsx(d5,{state:t}),e]})),g5={enum:["starting","running","idle","shutdown request","terminating","offline","unknown","maintenance request","maintenance pending","maintenance mode","maintenance exit","offline maintenance"]},p5=e=>e.split(/[\s_]+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "),am=lS({items:[{label:"All States",value:"all"},...g5.enum.map(e=>({label:p5(e),value:e}))]}),m5=()=>{const[e,t]=C.useState(""),[r,n]=C.useState(""),[o,i]=C.useState([]),s=o.length>0,{data:a,error:l,refetch:c}=jP({queueNamePattern:r||void 0,state:s?o:void 0,workerNamePattern:e||void 0},void 0,{enabled:!0,refetchInterval:qp}),u=f=>{t(f)},d=f=>{n(f)},g=C.useCallback(({value:f})=>{const[p,...m]=f;(p===void 0||p==="all")&&m.length===0?i([]):i(f.filter(v=>v!=="all"))},[]);return h.jsxs(Tn,{p:2,children:[h.jsxs(_i,{gap:4,mb:4,children:[h.jsx(tm,{buttonProps:{disabled:!0},defaultValue:e,hideAdvanced:!0,hotkeyDisabled:!0,onChange:u,placeHolder:"Search workers"}),h.jsx(tm,{buttonProps:{disabled:!0},defaultValue:r,hideAdvanced:!0,hotkeyDisabled:!0,onChange:d,placeHolder:"Search queues"}),h.jsxs(vo.Root,{collection:am,maxW:"450px",multiple:!0,onValueChange:g,value:s?o:["all"],children:[h.jsx(vo.Trigger,{...s?{clearable:!0}:{},colorPalette:"brand",isActive:!!o,children:h.jsx(vo.ValueText,{children:()=>s?h.jsx(_i,{flexWrap:"wrap",fontSize:"sm",gap:"4px",paddingY:"8px",children:o.map(f=>h.jsx(Pl,{state:f,children:f},f))}):"All States"})}),h.jsx(vo.Content,{children:am.items.map(f=>h.jsx(vo.Item,{item:f,children:f.value==="all"?f.label:h.jsx(Pl,{state:f.value,children:f.label})},f.label))})]})]}),l?h.jsx(Up,{error:l}):a?a.workers&&a.workers.length>0?h.jsxs(h.Fragment,{children:[h.jsxs(mg,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[h.jsx(vg,{children:h.jsxs(Li,{children:[h.jsx(Oe,{children:"Worker Name"}),h.jsx(Oe,{children:"State"}),h.jsx(Oe,{children:"Queues"}),h.jsx(Oe,{children:"First Online"}),h.jsx(Oe,{children:"Last Heartbeat"}),h.jsx(Oe,{children:"Active Jobs"}),h.jsx(Oe,{children:"System Information"}),h.jsx(Oe,{children:"Operations"})]})}),h.jsx(bg,{children:a.workers.map(f=>h.jsxs(Li,{id:f.worker_name,children:[h.jsx(Ie,{children:f.worker_name}),h.jsx(Ie,{children:h.jsx(Pl,{state:f.state,children:f.state})}),h.jsx(Ie,{children:f.queues?h.jsx(fg,{children:f.queues.map(p=>h.jsx(gg,{children:p},p))}):"(all queues)"}),h.jsx(Ie,{children:f.first_online?h.jsx(Zi,{date:f.first_online,live:!1}):void 0}),h.jsx(Ie,{children:f.last_heartbeat?h.jsx(Zi,{date:f.last_heartbeat,live:!1}):void 0}),h.jsx(Ie,{children:f.jobs_active}),h.jsx(Ie,{children:f.sysinfo?h.jsx(fg,{children:Object.entries(f.sysinfo).map(([p,m])=>h.jsxs(gg,{children:[p,": ",m]},p))}):"N/A"}),h.jsx(Ie,{children:h.jsx(a5,{worker:f,onOperations:c})})]},f.worker_name))})]}),h.jsx(vN,{})]}):h.jsxs(He,{as:"div",pl:2,pt:1,children:["No known workers. Start one via ",h.jsx(sg,{children:"airflow edge worker [...]"}),". See"," ",h.jsxs(dg,{target:"_blank",variant:"underline",color:"fg.info",href:"https://airflow.apache.org/docs/apache-airflow-providers-edge3/stable/deployment.html",children:["Edge Worker Deployment docs ",h.jsx(dN,{})]})," ","how to deploy a new worker."]}):h.jsx(He,{as:"div",pl:2,pt:1,children:"Loading..."})]})},v5=({tabs:e})=>{const t=C.useRef(null),r=_N(t);return h.jsx(io,{alignItems:"center",borderBottomWidth:1,mb:2,ref:t,children:e.map(({icon:n,label:o,value:i})=>h.jsx(st.NavLink,{end:!0,title:o,to:i,children:({isActive:s})=>h.jsx(ig,{borderBottomColor:"border.info",borderBottomWidth:s?3:0,color:s?"fg":"fg.muted",fontWeight:"bold",height:"40px",mb:"-2px",pb:s?0:"3px",px:4,transition:"all 0.2s ease",children:r>600||!n?o:n})},i))})},b5=()=>{const e=[{label:"Edge Worker",value:"worker"},{label:"Edge Jobs",value:"jobs"}];return h.jsxs(Tn,{p:2,children:[h.jsx(v5,{tabs:e}),h.jsxs(st.Routes,{children:[h.jsx(st.Route,{index:!0,element:h.jsx(st.Navigate,{to:"worker",replace:!0})}),h.jsx(st.Route,{path:"worker",element:h.jsx(m5,{})}),h.jsx(st.Route,{path:"jobs",element:h.jsx(LN,{})})]})]})},G=(e,t="white")=>({solid:{value:`{colors.${e}.600}`},contrast:{value:{_light:"white",_dark:t}},fg:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}},muted:{value:{_light:`{colors.${e}.200}`,_dark:`{colors.${e}.800}`}},subtle:{value:{_light:`{colors.${e}.100}`,_dark:`{colors.${e}.900}`}},emphasized:{value:{_light:`{colors.${e}.300}`,_dark:`{colors.${e}.700}`}},focusRing:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}}}),y5=Ha({theme:{tokens:{colors:{black:{value:"oklch(0.23185 0.0323 266.44)"},brand:{50:{value:"oklch(0.98 0.006 248.717)"},100:{value:"oklch(0.962 0.012 249.460)"},200:{value:"oklch(0.923 0.023 255.082)"},300:{value:"oklch(0.865 0.039 252.420)"},400:{value:"oklch(0.705 0.066 256.378)"},500:{value:"oklch(0.575 0.08 257.759)"},600:{value:"oklch(0.469 0.084 257.657)"},700:{value:"oklch(0.399 0.084 257.850)"},800:{value:"oklch(0.324 0.072 260.329)"},900:{value:"oklch(0.259 0.062 265.566)"},950:{value:"oklch(0.179 0.05 265.487)"}},gray:{50:{value:"oklch(0.985 0.004 253)"},100:{value:"oklch(0.955 0.006 253)"},200:{value:"oklch(0.915 0.01 253)"},300:{value:"oklch(0.85 0.016 253)"},400:{value:"oklch(0.75 0.025 252)"},500:{value:"oklch(0.63, 0.04, 252)"},600:{value:"oklch(0.45 0.055 251)"},700:{value:"oklch(0.35 0.045 251)"},800:{value:"oklch(0.28 0.035 251)"},900:{value:"oklch(0.18 0.03 251)"},950:{value:"oklch(0.11 0.025 251)"}},red:{50:{value:"oklch(0.971 0.013 17.38)"},100:{value:"oklch(0.936 0.032 17.717)"},200:{value:"oklch(0.885 0.062 18.334)"},300:{value:"oklch(0.808 0.114 19.571)"},400:{value:"oklch(0.704 0.191 22.216)"},500:{value:"oklch(0.637 0.237 25.331)"},600:{value:"oklch(0.577 0.245 27.325)"},700:{value:"oklch(0.505 0.213 27.518)"},800:{value:"oklch(0.444 0.177 26.899)"},900:{value:"oklch(0.396 0.141 25.723)"},950:{value:"oklch(0.258 0.092 26.042)"}},orange:{50:{value:"oklch(0.982 0.013 83.915)"},100:{value:"oklch(0.961 0.033 82.320)"},200:{value:"oklch(0.918 0.065 79.975)"},300:{value:"oklch(0.857 0.118 76.815)"},400:{value:"oklch(0.7492 0.1439 62.081)"},500:{value:"oklch(0.6462 0.1979 43.792)"},600:{value:"oklch(0.5902 0.198 35.93)"},700:{value:"oklch(0.553 0.184 41.777)"},800:{value:"oklch(0.469 0.144 45.164)"},900:{value:"oklch(0.414 0.110 48.717)"},950:{value:"oklch(0.271 0.069 52.345)"}},amber:{50:{value:"oklch(0.987 0.022 95.277)"},100:{value:"oklch(0.962 0.059 95.617)"},200:{value:"oklch(0.924 0.12 95.746)"},300:{value:"oklch(0.879 0.169 91.605)"},400:{value:"oklch(0.828 0.189 84.429)"},500:{value:"oklch(0.769 0.188 70.08)"},600:{value:"oklch(0.666 0.179 58.318)"},700:{value:"oklch(0.555 0.163 48.998)"},800:{value:"oklch(0.473 0.137 46.201)"},900:{value:"oklch(0.414 0.112 45.904)"},950:{value:"oklch(0.279 0.077 45.635)"}},yellow:{50:{value:"oklch(0.987 0.026 102.212)"},100:{value:"oklch(0.973 0.071 103.193)"},200:{value:"oklch(0.945 0.129 101.54)"},300:{value:"oklch(0.905 0.182 98.111)"},400:{value:"oklch(0.852 0.199 91.936)"},500:{value:"oklch(0.795 0.184 86.047)"},600:{value:"oklch(0.681 0.162 75.834)"},700:{value:"oklch(0.554 0.135 66.442)"},800:{value:"oklch(0.476 0.114 61.907)"},900:{value:"oklch(0.421 0.095 57.708)"},950:{value:"oklch(0.286 0.066 53.813)"}},lime:{50:{value:"oklch(0.986 0.031 120.757)"},100:{value:"oklch(0.967 0.067 122.328)"},200:{value:"oklch(0.938 0.127 124.321)"},300:{value:"oklch(0.897 0.196 126.665)"},400:{value:"oklch(0.841 0.238 128.85)"},500:{value:"oklch(0.768 0.233 130.85)"},600:{value:"oklch(0.648 0.2 131.684)"},700:{value:"oklch(0.532 0.157 131.589)"},800:{value:"oklch(0.453 0.124 130.933)"},900:{value:"oklch(0.405 0.101 131.063)"},950:{value:"oklch(0.274 0.072 132.109)"}},green:{50:{value:"oklch(0.982 0.018 155.826)"},100:{value:"oklch(0.962 0.044 156.743)"},200:{value:"oklch(0.925 0.084 155.995)"},300:{value:"oklch(0.75 0.18 153.0)"},400:{value:"oklch(0.625 0.209 150.0)"},500:{value:"oklch(0.528 0.219 149.579)"},600:{value:"oklch(0.47 0.20 149.0)"},700:{value:"oklch(0.40 0.16 149.5)"},800:{value:"oklch(0.448 0.119 151.328)"},900:{value:"oklch(0.393 0.095 152.535)"},950:{value:"oklch(0.266 0.065 152.934)"}},emerald:{50:{value:"oklch(0.979 0.021 166.113)"},100:{value:"oklch(0.95 0.052 163.051)"},200:{value:"oklch(0.905 0.093 164.15)"},300:{value:"oklch(0.845 0.143 164.978)"},400:{value:"oklch(0.765 0.177 163.223)"},500:{value:"oklch(0.696 0.17 162.48)"},600:{value:"oklch(0.596 0.145 163.225)"},700:{value:"oklch(0.508 0.118 165.612)"},800:{value:"oklch(0.432 0.095 166.913)"},900:{value:"oklch(0.378 0.077 168.94)"},950:{value:"oklch(0.262 0.051 172.552)"}},teal:{50:{value:"oklch(0.984 0.014 180.72)"},100:{value:"oklch(0.953 0.051 180.801)"},200:{value:"oklch(0.91 0.096 180.426)"},300:{value:"oklch(0.855 0.138 181.071)"},400:{value:"oklch(0.777 0.152 181.912)"},500:{value:"oklch(0.704 0.14 182.503)"},600:{value:"oklch(0.6 0.118 184.704)"},700:{value:"oklch(0.511 0.096 186.391)"},800:{value:"oklch(0.437 0.078 188.216)"},900:{value:"oklch(0.386 0.063 188.416)"},950:{value:"oklch(0.277 0.046 192.524)"}},cyan:{50:{value:"oklch(0.984 0.019 200.873)"},100:{value:"oklch(0.956 0.045 203.388)"},200:{value:"oklch(0.917 0.08 205.041)"},300:{value:"oklch(0.865 0.127 207.078)"},400:{value:"oklch(0.789 0.154 211.53)"},500:{value:"oklch(0.715 0.143 215.221)"},600:{value:"oklch(0.609 0.126 221.723)"},700:{value:"oklch(0.52 0.105 223.128)"},800:{value:"oklch(0.45 0.085 224.283)"},900:{value:"oklch(0.398 0.07 227.392)"},950:{value:"oklch(0.302 0.056 229.695)"}},sky:{50:{value:"oklch(0.977 0.013 236.62)"},100:{value:"oklch(0.951 0.026 236.824)"},200:{value:"oklch(0.901 0.058 230.902)"},300:{value:"oklch(0.828 0.111 230.318)"},400:{value:"oklch(0.746 0.16 232.661)"},500:{value:"oklch(0.685 0.169 237.323)"},600:{value:"oklch(0.588 0.158 241.966)"},700:{value:"oklch(0.5 0.134 242.749)"},800:{value:"oklch(0.443 0.11 240.79)"},900:{value:"oklch(0.391 0.09 240.876)"},950:{value:"oklch(0.293 0.066 243.157)"}},blue:{50:{value:"oklch(0.97 0.014 254.604)"},100:{value:"oklch(0.932 0.032 255.585)"},200:{value:"oklch(0.882 0.059 254.128)"},300:{value:"oklch(0.809 0.105 251.813)"},400:{value:"oklch(0.707 0.165 254.624)"},500:{value:"oklch(0.623 0.214 259.815)"},600:{value:"oklch(0.546 0.245 262.881)"},700:{value:"oklch(0.488 0.243 264.376)"},800:{value:"oklch(0.424 0.199 265.638)"},900:{value:"oklch(0.379 0.146 265.522)"},950:{value:"oklch(0.282 0.091 267.935)"}},indigo:{50:{value:"oklch(0.962 0.018 272.314)"},100:{value:"oklch(0.93 0.034 272.788)"},200:{value:"oklch(0.87 0.065 274.039)"},300:{value:"oklch(0.785 0.115 274.713)"},400:{value:"oklch(0.673 0.182 276.935)"},500:{value:"oklch(0.585 0.233 277.117)"},600:{value:"oklch(0.511 0.262 276.966)"},700:{value:"oklch(0.457 0.24 277.023)"},800:{value:"oklch(0.398 0.195 277.366)"},900:{value:"oklch(0.359 0.144 278.697)"},950:{value:"oklch(0.257 0.09 281.288)"}},violet:{50:{value:"oklch(0.969 0.016 293.756)"},100:{value:"oklch(0.943 0.029 294.588)"},200:{value:"oklch(0.894 0.057 293.283)"},300:{value:"oklch(0.811 0.111 293.571)"},400:{value:"oklch(0.702 0.183 293.541)"},500:{value:"oklch(0.606 0.25 292.717)"},600:{value:"oklch(0.541 0.281 293.009)"},700:{value:"oklch(0.491 0.27 292.581)"},800:{value:"oklch(0.432 0.232 292.759)"},900:{value:"oklch(0.38 0.189 293.745)"},950:{value:"oklch(0.283 0.141 291.089)"}},purple:{50:{value:"oklch(0.977 0.014 308.299)"},100:{value:"oklch(0.946 0.033 307.174)"},200:{value:"oklch(0.902 0.063 306.703)"},300:{value:"oklch(0.827 0.119 306.383)"},400:{value:"oklch(0.714 0.203 305.504)"},500:{value:"oklch(0.627 0.265 303.9)"},600:{value:"oklch(0.558 0.288 302.321)"},700:{value:"oklch(0.496 0.265 301.924)"},800:{value:"oklch(0.438 0.218 303.724)"},900:{value:"oklch(0.381 0.176 304.987)"},950:{value:"oklch(0.291 0.149 302.717)"}},fuchsia:{50:{value:"oklch(0.977 0.017 320.058)"},100:{value:"oklch(0.952 0.037 318.852)"},200:{value:"oklch(0.903 0.076 319.62)"},300:{value:"oklch(0.833 0.145 321.434)"},400:{value:"oklch(0.74 0.238 322.16)"},500:{value:"oklch(0.667 0.295 322.15)"},600:{value:"oklch(0.591 0.293 322.896)"},700:{value:"oklch(0.518 0.253 323.949)"},800:{value:"oklch(0.452 0.211 324.591)"},900:{value:"oklch(0.401 0.17 325.612)"},950:{value:"oklch(0.293 0.136 325.661)"}},pink:{50:{value:"oklch(0.971 0.014 343.198)"},100:{value:"oklch(0.948 0.028 342.258)"},200:{value:"oklch(0.899 0.061 343.231)"},300:{value:"oklch(0.823 0.12 346.018)"},400:{value:"oklch(0.718 0.202 349.761)"},500:{value:"oklch(0.656 0.241 354.308)"},600:{value:"oklch(0.592 0.249 0.584)"},700:{value:"oklch(0.525 0.223 3.958)"},800:{value:"oklch(0.459 0.187 3.815)"},900:{value:"oklch(0.408 0.153 2.432)"},950:{value:"oklch(0.284 0.109 3.907)"}},rose:{50:{value:"oklch(0.969 0.015 12.422)"},100:{value:"oklch(0.941 0.03 12.58)"},200:{value:"oklch(0.892 0.058 10.001)"},300:{value:"oklch(0.81 0.117 11.638)"},400:{value:"oklch(0.712 0.194 13.428)"},500:{value:"oklch(0.645 0.246 16.439)"},600:{value:"oklch(0.586 0.253 17.585)"},700:{value:"oklch(0.514 0.222 16.935)"},800:{value:"oklch(0.455 0.188 13.697)"},900:{value:"oklch(0.41 0.159 10.272)"},950:{value:"oklch(0.271 0.105 12.094)"}},slate:{50:{value:"oklch(0.984 0.003 247.858)"},100:{value:"oklch(0.968 0.007 247.896)"},200:{value:"oklch(0.929 0.013 255.508)"},300:{value:"oklch(0.869 0.022 252.894)"},400:{value:"oklch(0.704 0.04 256.788)"},500:{value:"oklch(0.554 0.046 257.417)"},600:{value:"oklch(0.446 0.043 257.281)"},700:{value:"oklch(0.372 0.044 257.287)"},800:{value:"oklch(0.279 0.041 260.031)"},900:{value:"oklch(0.208 0.042 265.755)"},950:{value:"oklch(0.129 0.042 264.695)"}},zinc:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.967 0.001 286.375)"},200:{value:"oklch(0.92 0.004 286.32)"},300:{value:"oklch(0.871 0.006 286.286)"},400:{value:"oklch(0.705 0.015 286.067)"},500:{value:"oklch(0.552 0.016 285.938)"},600:{value:"oklch(0.442 0.017 285.786)"},700:{value:"oklch(0.37 0.013 285.805)"},800:{value:"oklch(0.274 0.006 286.033)"},900:{value:"oklch(0.21 0.006 285.885)"},950:{value:"oklch(0.141 0.005 285.823)"}},neutral:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.97 0 0)"},200:{value:"oklch(0.922 0 0)"},300:{value:"oklch(0.87 0 0)"},400:{value:"oklch(0.708 0 0)"},500:{value:"oklch(0.556 0 0)"},600:{value:"oklch(0.439 0 0)"},700:{value:"oklch(0.371 0 0)"},800:{value:"oklch(0.269 0 0)"},900:{value:"oklch(0.205 0 0)"},950:{value:"oklch(0.145 0 0)"}},stone:{50:{value:"oklch(0.985 0.001 106.423)"},100:{value:"oklch(0.97 0.001 106.424)"},200:{value:"oklch(0.923 0.003 48.717)"},300:{value:"oklch(0.869 0.005 56.366)"},400:{value:"oklch(0.709 0.01 56.259)"},500:{value:"oklch(0.553 0.013 58.071)"},600:{value:"oklch(0.444 0.011 73.639)"},700:{value:"oklch(0.374 0.01 67.558)"},800:{value:"oklch(0.268 0.007 34.298)"},900:{value:"oklch(0.216 0.006 56.043)"},950:{value:"oklch(0.147 0.004 49.25)"}}}},semanticTokens:{colors:{brand:G("brand"),danger:G("red"),info:G("blue"),warning:G("amber"),error:G("red"),active:G("blue"),success:G("green"),failed:G("red"),queued:G("stone"),skipped:G("pink"),up_for_reschedule:G("sky"),up_for_retry:G("yellow"),upstream_failed:G("orange"),running:G("cyan"),restarting:G("violet"),deferred:G("purple"),scheduled:G("zinc"),none:G("gray"),removed:G("slate"),red:G("red"),orange:G("orange"),amber:G("amber"),yellow:G("yellow"),lime:G("lime"),green:G("green"),emerald:G("emerald"),teal:G("teal"),cyan:G("cyan"),sky:G("sky"),blue:G("blue"),indigo:G("indigo"),violet:G("violet"),purple:G("purple"),fuchsia:G("fuchsia"),pink:G("pink"),rose:G("rose"),slate:G("slate"),gray:G("gray"),zinc:G("zinc"),neutral:G("neutral"),stone:G("stone")}}}}),x5=Lf(Xf,y5);return()=>{const e=document.querySelector("head > base")?.getAttribute("href")??"",t=new URL(e,globalThis.location.origin);Et.BASE=t.pathname.replace(/\/$/,"");const r=new zI({defaultOptions:{queries:{staleTime:1/0}}});return h.jsx(mv,{value:x5,children:h.jsx(DI,{client:r,children:h.jsx(oT,{children:h.jsx(b5,{})})})})}}));
+`):" "+Op(s[0]):"as no adapter specified";throw new j("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const Ip={getAdapter:TP,adapters:xl};function Sl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yn(null,e)}function Tp(e){return Sl(e),e.headers=Ye.from(e.headers),e.data=yl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ip.getAdapter(e.adapter||ho.adapter,e)(e).then(function(n){return Sl(e),n.data=yl.call(e,e.transformResponse,n),n.headers=Ye.from(n.headers),n},function(n){return fp(n)||(Sl(e),n&&n.response&&(n.response.data=yl.call(e,e.transformResponse,n.response),n.response.headers=Ye.from(n.response.headers))),Promise.reject(n)})}const Pp="1.13.2",qi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Np={};qi.transitional=function(t,r,n){function o(i,s){return"[Axios v"+Pp+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(t===!1)throw new j(o(s," has been removed"+(r?" in "+r:"")),j.ERR_DEPRECATED);return r&&!Np[s]&&(Np[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,a):!0}},qi.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function PP(e,t,r){if(typeof e!="object")throw new j("options must be an object",j.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new j("option "+i+" must be "+l,j.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new j("Unknown option "+i,j.ERR_BAD_OPTION)}}const Ki={assertOptions:PP,validators:qi},Ot=Ki.validators;let Br=class{constructor(t){this.defaults=t||{},this.interceptors={request:new cp,response:new cp}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
+`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Wr(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Ki.assertOptions(n,{silentJSONParsing:Ot.transitional(Ot.boolean),forcedJSONParsing:Ot.transitional(Ot.boolean),clarifyTimeoutError:Ot.transitional(Ot.boolean)},!1),o!=null&&(I.isFunction(o)?r.paramsSerializer={serialize:o}:Ki.assertOptions(o,{encode:Ot.function,serialize:Ot.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ki.assertOptions(r,{baseUrl:Ot.spelling("baseURL"),withXsrfToken:Ot.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&I.merge(i.common,i[r.method]);i&&I.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),r.headers=Ye.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,g;if(!l){const f=[Tp.bind(this),void 0];for(f.unshift(...a),f.push(...c),g=f.length,u=Promise.resolve(r);d{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,a){n.reason||(n.reason=new yn(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new pm(function(o){t=o}),cancel:t}}};function AP(e){return function(r){return e.apply(null,r)}}function VP(e){return I.isObject(e)&&e.isAxiosError===!0}const Cl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Cl).forEach(([e,t])=>{Cl[t]=e});function Ap(e){const t=new Br(e),r=qg(Br.prototype.request,t);return I.extend(r,Br.prototype,t,{allOwnKeys:!0}),I.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Ap(Wr(e,o))},r}const ge=Ap(ho);ge.Axios=Br,ge.CanceledError=yn,ge.CancelToken=NP,ge.isCancel=fp,ge.VERSION=Pp,ge.toFormData=Hi,ge.AxiosError=j,ge.Cancel=ge.CanceledError,ge.all=function(t){return Promise.all(t)},ge.spread=AP,ge.isAxiosError=VP,ge.mergeConfig=Wr,ge.AxiosHeaders=Ye,ge.formToJSON=e=>dp(I.isHTMLForm(e)?new FormData(e):e),ge.getAdapter=Ip.getAdapter,ge.HttpStatusCode=Cl,ge.default=ge;const{Axios:Q5,AxiosError:J5,CanceledError:Z5,isCancel:eA,CancelToken:tA,VERSION:rA,all:nA,Cancel:oA,isAxiosError:iA,spread:sA,toFormData:aA,AxiosHeaders:lA,HttpStatusCode:cA,formToJSON:uA,getAdapter:dA,mergeConfig:hA}=ge;class Vp extends Error{url;status;statusText;body;request;constructor(t,r,n){super(n),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=t}}class RP extends Error{constructor(t){super(t),this.name="CancelError"}get isCancelled(){return!0}}class _P{_isResolved;_isRejected;_isCancelled;cancelHandlers;promise;_resolve;_reject;constructor(t){this._isResolved=!1,this._isRejected=!1,this._isCancelled=!1,this.cancelHandlers=[],this.promise=new Promise((r,n)=>{this._resolve=r,this._reject=n;const o=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isResolved=!0,this._resolve&&this._resolve(a))},i=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isRejected=!0,this._reject&&this._reject(a))},s=a=>{this._isResolved||this._isRejected||this._isCancelled||this.cancelHandlers.push(a)};return Object.defineProperty(s,"isResolved",{get:()=>this._isResolved}),Object.defineProperty(s,"isRejected",{get:()=>this._isRejected}),Object.defineProperty(s,"isCancelled",{get:()=>this._isCancelled}),t(o,i,s)})}get[Symbol.toStringTag](){return"Cancellable Promise"}then(t,r){return this.promise.then(t,r)}catch(t){return this.promise.catch(t)}finally(t){return this.promise.finally(t)}cancel(){if(!(this._isResolved||this._isRejected||this._isCancelled)){if(this._isCancelled=!0,this.cancelHandlers.length)try{for(const t of this.cancelHandlers)t()}catch(t){console.warn("Cancellation threw an error",t);return}this.cancelHandlers.length=0,this._reject&&this._reject(new RP("Request aborted"))}}get isCancelled(){return this._isCancelled}}const Yi=e=>typeof e=="string",kl=e=>Yi(e)&&e!=="",Rp=e=>e instanceof Blob,LP=e=>e instanceof FormData,_p=e=>e>=200&&e<300,FP=e=>{try{return btoa(e)}catch{return Buffer.from(e).toString("base64")}},DP=e=>{const t=[],r=(o,i)=>{t.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(i))}`)},n=(o,i)=>{i!=null&&(i instanceof Date?r(o,i.toISOString()):Array.isArray(i)?i.forEach(s=>n(o,s)):typeof i=="object"?Object.entries(i).forEach(([s,a])=>n(`${o}[${s}]`,a)):r(o,i))};return Object.entries(e).forEach(([o,i])=>n(o,i)),t.length?`?${t.join("&")}`:""},zP=(e,t)=>{const r=encodeURI,n=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(i,s)=>t.path?.hasOwnProperty(s)?r(String(t.path[s])):i),o=e.BASE+n;return t.query?o+DP(t.query):o},MP=e=>{if(e.formData){const t=new FormData,r=(n,o)=>{Yi(o)||Rp(o)?t.append(n,o):t.append(n,JSON.stringify(o))};return Object.entries(e.formData).filter(([,n])=>n!=null).forEach(([n,o])=>{Array.isArray(o)?o.forEach(i=>r(n,i)):r(n,o)}),t}},Xi=async(e,t)=>t,$P=async(e,t)=>{const[r,n,o,i]=await Promise.all([Xi(t,e.TOKEN),Xi(t,e.USERNAME),Xi(t,e.PASSWORD),Xi(t,e.HEADERS)]),s=Object.entries({Accept:"application/json",...i,...t.headers}).filter(([,a])=>a!=null).reduce((a,[l,c])=>({...a,[l]:String(c)}),{});if(kl(r)&&(s.Authorization=`Bearer ${r}`),kl(n)&&kl(o)){const a=FP(`${n}:${o}`);s.Authorization=`Basic ${a}`}return t.body!==void 0?t.mediaType?s["Content-Type"]=t.mediaType:Rp(t.body)?s["Content-Type"]=t.body.type||"application/octet-stream":Yi(t.body)?s["Content-Type"]="text/plain":LP(t.body)||(s["Content-Type"]="application/json"):t.formData!==void 0&&t.mediaType&&(s["Content-Type"]=t.mediaType),s},WP=e=>{if(e.body)return e.body},BP=async(e,t,r,n,o,i,s,a)=>{const l=new AbortController;let c={data:n??o,headers:i,method:t.method,signal:l.signal,url:r,withCredentials:e.WITH_CREDENTIALS};s(()=>l.abort());for(const u of e.interceptors.request._fns)c=await u(c);try{return await a.request(c)}catch(u){const d=u;if(d.response)return d.response;throw u}},HP=(e,t)=>{if(t){const r=e.headers[t];if(Yi(r))return r}},UP=e=>{if(e.status!==204)return e.data},jP=(e,t)=>{const n={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required",...e.errors}[t.status];if(n)throw new Vp(e,t,n);if(!t.ok){const o=t.status??"unknown",i=t.statusText??"unknown",s=(()=>{try{return JSON.stringify(t.body,null,2)}catch{return}})();throw new Vp(e,t,`Generic Error: status: ${o}; status text: ${i}; body: ${s}`)}},$t=(e,t,r=ge)=>new _P(async(n,o,i)=>{try{const s=zP(e,t),a=MP(t),l=WP(t),c=await $P(e,t);if(!i.isCancelled){let u=await BP(e,t,s,l,a,c,i,r);for(const m of e.interceptors.response._fns)u=await m(u);const d=UP(u),g=HP(u,t.responseHeader);let p=d;t.responseTransformer&&_p(u.status)&&(p=await t.responseTransformer(d));const f={url:s,ok:_p(u.status),status:u.status,statusText:u.statusText,body:g??p};jP(t,f),n(f.body)}}catch(s){o(s)}});class Wt{static worker(t={}){return $t(Et,{method:"GET",url:"/edge_worker/ui/worker",query:{worker_name_pattern:t.workerNamePattern,queue_name_pattern:t.queueNamePattern,state:t.state},errors:{422:"Validation Error"}})}static jobs(){return $t(Et,{method:"GET",url:"/edge_worker/ui/jobs"})}static requestWorkerMaintenance(t){return $t(Et,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},body:t.requestBody,mediaType:"application/json",errors:{422:"Validation Error"}})}static updateWorkerMaintenance(t){return $t(Et,{method:"PATCH",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},body:t.requestBody,mediaType:"application/json",errors:{422:"Validation Error"}})}static exitWorkerMaintenance(t){return $t(Et,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static requestWorkerShutdown(t){return $t(Et,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/shutdown",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static deleteWorker(t){return $t(Et,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static addWorkerQueue(t){return $t(Et,{method:"PUT",url:"/edge_worker/ui/worker/{worker_name}/queues/{queue_name}",path:{worker_name:t.workerName,queue_name:t.queueName},errors:{422:"Validation Error"}})}static removeWorkerQueue(t){return $t(Et,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/queues/{queue_name}",path:{worker_name:t.workerName,queue_name:t.queueName},errors:{422:"Validation Error"}})}}const GP=({queueNamePattern:e,state:t,workerNamePattern:r}={},n,o)=>Bg({queryKey:aT({queueNamePattern:e,state:t,workerNamePattern:r}),queryFn:()=>Wt.worker({queueNamePattern:e,state:t,workerNamePattern:r}),...o}),qP=(e,t)=>Bg({queryKey:cT(),queryFn:()=>Wt.jobs(),...t}),KP=e=>Mr({mutationFn:({requestBody:t,workerName:r})=>Wt.requestWorkerMaintenance({requestBody:t,workerName:r}),...e}),YP=e=>Mr({mutationFn:({workerName:t})=>Wt.requestWorkerShutdown({workerName:t}),...e}),XP=e=>Mr({mutationFn:({queueName:t,workerName:r})=>Wt.addWorkerQueue({queueName:t,workerName:r}),...e}),QP=e=>Mr({mutationFn:({requestBody:t,workerName:r})=>Wt.updateWorkerMaintenance({requestBody:t,workerName:r}),...e}),JP=e=>Mr({mutationFn:({workerName:t})=>Wt.exitWorkerMaintenance({workerName:t}),...e}),ZP=e=>Mr({mutationFn:({workerName:t})=>Wt.deleteWorker({workerName:t}),...e}),eN=e=>Mr({mutationFn:({queueName:t,workerName:r})=>Wt.removeWorkerQueue({queueName:t,workerName:r}),...e});function Qi(e){const t=new Date(e);if(!Number.isNaN(t.valueOf()))return t;const r=String(e).match(/\d+/g);if(r==null||r.length<=2)return t;{const[n,o,...i]=r.map(l=>parseInt(l)),s=[n,o-1,...i];return new Date(Date.UTC(...s))}}const go=(e,t,r)=>{const n=e!==1?t+"s":t;return e+" "+n+" "+r};function wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var t=1;tDate.now();function Zi({date:e,formatter:t,component:r="time",live:n=!0,minPeriod:o=0,maxPeriod:i=Ji,title:s,now:a=tN,...l}){const[c,u]=C.useState(a());C.useEffect(()=>{if(!n)return;const T=(()=>{const V=Qi(e).valueOf();if(!V)return console.warn("[react-timeago] Invalid Date provided"),0;const E=Math.round(Math.abs(c-V)/1e3),P=E{u(a())},N):0})();return()=>{T&&clearTimeout(T)}},[e,n,i,o,a,c]),C.useEffect(()=>{u(a())},[e]);const d=r,g=Qi(e).valueOf();if(!g)return null;const p=Math.round(Math.abs(c-g)/1e3),f=g"u"?typeof e=="string"?e:Qi(e).toISOString().substring(0,16).replace("T"," "):s,k=d==="time"?{...l,dateTime:Qi(e).toISOString()}:l,y=(O=O,T=T,V=V,E=g,P=go,N=N)=>go(O,T,V),S=t||go;let b;try{b=S(m,v,f,g,y,a),b||(b=go(m,v,f,g,y,a))}catch(O){console.error("[react-timeago] Formatter threw an error:",O),b=go(m,v,f)}return z.createElement(d,wl({},k,{title:x}),b)}var Dp={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},zp=C.createContext&&C.createContext(Dp),rN=["attr","size","title"];function nN(e,t){if(e==null)return{};var r=oN(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function es(){return es=Object.assign?Object.assign.bind():function(e){for(var t=1;tC.createElement(t.tag,ts({key:r},t.attr),$p(t.child)))}function re(e){return t=>C.createElement(lN,es({attr:ts({},e.attr)},t),$p(e.child))}function lN(e){var t=r=>{var{attr:n,size:o,title:i}=e,s=nN(e,rN),a=o||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),C.createElement("svg",es({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:l,style:ts(ts({color:e.color||r.color},r.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&C.createElement("title",null,i),e.children)};return zp!==void 0?C.createElement(zp.Consumer,null,r=>t(r)):t(Dp)}function cN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 10v4h4"},child:[]},{tag:"path",attr:{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5"},child:[]},{tag:"path",attr:{d:"M16 2v4"},child:[]},{tag:"path",attr:{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5"},child:[]},{tag:"path",attr:{d:"M21 22v-4h-4"},child:[]},{tag:"path",attr:{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3"},child:[]},{tag:"path",attr:{d:"M3 10h4"},child:[]},{tag:"path",attr:{d:"M8 2v4"},child:[]}]})(e)}function uN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}function Wp(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.1 2.182a10 10 0 0 1 3.8 0"},child:[]},{tag:"path",attr:{d:"M13.9 21.818a10 10 0 0 1-3.8 0"},child:[]},{tag:"path",attr:{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"},child:[]},{tag:"path",attr:{d:"M2.182 13.9a10 10 0 0 1 0-3.8"},child:[]},{tag:"path",attr:{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"},child:[]},{tag:"path",attr:{d:"M21.818 10.1a10 10 0 0 1 0 3.8"},child:[]},{tag:"path",attr:{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"},child:[]},{tag:"path",attr:{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"},child:[]}]})(e)}function dN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 2a10 10 0 0 1 7.38 16.75"},child:[]},{tag:"path",attr:{d:"m16 12-4-4-4 4"},child:[]},{tag:"path",attr:{d:"M12 16V8"},child:[]},{tag:"path",attr:{d:"M2.5 8.875a10 10 0 0 0-.5 3"},child:[]},{tag:"path",attr:{d:"M2.83 16a10 10 0 0 0 2.43 3.4"},child:[]},{tag:"path",attr:{d:"M4.636 5.235a10 10 0 0 1 .891-.857"},child:[]},{tag:"path",attr:{d:"M8.644 21.42a10 10 0 0 0 7.631-.38"},child:[]}]})(e)}function hN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h6v6"},child:[]},{tag:"path",attr:{d:"M10 14 21 3"},child:[]},{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]}]})(e)}function Bp(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 12H3"},child:[]},{tag:"path",attr:{d:"M16 6H3"},child:[]},{tag:"path",attr:{d:"M16 18H3"},child:[]},{tag:"path",attr:{d:"M21 12h-6"},child:[]}]})(e)}function Hp(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 12H3"},child:[]},{tag:"path",attr:{d:"M16 6H3"},child:[]},{tag:"path",attr:{d:"M16 18H3"},child:[]},{tag:"path",attr:{d:"M18 9v6"},child:[]},{tag:"path",attr:{d:"M21 12h-6"},child:[]}]})(e)}function fN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m15 14 5-5-5-5"},child:[]},{tag:"path",attr:{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"},child:[]}]})(e)}function gN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 6 6 18"},child:[]},{tag:"path",attr:{d:"m6 6 12 12"},child:[]}]})(e)}const El=C.forwardRef((e,t)=>h.jsx(kt,{"aria-label":"Close",ref:t,variant:"ghost",...e,children:e.children??h.jsx(gN,{})})),pN=C.forwardRef((e,t)=>{const{children:r,closable:n,endElement:o,icon:i,onClose:s,startElement:a,title:l,...c}=e;return h.jsxs(F2,{ref:t,...c,alignItems:"center",children:[a??h.jsx($2,{children:i}),r?h.jsxs(z2,{children:[h.jsx(tg,{children:l}),h.jsx(D2,{children:r})]}):h.jsx(tg,{flex:"1",children:l}),o,n?h.jsx(El,{alignSelf:"flex-start",insetEnd:"-2",onClick:s,pos:"relative",size:"sm",top:"-2"}):void 0]})}),mN=C.forwardRef((e,t)=>{const{children:r,endElement:n,endElementProps:o,startElement:i,startElementProps:s,...a}=e;return h.jsxs(rg,{ref:t,...a,children:[i?h.jsx(cg,{pointerEvents:"none",...s,children:i}):void 0,C.cloneElement(r,{...i&&{ps:"calc(var(--input-height) - 6px)"},...n&&{pe:"calc(var(--input-height) - 6px)"},...r.props}),n?h.jsx(cg,{placement:"end",...o,children:n}):void 0]})}),Up=wk({pauseOnPageIdle:!0,placement:"bottom-end"}),vN=({block:e="start",inline:t="nearest"})=>{const[r,n]=C.useState(()=>window.location.hash);return C.useEffect(()=>{const o=()=>n(window.location.hash);return window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]),C.useEffect(()=>{if(r){const o=document.getElementById(r.slice(1));o&&o.scrollIntoView({behavior:"auto",block:e,inline:t})}},[r,e,t]),null},bN=C.forwardRef((e,t)=>{const{portalled:r=!0,portalRef:n,...o}=e;return h.jsx(er,{container:n,disabled:!r,children:h.jsx(rI,{children:h.jsx(nI,{...o,ref:t})})})}),yN=C.forwardRef((e,t)=>{const{children:r,item:n,...o}=e;return h.jsxs(sI,{item:n,...o,ref:t,children:[r,h.jsx(aI,{})]},n.value)}),xN=C.forwardRef((e,t)=>h.jsx(eI,{...e,positioning:{sameWidth:!0,...e.positioning},ref:t})),SN=C.forwardRef((e,t)=>{const{children:r,clearable:n,isActive:o,triggerProps:i,...s}=e;return h.jsxs(uI,{...s,children:[h.jsx(tI,{ref:t,...i,children:r}),h.jsxs(lI,{_rtl:{bottom:0,left:0,right:"auto",top:0},children:[n?h.jsx(iI,{asChild:!0,children:h.jsx(El,{focusRingWidth:"2px",focusVisibleRing:"inside",pointerEvents:"auto",size:"xs",variant:"plain"})}):void 0,h.jsx(cI,{})]})]})}),CN=C.forwardRef((e,t)=>{const{children:r,...n}=e;return h.jsx(oI,{...n,ref:t,children:h.jsx(dI,{children:o=>{const i=o.selectedItems;return i.length===0?e.placeholder:r?r(i):i.length===1?o.collection.stringifyItem(i[0]):`${i.length} selected`}})})}),vo={Content:bN,Item:yN,Root:xN,Trigger:SN,ValueText:CN},jp=({error:e})=>{const t=e;if(!t)return;const r=t.body?.detail;let n;return r!==void 0&&(typeof r=="string"?n=r:Array.isArray(r)?n=r.map(o=>`${o.loc.join(".")} ${o.msg}`):n=Object.keys(r).map(o=>`${o}: ${r[o]}`)),h.jsx(pN,{status:"error",children:h.jsxs(_i,{align:"start",flexDirection:"column",gap:2,mt:-1,children:[t.status," ",t.message,n===t.message?void 0:h.jsx(He,{whiteSpace:"preserve",wordBreak:"break-all",children:n})]})})};function Gp(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 18 12 15 21 9 3 6 12 2 12"},child:[]}]})(e)}function kN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"7",x2:"17",y2:"17"},child:[]},{tag:"polyline",attr:{points:"17 7 17 17 7 17"},child:[]}]})(e)}function wN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(e)}function EN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},child:[]},{tag:"path",attr:{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},child:[]}]})(e)}function ON(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"17 1 21 5 17 9"},child:[]},{tag:"path",attr:{d:"M3 11V9a4 4 0 0 1 4-4h14"},child:[]},{tag:"polyline",attr:{points:"7 23 3 19 7 15"},child:[]},{tag:"path",attr:{d:"M21 13v2a4 4 0 0 1-4 4H3"},child:[]}]})(e)}function IN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"},child:[]},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"},child:[]}]})(e)}function TN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"5 4 15 12 5 20 5 4"},child:[]},{tag:"line",attr:{x1:"19",y1:"5",x2:"19",y2:"19"},child:[]}]})(e)}function PN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"},child:[]}]})(e)}function qp(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"7"},child:[]},{tag:"polyline",attr:{points:"12 9 12 12 13.5 13.5"},child:[]},{tag:"path",attr:{d:"M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"},child:[]}]})(e)}function NN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}function AN(e){return re({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm104,56H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm0,64H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm112-24a8,8,0,0,1-3.76,6.78l-64,40A8,8,0,0,1,168,200V120a8,8,0,0,1,12.24-6.78l64,40A8,8,0,0,1,248,160Zm-23.09,0L184,134.43v51.14Z"},child:[]}]})(e)}const VN=({state:e,...t})=>{switch(e){case"deferred":return h.jsx(qp,{...t});case"failed":return h.jsx(NN,{...t});case"queued":return h.jsx(AN,{...t});case"removed":return h.jsx(PN,{...t});case"restarting":return h.jsx(ON,{...t});case"running":return h.jsx(Gp,{...t});case"scheduled":return h.jsx(wN,{...t});case"skipped":return h.jsx(TN,{...t});case"success":return h.jsx(uN,{...t});case"up_for_reschedule":return h.jsx(cN,{...t});case"up_for_retry":return h.jsx(fN,{...t});case"upstream_failed":return h.jsx(dN,{...t});default:return h.jsx(Wp,{...t})}},RN=z.forwardRef(({children:e,state:t,...r},n)=>h.jsxs(Ja,{borderRadius:"full",colorPalette:t===null?"none":t,fontSize:"sm",px:e===void 0?1:2,py:1,ref:n,variant:"solid",...r,children:[t===void 0?void 0:h.jsx(VN,{state:t}),e]})),Kp=5e3,_N=e=>{const[t,r]=C.useState(0);return C.useEffect(()=>{if(!e.current)return;const n=new ResizeObserver(o=>{for(const i of o)r(i.contentRect.width)});return n.observe(e.current),()=>{n.disconnect()}},[e]),t},LN=()=>{const{data:e,error:t}=qP(void 0,{enabled:!0,refetchInterval:Kp});return e?.jobs&&e.jobs.length>0?h.jsx(Tn,{p:2,children:h.jsxs(mg,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[h.jsx(vg,{children:h.jsxs(Li,{children:[h.jsx(Oe,{children:"Dag ID"}),h.jsx(Oe,{children:"Run ID"}),h.jsx(Oe,{children:"Task ID"}),h.jsx(Oe,{children:"Map Index"}),h.jsx(Oe,{children:"Try Number"}),h.jsx(Oe,{children:"State"}),h.jsx(Oe,{children:"Queue"}),h.jsx(Oe,{children:"Queued DTTM"}),h.jsx(Oe,{children:"Edge Worker"}),h.jsx(Oe,{children:"Last Update"})]})}),h.jsx(bg,{children:e.jobs.map(r=>h.jsxs(Li,{children:[h.jsx(Ie,{children:h.jsx(st.Link,{to:`/dags/${r.dag_id}`,children:r.dag_id})}),h.jsx(Ie,{children:h.jsx(st.Link,{to:`/dags/${r.dag_id}/runs/${r.run_id}`,children:r.run_id})}),h.jsx(Ie,{children:r.map_index>=0?h.jsx(st.Link,{to:`/dags/${r.dag_id}/runs/${r.run_id}/tasks/${r.task_id}/mapped/${r.map_index}?try_number=${r.try_number}`,children:r.task_id}):h.jsx(st.Link,{to:`/dags/${r.dag_id}/runs/${r.run_id}/tasks/${r.task_id}?try_number=${r.try_number}`,children:r.task_id})}),h.jsx(Ie,{children:r.map_index>=0?r.map_index:"-"}),h.jsx(Ie,{children:r.try_number}),h.jsx(Ie,{children:h.jsx(RN,{state:r.state,children:r.state})}),h.jsx(Ie,{children:r.queue}),h.jsx(Ie,{children:r.queued_dttm?h.jsx(Zi,{date:r.queued_dttm,live:!1}):void 0}),h.jsx(Ie,{children:h.jsx(st.Link,{to:`../worker#${r.edge_worker}`,children:r.edge_worker})}),h.jsx(Ie,{children:r.last_update?h.jsx(Zi,{date:r.last_update,live:!1}):void 0})]},`${r.dag_id}.${r.run_id}.${r.task_id}.${r.map_index}.${r.try_number}`))})]})}):e?h.jsx(He,{as:"div",pl:4,pt:1,children:"Currently no jobs running. Start a Dag and then all active jobs should show up here. Note that after some (configurable) time, jobs are purged from the list."}):t?h.jsx(He,{as:"div",pl:4,pt:1,children:h.jsx(jp,{error:t})}):h.jsx(He,{as:"div",pl:4,pt:1,children:"Loading..."})},Yp=["shift","alt","meta","mod","ctrl","control"],FN={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function nr(e){return(FN[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function Xp(e){return Yp.includes(e)}function Ol(e,t=","){return e.toLowerCase().split(t)}function Il(e,t="+",r=">",n=!1,o){let i=[],s=!1;e=e.trim(),e.includes(r)?(s=!0,i=e.toLocaleLowerCase().split(r).map(c=>nr(c))):i=e.toLocaleLowerCase().split(t).map(c=>nr(c));const a={alt:i.includes("alt"),ctrl:i.includes("ctrl")||i.includes("control"),shift:i.includes("shift"),meta:i.includes("meta"),mod:i.includes("mod"),useKey:n},l=i.filter(c=>!Yp.includes(c));return{...a,keys:l,description:o,isSequence:s,hotkey:e}}typeof document<"u"&&(document.addEventListener("keydown",e=>{e.code!==void 0&&Qp([nr(e.code)])}),document.addEventListener("keyup",e=>{e.code!==void 0&&Jp([nr(e.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{Bt.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{Bt.clear()},0)}));const Bt=new Set;function Tl(e){return Array.isArray(e)}function DN(e,t=","){return(Tl(e)?e:e.split(t)).every(r=>Bt.has(r.trim().toLowerCase()))}function Qp(e){const t=Array.isArray(e)?e:[e];Bt.has("meta")&&Bt.forEach(r=>!Xp(r)&&Bt.delete(r.toLowerCase())),t.forEach(r=>Bt.add(r.toLowerCase()))}function Jp(e){const t=Array.isArray(e)?e:[e];e==="meta"?Bt.clear():t.forEach(r=>Bt.delete(r.toLowerCase()))}function zN(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function MN(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}const $N=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function WN(e){return Zp(e,$N)}function Zp(e,t=!1){const{target:r,composed:n}=e;let o,i;return BN(r)&&n?(o=e.composedPath()[0]&&e.composedPath()[0].tagName,i=e.composedPath()[0]&&e.composedPath()[0].role):(o=r&&r.tagName,i=r&&r.role),Tl(t)?!!(o&&t&&t.some(s=>s.toLowerCase()===o.toLowerCase()||s===i)):!!(o&&t&&t)}function BN(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function HN(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a '),!0):t?e.some(r=>t.includes(r))||e.includes("*"):!0}const UN=(e,t,r=!1)=>{const{alt:n,meta:o,mod:i,shift:s,ctrl:a,keys:l,useKey:c}=t,{code:u,key:d,ctrlKey:g,metaKey:p,shiftKey:f,altKey:m}=e,v=nr(u);if(c&&l?.length===1&&l.includes(d))return!0;if(!l?.includes(v)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(v))return!1;if(!r){if(n!==m&&v!=="alt"||s!==f&&v!=="shift")return!1;if(i){if(!p&&!g)return!1}else if(o!==p&&v!=="meta"&&v!=="os"||a!==g&&v!=="ctrl"&&v!=="control")return!1}return l&&l.length===1&&l.includes(v)?!0:l?DN(l):!l},jN=C.createContext(void 0),GN=()=>C.useContext(jN);function em(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((r,n)=>r&&em(e[n],t[n]),!0):e===t}const qN=C.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),KN=()=>C.useContext(qN);function YN(e){const t=C.useRef(void 0);return em(t.current,e)||(t.current=e),t.current}const tm=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},XN=typeof window<"u"?C.useLayoutEffect:C.useEffect;function QN(e,t,r,n){const o=C.useRef(null),i=C.useRef(!1),s=Array.isArray(r)?Array.isArray(n)?void 0:n:r,a=Tl(e)?e.join(s?.delimiter):e,l=Array.isArray(r)?r:Array.isArray(n)?n:void 0,c=C.useCallback(t,l??[]),u=C.useRef(c);l?u.current=c:u.current=t;const d=YN(s),{activeScopes:g}=KN(),p=GN();return XN(()=>{if(d?.enabled===!1||!HN(g,d?.scopes))return;let f=[],m;const v=(S,b=!1)=>{if(!(WN(S)&&!Zp(S,d?.enableOnFormTags))){if(o.current!==null){const O=o.current.getRootNode();if((O instanceof Document||O instanceof ShadowRoot)&&O.activeElement!==o.current&&!o.current.contains(O.activeElement)){tm(S);return}}S.target?.isContentEditable&&!d?.enableOnContentEditable||Ol(a,d?.delimiter).forEach(O=>{if(O.includes(d?.splitKey??"+")&&O.includes(d?.sequenceSplitKey??">")){console.warn(`Hotkey ${O} contains both ${d?.splitKey??"+"} and ${d?.sequenceSplitKey??">"} which is not supported.`);return}const T=Il(O,d?.splitKey,d?.sequenceSplitKey,d?.useKey,d?.description);if(T.isSequence){m=setTimeout(()=>{f=[]},d?.sequenceTimeoutMs??1e3);const V=T.useKey?S.key:nr(S.code);if(Xp(V.toLowerCase()))return;f.push(V);const E=T.keys?.[f.length-1];if(V!==E){f=[],m&&clearTimeout(m);return}f.length===T.keys?.length&&(u.current(S,T),m&&clearTimeout(m),f=[])}else if(UN(S,T,d?.ignoreModifiers)||T.keys?.includes("*")){if(d?.ignoreEventWhen?.(S)||b&&i.current)return;if(zN(S,T,d?.preventDefault),!MN(S,T,d?.enabled)){tm(S);return}u.current(S,T),b||(i.current=!0)}})}},x=S=>{S.code!==void 0&&(Qp(nr(S.code)),(d?.keydown===void 0&&d?.keyup!==!0||d?.keydown)&&v(S))},k=S=>{S.code!==void 0&&(Jp(nr(S.code)),i.current=!1,d?.keyup&&v(S,!0))},y=o.current||s?.document||document;return y.addEventListener("keyup",k,s?.eventListenerOptions),y.addEventListener("keydown",x,s?.eventListenerOptions),p&&Ol(a,d?.delimiter).forEach(S=>p.addHotkey(Il(S,d?.splitKey,d?.sequenceSplitKey,d?.useKey,d?.description))),()=>{y.removeEventListener("keyup",k,s?.eventListenerOptions),y.removeEventListener("keydown",x,s?.eventListenerOptions),p&&Ol(a,d?.delimiter).forEach(S=>p.removeHotkey(Il(S,d?.splitKey,d?.sequenceSplitKey,d?.useKey,d?.description))),f=[],m&&clearTimeout(m)}},[a,d,g]),o}function JN(e,t,r,n){var o=this,i=C.useRef(null),s=C.useRef(0),a=C.useRef(0),l=C.useRef(null),c=C.useRef([]),u=C.useRef(),d=C.useRef(),g=C.useRef(e),p=C.useRef(!0);g.current=e;var f=typeof window<"u",m=!t&&t!==0&&f;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var v=!!(r=r||{}).leading,x=!("trailing"in r)||!!r.trailing,k="maxWait"in r,y="debounceOnServer"in r&&!!r.debounceOnServer,S=k?Math.max(+r.maxWait||0,t):null;C.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var b=C.useMemo(function(){var O=function(A){var L=c.current,D=u.current;return c.current=u.current=null,s.current=A,a.current=a.current||A,d.current=g.current.apply(D,L)},T=function(A,L){m&&cancelAnimationFrame(l.current),l.current=m?requestAnimationFrame(A):setTimeout(A,L)},V=function(A){if(!p.current)return!1;var L=A-i.current;return!i.current||L>=t||L<0||k&&A-s.current>=S},E=function(A){return l.current=null,x&&c.current?O(A):(c.current=u.current=null,d.current)},P=function A(){var L=Date.now();if(v&&a.current===s.current&&N(),V(L))return E(L);if(p.current){var D=t-(L-i.current),U=k?Math.min(D,S-(L-s.current)):D;T(A,U)}},N=function(){},w=function(){if(f||y){var A=Date.now(),L=V(A);if(c.current=[].slice.call(arguments),u.current=o,i.current=A,L){if(!l.current&&p.current)return s.current=i.current,T(P,t),v?O(i.current):d.current;if(k)return T(P,t),O(i.current)}return l.current||T(P,t),d.current}};return w.cancel=function(){var A=l.current;A&&(m?cancelAnimationFrame(l.current):clearTimeout(l.current)),s.current=0,c.current=i.current=u.current=l.current=null},w.isPending=function(){return!!l.current},w.flush=function(){return l.current?E(Date.now()):d.current},w},[v,k,t,S,x,m,f,y,n]);return b}const ZN=200,rm=({buttonProps:e,defaultValue:t,groupProps:r,hideAdvanced:n=!1,hotkeyDisabled:o=!1,onChange:i,placeHolder:s})=>{const a=JN(g=>i(g),ZN),l=C.useRef(null),[c,u]=C.useState(t),d=g=>{u(g.target.value),a(g.target.value)};return QN("mod+k",()=>{l.current?.focus()},{enabled:!o,preventDefault:!0}),h.jsx(mN,{...r,colorPalette:"brand",endElement:h.jsxs(h.Fragment,{children:[c?h.jsx(El,{"aria-label":"Clear search",colorPalette:"brand","data-testid":"clear-search",onClick:()=>{u(""),i("")},size:"xs"}):void 0,n?void 0:h.jsx(Ce,{fontWeight:"normal",height:28,variant:"ghost",...e,children:"Advanced"}),!o&&h.jsx(ug,{size:"sm",children:"⌘K"})]}),startElement:h.jsx(IN,{}),children:h.jsx(lg,{"data-testid":"search-workers",onChange:d,placeholder:s,pr:150,ref:l,value:c})})},e5=({onQueueUpdate:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),[i,s]=C.useState(""),a=XP({onError:c=>{e({description:`Unable to add queue to worker ${t}: ${c}`,title:"Add Queue Failed",type:"error"})},onSuccess:()=>{e({description:`Queue "${i}" was added to worker ${t}.`,title:"Queue Added",type:"success"}),r(),s("")}}),l=()=>{if(!i.trim()){e({description:"Please enter a queue name.",title:"Invalid Input",type:"error"});return}a.mutate({queueName:i.trim(),workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Add Queue",title:"Add Queue",colorPalette:"success",children:h.jsx(Hp,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Add Queue to ",t]})}),h.jsx(Rr,{children:h.jsxs(so,{gap:4,align:"stretch",children:[h.jsx(He,{children:"Enter the name of the queue to add to this worker:"}),h.jsx(lg,{placeholder:"Queue name",value:i,onChange:c=>s(c.target.value),onKeyDown:c=>{c.key==="Enter"&&l()}})]})}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ce,{variant:"outline",children:"Cancel"})}),h.jsxs(Ce,{onClick:l,colorPalette:"success",loading:a.isPending,loadingText:"Adding queue...",disabled:!i.trim(),children:[h.jsx(Hp,{}),"Add Queue"]})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})},t5=({onEditComment:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),[i,s]=C.useState(""),a=QP({onError:c=>{e({description:`Unable to update comments for worker ${t}: ${c}`,title:"Updating Comments failed",type:"error"})},onSuccess:()=>{e({description:`Worker maintenance comments for ${t} were updated.`,title:"Maintenance Comments updated",type:"success"}),r()}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost","aria-label":"Edit Comments",title:"Edit Comments",onClick:n,colorPalette:"warning",children:h.jsx(EN,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Edit maintenance comments for worker ",t]})}),h.jsx(Rr,{children:h.jsx(el,{placeholder:"Change maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ce,{variant:"outline",children:"Cancel"})}),h.jsx(Ce,{onClick:l,disabled:!i.trim(),children:"Update Comments"})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})};function nm(e){return re({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}function r5(e){return re({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75a4.5 4.5 0 0 1-4.884 4.484c-1.076-.091-2.264.071-2.95.904l-7.152 8.684a2.548 2.548 0 1 1-3.586-3.586l8.684-7.152c.833-.686.995-1.874.904-2.95a4.5 4.5 0 0 1 6.336-4.486l-3.276 3.276a3.004 3.004 0 0 0 2.25 2.25l3.276-3.276c.256.565.398 1.192.398 1.852Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}const n5=({onEnterMaintenance:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),[i,s]=C.useState(""),a=KP({onError:c=>{e({description:`Unable to set worker ${t} to maintenance mode: ${c}`,title:"Setting Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to be in maintenance mode.`,title:"Maintenance Mode activated",type:"success"})}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost","aria-label":"Enter Maintenance",title:"Enter Maintenance",onClick:n,colorPalette:"warning",children:h.jsx(nm,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Set maintenance for worker ",t]})}),h.jsx(Rr,{children:h.jsx(el,{placeholder:"Enter maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ce,{variant:"outline",children:"Cancel"})}),h.jsx(Ce,{onClick:l,disabled:!i.trim(),children:"Confirm Maintenance"})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})};function o5(e){return re({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.469 332.802l29.863 29.864L352 256 245.332 149.333l-29.863 29.865 55.469 55.469H64v42.666h205.864l-54.395 55.469zM405.334 64H106.666C83.198 64 64 83.198 64 106.666V192h42.666v-85.333h298.668v298.668H106.666V320H64v85.334C64 428.802 83.198 448 106.666 448h298.668C428.802 448 448 428.802 448 405.334V106.666C448 83.198 428.802 64 405.334 64z"},child:[]}]})(e)}const i5=({onExitMaintenance:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),i=JP({onError:a=>{e({description:`Unable to exit ${t} from maintenance mode: ${a}`,title:"Exit Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to exit maintenance mode.`,title:"Maintenance Mode deactivated",type:"success"}),r()}}),s=()=>{i.mutate({workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Exit Maintenance",title:"Exit Maintenance",colorPalette:"warning",children:h.jsx(o5,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Exit maintenance for worker ",t]})}),h.jsx(Rr,{children:h.jsxs(He,{children:["Are you sure you want to exit maintenance mode for worker ",t,"?"]})}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ce,{variant:"outline",children:"No"})}),h.jsx(Ce,{onClick:s,children:"Yes"})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})},s5=({onQueueUpdate:e,worker:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),[i,s]=C.useState(""),a=eN({onError:u=>{e({description:`Unable to remove queue from worker ${t.worker_name}: ${u}`,title:"Remove Queue Failed",type:"error"})},onSuccess:()=>{e({description:`Queue "${i}" was removed from worker ${t.worker_name}.`,title:"Queue Removed",type:"success"}),r(),s("")}}),l=()=>{if(!i){e({description:"Please select a queue to remove.",title:"Invalid Selection",type:"error"});return}a.mutate({queueName:i,workerName:t.worker_name})},c=t.queues||[];return c.length===0?null:h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Remove Queue",title:"Remove Queue",colorPalette:"danger",children:h.jsx(Bp,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Remove Queue from ",t.worker_name]})}),h.jsx(Rr,{children:h.jsxs(so,{gap:4,align:"stretch",children:[h.jsx(He,{children:"Select a queue to remove from this worker:"}),h.jsx(so,{gap:2,align:"stretch",children:h.jsx(Y2,{each:c,children:u=>h.jsx(Ce,{variant:i===u?"solid":"outline",colorPalette:i===u?"blue":"gray",onClick:()=>s(u),justifyContent:"flex-start",children:u},u)})})]})}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ce,{variant:"outline",children:"Cancel"})}),h.jsxs(Ce,{onClick:l,colorPalette:"danger",loading:a.isPending,loadingText:"Removing queue...",disabled:!i,children:[h.jsx(Bp,{}),"Remove Queue"]})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})};function om(e){return re({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M170.5 51.6L151.5 80l145 0-19-28.4c-1.5-2.2-4-3.6-6.7-3.6l-93.7 0c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80 368 80l48 0 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-8 0 0 304c0 44.2-35.8 80-80 80l-224 0c-44.2 0-80-35.8-80-80l0-304-8 0c-13.3 0-24-10.7-24-24S10.7 80 24 80l8 0 48 0 13.8 0 36.7-55.1C140.9 9.4 158.4 0 177.1 0l93.7 0c18.7 0 36.2 9.4 46.6 24.9zM80 128l0 304c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-304L80 128zm80 64l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16z"},child:[]}]})(e)}const im=({onDelete:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),i=ZP({onError:a=>{e({description:`Unable to delete worker ${t}: ${a}`,title:"Delete Worker Failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} has been deleted from the system.`,title:"Worker Deleted",type:"success"}),r()}}),s=()=>{i.mutate({workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Delete Worker",title:"Delete Worker",colorPalette:"danger",children:h.jsx(om,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Delete worker ",t]})}),h.jsxs(Rr,{children:[h.jsxs(He,{children:["Are you sure you want to delete worker ",t,"?"]}),h.jsx(He,{fontSize:"sm",color:"red.500",mt:2,children:"This will permanently remove the worker record from the system. This action cannot be undone."})]}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ce,{variant:"outline",children:"Cancel"})}),h.jsxs(Ce,{onClick:s,colorPalette:"danger",loading:i.isPending,loadingText:"Deleting...",children:[h.jsx(om,{style:{marginRight:"8px"}}),"Delete Worker"]})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})};function sm(e){return re({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"},child:[]}]})(e)}const am=({onShutdown:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),i=YP({onError:a=>{e({description:`Unable to request shutdown for worker ${t}: ${a}`,title:"Shutdown Request Failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to shutdown.`,title:"Shutdown Request Sent",type:"success"}),r()}}),s=()=>{i.mutate({workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Shutdown Worker",title:"Shutdown Worker",colorPalette:"danger",children:h.jsx(sm,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Shutdown worker ",t]})}),h.jsxs(Rr,{children:[h.jsxs(He,{children:["Are you sure you want to request shutdown for worker ",t,"?"]}),h.jsx(He,{fontSize:"sm",color:"red.500",mt:2,children:"This stops the worker on the remote edge. You can't restart it from the UI — you need to start it remotely instead."})]}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ce,{variant:"outline",children:"Cancel"})}),h.jsxs(Ce,{onClick:s,colorPalette:"danger",loading:i.isPending,loadingText:"Shutting down...",children:[h.jsx(sm,{style:{marginRight:"8px"}}),"Shutdown Worker"]})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})},a5=({onOperations:e,worker:t})=>{const r=t.worker_name,n=t.state,o=i=>{Up.create(i),e()};return n==="idle"||n==="running"?h.jsxs(io,{justifyContent:"end",gap:2,children:[h.jsx(e5,{onQueueUpdate:o,workerName:r}),h.jsx(s5,{onQueueUpdate:o,worker:t}),h.jsx(n5,{onEnterMaintenance:o,workerName:r}),h.jsx(am,{onShutdown:o,workerName:r})]}):n==="maintenance pending"||n==="maintenance mode"||n==="maintenance request"||n==="offline maintenance"?h.jsxs(so,{gap:2,align:"stretch",children:[h.jsx(Tn,{fontSize:"sm",whiteSpace:"pre-wrap",children:t.maintenance_comments||"No comment"}),h.jsxs(io,{justifyContent:"end",gap:2,children:[h.jsx(t5,{onEditComment:o,workerName:r}),h.jsx(i5,{onExitMaintenance:o,workerName:r}),n==="offline maintenance"?h.jsx(im,{onDelete:o,workerName:r}):h.jsx(am,{onShutdown:o,workerName:r})]})]}):n==="offline"||n==="unknown"?h.jsx(io,{justifyContent:"end",children:h.jsx(im,{onDelete:o,workerName:r})}):null};function l5(e){return re({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m22 3.41-.12-1.26-1.2.4a13.84 13.84 0 0 1-6.41.64 11.87 11.87 0 0 0-6.68.9A7.23 7.23 0 0 0 3.3 9.5a9 9 0 0 0 .39 4.58 16.6 16.6 0 0 1 1.18-2.2 9.85 9.85 0 0 1 4.07-3.43 11.16 11.16 0 0 1 5.06-1A12.08 12.08 0 0 0 9.34 9.2a9.48 9.48 0 0 0-1.86 1.53 11.38 11.38 0 0 0-1.39 1.91 16.39 16.39 0 0 0-1.57 4.54A26.42 26.42 0 0 0 4 22h2a30.69 30.69 0 0 1 .59-4.32 9.25 9.25 0 0 0 4.52 1.11 11 11 0 0 0 4.28-.87C23 14.67 22 3.86 22 3.41z"},child:[]}]})(e)}function c5(e){return re({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M93.72 183.25C49.49 198.05 16 233.1 16 288c0 66 54 112 120 112h184.37m147.45-22.26C485.24 363.3 496 341.61 496 312c0-59.82-53-85.76-96-88-8.89-89.54-71-144-144-144-26.16 0-48.79 6.93-67.6 18.14"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 448 64 64"},child:[]}]})(e)}function u5(e){return re({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.0001 18C12.7144 18 13.3704 18.2497 13.8856 18.6665L12.0001 21L10.1145 18.6665C10.6297 18.2497 11.2857 18 12.0001 18ZM2.80766 1.39343L20.4853 19.0711L19.0711 20.4853L13.8913 15.3042C13.2967 15.1069 12.6609 15 12.0001 15C10.5719 15 9.26024 15.499 8.22998 16.3322L6.97363 14.7759C8.24961 13.7442 9.84925 13.0969 11.5964 13.01L9.00025 10.414C7.55273 10.8234 6.22651 11.5217 5.0878 12.4426L3.83099 10.8868C4.89946 10.0226 6.10763 9.32438 7.41633 8.83118L5.13168 6.5451C3.98878 7.08913 2.92058 7.76472 1.94666 8.55228L0.689453 6.99674C1.60358 6.25747 2.59156 5.60589 3.64058 5.05479L1.39345 2.80765L2.80766 1.39343ZM14.5004 10.2854L12.2165 8.00243L12 8C15.0947 8 17.9369 9.08141 20.1693 10.8869L18.9123 12.4426C17.6438 11.4167 16.1427 10.6672 14.5004 10.2854ZM12.0001 3.00003C16.2849 3.00003 20.22 4.49719 23.3109 6.99691L22.0534 8.55228C19.3061 6.33062 15.8085 5.00003 12.0001 5.00003C11.122 5.00003 10.2604 5.07077 9.42075 5.20685L7.72455 3.51088C9.09498 3.17702 10.5268 3.00003 12.0001 3.00003Z"},child:[]}]})(e)}const d5=({state:e,...t})=>{switch(e){case"starting":return h.jsx(qp,{...t});case"running":return h.jsx(Gp,{...t});case"idle":return h.jsx(l5,{...t});case"shutdown request":case"terminating":return h.jsx(kN,{...t});case"offline":return h.jsx(c5,{...t});case"unknown":return h.jsx(u5,{...t});case"maintenance request":case"maintenance pending":case"maintenance exit":return h.jsx(r5,{...t});case"maintenance mode":case"offline maintenance":return h.jsx(nm,{...t});default:return h.jsx(Wp,{...t})}},h5=e=>{switch(e){case"starting":case"maintenance request":case"maintenance exit":return"yellow";case"running":return"green";case"idle":return"teal";case"shutdown request":case"terminating":return"purple";case"offline":case"offline maintenance":return"black";case"unknown":return"red";case"maintenance mode":case"maintenance pending":return"orange";default:return"gray"}},f5=e=>{switch(e){case"starting":return"Edge Worker is in initialization.";case"running":return"Edge Worker is actively running a task.";case"idle":return"Edge Worker is active and waiting for a task.";case"shutdown request":return"Request to shutdown Edge Worker is issued. It will be picked-up on the next heartbeat, tasks will drain and then worker will terminate.";case"terminating":return"Edge Worker is completing work (draining running tasks) and stopping.";case"offline":return"Edge Worker was shut down.";case"unknown":return"No heartbeat signal from worker for some time, Edge Worker probably down or got disconnected.";case"maintenance request":return"Worker was requested to enter maintenance mode. Once worker receives this message it will pause fetching tasks and drain tasks.";case"maintenance pending":return"Edge Worker received the request for maintenance, waiting for tasks to finish. Once tasks are finished will move to 'maintenance mode'.";case"maintenance mode":return"Edge Worker is in maintenance mode. It is online but pauses fetching tasks.";case"maintenance exit":return"Request Worker is requested to exit maintenance mode. Once the worker receives this state it will un-pause and fetch new tasks.";case"offline maintenance":return"Worker was shut down in maintenance mode. It will be in maintenance mode when restarted.";default:return}},Pl=z.forwardRef(({children:e,state:t,...r},n)=>h.jsxs(Ja,{borderRadius:"full",colorPalette:h5(t),fontSize:"sm",px:e===void 0?1:2,py:1,ref:n,title:f5(t),variant:"solid",...r,children:[t===void 0?void 0:h.jsx(d5,{state:t}),e]})),g5={enum:["starting","running","idle","shutdown request","terminating","offline","unknown","maintenance request","maintenance pending","maintenance mode","maintenance exit","offline maintenance"]},p5=e=>e.split(/[\s_]+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "),lm=cS({items:[{label:"All States",value:"all"},...g5.enum.map(e=>({label:p5(e),value:e}))]}),m5=()=>{const[e,t]=C.useState(""),[r,n]=C.useState(""),[o,i]=C.useState([]),s=o.length>0,{data:a,error:l,refetch:c}=GP({queueNamePattern:r||void 0,state:s?o:void 0,workerNamePattern:e||void 0},void 0,{enabled:!0,refetchInterval:Kp}),u=()=>{console.log("Nav onToasterTestClick"),Up.create({description:"Toaster from Plugin.",title:"Test Toaster",type:"success"}),console.log("Nav onToasterTestClick DONE")},d=f=>{t(f)},g=f=>{n(f)},p=C.useCallback(({value:f})=>{const[m,...v]=f;(m===void 0||m==="all")&&v.length===0?i([]):i(f.filter(x=>x!=="all"))},[]);return h.jsxs(Tn,{p:2,children:[h.jsxs(_i,{gap:4,mb:4,children:[h.jsx(rm,{buttonProps:{disabled:!0},defaultValue:e,hideAdvanced:!0,hotkeyDisabled:!0,onChange:d,placeHolder:"Search workers"}),h.jsx(rm,{buttonProps:{disabled:!0},defaultValue:r,hideAdvanced:!0,hotkeyDisabled:!0,onChange:g,placeHolder:"Search queues"}),h.jsxs(vo.Root,{collection:lm,maxW:"450px",multiple:!0,onValueChange:p,value:s?o:["all"],children:[h.jsx(vo.Trigger,{...s?{clearable:!0}:{},colorPalette:"brand",isActive:!!o,children:h.jsx(vo.ValueText,{children:()=>s?h.jsx(_i,{flexWrap:"wrap",fontSize:"sm",gap:"4px",paddingY:"8px",children:o.map(f=>h.jsx(Pl,{state:f,children:f},f))}):"All States"})}),h.jsx(vo.Content,{children:lm.items.map(f=>h.jsx(vo.Item,{item:f,children:f.value==="all"?f.label:h.jsx(Pl,{state:f.value,children:f.label})},f.label))})]})]}),l?h.jsx(jp,{error:l}):a?a.workers&&a.workers.length>0?h.jsxs(h.Fragment,{children:[h.jsxs(mg,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[h.jsx(vg,{children:h.jsxs(Li,{children:[h.jsx(Oe,{children:"Worker Name"}),h.jsx(Oe,{children:"State"}),h.jsx(Oe,{children:"Queues"}),h.jsx(Oe,{children:"First Online"}),h.jsx(Oe,{children:"Last Heartbeat"}),h.jsx(Oe,{children:"Active Jobs"}),h.jsx(Oe,{children:"System Information"}),h.jsx(Oe,{children:"Operations"})]})}),h.jsx(bg,{children:a.workers.map(f=>h.jsxs(Li,{id:f.worker_name,children:[h.jsx(Ie,{children:f.worker_name}),h.jsx(Ie,{children:h.jsx(Pl,{state:f.state,children:f.state})}),h.jsx(Ie,{children:f.queues?h.jsx(fg,{children:f.queues.map(m=>h.jsx(gg,{children:m},m))}):"(all queues)"}),h.jsx(Ie,{children:f.first_online?h.jsx(Zi,{date:f.first_online,live:!1}):void 0}),h.jsx(Ie,{children:f.last_heartbeat?h.jsx(Zi,{date:f.last_heartbeat,live:!1}):void 0}),h.jsx(Ie,{children:f.jobs_active}),h.jsx(Ie,{children:f.sysinfo?h.jsx(fg,{children:Object.entries(f.sysinfo).map(([m,v])=>h.jsxs(gg,{children:[m,": ",v]},m))}):"N/A"}),h.jsx(Ie,{children:h.jsx(a5,{worker:f,onOperations:c})})]},f.worker_name))})]}),h.jsx(vN,{}),h.jsx(Ce,{onClick:u,children:"Open a Toaster in Plugin"})]}):h.jsxs(He,{as:"div",pl:2,pt:1,children:["No known workers. Start one via ",h.jsx(sg,{children:"airflow edge worker [...]"}),". See"," ",h.jsxs(dg,{target:"_blank",variant:"underline",color:"fg.info",href:"https://airflow.apache.org/docs/apache-airflow-providers-edge3/stable/deployment.html",children:["Edge Worker Deployment docs ",h.jsx(hN,{})]})," ","how to deploy a new worker."]}):h.jsx(He,{as:"div",pl:2,pt:1,children:"Loading..."})]})},v5=({tabs:e})=>{const t=C.useRef(null),r=_N(t);return h.jsx(io,{alignItems:"center",borderBottomWidth:1,mb:2,ref:t,children:e.map(({icon:n,label:o,value:i})=>h.jsx(st.NavLink,{end:!0,title:o,to:i,children:({isActive:s})=>h.jsx(ig,{borderBottomColor:"border.info",borderBottomWidth:s?3:0,color:s?"fg":"fg.muted",fontWeight:"bold",height:"40px",mb:"-2px",pb:s?0:"3px",px:4,transition:"all 0.2s ease",children:r>600||!n?o:n})},i))})},b5=()=>{const e=[{label:"Edge Worker",value:"worker"},{label:"Edge Jobs",value:"jobs"}];return h.jsxs(Tn,{p:2,children:[h.jsx(v5,{tabs:e}),h.jsxs(st.Routes,{children:[h.jsx(st.Route,{index:!0,element:h.jsx(st.Navigate,{to:"worker",replace:!0})}),h.jsx(st.Route,{path:"worker",element:h.jsx(m5,{})}),h.jsx(st.Route,{path:"jobs",element:h.jsx(LN,{})})]})]})},G=(e,t="white")=>({solid:{value:`{colors.${e}.600}`},contrast:{value:{_light:"white",_dark:t}},fg:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}},muted:{value:{_light:`{colors.${e}.200}`,_dark:`{colors.${e}.800}`}},subtle:{value:{_light:`{colors.${e}.100}`,_dark:`{colors.${e}.900}`}},emphasized:{value:{_light:`{colors.${e}.300}`,_dark:`{colors.${e}.700}`}},focusRing:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}}}),y5=Ha({theme:{tokens:{colors:{black:{value:"oklch(0.23185 0.0323 266.44)"},brand:{50:{value:"oklch(0.98 0.006 248.717)"},100:{value:"oklch(0.962 0.012 249.460)"},200:{value:"oklch(0.923 0.023 255.082)"},300:{value:"oklch(0.865 0.039 252.420)"},400:{value:"oklch(0.705 0.066 256.378)"},500:{value:"oklch(0.575 0.08 257.759)"},600:{value:"oklch(0.469 0.084 257.657)"},700:{value:"oklch(0.399 0.084 257.850)"},800:{value:"oklch(0.324 0.072 260.329)"},900:{value:"oklch(0.259 0.062 265.566)"},950:{value:"oklch(0.179 0.05 265.487)"}},gray:{50:{value:"oklch(0.985 0.004 253)"},100:{value:"oklch(0.955 0.006 253)"},200:{value:"oklch(0.915 0.01 253)"},300:{value:"oklch(0.85 0.016 253)"},400:{value:"oklch(0.75 0.025 252)"},500:{value:"oklch(0.63, 0.04, 252)"},600:{value:"oklch(0.45 0.055 251)"},700:{value:"oklch(0.35 0.045 251)"},800:{value:"oklch(0.28 0.035 251)"},900:{value:"oklch(0.18 0.03 251)"},950:{value:"oklch(0.11 0.025 251)"}},red:{50:{value:"oklch(0.971 0.013 17.38)"},100:{value:"oklch(0.936 0.032 17.717)"},200:{value:"oklch(0.885 0.062 18.334)"},300:{value:"oklch(0.808 0.114 19.571)"},400:{value:"oklch(0.704 0.191 22.216)"},500:{value:"oklch(0.637 0.237 25.331)"},600:{value:"oklch(0.577 0.245 27.325)"},700:{value:"oklch(0.505 0.213 27.518)"},800:{value:"oklch(0.444 0.177 26.899)"},900:{value:"oklch(0.396 0.141 25.723)"},950:{value:"oklch(0.258 0.092 26.042)"}},orange:{50:{value:"oklch(0.982 0.013 83.915)"},100:{value:"oklch(0.961 0.033 82.320)"},200:{value:"oklch(0.918 0.065 79.975)"},300:{value:"oklch(0.857 0.118 76.815)"},400:{value:"oklch(0.7492 0.1439 62.081)"},500:{value:"oklch(0.6462 0.1979 43.792)"},600:{value:"oklch(0.5902 0.198 35.93)"},700:{value:"oklch(0.553 0.184 41.777)"},800:{value:"oklch(0.469 0.144 45.164)"},900:{value:"oklch(0.414 0.110 48.717)"},950:{value:"oklch(0.271 0.069 52.345)"}},amber:{50:{value:"oklch(0.987 0.022 95.277)"},100:{value:"oklch(0.962 0.059 95.617)"},200:{value:"oklch(0.924 0.12 95.746)"},300:{value:"oklch(0.879 0.169 91.605)"},400:{value:"oklch(0.828 0.189 84.429)"},500:{value:"oklch(0.769 0.188 70.08)"},600:{value:"oklch(0.666 0.179 58.318)"},700:{value:"oklch(0.555 0.163 48.998)"},800:{value:"oklch(0.473 0.137 46.201)"},900:{value:"oklch(0.414 0.112 45.904)"},950:{value:"oklch(0.279 0.077 45.635)"}},yellow:{50:{value:"oklch(0.987 0.026 102.212)"},100:{value:"oklch(0.973 0.071 103.193)"},200:{value:"oklch(0.945 0.129 101.54)"},300:{value:"oklch(0.905 0.182 98.111)"},400:{value:"oklch(0.852 0.199 91.936)"},500:{value:"oklch(0.795 0.184 86.047)"},600:{value:"oklch(0.681 0.162 75.834)"},700:{value:"oklch(0.554 0.135 66.442)"},800:{value:"oklch(0.476 0.114 61.907)"},900:{value:"oklch(0.421 0.095 57.708)"},950:{value:"oklch(0.286 0.066 53.813)"}},lime:{50:{value:"oklch(0.986 0.031 120.757)"},100:{value:"oklch(0.967 0.067 122.328)"},200:{value:"oklch(0.938 0.127 124.321)"},300:{value:"oklch(0.897 0.196 126.665)"},400:{value:"oklch(0.841 0.238 128.85)"},500:{value:"oklch(0.768 0.233 130.85)"},600:{value:"oklch(0.648 0.2 131.684)"},700:{value:"oklch(0.532 0.157 131.589)"},800:{value:"oklch(0.453 0.124 130.933)"},900:{value:"oklch(0.405 0.101 131.063)"},950:{value:"oklch(0.274 0.072 132.109)"}},green:{50:{value:"oklch(0.982 0.018 155.826)"},100:{value:"oklch(0.962 0.044 156.743)"},200:{value:"oklch(0.925 0.084 155.995)"},300:{value:"oklch(0.75 0.18 153.0)"},400:{value:"oklch(0.625 0.209 150.0)"},500:{value:"oklch(0.528 0.219 149.579)"},600:{value:"oklch(0.47 0.20 149.0)"},700:{value:"oklch(0.40 0.16 149.5)"},800:{value:"oklch(0.448 0.119 151.328)"},900:{value:"oklch(0.393 0.095 152.535)"},950:{value:"oklch(0.266 0.065 152.934)"}},emerald:{50:{value:"oklch(0.979 0.021 166.113)"},100:{value:"oklch(0.95 0.052 163.051)"},200:{value:"oklch(0.905 0.093 164.15)"},300:{value:"oklch(0.845 0.143 164.978)"},400:{value:"oklch(0.765 0.177 163.223)"},500:{value:"oklch(0.696 0.17 162.48)"},600:{value:"oklch(0.596 0.145 163.225)"},700:{value:"oklch(0.508 0.118 165.612)"},800:{value:"oklch(0.432 0.095 166.913)"},900:{value:"oklch(0.378 0.077 168.94)"},950:{value:"oklch(0.262 0.051 172.552)"}},teal:{50:{value:"oklch(0.984 0.014 180.72)"},100:{value:"oklch(0.953 0.051 180.801)"},200:{value:"oklch(0.91 0.096 180.426)"},300:{value:"oklch(0.855 0.138 181.071)"},400:{value:"oklch(0.777 0.152 181.912)"},500:{value:"oklch(0.704 0.14 182.503)"},600:{value:"oklch(0.6 0.118 184.704)"},700:{value:"oklch(0.511 0.096 186.391)"},800:{value:"oklch(0.437 0.078 188.216)"},900:{value:"oklch(0.386 0.063 188.416)"},950:{value:"oklch(0.277 0.046 192.524)"}},cyan:{50:{value:"oklch(0.984 0.019 200.873)"},100:{value:"oklch(0.956 0.045 203.388)"},200:{value:"oklch(0.917 0.08 205.041)"},300:{value:"oklch(0.865 0.127 207.078)"},400:{value:"oklch(0.789 0.154 211.53)"},500:{value:"oklch(0.715 0.143 215.221)"},600:{value:"oklch(0.609 0.126 221.723)"},700:{value:"oklch(0.52 0.105 223.128)"},800:{value:"oklch(0.45 0.085 224.283)"},900:{value:"oklch(0.398 0.07 227.392)"},950:{value:"oklch(0.302 0.056 229.695)"}},sky:{50:{value:"oklch(0.977 0.013 236.62)"},100:{value:"oklch(0.951 0.026 236.824)"},200:{value:"oklch(0.901 0.058 230.902)"},300:{value:"oklch(0.828 0.111 230.318)"},400:{value:"oklch(0.746 0.16 232.661)"},500:{value:"oklch(0.685 0.169 237.323)"},600:{value:"oklch(0.588 0.158 241.966)"},700:{value:"oklch(0.5 0.134 242.749)"},800:{value:"oklch(0.443 0.11 240.79)"},900:{value:"oklch(0.391 0.09 240.876)"},950:{value:"oklch(0.293 0.066 243.157)"}},blue:{50:{value:"oklch(0.97 0.014 254.604)"},100:{value:"oklch(0.932 0.032 255.585)"},200:{value:"oklch(0.882 0.059 254.128)"},300:{value:"oklch(0.809 0.105 251.813)"},400:{value:"oklch(0.707 0.165 254.624)"},500:{value:"oklch(0.623 0.214 259.815)"},600:{value:"oklch(0.546 0.245 262.881)"},700:{value:"oklch(0.488 0.243 264.376)"},800:{value:"oklch(0.424 0.199 265.638)"},900:{value:"oklch(0.379 0.146 265.522)"},950:{value:"oklch(0.282 0.091 267.935)"}},indigo:{50:{value:"oklch(0.962 0.018 272.314)"},100:{value:"oklch(0.93 0.034 272.788)"},200:{value:"oklch(0.87 0.065 274.039)"},300:{value:"oklch(0.785 0.115 274.713)"},400:{value:"oklch(0.673 0.182 276.935)"},500:{value:"oklch(0.585 0.233 277.117)"},600:{value:"oklch(0.511 0.262 276.966)"},700:{value:"oklch(0.457 0.24 277.023)"},800:{value:"oklch(0.398 0.195 277.366)"},900:{value:"oklch(0.359 0.144 278.697)"},950:{value:"oklch(0.257 0.09 281.288)"}},violet:{50:{value:"oklch(0.969 0.016 293.756)"},100:{value:"oklch(0.943 0.029 294.588)"},200:{value:"oklch(0.894 0.057 293.283)"},300:{value:"oklch(0.811 0.111 293.571)"},400:{value:"oklch(0.702 0.183 293.541)"},500:{value:"oklch(0.606 0.25 292.717)"},600:{value:"oklch(0.541 0.281 293.009)"},700:{value:"oklch(0.491 0.27 292.581)"},800:{value:"oklch(0.432 0.232 292.759)"},900:{value:"oklch(0.38 0.189 293.745)"},950:{value:"oklch(0.283 0.141 291.089)"}},purple:{50:{value:"oklch(0.977 0.014 308.299)"},100:{value:"oklch(0.946 0.033 307.174)"},200:{value:"oklch(0.902 0.063 306.703)"},300:{value:"oklch(0.827 0.119 306.383)"},400:{value:"oklch(0.714 0.203 305.504)"},500:{value:"oklch(0.627 0.265 303.9)"},600:{value:"oklch(0.558 0.288 302.321)"},700:{value:"oklch(0.496 0.265 301.924)"},800:{value:"oklch(0.438 0.218 303.724)"},900:{value:"oklch(0.381 0.176 304.987)"},950:{value:"oklch(0.291 0.149 302.717)"}},fuchsia:{50:{value:"oklch(0.977 0.017 320.058)"},100:{value:"oklch(0.952 0.037 318.852)"},200:{value:"oklch(0.903 0.076 319.62)"},300:{value:"oklch(0.833 0.145 321.434)"},400:{value:"oklch(0.74 0.238 322.16)"},500:{value:"oklch(0.667 0.295 322.15)"},600:{value:"oklch(0.591 0.293 322.896)"},700:{value:"oklch(0.518 0.253 323.949)"},800:{value:"oklch(0.452 0.211 324.591)"},900:{value:"oklch(0.401 0.17 325.612)"},950:{value:"oklch(0.293 0.136 325.661)"}},pink:{50:{value:"oklch(0.971 0.014 343.198)"},100:{value:"oklch(0.948 0.028 342.258)"},200:{value:"oklch(0.899 0.061 343.231)"},300:{value:"oklch(0.823 0.12 346.018)"},400:{value:"oklch(0.718 0.202 349.761)"},500:{value:"oklch(0.656 0.241 354.308)"},600:{value:"oklch(0.592 0.249 0.584)"},700:{value:"oklch(0.525 0.223 3.958)"},800:{value:"oklch(0.459 0.187 3.815)"},900:{value:"oklch(0.408 0.153 2.432)"},950:{value:"oklch(0.284 0.109 3.907)"}},rose:{50:{value:"oklch(0.969 0.015 12.422)"},100:{value:"oklch(0.941 0.03 12.58)"},200:{value:"oklch(0.892 0.058 10.001)"},300:{value:"oklch(0.81 0.117 11.638)"},400:{value:"oklch(0.712 0.194 13.428)"},500:{value:"oklch(0.645 0.246 16.439)"},600:{value:"oklch(0.586 0.253 17.585)"},700:{value:"oklch(0.514 0.222 16.935)"},800:{value:"oklch(0.455 0.188 13.697)"},900:{value:"oklch(0.41 0.159 10.272)"},950:{value:"oklch(0.271 0.105 12.094)"}},slate:{50:{value:"oklch(0.984 0.003 247.858)"},100:{value:"oklch(0.968 0.007 247.896)"},200:{value:"oklch(0.929 0.013 255.508)"},300:{value:"oklch(0.869 0.022 252.894)"},400:{value:"oklch(0.704 0.04 256.788)"},500:{value:"oklch(0.554 0.046 257.417)"},600:{value:"oklch(0.446 0.043 257.281)"},700:{value:"oklch(0.372 0.044 257.287)"},800:{value:"oklch(0.279 0.041 260.031)"},900:{value:"oklch(0.208 0.042 265.755)"},950:{value:"oklch(0.129 0.042 264.695)"}},zinc:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.967 0.001 286.375)"},200:{value:"oklch(0.92 0.004 286.32)"},300:{value:"oklch(0.871 0.006 286.286)"},400:{value:"oklch(0.705 0.015 286.067)"},500:{value:"oklch(0.552 0.016 285.938)"},600:{value:"oklch(0.442 0.017 285.786)"},700:{value:"oklch(0.37 0.013 285.805)"},800:{value:"oklch(0.274 0.006 286.033)"},900:{value:"oklch(0.21 0.006 285.885)"},950:{value:"oklch(0.141 0.005 285.823)"}},neutral:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.97 0 0)"},200:{value:"oklch(0.922 0 0)"},300:{value:"oklch(0.87 0 0)"},400:{value:"oklch(0.708 0 0)"},500:{value:"oklch(0.556 0 0)"},600:{value:"oklch(0.439 0 0)"},700:{value:"oklch(0.371 0 0)"},800:{value:"oklch(0.269 0 0)"},900:{value:"oklch(0.205 0 0)"},950:{value:"oklch(0.145 0 0)"}},stone:{50:{value:"oklch(0.985 0.001 106.423)"},100:{value:"oklch(0.97 0.001 106.424)"},200:{value:"oklch(0.923 0.003 48.717)"},300:{value:"oklch(0.869 0.005 56.366)"},400:{value:"oklch(0.709 0.01 56.259)"},500:{value:"oklch(0.553 0.013 58.071)"},600:{value:"oklch(0.444 0.011 73.639)"},700:{value:"oklch(0.374 0.01 67.558)"},800:{value:"oklch(0.268 0.007 34.298)"},900:{value:"oklch(0.216 0.006 56.043)"},950:{value:"oklch(0.147 0.004 49.25)"}}}},semanticTokens:{colors:{brand:G("brand"),danger:G("red"),info:G("blue"),warning:G("amber"),error:G("red"),active:G("blue"),success:G("green"),failed:G("red"),queued:G("stone"),skipped:G("pink"),up_for_reschedule:G("sky"),up_for_retry:G("yellow"),upstream_failed:G("orange"),running:G("cyan"),restarting:G("violet"),deferred:G("purple"),scheduled:G("zinc"),none:G("gray"),removed:G("slate"),red:G("red"),orange:G("orange"),amber:G("amber"),yellow:G("yellow"),lime:G("lime"),green:G("green"),emerald:G("emerald"),teal:G("teal"),cyan:G("cyan"),sky:G("sky"),blue:G("blue"),indigo:G("indigo"),violet:G("violet"),purple:G("purple"),fuchsia:G("fuchsia"),pink:G("pink"),rose:G("rose"),slate:G("slate"),gray:G("gray"),zinc:G("zinc"),neutral:G("neutral"),stone:G("stone")}}}}),x5=Lf(Xf,y5);return()=>{const e=document.querySelector("head > base")?.getAttribute("href")??"",t=new URL(e,globalThis.location.origin);Et.BASE=t.pathname.replace(/\/$/,"");const r=new zI({defaultOptions:{queries:{staleTime:1/0}}});return h.jsx(vv,{value:x5,children:h.jsx(MI,{client:r,children:h.jsx(iT,{children:h.jsx(b5,{})})})})}}));
diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/ui/index.ts b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/ui/index.ts
index 3ccf0201db11b..8c8c86b328cfc 100644
--- a/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/ui/index.ts
+++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/ui/index.ts
@@ -19,7 +19,7 @@
export * from "./Alert";
export * from "./CloseButton";
-export * from "./createToaster";
export * from "./InputGroup";
+export * from "./toaster";
export * from "./ScrollToAnchor";
export * from "./Select";
diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/ui/createToaster.ts b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/ui/toaster.tsx
similarity index 50%
rename from providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/ui/createToaster.ts
rename to providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/ui/toaster.tsx
index 9fa1c393c771f..501c67036aa70 100644
--- a/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/ui/createToaster.ts
+++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/ui/toaster.tsx
@@ -16,9 +16,29 @@
* specific language governing permissions and limitations
* under the License.
*/
-import { createToaster } from "@chakra-ui/react";
+import { Toaster as ChakraToaster, Portal, Spinner, Stack, Toast, createToaster } from "@chakra-ui/react";
export const toaster = createToaster({
pauseOnPageIdle: true,
placement: "bottom-end",
});
+
+export const Toaster = () => {
+ return (
+
+
+ {(toast) => (
+
+ {toast.type === "loading" ? : }
+
+ {toast.title && {toast.title}}
+ {toast.description && {toast.description}}
+
+ {toast.action && {toast.action.label}}
+ {toast.closable && }
+
+ )}
+
+
+ );
+};
diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/src/pages/WorkerPage.tsx b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/pages/WorkerPage.tsx
index 3266f1b78d203..aba195c08aa8d 100644
--- a/providers/edge3/src/airflow/providers/edge3/plugins/www/src/pages/WorkerPage.tsx
+++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/pages/WorkerPage.tsx
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-import { Box, Code, HStack, Link, List, Table, Text, type SelectValueChangeDetails } from "@chakra-ui/react";
+import { Box, Button, Code, HStack, Link, List, Table, Text, type SelectValueChangeDetails } from "@chakra-ui/react";
import { useState, useCallback } from "react";
import { useUiServiceWorker } from "openapi/queries";
import { LuExternalLink } from "react-icons/lu";
@@ -26,7 +26,7 @@ import { ErrorAlert } from "src/components/ErrorAlert";
import { SearchBar } from "src/components/SearchBar";
import { WorkerOperations } from "src/components/WorkerOperations";
import { WorkerStateBadge } from "src/components/WorkerStateBadge";
-import { ScrollToAnchor, Select } from "src/components/ui";
+import { ScrollToAnchor, Select, toaster } from "src/components/ui";
import { workerStateOptions } from "src/constants";
import { autoRefreshInterval } from "src/utils";
import type { EdgeWorkerState } from "openapi/requests/types.gen";
@@ -50,6 +50,15 @@ export const WorkerPage = () => {
refetchInterval: autoRefreshInterval,
},
);
+ const onToasterTestClick = () => {
+ console.log("Nav onToasterTestClick");
+ toaster.create({
+ description: `Toaster from Plugin.`,
+ title: "Test Toaster",
+ type: "success",
+ });
+ console.log("Nav onToasterTestClick DONE");
+ };
const handleWorkerSearchChange = (value: string) => {
setWorkerNamePattern(value);
@@ -76,7 +85,6 @@ export const WorkerPage = () => {
// Add links with filter to see jobs on worker
// Add time zone support for time display
// Translation?
-
return (
@@ -204,6 +212,7 @@ export const WorkerPage = () => {
+
>
) : (
diff --git a/providers/edge3/www-hash.txt b/providers/edge3/www-hash.txt
index f8320524fc5a8..3fb7cf6f7ad4f 100644
--- a/providers/edge3/www-hash.txt
+++ b/providers/edge3/www-hash.txt
@@ -1 +1 @@
-59d2cfc1e5e92248ce8fe9367b534344e86c15c2ebb57394b188566dd0ec70f3
+4dbc222de076380a16fc867b967c5ca4d4af10ab608cfc9716e2298073d9b63b